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-2155
java
Where does the swipe up / down / left / right action perform ?
on the uiobject
@ Override public boolean swipe ( Selector obj , String dir , float percent , int steps ) throws Ui Object Not Found Exception { if ( obj . to Ui Object 2 ( ) == null ) { return swipe ( device . find Object ( obj . to Ui Selector ( ) ) , dir , steps ) ; } return swipe ( obj . to Ui Object 2 ( ) , dir , percent , steps ...
@ Override public boolean swipe ( Selector obj , String dir , float percent , int steps ) throws UiObjectNotFoundException { if ( obj . toUiObject2 ( ) == null ) { return swipe ( device . findObject ( obj . toUiSelector ( ) ) , dir , steps ) ; } return swipe ( obj . toUiObject2 ( ) , dir , percent , steps ) ; }
82
java-test-2156
java
What performs on the uiobject ?
the swipe up / down / left / right action
@ Override public boolean swipe ( Selector obj , String dir , float percent , int steps ) throws Ui Object Not Found Exception { if ( obj . to Ui Object 2 ( ) == null ) { return swipe ( device . find Object ( obj . to Ui Selector ( ) ) , dir , steps ) ; } return swipe ( obj . to Ui Object 2 ( ) , dir , percent , steps ...
@ Override public boolean swipe ( Selector obj , String dir , float percent , int steps ) throws UiObjectNotFoundException { if ( obj . toUiObject2 ( ) == null ) { return swipe ( device . findObject ( obj . toUiSelector ( ) ) , dir , steps ) ; } return swipe ( obj . toUiObject2 ( ) , dir , percent , steps ) ; }
82
java-test-2159
java
What does the code add ?
a couple of common permissions for both unsigned extensions as well as groovy scripts
private static void add Common Permissions ( Permissions permissions ) { permissions . add ( new Audio Permission ( STRING ) ) ; permissions . add ( new AWT Permission ( STRING ) ) ; permissions . add ( new AWT Permission ( STRING ) ) ; permissions . add ( new AWT Permission ( STRING ) ) ; permissions . add ( new Loggi...
private static void addCommonPermissions ( Permissions permissions ) { permissions . add ( new AudioPermission ( STRING ) ) ; permissions . add ( new AWTPermission ( STRING ) ) ; permissions . add ( new AWTPermission ( STRING ) ) ; permissions . add ( new AWTPermission ( STRING ) ) ; permissions . add ( new LoggingPerm...
200
java-test-2160
java
When may they be done ?
during any commit stage , hard or soft
public void insert Record ( int id , byte [ ] record ) throws IO Exception { if ( ! database . is Open ( ) ) throw new Illegal State Exception ( STRING ) ; if ( id < committed Next Row Id ) { throw new Illegal State Exception ( STRING + id + STRING + this ) ; } if ( id != last Transaction Insert Id + NUM ) { throw new ...
public void insertRecord ( int id , byte [ ] record ) throws IOException { if ( ! database . isOpen ( ) ) throw new IllegalStateException ( STRING ) ; if ( id < committedNextRowId ) { throw new IllegalStateException ( STRING + id + STRING + this ) ; } if ( id != lastTransactionInsertId + _NUM ) { throw new IllegalState...
157
java-test-2161
java
What is lockaddress adds ?
the address passed to a lock list
public void lock Address ( final int addr ) { if ( m lock Addresses . put If Absent ( addr , System . current Time Millis ( ) ) != null ) { throw new Illegal State Exception ( STRING + addr + STRING + physical Address ( addr , BOOL ) ) ; } }
public void lockAddress ( final int addr ) { if ( m_lockAddresses . putIfAbsent ( addr , System . currentTimeMillis ( ) ) != null ) { throw new IllegalStateException ( STRING + addr + STRING + physicalAddress ( addr , _BOOL ) ) ; } }
57
java-test-2162
java
What is adds the address passed to a lock list ?
lockaddress
public void lock Address ( final int addr ) { if ( m lock Addresses . put If Absent ( addr , System . current Time Millis ( ) ) != null ) { throw new Illegal State Exception ( STRING + addr + STRING + physical Address ( addr , BOOL ) ) ; } }
public void lockAddress ( final int addr ) { if ( m_lockAddresses . putIfAbsent ( addr , System . currentTimeMillis ( ) ) != null ) { throw new IllegalStateException ( STRING + addr + STRING + physicalAddress ( addr , _BOOL ) ) ; } }
57
java-test-2163
java
How does the method draw non - conflicting times in the event color and times ?
with conflicting events in the dna conflict color defined in colors
protected void draw DNA ( Canvas canvas ) { if ( m Dna != null ) { for ( Utils . DNA Strand strand : m Dna . values ( ) ) { if ( strand . color == CONFLICT COLOR || strand . points == null || strand . points . length == NUM ) { continue ; } mDNA Time Paint . set Color ( strand . color ) ; canvas . draw Lines ( strand ....
protected void drawDNA ( Canvas canvas ) { if ( mDna != null ) { for ( Utils . DNAStrand strand : mDna . values ( ) ) { if ( strand . color == CONFLICT_COLOR || strand . points == null || strand . points . length == _NUM ) { continue ; } mDNATimePaint . setColor ( strand . color ) ; canvas . drawLines ( strand . points...
305
java-test-2164
java
What does the method draw with conflicting events in the dna conflict color defined in colors ?
non - conflicting times in the event color and times
protected void draw DNA ( Canvas canvas ) { if ( m Dna != null ) { for ( Utils . DNA Strand strand : m Dna . values ( ) ) { if ( strand . color == CONFLICT COLOR || strand . points == null || strand . points . length == NUM ) { continue ; } mDNA Time Paint . set Color ( strand . color ) ; canvas . draw Lines ( strand ....
protected void drawDNA ( Canvas canvas ) { if ( mDna != null ) { for ( Utils . DNAStrand strand : mDna . values ( ) ) { if ( strand . color == CONFLICT_COLOR || strand . points == null || strand . points . length == _NUM ) { continue ; } mDNATimePaint . setColor ( strand . color ) ; canvas . drawLines ( strand . points...
305
java-test-2165
java
What does the code draw ?
a line showing busy times in each day of week
protected void draw DNA ( Canvas canvas ) { if ( m Dna != null ) { for ( Utils . DNA Strand strand : m Dna . values ( ) ) { if ( strand . color == CONFLICT COLOR || strand . points == null || strand . points . length == NUM ) { continue ; } mDNA Time Paint . set Color ( strand . color ) ; canvas . draw Lines ( strand ....
protected void drawDNA ( Canvas canvas ) { if ( mDna != null ) { for ( Utils . DNAStrand strand : mDna . values ( ) ) { if ( strand . color == CONFLICT_COLOR || strand . points == null || strand . points . length == _NUM ) { continue ; } mDNATimePaint . setColor ( strand . color ) ; canvas . drawLines ( strand . points...
305
java-test-2166
java
What does the code make ?
it active
public void add Action With Accellerator Key ( GP Action action ) { if ( action != null ) { for ( Key Stroke ks : GP Action . get All Key Strokes ( action . get ID ( ) ) ) { add Action ( action , ks ) ; } } }
public void addActionWithAccelleratorKey ( GPAction action ) { if ( action != null ) { for ( KeyStroke ks : GPAction . getAllKeyStrokes ( action . getID ( ) ) ) { addAction ( action , ks ) ; } } }
54
java-test-2169
java
What does the code compute ?
the estimated cardinality
public long cardinality ( ) throws IO Exception { switch ( format ) { case NORMAL : double E = NUM ; int V = NUM ; for ( int i = NUM ; i < this . m ; i ++ ) { byte rho = get Rho ( i ) ; E = E + NUM / ( NUM << ( int ) rho ) ; if ( NUM == ( int ) rho ) { V ++ ; } } E = NUM / E ; E = alpha [ this . p - NUM ] * this . m * ...
public long cardinality ( ) throws IOException { switch ( format ) { case NORMAL : double E = _NUM ; int V = _NUM ; for ( int i = _NUM ; i < this . m ; i ++ ) { byte rho = getRho ( i ) ; E = E + _NUM / ( _NUM << ( int ) rho ) ; if ( _NUM == ( int ) rho ) { V ++ ; } } E = _NUM / E ; E = alpha [ this . p - _NUM ] * this ...
254
java-test-2170
java
What is the logic here appends onto the end of the url if none is already present , or a bogus query parameter if there is already a query string ending in " . ?
a null query string
private static String maybe Fixup URL For Windows ( String url ) { if ( url == null || url . length ( ) < NUM || url . char At ( NUM ) == STRING || url . char At ( NUM ) == STRING ) return url ; String lower url = url . to Lower Case ( ) ; int i = bad Endings . length ; while ( i -- > NUM ) if ( lower url . ends With (...
private static String maybeFixupURLForWindows ( String url ) { if ( url == null || url . length ( ) < _NUM || url . charAt ( _NUM ) == STRING || url . charAt ( _NUM ) == STRING ) return url ; String lower_url = url . toLowerCase ( ) ; int i = badEndings . length ; while ( i -- > _NUM ) if ( lower_url . endsWith ( badEn...
105
java-test-2171
java
What does their suggested workaround be of course ?
to use the classes from the microsoft java sdk
private static String maybe Fixup URL For Windows ( String url ) { if ( url == null || url . length ( ) < NUM || url . char At ( NUM ) == STRING || url . char At ( NUM ) == STRING ) return url ; String lower url = url . to Lower Case ( ) ; int i = bad Endings . length ; while ( i -- > NUM ) if ( lower url . ends With (...
private static String maybeFixupURLForWindows ( String url ) { if ( url == null || url . length ( ) < _NUM || url . charAt ( _NUM ) == STRING || url . charAt ( _NUM ) == STRING ) return url ; String lower_url = url . toLowerCase ( ) ; int i = badEndings . length ; while ( i -- > _NUM ) if ( lower_url . endsWith ( badEn...
105
java-test-2172
java
What is to use the classes from the microsoft java sdk of course ?
their suggested workaround
private static String maybe Fixup URL For Windows ( String url ) { if ( url == null || url . length ( ) < NUM || url . char At ( NUM ) == STRING || url . char At ( NUM ) == STRING ) return url ; String lower url = url . to Lower Case ( ) ; int i = bad Endings . length ; while ( i -- > NUM ) if ( lower url . ends With (...
private static String maybeFixupURLForWindows ( String url ) { if ( url == null || url . length ( ) < _NUM || url . charAt ( _NUM ) == STRING || url . charAt ( _NUM ) == STRING ) return url ; String lower_url = url . toLowerCase ( ) ; int i = badEndings . length ; while ( i -- > _NUM ) if ( lower_url . endsWith ( badEn...
105
java-test-2173
java
For what purpose do you alter the url slightly ?
so it no longer ends with " . htm
private static String maybe Fixup URL For Windows ( String url ) { if ( url == null || url . length ( ) < NUM || url . char At ( NUM ) == STRING || url . char At ( NUM ) == STRING ) return url ; String lower url = url . to Lower Case ( ) ; int i = bad Endings . length ; while ( i -- > NUM ) if ( lower url . ends With (...
private static String maybeFixupURLForWindows ( String url ) { if ( url == null || url . length ( ) < _NUM || url . charAt ( _NUM ) == STRING || url . charAt ( _NUM ) == STRING ) return url ; String lower_url = url . toLowerCase ( ) ; int i = badEndings . length ; while ( i -- > _NUM ) if ( lower_url . endsWith ( badEn...
105
java-test-2178
java
What does the code serialize to a pretty - printed xml string ?
an object including the xstream
public String to XML ( final X Stream xstream , final Object obj ) throws Object Stream Exception { final Writer writer = new String Writer ( ) ; try { to XML ( xstream , obj , writer ) ; } catch ( final Object Stream Exception e ) { throw e ; } catch ( final IO Exception e ) { throw new Stream Exception ( STRING , e )...
public String toXML ( final XStream xstream , final Object obj ) throws ObjectStreamException { final Writer writer = new StringWriter ( ) ; try { toXML ( xstream , obj , writer ) ; } catch ( final ObjectStreamException e ) { throw e ; } catch ( final IOException e ) { throw new StreamException ( STRING , e ) ; } retur...
83
java-test-2179
java
What do we override if we see a substitution named " < dictionary > " , parse the substitution expression and store the result in dictionarychars to add logic to handle the < dictionary > tag ?
handlespecialsubstitution
protected void handle Special Substitution ( String replace , String replace With , int start Pos , String description ) { super . handle Special Substitution ( replace , replace With , start Pos , description ) ; if ( replace . equals ( STRING ) ) { if ( replace With . char At ( NUM ) == STRING ) { error ( STRING , st...
protected void handleSpecialSubstitution ( String replace , String replaceWith , int startPos , String description ) { super . handleSpecialSubstitution ( replace , replaceWith , startPos , description ) ; if ( replace . equals ( STRING ) ) { if ( replaceWith . charAt ( _NUM ) == STRING ) { error ( STRING , startPos , ...
94
java-test-2180
java
Where do we store the result ?
in dictionarychars
protected void handle Special Substitution ( String replace , String replace With , int start Pos , String description ) { super . handle Special Substitution ( replace , replace With , start Pos , description ) ; if ( replace . equals ( STRING ) ) { if ( replace With . char At ( NUM ) == STRING ) { error ( STRING , st...
protected void handleSpecialSubstitution ( String replace , String replaceWith , int startPos , String description ) { super . handleSpecialSubstitution ( replace , replaceWith , startPos , description ) ; if ( replace . equals ( STRING ) ) { if ( replaceWith . charAt ( _NUM ) == STRING ) { error ( STRING , startPos , ...
94
java-test-2181
java
What do we see ?
a substitution named " < dictionary > "
protected void handle Special Substitution ( String replace , String replace With , int start Pos , String description ) { super . handle Special Substitution ( replace , replace With , start Pos , description ) ; if ( replace . equals ( STRING ) ) { if ( replace With . char At ( NUM ) == STRING ) { error ( STRING , st...
protected void handleSpecialSubstitution ( String replace , String replaceWith , int startPos , String description ) { super . handleSpecialSubstitution ( replace , replaceWith , startPos , description ) ; if ( replace . equals ( STRING ) ) { if ( replaceWith . charAt ( _NUM ) == STRING ) { error ( STRING , startPos , ...
94
java-test-2182
java
What do we parse ?
the substitution expression
protected void handle Special Substitution ( String replace , String replace With , int start Pos , String description ) { super . handle Special Substitution ( replace , replace With , start Pos , description ) ; if ( replace . equals ( STRING ) ) { if ( replace With . char At ( NUM ) == STRING ) { error ( STRING , st...
protected void handleSpecialSubstitution ( String replace , String replaceWith , int startPos , String description ) { super . handleSpecialSubstitution ( replace , replaceWith , startPos , description ) ; if ( replace . equals ( STRING ) ) { if ( replaceWith . charAt ( _NUM ) == STRING ) { error ( STRING , startPos , ...
94
java-test-2183
java
For what purpose do we override handlespecialsubstitution if we see a substitution named " < dictionary > " , parse the substitution expression and store the result in dictionarychars ?
to add logic to handle the < dictionary > tag
protected void handle Special Substitution ( String replace , String replace With , int start Pos , String description ) { super . handle Special Substitution ( replace , replace With , start Pos , description ) ; if ( replace . equals ( STRING ) ) { if ( replace With . char At ( NUM ) == STRING ) { error ( STRING , st...
protected void handleSpecialSubstitution ( String replace , String replaceWith , int startPos , String description ) { super . handleSpecialSubstitution ( replace , replaceWith , startPos , description ) ; if ( replace . equals ( STRING ) ) { if ( replaceWith . charAt ( _NUM ) == STRING ) { error ( STRING , startPos , ...
94
java-test-2184
java
What does the code write ?
the given serializable to the bytebuffer
public static void put Object ( final Byte Buffer buffer , Serializable o ) { try ( Byte Array Output Stream bos = new Byte Array Output Stream ( ) ) { try ( Object Output oout = new Object Output Stream ( bos ) ) { oout . write Object ( o ) ; byte [ ] lane Bytes = bos . to Byte Array ( ) ; buffer . put Int ( lane Byte...
public static void putObject ( final ByteBuffer buffer , Serializable o ) { try ( ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ) { try ( ObjectOutput oout = new ObjectOutputStream ( bos ) ) { oout . writeObject ( o ) ; byte [ ] laneBytes = bos . toByteArray ( ) ; buffer . putInt ( laneBytes . length ) ; fo...
129
java-test-2185
java
What does the code write then ?
the single bytes of the serialized object
public static void put Object ( final Byte Buffer buffer , Serializable o ) { try ( Byte Array Output Stream bos = new Byte Array Output Stream ( ) ) { try ( Object Output oout = new Object Output Stream ( bos ) ) { oout . write Object ( o ) ; byte [ ] lane Bytes = bos . to Byte Array ( ) ; buffer . put Int ( lane Byte...
public static void putObject ( final ByteBuffer buffer , Serializable o ) { try ( ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ) { try ( ObjectOutput oout = new ObjectOutputStream ( bos ) ) { oout . writeObject ( o ) ; byte [ ] laneBytes = bos . toByteArray ( ) ; buffer . putInt ( laneBytes . length ) ; fo...
129
java-test-2186
java
What does the code write first ?
the length of the serializable as int
public static void put Object ( final Byte Buffer buffer , Serializable o ) { try ( Byte Array Output Stream bos = new Byte Array Output Stream ( ) ) { try ( Object Output oout = new Object Output Stream ( bos ) ) { oout . write Object ( o ) ; byte [ ] lane Bytes = bos . to Byte Array ( ) ; buffer . put Int ( lane Byte...
public static void putObject ( final ByteBuffer buffer , Serializable o ) { try ( ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ) { try ( ObjectOutput oout = new ObjectOutputStream ( bos ) ) { oout . writeObject ( o ) ; byte [ ] laneBytes = bos . toByteArray ( ) ; buffer . putInt ( laneBytes . length ) ; fo...
129
java-test-2191
java
Where do the given objects add ?
before the ioobjects of this container
public IO Container prepend ( IO Object [ ] output ) { List < IO Object > new Objects = new Linked List < > ( ) ; new Objects . add All ( io Objects ) ; for ( int i = NUM ; i < output . length ; i ++ ) { new Objects . add ( output [ i ] ) ; } return new IO Container ( new Objects ) ; }
public IOContainer prepend ( IOObject [ ] output ) { List < IOObject > newObjects = new LinkedList < > ( ) ; newObjects . addAll ( ioObjects ) ; for ( int i = _NUM ; i < output . length ; i ++ ) { newObjects . add ( output [ i ] ) ; } return new IOContainer ( newObjects ) ; }
77
java-test-2192
java
How does the code create a new iocontainer ?
by adding the given objects before the ioobjects of this container
public IO Container prepend ( IO Object [ ] output ) { List < IO Object > new Objects = new Linked List < > ( ) ; new Objects . add All ( io Objects ) ; for ( int i = NUM ; i < output . length ; i ++ ) { new Objects . add ( output [ i ] ) ; } return new IO Container ( new Objects ) ; }
public IOContainer prepend ( IOObject [ ] output ) { List < IOObject > newObjects = new LinkedList < > ( ) ; newObjects . addAll ( ioObjects ) ; for ( int i = _NUM ; i < output . length ; i ++ ) { newObjects . add ( output [ i ] ) ; } return new IOContainer ( newObjects ) ; }
77
java-test-2193
java
What does advancepastnextsyncmarker create ?
a haystack of size bytes
private void test Advance Past Next Sync Marker At ( int position , int size ) throws IO Exception { byte sentinel = ( byte ) NUM ; byte [ ] marker = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM } ; byte [ ] haystack = create Haystack ( marker , position ,...
private void testAdvancePastNextSyncMarkerAt ( int position , int size ) throws IOException { byte sentinel = ( byte ) _NUM ; byte [ ] marker = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM } ; byte [ ] haystack = createHaystack ( marker , p...
209
java-test-2194
java
What does advancepastnextsyncmarker place at the position specified ?
a 16 - byte sync marker
private void test Advance Past Next Sync Marker At ( int position , int size ) throws IO Exception { byte sentinel = ( byte ) NUM ; byte [ ] marker = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM } ; byte [ ] haystack = create Haystack ( marker , position ,...
private void testAdvancePastNextSyncMarkerAt ( int position , int size ) throws IOException { byte sentinel = ( byte ) _NUM ; byte [ ] marker = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM } ; byte [ ] haystack = createHaystack ( marker , p...
209
java-test-2195
java
What is this used ?
to merge transactions from compacting
public void merge ( final Journal Transaction other ) { if ( other . pos != null ) { if ( pos == null ) { pos = new Array List < > ( ) ; } pos . add All ( other . pos ) ; } if ( other . neg != null ) { if ( neg == null ) { neg = new Array List < > ( ) ; } neg . add All ( other . neg ) ; } if ( other . pending Files != ...
public void merge ( final JournalTransaction other ) { if ( other . pos != null ) { if ( pos == null ) { pos = new ArrayList < > ( ) ; } pos . addAll ( other . pos ) ; } if ( other . neg != null ) { if ( neg == null ) { neg = new ArrayList < > ( ) ; } neg . addAll ( other . neg ) ; } if ( other . pendingFiles != null )...
134
java-test-2197
java
What does the code write ?
the & quot ; zip64 end of central dir record & quot
protected void write Zip 64 Central Directory ( ) throws IO Exception { if ( zip 64 Mode == Zip 64 Mode . Never ) { return ; } if ( ! has Used Zip 64 && ( cd Offset >= ZIP 64 MAGIC || cd Length >= ZIP 64 MAGIC || entries . size ( ) >= ZIP 64 MAGIC SHORT ) ) { has Used Zip 64 = BOOL ; } if ( ! has Used Zip 64 ) { return...
protected void writeZip64CentralDirectory ( ) throws IOException { if ( zip64Mode == Zip64Mode . Never ) { return ; } if ( ! hasUsedZip64 && ( cdOffset >= ZIP64_MAGIC || cdLength >= ZIP64_MAGIC || entries . size ( ) >= ZIP64_MAGIC_SHORT ) ) { hasUsedZip64 = _BOOL ; } if ( ! hasUsedZip64 ) { return ; } long offset = wri...
274
java-test-2198
java
What does the code add ?
a trace for a statistic of the given name
private void add Trace And Type ( String name ) { if ( traces Type . get ( name ) == null ) { traces . add ( create Trace ( name , Trace Type . REAL ) ) ; traces Type . put ( name , Trace Type . REAL ) ; } else { traces . add ( create Trace ( name , traces Type . get ( name ) ) ) ; } }
private void addTraceAndType ( String name ) { if ( tracesType . get ( name ) == null ) { traces . add ( createTrace ( name , TraceType . REAL ) ) ; tracesType . put ( name , TraceType . REAL ) ; } else { traces . add ( createTrace ( name , tracesType . get ( name ) ) ) ; } }
77
java-test-2200
java
What does the code create ?
a square bitmap from another one
private static Bitmap create Square Bitmap ( Bitmap bitmap ) { Bitmap resized Bitmap = null ; if ( null != bitmap ) { int width = bitmap . get Width ( ) ; int height = bitmap . get Height ( ) ; if ( width == height ) { resized Bitmap = bitmap ; } else if ( width > height ) { resized Bitmap = Bitmap . create Bitmap ( bi...
private static Bitmap createSquareBitmap ( Bitmap bitmap ) { Bitmap resizedBitmap = null ; if ( null != bitmap ) { int width = bitmap . getWidth ( ) ; int height = bitmap . getHeight ( ) ; if ( width == height ) { resizedBitmap = bitmap ; } else if ( width > height ) { resizedBitmap = Bitmap . createBitmap ( bitmap , (...
125
java-test-2202
java
What does a camelcase word convert ?
into an underlined_word
public static String camel Case To Underlines ( String string ) { if ( string . is Empty ( ) ) { return string ; } String Builder sb = new String Builder ( NUM * string . length ( ) ) ; int n = string . length ( ) ; boolean last Was Upper Case = Character . is Upper Case ( string . char At ( NUM ) ) ; for ( int i = NUM...
public static String camelCaseToUnderlines ( String string ) { if ( string . isEmpty ( ) ) { return string ; } StringBuilder sb = new StringBuilder ( _NUM * string . length ( ) ) ; int n = string . length ( ) ; boolean lastWasUpperCase = Character . isUpperCase ( string . charAt ( _NUM ) ) ; for ( int i = _NUM ; i < n ...
171
java-test-2203
java
What converts into an underlined_word ?
a camelcase word
public static String camel Case To Underlines ( String string ) { if ( string . is Empty ( ) ) { return string ; } String Builder sb = new String Builder ( NUM * string . length ( ) ) ; int n = string . length ( ) ; boolean last Was Upper Case = Character . is Upper Case ( string . char At ( NUM ) ) ; for ( int i = NUM...
public static String camelCaseToUnderlines ( String string ) { if ( string . isEmpty ( ) ) { return string ; } StringBuilder sb = new StringBuilder ( _NUM * string . length ( ) ) ; int n = string . length ( ) ; boolean lastWasUpperCase = Character . isUpperCase ( string . charAt ( _NUM ) ) ; for ( int i = _NUM ; i < n ...
171
java-test-2204
java
What given in array ?
the dimensionality
public static Object mimic Array ( Object array , Class < ? > new Type ) { int dims = NUM ; Class < ? > array Class = array . get Class ( ) ; while ( array Class != null && array Class . is Array ( ) ) { array Class = array Class . get Component Type ( ) ; dims += NUM ; } Object mimic ; if ( dims > NUM ) { Object [ ] x...
public static Object mimicArray ( Object array , Class < ? > newType ) { int dims = _NUM ; Class < ? > arrayClass = array . getClass ( ) ; while ( arrayClass != null && arrayClass . isArray ( ) ) { arrayClass = arrayClass . getComponentType ( ) ; dims += _NUM ; } Object mimic ; if ( dims > _NUM ) { Object [ ] xarray = ...
201
java-test-2205
java
What does the code create ?
an array of a type given by new type with the dimensionality given in array
public static Object mimic Array ( Object array , Class < ? > new Type ) { int dims = NUM ; Class < ? > array Class = array . get Class ( ) ; while ( array Class != null && array Class . is Array ( ) ) { array Class = array Class . get Component Type ( ) ; dims += NUM ; } Object mimic ; if ( dims > NUM ) { Object [ ] x...
public static Object mimicArray ( Object array , Class < ? > newType ) { int dims = _NUM ; Class < ? > arrayClass = array . getClass ( ) ; while ( arrayClass != null && arrayClass . isArray ( ) ) { arrayClass = arrayClass . getComponentType ( ) ; dims += _NUM ; } Object mimic ; if ( dims > _NUM ) { Object [ ] xarray = ...
201
java-test-2206
java
How did by new type give ?
with the dimensionality given in array
public static Object mimic Array ( Object array , Class < ? > new Type ) { int dims = NUM ; Class < ? > array Class = array . get Class ( ) ; while ( array Class != null && array Class . is Array ( ) ) { array Class = array Class . get Component Type ( ) ; dims += NUM ; } Object mimic ; if ( dims > NUM ) { Object [ ] x...
public static Object mimicArray ( Object array , Class < ? > newType ) { int dims = _NUM ; Class < ? > arrayClass = array . getClass ( ) ; while ( arrayClass != null && arrayClass . isArray ( ) ) { arrayClass = arrayClass . getComponentType ( ) ; dims += _NUM ; } Object mimic ; if ( dims > _NUM ) { Object [ ] xarray = ...
201
java-test-2207
java
What does the code get from each measure ?
all functions
public List < Function Desc > list All Functions ( ) { List < Function Desc > functions = new Array List < Function Desc > ( ) ; for ( Measure Desc m : measures ) { functions . add ( m . get Function ( ) ) ; } return functions ; }
public List < FunctionDesc > listAllFunctions ( ) { List < FunctionDesc > functions = new ArrayList < FunctionDesc > ( ) ; for ( MeasureDesc m : measures ) { functions . add ( m . getFunction ( ) ) ; } return functions ; }
55
java-test-2210
java
How does names parse ?
proceeding styles block
protected void parse Names ( ) { while ( reader . has Next Character ( ) ) { final char character = next ( ) ; if ( Strings . is Whitespace ( character ) ) { add Name ( ) ; continue ; } else if ( character == block Opening ) { add Name ( ) ; break ; } else { builder . append ( character ) ; } } if ( Gdx Arrays . is Emp...
protected void parseNames ( ) { while ( reader . hasNextCharacter ( ) ) { final char character = next ( ) ; if ( Strings . isWhitespace ( character ) ) { addName ( ) ; continue ; } else if ( character == blockOpening ) { addName ( ) ; break ; } else { builder . append ( character ) ; } } if ( GdxArrays . isEmpty ( tags...
93
java-test-2213
java
How become this function become much simpler ?
with removal of home servers , or possibly no longer be required
private void verify Target Session Is Local Or Stateless ( Session Request req , Session ID sid ) throws Session Exception , Session Request Exception , Forward Session Request Exception { if ( stateless Session Manager . contains Jwt ( sid ) ) { return ; } String host Server ID = foreign Session Handler . get Current ...
private void verifyTargetSessionIsLocalOrStateless ( SessionRequest req , SessionID sid ) throws SessionException , SessionRequestException , ForwardSessionRequestException { if ( statelessSessionManager . containsJwt ( sid ) ) { return ; } String hostServerID = foreignSessionHandler . getCurrentHostServer ( sid ) ; if...
263
java-test-2214
java
How do the string pad to ensure the string is at least the specified length ?
with the specific character
public static String pad ( String original , int length , char pad Char ) { if ( original . length ( ) >= length ) return original ; String Builder sb = new String Builder ( original ) ; while ( sb . length ( ) < length ) { sb . append ( pad Char ) ; } return sb . to String ( ) ; }
public static String pad ( String original , int length , char padChar ) { if ( original . length ( ) >= length ) return original ; StringBuilder sb = new StringBuilder ( original ) ; while ( sb . length ( ) < length ) { sb . append ( padChar ) ; } return sb . toString ( ) ; }
69
java-test-2215
java
For what purpose do the string pad with the specific character ?
to ensure the string is at least the specified length
public static String pad ( String original , int length , char pad Char ) { if ( original . length ( ) >= length ) return original ; String Builder sb = new String Builder ( original ) ; while ( sb . length ( ) < length ) { sb . append ( pad Char ) ; } return sb . to String ( ) ; }
public static String pad ( String original , int length , char padChar ) { if ( original . length ( ) >= length ) return original ; StringBuilder sb = new StringBuilder ( original ) ; while ( sb . length ( ) < length ) { sb . append ( padChar ) ; } return sb . toString ( ) ; }
69
java-test-2216
java
What does the code initialize ?
a grain v1 cipher
public void init ( boolean for Encryption , Cipher Parameters params ) throws Illegal Argument Exception { if ( ! ( params instanceof Parameters With IV ) ) { throw new Illegal Argument Exception ( STRING ) ; } Parameters With IV iv Params = ( Parameters With IV ) params ; byte [ ] iv = iv Params . get IV ( ) ; if ( iv...
public void init ( boolean forEncryption , CipherParameters params ) throws IllegalArgumentException { if ( ! ( params instanceof ParametersWithIV ) ) { throw new IllegalArgumentException ( STRING ) ; } ParametersWithIV ivParams = ( ParametersWithIV ) params ; byte [ ] iv = ivParams . getIV ( ) ; if ( iv == null || iv ...
240
java-test-2218
java
When will the premain method be executed ?
before anything else
public static void premain ( String agent Args , Instrumentation inst ) { instrumentation = inst ; LOGGER . info ( STRING ) ; check For Correct Setup ( ) ; try { @ Suppress Warnings ( STRING ) Inspect It Class Loader class Loader = new Inspect It Class Loader ( new URL [ NUM ] ) ; Class < ? > agent Clazz = class Loader...
public static void premain ( String agentArgs , Instrumentation inst ) { instrumentation = inst ; LOGGER . info ( STRING ) ; checkForCorrectSetup ( ) ; try { @ SuppressWarnings ( STRING ) InspectItClassLoader classLoader = new InspectItClassLoader ( new URL [ _NUM ] ) ; Class < ? > agentClazz = classLoader . loadClass ...
179
java-test-2219
java
What did the code read ?
the contents of the given file
public static String read File To String ( File f ) throws IO Exception { String Writer sw = new String Writer ( ) ; IO . copy And Close Both ( Common . as Reader UTF 8 Lenient ( new File Input Stream ( f ) ) , sw ) ; return sw . to String ( ) ; }
public static String readFileToString ( File f ) throws IOException { StringWriter sw = new StringWriter ( ) ; IO . copyAndCloseBoth ( Common . asReaderUTF8Lenient ( new FileInputStream ( f ) ) , sw ) ; return sw . toString ( ) ; }
61
java-test-2220
java
What does the code get ?
the size of hinting instructions in the glyph table , both in bytes and as a fraction of the glyph table size
public static String hinting Size ( Font font ) { int instr Size = NUM ; Loca Table loca Table = Font Utils . get Loca Table ( font ) ; Glyph Table glyf Table = Font Utils . get Glyph Table ( font ) ; for ( int i = NUM ; i < loca Table . num Glyphs ( ) ; i ++ ) { Glyph glyph = glyf Table . glyph ( loca Table . glyph Of...
public static String hintingSize ( Font font ) { int instrSize = _NUM ; LocaTable locaTable = FontUtils . getLocaTable ( font ) ; GlyphTable glyfTable = FontUtils . getGlyphTable ( font ) ; for ( int i = _NUM ; i < locaTable . numGlyphs ( ) ; i ++ ) { Glyph glyph = glyfTable . glyph ( locaTable . glyphOffset ( i ) , lo...
142
java-test-2223
java
What does the code drain up to an amortized threshold ?
the read buffer
@ Guarded By ( STRING ) void drain Write Buffer ( ) { for ( int i = NUM ; i < WRITE BUFFER DRAIN THRESHOLD ; i ++ ) { final Runnable task = write Buffer . poll ( ) ; if ( task == null ) { break ; } task . run ( ) ; } }
@ GuardedBy ( STRING ) void drainWriteBuffer ( ) { for ( int i = _NUM ; i < WRITE_BUFFER_DRAIN_THRESHOLD ; i ++ ) { final Runnable task = writeBuffer . poll ( ) ; if ( task == null ) { break ; } task . run ( ) ; } }
60
java-test-2224
java
What does the code create ?
a new instance of jhyperlink
public J Hyperlink ( ) { super ( ) ; normal Foreground = UI Manager . get Color ( STRING ) ; active Foreground = UI Manager . get Color ( STRING ) ; visited Foreground = UI Manager . get Color ( STRING ) ; set Border Painted ( BOOL ) ; set Content Area Filled ( BOOL ) ; set Foreground ( normal Foreground ) ; set Cursor...
public JHyperlink ( ) { super ( ) ; normalForeground = UIManager . getColor ( STRING ) ; activeForeground = UIManager . getColor ( STRING ) ; visitedForeground = UIManager . getColor ( STRING ) ; setBorderPainted ( _BOOL ) ; setContentAreaFilled ( _BOOL ) ; setForeground ( normalForeground ) ; setCursor ( Cursor . getP...
109
java-test-2225
java
What does the code install into the selectors tab ?
a new node selector part
private void install Node Selector Tab ( String label , Node Selector Part selector Part ) { Composite selection Control = selector Part . create Control ( selector Tab , SWT . NONE , get Editor ( ) ) ; selection Control . set Layout Data ( new Grid Data ( SWT . FILL , SWT . FILL , BOOL , BOOL ) ) ; selector Tab Parts ...
private void installNodeSelectorTab ( String label , NodeSelectorPart selectorPart ) { Composite selectionControl = selectorPart . createControl ( selectorTab , SWT . NONE , getEditor ( ) ) ; selectionControl . setLayoutData ( new GridData ( SWT . FILL , SWT . FILL , _BOOL , _BOOL ) ) ; selectorTabParts . add ( selecto...
112
java-test-2226
java
For what purpose must exception throw ?
in order for the async process to forward it to the callback ' s onerror method
public Http Response try Many ( Http Request http Request ) throws Http Request Exception { int num Tries = NUM ; long start Time = System . current Time Millis ( ) ; Http Response res = null ; while ( num Tries < max Retries ) { try { set Connection Timeout ( get Next Timeout ( num Tries ) ) ; if ( request Logger . is...
public HttpResponse tryMany ( HttpRequest httpRequest ) throws HttpRequestException { int numTries = _NUM ; long startTime = System . currentTimeMillis ( ) ; HttpResponse res = null ; while ( numTries < maxRetries ) { try { setConnectionTimeout ( getNextTimeout ( numTries ) ) ; if ( requestLogger . isLoggingEnabled ( )...
272
java-test-2228
java
What does the code create ?
a business object format create request
public Business Object Format Create Request create Business Object Format Create Request ( String namespace Code , String business Object Definition Name , String business Object Format Usage , String business Object Format File Type , String partition Key , String description , List < Attribute > attributes , List < ...
public BusinessObjectFormatCreateRequest createBusinessObjectFormatCreateRequest ( String namespaceCode , String businessObjectDefinitionName , String businessObjectFormatUsage , String businessObjectFormatFileType , String partitionKey , String description , List < Attribute > attributes , List < AttributeDefinition >...
222
java-test-2229
java
For what purpose do the following multibuffering - related methods delegate to our associated graphicsconfig ( win or wgl ) ?
to handle the appropriate native windowing system specific actions
@ Override public void create Buffers ( int num Buffers , Buffer Capabilities caps ) throws AWT Exception { Win 32 Graphics Config gc = ( Win 32 Graphics Config ) get Graphics Configuration ( ) ; gc . assert Operation Supported ( ( Component ) target , num Buffers , caps ) ; try { replace Surface Data ( num Buffers - N...
@ Override public void createBuffers ( int numBuffers , BufferCapabilities caps ) throws AWTException { Win32GraphicsConfig gc = ( Win32GraphicsConfig ) getGraphicsConfiguration ( ) ; gc . assertOperationSupported ( ( Component ) target , numBuffers , caps ) ; try { replaceSurfaceData ( numBuffers - _NUM , caps ) ; } c...
92
java-test-2230
java
What does the code calculate ?
the size ( width or height , depending on the location of the axis ) of a category
protected double calculate Category Size ( int category Count , Rectangle 2 D area , Rectangle Edge edge ) { double result ; double available = NUM ; if ( ( edge == Rectangle Edge . TOP ) || ( edge == Rectangle Edge . BOTTOM ) ) { available = area . get Width ( ) ; } else if ( ( edge == Rectangle Edge . LEFT ) || ( edg...
protected double calculateCategorySize ( int categoryCount , Rectangle2D area , RectangleEdge edge ) { double result ; double available = _NUM ; if ( ( edge == RectangleEdge . TOP ) || ( edge == RectangleEdge . BOTTOM ) ) { available = area . getWidth ( ) ; } else if ( ( edge == RectangleEdge . LEFT ) || ( edge == Rect...
160
java-test-2231
java
What does the code draw ?
the internalframeborder ' s left border
protected boolean draw Left Border ( Component c , Graphics g , int x , int y , int width , int height ) { if ( super . draw Left Border ( c , g , x , y , width , height ) && frame . is Resizable ( ) ) { g . set Color ( get Frame Highlight ( ) ) ; int top Y = y + CORNER SIZE ; g . draw Line ( x , top Y , x + NUM , top ...
protected boolean drawLeftBorder ( Component c , Graphics g , int x , int y , int width , int height ) { if ( super . drawLeftBorder ( c , g , x , y , width , height ) && frame . isResizable ( ) ) { g . setColor ( getFrameHighlight ( ) ) ; int topY = y + CORNER_SIZE ; g . drawLine ( x , topY , x + _NUM , topY ) ; int b...
190
java-test-2240
java
What does the code add ?
local key future
private boolean add Local Key ( Key Cache Object key , Affinity Topology Version top Ver , Collection < Key Cache Object > distributed Keys ) throws Ignite Checked Exception { Grid Distributed Cache Entry entry = cctx . colocated ( ) . entry Exx ( key , top Ver , BOOL ) ; assert ! entry . detached ( ) ; if ( ! cctx . i...
private boolean addLocalKey ( KeyCacheObject key , AffinityTopologyVersion topVer , Collection < KeyCacheObject > distributedKeys ) throws IgniteCheckedException { GridDistributedCacheEntry entry = cctx . colocated ( ) . entryExx ( key , topVer , _BOOL ) ; assert ! entry . detached ( ) ; if ( ! cctx . isAll ( entry , f...
151
java-test-2249
java
What does the code resolve ?
the most specific
private static Method find Overloaded Method ( Class base Class , String method Name , Class [ ] types , boolean public Only ) { if ( Interpreter . DEBUG ) Interpreter . debug ( STRING + String Util . method String ( method Name , types ) + STRING + base Class . get Name ( ) + STRING ) ; Method [ ] methods = get Candid...
private static Method findOverloadedMethod ( Class baseClass , String methodName , Class [ ] types , boolean publicOnly ) { if ( Interpreter . DEBUG ) Interpreter . debug ( STRING + StringUtil . methodString ( methodName , types ) + STRING + baseClass . getName ( ) + STRING ) ; Method [ ] methods = getCandidateMethods ...
118
java-test-2250
java
What does the code search ?
the class and interface graph of baseclass
private static Method find Overloaded Method ( Class base Class , String method Name , Class [ ] types , boolean public Only ) { if ( Interpreter . DEBUG ) Interpreter . debug ( STRING + String Util . method String ( method Name , types ) + STRING + base Class . get Name ( ) + STRING ) ; Method [ ] methods = get Candid...
private static Method findOverloadedMethod ( Class baseClass , String methodName , Class [ ] types , boolean publicOnly ) { if ( Interpreter . DEBUG ) Interpreter . debug ( STRING + StringUtil . methodString ( methodName , types ) + STRING + baseClass . getName ( ) + STRING ) ; Method [ ] methods = getCandidateMethods ...
118
java-test-2251
java
How does the code get the candidate methods ?
by searching the class and interface graph of baseclass and resolve the most specific
private static Method find Overloaded Method ( Class base Class , String method Name , Class [ ] types , boolean public Only ) { if ( Interpreter . DEBUG ) Interpreter . debug ( STRING + String Util . method String ( method Name , types ) + STRING + base Class . get Name ( ) + STRING ) ; Method [ ] methods = get Candid...
private static Method findOverloadedMethod ( Class baseClass , String methodName , Class [ ] types , boolean publicOnly ) { if ( Interpreter . DEBUG ) Interpreter . debug ( STRING + StringUtil . methodString ( methodName , types ) + STRING + baseClass . getName ( ) + STRING ) ; Method [ ] methods = getCandidateMethods ...
118
java-test-2252
java
What does the code get by searching the class and interface graph of baseclass and resolve the most specific ?
the candidate methods
private static Method find Overloaded Method ( Class base Class , String method Name , Class [ ] types , boolean public Only ) { if ( Interpreter . DEBUG ) Interpreter . debug ( STRING + String Util . method String ( method Name , types ) + STRING + base Class . get Name ( ) + STRING ) ; Method [ ] methods = get Candid...
private static Method findOverloadedMethod ( Class baseClass , String methodName , Class [ ] types , boolean publicOnly ) { if ( Interpreter . DEBUG ) Interpreter . debug ( STRING + StringUtil . methodString ( methodName , types ) + STRING + baseClass . getName ( ) + STRING ) ; Method [ ] methods = getCandidateMethods ...
118
java-test-2253
java
How can short options ( beginning with ' - ' ) be written ?
in a collapsed form
public void test Short Options ( ) { Argument Parser parser = new Argument Parser ( new String [ ] { STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING } , BOOL ) ; Iterator < String > iter = parser . iterator ( ) ; assert Equals ( STRING...
public void testShortOptions ( ) { ArgumentParser parser = new ArgumentParser ( new String [ ] { STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING } , _BOOL ) ; Iterator < String > iter = parser . iterator ( ) ; assertEquals ( STRING , i...
400
java-test-2261
java
What does the code copy ?
the current contents of this buffer to output byte array
public void write To ( byte [ ] bytes , int offset ) throws IO Exception { flush ( ) ; final long end = file . length ; long pos = NUM ; int buffer = NUM ; int bytes Upto = offset ; while ( pos < end ) { int length = BUFFER SIZE ; long next Pos = pos + length ; if ( next Pos > end ) { length = ( int ) ( end - pos ) ; }...
public void writeTo ( byte [ ] bytes , int offset ) throws IOException { flush ( ) ; final long end = file . length ; long pos = _NUM ; int buffer = _NUM ; int bytesUpto = offset ; while ( pos < end ) { int length = BUFFER_SIZE ; long nextPos = pos + length ; if ( nextPos > end ) { length = ( int ) ( end - pos ) ; } Sy...
121
java-test-2262
java
What does an instruction with the given mnemonic use ?
its second operand
public static boolean uses Second Operand ( final Integer mnemonic ) { return ! mnemonic . equals ( Reil Helpers . OPCODE NOP ) && ! mnemonic . equals ( Reil Helpers . OPCODE BISZ ) && ! mnemonic . equals ( Reil Helpers . OPCODE STR ) && ! mnemonic . equals ( Reil Helpers . OPCODE STM ) && ! mnemonic . equals ( Reil He...
public static boolean usesSecondOperand ( final Integer mnemonic ) { return ! mnemonic . equals ( ReilHelpers . _OPCODE_NOP ) && ! mnemonic . equals ( ReilHelpers . _OPCODE_BISZ ) && ! mnemonic . equals ( ReilHelpers . _OPCODE_STR ) && ! mnemonic . equals ( ReilHelpers . _OPCODE_STM ) && ! mnemonic . equals ( ReilHelpe...
86
java-test-2263
java
What do a renderloops object contain for rendering to the destination surface ?
all of the basic graphicsprimitive objects
public static Render Loops make Render Loops ( Surface Type src , Composite Type comp , Surface Type dst ) { Render Loops loops = new Render Loops ( ) ; loops . draw Line Loop = Draw Line . locate ( src , comp , dst ) ; loops . fill Rect Loop = Fill Rect . locate ( src , comp , dst ) ; loops . draw Rect Loop = Draw Rec...
public static RenderLoops makeRenderLoops ( SurfaceType src , CompositeType comp , SurfaceType dst ) { RenderLoops loops = new RenderLoops ( ) ; loops . drawLineLoop = DrawLine . locate ( src , comp , dst ) ; loops . fillRectLoop = FillRect . locate ( src , comp , dst ) ; loops . drawRectLoop = DrawRect . locate ( src ...
261
java-test-2264
java
What is containing all of the basic graphicsprimitive objects for rendering to the destination surface ?
a renderloops object
public static Render Loops make Render Loops ( Surface Type src , Composite Type comp , Surface Type dst ) { Render Loops loops = new Render Loops ( ) ; loops . draw Line Loop = Draw Line . locate ( src , comp , dst ) ; loops . fill Rect Loop = Fill Rect . locate ( src , comp , dst ) ; loops . draw Rect Loop = Draw Rec...
public static RenderLoops makeRenderLoops ( SurfaceType src , CompositeType comp , SurfaceType dst ) { RenderLoops loops = new RenderLoops ( ) ; loops . drawLineLoop = DrawLine . locate ( src , comp , dst ) ; loops . fillRectLoop = FillRect . locate ( src , comp , dst ) ; loops . drawRectLoop = DrawRect . locate ( src ...
261
java-test-2265
java
For what purpose do a renderloops object contain all of the basic graphicsprimitive objects ?
for rendering to the destination surface
public static Render Loops make Render Loops ( Surface Type src , Composite Type comp , Surface Type dst ) { Render Loops loops = new Render Loops ( ) ; loops . draw Line Loop = Draw Line . locate ( src , comp , dst ) ; loops . fill Rect Loop = Fill Rect . locate ( src , comp , dst ) ; loops . draw Rect Loop = Draw Rec...
public static RenderLoops makeRenderLoops ( SurfaceType src , CompositeType comp , SurfaceType dst ) { RenderLoops loops = new RenderLoops ( ) ; loops . drawLineLoop = DrawLine . locate ( src , comp , dst ) ; loops . fillRectLoop = FillRect . locate ( src , comp , dst ) ; loops . drawRectLoop = DrawRect . locate ( src ...
261
java-test-2267
java
When are exceptions written to the log stream if set ) ?
while closing
public synchronized void dispose ( ) { if ( is Disposed ) { return ; } is Disposed = BOOL ; Array List < Pooled Connection > list = recycled Connections ; for ( int i = NUM , size = list . size ( ) ; i < size ; i ++ ) { close Connection ( list . get ( i ) ) ; } }
public synchronized void dispose ( ) { if ( isDisposed ) { return ; } isDisposed = _BOOL ; ArrayList < PooledConnection > list = recycledConnections ; for ( int i = _NUM , size = list . size ( ) ; i < size ; i ++ ) { closeConnection ( list . get ( i ) ) ; } }
68
java-test-2268
java
When does all unused pooled connections . exceptions close ?
while closing are written to the log stream ( if set )
public synchronized void dispose ( ) { if ( is Disposed ) { return ; } is Disposed = BOOL ; Array List < Pooled Connection > list = recycled Connections ; for ( int i = NUM , size = list . size ( ) ; i < size ; i ++ ) { close Connection ( list . get ( i ) ) ; } }
public synchronized void dispose ( ) { if ( isDisposed ) { return ; } isDisposed = _BOOL ; ArrayList < PooledConnection > list = recycledConnections ; for ( int i = _NUM , size = list . size ( ) ; i < size ; i ++ ) { closeConnection ( list . get ( i ) ) ; } }
68
java-test-2269
java
What does the code count ?
how many marks existed in string
public static int count ( String string , String mark ) { if ( ! Text Utils . is Empty ( string ) && ! Text Utils . is Empty ( mark ) ) { int count = NUM ; int index = string . index Of ( mark ) ; while ( index != - NUM ) { count ++ ; string = string . substring ( index + mark . length ( ) ) ; index = string . index Of...
public static int count ( String string , String mark ) { if ( ! TextUtils . isEmpty ( string ) && ! TextUtils . isEmpty ( mark ) ) { int count = _NUM ; int index = string . indexOf ( mark ) ; while ( index != - _NUM ) { count ++ ; string = string . substring ( index + mark . length ( ) ) ; index = string . indexOf ( m...
96
java-test-2270
java
What existed in string ?
how many marks
public static int count ( String string , String mark ) { if ( ! Text Utils . is Empty ( string ) && ! Text Utils . is Empty ( mark ) ) { int count = NUM ; int index = string . index Of ( mark ) ; while ( index != - NUM ) { count ++ ; string = string . substring ( index + mark . length ( ) ) ; index = string . index Of...
public static int count ( String string , String mark ) { if ( ! TextUtils . isEmpty ( string ) && ! TextUtils . isEmpty ( mark ) ) { int count = _NUM ; int index = string . indexOf ( mark ) ; while ( index != - _NUM ) { count ++ ; string = string . substring ( index + mark . length ( ) ) ; index = string . indexOf ( m...
96
java-test-2271
java
How did the array produce ?
by splitting the given string on the given separator
public static String split Safe ( String string , String separator , int index ) { if ( string == null ) { return null ; } String [ ] split = string . split ( separator ) ; if ( index >= NUM && split . length > index && split [ index ] != null ) { return String . value Of ( split [ index ] ) ; } return null ; }
public static String splitSafe ( String string , String separator , int index ) { if ( string == null ) { return null ; } String [ ] split = string . split ( separator ) ; if ( index >= _NUM && split . length > index && split [ index ] != null ) { return String . valueOf ( split [ index ] ) ; } return null ; }
76
java-test-2272
java
What does the code get ?
the string at the given index of the array produced by splitting the given string on the given separator
public static String split Safe ( String string , String separator , int index ) { if ( string == null ) { return null ; } String [ ] split = string . split ( separator ) ; if ( index >= NUM && split . length > index && split [ index ] != null ) { return String . value Of ( split [ index ] ) ; } return null ; }
public static String splitSafe ( String string , String separator , int index ) { if ( string == null ) { return null ; } String [ ] split = string . split ( separator ) ; if ( index >= _NUM && split . length > index && split [ index ] != null ) { return String . valueOf ( split [ index ] ) ; } return null ; }
76
java-test-2274
java
What does the code evaluate at two given points ?
the kernel
public double eval ( double i , double j ) { double eval Kernel = Math . exp ( - NUM * ( Math . pow ( ( i - j ) , NUM ) / Math . pow ( sigma , NUM ) ) ) ; return eval Kernel ; }
public double eval ( double i , double j ) { double evalKernel = Math . exp ( - _NUM * ( Math . pow ( ( i - j ) , _NUM ) / Math . pow ( sigma , _NUM ) ) ) ; return evalKernel ; }
52
java-test-2275
java
By how much does the code evaluate the kernel ?
at two given points
public double eval ( double i , double j ) { double eval Kernel = Math . exp ( - NUM * ( Math . pow ( ( i - j ) , NUM ) / Math . pow ( sigma , NUM ) ) ) ; return eval Kernel ; }
public double eval ( double i , double j ) { double evalKernel = Math . exp ( - _NUM * ( Math . pow ( ( i - j ) , _NUM ) / Math . pow ( sigma , _NUM ) ) ) ; return evalKernel ; }
52
java-test-2276
java
What does the code create ?
the managed protection set associated with the ingested rp volumes
private Protection Set create Protection Set ( Recover Point Volume Ingestion Context volume Context ) { Un Managed Protection Set umpset = volume Context . get Un Managed Protection Set ( ) ; Protection Set pset = Volume Ingestion Util . find Or Create Protection Set ( volume Context , volume Context . get Unmanaged V...
private ProtectionSet createProtectionSet ( RecoverPointVolumeIngestionContext volumeContext ) { UnManagedProtectionSet umpset = volumeContext . getUnManagedProtectionSet ( ) ; ProtectionSet pset = VolumeIngestionUtil . findOrCreateProtectionSet ( volumeContext , volumeContext . getUnmanagedVolume ( ) , umpset , _dbCli...
80
java-test-2279
java
What does the code get ?
all the fields in this class and its super - classes
static Array List < Field > all Fields ( final Class < ? > clazz ) { final Array List < Field > res = new Array List < > ( ) ; Class < ? > cl = clazz ; while ( cl != null ) { final Field [ ] fields = cl . get Declared Fields ( ) ; Collections . add All ( res , fields ) ; cl = cl . get Superclass ( ) ; } return res ; }
static ArrayList < Field > allFields ( final Class < ? > clazz ) { final ArrayList < Field > res = new ArrayList < > ( ) ; Class < ? > cl = clazz ; while ( cl != null ) { final Field [ ] fields = cl . getDeclaredFields ( ) ; Collections . addAll ( res , fields ) ; cl = cl . getSuperclass ( ) ; } return res ; }
86
java-test-2280
java
What does the code update ?
the zone weather states
private void update Weather States ( ) { boolean changed = temperature . update ( ) ; changed |= rain . update ( ) ; changed |= fog . update ( ) ; changed |= thunder . update ( ) ; if ( changed ) { update Zones ( ) ; } }
private void updateWeatherStates ( ) { boolean changed = temperature . update ( ) ; changed |= rain . update ( ) ; changed |= fog . update ( ) ; changed |= thunder . update ( ) ; if ( changed ) { updateZones ( ) ; } }
53
java-test-2281
java
What does the code create ?
new daddextensiontype dialog
public D Add Extension Type ( J Dialog parent , X509 Extension extensions ) { super ( parent , Dialog . Modality Type . DOCUMENT MODAL ) ; set Title ( res . get String ( STRING ) ) ; this . extensions = extensions ; init Components ( ) ; }
public DAddExtensionType ( JDialog parent , X509Extension extensions ) { super ( parent , Dialog . ModalityType . DOCUMENT_MODAL ) ; setTitle ( res . getString ( STRING ) ) ; this . extensions = extensions ; initComponents ( ) ; }
52
java-test-2284
java
What does the code create ?
the border color
private void create Border Color ( ) { this . border Color = new RGB ( Math . min ( this . color . red * NUM , NUM ) , Math . min ( this . color . green * NUM , NUM ) , Math . min ( this . color . blue * NUM , NUM ) ) ; }
private void createBorderColor ( ) { this . borderColor = new RGB ( Math . min ( this . color . red * _NUM , _NUM ) , Math . min ( this . color . green * _NUM , _NUM ) , Math . min ( this . color . blue * _NUM , _NUM ) ) ; }
63
java-test-2285
java
What d the code insert ?
the element ( i d ) with given priority
@ Suppress Warnings ( STRING ) public void insert ( int id , Comparable < E > priority ) { int i ; i = ++ n ; Element H p = new Element H ( ) ; while ( i > NUM ) { int p Idx = i / NUM ; Element H e Idx = ( Element H ) elements [ p Idx ] ; p . id = e Idx . id ; p . priority = e Idx . priority ; if ( priority . compare T...
@ SuppressWarnings ( STRING ) public void insert ( int id , Comparable < E > priority ) { int i ; i = ++ _n ; ElementH p = new ElementH ( ) ; while ( i > _NUM ) { int pIdx = i / _NUM ; ElementH eIdx = ( ElementH ) _elements [ pIdx ] ; p . id = eIdx . id ; p . priority = eIdx . priority ; if ( priority . compareTo ( ( E...
184
java-test-2286
java
What will cause exception ?
inserting too many items into a binary heap
@ Suppress Warnings ( STRING ) public void insert ( int id , Comparable < E > priority ) { int i ; i = ++ n ; Element H p = new Element H ( ) ; while ( i > NUM ) { int p Idx = i / NUM ; Element H e Idx = ( Element H ) elements [ p Idx ] ; p . id = e Idx . id ; p . priority = e Idx . priority ; if ( priority . compare T...
@ SuppressWarnings ( STRING ) public void insert ( int id , Comparable < E > priority ) { int i ; i = ++ _n ; ElementH p = new ElementH ( ) ; while ( i > _NUM ) { int pIdx = i / _NUM ; ElementH eIdx = ( ElementH ) _elements [ pIdx ] ; p . id = eIdx . id ; p . priority = eIdx . priority ; if ( priority . compareTo ( ( E...
184
java-test-2287
java
What does the code evaluate ?
one lucene query
private Iterable < ? extends Document Score > evaluate Query ( Query Spec query ) { Iterable < ? extends Document Score > hits = null ; try { String s Query = query . get Query String ( ) ; if ( ! s Query . is Empty ( ) ) { boolean highlight = ( query . get Snippet Variable Name ( ) != null || query . get Property Vari...
private Iterable < ? extends DocumentScore > evaluateQuery ( QuerySpec query ) { Iterable < ? extends DocumentScore > hits = null ; try { String sQuery = query . getQueryString ( ) ; if ( ! sQuery . isEmpty ( ) ) { boolean highlight = ( query . getSnippetVariableName ( ) != null || query . getPropertyVariableName ( ) !...
159
java-test-2288
java
What is were given the one ?
no subject
private Iterable < ? extends Document Score > evaluate Query ( Query Spec query ) { Iterable < ? extends Document Score > hits = null ; try { String s Query = query . get Query String ( ) ; if ( ! s Query . is Empty ( ) ) { boolean highlight = ( query . get Snippet Variable Name ( ) != null || query . get Property Vari...
private Iterable < ? extends DocumentScore > evaluateQuery ( QuerySpec query ) { Iterable < ? extends DocumentScore > hits = null ; try { String sQuery = query . getQueryString ( ) ; if ( ! sQuery . isEmpty ( ) ) { boolean highlight = ( query . getSnippetVariableName ( ) != null || query . getPropertyVariableName ( ) !...
159
java-test-2289
java
When are the instructions in each basic block numbered in increasing order ?
before calling this
public final void init ( IR ir ) { Live Interval liveness Information = ir . get Liveness Information ( ) ; this . reg Alloc State = ir . MIR Info . reg Alloc State ; for ( Enumeration < Basic Block > e = ir . get Basic Blocks ( ) ; e . has More Elements ( ) ; ) { Basic Block b = e . next Element ( ) ; process Block ( ...
public final void init ( IR ir ) { LiveInterval livenessInformation = ir . getLivenessInformation ( ) ; this . regAllocState = ir . MIRInfo . regAllocState ; for ( Enumeration < BasicBlock > e = ir . getBasicBlocks ( ) ; e . hasMoreElements ( ) ; ) { BasicBlock b = e . nextElement ( ) ; processBlock ( b , livenessInfor...
86
java-test-2291
java
What does it return according to the specified fitness - fn and goal test ?
the best individual in the specified population
public Individual < A > genetic Algorithm ( Collection < Individual < A > > init Population , Fitness Function < A > fitness Fn , Goal Test goal Test , long max Time Milliseconds ) { Individual < A > best Individual = null ; List < Individual < A > > population = new Array List < Individual < A > > ( init Population ) ...
public Individual < A > geneticAlgorithm ( Collection < Individual < A > > initPopulation , FitnessFunction < A > fitnessFn , GoalTest goalTest , long maxTimeMilliseconds ) { Individual < A > bestIndividual = null ; List < Individual < A > > population = new ArrayList < Individual < A > > ( initPopulation ) ; validateP...
221
java-test-2292
java
What is controlling search ?
template method
public Individual < A > genetic Algorithm ( Collection < Individual < A > > init Population , Fitness Function < A > fitness Fn , Goal Test goal Test , long max Time Milliseconds ) { Individual < A > best Individual = null ; List < Individual < A > > population = new Array List < Individual < A > > ( init Population ) ...
public Individual < A > geneticAlgorithm ( Collection < Individual < A > > initPopulation , FitnessFunction < A > fitnessFn , GoalTest goalTest , long maxTimeMilliseconds ) { Individual < A > bestIndividual = null ; List < Individual < A > > population = new ArrayList < Individual < A > > ( initPopulation ) ; validateP...
221
java-test-2293
java
Does the code replace the xml entity in the shared configuration ?
No
public void add Xml Entity ( Xml Entity xml Entity , String [ ] groups ) throws Exception { Region < String , Configuration > config Region = get Configuration Region ( ) ; if ( groups == null || groups . length == NUM ) { groups = new String [ ] { Shared Configuration . CLUSTER CONFIG } ; } for ( String group : groups...
public void addXmlEntity ( XmlEntity xmlEntity , String [ ] groups ) throws Exception { Region < String , Configuration > configRegion = getConfigurationRegion ( ) ; if ( groups == null || groups . length == _NUM ) { groups = new String [ ] { SharedConfiguration . CLUSTER_CONFIG } ; } for ( String group : groups ) { Co...
234
java-test-2294
java
What does the code create ?
a new treeviewerbuilder
public Tree Viewer Builder ( Composite parent , int style ) { mappings = Collections . empty Map ( ) ; checkable = ( style & SWT . CHECK ) == SWT . CHECK ; if ( checkable ) { viewer = new Checkbox Tree Viewer ( parent , style ) ; } else { viewer = new Tree Viewer ( parent , style ) ; } Column Viewer Tool Tip Support . ...
public TreeViewerBuilder ( Composite parent , int style ) { mappings = Collections . emptyMap ( ) ; checkable = ( style & SWT . CHECK ) == SWT . CHECK ; if ( checkable ) { viewer = new CheckboxTreeViewer ( parent , style ) ; } else { viewer = new TreeViewer ( parent , style ) ; } ColumnViewerToolTipSupport . enableFor ...
86
java-test-2297
java
What does the code add ?
nodes for any collapsed edge pairs caused by inserted nodes collapsed edge pairs occur when the same coordinate is inserted as a node both before and after an existing edge vertex . to provide the correct fully noded semantics
private void find Collapses From Inserted Nodes ( List collapsed Vertex Indexes ) { int [ ] collapsed Vertex Index = new int [ NUM ] ; Iterator it = iterator ( ) ; Segment Node ei Prev = ( Segment Node ) it . next ( ) ; while ( it . has Next ( ) ) { Segment Node ei = ( Segment Node ) it . next ( ) ; boolean is Collapse...
private void findCollapsesFromInsertedNodes ( List collapsedVertexIndexes ) { int [ ] collapsedVertexIndex = new int [ _NUM ] ; Iterator it = iterator ( ) ; SegmentNode eiPrev = ( SegmentNode ) it . next ( ) ; while ( it . hasNext ( ) ) { SegmentNode ei = ( SegmentNode ) it . next ( ) ; boolean isCollapsed = findCollap...
121
java-test-2298
java
Where does the code add double quotes if required ?
around an identifier
public static String quote Identifier ( String s ) { if ( s == null || s . length ( ) == NUM ) { return STRING ; } char c = s . char At ( NUM ) ; if ( ( ! Character . is Letter ( c ) && c != STRING ) || Character . is Lower Case ( c ) ) { return String Utils . quote Identifier ( s ) ; } for ( int i = NUM , length = s ....
public static String quoteIdentifier ( String s ) { if ( s == null || s . length ( ) == _NUM ) { return STRING ; } char c = s . charAt ( _NUM ) ; if ( ( ! Character . isLetter ( c ) && c != STRING ) || Character . isLowerCase ( c ) ) { return StringUtils . quoteIdentifier ( s ) ; } for ( int i = _NUM , length = s . len...
178
java-test-2299
java
What do we restore when the missing member comes back online ?
the same buckets
@ Category ( Flaky Test . class ) @ Test public void test Missing Member Redundancy 1 ( ) { Host host = Host . get Host ( NUM ) ; VM vm 0 = host . get VM ( NUM ) ; VM vm 1 = host . get VM ( NUM ) ; VM vm 2 = host . get VM ( NUM ) ; create PR ( vm 0 , NUM ) ; create PR ( vm 1 , NUM ) ; create Data ( vm 0 , NUM , NUM BUC...
@ Category ( FlakyTest . class ) @ Test public void testMissingMemberRedundancy1 ( ) { Host host = Host . getHost ( _NUM ) ; VM vm0 = host . getVM ( _NUM ) ; VM vm1 = host . getVM ( _NUM ) ; VM vm2 = host . getVM ( _NUM ) ; createPR ( vm0 , _NUM ) ; createPR ( vm1 , _NUM ) ; createData ( vm0 , _NUM , NUM_BUCKETS , STRI...
317
java-test-2300
java
When do we restore the same buckets ?
when the missing member comes back online
@ Category ( Flaky Test . class ) @ Test public void test Missing Member Redundancy 1 ( ) { Host host = Host . get Host ( NUM ) ; VM vm 0 = host . get VM ( NUM ) ; VM vm 1 = host . get VM ( NUM ) ; VM vm 2 = host . get VM ( NUM ) ; create PR ( vm 0 , NUM ) ; create PR ( vm 1 , NUM ) ; create Data ( vm 0 , NUM , NUM BUC...
@ Category ( FlakyTest . class ) @ Test public void testMissingMemberRedundancy1 ( ) { Host host = Host . getHost ( _NUM ) ; VM vm0 = host . getVM ( _NUM ) ; VM vm1 = host . getVM ( _NUM ) ; VM vm2 = host . getVM ( _NUM ) ; createPR ( vm0 , _NUM ) ; createPR ( vm1 , _NUM ) ; createData ( vm0 , _NUM , NUM_BUCKETS , STRI...
317
java-test-2301
java
What does the code remove ?
old files
public void cleanup ( boolean delete All ) { long current Time = System . current Time Millis ( ) ; File file = new File ( get Output Directory String ( ) ) ; if ( file . is Directory ( ) ) { File [ ] files = file . list Files ( ) ; for ( int i = NUM ; i < files . length ; i ++ ) { File f = files [ i ] ; if ( ! delete ...
public void cleanup ( boolean deleteAll ) { long currentTime = System . currentTimeMillis ( ) ; File file = new File ( getOutputDirectoryString ( ) ) ; if ( file . isDirectory ( ) ) { File [ ] files = file . listFiles ( ) ; for ( int i = _NUM ; i < files . length ; i ++ ) { File f = files [ i ] ; if ( ! deleteAll ) { t...
209
java-test-2302
java
Where did files find ?
in the output directory
public void cleanup ( boolean delete All ) { long current Time = System . current Time Millis ( ) ; File file = new File ( get Output Directory String ( ) ) ; if ( file . is Directory ( ) ) { File [ ] files = file . list Files ( ) ; for ( int i = NUM ; i < files . length ; i ++ ) { File f = files [ i ] ; if ( ! delete ...
public void cleanup ( boolean deleteAll ) { long currentTime = System . currentTimeMillis ( ) ; File file = new File ( getOutputDirectoryString ( ) ) ; if ( file . isDirectory ( ) ) { File [ ] files = file . listFiles ( ) ; for ( int i = _NUM ; i < files . length ; i ++ ) { File f = files [ i ] ; if ( ! deleteAll ) { t...
209
java-test-2307
java
What binds to the seed ?
the out of the gearing
@ Suppress Warnings ( STRING ) private boolean can Bind ( final Gearing gearing , final I Binding Set child Solution In , final I Constant < ? > seed ) { if ( gearing . out Var == null ) return seed . equals ( gearing . out Const ) ; if ( ! child Solution In . is Bound ( gearing . out Var ) ) return BOOL ; return seed ...
@ SuppressWarnings ( STRING ) private boolean canBind ( final Gearing gearing , final IBindingSet childSolutionIn , final IConstant < ? > seed ) { if ( gearing . outVar == null ) return seed . equals ( gearing . outConst ) ; if ( ! childSolutionIn . isBound ( gearing . outVar ) ) return _BOOL ; return seed . equals ( c...
90
java-test-2308
java
What do the out of the gearing bind ?
to the seed
@ Suppress Warnings ( STRING ) private boolean can Bind ( final Gearing gearing , final I Binding Set child Solution In , final I Constant < ? > seed ) { if ( gearing . out Var == null ) return seed . equals ( gearing . out Const ) ; if ( ! child Solution In . is Bound ( gearing . out Var ) ) return BOOL ; return seed ...
@ SuppressWarnings ( STRING ) private boolean canBind ( final Gearing gearing , final IBindingSet childSolutionIn , final IConstant < ? > seed ) { if ( gearing . outVar == null ) return seed . equals ( gearing . outConst ) ; if ( ! childSolutionIn . isBound ( gearing . outVar ) ) return _BOOL ; return seed . equals ( c...
90
java-test-2309
java
How do different type of data register using viewholderfactory ?
with different viewholder
public < F > void add View Type ( Class < ? extends F > clazz , View Holder Factory < ? extends View Holder < ? extends F > > factory ) { int id = m View Holder Factory Registry . size ( ) ; m View Holder Type Registry . put ( clazz , id ) ; m View Holder Factory Registry . put ( id , factory ) ; }
public < F > void addViewType ( Class < ? extends F > clazz , ViewHolderFactory < ? extends ViewHolder < ? extends F > > factory ) { int id = mViewHolderFactoryRegistry . size ( ) ; mViewHolderTypeRegistry . put ( clazz , id ) ; mViewHolderFactoryRegistry . put ( id , factory ) ; }
74
java-test-2312
java
When are statements inserted into the " null " graph are visible from the sparql default graph ?
when no data set is specified
@ Override public void add Statement ( final Resource s , final URI p , final Value o , final Resource ... contexts ) throws Sail Exception { if ( log . is Debug Enabled ( ) ) log . debug ( STRING + s + STRING + p + STRING + o + STRING + Arrays . to String ( contexts ) ) ; Open RDF Util . verify Context Not Null ( cont...
@ Override public void addStatement ( final Resource s , final URI p , final Value o , final Resource ... contexts ) throws SailException { if ( log . isDebugEnabled ( ) ) log . debug ( STRING + s + STRING + p + STRING + o + STRING + Arrays . toString ( contexts ) ) ; OpenRDFUtil . verifyContextNotNull ( contexts ) ; i...
156
java-test-2313
java
What does sesame have ?
a concept of a " null " graph
@ Override public void add Statement ( final Resource s , final URI p , final Value o , final Resource ... contexts ) throws Sail Exception { if ( log . is Debug Enabled ( ) ) log . debug ( STRING + s + STRING + p + STRING + o + STRING + Arrays . to String ( contexts ) ) ; Open RDF Util . verify Context Not Null ( cont...
@ Override public void addStatement ( final Resource s , final URI p , final Value o , final Resource ... contexts ) throws SailException { if ( log . isDebugEnabled ( ) ) log . debug ( STRING + s + STRING + p + STRING + o + STRING + Arrays . toString ( contexts ) ) ; OpenRDFUtil . verifyContextNotNull ( contexts ) ; i...
156
java-test-2314
java
What has a concept of a " null " graph ?
sesame
@ Override public void add Statement ( final Resource s , final URI p , final Value o , final Resource ... contexts ) throws Sail Exception { if ( log . is Debug Enabled ( ) ) log . debug ( STRING + s + STRING + p + STRING + o + STRING + Arrays . to String ( contexts ) ) ; Open RDF Util . verify Context Not Null ( cont...
@ Override public void addStatement ( final Resource s , final URI p , final Value o , final Resource ... contexts ) throws SailException { if ( log . isDebugEnabled ( ) ) log . debug ( STRING + s + STRING + p + STRING + o + STRING + Arrays . toString ( contexts ) ) ; OpenRDFUtil . verifyContextNotNull ( contexts ) ; i...
156
java-test-2316
java
What does the code get ?
the build information
@ Bean public Build Information build Information ( ) { Build Information build Information = new Build Information ( ) ; build Information . set Build Date ( environment . get Property ( STRING ) ) ; build Information . set Build Number ( environment . get Property ( STRING ) ) ; build Information . set Build Os ( env...
@ Bean public BuildInformation buildInformation ( ) { BuildInformation buildInformation = new BuildInformation ( ) ; buildInformation . setBuildDate ( environment . getProperty ( STRING ) ) ; buildInformation . setBuildNumber ( environment . getProperty ( STRING ) ) ; buildInformation . setBuildOs ( environment . getPr...
183