id stringlengths 11 16 | language stringclasses 2
values | 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-10110 | java | In which direction does the code draw a rubberband line between two points ? | into the graphics object | public void paint Line ( Point 2 D pt 1 , Point 2 D pt 2 , Graphics graphics ) { Graphics 2 D g = ( Graphics 2 D ) graphics ; if ( pt 1 != null && pt 2 != null && the Map != null ) { OM Line c Line = new OM Line ( pt 1 . get Y ( ) , pt 1 . get X ( ) , pt 2 . get Y ( ) , pt 2 . get X ( ) , line Type ) ; render Attribute... | public void paintLine ( Point2D pt1 , Point2D pt2 , Graphics graphics ) { Graphics2D g = ( Graphics2D ) graphics ; if ( pt1 != null && pt2 != null && theMap != null ) { OMLine cLine = new OMLine ( pt1 . getY ( ) , pt1 . getX ( ) , pt2 . getY ( ) , pt2 . getX ( ) , lineType ) ; renderAttributes . setTo ( cLine ) ; Proje... | 136 |
java-test-10111 | java | What does the code create ? | a copy of the old document | private boolean copy Document ( Search Document new Document , Search Document document , Map < String , Set < String > > removed Properties ) { boolean mutated = BOOL ; for ( String old Field Name : document . get Property Names ( ) ) { new Document . add Property ( old Field Name ) ; List < String > old Values = docu... | private boolean copyDocument ( SearchDocument newDocument , SearchDocument document , Map < String , Set < String > > removedProperties ) { boolean mutated = _BOOL ; for ( String oldFieldName : document . getPropertyNames ( ) ) { newDocument . addProperty ( oldFieldName ) ; List < String > oldValues = document . getPro... | 170 |
java-test-10112 | java | When does indexed data lose ? | when doing an indexwriter . updatedocument with it | private boolean copy Document ( Search Document new Document , Search Document document , Map < String , Set < String > > removed Properties ) { boolean mutated = BOOL ; for ( String old Field Name : document . get Property Names ( ) ) { new Document . add Property ( old Field Name ) ; List < String > old Values = docu... | private boolean copyDocument ( SearchDocument newDocument , SearchDocument document , Map < String , Set < String > > removedProperties ) { boolean mutated = _BOOL ; for ( String oldFieldName : document . getPropertyNames ( ) ) { newDocument . addProperty ( oldFieldName ) ; List < String > oldValues = document . getPro... | 170 |
java-test-10113 | java | When did indexed data get lost ? | when doing an indexwriter | private boolean copy Document ( Search Document new Document , Search Document document , Map < String , Set < String > > removed Properties ) { boolean mutated = BOOL ; for ( String old Field Name : document . get Property Names ( ) ) { new Document . add Property ( old Field Name ) ; List < String > old Values = docu... | private boolean copyDocument ( SearchDocument newDocument , SearchDocument document , Map < String , Set < String > > removedProperties ) { boolean mutated = _BOOL ; for ( String oldFieldName : document . getPropertyNames ( ) ) { newDocument . addProperty ( oldFieldName ) ; List < String > oldValues = document . getPro... | 170 |
java-test-10114 | java | What does it add ? | to the headers map | protected void parse Header Line ( String line ) throws IO Exception { int len = NUM ; int n = line . index Of ( STRING ) ; if ( n == - NUM ) { len = NUM ; n = line . index Of ( STRING ) ; if ( n == - NUM ) return ; } String key = line . substring ( NUM , n ) ; String val = line . substring ( n + len ) ; List < String ... | protected void parseHeaderLine ( String line ) throws IOException { int len = _NUM ; int n = line . indexOf ( STRING ) ; if ( n == - _NUM ) { len = _NUM ; n = line . indexOf ( STRING ) ; if ( n == - _NUM ) return ; } String key = line . substring ( _NUM , n ) ; String val = line . substring ( n + len ) ; List < String ... | 144 |
java-test-10118 | java | For what purpose does version generation unlock ? | for clear ( ) operations | public void unlock For Clear ( Internal Distributed Member locker ) { synchronized ( this . clear Lock Sync ) { Internal Distributed System instance = Internal Distributed System . get Any Instance ( ) ; if ( instance != null && logger . is Debug Enabled ( ) ) { logger . debug ( STRING , locker , System . identity Hash... | public void unlockForClear ( InternalDistributedMember locker ) { synchronized ( this . clearLockSync ) { InternalDistributedSystem instance = InternalDistributedSystem . getAnyInstance ( ) ; if ( instance != null && logger . isDebugEnabled ( ) ) { logger . debug ( STRING , locker , System . identityHashCode ( this ) )... | 129 |
java-test-10119 | java | Till when did the individual steps of the monte - carlo - localization algorithm loop one after the other ? | until the terminating condition is met | @ Override public void run ( ) { try { while ( running ) { step ( ) ; try { Thread . sleep ( step Pause ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } } catch ( Null Pointer Exception e ) { robot Gui . notify Initialize ( ) ; } catch ( Robot Exception e ) { } try { running Lock . acquire ( ) ... | @ Override public void run ( ) { try { while ( running ) { step ( ) ; try { Thread . sleep ( stepPause ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } } catch ( NullPointerException e ) { robotGui . notifyInitialize ( ) ; } catch ( RobotException e ) { } try { runningLock . acquire ( ) ; } catch ... | 135 |
java-test-10120 | java | How is the robot is located ? | with sufficient accuracy | @ Override public void run ( ) { try { while ( running ) { step ( ) ; try { Thread . sleep ( step Pause ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } } catch ( Null Pointer Exception e ) { robot Gui . notify Initialize ( ) ; } catch ( Robot Exception e ) { } try { running Lock . acquire ( ) ... | @ Override public void run ( ) { try { while ( running ) { step ( ) ; try { Thread . sleep ( stepPause ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } } catch ( NullPointerException e ) { robotGui . notifyInitialize ( ) ; } catch ( RobotException e ) { } try { runningLock . acquire ( ) ; } catch ... | 135 |
java-test-10121 | java | What did this perform ? | the individual steps of the monte - carlo - localization algorithm looped one after the other until the terminating condition is met | @ Override public void run ( ) { try { while ( running ) { step ( ) ; try { Thread . sleep ( step Pause ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } } catch ( Null Pointer Exception e ) { robot Gui . notify Initialize ( ) ; } catch ( Robot Exception e ) { } try { running Lock . acquire ( ) ... | @ Override public void run ( ) { try { while ( running ) { step ( ) ; try { Thread . sleep ( stepPause ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } } catch ( NullPointerException e ) { robotGui . notifyInitialize ( ) ; } catch ( RobotException e ) { } try { runningLock . acquire ( ) ; } catch ... | 135 |
java-test-10122 | java | How did the string return for a process ? | with process | @ Override public String to String ( ) { String Builder string Builder = new String Builder ( STRING ) ; for ( Node Collection parent : parents ) { string Builder . append ( parent . get Id ( ) + STRING ) ; } string Builder . append ( STRING ) ; for ( Node Collection child : children ) { string Builder . append ( child... | @ Override public String toString ( ) { StringBuilder stringBuilder = new StringBuilder ( STRING ) ; for ( NodeCollection parent : parents ) { stringBuilder . append ( parent . getId ( ) + STRING ) ; } stringBuilder . append ( STRING ) ; for ( NodeCollection child : children ) { stringBuilder . append ( child . getId (... | 97 |
java-test-10123 | java | When do 2 children have ids ? | 2 and 3 | @ Override public String to String ( ) { String Builder string Builder = new String Builder ( STRING ) ; for ( Node Collection parent : parents ) { string Builder . append ( parent . get Id ( ) + STRING ) ; } string Builder . append ( STRING ) ; for ( Node Collection child : children ) { string Builder . append ( child... | @ Override public String toString ( ) { StringBuilder stringBuilder = new StringBuilder ( STRING ) ; for ( NodeCollection parent : parents ) { stringBuilder . append ( parent . getId ( ) + STRING ) ; } stringBuilder . append ( STRING ) ; for ( NodeCollection child : children ) { stringBuilder . append ( child . getId (... | 97 |
java-test-10124 | java | What is having ids 2 and 3 ? | 2 children | @ Override public String to String ( ) { String Builder string Builder = new String Builder ( STRING ) ; for ( Node Collection parent : parents ) { string Builder . append ( parent . get Id ( ) + STRING ) ; } string Builder . append ( STRING ) ; for ( Node Collection child : children ) { string Builder . append ( child... | @ Override public String toString ( ) { StringBuilder stringBuilder = new StringBuilder ( STRING ) ; for ( NodeCollection parent : parents ) { stringBuilder . append ( parent . getId ( ) + STRING ) ; } stringBuilder . append ( STRING ) ; for ( NodeCollection child : children ) { stringBuilder . append ( child . getId (... | 97 |
java-test-10125 | java | What used to format the string ? | method tostring | @ Override public String to String ( ) { String Builder string Builder = new String Builder ( STRING ) ; for ( Node Collection parent : parents ) { string Builder . append ( parent . get Id ( ) + STRING ) ; } string Builder . append ( STRING ) ; for ( Node Collection child : children ) { string Builder . append ( child... | @ Override public String toString ( ) { StringBuilder stringBuilder = new StringBuilder ( STRING ) ; for ( NodeCollection parent : parents ) { stringBuilder . append ( parent . getId ( ) + STRING ) ; } stringBuilder . append ( STRING ) ; for ( NodeCollection child : children ) { stringBuilder . append ( child . getId (... | 97 |
java-test-10126 | java | What did method tostring use ? | to format the string | @ Override public String to String ( ) { String Builder string Builder = new String Builder ( STRING ) ; for ( Node Collection parent : parents ) { string Builder . append ( parent . get Id ( ) + STRING ) ; } string Builder . append ( STRING ) ; for ( Node Collection child : children ) { string Builder . append ( child... | @ Override public String toString ( ) { StringBuilder stringBuilder = new StringBuilder ( STRING ) ; for ( NodeCollection parent : parents ) { stringBuilder . append ( parent . getId ( ) + STRING ) ; } stringBuilder . append ( STRING ) ; for ( NodeCollection child : children ) { stringBuilder . append ( child . getId (... | 97 |
java-test-10127 | java | What does the code aggregate ? | the results from the provided config change result | public void aggregate ( Config Change Result other ) { if ( other . get Result Code ( ) != Result Code . SUCCESS ) { set Result Code If Success ( other . get Result Code ( ) ) ; messages . add All ( other . get Messages ( ) ) ; } } | public void aggregate ( ConfigChangeResult other ) { if ( other . getResultCode ( ) != ResultCode . SUCCESS ) { setResultCodeIfSuccess ( other . getResultCode ( ) ) ; messages . addAll ( other . getMessages ( ) ) ; } } | 56 |
java-test-10128 | java | What does the code create ? | new clientkey instance based on data provided in the stream together with the password | public Client Key ( final Input Stream input Stream , final String password ) throws Invalid Keystore Exception { this . password = password ; final Key Store keystore = get Key Store ( input Stream , password ) ; final Enumeration < String > aliases = get Aliases ( keystore ) ; if ( aliases . has More Elements ( ) ) {... | public ClientKey ( final InputStream inputStream , final String password ) throws InvalidKeystoreException { this . password = password ; final KeyStore keystore = getKeyStore ( inputStream , password ) ; final Enumeration < String > aliases = getAliases ( keystore ) ; if ( aliases . hasMoreElements ( ) ) { this . alia... | 128 |
java-test-10129 | java | When does the code notify it ? | when a new turn happens | @ Override public synchronized void begin Turn ( ) { final long start = System . nano Time ( ) ; try { destroy Obsolete Zones ( ) ; } catch ( final Exception e ) { logger . error ( STRING , e ) ; } try { log Number Of Players Online ( ) ; } catch ( final Exception e ) { logger . error ( STRING , e ) ; } try { handle Ki... | @ Override public synchronized void beginTurn ( ) { final long start = System . nanoTime ( ) ; try { destroyObsoleteZones ( ) ; } catch ( final Exception e ) { logger . error ( STRING , e ) ; } try { logNumberOfPlayersOnline ( ) ; } catch ( final Exception e ) { logger . error ( STRING , e ) ; } try { handleKilledEntit... | 203 |
java-test-10130 | java | What does the code map ? | a location based on the provided segment | private void map ( int seg , double a , double o , Point 2 D pt ) { double dx = data [ seg ] - data [ seg - NUM ] ; double dy = data [ seg + NUM ] - data [ seg - NUM ] ; double dl = data [ seg + NUM ] - data [ seg - NUM ] ; double ux = dx / dl ; double uy = dy / dl ; a -= data [ seg - NUM ] ; pt . set Location ( data [... | private void map ( int seg , double a , double o , Point2D pt ) { double dx = data [ seg ] - data [ seg - _NUM ] ; double dy = data [ seg + _NUM ] - data [ seg - _NUM ] ; double dl = data [ seg + _NUM ] - data [ seg - _NUM ] ; double ux = dx / dl ; double uy = dy / dl ; a -= data [ seg - _NUM ] ; pt . setLocation ( dat... | 128 |
java-test-10133 | java | What does the code write ? | the buffer contents to the file | public void write ( Byte Buffer buffer ) throws IO Exception { buffer . position ( NUM ) ; if ( m File Channel . size ( ) + buffer . capacity ( ) < m Max Size ) { while ( buffer . has Remaining ( ) ) { m File Channel . write ( buffer ) ; } update Wave File Size ( ) ; } else { int remaining = ( int ) ( m Max Size - m Fi... | public void write ( ByteBuffer buffer ) throws IOException { buffer . position ( _NUM ) ; if ( mFileChannel . size ( ) + buffer . capacity ( ) < mMaxSize ) { while ( buffer . hasRemaining ( ) ) { mFileChannel . write ( buffer ) ; } updateWaveFileSize ( ) ; } else { int remaining = ( int ) ( mMaxSize - mFileChannel . si... | 225 |
java-test-10134 | java | What does the code assume ? | that the buffer is full and the first byte of data is at position 0 | public void write ( Byte Buffer buffer ) throws IO Exception { buffer . position ( NUM ) ; if ( m File Channel . size ( ) + buffer . capacity ( ) < m Max Size ) { while ( buffer . has Remaining ( ) ) { m File Channel . write ( buffer ) ; } update Wave File Size ( ) ; } else { int remaining = ( int ) ( m Max Size - m Fi... | public void write ( ByteBuffer buffer ) throws IOException { buffer . position ( _NUM ) ; if ( mFileChannel . size ( ) + buffer . capacity ( ) < mMaxSize ) { while ( buffer . hasRemaining ( ) ) { mFileChannel . write ( buffer ) ; } updateWaveFileSize ( ) ; } else { int remaining = ( int ) ( mMaxSize - mFileChannel . si... | 225 |
java-test-10135 | java | In which direction does the code populate the hierarchy ? | from a base space | private List < List < Dimension Index > > populate Hierarchy ( Space space , List < Dimension > dims ) throws Interrupted Exception { List < List < Dimension Index > > result = new Array List < > ( ) ; for ( Dimension dimension : dims ) { logger . info ( STRING + dimension . to String ( ) ) ; if ( dimension . get Paren... | private List < List < DimensionIndex > > populateHierarchy ( Space space , List < Dimension > dims ) throws InterruptedException { List < List < DimensionIndex > > result = new ArrayList < > ( ) ; for ( Dimension dimension : dims ) { logger . info ( STRING + dimension . toString ( ) ) ; if ( dimension . getParentId ( )... | 132 |
java-test-10136 | java | What does this apply finally finally ? | letter - to - sound rules | public String phonemise ( String text , String pos , String Builder g2 p Method ) { String result = userdict Lookup ( text , pos ) ; if ( result != null ) { g2 p Method . append ( STRING ) ; return result ; } result = lexicon Lookup ( text , pos ) ; if ( result != null ) { g2 p Method . append ( STRING ) ; return resul... | public String phonemise ( String text , String pos , StringBuilder g2pMethod ) { String result = userdictLookup ( text , pos ) ; if ( result != null ) { g2pMethod . append ( STRING ) ; return result ; } result = lexiconLookup ( text , pos ) ; if ( result != null ) { g2pMethod . append ( STRING ) ; return result ; } Str... | 212 |
java-test-10138 | java | What does the code load from the server ? | the process connection with the identification key ( pik ) | public void load Process Connection ( ) { Process Connection Response process Connection Response = process Configuration Loader . get Process Connection ( ) ; if ( process Connection Response . get Process PIK ( ) == null || process Connection Response . get Process PIK ( ) <= Process Connection Response . PIK REJECTE... | public void loadProcessConnection ( ) { ProcessConnectionResponse processConnectionResponse = processConfigurationLoader . getProcessConnection ( ) ; if ( processConnectionResponse . getProcessPIK ( ) == null || processConnectionResponse . getProcessPIK ( ) <= ProcessConnectionResponse . PIK_REJECTED ) { throw new Runt... | 124 |
java-test-10139 | java | What do an omgraphiclist contain ? | graphics from all spatialindex objects and shapefiles | public synchronized OM Graphic List prepare ( ) { if ( spatial Indexes == null || spatial Indexes . is Empty ( ) ) { logger . fine ( get Name ( ) + STRING ) ; return new OM Graphic List ( ) ; } Projection projection = get Projection ( ) ; if ( projection == null ) { logger . fine ( get Name ( ) + STRING ) ; return new ... | public synchronized OMGraphicList prepare ( ) { if ( spatialIndexes == null || spatialIndexes . isEmpty ( ) ) { logger . fine ( getName ( ) + STRING ) ; return new OMGraphicList ( ) ; } Projection projection = getProjection ( ) ; if ( projection == null ) { logger . fine ( getName ( ) + STRING ) ; return new OMGraphicL... | 619 |
java-test-10140 | java | What did this function select ? | the zones that should be used by vipr | private Map < String , List < Zone > > select Zones For Initiators And Ports ( Network Lite network , Map < String , List < Zone > > wwn To Zones , Map < String , Storage Port > initiator Ports Map ) { Map < String , List < Zone > > filtered Map = new Hash Map < String , List < Zone > > ( ) ; Zone zone = null ; List < ... | private Map < String , List < Zone > > selectZonesForInitiatorsAndPorts ( NetworkLite network , Map < String , List < Zone > > wwnToZones , Map < String , StoragePort > initiatorPortsMap ) { Map < String , List < Zone > > filteredMap = new HashMap < String , List < Zone > > ( ) ; Zone zone = null ; List < Zone > zones ... | 210 |
java-test-10144 | java | What does the code create ? | a new external folder with the given project , parent and the external resource that the new instance wraps | public External Folder ( I Project project , I Container parent , File file ) { super ( new Path ( file . get Absolute Path ( ) ) , null ) ; this . file = file ; this . project = project ; this . parent = parent ; } | public ExternalFolder ( IProject project , IContainer parent , File file ) { super ( new Path ( file . getAbsolutePath ( ) ) , null ) ; this . file = file ; this . project = project ; this . parent = parent ; } | 52 |
java-test-10146 | java | For what purpose does the bucket distribution check ? | for four thousand year date values | public Run Stats delegate Get Bucket For Fourthousand Year Dates ( int buckets ) throws Exception { long start Time = System . current Time Millis ( ) ; Primary Index Bucket Generator Impl ibg = new Primary Index Bucket Generator Impl ( Field Data Type . DATE TIME , buckets ) ; Primary Index Bucket Locator Impl locator... | public RunStats delegateGetBucketForFourthousandYearDates ( int buckets ) throws Exception { long startTime = System . currentTimeMillis ( ) ; PrimaryIndexBucketGeneratorImpl ibg = new PrimaryIndexBucketGeneratorImpl ( FieldDataType . DATE_TIME , buckets ) ; PrimaryIndexBucketLocatorImpl locator = new PrimaryIndexBucke... | 354 |
java-test-10147 | java | How do request get ? | with provided cookie string | public Input Stream execute Download ( String url , String cookie ) throws IO Exception { String [ ] [ ] header Params = new String [ ] [ ] { { STRING , cookie } , { STRING , STRING } } ; Http Entity http Entity = execute Get ( url , null , header Params ) ; return http Entity . get Content ( ) ; } | public InputStream executeDownload ( String url , String cookie ) throws IOException { String [ ] [ ] headerParams = new String [ ] [ ] { { STRING , cookie } , { STRING , STRING } } ; HttpEntity httpEntity = executeGet ( url , null , headerParams ) ; return httpEntity . getContent ( ) ; } | 70 |
java-test-10148 | java | How does url content fetch ? | by executing get request with provided cookie string | public Input Stream execute Download ( String url , String cookie ) throws IO Exception { String [ ] [ ] header Params = new String [ ] [ ] { { STRING , cookie } , { STRING , STRING } } ; Http Entity http Entity = execute Get ( url , null , header Params ) ; return http Entity . get Content ( ) ; } | public InputStream executeDownload ( String url , String cookie ) throws IOException { String [ ] [ ] headerParams = new String [ ] [ ] { { STRING , cookie } , { STRING , STRING } } ; HttpEntity httpEntity = executeGet ( url , null , headerParams ) ; return httpEntity . getContent ( ) ; } | 70 |
java-test-10149 | java | What does the code check ? | whether a path is a child of specified directory | public static boolean is Child ( File Object parent , String child Path ) { if ( parent == null || ! parent . is Folder ( ) || String Utils . is Empty ( child Path ) ) { return BOOL ; } String parent Path = parent . get Path ( ) ; return child Path . starts With ( parent Path ) ; } | public static boolean isChild ( FileObject parent , String childPath ) { if ( parent == null || ! parent . isFolder ( ) || StringUtils . isEmpty ( childPath ) ) { return _BOOL ; } String parentPath = parent . getPath ( ) ; return childPath . startsWith ( parentPath ) ; } | 67 |
java-test-10150 | java | What does it not contain ? | any null element | private static void check For Null Element ( Object [ ] arg , String arg Name ) { if ( ( arg == null ) || ( arg . length == NUM ) ) { throw new Illegal Argument Exception ( STRING + arg Name + STRING ) ; } for ( int i = NUM ; i < arg . length ; i ++ ) { if ( arg [ i ] == null ) { throw new Illegal Argument Exception ( ... | private static void checkForNullElement ( Object [ ] arg , String argName ) { if ( ( arg == null ) || ( arg . length == _NUM ) ) { throw new IllegalArgumentException ( STRING + argName + STRING ) ; } for ( int i = _NUM ; i < arg . length ; i ++ ) { if ( arg [ i ] == null ) { throw new IllegalArgumentException ( STRING ... | 98 |
java-test-10151 | java | What have it cause ? | other types have no cases concept | public static boolean contains Ignore Cases ( Collection < String > collection , String string ) { if ( collection == null ) { return BOOL ; } if ( string == null ) { return collection . contains ( null ) ; } boolean contains = BOOL ; for ( String element : collection ) { if ( string . equals Ignore Case ( element ) ) ... | public static boolean containsIgnoreCases ( Collection < String > collection , String string ) { if ( collection == null ) { return _BOOL ; } if ( string == null ) { return collection . contains ( null ) ; } boolean contains = _BOOL ; for ( String element : collection ) { if ( string . equalsIgnoreCase ( element ) ) { ... | 81 |
java-test-10152 | java | What does it support only ? | the string generic type of collection | public static boolean contains Ignore Cases ( Collection < String > collection , String string ) { if ( collection == null ) { return BOOL ; } if ( string == null ) { return collection . contains ( null ) ; } boolean contains = BOOL ; for ( String element : collection ) { if ( string . equals Ignore Case ( element ) ) ... | public static boolean containsIgnoreCases ( Collection < String > collection , String string ) { if ( collection == null ) { return _BOOL ; } if ( string == null ) { return collection . contains ( null ) ; } boolean contains = _BOOL ; for ( String element : collection ) { if ( string . equalsIgnoreCase ( element ) ) { ... | 81 |
java-test-10153 | java | For what purpose does method in collection contain ? | to support the function of case insensitive contains | public static boolean contains Ignore Cases ( Collection < String > collection , String string ) { if ( collection == null ) { return BOOL ; } if ( string == null ) { return collection . contains ( null ) ; } boolean contains = BOOL ; for ( String element : collection ) { if ( string . equals Ignore Case ( element ) ) ... | public static boolean containsIgnoreCases ( Collection < String > collection , String string ) { if ( collection == null ) { return _BOOL ; } if ( string == null ) { return collection . contains ( null ) ; } boolean contains = _BOOL ; for ( String element : collection ) { if ( string . equalsIgnoreCase ( element ) ) { ... | 81 |
java-test-10154 | java | What do other types have ? | no cases concept | public static boolean contains Ignore Cases ( Collection < String > collection , String string ) { if ( collection == null ) { return BOOL ; } if ( string == null ) { return collection . contains ( null ) ; } boolean contains = BOOL ; for ( String element : collection ) { if ( string . equals Ignore Case ( element ) ) ... | public static boolean containsIgnoreCases ( Collection < String > collection , String string ) { if ( collection == null ) { return _BOOL ; } if ( string == null ) { return collection . contains ( null ) ; } boolean contains = _BOOL ; for ( String element : collection ) { if ( string . equalsIgnoreCase ( element ) ) { ... | 81 |
java-test-10155 | java | What does this helper method make ? | the shortage of contains method in collection to support the function of case insensitive contains | public static boolean contains Ignore Cases ( Collection < String > collection , String string ) { if ( collection == null ) { return BOOL ; } if ( string == null ) { return collection . contains ( null ) ; } boolean contains = BOOL ; for ( String element : collection ) { if ( string . equals Ignore Case ( element ) ) ... | public static boolean containsIgnoreCases ( Collection < String > collection , String string ) { if ( collection == null ) { return _BOOL ; } if ( string == null ) { return collection . contains ( null ) ; } boolean contains = _BOOL ; for ( String element : collection ) { if ( string . equalsIgnoreCase ( element ) ) { ... | 81 |
java-test-10156 | java | What do we show the activity ? | the recorded video | protected void show Recorded Video ( ) { String abs Path = m Current Video File . get Absolute Path ( ) ; Intent intent = new Intent ( this , Player Activity . class ) ; intent . put Extra ( Player Activity . EXTRA VIDEO PATH , abs Path ) ; start Activity ( intent ) ; m Current Video File = null ; } | protected void showRecordedVideo ( ) { String absPath = mCurrentVideoFile . getAbsolutePath ( ) ; Intent intent = new Intent ( this , PlayerActivity . class ) ; intent . putExtra ( PlayerActivity . EXTRA_VIDEO_PATH , absPath ) ; startActivity ( intent ) ; mCurrentVideoFile = null ; } | 67 |
java-test-10159 | java | What does the code provide ? | a corleone instance to work on the given context | public static Corleone context ( String job Context ) { if ( job Context == null || job Context . equals ( STRING ) ) { throw new Illegal Argument Exception ( STRING ) ; } contexts . clear ( ) ; contexts . add ( job Context ) ; return get Instance ( ) ; } | public static Corleone context ( String jobContext ) { if ( jobContext == null || jobContext . equals ( STRING ) ) { throw new IllegalArgumentException ( STRING ) ; } contexts . clear ( ) ; contexts . add ( jobContext ) ; return getInstance ( ) ; } | 57 |
java-test-10160 | java | What does the code create ? | a new morfologikfilterfactory | public Morfologik Filter Factory ( Map < String , String > args ) { super ( args ) ; final String DICTIONARY RESOURCE ATTRIBUTE = STRING ; String dictionary Resource = get ( args , DICTIONARY RESOURCE ATTRIBUTE ) ; if ( dictionary Resource != null && ! dictionary Resource . is Empty ( ) ) { throw new Illegal Argument E... | public MorfologikFilterFactory ( Map < String , String > args ) { super ( args ) ; final String DICTIONARY_RESOURCE_ATTRIBUTE = STRING ; String dictionaryResource = get ( args , DICTIONARY_RESOURCE_ATTRIBUTE ) ; if ( dictionaryResource != null && ! dictionaryResource . isEmpty ( ) ) { throw new IllegalArgumentException... | 115 |
java-test-10161 | java | What are lost " between the cracks ? | no iterations | protected void update Values ( ) { synchronized ( workers ) { if ( prev . length == curr . length ) { System . arraycopy ( curr , NUM , prev , NUM , prev . length ) ; all Threads Data data = new all Threads Data ( ) ; data . set Iterations ( curr ) ; data = read Values ( data ) ; curr = data . get Iterations ( ) ; tota... | protected void updateValues ( ) { synchronized ( workers ) { if ( prev . length == curr . length ) { System . arraycopy ( curr , _NUM , prev , _NUM , prev . length ) ; allThreadsData data = new allThreadsData ( ) ; data . setIterations ( curr ) ; data = readValues ( data ) ; curr = data . getIterations ( ) ; totalRespo... | 205 |
java-test-10162 | java | What did the code keep ? | a copy of the previous readings | protected void update Values ( ) { synchronized ( workers ) { if ( prev . length == curr . length ) { System . arraycopy ( curr , NUM , prev , NUM , prev . length ) ; all Threads Data data = new all Threads Data ( ) ; data . set Iterations ( curr ) ; data = read Values ( data ) ; curr = data . get Iterations ( ) ; tota... | protected void updateValues ( ) { synchronized ( workers ) { if ( prev . length == curr . length ) { System . arraycopy ( curr , _NUM , prev , _NUM , prev . length ) ; allThreadsData data = new allThreadsData ( ) ; data . setIterations ( curr ) ; data = readValues ( data ) ; curr = data . getIterations ( ) ; totalRespo... | 205 |
java-test-10163 | java | What did this method ensure ? | no iterations are lost " between the cracks " | protected void update Values ( ) { synchronized ( workers ) { if ( prev . length == curr . length ) { System . arraycopy ( curr , NUM , prev , NUM , prev . length ) ; all Threads Data data = new all Threads Data ( ) ; data . set Iterations ( curr ) ; data = read Values ( data ) ; curr = data . get Iterations ( ) ; tota... | protected void updateValues ( ) { synchronized ( workers ) { if ( prev . length == curr . length ) { System . arraycopy ( curr , _NUM , prev , _NUM , prev . length ) ; allThreadsData data = new allThreadsData ( ) ; data . setIterations ( curr ) ; data = readValues ( data ) ; curr = data . getIterations ( ) ; totalRespo... | 205 |
java-test-10164 | java | Where are no iterations lost ? | " between the cracks | protected void update Values ( ) { synchronized ( workers ) { if ( prev . length == curr . length ) { System . arraycopy ( curr , NUM , prev , NUM , prev . length ) ; all Threads Data data = new all Threads Data ( ) ; data . set Iterations ( curr ) ; data = read Values ( data ) ; curr = data . get Iterations ( ) ; tota... | protected void updateValues ( ) { synchronized ( workers ) { if ( prev . length == curr . length ) { System . arraycopy ( curr , _NUM , prev , _NUM , prev . length ) ; allThreadsData data = new allThreadsData ( ) ; data . setIterations ( curr ) ; data = readValues ( data ) ; curr = data . getIterations ( ) ; totalRespo... | 205 |
java-test-10176 | java | When can a hard update occur only ? | during hard mode | public void update Record Hard ( int id , byte [ ] record ) throws IO Exception { if ( ! database . is Open ( ) ) throw new Illegal State Exception ( STRING ) ; if ( ! hard Write Mode ) throw new Illegal State Exception ( STRING ) ; if ( id < committed Next Row Id && ! soft Mode Saved Rows . get ( id , BOOL ) ) throw n... | public void updateRecordHard ( int id , byte [ ] record ) throws IOException { if ( ! database . isOpen ( ) ) throw new IllegalStateException ( STRING ) ; if ( ! hardWriteMode ) throw new IllegalStateException ( STRING ) ; if ( id < committedNextRowId && ! softModeSavedRows . get ( id , _BOOL ) ) throw new IllegalState... | 115 |
java-test-10177 | java | When does cache cleanup schedule ? | at regular intervals | private void schedule Cache Cleanup ( Context context ) { if ( ! is Alarm Active ( context ) ) { m Alarm Manager . set Inexact Repeating ( Alarm Manager . ELAPSED REALTIME WAKEUP , System Clock . elapsed Realtime ( ) + CLEANUP SCHEDULER TIME INTERVAL , CLEANUP SCHEDULER TIME INTERVAL , Cache Cleanup Receiver . make Rec... | private void scheduleCacheCleanup ( Context context ) { if ( ! isAlarmActive ( context ) ) { mAlarmManager . setInexactRepeating ( AlarmManager . ELAPSED_REALTIME_WAKEUP , SystemClock . elapsedRealtime ( ) + CLEANUP_SCHEDULER_TIME_INTERVAL , CLEANUP_SCHEDULER_TIME_INTERVAL , CacheCleanupReceiver . makeReceiverPendingIn... | 69 |
java-test-10178 | java | What does helper method use alarmmanager ? | to schedule cache cleanup at regular intervals | private void schedule Cache Cleanup ( Context context ) { if ( ! is Alarm Active ( context ) ) { m Alarm Manager . set Inexact Repeating ( Alarm Manager . ELAPSED REALTIME WAKEUP , System Clock . elapsed Realtime ( ) + CLEANUP SCHEDULER TIME INTERVAL , CLEANUP SCHEDULER TIME INTERVAL , Cache Cleanup Receiver . make Rec... | private void scheduleCacheCleanup ( Context context ) { if ( ! isAlarmActive ( context ) ) { mAlarmManager . setInexactRepeating ( AlarmManager . ELAPSED_REALTIME_WAKEUP , SystemClock . elapsedRealtime ( ) + CLEANUP_SCHEDULER_TIME_INTERVAL , CLEANUP_SCHEDULER_TIME_INTERVAL , CacheCleanupReceiver . makeReceiverPendingIn... | 69 |
java-test-10179 | java | What does helper method use to schedule cache cleanup at regular intervals ? | alarmmanager | private void schedule Cache Cleanup ( Context context ) { if ( ! is Alarm Active ( context ) ) { m Alarm Manager . set Inexact Repeating ( Alarm Manager . ELAPSED REALTIME WAKEUP , System Clock . elapsed Realtime ( ) + CLEANUP SCHEDULER TIME INTERVAL , CLEANUP SCHEDULER TIME INTERVAL , Cache Cleanup Receiver . make Rec... | private void scheduleCacheCleanup ( Context context ) { if ( ! isAlarmActive ( context ) ) { mAlarmManager . setInexactRepeating ( AlarmManager . ELAPSED_REALTIME_WAKEUP , SystemClock . elapsedRealtime ( ) + CLEANUP_SCHEDULER_TIME_INTERVAL , CLEANUP_SCHEDULER_TIME_INTERVAL , CacheCleanupReceiver . makeReceiverPendingIn... | 69 |
java-test-10180 | java | What does the code add already ? | running runner | @ Not Null public Runner add Runner ( @ Not Null Application Process Descriptor process Descriptor ) { Run Options run Options = dto Factory . create Dto ( Run Options . class ) ; Runner runner = models Factory . create Runner ( run Options ) ; String environment Id = process Descriptor . get Environment Id ( ) ; if ( ... | @ NotNull public Runner addRunner ( @ NotNull ApplicationProcessDescriptor processDescriptor ) { RunOptions runOptions = dtoFactory . createDto ( RunOptions . class ) ; Runner runner = modelsFactory . createRunner ( runOptions ) ; String environmentId = processDescriptor . getEnvironmentId ( ) ; if ( environmentId != n... | 219 |
java-test-10185 | java | How does several urls open ? | by using a prompt if it ' s enabled or if a prompt is forced by the parameter | public static boolean open Urls Prompt ( Component parent , List < String > urls , boolean force Prompt ) { if ( urls . is Empty ( ) ) { return BOOL ; } if ( ! force Prompt && ! prompt ) { return open Urls ( urls ) ; } switch ( show Urls Prompt ( parent , urls ) ) { case NUM : return open Urls ( urls ) ; case NUM : Mis... | public static boolean openUrlsPrompt ( Component parent , List < String > urls , boolean forcePrompt ) { if ( urls . isEmpty ( ) ) { return _BOOL ; } if ( ! forcePrompt && ! prompt ) { return openUrls ( urls ) ; } switch ( showUrlsPrompt ( parent , urls ) ) { case _NUM : return openUrls ( urls ) ; case _NUM : MiscUtil ... | 98 |
java-test-10186 | java | What does the code get from the pool ? | a free temporary | public Register acquire ( Type type ) { if ( free Pool . is Empty ( ) ) { Register tmp = Register . create Temporary ( next Index ++ , type ) ; Trace . trace ( Item . COMPILER , STRING , tmp ) ; return tmp ; } Register result = free Pool . remove ( free Pool . size ( ) - NUM ) ; Trace . trace ( Item . COMPILER , STRING... | public Register acquire ( Type type ) { if ( freePool . isEmpty ( ) ) { Register tmp = Register . createTemporary ( nextIndex ++ , type ) ; Trace . trace ( Item . COMPILER , STRING , tmp ) ; return tmp ; } Register result = freePool . remove ( freePool . size ( ) - _NUM ) ; Trace . trace ( Item . COMPILER , STRING , re... | 101 |
java-test-10187 | java | What do we use currently ? | a fixed rule ( multiple results and remote_mr - > only selected by the optimizer if mode was remote_mr as well ) | private boolean check Parallel Remote Result Merge ( ) { return ( USE PARALLEL RESULT MERGE REMOTE && result Vars . size ( ) > NUM && ( result Merge == P Result Merge . REMOTE MR || result Merge == P Result Merge . REMOTE SPARK ) ) ; } | private boolean checkParallelRemoteResultMerge ( ) { return ( USE_PARALLEL_RESULT_MERGE_REMOTE && _resultVars . size ( ) > _NUM && ( _resultMerge == PResultMerge . REMOTE_MR || _resultMerge == PResultMerge . REMOTE_SPARK ) ) ; } | 51 |
java-test-10188 | java | When should the optimizer decide about parallel result merge and its degree of parallelism explicitly ? | we use a fixed rule ( multiple results and remote_mr - > only selected by the optimizer if mode was remote_mr as well ) | private boolean check Parallel Remote Result Merge ( ) { return ( USE PARALLEL RESULT MERGE REMOTE && result Vars . size ( ) > NUM && ( result Merge == P Result Merge . REMOTE MR || result Merge == P Result Merge . REMOTE SPARK ) ) ; } | private boolean checkParallelRemoteResultMerge ( ) { return ( USE_PARALLEL_RESULT_MERGE_REMOTE && _resultVars . size ( ) > _NUM && ( _resultMerge == PResultMerge . REMOTE_MR || _resultMerge == PResultMerge . REMOTE_SPARK ) ) ; } | 51 |
java-test-10189 | java | What does the code invoke ? | signatures resolving | private static void store As Type With Signatures Import ( String str Type To Import , @ Nullable Function obj Scope , Php Index obj Index , Hash Set < String > obj Types Set ) { if ( str Type To Import . contains ( STRING ) ) { for ( String str One Type : str Type To Import . split ( STRING ) ) { store As Type With Si... | private static void storeAsTypeWithSignaturesImport ( String strTypeToImport , @ Nullable Function objScope , PhpIndex objIndex , HashSet < String > objTypesSet ) { if ( strTypeToImport . contains ( STRING ) ) { for ( String strOneType : strTypeToImport . split ( STRING ) ) { storeAsTypeWithSignaturesImport ( Types . g... | 188 |
java-test-10190 | java | What does the code remove from writeset ? | an already writte value | public void remove Written ( byte [ ] value ) { write Set Lock . lock ( ) ; Set < Timestamp Value Pair > temp = ( Hash Set < Timestamp Value Pair > ) write Set . clone ( ) ; for ( Timestamp Value Pair rv : temp ) { if ( Arrays . equals ( rv . get Value ( ) , value ) ) write Set . remove ( rv ) ; } write Set Lock . unlo... | public void removeWritten ( byte [ ] value ) { writeSetLock . lock ( ) ; Set < TimestampValuePair > temp = ( HashSet < TimestampValuePair > ) writeSet . clone ( ) ; for ( TimestampValuePair rv : temp ) { if ( Arrays . equals ( rv . getValue ( ) , value ) ) writeSet . remove ( rv ) ; } writeSetLock . unlock ( ) ; } | 87 |
java-test-10191 | java | What does the code populate with every edge in this graph ? | the subview | public void populate Relations ( Graph Model subview ) { Set < Graph Node > subview Nodes = subview . get Nodes Set ( ) ; Graph Builder builder = subview . get Builder ( ) ; for ( Graph Edge edge : get Edges ( ) ) { if ( subview Nodes . contains ( edge . get Head ( ) ) && subview Nodes . contains ( edge . get Tail ( ) ... | public void populateRelations ( GraphModel subview ) { Set < GraphNode > subviewNodes = subview . getNodesSet ( ) ; GraphBuilder builder = subview . getBuilder ( ) ; for ( GraphEdge edge : getEdges ( ) ) { if ( subviewNodes . contains ( edge . getHead ( ) ) && subviewNodes . contains ( edge . getTail ( ) ) ) { builder ... | 89 |
java-test-10192 | java | What do we unregister also ? | all jms administered objects | public void unregister ( String space Name ) { try { if ( m jms Lookup Manager != null ) m jms Lookup Manager . close ( ) ; } catch ( Exception e ) { if ( logger . is Loggable ( Level . WARNING ) ) logger . log ( Level . WARNING , STRING + space Name + STRING + e . to String ( ) , e ) ; } registered Spaces . remove ( s... | public void unregister ( String spaceName ) { try { if ( m_jmsLookupManager != null ) m_jmsLookupManager . close ( ) ; } catch ( Exception e ) { if ( _logger . isLoggable ( Level . WARNING ) ) _logger . log ( Level . WARNING , STRING + spaceName + STRING + e . toString ( ) , e ) ; } _registeredSpaces . remove ( spaceNa... | 84 |
java-test-10198 | java | What opens a listening port ? | the sut | public synchronized Native Tcp register Incoming Tcp Connection ( String origin Addr , int origin Port , String dest Addr , int dest Port ) { End Point Info origin = new End Point Info ( origin Addr , origin Port , Connection Type . TCP ) ; End Point Info dest = new End Point Info ( dest Addr , dest Port , Connection T... | public synchronized NativeTcp registerIncomingTcpConnection ( String originAddr , int originPort , String destAddr , int destPort ) { EndPointInfo origin = new EndPointInfo ( originAddr , originPort , ConnectionType . TCP ) ; EndPointInfo dest = new EndPointInfo ( destAddr , destPort , ConnectionType . TCP ) ; Queue < ... | 138 |
java-test-10199 | java | Till when is the connection put on a buffer ? | till the sut open a listening port | public synchronized Native Tcp register Incoming Tcp Connection ( String origin Addr , int origin Port , String dest Addr , int dest Port ) { End Point Info origin = new End Point Info ( origin Addr , origin Port , Connection Type . TCP ) ; End Point Info dest = new End Point Info ( dest Addr , dest Port , Connection T... | public synchronized NativeTcp registerIncomingTcpConnection ( String originAddr , int originPort , String destAddr , int destPort ) { EndPointInfo origin = new EndPointInfo ( originAddr , originPort , ConnectionType . TCP ) ; EndPointInfo dest = new EndPointInfo ( destAddr , destPort , ConnectionType . TCP ) ; Queue < ... | 138 |
java-test-10200 | java | What did the sut open ? | a listening port | public synchronized Native Tcp register Incoming Tcp Connection ( String origin Addr , int origin Port , String dest Addr , int dest Port ) { End Point Info origin = new End Point Info ( origin Addr , origin Port , Connection Type . TCP ) ; End Point Info dest = new End Point Info ( dest Addr , dest Port , Connection T... | public synchronized NativeTcp registerIncomingTcpConnection ( String originAddr , int originPort , String destAddr , int destPort ) { EndPointInfo origin = new EndPointInfo ( originAddr , originPort , ConnectionType . TCP ) ; EndPointInfo dest = new EndPointInfo ( destAddr , destPort , ConnectionType . TCP ) ; Queue < ... | 138 |
java-test-10201 | java | What does the code simulate ? | an incoming connection | public synchronized Native Tcp register Incoming Tcp Connection ( String origin Addr , int origin Port , String dest Addr , int dest Port ) { End Point Info origin = new End Point Info ( origin Addr , origin Port , Connection Type . TCP ) ; End Point Info dest = new End Point Info ( dest Addr , dest Port , Connection T... | public synchronized NativeTcp registerIncomingTcpConnection ( String originAddr , int originPort , String destAddr , int destPort ) { EndPointInfo origin = new EndPointInfo ( originAddr , originPort , ConnectionType . TCP ) ; EndPointInfo dest = new EndPointInfo ( destAddr , destPort , ConnectionType . TCP ) ; Queue < ... | 138 |
java-test-10202 | java | What has no prefix ? | an annotated type | public static boolean has No Prefix ( final Annotated Type Mirror anno Type ) { if ( anno Type == null ) { return BOOL ; } for ( Annotation Mirror mirror : anno Type . get Annotations ( ) ) { if ( ! has No Prefix ( mirror ) ) { return BOOL ; } } return BOOL ; } | public static boolean hasNoPrefix ( final AnnotatedTypeMirror annoType ) { if ( annoType == null ) { return _BOOL ; } for ( AnnotationMirror mirror : annoType . getAnnotations ( ) ) { if ( ! hasNoPrefix ( mirror ) ) { return _BOOL ; } } return _BOOL ; } | 62 |
java-test-10203 | java | What do an annotated type have ? | no prefix | public static boolean has No Prefix ( final Annotated Type Mirror anno Type ) { if ( anno Type == null ) { return BOOL ; } for ( Annotation Mirror mirror : anno Type . get Annotations ( ) ) { if ( ! has No Prefix ( mirror ) ) { return BOOL ; } } return BOOL ; } | public static boolean hasNoPrefix ( final AnnotatedTypeMirror annoType ) { if ( annoType == null ) { return _BOOL ; } for ( AnnotationMirror mirror : annoType . getAnnotations ( ) ) { if ( ! hasNoPrefix ( mirror ) ) { return _BOOL ; } } return _BOOL ; } | 62 |
java-test-10204 | java | What does the code delete then ? | its data files | public boolean delete ( ) throws IO Exception { if ( closed . compare And Set ( BOOL , BOOL ) ) { close ( BOOL ) ; boolean success = allocated Nodes List . delete ( ) ; success &= nio File . delete ( ) ; return success ; } return BOOL ; } | public boolean delete ( ) throws IOException { if ( closed . compareAndSet ( _BOOL , _BOOL ) ) { close ( _BOOL ) ; boolean success = allocatedNodesList . delete ( ) ; success &= nioFile . delete ( ) ; return success ; } return _BOOL ; } | 56 |
java-test-10219 | java | What is identifying this event ? | a parameter string | public String param String ( ) { String type Str ; switch ( id ) { case INPUT METHOD TEXT CHANGED : type Str = STRING ; break ; case CARET POSITION CHANGED : type Str = STRING ; break ; default : type Str = STRING ; } String text String ; if ( text == null ) { text String = STRING ; } else { String Builder text Buffer ... | public String paramString ( ) { String typeStr ; switch ( id ) { case INPUT_METHOD_TEXT_CHANGED : typeStr = STRING ; break ; case CARET_POSITION_CHANGED : typeStr = STRING ; break ; default : typeStr = STRING ; } String textString ; if ( text == null ) { textString = STRING ; } else { StringBuilder textBuffer = new Str... | 287 |
java-test-10220 | java | What does it contain ? | the event i d in text form , the characters of the committed and composed text separated by " + " , the number of committed characters , the caret , and the visible position | public String param String ( ) { String type Str ; switch ( id ) { case INPUT METHOD TEXT CHANGED : type Str = STRING ; break ; case CARET POSITION CHANGED : type Str = STRING ; break ; default : type Str = STRING ; } String text String ; if ( text == null ) { text String = STRING ; } else { String Builder text Buffer ... | public String paramString ( ) { String typeStr ; switch ( id ) { case INPUT_METHOD_TEXT_CHANGED : typeStr = STRING ; break ; case CARET_POSITION_CHANGED : typeStr = STRING ; break ; default : typeStr = STRING ; } String textString ; if ( text == null ) { textString = STRING ; } else { StringBuilder textBuffer = new Str... | 287 |
java-test-10221 | java | What has been set in a given table that has just been constructed ? | a required field | public void required ( int table , int field ) { int table start = bb . capacity ( ) - table ; int vtable start = table start - bb . get Int ( table start ) ; boolean ok = bb . get Short ( vtable start + field ) != NUM ; if ( ! ok ) throw new Assertion Error ( STRING + field + STRING ) ; } | public void required ( int table , int field ) { int table_start = bb . capacity ( ) - table ; int vtable_start = table_start - bb . getInt ( table_start ) ; boolean ok = bb . getShort ( vtable_start + field ) != _NUM ; if ( ! ok ) throw new AssertionError ( STRING + field + STRING ) ; } | 73 |
java-test-10222 | java | Where has a required field been set ? | in a given table that has just been constructed | public void required ( int table , int field ) { int table start = bb . capacity ( ) - table ; int vtable start = table start - bb . get Int ( table start ) ; boolean ok = bb . get Short ( vtable start + field ) != NUM ; if ( ! ok ) throw new Assertion Error ( STRING + field + STRING ) ; } | public void required ( int table , int field ) { int table_start = bb . capacity ( ) - table ; int vtable_start = table_start - bb . getInt ( table_start ) ; boolean ok = bb . getShort ( vtable_start + field ) != _NUM ; if ( ! ok ) throw new AssertionError ( STRING + field + STRING ) ; } | 73 |
java-test-10226 | java | How does the code compare two time uuids next by their node - specific sequence number first ? | deterministically | public static int compare ( UUID uuid 1 , UUID uuid 2 ) { int time Result = Longs . compare ( uuid 1 . timestamp ( ) , uuid 2 . timestamp ( ) ) ; if ( time Result != NUM ) { return time Result ; } return uuid 1 . compare To ( uuid 2 ) ; } | public static int compare ( UUID uuid1 , UUID uuid2 ) { int timeResult = Longs . compare ( uuid1 . timestamp ( ) , uuid2 . timestamp ( ) ) ; if ( timeResult != _NUM ) { return timeResult ; } return uuid1 . compareTo ( uuid2 ) ; } | 62 |
java-test-10227 | java | What does the code compare next by their node - specific sequence number deterministically deterministically first ? | two time uuids | public static int compare ( UUID uuid 1 , UUID uuid 2 ) { int time Result = Longs . compare ( uuid 1 . timestamp ( ) , uuid 2 . timestamp ( ) ) ; if ( time Result != NUM ) { return time Result ; } return uuid 1 . compare To ( uuid 2 ) ; } | public static int compare ( UUID uuid1 , UUID uuid2 ) { int timeResult = Longs . compare ( uuid1 . timestamp ( ) , uuid2 . timestamp ( ) ) ; if ( timeResult != _NUM ) { return timeResult ; } return uuid1 . compareTo ( uuid2 ) ; } | 62 |
java-test-10228 | java | How does the code break ties finally ? | using their embedded node identifier | public static int compare ( UUID uuid 1 , UUID uuid 2 ) { int time Result = Longs . compare ( uuid 1 . timestamp ( ) , uuid 2 . timestamp ( ) ) ; if ( time Result != NUM ) { return time Result ; } return uuid 1 . compare To ( uuid 2 ) ; } | public static int compare ( UUID uuid1 , UUID uuid2 ) { int timeResult = Longs . compare ( uuid1 . timestamp ( ) , uuid2 . timestamp ( ) ) ; if ( timeResult != _NUM ) { return timeResult ; } return uuid1 . compareTo ( uuid2 ) ; } | 62 |
java-test-10229 | java | What does the code break using their embedded node identifier finally ? | ties | public static int compare ( UUID uuid 1 , UUID uuid 2 ) { int time Result = Longs . compare ( uuid 1 . timestamp ( ) , uuid 2 . timestamp ( ) ) ; if ( time Result != NUM ) { return time Result ; } return uuid 1 . compare To ( uuid 2 ) ; } | public static int compare ( UUID uuid1 , UUID uuid2 ) { int timeResult = Longs . compare ( uuid1 . timestamp ( ) , uuid2 . timestamp ( ) ) ; if ( timeResult != _NUM ) { return timeResult ; } return uuid1 . compareTo ( uuid2 ) ; } | 62 |
java-test-10230 | java | What does the given string contain only ? | valid xml characters | private static String validate XML ( String string ) throws IO Exception { for ( int i = NUM ; i < string . length ( ) ; i ++ ) { char ch = string . char At ( i ) ; if ( ! ( ch == NUM || ch == NUM || ch == NUM || ch >= NUM ) ) throw new IO Exception ( STRING + Integer . to String ( ch ) + STRING ) ; } return string ; } | private static String validateXML ( String string ) throws IOException { for ( int i = _NUM ; i < string . length ( ) ; i ++ ) { char ch = string . charAt ( i ) ; if ( ! ( ch == _NUM || ch == _NUM || ch == _NUM || ch >= _NUM ) ) throw new IOException ( STRING + Integer . toString ( ch ) + STRING ) ; } return string ; } | 87 |
java-test-10232 | java | What does the code extract from a name ? | the stream alias | public static String stream Alias From Name ( String name ) { Objects . require Non Null ( name , STRING ) ; if ( ! name . starts With ( ALIAS PREFIX ) ) return null ; return name . substring ( ALIAS PREFIX . length ( ) ) ; } | public static String streamAliasFromName ( String name ) { Objects . requireNonNull ( name , STRING ) ; if ( ! name . startsWith ( ALIAS_PREFIX ) ) return null ; return name . substring ( ALIAS_PREFIX . length ( ) ) ; } | 52 |
java-test-10233 | java | What does the code find ? | all classes below a certain directory which contain main ( ) classes | public static List < String > find Main Classes ( File root Dir ) throws IO Exception { List < String > ret = new Array List < > ( ) ; if ( ! root Dir . exists ( ) ) { return ret ; } if ( ! root Dir . is Directory ( ) ) { throw new Illegal Argument Exception ( String . format ( STRING , root Dir . get Path ( ) ) ) ; } ... | public static List < String > findMainClasses ( File rootDir ) throws IOException { List < String > ret = new ArrayList < > ( ) ; if ( ! rootDir . exists ( ) ) { return ret ; } if ( ! rootDir . isDirectory ( ) ) { throw new IllegalArgumentException ( String . format ( STRING , rootDir . getPath ( ) ) ) ; } findClasses ... | 106 |
java-test-10234 | java | What contain main ( ) classes ? | a certain directory | public static List < String > find Main Classes ( File root Dir ) throws IO Exception { List < String > ret = new Array List < > ( ) ; if ( ! root Dir . exists ( ) ) { return ret ; } if ( ! root Dir . is Directory ( ) ) { throw new Illegal Argument Exception ( String . format ( STRING , root Dir . get Path ( ) ) ) ; } ... | public static List < String > findMainClasses ( File rootDir ) throws IOException { List < String > ret = new ArrayList < > ( ) ; if ( ! rootDir . exists ( ) ) { return ret ; } if ( ! rootDir . isDirectory ( ) ) { throw new IllegalArgumentException ( String . format ( STRING , rootDir . getPath ( ) ) ) ; } findClasses ... | 106 |
java-test-10235 | java | What do a certain directory contain ? | main ( ) classes | public static List < String > find Main Classes ( File root Dir ) throws IO Exception { List < String > ret = new Array List < > ( ) ; if ( ! root Dir . exists ( ) ) { return ret ; } if ( ! root Dir . is Directory ( ) ) { throw new Illegal Argument Exception ( String . format ( STRING , root Dir . get Path ( ) ) ) ; } ... | public static List < String > findMainClasses ( File rootDir ) throws IOException { List < String > ret = new ArrayList < > ( ) ; if ( ! rootDir . exists ( ) ) { return ret ; } if ( ! rootDir . isDirectory ( ) ) { throw new IllegalArgumentException ( String . format ( STRING , rootDir . getPath ( ) ) ) ; } findClasses ... | 106 |
java-test-10237 | java | What does the code update ? | the car types that trains and tracks service | private void save ( ) { if ( copy Check Box . is Selected ( ) && J Option Pane . show Confirm Dialog ( this , Message Format . format ( Bundle . get Message ( STRING ) , new Object [ ] { type Combo Box . get Selected Item ( ) , text Car Type . get Text ( ) } ) , Bundle . get Message ( STRING ) , J Option Pane . YES NO ... | private void save ( ) { if ( copyCheckBox . isSelected ( ) && JOptionPane . showConfirmDialog ( this , MessageFormat . format ( Bundle . getMessage ( STRING ) , new Object [ ] { typeComboBox . getSelectedItem ( ) , textCarType . getText ( ) } ) , Bundle . getMessage ( STRING ) , JOptionPane . YES_NO_OPTION ) != JOption... | 253 |
java-test-10238 | java | What trains service ? | the car types | private void save ( ) { if ( copy Check Box . is Selected ( ) && J Option Pane . show Confirm Dialog ( this , Message Format . format ( Bundle . get Message ( STRING ) , new Object [ ] { type Combo Box . get Selected Item ( ) , text Car Type . get Text ( ) } ) , Bundle . get Message ( STRING ) , J Option Pane . YES NO ... | private void save ( ) { if ( copyCheckBox . isSelected ( ) && JOptionPane . showConfirmDialog ( this , MessageFormat . format ( Bundle . getMessage ( STRING ) , new Object [ ] { typeComboBox . getSelectedItem ( ) , textCarType . getText ( ) } ) , Bundle . getMessage ( STRING ) , JOptionPane . YES_NO_OPTION ) != JOption... | 253 |
java-test-10239 | java | What does the code create ? | the tables over the connection | public void create Tables ( Table Creation Mode mode ) { Array List < Type < ? > > sorted = sort Types ( ) ; try ( Connection connection = get Connection ( ) ; Statement statement = connection . create Statement ( ) ) { connection . set Auto Commit ( BOOL ) ; if ( mode == Table Creation Mode . DROP CREATE ) { execute D... | public void createTables ( TableCreationMode mode ) { ArrayList < Type < ? > > sorted = sortTypes ( ) ; try ( Connection connection = getConnection ( ) ; Statement statement = connection . createStatement ( ) ) { connection . setAutoCommit ( _BOOL ) ; if ( mode == TableCreationMode . DROP_CREATE ) { executeDropStatemen... | 178 |
java-test-10240 | java | For what purpose do the contents scroll ? | to position x , y | void scroll ( int x , int y , int flag , int type ) { check Security ( ) ; Scroll Pane sp = ( Scroll Pane ) target ; Component c = get Scroll Child ( ) ; if ( c == null ) { return ; } int sx , sy ; Color colors [ ] = get GU Icolors ( ) ; if ( sp . get Scrollbar Display Policy ( ) == Scroll Pane . SCROLLBARS NEVER ) { s... | void scroll ( int x , int y , int flag , int type ) { checkSecurity ( ) ; ScrollPane sp = ( ScrollPane ) target ; Component c = getScrollChild ( ) ; if ( c == null ) { return ; } int sx , sy ; Color colors [ ] = getGUIcolors ( ) ; if ( sp . getScrollbarDisplayPolicy ( ) == ScrollPane . SCROLLBARS_NEVER ) { sx = - x ; s... | 379 |
java-test-10242 | java | What does the code show ? | the initial splash window | private static Frame show Initial Splash ( ) { Frame splash Frame = null ; Image image = null ; URL image URL = get Chosen Splash URL ( ) ; if ( image URL != null ) { try { image = Image IO . read ( image URL ) ; } catch ( IO Exception e ) { e . print Stack Trace ( ) ; } if ( image != null ) { splash Frame = AWT Splash... | private static Frame showInitialSplash ( ) { Frame splashFrame = null ; Image image = null ; URL imageURL = getChosenSplashURL ( ) ; if ( imageURL != null ) { try { image = ImageIO . read ( imageURL ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } if ( image != null ) { splashFrame = AWTSplashWindow . splash... | 95 |
java-test-10243 | java | What generates unpruned decision list ? | u | @ Override public Enumeration < Option > list Options ( ) { Vector < Option > new Vector = new Vector < Option > ( NUM ) ; new Vector . add Element ( new Option ( STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add Element ( new Option ( STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add Element ... | @ Override public Enumeration < Option > listOptions ( ) { Vector < Option > newVector = new Vector < Option > ( _NUM ) ; newVector . addElement ( new Option ( STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . addElement ( new Option ( STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . addElement ( new... | 235 |
java-test-10244 | java | For what purpose do confidence threshold set ? | for pruning | @ Override public Enumeration < Option > list Options ( ) { Vector < Option > new Vector = new Vector < Option > ( NUM ) ; new Vector . add Element ( new Option ( STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add Element ( new Option ( STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add Element ... | @ Override public Enumeration < Option > listOptions ( ) { Vector < Option > newVector = new Vector < Option > ( _NUM ) ; newVector . addElement ( new Option ( STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . addElement ( new Option ( STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . addElement ( new... | 235 |
java-test-10245 | java | What do u generate ? | unpruned decision list | @ Override public Enumeration < Option > list Options ( ) { Vector < Option > new Vector = new Vector < Option > ( NUM ) ; new Vector . add Element ( new Option ( STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add Element ( new Option ( STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add Element ... | @ Override public Enumeration < Option > listOptions ( ) { Vector < Option > newVector = new Vector < Option > ( _NUM ) ; newVector . addElement ( new Option ( STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . addElement ( new Option ( STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . addElement ( new... | 235 |
java-test-10246 | java | What does the code find ? | the end of the line for the next operation | protected void decode Line Suffix ( Pushback Input Stream in Stream , Output Stream out Stream ) throws IO Exception { int c ; while ( BOOL ) { c = in Stream . read ( ) ; if ( c == - NUM ) { throw new CE Stream Exhausted ( ) ; } if ( c == STRING ) { break ; } if ( c == STRING ) { c = in Stream . read ( ) ; if ( ( c != ... | protected void decodeLineSuffix ( PushbackInputStream inStream , OutputStream outStream ) throws IOException { int c ; while ( _BOOL ) { c = inStream . read ( ) ; if ( c == - _NUM ) { throw new CEStreamExhausted ( ) ; } if ( c == STRING ) { break ; } if ( c == STRING ) { c = inStream . read ( ) ; if ( ( c != STRING ) &... | 111 |
java-test-10248 | java | Where do methods marked with the " synthetic " attribute not appear ? | in the source code | private boolean is Synthetic ( Method m ) { if ( ( m . get Access Flags ( ) & Constants . ACC SYNTHETIC ) != NUM ) { return BOOL ; } Attribute [ ] attrs = m . get Attributes ( ) ; for ( Attribute attr : attrs ) { if ( attr instanceof Synthetic ) { return BOOL ; } } return BOOL ; } | private boolean isSynthetic ( Method m ) { if ( ( m . getAccessFlags ( ) & Constants . ACC_SYNTHETIC ) != _NUM ) { return _BOOL ; } Attribute [ ] attrs = m . getAttributes ( ) ; for ( Attribute attr : attrs ) { if ( attr instanceof Synthetic ) { return _BOOL ; } } return _BOOL ; } | 69 |
java-test-10249 | java | What do not appear in the source code ? | methods marked with the " synthetic " attribute | private boolean is Synthetic ( Method m ) { if ( ( m . get Access Flags ( ) & Constants . ACC SYNTHETIC ) != NUM ) { return BOOL ; } Attribute [ ] attrs = m . get Attributes ( ) ; for ( Attribute attr : attrs ) { if ( attr instanceof Synthetic ) { return BOOL ; } } return BOOL ; } | private boolean isSynthetic ( Method m ) { if ( ( m . getAccessFlags ( ) & Constants . ACC_SYNTHETIC ) != _NUM ) { return _BOOL ; } Attribute [ ] attrs = m . getAttributes ( ) ; for ( Attribute attr : attrs ) { if ( attr instanceof Synthetic ) { return _BOOL ; } } return _BOOL ; } | 69 |
java-test-10250 | java | Where would they appear individually ? | in a source file | public static List < String > diagnostics To String ( List < Test Diagnostic > diagnostics ) { final List < String > strings = new Array List < String > ( diagnostics . size ( ) ) ; for ( Test Diagnostic diagnostic : diagnostics ) { strings . add ( diagnostic . to String ( ) ) ; } return strings ; } | public static List < String > diagnosticsToString ( List < TestDiagnostic > diagnostics ) { final List < String > strings = new ArrayList < String > ( diagnostics . size ( ) ) ; for ( TestDiagnostic diagnostic : diagnostics ) { strings . add ( diagnostic . toString ( ) ) ; } return strings ; } | 65 |
java-test-10258 | java | When do tests fix for bug # 30550 - executebatch ( ) on an empty batch when there are no elements in the batch cause a divide - by - zero error ? | when rewriting is enabled | public void test Bug 30550 ( ) throws Exception { create Table ( STRING , STRING ) ; Connection rewrite Conn = get Connection With Props ( STRING ) ; Prepared Statement batch P Stmt = null ; Statement batch Stmt = null ; try { batch Stmt = rewrite Conn . create Statement ( ) ; assert Equals ( NUM , batch Stmt . execute... | public void testBug30550 ( ) throws Exception { createTable ( STRING , STRING ) ; Connection rewriteConn = getConnectionWithProps ( STRING ) ; PreparedStatement batchPStmt = null ; Statement batchStmt = null ; try { batchStmt = rewriteConn . createStatement ( ) ; assertEquals ( _NUM , batchStmt . executeBatch ( ) . len... | 287 |
java-test-10259 | java | What do tests fix for bug # 30550 - executebatch ( ) on an empty batch when there are no elements in the batch cause when rewriting is enabled ? | a divide - by - zero error | public void test Bug 30550 ( ) throws Exception { create Table ( STRING , STRING ) ; Connection rewrite Conn = get Connection With Props ( STRING ) ; Prepared Statement batch P Stmt = null ; Statement batch Stmt = null ; try { batch Stmt = rewrite Conn . create Statement ( ) ; assert Equals ( NUM , batch Stmt . execute... | public void testBug30550 ( ) throws Exception { createTable ( STRING , STRING ) ; Connection rewriteConn = getConnectionWithProps ( STRING ) ; PreparedStatement batchPStmt = null ; Statement batchStmt = null ; try { batchStmt = rewriteConn . createStatement ( ) ; assertEquals ( _NUM , batchStmt . executeBatch ( ) . len... | 287 |
java-test-10260 | java | When are for bug # 30550 - executebatch ( ) on an empty batch fix ? | when there are no elements in the batch | public void test Bug 30550 ( ) throws Exception { create Table ( STRING , STRING ) ; Connection rewrite Conn = get Connection With Props ( STRING ) ; Prepared Statement batch P Stmt = null ; Statement batch Stmt = null ; try { batch Stmt = rewrite Conn . create Statement ( ) ; assert Equals ( NUM , batch Stmt . execute... | public void testBug30550 ( ) throws Exception { createTable ( STRING , STRING ) ; Connection rewriteConn = getConnectionWithProps ( STRING ) ; PreparedStatement batchPStmt = null ; Statement batchStmt = null ; try { batchStmt = rewriteConn . createStatement ( ) ; assertEquals ( _NUM , batchStmt . executeBatch ( ) . len... | 287 |
java-test-10261 | java | What causes a divide - by - zero error when rewriting is enabled ? | tests fix for bug # 30550 - executebatch ( ) on an empty batch when there are no elements in the batch | public void test Bug 30550 ( ) throws Exception { create Table ( STRING , STRING ) ; Connection rewrite Conn = get Connection With Props ( STRING ) ; Prepared Statement batch P Stmt = null ; Statement batch Stmt = null ; try { batch Stmt = rewrite Conn . create Statement ( ) ; assert Equals ( NUM , batch Stmt . execute... | public void testBug30550 ( ) throws Exception { createTable ( STRING , STRING ) ; Connection rewriteConn = getConnectionWithProps ( STRING ) ; PreparedStatement batchPStmt = null ; Statement batchStmt = null ; try { batchStmt = rewriteConn . createStatement ( ) ; assertEquals ( _NUM , batchStmt . executeBatch ( ) . len... | 287 |
java-test-10263 | java | What writes to outputstream ? | time parameter | public void write To ( final Packet Output Stream os ) { os . write ( Parameter Writer . QUOTE ) ; os . write ( date To Bytes ( ) ) ; Parameter Writer . format Microseconds ( os , ( int ) ( time . get Time ( ) % NUM ) * NUM , fractional Seconds ) ; os . write ( Parameter Writer . QUOTE ) ; } | public void writeTo ( final PacketOutputStream os ) { os . write ( ParameterWriter . QUOTE ) ; os . write ( dateToBytes ( ) ) ; ParameterWriter . formatMicroseconds ( os , ( int ) ( time . getTime ( ) % _NUM ) * _NUM , fractionalSeconds ) ; os . write ( ParameterWriter . QUOTE ) ; } | 72 |
java-test-10264 | java | What do time parameter write ? | to outputstream | public void write To ( final Packet Output Stream os ) { os . write ( Parameter Writer . QUOTE ) ; os . write ( date To Bytes ( ) ) ; Parameter Writer . format Microseconds ( os , ( int ) ( time . get Time ( ) % NUM ) * NUM , fractional Seconds ) ; os . write ( Parameter Writer . QUOTE ) ; } | public void writeTo ( final PacketOutputStream os ) { os . write ( ParameterWriter . QUOTE ) ; os . write ( dateToBytes ( ) ) ; ParameterWriter . formatMicroseconds ( os , ( int ) ( time . getTime ( ) % _NUM ) * _NUM , fractionalSeconds ) ; os . write ( ParameterWriter . QUOTE ) ; } | 72 |
java-test-10265 | java | What does the code add ? | the miter limit stroke | public static Rect add Miter Limit Stroke To Bounds ( Shape Record segment 1 , Shape Record segment 2 , double miter Limit , double half Weight , Rect path B Box , int x Prev , int y Prev , int x , int y ) { Point joint Point = new Point ( x , y ) ; if ( is Inner Joint ( joint Point , path B Box , miter Limit , half We... | public static Rect addMiterLimitStrokeToBounds ( ShapeRecord segment1 , ShapeRecord segment2 , double miterLimit , double halfWeight , Rect pathBBox , int xPrev , int yPrev , int x , int y ) { Point jointPoint = new Point ( x , y ) ; if ( isInnerJoint ( jointPoint , pathBBox , miterLimit , halfWeight ) ) { return pathB... | 745 |
java-test-10268 | java | What performs on a vm ? | a power state operation | @ Rpc Method public void power Vm Op ( String vm Id , Power Vm Op op , Async Method Callback < Host . Async Client . power vm op call > handler ) throws Rpc Exception { ensure Client ( ) ; Power Vm Op Request power Vm Op Request = new Power Vm Op Request ( vm Id , op ) ; client Proxy . set Timeout ( POWER VM OP TIMEOUT... | @ RpcMethod public void powerVmOp ( String vmId , PowerVmOp op , AsyncMethodCallback < Host . AsyncClient . power_vm_op_call > handler ) throws RpcException { ensureClient ( ) ; PowerVmOpRequest powerVmOpRequest = new PowerVmOpRequest ( vmId , op ) ; clientProxy . setTimeout ( POWER_VM_OP_TIMEOUT_MS ) ; logger . info (... | 138 |
java-test-10269 | java | For what purpose does this method perform an asynchronous thrift call on completion ? | to perform a power state operation on a vm | @ Rpc Method public void power Vm Op ( String vm Id , Power Vm Op op , Async Method Callback < Host . Async Client . power vm op call > handler ) throws Rpc Exception { ensure Client ( ) ; Power Vm Op Request power Vm Op Request = new Power Vm Op Request ( vm Id , op ) ; client Proxy . set Timeout ( POWER VM OP TIMEOUT... | @ RpcMethod public void powerVmOp ( String vmId , PowerVmOp op , AsyncMethodCallback < Host . AsyncClient . power_vm_op_call > handler ) throws RpcException { ensureClient ( ) ; PowerVmOpRequest powerVmOpRequest = new PowerVmOpRequest ( vmId , op ) ; clientProxy . setTimeout ( POWER_VM_OP_TIMEOUT_MS ) ; logger . info (... | 138 |
java-test-10270 | java | Where do a power state operation perform ? | on a vm | @ Rpc Method public void power Vm Op ( String vm Id , Power Vm Op op , Async Method Callback < Host . Async Client . power vm op call > handler ) throws Rpc Exception { ensure Client ( ) ; Power Vm Op Request power Vm Op Request = new Power Vm Op Request ( vm Id , op ) ; client Proxy . set Timeout ( POWER VM OP TIMEOUT... | @ RpcMethod public void powerVmOp ( String vmId , PowerVmOp op , AsyncMethodCallback < Host . AsyncClient . power_vm_op_call > handler ) throws RpcException { ensureClient ( ) ; PowerVmOpRequest powerVmOpRequest = new PowerVmOpRequest ( vmId , op ) ; clientProxy . setTimeout ( POWER_VM_OP_TIMEOUT_MS ) ; logger . info (... | 138 |
java-test-10271 | java | How did the lines of the file enrich ? | with annotations | private static List < String > lines To Write ( String path , Global global , List < Attribute > attributes , Class < ? > a Class ) throws No Such Field Exception , IO Exception { String [ ] class Identifier = new String [ ] { STRING , STRING , a Class . get Simple Name ( ) } ; boolean class Found = BOOL ; verify Attri... | private static List < String > linesToWrite ( String path , Global global , List < Attribute > attributes , Class < ? > aClass ) throws NoSuchFieldException , IOException { String [ ] classIdentifier = new String [ ] { STRING , STRING , aClass . getSimpleName ( ) } ; boolean classFound = _BOOL ; verifyAttributes ( aCla... | 406 |
java-test-10272 | java | What does this method return ? | the lines of the file enriched with annotations | private static List < String > lines To Write ( String path , Global global , List < Attribute > attributes , Class < ? > a Class ) throws No Such Field Exception , IO Exception { String [ ] class Identifier = new String [ ] { STRING , STRING , a Class . get Simple Name ( ) } ; boolean class Found = BOOL ; verify Attri... | private static List < String > linesToWrite ( String path , Global global , List < Attribute > attributes , Class < ? > aClass ) throws NoSuchFieldException , IOException { String [ ] classIdentifier = new String [ ] { STRING , STRING , aClass . getSimpleName ( ) } ; boolean classFound = _BOOL ; verifyAttributes ( aCla... | 406 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.