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-9369 | java | Where does the decryption take the decryption palce ? | on the consumer side | public byte [ ] decrypt Mac Key ( String enc Mac Key Base 64 , String server Public Key Base 64 ) throws Association Exception { byte [ ] hzz = get Digested ZZ ( server Public Key Base 64 ) ; byte [ ] enc Mac Key = Base 64 . decode Base 64 ( enc Mac Key Base 64 . get Bytes ( ) ) ; if ( hzz . length != enc Mac Key . len... | public byte [ ] decryptMacKey ( String encMacKeyBase64 , String serverPublicKeyBase64 ) throws AssociationException { byte [ ] hzz = getDigestedZZ ( serverPublicKeyBase64 ) ; byte [ ] encMacKey = Base64 . decodeBase64 ( encMacKeyBase64 . getBytes ( ) ) ; if ( hzz . length != encMacKey . length ) throw new AssociationEx... | 184 |
java-test-9371 | java | When did the code call ? | when one of the spaces in cluster connects to this space | public synchronized void on Space Connect ( Space Connection Event event ) { try { active Spaces . add ( event . get Id ( ) ) ; if ( current Space State == Startup State . WAITING ) { notify ( ) ; } else { change State ( Startup State . NOT LAST ) ; } } catch ( Exception e ) { if ( logger . is Loggable ( Level . WARNIN... | public synchronized void onSpaceConnect ( SpaceConnectionEvent event ) { try { _activeSpaces . add ( event . getId ( ) ) ; if ( _currentSpaceState == StartupState . WAITING ) { notify ( ) ; } else { changeState ( StartupState . NOT_LAST ) ; } } catch ( Exception e ) { if ( _logger . isLoggable ( Level . WARNING ) ) { _... | 99 |
java-test-9373 | java | What does the code create ? | the default text symbolizer | public static Text Symbolizer create Default Text Symbolizer ( ) { Expression font Family = ff . literal ( STRING ) ; Expression font Size = ff . literal ( NUM ) ; Expression font Style = ff . literal ( STRING ) ; Expression font Weight = ff . literal ( STRING ) ; Expression rotation = ff . literal ( NUM ) ; Expression... | public static TextSymbolizer createDefaultTextSymbolizer ( ) { Expression fontFamily = ff . literal ( STRING ) ; Expression fontSize = ff . literal ( _NUM ) ; Expression fontStyle = ff . literal ( STRING ) ; Expression fontWeight = ff . literal ( STRING ) ; Expression rotation = ff . literal ( _NUM ) ; Expression label... | 300 |
java-test-9375 | java | What provided the source where ? | isn ' t | protected Replaced Element new Irreplaceable Image Element ( int css Width , int css Height ) { Buffered Image missing Image ; Replaced Element mre ; try { missing Image = Image Util . create Compatible Buffered Image ( css Width , css Height , Buffered Image . TYPE INT RGB ) ; Graphics 2 D g = missing Image . create G... | protected ReplacedElement newIrreplaceableImageElement ( int cssWidth , int cssHeight ) { BufferedImage missingImage ; ReplacedElement mre ; try { missingImage = ImageUtil . createCompatibleBufferedImage ( cssWidth , cssHeight , BufferedImage . TYPE_INT_RGB ) ; Graphics2D g = missingImage . createGraphics ( ) ; g . set... | 179 |
java-test-9376 | java | What does the code create ? | a basic data source | @ Override public Data Source create Data Source ( Properties properties ) throws SQL Exception { Properties properties Copy = new Properties ( ) ; if ( properties != null ) { properties Copy . put All ( properties ) ; } reject Unsupported Options ( properties Copy ) ; reject Pooling Options ( properties Copy ) ; Jdbc ... | @ Override public DataSource createDataSource ( Properties properties ) throws SQLException { Properties propertiesCopy = new Properties ( ) ; if ( properties != null ) { propertiesCopy . putAll ( properties ) ; } rejectUnsupportedOptions ( propertiesCopy ) ; rejectPoolingOptions ( propertiesCopy ) ; JdbcDataSource dat... | 89 |
java-test-9381 | java | What does the code find ? | the names of a given object | public Set < String > find ( T object ) { if ( ! locations . contains Key ( object ) ) { locations . put ( object , new Hash Set < > ( ) ) ; } return Collections . unmodifiable Set ( locations . get ( object ) ) ; } | public Set < String > find ( T object ) { if ( ! locations . containsKey ( object ) ) { locations . put ( object , new HashSet < > ( ) ) ; } return Collections . unmodifiableSet ( locations . get ( object ) ) ; } | 54 |
java-test-9382 | java | Where does the code draw a shadow ? | around the given rectangle | public static void draw Shadow ( final Rectangle 2 D rect , final Graphics 2 D g2 ) { Graphics 2 D g2 S = ( Graphics 2 D ) g2 . create ( ) ; Rectangle 2 D shadow = new Rectangle 2 D . Double ( rect . get X ( ) + NUM , rect . get Y ( ) + Process Drawer . HEADER HEIGHT + NUM , rect . get Width ( ) , rect . get Height ( )... | public static void drawShadow ( final Rectangle2D rect , final Graphics2D g2 ) { Graphics2D g2S = ( Graphics2D ) g2 . create ( ) ; Rectangle2D shadow = new Rectangle2D . Double ( rect . getX ( ) + _NUM , rect . getY ( ) + ProcessDrawer . HEADER_HEIGHT + _NUM , rect . getWidth ( ) , rect . getHeight ( ) - ProcessDrawer ... | 448 |
java-test-9383 | java | When do any open web sockets associated with it close explicitly to avoid stale websockets . if any ? | when current session scope | @ Pre Destroy protected void deregister Session Scope ( ) { for ( Entry < Serializable , String > session User : session Users . entry Set ( ) ) { socket Users . deregister ( session User . get Key ( ) , session User . get Value ( ) ) ; } socket Sessions . deregister ( session Scope . values ( ) ) ; } | @ PreDestroy protected void deregisterSessionScope ( ) { for ( Entry < Serializable , String > sessionUser : sessionUsers . entrySet ( ) ) { socketUsers . deregister ( sessionUser . getKey ( ) , sessionUser . getValue ( ) ) ; } socketSessions . deregister ( sessionScope . values ( ) ) ; } | 68 |
java-test-9384 | java | For what purpose do any open web sockets associated with it close explicitly when current session scope ? | to avoid stale websockets . if any | @ Pre Destroy protected void deregister Session Scope ( ) { for ( Entry < Serializable , String > session User : session Users . entry Set ( ) ) { socket Users . deregister ( session User . get Key ( ) , session User . get Value ( ) ) ; } socket Sessions . deregister ( session Scope . values ( ) ) ; } | @ PreDestroy protected void deregisterSessionScope ( ) { for ( Entry < Serializable , String > sessionUser : sessionUsers . entrySet ( ) ) { socketUsers . deregister ( sessionUser . getKey ( ) , sessionUser . getValue ( ) ) ; } socketSessions . deregister ( sessionScope . values ( ) ) ; } | 68 |
java-test-9385 | java | What does the code add ? | a connection to the management database | synchronized void add Connection ( int id , String url , String user ) { try { management Db Add . set Int ( NUM , id ) ; management Db Add . set String ( NUM , url ) ; management Db Add . set String ( NUM , user ) ; management Db Add . execute ( ) ; } catch ( SQL Exception e ) { Db Exception . trace Throwable ( e ) ; ... | synchronized void addConnection ( int id , String url , String user ) { try { managementDbAdd . setInt ( _NUM , id ) ; managementDbAdd . setString ( _NUM , url ) ; managementDbAdd . setString ( _NUM , user ) ; managementDbAdd . execute ( ) ; } catch ( SQLException e ) { DbException . traceThrowable ( e ) ; } } | 80 |
java-test-9387 | java | What does the code add to the polygon of the item under construction ? | a corner | public State Interactive add corner ( Pla Point Float p location ) { Pla Point Int location = snap to restriction ( p location . round ( ) ) ; corner list . add ( location ) ; i brd . repaint ( ) ; actlog add corner ( p location ) ; return this ; } | public StateInteractive add_corner ( PlaPointFloat p_location ) { PlaPointInt location = snap_to_restriction ( p_location . round ( ) ) ; corner_list . add ( location ) ; i_brd . repaint ( ) ; actlog_add_corner ( p_location ) ; return this ; } | 57 |
java-test-9392 | java | What sends a message to the javascriptcontext via a navigation callback so that it can cause java code to be executed ? | a javascript proxy method | void add Callback ( JS Object source , String method , JS Function callback , boolean async ) { String key = source . to JS Pointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JS Object . ID KEY ; String self = source . to JS Pointer ( ) ; String js = self + STRING + method + STRING + STRIN... | void addCallback ( JSObject source , String method , JSFunction callback , boolean async ) { String key = source . toJSPointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JSObject . ID_KEY ; String self = source . toJSPointer ( ) ; String js = self + STRING + method + STRING + STRING + self... | 158 |
java-test-9393 | java | How does a javascript proxy method send a message to the javascriptcontext so that it can cause java code to be executed ? | via a navigation callback | void add Callback ( JS Object source , String method , JS Function callback , boolean async ) { String key = source . to JS Pointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JS Object . ID KEY ; String self = source . to JS Pointer ( ) ; String js = self + STRING + method + STRING + STRIN... | void addCallback ( JSObject source , String method , JSFunction callback , boolean async ) { String key = source . toJSPointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JSObject . ID_KEY ; String self = source . toJSPointer ( ) ; String js = self + STRING + method + STRING + STRING + self... | 158 |
java-test-9394 | java | What handles calls to the specified javascript object ? | a jsfunction | void add Callback ( JS Object source , String method , JS Function callback , boolean async ) { String key = source . to JS Pointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JS Object . ID KEY ; String self = source . to JS Pointer ( ) ; String js = self + STRING + method + STRING + STRIN... | void addCallback ( JSObject source , String method , JSFunction callback , boolean async ) { String key = source . toJSPointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JSObject . ID_KEY ; String self = source . toJSPointer ( ) ; String js = self + STRING + method + STRING + STRING + self... | 158 |
java-test-9395 | java | What does the code add ? | a jsfunction to handle calls to the specified javascript object | void add Callback ( JS Object source , String method , JS Function callback , boolean async ) { String key = source . to JS Pointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JS Object . ID KEY ; String self = source . to JS Pointer ( ) ; String js = self + STRING + method + STRING + STRIN... | void addCallback ( JSObject source , String method , JSFunction callback , boolean async ) { String key = source . toJSPointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JSObject . ID_KEY ; String self = source . toJSPointer ( ) ; String js = self + STRING + method + STRING + STRING + self... | 158 |
java-test-9396 | java | For what purpose does a javascript proxy method send a message to the javascriptcontext via a navigation callback ? | so that it can cause java code to be executed | void add Callback ( JS Object source , String method , JS Function callback , boolean async ) { String key = source . to JS Pointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JS Object . ID KEY ; String self = source . to JS Pointer ( ) ; String js = self + STRING + method + STRING + STRIN... | void addCallback ( JSObject source , String method , JSFunction callback , boolean async ) { String key = source . toJSPointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JSObject . ID_KEY ; String self = source . toJSPointer ( ) ; String js = self + STRING + method + STRING + STRING + self... | 158 |
java-test-9397 | java | What does this instal essentially ? | a javascript proxy method that sends a message via a navigation callback to the javascriptcontext so that it can cause java code to be executed | void add Callback ( JS Object source , String method , JS Function callback , boolean async ) { String key = source . to JS Pointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JS Object . ID KEY ; String self = source . to JS Pointer ( ) ; String js = self + STRING + method + STRING + STRIN... | void addCallback ( JSObject source , String method , JSFunction callback , boolean async ) { String key = source . toJSPointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JSObject . ID_KEY ; String self = source . toJSPointer ( ) ; String js = self + STRING + method + STRING + STRING + self... | 158 |
java-test-9398 | java | What can it cause ? | java code to be executed | void add Callback ( JS Object source , String method , JS Function callback , boolean async ) { String key = source . to JS Pointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JS Object . ID KEY ; String self = source . to JS Pointer ( ) ; String js = self + STRING + method + STRING + STRIN... | void addCallback ( JSObject source , String method , JSFunction callback , boolean async ) { String key = source . toJSPointer ( ) + STRING + method ; callbacks . put ( key , callback ) ; String id = JSObject . ID_KEY ; String self = source . toJSPointer ( ) ; String js = self + STRING + method + STRING + STRING + self... | 158 |
java-test-9399 | java | What does this method send to the operator thread only then ? | free memory request | @ Override public long free Memory ( long window Id ) throws IO Exception { long size = key Stream . data Size Up To Window ( window Id ) + value Stream . data Size Up To Window ( window Id ) ; windows For Free Memory . add ( window Id ) ; return size ; } | @ Override public long freeMemory ( long windowId ) throws IOException { long size = keyStream . dataSizeUpToWindow ( windowId ) + valueStream . dataSizeUpToWindow ( windowId ) ; windowsForFreeMemory . add ( windowId ) ; return size ; } | 59 |
java-test-9400 | java | What does this method calculate only ? | the size of the memory that could be released | @ Override public long free Memory ( long window Id ) throws IO Exception { long size = key Stream . data Size Up To Window ( window Id ) + value Stream . data Size Up To Window ( window Id ) ; windows For Free Memory . add ( window Id ) ; return size ; } | @ Override public long freeMemory ( long windowId ) throws IOException { long size = keyStream . dataSizeUpToWindow ( windowId ) + valueStream . dataSizeUpToWindow ( windowId ) ; windowsForFreeMemory . add ( windowId ) ; return size ; } | 59 |
java-test-9401 | java | What does the code remove ? | all blocks , block listeners , and entry points | public void remove All Blocks From Section ( ) { for ( int i = m Block Entries . size ( ) ; i > NUM ; i -- ) { Block b = m Block Entries . get ( i - NUM ) ; if ( b != null ) { b . remove Property Change Listener ( m Block Listeners . get ( i - NUM ) ) ; } m Block Listeners . remove ( i - NUM ) ; m Block Entries . remov... | public void removeAllBlocksFromSection ( ) { for ( int i = mBlockEntries . size ( ) ; i > _NUM ; i -- ) { Block b = mBlockEntries . get ( i - _NUM ) ; if ( b != null ) { b . removePropertyChangeListener ( mBlockListeners . get ( i - _NUM ) ) ; } mBlockListeners . remove ( i - _NUM ) ; mBlockEntries . remove ( i - _NUM ... | 171 |
java-test-9402 | java | Where be its stored ? | in the commitrecord | @ Override public long handle Commit ( final long commit Time ) { if ( error != null ) throw new Index Inconsistent Error ( error ) ; final I Root Block View view = journal . get Root Block View ( ) ; final Byte Buffer rbv = view . as Read Only Buffer ( ) ; final Byte Buffer bb = Byte Buffer . allocate ( rbv . capacity... | @ Override public long handleCommit ( final long commitTime ) { if ( error != null ) throw new IndexInconsistentError ( error ) ; final IRootBlockView view = journal . getRootBlockView ( ) ; final ByteBuffer rbv = view . asReadOnlyBuffer ( ) ; final ByteBuffer bb = ByteBuffer . allocate ( rbv . capacity ( ) ) ; for ( i... | 121 |
java-test-9403 | java | For what purpose does the code return its address ? | to be stored in the commitrecord | @ Override public long handle Commit ( final long commit Time ) { if ( error != null ) throw new Index Inconsistent Error ( error ) ; final I Root Block View view = journal . get Root Block View ( ) ; final Byte Buffer rbv = view . as Read Only Buffer ( ) ; final Byte Buffer bb = Byte Buffer . allocate ( rbv . capacity... | @ Override public long handleCommit ( final long commitTime ) { if ( error != null ) throw new IndexInconsistentError ( error ) ; final IRootBlockView view = journal . getRootBlockView ( ) ; final ByteBuffer rbv = view . asReadOnlyBuffer ( ) ; final ByteBuffer bb = ByteBuffer . allocate ( rbv . capacity ( ) ) ; for ( i... | 121 |
java-test-9404 | java | What does the code return to be stored in the commitrecord ? | its address | @ Override public long handle Commit ( final long commit Time ) { if ( error != null ) throw new Index Inconsistent Error ( error ) ; final I Root Block View view = journal . get Root Block View ( ) ; final Byte Buffer rbv = view . as Read Only Buffer ( ) ; final Byte Buffer bb = Byte Buffer . allocate ( rbv . capacity... | @ Override public long handleCommit ( final long commitTime ) { if ( error != null ) throw new IndexInconsistentError ( error ) ; final IRootBlockView view = journal . getRootBlockView ( ) ; final ByteBuffer rbv = view . asReadOnlyBuffer ( ) ; final ByteBuffer bb = ByteBuffer . allocate ( rbv . capacity ( ) ) ; for ( i... | 121 |
java-test-9405 | java | What does the code write to the journal ? | the current root block | @ Override public long handle Commit ( final long commit Time ) { if ( error != null ) throw new Index Inconsistent Error ( error ) ; final I Root Block View view = journal . get Root Block View ( ) ; final Byte Buffer rbv = view . as Read Only Buffer ( ) ; final Byte Buffer bb = Byte Buffer . allocate ( rbv . capacity... | @ Override public long handleCommit ( final long commitTime ) { if ( error != null ) throw new IndexInconsistentError ( error ) ; final IRootBlockView view = journal . getRootBlockView ( ) ; final ByteBuffer rbv = view . asReadOnlyBuffer ( ) ; final ByteBuffer bb = ByteBuffer . allocate ( rbv . capacity ( ) ) ; for ( i... | 121 |
java-test-9406 | java | Where does all available snapshots load ? | in the repository | protected Tuple < Blob Store Index Shard Snapshots , Integer > build Blob Store Index Shard Snapshots ( Map < String , Blob Meta Data > blobs ) { int latest = - NUM ; for ( String name : blobs . key Set ( ) ) { if ( name . starts With ( SNAPSHOT INDEX PREFIX ) ) { try { int gen = Integer . parse Int ( name . substring ... | protected Tuple < BlobStoreIndexShardSnapshots , Integer > buildBlobStoreIndexShardSnapshots ( Map < String , BlobMetaData > blobs ) { int latest = - _NUM ; for ( String name : blobs . keySet ( ) ) { if ( name . startsWith ( SNAPSHOT_INDEX_PREFIX ) ) { try { int gen = Integer . parseInt ( name . substring ( SNAPSHOT_IN... | 353 |
java-test-9407 | java | What loads in the repository ? | all available snapshots | protected Tuple < Blob Store Index Shard Snapshots , Integer > build Blob Store Index Shard Snapshots ( Map < String , Blob Meta Data > blobs ) { int latest = - NUM ; for ( String name : blobs . key Set ( ) ) { if ( name . starts With ( SNAPSHOT INDEX PREFIX ) ) { try { int gen = Integer . parse Int ( name . substring ... | protected Tuple < BlobStoreIndexShardSnapshots , Integer > buildBlobStoreIndexShardSnapshots ( Map < String , BlobMetaData > blobs ) { int latest = - _NUM ; for ( String name : blobs . keySet ( ) ) { if ( name . startsWith ( SNAPSHOT_INDEX_PREFIX ) ) { try { int gen = Integer . parseInt ( name . substring ( SNAPSHOT_IN... | 353 |
java-test-9409 | java | What does empty collection return ? | invokeall ( empty collection | public void test Invoke All 2 ( ) throws Interrupted Exception { Executor Service e = new Fork Join Pool ( NUM ) ; Pool Cleaner cleaner = null ; try { cleaner = cleaner ( e ) ; List < Future < String > > r = e . invoke All ( new Array List < Callable < String > > ( ) ) ; assert True ( r . is Empty ( ) ) ; } finally { i... | public void testInvokeAll2 ( ) throws InterruptedException { ExecutorService e = new ForkJoinPool ( _NUM ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; List < Future < String > > r = e . invokeAll ( new ArrayList < Callable < String > > ( ) ) ; assertTrue ( r . isEmpty ( ) ) ; } finally { if ( cleaner... | 96 |
java-test-9410 | java | What returns invokeall ( empty collection ? | empty collection | public void test Invoke All 2 ( ) throws Interrupted Exception { Executor Service e = new Fork Join Pool ( NUM ) ; Pool Cleaner cleaner = null ; try { cleaner = cleaner ( e ) ; List < Future < String > > r = e . invoke All ( new Array List < Callable < String > > ( ) ) ; assert True ( r . is Empty ( ) ) ; } finally { i... | public void testInvokeAll2 ( ) throws InterruptedException { ExecutorService e = new ForkJoinPool ( _NUM ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; List < Future < String > > r = e . invokeAll ( new ArrayList < Callable < String > > ( ) ) ; assertTrue ( r . isEmpty ( ) ) ; } finally { if ( cleaner... | 96 |
java-test-9411 | java | How will the contents of the tobezippedname directory store into a zip file ? | with the provided name | public boolean zip ( String zip Location , String to Be Zipped Name ) { boolean ret = BOOL ; if ( verbose ) Debug . put ( STRING ) ; File to Be Zipped = new File ( to Be Zipped Name ) ; if ( to Be Zipped . exists ( ) ) { try { File Utils . save Zip File ( zip Location , to Be Zipped ) ; ret = BOOL ; } catch ( File Not ... | public boolean zip ( String zipLocation , String toBeZippedName ) { boolean ret = _BOOL ; if ( verbose ) Debug . put ( STRING ) ; File toBeZipped = new File ( toBeZippedName ) ; if ( toBeZipped . exists ( ) ) { try { FileUtils . saveZipFile ( zipLocation , toBeZipped ) ; ret = _BOOL ; } catch ( FileNotFoundException e ... | 117 |
java-test-9412 | java | What does the code generate ? | a hashmap used to store expanded state for items in the list on configuration change or whenever onresume is called | private Hash Map < Integer , Boolean > generate Expanded State Map ( ) { Hash Map < Integer , Boolean > parent List Item Hash Map = new Hash Map < > ( ) ; int child Count = NUM ; Object list Item ; Parent Wrapper parent Wrapper ; int list Item Count = m Item List . size ( ) ; for ( int i = NUM ; i < list Item Count ; i... | private HashMap < Integer , Boolean > generateExpandedStateMap ( ) { HashMap < Integer , Boolean > parentListItemHashMap = new HashMap < > ( ) ; int childCount = _NUM ; Object listItem ; ParentWrapper parentWrapper ; int listItemCount = mItemList . size ( ) ; for ( int i = _NUM ; i < listItemCount ; i ++ ) { if ( mItem... | 164 |
java-test-9413 | java | What did a hashmap use ? | to store expanded state for items in the list on configuration change | private Hash Map < Integer , Boolean > generate Expanded State Map ( ) { Hash Map < Integer , Boolean > parent List Item Hash Map = new Hash Map < > ( ) ; int child Count = NUM ; Object list Item ; Parent Wrapper parent Wrapper ; int list Item Count = m Item List . size ( ) ; for ( int i = NUM ; i < list Item Count ; i... | private HashMap < Integer , Boolean > generateExpandedStateMap ( ) { HashMap < Integer , Boolean > parentListItemHashMap = new HashMap < > ( ) ; int childCount = _NUM ; Object listItem ; ParentWrapper parentWrapper ; int listItemCount = mItemList . size ( ) ; for ( int i = _NUM ; i < listItemCount ; i ++ ) { if ( mItem... | 164 |
java-test-9416 | java | How does the code start the server ? | by starting all endpoints this server is assigned to | @ Override public synchronized void start ( ) { if ( running ) { return ; } LOGGER . info ( STRING ) ; if ( endpoints . is Empty ( ) ) { int port = config . get Int ( Network Config . Keys . COAP PORT ) ; LOGGER . log ( Level . INFO , STRING , port ) ; add Endpoint ( new Coap Endpoint ( port , this . config ) ) ; } int... | @ Override public synchronized void start ( ) { if ( running ) { return ; } LOGGER . info ( STRING ) ; if ( endpoints . isEmpty ( ) ) { int port = config . getInt ( NetworkConfig . Keys . COAP_PORT ) ; LOGGER . log ( Level . INFO , STRING , port ) ; addEndpoint ( new CoapEndpoint ( port , this . config ) ) ; } int star... | 161 |
java-test-9417 | java | What does the code start ? | all endpoints this server is assigned to | @ Override public synchronized void start ( ) { if ( running ) { return ; } LOGGER . info ( STRING ) ; if ( endpoints . is Empty ( ) ) { int port = config . get Int ( Network Config . Keys . COAP PORT ) ; LOGGER . log ( Level . INFO , STRING , port ) ; add Endpoint ( new Coap Endpoint ( port , this . config ) ) ; } int... | @ Override public synchronized void start ( ) { if ( running ) { return ; } LOGGER . info ( STRING ) ; if ( endpoints . isEmpty ( ) ) { int port = config . getInt ( NetworkConfig . Keys . COAP_PORT ) ; LOGGER . log ( Level . INFO , STRING , port ) ; addEndpoint ( new CoapEndpoint ( port , this . config ) ) ; } int star... | 161 |
java-test-9418 | java | Where is an endpoint started if no endpoint is assigned to the server ? | on the port defined in the config | @ Override public synchronized void start ( ) { if ( running ) { return ; } LOGGER . info ( STRING ) ; if ( endpoints . is Empty ( ) ) { int port = config . get Int ( Network Config . Keys . COAP PORT ) ; LOGGER . log ( Level . INFO , STRING , port ) ; add Endpoint ( new Coap Endpoint ( port , this . config ) ) ; } int... | @ Override public synchronized void start ( ) { if ( running ) { return ; } LOGGER . info ( STRING ) ; if ( endpoints . isEmpty ( ) ) { int port = config . getInt ( NetworkConfig . Keys . COAP_PORT ) ; LOGGER . log ( Level . INFO , STRING , port ) ; addEndpoint ( new CoapEndpoint ( port , this . config ) ) ; } int star... | 161 |
java-test-9419 | java | What does the code create ? | the blockobject blockmirror data | private void create Block Mirror Data ( String name , int num Block Mirrors ) throws Exception { Volume volume = new Volume ( ) ; URI volume URI = URI Util . create Id ( Volume . class ) ; test Volume UR Is . add ( volume URI ) ; volume . set Id ( volume URI ) ; volume . set Label ( STRING ) ; URI cg Uri = create Block... | private void createBlockMirrorData ( String name , int numBlockMirrors ) throws Exception { Volume volume = new Volume ( ) ; URI volumeURI = URIUtil . createId ( Volume . class ) ; testVolumeURIs . add ( volumeURI ) ; volume . setId ( volumeURI ) ; volume . setLabel ( STRING ) ; URI cgUri = createBlockConsistencyGroup ... | 203 |
java-test-9422 | java | What does the code extract from the given uri ? | the accesskey | protected static String extract Access Key ( String s3 uri ) { return s3 uri . substring ( s3 uri . index Of ( STRING ) + NUM , s3 uri . index Of ( STRING , s3 uri . index Of ( STRING ) + NUM ) ) ; } | protected static String extractAccessKey ( String s3uri ) { return s3uri . substring ( s3uri . indexOf ( STRING ) + _NUM , s3uri . indexOf ( STRING , s3uri . indexOf ( STRING ) + _NUM ) ) ; } | 51 |
java-test-9424 | java | What does the code create ? | a metrics object with the dimensions map immutable | public static Metrics create ( Map < String , String > dimension Map ) { Map < String , String > map = Maps . new Tree Map ( ) ; map . put All ( dimension Map ) ; return new Metrics ( Collections . unmodifiable Map ( map ) ) ; } | public static Metrics create ( Map < String , String > dimensionMap ) { Map < String , String > map = Maps . newTreeMap ( ) ; map . putAll ( dimensionMap ) ; return new Metrics ( Collections . unmodifiableMap ( map ) ) ; } | 54 |
java-test-9431 | java | How do the tables drop ? | by the passing table name | protected void drop Tables ( List < String > drop Table Names , SQ Lite Database db ) { if ( drop Table Names != null && ! drop Table Names . is Empty ( ) ) { String [ ] drop Table SQLS = new String [ drop Table Names . size ( ) ] ; for ( int i = NUM ; i < drop Table SQLS . length ; i ++ ) { drop Table SQLS [ i ] = gen... | protected void dropTables ( List < String > dropTableNames , SQLiteDatabase db ) { if ( dropTableNames != null && ! dropTableNames . isEmpty ( ) ) { String [ ] dropTableSQLS = new String [ dropTableNames . size ( ) ] ; for ( int i = _NUM ; i < dropTableSQLS . length ; i ++ ) { dropTableSQLS [ i ] = generateDropTableSQL... | 110 |
java-test-9432 | java | What does the code create ? | a jsni method invocation expression | private static String create Js Method Invocation Expression ( String method Name , boolean is Static , String ... param Names ) { String Builder sb = new String Builder ( ) ; sb . append ( is Static ? WND : THIS ) ; sb . append ( STRING ) ; sb . append ( method Name ) ; sb . append ( STRING ) ; for ( int i = NUM ; i <... | private static String createJsMethodInvocationExpression ( String methodName , boolean isStatic , String ... paramNames ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( isStatic ? WND : THIS ) ; sb . append ( STRING ) ; sb . append ( methodName ) ; sb . append ( STRING ) ; for ( int i = _NUM ; i < paramName... | 128 |
java-test-9433 | java | What does helper methods adjust as with caching ? | the actual length of the backing file for caching | private void adjust Backing File Length ( byte [ ] buffer , long index ) throws IO Exception { if ( buffer == null || buffer . length == NUM ) { throw new IO Exception ( STRING ) ; } long newsize = f Header . header Size ( ) + ( index * CHUNK ENC SIZE ) + CHUNK IV SIZE + buffer . length + CHUNK TLEN ; if ( newsize > re... | private void adjustBackingFileLength ( byte [ ] buffer , long index ) throws IOException { if ( buffer == null || buffer . length == _NUM ) { throw new IOException ( STRING ) ; } long newsize = fHeader . headerSize ( ) + ( index * CHUNK_ENC_SIZE ) + CHUNK_IV_SIZE + buffer . length + CHUNK_TLEN ; if ( newsize > realLeng... | 94 |
java-test-9434 | java | For what purpose be the file size extended in advance ? | in order for methods like seek / skipbytes / . . . to still be able to work | private void adjust Backing File Length ( byte [ ] buffer , long index ) throws IO Exception { if ( buffer == null || buffer . length == NUM ) { throw new IO Exception ( STRING ) ; } long newsize = f Header . header Size ( ) + ( index * CHUNK ENC SIZE ) + CHUNK IV SIZE + buffer . length + CHUNK TLEN ; if ( newsize > re... | private void adjustBackingFileLength ( byte [ ] buffer , long index ) throws IOException { if ( buffer == null || buffer . length == _NUM ) { throw new IOException ( STRING ) ; } long newsize = fHeader . headerSize ( ) + ( index * CHUNK_ENC_SIZE ) + CHUNK_IV_SIZE + buffer . length + CHUNK_TLEN ; if ( newsize > realLeng... | 94 |
java-test-9435 | java | What does the code create ? | a sequence of subnets with 2 pins from p_pin_list | private static Collection < Collection < Dsn Net Pin > > create ordered subnets ( Collection < Dsn Net Pin > p pin list ) { Collection < Collection < Dsn Net Pin > > result = new Linked List < Collection < Dsn Net Pin > > ( ) ; if ( p pin list . is Empty ( ) ) { return result ; } Iterator < Dsn Net Pin > it = p pin lis... | private static Collection < Collection < DsnNetPin > > create_ordered_subnets ( Collection < DsnNetPin > p_pin_list ) { Collection < Collection < DsnNetPin > > result = new LinkedList < Collection < DsnNetPin > > ( ) ; if ( p_pin_list . isEmpty ( ) ) { return result ; } Iterator < DsnNetPin > it = p_pin_list . iterator... | 186 |
java-test-9436 | java | What does the code calculate ? | the number of cells on the shortest path between ( x1 , z1 ) and ( x2 , z2 ) | private int dist Between Points ( int x1 , int z1 , int x2 , int z2 , boolean b Allow Diags ) { int w = Math . abs ( x2 - x1 ) ; int h = Math . abs ( z2 - z1 ) ; if ( b Allow Diags ) { if ( w < h ) w = NUM ; else h = NUM ; } return w + h + NUM ; } | private int distBetweenPoints ( int x1 , int z1 , int x2 , int z2 , boolean bAllowDiags ) { int w = Math . abs ( x2 - x1 ) ; int h = Math . abs ( z2 - z1 ) ; if ( bAllowDiags ) { if ( w < h ) w = _NUM ; else h = _NUM ; } return w + h + _NUM ; } | 79 |
java-test-9438 | java | What has the code locates ? | an edge of a triangle which contains a location specified by a vertex v | public Quad Edge locate From Edge ( Vertex v , Quad Edge start Edge ) { int iter = NUM ; int max Iter = quad Edges . size ( ) ; Quad Edge e = start Edge ; while ( BOOL ) { iter ++ ; if ( iter > max Iter ) { throw new Locate Failure Exception ( e . to Line Segment ( ) ) ; } if ( ( v . equals ( e . orig ( ) ) ) || ( v . ... | public QuadEdge locateFromEdge ( Vertex v , QuadEdge startEdge ) { int iter = _NUM ; int maxIter = quadEdges . size ( ) ; QuadEdge e = startEdge ; while ( _BOOL ) { iter ++ ; if ( iter > maxIter ) { throw new LocateFailureException ( e . toLineSegment ( ) ) ; } if ( ( v . equals ( e . orig ( ) ) ) || ( v . equals ( e .... | 190 |
java-test-9439 | java | What does the edge returned have ? | the property that either v is on e , or e is an edge of a triangle containing v . the search starts from startedge amd proceeds on the general direction of v . < p > this locate algorithm relies on the subdivision being delaunay | public Quad Edge locate From Edge ( Vertex v , Quad Edge start Edge ) { int iter = NUM ; int max Iter = quad Edges . size ( ) ; Quad Edge e = start Edge ; while ( BOOL ) { iter ++ ; if ( iter > max Iter ) { throw new Locate Failure Exception ( e . to Line Segment ( ) ) ; } if ( ( v . equals ( e . orig ( ) ) ) || ( v . ... | public QuadEdge locateFromEdge ( Vertex v , QuadEdge startEdge ) { int iter = _NUM ; int maxIter = quadEdges . size ( ) ; QuadEdge e = startEdge ; while ( _BOOL ) { iter ++ ; if ( iter > maxIter ) { throw new LocateFailureException ( e . toLineSegment ( ) ) ; } if ( ( v . equals ( e . orig ( ) ) ) || ( v . equals ( e .... | 190 |
java-test-9440 | java | What has the property that either v is on e , or e is an edge of a triangle containing v . the search starts from startedge amd proceeds on the general direction of v . <p> this locate algorithm relies on the subdivision being delaunay ? | the edge returned | public Quad Edge locate From Edge ( Vertex v , Quad Edge start Edge ) { int iter = NUM ; int max Iter = quad Edges . size ( ) ; Quad Edge e = start Edge ; while ( BOOL ) { iter ++ ; if ( iter > max Iter ) { throw new Locate Failure Exception ( e . to Line Segment ( ) ) ; } if ( ( v . equals ( e . orig ( ) ) ) || ( v . ... | public QuadEdge locateFromEdge ( Vertex v , QuadEdge startEdge ) { int iter = _NUM ; int maxIter = quadEdges . size ( ) ; QuadEdge e = startEdge ; while ( _BOOL ) { iter ++ ; if ( iter > maxIter ) { throw new LocateFailureException ( e . toLineSegment ( ) ) ; } if ( ( v . equals ( e . orig ( ) ) ) || ( v . equals ( e .... | 190 |
java-test-9441 | java | In which direction does the search start ? | from startedge | public Quad Edge locate From Edge ( Vertex v , Quad Edge start Edge ) { int iter = NUM ; int max Iter = quad Edges . size ( ) ; Quad Edge e = start Edge ; while ( BOOL ) { iter ++ ; if ( iter > max Iter ) { throw new Locate Failure Exception ( e . to Line Segment ( ) ) ; } if ( ( v . equals ( e . orig ( ) ) ) || ( v . ... | public QuadEdge locateFromEdge ( Vertex v , QuadEdge startEdge ) { int iter = _NUM ; int maxIter = quadEdges . size ( ) ; QuadEdge e = startEdge ; while ( _BOOL ) { iter ++ ; if ( iter > maxIter ) { throw new LocateFailureException ( e . toLineSegment ( ) ) ; } if ( ( v . equals ( e . orig ( ) ) ) || ( v . equals ( e .... | 190 |
java-test-9442 | java | When may this loop ? | for ever | public Quad Edge locate From Edge ( Vertex v , Quad Edge start Edge ) { int iter = NUM ; int max Iter = quad Edges . size ( ) ; Quad Edge e = start Edge ; while ( BOOL ) { iter ++ ; if ( iter > max Iter ) { throw new Locate Failure Exception ( e . to Line Segment ( ) ) ; } if ( ( v . equals ( e . orig ( ) ) ) || ( v . ... | public QuadEdge locateFromEdge ( Vertex v , QuadEdge startEdge ) { int iter = _NUM ; int maxIter = quadEdges . size ( ) ; QuadEdge e = startEdge ; while ( _BOOL ) { iter ++ ; if ( iter > maxIter ) { throw new LocateFailureException ( e . toLineSegment ( ) ) ; } if ( ( v . equals ( e . orig ( ) ) ) || ( v . equals ( e .... | 190 |
java-test-9448 | java | What does the code remove ? | accepted offer cards from data / talk / text update the baseplan | @ On Click ( R . id . accept ) public void on Remove Click ( View view ) { if ( System Clock . elapsed Realtime ( ) - m Last Click Time < NUM ) { return ; } m Last Click Time = System Clock . elapsed Realtime ( ) ; Offer offer To Remove ; if ( data Recycler Adapter != null ) { offer To Remove = offers . get ( get Card ... | @ OnClick ( R . id . accept ) public void onRemoveClick ( View view ) { if ( SystemClock . elapsedRealtime ( ) - mLastClickTime < _NUM ) { return ; } mLastClickTime = SystemClock . elapsedRealtime ( ) ; Offer offerToRemove ; if ( dataRecyclerAdapter != null ) { offerToRemove = offers . get ( getCardPosition ( getAdapte... | 177 |
java-test-9449 | java | What does the code provide accordingly ? | options for undo | @ On Click ( R . id . accept ) public void on Remove Click ( View view ) { if ( System Clock . elapsed Realtime ( ) - m Last Click Time < NUM ) { return ; } m Last Click Time = System Clock . elapsed Realtime ( ) ; Offer offer To Remove ; if ( data Recycler Adapter != null ) { offer To Remove = offers . get ( get Card ... | @ OnClick ( R . id . accept ) public void onRemoveClick ( View view ) { if ( SystemClock . elapsedRealtime ( ) - mLastClickTime < _NUM ) { return ; } mLastClickTime = SystemClock . elapsedRealtime ( ) ; Offer offerToRemove ; if ( dataRecyclerAdapter != null ) { offerToRemove = offers . get ( getCardPosition ( getAdapte... | 177 |
java-test-9450 | java | How does a classdefinitionnode modify ? | by a ) generating a temp class full of property wrappers etc . , as directed by info structure | protected void modify Syntax Tree ( Context context , Class Definition Node class Def , Generative Class Info class Info ) { Program Node gen Program Node = generate Support Code ( context , class Def . name . name ) ; if ( gen Program Node . statements . items != null ) { apply Generated Support Code ( context , class... | protected void modifySyntaxTree ( Context context , ClassDefinitionNode classDef , GenerativeClassInfo classInfo ) { ProgramNode genProgramNode = generateSupportCode ( context , classDef . name . name ) ; if ( genProgramNode . statements . items != null ) { applyGeneratedSupportCode ( context , classDef , classInfo , g... | 75 |
java-test-9452 | java | What does the code write to a gff version 3 file ? | a protein object | public int write ( Protein protein ) throws IO Exception { int sequence Length = protein . get Sequence Length ( ) ; String md 5 = protein . get Md 5 ( ) ; String date = dmy Format . format ( new Date ( ) ) ; Set < Match > matches = protein . get Matches ( ) ; String protein Id For GFF = null ; List < String > protein ... | public int write ( Protein protein ) throws IOException { int sequenceLength = protein . getSequenceLength ( ) ; String md5 = protein . getMd5 ( ) ; String date = dmyFormat . format ( new Date ( ) ) ; Set < Match > matches = protein . getMatches ( ) ; String proteinIdForGFF = null ; List < String > proteinIdsFromGetOrf... | 177 |
java-test-9453 | java | What does which return back as per elf ? | the string formatted | public void publish ( Log Record lrecord ) { if ( Monitoring Util . is Running ( ) && file Log Handler For Monitoring != null ) { file Log Handler For Monitoring . inc Handler Request Count ( NUM ) ; } if ( max File Size <= NUM ) { return ; } if ( ! is Loggable ( lrecord ) ) { return ; } Formatter formatter = get Forma... | public void publish ( LogRecord lrecord ) { if ( MonitoringUtil . isRunning ( ) && fileLogHandlerForMonitoring != null ) { fileLogHandlerForMonitoring . incHandlerRequestCount ( _NUM ) ; } if ( maxFileSize <= _NUM ) { return ; } if ( ! isLoggable ( lrecord ) ) { return ; } Formatter formatter = getFormatter ( ) ; Strin... | 152 |
java-test-9454 | java | How does which format the logrecord ? | according to elf | public void publish ( Log Record lrecord ) { if ( Monitoring Util . is Running ( ) && file Log Handler For Monitoring != null ) { file Log Handler For Monitoring . inc Handler Request Count ( NUM ) ; } if ( max File Size <= NUM ) { return ; } if ( ! is Loggable ( lrecord ) ) { return ; } Formatter formatter = get Forma... | public void publish ( LogRecord lrecord ) { if ( MonitoringUtil . isRunning ( ) && fileLogHandlerForMonitoring != null ) { fileLogHandlerForMonitoring . incHandlerRequestCount ( _NUM ) ; } if ( maxFileSize <= _NUM ) { return ; } if ( ! isLoggable ( lrecord ) ) { return ; } Formatter formatter = getFormatter ( ) ; Strin... | 152 |
java-test-9455 | java | What does which format according to elf ? | the logrecord | public void publish ( Log Record lrecord ) { if ( Monitoring Util . is Running ( ) && file Log Handler For Monitoring != null ) { file Log Handler For Monitoring . inc Handler Request Count ( NUM ) ; } if ( max File Size <= NUM ) { return ; } if ( ! is Loggable ( lrecord ) ) { return ; } Formatter formatter = get Forma... | public void publish ( LogRecord lrecord ) { if ( MonitoringUtil . isRunning ( ) && fileLogHandlerForMonitoring != null ) { fileLogHandlerForMonitoring . incHandlerRequestCount ( _NUM ) ; } if ( maxFileSize <= _NUM ) { return ; } if ( ! isLoggable ( lrecord ) ) { return ; } Formatter formatter = getFormatter ( ) ; Strin... | 152 |
java-test-9457 | java | What does the code create ? | a list of latlngs that form a rectangle with the given dimensions | private List < Lat Lng > create Rectangle ( Lat Lng center , double half Width , double half Height ) { return Arrays . as List ( new Lat Lng ( center . latitude - half Height , center . longitude - half Width ) , new Lat Lng ( center . latitude - half Height , center . longitude + half Width ) , new Lat Lng ( center .... | private List < LatLng > createRectangle ( LatLng center , double halfWidth , double halfHeight ) { return Arrays . asList ( new LatLng ( center . latitude - halfHeight , center . longitude - halfWidth ) , new LatLng ( center . latitude - halfHeight , center . longitude + halfWidth ) , new LatLng ( center . latitude + h... | 125 |
java-test-9458 | java | What form a rectangle with the given dimensions ? | latlngs | private List < Lat Lng > create Rectangle ( Lat Lng center , double half Width , double half Height ) { return Arrays . as List ( new Lat Lng ( center . latitude - half Height , center . longitude - half Width ) , new Lat Lng ( center . latitude - half Height , center . longitude + half Width ) , new Lat Lng ( center .... | private List < LatLng > createRectangle ( LatLng center , double halfWidth , double halfHeight ) { return Arrays . asList ( new LatLng ( center . latitude - halfHeight , center . longitude - halfWidth ) , new LatLng ( center . latitude - halfHeight , center . longitude + halfWidth ) , new LatLng ( center . latitude + h... | 125 |
java-test-9459 | java | How do latlngs form a rectangle ? | with the given dimensions | private List < Lat Lng > create Rectangle ( Lat Lng center , double half Width , double half Height ) { return Arrays . as List ( new Lat Lng ( center . latitude - half Height , center . longitude - half Width ) , new Lat Lng ( center . latitude - half Height , center . longitude + half Width ) , new Lat Lng ( center .... | private List < LatLng > createRectangle ( LatLng center , double halfWidth , double halfHeight ) { return Arrays . asList ( new LatLng ( center . latitude - halfHeight , center . longitude - halfWidth ) , new LatLng ( center . latitude - halfHeight , center . longitude + halfWidth ) , new LatLng ( center . latitude + h... | 125 |
java-test-9462 | java | What does the code start ? | our processor thread | public void start ( ) throws IO Exception { this . is Running = BOOL ; Thread thread = new Thread ( this ) ; thread . set Daemon ( BOOL ) ; thread . set Name ( STRING ) ; thread . set Priority ( Thread . MAX PRIORITY ) ; thread . start ( ) ; } | public void start ( ) throws IOException { this . isRunning = _BOOL ; Thread thread = new Thread ( this ) ; thread . setDaemon ( _BOOL ) ; thread . setName ( STRING ) ; thread . setPriority ( Thread . MAX_PRIORITY ) ; thread . start ( ) ; } | 59 |
java-test-9464 | java | What does the code prepare ? | to consume it on parallallism number of ' rails ' and round - robin fashion | public static < T > Parallel Flux < T > from ( Publisher < ? extends T > source , int parallelism , int prefetch , Supplier < Queue < T > > queue Supplier ) { if ( parallelism <= NUM ) { throw new Illegal Argument Exception ( STRING + parallelism ) ; } if ( prefetch <= NUM ) { throw new Illegal Argument Exception ( STR... | public static < T > ParallelFlux < T > from ( Publisher < ? extends T > source , int parallelism , int prefetch , Supplier < Queue < T > > queueSupplier ) { if ( parallelism <= _NUM ) { throw new IllegalArgumentException ( STRING + parallelism ) ; } if ( prefetch <= _NUM ) { throw new IllegalArgumentException ( STRING ... | 121 |
java-test-9465 | java | What does the code use for dealing with the source publisher ' s values ? | custom prefetch amount and queue | public static < T > Parallel Flux < T > from ( Publisher < ? extends T > source , int parallelism , int prefetch , Supplier < Queue < T > > queue Supplier ) { if ( parallelism <= NUM ) { throw new Illegal Argument Exception ( STRING + parallelism ) ; } if ( prefetch <= NUM ) { throw new Illegal Argument Exception ( STR... | public static < T > ParallelFlux < T > from ( Publisher < ? extends T > source , int parallelism , int prefetch , Supplier < Queue < T > > queueSupplier ) { if ( parallelism <= _NUM ) { throw new IllegalArgumentException ( STRING + parallelism ) ; } if ( prefetch <= _NUM ) { throw new IllegalArgumentException ( STRING ... | 121 |
java-test-9466 | java | How does the code consume it ? | on parallallism number of ' rails ' and round - robin fashion | public static < T > Parallel Flux < T > from ( Publisher < ? extends T > source , int parallelism , int prefetch , Supplier < Queue < T > > queue Supplier ) { if ( parallelism <= NUM ) { throw new Illegal Argument Exception ( STRING + parallelism ) ; } if ( prefetch <= NUM ) { throw new Illegal Argument Exception ( STR... | public static < T > ParallelFlux < T > from ( Publisher < ? extends T > source , int parallelism , int prefetch , Supplier < Queue < T > > queueSupplier ) { if ( parallelism <= _NUM ) { throw new IllegalArgumentException ( STRING + parallelism ) ; } if ( prefetch <= _NUM ) { throw new IllegalArgumentException ( STRING ... | 121 |
java-test-9468 | java | How do a file open ? | using a dfd / path pair | static File Channel new File Channel ( int dfd , Unix Path path , String path For Permission Check , Set < ? extends Open Option > options , int mode ) throws Unix Exception { Flags flags = Flags . to Flags ( options ) ; if ( ! flags . read && ! flags . write ) { if ( flags . append ) { flags . write = BOOL ; } else { ... | static FileChannel newFileChannel ( int dfd , UnixPath path , String pathForPermissionCheck , Set < ? extends OpenOption > options , int mode ) throws UnixException { Flags flags = Flags . toFlags ( options ) ; if ( ! flags . read && ! flags . write ) { if ( flags . append ) { flags . write = _BOOL ; } else { flags . r... | 177 |
java-test-9469 | java | How does a file channel construct ? | by opening a file using a dfd / path pair | static File Channel new File Channel ( int dfd , Unix Path path , String path For Permission Check , Set < ? extends Open Option > options , int mode ) throws Unix Exception { Flags flags = Flags . to Flags ( options ) ; if ( ! flags . read && ! flags . write ) { if ( flags . append ) { flags . write = BOOL ; } else { ... | static FileChannel newFileChannel ( int dfd , UnixPath path , String pathForPermissionCheck , Set < ? extends OpenOption > options , int mode ) throws UnixException { Flags flags = Flags . toFlags ( options ) ; if ( ! flags . read && ! flags . write ) { if ( flags . append ) { flags . write = _BOOL ; } else { flags . r... | 177 |
java-test-9470 | java | What do a command line contain ? | all basic arguments required by java | public static List < String > build Command ( final String class Name , final String additional Classpath , final Properties system Properties , final List < String > jvm Options ) { final List < String > java Command Line = new Array List < String > ( ) ; final File java Bin Dir = new File ( System . get Property ( ST... | public static List < String > buildCommand ( final String className , final String additionalClasspath , final Properties systemProperties , final List < String > jvmOptions ) { final List < String > javaCommandLine = new ArrayList < String > ( ) ; final File javaBinDir = new File ( System . getProperty ( STRING ) , ST... | 260 |
java-test-9471 | java | How have we been created ? | earler | private void find Prefix In Children ( String prefix , Zoo Keeper zookeeper , String dir ) throws Keeper Exception , Interrupted Exception { List < String > names = zookeeper . get Children ( dir , BOOL ) ; for ( String name : names ) { if ( name . starts With ( prefix ) ) { id = name ; if ( LOG . is Debug Enabled ( ) ... | private void findPrefixInChildren ( String prefix , ZooKeeper zookeeper , String dir ) throws KeeperException , InterruptedException { List < String > names = zookeeper . getChildren ( dir , _BOOL ) ; for ( String name : names ) { if ( name . startsWith ( prefix ) ) { id = name ; if ( LOG . isDebugEnabled ( ) ) { LOG .... | 141 |
java-test-9472 | java | What does the code add to the consistency group ? | all source volume mirrors | public Map < URI , List < URI > > add Source Volume Mirrors ( ) { List < URI > block Mirrors = Lists . new Array List ( ) ; Map < URI , List < URI > > mirrors Map = new Hash Map < > ( ) ; for ( URI volume Id : uris ( volume Ids ) ) { List < URI > mirrors = get Mirrors ( volume Id ) ; block Mirrors . add All ( mirrors )... | public Map < URI , List < URI > > addSourceVolumeMirrors ( ) { List < URI > blockMirrors = Lists . newArrayList ( ) ; Map < URI , List < URI > > mirrorsMap = new HashMap < > ( ) ; for ( URI volumeId : uris ( volumeIds ) ) { List < URI > mirrors = getMirrors ( volumeId ) ; blockMirrors . addAll ( mirrors ) ; mirrorsMap ... | 134 |
java-test-9473 | java | What does the code render ? | the scalable parts of the screen | private void render Scene ( Graphics 2 D g , int x Adjust , int y Adjust ) { g . translate ( x Adjust , y Adjust ) ; int start Tile X = Math . max ( NUM , ( int ) get View X ( ) ) ; int start Tile Y = Math . max ( NUM , ( int ) get View Y ( ) ) ; Rectangle clip = g . get Clip Bounds ( ) ; start Tile X = Math . max ( st... | private void renderScene ( Graphics2D g , int xAdjust , int yAdjust ) { g . translate ( xAdjust , yAdjust ) ; int startTileX = Math . max ( _NUM , ( int ) getViewX ( ) ) ; int startTileY = Math . max ( _NUM , ( int ) getViewY ( ) ) ; Rectangle clip = g . getClipBounds ( ) ; startTileX = Math . max ( startTileX , clip .... | 426 |
java-test-9476 | java | For what purpose do stuff save ? | to file ( settings , addressbook , chatlogs ) | public void exit ( ) { shutting Down = BOOL ; save Settings ( BOOL ) ; log All Viewerstats ( ) ; c . disconnect ( ) ; franker Face Z . disconnect Ws ( ) ; pubsub . disconnect ( ) ; g . clean Up ( ) ; chat Log . close ( ) ; System . exit ( NUM ) ; } | public void exit ( ) { shuttingDown = _BOOL ; saveSettings ( _BOOL ) ; logAllViewerstats ( ) ; c . disconnect ( ) ; frankerFaceZ . disconnectWs ( ) ; pubsub . disconnect ( ) ; g . cleanUp ( ) ; chatLog . close ( ) ; System . exit ( _NUM ) ; } | 66 |
java-test-9477 | java | For what purpose be this point rounds ? | so that if this point is on the right side of any directed line with direction p_dir , the result point will also be on the right side | public Pla Point Int round to the right ( Pla Direction p dir ) { Pla Point Float dir = p dir . to float ( ) ; double rounded x ; if ( dir . v y > NUM ) { rounded x = Math . ceil ( v x ) ; } else if ( dir . v y < NUM ) { rounded x = Math . floor ( v x ) ; } else { rounded x = Math . round ( v x ) ; } double rounded y ;... | public PlaPointInt round_to_the_right ( PlaDirection p_dir ) { PlaPointFloat dir = p_dir . to_float ( ) ; double rounded_x ; if ( dir . v_y > _NUM ) { rounded_x = Math . ceil ( v_x ) ; } else if ( dir . v_y < _NUM ) { rounded_x = Math . floor ( v_x ) ; } else { rounded_x = Math . round ( v_x ) ; } double rounded_y ; if... | 168 |
java-test-9478 | java | Where do a cuboid construct ? | in the given world name and xyz co - ordinates | private Cuboid ( String world Name , int x1 , int y1 , int z1 , int x2 , int y2 , int z2 ) { this . world Name = world Name ; this . x1 = Math . min ( x1 , x2 ) ; this . x2 = Math . max ( x1 , x2 ) ; this . y1 = Math . min ( y1 , y2 ) ; this . y2 = Math . max ( y1 , y2 ) ; this . z1 = Math . min ( z1 , z2 ) ; this . z2... | private Cuboid ( String worldName , int x1 , int y1 , int z1 , int x2 , int y2 , int z2 ) { this . worldName = worldName ; this . x1 = Math . min ( x1 , x2 ) ; this . x2 = Math . max ( x1 , x2 ) ; this . y1 = Math . min ( y1 , y2 ) ; this . y2 = Math . max ( y1 , y2 ) ; this . z1 = Math . min ( z1 , z2 ) ; this . z2 = ... | 113 |
java-test-9479 | java | How does the code try claim a draw ? | using a command string | public final void try Claim Draw ( String str ) { if ( str . starts With ( STRING ) ) { String draw Cmd = str . substring ( str . index Of ( STRING ) + NUM ) ; handle Draw Cmd ( draw Cmd , BOOL ) ; } } | public final void tryClaimDraw ( String str ) { if ( str . startsWith ( STRING ) ) { String drawCmd = str . substring ( str . indexOf ( STRING ) + _NUM ) ; handleDrawCmd ( drawCmd , _BOOL ) ; } } | 53 |
java-test-9480 | java | What claims a draw using a command string ? | the code try | public final void try Claim Draw ( String str ) { if ( str . starts With ( STRING ) ) { String draw Cmd = str . substring ( str . index Of ( STRING ) + NUM ) ; handle Draw Cmd ( draw Cmd , BOOL ) ; } } | public final void tryClaimDraw ( String str ) { if ( str . startsWith ( STRING ) ) { String drawCmd = str . substring ( str . indexOf ( STRING ) + _NUM ) ; handleDrawCmd ( drawCmd , _BOOL ) ; } } | 53 |
java-test-9481 | java | What does the code not play if the draw claim is invalid ? | the move involved in the draw claim | public final void try Claim Draw ( String str ) { if ( str . starts With ( STRING ) ) { String draw Cmd = str . substring ( str . index Of ( STRING ) + NUM ) ; handle Draw Cmd ( draw Cmd , BOOL ) ; } } | public final void tryClaimDraw ( String str ) { if ( str . startsWith ( STRING ) ) { String drawCmd = str . substring ( str . indexOf ( STRING ) + _NUM ) ; handleDrawCmd ( drawCmd , _BOOL ) ; } } | 53 |
java-test-9482 | java | Where do the given genomes represent the distinct groups ? | within the current pedigree | public int number Of Disconnected Groups ( Collection < String > genomes ) { final String [ ] genomes 2 = genomes . to Array ( new String [ genomes . size ( ) ] ) ; final int [ ] connections Matrix = new int [ genomes . size ( ) * genomes . size ( ) ] ; final Hash Set < Integer > group Ids = new Hash Set < > ( ) ; for ... | public int numberOfDisconnectedGroups ( Collection < String > genomes ) { final String [ ] genomes2 = genomes . toArray ( new String [ genomes . size ( ) ] ) ; final int [ ] connectionsMatrix = new int [ genomes . size ( ) * genomes . size ( ) ] ; final HashSet < Integer > groupIds = new HashSet < > ( ) ; for ( int j =... | 290 |
java-test-9483 | java | What represent the distinct groups within the current pedigree ? | the given genomes | public int number Of Disconnected Groups ( Collection < String > genomes ) { final String [ ] genomes 2 = genomes . to Array ( new String [ genomes . size ( ) ] ) ; final int [ ] connections Matrix = new int [ genomes . size ( ) * genomes . size ( ) ] ; final Hash Set < Integer > group Ids = new Hash Set < > ( ) ; for ... | public int numberOfDisconnectedGroups ( Collection < String > genomes ) { final String [ ] genomes2 = genomes . toArray ( new String [ genomes . size ( ) ] ) ; final int [ ] connectionsMatrix = new int [ genomes . size ( ) * genomes . size ( ) ] ; final HashSet < Integer > groupIds = new HashSet < > ( ) ; for ( int j =... | 290 |
java-test-9484 | java | For what purpose does for a side of p_shape look ? | so that a trace line from the shape center to the nearest point on this side does not conflict with any obstacles | public Brd From Side calc from side ( Shape Tile p shape , Pla Point Int p shape center , int p layer , int p offset , int p cl class ) { Net Nos List empty arr = Net Nos List . EMPTY ; Shape Tile offset shape = p shape . offset ( p offset ) ; for ( int index = NUM ; index < offset shape . border line count ( ) ; ++ in... | public BrdFromSide calc_from_side ( ShapeTile p_shape , PlaPointInt p_shape_center , int p_layer , int p_offset , int p_cl_class ) { NetNosList empty_arr = NetNosList . EMPTY ; ShapeTile offset_shape = p_shape . offset ( p_offset ) ; for ( int index = _NUM ; index < offset_shape . border_line_count ( ) ; ++ index ) { S... | 245 |
java-test-9485 | java | What causes problems with another ? | an aborted operation on one namespace | public void test multi Tenancy 2023 ( ) throws Exception { final String ns 1 = STRING ; final String ns 2 = STRING ; final String ns 3 = STRING ; create Namespace ( ns 1 ) ; create Namespace ( ns 2 ) ; create Namespace ( ns 3 ) ; load Statements ( ns 1 , NUM ) ; load Statements ( ns 2 , NUM ) ; load Statements ( ns 3 ,... | public void test_multiTenancy_2023 ( ) throws Exception { final String ns1 = STRING ; final String ns2 = STRING ; final String ns3 = STRING ; createNamespace ( ns1 ) ; createNamespace ( ns2 ) ; createNamespace ( ns3 ) ; loadStatements ( ns1 , _NUM ) ; loadStatements ( ns2 , _NUM ) ; loadStatements ( ns3 , _NUM ) ; simp... | 205 |
java-test-9486 | java | What do an aborted operation on one namespace cause ? | problems with another | public void test multi Tenancy 2023 ( ) throws Exception { final String ns 1 = STRING ; final String ns 2 = STRING ; final String ns 3 = STRING ; create Namespace ( ns 1 ) ; create Namespace ( ns 2 ) ; create Namespace ( ns 3 ) ; load Statements ( ns 1 , NUM ) ; load Statements ( ns 2 , NUM ) ; load Statements ( ns 3 ,... | public void test_multiTenancy_2023 ( ) throws Exception { final String ns1 = STRING ; final String ns2 = STRING ; final String ns3 = STRING ; createNamespace ( ns1 ) ; createNamespace ( ns2 ) ; createNamespace ( ns3 ) ; loadStatements ( ns1 , _NUM ) ; loadStatements ( ns2 , _NUM ) ; loadStatements ( ns3 , _NUM ) ; simp... | 205 |
java-test-9487 | java | What are we seeing ? | a problem where multiple namespaces are used and an aborted operation on one namespace causes problems with another | public void test multi Tenancy 2023 ( ) throws Exception { final String ns 1 = STRING ; final String ns 2 = STRING ; final String ns 3 = STRING ; create Namespace ( ns 1 ) ; create Namespace ( ns 2 ) ; create Namespace ( ns 3 ) ; load Statements ( ns 1 , NUM ) ; load Statements ( ns 2 , NUM ) ; load Statements ( ns 3 ,... | public void test_multiTenancy_2023 ( ) throws Exception { final String ns1 = STRING ; final String ns2 = STRING ; final String ns3 = STRING ; createNamespace ( ns1 ) ; createNamespace ( ns2 ) ; createNamespace ( ns3 ) ; loadStatements ( ns1 , _NUM ) ; loadStatements ( ns2 , _NUM ) ; loadStatements ( ns3 , _NUM ) ; simp... | 205 |
java-test-9493 | java | What have this method adds with lta level ? | references to retrieved crl responses from lt level | protected void add References From Offline CRL Source ( List < Timestamp Reference > references ) { Offline CRL Source crl Source = get CRL Source ( ) ; if ( crl Source != null ) { List < X509 CRL > contained X 509 CR Ls = crl Source . get Contained X 509 CR Ls ( ) ; if ( Collection Utils . is Not Empty ( contained X 5... | protected void addReferencesFromOfflineCRLSource ( List < TimestampReference > references ) { OfflineCRLSource crlSource = getCRLSource ( ) ; if ( crlSource != null ) { List < X509CRL > containedX509CRLs = crlSource . getContainedX509CRLs ( ) ; if ( CollectionUtils . isNotEmpty ( containedX509CRLs ) ) { usedCertificate... | 170 |
java-test-9494 | java | When may the code not succeed in race conditions ? | when two ore more threads are trying to add a word at the same time | private boolean add Word ( String word , Sparse Vector vec , Integer value ) { Integer indx = word Index . get ( word ) ; if ( indx == null ) { Integer index for new word ; if ( ( index for new word = word Index . put If Absent ( word , - NUM ) ) == null ) { index for new word = current Length . get And Increment ( ) ;... | private boolean addWord ( String word , SparseVector vec , Integer value ) { Integer indx = wordIndex . get ( word ) ; if ( indx == null ) { Integer index_for_new_word ; if ( ( index_for_new_word = wordIndex . putIfAbsent ( word , - _NUM ) ) == null ) { index_for_new_word = currentLength . getAndIncrement ( ) ; wordInd... | 321 |
java-test-9495 | java | For what purpose does the code do the work ? | to add a given word to the sparse vector | private boolean add Word ( String word , Sparse Vector vec , Integer value ) { Integer indx = word Index . get ( word ) ; if ( indx == null ) { Integer index for new word ; if ( ( index for new word = word Index . put If Absent ( word , - NUM ) ) == null ) { index for new word = current Length . get And Increment ( ) ;... | private boolean addWord ( String word , SparseVector vec , Integer value ) { Integer indx = wordIndex . get ( word ) ; if ( indx == null ) { Integer index_for_new_word ; if ( ( index_for_new_word = wordIndex . putIfAbsent ( word , - _NUM ) ) == null ) { index_for_new_word = currentLength . getAndIncrement ( ) ; wordInd... | 321 |
java-test-9496 | java | What are two ore more threads trying when ? | to add a word at the same time | private boolean add Word ( String word , Sparse Vector vec , Integer value ) { Integer indx = word Index . get ( word ) ; if ( indx == null ) { Integer index for new word ; if ( ( index for new word = word Index . put If Absent ( word , - NUM ) ) == null ) { index for new word = current Length . get And Increment ( ) ;... | private boolean addWord ( String word , SparseVector vec , Integer value ) { Integer indx = wordIndex . get ( word ) ; if ( indx == null ) { Integer index_for_new_word ; if ( ( index_for_new_word = wordIndex . putIfAbsent ( word , - _NUM ) ) == null ) { index_for_new_word = currentLength . getAndIncrement ( ) ; wordInd... | 321 |
java-test-9497 | java | What does the code calculate ? | the utility for the given number of examples , positive examples and hypothesis | @ Override public double utility ( double total Weight , double total Positive Weight , Hypothesis hypo ) { double g = hypo . get Covered Weight ( ) / total Weight ; double p = hypo . get Positive Weight ( ) / hypo . get Covered Weight ( ) ; if ( hypo . get Prediction ( ) == Hypothesis . POSITIVE CLASS ) { return Math ... | @ Override public double utility ( double totalWeight , double totalPositiveWeight , Hypothesis hypo ) { double g = hypo . getCoveredWeight ( ) / totalWeight ; double p = hypo . getPositiveWeight ( ) / hypo . getCoveredWeight ( ) ; if ( hypo . getPrediction ( ) == Hypothesis . POSITIVE_CLASS ) { return Math . sqrt ( g ... | 116 |
java-test-9498 | java | What does it handle ? | the special start and end frame markers | protected int read Ascii Byte ( ) throws IO Exception { if ( comm Port != null && comm Port . is Open ( ) ) { byte [ ] buffer = new byte [ NUM ] ; int cnt = comm Port . read Bytes ( buffer , NUM ) ; if ( cnt != NUM ) { throw new IO Exception ( STRING ) ; } else if ( buffer [ NUM ] == STRING ) { return Modbus ASCII Tran... | protected int readAsciiByte ( ) throws IOException { if ( commPort != null && commPort . isOpen ( ) ) { byte [ ] buffer = new byte [ _NUM ] ; int cnt = commPort . readBytes ( buffer , _NUM ) ; if ( cnt != _NUM ) { throw new IOException ( STRING ) ; } else if ( buffer [ _NUM ] == STRING ) { return ModbusASCIITransport .... | 279 |
java-test-9500 | java | What does the code write in the given stream ? | the data of this attribute | private Element write Attribute Meta Data ( Attribute Role attribute Role , int sourcecol , Document document , boolean sparse ) { String tag = STRING ; if ( attribute Role . is Special ( ) ) { tag = attribute Role . get Special Name ( ) ; } Attribute attribute = attribute Role . get Attribute ( ) ; return write Attrib... | private Element writeAttributeMetaData ( AttributeRole attributeRole , int sourcecol , Document document , boolean sparse ) { String tag = STRING ; if ( attributeRole . isSpecial ( ) ) { tag = attributeRole . getSpecialName ( ) ; } Attribute attribute = attributeRole . getAttribute ( ) ; return writeAttributeMetaData (... | 79 |
java-test-9501 | java | What does the code validate for syslog < p / > ex - 1 . 1 . 1 . 1 : 4444 , [ 22 : 22 : : 222 ] : 3333 ? | the ip - port list | public static boolean validate Ip Port List ( String ip Port List ) { if ( ip Port List == null || ip Port List . is Empty ( ) ) { return BOOL ; } String [ ] server Port List = ip Port List . split ( STRING ) ; for ( String server Port : server Port List ) { String ip = server Port . substring ( NUM , server Port . las... | public static boolean validateIpPortList ( String ipPortList ) { if ( ipPortList == null || ipPortList . isEmpty ( ) ) { return _BOOL ; } String [ ] serverPortList = ipPortList . split ( STRING ) ; for ( String serverPort : serverPortList ) { String ip = serverPort . substring ( _NUM , serverPort . lastIndexOf ( STRING... | 206 |
java-test-9502 | java | For what purpose does the code validate the ip - port list ? | for syslog < p / > ex - 1 . 1 . 1 . 1 : 4444 , [ 22 : 22 : : 222 ] : 3333 | public static boolean validate Ip Port List ( String ip Port List ) { if ( ip Port List == null || ip Port List . is Empty ( ) ) { return BOOL ; } String [ ] server Port List = ip Port List . split ( STRING ) ; for ( String server Port : server Port List ) { String ip = server Port . substring ( NUM , server Port . las... | public static boolean validateIpPortList ( String ipPortList ) { if ( ipPortList == null || ipPortList . isEmpty ( ) ) { return _BOOL ; } String [ ] serverPortList = ipPortList . split ( STRING ) ; for ( String serverPort : serverPortList ) { String ip = serverPort . substring ( _NUM , serverPort . lastIndexOf ( STRING... | 206 |
java-test-9503 | java | What does the code convert into the according calendar ? | a string date / time | public static Calendar string To Calendar ( String s ) { Date date = null ; try { date = TIME FORMAT . parse ( s ) ; } catch ( Parse Exception e ) { try { date = DATE FORMAT . parse ( s ) ; } catch ( Parse Exception e1 ) { return null ; } } if ( date == null ) { return null ; } Calendar output = Calendar . get Instance... | public static Calendar stringToCalendar ( String s ) { Date date = null ; try { date = TIME_FORMAT . parse ( s ) ; } catch ( ParseException e ) { try { date = DATE_FORMAT . parse ( s ) ; } catch ( ParseException e1 ) { return null ; } } if ( date == null ) { return null ; } Calendar output = Calendar . getInstance ( ) ... | 94 |
java-test-9504 | java | How does a new color construct ? | with the given names and rgb values | public Named Color ( String [ ] names Array , int r , int g , int b ) { super ( r , g , b ) ; names = new Hash Set < > ( ) ; names . add All ( Arrays . as List ( names Array ) ) ; names Lowercase = new Hash Set < > ( ) ; for ( String this Name : names Array ) { names Lowercase . add ( this Name . to Lower Case ( ) ) ; ... | public NamedColor ( String [ ] namesArray , int r , int g , int b ) { super ( r , g , b ) ; names = new HashSet < > ( ) ; names . addAll ( Arrays . asList ( namesArray ) ) ; namesLowercase = new HashSet < > ( ) ; for ( String thisName : namesArray ) { namesLowercase . add ( thisName . toLowerCase ( ) ) ; } if ( namesAr... | 118 |
java-test-9505 | java | What does the code perform in the zoning operation ? | a " zoneset clone " of the zoneset | private void zoneset Clone ( MDS Dialog dialog , Integer vsan Id , Zoneset active Zoneset ) { boolean do Zoneset Clone = BOOL ; boolean allow Zones If Zoneset Clone Fails = BOOL ; try { do Zoneset Clone = Boolean . value Of ( Controller Utils . get Property Value From Coordinator ( coordinator , STRING ) ) ; allow Zone... | private void zonesetClone ( MDSDialog dialog , Integer vsanId , Zoneset activeZoneset ) { boolean doZonesetClone = _BOOL ; boolean allowZonesIfZonesetCloneFails = _BOOL ; try { doZonesetClone = Boolean . valueOf ( ControllerUtils . getPropertyValueFromCoordinator ( _coordinator , STRING ) ) ; allowZonesIfZonesetCloneFa... | 214 |
java-test-9506 | java | Where does the code perform a " zoneset clone " of the zoneset ? | in the zoning operation | private void zoneset Clone ( MDS Dialog dialog , Integer vsan Id , Zoneset active Zoneset ) { boolean do Zoneset Clone = BOOL ; boolean allow Zones If Zoneset Clone Fails = BOOL ; try { do Zoneset Clone = Boolean . value Of ( Controller Utils . get Property Value From Coordinator ( coordinator , STRING ) ) ; allow Zone... | private void zonesetClone ( MDSDialog dialog , Integer vsanId , Zoneset activeZoneset ) { boolean doZonesetClone = _BOOL ; boolean allowZonesIfZonesetCloneFails = _BOOL ; try { doZonesetClone = Boolean . valueOf ( ControllerUtils . getPropertyValueFromCoordinator ( _coordinator , STRING ) ) ; allowZonesIfZonesetCloneFa... | 214 |
java-test-9508 | java | What does a set load ? | from the underlying variant set with synchronization | synchronized Pair < String , Map < Variant Set Type , List < Variant > > > next Set ( ) throws IO Exception { final Pair < String , Map < Variant Set Type , List < Variant > > > set = m Variant Set . next Set ( ) ; if ( set == null ) { return null ; } final String name = set . get A ( ) ; synchronized ( m Names ) { m N... | synchronized Pair < String , Map < VariantSetType , List < Variant > > > nextSet ( ) throws IOException { final Pair < String , Map < VariantSetType , List < Variant > > > set = mVariantSet . nextSet ( ) ; if ( set == null ) { return null ; } final String name = set . getA ( ) ; synchronized ( mNames ) { mNames . add (... | 94 |
java-test-9509 | java | How did the underlying variant set ? | with synchronization | synchronized Pair < String , Map < Variant Set Type , List < Variant > > > next Set ( ) throws IO Exception { final Pair < String , Map < Variant Set Type , List < Variant > > > set = m Variant Set . next Set ( ) ; if ( set == null ) { return null ; } final String name = set . get A ( ) ; synchronized ( m Names ) { m N... | synchronized Pair < String , Map < VariantSetType , List < Variant > > > nextSet ( ) throws IOException { final Pair < String , Map < VariantSetType , List < Variant > > > set = mVariantSet . nextSet ( ) ; if ( set == null ) { return null ; } final String name = set . getA ( ) ; synchronized ( mNames ) { mNames . add (... | 94 |
java-test-9510 | java | How does this floatpoints rotate around the p_pole ? | by p_angle ( in radian ) | public Pla Point Float rotate rad ( double p rad angle , Pla Point Float p pole ) { if ( p rad angle == NUM ) return this ; double dx = v x - p pole . v x ; double dy = v y - p pole . v y ; double sin angle = Math . sin ( p rad angle ) ; double cos angle = Math . cos ( p rad angle ) ; double new dx = dx * cos angle - d... | public PlaPointFloat rotate_rad ( double p_rad_angle , PlaPointFloat p_pole ) { if ( p_rad_angle == _NUM ) return this ; double dx = v_x - p_pole . v_x ; double dy = v_y - p_pole . v_y ; double sin_angle = Math . sin ( p_rad_angle ) ; double cos_angle = Math . cos ( p_rad_angle ) ; double new_dx = dx * cos_angle - dy *... | 134 |
java-test-9511 | java | What do two double values regard ? | tolerance | public static boolean compare Cell Value ( Double v1 , Double v2 , double t , boolean ignore Na N ) { if ( v1 == null ) v1 = NUM ; if ( v2 == null ) v2 = NUM ; if ( ignore Na N && ( v1 . is Na N ( ) || v1 . is Infinite ( ) || v2 . is Na N ( ) || v2 . is Infinite ( ) ) ) return BOOL ; if ( v1 . equals ( v2 ) ) return BO... | public static boolean compareCellValue ( Double v1 , Double v2 , double t , boolean ignoreNaN ) { if ( v1 == null ) v1 = _NUM ; if ( v2 == null ) v2 = _NUM ; if ( ignoreNaN && ( v1 . isNaN ( ) || v1 . isInfinite ( ) || v2 . isNaN ( ) || v2 . isInfinite ( ) ) ) return _BOOL ; if ( v1 . equals ( v2 ) ) return _BOOL ; ret... | 108 |
java-test-9512 | java | What is regarding tolerance ? | two double values | public static boolean compare Cell Value ( Double v1 , Double v2 , double t , boolean ignore Na N ) { if ( v1 == null ) v1 = NUM ; if ( v2 == null ) v2 = NUM ; if ( ignore Na N && ( v1 . is Na N ( ) || v1 . is Infinite ( ) || v2 . is Na N ( ) || v2 . is Infinite ( ) ) ) return BOOL ; if ( v1 . equals ( v2 ) ) return BO... | public static boolean compareCellValue ( Double v1 , Double v2 , double t , boolean ignoreNaN ) { if ( v1 == null ) v1 = _NUM ; if ( v2 == null ) v2 = _NUM ; if ( ignoreNaN && ( v1 . isNaN ( ) || v1 . isInfinite ( ) || v2 . isNaN ( ) || v2 . isInfinite ( ) ) ) return _BOOL ; if ( v1 . equals ( v2 ) ) return _BOOL ; ret... | 108 |
java-test-9513 | java | What can this object accept ? | the given unit | public boolean can Load ( Entity unit , boolean check Elev ) { if ( this instanceof Infantry ) { return BOOL ; } if ( ! unit . is Enemy Of ( this ) ) { Enumeration < Transporter > iter = transports . elements ( ) ; while ( iter . has More Elements ( ) ) { Transporter next = iter . next Element ( ) ; if ( next . can Loa... | public boolean canLoad ( Entity unit , boolean checkElev ) { if ( this instanceof Infantry ) { return _BOOL ; } if ( ! unit . isEnemyOf ( this ) ) { Enumeration < Transporter > iter = transports . elements ( ) ; while ( iter . hasMoreElements ( ) ) { Transporter next = iter . nextElement ( ) ; if ( next . canLoad ( uni... | 111 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.