id stringlengths 11 15 | language stringclasses 1
value | question stringlengths 13 844 | answer stringlengths 1 900 | code stringlengths 162 27.4k | code_original stringlengths 162 26k | code_word_count int64 51 5.96k |
|---|---|---|---|---|---|---|
java-test-9090 | java | What do this method use ? | the max | private void compute Header Sizes ( ) { item Height = font Metrics . get Height ( ) + NUM ; int col Header Height = NUM ; for ( Grid Column column : top Columns ) { col Header Height = Math . max ( column . get Header Height ( BOOL ) , col Header Height ) ; } header Height = col Header Height ; row Header Width = DEFAU... | private void computeHeaderSizes ( ) { itemHeight = fontMetrics . getHeight ( ) + _NUM ; int colHeaderHeight = _NUM ; for ( GridColumn column : topColumns ) { colHeaderHeight = Math . max ( column . getHeaderHeight ( _BOOL ) , colHeaderHeight ) ; } headerHeight = colHeaderHeight ; rowHeaderWidth = DEFAULT_ROW_HEADER_WID... | 202 |
java-test-9093 | java | How do changed " pipeline " objects walk ? | recursively instead of including them directly | void add Changes Recursively ( Server server , List < Material Revision > out Changes ) throws Malformed URL Exception , IO Exception { if ( ! changed ) { return ; } if ( ! is Pipeline ( ) ) { if ( ! out Changes . contains ( this ) ) out Changes . add ( this ) ; } else { for ( Modification m : modifications ) { Matcher... | void addChangesRecursively ( Server server , List < MaterialRevision > outChanges ) throws MalformedURLException , IOException { if ( ! changed ) { return ; } if ( ! isPipeline ( ) ) { if ( ! outChanges . contains ( this ) ) outChanges . add ( this ) ; } else { for ( Modification m : modifications ) { Matcher matcher =... | 169 |
java-test-9094 | java | How did the code collect change materialrevision objects ? | walking changed " pipeline " objects recursively instead of including them directly | void add Changes Recursively ( Server server , List < Material Revision > out Changes ) throws Malformed URL Exception , IO Exception { if ( ! changed ) { return ; } if ( ! is Pipeline ( ) ) { if ( ! out Changes . contains ( this ) ) out Changes . add ( this ) ; } else { for ( Modification m : modifications ) { Matcher... | void addChangesRecursively ( Server server , List < MaterialRevision > outChanges ) throws MalformedURLException , IOException { if ( ! changed ) { return ; } if ( ! isPipeline ( ) ) { if ( ! outChanges . contains ( this ) ) outChanges . add ( this ) ; } else { for ( Modification m : modifications ) { Matcher matcher =... | 169 |
java-test-9095 | java | What updated in back propagation ? | the weights of the connections from bias units | @ Override protected float [ ] backward Propagation O 2 H ( Instance instance , float [ ] input ) { float [ ] output = Arrays . copy Of ( instance . get Scores ( ) , get Label Size ( ) ) ; float [ ] gradients = get Gradients Regression ( instance ) ; for ( int index = NUM ; index < gradients . length ; index ++ ) { gra... | @ Override protected float [ ] backwardPropagationO2H ( Instance instance , float [ ] input ) { float [ ] output = Arrays . copyOf ( instance . getScores ( ) , getLabelSize ( ) ) ; float [ ] gradients = getGradientsRegression ( instance ) ; for ( int index = _NUM ; index < gradients . length ; index ++ ) { gradients [ ... | 244 |
java-test-9096 | java | What did the code find ? | a minor bug | @ Override protected float [ ] backward Propagation O 2 H ( Instance instance , float [ ] input ) { float [ ] output = Arrays . copy Of ( instance . get Scores ( ) , get Label Size ( ) ) ; float [ ] gradients = get Gradients Regression ( instance ) ; for ( int index = NUM ; index < gradients . length ; index ++ ) { gra... | @ Override protected float [ ] backwardPropagationO2H ( Instance instance , float [ ] input ) { float [ ] output = Arrays . copyOf ( instance . getScores ( ) , getLabelSize ( ) ) ; float [ ] gradients = getGradientsRegression ( instance ) ; for ( int index = _NUM ; index < gradients . length ; index ++ ) { gradients [ ... | 244 |
java-test-9097 | java | Where do the weights of the connections from bias units update ? | in back propagation | @ Override protected float [ ] backward Propagation O 2 H ( Instance instance , float [ ] input ) { float [ ] output = Arrays . copy Of ( instance . get Scores ( ) , get Label Size ( ) ) ; float [ ] gradients = get Gradients Regression ( instance ) ; for ( int index = NUM ; index < gradients . length ; index ++ ) { gra... | @ Override protected float [ ] backwardPropagationO2H ( Instance instance , float [ ] input ) { float [ ] output = Arrays . copyOf ( instance . getScores ( ) , getLabelSize ( ) ) ; float [ ] gradients = getGradientsRegression ( instance ) ; for ( int index = _NUM ; index < gradients . length ; index ++ ) { gradients [ ... | 244 |
java-test-9098 | java | How do for engine search ? | by road number | public int find Engine By Road Number ( String road Number ) { if ( sys List != null ) { if ( ! road Number . equals ( road Number ) ) { return get Index ( NUM , road Number ) ; } int index = get Index ( index , road Number ) ; if ( index > NUM ) { return index ; } return get Index ( NUM , road Number ) ; } return - NU... | public int findEngineByRoadNumber ( String roadNumber ) { if ( sysList != null ) { if ( ! roadNumber . equals ( _roadNumber ) ) { return getIndex ( _NUM , roadNumber ) ; } int index = getIndex ( _index , roadNumber ) ; if ( index > _NUM ) { return index ; } return getIndex ( _NUM , roadNumber ) ; } return - _NUM ; } | 84 |
java-test-9099 | java | What does the code delete ? | the existing profile | public void delete Profile ( Profile profile ) throws Business Exception , IO Exception { if ( profile . is Common Profile ( ) ) { throw new Business Exception ( STRING + profile . get Name ( ) + STRING , Configuration Interface Error Code Enum . COMMON PROFILE CAN NOT BE ALTERED ) ; } String id = profile . get Id ( ) ... | public void deleteProfile ( Profile profile ) throws BusinessException , IOException { if ( profile . isCommonProfile ( ) ) { throw new BusinessException ( STRING + profile . getName ( ) + STRING , ConfigurationInterfaceErrorCodeEnum . COMMON_PROFILE_CAN_NOT_BE_ALTERED ) ; } String id = profile . getId ( ) ; Profile lo... | 156 |
java-test-9102 | java | When will block access be not attempted ? | while a flush is pending or taking place 2 | private void pre Buffer Access ( ) { most Recent Use = System . current Time Millis ( ) ; lock . lock ( ) ; try { while ( flush Pending ) { flush Complete . await ( ) ; } ensure Buffer Available ( this ) ; ensure Loaded ( ) ; buffer Use Count ++ ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } finally... | private void preBufferAccess ( ) { _mostRecentUse = System . currentTimeMillis ( ) ; _lock . lock ( ) ; try { while ( _flushPending ) { _flushComplete . await ( ) ; } ensureBufferAvailable ( this ) ; ensureLoaded ( ) ; _bufferUseCount ++ ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } finally { _lock... | 85 |
java-test-9103 | java | What is taking place ? | a flush | private void pre Buffer Access ( ) { most Recent Use = System . current Time Millis ( ) ; lock . lock ( ) ; try { while ( flush Pending ) { flush Complete . await ( ) ; } ensure Buffer Available ( this ) ; ensure Loaded ( ) ; buffer Use Count ++ ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } finally... | private void preBufferAccess ( ) { _mostRecentUse = System . currentTimeMillis ( ) ; _lock . lock ( ) ; try { while ( _flushPending ) { _flushComplete . await ( ) ; } ensureBufferAvailable ( this ) ; ensureLoaded ( ) ; _bufferUseCount ++ ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } finally { _lock... | 85 |
java-test-9104 | java | What did the code called prior to reading from or writing to the block ensure ? | that all of the following are satisfied | private void pre Buffer Access ( ) { most Recent Use = System . current Time Millis ( ) ; lock . lock ( ) ; try { while ( flush Pending ) { flush Complete . await ( ) ; } ensure Buffer Available ( this ) ; ensure Loaded ( ) ; buffer Use Count ++ ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } finally... | private void preBufferAccess ( ) { _mostRecentUse = System . currentTimeMillis ( ) ; _lock . lock ( ) ; try { while ( _flushPending ) { _flushComplete . await ( ) ; } ensureBufferAvailable ( this ) ; ensureLoaded ( ) ; _bufferUseCount ++ ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } finally { _lock... | 85 |
java-test-9105 | java | What ensures that all of the following are satisfied ? | the code called prior to reading from or writing to the block | private void pre Buffer Access ( ) { most Recent Use = System . current Time Millis ( ) ; lock . lock ( ) ; try { while ( flush Pending ) { flush Complete . await ( ) ; } ensure Buffer Available ( this ) ; ensure Loaded ( ) ; buffer Use Count ++ ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } finally... | private void preBufferAccess ( ) { _mostRecentUse = System . currentTimeMillis ( ) ; _lock . lock ( ) ; try { while ( _flushPending ) { _flushComplete . await ( ) ; } ensureBufferAvailable ( this ) ; ensureLoaded ( ) ; _bufferUseCount ++ ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } finally { _lock... | 85 |
java-test-9106 | java | When did the code call ? | prior to reading from or writing to the block | private void pre Buffer Access ( ) { most Recent Use = System . current Time Millis ( ) ; lock . lock ( ) ; try { while ( flush Pending ) { flush Complete . await ( ) ; } ensure Buffer Available ( this ) ; ensure Loaded ( ) ; buffer Use Count ++ ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } finally... | private void preBufferAccess ( ) { _mostRecentUse = System . currentTimeMillis ( ) ; _lock . lock ( ) ; try { while ( _flushPending ) { _flushComplete . await ( ) ; } ensureBufferAvailable ( this ) ; ensureLoaded ( ) ; _bufferUseCount ++ ; } catch ( Exception e ) { throw Throwables . propagate ( e ) ; } finally { _lock... | 85 |
java-test-9107 | java | How is the code initializes the resource name ? | with configuration information , usally set by the administrators | public void initialize ( Map config Params ) { String delimiter Config = ( String ) config Params . get ( Policy Config . RESOURCE COMPARATOR DELIMITER ) ; if ( delimiter Config != null ) { this . delimiter = delimiter Config ; } String case Config = ( String ) config Params . get ( Policy Config . RESOURCE COMPARATOR ... | public void initialize ( Map configParams ) { String delimiterConfig = ( String ) configParams . get ( PolicyConfig . RESOURCE_COMPARATOR_DELIMITER ) ; if ( delimiterConfig != null ) { this . delimiter = delimiterConfig ; } String caseConfig = ( String ) configParams . get ( PolicyConfig . RESOURCE_COMPARATOR_CASE_SENS... | 163 |
java-test-9109 | java | What does the code start ? | the execution of eligible states ( whose all dependencies are met ) | public Set < State > post Event ( Event Data event Data , Long state Machine Instance Id , String correlation Id ) { State Machine state Machine = null ; if ( state Machine Instance Id != null ) { state Machine = retrieve State Machine ( state Machine Instance Id ) ; } else if ( correlation Id != null ) { state Machine... | public Set < State > postEvent ( EventData eventData , Long stateMachineInstanceId , String correlationId ) { StateMachine stateMachine = null ; if ( stateMachineInstanceId != null ) { stateMachine = retrieveStateMachine ( stateMachineInstanceId ) ; } else if ( correlationId != null ) { stateMachine = retrieveStateMach... | 358 |
java-test-9110 | java | What does the code retrieve ? | the states which are dependant on this event | public Set < State > post Event ( Event Data event Data , Long state Machine Instance Id , String correlation Id ) { State Machine state Machine = null ; if ( state Machine Instance Id != null ) { state Machine = retrieve State Machine ( state Machine Instance Id ) ; } else if ( correlation Id != null ) { state Machine... | public Set < State > postEvent ( EventData eventData , Long stateMachineInstanceId , String correlationId ) { StateMachine stateMachine = null ; if ( stateMachineInstanceId != null ) { stateMachine = retrieveStateMachine ( stateMachineInstanceId ) ; } else if ( correlationId != null ) { stateMachine = retrieveStateMach... | 358 |
java-test-9112 | java | What do we need ? | to add fczonereferences for each of the new volumes so that in the future a zone will not be deleted until all volumes using the zone have been removed . references will only be added for zones with ports belonging to the array containing the volume . note | public boolean zone Export Add Volumes ( URI export Group URI , List < URI > export Mask UR Is , Collection < URI > volume UR Is , String token ) { Export Group export Group = db Client . query Object ( Export Group . class , export Group URI ) ; log . info ( String . format ( STRING , export Group . get Label ( ) , ex... | public boolean zoneExportAddVolumes ( URI exportGroupURI , List < URI > exportMaskURIs , Collection < URI > volumeURIs , String token ) { ExportGroup exportGroup = _dbClient . queryObject ( ExportGroup . class , exportGroupURI ) ; _log . info ( String . format ( STRING , exportGroup . getLabel ( ) , exportGroup . getId... | 267 |
java-test-9113 | java | What do we add for each of the new volumes so that in the future a zone will not be deleted until all volumes using the zone have been removed . ? | fczonereferences | public boolean zone Export Add Volumes ( URI export Group URI , List < URI > export Mask UR Is , Collection < URI > volume UR Is , String token ) { Export Group export Group = db Client . query Object ( Export Group . class , export Group URI ) ; log . info ( String . format ( STRING , export Group . get Label ( ) , ex... | public boolean zoneExportAddVolumes ( URI exportGroupURI , List < URI > exportMaskURIs , Collection < URI > volumeURIs , String token ) { ExportGroup exportGroup = _dbClient . queryObject ( ExportGroup . class , exportGroupURI ) ; _log . info ( String . format ( STRING , exportGroup . getLabel ( ) , exportGroup . getId... | 267 |
java-test-9114 | java | Why is this important ? | because we need to add fczonereferences for each of the new volumes so that in the future a zone will not be deleted until all volumes using the zone have been removed . references will only be added for zones with ports belonging to the array containing the volume . note : these arguments ( except token ) must match z... | public boolean zone Export Add Volumes ( URI export Group URI , List < URI > export Mask UR Is , Collection < URI > volume UR Is , String token ) { Export Group export Group = db Client . query Object ( Export Group . class , export Group URI ) ; log . info ( String . format ( STRING , export Group . get Label ( ) , ex... | public boolean zoneExportAddVolumes ( URI exportGroupURI , List < URI > exportMaskURIs , Collection < URI > volumeURIs , String token ) { ExportGroup exportGroup = _dbClient . queryObject ( ExportGroup . class , exportGroupURI ) ; _log . info ( String . format ( STRING , exportGroup . getLabel ( ) , exportGroup . getId... | 267 |
java-test-9115 | java | For what purpose do we add fczonereferences for each of the new volumes ? | so that in the future a zone will not be deleted until all volumes using the zone have been removed . | public boolean zone Export Add Volumes ( URI export Group URI , List < URI > export Mask UR Is , Collection < URI > volume UR Is , String token ) { Export Group export Group = db Client . query Object ( Export Group . class , export Group URI ) ; log . info ( String . format ( STRING , export Group . get Label ( ) , ex... | public boolean zoneExportAddVolumes ( URI exportGroupURI , List < URI > exportMaskURIs , Collection < URI > volumeURIs , String token ) { ExportGroup exportGroup = _dbClient . queryObject ( ExportGroup . class , exportGroupURI ) ; _log . info ( String . format ( STRING , exportGroup . getLabel ( ) , exportGroup . getId... | 267 |
java-test-9116 | java | When did the code call ? | when volumes are added to exportmasks | public boolean zone Export Add Volumes ( URI export Group URI , List < URI > export Mask UR Is , Collection < URI > volume UR Is , String token ) { Export Group export Group = db Client . query Object ( Export Group . class , export Group URI ) ; log . info ( String . format ( STRING , export Group . get Label ( ) , ex... | public boolean zoneExportAddVolumes ( URI exportGroupURI , List < URI > exportMaskURIs , Collection < URI > volumeURIs , String token ) { ExportGroup exportGroup = _dbClient . queryObject ( ExportGroup . class , exportGroupURI ) ; _log . info ( String . format ( STRING , exportGroup . getLabel ( ) , exportGroup . getId... | 267 |
java-test-9117 | java | What does the code create ? | the window for the info popup | private void create Info Window ( ) { info Window = new J Window ( Swing Utilities . get Window Ancestor ( text Field ) ) ; info Label = new J Label ( ) ; info Window . add ( info Label ) ; J Panel content Pane = ( J Panel ) info Window . get Content Pane ( ) ; Border border = Border Factory . create Compound Border ( ... | private void createInfoWindow ( ) { infoWindow = new JWindow ( SwingUtilities . getWindowAncestor ( textField ) ) ; infoLabel = new JLabel ( ) ; infoWindow . add ( infoLabel ) ; JPanel contentPane = ( JPanel ) infoWindow . getContentPane ( ) ; Border border = BorderFactory . createCompoundBorder ( BorderFactory . creat... | 187 |
java-test-9118 | java | What does this create ? | the project in the workspace | void create Project ( final I Project Description description , final I Project proj , final I Progress Monitor monitor ) throws Core Exception , Operation Canceled Exception { try { monitor . begin Task ( STRING , NUM ) ; proj . create ( description , new Sub Progress Monitor ( monitor , NUM ) ) ; if ( monitor . is Ca... | void createProject ( final IProjectDescription description , final IProject proj , final IProgressMonitor monitor ) throws CoreException , OperationCanceledException { try { monitor . beginTask ( STRING , _NUM ) ; proj . create ( description , new SubProgressMonitor ( monitor , _NUM ) ) ; if ( monitor . isCanceled ( ) ... | 327 |
java-test-9121 | java | What does the code find ? | a file within the plugin directory | public static File locate Plugin File ( String path ) { Bundle bundle = Platform . get Bundle ( Checker Plugin . PLUGIN ID ) ; Path checkers JAR = new Path ( path ) ; URL checkers Jar URL ; try { checkers Jar URL = File Locator . to File URL ( File Locator . find ( bundle , checkers JAR , null ) ) ; } catch ( IO Except... | public static File locatePluginFile ( String path ) { Bundle bundle = Platform . getBundle ( CheckerPlugin . PLUGIN_ID ) ; Path checkersJAR = new Path ( path ) ; URL checkersJarURL ; try { checkersJarURL = FileLocator . toFileURL ( FileLocator . find ( bundle , checkersJAR , null ) ) ; } catch ( IOException e ) { throw... | 180 |
java-test-9122 | java | How does the code create a type - 3 message ? | with the specified parameters | public Type 3 Message ( int flags , byte [ ] lm Response , byte [ ] nt Response , String domain , String user , String workstation ) { set Flags ( flags ) ; set LM Response ( lm Response ) ; set NT Response ( nt Response ) ; set Domain ( domain ) ; set User ( user ) ; set Workstation ( workstation ) ; } | public Type3Message ( int flags , byte [ ] lmResponse , byte [ ] ntResponse , String domain , String user , String workstation ) { setFlags ( flags ) ; setLMResponse ( lmResponse ) ; setNTResponse ( ntResponse ) ; setDomain ( domain ) ; setUser ( user ) ; setWorkstation ( workstation ) ; } | 71 |
java-test-9127 | java | What are has notified that an animation frame is complete if the framenotify parameter is true if the framenotify parameter is true if the framenotify parameter is true ? | the consumers | public synchronized void new Pixels ( int x , int y , int w , int h , boolean framenotify ) { if ( animating ) { if ( fullbuffers ) { x = y = NUM ; w = width ; h = height ; } else { if ( x < NUM ) { w += x ; x = NUM ; } if ( x + w > width ) { w = width - x ; } if ( y < NUM ) { h += y ; y = NUM ; } if ( y + h > height )... | public synchronized void newPixels ( int x , int y , int w , int h , boolean framenotify ) { if ( animating ) { if ( fullbuffers ) { x = y = _NUM ; w = width ; h = height ; } else { if ( x < _NUM ) { w += x ; x = _NUM ; } if ( x + w > width ) { w = width - x ; } if ( y < _NUM ) { h += y ; y = _NUM ; } if ( y + h > heig... | 221 |
java-test-9128 | java | What does the code send to any imageconsumers that are currently interested in the data for this image ? | a rectangular region of the buffer of pixels | public synchronized void new Pixels ( int x , int y , int w , int h , boolean framenotify ) { if ( animating ) { if ( fullbuffers ) { x = y = NUM ; w = width ; h = height ; } else { if ( x < NUM ) { w += x ; x = NUM ; } if ( x + w > width ) { w = width - x ; } if ( y < NUM ) { h += y ; y = NUM ; } if ( y + h > height )... | public synchronized void newPixels ( int x , int y , int w , int h , boolean framenotify ) { if ( animating ) { if ( fullbuffers ) { x = y = _NUM ; w = width ; h = height ; } else { if ( x < _NUM ) { w += x ; x = _NUM ; } if ( x + w > width ) { w = width - x ; } if ( y < _NUM ) { h += y ; y = _NUM ; } if ( y + h > heig... | 221 |
java-test-9129 | java | What are the consumers has notified if the framenotify parameter is true if the framenotify parameter is true if the framenotify parameter is true ? | that an animation frame is complete | public synchronized void new Pixels ( int x , int y , int w , int h , boolean framenotify ) { if ( animating ) { if ( fullbuffers ) { x = y = NUM ; w = width ; h = height ; } else { if ( x < NUM ) { w += x ; x = NUM ; } if ( x + w > width ) { w = width - x ; } if ( y < NUM ) { h += y ; y = NUM ; } if ( y + h > height )... | public synchronized void newPixels ( int x , int y , int w , int h , boolean framenotify ) { if ( animating ) { if ( fullbuffers ) { x = y = _NUM ; w = width ; h = height ; } else { if ( x < _NUM ) { w += x ; x = _NUM ; } if ( x + w > width ) { w = width - x ; } if ( y < _NUM ) { h += y ; y = _NUM ; } if ( y + h > heig... | 221 |
java-test-9130 | java | How was the full buffer update flag turned ? | with the setfullbufferupdates ( ) method | public synchronized void new Pixels ( int x , int y , int w , int h , boolean framenotify ) { if ( animating ) { if ( fullbuffers ) { x = y = NUM ; w = width ; h = height ; } else { if ( x < NUM ) { w += x ; x = NUM ; } if ( x + w > width ) { w = width - x ; } if ( y < NUM ) { h += y ; y = NUM ; } if ( y + h > height )... | public synchronized void newPixels ( int x , int y , int w , int h , boolean framenotify ) { if ( animating ) { if ( fullbuffers ) { x = y = _NUM ; w = width ; h = height ; } else { if ( x < _NUM ) { w += x ; x = _NUM ; } if ( x + w > width ) { w = width - x ; } if ( y < _NUM ) { h += y ; y = _NUM ; } if ( y + h > heig... | 221 |
java-test-9131 | java | How has the animation flag been turned ? | through the setanimated ( ) method | public synchronized void new Pixels ( int x , int y , int w , int h , boolean framenotify ) { if ( animating ) { if ( fullbuffers ) { x = y = NUM ; w = width ; h = height ; } else { if ( x < NUM ) { w += x ; x = NUM ; } if ( x + w > width ) { w = width - x ; } if ( y < NUM ) { h += y ; y = NUM ; } if ( y + h > height )... | public synchronized void newPixels ( int x , int y , int w , int h , boolean framenotify ) { if ( animating ) { if ( fullbuffers ) { x = y = _NUM ; w = width ; h = height ; } else { if ( x < _NUM ) { w += x ; x = _NUM ; } if ( x + w > width ) { w = width - x ; } if ( y < _NUM ) { h += y ; y = _NUM ; } if ( y + h > heig... | 221 |
java-test-9132 | java | How does the code update the cache ? | using the given statuses | protected List < I Resource > update Cache ( I Resource parent , final ISVN Status [ ] statuses ) throws Core Exception { final List < I Resource > result = new Array List < I Resource > ( ) ; if ( statuses != null ) { for ( ISVN Status status : statuses ) { I Resource resource = SVN Workspace Root . get Resource For (... | protected List < IResource > updateCache ( IResource parent , final ISVNStatus [ ] statuses ) throws CoreException { final List < IResource > result = new ArrayList < IResource > ( ) ; if ( statuses != null ) { for ( ISVNStatus status : statuses ) { IResource resource = SVNWorkspaceRoot . getResourceFor ( parent , stat... | 94 |
java-test-9135 | java | What does the code write ? | a 32 bit signed value | public void write SI 32 ( int value ) throws IO Exception { flush Bits ( ) ; out . write ( value & NUM ) ; out . write ( value > > NUM ) ; out . write ( value > > NUM ) ; out . write ( value > > NUM ) ; bytes Written += NUM ; } | public void writeSI32 ( int value ) throws IOException { flushBits ( ) ; out . write ( value & _NUM ) ; out . write ( value > > _NUM ) ; out . write ( value > > _NUM ) ; out . write ( value > > _NUM ) ; bytesWritten += _NUM ; } | 63 |
java-test-9136 | java | What does it replace ? | with its mapping | private static void map ( final String Builder buffer , final Byte Sequence sequence , final boolean trim , final boolean fold Case ) { final String value = sequence . to String ( ) ; for ( int i = NUM ; i < value . length ( ) ; i ++ ) { final char c = value . char At ( i ) ; if ( MAP 2 NULL . contains ( c ) ) { contin... | private static void map ( final StringBuilder buffer , final ByteSequence sequence , final boolean trim , final boolean foldCase ) { final String value = sequence . toString ( ) ; for ( int i = _NUM ; i < value . length ( ) ; i ++ ) { final char c = value . charAt ( i ) ; if ( MAP_2_NULL . contains ( c ) ) { continue ;... | 165 |
java-test-9144 | java | What does the code create ? | the next relevant zero - coverage locusinfo | private Locus Info create Next Uncovered Locus Info ( final Locus stop Before Locus ) { while ( last Reference Sequence <= stop Before Locus . get Sequence Index ( ) && last Reference Sequence <= reference Sequence Mask . get Max Sequence Index ( ) ) { if ( last Reference Sequence == stop Before Locus . get Sequence In... | private LocusInfo createNextUncoveredLocusInfo ( final Locus stopBeforeLocus ) { while ( lastReferenceSequence <= stopBeforeLocus . getSequenceIndex ( ) && lastReferenceSequence <= referenceSequenceMask . getMaxSequenceIndex ( ) ) { if ( lastReferenceSequence == stopBeforeLocus . getSequenceIndex ( ) && lastPosition + ... | 231 |
java-test-9145 | java | How is the shape drawn ? | as the rubberband | private void reset Shape Bounds ( ) { Round Rectangle 2 D . Double rrect = ( Round Rectangle 2 D . Double ) shape ; rrect . set Round Rect ( NUM , NUM , get Bounds ( ) . width - NUM , get Bounds ( ) . height - NUM , NUM , NUM ) ; } | private void resetShapeBounds ( ) { RoundRectangle2D . Double rrect = ( RoundRectangle2D . Double ) shape ; rrect . setRoundRect ( _NUM , _NUM , getBounds ( ) . width - _NUM , getBounds ( ) . height - _NUM , _NUM , _NUM ) ; } | 60 |
java-test-9146 | java | What need to be set so that when drawn they lie just inside the boundaries of the component on all four sides ? | the boundaries of the shape | private void reset Shape Bounds ( ) { Round Rectangle 2 D . Double rrect = ( Round Rectangle 2 D . Double ) shape ; rrect . set Round Rect ( NUM , NUM , get Bounds ( ) . width - NUM , get Bounds ( ) . height - NUM , NUM , NUM ) ; } | private void resetShapeBounds ( ) { RoundRectangle2D . Double rrect = ( RoundRectangle2D . Double ) shape ; rrect . setRoundRect ( _NUM , _NUM , getBounds ( ) . width - _NUM , getBounds ( ) . height - _NUM , _NUM , _NUM ) ; } | 60 |
java-test-9147 | java | For what purpose do the boundaries of the shape need to be set ? | so that when drawn they lie just inside the boundaries of the component on all four sides | private void reset Shape Bounds ( ) { Round Rectangle 2 D . Double rrect = ( Round Rectangle 2 D . Double ) shape ; rrect . set Round Rect ( NUM , NUM , get Bounds ( ) . width - NUM , get Bounds ( ) . height - NUM , NUM , NUM ) ; } | private void resetShapeBounds ( ) { RoundRectangle2D . Double rrect = ( RoundRectangle2D . Double ) shape ; rrect . setRoundRect ( _NUM , _NUM , getBounds ( ) . width - _NUM , getBounds ( ) . height - _NUM , _NUM , _NUM ) ; } | 60 |
java-test-9148 | java | When did they lie just inside the boundaries of the component on all four sides ? | when drawn | private void reset Shape Bounds ( ) { Round Rectangle 2 D . Double rrect = ( Round Rectangle 2 D . Double ) shape ; rrect . set Round Rect ( NUM , NUM , get Bounds ( ) . width - NUM , get Bounds ( ) . height - NUM , NUM , NUM ) ; } | private void resetShapeBounds ( ) { RoundRectangle2D . Double rrect = ( RoundRectangle2D . Double ) shape ; rrect . setRoundRect ( _NUM , _NUM , getBounds ( ) . width - _NUM , getBounds ( ) . height - _NUM , _NUM , _NUM ) ; } | 60 |
java-test-9149 | java | What does the code get ? | a list of all of the columns on a table | public Collection < String > list Columns ( String table ) throws Database Exception { Collection < String > result = new Array List < String > ( ) ; Result Set rs = null ; try { Database Meta Data dbm = connection . get Meta Data ( ) ; rs = dbm . get Columns ( null , null , table , null ) ; while ( rs . next ( ) ) { r... | public Collection < String > listColumns ( String table ) throws DatabaseException { Collection < String > result = new ArrayList < String > ( ) ; ResultSet rs = null ; try { DatabaseMetaData dbm = connection . getMetaData ( ) ; rs = dbm . getColumns ( null , null , table , null ) ; while ( rs . next ( ) ) { result . a... | 139 |
java-test-9150 | java | Why did the code synchronize ? | because simpledatformat aren ' t thread safe | private static synchronized String format And Parse ( Simple Date Format format Date , Simple Date Format parse Date , String text ) { try { Date date = parse Date . parse ( text ) ; String result = format Date . format ( date ) ; return result ; } catch ( Parse Exception e ) { logger . warning ( STRING + text ) ; } re... | private static synchronized String formatAndParse ( SimpleDateFormat formatDate , SimpleDateFormat parseDate , String text ) { try { Date date = parseDate . parse ( text ) ; String result = formatDate . format ( date ) ; return result ; } catch ( ParseException e ) { logger . warning ( STRING + text ) ; } return STRING... | 73 |
java-test-9152 | java | What does the code process ? | the given add - on changes | void process Add On Changes ( Window caller , Add On Dependency Checker . Add On Changes Result changes ) { if ( addons Dialog != null ) { addons Dialog . set Downloading Updates ( ) ; } if ( get View ( ) != null ) { Set < Add On > add Ons = new Hash Set < > ( changes . get Uninstalls ( ) ) ; add Ons . add All ( change... | void processAddOnChanges ( Window caller , AddOnDependencyChecker . AddOnChangesResult changes ) { if ( addonsDialog != null ) { addonsDialog . setDownloadingUpdates ( ) ; } if ( getView ( ) != null ) { Set < AddOn > addOns = new HashSet < > ( changes . getUninstalls ( ) ) ; addOns . addAll ( changes . getOldVersions (... | 249 |
java-test-9154 | java | Where does all elements remove ? | at the specified positions in the list | public void remove Positions ( Collection < Integer > positions ) { Array List < Integer > positions List = new Array List < Integer > ( positions ) ; Collections . sort ( positions List ) ; Collections . reverse ( positions List ) ; for ( int position : positions List ) { m Items . remove ( position ) ; } notify Data ... | public void removePositions ( Collection < Integer > positions ) { ArrayList < Integer > positionsList = new ArrayList < Integer > ( positions ) ; Collections . sort ( positionsList ) ; Collections . reverse ( positionsList ) ; for ( int position : positionsList ) { mItems . remove ( position ) ; } notifyDataSetChanged... | 72 |
java-test-9155 | java | What does the code create ? | a context handler for the directory | private Context Handler create Context Handler ( String directory , boolean is In Jar , File install Root Directory , int expires In Seconds ) { final Context Handler context Handler = new Context Handler ( ) ; final Resource Handler resource Handler = new Expires Resource Handler ( expires In Seconds ) ; final String ... | private ContextHandler createContextHandler ( String directory , boolean isInJar , File installRootDirectory , int expiresInSeconds ) { final ContextHandler contextHandler = new ContextHandler ( ) ; final ResourceHandler resourceHandler = new ExpiresResourceHandler ( expiresInSeconds ) ; final String directoryWithSlash... | 178 |
java-test-9156 | java | When did the code invoke ? | when an http request is received | public void http Request ( Http Request Event e ) throws java . io . IO Exception { String request = e . get Request ( ) ; if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING + request + STRING ) ; } if ( request . char At ( NUM ) == STRING ) { request = request . substring ( NUM , request . length ( ) ) ; } ... | public void httpRequest ( HttpRequestEvent e ) throws java . io . IOException { String request = e . getRequest ( ) ; if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING + request + STRING ) ; } if ( request . charAt ( _NUM ) == STRING ) { request = request . substring ( _NUM , request . length ( ) ) ; } int ... | 235 |
java-test-9157 | java | For what purpose does the code transform the annotations on the given annotated declaration ? | for inclusion on the given target element type | public List < JC Annotation > transform Annotations ( Output Element target , Tree . Declaration annotated ) { Enum Set < Output Element > outputs ; if ( annotated instanceof Tree . Any Class ) { outputs = Annotation Util . outputs ( ( Tree . Any Class ) annotated ) ; } else if ( annotated instanceof Tree . Any Interfa... | public List < JCAnnotation > transformAnnotations ( OutputElement target , Tree . Declaration annotated ) { EnumSet < OutputElement > outputs ; if ( annotated instanceof Tree . AnyClass ) { outputs = AnnotationUtil . outputs ( ( Tree . AnyClass ) annotated ) ; } else if ( annotated instanceof Tree . AnyInterface ) { ou... | 347 |
java-test-9158 | java | What does the code transform for inclusion on the given target element type ? | the annotations on the given annotated declaration | public List < JC Annotation > transform Annotations ( Output Element target , Tree . Declaration annotated ) { Enum Set < Output Element > outputs ; if ( annotated instanceof Tree . Any Class ) { outputs = Annotation Util . outputs ( ( Tree . Any Class ) annotated ) ; } else if ( annotated instanceof Tree . Any Interfa... | public List < JCAnnotation > transformAnnotations ( OutputElement target , Tree . Declaration annotated ) { EnumSet < OutputElement > outputs ; if ( annotated instanceof Tree . AnyClass ) { outputs = AnnotationUtil . outputs ( ( Tree . AnyClass ) annotated ) ; } else if ( annotated instanceof Tree . AnyInterface ) { ou... | 347 |
java-test-9159 | java | What does the code ensure ? | the jsp engine is initialized correctly | private List < Container Initializer > jsp Initializers ( ) { Jetty Jasper Initializer sci = new Jetty Jasper Initializer ( ) ; Container Initializer initializer = new Container Initializer ( sci , null ) ; List < Container Initializer > initializers = new Array List < Container Initializer > ( ) ; initializers . add (... | private List < ContainerInitializer > jspInitializers ( ) { JettyJasperInitializer sci = new JettyJasperInitializer ( ) ; ContainerInitializer initializer = new ContainerInitializer ( sci , null ) ; List < ContainerInitializer > initializers = new ArrayList < ContainerInitializer > ( ) ; initializers . add ( initialize... | 64 |
java-test-9161 | java | What will it attempt ? | to acquire the locks needed by the job | public synchronized void add ( Job job ) { boolean can Run Immediately = dag Manager . add Job ( job ) ; if ( can Run Immediately ) { LOG . debug ( STRING + job + STRING ) ; jobs To Run . add ( job ) ; } increment Submitted Job Count ( ) ; } | public synchronized void add ( Job job ) { boolean canRunImmediately = dagManager . addJob ( job ) ; if ( canRunImmediately ) { LOG . debug ( STRING + job + STRING ) ; jobsToRun . add ( job ) ; } incrementSubmittedJobCount ( ) ; } | 59 |
java-test-9162 | java | What do the jobs hold ? | the required locks | public synchronized void add ( Job job ) { boolean can Run Immediately = dag Manager . add Job ( job ) ; if ( can Run Immediately ) { LOG . debug ( STRING + job + STRING ) ; jobs To Run . add ( job ) ; } increment Submitted Job Count ( ) ; } | public synchronized void add ( Job job ) { boolean canRunImmediately = dagManager . addJob ( job ) ; if ( canRunImmediately ) { LOG . debug ( STRING + job + STRING ) ; jobsToRun . add ( job ) ; } incrementSubmittedJobCount ( ) ; } | 59 |
java-test-9163 | java | Till when will it wait if not possible if not possible ? | until the jobs that hold the required locks give them up | public synchronized void add ( Job job ) { boolean can Run Immediately = dag Manager . add Job ( job ) ; if ( can Run Immediately ) { LOG . debug ( STRING + job + STRING ) ; jobs To Run . add ( job ) ; } increment Submitted Job Count ( ) ; } | public synchronized void add ( Job job ) { boolean canRunImmediately = dagManager . addJob ( job ) ; if ( canRunImmediately ) { LOG . debug ( STRING + job + STRING ) ; jobsToRun . add ( job ) ; } incrementSubmittedJobCount ( ) ; } | 59 |
java-test-9164 | java | What does the code add ? | the given job to run | public synchronized void add ( Job job ) { boolean can Run Immediately = dag Manager . add Job ( job ) ; if ( can Run Immediately ) { LOG . debug ( STRING + job + STRING ) ; jobs To Run . add ( job ) ; } increment Submitted Job Count ( ) ; } | public synchronized void add ( Job job ) { boolean canRunImmediately = dagManager . addJob ( job ) ; if ( canRunImmediately ) { LOG . debug ( STRING + job + STRING ) ; jobsToRun . add ( job ) ; } incrementSubmittedJobCount ( ) ; } | 59 |
java-test-9165 | java | How will jobs be executed with this requirement in mind ? | in the order that they are added | public synchronized void add ( Job job ) { boolean can Run Immediately = dag Manager . add Job ( job ) ; if ( can Run Immediately ) { LOG . debug ( STRING + job + STRING ) ; jobs To Run . add ( job ) ; } increment Submitted Job Count ( ) ; } | public synchronized void add ( Job job ) { boolean canRunImmediately = dagManager . addJob ( job ) ; if ( canRunImmediately ) { LOG . debug ( STRING + job + STRING ) ; jobsToRun . add ( job ) ; } incrementSubmittedJobCount ( ) ; } | 59 |
java-test-9166 | java | What hold the required locks ? | the jobs | public synchronized void add ( Job job ) { boolean can Run Immediately = dag Manager . add Job ( job ) ; if ( can Run Immediately ) { LOG . debug ( STRING + job + STRING ) ; jobs To Run . add ( job ) ; } increment Submitted Job Count ( ) ; } | public synchronized void add ( Job job ) { boolean canRunImmediately = dagManager . addJob ( job ) ; if ( canRunImmediately ) { LOG . debug ( STRING + job + STRING ) ; jobsToRun . add ( job ) ; } incrementSubmittedJobCount ( ) ; } | 59 |
java-test-9167 | java | How does the code redraw the panel ? | with the legend entries | private void update Legends ( ) { if ( m span == null ) { m span = new J Panel ( ) ; } J Panel padder = new J Panel ( ) ; J Panel padd 2 = new J Panel ( ) ; m span . set Preferred Size ( new Dimension ( m span . get Preferred Size ( ) . width , ( m plots . size ( ) + NUM ) * NUM ) ) ; m span . set Maximum Size ( new Di... | private void updateLegends ( ) { if ( m_span == null ) { m_span = new JPanel ( ) ; } JPanel padder = new JPanel ( ) ; JPanel padd2 = new JPanel ( ) ; m_span . setPreferredSize ( new Dimension ( m_span . getPreferredSize ( ) . width , ( m_plots . size ( ) + _NUM ) * _NUM ) ) ; m_span . setMaximumSize ( new Dimension ( m... | 473 |
java-test-9168 | java | What do the first occurrence of the separator character ignore ? | the escaped separators starting from the index | public static int find Next ( String str , char separator , char escape Char , int start , String Builder split ) { int num Pre Escapes = NUM ; for ( int i = start ; i < str . length ( ) ; i ++ ) { char cur Char = str . char At ( i ) ; if ( num Pre Escapes == NUM && cur Char == separator ) { return i ; } else { split .... | public static int findNext ( String str , char separator , char escapeChar , int start , StringBuilder split ) { int numPreEscapes = _NUM ; for ( int i = start ; i < str . length ( ) ; i ++ ) { char curChar = str . charAt ( i ) ; if ( numPreEscapes == _NUM && curChar == separator ) { return i ; } else { split . append ... | 120 |
java-test-9169 | java | What is ignoring the escaped separators starting from the index ? | the first occurrence of the separator character | public static int find Next ( String str , char separator , char escape Char , int start , String Builder split ) { int num Pre Escapes = NUM ; for ( int i = start ; i < str . length ( ) ; i ++ ) { char cur Char = str . char At ( i ) ; if ( num Pre Escapes == NUM && cur Char == separator ) { return i ; } else { split .... | public static int findNext ( String str , char separator , char escapeChar , int start , StringBuilder split ) { int numPreEscapes = _NUM ; for ( int i = start ; i < str . length ( ) ; i ++ ) { char curChar = str . charAt ( i ) ; if ( numPreEscapes == _NUM && curChar == separator ) { return i ; } else { split . append ... | 120 |
java-test-9172 | java | What listed in the file ? | temporary files | private void delete Old Temp ( File file Cfg ) { Buffered Reader reader = null ; try { int count = NUM ; reader = new Buffered Reader ( new File Reader ( file Cfg ) ) ; String s Line ; while ( ( s Line = reader . read Line ( ) ) != null ) { File file = new File ( s Line ) ; if ( ! file . exists ( ) ) { continue ; } if ... | private void deleteOldTemp ( File fileCfg ) { BufferedReader reader = null ; try { int count = _NUM ; reader = new BufferedReader ( new FileReader ( fileCfg ) ) ; String sLine ; while ( ( sLine = reader . readLine ( ) ) != null ) { File file = new File ( sLine ) ; if ( ! file . exists ( ) ) { continue ; } if ( file . d... | 170 |
java-test-9173 | java | For what purpose are node_count / 2 + 1 dbsvc instances are active on other nodes in the cluster ? | so that if the current node is powered off , a quorum will still be maintained | protected boolean is Quorum Maintained ( ) { if ( node Count == NUM ) { log . info ( STRING ) ; return BOOL ; } int quorum Node Cnt = node Count / NUM + NUM ; Coordinator Client coordinator Client = coordinator . get Coordinator Client ( ) ; List < Service > all Active Dbsvcs = coordinator Client . locate All Svcs All ... | protected boolean isQuorumMaintained ( ) { if ( nodeCount == _NUM ) { log . info ( STRING ) ; return _BOOL ; } int quorumNodeCnt = nodeCount / _NUM + _NUM ; CoordinatorClient coordinatorClient = coordinator . getCoordinatorClient ( ) ; List < Service > allActiveDbsvcs = coordinatorClient . locateAllSvcsAllVers ( Consta... | 234 |
java-test-9176 | java | What is the code produces if non - null <p> hash = absolute value of java string hash of path ( resolved if possible ) combined with hash of symbol if non - null <p> hash = absolute value of java string hash of path ( resolved if possible ) combined with hash of symbol ? | identifier = [ prefix ] path [ _ symbol | public static String create Mangled Name ( Source source , String path , boolean str Type , Map < String , Object > attrs , String prefix ) { String Builder buf = new String Builder ( NUM ) ; if ( prefix != null ) buf . append ( prefix ) ; int hash = attrs . hash Code ( ) ; String mime Type = ( String ) attrs . get ( T... | public static String createMangledName ( Source source , String path , boolean strType , Map < String , Object > attrs , String prefix ) { StringBuilder buf = new StringBuilder ( _NUM ) ; if ( prefix != null ) buf . append ( prefix ) ; int hash = attrs . hashCode ( ) ; String mimeType = ( String ) attrs . get ( Transco... | 209 |
java-test-9177 | java | What contains only legal i d chars ? | non - null < p > result | public static String create Mangled Name ( Source source , String path , boolean str Type , Map < String , Object > attrs , String prefix ) { String Builder buf = new String Builder ( NUM ) ; if ( prefix != null ) buf . append ( prefix ) ; int hash = attrs . hash Code ( ) ; String mime Type = ( String ) attrs . get ( T... | public static String createMangledName ( Source source , String path , boolean strType , Map < String , Object > attrs , String prefix ) { StringBuilder buf = new StringBuilder ( _NUM ) ; if ( prefix != null ) buf . append ( prefix ) ; int hash = attrs . hashCode ( ) ; String mimeType = ( String ) attrs . get ( Transco... | 209 |
java-test-9178 | java | What did non - null <p> result contain ? | only legal i d chars | public static String create Mangled Name ( Source source , String path , boolean str Type , Map < String , Object > attrs , String prefix ) { String Builder buf = new String Builder ( NUM ) ; if ( prefix != null ) buf . append ( prefix ) ; int hash = attrs . hash Code ( ) ; String mime Type = ( String ) attrs . get ( T... | public static String createMangledName ( Source source , String path , boolean strType , Map < String , Object > attrs , String prefix ) { StringBuilder buf = new StringBuilder ( _NUM ) ; if ( prefix != null ) buf . append ( prefix ) ; int hash = attrs . hashCode ( ) ; String mimeType = ( String ) attrs . get ( Transco... | 209 |
java-test-9180 | java | For what purpose do unicode http ? | org / public / unidata / unihan | public void load Config ( ) { byte [ ] array ; String caption ; char ch ; int i ; String text ; caption Map = new Tree Map < Integer , String > ( ) ; caption Put ( NUM , STRING ) ; caption Put ( NUM , STRING ) ; caption Put ( NUM , STRING ) ; caption Put ( NUM , STRING ) ; caption Put ( NUM , STRING ) ; caption Put ( N... | public void loadConfig ( ) { byte [ ] array ; String caption ; char ch ; int i ; String text ; captionMap = new TreeMap < Integer , String > ( ) ; captionPut ( _NUM , STRING ) ; captionPut ( _NUM , STRING ) ; captionPut ( _NUM , STRING ) ; captionPut ( _NUM , STRING ) ; captionPut ( _NUM , STRING ) ; captionPut ( _NUM ... | 935 |
java-test-9181 | java | What do we continue ? | normal execution | public void load Config ( ) { byte [ ] array ; String caption ; char ch ; int i ; String text ; caption Map = new Tree Map < Integer , String > ( ) ; caption Put ( NUM , STRING ) ; caption Put ( NUM , STRING ) ; caption Put ( NUM , STRING ) ; caption Put ( NUM , STRING ) ; caption Put ( NUM , STRING ) ; caption Put ( N... | public void loadConfig ( ) { byte [ ] array ; String caption ; char ch ; int i ; String text ; captionMap = new TreeMap < Integer , String > ( ) ; captionPut ( _NUM , STRING ) ; captionPut ( _NUM , STRING ) ; captionPut ( _NUM , STRING ) ; captionPut ( _NUM , STRING ) ; captionPut ( _NUM , STRING ) ; captionPut ( _NUM ... | 935 |
java-test-9182 | java | Where do what follow ? | in dump menus | private static boolean add Follow In Dump Menu ( final J Popup Menu menu , final C Debug Perspective Model view Model , final I Debugger debugger , final Target Process Thread active Thread , final I Navi Module module , final C Operand Tree Node tree Node ) { final Big Integer simple Address = get Simple Address ( tre... | private static boolean addFollowInDumpMenu ( final JPopupMenu menu , final CDebugPerspectiveModel viewModel , final IDebugger debugger , final TargetProcessThread activeThread , final INaviModule module , final COperandTreeNode treeNode ) { final BigInteger simpleAddress = getSimpleAddress ( treeNode , activeThread . g... | 244 |
java-test-9183 | java | What does the code compare with the weight of another attributeweight object ? | the weight of this object | @ Override public int compare To ( Attribute Weight o ) { double w1 = weight ; double w2 = o . weight ; assert ( weights == o . weights ) ; if ( weights . get Weight Type ( ) == Attribute Weights . ABSOLUTE WEIGHTS ) { w1 = Math . abs ( w1 ) ; w2 = Math . abs ( w2 ) ; } return Double . compare ( w1 , w2 ) * weights . g... | @ Override public int compareTo ( AttributeWeight o ) { double w1 = weight ; double w2 = o . weight ; assert ( weights == o . weights ) ; if ( weights . getWeightType ( ) == AttributeWeights . ABSOLUTE_WEIGHTS ) { w1 = Math . abs ( w1 ) ; w2 = Math . abs ( w2 ) ; } return Double . compare ( w1 , w2 ) * weights . getSor... | 88 |
java-test-9184 | java | What may the code use also ? | the absolute weight | @ Override public int compare To ( Attribute Weight o ) { double w1 = weight ; double w2 = o . weight ; assert ( weights == o . weights ) ; if ( weights . get Weight Type ( ) == Attribute Weights . ABSOLUTE WEIGHTS ) { w1 = Math . abs ( w1 ) ; w2 = Math . abs ( w2 ) ; } return Double . compare ( w1 , w2 ) * weights . g... | @ Override public int compareTo ( AttributeWeight o ) { double w1 = weight ; double w2 = o . weight ; assert ( weights == o . weights ) ; if ( weights . getWeightType ( ) == AttributeWeights . ABSOLUTE_WEIGHTS ) { w1 = Math . abs ( w1 ) ; w2 = Math . abs ( w2 ) ; } return Double . compare ( w1 , w2 ) * weights . getSor... | 88 |
java-test-9185 | java | What does the code send to the client ? | the committed text | private void send Committed Text ( ) { Attributed String as = new Attributed String ( buffer . to String ( ) ) ; context . dispatch Input Method Event ( Input Method Event . INPUT METHOD TEXT CHANGED , as . get Iterator ( ) , buffer . length ( ) , Text Hit Info . leading ( insertion Point ) , null ) ; buffer . set Leng... | private void sendCommittedText ( ) { AttributedString as = new AttributedString ( buffer . toString ( ) ) ; context . dispatchInputMethodEvent ( InputMethodEvent . INPUT_METHOD_TEXT_CHANGED , as . getIterator ( ) , buffer . length ( ) , TextHitInfo . leading ( insertionPoint ) , null ) ; buffer . setLength ( _NUM ) ; i... | 84 |
java-test-9186 | java | What does the code verify finally ? | the write was lost | public void test restart Safe one Write No Commit ( ) { I Atomic Store store = ( I Atomic Store ) get Store ( ) ; try { assert True ( store . is Stable ( ) ) ; final Random r = new Random ( ) ; final int len = NUM ; final byte [ ] expected = new byte [ len ] ; r . next Bytes ( expected ) ; final Byte Buffer tmp = Byte ... | public void test_restartSafe_oneWriteNoCommit ( ) { IAtomicStore store = ( IAtomicStore ) getStore ( ) ; try { assertTrue ( store . isStable ( ) ) ; final Random r = new Random ( ) ; final int len = _NUM ; final byte [ ] expected = new byte [ len ] ; r . nextBytes ( expected ) ; final ByteBuffer tmp = ByteBuffer . wrap... | 299 |
java-test-9189 | java | What forms a pal d [ i ] , which is the mincut for s [ i . . n - 1 ] once we comes to a pal [ i ] [ j ] = = true whether ? | i . . j | public int min Cut ( String s ) { if ( s == null || s . length ( ) == NUM ) return NUM ; int len = s . length ( ) ; boolean [ ] [ ] p = new boolean [ len ] [ len ] ; for ( int i = NUM ; i < len ; i ++ ) Arrays . fill ( p [ i ] , BOOL ) ; int [ ] results = new int [ len ] ; for ( int start = len - NUM ; start >= NUM ; s... | public int minCut ( String s ) { if ( s == null || s . length ( ) == _NUM ) return _NUM ; int len = s . length ( ) ; boolean [ ] [ ] p = new boolean [ len ] [ len ] ; for ( int i = _NUM ; i < len ; i ++ ) Arrays . fill ( p [ i ] , _BOOL ) ; int [ ] results = new int [ len ] ; for ( int start = len - _NUM ; start >= _NU... | 251 |
java-test-9190 | java | What do it compare if j = = n - 1 ? | to the exisiting mincut num d [ i ] , repalce if smaller | public int min Cut ( String s ) { if ( s == null || s . length ( ) == NUM ) return NUM ; int len = s . length ( ) ; boolean [ ] [ ] p = new boolean [ len ] [ len ] ; for ( int i = NUM ; i < len ; i ++ ) Arrays . fill ( p [ i ] , BOOL ) ; int [ ] results = new int [ len ] ; for ( int start = len - NUM ; start >= NUM ; s... | public int minCut ( String s ) { if ( s == null || s . length ( ) == _NUM ) return _NUM ; int len = s . length ( ) ; boolean [ ] [ ] p = new boolean [ len ] [ len ] ; for ( int i = _NUM ; i < len ; i ++ ) Arrays . fill ( p [ i ] , _BOOL ) ; int [ ] results = new int [ len ] ; for ( int start = len - _NUM ; start >= _NU... | 251 |
java-test-9191 | java | What does i . . j form whether ? | a pal d [ i ] , which is the mincut for s [ i . . n - 1 ] once we comes to a pal [ i ] [ j ] = = true | public int min Cut ( String s ) { if ( s == null || s . length ( ) == NUM ) return NUM ; int len = s . length ( ) ; boolean [ ] [ ] p = new boolean [ len ] [ len ] ; for ( int i = NUM ; i < len ; i ++ ) Arrays . fill ( p [ i ] , BOOL ) ; int [ ] results = new int [ len ] ; for ( int start = len - NUM ; start >= NUM ; s... | public int minCut ( String s ) { if ( s == null || s . length ( ) == _NUM ) return _NUM ; int len = s . length ( ) ; boolean [ ] [ ] p = new boolean [ len ] [ len ] ; for ( int i = _NUM ; i < len ; i ++ ) Arrays . fill ( p [ i ] , _BOOL ) ; int [ ] results = new int [ len ] ; for ( int start = len - _NUM ; start >= _NU... | 251 |
java-test-9192 | java | What is whether s [ i . . j ] forms a pal d [ i ] , which is the mincut for s [ i . . n - 1 ] once we comes to a pal [ i ] [ j ] = = true : if j = = n - 1 , the string s [ i . . n - 1 ] is a pal , mincut is 0 , d [ i ] = 0 ; else : the current cut num ( first cut s [ i . . j ] and then cut the rest s [ j + 1 . . . n - ... | i ] [ | public int min Cut ( String s ) { if ( s == null || s . length ( ) == NUM ) return NUM ; int len = s . length ( ) ; boolean [ ] [ ] p = new boolean [ len ] [ len ] ; for ( int i = NUM ; i < len ; i ++ ) Arrays . fill ( p [ i ] , BOOL ) ; int [ ] results = new int [ len ] ; for ( int start = len - NUM ; start >= NUM ; s... | public int minCut ( String s ) { if ( s == null || s . length ( ) == _NUM ) return _NUM ; int len = s . length ( ) ; boolean [ ] [ ] p = new boolean [ len ] [ len ] ; for ( int i = _NUM ; i < len ; i ++ ) Arrays . fill ( p [ i ] , _BOOL ) ; int [ ] results = new int [ len ] ; for ( int start = len - _NUM ; start >= _NU... | 251 |
java-test-9193 | java | What does i ] [ be ? | whether s [ i . . j ] forms a pal d [ i ] , which is the mincut for s [ i . . n - 1 ] once we comes to a pal [ i ] [ j ] = = true : if j = = n - 1 , the string s [ i . . n - 1 ] is a pal , mincut is 0 , d [ i ] = 0 ; else : the current cut num ( first cut s [ i . . j ] and then cut the rest s [ j + 1 . . . n - 1 ] ) is... | public int min Cut ( String s ) { if ( s == null || s . length ( ) == NUM ) return NUM ; int len = s . length ( ) ; boolean [ ] [ ] p = new boolean [ len ] [ len ] ; for ( int i = NUM ; i < len ; i ++ ) Arrays . fill ( p [ i ] , BOOL ) ; int [ ] results = new int [ len ] ; for ( int start = len - NUM ; start >= NUM ; s... | public int minCut ( String s ) { if ( s == null || s . length ( ) == _NUM ) return _NUM ; int len = s . length ( ) ; boolean [ ] [ ] p = new boolean [ len ] [ len ] ; for ( int i = _NUM ; i < len ; i ++ ) Arrays . fill ( p [ i ] , _BOOL ) ; int [ ] results = new int [ len ] ; for ( int start = len - _NUM ; start >= _NU... | 251 |
java-test-9196 | java | In which direction been a valid recycled stream returns to the backend ? | from the idle pool | private Client Socket open Recycle ( ) { long now = Current Time . current Time ( ) ; Client Socket stream = null ; synchronized ( this ) { if ( idle Head != idle Tail ) { stream = idle [ idle Head ] ; long free Time = stream . get Idle Start Time ( ) ; idle [ idle Head ] = null ; idle Head = ( idle Head + idle . lengt... | private ClientSocket openRecycle ( ) { long now = CurrentTime . currentTime ( ) ; ClientSocket stream = null ; synchronized ( this ) { if ( _idleHead != _idleTail ) { stream = _idle [ _idleHead ] ; long freeTime = stream . getIdleStartTime ( ) ; _idle [ _idleHead ] = null ; _idleHead = ( _idleHead + _idle . length - _N... | 201 |
java-test-9197 | java | What does the code create ? | a new lazystyle | private Lazy Style ( String prefix ) { if ( prefix == null ) { throw new Illegal Argument Exception ( STRING ) ; } this . prefix = prefix ; String temp = prefix ; if ( temp . ends With ( STRING ) || temp . ends With ( STRING ) || temp . ends With ( STRING ) ) { temp = temp . substring ( temp . last Index Of ( STRING ) ... | private LazyStyle ( String prefix ) { if ( prefix == null ) { throw new IllegalArgumentException ( STRING ) ; } this . prefix = prefix ; String temp = prefix ; if ( temp . endsWith ( STRING ) || temp . endsWith ( STRING ) || temp . endsWith ( STRING ) ) { temp = temp . substring ( temp . lastIndexOf ( STRING ) + _NUM )... | 155 |
java-test-9198 | java | What does the code create ? | a subset of vertices sampled in a specific iteration | public static < V extends Sampled Vertex > Set < V > create Sampled Partition ( Collection < V > vertices , int iteration ) { Set < V > partition = new Hash Set < V > ( ) ; for ( V vertex : vertices ) { if ( vertex . is Sampled ( ) ) { if ( vertex . get Iteration Sampled ( ) == iteration ) partition . add ( vertex ) ; ... | public static < V extends SampledVertex > Set < V > createSampledPartition ( Collection < V > vertices , int iteration ) { Set < V > partition = new HashSet < V > ( ) ; for ( V vertex : vertices ) { if ( vertex . isSampled ( ) ) { if ( vertex . getIterationSampled ( ) == iteration ) partition . add ( vertex ) ; } } ret... | 84 |
java-test-9199 | java | When are the text and selection preserved ? | while this happens | private void refresh Owner Combo Items From MRU ( ) { final List < String > mru Items List = new Array List < String > ( owner Combo MRU Set ) ; Collections . reverse ( mru Items List ) ; owner Combo . set Items ( mru Items List . to Array ( new String [ mru Items List . size ( ) ] ) ) ; } | private void refreshOwnerComboItemsFromMRU ( ) { final List < String > mruItemsList = new ArrayList < String > ( ownerComboMRUSet ) ; Collections . reverse ( mruItemsList ) ; ownerCombo . setItems ( mruItemsList . toArray ( new String [ mruItemsList . size ( ) ] ) ) ; } | 70 |
java-test-9201 | java | How does the code trim the cache ? | according to the specified trimming strategy and the given trim type | @ Override public void trim ( Memory Trim Type trim Type ) { Array List < Entry < K , V > > old Entries ; final double trim Ratio = m Cache Trim Strategy . get Trim Ratio ( trim Type ) ; synchronized ( this ) { int target Cache Size = ( int ) ( m Cached Entries . get Size In Bytes ( ) * ( NUM - trim Ratio ) ) ; int tar... | @ Override public void trim ( MemoryTrimType trimType ) { ArrayList < Entry < K , V > > oldEntries ; final double trimRatio = mCacheTrimStrategy . getTrimRatio ( trimType ) ; synchronized ( this ) { int targetCacheSize = ( int ) ( mCachedEntries . getSizeInBytes ( ) * ( _NUM - trimRatio ) ) ; int targetEvictionQueueSiz... | 161 |
java-test-9202 | java | What may the word contain ? | up to two edits | public String correct ( String a Word ) { if ( ( a Word . length ( ) < NUM ) || is Number ( a Word ) ) { return a Word ; } boolean is Upper = is Upper Case ( a Word . char At ( NUM ) ) ; String word = a Word . to Lower Case ( ) ; String correction = cached Corrections . get ( word ) ; if ( correction == null ) { correc... | public String correct ( String aWord ) { if ( ( aWord . length ( ) < _NUM ) || isNumber ( aWord ) ) { return aWord ; } boolean isUpper = isUpperCase ( aWord . charAt ( _NUM ) ) ; String word = aWord . toLowerCase ( ) ; String correction = cachedCorrections . get ( word ) ; if ( correction == null ) { correction = getBe... | 146 |
java-test-9204 | java | What does the code add ? | paragraph to document | private void add Para ( Document doc , String text , Font font , int spacing , int align Type ) throws Document Exception { Paragraph p = new Paragraph ( text , font ) ; if ( spacing != NUM ) { p . set Spacing Before ( spacing ) ; } if ( align Type != NUM ) { p . set Alignment ( align Type ) ; } doc . add ( p ) ; p . c... | private void addPara ( Document doc , String text , Font font , int spacing , int alignType ) throws DocumentException { Paragraph p = new Paragraph ( text , font ) ; if ( spacing != _NUM ) { p . setSpacingBefore ( spacing ) ; } if ( alignType != _NUM ) { p . setAlignment ( alignType ) ; } doc . add ( p ) ; p . clear (... | 85 |
java-test-9205 | java | What does this cache ? | the original file length | private static void do Copy File ( final File src File , final File dest File , final boolean preserve File Date ) throws IO Exception { if ( dest File . exists ( ) && dest File . is Directory ( ) ) { throw new IO Exception ( STRING + dest File + STRING ) ; } File Input Stream fis = null ; File Output Stream fos = null... | private static void doCopyFile ( final File srcFile , final File destFile , final boolean preserveFileDate ) throws IOException { if ( destFile . exists ( ) && destFile . isDirectory ( ) ) { throw new IOException ( STRING + destFile + STRING ) ; } FileInputStream fis = null ; FileOutputStream fos = null ; FileChannel i... | 341 |
java-test-9207 | java | What does the code write ? | the start of a & lt ; group > element | public void write Start Group ( String id , String res Name , String res Type ) { if ( ! in File ) { write Start File ( original , data Type , skeleton Path , fw Config Id , fw Input Encoding , null ) ; } writer . write Start Element ( STRING ) ; writer . write Attribute String ( STRING , id ) ; if ( ! Util . is Empty ... | public void writeStartGroup ( String id , String resName , String resType ) { if ( ! inFile ) { writeStartFile ( original , dataType , skeletonPath , fwConfigId , fwInputEncoding , null ) ; } writer . writeStartElement ( STRING ) ; writer . writeAttributeString ( STRING , id ) ; if ( ! Util . isEmpty ( resName ) ) { wr... | 182 |
java-test-9208 | java | How will it preserve the - 0 . 0 and 0 . 0 equality also ? | as per = = | public static boolean nan Safe Equals Doubles ( Double d1 , Double d2 ) { Boolean x Is Nan = Double . is Na N ( d1 ) ; Boolean y Is Nan = Double . is Na N ( d2 ) ; if ( ( x Is Nan && y Is Nan ) || ( d1 . double Value ( ) == d2 . double Value ( ) ) ) { return BOOL ; } return BOOL ; } | public static boolean nanSafeEqualsDoubles ( Double d1 , Double d2 ) { Boolean xIsNan = Double . isNaN ( d1 ) ; Boolean yIsNan = Double . isNaN ( d2 ) ; if ( ( xIsNan && yIsNan ) || ( d1 . doubleValue ( ) == d2 . doubleValue ( ) ) ) { return _BOOL ; } return _BOOL ; } | 80 |
java-test-9209 | java | What do it preserve also ? | nan equality check | public static boolean nan Safe Equals Doubles ( Double d1 , Double d2 ) { Boolean x Is Nan = Double . is Na N ( d1 ) ; Boolean y Is Nan = Double . is Na N ( d2 ) ; if ( ( x Is Nan && y Is Nan ) || ( d1 . double Value ( ) == d2 . double Value ( ) ) ) { return BOOL ; } return BOOL ; } | public static boolean nanSafeEqualsDoubles ( Double d1 , Double d2 ) { Boolean xIsNan = Double . isNaN ( d1 ) ; Boolean yIsNan = Double . isNaN ( d2 ) ; if ( ( xIsNan && yIsNan ) || ( d1 . doubleValue ( ) == d2 . doubleValue ( ) ) ) { return _BOOL ; } return _BOOL ; } | 80 |
java-test-9210 | java | What will it preserve also as per = = ? | the - 0 . 0 and 0 . 0 equality | public static boolean nan Safe Equals Doubles ( Double d1 , Double d2 ) { Boolean x Is Nan = Double . is Na N ( d1 ) ; Boolean y Is Nan = Double . is Na N ( d2 ) ; if ( ( x Is Nan && y Is Nan ) || ( d1 . double Value ( ) == d2 . double Value ( ) ) ) { return BOOL ; } return BOOL ; } | public static boolean nanSafeEqualsDoubles ( Double d1 , Double d2 ) { Boolean xIsNan = Double . isNaN ( d1 ) ; Boolean yIsNan = Double . isNaN ( d2 ) ; if ( ( xIsNan && yIsNan ) || ( d1 . doubleValue ( ) == d2 . doubleValue ( ) ) ) { return _BOOL ; } return _BOOL ; } | 80 |
java-test-9211 | java | What will this method compare ? | double values for its equality | public static boolean nan Safe Equals Doubles ( Double d1 , Double d2 ) { Boolean x Is Nan = Double . is Na N ( d1 ) ; Boolean y Is Nan = Double . is Na N ( d2 ) ; if ( ( x Is Nan && y Is Nan ) || ( d1 . double Value ( ) == d2 . double Value ( ) ) ) { return BOOL ; } return BOOL ; } | public static boolean nanSafeEqualsDoubles ( Double d1 , Double d2 ) { Boolean xIsNan = Double . isNaN ( d1 ) ; Boolean yIsNan = Double . isNaN ( d2 ) ; if ( ( xIsNan && yIsNan ) || ( d1 . doubleValue ( ) == d2 . doubleValue ( ) ) ) { return _BOOL ; } return _BOOL ; } | 80 |
java-test-9212 | java | What does the code throttle ? | the thread creation | protected void update Throttle ( ) { long now = Current Time . get Current Time Actual ( ) ; if ( throttle Timestamp + throttle Period < now ) { throttle Timestamp = now ; throttle Count = NUM ; is Throttle = BOOL ; return ; } throttle Count ++ ; if ( throttle Count < throttle Limit ) { return ; } if ( ! is Throttle ) ... | protected void updateThrottle ( ) { long now = CurrentTime . getCurrentTimeActual ( ) ; if ( _throttleTimestamp + _throttlePeriod < now ) { _throttleTimestamp = now ; _throttleCount = _NUM ; _isThrottle = _BOOL ; return ; } _throttleCount ++ ; if ( _throttleCount < _throttleLimit ) { return ; } if ( ! _isThrottle ) { _... | 157 |
java-test-9217 | java | When is this method used ? | when reading in utf strings written in block data mode to handle utf - encoded characters which ( potentially ) straddle block - data boundaries | private int read UTF Char ( String Builder sbuf , long utflen ) throws IO Exception { int b1 , b2 , b3 ; b1 = read Byte ( ) & NUM ; switch ( b1 > > NUM ) { case NUM : case NUM : case NUM : case NUM : case NUM : case NUM : case NUM : case NUM : sbuf . append ( ( char ) b1 ) ; return NUM ; case NUM : case NUM : if ( utfl... | private int readUTFChar ( StringBuilder sbuf , long utflen ) throws IOException { int b1 , b2 , b3 ; b1 = readByte ( ) & _NUM ; switch ( b1 > > _NUM ) { case _NUM : case _NUM : case _NUM : case _NUM : case _NUM : case _NUM : case _NUM : case _NUM : sbuf . append ( ( char ) b1 ) ; return _NUM ; case _NUM : case _NUM : i... | 294 |
java-test-9218 | java | How did utf strings write ? | in block data mode | private int read UTF Char ( String Builder sbuf , long utflen ) throws IO Exception { int b1 , b2 , b3 ; b1 = read Byte ( ) & NUM ; switch ( b1 > > NUM ) { case NUM : case NUM : case NUM : case NUM : case NUM : case NUM : case NUM : case NUM : sbuf . append ( ( char ) b1 ) ; return NUM ; case NUM : case NUM : if ( utfl... | private int readUTFChar ( StringBuilder sbuf , long utflen ) throws IOException { int b1 , b2 , b3 ; b1 = readByte ( ) & _NUM ; switch ( b1 > > _NUM ) { case _NUM : case _NUM : case _NUM : case _NUM : case _NUM : case _NUM : case _NUM : case _NUM : sbuf . append ( ( char ) b1 ) ; return _NUM ; case _NUM : case _NUM : i... | 294 |
java-test-9220 | java | What does the code create ? | a datagram socket | protected synchronized void create ( ) throws Socket Exception { Resource Manager . before Udp Create ( ) ; fd = new File Descriptor ( ) ; try { datagram Socket Create ( ) ; } catch ( Socket Exception ioe ) { Resource Manager . after Udp Close ( ) ; fd = null ; throw ioe ; } } | protected synchronized void create ( ) throws SocketException { ResourceManager . beforeUdpCreate ( ) ; fd = new FileDescriptor ( ) ; try { datagramSocketCreate ( ) ; } catch ( SocketException ioe ) { ResourceManager . afterUdpClose ( ) ; fd = null ; throw ioe ; } } | 61 |
java-test-9221 | java | What do we have ? | no users | public void on Event Main Thread ( Troubleshooting Actions Changed Event event ) { if ( m Users Sorted By Name . is Empty ( ) && m Troubleshooter . is Server Healthy ( ) ) { LOG . d ( STRING ) ; on Sync Retry ( ) ; } } | public void onEventMainThread ( TroubleshootingActionsChangedEvent event ) { if ( mUsersSortedByName . isEmpty ( ) && mTroubleshooter . isServerHealthy ( ) ) { LOG . d ( STRING ) ; onSyncRetry ( ) ; } } | 52 |
java-test-9222 | java | What does caller know ? | how to construct a data store filer | public Search Results search I Ds ( java . security . Principal principal , Guid guid , int scope , String search Filter , Search Control search Control ) throws Invalid Search Filter Exception , UMS Exception { String attr Names [ ] = { STRING } ; return search ( principal , guid , scope , search Filter , attr Names ,... | public SearchResults searchIDs ( java . security . Principal principal , Guid guid , int scope , String searchFilter , SearchControl searchControl ) throws InvalidSearchFilterException , UMSException { String attrNames [ ] = { STRING } ; return search ( principal , guid , scope , searchFilter , attrNames , _BOOL , sear... | 70 |
java-test-9223 | java | What does low level api assume ? | caller knows how to construct a data store filer | public Search Results search I Ds ( java . security . Principal principal , Guid guid , int scope , String search Filter , Search Control search Control ) throws Invalid Search Filter Exception , UMS Exception { String attr Names [ ] = { STRING } ; return search ( principal , guid , scope , search Filter , attr Names ,... | public SearchResults searchIDs ( java . security . Principal principal , Guid guid , int scope , String searchFilter , SearchControl searchControl ) throws InvalidSearchFilterException , UMSException { String attrNames [ ] = { STRING } ; return search ( principal , guid , scope , searchFilter , attrNames , _BOOL , sear... | 70 |
java-test-9224 | java | What assumes caller knows how to construct a data store filer ? | low level api | public Search Results search I Ds ( java . security . Principal principal , Guid guid , int scope , String search Filter , Search Control search Control ) throws Invalid Search Filter Exception , UMS Exception { String attr Names [ ] = { STRING } ; return search ( principal , guid , scope , search Filter , attr Names ,... | public SearchResults searchIDs ( java . security . Principal principal , Guid guid , int scope , String searchFilter , SearchControl searchControl ) throws InvalidSearchFilterException , UMSException { String attrNames [ ] = { STRING } ; return search ( principal , guid , scope , searchFilter , attrNames , _BOOL , sear... | 70 |
java-test-9225 | java | What does caller construct how ? | a data store filer | public Search Results search I Ds ( java . security . Principal principal , Guid guid , int scope , String search Filter , Search Control search Control ) throws Invalid Search Filter Exception , UMS Exception { String attr Names [ ] = { STRING } ; return search ( principal , guid , scope , search Filter , attr Names ,... | public SearchResults searchIDs ( java . security . Principal principal , Guid guid , int scope , String searchFilter , SearchControl searchControl ) throws InvalidSearchFilterException , UMSException { String attrNames [ ] = { STRING } ; return search ( principal , guid , scope , searchFilter , attrNames , _BOOL , sear... | 70 |
java-test-9226 | java | What does the code verify from / etc ? | a password against the encrypted passwd | private boolean verify Password ( String encrypted Password , String password ) { if ( encrypted Password == null ) return BOOL ; Crypt c = new Crypt ( ) ; try { byte old Crypt [ ] = encrypted Password . get Bytes ( STRING ) ; byte new Crypt [ ] = c . crypt ( password . get Bytes ( STRING ) , old Crypt ) ; if ( new Cry... | private boolean verifyPassword ( String encryptedPassword , String password ) { if ( encryptedPassword == null ) return _BOOL ; Crypt c = new Crypt ( ) ; try { byte oldCrypt [ ] = encryptedPassword . getBytes ( STRING ) ; byte newCrypt [ ] = c . crypt ( password . getBytes ( STRING ) , oldCrypt ) ; if ( newCrypt . leng... | 142 |
java-test-9227 | java | How does the code verify a password against the encrypted passwd ? | from / etc | private boolean verify Password ( String encrypted Password , String password ) { if ( encrypted Password == null ) return BOOL ; Crypt c = new Crypt ( ) ; try { byte old Crypt [ ] = encrypted Password . get Bytes ( STRING ) ; byte new Crypt [ ] = c . crypt ( password . get Bytes ( STRING ) , old Crypt ) ; if ( new Cry... | private boolean verifyPassword ( String encryptedPassword , String password ) { if ( encryptedPassword == null ) return _BOOL ; Crypt c = new Crypt ( ) ; try { byte oldCrypt [ ] = encryptedPassword . getBytes ( STRING ) ; byte newCrypt [ ] = c . crypt ( password . getBytes ( STRING ) , oldCrypt ) ; if ( newCrypt . leng... | 142 |
java-test-9230 | java | Where do async - socket wrapper create ? | over given socket channel | public Listenable Socket Channel ( Socket Channel channel , Executor executor , Async Selector selector Thread ) throws IO Exception { logger . debug ( STRING , channel ) ; if ( channel == null || executor == null ) throw new Illegal Argument Exception ( ) ; if ( channel . is Blocking ( ) ) throw new Illegal Argument E... | public ListenableSocketChannel ( SocketChannel channel , Executor executor , AsyncSelector selectorThread ) throws IOException { logger . debug ( STRING , channel ) ; if ( channel == null || executor == null ) throw new IllegalArgumentException ( ) ; if ( channel . isBlocking ( ) ) throw new IllegalArgumentException ( ... | 98 |
java-test-9231 | java | What creates over given socket channel ? | async - socket wrapper | public Listenable Socket Channel ( Socket Channel channel , Executor executor , Async Selector selector Thread ) throws IO Exception { logger . debug ( STRING , channel ) ; if ( channel == null || executor == null ) throw new Illegal Argument Exception ( ) ; if ( channel . is Blocking ( ) ) throw new Illegal Argument E... | public ListenableSocketChannel ( SocketChannel channel , Executor executor , AsyncSelector selectorThread ) throws IOException { logger . debug ( STRING , channel ) ; if ( channel == null || executor == null ) throw new IllegalArgumentException ( ) ; if ( channel . isBlocking ( ) ) throw new IllegalArgumentException ( ... | 98 |
java-test-9232 | java | How do the line finish ? | with an element start | private static boolean is Start Element ( String line ) { int first = line . last Index Of ( STRING ) ; int last = line . last Index Of ( STRING ) ; if ( last < first ) { return BOOL ; } else { int first End = line . last Index Of ( STRING ) ; int last End = line . last Index Of ( STRING ) ; if ( ( first End != first )... | private static boolean isStartElement ( String line ) { int first = line . lastIndexOf ( STRING ) ; int last = line . lastIndexOf ( STRING ) ; if ( last < first ) { return _BOOL ; } else { int firstEnd = line . lastIndexOf ( STRING ) ; int lastEnd = line . lastIndexOf ( STRING ) ; if ( ( firstEnd != first ) && ( ( last... | 104 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.