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-8962
java
What does a 16 bit number define to a " half page " in the ucs2 code space ?
the complete 16 bit base pointer
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8963
java
What contain a 16 bit number which defines the complete 16 bit base pointer to a " half page " in the ucs2 code space ?
the third and fourth octets
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8964
java
What shall use either - the sms default 7 bit coded alphabet as defined in ts 23 . 038 with bit 8 set to 0 . ?
this alpha tagging
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8965
java
What contain codings as follows ?
the fourth and subsequent octets
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8966
java
What do the third and fourth octets contain ?
a 16 bit number which defines the complete 16 bit base pointer to a " half page " in the ucs2 code space
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8967
java
What are set to zero a 16 bit base pointer ?
bits 7 to 1
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8968
java
What contain a gsm default alphabet character if bit 8 of the octet is set to zero ?
the remaining 7 bits of the octet
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8969
java
What does the remaining 7 bits of the octet contain if bit 8 of the octet is set to zero ?
a gsm default alphabet character
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8970
java
What do a value indicate ?
the number of characters in the string
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8971
java
What do the third octet contain ?
an 8 bit number which defines bits 15 to 8 of a 16 bit base pointer , where bit 16 is set to zero and bits 7 to 1 are also set to zero . these sixteen bits constitute a base pointer to a " half page " in the ucs2 code space , to be used with some or all of the remaining octets in the string . the fourth and subsequent ...
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8972
java
What shall this alpha tagging use ?
either - the sms default 7 bit coded alphabet as defined in ts 23 . 038 [ 12 ] with bit 8 set to 0 .
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8973
java
For what purpose do these sixteen bits constitute a base pointer to a " half page " in the ucs2 code space , ?
to be used with some or all of the remaining octets in the string
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8974
java
Where are bits 7 to 1 set to zero also ?
a 16 bit base pointer
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8975
java
What do the fourth and subsequent octets contain ?
codings as follows
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8976
java
What does an 8 bit number define ?
bits 15 to 8 of a 16 bit base pointer , where bit 16 is set to zero and bits 7 to 1 are also set to zero
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8977
java
What defines the complete 16 bit base pointer to a " half page " in the ucs2 code space ?
a 16 bit number
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8978
java
What contains an 8 bit number which defines bits 15 to 8 of a 16 bit base pointer , where bit 16 is set to zero and bits 7 to 1 are also set to zero . these sixteen bits constitute a base pointer to a " half page " in the ucs2 code space , to be used with some or all of the remaining octets in the string . the fourth a...
the third octet
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8979
java
What defines bits 15 to 8 of a 16 bit base pointer , where bit 16 is set to zero and bits 7 to 1 are also set to zero ?
an 8 bit number
public static String adn String Field To String ( byte [ ] data , int offset , int length ) { if ( length == NUM ) { return STRING ; } if ( length >= NUM ) { if ( data [ offset ] == ( byte ) NUM ) { int ucslen = ( length - NUM ) / NUM ; String ret = null ; try { ret = new String ( data , offset + NUM , ucslen * NUM , S...
public static String adnStringFieldToString ( byte [ ] data , int offset , int length ) { if ( length == _NUM ) { return STRING ; } if ( length >= _NUM ) { if ( data [ offset ] == ( byte ) _NUM ) { int ucslen = ( length - _NUM ) / _NUM ; String ret = null ; try { ret = new String ( data , offset + _NUM , ucslen * _NUM ...
499
java-test-8980
java
What does the code read ?
the nodes of the visum file
public void read Nodes ( final int [ ] columns Indices , final Buffered Reader reader ) throws IO Exception { String line = reader . read Line ( ) ; while ( line != null && line . length ( ) > NUM ) { final String [ ] parts = line . split ( STRING ) ; Node node = Network Utils . create Node ( Id . create Node Id ( part...
public void readNodes ( final int [ ] columnsIndices , final BufferedReader reader ) throws IOException { String line = reader . readLine ( ) ; while ( line != null && line . length ( ) > _NUM ) { final String [ ] parts = line . split ( STRING ) ; Node node = NetworkUtils . createNode ( Id . createNodeId ( parts [ colu...
144
java-test-8981
java
What does the code create ?
a location at a map location
public Location ( int x , int y , String name , OM Graphic location Marker ) { set Location ( x , y ) ; this . name = name ; if ( logger . is Loggable ( Level . FINER ) ) { logger . finer ( STRING + x + STRING + y + STRING + name + STRING ) ; } if ( location Marker == null ) { location = new OM Point ( x , y ) ; } else...
public Location ( int x , int y , String name , OMGraphic locationMarker ) { setLocation ( x , y ) ; this . name = name ; if ( logger . isLoggable ( Level . FINER ) ) { logger . finer ( STRING + x + STRING + y + STRING + name + STRING ) ; } if ( locationMarker == null ) { location = new OMPoint ( x , y ) ; } else { loc...
113
java-test-8982
java
What do a graph contain ?
a given search string
public static void select Nodes With String ( final Zy Graph graph , final String search String ) { Preconditions . check Not Null ( graph , STRING ) ; Preconditions . check Not Null ( search String , STRING ) ; final Graph Searcher searcher = new Graph Searcher ( ) ; searcher . search ( Graph Helpers . get Nodes ( gra...
public static void selectNodesWithString ( final ZyGraph graph , final String searchString ) { Preconditions . checkNotNull ( graph , STRING ) ; Preconditions . checkNotNull ( searchString , STRING ) ; final GraphSearcher searcher = new GraphSearcher ( ) ; searcher . search ( GraphHelpers . getNodes ( graph ) , new Arr...
162
java-test-8984
java
What does the code add to the list ?
a new algorithm
private void add New Algorithm ( Classifier new Scheme ) { if ( ! m Editing ) { m Algorithm List Model . add Element ( new Scheme ) ; } else { m Algorithm List Model . set Element At ( new Scheme , m List . get Selected Index ( ) ) ; } update Experiment ( ) ; m Editing = BOOL ; }
private void addNewAlgorithm ( Classifier newScheme ) { if ( ! m_Editing ) { m_AlgorithmListModel . addElement ( newScheme ) ; } else { m_AlgorithmListModel . setElementAt ( newScheme , m_List . getSelectedIndex ( ) ) ; } updateExperiment ( ) ; m_Editing = _BOOL ; }
67
java-test-8985
java
What exceeds the chosen save interval ?
the time at which we last saved the session
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( dirty || ( data . get Accessed ( ) - data . get Last Saved ( ) ) >= ( save Period Ms ) ) { data . set Last Saved ( System . current Time Millis ( ) ) ; will Passivate ( ) ; update ( data ) ; did Activate ( ) ; if ( Log . is Debug Enabled ( ) ) L...
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( _dirty || ( _data . getAccessed ( ) - _data . getLastSaved ( ) ) >= ( _savePeriodMs ) ) { _data . setLastSaved ( System . currentTimeMillis ( ) ) ; willPassivate ( ) ; update ( _data ) ; didActivate ( ) ; if ( Log . isDebugEnabled ( ) ) Log . de...
149
java-test-8986
java
When do we write the session only ?
when only the access time has changed if the time at which we last saved the session exceeds the chosen save interval
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( dirty || ( data . get Accessed ( ) - data . get Last Saved ( ) ) >= ( save Period Ms ) ) { data . set Last Saved ( System . current Time Millis ( ) ) ; will Passivate ( ) ; update ( data ) ; did Activate ( ) ; if ( Log . is Debug Enabled ( ) ) L...
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( _dirty || ( _data . getAccessed ( ) - _data . getLastSaved ( ) ) >= ( _savePeriodMs ) ) { _data . setLastSaved ( System . currentTimeMillis ( ) ) ; willPassivate ( ) ; update ( _data ) ; didActivate ( ) ; if ( Log . isDebugEnabled ( ) ) Log . de...
149
java-test-8987
java
Why do we write the session if just the session access time changed always ?
because the gigaspace will serialize the unchanged session attributes . to save on serialization overheads , we only write out the session when only the access time has changed if the time at which we last saved the session exceeds the chosen save interval
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( dirty || ( data . get Accessed ( ) - data . get Last Saved ( ) ) >= ( save Period Ms ) ) { data . set Last Saved ( System . current Time Millis ( ) ) ; will Passivate ( ) ; update ( data ) ; did Activate ( ) ; if ( Log . is Debug Enabled ( ) ) L...
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( _dirty || ( _data . getAccessed ( ) - _data . getLastSaved ( ) ) >= ( _savePeriodMs ) ) { _data . setLastSaved ( System . currentTimeMillis ( ) ) ; willPassivate ( ) ; update ( _data ) ; didActivate ( ) ; if ( Log . isDebugEnabled ( ) ) Log . de...
149
java-test-8988
java
What did the time at which we last saved the session exceed ?
the chosen save interval
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( dirty || ( data . get Accessed ( ) - data . get Last Saved ( ) ) >= ( save Period Ms ) ) { data . set Last Saved ( System . current Time Millis ( ) ) ; will Passivate ( ) ; update ( data ) ; did Activate ( ) ; if ( Log . is Debug Enabled ( ) ) L...
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( _dirty || ( _data . getAccessed ( ) - _data . getLastSaved ( ) ) >= ( _savePeriodMs ) ) { _data . setLastSaved ( System . currentTimeMillis ( ) ) ; willPassivate ( ) ; update ( _data ) ; didActivate ( ) ; if ( Log . isDebugEnabled ( ) ) Log . de...
149
java-test-8989
java
What will the gigaspace serialize to save on serialization overheads ?
the unchanged session attributes
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( dirty || ( data . get Accessed ( ) - data . get Last Saved ( ) ) >= ( save Period Ms ) ) { data . set Last Saved ( System . current Time Millis ( ) ) ; will Passivate ( ) ; update ( data ) ; did Activate ( ) ; if ( Log . is Debug Enabled ( ) ) L...
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( _dirty || ( _data . getAccessed ( ) - _data . getLastSaved ( ) ) >= ( _savePeriodMs ) ) { _data . setLastSaved ( System . currentTimeMillis ( ) ) ; willPassivate ( ) ; update ( _data ) ; didActivate ( ) ; if ( Log . isDebugEnabled ( ) ) Log . de...
149
java-test-8990
java
What will serialize the unchanged session attributes to save on serialization overheads ?
the gigaspace
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( dirty || ( data . get Accessed ( ) - data . get Last Saved ( ) ) >= ( save Period Ms ) ) { data . set Last Saved ( System . current Time Millis ( ) ) ; will Passivate ( ) ; update ( data ) ; did Activate ( ) ; if ( Log . is Debug Enabled ( ) ) L...
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( _dirty || ( _data . getAccessed ( ) - _data . getLastSaved ( ) ) >= ( _savePeriodMs ) ) { _data . setLastSaved ( System . currentTimeMillis ( ) ) ; willPassivate ( ) ; update ( _data ) ; didActivate ( ) ; if ( Log . isDebugEnabled ( ) ) Log . de...
149
java-test-8991
java
For what purpose will the gigaspace serialize the unchanged session attributes ?
to save on serialization overheads
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( dirty || ( data . get Accessed ( ) - data . get Last Saved ( ) ) >= ( save Period Ms ) ) { data . set Last Saved ( System . current Time Millis ( ) ) ; will Passivate ( ) ; update ( data ) ; did Activate ( ) ; if ( Log . is Debug Enabled ( ) ) L...
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( _dirty || ( _data . getAccessed ( ) - _data . getLastSaved ( ) ) >= ( _savePeriodMs ) ) { _data . setLastSaved ( System . currentTimeMillis ( ) ) ; willPassivate ( ) ; update ( _data ) ; didActivate ( ) ; if ( Log . isDebugEnabled ( ) ) Log . de...
149
java-test-8992
java
Why do we don if just the session access time changed ?
because the gigaspace will serialize the unchanged session attributes . to save on serialization overheads
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( dirty || ( data . get Accessed ( ) - data . get Last Saved ( ) ) >= ( save Period Ms ) ) { data . set Last Saved ( System . current Time Millis ( ) ) ; will Passivate ( ) ; update ( data ) ; did Activate ( ) ; if ( Log . is Debug Enabled ( ) ) L...
@ Override protected void complete ( ) { super . complete ( ) ; try { if ( _dirty || ( _data . getAccessed ( ) - _data . getLastSaved ( ) ) >= ( _savePeriodMs ) ) { _data . setLastSaved ( System . currentTimeMillis ( ) ) ; willPassivate ( ) ; update ( _data ) ; didActivate ( ) ; if ( Log . isDebugEnabled ( ) ) Log . de...
149
java-test-8993
java
What can the given path be used ?
to open a file and write to it
public void verify Path or Throw Exception ( String path To Snapshot ) { if ( null == path To Snapshot || NUM == path To Snapshot . length ( ) ) throw new Profiler 4 J Error ( STRING ) ; File file = new File ( path To Snapshot ) ; if ( ! file . exists ( ) ) { try { file . create New File ( ) ; } catch ( IO Exception e ...
public void verifyPath_orThrowException ( String pathToSnapshot ) { if ( null == pathToSnapshot || _NUM == pathToSnapshot . length ( ) ) throw new Profiler4JError ( STRING ) ; File file = new File ( pathToSnapshot ) ; if ( ! file . exists ( ) ) { try { file . createNewFile ( ) ; } catch ( IOException e ) { throw new Pr...
142
java-test-8994
java
What does the code build ?
a random string that is at most maxstringlength characters long
public String generate Random String From Model ( int max String Length , String previous Char ) { String new String = STRING ; do { Set < Integer > choices = new Hash Set < Integer > ( ) ; choices . add All ( Arrays . as List ( NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM ) ) ; boolean found Valid Char = ...
public String generateRandomStringFromModel ( int maxStringLength , String previousChar ) { String newString = STRING ; do { Set < Integer > choices = new HashSet < Integer > ( ) ; choices . addAll ( Arrays . asList ( _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM ) ) ; boolean foundValidChar = _BO...
268
java-test-8995
java
What does the code revert ?
the order of the corners of this polygon
public Polypoint revert corners ( ) { int corner count = point alist . size ( ) ; int from idx = corner count - NUM ; Array List < Pla Point Int > reverse corner arr = new Array List < Pla Point Int > ( corner count ) ; for ( int index = NUM ; index < corner count ; ++ index ) reverse corner arr . add ( point alist . g...
public Polypoint revert_corners ( ) { int corner_count = point_alist . size ( ) ; int from_idx = corner_count - _NUM ; ArrayList < PlaPointInt > reverse_corner_arr = new ArrayList < PlaPointInt > ( corner_count ) ; for ( int index = _NUM ; index < corner_count ; ++ index ) reverse_corner_arr . add ( point_alist . get (...
93
java-test-8996
java
What did the code use ?
to verify that the header corresponds to our expectations
static protected void assert Field ( final String header , final String [ ] fields , final int field , final String expected ) { if ( header == null ) throw new Illegal Argument Exception ( ) ; if ( fields == null ) throw new Illegal Argument Exception ( ) ; if ( expected == null ) throw new Illegal Argument Exception ...
static protected void assertField ( final String header , final String [ ] fields , final int field , final String expected ) { if ( header == null ) throw new IllegalArgumentException ( ) ; if ( fields == null ) throw new IllegalArgumentException ( ) ; if ( expected == null ) throw new IllegalArgumentException ( ) ; i...
152
java-test-8997
java
When does the code used log errors ?
when the expectations are not met
static protected void assert Field ( final String header , final String [ ] fields , final int field , final String expected ) { if ( header == null ) throw new Illegal Argument Exception ( ) ; if ( fields == null ) throw new Illegal Argument Exception ( ) ; if ( expected == null ) throw new Illegal Argument Exception ...
static protected void assertField ( final String header , final String [ ] fields , final int field , final String expected ) { if ( header == null ) throw new IllegalArgumentException ( ) ; if ( fields == null ) throw new IllegalArgumentException ( ) ; if ( expected == null ) throw new IllegalArgumentException ( ) ; i...
152
java-test-9000
java
How is any key without a value added as ?
with an empty string
public static Hash Map < String , String > parse Args ( String [ ] args ) { Hash Map < String , String > parsed Args = new Hash Map < > ( ) ; boolean looking For Value = BOOL ; String current Key = null ; for ( String arg : args ) { Pattern arg Key Pattern = Pattern . compile ( STRING ) ; Matcher arg Key = arg Key Patt...
public static HashMap < String , String > parseArgs ( String [ ] args ) { HashMap < String , String > parsedArgs = new HashMap < > ( ) ; boolean lookingForValue = _BOOL ; String currentKey = null ; for ( String arg : args ) { Pattern argKeyPattern = Pattern . compile ( STRING ) ; Matcher argKey = argKeyPattern . matche...
186
java-test-9001
java
What does the code parse ?
the arguments passed to a feature function in the joshua config file todo
public static Hash Map < String , String > parse Args ( String [ ] args ) { Hash Map < String , String > parsed Args = new Hash Map < > ( ) ; boolean looking For Value = BOOL ; String current Key = null ; for ( String arg : args ) { Pattern arg Key Pattern = Pattern . compile ( STRING ) ; Matcher arg Key = arg Key Patt...
public static HashMap < String , String > parseArgs ( String [ ] args ) { HashMap < String , String > parsedArgs = new HashMap < > ( ) ; boolean lookingForValue = _BOOL ; String currentKey = null ; for ( String arg : args ) { Pattern argKeyPattern = Pattern . compile ( STRING ) ; Matcher argKey = argKeyPattern . matche...
186
java-test-9002
java
What does the code generate ?
a random password of the given length
public static String generate Password ( int length ) { Secure Random random = new Secure Random ( ) ; String Builder pass = new String Builder ( length ) ; for ( int i = NUM ; i < length ; i ++ ) { pass . append ( PASSWORD ALPHABET [ random . next Int ( PASSWORD ALPHABET . length ) ] ) ; } return ( pass . to String ( ...
public static String generatePassword ( int length ) { SecureRandom random = new SecureRandom ( ) ; StringBuilder pass = new StringBuilder ( length ) ; for ( int i = _NUM ; i < length ; i ++ ) { pass . append ( PASSWORD_ALPHABET [ random . nextInt ( PASSWORD_ALPHABET . length ) ] ) ; } return ( pass . toString ( ) ) ; ...
78
java-test-9003
java
What does only one array contain ?
elements it will be returned without coping anything
@ Safe Varargs public static < T > T [ ] join ( Int Function < T [ ] > array Function , T [ ] ... arrays ) { if ( arrays . length == NUM ) { return array Function . apply ( NUM ) ; } if ( arrays . length == NUM ) { return arrays [ NUM ] ; } if ( arrays . length == NUM ) { return join ( array Function , arrays [ NUM ] ,...
@ SafeVarargs public static < T > T [ ] join ( IntFunction < T [ ] > arrayFunction , T [ ] ... arrays ) { if ( arrays . length == _NUM ) { return arrayFunction . apply ( _NUM ) ; } if ( arrays . length == _NUM ) { return arrays [ _NUM ] ; } if ( arrays . length == _NUM ) { return join ( arrayFunction , arrays [ _NUM ] ...
248
java-test-9004
java
What contains elements it will be returned without coping anything ?
only one array
@ Safe Varargs public static < T > T [ ] join ( Int Function < T [ ] > array Function , T [ ] ... arrays ) { if ( arrays . length == NUM ) { return array Function . apply ( NUM ) ; } if ( arrays . length == NUM ) { return arrays [ NUM ] ; } if ( arrays . length == NUM ) { return join ( array Function , arrays [ NUM ] ,...
@ SafeVarargs public static < T > T [ ] join ( IntFunction < T [ ] > arrayFunction , T [ ] ... arrays ) { if ( arrays . length == _NUM ) { return arrayFunction . apply ( _NUM ) ; } if ( arrays . length == _NUM ) { return arrays [ _NUM ] ; } if ( arrays . length == _NUM ) { return join ( arrayFunction , arrays [ _NUM ] ...
248
java-test-9015
java
What did the code read ?
the reader line for line
public static List < String > read To List ( Reader r ) throws IO Exception { try ( Buffered Reader in = new Buffered Reader ( r ) ) { List < String > l = new Array List < > ( ) ; String line = null ; while ( ( line = in . read Line ( ) ) != null ) l . add ( line ) ; return Collections . unmodifiable List ( l ) ; } }
public static List < String > readToList ( Reader r ) throws IOException { try ( BufferedReader in = new BufferedReader ( r ) ) { List < String > l = new ArrayList < > ( ) ; String line = null ; while ( ( line = in . readLine ( ) ) != null ) l . add ( line ) ; return Collections . unmodifiableList ( l ) ; } }
83
java-test-9017
java
What does the code return without the leading " # " ?
the comment line ( including the line break character )
private static String read Comment ( String input , int index ) { String comment = null ; Matcher matcher = COMMENT PATTERN . matcher ( input . substring ( index ) ) ; if ( matcher . find ( ) ) { comment = matcher . group ( NUM ) ; comment = comment . substring ( NUM ) ; } return comment ; }
private static String readComment ( String input , int index ) { String comment = null ; Matcher matcher = COMMENT_PATTERN . matcher ( input . substring ( index ) ) ; if ( matcher . find ( ) ) { comment = matcher . group ( _NUM ) ; comment = comment . substring ( _NUM ) ; } return comment ; }
66
java-test-9018
java
What does the code read ?
the first comment line from the input
private static String read Comment ( String input , int index ) { String comment = null ; Matcher matcher = COMMENT PATTERN . matcher ( input . substring ( index ) ) ; if ( matcher . find ( ) ) { comment = matcher . group ( NUM ) ; comment = comment . substring ( NUM ) ; } return comment ; }
private static String readComment ( String input , int index ) { String comment = null ; Matcher matcher = COMMENT_PATTERN . matcher ( input . substring ( index ) ) ; if ( matcher . find ( ) ) { comment = matcher . group ( _NUM ) ; comment = comment . substring ( _NUM ) ; } return comment ; }
66
java-test-9019
java
How does the code return the comment line ( including the line break character ) ?
without the leading " # "
private static String read Comment ( String input , int index ) { String comment = null ; Matcher matcher = COMMENT PATTERN . matcher ( input . substring ( index ) ) ; if ( matcher . find ( ) ) { comment = matcher . group ( NUM ) ; comment = comment . substring ( NUM ) ; } return comment ; }
private static String readComment ( String input , int index ) { String comment = null ; Matcher matcher = COMMENT_PATTERN . matcher ( input . substring ( index ) ) ; if ( matcher . find ( ) ) { comment = matcher . group ( _NUM ) ; comment = comment . substring ( _NUM ) ; } return comment ; }
66
java-test-9020
java
For what purpose do this change ?
to use a parameter object
public static void calculate Pending Group Diffs ( Mitro Request Context context , Collection < ? extends Pending Group > pending Groups List , DB Group org , Map < String , DB Group > existing Groups , Map < String , Group Diff > diffs , Map < String , Member List > pending Group Map , String scope ) throws Mitro Serv...
public static void calculatePendingGroupDiffs ( MitroRequestContext context , Collection < ? extends PendingGroup > pendingGroupsList , DBGroup org , Map < String , DBGroup > existingGroups , Map < String , GroupDiff > diffs , Map < String , MemberList > pendingGroupMap , String scope ) throws MitroServletException , S...
306
java-test-9021
java
What has caller detected at this point ?
a potential getter method with name " getcallbacks "
protected static boolean is Cglib Get Callbacks ( Annotated Method am ) { Class < ? > rt = am . get Raw Type ( ) ; if ( rt == null || ! rt . is Array ( ) ) { return BOOL ; } Class < ? > comp Type = rt . get Component Type ( ) ; Package pkg = comp Type . get Package ( ) ; if ( pkg != null ) { String pname = pkg . get Na...
protected static boolean isCglibGetCallbacks ( AnnotatedMethod am ) { Class < ? > rt = am . getRawType ( ) ; if ( rt == null || ! rt . isArray ( ) ) { return _BOOL ; } Class < ? > compType = rt . getComponentType ( ) ; Package pkg = compType . getPackage ( ) ; if ( pkg != null ) { String pname = pkg . getName ( ) ; if ...
117
java-test-9022
java
What did we need ?
to determine if it is indeed injectect by cglib
protected static boolean is Cglib Get Callbacks ( Annotated Method am ) { Class < ? > rt = am . get Raw Type ( ) ; if ( rt == null || ! rt . is Array ( ) ) { return BOOL ; } Class < ? > comp Type = rt . get Component Type ( ) ; Package pkg = comp Type . get Package ( ) ; if ( pkg != null ) { String pname = pkg . get Na...
protected static boolean isCglibGetCallbacks ( AnnotatedMethod am ) { Class < ? > rt = am . getRawType ( ) ; if ( rt == null || ! rt . isArray ( ) ) { return _BOOL ; } Class < ? > compType = rt . getComponentType ( ) ; Package pkg = compType . getPackage ( ) ; if ( pkg != null ) { String pname = pkg . getName ( ) ; if ...
117
java-test-9023
java
What does the code add to shared cache context ?
cache context
@ Suppress Warnings ( STRING ) public void add Cache Context ( Grid Cache Context cache Ctx ) throws Ignite Checked Exception { if ( ctx Map . contains Key ( cache Ctx . cache Id ( ) ) ) { Grid Cache Context < K , V > existing = ctx Map . get ( cache Ctx . cache Id ( ) ) ; throw new Ignite Checked Exception ( STRING + ...
@ SuppressWarnings ( STRING ) public void addCacheContext ( GridCacheContext cacheCtx ) throws IgniteCheckedException { if ( ctxMap . containsKey ( cacheCtx . cacheId ( ) ) ) { GridCacheContext < K , V > existing = ctxMap . get ( cacheCtx . cacheId ( ) ) ; throw new IgniteCheckedException ( STRING + STRING + cacheCtx ....
149
java-test-9026
java
What do the request contain ?
conditional headers
public static boolean do Cache Header Validation ( final Solr Query Request solr Req , final Http Servlet Request req , final Method req Method , final Http Servlet Response resp ) { if ( Method . POST == req Method || Method . OTHER == req Method ) { return BOOL ; } final long last Mod = Http Cache Header Util . calc ...
public static boolean doCacheHeaderValidation ( final SolrQueryRequest solrReq , final HttpServletRequest req , final Method reqMethod , final HttpServletResponse resp ) { if ( Method . POST == reqMethod || Method . OTHER == reqMethod ) { return _BOOL ; } final long lastMod = HttpCacheHeaderUtil . calcLastModified ( so...
156
java-test-9027
java
What will this method return if the request contains conditional headers , and those headers indicate a match with the current known state of the system if the request contains conditional headers , and those headers indicate a match with the current known state of the system ?
" true
public static boolean do Cache Header Validation ( final Solr Query Request solr Req , final Http Servlet Request req , final Method req Method , final Http Servlet Response resp ) { if ( Method . POST == req Method || Method . OTHER == req Method ) { return BOOL ; } final long last Mod = Http Cache Header Util . calc ...
public static boolean doCacheHeaderValidation ( final SolrQueryRequest solrReq , final HttpServletRequest req , final Method reqMethod , final HttpServletResponse resp ) { if ( Method . POST == reqMethod || Method . OTHER == reqMethod ) { return _BOOL ; } final long lastMod = HttpCacheHeaderUtil . calcLastModified ( so...
156
java-test-9028
java
What indicate a match with the current known state of the system ?
those headers
public static boolean do Cache Header Validation ( final Solr Query Request solr Req , final Http Servlet Request req , final Method req Method , final Http Servlet Response resp ) { if ( Method . POST == req Method || Method . OTHER == req Method ) { return BOOL ; } final long last Mod = Http Cache Header Util . calc ...
public static boolean doCacheHeaderValidation ( final SolrQueryRequest solrReq , final HttpServletRequest req , final Method reqMethod , final HttpServletResponse resp ) { if ( Method . POST == reqMethod || Method . OTHER == reqMethod ) { return _BOOL ; } final long lastMod = HttpCacheHeaderUtil . calcLastModified ( so...
156
java-test-9029
java
What do this method indicate ?
that a 304 status code can be returned , and no further processing is needed
public static boolean do Cache Header Validation ( final Solr Query Request solr Req , final Http Servlet Request req , final Method req Method , final Http Servlet Response resp ) { if ( Method . POST == req Method || Method . OTHER == req Method ) { return BOOL ; } final long last Mod = Http Cache Header Util . calc ...
public static boolean doCacheHeaderValidation ( final SolrQueryRequest solrReq , final HttpServletRequest req , final Method reqMethod , final HttpServletResponse resp ) { if ( Method . POST == reqMethod || Method . OTHER == reqMethod ) { return _BOOL ; } final long lastMod = HttpCacheHeaderUtil . calcLastModified ( so...
156
java-test-9030
java
How do the http request validate against these ?
using any conditional request headers
public static boolean do Cache Header Validation ( final Solr Query Request solr Req , final Http Servlet Request req , final Method req Method , final Http Servlet Response resp ) { if ( Method . POST == req Method || Method . OTHER == req Method ) { return BOOL ; } final long last Mod = Http Cache Header Util . calc ...
public static boolean doCacheHeaderValidation ( final SolrQueryRequest solrReq , final HttpServletRequest req , final Method reqMethod , final HttpServletResponse resp ) { if ( Method . POST == reqMethod || Method . OTHER == reqMethod ) { return _BOOL ; } final long lastMod = HttpCacheHeaderUtil . calcLastModified ( so...
156
java-test-9031
java
What do those headers indicate ?
a match with the current known state of the system
public static boolean do Cache Header Validation ( final Solr Query Request solr Req , final Http Servlet Request req , final Method req Method , final Http Servlet Response resp ) { if ( Method . POST == req Method || Method . OTHER == req Method ) { return BOOL ; } final long last Mod = Http Cache Header Util . calc ...
public static boolean doCacheHeaderValidation ( final SolrQueryRequest solrReq , final HttpServletRequest req , final Method reqMethod , final HttpServletResponse resp ) { if ( Method . POST == reqMethod || Method . OTHER == reqMethod ) { return _BOOL ; } final long lastMod = HttpCacheHeaderUtil . calcLastModified ( so...
156
java-test-9032
java
What does the code add ?
a new constant
public void add Constant ( Constant Pool Entry entry ) { if ( entry instanceof Utf 8 Constant ) { Utf 8 Constant utf 8 = ( Utf 8 Constant ) entry ; utf 8 Map . put ( utf 8 . get Value ( ) , utf 8 ) ; } entries . add ( entry ) ; }
public void addConstant ( ConstantPoolEntry entry ) { if ( entry instanceof Utf8Constant ) { Utf8Constant utf8 = ( Utf8Constant ) entry ; _utf8Map . put ( utf8 . getValue ( ) , utf8 ) ; } _entries . add ( entry ) ; }
60
java-test-9033
java
How does the code generate the getter method ?
name by field
private String make Getter Method Name ( Field field ) { String getter Method Prefix ; String field Name = field . get Name ( ) ; if ( is Primitive Boolean Type ( field ) ) { if ( field Name . matches ( STRING ) ) { field Name = field Name . substring ( NUM ) ; } getter Method Prefix = STRING ; } else { getter Method P...
private String makeGetterMethodName ( Field field ) { String getterMethodPrefix ; String fieldName = field . getName ( ) ; if ( isPrimitiveBooleanType ( field ) ) { if ( fieldName . matches ( STRING ) ) { fieldName = fieldName . substring ( _NUM ) ; } getterMethodPrefix = STRING ; } else { getterMethodPrefix = STRING ;...
115
java-test-9034
java
What does the code write ?
the state of the transition rule to the stream
static void write Rule ( Zone Offset Transition Rule rule , Data Output out ) throws IO Exception { int month = rule . month ; byte dom = rule . dom ; int dow = rule . dow ; Local Time time = rule . time ; boolean time End Of Day = rule . time End Of Day ; Time Definition time Definition = rule . time Definition ; Zone...
static void writeRule ( ZoneOffsetTransitionRule rule , DataOutput out ) throws IOException { int month = rule . month ; byte dom = rule . dom ; int dow = rule . dow ; LocalTime time = rule . time ; boolean timeEndOfDay = rule . timeEndOfDay ; TimeDefinition timeDefinition = rule . timeDefinition ; ZoneOffset standardO...
449
java-test-9035
java
For what purpose did it execute this method on all nodes of the cluster ?
so that full dht ring is repaired
public boolean run Repair ( ) throws IO Exception , Interrupted Exception { start Time In Millis = System . current Time Millis ( ) ; List < String Token Range > local Ranges = get Local Ranges ( key Space Name ) ; if ( local Ranges == null ) { success = BOOL ; return BOOL ; } total Repair Sessions = local Ranges . siz...
public boolean runRepair ( ) throws IOException , InterruptedException { _startTimeInMillis = System . currentTimeMillis ( ) ; List < StringTokenRange > localRanges = getLocalRanges ( keySpaceName ) ; if ( localRanges == null ) { _success = _BOOL ; return _BOOL ; } _totalRepairSessions = localRanges . size ( ) ; if ( _...
457
java-test-9036
java
What is it supposed if _ lasttoken is not null ?
to execute this method on all nodes of the cluster so that full dht ring is repaired
public boolean run Repair ( ) throws IO Exception , Interrupted Exception { start Time In Millis = System . current Time Millis ( ) ; List < String Token Range > local Ranges = get Local Ranges ( key Space Name ) ; if ( local Ranges == null ) { success = BOOL ; return BOOL ; } total Repair Sessions = local Ranges . siz...
public boolean runRepair ( ) throws IOException , InterruptedException { _startTimeInMillis = System . currentTimeMillis ( ) ; List < StringTokenRange > localRanges = getLocalRanges ( keySpaceName ) ; if ( localRanges == null ) { _success = _BOOL ; return _BOOL ; } _totalRepairSessions = localRanges . size ( ) ; if ( _...
457
java-test-9037
java
When does the repair job start ?
from _ lasttoken
public boolean run Repair ( ) throws IO Exception , Interrupted Exception { start Time In Millis = System . current Time Millis ( ) ; List < String Token Range > local Ranges = get Local Ranges ( key Space Name ) ; if ( local Ranges == null ) { success = BOOL ; return BOOL ; } total Repair Sessions = local Ranges . siz...
public boolean runRepair ( ) throws IOException , InterruptedException { _startTimeInMillis = System . currentTimeMillis ( ) ; List < StringTokenRange > localRanges = getLocalRanges ( keySpaceName ) ; if ( localRanges == null ) { _success = _BOOL ; return _BOOL ; } _totalRepairSessions = localRanges . size ( ) ; if ( _...
457
java-test-9038
java
Where does db repair job for local primary ranges execute ?
on dht ring
public boolean run Repair ( ) throws IO Exception , Interrupted Exception { start Time In Millis = System . current Time Millis ( ) ; List < String Token Range > local Ranges = get Local Ranges ( key Space Name ) ; if ( local Ranges == null ) { success = BOOL ; return BOOL ; } total Repair Sessions = local Ranges . siz...
public boolean runRepair ( ) throws IOException , InterruptedException { _startTimeInMillis = System . currentTimeMillis ( ) ; List < StringTokenRange > localRanges = getLocalRanges ( keySpaceName ) ; if ( localRanges == null ) { _success = _BOOL ; return _BOOL ; } _totalRepairSessions = localRanges . size ( ) ; if ( _...
457
java-test-9039
java
What executes on dht ring ?
db repair job for local primary ranges
public boolean run Repair ( ) throws IO Exception , Interrupted Exception { start Time In Millis = System . current Time Millis ( ) ; List < String Token Range > local Ranges = get Local Ranges ( key Space Name ) ; if ( local Ranges == null ) { success = BOOL ; return BOOL ; } total Repair Sessions = local Ranges . siz...
public boolean runRepair ( ) throws IOException , InterruptedException { _startTimeInMillis = System . currentTimeMillis ( ) ; List < StringTokenRange > localRanges = getLocalRanges ( keySpaceName ) ; if ( localRanges == null ) { _success = _BOOL ; return _BOOL ; } _totalRepairSessions = localRanges . size ( ) ; if ( _...
457
java-test-9040
java
Where did it execute this method so that full dht ring is repaired ?
on all nodes of the cluster
public boolean run Repair ( ) throws IO Exception , Interrupted Exception { start Time In Millis = System . current Time Millis ( ) ; List < String Token Range > local Ranges = get Local Ranges ( key Space Name ) ; if ( local Ranges == null ) { success = BOOL ; return BOOL ; } total Repair Sessions = local Ranges . siz...
public boolean runRepair ( ) throws IOException , InterruptedException { _startTimeInMillis = System . currentTimeMillis ( ) ; List < StringTokenRange > localRanges = getLocalRanges ( keySpaceName ) ; if ( localRanges == null ) { _success = _BOOL ; return _BOOL ; } _totalRepairSessions = localRanges . size ( ) ; if ( _...
457
java-test-9041
java
What runs on the given stream ?
a commercial
public void run Commercial ( String stream , int length ) { if ( stream == null || stream . is Empty ( ) ) { commercial Result ( stream , STRING , Twitch Api . Request Result . FAILED ) ; } else { String channel = STRING + stream ; if ( is Channel Open ( channel ) ) { g . print Line ( channel , STRING + length + STRING...
public void runCommercial ( String stream , int length ) { if ( stream == null || stream . isEmpty ( ) ) { commercialResult ( stream , STRING , TwitchApi . RequestResult . FAILED ) ; } else { String channel = STRING + stream ; if ( isChannelOpen ( channel ) ) { g . printLine ( channel , STRING + length + STRING ) ; } e...
116
java-test-9042
java
How does a commercial run on the given stream ?
with the given length
public void run Commercial ( String stream , int length ) { if ( stream == null || stream . is Empty ( ) ) { commercial Result ( stream , STRING , Twitch Api . Request Result . FAILED ) ; } else { String channel = STRING + stream ; if ( is Channel Open ( channel ) ) { g . print Line ( channel , STRING + length + STRING...
public void runCommercial ( String stream , int length ) { if ( stream == null || stream . isEmpty ( ) ) { commercialResult ( stream , STRING , TwitchApi . RequestResult . FAILED ) ; } else { String channel = STRING + stream ; if ( isChannelOpen ( channel ) ) { g . printLine ( channel , STRING + length + STRING ) ; } e...
116
java-test-9043
java
What does the code create ?
a new database for the given fileformat
public static Database Impl create ( File Format file Format , File mdb File , File Channel channel , boolean auto Sync , Charset charset , Time Zone time Zone ) throws IO Exception { File Format Details details = get File Format Details ( file Format ) ; if ( details . get Format ( ) . READ ONLY ) { throw new IO Excep...
public static DatabaseImpl create ( FileFormat fileFormat , File mdbFile , FileChannel channel , boolean autoSync , Charset charset , TimeZone timeZone ) throws IOException { FileFormatDetails details = getFileFormatDetails ( fileFormat ) ; if ( details . getFormat ( ) . READ_ONLY ) { throw new IOException ( STRING + f...
243
java-test-9044
java
What does the code evaluate ?
the cost of a basic block , in number of real instructions excluding branches
private int evaluate Cost ( Basic Block bb ) { int result = NUM ; for ( Enumeration < Instruction > e = bb . forward Real Instr Enumerator ( ) ; e . has More Elements ( ) ; ) { Instruction s = e . next Element ( ) ; if ( ! s . is Branch ( ) ) result ++ ; } return result ; }
private int evaluateCost ( BasicBlock bb ) { int result = _NUM ; for ( Enumeration < Instruction > e = bb . forwardRealInstrEnumerator ( ) ; e . hasMoreElements ( ) ; ) { Instruction s = e . nextElement ( ) ; if ( ! s . isBranch ( ) ) result ++ ; } return result ; }
70
java-test-9045
java
What is excluding branches ?
real instructions
private int evaluate Cost ( Basic Block bb ) { int result = NUM ; for ( Enumeration < Instruction > e = bb . forward Real Instr Enumerator ( ) ; e . has More Elements ( ) ; ) { Instruction s = e . next Element ( ) ; if ( ! s . is Branch ( ) ) result ++ ; } return result ; }
private int evaluateCost ( BasicBlock bb ) { int result = _NUM ; for ( Enumeration < Instruction > e = bb . forwardRealInstrEnumerator ( ) ; e . hasMoreElements ( ) ; ) { Instruction s = e . nextElement ( ) ; if ( ! s . isBranch ( ) ) result ++ ; } return result ; }
70
java-test-9046
java
What does the code calculate ?
the incomplete gamma function
public static double igamma ( double a , double x ) { double coef = ( Math . exp ( - x ) * Math . pow ( x , a ) ) / gamma ( a ) ; double sum = NUM ; for ( int i = NUM ; i < NUM ; i ++ ) { sum += ( gamma ( a ) / gamma ( a + NUM + ( double ) i ) ) * Math . pow ( x , ( double ) i ) ; } return ( coef * sum ) ; }
public static double igamma ( double a , double x ) { double coef = ( Math . exp ( - x ) * Math . pow ( x , a ) ) / gamma ( a ) ; double sum = _NUM ; for ( int i = _NUM ; i < _NUM ; i ++ ) { sum += ( gamma ( a ) / gamma ( a + _NUM + ( double ) i ) ) * Math . pow ( x , ( double ) i ) ; } return ( coef * sum ) ; }
101
java-test-9047
java
When can a performance tweak be exploited ?
when reordering the nodes only
public void replace Non Optional Non Minus Nodes With ( final List < I Group Member Node > ordered , final boolean recompute Definitely Produced ) { non Optional Non Minus Nodes . clear ( ) ; non Optional Non Minus Nodes . add All ( ordered ) ; if ( recompute Definitely Produced ) { recompute Definitely Produced ( ) ; ...
public void replaceNonOptionalNonMinusNodesWith ( final List < IGroupMemberNode > ordered , final boolean recomputeDefinitelyProduced ) { nonOptionalNonMinusNodes . clear ( ) ; nonOptionalNonMinusNodes . addAll ( ordered ) ; if ( recomputeDefinitelyProduced ) { recomputeDefinitelyProduced ( ) ; } }
64
java-test-9048
java
What does the code deserializ ?
a serialized typeserializer
@ Suppress Warnings ( STRING ) public static < T > Type Serializer < T > deserialize ( byte [ ] bytes ) throws IO Exception { Byte Array Input Stream bis = new Byte Array Input Stream ( bytes ) ; Object Input in = null ; try { in = new Object Input Stream ( bis ) ; return ( Type Serializer < T > ) in . read Object ( ) ...
@ SuppressWarnings ( STRING ) public static < T > TypeSerializer < T > deserialize ( byte [ ] bytes ) throws IOException { ByteArrayInputStream bis = new ByteArrayInputStream ( bytes ) ; ObjectInput in = null ; try { in = new ObjectInputStream ( bis ) ; return ( TypeSerializer < T > ) in . readObject ( ) ; } catch ( Cl...
140
java-test-9049
java
When can slotactivateditem be activated where ?
when equipped
public void initialize Active Slots List ( String slots ) { if ( active Slots List == null ) { active Slots List = new Array List < String > ( ) ; } for ( String s : slots . split ( STRING ) ) { active Slots List . add ( s ) ; } }
public void initializeActiveSlotsList ( String slots ) { if ( activeSlotsList == null ) { activeSlotsList = new ArrayList < String > ( ) ; } for ( String s : slots . split ( STRING ) ) { activeSlotsList . add ( s ) ; } }
58
java-test-9050
java
What does the code add slots ?
to list where slotactivateditem can be activated when equipped
public void initialize Active Slots List ( String slots ) { if ( active Slots List == null ) { active Slots List = new Array List < String > ( ) ; } for ( String s : slots . split ( STRING ) ) { active Slots List . add ( s ) ; } }
public void initializeActiveSlotsList ( String slots ) { if ( activeSlotsList == null ) { activeSlotsList = new ArrayList < String > ( ) ; } for ( String s : slots . split ( STRING ) ) { activeSlotsList . add ( s ) ; } }
58
java-test-9051
java
What does the code add to list where slotactivateditem can be activated when equipped ?
slots
public void initialize Active Slots List ( String slots ) { if ( active Slots List == null ) { active Slots List = new Array List < String > ( ) ; } for ( String s : slots . split ( STRING ) ) { active Slots List . add ( s ) ; } }
public void initializeActiveSlotsList ( String slots ) { if ( activeSlotsList == null ) { activeSlotsList = new ArrayList < String > ( ) ; } for ( String s : slots . split ( STRING ) ) { activeSlotsList . add ( s ) ; } }
58
java-test-9052
java
What can be activated where ?
slotactivateditem
public void initialize Active Slots List ( String slots ) { if ( active Slots List == null ) { active Slots List = new Array List < String > ( ) ; } for ( String s : slots . split ( STRING ) ) { active Slots List . add ( s ) ; } }
public void initializeActiveSlotsList ( String slots ) { if ( activeSlotsList == null ) { activeSlotsList = new ArrayList < String > ( ) ; } for ( String s : slots . split ( STRING ) ) { activeSlotsList . add ( s ) ; } }
58
java-test-9053
java
What does the code delete ?
a type vertex
protected void delete Type Vertex ( Atlas Vertex instance Vertex , Data Types . Type Category type Category , boolean force ) throws Atlas Exception { switch ( type Category ) { case STRUCT : case TRAIT : delete Type Vertex ( instance Vertex , force ) ; break ; case CLASS : delete Entities ( Collections . singleton Lis...
protected void deleteTypeVertex ( AtlasVertex instanceVertex , DataTypes . TypeCategory typeCategory , boolean force ) throws AtlasException { switch ( typeCategory ) { case STRUCT : case TRAIT : deleteTypeVertex ( instanceVertex , force ) ; break ; case CLASS : deleteEntities ( Collections . singletonList ( instanceVe...
86
java-test-9055
java
In which direction do objects add to the context ?
from the current properties
protected void fill Context Properties ( Context context ) { Enumeration enm = props . property Names ( ) ; while ( enm . has More Elements ( ) ) { String nm = ( String ) enm . next Element ( ) ; if ( nm . starts With ( STRING ) ) { String context Obj = props . get Property ( nm ) ; int colon = nm . last Index Of ( STR...
protected void fillContextProperties ( Context context ) { Enumeration enm = props . propertyNames ( ) ; while ( enm . hasMoreElements ( ) ) { String nm = ( String ) enm . nextElement ( ) ; if ( nm . startsWith ( STRING ) ) { String contextObj = props . getProperty ( nm ) ; int colon = nm . lastIndexOf ( STRING ) ; Str...
145
java-test-9056
java
What does the code add to the state ?
a metaobject
public void add Meta Object ( Meta Object object ) { for ( int k = NUM ; k < Meta Objects . size ( ) ; ++ k ) { if ( Meta Objects . get ( k ) == null ) { Meta Objects . set ( k , object ) ; return ; } } Meta Objects . add ( object ) ; }
public void addMetaObject ( MetaObject object ) { for ( int k = _NUM ; k < MetaObjects . size ( ) ; ++ k ) { if ( MetaObjects . get ( k ) == null ) { MetaObjects . set ( k , object ) ; return ; } } MetaObjects . add ( object ) ; }
67
java-test-9057
java
What have a particular annotation if they exist ?
any of t ' s outer classes
public boolean outer Class Has Annotation ( Annotation annotation ) { Class < ? > outer = type . get Declaring Class ( ) ; while ( outer != null ) { Annotation Accessor accessor = new Annotation Accessor ( supported Annotations , outer , ignore Annotation Failure ) ; if ( accessor . type Has ( annotation ) ) { return B...
public boolean outerClassHasAnnotation ( Annotation annotation ) { Class < ? > outer = type . getDeclaringClass ( ) ; while ( outer != null ) { AnnotationAccessor accessor = new AnnotationAccessor ( supportedAnnotations , outer , ignoreAnnotationFailure ) ; if ( accessor . typeHas ( annotation ) ) { return _BOOL ; } ou...
80
java-test-9058
java
What do all ioobjects of this container add ?
to the given ioobjects
public IO Container append ( IO Object [ ] output ) { List < IO Object > new Objects = new Linked List < > ( ) ; for ( int i = NUM ; i < output . length ; i ++ ) { new Objects . add ( output [ i ] ) ; } new Objects . add All ( io Objects ) ; return new IO Container ( new Objects ) ; }
public IOContainer append ( IOObject [ ] output ) { List < IOObject > newObjects = new LinkedList < > ( ) ; for ( int i = _NUM ; i < output . length ; i ++ ) { newObjects . add ( output [ i ] ) ; } newObjects . addAll ( ioObjects ) ; return new IOContainer ( newObjects ) ; }
77
java-test-9059
java
How does the code create a new iocontainer ?
by adding all ioobjects of this container to the given ioobjects
public IO Container append ( IO Object [ ] output ) { List < IO Object > new Objects = new Linked List < > ( ) ; for ( int i = NUM ; i < output . length ; i ++ ) { new Objects . add ( output [ i ] ) ; } new Objects . add All ( io Objects ) ; return new IO Container ( new Objects ) ; }
public IOContainer append ( IOObject [ ] output ) { List < IOObject > newObjects = new LinkedList < > ( ) ; for ( int i = _NUM ; i < output . length ; i ++ ) { newObjects . add ( output [ i ] ) ; } newObjects . addAll ( ioObjects ) ; return new IOContainer ( newObjects ) ; }
77
java-test-9060
java
What is adding to the given ioobjects ?
all ioobjects of this container
public IO Container append ( IO Object [ ] output ) { List < IO Object > new Objects = new Linked List < > ( ) ; for ( int i = NUM ; i < output . length ; i ++ ) { new Objects . add ( output [ i ] ) ; } new Objects . add All ( io Objects ) ; return new IO Container ( new Objects ) ; }
public IOContainer append ( IOObject [ ] output ) { List < IOObject > newObjects = new LinkedList < > ( ) ; for ( int i = _NUM ; i < output . length ; i ++ ) { newObjects . add ( output [ i ] ) ; } newObjects . addAll ( ioObjects ) ; return new IOContainer ( newObjects ) ; }
77
java-test-9061
java
What does the code compose ?
a single line of otp information
public String compose Otp Attribute ( OTP User Record otp User Record ) throws Pwm Unrecoverable Exception { String value = STRING ; if ( otp User Record != null ) { final Configuration config = pwm Application . get Config ( ) ; final OTP Storage Format format = config . read Setting As Enum ( Pwm Setting . OTP SECRET...
public String composeOtpAttribute ( OTPUserRecord otpUserRecord ) throws PwmUnrecoverableException { String value = STRING ; if ( otpUserRecord != null ) { final Configuration config = pwmApplication . getConfig ( ) ; final OTPStorageFormat format = config . readSettingAsEnum ( PwmSetting . OTP_SECRET_STORAGEFORMAT , O...
205
java-test-9062
java
What does the code serialize escaping where necessary ?
a content token
protected void serialize Content Token ( Content Node item , Tag Node tag Node , Writer writer ) throws IO Exception { if ( dont Escape ( tag Node ) ) { writer . write ( item . get Content ( ) ) ; } else { writer . write ( escape Xml ( item . get Content ( ) ) ) ; } }
protected void serializeContentToken ( ContentNode item , TagNode tagNode , Writer writer ) throws IOException { if ( dontEscape ( tagNode ) ) { writer . write ( item . getContent ( ) ) ; } else { writer . write ( escapeXml ( item . getContent ( ) ) ) ; } }
65
java-test-9063
java
When did by the connmgr thread call the code ?
when a new connection is created
public Channel Entry new Connection ( Read Selector Thread read Handler , Selection Key key ) { Socket Channel channel = ( Socket Channel ) key . channel ( ) ; Write Selector Thread write Handler = selector Manager . get Write Handler ( key . channel ( ) ) ; Socket socket = channel . socket ( ) ; Inet Socket Address so...
public ChannelEntry newConnection ( ReadSelectorThread readHandler , SelectionKey key ) { SocketChannel channel = ( SocketChannel ) key . channel ( ) ; WriteSelectorThread writeHandler = _selectorManager . getWriteHandler ( key . channel ( ) ) ; Socket socket = channel . socket ( ) ; InetSocketAddress socketAddress = (...
185
java-test-9065
java
What does the code create ?
the checkbox panel to control if full paths should be shown in the modules table
public C Modules Check Box Panel ( final C Modules Table Model modules Table Model ) { super ( new Border Layout ( ) ) ; final J Check Box check Box = new J Check Box ( STRING ) ; check Box . add Item Listener ( new Internal Checkbox Listener ( ) ) ; add ( check Box ) ; m modules Table Model = modules Table Model ; }
public CModulesCheckBoxPanel ( final CModulesTableModel modulesTableModel ) { super ( new BorderLayout ( ) ) ; final JCheckBox checkBox = new JCheckBox ( STRING ) ; checkBox . addItemListener ( new InternalCheckboxListener ( ) ) ; add ( checkBox ) ; m_modulesTableModel = modulesTableModel ; }
72
java-test-9067
java
What does the code update after location ?
the y locations of all of the visible nodes
private void update Y Locations From ( int location ) { if ( location >= NUM && location < get Row Count ( ) ) { int counter , max Counter , new Y Origin ; Tree State Node a Node ; a Node = get Node ( location ) ; new Y Origin = a Node . get Y Origin ( ) + a Node . get Preferred Height ( ) ; for ( counter = location + ...
private void updateYLocationsFrom ( int location ) { if ( location >= _NUM && location < getRowCount ( ) ) { int counter , maxCounter , newYOrigin ; TreeStateNode aNode ; aNode = getNode ( location ) ; newYOrigin = aNode . getYOrigin ( ) + aNode . getPreferredHeight ( ) ; for ( counter = location + _NUM , maxCounter = ...
145
java-test-9068
java
When does the code update the y locations of all of the visible nodes ?
after location
private void update Y Locations From ( int location ) { if ( location >= NUM && location < get Row Count ( ) ) { int counter , max Counter , new Y Origin ; Tree State Node a Node ; a Node = get Node ( location ) ; new Y Origin = a Node . get Y Origin ( ) + a Node . get Preferred Height ( ) ; for ( counter = location + ...
private void updateYLocationsFrom ( int location ) { if ( location >= _NUM && location < getRowCount ( ) ) { int counter , maxCounter , newYOrigin ; TreeStateNode aNode ; aNode = getNode ( location ) ; newYOrigin = aNode . getYOrigin ( ) + aNode . getPreferredHeight ( ) ; for ( counter = location + _NUM , maxCounter = ...
145
java-test-9071
java
What does this implementation create ?
a urlresource , applying the given path relative to the path of the underlying url of this resource descriptor
@ Override public Resource create Relative ( String relative Path ) throws Malformed URL Exception { if ( relative Path . starts With ( STRING ) ) { relative Path = relative Path . substring ( NUM ) ; } return new Url Resource ( new URL ( this . url , relative Path ) ) ; }
@ Override public Resource createRelative ( String relativePath ) throws MalformedURLException { if ( relativePath . startsWith ( STRING ) ) { relativePath = relativePath . substring ( _NUM ) ; } return new UrlResource ( new URL ( this . url , relativePath ) ) ; }
58
java-test-9072
java
What is applying the given path relative to the path of the underlying url of this resource descriptor ?
a urlresource
@ Override public Resource create Relative ( String relative Path ) throws Malformed URL Exception { if ( relative Path . starts With ( STRING ) ) { relative Path = relative Path . substring ( NUM ) ; } return new Url Resource ( new URL ( this . url , relative Path ) ) ; }
@ Override public Resource createRelative ( String relativePath ) throws MalformedURLException { if ( relativePath . startsWith ( STRING ) ) { relativePath = relativePath . substring ( _NUM ) ; } return new UrlResource ( new URL ( this . url , relativePath ) ) ; }
58
java-test-9073
java
What does a urlresource apply to the path of the underlying url of this resource descriptor ?
the given path relative
@ Override public Resource create Relative ( String relative Path ) throws Malformed URL Exception { if ( relative Path . starts With ( STRING ) ) { relative Path = relative Path . substring ( NUM ) ; } return new Url Resource ( new URL ( this . url , relative Path ) ) ; }
@ Override public Resource createRelative ( String relativePath ) throws MalformedURLException { if ( relativePath . startsWith ( STRING ) ) { relativePath = relativePath . substring ( _NUM ) ; } return new UrlResource ( new URL ( this . url , relativePath ) ) ; }
58
java-test-9077
java
What does the code deserialize from a data source ?
a kdbgroup
private static Kdb Group deserialize Group ( Kdb Group last Group , Data Input data Input ) throws IO Exception { int field Type ; Kdb Group group = new Kdb Group ( ) ; while ( ( field Type = data Input . read Unsigned Short ( ) ) != NUM ) { switch ( field Type ) { case NUM : read Ext Data ( data Input ) ; break ; case...
private static KdbGroup deserializeGroup ( KdbGroup lastGroup , DataInput dataInput ) throws IOException { int fieldType ; KdbGroup group = new KdbGroup ( ) ; while ( ( fieldType = dataInput . readUnsignedShort ( ) ) != _NUM ) { switch ( fieldType ) { case _NUM : readExtData ( dataInput ) ; break ; case _NUM : UUID uui...
295
java-test-9078
java
What exposes the same content as the supplied jsoup document ?
a w3c dom
public static Document jsoup 2 DOM ( org . jsoup . nodes . Document jsoup Document ) { Document document = null ; try { Document Builder Factory doc Builder Factory = Document Builder Factory . new Instance ( ) ; Document Builder doc Builder = doc Builder Factory . new Document Builder ( ) ; document = doc Builder . ne...
public static Document jsoup2DOM ( org . jsoup . nodes . Document jsoupDocument ) { Document document = null ; try { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder docBuilder = docBuilderFactory . newDocumentBuilder ( ) ; document = docBuilder . newDocument ( ) ; M...
122
java-test-9079
java
What does a w3c dom expose ?
the same content as the supplied jsoup document
public static Document jsoup 2 DOM ( org . jsoup . nodes . Document jsoup Document ) { Document document = null ; try { Document Builder Factory doc Builder Factory = Document Builder Factory . new Instance ( ) ; Document Builder doc Builder = doc Builder Factory . new Document Builder ( ) ; document = doc Builder . ne...
public static Document jsoup2DOM ( org . jsoup . nodes . Document jsoupDocument ) { Document document = null ; try { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder docBuilder = docBuilderFactory . newDocumentBuilder ( ) ; document = docBuilder . newDocument ( ) ; M...
122
java-test-9080
java
In which direction be only one solution flowed ?
into the remote service
public void test service 005 ( ) throws Exception { final Bigdata URI service URI = value Factory . create URI ( STRING ) ; final Graph Pattern Group < I Group Member Node > group Node = new Join Group Node ( ) ; { group Node . add Child ( new Statement Pattern Node ( new Var Node ( STRING ) , new Var Node ( STRING ) ,...
public void test_service_005 ( ) throws Exception { final BigdataURI serviceURI = valueFactory . createURI ( STRING ) ; final GraphPatternGroup < IGroupMemberNode > groupNode = new JoinGroupNode ( ) ; { groupNode . addChild ( new StatementPatternNode ( new VarNode ( STRING ) , new VarNode ( STRING ) , new VarNode ( STR...
594
java-test-9081
java
What will this return ?
the width and height of the rectangle that the text will fit into
public Dimension string Size ( Font Metrics f ) { Dimension d = new Dimension ( ) ; int old = NUM ; String s ; int noa = NUM ; while ( ( s = get Line ( noa ) ) != null ) { noa ++ ; old = f . string Width ( s ) ; if ( old > d . width ) { d . width = old ; } } d . height = noa * f . get Height ( ) ; return d ; }
public Dimension stringSize ( FontMetrics f ) { Dimension d = new Dimension ( ) ; int old = _NUM ; String s ; int noa = _NUM ; while ( ( s = getLine ( noa ) ) != null ) { noa ++ ; old = f . stringWidth ( s ) ; if ( old > d . width ) { d . width = old ; } } d . height = noa * f . getHeight ( ) ; return d ; }
93
java-test-9082
java
For what purpose does a ( typically v . small ) decision tree build ?
for distinguishing strings that share the same hash value
private static void generate Pivots ( String [ ] values , int start , int length , int [ ] pivots , int pivot Index ) { final int capacity = Integer . highest One Bit ( length - NUM ) << NUM ; final int depth = Integer . number Of Trailing Zeros ( capacity ) ; pivots [ pivot Index << NUM ] = depth ; pivots [ ( pivot In...
private static void generatePivots ( String [ ] values , int start , int length , int [ ] pivots , int pivotIndex ) { final int capacity = Integer . highestOneBit ( length - _NUM ) << _NUM ; final int depth = Integer . numberOfTrailingZeros ( capacity ) ; pivots [ pivotIndex << _NUM ] = depth ; pivots [ ( pivotIndex <<...
386
java-test-9083
java
What do strings share ?
the same hash value
private static void generate Pivots ( String [ ] values , int start , int length , int [ ] pivots , int pivot Index ) { final int capacity = Integer . highest One Bit ( length - NUM ) << NUM ; final int depth = Integer . number Of Trailing Zeros ( capacity ) ; pivots [ pivot Index << NUM ] = depth ; pivots [ ( pivot In...
private static void generatePivots ( String [ ] values , int start , int length , int [ ] pivots , int pivotIndex ) { final int capacity = Integer . highestOneBit ( length - _NUM ) << _NUM ; final int depth = Integer . numberOfTrailingZeros ( capacity ) ; pivots [ pivotIndex << _NUM ] = depth ; pivots [ ( pivotIndex <<...
386
java-test-9086
java
What does the code add ?
imports required by this model spec to the given accumulator set
public final void add Required Imports ( Set < Declared Type Name > imports ) { imports . add ( Type Constants . PROPERTY ) ; imports . add ( Type Constants . VALUES STORAGE ) ; imports . add ( get Model Superclass ( ) ) ; for ( Property Generator generator : property Generators ) { generator . register Required Import...
public final void addRequiredImports ( Set < DeclaredTypeName > imports ) { imports . add ( TypeConstants . PROPERTY ) ; imports . add ( TypeConstants . VALUES_STORAGE ) ; imports . add ( getModelSuperclass ( ) ) ; for ( PropertyGenerator generator : propertyGenerators ) { generator . registerRequiredImports ( imports ...
87
java-test-9089
java
What does this method set ?
the height of the header row
private void compute Header Sizes ( ) { item Height = font Metrics . get Height ( ) + NUM ; int col Header Height = NUM ; for ( Grid Column column : top Columns ) { col Header Height = Math . max ( column . get Header Height ( BOOL ) , col Header Height ) ; } header Height = col Header Height ; row Header Width = DEFAU...
private void computeHeaderSizes ( ) { itemHeight = fontMetrics . getHeight ( ) + _NUM ; int colHeaderHeight = _NUM ; for ( GridColumn column : topColumns ) { colHeaderHeight = Math . max ( column . getHeaderHeight ( _BOOL ) , colHeaderHeight ) ; } headerHeight = colHeaderHeight ; rowHeaderWidth = DEFAULT_ROW_HEADER_WID...
202