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-7424
java
What did it need ?
to scroll the window
public void run ( ) { J Scroll Bar jsb = scroller . get Vertical Scroll Bar ( ) ; while ( running ) { try { synchronized ( hist Data ) { hist Data . wait ( ) ; } Thread . sleep ( NUM ) ; } catch ( Exception e ) { } jsb . set Value ( jsb . get Maximum ( ) ) ; } }
public void run ( ) { JScrollBar jsb = scroller . getVerticalScrollBar ( ) ; while ( running ) { try { synchronized ( histData ) { histData . wait ( ) ; } Thread . sleep ( _NUM ) ; } catch ( Exception e ) { } jsb . setValue ( jsb . getMaximum ( ) ) ; } }
71
java-test-7425
java
How can by the user be scrolled it if no data is being written to the log up and down then ?
without being continuously autoscrolled to theby this thread
public void run ( ) { J Scroll Bar jsb = scroller . get Vertical Scroll Bar ( ) ; while ( running ) { try { synchronized ( hist Data ) { hist Data . wait ( ) ; } Thread . sleep ( NUM ) ; } catch ( Exception e ) { } jsb . set Value ( jsb . get Maximum ( ) ) ; } }
public void run ( ) { JScrollBar jsb = scroller . getVerticalScrollBar ( ) ; while ( running ) { try { synchronized ( histData ) { histData . wait ( ) ; } Thread . sleep ( _NUM ) ; } catch ( Exception e ) { } jsb . setValue ( jsb . getMaximum ( ) ) ; } }
71
java-test-7426
java
In which direction can by the user be scrolled it if no data is being written to the log without being continuously autoscrolled to theby this thread then ?
up and down
public void run ( ) { J Scroll Bar jsb = scroller . get Vertical Scroll Bar ( ) ; while ( running ) { try { synchronized ( hist Data ) { hist Data . wait ( ) ; } Thread . sleep ( NUM ) ; } catch ( Exception e ) { } jsb . set Value ( jsb . get Maximum ( ) ) ; } }
public void run ( ) { JScrollBar jsb = scroller . getVerticalScrollBar ( ) ; while ( running ) { try { synchronized ( histData ) { histData . wait ( ) ; } Thread . sleep ( _NUM ) ; } catch ( Exception e ) { } jsb . setValue ( jsb . getMaximum ( ) ) ; } }
71
java-test-7427
java
What does the code write ?
the name and another json object
public void call ( String name , @ Delegates To ( Streaming Json Delegate . class ) Closure value ) throws IO Exception { if ( generator . is Excluding Fields Named ( name ) ) { return ; } write Name ( name ) ; verify Value ( ) ; writer . write ( Json Output . OPEN BRACE ) ; Streaming Json Delegate . clone Delegate And...
public void call ( String name , @ DelegatesTo ( StreamingJsonDelegate . class ) Closure value ) throws IOException { if ( generator . isExcludingFieldsNamed ( name ) ) { return ; } writeName ( name ) ; verifyValue ( ) ; writer . write ( JsonOutput . OPEN_BRACE ) ; StreamingJsonDelegate . cloneDelegateAndGetContent ( w...
93
java-test-7428
java
What recommended estimator ?
by the authors
@ Suppress Warnings ( STRING ) private static int shlosser Jackknife Estimator ( int n Rows , int sample Size , Reader Column Selection sample Rows Reader ) { Hash Map < Dbl Array , Integer > vals Count = get Val Counts ( sample Rows Reader ) ; double n Bar = ( ( double ) sample Size ) / vals Count . size ( ) ; double ...
@ SuppressWarnings ( STRING ) private static int shlosserJackknifeEstimator ( int nRows , int sampleSize , ReaderColumnSelection sampleRowsReader ) { HashMap < DblArray , Integer > valsCount = getValCounts ( sampleRowsReader ) ; double nBar = ( ( double ) sampleSize ) / valsCount . size ( ) ; double u = _NUM ; for ( in...
174
java-test-7429
java
What did by the authors recommend ?
estimator
@ Suppress Warnings ( STRING ) private static int shlosser Jackknife Estimator ( int n Rows , int sample Size , Reader Column Selection sample Rows Reader ) { Hash Map < Dbl Array , Integer > vals Count = get Val Counts ( sample Rows Reader ) ; double n Bar = ( ( double ) sample Size ) / vals Count . size ( ) ; double ...
@ SuppressWarnings ( STRING ) private static int shlosserJackknifeEstimator ( int nRows , int sampleSize , ReaderColumnSelection sampleRowsReader ) { HashMap < DblArray , Integer > valsCount = getValCounts ( sampleRowsReader ) ; double nBar = ( ( double ) sampleSize ) / valsCount . size ( ) ; double u = _NUM ; for ( in...
174
java-test-7431
java
For what purpose do the last remembered type switch ?
to match the type of the given object
Auto Detect Data Type switch Type ( Object obj ) { int type Id = get Type Id ( obj ) ; Auto Detect Data Type l = last ; if ( type Id != l . type Id ) { last = l = new Type ( type Id ) ; } return l ; }
AutoDetectDataType switchType ( Object obj ) { int typeId = getTypeId ( obj ) ; AutoDetectDataType l = last ; if ( typeId != l . typeId ) { last = l = newType ( typeId ) ; } return l ; }
57
java-test-7432
java
What does this method log ?
a controller cost estimate for doing nothing
public void record Controller Estimate Cost Do Nothing ( RVM Method method , int opt Level , double cost ) { if ( Controller . options . LOGGING LEVEL >= NUM ) { synchronized ( log ) { log . print ( get Time ( ) + STRING ) ; if ( opt Level == - NUM ) { log . print ( STRING ) ; } else { log . print ( STRING + opt Level ...
public void recordControllerEstimateCostDoNothing ( RVMMethod method , int optLevel , double cost ) { if ( Controller . options . LOGGING_LEVEL >= _NUM ) { synchronized ( log ) { log . print ( getTime ( ) + STRING ) ; if ( optLevel == - _NUM ) { log . print ( STRING ) ; } else { log . print ( STRING + optLevel ) ; } lo...
96
java-test-7433
java
How can it be called ?
from your own code
public Object execute Command ( final int ID , Object [ ] args ) { if ( args != null && args . length == NUM && args [ NUM ] == null ) { args = null ; } Object status = null ; current GUI . set Executing Command ( BOOL ) ; final Map jpedal Action Handlers = ( Map ) decode pdf . get External Handler ( Options . J Pedal ...
public Object executeCommand ( final int ID , Object [ ] args ) { if ( args != null && args . length == _NUM && args [ _NUM ] == null ) { args = null ; } Object status = null ; currentGUI . setExecutingCommand ( _BOOL ) ; final Map jpedalActionHandlers = ( Map ) decode_pdf . getExternalHandler ( Options . JPedalActionH...
191
java-test-7434
java
For what purpose can main routine which executes code for current command values be passed also in ?
so it can be called from your own code
public Object execute Command ( final int ID , Object [ ] args ) { if ( args != null && args . length == NUM && args [ NUM ] == null ) { args = null ; } Object status = null ; current GUI . set Executing Command ( BOOL ) ; final Map jpedal Action Handlers = ( Map ) decode pdf . get External Handler ( Options . J Pedal ...
public Object executeCommand ( final int ID , Object [ ] args ) { if ( args != null && args . length == _NUM && args [ _NUM ] == null ) { args = null ; } Object status = null ; currentGUI . setExecutingCommand ( _BOOL ) ; final Map jpedalActionHandlers = ( Map ) decode_pdf . getExternalHandler ( Options . JPedalActionH...
191
java-test-7435
java
What does main routine execute ?
code for current command values
public Object execute Command ( final int ID , Object [ ] args ) { if ( args != null && args . length == NUM && args [ NUM ] == null ) { args = null ; } Object status = null ; current GUI . set Executing Command ( BOOL ) ; final Map jpedal Action Handlers = ( Map ) decode pdf . get External Handler ( Options . J Pedal ...
public Object executeCommand ( final int ID , Object [ ] args ) { if ( args != null && args . length == _NUM && args [ _NUM ] == null ) { args = null ; } Object status = null ; currentGUI . setExecutingCommand ( _BOOL ) ; final Map jpedalActionHandlers = ( Map ) decode_pdf . getExternalHandler ( Options . JPedalActionH...
191
java-test-7436
java
What executes code for current command values ?
main routine
public Object execute Command ( final int ID , Object [ ] args ) { if ( args != null && args . length == NUM && args [ NUM ] == null ) { args = null ; } Object status = null ; current GUI . set Executing Command ( BOOL ) ; final Map jpedal Action Handlers = ( Map ) decode pdf . get External Handler ( Options . J Pedal ...
public Object executeCommand ( final int ID , Object [ ] args ) { if ( args != null && args . length == _NUM && args [ _NUM ] == null ) { args = null ; } Object status = null ; currentGUI . setExecutingCommand ( _BOOL ) ; final Map jpedalActionHandlers = ( Map ) decode_pdf . getExternalHandler ( Options . JPedalActionH...
191
java-test-7437
java
Why has the map projection changed in order to baseline new changes ?
as a result of menu options being selected
public void projection Changed ( Projection Event e ) { Projection new Proj = e . get Projection ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . fine ( new Proj != null ? new Proj . to String ( ) : STRING ) ; } if ( new Proj != null && ( projection == null || ( ! projection . equals ( new Proj ) ) ) ) { s...
public void projectionChanged ( ProjectionEvent e ) { Projection newProj = e . getProjection ( ) ; if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( newProj != null ? newProj . toString ( ) : STRING ) ; } if ( newProj != null && ( projection == null || ( ! projection . equals ( newProj ) ) ) ) { setProjecti...
123
java-test-7438
java
For what purpose has the map projection changed as a result of menu options being selected ?
in order to baseline new changes
public void projection Changed ( Projection Event e ) { Projection new Proj = e . get Projection ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . fine ( new Proj != null ? new Proj . to String ( ) : STRING ) ; } if ( new Proj != null && ( projection == null || ( ! projection . equals ( new Proj ) ) ) ) { s...
public void projectionChanged ( ProjectionEvent e ) { Projection newProj = e . getProjection ( ) ; if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( newProj != null ? newProj . toString ( ) : STRING ) ; } if ( newProj != null && ( projection == null || ( ! projection . equals ( newProj ) ) ) ) { setProjecti...
123
java-test-7441
java
What does the code create ?
a named savepoint
Mysql Savepoint ( String name , Exception Interceptor exception Interceptor ) throws SQL Exception { if ( name == null || name . length ( ) == NUM ) { throw SQL Error . create SQL Exception ( STRING , SQL Error . SQL STATE ILLEGAL ARGUMENT , exception Interceptor ) ; } this . savepoint Name = name ; this . exception In...
MysqlSavepoint ( String name , ExceptionInterceptor exceptionInterceptor ) throws SQLException { if ( name == null || name . length ( ) == _NUM ) { throw SQLError . createSQLException ( STRING , SQLError . SQL_STATE_ILLEGAL_ARGUMENT , exceptionInterceptor ) ; } this . savepointName = name ; this . exceptionInterceptor ...
69
java-test-7442
java
What does the code cut ?
the independent string of required position
public static String truncate ( final String value , final int length , final String filler ) { validate ( value , NULL STRING PREDICATE , NULL STRING MSG SUPPLIER ) ; if ( length == NUM ) { return STRING ; } if ( length >= value . length ( ) ) { return value ; } return append ( value . substring ( NUM , length - fille...
public static String truncate ( final String value , final int length , final String filler ) { validate ( value , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; if ( length == _NUM ) { return STRING ; } if ( length >= value . length ( ) ) { return value ; } return append ( value . substring ( _NUM , length - fil...
80
java-test-7447
java
What manages the command send ?
a second handler
public void run ( ) { try { if ( index == NUM ) { send Message To UI ( STRING , BOOL ) ; } if ( w Thread . retries >= Medtronic Constants . NUMBER OF RETRIES ) { m Handler 3 . remove Callbacks ( w Thread ) ; synchronized ( reader . sending Command Lock ) { reader . sending Command = BOOL ; } synchronized ( reader . wai...
public void run ( ) { try { if ( index == _NUM ) { sendMessageToUI ( STRING , _BOOL ) ; } if ( wThread . retries >= MedtronicConstants . NUMBER_OF_RETRIES ) { mHandler3 . removeCallbacks ( wThread ) ; synchronized ( reader . sendingCommandLock ) { reader . sendingCommand = _BOOL ; } synchronized ( reader . waitingComma...
418
java-test-7448
java
What do it send in " commanlist " ?
all the commands
public void run ( ) { try { if ( index == NUM ) { send Message To UI ( STRING , BOOL ) ; } if ( w Thread . retries >= Medtronic Constants . NUMBER OF RETRIES ) { m Handler 3 . remove Callbacks ( w Thread ) ; synchronized ( reader . sending Command Lock ) { reader . sending Command = BOOL ; } synchronized ( reader . wai...
public void run ( ) { try { if ( index == _NUM ) { sendMessageToUI ( STRING , _BOOL ) ; } if ( wThread . retries >= MedtronicConstants . NUMBER_OF_RETRIES ) { mHandler3 . removeCallbacks ( wThread ) ; synchronized ( reader . sendingCommandLock ) { reader . sendingCommand = _BOOL ; } synchronized ( reader . waitingComma...
418
java-test-7449
java
What do a second handler manage ?
the command send
public void run ( ) { try { if ( index == NUM ) { send Message To UI ( STRING , BOOL ) ; } if ( w Thread . retries >= Medtronic Constants . NUMBER OF RETRIES ) { m Handler 3 . remove Callbacks ( w Thread ) ; synchronized ( reader . sending Command Lock ) { reader . sending Command = BOOL ; } synchronized ( reader . wai...
public void run ( ) { try { if ( index == _NUM ) { sendMessageToUI ( STRING , _BOOL ) ; } if ( wThread . retries >= MedtronicConstants . NUMBER_OF_RETRIES ) { mHandler3 . removeCallbacks ( wThread ) ; synchronized ( reader . sendingCommandLock ) { reader . sendingCommand = _BOOL ; } synchronized ( reader . waitingComma...
418
java-test-7450
java
What does it try ?
to send all the commands in " commanlist "
public void run ( ) { try { if ( index == NUM ) { send Message To UI ( STRING , BOOL ) ; } if ( w Thread . retries >= Medtronic Constants . NUMBER OF RETRIES ) { m Handler 3 . remove Callbacks ( w Thread ) ; synchronized ( reader . sending Command Lock ) { reader . sending Command = BOOL ; } synchronized ( reader . wai...
public void run ( ) { try { if ( index == _NUM ) { sendMessageToUI ( STRING , _BOOL ) ; } if ( wThread . retries >= MedtronicConstants . NUMBER_OF_RETRIES ) { mHandler3 . removeCallbacks ( wThread ) ; synchronized ( reader . sendingCommandLock ) { reader . sendingCommand = _BOOL ; } synchronized ( reader . waitingComma...
418
java-test-7451
java
For what purpose do a second handler call writerthread ?
to manage the command send
public void run ( ) { try { if ( index == NUM ) { send Message To UI ( STRING , BOOL ) ; } if ( w Thread . retries >= Medtronic Constants . NUMBER OF RETRIES ) { m Handler 3 . remove Callbacks ( w Thread ) ; synchronized ( reader . sending Command Lock ) { reader . sending Command = BOOL ; } synchronized ( reader . wai...
public void run ( ) { try { if ( index == _NUM ) { sendMessageToUI ( STRING , _BOOL ) ; } if ( wThread . retries >= MedtronicConstants . NUMBER_OF_RETRIES ) { mHandler3 . removeCallbacks ( wThread ) ; synchronized ( reader . sendingCommandLock ) { reader . sendingCommand = _BOOL ; } synchronized ( reader . waitingComma...
418
java-test-7452
java
What does it create in order to do that ?
a second handler calling writerthread to manage the command send
public void run ( ) { try { if ( index == NUM ) { send Message To UI ( STRING , BOOL ) ; } if ( w Thread . retries >= Medtronic Constants . NUMBER OF RETRIES ) { m Handler 3 . remove Callbacks ( w Thread ) ; synchronized ( reader . sending Command Lock ) { reader . sending Command = BOOL ; } synchronized ( reader . wai...
public void run ( ) { try { if ( index == _NUM ) { sendMessageToUI ( STRING , _BOOL ) ; } if ( wThread . retries >= MedtronicConstants . NUMBER_OF_RETRIES ) { mHandler3 . removeCallbacks ( wThread ) ; synchronized ( reader . sendingCommandLock ) { reader . sendingCommand = _BOOL ; } synchronized ( reader . waitingComma...
418
java-test-7453
java
How do it send all the commands ?
in " commanlist "
public void run ( ) { try { if ( index == NUM ) { send Message To UI ( STRING , BOOL ) ; } if ( w Thread . retries >= Medtronic Constants . NUMBER OF RETRIES ) { m Handler 3 . remove Callbacks ( w Thread ) ; synchronized ( reader . sending Command Lock ) { reader . sending Command = BOOL ; } synchronized ( reader . wai...
public void run ( ) { try { if ( index == _NUM ) { sendMessageToUI ( STRING , _BOOL ) ; } if ( wThread . retries >= MedtronicConstants . NUMBER_OF_RETRIES ) { mHandler3 . removeCallbacks ( wThread ) ; synchronized ( reader . sendingCommandLock ) { reader . sendingCommand = _BOOL ; } synchronized ( reader . waitingComma...
418
java-test-7454
java
For what purpose does it create a second handler calling writerthread to manage the command send ?
in order to do that
public void run ( ) { try { if ( index == NUM ) { send Message To UI ( STRING , BOOL ) ; } if ( w Thread . retries >= Medtronic Constants . NUMBER OF RETRIES ) { m Handler 3 . remove Callbacks ( w Thread ) ; synchronized ( reader . sending Command Lock ) { reader . sending Command = BOOL ; } synchronized ( reader . wai...
public void run ( ) { try { if ( index == _NUM ) { sendMessageToUI ( STRING , _BOOL ) ; } if ( wThread . retries >= MedtronicConstants . NUMBER_OF_RETRIES ) { mHandler3 . removeCallbacks ( wThread ) ; synchronized ( reader . sendingCommandLock ) { reader . sendingCommand = _BOOL ; } synchronized ( reader . waitingComma...
418
java-test-7455
java
What does the code add ?
the given number of cards , each with an index in the store name
private void add Loyalty Cards ( int cards To Add ) { for ( int index = cards To Add ; index > NUM ; index -- ) { String store Name = String . format ( STRING , index ) ; String note = String . format ( STRING , index ) ; boolean result = db . insert Loyalty Card ( store Name , note , BARCODE DATA , BARCODE TYPE ) ; as...
private void addLoyaltyCards ( int cardsToAdd ) { for ( int index = cardsToAdd ; index > _NUM ; index -- ) { String storeName = String . format ( STRING , index ) ; String note = String . format ( STRING , index ) ; boolean result = db . insertLoyaltyCard ( storeName , note , BARCODE_DATA , BARCODE_TYPE ) ; assertTrue ...
100
java-test-7456
java
What does the code retrieve from the keystore ?
the alias ' s principal and credentials
public boolean login ( ) throws Login Exception { switch ( status ) { case UNINITIALIZED : default : throw new Login Exception ( STRING ) ; case INITIALIZED : case AUTHENTICATED : if ( token && ! null Stream ) { throw new Login Exception ( STRING + P11 KEYSTORE + STRING + NONE ) ; } if ( token && private Key Password U...
public boolean login ( ) throws LoginException { switch ( status ) { case UNINITIALIZED : default : throw new LoginException ( STRING ) ; case INITIALIZED : case AUTHENTICATED : if ( token && ! nullStream ) { throw new LoginException ( STRING + P11KEYSTORE + STRING + NONE ) ; } if ( token && privateKeyPasswordURL != nu...
250
java-test-7457
java
What does the code get ?
the keystore alias and relevant passwords
public boolean login ( ) throws Login Exception { switch ( status ) { case UNINITIALIZED : default : throw new Login Exception ( STRING ) ; case INITIALIZED : case AUTHENTICATED : if ( token && ! null Stream ) { throw new Login Exception ( STRING + P11 KEYSTORE + STRING + NONE ) ; } if ( token && private Key Password U...
public boolean login ( ) throws LoginException { switch ( status ) { case UNINITIALIZED : default : throw new LoginException ( STRING ) ; case INITIALIZED : case AUTHENTICATED : if ( token && ! nullStream ) { throw new LoginException ( STRING + P11KEYSTORE + STRING + NONE ) ; } if ( token && privateKeyPasswordURL != nu...
250
java-test-7458
java
What does the code create ?
a new jar file
void create ( Output Stream out , Manifest manifest ) throws IO Exception { Zip Output Stream zos = new Jar Output Stream ( out ) ; if ( flag 0 ) { zos . set Method ( Zip Output Stream . STORED ) ; } if ( manifest != null ) { if ( vflag ) { output ( get Msg ( STRING ) ) ; } Zip Entry e = new Zip Entry ( MANIFEST DIR ) ...
void create ( OutputStream out , Manifest manifest ) throws IOException { ZipOutputStream zos = new JarOutputStream ( out ) ; if ( flag0 ) { zos . setMethod ( ZipOutputStream . STORED ) ; } if ( manifest != null ) { if ( vflag ) { output ( getMsg ( STRING ) ) ; } ZipEntry e = new ZipEntry ( MANIFEST_DIR ) ; e . setTime...
207
java-test-7462
java
What does the code create ?
a new cached criterium
public C Plugin Cached Criterium ( final View 2 D view 2 D , final com . google . security . zynamics . binnavi . API . plugins . I Criteria Selection Plugin . I Criterium plugin ) { m view 2 D = view 2 D ; m plugin = plugin ; m value = plugin . get Fixed Criterium ( ) ; }
public CPluginCachedCriterium ( final View2D view2D , final com . google . security . zynamics . binnavi . API . plugins . ICriteriaSelectionPlugin . ICriterium plugin ) { m_view2D = view2D ; m_plugin = plugin ; m_value = plugin . getFixedCriterium ( ) ; }
65
java-test-7463
java
What do we have when ?
multi - level inner lazy panels
protected void check Runtime Lazy Dependency ( String id , String lazy Panel Id ) { if ( ! lazy Widgets . contains Key ( id ) ) { if ( Log Configuration . logging Is Enabled ( ) ) { logger . log ( Level . FINE , STRING + id + STRING + lazy Panel Id + STRING ) ; } lazy Widgets . put ( id , lazy Panel Id ) ; } }
protected void checkRuntimeLazyDependency ( String id , String lazyPanelId ) { if ( ! lazyWidgets . containsKey ( id ) ) { if ( LogConfiguration . loggingIsEnabled ( ) ) { logger . log ( Level . FINE , STRING + id + STRING + lazyPanelId + STRING ) ; } lazyWidgets . put ( id , lazyPanelId ) ; } }
77
java-test-7464
java
What invokes the given method ?
a new invocation statement
protected Stmt build Method Call ( Soot Method method To Call , Body body , Local class Local , Local Generator gen ) { return build Method Call ( method To Call , body , class Local , gen , Collections . < Soot Class > empty Set ( ) ) ; }
protected Stmt buildMethodCall ( SootMethod methodToCall , Body body , Local classLocal , LocalGenerator gen ) { return buildMethodCall ( methodToCall , body , classLocal , gen , Collections . < SootClass > emptySet ( ) ) ; }
53
java-test-7465
java
What does the code initialize based on the given cache instance ?
the state of this evaluator
private void initialize ( Gem Fire Cache Impl cache , DM dm ) { String Buffer sb = new String Buffer ( ) ; if ( cache != null ) { this . cache Stats = cache . get Cache Perf Stats ( ) ; sb . append ( STRING ) ; sb . append ( cache . get Name ( ) ) ; sb . append ( STRING ) ; } else { sb . append ( STRING ) ; } sb . appe...
private void initialize ( GemFireCacheImpl cache , DM dm ) { StringBuffer sb = new StringBuffer ( ) ; if ( cache != null ) { this . cacheStats = cache . getCachePerfStats ( ) ; sb . append ( STRING ) ; sb . append ( cache . getName ( ) ) ; sb . append ( STRING ) ; } else { sb . append ( STRING ) ; } sb . append ( STRIN...
146
java-test-7466
java
By how much does the code initialize the state of this evaluator ?
based on the given cache instance
private void initialize ( Gem Fire Cache Impl cache , DM dm ) { String Buffer sb = new String Buffer ( ) ; if ( cache != null ) { this . cache Stats = cache . get Cache Perf Stats ( ) ; sb . append ( STRING ) ; sb . append ( cache . get Name ( ) ) ; sb . append ( STRING ) ; } else { sb . append ( STRING ) ; } sb . appe...
private void initialize ( GemFireCacheImpl cache , DM dm ) { StringBuffer sb = new StringBuffer ( ) ; if ( cache != null ) { this . cacheStats = cache . getCachePerfStats ( ) ; sb . append ( STRING ) ; sb . append ( cache . getName ( ) ) ; sb . append ( STRING ) ; } else { sb . append ( STRING ) ; } sb . append ( STRIN...
146
java-test-7467
java
What does the code identify ?
duplicate group names
private void identify Duplicate Group Names ( final Collection < Group > groups ) { LOG . debug ( STRING ) ; final List < String > group Names = new Array List < String > ( ) ; for ( final Group group : groups ) { if ( group Names . contains ( group . get Name ( ) ) ) { throw new Wro Runtime Exception ( STRING + group ...
private void identifyDuplicateGroupNames ( final Collection < Group > groups ) { LOG . debug ( STRING ) ; final List < String > groupNames = new ArrayList < String > ( ) ; for ( final Group group : groups ) { if ( groupNames . contains ( group . getName ( ) ) ) { throw new WroRuntimeException ( STRING + group . getName...
96
java-test-7468
java
What have matching source ?
only the ones
private List < File Match > filter Target Matches Without Source Matches ( List < File Match > source Match Candidates , List < File Match > target Match Candidates ) { List < File Match > filtered Target Match Candidates = new Array List < > ( ) ; List < String > source Filenames = get Source Filenames ( source Match ...
private List < FileMatch > filterTargetMatchesWithoutSourceMatches ( List < FileMatch > sourceMatchCandidates , List < FileMatch > targetMatchCandidates ) { List < FileMatch > filteredTargetMatchCandidates = new ArrayList < > ( ) ; List < String > sourceFilenames = getSourceFilenames ( sourceMatchCandidates ) ; for ( F...
119
java-test-7469
java
What do only the ones have ?
matching source
private List < File Match > filter Target Matches Without Source Matches ( List < File Match > source Match Candidates , List < File Match > target Match Candidates ) { List < File Match > filtered Target Match Candidates = new Array List < > ( ) ; List < String > source Filenames = get Source Filenames ( source Match ...
private List < FileMatch > filterTargetMatchesWithoutSourceMatches ( List < FileMatch > sourceMatchCandidates , List < FileMatch > targetMatchCandidates ) { List < FileMatch > filteredTargetMatchCandidates = new ArrayList < > ( ) ; List < String > sourceFilenames = getSourceFilenames ( sourceMatchCandidates ) ; for ( F...
119
java-test-7472
java
What does the code find ?
a object in a list
private static int find Index ( Array List list , Object o ) { int n = list . size ( ) ; for ( int i = NUM ; i < n ; i ++ ) { if ( list . get ( i ) == o ) return i ; } return - NUM ; }
private static int findIndex ( ArrayList list , Object o ) { int n = list . size ( ) ; for ( int i = _NUM ; i < n ; i ++ ) { if ( list . get ( i ) == o ) return i ; } return - _NUM ; }
58
java-test-7473
java
What does the code set ?
the visuals
public void init ( Controller c ) { super . init ( c ) ; display = new Display 2 D ( Foraging Honey Bee Simulation . WIDTH , Foraging Honey Bee Simulation . HEIGHT , this , NUM ) ; display Frame = display . create Frame ( ) ; display Frame . set Title ( STRING ) ; c . register Frame ( display Frame ) ; display Frame . ...
public void init ( Controller c ) { super . init ( c ) ; display = new Display2D ( ForagingHoneyBeeSimulation . WIDTH , ForagingHoneyBeeSimulation . HEIGHT , this , _NUM ) ; displayFrame = display . createFrame ( ) ; displayFrame . setTitle ( STRING ) ; c . registerFrame ( displayFrame ) ; displayFrame . setVisible ( _...
97
java-test-7475
java
What does the code find ?
the element identifier for the current charge
public void find Charge Element ID ( ) { m C Acct Schema ID = Env . get Context As Int ( Env . get Ctx ( ) , STRING ) ; String sql = STRING + STRING + STRING ; try { Prepared Statement pstmt = DB . prepare Statement ( sql , null ) ; pstmt . set Int ( NUM , m C Acct Schema ID ) ; Result Set rs = pstmt . execute Query ( ...
public void findChargeElementID ( ) { m_C_AcctSchema_ID = Env . getContextAsInt ( Env . getCtx ( ) , STRING ) ; String sql = STRING + STRING + STRING ; try { PreparedStatement pstmt = DB . prepareStatement ( sql , null ) ; pstmt . setInt ( _NUM , m_C_AcctSchema_ID ) ; ResultSet rs = pstmt . executeQuery ( ) ; if ( rs ....
140
java-test-7486
java
What does the code create ?
the shape for a top tab
private static Path 2 D create Top Tab Shape ( int x , int y , int w , int h , double r Top , boolean add Bottom ) { Path 2 D path = new Path 2 D . Double ( ) ; path . append ( new Line 2 D . Double ( x , y + h - NUM , x , y + r Top ) , BOOL ) ; Quad Curve 2 D curve = new Quad Curve 2 D . Double ( x , y + r Top , x , y...
private static Path2D createTopTabShape ( int x , int y , int w , int h , double rTop , boolean addBottom ) { Path2D path = new Path2D . Double ( ) ; path . append ( new Line2D . Double ( x , y + h - _NUM , x , y + rTop ) , _BOOL ) ; QuadCurve2D curve = new QuadCurve2D . Double ( x , y + rTop , x , y , x + rTop , y ) ;...
268
java-test-7487
java
What could have a name in the name index ?
the edited object
public static boolean use Name Suggestions ( Set < String > used Keys ) { return ! ( used Keys . contains ( Tags . KEY HIGHWAY ) || used Keys . contains ( Tags . KEY WATERWAY ) || used Keys . contains ( Tags . KEY LANDUSE ) || used Keys . contains ( Tags . KEY NATURAL ) || used Keys . contains ( Tags . KEY RAILWAY ) ) ...
public static boolean useNameSuggestions ( Set < String > usedKeys ) { return ! ( usedKeys . contains ( Tags . KEY_HIGHWAY ) || usedKeys . contains ( Tags . KEY_WATERWAY ) || usedKeys . contains ( Tags . KEY_LANDUSE ) || usedKeys . contains ( Tags . KEY_NATURAL ) || usedKeys . contains ( Tags . KEY_RAILWAY ) ) ; }
75
java-test-7488
java
What could the edited object have ?
a name in the name index
public static boolean use Name Suggestions ( Set < String > used Keys ) { return ! ( used Keys . contains ( Tags . KEY HIGHWAY ) || used Keys . contains ( Tags . KEY WATERWAY ) || used Keys . contains ( Tags . KEY LANDUSE ) || used Keys . contains ( Tags . KEY NATURAL ) || used Keys . contains ( Tags . KEY RAILWAY ) ) ...
public static boolean useNameSuggestions ( Set < String > usedKeys ) { return ! ( usedKeys . contains ( Tags . KEY_HIGHWAY ) || usedKeys . contains ( Tags . KEY_WATERWAY ) || usedKeys . contains ( Tags . KEY_LANDUSE ) || usedKeys . contains ( Tags . KEY_NATURAL ) || usedKeys . contains ( Tags . KEY_RAILWAY ) ) ; }
75
java-test-7489
java
What does the code update ?
the content of the outline view
public void update View ( ) { if ( f Input Element != null && f Parent Composite != null ) { Indicator View State old State = f State Map . get ( f Input Element ) ; boolean reload = f Files To Reoad . contains ( f Input Element ) ; if ( reload || old State == null ) { Json Object json Object = Droidsafe Plugin Utiliti...
public void updateView ( ) { if ( fInputElement != null && fParentComposite != null ) { IndicatorViewState oldState = fStateMap . get ( fInputElement ) ; boolean reload = fFilesToReoad . contains ( fInputElement ) ; if ( reload || oldState == null ) { JsonObject jsonObject = DroidsafePluginUtilities . parseIndicatorFil...
223
java-test-7492
java
What do we accept ?
0x and # prefixes
private Integer parse Int ( String s , int flags ) { if ( convert Color Names ( flags ) ) { String c = Descriptor . convert Color Name ( s ) ; if ( c != null ) { s = c ; } } try { if ( has Leading Zeros ( s ) ) { return null ; } else { return Integer . decode ( s ) ; } } catch ( Number Format Exception e ) { return nul...
private Integer parseInt ( String s , int flags ) { if ( convertColorNames ( flags ) ) { String c = Descriptor . convertColorName ( s ) ; if ( c != null ) { s = c ; } } try { if ( hasLeadingZeros ( s ) ) { return null ; } else { return Integer . decode ( s ) ; } } catch ( NumberFormatException e ) { return null ; } }
88
java-test-7493
java
What returns incorrect " column_type " information ?
tests fix for bug # 68307 - getfunctioncolumns
public void test Bug 68307 ( ) throws Exception { create Function ( STRING , STRING ) ; create Procedure ( STRING , STRING ) ; Database Meta Data test Db Meta Data = conn . get Meta Data ( ) ; check Function Column Type For Bug 68307 ( STRING , test Db Meta Data ) ; check Procedure Column Type For Bug 68307 ( STRING , ...
public void testBug68307 ( ) throws Exception { createFunction ( STRING , STRING ) ; createProcedure ( STRING , STRING ) ; DatabaseMetaData testDbMetaData = conn . getMetaData ( ) ; checkFunctionColumnTypeForBug68307 ( STRING , testDbMetaData ) ; checkProcedureColumnTypeForBug68307 ( STRING , testDbMetaData ) ; Connect...
143
java-test-7494
java
What do tests fix for bug # 68307 - getfunctioncolumns return ?
incorrect " column_type " information
public void test Bug 68307 ( ) throws Exception { create Function ( STRING , STRING ) ; create Procedure ( STRING , STRING ) ; Database Meta Data test Db Meta Data = conn . get Meta Data ( ) ; check Function Column Type For Bug 68307 ( STRING , test Db Meta Data ) ; check Procedure Column Type For Bug 68307 ( STRING , ...
public void testBug68307 ( ) throws Exception { createFunction ( STRING , STRING ) ; createProcedure ( STRING , STRING ) ; DatabaseMetaData testDbMetaData = conn . getMetaData ( ) ; checkFunctionColumnTypeForBug68307 ( STRING , testDbMetaData ) ; checkProcedureColumnTypeForBug68307 ( STRING , testDbMetaData ) ; Connect...
143
java-test-7495
java
What will be added below the existing ones ?
the new button
private J Button add Keybind Button ( J Panel panel , String button Text ) { Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . anchor = Grid Bag Constraints . EAST ; gbc . fill = Grid Bag Constraints . HORIZONTAL ; gbc . insets = new Insets ( NUM , NUM , NUM , NUM ) ; gbc . gridx = NUM ; gbc . gridy = key...
private JButton addKeybindButton ( JPanel panel , String buttonText ) { GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . anchor = GridBagConstraints . EAST ; gbc . fill = GridBagConstraints . HORIZONTAL ; gbc . insets = new Insets ( _NUM , _NUM , _NUM , _NUM ) ; gbc . gridx = _NUM ; gbc . gridy = keybindButt...
106
java-test-7496
java
How should this be used ?
in conjunction with adding a label in a 1 : 1 ratio
private J Button add Keybind Button ( J Panel panel , String button Text ) { Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . anchor = Grid Bag Constraints . EAST ; gbc . fill = Grid Bag Constraints . HORIZONTAL ; gbc . insets = new Insets ( NUM , NUM , NUM , NUM ) ; gbc . gridx = NUM ; gbc . gridy = key...
private JButton addKeybindButton ( JPanel panel , String buttonText ) { GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . anchor = GridBagConstraints . EAST ; gbc . fill = GridBagConstraints . HORIZONTAL ; gbc . insets = new Insets ( _NUM , _NUM , _NUM , _NUM ) ; gbc . gridx = _NUM ; gbc . gridy = keybindButt...
106
java-test-7497
java
What delimit the map groups where ?
dummy url headers
public static List < Download File Description > sort By Map Name ( final List < Download File Description > downloads ) { check Not Null ( downloads ) ; final List < Download File Description > return List = new Array List < > ( ) ; List < Download File Description > maps = new Array List < > ( ) ; for ( final Downloa...
public static List < DownloadFileDescription > sortByMapName ( final List < DownloadFileDescription > downloads ) { checkNotNull ( downloads ) ; final List < DownloadFileDescription > returnList = new ArrayList < > ( ) ; List < DownloadFileDescription > maps = new ArrayList < > ( ) ; for ( final DownloadFileDescription...
112
java-test-7498
java
What do dummy url headers delimit where ?
the map groups
public static List < Download File Description > sort By Map Name ( final List < Download File Description > downloads ) { check Not Null ( downloads ) ; final List < Download File Description > return List = new Array List < > ( ) ; List < Download File Description > maps = new Array List < > ( ) ; for ( final Downloa...
public static List < DownloadFileDescription > sortByMapName ( final List < DownloadFileDescription > downloads ) { checkNotNull ( downloads ) ; final List < DownloadFileDescription > returnList = new ArrayList < > ( ) ; List < DownloadFileDescription > maps = new ArrayList < > ( ) ; for ( final DownloadFileDescription...
112
java-test-7499
java
What does the code create ?
a new status panel
public C Status Panel ( final Back End Debugger Provider debugger Provider ) { super ( new Border Layout ( ) ) ; Preconditions . check Not Null ( debugger Provider , STRING ) ; m label . set Foreground ( Color . BLACK ) ; add ( m label ) ; m synchronizer = new C Status Label Synchronizer ( m label , debugger Provider )...
public CStatusPanel ( final BackEndDebuggerProvider debuggerProvider ) { super ( new BorderLayout ( ) ) ; Preconditions . checkNotNull ( debuggerProvider , STRING ) ; m_label . setForeground ( Color . BLACK ) ; add ( m_label ) ; m_synchronizer = new CStatusLabelSynchronizer ( m_label , debuggerProvider ) ; }
69
java-test-7503
java
What does the code open ?
the pds file
@ Override public boolean open ( String access ) { if ( access . equals ( STRING ) ) { try { i Stream = new File Image Input Stream ( new File ( file Path ) ) ; parser = new Label Parser ( ) ; metadata = parser . parse Header ( i Stream ) ; i Stream . close ( ) ; i Stream = null ; } catch ( IO Exception e ) { try { i S...
@ Override public boolean open ( String access ) { if ( access . equals ( STRING ) ) { try { iStream = new FileImageInputStream ( new File ( filePath ) ) ; parser = new LabelParser ( ) ; metadata = parser . parseHeader ( iStream ) ; iStream . close ( ) ; iStream = null ; } catch ( IOException e ) { try { iStream . clos...
113
java-test-7504
java
How do ( bytecode instruction invokestatic call ?
static method
public void add Static Method Call ( String owner , String method Name , String target Class , String target Method ) { Static Method Call Entry call = new Static Method Call Entry ( owner , method Name , target Class , target Method ) ; logger . info ( STRING + call . to String ( ) ) ; static Method Calls . add ( call...
public void addStaticMethodCall ( String owner , String methodName , String targetClass , String targetMethod ) { StaticMethodCallEntry call = new StaticMethodCallEntry ( owner , methodName , targetClass , targetMethod ) ; logger . info ( STRING + call . toString ( ) ) ; staticMethodCalls . add ( call ) ; }
71
java-test-7505
java
What does the code add to the graph ?
a static method call ( bytecode instruction invokestatic )
public void add Static Method Call ( String owner , String method Name , String target Class , String target Method ) { Static Method Call Entry call = new Static Method Call Entry ( owner , method Name , target Class , target Method ) ; logger . info ( STRING + call . to String ( ) ) ; static Method Calls . add ( call...
public void addStaticMethodCall ( String owner , String methodName , String targetClass , String targetMethod ) { StaticMethodCallEntry call = new StaticMethodCallEntry ( owner , methodName , targetClass , targetMethod ) ; logger . info ( STRING + call . toString ( ) ) ; staticMethodCalls . add ( call ) ; }
71
java-test-7506
java
What does the code create ?
a new playerminednumberofitemscondition
public Player Mined Number Of Items Condition ( int number , String ... items ) { item Mined List = new Array List < String > ( ) ; if ( items != null ) { for ( String item : items ) { item Mined List . add ( item ) ; } } quantity = number ; }
public PlayerMinedNumberOfItemsCondition ( int number , String ... items ) { itemMinedList = new ArrayList < String > ( ) ; if ( items != null ) { for ( String item : items ) { itemMinedList . add ( item ) ; } } quantity = number ; }
60
java-test-7507
java
What does the code remove ?
the value to which the specified key is mapped
public V remove ( A arg ) { Future < V > future = cache . remove ( arg ) ; V res = null ; if ( future != null ) { try { res = future . get ( ) ; } catch ( Interrupted Exception | Execution Exception ignore ) { } } return res ; }
public V remove ( A arg ) { Future < V > future = cache . remove ( arg ) ; V res = null ; if ( future != null ) { try { res = future . get ( ) ; } catch ( InterruptedException | ExecutionException ignore ) { } } return res ; }
60
java-test-7508
java
What do language add ?
to supported languages
public static void add Language ( Language language ) { if ( language == null ) return ; Array List < Language > list = new Array List < Language > ( Arrays . as List ( s languages ) ) ; list . add ( language ) ; s languages = new Language [ list . size ( ) ] ; list . to Array ( s languages ) ; }
public static void addLanguage ( Language language ) { if ( language == null ) return ; ArrayList < Language > list = new ArrayList < Language > ( Arrays . asList ( s_languages ) ) ; list . add ( language ) ; s_languages = new Language [ list . size ( ) ] ; list . toArray ( s_languages ) ; }
72
java-test-7509
java
What adds to supported languages ?
language
public static void add Language ( Language language ) { if ( language == null ) return ; Array List < Language > list = new Array List < Language > ( Arrays . as List ( s languages ) ) ; list . add ( language ) ; s languages = new Language [ list . size ( ) ] ; list . to Array ( s languages ) ; }
public static void addLanguage ( Language language ) { if ( language == null ) return ; ArrayList < Language > list = new ArrayList < Language > ( Arrays . asList ( s_languages ) ) ; list . add ( language ) ; s_languages = new Language [ list . size ( ) ] ; list . toArray ( s_languages ) ; }
72
java-test-7512
java
What do this reject automatically ?
duplicate points and multiple disconnected points
private void next Point ( double x , double y , boolean connect ) { if ( x == px && y == py ) { return ; } if ( w == NUM ) { if ( data == null ) { data = new double [ NUM ] ; } if ( connect ) { w = NUM ; } } if ( w != NUM && ! connect && ! pconnect ) { data [ w - NUM ] = px = x ; data [ w - NUM ] = py = y ; return ; } ...
private void nextPoint ( double x , double y , boolean connect ) { if ( x == px && y == py ) { return ; } if ( w == _NUM ) { if ( data == null ) { data = new double [ _NUM ] ; } if ( connect ) { w = _NUM ; } } if ( w != _NUM && ! connect && ! pconnect ) { data [ w - _NUM ] = px = x ; data [ w - _NUM ] = py = y ; return...
213
java-test-7513
java
What does this object render as a bytematrix 2d array of greyscale values ?
a qr code
public Byte Matrix encode ( String contents ) throws Writer Exception { if ( contents == null || contents . length ( ) == NUM ) { throw new Illegal Argument Exception ( STRING ) ; } code = Encoder . encode ( contents , Error Correction Level . L ) ; return render Result ( code , QR CODE ELEMENT MULTIPLE ) ; }
public ByteMatrix encode ( String contents ) throws WriterException { if ( contents == null || contents . length ( ) == _NUM ) { throw new IllegalArgumentException ( STRING ) ; } code = Encoder . encode ( contents , ErrorCorrectionLevel . L ) ; return renderResult ( code , QR_CODE_ELEMENT_MULTIPLE ) ; }
65
java-test-7514
java
How must the api end in ` v { major - version } ` for major versions 0 and 1 ?
as in ` google . feature . v1 `
public static String extract Default Major Version From Package Name ( String package Name ) { String [ ] segs = package Name . split ( STRING ) ; String last Seg = segs [ segs . length - NUM ] ; Matcher matcher = MAJOR VERSION REGEX PATTERN . matcher ( last Seg ) ; if ( matcher . find ( ) ) { return matcher . group ( ...
public static String extractDefaultMajorVersionFromPackageName ( String packageName ) { String [ ] segs = packageName . split ( STRING ) ; String lastSeg = segs [ segs . length - _NUM ] ; Matcher matcher = MAJOR_VERSION_REGEX_PATTERN . matcher ( lastSeg ) ; if ( matcher . find ( ) ) { return matcher . group ( _NUM ) ; ...
81
java-test-7515
java
For what purpose must the api end in ` v { major - version } ` as in ` google . feature . v1 ` ?
for major versions 0 and 1
public static String extract Default Major Version From Package Name ( String package Name ) { String [ ] segs = package Name . split ( STRING ) ; String last Seg = segs [ segs . length - NUM ] ; Matcher matcher = MAJOR VERSION REGEX PATTERN . matcher ( last Seg ) ; if ( matcher . find ( ) ) { return matcher . group ( ...
public static String extractDefaultMajorVersionFromPackageName ( String packageName ) { String [ ] segs = packageName . split ( STRING ) ; String lastSeg = segs [ segs . length - _NUM ] ; Matcher matcher = MAJOR_VERSION_REGEX_PATTERN . matcher ( lastSeg ) ; if ( matcher . find ( ) ) { return matcher . group ( _NUM ) ; ...
81
java-test-7516
java
Where must the api end as in ` google . feature . v1 ` for major versions 0 and 1 ?
in ` v { major - version } `
public static String extract Default Major Version From Package Name ( String package Name ) { String [ ] segs = package Name . split ( STRING ) ; String last Seg = segs [ segs . length - NUM ] ; Matcher matcher = MAJOR VERSION REGEX PATTERN . matcher ( last Seg ) ; if ( matcher . find ( ) ) { return matcher . group ( ...
public static String extractDefaultMajorVersionFromPackageName ( String packageName ) { String [ ] segs = packageName . split ( STRING ) ; String lastSeg = segs [ segs . length - _NUM ] ; Matcher matcher = MAJOR_VERSION_REGEX_PATTERN . matcher ( lastSeg ) ; if ( matcher . find ( ) ) { return matcher . group ( _NUM ) ; ...
81
java-test-7518
java
What does the code create ?
a unique mangled method name based on the method name and the method parameters
public static String mangle Name ( Method method , boolean is Full ) { String Buffer sb = new String Buffer ( ) ; sb . append ( method . get Name ( ) ) ; Class [ ] params = method . get Parameter Types ( ) ; for ( int i = NUM ; i < params . length ; i ++ ) { sb . append ( STRING ) ; sb . append ( mangle Class ( params ...
public static String mangleName ( Method method , boolean isFull ) { StringBuffer sb = new StringBuffer ( ) ; sb . append ( method . getName ( ) ) ; Class [ ] params = method . getParameterTypes ( ) ; for ( int i = _NUM ; i < params . length ; i ++ ) { sb . append ( STRING ) ; sb . append ( mangleClass ( params [ i ] ,...
100
java-test-7522
java
What does this method update for new initiators , based on array selected ports ?
storage ports in export masks
private void update Storage Ports For Add Initiators ( Export Mask Add Initiator Completer task Completer , Storage System system , Export Mask export Mask , List < com . emc . storageos . db . client . model . Initiator > initiator List , List < com . emc . storageos . db . client . model . Storage Port > selected Por...
private void updateStoragePortsForAddInitiators ( ExportMaskAddInitiatorCompleter taskCompleter , StorageSystem system , ExportMask exportMask , List < com . emc . storageos . db . client . model . Initiator > initiatorList , List < com . emc . storageos . db . client . model . StoragePort > selectedPortsForMask , URI ...
265
java-test-7525
java
What did the code build ?
a valid sql query
private String rebuild Slony Query ( String cmd Type , String cmd Data , String table Schema Name ) throws Replicator Exception { String Buffer sb = new String Buffer ( ) ; if ( cmd Type . compare To ( STRING ) == NUM ) { sb . append ( STRING ) ; sb . append ( table Schema Name ) ; sb . append ( STRING ) ; } else if ( ...
private String rebuildSlonyQuery ( String cmdType , String cmdData , String tableSchemaName ) throws ReplicatorException { StringBuffer sb = new StringBuffer ( ) ; if ( cmdType . compareTo ( STRING ) == _NUM ) { sb . append ( STRING ) ; sb . append ( tableSchemaName ) ; sb . append ( STRING ) ; } else if ( cmdType . co...
178
java-test-7526
java
What did the code put back together ?
all slony log ' s variables
private String rebuild Slony Query ( String cmd Type , String cmd Data , String table Schema Name ) throws Replicator Exception { String Buffer sb = new String Buffer ( ) ; if ( cmd Type . compare To ( STRING ) == NUM ) { sb . append ( STRING ) ; sb . append ( table Schema Name ) ; sb . append ( STRING ) ; } else if ( ...
private String rebuildSlonyQuery ( String cmdType , String cmdData , String tableSchemaName ) throws ReplicatorException { StringBuffer sb = new StringBuffer ( ) ; if ( cmdType . compareTo ( STRING ) == _NUM ) { sb . append ( STRING ) ; sb . append ( tableSchemaName ) ; sb . append ( STRING ) ; } else if ( cmdType . co...
178
java-test-7527
java
What did it have ?
a waitfor clause pointing to a step or step group that is not in the success state
boolean is Blocked ( Workflow workflow , Step step ) throws Workflow Exception , Cancelled Exception { if ( step . wait For == null ) { return BOOL ; } Map < String , Step Status > status Map = new Hash Map < String , Step Status > ( ) ; try { Step Status status = workflow . get Step Status ( step . wait For ) ; status...
boolean isBlocked ( Workflow workflow , Step step ) throws WorkflowException , CancelledException { if ( step . waitFor == null ) { return _BOOL ; } Map < String , StepStatus > statusMap = new HashMap < String , StepStatus > ( ) ; try { StepStatus status = workflow . getStepStatus ( step . waitFor ) ; statusMap . put (...
269
java-test-7529
java
What does the code create ?
a new connectioninfo with the give parameters
public Connection Info ( @ Nullable String user , @ Nullable String password , String driver Class Name , String authless Url , String full Url ) { this . user = user ; this . password = password ; this . driver Class Name = driver Class Name ; this . authless Url = authless Url ; this . full Url = full Url ; }
public ConnectionInfo ( @ Nullable String user , @ Nullable String password , String driverClassName , String authlessUrl , String fullUrl ) { this . user = user ; this . password = password ; this . driverClassName = driverClassName ; this . authlessUrl = authlessUrl ; this . fullUrl = fullUrl ; }
67
java-test-7530
java
What does the code save ?
the existing attribute states
private void save State ( ) { saved Start Offset = offset Attribute . start Offset ( ) ; saved End Offset = offset Attribute . end Offset ( ) ; has Illegal Offsets = ( saved End Offset - saved Start Offset != term Attribute . length ( ) ) ; saved Type = type Attribute . type ( ) ; if ( saved Buffer . length < term Attr...
private void saveState ( ) { savedStartOffset = offsetAttribute . startOffset ( ) ; savedEndOffset = offsetAttribute . endOffset ( ) ; hasIllegalOffsets = ( savedEndOffset - savedStartOffset != termAttribute . length ( ) ) ; savedType = typeAttribute . type ( ) ; if ( savedBuffer . length < termAttribute . length ( ) )...
142
java-test-7531
java
What does the code create ?
a new delete - xxx sub - command for a set relation
public static Delete Sub Command Handler create ( Sub Command Argument Parser parser , Managed Object Path < ? , ? > p , Set Relation Definition < ? , ? > r ) throws Argument Exception { return new Delete Sub Command Handler ( parser , p , r , p . child ( r ) ) ; }
public static DeleteSubCommandHandler create ( SubCommandArgumentParser parser , ManagedObjectPath < ? , ? > p , SetRelationDefinition < ? , ? > r ) throws ArgumentException { return new DeleteSubCommandHandler ( parser , p , r , p . child ( r ) ) ; }
60
java-test-7534
java
What should release its ownership back to the allocationmanager if the ledger is decremented to zero ?
this ledger
public int decrement ( int decrement ) { allocator . assert Open ( ) ; final int outcome ; try ( Auto Closeable Lock write = write Lock . open ( ) ) { outcome = buf Ref Cnt . add And Get ( - decrement ) ; if ( outcome == NUM ) { l Destruction Time = System . nano Time ( ) ; listener . release ( ) ; } } return outcome ;...
public int decrement ( int decrement ) { allocator . assertOpen ( ) ; final int outcome ; try ( AutoCloseableLock write = writeLock . open ( ) ) { outcome = bufRefCnt . addAndGet ( - decrement ) ; if ( outcome == _NUM ) { lDestructionTime = System . nanoTime ( ) ; listener . release ( ) ; } } return outcome ; }
78
java-test-7535
java
What should this ledger release back to the allocationmanager if the ledger is decremented to zero ?
its ownership
public int decrement ( int decrement ) { allocator . assert Open ( ) ; final int outcome ; try ( Auto Closeable Lock write = write Lock . open ( ) ) { outcome = buf Ref Cnt . add And Get ( - decrement ) ; if ( outcome == NUM ) { l Destruction Time = System . nano Time ( ) ; listener . release ( ) ; } } return outcome ;...
public int decrement ( int decrement ) { allocator . assertOpen ( ) ; final int outcome ; try ( AutoCloseableLock write = writeLock . open ( ) ) { outcome = bufRefCnt . addAndGet ( - decrement ) ; if ( outcome == _NUM ) { lDestructionTime = System . nanoTime ( ) ; listener . release ( ) ; } } return outcome ; }
78
java-test-7536
java
What must the invoke ( ) methods accept ?
two additional leading arguments of the interpreter and callstack , respectively
public static Object invoke Compiled Command ( Class command Class , Object [ ] args , Interpreter interpreter , Call Stack callstack ) throws Util Eval Error { Object [ ] invoke Args = new Object [ args . length + NUM ] ; invoke Args [ NUM ] = interpreter ; invoke Args [ NUM ] = callstack ; System . arraycopy ( args ,...
public static Object invokeCompiledCommand ( Class commandClass , Object [ ] args , Interpreter interpreter , CallStack callstack ) throws UtilEvalError { Object [ ] invokeArgs = new Object [ args . length + _NUM ] ; invokeArgs [ _NUM ] = interpreter ; invokeArgs [ _NUM ] = callstack ; System . arraycopy ( args , _NUM ...
158
java-test-7537
java
What do a compiled java class contain ?
one or more static invoke ( ) methods of the correct signature
public static Object invoke Compiled Command ( Class command Class , Object [ ] args , Interpreter interpreter , Call Stack callstack ) throws Util Eval Error { Object [ ] invoke Args = new Object [ args . length + NUM ] ; invoke Args [ NUM ] = interpreter ; invoke Args [ NUM ] = callstack ; System . arraycopy ( args ,...
public static Object invokeCompiledCommand ( Class commandClass , Object [ ] args , Interpreter interpreter , CallStack callstack ) throws UtilEvalError { Object [ ] invokeArgs = new Object [ args . length + _NUM ] ; invokeArgs [ _NUM ] = interpreter ; invokeArgs [ _NUM ] = callstack ; System . arraycopy ( args , _NUM ...
158
java-test-7538
java
How may a command be implemented ?
as a compiled java class containing one or more static invoke ( ) methods of the correct signature
public static Object invoke Compiled Command ( Class command Class , Object [ ] args , Interpreter interpreter , Call Stack callstack ) throws Util Eval Error { Object [ ] invoke Args = new Object [ args . length + NUM ] ; invoke Args [ NUM ] = interpreter ; invoke Args [ NUM ] = callstack ; System . arraycopy ( args ,...
public static Object invokeCompiledCommand ( Class commandClass , Object [ ] args , Interpreter interpreter , CallStack callstack ) throws UtilEvalError { Object [ ] invokeArgs = new Object [ args . length + _NUM ] ; invokeArgs [ _NUM ] = interpreter ; invokeArgs [ _NUM ] = callstack ; System . arraycopy ( args , _NUM ...
158
java-test-7539
java
What is containing one or more static invoke ( ) methods of the correct signature ?
a compiled java class
public static Object invoke Compiled Command ( Class command Class , Object [ ] args , Interpreter interpreter , Call Stack callstack ) throws Util Eval Error { Object [ ] invoke Args = new Object [ args . length + NUM ] ; invoke Args [ NUM ] = interpreter ; invoke Args [ NUM ] = callstack ; System . arraycopy ( args ,...
public static Object invokeCompiledCommand ( Class commandClass , Object [ ] args , Interpreter interpreter , CallStack callstack ) throws UtilEvalError { Object [ ] invokeArgs = new Object [ args . length + _NUM ] ; invokeArgs [ _NUM ] = interpreter ; invokeArgs [ _NUM ] = callstack ; System . arraycopy ( args , _NUM ...
158
java-test-7540
java
What must accept two additional leading arguments of the interpreter and callstack , respectively ?
the invoke ( ) methods
public static Object invoke Compiled Command ( Class command Class , Object [ ] args , Interpreter interpreter , Call Stack callstack ) throws Util Eval Error { Object [ ] invoke Args = new Object [ args . length + NUM ] ; invoke Args [ NUM ] = interpreter ; invoke Args [ NUM ] = callstack ; System . arraycopy ( args ,...
public static Object invokeCompiledCommand ( Class commandClass , Object [ ] args , Interpreter interpreter , CallStack callstack ) throws UtilEvalError { Object [ ] invokeArgs = new Object [ args . length + _NUM ] ; invokeArgs [ _NUM ] = interpreter ; invokeArgs [ _NUM ] = callstack ; System . arraycopy ( args , _NUM ...
158
java-test-7541
java
What does this method invoke returning the result ?
the static method
public static Object invoke Compiled Command ( Class command Class , Object [ ] args , Interpreter interpreter , Call Stack callstack ) throws Util Eval Error { Object [ ] invoke Args = new Object [ args . length + NUM ] ; invoke Args [ NUM ] = interpreter ; invoke Args [ NUM ] = callstack ; System . arraycopy ( args ,...
public static Object invokeCompiledCommand ( Class commandClass , Object [ ] args , Interpreter interpreter , CallStack callstack ) throws UtilEvalError { Object [ ] invokeArgs = new Object [ args . length + _NUM ] ; invokeArgs [ _NUM ] = interpreter ; invokeArgs [ _NUM ] = callstack ; System . arraycopy ( args , _NUM ...
158
java-test-7542
java
When does a graph window unregister ?
when it is closed
private void unregister ( final C Graph Window window ) { if ( ! m graphs . remove ( window ) ) { throw new Illegal State Exception ( STRING ) ; } for ( final I Window Manager Listener listener : m listeners ) { try { listener . window Closed ( this , window ) ; } catch ( final Exception e ) { C Utility Functions . log...
private void unregister ( final CGraphWindow window ) { if ( ! m_graphs . remove ( window ) ) { throw new IllegalStateException ( STRING ) ; } for ( final IWindowManagerListener listener : m_listeners ) { try { listener . windowClosed ( this , window ) ; } catch ( final Exception e ) { CUtilityFunctions . logException ...
87
java-test-7543
java
What does the code write ?
an ompoint to the link
public static void write ( OM Point point , Link link , Link Properties props ) throws IO Exception { props . set Property ( Link Point . LPC POINT OVAL , point . is Oval ( ) ? STRING : STRING ) ; switch ( point . get Render Type ( ) ) { case OM Point . RENDERTYPE LATLON : Link Point . write ( ( float ) point . get Lat...
public static void write ( OMPoint point , Link link , LinkProperties props ) throws IOException { props . setProperty ( LinkPoint . LPC_POINT_OVAL , point . isOval ( ) ? STRING : STRING ) ; switch ( point . getRenderType ( ) ) { case OMPoint . RENDERTYPE_LATLON : LinkPoint . write ( ( float ) point . getLat ( ) , ( fl...
218
java-test-7544
java
What does the code add to the message argument ?
an integer number
protected final void append Int ( final int number ) { for ( int i = NUM ; i >= NUM ; -- i ) { byte Data . add ( Byte . value Of ( ( byte ) ( number > > NUM * i & NUM ) ) ) ; } }
protected final void appendInt ( final int number ) { for ( int i = _NUM ; i >= _NUM ; -- i ) { byteData . add ( Byte . valueOf ( ( byte ) ( number > > _NUM * i & _NUM ) ) ) ; } }
54
java-test-7545
java
When did the code execute ?
after establishing web socket connection with streams api
@ On Web Socket Connect public void on Connect ( Session session ) { this . websocket Session = session ; send Update ( this . websocket Session , this . o Auth Token , this . stream Type , this . stream Query , this . stream Version , this . schema Version ) ; }
@ OnWebSocketConnect public void onConnect ( Session session ) { this . websocketSession = session ; sendUpdate ( this . websocketSession , this . oAuthToken , this . streamType , this . streamQuery , this . streamVersion , this . schemaVersion ) ; }
57
java-test-7546
java
What does the code run ?
the upgma algorithm
private void compute UPMA Tree ( Taxa taxa , Distances dist , Phylo Tree tree ) { tree . clear ( ) ; int ntax = dist . get Ntax ( ) ; Node [ ] subtrees = new Node [ ntax + NUM ] ; int [ ] sizes = new int [ ntax + NUM ] ; double [ ] heights = new double [ ntax + NUM ] ; for ( int i = NUM ; i <= ntax ; i ++ ) { subtrees ...
private void computeUPMATree ( Taxa taxa , Distances dist , PhyloTree tree ) { tree . clear ( ) ; int ntax = dist . getNtax ( ) ; Node [ ] subtrees = new Node [ ntax + _NUM ] ; int [ ] sizes = new int [ ntax + _NUM ] ; double [ ] heights = new double [ ntax + _NUM ] ; for ( int i = _NUM ; i <= ntax ; i ++ ) { subtrees ...
846
java-test-7549
java
How does number return ?
with the appropriate digit appended
public static String add Luhn Digit ( String number ) { char [ ] digits = { STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING } ; int c = number . length ( ) ; String Buffer try Number = new String Buffer ( number + digits [ NUM ] ) ; int i ; for ( i = NUM ; i < NUM ; i ++ ) { try ...
public static String addLuhnDigit ( String number ) { char [ ] digits = { STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING } ; int c = number . length ( ) ; StringBuffer tryNumber = new StringBuffer ( number + digits [ _NUM ] ) ; int i ; for ( i = _NUM ; i < _NUM ; i ++ ) { tryNum...
123
java-test-7553
java
For what purpose do the block controller call ?
to natively relink the passed linked targets to the passed target snapshot session
private String create Workflow Step For Relink Native Targets ( Workflow workflow , Block Snapshot Session tgt Snap Session , List < URI > snapshot UR Is , String wait For , Workflow . Method rollback Method ) { URI parent System URI = tgt Snap Session . get Storage Controller ( ) ; Storage System parent System = get D...
private String createWorkflowStepForRelinkNativeTargets ( Workflow workflow , BlockSnapshotSession tgtSnapSession , List < URI > snapshotURIs , String waitFor , Workflow . Method rollbackMethod ) { URI parentSystemURI = tgtSnapSession . getStorageController ( ) ; StorageSystem parentSystem = getDataObject ( StorageSyst...
206
java-test-7554
java
What does the code create ?
a step in the passed workflow to call the block controller to natively relink the passed linked targets to the passed target snapshot session
private String create Workflow Step For Relink Native Targets ( Workflow workflow , Block Snapshot Session tgt Snap Session , List < URI > snapshot UR Is , String wait For , Workflow . Method rollback Method ) { URI parent System URI = tgt Snap Session . get Storage Controller ( ) ; Storage System parent System = get D...
private String createWorkflowStepForRelinkNativeTargets ( Workflow workflow , BlockSnapshotSession tgtSnapSession , List < URI > snapshotURIs , String waitFor , Workflow . Method rollbackMethod ) { URI parentSystemURI = tgtSnapSession . getStorageController ( ) ; StorageSystem parentSystem = getDataObject ( StorageSyst...
206
java-test-7555
java
What relinks the passed linked targets to the passed target snapshot session natively ?
the block controller
private String create Workflow Step For Relink Native Targets ( Workflow workflow , Block Snapshot Session tgt Snap Session , List < URI > snapshot UR Is , String wait For , Workflow . Method rollback Method ) { URI parent System URI = tgt Snap Session . get Storage Controller ( ) ; Storage System parent System = get D...
private String createWorkflowStepForRelinkNativeTargets ( Workflow workflow , BlockSnapshotSession tgtSnapSession , List < URI > snapshotURIs , String waitFor , Workflow . Method rollbackMethod ) { URI parentSystemURI = tgtSnapSession . getStorageController ( ) ; StorageSystem parentSystem = getDataObject ( StorageSyst...
206
java-test-7556
java
What do the block controller relink to the passed target snapshot session natively ?
the passed linked targets
private String create Workflow Step For Relink Native Targets ( Workflow workflow , Block Snapshot Session tgt Snap Session , List < URI > snapshot UR Is , String wait For , Workflow . Method rollback Method ) { URI parent System URI = tgt Snap Session . get Storage Controller ( ) ; Storage System parent System = get D...
private String createWorkflowStepForRelinkNativeTargets ( Workflow workflow , BlockSnapshotSession tgtSnapSession , List < URI > snapshotURIs , String waitFor , Workflow . Method rollbackMethod ) { URI parentSystemURI = tgtSnapSession . getStorageController ( ) ; StorageSystem parentSystem = getDataObject ( StorageSyst...
206
java-test-7557
java
Why would this result in duplicates ?
because output must be populated with initial state of matrix - with append
protected void merge With Comp ( Matrix Block out , Matrix Block in , double [ ] [ ] compare ) throws DML Runtime Exception { if ( in . is In Sparse Format ( ) ) { int rows = in . get Num Rows ( ) ; int cols = in . get Num Columns ( ) ; for ( int i = NUM ; i < rows ; i ++ ) for ( int j = NUM ; j < cols ; j ++ ) { doubl...
protected void mergeWithComp ( MatrixBlock out , MatrixBlock in , double [ ] [ ] compare ) throws DMLRuntimeException { if ( in . isInSparseFormat ( ) ) { int rows = in . getNumRows ( ) ; int cols = in . getNumColumns ( ) ; for ( int i = _NUM ; i < rows ; i ++ ) for ( int j = _NUM ; j < cols ; j ++ ) { double value = i...
303
java-test-7558
java
How must output be populated with initial state of matrix ?
with append
protected void merge With Comp ( Matrix Block out , Matrix Block in , double [ ] [ ] compare ) throws DML Runtime Exception { if ( in . is In Sparse Format ( ) ) { int rows = in . get Num Rows ( ) ; int cols = in . get Num Columns ( ) ; for ( int i = NUM ; i < rows ; i ++ ) for ( int j = NUM ; j < cols ; j ++ ) { doubl...
protected void mergeWithComp ( MatrixBlock out , MatrixBlock in , double [ ] [ ] compare ) throws DMLRuntimeException { if ( in . isInSparseFormat ( ) ) { int rows = in . getNumRows ( ) ; int cols = in . getNumColumns ( ) ; for ( int i = _NUM ; i < rows ; i ++ ) for ( int j = _NUM ; j < cols ; j ++ ) { double value = i...
303
java-test-7559
java
What does the code create ?
a new function selection tree
public C Function Selection Tree ( final I Database database , final I Action Provider action Provider ) { Preconditions . check Not Null ( database , STRING ) ; Preconditions . check Not Null ( action Provider , STRING ) ; final Default Tree Model model = new Default Tree Model ( null ) ; set Model ( model ) ; set Roo...
public CFunctionSelectionTree ( final IDatabase database , final IActionProvider actionProvider ) { Preconditions . checkNotNull ( database , STRING ) ; Preconditions . checkNotNull ( actionProvider , STRING ) ; final DefaultTreeModel model = new DefaultTreeModel ( null ) ; setModel ( model ) ; setRootVisible ( _BOOL )...
113
java-test-7560
java
What does the code create ?
a step in the passed workflow to resynchronize the backend full copy volumes with the passed uris
private String create Workflow Step For Resync Native Full Copy ( Workflow workflow , Storage System native System , List < URI > native Full Copy UR Is , String wait For , Workflow . Method rollback Method ) { URI native System URI = native System . get Id ( ) ; Workflow . Method resync Full Copy Method = new Workflow...
private String createWorkflowStepForResyncNativeFullCopy ( Workflow workflow , StorageSystem nativeSystem , List < URI > nativeFullCopyURIs , String waitFor , Workflow . Method rollbackMethod ) { URI nativeSystemURI = nativeSystem . getId ( ) ; Workflow . Method resyncFullCopyMethod = new Workflow . Method ( RESYNC_FC_...
162
java-test-7561
java
What does the code get from the path string ?
the list of path
static Vector parse ( String str ) throws Parse Exception { int state = START ; int name Start Index = - NUM ; Vector paths = new Vector ( ) ; Vector names = new Vector ( ) ; boolean root = BOOL ; for ( int i = NUM , len = str . length ( ) ; i < len ; i ++ ) { char c = str . char At ( i ) ; switch ( c ) { case STRING :...
static Vector parse ( String str ) throws ParseException { int state = START ; int nameStartIndex = - _NUM ; Vector paths = new Vector ( ) ; Vector names = new Vector ( ) ; boolean root = _BOOL ; for ( int i = _NUM , len = str . length ( ) ; i < len ; i ++ ) { char c = str . charAt ( i ) ; switch ( c ) { case STRING : ...
415
java-test-7562
java
What can the path string represent ?
more paths separated by |
static Vector parse ( String str ) throws Parse Exception { int state = START ; int name Start Index = - NUM ; Vector paths = new Vector ( ) ; Vector names = new Vector ( ) ; boolean root = BOOL ; for ( int i = NUM , len = str . length ( ) ; i < len ; i ++ ) { char c = str . char At ( i ) ; switch ( c ) { case STRING :...
static Vector parse ( String str ) throws ParseException { int state = START ; int nameStartIndex = - _NUM ; Vector paths = new Vector ( ) ; Vector names = new Vector ( ) ; boolean root = _BOOL ; for ( int i = _NUM , len = str . length ( ) ; i < len ; i ++ ) { char c = str . charAt ( i ) ; switch ( c ) { case STRING : ...
415
java-test-7563
java
In which direction does the code get the list of path ?
from the path string
static Vector parse ( String str ) throws Parse Exception { int state = START ; int name Start Index = - NUM ; Vector paths = new Vector ( ) ; Vector names = new Vector ( ) ; boolean root = BOOL ; for ( int i = NUM , len = str . length ( ) ; i < len ; i ++ ) { char c = str . char At ( i ) ; switch ( c ) { case STRING :...
static Vector parse ( String str ) throws ParseException { int state = START ; int nameStartIndex = - _NUM ; Vector paths = new Vector ( ) ; Vector names = new Vector ( ) ; boolean root = _BOOL ; for ( int i = _NUM , len = str . length ( ) ; i < len ; i ++ ) { char c = str . charAt ( i ) ; switch ( c ) { case STRING : ...
415
java-test-7564
java
What can represent more paths separated by | ?
the path string
static Vector parse ( String str ) throws Parse Exception { int state = START ; int name Start Index = - NUM ; Vector paths = new Vector ( ) ; Vector names = new Vector ( ) ; boolean root = BOOL ; for ( int i = NUM , len = str . length ( ) ; i < len ; i ++ ) { char c = str . char At ( i ) ; switch ( c ) { case STRING :...
static Vector parse ( String str ) throws ParseException { int state = START ; int nameStartIndex = - _NUM ; Vector paths = new Vector ( ) ; Vector names = new Vector ( ) ; boolean root = _BOOL ; for ( int i = _NUM , len = str . length ( ) ; i < len ; i ++ ) { char c = str . charAt ( i ) ; switch ( c ) { case STRING : ...
415
java-test-7567
java
What does the method perform if null is passed in ?
a check for the default namespace
public boolean namespace Published To Mapgraph ( final String namespace ) throws Exception { assert Mapgraph Runtime Available ( ) ; final String repository Url = get Sparql Endpoint Url For Namespace Or Default ( namespace ) ; final Connect Options opts = new Connect Options ( repository Url , UUID . random UUID ( ) ,...
public boolean namespacePublishedToMapgraph ( final String namespace ) throws Exception { assertMapgraphRuntimeAvailable ( ) ; final String repositoryUrl = getSparqlEndpointUrlForNamespaceOrDefault ( namespace ) ; final ConnectOptions opts = newConnectOptions ( repositoryUrl , UUID . randomUUID ( ) , null ) ; JettyResp...
155
java-test-7568
java
What do each have ?
a single random value
private static void explicit Overlap Test ( final I Schema Version schema Version ) throws IO Exception { final Writer output = open Output ( schema Version , STRING , Test Type . UNION ) ; final Random random = new Random ( random Long ( ) ) ; final HLL hll = new HLL ( HLL Type . EMPTY ) ; final HLL empty HLL = new HL...
private static void explicitOverlapTest ( final ISchemaVersion schemaVersion ) throws IOException { final Writer output = openOutput ( schemaVersion , STRING , TestType . UNION ) ; final Random random = new Random ( randomLong ( ) ) ; final HLL hll = newHLL ( HLLType . EMPTY ) ; final HLL emptyHLL = newHLL ( HLLType . ...
179
java-test-7569
java
What did i have ?
n4mf manifest file
public Pair < I Status , Collection < File > > adapt Packages ( Iterable < String > names Of Packages To Adapt ) { final File node Modules Folder = new File ( install Location Provider . get Target Platform Node Modules Location ( ) ) ; final Collection < String > names = new Hash Set ( names Of Packages To Adapt ) ; f...
public Pair < IStatus , Collection < File > > adaptPackages ( Iterable < String > namesOfPackagesToAdapt ) { final File nodeModulesFolder = new File ( installLocationProvider . getTargetPlatformNodeModulesLocation ( ) ) ; final Collection < String > names = newHashSet ( namesOfPackagesToAdapt ) ; final Collection < Fil...
472