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-11401
java
What does the code remove ?
the column represented by the index
public void remove Column ( final int col Index ) { final CSV Info info = get Info ( ) ; if ( info . header ) { final Array List < String > cols = new Array List < > ( Arrays . as List ( info . headers ) ) ; cols . remove ( col Index ) ; info . headers = cols . to Array ( new String [ cols . size ( ) ] ) ; } info . col...
public void removeColumn ( final int colIndex ) { final CSVInfo info = getInfo ( ) ; if ( info . header ) { final ArrayList < String > cols = new ArrayList < > ( Arrays . asList ( info . headers ) ) ; cols . remove ( colIndex ) ; info . headers = cols . toArray ( new String [ cols . size ( ) ] ) ; } info . cols -- ; fo...
128
java-test-11402
java
What does it check ?
whether the client charge transaction is reversed or not
private void is Reversed Transaction ( String client Id , String transaction Id ) { final Boolean is Reversed = Client Helper . get Client Transactions ( this . request Spec , this . response Spec , client Id . to String ( ) , transaction Id ) ; Assert . assert True ( is Reversed ) ; }
private void isReversedTransaction ( String clientId , String transactionId ) { final Boolean isReversed = ClientHelper . getClientTransactions ( this . requestSpec , this . responseSpec , clientId . toString ( ) , transactionId ) ; Assert . assertTrue ( isReversed ) ; }
59
java-test-11403
java
What does the code create ?
a new ( parent ) node
protected List create Parent Boundables ( List child Boundables , int new Level ) { Assert . is True ( ! child Boundables . is Empty ( ) ) ; int min Leaf Count = ( int ) Math . ceil ( ( child Boundables . size ( ) / ( double ) get Node Capacity ( ) ) ) ; Array List sorted Child Boundables = new Array List ( child Bound...
protected List createParentBoundables ( List childBoundables , int newLevel ) { Assert . isTrue ( ! childBoundables . isEmpty ( ) ) ; int minLeafCount = ( int ) Math . ceil ( ( childBoundables . size ( ) / ( double ) getNodeCapacity ( ) ) ) ; ArrayList sortedChildBoundables = new ArrayList ( childBoundables ) ; Collect...
134
java-test-11404
java
For what purpose does the code group them into runs of size m ( the node capacity ) ?
for each run
protected List create Parent Boundables ( List child Boundables , int new Level ) { Assert . is True ( ! child Boundables . is Empty ( ) ) ; int min Leaf Count = ( int ) Math . ceil ( ( child Boundables . size ( ) / ( double ) get Node Capacity ( ) ) ) ; Array List sorted Child Boundables = new Array List ( child Bound...
protected List createParentBoundables ( List childBoundables , int newLevel ) { Assert . isTrue ( ! childBoundables . isEmpty ( ) ) ; int minLeafCount = ( int ) Math . ceil ( ( childBoundables . size ( ) / ( double ) getNodeCapacity ( ) ) ) ; ArrayList sortedChildBoundables = new ArrayList ( childBoundables ) ; Collect...
134
java-test-11405
java
How does the code order the items first ?
by the y - values of the midpoints
protected List create Parent Boundables ( List child Boundables , int new Level ) { Assert . is True ( ! child Boundables . is Empty ( ) ) ; int min Leaf Count = ( int ) Math . ceil ( ( child Boundables . size ( ) / ( double ) get Node Capacity ( ) ) ) ; Array List sorted Child Boundables = new Array List ( child Bound...
protected List createParentBoundables ( List childBoundables , int newLevel ) { Assert . isTrue ( ! childBoundables . isEmpty ( ) ) ; int minLeafCount = ( int ) Math . ceil ( ( childBoundables . size ( ) / ( double ) getNodeCapacity ( ) ) ) ; ArrayList sortedChildBoundables = new ArrayList ( childBoundables ) ; Collect...
134
java-test-11407
java
How does a string s wrap ?
by inserting cr - lf instead of the first space after the nth columns
public static String wrap ( String s , int n ) { String Buffer b = new String Buffer ( ) ; boolean wrap Pending = BOOL ; for ( int i = NUM ; i < s . length ( ) ; i ++ ) { if ( i % n == NUM && i > NUM ) { wrap Pending = BOOL ; } char c = s . char At ( i ) ; if ( wrap Pending && c == STRING ) { b . append ( STRING ) ; wr...
public static String wrap ( String s , int n ) { StringBuffer b = new StringBuffer ( ) ; boolean wrapPending = _BOOL ; for ( int i = _NUM ; i < s . length ( ) ; i ++ ) { if ( i % n == _NUM && i > _NUM ) { wrapPending = _BOOL ; } char c = s . charAt ( i ) ; if ( wrapPending && c == STRING ) { b . append ( STRING ) ; wra...
120
java-test-11408
java
When do cr - lf instead of the first space insert ?
after the nth columns
public static String wrap ( String s , int n ) { String Buffer b = new String Buffer ( ) ; boolean wrap Pending = BOOL ; for ( int i = NUM ; i < s . length ( ) ; i ++ ) { if ( i % n == NUM && i > NUM ) { wrap Pending = BOOL ; } char c = s . char At ( i ) ; if ( wrap Pending && c == STRING ) { b . append ( STRING ) ; wr...
public static String wrap ( String s , int n ) { StringBuffer b = new StringBuffer ( ) ; boolean wrapPending = _BOOL ; for ( int i = _NUM ; i < s . length ( ) ; i ++ ) { if ( i % n == _NUM && i > _NUM ) { wrapPending = _BOOL ; } char c = s . charAt ( i ) ; if ( wrapPending && c == STRING ) { b . append ( STRING ) ; wra...
120
java-test-11409
java
What does the code fetch ?
a set of correctly signed and normalized collect data structures
public Hash Set < Collect Data > select Collects ( int regency , int cid ) { Hash Set < Signed Object > c = collects . get ( regency ) ; if ( c == null ) return null ; return normalize Collects ( get Signed Collects ( c ) , cid , regency ) ; }
public HashSet < CollectData > selectCollects ( int regency , int cid ) { HashSet < SignedObject > c = collects . get ( regency ) ; if ( c == null ) return null ; return normalizeCollects ( getSignedCollects ( c ) , cid , regency ) ; }
58
java-test-11412
java
What does the code remove from text created by double printing of text and drowned items where text inside other text ?
shadows
private void cleanup Shadows And Drowned Objects ( final boolean avoid Spaces ) { final int [ ] items = get Unused Fragments ( ) ; final int count = items . length ; int c , n ; String separator ; float diff ; for ( int p = NUM ; p < count ; p ++ ) { c = items [ p ] ; if ( ! is Used [ c ] ) { float mid X = ( f x1 [ c ]...
private void cleanupShadowsAndDrownedObjects ( final boolean avoidSpaces ) { final int [ ] items = getUnusedFragments ( ) ; final int count = items . length ; int c , n ; String separator ; float diff ; for ( int p = _NUM ; p < count ; p ++ ) { c = items [ p ] ; if ( ! isUsed [ c ] ) { float midX = ( f_x1 [ c ] + f_x2 ...
629
java-test-11413
java
What do this instance decrement ?
usage count
public void release ( ) { while ( BOOL ) { int cnt = active Cnt . get ( ) ; if ( cnt == NUM ) { if ( log . is Debug Enabled ( ) ) log . debug ( STRING + this ) ; return ; } if ( active Cnt . compare And Set ( cnt , cnt - NUM ) ) { if ( cnt == NUM ) { ipc Cache . remove ( endpoint Addr , this ) ; if ( log . is Debug Ena...
public void release ( ) { while ( _BOOL ) { int cnt = activeCnt . get ( ) ; if ( cnt == _NUM ) { if ( log . isDebugEnabled ( ) ) log . debug ( STRING + this ) ; return ; } if ( activeCnt . compareAndSet ( cnt , cnt - _NUM ) ) { if ( cnt == _NUM ) { ipcCache . remove ( endpointAddr , this ) ; if ( log . isDebugEnabled (...
134
java-test-11414
java
What does entity have ?
dual role
private boolean is Dual Role ( Entity Descriptor Element entity Descriptor ) { boolean dual = BOOL ; if ( entity Descriptor != null ) { if ( ( SAML 2 Meta Utils . get SPSSO Descriptor ( entity Descriptor ) != null ) && ( SAML 2 Meta Utils . get IDPSSO Descriptor ( entity Descriptor ) != null ) ) { dual = BOOL ; } } ret...
private boolean isDualRole ( EntityDescriptorElement entityDescriptor ) { boolean dual = _BOOL ; if ( entityDescriptor != null ) { if ( ( SAML2MetaUtils . getSPSSODescriptor ( entityDescriptor ) != null ) && ( SAML2MetaUtils . getIDPSSODescriptor ( entityDescriptor ) != null ) ) { dual = _BOOL ; } } return dual ; }
73
java-test-11415
java
What does the code create ?
a escaped charsequence
public Unescaped Char Sequence ( char [ ] chars , boolean [ ] was Escaped , int offset , int length ) { this . chars = new char [ length ] ; this . was Escaped = new boolean [ length ] ; System . arraycopy ( chars , offset , this . chars , NUM , length ) ; System . arraycopy ( was Escaped , offset , this . was Escaped ...
public UnescapedCharSequence ( char [ ] chars , boolean [ ] wasEscaped , int offset , int length ) { this . chars = new char [ length ] ; this . wasEscaped = new boolean [ length ] ; System . arraycopy ( chars , offset , this . chars , _NUM , length ) ; System . arraycopy ( wasEscaped , offset , this . wasEscaped , _NU...
81
java-test-11416
java
What does the code apply ?
the configured sync mappings
private void apply Mappings ( Context context , Json Value source , Json Value old Source , Json Value target , Json Value existing Target , String link Qualifier , Reconciliation Context recon Context ) throws Synchronization Exception { Event Entry measure = Publisher . start ( object Mapping . get Object Mapping Eve...
private void applyMappings ( Context context , JsonValue source , JsonValue oldSource , JsonValue target , JsonValue existingTarget , String linkQualifier , ReconciliationContext reconContext ) throws SynchronizationException { EventEntry measure = Publisher . start ( objectMapping . getObjectMappingEventName ( ) , sou...
186
java-test-11417
java
What does the code create ?
a new instance of a builder with the data of the passed builder
protected Builder ( @ Nonnull final Builder builder ) { Check . not Null ( builder , STRING ) ; family = builder . family ; icon = builder . icon ; id = builder . id ; info Url = builder . info Url ; name = builder . name ; patterns . add All ( builder . patterns ) ; producer = builder . producer ; producer Url = build...
protected Builder ( @ Nonnull final Builder builder ) { Check . notNull ( builder , STRING ) ; family = builder . family ; icon = builder . icon ; id = builder . id ; infoUrl = builder . infoUrl ; name = builder . name ; patterns . addAll ( builder . patterns ) ; producer = builder . producer ; producerUrl = builder . ...
83
java-test-11424
java
In which direction does entity firing data load in the net command ?
from the data
@ Suppress Warnings ( STRING ) protected void receive Attack ( Packet c ) { List < Entity Action > vector = ( List < Entity Action > ) c . get Object ( NUM ) ; int charge = c . get Int Value ( NUM ) ; boolean add Action = BOOL ; for ( Entity Action ea : vector ) { int entity Id = ea . get Entity Id ( ) ; if ( ( ea inst...
@ SuppressWarnings ( STRING ) protected void receiveAttack ( Packet c ) { List < EntityAction > vector = ( List < EntityAction > ) c . getObject ( _NUM ) ; int charge = c . getIntValue ( _NUM ) ; boolean addAction = _BOOL ; for ( EntityAction ea : vector ) { int entityId = ea . getEntityId ( ) ; if ( ( ea instanceof To...
334
java-test-11425
java
Where do both this item and p_other have a shape ?
the last layer
public final int last common layer ( Brd Item p other ) { int max first layer = Math . max ( first layer ( ) , p other . first layer ( ) ) ; int min last layer = Math . min ( last layer ( ) , p other . last layer ( ) ) ; if ( max first layer > min last layer ) return - NUM ; return min last layer ; }
public final int last_common_layer ( BrdItem p_other ) { int max_first_layer = Math . max ( first_layer ( ) , p_other . first_layer ( ) ) ; int min_last_layer = Math . min ( last_layer ( ) , p_other . last_layer ( ) ) ; if ( max_first_layer > min_last_layer ) return - _NUM ; return min_last_layer ; }
79
java-test-11426
java
What does the code return ?
the last layer , where both this item and p_other have a shape . returns - 1 , if such a layer does not exisr
public final int last common layer ( Brd Item p other ) { int max first layer = Math . max ( first layer ( ) , p other . first layer ( ) ) ; int min last layer = Math . min ( last layer ( ) , p other . last layer ( ) ) ; if ( max first layer > min last layer ) return - NUM ; return min last layer ; }
public final int last_common_layer ( BrdItem p_other ) { int max_first_layer = Math . max ( first_layer ( ) , p_other . first_layer ( ) ) ; int min_last_layer = Math . min ( last_layer ( ) , p_other . last_layer ( ) ) ; if ( max_first_layer > min_last_layer ) return - _NUM ; return min_last_layer ; }
79
java-test-11428
java
How does the code compute the sign of the determinant of the 2x2 matrix ?
with the given entries
public static int sign Of Det 2 x 2 ( double x1 , double y1 , double x2 , double y2 ) { int sign ; double swap ; double k ; long count = NUM ; sign = NUM ; if ( ( x1 == NUM ) || ( y2 == NUM ) ) { if ( ( y1 == NUM ) || ( x2 == NUM ) ) { return NUM ; } else if ( y1 > NUM ) { if ( x2 > NUM ) { return - sign ; } else { ret...
public static int signOfDet2x2 ( double x1 , double y1 , double x2 , double y2 ) { int sign ; double swap ; double k ; long count = _NUM ; sign = _NUM ; if ( ( x1 == _NUM ) || ( y2 == _NUM ) ) { if ( ( y1 == _NUM ) || ( x2 == _NUM ) ) { return _NUM ; } else if ( y1 > _NUM ) { if ( x2 > _NUM ) { return - sign ; } else {...
825
java-test-11429
java
What does the code compute with the given entries with the given entries ?
the sign of the determinant of the 2x2 matrix
public static int sign Of Det 2 x 2 ( double x1 , double y1 , double x2 , double y2 ) { int sign ; double swap ; double k ; long count = NUM ; sign = NUM ; if ( ( x1 == NUM ) || ( y2 == NUM ) ) { if ( ( y1 == NUM ) || ( x2 == NUM ) ) { return NUM ; } else if ( y1 > NUM ) { if ( x2 > NUM ) { return - sign ; } else { ret...
public static int signOfDet2x2 ( double x1 , double y1 , double x2 , double y2 ) { int sign ; double swap ; double k ; long count = _NUM ; sign = _NUM ; if ( ( x1 == _NUM ) || ( y2 == _NUM ) ) { if ( ( y1 == _NUM ) || ( x2 == _NUM ) ) { return _NUM ; } else if ( y1 > _NUM ) { if ( x2 > _NUM ) { return - sign ; } else {...
825
java-test-11430
java
What are wildcards a matcher for " pattern " ?
" * " and " ? "
private static Pattern make Pattern From Wildcard ( String pattern ) { String Builder regexp = new String Builder ( ) ; for ( int i = NUM , len = pattern . length ( ) ; i < len ; i ++ ) { char c = pattern . char At ( i ) ; switch ( c ) { case STRING : int to Increment = NUM ; if ( len > i + NUM && pattern . char At ( i...
private static Pattern makePatternFromWildcard ( String pattern ) { StringBuilder regexp = new StringBuilder ( ) ; for ( int i = _NUM , len = pattern . length ( ) ; i < len ; i ++ ) { char c = pattern . charAt ( i ) ; switch ( c ) { case STRING : int toIncrement = _NUM ; if ( len > i + _NUM && pattern . charAt ( i + _N...
269
java-test-11431
java
Where are " * " and " ? " are wildcards ?
a matcher for " pattern "
private static Pattern make Pattern From Wildcard ( String pattern ) { String Builder regexp = new String Builder ( ) ; for ( int i = NUM , len = pattern . length ( ) ; i < len ; i ++ ) { char c = pattern . char At ( i ) ; switch ( c ) { case STRING : int to Increment = NUM ; if ( len > i + NUM && pattern . char At ( i...
private static Pattern makePatternFromWildcard ( String pattern ) { StringBuilder regexp = new StringBuilder ( ) ; for ( int i = _NUM , len = pattern . length ( ) ; i < len ; i ++ ) { char c = pattern . charAt ( i ) ; switch ( c ) { case STRING : int toIncrement = _NUM ; if ( len > i + _NUM && pattern . charAt ( i + _N...
269
java-test-11432
java
What do a regular expression implement ?
a matcher for " pattern " , in which " * " and " ? " are wildcards
private static Pattern make Pattern From Wildcard ( String pattern ) { String Builder regexp = new String Builder ( ) ; for ( int i = NUM , len = pattern . length ( ) ; i < len ; i ++ ) { char c = pattern . char At ( i ) ; switch ( c ) { case STRING : int to Increment = NUM ; if ( len > i + NUM && pattern . char At ( i...
private static Pattern makePatternFromWildcard ( String pattern ) { StringBuilder regexp = new StringBuilder ( ) ; for ( int i = _NUM , len = pattern . length ( ) ; i < len ; i ++ ) { char c = pattern . charAt ( i ) ; switch ( c ) { case STRING : int toIncrement = _NUM ; if ( len > i + _NUM && pattern . charAt ( i + _N...
269
java-test-11434
java
What does the code calculate ?
the number of days between epoch and the given date
public static int days Since 1900 ( Date date ) { final Calendar calendar = Calendar . get Instance ( ) ; calendar . clear ( ) ; calendar . set ( NUM , NUM , NUM ) ; return days Between ( calendar . get Time ( ) , date ) ; }
public static int daysSince1900 ( Date date ) { final Calendar calendar = Calendar . getInstance ( ) ; calendar . clear ( ) ; calendar . set ( _NUM , _NUM , _NUM ) ; return daysBetween ( calendar . getTime ( ) , date ) ; }
54
java-test-11435
java
What do a character from the reader disallow ?
entities
static char read Char ( IXML Reader reader , char entity Char ) throws IO Exception , XML Parse Exception { String str = XML Util . read ( reader , entity Char ) ; char ch = str . char At ( NUM ) ; if ( ch == entity Char ) { XML Util . error Unexpected Entity ( reader . get System ID ( ) , reader . get Line Nr ( ) , st...
static char readChar ( IXMLReader reader , char entityChar ) throws IOException , XMLParseException { String str = XMLUtil . read ( reader , entityChar ) ; char ch = str . charAt ( _NUM ) ; if ( ch == entityChar ) { XMLUtil . errorUnexpectedEntity ( reader . getSystemID ( ) , reader . getLineNr ( ) , str ) ; } return c...
85
java-test-11436
java
What does the code read ?
a character from the reader disallowing entities
static char read Char ( IXML Reader reader , char entity Char ) throws IO Exception , XML Parse Exception { String str = XML Util . read ( reader , entity Char ) ; char ch = str . char At ( NUM ) ; if ( ch == entity Char ) { XML Util . error Unexpected Entity ( reader . get System ID ( ) , reader . get Line Nr ( ) , st...
static char readChar ( IXMLReader reader , char entityChar ) throws IOException , XMLParseException { String str = XMLUtil . read ( reader , entityChar ) ; char ch = str . charAt ( _NUM ) ; if ( ch == entityChar ) { XMLUtil . errorUnexpectedEntity ( reader . getSystemID ( ) , reader . getLineNr ( ) , str ) ; } return c...
85
java-test-11437
java
For what purpose does the code load the relationship lists ?
for the specified charname
public Multimap < String , String > load Relations ( DB Transaction transaction , String charname ) throws SQL Exception { Hash Multimap < String , String > map = Hash Multimap . create ( ) ; String query = STRING ; Map < String , Object > params = new Hash Map < String , Object > ( ) ; params . put ( STRING , charname...
public Multimap < String , String > loadRelations ( DBTransaction transaction , String charname ) throws SQLException { HashMultimap < String , String > map = HashMultimap . create ( ) ; String query = STRING ; Map < String , Object > params = new HashMap < String , Object > ( ) ; params . put ( STRING , charname ) ; R...
122
java-test-11438
java
What does the code load for the specified charname ?
the relationship lists
public Multimap < String , String > load Relations ( DB Transaction transaction , String charname ) throws SQL Exception { Hash Multimap < String , String > map = Hash Multimap . create ( ) ; String query = STRING ; Map < String , Object > params = new Hash Map < String , Object > ( ) ; params . put ( STRING , charname...
public Multimap < String , String > loadRelations ( DBTransaction transaction , String charname ) throws SQLException { HashMultimap < String , String > map = HashMultimap . create ( ) ; String query = STRING ; Map < String , Object > params = new HashMap < String , Object > ( ) ; params . put ( STRING , charname ) ; R...
122
java-test-11439
java
What does this method mask ?
the standard identity , status , echelon , symbol modifier , country code , and order of battle fields
public String to Masked String ( ) { Symbol Code masked = new Symbol Code ( ) ; masked . set Values ( this ) ; masked . set Standard Identity ( null ) ; masked . set Status ( null ) ; masked . set Echelon ( null ) ; masked . set Symbol Modifier ( null ) ; masked . set Country Code ( null ) ; masked . set Order Of Battl...
public String toMaskedString ( ) { SymbolCode masked = new SymbolCode ( ) ; masked . setValues ( this ) ; masked . setStandardIdentity ( null ) ; masked . setStatus ( null ) ; masked . setEchelon ( null ) ; masked . setSymbolModifier ( null ) ; masked . setCountryCode ( null ) ; masked . setOrderOfBattle ( null ) ; ret...
88
java-test-11440
java
What do positions not identify uniquely ?
a particular symbol or graphic replaced with hyphens
public String to Masked String ( ) { Symbol Code masked = new Symbol Code ( ) ; masked . set Values ( this ) ; masked . set Standard Identity ( null ) ; masked . set Status ( null ) ; masked . set Echelon ( null ) ; masked . set Symbol Modifier ( null ) ; masked . set Country Code ( null ) ; masked . set Order Of Battl...
public String toMaskedString ( ) { SymbolCode masked = new SymbolCode ( ) ; masked . setValues ( this ) ; masked . setStandardIdentity ( null ) ; masked . setStatus ( null ) ; masked . setEchelon ( null ) ; masked . setSymbolModifier ( null ) ; masked . setCountryCode ( null ) ; masked . setOrderOfBattle ( null ) ; ret...
88
java-test-11441
java
What does the code indicate ?
a string representation of the symbol code with positions that do not uniquely identify a particular symbol or graphic replaced with hyphens
public String to Masked String ( ) { Symbol Code masked = new Symbol Code ( ) ; masked . set Values ( this ) ; masked . set Standard Identity ( null ) ; masked . set Status ( null ) ; masked . set Echelon ( null ) ; masked . set Symbol Modifier ( null ) ; masked . set Country Code ( null ) ; masked . set Order Of Battl...
public String toMaskedString ( ) { SymbolCode masked = new SymbolCode ( ) ; masked . setValues ( this ) ; masked . setStandardIdentity ( null ) ; masked . setStatus ( null ) ; masked . setEchelon ( null ) ; masked . setSymbolModifier ( null ) ; masked . setCountryCode ( null ) ; masked . setOrderOfBattle ( null ) ; ret...
88
java-test-11443
java
By how much do the boundingbox return in the zoom level specified by the argument for the requested slippy map tile ?
in degree ( epsg : 4326 )
public static Referenced Envelope tile 2 bounding Box ( final int x , final int y , final int zoom , int srid ) { Referenced Envelope referenced Envelope ; switch ( srid ) { case NUM : referenced Envelope = new Referenced Envelope ( tile 2 lon ( x , zoom ) , tile 2 lon ( x + NUM , zoom ) , tile 2 lat ( y + NUM , zoom )...
public static ReferencedEnvelope tile2boundingBox ( final int x , final int y , final int zoom , int srid ) { ReferencedEnvelope referencedEnvelope ; switch ( srid ) { case _NUM : referencedEnvelope = new ReferencedEnvelope ( tile2lon ( x , zoom ) , tile2lon ( x + _NUM , zoom ) , tile2lat ( y + _NUM , zoom ) , tile2lat...
173
java-test-11444
java
What returns in the zoom level specified by the argument ?
the boundingbox
public static Referenced Envelope tile 2 bounding Box ( final int x , final int y , final int zoom , int srid ) { Referenced Envelope referenced Envelope ; switch ( srid ) { case NUM : referenced Envelope = new Referenced Envelope ( tile 2 lon ( x , zoom ) , tile 2 lon ( x + NUM , zoom ) , tile 2 lat ( y + NUM , zoom )...
public static ReferencedEnvelope tile2boundingBox ( final int x , final int y , final int zoom , int srid ) { ReferencedEnvelope referencedEnvelope ; switch ( srid ) { case _NUM : referencedEnvelope = new ReferencedEnvelope ( tile2lon ( x , zoom ) , tile2lon ( x + _NUM , zoom ) , tile2lat ( y + _NUM , zoom ) , tile2lat...
173
java-test-11445
java
Where do the boundingbox return in degree ( epsg : 4326 ) for the requested slippy map tile ?
in the zoom level specified by the argument
public static Referenced Envelope tile 2 bounding Box ( final int x , final int y , final int zoom , int srid ) { Referenced Envelope referenced Envelope ; switch ( srid ) { case NUM : referenced Envelope = new Referenced Envelope ( tile 2 lon ( x , zoom ) , tile 2 lon ( x + NUM , zoom ) , tile 2 lat ( y + NUM , zoom )...
public static ReferencedEnvelope tile2boundingBox ( final int x , final int y , final int zoom , int srid ) { ReferencedEnvelope referencedEnvelope ; switch ( srid ) { case _NUM : referencedEnvelope = new ReferencedEnvelope ( tile2lon ( x , zoom ) , tile2lon ( x + _NUM , zoom ) , tile2lat ( y + _NUM , zoom ) , tile2lat...
173
java-test-11446
java
For what purpose do the boundingbox return in degree ( epsg : 4326 ) in the zoom level specified by the argument ?
for the requested slippy map tile
public static Referenced Envelope tile 2 bounding Box ( final int x , final int y , final int zoom , int srid ) { Referenced Envelope referenced Envelope ; switch ( srid ) { case NUM : referenced Envelope = new Referenced Envelope ( tile 2 lon ( x , zoom ) , tile 2 lon ( x + NUM , zoom ) , tile 2 lat ( y + NUM , zoom )...
public static ReferencedEnvelope tile2boundingBox ( final int x , final int y , final int zoom , int srid ) { ReferencedEnvelope referencedEnvelope ; switch ( srid ) { case _NUM : referencedEnvelope = new ReferencedEnvelope ( tile2lon ( x , zoom ) , tile2lon ( x + _NUM , zoom ) , tile2lat ( y + _NUM , zoom ) , tile2lat...
173
java-test-11457
java
What does the code read ?
the menu component
private void read Object ( Object Input Stream s ) throws Class Not Found Exception , IO Exception , Headless Exception { Graphics Environment . check Headless ( ) ; acc = Access Controller . get Context ( ) ; s . default Read Object ( ) ; app Context = App Context . get App Context ( ) ; }
private void readObject ( ObjectInputStream s ) throws ClassNotFoundException , IOException , HeadlessException { GraphicsEnvironment . checkHeadless ( ) ; acc = AccessController . getContext ( ) ; s . defaultReadObject ( ) ; appContext = AppContext . getAppContext ( ) ; }
61
java-test-11458
java
What represents the string ?
a columnspec object
public static Column Spec decode ( String encoded Column Spec , Layout Map layout Map ) { check Not Blank ( encoded Column Spec , STRING ) ; check Not Null ( layout Map , STRING ) ; String trimmed = encoded Column Spec . trim ( ) ; String lower = trimmed . to Lower Case ( Locale . ENGLISH ) ; return decode Expanded ( l...
public static ColumnSpec decode ( String encodedColumnSpec , LayoutMap layoutMap ) { checkNotBlank ( encodedColumnSpec , STRING ) ; checkNotNull ( layoutMap , STRING ) ; String trimmed = encodedColumnSpec . trim ( ) ; String lower = trimmed . toLowerCase ( Locale . ENGLISH ) ; return decodeExpanded ( layoutMap . expand...
79
java-test-11459
java
What does the code return ?
a columnspec object that represents the string
public static Column Spec decode ( String encoded Column Spec , Layout Map layout Map ) { check Not Blank ( encoded Column Spec , STRING ) ; check Not Null ( layout Map , STRING ) ; String trimmed = encoded Column Spec . trim ( ) ; String lower = trimmed . to Lower Case ( Locale . ENGLISH ) ; return decode Expanded ( l...
public static ColumnSpec decode ( String encodedColumnSpec , LayoutMap layoutMap ) { checkNotBlank ( encodedColumnSpec , STRING ) ; checkNotNull ( layoutMap , STRING ) ; String trimmed = encodedColumnSpec . trim ( ) ; String lower = trimmed . toLowerCase ( Locale . ENGLISH ) ; return decodeExpanded ( layoutMap . expand...
79
java-test-11460
java
What does the code parse ?
the encoded column specifications
public static Column Spec decode ( String encoded Column Spec , Layout Map layout Map ) { check Not Blank ( encoded Column Spec , STRING ) ; check Not Null ( layout Map , STRING ) ; String trimmed = encoded Column Spec . trim ( ) ; String lower = trimmed . to Lower Case ( Locale . ENGLISH ) ; return decode Expanded ( l...
public static ColumnSpec decode ( String encodedColumnSpec , LayoutMap layoutMap ) { checkNotBlank ( encodedColumnSpec , STRING ) ; checkNotNull ( layoutMap , STRING ) ; String trimmed = encodedColumnSpec . trim ( ) ; String lower = trimmed . toLowerCase ( Locale . ENGLISH ) ; return decodeExpanded ( layoutMap . expand...
79
java-test-11461
java
What do a device broadlink before it can be controlled ?
sdk
public Json Object add Device ( Device Info selected Device ) { Json Object init Json Object Params = broadlink Standard Params ( Broadlink Constants . CMD DEVICE ADD ID , Broadlink Constants . CMD DEVICE ADD ) ; init Json Object Params . add Property ( STRING , selected Device . get Mac ( ) ) ; init Json Object Params...
public JsonObject addDevice ( DeviceInfo selectedDevice ) { JsonObject initJsonObjectParams = broadlinkStandardParams ( BroadlinkConstants . CMD_DEVICE_ADD_ID , BroadlinkConstants . CMD_DEVICE_ADD ) ; initJsonObjectParams . addProperty ( STRING , selectedDevice . getMac ( ) ) ; initJsonObjectParams . addProperty ( STRI...
203
java-test-11462
java
What does the code add ?
a device to broadlink sdk before it can be controlled
public Json Object add Device ( Device Info selected Device ) { Json Object init Json Object Params = broadlink Standard Params ( Broadlink Constants . CMD DEVICE ADD ID , Broadlink Constants . CMD DEVICE ADD ) ; init Json Object Params . add Property ( STRING , selected Device . get Mac ( ) ) ; init Json Object Params...
public JsonObject addDevice ( DeviceInfo selectedDevice ) { JsonObject initJsonObjectParams = broadlinkStandardParams ( BroadlinkConstants . CMD_DEVICE_ADD_ID , BroadlinkConstants . CMD_DEVICE_ADD ) ; initJsonObjectParams . addProperty ( STRING , selectedDevice . getMac ( ) ) ; initJsonObjectParams . addProperty ( STRI...
203
java-test-11463
java
When do a device broadlink sdk ?
before it can be controlled
public Json Object add Device ( Device Info selected Device ) { Json Object init Json Object Params = broadlink Standard Params ( Broadlink Constants . CMD DEVICE ADD ID , Broadlink Constants . CMD DEVICE ADD ) ; init Json Object Params . add Property ( STRING , selected Device . get Mac ( ) ) ; init Json Object Params...
public JsonObject addDevice ( DeviceInfo selectedDevice ) { JsonObject initJsonObjectParams = broadlinkStandardParams ( BroadlinkConstants . CMD_DEVICE_ADD_ID , BroadlinkConstants . CMD_DEVICE_ADD ) ; initJsonObjectParams . addProperty ( STRING , selectedDevice . getMac ( ) ) ; initJsonObjectParams . addProperty ( STRI...
203
java-test-11464
java
What does the code remove from this list if it is present ?
the first occurrence of the specified element
@ Override public boolean remove ( Object o ) { if ( o == null ) { for ( int index = start ; index < end ; index ++ ) { if ( buffer [ index ] == null ) { do Remove ( index - start ) ; return BOOL ; } } } else { for ( int index = start ; index < end ; index ++ ) { if ( o . equals ( buffer [ index ] ) ) { do Remove ( ind...
@ Override public boolean remove ( Object o ) { if ( o == null ) { for ( int index = start ; index < end ; index ++ ) { if ( buffer [ index ] == null ) { doRemove ( index - start ) ; return _BOOL ; } } } else { for ( int index = start ; index < end ; index ++ ) { if ( o . equals ( buffer [ index ] ) ) { doRemove ( inde...
104
java-test-11465
java
What does the code generate ?
a data file for break - iterator
private static void generate Data File ( String datafile , String rule , String builder ) { Rule Based Break Iterator Builder bld ; if ( builder . equals ( STRING ) ) { bld = new Rule Based Break Iterator Builder ( rule ) ; } else if ( builder . equals ( STRING ) ) { bld = new Dictionary Based Break Iterator Builder ( ...
private static void generateDataFile ( String datafile , String rule , String builder ) { RuleBasedBreakIteratorBuilder bld ; if ( builder . equals ( STRING ) ) { bld = new RuleBasedBreakIteratorBuilder ( rule ) ; } else if ( builder . equals ( STRING ) ) { bld = new DictionaryBasedBreakIteratorBuilder ( rule ) ; } els...
96
java-test-11466
java
How do the media content embed ?
in a way suitable for the browser to view the content
public void do Get Embed Html ( Http Servlet Request request , Http Servlet Response response , String type , String location , String item ) throws Servlet Exception , IO Exception { response . set Status ( Http Servlet Response . SC OK ) ; response . set Content Type ( STRING ) ; Print Writer writer = response . get ...
public void doGetEmbedHtml ( HttpServletRequest request , HttpServletResponse response , String type , String location , String item ) throws ServletException , IOException { response . setStatus ( HttpServletResponse . SC_OK ) ; response . setContentType ( STRING ) ; PrintWriter writer = response . getWriter ( ) ; Str...
128
java-test-11467
java
What does the code get ?
the html snippet for embedding the media content in a way suitable for the browser to view the content as
public void do Get Embed Html ( Http Servlet Request request , Http Servlet Response response , String type , String location , String item ) throws Servlet Exception , IO Exception { response . set Status ( Http Servlet Response . SC OK ) ; response . set Content Type ( STRING ) ; Print Writer writer = response . get ...
public void doGetEmbedHtml ( HttpServletRequest request , HttpServletResponse response , String type , String location , String item ) throws ServletException , IOException { response . setStatus ( HttpServletResponse . SC_OK ) ; response . setContentType ( STRING ) ; PrintWriter writer = response . getWriter ( ) ; Str...
128
java-test-11468
java
What do the holder have ?
a permission node
public Tristate has Permission ( Node node , boolean t ) { for ( Node n : t ? get Transient Nodes ( ) : get Nodes ( ) ) { if ( n . almost Equals ( node ) ) { return n . get Tristate ( ) ; } } return Tristate . UNDEFINED ; }
public Tristate hasPermission ( Node node , boolean t ) { for ( Node n : t ? getTransientNodes ( ) : getNodes ( ) ) { if ( n . almostEquals ( node ) ) { return n . getTristate ( ) ; } } return Tristate . UNDEFINED ; }
58
java-test-11472
java
What performs on a single line ?
a regular expression search
private static int do Regex Search ( final Object element , final String line Text , final int line Counter , final String local Search String , final int start Position , final boolean case Sensitive , final List < Search Result > results ) { final Pattern pattern = case Sensitive ? Pattern . compile ( local Search St...
private static int doRegexSearch ( final Object element , final String lineText , final int lineCounter , final String localSearchString , final int startPosition , final boolean caseSensitive , final List < SearchResult > results ) { final Pattern pattern = caseSensitive ? Pattern . compile ( localSearchString ) : Pat...
200
java-test-11473
java
What does a form submit for further processing ?
to the form entry queue
private void submit X Form ( Document doc , String xml , String path Name , boolean archive , boolean propagate Errors ) throws Exception { String xml Original = xml ; try { fill Patient Id If Missing ( doc ) ; save Complex Obs ( doc , BOOL ) ; set Multiple Select Values ( doc . get Document Element ( ) ) ; xml = Xform...
private void submitXForm ( Document doc , String xml , String pathName , boolean archive , boolean propagateErrors ) throws Exception { String xmlOriginal = xml ; try { fillPatientIdIfMissing ( doc ) ; saveComplexObs ( doc , _BOOL ) ; setMultipleSelectValues ( doc . getDocumentElement ( ) ) ; xml = XformsUtil . doc2Str...
220
java-test-11474
java
Where does the code parse the style ?
in workspace
private int parse Style In Workspace ( Geo Server REST Reader reader , Map < String , List < Style Wrapper > > style Map , int count , String workspace Name ) { List < Style Wrapper > style List ; if ( workspace Name != null ) { REST Style List geo Server Workspace Style List = reader . get Styles ( workspace Name ) ; ...
private int parseStyleInWorkspace ( GeoServerRESTReader reader , Map < String , List < StyleWrapper > > styleMap , int count , String workspaceName ) { List < StyleWrapper > styleList ; if ( workspaceName != null ) { RESTStyleList geoServerWorkspaceStyleList = reader . getStyles ( workspaceName ) ; styleList = new Arra...
168
java-test-11478
java
What does the code load based on a lookup ?
a native font
public Object load Native Font ( String lookup ) { try { lookup = lookup . split ( STRING ) [ NUM ] ; int typeface = Typeface . NORMAL ; String family Name = lookup . substring ( NUM , lookup . index Of ( STRING ) ) ; String style = lookup . substring ( lookup . index Of ( STRING ) + NUM , lookup . last Index Of ( STRI...
public Object loadNativeFont ( String lookup ) { try { lookup = lookup . split ( STRING ) [ _NUM ] ; int typeface = Typeface . NORMAL ; String familyName = lookup . substring ( _NUM , lookup . indexOf ( STRING ) ) ; String style = lookup . substring ( lookup . indexOf ( STRING ) + _NUM , lookup . lastIndexOf ( STRING )...
226
java-test-11479
java
What did the code allow thus ?
fallback if the primary font isn ' t supported by the platform
public Object load Native Font ( String lookup ) { try { lookup = lookup . split ( STRING ) [ NUM ] ; int typeface = Typeface . NORMAL ; String family Name = lookup . substring ( NUM , lookup . index Of ( STRING ) ) ; String style = lookup . substring ( lookup . index Of ( STRING ) + NUM , lookup . last Index Of ( STRI...
public Object loadNativeFont ( String lookup ) { try { lookup = lookup . split ( STRING ) [ _NUM ] ; int typeface = Typeface . NORMAL ; String familyName = lookup . substring ( _NUM , lookup . indexOf ( STRING ) ) ; String style = lookup . substring ( lookup . indexOf ( STRING ) + _NUM , lookup . lastIndexOf ( STRING )...
226
java-test-11480
java
How does the code load a native font ?
based on a lookup
public Object load Native Font ( String lookup ) { try { lookup = lookup . split ( STRING ) [ NUM ] ; int typeface = Typeface . NORMAL ; String family Name = lookup . substring ( NUM , lookup . index Of ( STRING ) ) ; String style = lookup . substring ( lookup . index Of ( STRING ) + NUM , lookup . last Index Of ( STRI...
public Object loadNativeFont ( String lookup ) { try { lookup = lookup . split ( STRING ) [ _NUM ] ; int typeface = Typeface . NORMAL ; String familyName = lookup . substring ( _NUM , lookup . indexOf ( STRING ) ) ; String style = lookup . substring ( lookup . indexOf ( STRING ) + _NUM , lookup . lastIndexOf ( STRING )...
226
java-test-11481
java
What does the code create ?
a new instance of the methodsourcesinkdefinition class
public Source Sink Definition ( Soot Method And Class am , Set < Access Path Tuple > base Objects , Set < Access Path Tuple > [ ] parameters , Set < Access Path Tuple > return Values ) { this . method = am ; this . base Objects = base Objects == null || base Objects . is Empty ( ) ? null : base Objects ; this . paramet...
public SourceSinkDefinition ( SootMethodAndClass am , Set < AccessPathTuple > baseObjects , Set < AccessPathTuple > [ ] parameters , Set < AccessPathTuple > returnValues ) { this . method = am ; this . baseObjects = baseObjects == null || baseObjects . isEmpty ( ) ? null : baseObjects ; this . parameters = parameters ;...
99
java-test-11483
java
What do a method wrap ?
given element
@ Nullable public static List < Psi Element > search For Wrapping Method ( Psi Element start , boolean deep ) { Psi Element seeker = start ; List < Psi Element > ret = new Array List < Psi Element > ( NUM ) ; while ( seeker != null ) { Py Function func = Psi Tree Util . get Parent Of Type ( seeker , Py Function . class...
@ Nullable public static List < PsiElement > searchForWrappingMethod ( PsiElement start , boolean deep ) { PsiElement seeker = start ; List < PsiElement > ret = new ArrayList < PsiElement > ( _NUM ) ; while ( seeker != null ) { PyFunction func = PsiTreeUtil . getParentOfType ( seeker , PyFunction . class , _BOOL , PyCl...
161
java-test-11484
java
What does the code create ?
a migrationclient to be used with a distributedsystem and cache that are created using gemfire apis
public Migration Client ( String bind Address Name , int server Port ) { this . port = server Port ; try { this . server Address = Inet Address . get By Name ( bind Address Name ) ; } catch ( IO Exception e ) { throw new Illegal Argument Exception ( STRING + bind Address Name + STRING ) ; } }
public MigrationClient ( String bindAddressName , int serverPort ) { this . port = serverPort ; try { this . serverAddress = InetAddress . getByName ( bindAddressName ) ; } catch ( IOException e ) { throw new IllegalArgumentException ( STRING + bindAddressName + STRING ) ; } }
65
java-test-11485
java
How are a distributedsystem and cache created ?
using gemfire apis
public Migration Client ( String bind Address Name , int server Port ) { this . port = server Port ; try { this . server Address = Inet Address . get By Name ( bind Address Name ) ; } catch ( IO Exception e ) { throw new Illegal Argument Exception ( STRING + bind Address Name + STRING ) ; } }
public MigrationClient ( String bindAddressName , int serverPort ) { this . port = serverPort ; try { this . serverAddress = InetAddress . getByName ( bindAddressName ) ; } catch ( IOException e ) { throw new IllegalArgumentException ( STRING + bindAddressName + STRING ) ; } }
65
java-test-11486
java
What will be done in a distance attack ( bow and arrows , spear , etc . ?
the damage
public static int apply Distance Attack Modifiers ( final int damage , final double square Distance , final double maxrange ) { final double max Range Squared = maxrange * maxrange ; if ( max Range Squared < square Distance ) { return NUM ; } else if ( square Distance == NUM ) { return ( int ) ( NUM * damage ) ; } fina...
public static int applyDistanceAttackModifiers ( final int damage , final double squareDistance , final double maxrange ) { final double maxRangeSquared = maxrange * maxrange ; if ( maxRangeSquared < squareDistance ) { return _NUM ; } else if ( squareDistance == _NUM ) { return ( int ) ( _NUM * damage ) ; } final doubl...
124
java-test-11487
java
What does the code calculate ?
the damage that will be done in a distance attack ( bow and arrows , spear , etc . )
public static int apply Distance Attack Modifiers ( final int damage , final double square Distance , final double maxrange ) { final double max Range Squared = maxrange * maxrange ; if ( max Range Squared < square Distance ) { return NUM ; } else if ( square Distance == NUM ) { return ( int ) ( NUM * damage ) ; } fina...
public static int applyDistanceAttackModifiers ( final int damage , final double squareDistance , final double maxrange ) { final double maxRangeSquared = maxrange * maxrange ; if ( maxRangeSquared < squareDistance ) { return _NUM ; } else if ( squareDistance == _NUM ) { return ( int ) ( _NUM * damage ) ; } final doubl...
124
java-test-11488
java
Where will the damage be done ?
in a distance attack ( bow and arrows , spear , etc .
public static int apply Distance Attack Modifiers ( final int damage , final double square Distance , final double maxrange ) { final double max Range Squared = maxrange * maxrange ; if ( max Range Squared < square Distance ) { return NUM ; } else if ( square Distance == NUM ) { return ( int ) ( NUM * damage ) ; } fina...
public static int applyDistanceAttackModifiers ( final int damage , final double squareDistance , final double maxrange ) { final double maxRangeSquared = maxrange * maxrange ; if ( maxRangeSquared < squareDistance ) { return _NUM ; } else if ( squareDistance == _NUM ) { return ( int ) ( _NUM * damage ) ; } final doubl...
124
java-test-11489
java
In which direction does any of the elements make ?
through the filter
private boolean compute Any Visible ( Viewer viewer , Object [ ] elements ) { boolean element Found = BOOL ; for ( int i = NUM ; i < elements . length && ! element Found ; i ++ ) { Object element = elements [ i ] ; element Found = is Element Visible ( viewer , element ) ; } return element Found ; }
private boolean computeAnyVisible ( Viewer viewer , Object [ ] elements ) { boolean elementFound = _BOOL ; for ( int i = _NUM ; i < elements . length && ! elementFound ; i ++ ) { Object element = elements [ i ] ; elementFound = isElementVisible ( viewer , element ) ; } return elementFound ; }
68
java-test-11491
java
What does convenience method remove from the wakeupmanager ?
all pending tasks
private void terminate Task Mgr ( ) { if ( discovery Wakeup Mgr != null ) { discovery Wakeup Mgr . stop ( ) ; discovery Wakeup Mgr . cancel All ( ) ; } if ( discovery Task Mgr != null ) { List pending Tasks = discovery Task Mgr . get Pending ( ) ; for ( int i = NUM ; i < pending Tasks . size ( ) ; i ++ ) { Retry Task p...
private void terminateTaskMgr ( ) { if ( discoveryWakeupMgr != null ) { discoveryWakeupMgr . stop ( ) ; discoveryWakeupMgr . cancelAll ( ) ; } if ( discoveryTaskMgr != null ) { List pendingTasks = discoveryTaskMgr . getPending ( ) ; for ( int i = _NUM ; i < pendingTasks . size ( ) ; i ++ ) { RetryTask pendingTask = ( R...
134
java-test-11492
java
What does the code send ?
the end event
synchronized public Event end ( ) { if ( complete ) { throw new Illegal State Exception ( ) ; } complete = BOOL ; end Time = System . current Time Millis ( ) ; if ( start Time == NUM ) { start Time = end Time ; } try { send Event ( ) ; } catch ( Throwable t ) { log . warn ( t ) ; } return this ; }
synchronized public Event end ( ) { if ( complete ) { throw new IllegalStateException ( ) ; } complete = _BOOL ; endTime = System . currentTimeMillis ( ) ; if ( startTime == _NUM ) { startTime = endTime ; } try { sendEvent ( ) ; } catch ( Throwable t ) { log . warn ( t ) ; } return this ; }
77
java-test-11493
java
What does the code call this method ?
to create local testing using one or more proxies
public static Test Suite suite When Standalone ( final Class < ? extends Test Case > clazz , final String regex , final Set < Buffer Mode > buffer Modes , final Test Mode ... test Modes ) { if ( ! proxy Index Manager Testing Has Started ) { final Pattern pat = Pattern . compile ( regex ) ; proxy Index Manager Testing H...
public static TestSuite suiteWhenStandalone ( final Class < ? extends TestCase > clazz , final String regex , final Set < BufferMode > bufferModes , final TestMode ... testModes ) { if ( ! proxyIndexManagerTestingHasStarted ) { final Pattern pat = Pattern . compile ( regex ) ; proxyIndexManagerTestingHasStarted = _BOOL...
124
java-test-11494
java
What do local use ?
one or more proxies
public static Test Suite suite When Standalone ( final Class < ? extends Test Case > clazz , final String regex , final Set < Buffer Mode > buffer Modes , final Test Mode ... test Modes ) { if ( ! proxy Index Manager Testing Has Started ) { final Pattern pat = Pattern . compile ( regex ) ; proxy Index Manager Testing H...
public static TestSuite suiteWhenStandalone ( final Class < ? extends TestCase > clazz , final String regex , final Set < BufferMode > bufferModes , final TestMode ... testModes ) { if ( ! proxyIndexManagerTestingHasStarted ) { final Pattern pat = Pattern . compile ( regex ) ; proxyIndexManagerTestingHasStarted = _BOOL...
124
java-test-11495
java
Where does this use ?
within a testsuite
public static Test Suite suite When Standalone ( final Class < ? extends Test Case > clazz , final String regex , final Set < Buffer Mode > buffer Modes , final Test Mode ... test Modes ) { if ( ! proxy Index Manager Testing Has Started ) { final Pattern pat = Pattern . compile ( regex ) ; proxy Index Manager Testing H...
public static TestSuite suiteWhenStandalone ( final Class < ? extends TestCase > clazz , final String regex , final Set < BufferMode > bufferModes , final TestMode ... testModes ) { if ( ! proxyIndexManagerTestingHasStarted ) { final Pattern pat = Pattern . compile ( regex ) ; proxyIndexManagerTestingHasStarted = _BOOL...
124
java-test-11496
java
What must you release yourself ?
the return cas
public CAS process ( String text ) { CAS cas = retrieve ( ) ; cas . set Document Text ( text ) ; try { analysis Engine . process ( cas ) ; } catch ( Analysis Engine Process Exception e ) { if ( text != null && ! text . is Empty ( ) ) return process ( text ) ; throw new Runtime Exception ( e ) ; } return cas ; }
public CAS process ( String text ) { CAS cas = retrieve ( ) ; cas . setDocumentText ( text ) ; try { analysisEngine . process ( cas ) ; } catch ( AnalysisEngineProcessException e ) { if ( text != null && ! text . isEmpty ( ) ) return process ( text ) ; throw new RuntimeException ( e ) ; } return cas ; }
77
java-test-11498
java
What does the code clear ?
the speech queue
private void clear Current And Queued Utterances ( ) { m Feedback Queue . clear ( ) ; m Current Fragment Iterator = null ; if ( m Current Feedback Item != null ) { final String utterance Id = m Current Feedback Item . get Utterance Id ( ) ; on Fragment Completed ( utterance Id , BOOL , BOOL ) ; m Current Feedback Item ...
private void clearCurrentAndQueuedUtterances ( ) { mFeedbackQueue . clear ( ) ; mCurrentFragmentIterator = null ; if ( mCurrentFeedbackItem != null ) { final String utteranceId = mCurrentFeedbackItem . getUtteranceId ( ) ; onFragmentCompleted ( utteranceId , _BOOL , _BOOL ) ; mCurrentFeedbackItem = null ; } }
72
java-test-11499
java
What does the code complete if any ?
the current speech item
private void clear Current And Queued Utterances ( ) { m Feedback Queue . clear ( ) ; m Current Fragment Iterator = null ; if ( m Current Feedback Item != null ) { final String utterance Id = m Current Feedback Item . get Utterance Id ( ) ; on Fragment Completed ( utterance Id , BOOL , BOOL ) ; m Current Feedback Item ...
private void clearCurrentAndQueuedUtterances ( ) { mFeedbackQueue . clear ( ) ; mCurrentFragmentIterator = null ; if ( mCurrentFeedbackItem != null ) { final String utteranceId = mCurrentFeedbackItem . getUtteranceId ( ) ; onFragmentCompleted ( utteranceId , _BOOL , _BOOL ) ; mCurrentFeedbackItem = null ; } }
72
java-test-11500
java
How did experiments format ?
mal
@ Data Provider public Object [ ] [ ] bad Experiments DELETE ( ) { Experiment experiment = new Experiment ( ) ; return new Object [ ] [ ] { new Object [ ] { new Experiment ( experiment . set Id ( STRING ) ) , STRING , Http Status . SC NOT FOUND } , new Object [ ] { new Experiment ( experiment . set Id ( STRING ) ) , ST...
@ DataProvider public Object [ ] [ ] badExperimentsDELETE ( ) { Experiment experiment = new Experiment ( ) ; return new Object [ ] [ ] { new Object [ ] { new Experiment ( experiment . setId ( STRING ) ) , STRING , HttpStatus . SC_NOT_FOUND } , new Object [ ] { new Experiment ( experiment . setId ( STRING ) ) , STRING ,...
116
java-test-11504
java
Where do a dynamic proxy class define ?
in a class loader with urls supplied in the given location
public static Class < ? > load Proxy Class ( String codebase , String [ ] interfaces , Class Loader default Loader ) throws Malformed URL Exception , Class Not Found Exception { if ( loader Log . is Loggable ( Log . BRIEF ) ) { loader Log . log ( Log . BRIEF , STRING + Arrays . as List ( interfaces ) + STRING + STRING ...
public static Class < ? > loadProxyClass ( String codebase , String [ ] interfaces , ClassLoader defaultLoader ) throws MalformedURLException , ClassNotFoundException { if ( loaderLog . isLoggable ( Log . BRIEF ) ) { loaderLog . log ( Log . BRIEF , STRING + Arrays . asList ( interfaces ) + STRING + STRING + ( codebase ...
582
java-test-11505
java
Where do a dynamic proxy class return with urls supplied in the given location ?
in a class loader
public static Class < ? > load Proxy Class ( String codebase , String [ ] interfaces , Class Loader default Loader ) throws Malformed URL Exception , Class Not Found Exception { if ( loader Log . is Loggable ( Log . BRIEF ) ) { loader Log . log ( Log . BRIEF , STRING + Arrays . as List ( interfaces ) + STRING + STRING ...
public static Class < ? > loadProxyClass ( String codebase , String [ ] interfaces , ClassLoader defaultLoader ) throws MalformedURLException , ClassNotFoundException { if ( loaderLog . isLoggable ( Log . BRIEF ) ) { loaderLog . log ( Log . BRIEF , STRING + Arrays . asList ( interfaces ) + STRING + STRING + ( codebase ...
582
java-test-11506
java
How do a dynamic proxy class return in a class loader ?
with urls supplied in the given location
public static Class < ? > load Proxy Class ( String codebase , String [ ] interfaces , Class Loader default Loader ) throws Malformed URL Exception , Class Not Found Exception { if ( loader Log . is Loggable ( Log . BRIEF ) ) { loader Log . log ( Log . BRIEF , STRING + Arrays . as List ( interfaces ) + STRING + STRING ...
public static Class < ? > loadProxyClass ( String codebase , String [ ] interfaces , ClassLoader defaultLoader ) throws MalformedURLException , ClassNotFoundException { if ( loaderLog . isLoggable ( Log . BRIEF ) ) { loaderLog . log ( Log . BRIEF , STRING + Arrays . asList ( interfaces ) + STRING + STRING + ( codebase ...
582
java-test-11507
java
What does parent style not need cases ?
to be visited
static String build Style ( String style , String parent Style , String default Style ) { String res ; if ( ! style . is Empty ( ) ) { if ( style . starts With ( STRING ) ) { String add Styles = style . substring ( NUM ) ; String inherited Styles ; if ( parent Style != null ) { inherited Styles = parent Style ; } else ...
static String buildStyle ( String style , String parentStyle , String defaultStyle ) { String res ; if ( ! style . isEmpty ( ) ) { if ( style . startsWith ( STRING ) ) { String addStyles = style . substring ( _NUM ) ; String inheritedStyles ; if ( parentStyle != null ) { inheritedStyles = parentStyle ; } else { inherit...
202
java-test-11508
java
What are removed in the final string ?
the + / = styles
static String build Style ( String style , String parent Style , String default Style ) { String res ; if ( ! style . is Empty ( ) ) { if ( style . starts With ( STRING ) ) { String add Styles = style . substring ( NUM ) ; String inherited Styles ; if ( parent Style != null ) { inherited Styles = parent Style ; } else ...
static String buildStyle ( String style , String parentStyle , String defaultStyle ) { String res ; if ( ! style . isEmpty ( ) ) { if ( style . startsWith ( STRING ) ) { String addStyles = style . substring ( _NUM ) ; String inheritedStyles ; if ( parentStyle != null ) { inheritedStyles = parentStyle ; } else { inherit...
202
java-test-11509
java
Where is this inefficient ?
in cases where parent style does not need to be visited , but can ' t change easily in java
static String build Style ( String style , String parent Style , String default Style ) { String res ; if ( ! style . is Empty ( ) ) { if ( style . starts With ( STRING ) ) { String add Styles = style . substring ( NUM ) ; String inherited Styles ; if ( parent Style != null ) { inherited Styles = parent Style ; } else ...
static String buildStyle ( String style , String parentStyle , String defaultStyle ) { String res ; if ( ! style . isEmpty ( ) ) { if ( style . startsWith ( STRING ) ) { String addStyles = style . substring ( _NUM ) ; String inheritedStyles ; if ( parentStyle != null ) { inheritedStyles = parentStyle ; } else { inherit...
202
java-test-11510
java
Where are the + / = styles removed always ?
in the final string
static String build Style ( String style , String parent Style , String default Style ) { String res ; if ( ! style . is Empty ( ) ) { if ( style . starts With ( STRING ) ) { String add Styles = style . substring ( NUM ) ; String inherited Styles ; if ( parent Style != null ) { inherited Styles = parent Style ; } else ...
static String buildStyle ( String style , String parentStyle , String defaultStyle ) { String res ; if ( ! style . isEmpty ( ) ) { if ( style . startsWith ( STRING ) ) { String addStyles = style . substring ( _NUM ) ; String inheritedStyles ; if ( parentStyle != null ) { inheritedStyles = parentStyle ; } else { inherit...
202
java-test-11511
java
What is here ?
a loss of information
static String build Style ( String style , String parent Style , String default Style ) { String res ; if ( ! style . is Empty ( ) ) { if ( style . starts With ( STRING ) ) { String add Styles = style . substring ( NUM ) ; String inherited Styles ; if ( parent Style != null ) { inherited Styles = parent Style ; } else ...
static String buildStyle ( String style , String parentStyle , String defaultStyle ) { String res ; if ( ! style . isEmpty ( ) ) { if ( style . startsWith ( STRING ) ) { String addStyles = style . substring ( _NUM ) ; String inheritedStyles ; if ( parentStyle != null ) { inheritedStyles = parentStyle ; } else { inherit...
202
java-test-11512
java
For what purpose should the + / = styles are always removed in the final string preserve ?
so macros can use
static String build Style ( String style , String parent Style , String default Style ) { String res ; if ( ! style . is Empty ( ) ) { if ( style . starts With ( STRING ) ) { String add Styles = style . substring ( NUM ) ; String inherited Styles ; if ( parent Style != null ) { inherited Styles = parent Style ; } else ...
static String buildStyle ( String style , String parentStyle , String defaultStyle ) { String res ; if ( ! style . isEmpty ( ) ) { if ( style . startsWith ( STRING ) ) { String addStyles = style . substring ( _NUM ) ; String inheritedStyles ; if ( parentStyle != null ) { inheritedStyles = parentStyle ; } else { inherit...
202
java-test-11513
java
How do byte - array write ?
to out
public static void write Byte Array ( final Data Output out , final byte [ ] b , final int offset , final int length ) throws IO Exception { Writable Utils . write V Int ( out , length ) ; out . write ( b , offset , length ) ; }
public static void writeByteArray ( final DataOutput out , final byte [ ] b , final int offset , final int length ) throws IOException { WritableUtils . writeVInt ( out , length ) ; out . write ( b , offset , length ) ; }
54
java-test-11514
java
What does the code take ?
a bunch of stuff that has already been calculated
protected void check Colortable ( Rpf Frame frame , Rpf Frame Entry frame Entry , Rpf Toc Entry entry , int toc Number , int entry Number ) { if ( BOOL ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING ) ; Debug . output ( STRING + entry . Cib ) ; } colortable . set From ( frame . get Colortable ( ) ) ;...
protected void checkColortable ( RpfFrame frame , RpfFrameEntry frameEntry , RpfTocEntry entry , int tocNumber , int entryNumber ) { if ( _BOOL ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING ) ; Debug . output ( STRING + entry . Cib ) ; } colortable . setFrom ( frame . getColortable ( ) ) ; colortabl...
141
java-test-11515
java
What did the code set based on the command provided in the supplied document ?
the indent of a new line
protected void smart Indent After New Line ( I Document document , Document Command command ) { int doc Length = document . get Length ( ) ; if ( command . offset == - NUM || doc Length == NUM ) { return ; } try { int p = ( command . offset == doc Length ? command . offset - NUM : command . offset ) ; int line = docume...
protected void smartIndentAfterNewLine ( IDocument document , DocumentCommand command ) { int docLength = document . getLength ( ) ; if ( command . offset == - _NUM || docLength == _NUM ) { return ; } try { int p = ( command . offset == docLength ? command . offset - _NUM : command . offset ) ; int line = document . ge...
283
java-test-11518
java
What does the code display ?
a message in a pop - up window
public void display Message ( String title , String message ) { if ( Environment . get Boolean ( Environment . Use Internal Frames ) ) { J Option Pane . show Internal Message Dialog ( Environment . get Internal Frame Desktop ( ) , message , title , J Option Pane . INFORMATION MESSAGE ) ; } else { J Option Pane . show M...
public void displayMessage ( String title , String message ) { if ( Environment . getBoolean ( Environment . UseInternalFrames ) ) { JOptionPane . showInternalMessageDialog ( Environment . getInternalFrameDesktop ( ) , message , title , JOptionPane . INFORMATION_MESSAGE ) ; } else { JOptionPane . showMessageDialog ( nu...
84
java-test-11519
java
What do an extension point allow ?
derived classes to change the behavior of resource closing
protected void close Resources ( Connection connection , Statement statement , Result Set results ) { if ( results != null ) { try { results . close ( ) ; } catch ( SQL Exception e ) { LOG . finest ( STRING + e . get Message ( ) + STRING ) ; } } close Resources ( connection , statement ) ; }
protected void closeResources ( Connection connection , Statement statement , ResultSet results ) { if ( results != null ) { try { results . close ( ) ; } catch ( SQLException e ) { LOG . finest ( STRING + e . getMessage ( ) + STRING ) ; } } closeResources ( connection , statement ) ; }
66
java-test-11520
java
What do derived classes change ?
the behavior of resource closing
protected void close Resources ( Connection connection , Statement statement , Result Set results ) { if ( results != null ) { try { results . close ( ) ; } catch ( SQL Exception e ) { LOG . finest ( STRING + e . get Message ( ) + STRING ) ; } } close Resources ( connection , statement ) ; }
protected void closeResources ( Connection connection , Statement statement , ResultSet results ) { if ( results != null ) { try { results . close ( ) ; } catch ( SQLException e ) { LOG . finest ( STRING + e . getMessage ( ) + STRING ) ; } } closeResources ( connection , statement ) ; }
66
java-test-11523
java
What does the code create ?
a new connectionrecordsearchterm representing the given string
public Connection Record Search Term ( String term ) { if ( term == null ) throw new Null Pointer Exception ( STRING ) ; this . term = term ; Matcher matcher = DATE PATTERN . matcher ( term ) ; if ( matcher . matches ( ) ) { String year = matcher . group ( YEAR GROUP ) ; String month = matcher . group ( MONTH GROUP ) ;...
public ConnectionRecordSearchTerm ( String term ) { if ( term == null ) throw new NullPointerException ( STRING ) ; this . term = term ; Matcher matcher = DATE_PATTERN . matcher ( term ) ; if ( matcher . matches ( ) ) { String year = matcher . group ( YEAR_GROUP ) ; String month = matcher . group ( MONTH_GROUP ) ; Stri...
239
java-test-11524
java
What is representing the given string ?
a new connectionrecordsearchterm
public Connection Record Search Term ( String term ) { if ( term == null ) throw new Null Pointer Exception ( STRING ) ; this . term = term ; Matcher matcher = DATE PATTERN . matcher ( term ) ; if ( matcher . matches ( ) ) { String year = matcher . group ( YEAR GROUP ) ; String month = matcher . group ( MONTH GROUP ) ;...
public ConnectionRecordSearchTerm ( String term ) { if ( term == null ) throw new NullPointerException ( STRING ) ; this . term = term ; Matcher matcher = DATE_PATTERN . matcher ( term ) ; if ( matcher . matches ( ) ) { String year = matcher . group ( YEAR_GROUP ) ; String month = matcher . group ( MONTH_GROUP ) ; Stri...
239
java-test-11525
java
When is a beancontextmembershiplistener interface method called ?
when new objects are removed from the beancontext
public void find And Undo ( Object some Obj ) { if ( some Obj instanceof Layer Listener ) { logger . fine ( STRING ) ; remove Layer Listener ( ( Layer Listener ) some Obj ) ; } if ( some Obj instanceof Layer Configuration Listener ) { logger . fine ( STRING ) ; remove Layer Configuration Listener ( ( Layer Configuratio...
public void findAndUndo ( Object someObj ) { if ( someObj instanceof LayerListener ) { logger . fine ( STRING ) ; removeLayerListener ( ( LayerListener ) someObj ) ; } if ( someObj instanceof LayerConfigurationListener ) { logger . fine ( STRING ) ; removeLayerConfigurationListener ( ( LayerConfigurationListener ) some...
175
java-test-11526
java
Where is a layerlistener or layer found ?
on this list
public void find And Undo ( Object some Obj ) { if ( some Obj instanceof Layer Listener ) { logger . fine ( STRING ) ; remove Layer Listener ( ( Layer Listener ) some Obj ) ; } if ( some Obj instanceof Layer Configuration Listener ) { logger . fine ( STRING ) ; remove Layer Configuration Listener ( ( Layer Configuratio...
public void findAndUndo ( Object someObj ) { if ( someObj instanceof LayerListener ) { logger . fine ( STRING ) ; removeLayerListener ( ( LayerListener ) someObj ) ; } if ( someObj instanceof LayerConfigurationListener ) { logger . fine ( STRING ) ; removeLayerConfigurationListener ( ( LayerConfigurationListener ) some...
175
java-test-11527
java
What is found on this list ?
a layerlistener or layer
public void find And Undo ( Object some Obj ) { if ( some Obj instanceof Layer Listener ) { logger . fine ( STRING ) ; remove Layer Listener ( ( Layer Listener ) some Obj ) ; } if ( some Obj instanceof Layer Configuration Listener ) { logger . fine ( STRING ) ; remove Layer Configuration Listener ( ( Layer Configuratio...
public void findAndUndo ( Object someObj ) { if ( someObj instanceof LayerListener ) { logger . fine ( STRING ) ; removeLayerListener ( ( LayerListener ) someObj ) ; } if ( someObj instanceof LayerConfigurationListener ) { logger . fine ( STRING ) ; removeLayerConfigurationListener ( ( LayerConfigurationListener ) some...
175
java-test-11528
java
How does the code create an ident server on port 113 ?
with the specified encoding
protected Ident Server ( Charset encoding , Inet Address local Address , int port ) { try { this . encoding = encoding ; this . local Address = local Address ; this . server Socket = new Server Socket ( port , NUM , local Address ) ; this . port = port ; } catch ( Exception e ) { throw new Runtime Exception ( STRING + ...
protected IdentServer ( Charset encoding , InetAddress localAddress , int port ) { try { this . encoding = encoding ; this . localAddress = localAddress ; this . serverSocket = new ServerSocket ( port , _NUM , localAddress ) ; this . port = port ; } catch ( Exception e ) { throw new RuntimeException ( STRING + localAdd...
86
java-test-11529
java
Where does the code create an ident server with the specified encoding ?
on port 113
protected Ident Server ( Charset encoding , Inet Address local Address , int port ) { try { this . encoding = encoding ; this . local Address = local Address ; this . server Socket = new Server Socket ( port , NUM , local Address ) ; this . port = port ; } catch ( Exception e ) { throw new Runtime Exception ( STRING + ...
protected IdentServer ( Charset encoding , InetAddress localAddress , int port ) { try { this . encoding = encoding ; this . localAddress = localAddress ; this . serverSocket = new ServerSocket ( port , _NUM , localAddress ) ; this . port = port ; } catch ( Exception e ) { throw new RuntimeException ( STRING + localAdd...
86
java-test-11530
java
What does the code create on port 113 with the specified encoding ?
an ident server
protected Ident Server ( Charset encoding , Inet Address local Address , int port ) { try { this . encoding = encoding ; this . local Address = local Address ; this . server Socket = new Server Socket ( port , NUM , local Address ) ; this . port = port ; } catch ( Exception e ) { throw new Runtime Exception ( STRING + ...
protected IdentServer ( Charset encoding , InetAddress localAddress , int port ) { try { this . encoding = encoding ; this . localAddress = localAddress ; this . serverSocket = new ServerSocket ( port , _NUM , localAddress ) ; this . port = port ; } catch ( Exception e ) { throw new RuntimeException ( STRING + localAdd...
86
java-test-11532
java
For what purpose did convenience method mean primarily ?
for use in quick control notification
public void select Next Overlay ( ) { if ( m Current Overlay Index == NO OVERLAY ) { if ( m Overlays . is Empty ( ) ) { return ; } m Current Overlay Index = NUM ; } else { m Current Overlay Index = ++ m Current Overlay Index % m Overlays . size ( ) ; if ( m Current Overlay Index == NUM ) { m Current Overlay Index = NO ...
public void selectNextOverlay ( ) { if ( mCurrentOverlayIndex == NO_OVERLAY ) { if ( mOverlays . isEmpty ( ) ) { return ; } mCurrentOverlayIndex = _NUM ; } else { mCurrentOverlayIndex = ++ mCurrentOverlayIndex % mOverlays . size ( ) ; if ( mCurrentOverlayIndex == _NUM ) { mCurrentOverlayIndex = NO_OVERLAY ; } } doSetOv...
93
java-test-11535
java
How does them submit to the executorservice then ?
as individual jobs
@ Override public Future < Void > write Result ( Segmented Scan Result result ) { Future < Void > job Submission = null ; List < Batch Write Item Request > batches = split Result Into Batches ( result . get Scan Result ( ) , table Name ) ; Iterator < Batch Write Item Request > batches Iterator = batches . iterator ( ) ...
@ Override public Future < Void > writeResult ( SegmentedScanResult result ) { Future < Void > jobSubmission = null ; List < BatchWriteItemRequest > batches = splitResultIntoBatches ( result . getScanResult ( ) , tableName ) ; Iterator < BatchWriteItemRequest > batchesIterator = batches . iterator ( ) ; while ( batches...
135
java-test-11536
java
What does splitresultintobatches turn into several batchwriteitemrequests ?
the segmentedscanresult
@ Override public Future < Void > write Result ( Segmented Scan Result result ) { Future < Void > job Submission = null ; List < Batch Write Item Request > batches = split Result Into Batches ( result . get Scan Result ( ) , table Name ) ; Iterator < Batch Write Item Request > batches Iterator = batches . iterator ( ) ...
@ Override public Future < Void > writeResult ( SegmentedScanResult result ) { Future < Void > jobSubmission = null ; List < BatchWriteItemRequest > batches = splitResultIntoBatches ( result . getScanResult ( ) , tableName ) ; Iterator < BatchWriteItemRequest > batchesIterator = batches . iterator ( ) ; while ( batches...
135
java-test-11537
java
What does splitresultintobatches call ?
to turn the segmentedscanresult into several batchwriteitemrequests
@ Override public Future < Void > write Result ( Segmented Scan Result result ) { Future < Void > job Submission = null ; List < Batch Write Item Request > batches = split Result Into Batches ( result . get Scan Result ( ) , table Name ) ; Iterator < Batch Write Item Request > batches Iterator = batches . iterator ( ) ...
@ Override public Future < Void > writeResult ( SegmentedScanResult result ) { Future < Void > jobSubmission = null ; List < BatchWriteItemRequest > batches = splitResultIntoBatches ( result . getScanResult ( ) , tableName ) ; Iterator < BatchWriteItemRequest > batchesIterator = batches . iterator ( ) ; while ( batches...
135
java-test-11539
java
What does the code create ?
a notification with the given message
public void show Message ( String title , String message , T data ) { Notification n = new Notification ( title , message , listener , expire Time ) ; n . set Hide Method ( hide Method ) ; n . set Fallback Timeout ( max Display Time ) ; n . set Activity Time ( activity Time ) ; if ( displayed . size ( ) < max Items ) {...
public void showMessage ( String title , String message , T data ) { Notification n = new Notification ( title , message , listener , expireTime ) ; n . setHideMethod ( hideMethod ) ; n . setFallbackTimeout ( maxDisplayTime ) ; n . setActivityTime ( activityTime ) ; if ( displayed . size ( ) < maxItems ) { showNotifica...
108
java-test-11540
java
What does the code add to the list of volumes that should be updated when this recoverpoint ingestion process is committed ?
a target volume
public void add Unmanaged Target Volume To Update ( Un Managed Volume volume ) { if ( null == unmanaged Target Volumes To Update ) { unmanaged Target Volumes To Update = new Array List < Un Managed Volume > ( ) ; } unmanaged Target Volumes To Update . add ( volume ) ; }
public void addUnmanagedTargetVolumeToUpdate ( UnManagedVolume volume ) { if ( null == _unmanagedTargetVolumesToUpdate ) { _unmanagedTargetVolumesToUpdate = new ArrayList < UnManagedVolume > ( ) ; } _unmanagedTargetVolumesToUpdate . add ( volume ) ; }
56
java-test-11545
java
For what purpose did the word add to the gaz matches if this is a leaf ( or match more aptly ) ?
for the word
final public void compile Matches ( List < Constituent > words , int start , int index , Span Label View view ) { if ( names != null ) { for ( String dn : names ) { view . add Span Label ( start , index + NUM , dn , NUM ) ; } } if ( required Children != null ) { index ++ ; if ( index == words . size ( ) ) return ; Cons...
final public void compileMatches ( List < Constituent > words , int start , int index , SpanLabelView view ) { if ( names != null ) { for ( String dn : names ) { view . addSpanLabel ( start , index + _NUM , dn , _NUM ) ; } } if ( requiredChildren != null ) { index ++ ; if ( index == words . size ( ) ) return ; Constitu...
138
java-test-11546
java
When do this use ?
after getting a random port to ensure that an old locator state file isn ' t picked up by the new locator you ' re starting
public static void delete Locator State File ( final int ... ports ) { for ( int index = NUM ; index < ports . length ; index ++ ) { File state File = new File ( STRING + ports [ index ] + STRING ) ; if ( state File . exists ( ) ) { state File . delete ( ) ; } } }
public static void deleteLocatorStateFile ( final int ... ports ) { for ( int index = _NUM ; index < ports . length ; index ++ ) { File stateFile = new File ( STRING + ports [ index ] + STRING ) ; if ( stateFile . exists ( ) ) { stateFile . delete ( ) ; } } }
68