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-10828
java
How are files deleted until the total byte size is greater than targetbytes ?
in lru order
private long discard Purgeable Files ( int destination , long target Bytes ) { L Log . i ( STRING + destination + STRING + target Bytes ) ; String dest Str = ( destination == Downloads Destination . DESTINATION SYSTEMCACHE PARTITION ) ? String . value Of ( destination ) : String . value Of ( Downloads Destination . DES...
private long discardPurgeableFiles ( int destination , long targetBytes ) { LLog . i ( STRING + destination + STRING + targetBytes ) ; String destStr = ( destination == DownloadsDestination . DESTINATION_SYSTEMCACHE_PARTITION ) ? String . valueOf ( destination ) : String . valueOf ( DownloadsDestination . DESTINATION_C...
364
java-test-10829
java
Till when are files deleted in lru order ?
until the total byte size is greater than targetbytes
private long discard Purgeable Files ( int destination , long target Bytes ) { L Log . i ( STRING + destination + STRING + target Bytes ) ; String dest Str = ( destination == Downloads Destination . DESTINATION SYSTEMCACHE PARTITION ) ? String . value Of ( destination ) : String . value Of ( Downloads Destination . DES...
private long discardPurgeableFiles ( int destination , long targetBytes ) { LLog . i ( STRING + destination + STRING + targetBytes ) ; String destStr = ( destination == DownloadsDestination . DESTINATION_SYSTEMCACHE_PARTITION ) ? String . valueOf ( destination ) : String . valueOf ( DownloadsDestination . DESTINATION_C...
364
java-test-10830
java
What does this delete also ?
the matching database entries
private long discard Purgeable Files ( int destination , long target Bytes ) { L Log . i ( STRING + destination + STRING + target Bytes ) ; String dest Str = ( destination == Downloads Destination . DESTINATION SYSTEMCACHE PARTITION ) ? String . value Of ( destination ) : String . value Of ( Downloads Destination . DES...
private long discardPurgeableFiles ( int destination , long targetBytes ) { LLog . i ( STRING + destination + STRING + targetBytes ) ; String destStr = ( destination == DownloadsDestination . DESTINATION_SYSTEMCACHE_PARTITION ) ? String . valueOf ( destination ) : String . valueOf ( DownloadsDestination . DESTINATION_C...
364
java-test-10831
java
What do pos tag convert ?
to jwi pos instance
public static POS convert POS ( String pos ) { if ( pos . starts With ( STRING ) ) return POS . NOUN ; else if ( pos . starts With ( ( STRING ) ) ) return POS . VERB ; else if ( pos . starts With ( ( STRING ) ) ) return POS . ADJECTIVE ; else if ( pos . starts With ( ( STRING ) ) ) return POS . ADVERB ; return null ; }
public static POS convertPOS ( String pos ) { if ( pos . startsWith ( STRING ) ) return POS . NOUN ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . VERB ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . ADJECTIVE ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . ADVERB ; return null ; }
83
java-test-10832
java
What converts to jwi pos instance ?
pos tag
public static POS convert POS ( String pos ) { if ( pos . starts With ( STRING ) ) return POS . NOUN ; else if ( pos . starts With ( ( STRING ) ) ) return POS . VERB ; else if ( pos . starts With ( ( STRING ) ) ) return POS . ADJECTIVE ; else if ( pos . starts With ( ( STRING ) ) ) return POS . ADVERB ; return null ; }
public static POS convertPOS ( String pos ) { if ( pos . startsWith ( STRING ) ) return POS . NOUN ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . VERB ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . ADJECTIVE ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . ADVERB ; return null ; }
83
java-test-10833
java
What does the code open ?
a database connection
@ Override public Connection connect ( String url , Properties info ) throws SQL Exception { try { if ( info == null ) { info = new Properties ( ) ; } if ( ! accepts URL ( url ) ) { return null ; } if ( url . equals ( DEFAULT URL ) ) { return DEFAULT CONNECTION . get ( ) ; } Connection c = Db Upgrade . connect Or Upgra...
@ Override public Connection connect ( String url , Properties info ) throws SQLException { try { if ( info == null ) { info = new Properties ( ) ; } if ( ! acceptsURL ( url ) ) { return null ; } if ( url . equals ( DEFAULT_URL ) ) { return DEFAULT_CONNECTION . get ( ) ; } Connection c = DbUpgrade . connectOrUpgrade ( ...
123
java-test-10841
java
What does the code write to an output stream in png format ?
a scaled version of a chart
public static void write Scaled Chart As PNG ( Output Stream out , J Free Chart chart , int width , int height , int width Scale Factor , int height Scale Factor ) throws IO Exception { Param Checks . null Not Permitted ( out , STRING ) ; Param Checks . null Not Permitted ( chart , STRING ) ; double desired Width = wid...
public static void writeScaledChartAsPNG ( OutputStream out , JFreeChart chart , int width , int height , int widthScaleFactor , int heightScaleFactor ) throws IOException { ParamChecks . nullNotPermitted ( out , STRING ) ; ParamChecks . nullNotPermitted ( chart , STRING ) ; double desiredWidth = width * widthScaleFact...
307
java-test-10843
java
What does the code ensure ?
the buffer is large enough
private Byte Buffer ensure Buffer ( int size , Byte Buffer buffer , Writable Byte Channel output ) throws IO Exception { if ( buffer . remaining ( ) >= size ) { return buffer ; } flush Buffer ( buffer , output ) ; if ( buffer . remaining ( ) >= size ) { return buffer ; } return Byte Buffer . allocate Direct ( Math . ma...
private ByteBuffer ensureBuffer ( int size , ByteBuffer buffer , WritableByteChannel output ) throws IOException { if ( buffer . remaining ( ) >= size ) { return buffer ; } flushBuffer ( buffer , output ) ; if ( buffer . remaining ( ) >= size ) { return buffer ; } return ByteBuffer . allocateDirect ( Math . max ( buffe...
90
java-test-10845
java
What does the code remove ?
the log filter
public static void remove Log Filter ( Log Filter filter ) { if ( filter == null || filters == null || filters . is Empty ( ) ) { return ; } if ( filters . contains ( filter ) ) { filters . remove ( filter ) ; } }
public static void removeLogFilter ( LogFilter filter ) { if ( filter == null || filters == null || filters . isEmpty ( ) ) { return ; } if ( filters . contains ( filter ) ) { filters . remove ( filter ) ; } }
52
java-test-10846
java
How be this limit defined ?
at session level
private Statement test Bug 71396 Statement Init ( Connection test Conn , int max Rows ) throws SQL Exception { Result Set test RS ; Statement test Stmt = test Conn . create Statement ( ) ; test Stmt . set Max Rows ( max Rows ) ; test RS = test Stmt . execute Query ( STRING ) ; test RS . next ( ) ; assert Equals ( STRIN...
private Statement testBug71396StatementInit ( Connection testConn , int maxRows ) throws SQLException { ResultSet testRS ; Statement testStmt = testConn . createStatement ( ) ; testStmt . setMaxRows ( maxRows ) ; testRS = testStmt . executeQuery ( STRING ) ; testRS . next ( ) ; assertEquals ( STRING , maxRows , testRS ...
90
java-test-10847
java
What does executing this query force this limit also ?
to be defined at session level
private Statement test Bug 71396 Statement Init ( Connection test Conn , int max Rows ) throws SQL Exception { Result Set test RS ; Statement test Stmt = test Conn . create Statement ( ) ; test Stmt . set Max Rows ( max Rows ) ; test RS = test Stmt . execute Query ( STRING ) ; test RS . next ( ) ; assert Equals ( STRIN...
private Statement testBug71396StatementInit ( Connection testConn , int maxRows ) throws SQLException { ResultSet testRS ; Statement testStmt = testConn . createStatement ( ) ; testStmt . setMaxRows ( maxRows ) ; testRS = testStmt . executeQuery ( STRING ) ; testRS . next ( ) ; assertEquals ( STRING , maxRows , testRS ...
90
java-test-10848
java
What does executing this query force to be defined at session level also ?
this limit
private Statement test Bug 71396 Statement Init ( Connection test Conn , int max Rows ) throws SQL Exception { Result Set test RS ; Statement test Stmt = test Conn . create Statement ( ) ; test Stmt . set Max Rows ( max Rows ) ; test RS = test Stmt . execute Query ( STRING ) ; test RS . next ( ) ; assert Equals ( STRIN...
private Statement testBug71396StatementInit ( Connection testConn , int maxRows ) throws SQLException { ResultSet testRS ; Statement testStmt = testConn . createStatement ( ) ; testStmt . setMaxRows ( maxRows ) ; testRS = testStmt . executeQuery ( STRING ) ; testRS . next ( ) ; assertEquals ( STRING , maxRows , testRS ...
90
java-test-10849
java
How does the sql_select_limit defined test ?
executing this
private Statement test Bug 71396 Statement Init ( Connection test Conn , int max Rows ) throws SQL Exception { Result Set test RS ; Statement test Stmt = test Conn . create Statement ( ) ; test Stmt . set Max Rows ( max Rows ) ; test RS = test Stmt . execute Query ( STRING ) ; test RS . next ( ) ; assert Equals ( STRIN...
private Statement testBug71396StatementInit ( Connection testConn , int maxRows ) throws SQLException { ResultSet testRS ; Statement testStmt = testConn . createStatement ( ) ; testStmt . setMaxRows ( maxRows ) ; testRS = testStmt . executeQuery ( STRING ) ; testRS . next ( ) ; assertEquals ( STRING , maxRows , testRS ...
90
java-test-10850
java
What does the code convert into its string representation ?
an array field
private static String convert Field Value To String ( final JBBP Abstract Array Field < ? > field ) { final String Builder result ; if ( field instanceof JBBP Field Array Bit ) { final JBBP Field Array Bit array = ( JBBP Field Array Bit ) field ; result = new String Builder ( array . size ( ) ) ; for ( final byte b : a...
private static String convertFieldValueToString ( final JBBPAbstractArrayField < ? > field ) { final StringBuilder result ; if ( field instanceof JBBPFieldArrayBit ) { final JBBPFieldArrayBit array = ( JBBPFieldArrayBit ) field ; result = new StringBuilder ( array . size ( ) ) ; for ( final byte b : array . getArray ( ...
389
java-test-10851
java
When does the code retrieve the state of the labels ?
when orientation screen changed
@ Suppress Warnings ( STRING ) @ Override public void on Restore Instance State ( Parcelable state ) { if ( state instanceof Bundle ) { Bundle bundle = ( Bundle ) state ; Auto Label UI Settings auto Label UI Settings = bundle . get Parcelable ( KEY INSTANCE STATE SETTINGS ) ; if ( auto Label UI Settings != null ) { set...
@ SuppressWarnings ( STRING ) @ Override public void onRestoreInstanceState ( Parcelable state ) { if ( state instanceof Bundle ) { Bundle bundle = ( Bundle ) state ; AutoLabelUISettings autoLabelUISettings = bundle . getParcelable ( KEY_INSTANCE_STATE_SETTINGS ) ; if ( autoLabelUISettings != null ) { setSettings ( aut...
224
java-test-10852
java
What does the code retrieve when orientation screen changed ?
the state of the labels
@ Suppress Warnings ( STRING ) @ Override public void on Restore Instance State ( Parcelable state ) { if ( state instanceof Bundle ) { Bundle bundle = ( Bundle ) state ; Auto Label UI Settings auto Label UI Settings = bundle . get Parcelable ( KEY INSTANCE STATE SETTINGS ) ; if ( auto Label UI Settings != null ) { set...
@ SuppressWarnings ( STRING ) @ Override public void onRestoreInstanceState ( Parcelable state ) { if ( state instanceof Bundle ) { Bundle bundle = ( Bundle ) state ; AutoLabelUISettings autoLabelUISettings = bundle . getParcelable ( KEY_INSTANCE_STATE_SETTINGS ) ; if ( autoLabelUISettings != null ) { setSettings ( aut...
224
java-test-10857
java
What does the code populate with the relevant field value ?
the primitive property of the entity
public void fill Primitive Property ( Object entity , Set < String > key Set , Structural Property property , Field field , String node , Map < String , Object > map ) throws O Data Exception { for ( String target : key Set ) { if ( node . equals Ignore Case ( target ) ) { Object value = get Field Value By Type ( prope...
public void fillPrimitiveProperty ( Object entity , Set < String > keySet , StructuralProperty property , Field field , String node , Map < String , Object > map ) throws ODataException { for ( String target : keySet ) { if ( node . equalsIgnoreCase ( target ) ) { Object value = getFieldValueByType ( property . getType...
120
java-test-10859
java
What is contained in rsetuids list ?
repsetuid
private boolean contains Rep Set UID ( List < Replication Set UID > rset Uids , Replication Set UID rep Set UID ) { for ( Replication Set UID rset Uid : rset Uids ) { if ( rset Uid . get Id ( ) == rep Set UID . get Id ( ) ) { return BOOL ; } } return BOOL ; }
private boolean containsRepSetUID ( List < ReplicationSetUID > rsetUids , ReplicationSetUID repSetUID ) { for ( ReplicationSetUID rsetUid : rsetUids ) { if ( rsetUid . getId ( ) == repSetUID . getId ( ) ) { return _BOOL ; } } return _BOOL ; }
65
java-test-10860
java
Where is repsetuid contained already ?
in rsetuids list
private boolean contains Rep Set UID ( List < Replication Set UID > rset Uids , Replication Set UID rep Set UID ) { for ( Replication Set UID rset Uid : rset Uids ) { if ( rset Uid . get Id ( ) == rep Set UID . get Id ( ) ) { return BOOL ; } } return BOOL ; }
private boolean containsRepSetUID ( List < ReplicationSetUID > rsetUids , ReplicationSetUID repSetUID ) { for ( ReplicationSetUID rsetUid : rsetUids ) { if ( rsetUid . getId ( ) == repSetUID . getId ( ) ) { return _BOOL ; } } return _BOOL ; }
65
java-test-10861
java
What does the code add ?
a session listener for session change events
public void add Session Listener ( Session Listener listener , boolean force ) throws Session Exception { if ( ! force && session State != Session State . VALID ) { throw new Session Exception ( Session Bundle . rb Name , STRING , null ) ; } local Session Event Listeners . add ( listener ) ; }
public void addSessionListener ( SessionListener listener , boolean force ) throws SessionException { if ( ! force && sessionState != SessionState . VALID ) { throw new SessionException ( SessionBundle . rbName , STRING , null ) ; } localSessionEventListeners . add ( listener ) ; }
59
java-test-10862
java
What do an empty keystore use ?
the specified keystoretype
public static Key Store create Empty Key Store ( String key Store Type , String provider ) { if ( key Store Type == null ) { key Store Type = STRING ; } Key Store key Store ; try { if ( provider == null ) { key Store = Key Store . get Instance ( key Store Type ) ; } else { key Store = Key Store . get Instance ( key Sto...
public static KeyStore createEmptyKeyStore ( String keyStoreType , String provider ) { if ( keyStoreType == null ) { keyStoreType = STRING ; } KeyStore keyStore ; try { if ( provider == null ) { keyStore = KeyStore . getInstance ( keyStoreType ) ; } else { keyStore = KeyStore . getInstance ( keyStoreType , provider ) ;...
139
java-test-10863
java
How is validation performed ?
by checking that the parameter name is present in the list of names the label is known by
private void validate Names ( Label label , Parameter parameter ) throws Exception { String [ ] options = label . get Names ( ) ; String name = parameter . get Name ( ) ; if ( ! contains ( options , name ) ) { String require = label . get Name ( ) ; if ( name != require ) { if ( name == null || require == null ) { thro...
private void validateNames ( Label label , Parameter parameter ) throws Exception { String [ ] options = label . getNames ( ) ; String name = parameter . getName ( ) ; if ( ! contains ( options , name ) ) { String require = label . getName ( ) ; if ( name != require ) { if ( name == null || require == null ) { throw ne...
119
java-test-10864
java
Where did the names declare ?
within the union
private void validate Names ( Label label , Parameter parameter ) throws Exception { String [ ] options = label . get Names ( ) ; String name = parameter . get Name ( ) ; if ( ! contains ( options , name ) ) { String require = label . get Name ( ) ; if ( name != require ) { if ( name == null || require == null ) { thro...
private void validateNames ( Label label , Parameter parameter ) throws Exception { String [ ] options = label . getNames ( ) ; String name = parameter . getName ( ) ; if ( ! contains ( options , name ) ) { String require = label . getName ( ) ; if ( name != require ) { if ( name == null || require == null ) { throw ne...
119
java-test-10865
java
What is this used ?
to ensure that the if the label is a union the parameter is one of the names declared within the union
private void validate Names ( Label label , Parameter parameter ) throws Exception { String [ ] options = label . get Names ( ) ; String name = parameter . get Name ( ) ; if ( ! contains ( options , name ) ) { String require = label . get Name ( ) ; if ( name != require ) { if ( name == null || require == null ) { thro...
private void validateNames ( Label label , Parameter parameter ) throws Exception { String [ ] options = label . getNames ( ) ; String name = parameter . getName ( ) ; if ( ! contains ( options , name ) ) { String require = label . getName ( ) ; if ( name != require ) { if ( name == null || require == null ) { throw ne...
119
java-test-10867
java
When do edittext text update ?
after selected
private boolean select Item ( int position ) { dis Miss Or Update Popup Window ( ) ; if ( position >= NUM && m Cache Data List . size ( ) > position ) { set Text ( m Cache Data List . get ( position ) ) ; return BOOL ; } return BOOL ; }
private boolean selectItem ( int position ) { disMissOrUpdatePopupWindow ( ) ; if ( position >= _NUM && mCacheDataList . size ( ) > position ) { setText ( mCacheDataList . get ( position ) ) ; return _BOOL ; } return _BOOL ; }
58
java-test-10868
java
What do this handler clear ?
all the managed routes
public void stop ( ) { write . lock ( ) ; try { sorted . clear ( ) ; for ( Route route : routes . values ( ) ) { route . destroy ( ) ; } routes . clear ( ) ; } finally { write . unlock ( ) ; } }
public void stop ( ) { write . lock ( ) ; try { sorted . clear ( ) ; for ( Route route : routes . values ( ) ) { route . destroy ( ) ; } routes . clear ( ) ; } finally { write . unlock ( ) ; } }
56
java-test-10869
java
What does the code create ?
a new sdpannounceparser
public SDP Announce Parser ( String message ) { int start = NUM ; String line = null ; if ( message == null ) return ; sdp Message = new Vector ( ) ; String sdp Announce = message . trim ( ) + STRING ; while ( start < sdp Announce . length ( ) ) { int lf Pos = sdp Announce . index Of ( STRING , start ) ; int cr Pos = s...
public SDPAnnounceParser ( String message ) { int start = _NUM ; String line = null ; if ( message == null ) return ; sdpMessage = new Vector ( ) ; String sdpAnnounce = message . trim ( ) + STRING ; while ( start < sdpAnnounce . length ( ) ) { int lfPos = sdpAnnounce . indexOf ( STRING , start ) ; int crPos = sdpAnnoun...
298
java-test-10870
java
What never modifies the input automata languages ?
an automaton that accepts the intersection of the languages of the given automata
static public Automaton intersection ( Automaton a1 , Automaton a2 ) { if ( a1 == a2 ) { return a1 ; } if ( a1 . get Num States ( ) == NUM ) { return a1 ; } if ( a2 . get Num States ( ) == NUM ) { return a2 ; } Transition [ ] [ ] transitions 1 = a1 . get Sorted Transitions ( ) ; Transition [ ] [ ] transitions 2 = a2 . ...
static public Automaton intersection ( Automaton a1 , Automaton a2 ) { if ( a1 == a2 ) { return a1 ; } if ( a1 . getNumStates ( ) == _NUM ) { return a1 ; } if ( a2 . getNumStates ( ) == _NUM ) { return a2 ; } Transition [ ] [ ] transitions1 = a1 . getSortedTransitions ( ) ; Transition [ ] [ ] transitions2 = a2 . getSor...
511
java-test-10871
java
What does an automaton accept ?
the intersection of the languages of the given automata
static public Automaton intersection ( Automaton a1 , Automaton a2 ) { if ( a1 == a2 ) { return a1 ; } if ( a1 . get Num States ( ) == NUM ) { return a1 ; } if ( a2 . get Num States ( ) == NUM ) { return a2 ; } Transition [ ] [ ] transitions 1 = a1 . get Sorted Transitions ( ) ; Transition [ ] [ ] transitions 2 = a2 . ...
static public Automaton intersection ( Automaton a1 , Automaton a2 ) { if ( a1 == a2 ) { return a1 ; } if ( a1 . getNumStates ( ) == _NUM ) { return a1 ; } if ( a2 . getNumStates ( ) == _NUM ) { return a2 ; } Transition [ ] [ ] transitions1 = a1 . getSortedTransitions ( ) ; Transition [ ] [ ] transitions2 = a2 . getSor...
511
java-test-10872
java
What does an automaton that accepts the intersection of the languages of the given automata never modify ?
the input automata languages
static public Automaton intersection ( Automaton a1 , Automaton a2 ) { if ( a1 == a2 ) { return a1 ; } if ( a1 . get Num States ( ) == NUM ) { return a1 ; } if ( a2 . get Num States ( ) == NUM ) { return a2 ; } Transition [ ] [ ] transitions 1 = a1 . get Sorted Transitions ( ) ; Transition [ ] [ ] transitions 2 = a2 . ...
static public Automaton intersection ( Automaton a1 , Automaton a2 ) { if ( a1 == a2 ) { return a1 ; } if ( a1 . getNumStates ( ) == _NUM ) { return a1 ; } if ( a2 . getNumStates ( ) == _NUM ) { return a2 ; } Transition [ ] [ ] transitions1 = a1 . getSortedTransitions ( ) ; Transition [ ] [ ] transitions2 = a2 . getSor...
511
java-test-10873
java
What does the code return ?
the given byte array hex encoded
public static String bytes To Hex String ( byte [ ] bytes ) { String Buffer buf = new String Buffer ( bytes . length * NUM ) ; for ( byte b : bytes ) { String s = Integer . to String ( NUM & b , NUM ) ; if ( s . length ( ) < NUM ) buf . append ( STRING ) ; buf . append ( s ) ; } return buf . to String ( ) ; }
public static String bytesToHexString ( byte [ ] bytes ) { StringBuffer buf = new StringBuffer ( bytes . length * _NUM ) ; for ( byte b : bytes ) { String s = Integer . toString ( _NUM & b , _NUM ) ; if ( s . length ( ) < _NUM ) buf . append ( STRING ) ; buf . append ( s ) ; } return buf . toString ( ) ; }
86
java-test-10874
java
What will it add to aggval ?
new value
@ Override public void agg ( Object new Val ) { if ( first Time ) { agg Val = ( Big Decimal ) new Val ; first Time = BOOL ; } else { agg Val = agg Val . add ( ( Big Decimal ) new Val ) ; } }
@ Override public void agg ( Object newVal ) { if ( firstTime ) { aggVal = ( BigDecimal ) newVal ; firstTime = _BOOL ; } else { aggVal = aggVal . add ( ( BigDecimal ) newVal ) ; } }
53
java-test-10875
java
What will this method update ?
the aggval
@ Override public void agg ( Object new Val ) { if ( first Time ) { agg Val = ( Big Decimal ) new Val ; first Time = BOOL ; } else { agg Val = agg Val . add ( ( Big Decimal ) new Val ) ; } }
@ Override public void agg ( Object newVal ) { if ( firstTime ) { aggVal = ( BigDecimal ) newVal ; firstTime = _BOOL ; } else { aggVal = aggVal . add ( ( BigDecimal ) newVal ) ; } }
53
java-test-10876
java
What does the code add to the list ?
a set of attributes
public void add Attributes ( Attribute Set attributes ) { Enumeration names = attributes . get Attribute Names ( ) ; while ( names . has More Elements ( ) ) { Object name = names . next Element ( ) ; add Attribute ( name , attributes . get Attribute ( name ) ) ; } }
public void addAttributes ( AttributeSet attributes ) { Enumeration names = attributes . getAttributeNames ( ) ; while ( names . hasMoreElements ( ) ) { Object name = names . nextElement ( ) ; addAttribute ( name , attributes . getAttribute ( name ) ) ; } }
58
java-test-10881
java
How does a string split ?
in several parts ( tokens ) that are separated by single delimiter characters
public static String [ ] splitc ( String src , char delimiter ) { if ( src . length ( ) == NUM ) { return new String [ ] { EMPTY } ; } char [ ] srcc = src . to Char Array ( ) ; int maxparts = srcc . length + NUM ; int [ ] start = new int [ maxparts ] ; int [ ] end = new int [ maxparts ] ; int count = NUM ; start [ NUM ...
public static String [ ] splitc ( String src , char delimiter ) { if ( src . length ( ) == _NUM ) { return new String [ ] { EMPTY } ; } char [ ] srcc = src . toCharArray ( ) ; int maxparts = srcc . length + _NUM ; int [ ] start = new int [ maxparts ] ; int [ ] end = new int [ maxparts ] ; int count = _NUM ; start [ _NU...
316
java-test-10882
java
What may they contain ?
image references
synchronized void start Running Images ( ) { queue . remove All Elements ( ) ; Vector urls = new Vector ( ) ; for ( Enumeration e = images . keys ( ) ; e . has More Elements ( ) ; ) { Component img Comp = ( Component ) e . next Element ( ) ; String image Url = ( String ) images . get ( img Comp ) ; int url Index = urls...
synchronized void startRunningImages ( ) { queue . removeAllElements ( ) ; Vector urls = new Vector ( ) ; for ( Enumeration e = images . keys ( ) ; e . hasMoreElements ( ) ; ) { Component imgComp = ( Component ) e . nextElement ( ) ; String imageUrl = ( String ) images . get ( imgComp ) ; int urlIndex = urls . indexOf ...
200
java-test-10883
java
When is this called since they may contain image references ?
only after all css files have been downloaded
synchronized void start Running Images ( ) { queue . remove All Elements ( ) ; Vector urls = new Vector ( ) ; for ( Enumeration e = images . keys ( ) ; e . has More Elements ( ) ; ) { Component img Comp = ( Component ) e . next Element ( ) ; String image Url = ( String ) images . get ( img Comp ) ; int url Index = urls...
synchronized void startRunningImages ( ) { queue . removeAllElements ( ) ; Vector urls = new Vector ( ) ; for ( Enumeration e = images . keys ( ) ; e . hasMoreElements ( ) ; ) { Component imgComp = ( Component ) e . nextElement ( ) ; String imageUrl = ( String ) images . get ( imgComp ) ; int urlIndex = urls . indexOf ...
200
java-test-10884
java
What does the code insert ?
a record in the database
public int insert ( String table , String key , Hash Map < String , Byte Iterator > values ) { long st = System . nano Time ( ) ; int res = db . insert ( table , key , values ) ; long en = System . nano Time ( ) ; measurements . measure ( STRING , ( int ) ( ( en - st ) / NUM ) ) ; measurements . report Return Code ( ST...
public int insert ( String table , String key , HashMap < String , ByteIterator > values ) { long st = System . nanoTime ( ) ; int res = _db . insert ( table , key , values ) ; long en = System . nanoTime ( ) ; _measurements . measure ( STRING , ( int ) ( ( en - st ) / _NUM ) ) ; _measurements . reportReturnCode ( STRI...
90
java-test-10885
java
For what purpose is the nodeiterator added to a list of nodeiterators ?
so that it can be removed to free up the dom nodes it references
@ Override public Node Iterator create Node Iterator ( Node root , int what To Show , Node Filter filter , boolean entity Reference Expansion ) { if ( root == null ) { String msg = DOM Message Formatter . format Message ( DOM Message Formatter . DOM DOMAIN , STRING , null ) ; throw new DOM Exception ( DOM Exception . N...
@ Override public NodeIterator createNodeIterator ( Node root , int whatToShow , NodeFilter filter , boolean entityReferenceExpansion ) { if ( root == null ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , STRING , null ) ; throw new DOMException ( DOMException . NOT_SUPPORTED_ER...
149
java-test-10886
java
What does the code write if stroke is an instance of basicstroke it will call writewidth , writecap , writejoin , writemiterlimit and writedash , if any were different than the current stroke ?
the current stroke
protected void write Stroke ( Stroke stroke ) throws IO Exception { if ( stroke instanceof Basic Stroke ) { Basic Stroke ns = ( Basic Stroke ) stroke ; int current Cap = - NUM , current Join = - NUM ; float current Width = - NUM , current Limit = - NUM , current Dash Phase = - NUM ; float [ ] current Dash Array = null ...
protected void writeStroke ( Stroke stroke ) throws IOException { if ( stroke instanceof BasicStroke ) { BasicStroke ns = ( BasicStroke ) stroke ; int currentCap = - _NUM , currentJoin = - _NUM ; float currentWidth = - _NUM , currentLimit = - _NUM , currentDashPhase = - _NUM ; float [ ] currentDashArray = null ; if ( (...
331
java-test-10887
java
How does the code initialize it ?
with an unknown word
public static void clear ( ) { long lock stamp = lock . write Lock ( ) ; try { id To String = new Array List < > ( ) ; string To Id = new Hash Map < > ( ) ; id To String . add ( UNKNOWN ID , UNKNOWN WORD ) ; string To Id . put ( UNKNOWN WORD , UNKNOWN ID ) ; } finally { lock . unlock Write ( lock stamp ) ; } }
public static void clear ( ) { long lock_stamp = lock . writeLock ( ) ; try { idToString = new ArrayList < > ( ) ; stringToId = new HashMap < > ( ) ; idToString . add ( UNKNOWN_ID , UNKNOWN_WORD ) ; stringToId . put ( UNKNOWN_WORD , UNKNOWN_ID ) ; } finally { lock . unlockWrite ( lock_stamp ) ; } }
84
java-test-10889
java
What does the code create ?
the peer for a dragsourcecontext
@ Override public Drag Source Context Peer create Drag Source Context Peer ( Drag Gesture Event dge ) throws Invalid Dn D Operation Exception { final Lightweight Frame f = Sun Toolkit . get Lightweight Frame ( dge . get Component ( ) ) ; if ( f != null ) { return f . create Drag Source Context Peer ( dge ) ; } return W...
@ Override public DragSourceContextPeer createDragSourceContextPeer ( DragGestureEvent dge ) throws InvalidDnDOperationException { final LightweightFrame f = SunToolkit . getLightweightFrame ( dge . getComponent ( ) ) ; if ( f != null ) { return f . createDragSourceContextPeer ( dge ) ; } return WDragSourceContextPeer ...
82
java-test-10890
java
By how much does the code add the parking prices to the priority list only if the car would run out of energy ) ?
as far as needed
private Priority Queue < Facility Charging Price > update Charging Price ( Priority Queue < Facility Charging Price > charging Price ) { while ( last Charging Price Parking Index < max Chargable Energy . size ( ) && get Minimum Energy That Needs To Be Charged ( ) <= NUM ) { charging Price = add New Parking Charging Pri...
private PriorityQueue < FacilityChargingPrice > updateChargingPrice ( PriorityQueue < FacilityChargingPrice > chargingPrice ) { while ( lastChargingPriceParkingIndex < maxChargableEnergy . size ( ) && getMinimumEnergyThatNeedsToBeCharged ( ) <= _NUM ) { chargingPrice = addNewParkingChargingPrices ( lastChargingPricePar...
85
java-test-10891
java
What does the code add to the priority list only if the car would run out of energy ) as far as needed ?
the parking prices
private Priority Queue < Facility Charging Price > update Charging Price ( Priority Queue < Facility Charging Price > charging Price ) { while ( last Charging Price Parking Index < max Chargable Energy . size ( ) && get Minimum Energy That Needs To Be Charged ( ) <= NUM ) { charging Price = add New Parking Charging Pri...
private PriorityQueue < FacilityChargingPrice > updateChargingPrice ( PriorityQueue < FacilityChargingPrice > chargingPrice ) { while ( lastChargingPriceParkingIndex < maxChargableEnergy . size ( ) && getMinimumEnergyThatNeedsToBeCharged ( ) <= _NUM ) { chargingPrice = addNewParkingChargingPrices ( lastChargingPricePar...
85
java-test-10892
java
What does the code load to database serial ?
a map from achievement identifier
public Map < String , Integer > load Identifier Id Pairs ( DB Transaction transaction ) throws SQL Exception { Map < String , Integer > map = new Hash Map < String , Integer > ( ) ; String query = STRING ; Result Set set = transaction . query ( query , new Hash Map < String , Object > ( ) ) ; while ( set . next ( ) ) {...
public Map < String , Integer > loadIdentifierIdPairs ( DBTransaction transaction ) throws SQLException { Map < String , Integer > map = new HashMap < String , Integer > ( ) ; String query = STRING ; ResultSet set = transaction . query ( query , new HashMap < String , Object > ( ) ) ; while ( set . next ( ) ) { String ...
111
java-test-10893
java
What should call this method register fm radio listener ?
register
public void register Fm Radio Listener ( Fm Radio Listener callback ) { synchronized ( m Records ) { Record record = null ; int hash Code = callback . hash Code ( ) ; final int n = m Records . size ( ) ; for ( int i = NUM ; i < n ; i ++ ) { record = m Records . get ( i ) ; if ( hash Code == record . m Hash Code ) { ret...
public void registerFmRadioListener ( FmRadioListener callback ) { synchronized ( mRecords ) { Record record = null ; int hashCode = callback . hashCode ( ) ; final int n = mRecords . size ( ) ; for ( int i = _NUM ; i < n ; i ++ ) { record = mRecords . get ( i ) ; if ( hashCode == record . mHashCode ) { return ; } } re...
120
java-test-10894
java
What should register call ?
this method register fm radio listener
public void register Fm Radio Listener ( Fm Radio Listener callback ) { synchronized ( m Records ) { Record record = null ; int hash Code = callback . hash Code ( ) ; final int n = m Records . size ( ) ; for ( int i = NUM ; i < n ; i ++ ) { record = m Records . get ( i ) ; if ( hash Code == record . m Hash Code ) { ret...
public void registerFmRadioListener ( FmRadioListener callback ) { synchronized ( mRecords ) { Record record = null ; int hashCode = callback . hashCode ( ) ; final int n = mRecords . size ( ) ; for ( int i = _NUM ; i < n ; i ++ ) { record = mRecords . get ( i ) ; if ( hashCode == record . mHashCode ) { return ; } } re...
120
java-test-10895
java
What does the code create from a string of the form " a . b . c . d " with an option " / n " suffix ?
a cidr
public CIDR ( String cidr Or IP ) { String [ ] parts = cidr Or IP . split ( STRING ) ; if ( ( parts . length < NUM ) || ( parts . length > NUM ) ) throw new Illegal Argument Exception ( cidr Or IP + STRING ) ; bits = ( NUM == parts . length ) ? NUM : Short . parse Short ( parts [ NUM ] ) ; if ( ( bits < NUM ) || ( bits...
public CIDR ( String cidrOrIP ) { String [ ] parts = cidrOrIP . split ( STRING ) ; if ( ( parts . length < _NUM ) || ( parts . length > _NUM ) ) throw new IllegalArgumentException ( cidrOrIP + STRING ) ; bits = ( _NUM == parts . length ) ? _NUM : Short . parseShort ( parts [ _NUM ] ) ; if ( ( bits < _NUM ) || ( bits > ...
123
java-test-10896
java
How do i would ?
serial
public byte [ ] read EEPROM ( Device Handle handle , short offset , int length ) throws Illegal Argument Exception { if ( offset + length > NUM ) { throw new Illegal Argument Exception ( STRING + STRING + ( offset + length ) + STRING ) ; } byte [ ] data = new byte [ length ] ; Byte Buffer buffer = Byte Buffer . allocat...
public byte [ ] readEEPROM ( DeviceHandle handle , short offset , int length ) throws IllegalArgumentException { if ( offset + length > _NUM ) { throw new IllegalArgumentException ( STRING + STRING + ( offset + length ) + STRING ) ; } byte [ ] data = new byte [ length ] ; ByteBuffer buffer = ByteBuffer . allocateDirect...
208
java-test-10897
java
For what purpose does the code write the url ?
to fetch the next stage into the shellcode
private byte [ ] write Pkg Url ( byte [ ] stage , String url ) throws Unsupported Encoding Exception { byte [ ] pattern = new byte [ NUM ] ; Arrays . fill ( pattern , ( byte ) NUM ) ; List a = Arrays . as List ( Array Utils . to Object ( stage ) ) ; List b = Arrays . as List ( Array Utils . to Object ( pattern ) ) ; in...
private byte [ ] writePkgUrl ( byte [ ] stage , String url ) throws UnsupportedEncodingException { byte [ ] pattern = new byte [ _NUM ] ; Arrays . fill ( pattern , ( byte ) _NUM ) ; List a = Arrays . asList ( ArrayUtils . toObject ( stage ) ) ; List b = Arrays . asList ( ArrayUtils . toObject ( pattern ) ) ; int idx = ...
155
java-test-10898
java
What does the code remove from my plan tab if any exist on tab change ?
share cards
private void remove All Share Cards ( ) { for ( Iterator < Offer > iterator = offers . iterator ( ) ; iterator . has Next ( ) ; ) { Offer offer = iterator . next ( ) ; if ( offer . is Share Card ( ) ) { iterator . remove ( ) ; } } notify Data Set Changed ( ) ; }
private void removeAllShareCards ( ) { for ( Iterator < Offer > iterator = offers . iterator ( ) ; iterator . hasNext ( ) ; ) { Offer offer = iterator . next ( ) ; if ( offer . isShareCard ( ) ) { iterator . remove ( ) ; } } notifyDataSetChanged ( ) ; }
68
java-test-10899
java
Where do any exist ?
on tab change
private void remove All Share Cards ( ) { for ( Iterator < Offer > iterator = offers . iterator ( ) ; iterator . has Next ( ) ; ) { Offer offer = iterator . next ( ) ; if ( offer . is Share Card ( ) ) { iterator . remove ( ) ; } } notify Data Set Changed ( ) ; }
private void removeAllShareCards ( ) { for ( Iterator < Offer > iterator = offers . iterator ( ) ; iterator . hasNext ( ) ; ) { Offer offer = iterator . next ( ) ; if ( offer . isShareCard ( ) ) { iterator . remove ( ) ; } } notifyDataSetChanged ( ) ; }
68
java-test-10902
java
What given in a string ?
all players
public void recruit Players From Str ( String players Str ) { String [ ] players = players Str . split ( STRING ) ; String curr Line = players [ NUM ] ; int i = NUM ; while ( ! curr Line . equals ( STRING ) ) { recruit Player CSV ( curr Line , BOOL ) ; curr Line = players [ ++ i ] ; } recruit Walk Ons ( ) ; curr Line =...
public void recruitPlayersFromStr ( String playersStr ) { String [ ] players = playersStr . split ( STRING ) ; String currLine = players [ _NUM ] ; int i = _NUM ; while ( ! currLine . equals ( STRING ) ) { recruitPlayerCSV ( currLine , _BOOL ) ; currLine = players [ ++ i ] ; } recruitWalkOns ( ) ; currLine = players [ ...
119
java-test-10903
java
For what purpose do the xml config file apply to it then ?
to configure it
@ Suppress Warnings ( STRING ) protected Context Handler create Context ( String filename ) throws Exception { Resource resource = Resource . new Resource ( filename ) ; if ( ! resource . exists ( ) ) { return null ; } Xml Configuration xml Configuration = new Xml Configuration ( resource . get URL ( ) ) ; Hash Map pro...
@ SuppressWarnings ( STRING ) protected ContextHandler createContext ( String filename ) throws Exception { Resource resource = Resource . newResource ( filename ) ; if ( ! resource . exists ( ) ) { return null ; } XmlConfiguration xmlConfiguration = new XmlConfiguration ( resource . getURL ( ) ) ; HashMap properties =...
190
java-test-10904
java
What does the code create ?
a webappcontext for the webapp being hot deployed
@ Suppress Warnings ( STRING ) protected Context Handler create Context ( String filename ) throws Exception { Resource resource = Resource . new Resource ( filename ) ; if ( ! resource . exists ( ) ) { return null ; } Xml Configuration xml Configuration = new Xml Configuration ( resource . get URL ( ) ) ; Hash Map pro...
@ SuppressWarnings ( STRING ) protected ContextHandler createContext ( String filename ) throws Exception { Resource resource = Resource . newResource ( filename ) ; if ( ! resource . exists ( ) ) { return null ; } XmlConfiguration xmlConfiguration = new XmlConfiguration ( resource . getURL ( ) ) ; HashMap properties =...
190
java-test-10905
java
In which direction being the webapp deployed ?
hot
@ Suppress Warnings ( STRING ) protected Context Handler create Context ( String filename ) throws Exception { Resource resource = Resource . new Resource ( filename ) ; if ( ! resource . exists ( ) ) { return null ; } Xml Configuration xml Configuration = new Xml Configuration ( resource . get URL ( ) ) ; Hash Map pro...
@ SuppressWarnings ( STRING ) protected ContextHandler createContext ( String filename ) throws Exception { Resource resource = Resource . newResource ( filename ) ; if ( ! resource . exists ( ) ) { return null ; } XmlConfiguration xmlConfiguration = new XmlConfiguration ( resource . getURL ( ) ) ; HashMap properties =...
190
java-test-10907
java
What does the code skip if it is an end - of - contents tag if it is an end - of - contents tag ?
the tag and its 1 byte length of zero
private void write Tag ( ) { if ( data Pos == data Size ) return ; int tag = data [ data Pos ++ ] ; if ( is EOC ( tag ) && ( data [ data Pos ] == NUM ) ) { data Pos ++ ; write Tag ( ) ; } else new Data [ new Data Pos ++ ] = ( byte ) tag ; }
private void writeTag ( ) { if ( dataPos == dataSize ) return ; int tag = data [ dataPos ++ ] ; if ( isEOC ( tag ) && ( data [ dataPos ] == _NUM ) ) { dataPos ++ ; writeTag ( ) ; } else newData [ newDataPos ++ ] = ( byte ) tag ; }
72
java-test-10909
java
What does the code initialize to the trust managers supplied by the trust manager factory for the given trust store ?
the ssl context
public static SSL Context init Ssl Context ( SSL Context ssl Context , Key Store trust Store , Trust Manager Factory trust Manager Factory ) throws General Security Exception { trust Manager Factory . init ( trust Store ) ; ssl Context . init ( null , trust Manager Factory . get Trust Managers ( ) , null ) ; return ssl...
public static SSLContext initSslContext ( SSLContext sslContext , KeyStore trustStore , TrustManagerFactory trustManagerFactory ) throws GeneralSecurityException { trustManagerFactory . init ( trustStore ) ; sslContext . init ( null , trustManagerFactory . getTrustManagers ( ) , null ) ; return sslContext ; }
65
java-test-10912
java
What does the height of each row set ?
into the preferred height of the tallest cell in that row
public void pack Rows ( ) { if ( ! content Repaint Enabled ) { return ; } impl . set Row Height ( default Row Height ) ; for ( Column column : columns Order ) { if ( column . is Editable ( ) ) { impl . set Row Height ( default Editable Row Height ) ; break ; } } if ( all Columns Are Inline ( ) ) { return ; } int prefer...
public void packRows ( ) { if ( ! contentRepaintEnabled ) { return ; } impl . setRowHeight ( defaultRowHeight ) ; for ( Column column : columnsOrder ) { if ( column . isEditable ( ) ) { impl . setRowHeight ( defaultEditableRowHeight ) ; break ; } } if ( allColumnsAreInline ( ) ) { return ; } int preferredRowHeight = - ...
233
java-test-10913
java
What sets into the preferred height of the tallest cell in that row ?
the height of each row
public void pack Rows ( ) { if ( ! content Repaint Enabled ) { return ; } impl . set Row Height ( default Row Height ) ; for ( Column column : columns Order ) { if ( column . is Editable ( ) ) { impl . set Row Height ( default Editable Row Height ) ; break ; } } if ( all Columns Are Inline ( ) ) { return ; } int prefer...
public void packRows ( ) { if ( ! contentRepaintEnabled ) { return ; } impl . setRowHeight ( defaultRowHeight ) ; for ( Column column : columnsOrder ) { if ( column . isEditable ( ) ) { impl . setRowHeight ( defaultEditableRowHeight ) ; break ; } } if ( allColumnsAreInline ( ) ) { return ; } int preferredRowHeight = - ...
233
java-test-10915
java
What have we not matched ?
a line separator string
private void write ( byte b ) throws IO Exception { int i = NUM ; for ( i = NUM ; i < ( curr Sep . length ) ; i ++ ) { curr Sep [ i - NUM ] = curr Sep [ i ] ; } curr Sep [ i - NUM ] = b ; buf Out . write ( b ) ; if ( ( c Last >= ( line Separator Length - NUM ) ) && ( line Separator . equals ( new String ( curr Sep ) ) ...
private void write ( byte b ) throws IOException { int i = _NUM ; for ( i = _NUM ; i < ( currSep . length ) ; i ++ ) { currSep [ i - _NUM ] = currSep [ i ] ; } currSep [ i - _NUM ] = b ; bufOut . write ( b ) ; if ( ( cLast >= ( lineSeparatorLength - _NUM ) ) && ( lineSeparator . equals ( new String ( currSep ) ) ) ) { ...
165
java-test-10916
java
What have we matched ?
a line separator
private void write ( byte b ) throws IO Exception { int i = NUM ; for ( i = NUM ; i < ( curr Sep . length ) ; i ++ ) { curr Sep [ i - NUM ] = curr Sep [ i ] ; } curr Sep [ i - NUM ] = b ; buf Out . write ( b ) ; if ( ( c Last >= ( line Separator Length - NUM ) ) && ( line Separator . equals ( new String ( curr Sep ) ) ...
private void write ( byte b ) throws IOException { int i = _NUM ; for ( i = _NUM ; i < ( currSep . length ) ; i ++ ) { currSep [ i - _NUM ] = currSep [ i ] ; } currSep [ i - _NUM ] = b ; bufOut . write ( b ) ; if ( ( cLast >= ( lineSeparatorLength - _NUM ) ) && ( lineSeparator . equals ( new String ( currSep ) ) ) ) { ...
165
java-test-10917
java
How is the currently buffered line sent to the output writer if we have matched a line separator if we have matched a line separator ?
with a prepended annotation string
private void write ( byte b ) throws IO Exception { int i = NUM ; for ( i = NUM ; i < ( curr Sep . length ) ; i ++ ) { curr Sep [ i - NUM ] = curr Sep [ i ] ; } curr Sep [ i - NUM ] = b ; buf Out . write ( b ) ; if ( ( c Last >= ( line Separator Length - NUM ) ) && ( line Separator . equals ( new String ( curr Sep ) ) ...
private void write ( byte b ) throws IOException { int i = _NUM ; for ( i = _NUM ; i < ( currSep . length ) ; i ++ ) { currSep [ i - _NUM ] = currSep [ i ] ; } currSep [ i - _NUM ] = b ; bufOut . write ( b ) ; if ( ( cLast >= ( lineSeparatorLength - _NUM ) ) && ( lineSeparator . equals ( new String ( currSep ) ) ) ) { ...
165
java-test-10918
java
What does the given method throw ?
the specified exception type , including any subclasses of that type
private boolean method Throws Exception ( Method method , Class < ? extends Exception > exception Type ) { for ( Class < ? > thrown Type : method . get Exception Types ( ) ) { if ( exception Type . is Assignable From ( thrown Type ) ) return BOOL ; } return BOOL ; }
private boolean methodThrowsException ( Method method , Class < ? extends Exception > exceptionType ) { for ( Class < ? > thrownType : method . getExceptionTypes ( ) ) { if ( exceptionType . isAssignableFrom ( thrownType ) ) return _BOOL ; } return _BOOL ; }
58
java-test-10921
java
Who is making in the process ?
them all lowercase
private static Set < String > create Categories Set ( Set < String > categories ) { Set < String > result = new Hash Set < > ( ) ; for ( String cat : categories ) { result . add ( String Util . to Lower Case ( cat ) ) ; } return result ; }
private static Set < String > createCategoriesSet ( Set < String > categories ) { Set < String > result = new HashSet < > ( ) ; for ( String cat : categories ) { result . add ( StringUtil . toLowerCase ( cat ) ) ; } return result ; }
59
java-test-10922
java
How does the code create a new set making them all lowercase in the process ?
with the given categories
private static Set < String > create Categories Set ( Set < String > categories ) { Set < String > result = new Hash Set < > ( ) ; for ( String cat : categories ) { result . add ( String Util . to Lower Case ( cat ) ) ; } return result ; }
private static Set < String > createCategoriesSet ( Set < String > categories ) { Set < String > result = new HashSet < > ( ) ; for ( String cat : categories ) { result . add ( StringUtil . toLowerCase ( cat ) ) ; } return result ; }
59
java-test-10923
java
What does the code simplify ?
querying
public void handle Organisation Units ( ) { if ( user != null && is Organisation Unit Mode ( Organisation Unit Selection Mode . ACCESSIBLE ) ) { set Organisation Units ( user . get Tei Search Organisation Units With Fallback ( ) ) ; set Organisation Unit Mode ( Organisation Unit Selection Mode . DESCENDANTS ) ; } else ...
public void handleOrganisationUnits ( ) { if ( user != null && isOrganisationUnitMode ( OrganisationUnitSelectionMode . ACCESSIBLE ) ) { setOrganisationUnits ( user . getTeiSearchOrganisationUnitsWithFallback ( ) ) ; setOrganisationUnitMode ( OrganisationUnitSelectionMode . DESCENDANTS ) ; } else if ( isOrganisationUni...
145
java-test-10924
java
For what purpose does the code prepare the organisation units of the given parameters ?
to simplify querying
public void handle Organisation Units ( ) { if ( user != null && is Organisation Unit Mode ( Organisation Unit Selection Mode . ACCESSIBLE ) ) { set Organisation Units ( user . get Tei Search Organisation Units With Fallback ( ) ) ; set Organisation Unit Mode ( Organisation Unit Selection Mode . DESCENDANTS ) ; } else ...
public void handleOrganisationUnits ( ) { if ( user != null && isOrganisationUnitMode ( OrganisationUnitSelectionMode . ACCESSIBLE ) ) { setOrganisationUnits ( user . getTeiSearchOrganisationUnitsWithFallback ( ) ) ; setOrganisationUnitMode ( OrganisationUnitSelectionMode . DESCENDANTS ) ; } else if ( isOrganisationUni...
145
java-test-10925
java
What does the code prepare to simplify querying ?
the organisation units of the given parameters
public void handle Organisation Units ( ) { if ( user != null && is Organisation Unit Mode ( Organisation Unit Selection Mode . ACCESSIBLE ) ) { set Organisation Units ( user . get Tei Search Organisation Units With Fallback ( ) ) ; set Organisation Unit Mode ( Organisation Unit Selection Mode . DESCENDANTS ) ; } else ...
public void handleOrganisationUnits ( ) { if ( user != null && isOrganisationUnitMode ( OrganisationUnitSelectionMode . ACCESSIBLE ) ) { setOrganisationUnits ( user . getTeiSearchOrganisationUnitsWithFallback ( ) ) ; setOrganisationUnitMode ( OrganisationUnitSelectionMode . DESCENDANTS ) ; } else if ( isOrganisationUni...
145
java-test-10926
java
When did descendants select ?
only after invoking this method
public void handle Organisation Units ( ) { if ( user != null && is Organisation Unit Mode ( Organisation Unit Selection Mode . ACCESSIBLE ) ) { set Organisation Units ( user . get Tei Search Organisation Units With Fallback ( ) ) ; set Organisation Unit Mode ( Organisation Unit Selection Mode . DESCENDANTS ) ; } else ...
public void handleOrganisationUnits ( ) { if ( user != null && isOrganisationUnitMode ( OrganisationUnitSelectionMode . ACCESSIBLE ) ) { setOrganisationUnits ( user . getTeiSearchOrganisationUnitsWithFallback ( ) ) ; setOrganisationUnitMode ( OrganisationUnitSelectionMode . DESCENDANTS ) ; } else if ( isOrganisationUni...
145
java-test-10927
java
What is has used in dependentloadingtaskspawnerkey ?
the equals
@ Override public boolean equals ( Object o ) { if ( this == o ) return BOOL ; if ( o == null || get Class ( ) != o . get Class ( ) ) return BOOL ; Abstract Loader Factory that = ( Abstract Loader Factory ) o ; if ( class To Load != null ? ! class To Load . equals ( that . class To Load ) : that . class To Load != null...
@ Override public boolean equals ( Object o ) { if ( this == o ) return _BOOL ; if ( o == null || getClass ( ) != o . getClass ( ) ) return _BOOL ; AbstractLoaderFactory that = ( AbstractLoaderFactory ) o ; if ( classToLoad != null ? ! classToLoad . equals ( that . classToLoad ) : that . classToLoad != null ) return _B...
143
java-test-10928
java
Where is the equals has used ?
in dependentloadingtaskspawnerkey
@ Override public boolean equals ( Object o ) { if ( this == o ) return BOOL ; if ( o == null || get Class ( ) != o . get Class ( ) ) return BOOL ; Abstract Loader Factory that = ( Abstract Loader Factory ) o ; if ( class To Load != null ? ! class To Load . equals ( that . class To Load ) : that . class To Load != null...
@ Override public boolean equals ( Object o ) { if ( this == o ) return _BOOL ; if ( o == null || getClass ( ) != o . getClass ( ) ) return _BOOL ; AbstractLoaderFactory that = ( AbstractLoaderFactory ) o ; if ( classToLoad != null ? ! classToLoad . equals ( that . classToLoad ) : that . classToLoad != null ) return _B...
143
java-test-10929
java
Why is the runtimemithraconfig excluded ?
because it is based on the class name
@ Override public boolean equals ( Object o ) { if ( this == o ) return BOOL ; if ( o == null || get Class ( ) != o . get Class ( ) ) return BOOL ; Abstract Loader Factory that = ( Abstract Loader Factory ) o ; if ( class To Load != null ? ! class To Load . equals ( that . class To Load ) : that . class To Load != null...
@ Override public boolean equals ( Object o ) { if ( this == o ) return _BOOL ; if ( o == null || getClass ( ) != o . getClass ( ) ) return _BOOL ; AbstractLoaderFactory that = ( AbstractLoaderFactory ) o ; if ( classToLoad != null ? ! classToLoad . equals ( that . classToLoad ) : that . classToLoad != null ) return _B...
143
java-test-10930
java
What does the code serialize to xml ?
the test results
public void serialize ( K Xml Serializer serializer ) throws IO Exception { m Device Info . serialize ( serializer ) ; serialize Host Info ( serializer ) ; serialize Test Summary ( serializer ) ; monkey Tag . serialize ( serializer ) ; List < Test Package Result > pkgs = new Array List < Test Package Result > ( m Packa...
public void serialize ( KXmlSerializer serializer ) throws IOException { mDeviceInfo . serialize ( serializer ) ; serializeHostInfo ( serializer ) ; serializeTestSummary ( serializer ) ; monkeyTag . serialize ( serializer ) ; List < TestPackageResult > pkgs = new ArrayList < TestPackageResult > ( mPackageMap . values (...
102
java-test-10932
java
What does the code create ?
a class map for specific class
protected Class Map create Class Map ( Class c ) { Class Map class Map = new Class Map ( c ) ; class Method Maps . put ( c , class Map ) ; cached Class Names . add ( c . get Name ( ) ) ; return class Map ; }
protected ClassMap createClassMap ( Class c ) { ClassMap classMap = new ClassMap ( c ) ; classMethodMaps . put ( c , classMap ) ; cachedClassNames . add ( c . getName ( ) ) ; return classMap ; }
54
java-test-10933
java
For what purpose does the code add the qualified name to the name - > class map also ?
for later classloader change detection
protected Class Map create Class Map ( Class c ) { Class Map class Map = new Class Map ( c ) ; class Method Maps . put ( c , class Map ) ; cached Class Names . add ( c . get Name ( ) ) ; return class Map ; }
protected ClassMap createClassMap ( Class c ) { ClassMap classMap = new ClassMap ( c ) ; classMethodMaps . put ( c , classMap ) ; cachedClassNames . add ( c . getName ( ) ) ; return classMap ; }
54
java-test-10934
java
What does the code add to the name - > class map also for later classloader change detection ?
the qualified name
protected Class Map create Class Map ( Class c ) { Class Map class Map = new Class Map ( c ) ; class Method Maps . put ( c , class Map ) ; cached Class Names . add ( c . get Name ( ) ) ; return class Map ; }
protected ClassMap createClassMap ( Class c ) { ClassMap classMap = new ClassMap ( c ) ; classMethodMaps . put ( c , classMap ) ; cachedClassNames . add ( c . getName ( ) ) ; return classMap ; }
54
java-test-10936
java
What does the code compare ?
the two sets of bytes starting at the given offset
public int compare ( Random Access Data o1 , Random Access Data o2 , int start Offset ) { if ( o1 == o2 ) { return NUM ; } if ( o1 == POSITIVE INFINITY ) { return NUM ; } if ( o2 == POSITIVE INFINITY ) { return - NUM ; } int min Bytes Len = Math . min ( o1 . size , o2 . size ) ; for ( int i = start Offset ; i < min Byt...
public int compare ( RandomAccessData o1 , RandomAccessData o2 , int startOffset ) { if ( o1 == o2 ) { return _NUM ; } if ( o1 == POSITIVE_INFINITY ) { return _NUM ; } if ( o2 == POSITIVE_INFINITY ) { return - _NUM ; } int minBytesLen = Math . min ( o1 . size , o2 . size ) ; for ( int i = startOffset ; i < minBytesLen ...
141
java-test-10937
java
What did the client issue ?
the starttls command
public SSL Socket create SSL Socket ( Socket socket ) throws IO Exception { SSL Socket Factory sf = ( ( SSL Socket Factory ) SSL Socket Factory . get Default ( ) ) ; Inet Socket Address remote Address = ( Inet Socket Address ) socket . get Remote Socket Address ( ) ; SSL Socket s = ( SSL Socket ) ( sf . create Socket (...
public SSLSocket createSSLSocket ( Socket socket ) throws IOException { SSLSocketFactory sf = ( ( SSLSocketFactory ) SSLSocketFactory . getDefault ( ) ) ; InetSocketAddress remoteAddress = ( InetSocketAddress ) socket . getRemoteSocketAddress ( ) ; SSLSocket s = ( SSLSocket ) ( sf . createSocket ( socket , remoteAddres...
122
java-test-10938
java
What does the code create ?
a ssl socket that wraps the existing socket
public SSL Socket create SSL Socket ( Socket socket ) throws IO Exception { SSL Socket Factory sf = ( ( SSL Socket Factory ) SSL Socket Factory . get Default ( ) ) ; Inet Socket Address remote Address = ( Inet Socket Address ) socket . get Remote Socket Address ( ) ; SSL Socket s = ( SSL Socket ) ( sf . create Socket (...
public SSLSocket createSSLSocket ( Socket socket ) throws IOException { SSLSocketFactory sf = ( ( SSLSocketFactory ) SSLSocketFactory . getDefault ( ) ) ; InetSocketAddress remoteAddress = ( InetSocketAddress ) socket . getRemoteSocketAddress ( ) ; SSLSocket s = ( SSLSocket ) ( sf . createSocket ( socket , remoteAddres...
122
java-test-10939
java
What does the existing socket wrap ?
a ssl socket
public SSL Socket create SSL Socket ( Socket socket ) throws IO Exception { SSL Socket Factory sf = ( ( SSL Socket Factory ) SSL Socket Factory . get Default ( ) ) ; Inet Socket Address remote Address = ( Inet Socket Address ) socket . get Remote Socket Address ( ) ; SSL Socket s = ( SSL Socket ) ( sf . create Socket (...
public SSLSocket createSSLSocket ( Socket socket ) throws IOException { SSLSocketFactory sf = ( ( SSLSocketFactory ) SSLSocketFactory . getDefault ( ) ) ; InetSocketAddress remoteAddress = ( InetSocketAddress ) socket . getRemoteSocketAddress ( ) ; SSLSocket s = ( SSLSocket ) ( sf . createSocket ( socket , remoteAddres...
122
java-test-10940
java
When is this method called ?
after the client issued the starttls command
public SSL Socket create SSL Socket ( Socket socket ) throws IO Exception { SSL Socket Factory sf = ( ( SSL Socket Factory ) SSL Socket Factory . get Default ( ) ) ; Inet Socket Address remote Address = ( Inet Socket Address ) socket . get Remote Socket Address ( ) ; SSL Socket s = ( SSL Socket ) ( sf . create Socket (...
public SSLSocket createSSLSocket ( Socket socket ) throws IOException { SSLSocketFactory sf = ( ( SSLSocketFactory ) SSLSocketFactory . getDefault ( ) ) ; InetSocketAddress remoteAddress = ( InetSocketAddress ) socket . getRemoteSocketAddress ( ) ; SSLSocket s = ( SSLSocket ) ( sf . createSocket ( socket , remoteAddres...
122
java-test-10941
java
What wraps a ssl socket ?
the existing socket
public SSL Socket create SSL Socket ( Socket socket ) throws IO Exception { SSL Socket Factory sf = ( ( SSL Socket Factory ) SSL Socket Factory . get Default ( ) ) ; Inet Socket Address remote Address = ( Inet Socket Address ) socket . get Remote Socket Address ( ) ; SSL Socket s = ( SSL Socket ) ( sf . create Socket (...
public SSLSocket createSSLSocket ( Socket socket ) throws IOException { SSLSocketFactory sf = ( ( SSLSocketFactory ) SSLSocketFactory . getDefault ( ) ) ; InetSocketAddress remoteAddress = ( InetSocketAddress ) socket . getRemoteSocketAddress ( ) ; SSLSocket s = ( SSLSocket ) ( sf . createSocket ( socket , remoteAddres...
122
java-test-10942
java
What may p > subclasses override this method ?
to configure the key stores , enabled protocols / cipher suites , enforce client authentication , etc
public SSL Socket create SSL Socket ( Socket socket ) throws IO Exception { SSL Socket Factory sf = ( ( SSL Socket Factory ) SSL Socket Factory . get Default ( ) ) ; Inet Socket Address remote Address = ( Inet Socket Address ) socket . get Remote Socket Address ( ) ; SSL Socket s = ( SSL Socket ) ( sf . create Socket (...
public SSLSocket createSSLSocket ( Socket socket ) throws IOException { SSLSocketFactory sf = ( ( SSLSocketFactory ) SSLSocketFactory . getDefault ( ) ) ; InetSocketAddress remoteAddress = ( InetSocketAddress ) socket . getRemoteSocketAddress ( ) ; SSLSocket s = ( SSLSocket ) ( sf . createSocket ( socket , remoteAddres...
122
java-test-10943
java
What do i draw to zoom the map to ?
a box
public void mouse Dragged ( Mouse Event e ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( get ID ( ) + STRING ) ; } super . mouse Dragged ( e ) ; Object obj = e . get Source ( ) ; if ( obj instanceof Map Bean && the Map == null ) { the Map = ( Map Bean ) obj ; the Map . add Paint Listener ( this ) ; } Map Be...
public void mouseDragged ( MouseEvent e ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( getID ( ) + STRING ) ; } super . mouseDragged ( e ) ; Object obj = e . getSource ( ) ; if ( obj instanceof MapBean && theMap == null ) { theMap = ( MapBean ) obj ; theMap . addPaintListener ( this ) ; } MapBean map = this...
147
java-test-10944
java
For what purpose do i draw a box ?
to zoom the map to
public void mouse Dragged ( Mouse Event e ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( get ID ( ) + STRING ) ; } super . mouse Dragged ( e ) ; Object obj = e . get Source ( ) ; if ( obj instanceof Map Bean && the Map == null ) { the Map = ( Map Bean ) obj ; the Map . add Paint Listener ( this ) ; } Map Be...
public void mouseDragged ( MouseEvent e ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( getID ( ) + STRING ) ; } super . mouseDragged ( e ) ; Object obj = e . getSource ( ) ; if ( obj instanceof MapBean && theMap == null ) { theMap = ( MapBean ) obj ; theMap . addPaintListener ( this ) ; } MapBean map = this...
147
java-test-10946
java
How is any " + " is decoded if the uri component is of type query_param if the uri component is of type query_param ?
as as ' '
public static String decode ( String s , Type t ) { if ( s == null ) { throw new Illegal Argument Exception ( ) ; } final int n = s . length ( ) ; if ( n == NUM ) { return s ; } if ( s . index Of ( STRING ) < NUM ) { if ( t == Type . QUERY PARAM ) { if ( s . index Of ( STRING ) < NUM ) { return s ; } } else { return s ...
public static String decode ( String s , Type t ) { if ( s == null ) { throw new IllegalArgumentException ( ) ; } final int n = s . length ( ) ; if ( n == _NUM ) { return s ; } if ( s . indexOf ( STRING ) < _NUM ) { if ( t == Type . QUERY_PARAM ) { if ( s . indexOf ( STRING ) < _NUM ) { return s ; } } else { return s ;...
207
java-test-10947
java
Where did any " % " find ?
between " [ ] "
public static String decode ( String s , Type t ) { if ( s == null ) { throw new Illegal Argument Exception ( ) ; } final int n = s . length ( ) ; if ( n == NUM ) { return s ; } if ( s . index Of ( STRING ) < NUM ) { if ( t == Type . QUERY PARAM ) { if ( s . index Of ( STRING ) < NUM ) { return s ; } } else { return s ...
public static String decode ( String s , Type t ) { if ( s == null ) { throw new IllegalArgumentException ( ) ; } final int n = s . length ( ) ; if ( n == _NUM ) { return s ; } if ( s . indexOf ( STRING ) < _NUM ) { if ( t == Type . QUERY_PARAM ) { if ( s . indexOf ( STRING ) < _NUM ) { return s ; } } else { return s ;...
207
java-test-10948
java
What found between " [ ] " ?
any " % "
public static String decode ( String s , Type t ) { if ( s == null ) { throw new Illegal Argument Exception ( ) ; } final int n = s . length ( ) ; if ( n == NUM ) { return s ; } if ( s . index Of ( STRING ) < NUM ) { if ( t == Type . QUERY PARAM ) { if ( s . index Of ( STRING ) < NUM ) { return s ; } } else { return s ...
public static String decode ( String s , Type t ) { if ( s == null ) { throw new IllegalArgumentException ( ) ; } final int n = s . length ( ) ; if ( n == _NUM ) { return s ; } if ( s . indexOf ( STRING ) < _NUM ) { if ( t == Type . QUERY_PARAM ) { if ( s . indexOf ( STRING ) < _NUM ) { return s ; } } else { return s ;...
207
java-test-10949
java
Where did all projects find ?
in subfolders of projectlocations
public static void register Projects ( List < File > project Locations , File Based Workspace fb Workspace ) throws N4 JS Compile Exception { List < File > abs Project Roots = Headless Helper . to Absolute File List ( project Locations ) ; Array List < File > p Dir = Headless Helper . collect All Project Paths ( abs Pr...
public static void registerProjects ( List < File > projectLocations , FileBasedWorkspace fbWorkspace ) throws N4JSCompileException { List < File > absProjectRoots = HeadlessHelper . toAbsoluteFileList ( projectLocations ) ; ArrayList < File > pDir = HeadlessHelper . collectAllProjectPaths ( absProjectRoots ) ; ArrayLi...
165
java-test-10950
java
What found in subfolders of projectlocations ?
all projects
public static void register Projects ( List < File > project Locations , File Based Workspace fb Workspace ) throws N4 JS Compile Exception { List < File > abs Project Roots = Headless Helper . to Absolute File List ( project Locations ) ; Array List < File > p Dir = Headless Helper . collect All Project Paths ( abs Pr...
public static void registerProjects ( List < File > projectLocations , FileBasedWorkspace fbWorkspace ) throws N4JSCompileException { List < File > absProjectRoots = HeadlessHelper . toAbsoluteFileList ( projectLocations ) ; ArrayList < File > pDir = HeadlessHelper . collectAllProjectPaths ( absProjectRoots ) ; ArrayLi...
165
java-test-10951
java
What did the code cut ?
the given link string
private String cut Link ( String link , int len ) { if ( link . length ( ) > len ) { String cut = link . substring ( NUM , len / NUM ) + STRING + link . substring ( link . length ( ) - ( len / NUM ) ) ; return ( cut ) ; } return ( link ) ; }
private String cutLink ( String link , int len ) { if ( link . length ( ) > len ) { String cut = link . substring ( _NUM , len / _NUM ) + STRING + link . substring ( link . length ( ) - ( len / _NUM ) ) ; return ( cut ) ; } return ( link ) ; }
68
java-test-10952
java
What did the code cut the given link string ?
to the specified length + three dots
private String cut Link ( String link , int len ) { if ( link . length ( ) > len ) { String cut = link . substring ( NUM , len / NUM ) + STRING + link . substring ( link . length ( ) - ( len / NUM ) ) ; return ( cut ) ; } return ( link ) ; }
private String cutLink ( String link , int len ) { if ( link . length ( ) > len ) { String cut = link . substring ( _NUM , len / _NUM ) + STRING + link . substring ( link . length ( ) - ( len / _NUM ) ) ; return ( cut ) ; } return ( link ) ; }
68
java-test-10953
java
What does this vet ?
the separator keys and childref / childaddr arrays , which are used to lookup the entry index for a key
static public void do Random Index Of Test ( final String label , final Abstract B Tree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . is Info Enabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = get Random Order ( nentrie...
static public void doRandomIndexOfTest ( final String label , final AbstractBTree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . isInfoEnabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = getRandomOrder ( nentries ) ; fina...
251
java-test-10954
java
Why does this vet the childentrycount [ ] array ?
since that is responsible for lookup by entry index
static public void do Random Index Of Test ( final String label , final Abstract B Tree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . is Info Enabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = get Random Order ( nentrie...
static public void doRandomIndexOfTest ( final String label , final AbstractBTree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . isInfoEnabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = getRandomOrder ( nentries ) ; fina...
251
java-test-10955
java
What does this vet since that is responsible for lookup by entry index ?
the childentrycount [ ] array
static public void do Random Index Of Test ( final String label , final Abstract B Tree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . is Info Enabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = get Random Order ( nentrie...
static public void doRandomIndexOfTest ( final String label , final AbstractBTree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . isInfoEnabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = getRandomOrder ( nentries ) ; fina...
251
java-test-10956
java
What are used to lookup the entry index for a key ?
the separator keys and childref / childaddr arrays
static public void do Random Index Of Test ( final String label , final Abstract B Tree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . is Info Enabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = get Random Order ( nentrie...
static public void doRandomIndexOfTest ( final String label , final AbstractBTree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . isInfoEnabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = getRandomOrder ( nentries ) ; fina...
251
java-test-10957
java
What are the separator keys and childref / childaddr arrays used ?
to lookup the entry index for a key
static public void do Random Index Of Test ( final String label , final Abstract B Tree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . is Info Enabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = get Random Order ( nentrie...
static public void doRandomIndexOfTest ( final String label , final AbstractBTree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . isInfoEnabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = getRandomOrder ( nentries ) ; fina...
251
java-test-10958
java
How does the performance of random lookups of keys and values test ?
by entry index
static public void do Random Index Of Test ( final String label , final Abstract B Tree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . is Info Enabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = get Random Order ( nentrie...
static public void doRandomIndexOfTest ( final String label , final AbstractBTree btree , final byte [ ] [ ] keys , final byte [ ] [ ] vals ) { final int nentries = keys . length ; if ( log . isInfoEnabled ( ) ) log . info ( STRING + label + STRING + nentries ) ; final int [ ] order = getRandomOrder ( nentries ) ; fina...
251
java-test-10959
java
What has the code ensure ?
that log file has only the following lines
private void check Log ( String ... lines ) throws Exception { Buffered Reader br = new Buffered Reader ( new Input Stream Reader ( new File Input Stream ( LOG FILE ) ) ) ; List < String > log Lines = new Array List < > ( lines . length ) ; String next Log Line ; while ( ( next Log Line = br . read Line ( ) ) != null )...
private void checkLog ( String ... lines ) throws Exception { BufferedReader br = new BufferedReader ( new InputStreamReader ( new FileInputStream ( LOG_FILE ) ) ) ; List < String > logLines = new ArrayList < > ( lines . length ) ; String nextLogLine ; while ( ( nextLogLine = br . readLine ( ) ) != null ) logLines . ad...
203