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-2479 | java | What places in the route ? | a routelocation | public void move Location Up ( Route Location rl ) { int sequence Id = rl . get Sequence Id ( ) ; if ( sequence Id - NUM <= NUM ) { rl . set Sequence Id ( sequence Num + NUM ) ; resequence Ids ( ) ; } else { Route Location replace Rl = get Item By Sequence Id ( sequence Id - NUM ) ; if ( replace Rl != null ) { replace ... | public void moveLocationUp ( RouteLocation rl ) { int sequenceId = rl . getSequenceId ( ) ; if ( sequenceId - _NUM <= _NUM ) { rl . setSequenceId ( _sequenceNum + _NUM ) ; resequenceIds ( ) ; } else { RouteLocation replaceRl = getItemBySequenceId ( sequenceId - _NUM ) ; if ( replaceRl != null ) { replaceRl . setSequenc... | 135 |
java-test-2482 | java | Why do to reverse changes of last commit attempt ? | since not all transactions successfully committed | private void reverse Transactions ( Array List < Data Store > restore List , Throwable cause ) { for ( Data Store data Store : restore List ) { try ( Data Store Transaction transaction = data Store . begin Transaction ( ) ) { List < Object > list = dirty Objects . get ( data Store ) ; for ( Object dirty Object : list =... | private void reverseTransactions ( ArrayList < DataStore > restoreList , Throwable cause ) { for ( DataStore dataStore : restoreList ) { try ( DataStoreTransaction transaction = dataStore . beginTransaction ( ) ) { List < Object > list = dirtyObjects . get ( dataStore ) ; for ( Object dirtyObject : list == null ? Colle... | 149 |
java-test-2483 | java | Till when does this method read ? | until the maximum number of bytes have been read or until the end of file | public static int read Fully ( Input Stream in , byte [ ] buffer , int max ) throws IO Exception { try { int result = NUM , len = Math . min ( max , buffer . length ) ; while ( len > NUM ) { int l = in . read ( buffer , result , len ) ; if ( l < NUM ) { break ; } result += l ; len -= l ; } return result ; } catch ( Exc... | public static int readFully ( InputStream in , byte [ ] buffer , int max ) throws IOException { try { int result = _NUM , len = Math . min ( max , buffer . length ) ; while ( len > _NUM ) { int l = in . read ( buffer , result , len ) ; if ( l < _NUM ) { break ; } result += l ; len -= l ; } return result ; } catch ( Exc... | 106 |
java-test-2487 | java | How did the code refresh the generic object editor properties ? | via re - running of the dynamic class discovery process | public static void refresh GOE Properties ( ) { Class Discovery . clear Class Cache ( ) ; Generic Properties Creator . regenerate Global Output Properties ( ) ; Generic Object Editor . determine Classes ( ) ; Converter Utils . initialize ( ) ; Knowledge Flow App . dispose Singleton ( ) ; Knowledge Flow App . re Initial... | public static void refreshGOEProperties ( ) { ClassDiscovery . clearClassCache ( ) ; GenericPropertiesCreator . regenerateGlobalOutputProperties ( ) ; GenericObjectEditor . determineClasses ( ) ; ConverterUtils . initialize ( ) ; KnowledgeFlowApp . disposeSingleton ( ) ; KnowledgeFlowApp . reInitialize ( ) ; } | 64 |
java-test-2488 | java | What did the code refresh via re - running of the dynamic class discovery process ? | the generic object editor properties | public static void refresh GOE Properties ( ) { Class Discovery . clear Class Cache ( ) ; Generic Properties Creator . regenerate Global Output Properties ( ) ; Generic Object Editor . determine Classes ( ) ; Converter Utils . initialize ( ) ; Knowledge Flow App . dispose Singleton ( ) ; Knowledge Flow App . re Initial... | public static void refreshGOEProperties ( ) { ClassDiscovery . clearClassCache ( ) ; GenericPropertiesCreator . regenerateGlobalOutputProperties ( ) ; GenericObjectEditor . determineClasses ( ) ; ConverterUtils . initialize ( ) ; KnowledgeFlowApp . disposeSingleton ( ) ; KnowledgeFlowApp . reInitialize ( ) ; } | 64 |
java-test-2489 | java | For what purpose do the data process ? | in case of ofx1 | protected boolean attach Input ( Input Stream is ) { boolean is Ofx 1 = BOOL ; boolean result = BOOL ; try { Buffered Reader reader = new Buffered Reader ( new Input Stream Reader ( is ) ) ; reader . mark ( HEADER SIZE + NUM ) ; String header = STRING ; for ( int i = NUM ; i < HEADER SIZE ; i ++ ) { header = header + r... | protected boolean attachInput ( InputStream is ) { boolean isOfx1 = _BOOL ; boolean result = _BOOL ; try { BufferedReader reader = new BufferedReader ( new InputStreamReader ( is ) ) ; reader . mark ( HEADER_SIZE + _NUM ) ; String header = STRING ; for ( int i = _NUM ; i < HEADER_SIZE ; i ++ ) { header = header + reade... | 248 |
java-test-2491 | java | What has the code add to a given xml file ? | some lines | private static void add Lines To XML ( File in File , Iterable < String > lines ) throws IO Exception { String Builder sb = new String Builder ( ) ; sb . append ( STRING ) ; for ( String l : lines ) { sb . append ( STRING + l ) ; } String content = contents ( in File ) ; content = content . replace All ( STRING , sb . ... | private static void addLinesToXML ( File inFile , Iterable < String > lines ) throws IOException { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING ) ; for ( String l : lines ) { sb . append ( STRING + l ) ; } String content = contents ( inFile ) ; content = content . replaceAll ( STRING , sb . toString ... | 128 |
java-test-2492 | java | Where will the lines be inserted directly ? | below the first line in the xml | private static void add Lines To XML ( File in File , Iterable < String > lines ) throws IO Exception { String Builder sb = new String Builder ( ) ; sb . append ( STRING ) ; for ( String l : lines ) { sb . append ( STRING + l ) ; } String content = contents ( in File ) ; content = content . replace All ( STRING , sb . ... | private static void addLinesToXML ( File inFile , Iterable < String > lines ) throws IOException { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING ) ; for ( String l : lines ) { sb . append ( STRING + l ) ; } String content = contents ( inFile ) ; content = content . replaceAll ( STRING , sb . toString ... | 128 |
java-test-2493 | java | What does the code append to the given buffer ? | the index source map | @ Override public void append Index Map To ( Appendable out , String name , List < Source Map Section > sections ) throws IO Exception { out . append ( STRING ) ; append First Field ( out , STRING , STRING ) ; append Field ( out , STRING , escape String ( name ) ) ; append Field Start ( out , STRING ) ; out . append ( ... | @ Override public void appendIndexMapTo ( Appendable out , String name , List < SourceMapSection > sections ) throws IOException { out . append ( STRING ) ; appendFirstField ( out , STRING , STRING ) ; appendField ( out , STRING , escapeString ( name ) ) ; appendFieldStart ( out , STRING ) ; out . append ( STRING ) ; b... | 264 |
java-test-2495 | java | What did the code guarantee ? | to read exactly len bytes . throws error if it can ' t | public static void read Bytes ( Input Stream is , byte [ ] b , int offset , int len ) { if ( len == NUM ) return ; try { int read = NUM ; while ( read < len ) { int n = is . read ( b , offset + read , len - read ) ; if ( n < NUM ) throw new Pngj Input Exception ( STRING + n + STRING + len ) ; read += n ; } } catch ( IO... | public static void readBytes ( InputStream is , byte [ ] b , int offset , int len ) { if ( len == _NUM ) return ; try { int read = _NUM ; while ( read < len ) { int n = is . read ( b , offset + read , len - read ) ; if ( n < _NUM ) throw new PngjInputException ( STRING + n + STRING + len ) ; read += n ; } } catch ( IOE... | 109 |
java-test-2496 | java | What did the code read ? | exactly len bytes | public static void read Bytes ( Input Stream is , byte [ ] b , int offset , int len ) { if ( len == NUM ) return ; try { int read = NUM ; while ( read < len ) { int n = is . read ( b , offset + read , len - read ) ; if ( n < NUM ) throw new Pngj Input Exception ( STRING + n + STRING + len ) ; read += n ; } } catch ( IO... | public static void readBytes ( InputStream is , byte [ ] b , int offset , int len ) { if ( len == _NUM ) return ; try { int read = _NUM ; while ( read < len ) { int n = is . read ( b , offset + read , len - read ) ; if ( n < _NUM ) throw new PngjInputException ( STRING + n + STRING + len ) ; read += n ; } } catch ( IOE... | 109 |
java-test-2497 | java | What does the code add from the manifest ? | package information | private void add Manifest Package ( String name , Attributes attr ) { if ( ! name . ends With ( STRING ) && ! name . equals ( STRING ) ) return ; String spec Title = attr . get Value ( STRING ) ; String spec Version = attr . get Value ( STRING ) ; String spec Vendor = attr . get Value ( STRING ) ; String impl Title = a... | private void addManifestPackage ( String name , Attributes attr ) { if ( ! name . endsWith ( STRING ) && ! name . equals ( STRING ) ) return ; String specTitle = attr . getValue ( STRING ) ; String specVersion = attr . getValue ( STRING ) ; String specVendor = attr . getValue ( STRING ) ; String implTitle = attr . getV... | 219 |
java-test-2498 | java | When will the proper descendant be focused if necessary ? | when the corresponding focus_gained event on the heavyweight is received | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2499 | java | Where do the focus change ? | at the native level | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2500 | java | What does the code indicate ? | whether the native implementation should proceed with a pending , native focus request . | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2501 | java | When do a global , native lock hold ? | during invocation | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2502 | java | What should call this function for permission before changing the focus at the native level before changing the focus at the native level ? | the awt implementation | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2503 | java | For what purpose will the focus request list be updated ? | so that , if necessary , the proper descendant will be focused when the corresponding focus_gained event on the heavyweight is received . an implementation must ensure that calls to this method and native focus changes are atomic . if this is not guaranteed , then the ordering of the focus request list may be incorrect... | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2504 | java | For what purpose should the awt implementation call this function before changing the focus at the native level before changing the focus at the native level ? | for permission | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2505 | java | What owns the focus already ? | the specified heavyweight component | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2506 | java | What preceded it ? | a duplicate request | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2507 | java | What must an implementation ensure if ? | that calls to this method and native focus changes are atomic | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2508 | java | How is this accomplished typically ? | by only calling this function from the native event pumping thread , or by holding a global , native lock during invocation | static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ... | static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ... | 880 |
java-test-2509 | java | What does the code find ? | references to both the file itself | private void process Build File References ( Search Parameters params , Build File file ) { Workspace Path workspace Path = file . get Package Workspace Path ( ) ; if ( workspace Path == null ) { return ; } List < String > strings To Search = Lists . new Array List ( ) ; if ( file . get Blaze File Type ( ) == Blaze Fil... | private void processBuildFileReferences ( SearchParameters params , BuildFile file ) { WorkspacePath workspacePath = file . getPackageWorkspacePath ( ) ; if ( workspacePath == null ) { return ; } List < String > stringsToSearch = Lists . newArrayList ( ) ; if ( file . getBlazeFileType ( ) == BlazeFileType . BuildPackag... | 157 |
java-test-2510 | java | What does the code build ? | targets defined in the file | private void process Build File References ( Search Parameters params , Build File file ) { Workspace Path workspace Path = file . get Package Workspace Path ( ) ; if ( workspace Path == null ) { return ; } List < String > strings To Search = Lists . new Array List ( ) ; if ( file . get Blaze File Type ( ) == Blaze Fil... | private void processBuildFileReferences ( SearchParameters params , BuildFile file ) { WorkspacePath workspacePath = file . getPackageWorkspacePath ( ) ; if ( workspacePath == null ) { return ; } List < String > stringsToSearch = Lists . newArrayList ( ) ; if ( file . getBlazeFileType ( ) == BlazeFileType . BuildPackag... | 157 |
java-test-2511 | java | What does packet send ? | to remote node | public void send Packet ( Grid Clock Message msg , Inet Address addr , int port ) throws Ignite Checked Exception { try { Datagram Packet packet = new Datagram Packet ( msg . to Bytes ( ) , Grid Clock Message . PACKET SIZE , addr , port ) ; if ( log . is Debug Enabled ( ) ) log . debug ( STRING + msg + STRING + addr + ... | public void sendPacket ( GridClockMessage msg , InetAddress addr , int port ) throws IgniteCheckedException { try { DatagramPacket packet = new DatagramPacket ( msg . toBytes ( ) , GridClockMessage . PACKET_SIZE , addr , port ) ; if ( log . isDebugEnabled ( ) ) log . debug ( STRING + msg + STRING + addr + STRING + port... | 128 |
java-test-2512 | java | What sends to remote node ? | packet | public void send Packet ( Grid Clock Message msg , Inet Address addr , int port ) throws Ignite Checked Exception { try { Datagram Packet packet = new Datagram Packet ( msg . to Bytes ( ) , Grid Clock Message . PACKET SIZE , addr , port ) ; if ( log . is Debug Enabled ( ) ) log . debug ( STRING + msg + STRING + addr + ... | public void sendPacket ( GridClockMessage msg , InetAddress addr , int port ) throws IgniteCheckedException { try { DatagramPacket packet = new DatagramPacket ( msg . toBytes ( ) , GridClockMessage . PACKET_SIZE , addr , port ) ; if ( log . isDebugEnabled ( ) ) log . debug ( STRING + msg + STRING + addr + STRING + port... | 128 |
java-test-2513 | java | What does the code compute ? | the length of the prefix | private static int prefix Len ( String o1 , String o2 ) { final int l1 = o1 . length ( ) , l2 = o2 . length ( ) , l = l1 < l2 ? l1 : l2 ; int prefix = NUM ; while ( prefix < l && ( o1 . char At ( prefix ) == o2 . char At ( prefix ) ) ) { prefix ++ ; } return prefix ; } | private static int prefixLen ( String o1 , String o2 ) { final int l1 = o1 . length ( ) , l2 = o2 . length ( ) , l = l1 < l2 ? l1 : l2 ; int prefix = _NUM ; while ( prefix < l && ( o1 . charAt ( prefix ) == o2 . charAt ( prefix ) ) ) { prefix ++ ; } return prefix ; } | 79 |
java-test-2514 | java | What has changed its busy state ? | a wallet | public void fire Wallet Busy Change ( boolean new Wallet Is Busy ) { for ( Iterator < Wallet Busy Listener > it = wallet Busy Listeners . iterator ( ) ; it . has Next ( ) ; ) { Wallet Busy Listener wallet Busy Listener = it . next ( ) ; wallet Busy Listener . wallet Busy Change ( new Wallet Is Busy ) ; } } | public void fireWalletBusyChange ( boolean newWalletIsBusy ) { for ( Iterator < WalletBusyListener > it = walletBusyListeners . iterator ( ) ; it . hasNext ( ) ; ) { WalletBusyListener walletBusyListener = it . next ( ) ; walletBusyListener . walletBusyChange ( newWalletIsBusy ) ; } } | 70 |
java-test-2515 | java | What has a wallet changed ? | its busy state | public void fire Wallet Busy Change ( boolean new Wallet Is Busy ) { for ( Iterator < Wallet Busy Listener > it = wallet Busy Listeners . iterator ( ) ; it . has Next ( ) ; ) { Wallet Busy Listener wallet Busy Listener = it . next ( ) ; wallet Busy Listener . wallet Busy Change ( new Wallet Is Busy ) ; } } | public void fireWalletBusyChange ( boolean newWalletIsBusy ) { for ( Iterator < WalletBusyListener > it = walletBusyListeners . iterator ( ) ; it . hasNext ( ) ; ) { WalletBusyListener walletBusyListener = it . next ( ) ; walletBusyListener . walletBusyChange ( newWalletIsBusy ) ; } } | 70 |
java-test-2516 | java | What is stored in a file named < filename > . cot ? | cot | private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ... | private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {... | 232 |
java-test-2517 | java | Where did standard metadata store ? | in a file named < filename > . xml extended metadata | private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ... | private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {... | 232 |
java-test-2518 | java | Where is cot stored ? | in a file named < filename > . cot | private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ... | private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {... | 232 |
java-test-2519 | java | What is is stored in a file named < filename > - extended ? | xml extended metadata | private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ... | private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {... | 232 |
java-test-2520 | java | What do a string contain ? | the standard / extended metadata xml | private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ... | private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {... | 232 |
java-test-2521 | java | What will be stored in a map ? | the metadata information | private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ... | private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {... | 232 |
java-test-2522 | java | What stored in a file named < filename > . xml extended metadata ? | standard metadata | private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ... | private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {... | 232 |
java-test-2523 | java | Where is xml extended metadata is stored ? | in a file named < filename > - extended | private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ... | private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {... | 232 |
java-test-2526 | java | How do we re run on ? | based on java system properties and / or environment variables | private Platform create Platform ( ) { Platform platform ; try { String os Name = System . get Property ( STRING ) ; if ( os Name != null ) { os Name = os Name . to Lower Case ( ) ; logger . debug ( STRING , os Name ) ; if ( os Name . contains ( STRING ) ) { logger . debug ( STRING ) ; platform = new Windows Platform (... | private Platform createPlatform ( ) { Platform platform ; try { String osName = System . getProperty ( STRING ) ; if ( osName != null ) { osName = osName . toLowerCase ( ) ; logger . debug ( STRING , osName ) ; if ( osName . contains ( STRING ) ) { logger . debug ( STRING ) ; platform = new WindowsPlatform ( ) ; } else... | 312 |
java-test-2527 | java | What does we have ? | a large enough buffer for the given size | private void verify Buffer Size ( int sz ) { if ( sz > buf . length ) { byte [ ] old = buf ; buf = new byte [ Math . max ( sz , NUM * buf . length ) ] ; System . arraycopy ( old , NUM , buf , NUM , old . length ) ; old = null ; } } | private void verifyBufferSize ( int sz ) { if ( sz > buf . length ) { byte [ ] old = buf ; buf = new byte [ Math . max ( sz , _NUM * buf . length ) ] ; System . arraycopy ( old , _NUM , buf , _NUM , old . length ) ; old = null ; } } | 68 |
java-test-2528 | java | What does the code pull ? | all updated configs | void pulling Configs ( ) { Set < String > updated Configs = pulling Updated Configs ( config Md 5 s ) ; if ( updated Configs != null && ! updated Configs . is Empty ( ) ) { List < Config Item > config Items = fetch Configs ( Sets . new Hash Set ( updated Configs ) ) ; for ( Config Item item : config Items ) { config Md... | void pullingConfigs ( ) { Set < String > updatedConfigs = pullingUpdatedConfigs ( configMd5s ) ; if ( updatedConfigs != null && ! updatedConfigs . isEmpty ( ) ) { List < ConfigItem > configItems = fetchConfigs ( Sets . newHashSet ( updatedConfigs ) ) ; for ( ConfigItem item : configItems ) { configMd5s . put ( item . g... | 107 |
java-test-2529 | java | What does method remove ? | all the entries that correspond ( " dn " , ssotokenid ) supplied | protected static void remove Obj Impl Listeners ( Set dn Set , SSO Token ID sso Token Id ) { if ( debug . message Enabled ( ) ) { debug . message ( STRING ) ; } synchronized ( obj Impl Listeners ) { Iterator dn Itr = dn Set . iterator ( ) ; while ( dn Itr . has Next ( ) ) { String dn = ( String ) dn Itr . next ( ) ; Se... | protected static void removeObjImplListeners ( Set dnSet , SSOTokenID ssoTokenId ) { if ( debug . messageEnabled ( ) ) { debug . message ( STRING ) ; } synchronized ( objImplListeners ) { Iterator dnItr = dnSet . iterator ( ) ; while ( dnItr . hasNext ( ) ) { String dn = ( String ) dnItr . next ( ) ; Set objSet = ( Set... | 228 |
java-test-2530 | java | What must an xml document from specified input stream have ? | the requisite dtd uri | private static Document load Prefs Doc ( Input Stream in ) throws SAX Exception , IO Exception { Document Builder Factory dbf = Document Builder Factory . new Instance ( ) ; dbf . set Ignoring Element Content Whitespace ( BOOL ) ; dbf . set Validating ( BOOL ) ; dbf . set Coalescing ( BOOL ) ; dbf . set Ignoring Commen... | private static Document loadPrefsDoc ( InputStream in ) throws SAXException , IOException { DocumentBuilderFactory dbf = DocumentBuilderFactory . newInstance ( ) ; dbf . setIgnoringElementContentWhitespace ( _BOOL ) ; dbf . setValidating ( _BOOL ) ; dbf . setCoalescing ( _BOOL ) ; dbf . setIgnoringComments ( _BOOL ) ; ... | 138 |
java-test-2531 | java | What must have the requisite dtd uri ? | an xml document from specified input stream | private static Document load Prefs Doc ( Input Stream in ) throws SAX Exception , IO Exception { Document Builder Factory dbf = Document Builder Factory . new Instance ( ) ; dbf . set Ignoring Element Content Whitespace ( BOOL ) ; dbf . set Validating ( BOOL ) ; dbf . set Coalescing ( BOOL ) ; dbf . set Ignoring Commen... | private static Document loadPrefsDoc ( InputStream in ) throws SAXException , IOException { DocumentBuilderFactory dbf = DocumentBuilderFactory . newInstance ( ) ; dbf . setIgnoringElementContentWhitespace ( _BOOL ) ; dbf . setValidating ( _BOOL ) ; dbf . setCoalescing ( _BOOL ) ; dbf . setIgnoringComments ( _BOOL ) ; ... | 138 |
java-test-2532 | java | Does the code stop the extra gondola instances ? | No | public void stop ( ) { for ( Gondola g : gondolas ) { boolean status = g . stop ( ) ; if ( ! status ) { logger . warn ( STRING + g . get Host Id ( ) ) ; } } extras . clear ( ) ; members . clear ( ) ; } | public void stop ( ) { for ( Gondola g : gondolas ) { boolean status = g . stop ( ) ; if ( ! status ) { logger . warn ( STRING + g . getHostId ( ) ) ; } } extras . clear ( ) ; members . clear ( ) ; } | 59 |
java-test-2533 | java | What does the code not stop ? | the extra gondola instances | public void stop ( ) { for ( Gondola g : gondolas ) { boolean status = g . stop ( ) ; if ( ! status ) { logger . warn ( STRING + g . get Host Id ( ) ) ; } } extras . clear ( ) ; members . clear ( ) ; } | public void stop ( ) { for ( Gondola g : gondolas ) { boolean status = g . stop ( ) ; if ( ! status ) { logger . warn ( STRING + g . getHostId ( ) ) ; } } extras . clear ( ) ; members . clear ( ) ; } | 59 |
java-test-2537 | java | What do the tiles force optionally ? | to remain in memory | private void update Undrawn Tiles ( final List < Tile > undrawn Tiles , final int pre Draw Margin , final boolean force In Memory ) { if ( undrawn Tiles . is Empty ( ) ) { final Rectangle 2 D extended Bounds = new Rectangle 2 D . Double ( Math . max ( m model . get X ( ) - pre Draw Margin , NUM ) , Math . max ( m model... | private void updateUndrawnTiles ( final List < Tile > undrawnTiles , final int preDrawMargin , final boolean forceInMemory ) { if ( undrawnTiles . isEmpty ( ) ) { final Rectangle2D extendedBounds = new Rectangle2D . Double ( Math . max ( m_model . getX ( ) - preDrawMargin , _NUM ) , Math . max ( m_model . getY ( ) - pr... | 185 |
java-test-2538 | java | What did nothing leave ? | undrawn | private void update Undrawn Tiles ( final List < Tile > undrawn Tiles , final int pre Draw Margin , final boolean force In Memory ) { if ( undrawn Tiles . is Empty ( ) ) { final Rectangle 2 D extended Bounds = new Rectangle 2 D . Double ( Math . max ( m model . get X ( ) - pre Draw Margin , NUM ) , Math . max ( m model... | private void updateUndrawnTiles ( final List < Tile > undrawnTiles , final int preDrawMargin , final boolean forceInMemory ) { if ( undrawnTiles . isEmpty ( ) ) { final Rectangle2D extendedBounds = new Rectangle2D . Double ( Math . max ( m_model . getX ( ) - preDrawMargin , _NUM ) , Math . max ( m_model . getY ( ) - pr... | 185 |
java-test-2539 | java | What do we have ? | nothing left undrawn | private void update Undrawn Tiles ( final List < Tile > undrawn Tiles , final int pre Draw Margin , final boolean force In Memory ) { if ( undrawn Tiles . is Empty ( ) ) { final Rectangle 2 D extended Bounds = new Rectangle 2 D . Double ( Math . max ( m model . get X ( ) - pre Draw Margin , NUM ) , Math . max ( m model... | private void updateUndrawnTiles ( final List < Tile > undrawnTiles , final int preDrawMargin , final boolean forceInMemory ) { if ( undrawnTiles . isEmpty ( ) ) { final Rectangle2D extendedBounds = new Rectangle2D . Double ( Math . max ( m_model . getX ( ) - preDrawMargin , _NUM ) , Math . max ( m_model . getY ( ) - pr... | 185 |
java-test-2540 | java | Where have the tiles draw if we have nothing left undrawn if we have nothing left undrawn ? | within predrawmargin of us | private void update Undrawn Tiles ( final List < Tile > undrawn Tiles , final int pre Draw Margin , final boolean force In Memory ) { if ( undrawn Tiles . is Empty ( ) ) { final Rectangle 2 D extended Bounds = new Rectangle 2 D . Double ( Math . max ( m model . get X ( ) - pre Draw Margin , NUM ) , Math . max ( m model... | private void updateUndrawnTiles ( final List < Tile > undrawnTiles , final int preDrawMargin , final boolean forceInMemory ) { if ( undrawnTiles . isEmpty ( ) ) { final Rectangle2D extendedBounds = new Rectangle2D . Double ( Math . max ( m_model . getX ( ) - preDrawMargin , _NUM ) , Math . max ( m_model . getY ( ) - pr... | 185 |
java-test-2541 | java | For what purpose did the code call ? | to draw the current frame | public void on Draw Frame ( GL 10 gl Unused ) { boolean is New Frame = BOOL ; int frame Number = NUM ; synchronized ( this ) { if ( update Surface ) { is New Frame = BOOL ; frame Number = m Frame Number ; m Surface . update Tex Image ( ) ; m Surface . get Transform Matrix ( mST Matrix ) ; update Surface = BOOL ; } } GL... | public void onDrawFrame ( GL10 glUnused ) { boolean isNewFrame = _BOOL ; int frameNumber = _NUM ; synchronized ( this ) { if ( updateSurface ) { isNewFrame = _BOOL ; frameNumber = mFrameNumber ; mSurface . updateTexImage ( ) ; mSurface . getTransformMatrix ( mSTMatrix ) ; updateSurface = _BOOL ; } } GLES20 . glClearCol... | 481 |
java-test-2542 | java | When be the configuration be wrong ? | when we ' re not running | private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } } | private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } } | 75 |
java-test-2543 | java | How are we not restarted if it comes back to what it was when we were paused ? | implementation of the method from launchermodel . callbacks | private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } } | private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } } | 75 |
java-test-2544 | java | Where might resources have been loaded while we are paused ? | incoming places | private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } } | private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } } | 75 |
java-test-2545 | java | When might resources have been loaded incoming places ? | while we are paused | private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } } | private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } } | 75 |
java-test-2546 | java | In which direction be this called ? | from incoming places where resources might have been loaded while we are paused | private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } } | private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } } | 75 |
java-test-2547 | java | When did it be what ? | when we were paused | private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } } | private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } } | 75 |
java-test-2548 | java | What do this need ? | to be called from incoming places where resources might have been loaded while we are paused | private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } } | private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } } | 75 |
java-test-2549 | java | What do you set ? | the number of yarn containers to 3 | public void send Message ( String type , String key , String value ) { if ( type . equals ( SET CONFIG TYPE ) ) { send Set Config Message ( key , value ) ; } else { throw new Illegal Argument Exception ( STRING + SET CONFIG TYPE + STRING ) ; } } | public void sendMessage ( String type , String key , String value ) { if ( type . equals ( SET_CONFIG_TYPE ) ) { sendSetConfigMessage ( key , value ) ; } else { throw new IllegalArgumentException ( STRING + SET_CONFIG_TYPE + STRING ) ; } } | 57 |
java-test-2550 | java | What does this create ? | a message containing ( type , key , value ) | public void send Message ( String type , String key , String value ) { if ( type . equals ( SET CONFIG TYPE ) ) { send Set Config Message ( key , value ) ; } else { throw new Illegal Argument Exception ( STRING + SET CONFIG TYPE + STRING ) ; } } | public void sendMessage ( String type , String key , String value ) { if ( type . equals ( SET_CONFIG_TYPE ) ) { sendSetConfigMessage ( key , value ) ; } else { throw new IllegalArgumentException ( STRING + SET_CONFIG_TYPE + STRING ) ; } } | 57 |
java-test-2551 | java | What do you want ? | to set the number of yarn containers to 3 | public void send Message ( String type , String key , String value ) { if ( type . equals ( SET CONFIG TYPE ) ) { send Set Config Message ( key , value ) ; } else { throw new Illegal Argument Exception ( STRING + SET CONFIG TYPE + STRING ) ; } } | public void sendMessage ( String type , String key , String value ) { if ( type . equals ( SET_CONFIG_TYPE ) ) { sendSetConfigMessage ( key , value ) ; } else { throw new IllegalArgumentException ( STRING + SET_CONFIG_TYPE + STRING ) ; } } | 57 |
java-test-2552 | java | What would you use if you want to set the number of yarn containers to 3 ? | " set - config " , " yarn . container . count " , " 3 " ) | public void send Message ( String type , String key , String value ) { if ( type . equals ( SET CONFIG TYPE ) ) { send Set Config Message ( key , value ) ; } else { throw new Illegal Argument Exception ( STRING + SET CONFIG TYPE + STRING ) ; } } | public void sendMessage ( String type , String key , String value ) { if ( type . equals ( SET_CONFIG_TYPE ) ) { sendSetConfigMessage ( key , value ) ; } else { throw new IllegalArgumentException ( STRING + SET_CONFIG_TYPE + STRING ) ; } } | 57 |
java-test-2553 | java | What does the code modify of a key ? | interest ops | public void interest Ops ( Selectable Channel channel , int interest Ops ) throws Cancelled Key Exception { if ( channel != null ) { Selection Key key = channel . key For ( sel ) ; if ( key == null ) throw new Illegal Argument Exception ( STRING ) ; if ( ! key . is Valid ( ) ) return ; if ( Object Utils . object Equals... | public void interestOps ( SelectableChannel channel , int interestOps ) throws CancelledKeyException { if ( channel != null ) { SelectionKey key = channel . keyFor ( sel ) ; if ( key == null ) throw new IllegalArgumentException ( STRING ) ; if ( ! key . isValid ( ) ) return ; if ( ObjectUtils . objectEquals ( supposedI... | 114 |
java-test-2554 | java | Where do they exist ? | in a given file path | public static void create Parent Directories ( String path ) { File target File = new File ( path ) ; File parent = target File . get Parent File ( ) ; if ( ! parent . exists ( ) && ! parent . mkdirs ( ) ) { throw new Illegal State Exception ( STRING + parent ) ; } } | public static void createParentDirectories ( String path ) { File targetFile = new File ( path ) ; File parent = targetFile . getParentFile ( ) ; if ( ! parent . exists ( ) && ! parent . mkdirs ( ) ) { throw new IllegalStateException ( STRING + parent ) ; } } | 63 |
java-test-2557 | java | What is loading data task ? | the code stop | private void abort Loading ( ) { if ( thread == null ) return ; if ( thread . is Alive ( ) ) { thread . interrupt ( ) ; try { thread . join ( ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } } | private void abortLoading ( ) { if ( thread == null ) return ; if ( thread . isAlive ( ) ) { thread . interrupt ( ) ; try { thread . join ( ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } } | 58 |
java-test-2558 | java | What does the code stop load ? | data task | private void abort Loading ( ) { if ( thread == null ) return ; if ( thread . is Alive ( ) ) { thread . interrupt ( ) ; try { thread . join ( ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } } | private void abortLoading ( ) { if ( thread == null ) return ; if ( thread . isAlive ( ) ) { thread . interrupt ( ) ; try { thread . join ( ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } } | 58 |
java-test-2559 | java | What does not consume the excluded character ? | this | private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | 84 |
java-test-2560 | java | What does this not consume ? | the excluded character | private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | 84 |
java-test-2561 | java | Does this consume the excluded character ? | No | private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | 84 |
java-test-2563 | java | For what purpose should the certificate be issued with a ca certificate , especially for the server applications ? | to ensure interoperability with other client applications | public static org . opcfoundation . ua . transport . security . Key Pair create Https Certificate ( String host Name , String application Uri , int days , org . opcfoundation . ua . transport . security . Key Pair issuer Cert ) throws IO Exception , General Security Exception { if ( application Uri == null ) throw new ... | public static org . opcfoundation . ua . transport . security . KeyPair createHttpsCertificate ( String hostName , String applicationUri , int days , org . opcfoundation . ua . transport . security . KeyPair issuerCert ) throws IOException , GeneralSecurityException { if ( applicationUri == null ) throw new NullPointer... | 165 |
java-test-2564 | java | What does the code create ? | a new certificate that can be used with the https protocol | public static org . opcfoundation . ua . transport . security . Key Pair create Https Certificate ( String host Name , String application Uri , int days , org . opcfoundation . ua . transport . security . Key Pair issuer Cert ) throws IO Exception , General Security Exception { if ( application Uri == null ) throw new ... | public static org . opcfoundation . ua . transport . security . KeyPair createHttpsCertificate ( String hostName , String applicationUri , int days , org . opcfoundation . ua . transport . security . KeyPair issuerCert ) throws IOException , GeneralSecurityException { if ( applicationUri == null ) throw new NullPointer... | 165 |
java-test-2565 | java | How should the certificate be issued to ensure interoperability with other client applications ? | with a ca certificate , especially for the server applications | public static org . opcfoundation . ua . transport . security . Key Pair create Https Certificate ( String host Name , String application Uri , int days , org . opcfoundation . ua . transport . security . Key Pair issuer Cert ) throws IO Exception , General Security Exception { if ( application Uri == null ) throw new ... | public static org . opcfoundation . ua . transport . security . KeyPair createHttpsCertificate ( String hostName , String applicationUri , int days , org . opcfoundation . ua . transport . security . KeyPair issuerCert ) throws IOException , GeneralSecurityException { if ( applicationUri == null ) throw new NullPointer... | 165 |
java-test-2566 | java | How can a new certificate be used ? | with the https protocol | public static org . opcfoundation . ua . transport . security . Key Pair create Https Certificate ( String host Name , String application Uri , int days , org . opcfoundation . ua . transport . security . Key Pair issuer Cert ) throws IO Exception , General Security Exception { if ( application Uri == null ) throw new ... | public static org . opcfoundation . ua . transport . security . KeyPair createHttpsCertificate ( String hostName , String applicationUri , int days , org . opcfoundation . ua . transport . security . KeyPair issuerCert ) throws IOException , GeneralSecurityException { if ( applicationUri == null ) throw new NullPointer... | 165 |
java-test-2567 | java | What is exposed on procedure exit ? | a heap variable | boolean is Exposed On Exit ( Heap Variable < Object > H ) { for ( Iterator < Heap Operand < Object > > i = iterate Heap Uses ( H ) ; i . has Next ( ) ; ) { Heap Operand < Object > op = i . next ( ) ; Instruction s = op . instruction ; if ( exits . contains ( s ) ) { return BOOL ; } } return BOOL ; } | boolean isExposedOnExit ( HeapVariable < Object > H ) { for ( Iterator < HeapOperand < Object > > i = iterateHeapUses ( H ) ; i . hasNext ( ) ; ) { HeapOperand < Object > op = i . next ( ) ; Instruction s = op . instruction ; if ( exits . contains ( s ) ) { return _BOOL ; } } return _BOOL ; } | 81 |
java-test-2569 | java | Where does the index return ? | inside the given string where a comment starts ( usually the first | public static int comment Start ( String line ) { boolean insidequote = BOOL ; for ( int i = NUM ; i < line . length ( ) ; i ++ ) { char current = line . char At ( i ) ; if ( current == STRING ) { insidequote = ! insidequote ; } else if ( ! insidequote ) { if ( current == STRING ) { return i ; } } } return - NUM ; } | public static int commentStart ( String line ) { boolean insidequote = _BOOL ; for ( int i = _NUM ; i < line . length ( ) ; i ++ ) { char current = line . charAt ( i ) ; if ( current == STRING ) { insidequote = ! insidequote ; } else if ( ! insidequote ) { if ( current == STRING ) { return i ; } } } return - _NUM ; } | 83 |
java-test-2577 | java | What does the code instantiate ? | a new vendor option model | public Vendor Option Table Model ( Map < Vendor Option Type Interface , String > options ) { column Names [ NUM ] = Localisation . get String ( Vendor Option Table Model . class , STRING ) ; column Names [ NUM ] = Localisation . get String ( Vendor Option Table Model . class , STRING ) ; name Map = options ; List < Ven... | public VendorOptionTableModel ( Map < VendorOptionTypeInterface , String > options ) { columnNames [ _NUM ] = Localisation . getString ( VendorOptionTableModel . class , STRING ) ; columnNames [ _NUM ] = Localisation . getString ( VendorOptionTableModel . class , STRING ) ; nameMap = options ; List < VendorOptionTypeIn... | 141 |
java-test-2578 | java | What does the code load a resource ? | from the current set of resource loaders | protected Resource load Resource ( String resource Name , int resource Type , String encoding ) throws Resource Not Found Exception , Parse Error Exception , Exception { Resource resource = Resource Factory . get Resource ( resource Name , resource Type ) ; resource . set Runtime Services ( rsvc ) ; resource . set Name... | protected Resource loadResource ( String resourceName , int resourceType , String encoding ) throws ResourceNotFoundException , ParseErrorException , Exception { Resource resource = ResourceFactory . getResource ( resourceName , resourceType ) ; resource . setRuntimeServices ( rsvc ) ; resource . setName ( resourceName... | 268 |
java-test-2579 | java | In which direction does the code flatten a feature vector to a with dropout ? | from example | public static Map < String , Map < String , Double > > flatten Feature With Dropout ( Feature Vector feature Vector , double dropout ) { long seed = random . next Long ( ) ; return flatten Feature Stream To Map ( flatten Feature With Dropout As Stream ( feature Vector , dropout , seed ) ) ; } | public static Map < String , Map < String , Double > > flattenFeatureWithDropout ( FeatureVector featureVector , double dropout ) { long seed = random . nextLong ( ) ; return flattenFeatureStreamToMap ( flattenFeatureWithDropoutAsStream ( featureVector , dropout , seed ) ) ; } | 61 |
java-test-2580 | java | How does the code flatten a feature vector to a from example ? | with dropout | public static Map < String , Map < String , Double > > flatten Feature With Dropout ( Feature Vector feature Vector , double dropout ) { long seed = random . next Long ( ) ; return flatten Feature Stream To Map ( flatten Feature With Dropout As Stream ( feature Vector , dropout , seed ) ) ; } | public static Map < String , Map < String , Double > > flattenFeatureWithDropout ( FeatureVector featureVector , double dropout ) { long seed = random . nextLong ( ) ; return flattenFeatureStreamToMap ( flattenFeatureWithDropoutAsStream ( featureVector , dropout , seed ) ) ; } | 61 |
java-test-2582 | java | In which direction is the quantile drawn as a gaussian gradient ? | from the base plot dots | public Gaussian Density Layer Plot ( Plot p , int ax , double [ ] sigma ) { super ( STRING + p . name , p ) ; if ( sigma != null ) Array . check Length ( sigma , p . get Data ( ) . length ) ; this . sigma = sigma ; axis = ax ; if ( sigma != null ) { gausspdf sigma = new float [ sigma . length ] [ NUM ] ; for ( int i = ... | public GaussianDensityLayerPlot ( Plot p , int ax , double [ ] sigma ) { super ( STRING + p . name , p ) ; if ( sigma != null ) Array . checkLength ( sigma , p . getData ( ) . length ) ; this . sigma = sigma ; axis = ax ; if ( sigma != null ) { gausspdf_sigma = new float [ sigma . length ] [ _NUM ] ; for ( int i = _NUM... | 158 |
java-test-2583 | java | What does the code build ? | a gauss quantile plot based on given plot | public Gaussian Density Layer Plot ( Plot p , int ax , double [ ] sigma ) { super ( STRING + p . name , p ) ; if ( sigma != null ) Array . check Length ( sigma , p . get Data ( ) . length ) ; this . sigma = sigma ; axis = ax ; if ( sigma != null ) { gausspdf sigma = new float [ sigma . length ] [ NUM ] ; for ( int i = ... | public GaussianDensityLayerPlot ( Plot p , int ax , double [ ] sigma ) { super ( STRING + p . name , p ) ; if ( sigma != null ) Array . checkLength ( sigma , p . getData ( ) . length ) ; this . sigma = sigma ; axis = ax ; if ( sigma != null ) { gausspdf_sigma = new float [ sigma . length ] [ _NUM ] ; for ( int i = _NUM... | 158 |
java-test-2584 | java | What does the code generate ? | a uniform random zmat | public static Zmat uzmat ( int m , int n ) throws Jampack Exception { Zmat zm = new Zmat ( m , n ) ; for ( int i = NUM ; i < m ; i ++ ) { for ( int j = NUM ; j < n ; j ++ ) { zm . re [ i ] [ j ] = R . next Double ( ) ; zm . im [ i ] [ j ] = R . next Double ( ) ; } } return zm ; } | public static Zmat uzmat ( int m , int n ) throws JampackException { Zmat zm = new Zmat ( m , n ) ; for ( int i = _NUM ; i < m ; i ++ ) { for ( int j = _NUM ; j < n ; j ++ ) { zm . re [ i ] [ j ] = R . nextDouble ( ) ; zm . im [ i ] [ j ] = R . nextDouble ( ) ; } } return zm ; } | 96 |
java-test-2585 | java | What does the code create with the provided alpha parameters ? | a new dirichlet density function | public Dirichlet Density Function ( double [ ] alphas ) { this . alphas = alphas ; if ( alphas . length < NUM ) { log . warning ( STRING ) ; } for ( int i = NUM ; i < alphas . length ; i ++ ) { if ( alphas [ i ] <= NUM ) { log . warning ( STRING ) ; } } C = calculate C ( ) ; } | public DirichletDensityFunction ( double [ ] alphas ) { this . alphas = alphas ; if ( alphas . length < _NUM ) { log . warning ( STRING ) ; } for ( int i = _NUM ; i < alphas . length ; i ++ ) { if ( alphas [ i ] <= _NUM ) { log . warning ( STRING ) ; } } C = calculateC ( ) ; } | 78 |
java-test-2586 | java | When did we hit an exception ? | at a bad time ( when updating the index files ) | void abort ( ) { aborted = BOOL ; try { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pending Updates . clear ( ) ; } finally { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; }... | void abort ( ) { aborted = _BOOL ; try { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pendingUpdates . clear ( ) ; } finally { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } } } | 85 |
java-test-2587 | java | What must we discard ? | all currently buffered docs | void abort ( ) { aborted = BOOL ; try { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pending Updates . clear ( ) ; } finally { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; }... | void abort ( ) { aborted = _BOOL ; try { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pendingUpdates . clear ( ) ; } finally { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } } } | 85 |
java-test-2588 | java | When did any docs add ? | since last flush | void abort ( ) { aborted = BOOL ; try { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pending Updates . clear ( ) ; } finally { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; }... | void abort ( ) { aborted = _BOOL ; try { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pendingUpdates . clear ( ) ; } finally { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } } } | 85 |
java-test-2589 | java | What does this discard ? | any docs added since last flush | void abort ( ) { aborted = BOOL ; try { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pending Updates . clear ( ) ; } finally { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; }... | void abort ( ) { aborted = _BOOL ; try { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pendingUpdates . clear ( ) ; } finally { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } } } | 85 |
java-test-2593 | java | When does the code split the string ? | every time the given character has been found | public static String [ ] split ( String string , char c ) { if ( count Matches ( string , c ) <= NUM ) return new String [ ] { string } ; String s = string + c ; String [ ] sa = new String [ count Matches ( string , c ) + NUM ] ; String Builder sb = new String Builder ( ) ; char [ ] ca = s . to Char Array ( ) ; int n =... | public static String [ ] split ( String string , char c ) { if ( countMatches ( string , c ) <= _NUM ) return new String [ ] { string } ; String s = string + c ; String [ ] sa = new String [ countMatches ( string , c ) + _NUM ] ; StringBuilder sb = new StringBuilder ( ) ; char [ ] ca = s . toCharArray ( ) ; int n = _NU... | 159 |
java-test-2594 | java | When did the code call ? | after an element of the stylesheet got processed | public void leave ( Node Info element , Context context ) { if ( element . get Node Type ( ) == Node Info . ELEMENT ) { my Debugger . leave ( ) ; if ( TRACE ) { indent = indent . substring ( NUM , indent . length ( ) - NUM ) ; trace ( indent + STRING + element . get Display Name ( ) + STRING ) ; } } } | public void leave ( NodeInfo element , Context context ) { if ( element . getNodeType ( ) == NodeInfo . ELEMENT ) { myDebugger . leave ( ) ; if ( TRACE ) { indent = indent . substring ( _NUM , indent . length ( ) - _NUM ) ; trace ( indent + STRING + element . getDisplayName ( ) + STRING ) ; } } } | 77 |
java-test-2597 | java | What does the code start using the provided factory creator on the factory ' s default uri path ? | a factory service for the given instance service class | public Service Host start Factory ( Class < ? extends Service > inst Service Class , Supplier < Factory Service > factory Creator ) { URI factory Uri = Uri Utils . build Factory Uri ( this , inst Service Class ) ; return start Factory ( factory Creator , factory Uri . get Path ( ) ) ; } | public ServiceHost startFactory ( Class < ? extends Service > instServiceClass , Supplier < FactoryService > factoryCreator ) { URI factoryUri = UriUtils . buildFactoryUri ( this , instServiceClass ) ; return startFactory ( factoryCreator , factoryUri . getPath ( ) ) ; } | 60 |
java-test-2598 | java | How does the code start a factory service for the given instance service class ? | using the provided factory creator on the factory ' s default uri path | public Service Host start Factory ( Class < ? extends Service > inst Service Class , Supplier < Factory Service > factory Creator ) { URI factory Uri = Uri Utils . build Factory Uri ( this , inst Service Class ) ; return start Factory ( factory Creator , factory Uri . get Path ( ) ) ; } | public ServiceHost startFactory ( Class < ? extends Service > instServiceClass , Supplier < FactoryService > factoryCreator ) { URI factoryUri = UriUtils . buildFactoryUri ( this , instServiceClass ) ; return startFactory ( factoryCreator , factoryUri . getPath ( ) ) ; } | 60 |
java-test-2599 | java | What is representing an open exchange engine ? | a filename ( without path ) | public static String open Exchange File Name ( Chess Engine engine ) { String ret = STRING ; if ( engine . get Package Name ( ) != null ) ret += sanitize String ( engine . get Package Name ( ) ) ; ret += STRING ; if ( engine . get File Name ( ) != null ) ret += sanitize String ( engine . get File Name ( ) ) ; return re... | public static String openExchangeFileName ( ChessEngine engine ) { String ret = STRING ; if ( engine . getPackageName ( ) != null ) ret += sanitizeString ( engine . getPackageName ( ) ) ; ret += STRING ; if ( engine . getFileName ( ) != null ) ret += sanitizeString ( engine . getFileName ( ) ) ; return ret ; } | 78 |
java-test-2600 | java | What do a filename ( without path ) represent ? | an open exchange engine | public static String open Exchange File Name ( Chess Engine engine ) { String ret = STRING ; if ( engine . get Package Name ( ) != null ) ret += sanitize String ( engine . get Package Name ( ) ) ; ret += STRING ; if ( engine . get File Name ( ) != null ) ret += sanitize String ( engine . get File Name ( ) ) ; return re... | public static String openExchangeFileName ( ChessEngine engine ) { String ret = STRING ; if ( engine . getPackageName ( ) != null ) ret += sanitizeString ( engine . getPackageName ( ) ) ; ret += STRING ; if ( engine . getFileName ( ) != null ) ret += sanitizeString ( engine . getFileName ( ) ) ; return ret ; } | 78 |
java-test-2604 | java | How do rook bonus compute ? | on open / half - open file | private final int rook Bonus ( Position pos ) { int score = NUM ; final long w Pawns = pos . piece Type BB [ Piece . WPAWN ] ; final long b Pawns = pos . piece Type BB [ Piece . BPAWN ] ; final long occupied = pos . white BB | pos . black BB ; long m = pos . piece Type BB [ Piece . WROOK ] ; while ( m != NUM ) { int sq... | private final int rookBonus ( Position pos ) { int score = _NUM ; final long wPawns = pos . pieceTypeBB [ Piece . WPAWN ] ; final long bPawns = pos . pieceTypeBB [ Piece . BPAWN ] ; final long occupied = pos . whiteBB | pos . blackBB ; long m = pos . pieceTypeBB [ Piece . WROOK ] ; while ( m != _NUM ) { int sq = BitBoa... | 521 |
java-test-2605 | java | What does this method delete ? | a record in generalconfig table corresponding to config group and key passed | @ Request Mapping ( value = { STRING , STRING } , method = Request Method . DELETE ) @ Response Body public Rest Wrapper delete ( @ Path Variable ( STRING ) String config Group , @ Path Variable ( STRING ) String key , Principal principal ) { Rest Wrapper rest Wrapper = null ; try { General Config general Config = new ... | @ RequestMapping ( value = { STRING , STRING } , method = RequestMethod . DELETE ) @ ResponseBody public RestWrapper delete ( @ PathVariable ( STRING ) String configGroup , @ PathVariable ( STRING ) String key , Principal principal ) { RestWrapper restWrapper = null ; try { GeneralConfig generalConfig = new GeneralConf... | 228 |
java-test-2606 | java | What must both polygons have ? | loops with the same cyclic vertex order and the same nesting hierarchy | boolean boundary Approx Equals ( S2 Polygon b , double max Error ) { if ( num Loops ( ) != b . num Loops ( ) ) { log . severe ( STRING + Integer . to String ( num Loops ( ) ) + STRING + Integer . to String ( b . num Loops ( ) ) ) ; return BOOL ; } for ( int i = NUM ; i < num Loops ( ) ; ++ i ) { S2 Loop a Loop = loop (... | boolean boundaryApproxEquals ( S2Polygon b , double maxError ) { if ( numLoops ( ) != b . numLoops ( ) ) { log . severe ( STRING + Integer . toString ( numLoops ( ) ) + STRING + Integer . toString ( b . numLoops ( ) ) ) ; return _BOOL ; } for ( int i = _NUM ; i < numLoops ( ) ; ++ i ) { S2Loop aLoop = loop ( i ) ; bool... | 183 |
java-test-2607 | java | What have the same boundary except for vertex perturbations ? | two polygons | boolean boundary Approx Equals ( S2 Polygon b , double max Error ) { if ( num Loops ( ) != b . num Loops ( ) ) { log . severe ( STRING + Integer . to String ( num Loops ( ) ) + STRING + Integer . to String ( b . num Loops ( ) ) ) ; return BOOL ; } for ( int i = NUM ; i < num Loops ( ) ; ++ i ) { S2 Loop a Loop = loop (... | boolean boundaryApproxEquals ( S2Polygon b , double maxError ) { if ( numLoops ( ) != b . numLoops ( ) ) { log . severe ( STRING + Integer . toString ( numLoops ( ) ) + STRING + Integer . toString ( b . numLoops ( ) ) ) ; return _BOOL ; } for ( int i = _NUM ; i < numLoops ( ) ; ++ i ) { S2Loop aLoop = loop ( i ) ; bool... | 183 |
java-test-2608 | java | What must have loops with the same cyclic vertex order and the same nesting hierarchy ? | both polygons | boolean boundary Approx Equals ( S2 Polygon b , double max Error ) { if ( num Loops ( ) != b . num Loops ( ) ) { log . severe ( STRING + Integer . to String ( num Loops ( ) ) + STRING + Integer . to String ( b . num Loops ( ) ) ) ; return BOOL ; } for ( int i = NUM ; i < num Loops ( ) ; ++ i ) { S2 Loop a Loop = loop (... | boolean boundaryApproxEquals ( S2Polygon b , double maxError ) { if ( numLoops ( ) != b . numLoops ( ) ) { log . severe ( STRING + Integer . toString ( numLoops ( ) ) + STRING + Integer . toString ( b . numLoops ( ) ) ) ; return _BOOL ; } for ( int i = _NUM ; i < numLoops ( ) ; ++ i ) { S2Loop aLoop = loop ( i ) ; bool... | 183 |
java-test-2609 | java | What do two polygons have ? | the same boundary except for vertex perturbations | boolean boundary Approx Equals ( S2 Polygon b , double max Error ) { if ( num Loops ( ) != b . num Loops ( ) ) { log . severe ( STRING + Integer . to String ( num Loops ( ) ) + STRING + Integer . to String ( b . num Loops ( ) ) ) ; return BOOL ; } for ( int i = NUM ; i < num Loops ( ) ; ++ i ) { S2 Loop a Loop = loop (... | boolean boundaryApproxEquals ( S2Polygon b , double maxError ) { if ( numLoops ( ) != b . numLoops ( ) ) { log . severe ( STRING + Integer . toString ( numLoops ( ) ) + STRING + Integer . toString ( b . numLoops ( ) ) ) ; return _BOOL ; } for ( int i = _NUM ; i < numLoops ( ) ; ++ i ) { S2Loop aLoop = loop ( i ) ; bool... | 183 |
java-test-2610 | java | What could exist the minimum height ? | a given range count | static public int estimate Height ( final int entry Count , final int branching Factor ) { if ( entry Count < branching Factor ) return NUM ; final double logm = Math . log ( branching Factor ) ; final double logn = Math . log ( entry Count ) ; final double h = ( logm / logn ) - NUM ; return ( int ) Math . ceil ( h ) ;... | static public int estimateHeight ( final int entryCount , final int branchingFactor ) { if ( entryCount < branchingFactor ) return _NUM ; final double logm = Math . log ( branchingFactor ) ; final double logn = Math . log ( entryCount ) ; final double h = ( logm / logn ) - _NUM ; return ( int ) Math . ceil ( h ) ; } | 76 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.