id
stringlengths
11
16
language
stringclasses
2 values
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-3790
java
What do we need ?
to refresh
public boolean must Refresh ( ) { try { if ( current Snapshot == null || source File . count Files ( ) != current Snapshot . size ( ) ) return BOOL ; if ( current Open File != null ) { if ( ! Files . exists ( current Open File . get Path ( ) ) ) { LOGGER . debug ( STRING , current Open File . get Path ( ) ) ; return BO...
public boolean mustRefresh ( ) { try { if ( currentSnapshot == null || sourceFile . countFiles ( ) != currentSnapshot . size ( ) ) return _BOOL ; if ( currentOpenFile != null ) { if ( ! Files . exists ( currentOpenFile . getPath ( ) ) ) { LOGGER . debug ( STRING , currentOpenFile . getPath ( ) ) ; return _BOOL ; } Basi...
254
java-test-3791
java
For what purpose does this method perform a series of quick checks on the current open file ?
to see if we need to refresh
public boolean must Refresh ( ) { try { if ( current Snapshot == null || source File . count Files ( ) != current Snapshot . size ( ) ) return BOOL ; if ( current Open File != null ) { if ( ! Files . exists ( current Open File . get Path ( ) ) ) { LOGGER . debug ( STRING , current Open File . get Path ( ) ) ; return BO...
public boolean mustRefresh ( ) { try { if ( currentSnapshot == null || sourceFile . countFiles ( ) != currentSnapshot . size ( ) ) return _BOOL ; if ( currentOpenFile != null ) { if ( ! Files . exists ( currentOpenFile . getPath ( ) ) ) { LOGGER . debug ( STRING , currentOpenFile . getPath ( ) ) ; return _BOOL ; } Basi...
254
java-test-3792
java
What will this method set if needed ?
the legion ranking
public void perform Ranking Update ( Map < Integer , Integer > legion Ranking ) { log . info ( STRING ) ; long start Time = System . current Time Millis ( ) ; Iterator < Legion > legions Iterator = all Cached Legions . iterator ( ) ; int legions Updated = NUM ; this . legion Ranking = legion Ranking ; while ( legions I...
public void performRankingUpdate ( Map < Integer , Integer > legionRanking ) { log . info ( STRING ) ; long startTime = System . currentTimeMillis ( ) ; Iterator < Legion > legionsIterator = allCachedLegions . iterator ( ) ; int legionsUpdated = _NUM ; this . legionRanking = legionRanking ; while ( legionsIterator . ha...
183
java-test-3793
java
What does the code pick ?
the vertices inside the rectangle created from points ' down ' and ' out ' ( two diagonally opposed corners of the rectangle )
protected void pick Contained Vertices ( Visualization Viewer < V , E > vv , Point 2 D down , Point 2 D out , boolean clear ) { Layout < V , E > layout = vv . get Graph Layout ( ) ; Picked State < V > picked Vertex State = vv . get Picked Vertex State ( ) ; Rectangle 2 D pick Rectangle = new Rectangle 2 D . Double ( ) ...
protected void pickContainedVertices ( VisualizationViewer < V , E > vv , Point2D down , Point2D out , boolean clear ) { Layout < V , E > layout = vv . getGraphLayout ( ) ; PickedState < V > pickedVertexState = vv . getPickedVertexState ( ) ; Rectangle2D pickRectangle = new Rectangle2D . Double ( ) ; pickRectangle . se...
173
java-test-3794
java
How did corners oppose ?
diagonally
protected void pick Contained Vertices ( Visualization Viewer < V , E > vv , Point 2 D down , Point 2 D out , boolean clear ) { Layout < V , E > layout = vv . get Graph Layout ( ) ; Picked State < V > picked Vertex State = vv . get Picked Vertex State ( ) ; Rectangle 2 D pick Rectangle = new Rectangle 2 D . Double ( ) ...
protected void pickContainedVertices ( VisualizationViewer < V , E > vv , Point2D down , Point2D out , boolean clear ) { Layout < V , E > layout = vv . getGraphLayout ( ) ; PickedState < V > pickedVertexState = vv . getPickedVertexState ( ) ; Rectangle2D pickRectangle = new Rectangle2D . Double ( ) ; pickRectangle . se...
173
java-test-3795
java
Where do zookeeper reconfigure to participant mode ?
within the local site
public void reconfig ZK To Writable ( List < String > observer Nodes , List < String > read Only Nodes ) { log . info ( STRING + STRING ) ; try { boolean reconfig Local = BOOL ; for ( String node : observer Nodes ) { if ( node . equals ( coordinator Ext . get My Node Id ( ) ) ) { reconfig Local = BOOL ; continue ; } Lo...
public void reconfigZKToWritable ( List < String > observerNodes , List < String > readOnlyNodes ) { log . info ( STRING + STRING ) ; try { boolean reconfigLocal = _BOOL ; for ( String node : observerNodes ) { if ( node . equals ( coordinatorExt . getMyNodeId ( ) ) ) { reconfigLocal = _BOOL ; continue ; } LocalReposito...
227
java-test-3796
java
What reconfigures to participant mode within the local site ?
zookeeper
public void reconfig ZK To Writable ( List < String > observer Nodes , List < String > read Only Nodes ) { log . info ( STRING + STRING ) ; try { boolean reconfig Local = BOOL ; for ( String node : observer Nodes ) { if ( node . equals ( coordinator Ext . get My Node Id ( ) ) ) { reconfig Local = BOOL ; continue ; } Lo...
public void reconfigZKToWritable ( List < String > observerNodes , List < String > readOnlyNodes ) { log . info ( STRING + STRING ) ; try { boolean reconfigLocal = _BOOL ; for ( String node : observerNodes ) { if ( node . equals ( coordinatorExt . getMyNodeId ( ) ) ) { reconfigLocal = _BOOL ; continue ; } LocalReposito...
227
java-test-3797
java
What does the code deploy ?
a microservice with dynamic path
public Microservices Runner deploy ( String base Path , Object microservice ) { Map < String , Object > values Map = new Hash Map < > ( ) ; values Map . put ( STRING , base Path ) ; Runtime Annotations . put Annotation ( microservice . get Class ( ) , Path . class , values Map ) ; ms Registry . add Service ( base Path ...
public MicroservicesRunner deploy ( String basePath , Object microservice ) { Map < String , Object > valuesMap = new HashMap < > ( ) ; valuesMap . put ( STRING , basePath ) ; RuntimeAnnotations . putAnnotation ( microservice . getClass ( ) , Path . class , valuesMap ) ; msRegistry . addService ( basePath , microservic...
78
java-test-3801
java
What does the code create ?
a new union type
public synchronized Base Type create Union ( final String name ) throws Couldnt Save Data Exception { Preconditions . check Not Null ( name , STRING ) ; Preconditions . check Argument ( ! name . is Empty ( ) , STRING ) ; final Base Type union Type = instantiate Type ( name , NUM , BOOL , null , Base Type Category . UNI...
public synchronized BaseType createUnion ( final String name ) throws CouldntSaveDataException { Preconditions . checkNotNull ( name , STRING ) ; Preconditions . checkArgument ( ! name . isEmpty ( ) , STRING ) ; final BaseType unionType = instantiateType ( name , _NUM , _BOOL , null , BaseTypeCategory . UNION ) ; notif...
81
java-test-3802
java
For what purpose does this store the prepared statement also internally ?
to make sure it is closed
public Prepared Statement Wrapper prepared Statement ( String sql ) throws SQL Exception { final Prepared Statement Wrapper psw = new Prepared Statement Wrapper ( m connection , sql ) ; if ( m prepared Statements == null ) { m prepared Statements = new Array List < Prepared Statement Wrapper > ( ) ; } m prepared Statem...
public PreparedStatementWrapper preparedStatement ( String sql ) throws SQLException { final PreparedStatementWrapper psw = new PreparedStatementWrapper ( m_connection , sql ) ; if ( m_preparedStatements == null ) { m_preparedStatements = new ArrayList < PreparedStatementWrapper > ( ) ; } m_preparedStatements . add ( p...
69
java-test-3803
java
How does through this charsequence line iterate ?
by line
public static < T > T each Line ( Char Sequence self , @ Closure Params ( value = From String . class , options = { STRING , STRING } ) Closure < T > closure ) throws IO Exception { return each Line ( ( Char Sequence ) self . to String ( ) , NUM , closure ) ; }
public static < T > T eachLine ( CharSequence self , @ ClosureParams ( value = FromString . class , options = { STRING , STRING } ) Closure < T > closure ) throws IOException { return eachLine ( ( CharSequence ) self . toString ( ) , _NUM , closure ) ; }
63
java-test-3805
java
What retrieves from class name of configuration ?
class name of definition
private String to Definition Class Name ( String config Class Name ) { int final Dot = config Class Name . last Index Of ( STRING ) ; return config Class Name . substring ( NUM , final Dot - NUM ) + STRING + config Class Name . substring ( final Dot + NUM ) + STRING ; }
private String toDefinitionClassName ( String configClassName ) { int finalDot = configClassName . lastIndexOf ( STRING ) ; return configClassName . substring ( _NUM , finalDot - _NUM ) + STRING + configClassName . substring ( finalDot + _NUM ) + STRING ; }
60
java-test-3806
java
What do class name of definition retrieve ?
from class name of configuration
private String to Definition Class Name ( String config Class Name ) { int final Dot = config Class Name . last Index Of ( STRING ) ; return config Class Name . substring ( NUM , final Dot - NUM ) + STRING + config Class Name . substring ( final Dot + NUM ) + STRING ; }
private String toDefinitionClassName ( String configClassName ) { int finalDot = configClassName . lastIndexOf ( STRING ) ; return configClassName . substring ( _NUM , finalDot - _NUM ) + STRING + configClassName . substring ( finalDot + _NUM ) + STRING ; }
60
java-test-3807
java
How do this space prune ?
using the given prefix
public Space prune ( Space prefix ) throws Scope Exception { Space x = this ; Array List < Space > stack = new Array List < > ( ) ; while ( x != null && ! x . equals ( prefix ) ) { stack . add ( NUM , x ) ; x = x . get Parent ( ) ; } if ( x == null ) { throw new Scope Exception ( STRING ) ; } else { Space result = new ...
public Space prune ( Space prefix ) throws ScopeException { Space x = this ; ArrayList < Space > stack = new ArrayList < > ( ) ; while ( x != null && ! x . equals ( prefix ) ) { stack . add ( _NUM , x ) ; x = x . getParent ( ) ; } if ( x == null ) { throw new ScopeException ( STRING ) ; } else { Space result = new Spac...
127
java-test-3808
java
What does the code add ?
a class annotation
@ Override public void add Class Annotation ( char [ ] buffer , int offset , int length ) { String ann Type = new String ( buffer , offset , length ) ; if ( ann Types . contains ( ann Type ) ) { add Class ( class Name ) ; } }
@ Override public void addClassAnnotation ( char [ ] buffer , int offset , int length ) { String annType = new String ( buffer , offset , length ) ; if ( _annTypes . contains ( annType ) ) { addClass ( _className ) ; } }
55
java-test-3809
java
How does exception throw ?
ensurevalid
public void test Invalid After Close ( ) throws IO Exception { Path temp Path = create Temp Dir ( ) ; Directory dir = get Directory ( temp Path ) ; Lock l = dir . obtain Lock ( STRING ) ; l . close ( ) ; expect Throws ( Already Closed Exception . class , null ) ; dir . close ( ) ; }
public void testInvalidAfterClose ( ) throws IOException { Path tempPath = createTempDir ( ) ; Directory dir = getDirectory ( tempPath ) ; Lock l = dir . obtainLock ( STRING ) ; l . close ( ) ; expectThrows ( AlreadyClosedException . class , null ) ; dir . close ( ) ; }
68
java-test-3810
java
What did each plane have ?
two sides , one that is d + minimum_resolution , and one that is d - minimum_resolution . both are examined and intersection points determined
protected void find Intersection Bounds ( final Planet Model planet Model , final Bounds bounds Info , final Plane q , final Membership ... bounds ) { final double line Vector X = y * q . z - z * q . y ; final double line Vector Y = z * q . x - x * q . z ; final double line Vector Z = x * q . y - y * q . x ; if ( Math ...
protected void findIntersectionBounds ( final PlanetModel planetModel , final Bounds boundsInfo , final Plane q , final Membership ... bounds ) { final double lineVectorX = y * q . z - z * q . y ; final double lineVectorY = z * q . x - x * q . z ; final double lineVectorZ = x * q . y - y * q . x ; if ( Math . abs ( lin...
1,424
java-test-3811
java
What haves two sides , one that is d + minimum_resolution , and one that is d - minimum_resolution . both are examined and intersection points determined ?
each plane
protected void find Intersection Bounds ( final Planet Model planet Model , final Bounds bounds Info , final Plane q , final Membership ... bounds ) { final double line Vector X = y * q . z - z * q . y ; final double line Vector Y = z * q . x - x * q . z ; final double line Vector Z = x * q . y - y * q . x ; if ( Math ...
protected void findIntersectionBounds ( final PlanetModel planetModel , final Bounds boundsInfo , final Plane q , final Membership ... bounds ) { final double lineVectorX = y * q . z - z * q . y ; final double lineVectorY = z * q . x - x * q . z ; final double lineVectorZ = x * q . y - y * q . x ; if ( Math . abs ( lin...
1,424
java-test-3812
java
What does this method call ?
the bounds object with every intersection point it can find that matches the criteria
protected void find Intersection Bounds ( final Planet Model planet Model , final Bounds bounds Info , final Plane q , final Membership ... bounds ) { final double line Vector X = y * q . z - z * q . y ; final double line Vector Y = z * q . x - x * q . z ; final double line Vector Z = x * q . y - y * q . x ; if ( Math ...
protected void findIntersectionBounds ( final PlanetModel planetModel , final Bounds boundsInfo , final Plane q , final Membership ... bounds ) { final double lineVectorX = y * q . z - z * q . y ; final double lineVectorY = z * q . x - x * q . z ; final double lineVectorZ = x * q . y - y * q . x ; if ( Math . abs ( lin...
1,424
java-test-3813
java
What are attempting to create the same directory name simultaneously ?
two separate processes ( jvms )
@ Override public String replace Path ( String input URI ) { if ( LOGGER . is Debug Enabled ( ) ) { LOGGER . debug ( STRING + input URI ) ; } if ( input URI . contains ( Temporary Directory Manager . DIRECTORY TEMPLATE ) ) { synchronized ( LOCK ) { initialise Directory ( ) ; String [ ] components = input URI . split ( ...
@ Override public String replacePath ( String inputURI ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( STRING + inputURI ) ; } if ( inputURI . contains ( TemporaryDirectoryManager . DIRECTORY_TEMPLATE ) ) { synchronized ( LOCK ) { initialiseDirectory ( ) ; String [ ] components = inputURI . split ( STRING ) ;...
332
java-test-3814
java
What does this need ?
to be addressed
@ Override public String replace Path ( String input URI ) { if ( LOGGER . is Debug Enabled ( ) ) { LOGGER . debug ( STRING + input URI ) ; } if ( input URI . contains ( Temporary Directory Manager . DIRECTORY TEMPLATE ) ) { synchronized ( LOCK ) { initialise Directory ( ) ; String [ ] components = input URI . split ( ...
@ Override public String replacePath ( String inputURI ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( STRING + inputURI ) ; } if ( inputURI . contains ( TemporaryDirectoryManager . DIRECTORY_TEMPLATE ) ) { synchronized ( LOCK ) { initialiseDirectory ( ) ; String [ ] components = inputURI . split ( STRING ) ;...
332
java-test-3815
java
Do two separate processes ( jvms ) create the same directory name simultaneously ?
No
@ Override public String replace Path ( String input URI ) { if ( LOGGER . is Debug Enabled ( ) ) { LOGGER . debug ( STRING + input URI ) ; } if ( input URI . contains ( Temporary Directory Manager . DIRECTORY TEMPLATE ) ) { synchronized ( LOCK ) { initialise Directory ( ) ; String [ ] components = input URI . split ( ...
@ Override public String replacePath ( String inputURI ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( STRING + inputURI ) ; } if ( inputURI . contains ( TemporaryDirectoryManager . DIRECTORY_TEMPLATE ) ) { synchronized ( LOCK ) { initialiseDirectory ( ) ; String [ ] components = inputURI . split ( STRING ) ;...
332
java-test-3816
java
What needs to be addressed ?
this
@ Override public String replace Path ( String input URI ) { if ( LOGGER . is Debug Enabled ( ) ) { LOGGER . debug ( STRING + input URI ) ; } if ( input URI . contains ( Temporary Directory Manager . DIRECTORY TEMPLATE ) ) { synchronized ( LOCK ) { initialise Directory ( ) ; String [ ] components = input URI . split ( ...
@ Override public String replacePath ( String inputURI ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( STRING + inputURI ) ; } if ( inputURI . contains ( TemporaryDirectoryManager . DIRECTORY_TEMPLATE ) ) { synchronized ( LOCK ) { initialiseDirectory ( ) ; String [ ] components = inputURI . split ( STRING ) ;...
332
java-test-3817
java
How is the sub - string [ temp ] replaces this method ?
with the value determined by the implementation of this interface
@ Override public String replace Path ( String input URI ) { if ( LOGGER . is Debug Enabled ( ) ) { LOGGER . debug ( STRING + input URI ) ; } if ( input URI . contains ( Temporary Directory Manager . DIRECTORY TEMPLATE ) ) { synchronized ( LOCK ) { initialise Directory ( ) ; String [ ] components = input URI . split ( ...
@ Override public String replacePath ( String inputURI ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( STRING + inputURI ) ; } if ( inputURI . contains ( TemporaryDirectoryManager . DIRECTORY_TEMPLATE ) ) { synchronized ( LOCK ) { initialiseDirectory ( ) ; String [ ] components = inputURI . split ( STRING ) ;...
332
java-test-3818
java
What are two separate processes ( jvms ) attempting ?
to create the same directory name simultaneously
@ Override public String replace Path ( String input URI ) { if ( LOGGER . is Debug Enabled ( ) ) { LOGGER . debug ( STRING + input URI ) ; } if ( input URI . contains ( Temporary Directory Manager . DIRECTORY TEMPLATE ) ) { synchronized ( LOCK ) { initialise Directory ( ) ; String [ ] components = input URI . split ( ...
@ Override public String replacePath ( String inputURI ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( STRING + inputURI ) ; } if ( inputURI . contains ( TemporaryDirectoryManager . DIRECTORY_TEMPLATE ) ) { synchronized ( LOCK ) { initialiseDirectory ( ) ; String [ ] components = inputURI . split ( STRING ) ;...
332
java-test-3819
java
How does a buffer fill ?
by reading data from a socket
@ Nullable private static String read ( @ Non Null Socket Channel socket , @ Non Null byte [ ] buffer ) throws IO Exception { Byte Buffer buf = Byte Buffer . wrap ( buffer , NUM , buffer . length ) ; while ( buf . position ( ) != buf . limit ( ) ) { int count ; count = socket . read ( buf ) ; if ( count < NUM ) { throw...
@ Nullable private static String read ( @ NonNull SocketChannel socket , @ NonNull byte [ ] buffer ) throws IOException { ByteBuffer buf = ByteBuffer . wrap ( buffer , _NUM , buffer . length ) ; while ( buf . position ( ) != buf . limit ( ) ) { int count ; count = socket . read ( buf ) ; if ( count < _NUM ) { throw new...
125
java-test-3820
java
What does the code get from a string ?
the client type
public static Client Type from String ( String type ) { if ( type != null ) { for ( Client Type client Type : Client Type . values ( ) ) { if ( type . equals Ignore Case ( client Type . type ) ) { return client Type ; } } } return null ; }
public static ClientType fromString ( String type ) { if ( type != null ) { for ( ClientType clientType : ClientType . values ( ) ) { if ( type . equalsIgnoreCase ( clientType . type ) ) { return clientType ; } } } return null ; }
59
java-test-3828
java
What do this return ?
an array of objects each of which is an array of length 1
private Object [ ] single Row ( int row ) { Object [ ] res = new Object [ this . n Fields ] ; for ( int i = NUM ; i < this . n Fields ; i += NUM ) { if ( this . is Null == null || ! this . is Null [ row * this . n Fields + i ] ) { res [ i ] = Array Funcs . new Instance ( this . types [ i ] , NUM ) ; System . arraycopy ...
private Object [ ] singleRow ( int row ) { Object [ ] res = new Object [ this . nFields ] ; for ( int i = _NUM ; i < this . nFields ; i += _NUM ) { if ( this . isNull == null || ! this . isNull [ row * this . nFields + i ] ) { res [ i ] = ArrayFuncs . newInstance ( this . types [ i ] , _NUM ) ; System . arraycopy ( thi...
120
java-test-3829
java
What does the entity spend finding a club ?
the rest of its turn
private void find Club ( ) { if ( ce ( ) == null ) { return ; } String title = Messages . get String ( STRING ) ; String body = Messages . get String ( STRING ) ; if ( ! clientgui . do Yes No Dialog ( title , body ) ) { return ; } attacks . remove All Elements ( ) ; attacks . add Element ( new Find Club Action ( cen ) ...
private void findClub ( ) { if ( ce ( ) == null ) { return ; } String title = Messages . getString ( STRING ) ; String body = Messages . getString ( STRING ) ; if ( ! clientgui . doYesNoDialog ( title , body ) ) { return ; } attacks . removeAllElements ( ) ; attacks . addElement ( new FindClubAction ( cen ) ) ; ready (...
87
java-test-3830
java
What does the entity spend the rest of its turn ?
finding a club
private void find Club ( ) { if ( ce ( ) == null ) { return ; } String title = Messages . get String ( STRING ) ; String body = Messages . get String ( STRING ) ; if ( ! clientgui . do Yes No Dialog ( title , body ) ) { return ; } attacks . remove All Elements ( ) ; attacks . add Element ( new Find Club Action ( cen ) ...
private void findClub ( ) { if ( ce ( ) == null ) { return ; } String title = Messages . getString ( STRING ) ; String body = Messages . getString ( STRING ) ; if ( ! clientgui . doYesNoDialog ( title , body ) ) { return ; } attacks . removeAllElements ( ) ; attacks . addElement ( new FindClubAction ( cen ) ) ; ready (...
87
java-test-3831
java
What does the entity find ?
a club
private void find Club ( ) { if ( ce ( ) == null ) { return ; } String title = Messages . get String ( STRING ) ; String body = Messages . get String ( STRING ) ; if ( ! clientgui . do Yes No Dialog ( title , body ) ) { return ; } attacks . remove All Elements ( ) ; attacks . add Element ( new Find Club Action ( cen ) ...
private void findClub ( ) { if ( ce ( ) == null ) { return ; } String title = Messages . getString ( STRING ) ; String body = Messages . getString ( STRING ) ; if ( ! clientgui . doYesNoDialog ( title , body ) ) { return ; } attacks . removeAllElements ( ) ; attacks . addElement ( new FindClubAction ( cen ) ) ; ready (...
87
java-test-3833
java
How does the data query from a specified table ?
using a specified jdbc connection
@ Suppress Warnings ( STRING ) public Jdbc Data ( Connection connection , String table , boolean buffered ) { this . connection = connection ; this . table = table ; set Buffered ( buffered ) ; try { set Column Types ( get Jdbc Column Types ( ) ) ; } catch ( SQL Exception e ) { e . print Stack Trace ( ) ; } }
@ SuppressWarnings ( STRING ) public JdbcData ( Connection connection , String table , boolean buffered ) { this . connection = connection ; this . table = table ; setBuffered ( buffered ) ; try { setColumnTypes ( getJdbcColumnTypes ( ) ) ; } catch ( SQLException e ) { e . printStackTrace ( ) ; } }
70
java-test-3834
java
When are the table columns are constant ?
during the connection
@ Suppress Warnings ( STRING ) public Jdbc Data ( Connection connection , String table , boolean buffered ) { this . connection = connection ; this . table = table ; set Buffered ( buffered ) ; try { set Column Types ( get Jdbc Column Types ( ) ) ; } catch ( SQL Exception e ) { e . print Stack Trace ( ) ; } }
@ SuppressWarnings ( STRING ) public JdbcData ( Connection connection , String table , boolean buffered ) { this . connection = connection ; this . table = table ; setBuffered ( buffered ) ; try { setColumnTypes ( getJdbcColumnTypes ( ) ) ; } catch ( SQLException e ) { e . printStackTrace ( ) ; } }
70
java-test-3835
java
What does the code initialize ?
a new instance to query the data from a specified table using a specified jdbc connection
@ Suppress Warnings ( STRING ) public Jdbc Data ( Connection connection , String table , boolean buffered ) { this . connection = connection ; this . table = table ; set Buffered ( buffered ) ; try { set Column Types ( get Jdbc Column Types ( ) ) ; } catch ( SQL Exception e ) { e . print Stack Trace ( ) ; } }
@ SuppressWarnings ( STRING ) public JdbcData ( Connection connection , String table , boolean buffered ) { this . connection = connection ; this . table = table ; setBuffered ( buffered ) ; try { setColumnTypes ( getJdbcColumnTypes ( ) ) ; } catch ( SQLException e ) { e . printStackTrace ( ) ; } }
70
java-test-3836
java
What does this function edit ?
a global edge comment which is associated with the edge provided as argument
public static void edit Global Edge Comment ( final Abstract SQL Provider provider , final I Navi Edge edge , final Integer comment Id , final Integer user Id , final String new Comment ) throws Couldnt Save Data Exception { Preconditions . check Not Null ( provider , STRING ) ; Preconditions . check Not Null ( edge , ...
public static void editGlobalEdgeComment ( final AbstractSQLProvider provider , final INaviEdge edge , final Integer commentId , final Integer userId , final String newComment ) throws CouldntSaveDataException { Preconditions . checkNotNull ( provider , STRING ) ; Preconditions . checkNotNull ( edge , STRING ) ; Precon...
108
java-test-3837
java
What do we use startactivityforresult ( ) method ?
to be able to deliver the chosen avatar on profileactivity
public static void navigate ( Activity context , View transition View , String saved Avatar Url ) { Intent intent = new Intent ( context , Choose Avatar Activity . class ) ; intent . put Extra ( Profile Activity . Extra . AVATAR URL , saved Avatar Url ) ; Activity Options Compat options Compat = Activity Options Compat...
public static void navigate ( Activity context , View transitionView , String savedAvatarUrl ) { Intent intent = new Intent ( context , ChooseAvatarActivity . class ) ; intent . putExtra ( ProfileActivity . Extra . AVATAR_URL , savedAvatarUrl ) ; ActivityOptionsCompat optionsCompat = ActivityOptionsCompat . makeSceneTr...
115
java-test-3838
java
What do we use to be able to deliver the chosen avatar on profileactivity ?
startactivityforresult ( ) method
public static void navigate ( Activity context , View transition View , String saved Avatar Url ) { Intent intent = new Intent ( context , Choose Avatar Activity . class ) ; intent . put Extra ( Profile Activity . Extra . AVATAR URL , saved Avatar Url ) ; Activity Options Compat options Compat = Activity Options Compat...
public static void navigate ( Activity context , View transitionView , String savedAvatarUrl ) { Intent intent = new Intent ( context , ChooseAvatarActivity . class ) ; intent . putExtra ( ProfileActivity . Extra . AVATAR_URL , savedAvatarUrl ) ; ActivityOptionsCompat optionsCompat = ActivityOptionsCompat . makeSceneTr...
115
java-test-3839
java
What do we deliver on profileactivity ?
the chosen avatar
public static void navigate ( Activity context , View transition View , String saved Avatar Url ) { Intent intent = new Intent ( context , Choose Avatar Activity . class ) ; intent . put Extra ( Profile Activity . Extra . AVATAR URL , saved Avatar Url ) ; Activity Options Compat options Compat = Activity Options Compat...
public static void navigate ( Activity context , View transitionView , String savedAvatarUrl ) { Intent intent = new Intent ( context , ChooseAvatarActivity . class ) ; intent . putExtra ( ProfileActivity . Extra . AVATAR_URL , savedAvatarUrl ) ; ActivityOptionsCompat optionsCompat = ActivityOptionsCompat . makeSceneTr...
115
java-test-3840
java
What does it return ?
a expanded list of module names of modules that were actually found in the given source directory
public static List < String > expand Wildcards ( File dir , List < String > modules , Backend for Backend ) { List < File > dirs = new Array List < File > ( ) ; dirs . add ( dir ) ; return expand Wildcards ( dirs , modules , for Backend ) ; }
public static List < String > expandWildcards ( File dir , List < String > modules , Backend forBackend ) { List < File > dirs = new ArrayList < File > ( ) ; dirs . add ( dir ) ; return expandWildcards ( dirs , modules , forBackend ) ; }
58
java-test-3841
java
How does this window data manager persist this data on disk ?
by the window i d in which it was requested
public void save ( Map < Long , Map < Slice , Bucket . Bucketed Value > > unsaved Data , long window Id , boolean skip Write To Window File ) throws IO Exception { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } saved Window...
public void save ( Map < Long , Map < Slice , Bucket . BucketedValue > > unsavedData , long windowId , boolean skipWriteToWindowFile ) throws IOException { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } savedWindows . put (...
104
java-test-3842
java
What combines data received in multiple windows ?
the unsaved state
public void save ( Map < Long , Map < Slice , Bucket . Bucketed Value > > unsaved Data , long window Id , boolean skip Write To Window File ) throws IO Exception { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } saved Window...
public void save ( Map < Long , Map < Slice , Bucket . BucketedValue > > unsavedData , long windowId , boolean skipWriteToWindowFile ) throws IOException { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } savedWindows . put (...
104
java-test-3843
java
What does the unsaved state combine ?
data received in multiple windows
public void save ( Map < Long , Map < Slice , Bucket . Bucketed Value > > unsaved Data , long window Id , boolean skip Write To Window File ) throws IO Exception { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } saved Window...
public void save ( Map < Long , Map < Slice , Bucket . BucketedValue > > unsavedData , long windowId , boolean skipWriteToWindowFile ) throws IOException { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } savedWindows . put (...
104
java-test-3844
java
What persists this data on disk by the window i d in which it was requested ?
this window data manager
public void save ( Map < Long , Map < Slice , Bucket . Bucketed Value > > unsaved Data , long window Id , boolean skip Write To Window File ) throws IO Exception { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } saved Window...
public void save ( Map < Long , Map < Slice , Bucket . BucketedValue > > unsavedData , long windowId , boolean skipWriteToWindowFile ) throws IOException { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } savedWindows . put (...
104
java-test-3845
java
Where did data receive ?
in multiple windows
public void save ( Map < Long , Map < Slice , Bucket . Bucketed Value > > unsaved Data , long window Id , boolean skip Write To Window File ) throws IO Exception { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } saved Window...
public void save ( Map < Long , Map < Slice , Bucket . BucketedValue > > unsavedData , long windowId , boolean skipWriteToWindowFile ) throws IOException { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } savedWindows . put (...
104
java-test-3846
java
Where do i would the window ?
in which it was requested
public void save ( Map < Long , Map < Slice , Bucket . Bucketed Value > > unsaved Data , long window Id , boolean skip Write To Window File ) throws IO Exception { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } saved Window...
public void save ( Map < Long , Map < Slice , Bucket . BucketedValue > > unsavedData , long windowId , boolean skipWriteToWindowFile ) throws IOException { Throwable lthrowable ; if ( ( lthrowable = throwable . get ( ) ) != null ) { LOG . error ( STRING ) ; Throwables . propagate ( lthrowable ) ; } savedWindows . put (...
104
java-test-3847
java
What does the code draw in a form field ?
the visual appearance of multiline text
@ Deprecated protected void draw Multi Line Text Appearance ( Rectangle rect , Pdf Font font , int font Size , String value , Pdf Form X Object appearance ) { draw Multi Line Text Appearance ( rect , font , ( float ) font Size , value , appearance ) ; }
@ Deprecated protected void drawMultiLineTextAppearance ( Rectangle rect , PdfFont font , int fontSize , String value , PdfFormXObject appearance ) { drawMultiLineTextAppearance ( rect , font , ( float ) fontSize , value , appearance ) ; }
53
java-test-3848
java
What does a delimited string split ?
into a set of strings
public static Set < String > split Delimited String ( String string , String delimiter ) { Set < String > split String = new Hash Set < > ( ) ; String Tokenizer string Tokenizer = new String Tokenizer ( string , delimiter ) ; while ( string Tokenizer . has More Tokens ( ) ) { split String . add ( string Tokenizer . nex...
public static Set < String > splitDelimitedString ( String string , String delimiter ) { Set < String > splitString = new HashSet < > ( ) ; StringTokenizer stringTokenizer = new StringTokenizer ( string , delimiter ) ; while ( stringTokenizer . hasMoreTokens ( ) ) { splitString . add ( stringTokenizer . nextToken ( ) )...
78
java-test-3849
java
What does method calculate ?
the percentage discounts
public static String calculate Discount Percent ( Context context , double price , double discount Price ) { int percent ; if ( discount Price >= price ) { percent = NUM ; } else { percent = ( int ) Math . round ( NUM - ( ( discount Price / price ) * NUM ) ) ; } return String . format ( context . get String ( R . strin...
public static String calculateDiscountPercent ( Context context , double price , double discountPrice ) { int percent ; if ( discountPrice >= price ) { percent = _NUM ; } else { percent = ( int ) Math . round ( _NUM - ( ( discountPrice / price ) * _NUM ) ) ; } return String . format ( context . getString ( R . string ....
84
java-test-3850
java
What does the code fetch ?
the well known config
Map < String , Set < String > > read Open ID Well Known Config ( Locale locale , String url ) throws Workflow Exception { String configuration Contents = get Web Content ( locale , url ) ; Map < String , Object > config = Utils . parse Json ( configuration Contents ) ; Map < String , Set < String > > attrs = new Case I...
Map < String , Set < String > > readOpenIDWellKnownConfig ( Locale locale , String url ) throws WorkflowException { String configurationContents = getWebContent ( locale , url ) ; Map < String , Object > config = Utils . parseJson ( configurationContents ) ; Map < String , Set < String > > attrs = new CaseInsensitiveHa...
253
java-test-3851
java
What does the code get from the map ?
the discovery url
Map < String , Set < String > > read Open ID Well Known Config ( Locale locale , String url ) throws Workflow Exception { String configuration Contents = get Web Content ( locale , url ) ; Map < String , Object > config = Utils . parse Json ( configuration Contents ) ; Map < String , Set < String > > attrs = new Case I...
Map < String , Set < String > > readOpenIDWellKnownConfig ( Locale locale , String url ) throws WorkflowException { String configurationContents = getWebContent ( locale , url ) ; Map < String , Object > config = Utils . parseJson ( configurationContents ) ; Map < String , Set < String > > attrs = new CaseInsensitiveHa...
253
java-test-3852
java
What does the code add to the map ?
appropriate values
Map < String , Set < String > > read Open ID Well Known Config ( Locale locale , String url ) throws Workflow Exception { String configuration Contents = get Web Content ( locale , url ) ; Map < String , Object > config = Utils . parse Json ( configuration Contents ) ; Map < String , Set < String > > attrs = new Case I...
Map < String , Set < String > > readOpenIDWellKnownConfig ( Locale locale , String url ) throws WorkflowException { String configurationContents = getWebContent ( locale , url ) ; Map < String , Object > config = Utils . parseJson ( configurationContents ) ; Map < String , Set < String > > attrs = new CaseInsensitiveHa...
253
java-test-3853
java
What do you care enough still ?
that logging might be useful , like in a " finally " block , after you ' ve already returned to the caller
public static void close This Thing Or Maybe Dont ( @ Nullable Closeable closeable ) { if ( closeable == null ) { log . d ( STRING ) ; return ; } try { closeable . close ( ) ; } catch ( IO Exception e ) { log . d ( STRING + e . get Message ( ) ) ; } }
public static void closeThisThingOrMaybeDont ( @ Nullable Closeable closeable ) { if ( closeable == null ) { log . d ( STRING ) ; return ; } try { closeable . close ( ) ; } catch ( IOException e ) { log . d ( STRING + e . getMessage ( ) ) ; } }
65
java-test-3854
java
What threw an exception ?
closing a buffer
public static void close This Thing Or Maybe Dont ( @ Nullable Closeable closeable ) { if ( closeable == null ) { log . d ( STRING ) ; return ; } try { closeable . close ( ) ; } catch ( IO Exception e ) { log . d ( STRING + e . get Message ( ) ) ; } }
public static void closeThisThingOrMaybeDont ( @ Nullable Closeable closeable ) { if ( closeable == null ) { log . d ( STRING ) ; return ; } try { closeable . close ( ) ; } catch ( IOException e ) { log . d ( STRING + e . getMessage ( ) ) ; } }
65
java-test-3855
java
How must p > caller synchronize ?
on suspendlock
private void resume Locking ( ) { if ( DEBUG SUSPEND LOCK ) { Assert . assert Holds Lock ( this . suspend Lock , BOOL ) ; } if ( logger . is Trace Enabled ( Log Marker . DLS ) ) { logger . trace ( Log Marker . DLS , STRING , this . dlock ) ; } this . locking Suspended By = null ; this . suspended Lock Id = INVALID LOCK...
private void resumeLocking ( ) { if ( DEBUG_SUSPEND_LOCK ) { Assert . assertHoldsLock ( this . suspendLock , _BOOL ) ; } if ( logger . isTraceEnabled ( LogMarker . DLS ) ) { logger . trace ( LogMarker . DLS , STRING , this . dlock ) ; } this . lockingSuspendedBy = null ; this . suspendedLockId = INVALID_LOCK_ID ; }
80
java-test-3856
java
When do locking resume ?
after it has been suspended
private void resume Locking ( ) { if ( DEBUG SUSPEND LOCK ) { Assert . assert Holds Lock ( this . suspend Lock , BOOL ) ; } if ( logger . is Trace Enabled ( Log Marker . DLS ) ) { logger . trace ( Log Marker . DLS , STRING , this . dlock ) ; } this . locking Suspended By = null ; this . suspended Lock Id = INVALID LOCK...
private void resumeLocking ( ) { if ( DEBUG_SUSPEND_LOCK ) { Assert . assertHoldsLock ( this . suspendLock , _BOOL ) ; } if ( logger . isTraceEnabled ( LogMarker . DLS ) ) { logger . trace ( LogMarker . DLS , STRING , this . dlock ) ; } this . lockingSuspendedBy = null ; this . suspendedLockId = INVALID_LOCK_ID ; }
80
java-test-3857
java
Where does member exist already ?
in the sorted set
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3858
java
How does the position of the element in the sorted set update member already exists in the sorted set ?
accordingly
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3859
java
When did with the specified member set as sole member ?
new
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3860
java
When does member not exist in the sorted set ?
already
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3861
java
What does the not hold ?
a sorted set value
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3862
java
Does member exist in the sorted set already ?
No
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3863
java
How is it is added if member does not already exist in the sorted set ?
with increment as score ( that is , like if the previous score was virtually zero )
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3864
java
Where does member not exist already ?
in the sorted set
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3865
java
What does not exist in the sorted set ?
member
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3866
java
What exists in the sorted set ?
member
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3867
java
When does member exist in the sorted set ?
already
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3868
java
Where do the introduction to redis data types page check ?
for an introduction to sorted
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3869
java
Does the hold a sorted set value ?
No
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3870
java
What does not hold a sorted set value ?
the
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3871
java
For what purpose do a negative value provide ?
to perform a decrement
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3872
java
What check for an introduction to sorted ?
the introduction to redis data types page
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { check Is In Multi Or Pipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . get Bulk Reply ( ) ; return Double . value Of ( newscore ) ; }
@ Override public Double zincrby ( final byte [ ] key , final double score , final byte [ ] member ) { checkIsInMultiOrPipeline ( ) ; client . zincrby ( key , score , member ) ; String newscore = client . getBulkReply ( ) ; return Double . valueOf ( newscore ) ; }
64
java-test-3873
java
What contains the given storage pool in its valid pools list ?
the vpool
private static boolean does New Vpool Contains Volume Pool ( URI volume Pool , Virtual Pool v Pool ) { boolean v Pool Has Volume Pool = BOOL ; if ( volume Pool != null && v Pool != null ) { String Set pools To Check = v Pool . get Use Matched Pools ( ) ? v Pool . get Matched Storage Pools ( ) : v Pool . get Assigned St...
private static boolean doesNewVpoolContainsVolumePool ( URI volumePool , VirtualPool vPool ) { boolean vPoolHasVolumePool = _BOOL ; if ( volumePool != null && vPool != null ) { StringSet poolsToCheck = vPool . getUseMatchedPools ( ) ? vPool . getMatchedStoragePools ( ) : vPool . getAssignedStoragePools ( ) ; if ( pools...
120
java-test-3874
java
What does the vpool contain in its valid pools list ?
the given storage pool
private static boolean does New Vpool Contains Volume Pool ( URI volume Pool , Virtual Pool v Pool ) { boolean v Pool Has Volume Pool = BOOL ; if ( volume Pool != null && v Pool != null ) { String Set pools To Check = v Pool . get Use Matched Pools ( ) ? v Pool . get Matched Storage Pools ( ) : v Pool . get Assigned St...
private static boolean doesNewVpoolContainsVolumePool ( URI volumePool , VirtualPool vPool ) { boolean vPoolHasVolumePool = _BOOL ; if ( volumePool != null && vPool != null ) { StringSet poolsToCheck = vPool . getUseMatchedPools ( ) ? vPool . getMatchedStoragePools ( ) : vPool . getAssignedStoragePools ( ) ; if ( pools...
120
java-test-3875
java
Where does the vpool contain the given storage pool ?
in its valid pools list
private static boolean does New Vpool Contains Volume Pool ( URI volume Pool , Virtual Pool v Pool ) { boolean v Pool Has Volume Pool = BOOL ; if ( volume Pool != null && v Pool != null ) { String Set pools To Check = v Pool . get Use Matched Pools ( ) ? v Pool . get Matched Storage Pools ( ) : v Pool . get Assigned St...
private static boolean doesNewVpoolContainsVolumePool ( URI volumePool , VirtualPool vPool ) { boolean vPoolHasVolumePool = _BOOL ; if ( volumePool != null && vPool != null ) { StringSet poolsToCheck = vPool . getUseMatchedPools ( ) ? vPool . getMatchedStoragePools ( ) : vPool . getAssignedStoragePools ( ) ; if ( pools...
120
java-test-3876
java
How does the search perform ?
according to the specified pattern
public final void search Pattern ( I Progress Monitor monitor ) throws Java Model Exception { Assert . is Not Null ( f Pattern ) ; if ( monitor == null ) monitor = new Null Progress Monitor ( ) ; try { monitor . begin Task ( STRING , NUM ) ; monitor . set Task Name ( Refactoring Core Messages . Refactoring Search Engin...
public final void searchPattern ( IProgressMonitor monitor ) throws JavaModelException { Assert . isNotNull ( fPattern ) ; if ( monitor == null ) monitor = new NullProgressMonitor ( ) ; try { monitor . beginTask ( STRING , _NUM ) ; monitor . setTaskName ( RefactoringCoreMessages . RefactoringSearchEngine_searching_occu...
180
java-test-3877
java
Where may quote not occur by itself ?
at the end of the pattern
private Field Position [ ] expand Affix ( String pattern ) { Array List < Field Position > positions = null ; int string Index = NUM ; for ( int i = NUM ; i < pattern . length ( ) ; ) { char c = pattern . char At ( i ++ ) ; if ( c == QUOTE ) { int field = - NUM ; Format . Field field ID = null ; c = pattern . char At (...
private FieldPosition [ ] expandAffix ( String pattern ) { ArrayList < FieldPosition > positions = null ; int stringIndex = _NUM ; for ( int i = _NUM ; i < pattern . length ( ) ; ) { char c = pattern . charAt ( i ++ ) ; if ( c == QUOTE ) { int field = - _NUM ; Format . Field fieldID = null ; c = pattern . charAt ( i ++...
428
java-test-3878
java
What may not occur at the end of the pattern ?
quote
private Field Position [ ] expand Affix ( String pattern ) { Array List < Field Position > positions = null ; int string Index = NUM ; for ( int i = NUM ; i < pattern . length ( ) ; ) { char c = pattern . char At ( i ++ ) ; if ( c == QUOTE ) { int field = - NUM ; Format . Field field ID = null ; c = pattern . char At (...
private FieldPosition [ ] expandAffix ( String pattern ) { ArrayList < FieldPosition > positions = null ; int stringIndex = _NUM ; for ( int i = _NUM ; i < pattern . length ( ) ; ) { char c = pattern . charAt ( i ++ ) ; if ( c == QUOTE ) { int field = - _NUM ; Format . Field fieldID = null ; c = pattern . charAt ( i ++...
428
java-test-3879
java
What represents itself ?
a quote
private Field Position [ ] expand Affix ( String pattern ) { Array List < Field Position > positions = null ; int string Index = NUM ; for ( int i = NUM ; i < pattern . length ( ) ; ) { char c = pattern . char At ( i ++ ) ; if ( c == QUOTE ) { int field = - NUM ; Format . Field field ID = null ; c = pattern . char At (...
private FieldPosition [ ] expandAffix ( String pattern ) { ArrayList < FieldPosition > positions = null ; int stringIndex = _NUM ; for ( int i = _NUM ; i < pattern . length ( ) ; ) { char c = pattern . charAt ( i ++ ) ; if ( c == QUOTE ) { int field = - _NUM ; Format . Field fieldID = null ; c = pattern . charAt ( i ++...
428
java-test-3880
java
How may quote not occur at the end of the pattern ?
by itself
private Field Position [ ] expand Affix ( String pattern ) { Array List < Field Position > positions = null ; int string Index = NUM ; for ( int i = NUM ; i < pattern . length ( ) ; ) { char c = pattern . char At ( i ++ ) ; if ( c == QUOTE ) { int field = - NUM ; Format . Field field ID = null ; c = pattern . char At (...
private FieldPosition [ ] expandAffix ( String pattern ) { ArrayList < FieldPosition > positions = null ; int stringIndex = _NUM ; for ( int i = _NUM ; i < pattern . length ( ) ; ) { char c = pattern . charAt ( i ++ ) ; if ( c == QUOTE ) { int field = - _NUM ; Format . Field fieldID = null ; c = pattern . charAt ( i ++...
428
java-test-3881
java
What did a quote represent ?
itself
private Field Position [ ] expand Affix ( String pattern ) { Array List < Field Position > positions = null ; int string Index = NUM ; for ( int i = NUM ; i < pattern . length ( ) ; ) { char c = pattern . char At ( i ++ ) ; if ( c == QUOTE ) { int field = - NUM ; Format . Field field ID = null ; c = pattern . char At (...
private FieldPosition [ ] expandAffix ( String pattern ) { ArrayList < FieldPosition > positions = null ; int stringIndex = _NUM ; for ( int i = _NUM ; i < pattern . length ( ) ; ) { char c = pattern . charAt ( i ++ ) ; if ( c == QUOTE ) { int field = - _NUM ; Format . Field fieldID = null ; c = pattern . charAt ( i ++...
428
java-test-3882
java
May quote occur at the end of the pattern by itself ?
No
private Field Position [ ] expand Affix ( String pattern ) { Array List < Field Position > positions = null ; int string Index = NUM ; for ( int i = NUM ; i < pattern . length ( ) ; ) { char c = pattern . char At ( i ++ ) ; if ( c == QUOTE ) { int field = - NUM ; Format . Field field ID = null ; c = pattern . char At (...
private FieldPosition [ ] expandAffix ( String pattern ) { ArrayList < FieldPosition > positions = null ; int stringIndex = _NUM ; for ( int i = _NUM ; i < pattern . length ( ) ; ) { char c = pattern . charAt ( i ++ ) ; if ( c == QUOTE ) { int field = - _NUM ; Format . Field fieldID = null ; c = pattern . charAt ( i ++...
428
java-test-3883
java
How would the pattern be expanded ?
how
private Field Position [ ] expand Affix ( String pattern ) { Array List < Field Position > positions = null ; int string Index = NUM ; for ( int i = NUM ; i < pattern . length ( ) ; ) { char c = pattern . char At ( i ++ ) ; if ( c == QUOTE ) { int field = - NUM ; Format . Field field ID = null ; c = pattern . char At (...
private FieldPosition [ ] expandAffix ( String pattern ) { ArrayList < FieldPosition > positions = null ; int stringIndex = _NUM ; for ( int i = _NUM ; i < pattern . length ( ) ; ) { char c = pattern . charAt ( i ++ ) ; if ( c == QUOTE ) { int field = - _NUM ; Format . Field fieldID = null ; c = pattern . charAt ( i ++...
428
java-test-3884
java
What does the code expand into an array of fieldpositions describing how the pattern would be expanded ?
an affix pattern
private Field Position [ ] expand Affix ( String pattern ) { Array List < Field Position > positions = null ; int string Index = NUM ; for ( int i = NUM ; i < pattern . length ( ) ; ) { char c = pattern . char At ( i ++ ) ; if ( c == QUOTE ) { int field = - NUM ; Format . Field field ID = null ; c = pattern . char At (...
private FieldPosition [ ] expandAffix ( String pattern ) { ArrayList < FieldPosition > positions = null ; int stringIndex = _NUM ; for ( int i = _NUM ; i < pattern . length ( ) ; ) { char c = pattern . charAt ( i ++ ) ; if ( c == QUOTE ) { int field = - _NUM ; Format . Field fieldID = null ; c = pattern . charAt ( i ++...
428
java-test-3885
java
For what purpose does the code return a patchable state ?
to patch the resource
public Compute State create Instance ( ) throws Exception { Managed Object Reference vm ; if ( is Ovf Deploy ( ) ) { vm = deploy Ovf ( ) ; this . vm = vm ; } else { vm = create Vm ( ) ; if ( vm == null ) { return null ; } this . vm = vm ; } Compute State state = new Compute State ( ) ; state . resource Pool Link = Vim ...
public ComputeState createInstance ( ) throws Exception { ManagedObjectReference vm ; if ( isOvfDeploy ( ) ) { vm = deployOvf ( ) ; this . vm = vm ; } else { vm = createVm ( ) ; if ( vm == null ) { return null ; } this . vm = vm ; } ComputeState state = new ComputeState ( ) ; state . resourcePoolLink = VimUtils . first...
109
java-test-3887
java
What does displayer display ?
a tree provided in a dot format
public Tree Visualizer ( Tree Display Listener tdl , String dot , Node Place p ) { super ( ) ; initialize ( ) ; if ( m Show Border ) { set Border ( Border Factory . create Titled Border ( STRING ) ) ; } m listener = tdl ; Tree Build builder = new Tree Build ( ) ; Node n = null ; n = builder . create ( new String Reader...
public TreeVisualizer ( TreeDisplayListener tdl , String dot , NodePlace p ) { super ( ) ; initialize ( ) ; if ( m_ShowBorder ) { setBorder ( BorderFactory . createTitledBorder ( STRING ) ) ; } m_listener = tdl ; TreeBuild builder = new TreeBuild ( ) ; Node n = null ; n = builder . create ( new StringReader ( dot ) ) ;...
1,549
java-test-3888
java
For what purpose does displayer construct ?
to display a tree provided in a dot format . uses the nodeplacer to place the nodes
public Tree Visualizer ( Tree Display Listener tdl , String dot , Node Place p ) { super ( ) ; initialize ( ) ; if ( m Show Border ) { set Border ( Border Factory . create Titled Border ( STRING ) ) ; } m listener = tdl ; Tree Build builder = new Tree Build ( ) ; Node n = null ; n = builder . create ( new String Reader...
public TreeVisualizer ( TreeDisplayListener tdl , String dot , NodePlace p ) { super ( ) ; initialize ( ) ; if ( m_ShowBorder ) { setBorder ( BorderFactory . createTitledBorder ( STRING ) ) ; } m_listener = tdl ; TreeBuild builder = new TreeBuild ( ) ; Node n = null ; n = builder . create ( new StringReader ( dot ) ) ;...
1,549
java-test-3889
java
How did a tree provide ?
in a dot format
public Tree Visualizer ( Tree Display Listener tdl , String dot , Node Place p ) { super ( ) ; initialize ( ) ; if ( m Show Border ) { set Border ( Border Factory . create Titled Border ( STRING ) ) ; } m listener = tdl ; Tree Build builder = new Tree Build ( ) ; Node n = null ; n = builder . create ( new String Reader...
public TreeVisualizer ( TreeDisplayListener tdl , String dot , NodePlace p ) { super ( ) ; initialize ( ) ; if ( m_ShowBorder ) { setBorder ( BorderFactory . createTitledBorder ( STRING ) ) ; } m_listener = tdl ; TreeBuild builder = new TreeBuild ( ) ; Node n = null ; n = builder . create ( new StringReader ( dot ) ) ;...
1,549
java-test-3890
java
What displays a tree provided in a dot format ?
displayer
public Tree Visualizer ( Tree Display Listener tdl , String dot , Node Place p ) { super ( ) ; initialize ( ) ; if ( m Show Border ) { set Border ( Border Factory . create Titled Border ( STRING ) ) ; } m listener = tdl ; Tree Build builder = new Tree Build ( ) ; Node n = null ; n = builder . create ( new String Reader...
public TreeVisualizer ( TreeDisplayListener tdl , String dot , NodePlace p ) { super ( ) ; initialize ( ) ; if ( m_ShowBorder ) { setBorder ( BorderFactory . createTitledBorder ( STRING ) ) ; } m_listener = tdl ; TreeBuild builder = new TreeBuild ( ) ; Node n = null ; n = builder . create ( new StringReader ( dot ) ) ;...
1,549
java-test-3891
java
What are is used to check on overall usage when more than some minimum number of allocators are in use ?
the storage stats
public void test small Slot Waste Recylcing ( ) { final Journal store = ( Journal ) get Small Slot Store ( NUM , NUM , NUM ) ; try { final RW Strategy buffer Strategy = ( RW Strategy ) store . get Buffer Strategy ( ) ; final RW Store rw = buffer Strategy . get Store ( ) ; final int c Slot Size = NUM ; final int c Alloc...
public void test_smallSlotWasteRecylcing ( ) { final Journal store = ( Journal ) getSmallSlotStore ( _NUM , _NUM , _NUM ) ; try { final RWStrategy bufferStrategy = ( RWStrategy ) store . getBufferStrategy ( ) ; final RWStore rw = bufferStrategy . getStore ( ) ; final int cSlotSize = _NUM ; final int cAllocSize = _NUM ;...
338
java-test-3892
java
For what purpose are an attempt is made if the waste is above some specified amount then ?
to locate a " reasonable " candidate allocator to be used
public void test small Slot Waste Recylcing ( ) { final Journal store = ( Journal ) get Small Slot Store ( NUM , NUM , NUM ) ; try { final RW Strategy buffer Strategy = ( RW Strategy ) store . get Buffer Strategy ( ) ; final RW Store rw = buffer Strategy . get Store ( ) ; final int c Slot Size = NUM ; final int c Alloc...
public void test_smallSlotWasteRecylcing ( ) { final Journal store = ( Journal ) getSmallSlotStore ( _NUM , _NUM , _NUM ) ; try { final RWStrategy bufferStrategy = ( RWStrategy ) store . getBufferStrategy ( ) ; final RWStore rw = bufferStrategy . getStore ( ) ; final int cSlotSize = _NUM ; final int cAllocSize = _NUM ;...
338
java-test-3893
java
When are the storage stats is used to check on overall usage ?
when more than some minimum number of allocators are in use
public void test small Slot Waste Recylcing ( ) { final Journal store = ( Journal ) get Small Slot Store ( NUM , NUM , NUM ) ; try { final RW Strategy buffer Strategy = ( RW Strategy ) store . get Buffer Strategy ( ) ; final RW Store rw = buffer Strategy . get Store ( ) ; final int c Slot Size = NUM ; final int c Alloc...
public void test_smallSlotWasteRecylcing ( ) { final Journal store = ( Journal ) getSmallSlotStore ( _NUM , _NUM , _NUM ) ; try { final RWStrategy bufferStrategy = ( RWStrategy ) store . getBufferStrategy ( ) ; final RWStore rw = bufferStrategy . getStore ( ) ; final int cSlotSize = _NUM ; final int cAllocSize = _NUM ;...
338
java-test-3894
java
What are the storage stats is used when more than some minimum number of allocators are in use ?
to check on overall usage
public void test small Slot Waste Recylcing ( ) { final Journal store = ( Journal ) get Small Slot Store ( NUM , NUM , NUM ) ; try { final RW Strategy buffer Strategy = ( RW Strategy ) store . get Buffer Strategy ( ) ; final RW Store rw = buffer Strategy . get Store ( ) ; final int c Slot Size = NUM ; final int c Alloc...
public void test_smallSlotWasteRecylcing ( ) { final Journal store = ( Journal ) getSmallSlotStore ( _NUM , _NUM , _NUM ) ; try { final RWStrategy bufferStrategy = ( RWStrategy ) store . getBufferStrategy ( ) ; final RWStore rw = bufferStrategy . getStore ( ) ; final int cSlotSize = _NUM ; final int cAllocSize = _NUM ;...
338
java-test-3896
java
When do if a draw claim is allowed check ?
possibly after playing " move "
private String can Claim Draw ( Position pos , long [ ] pos Hash List , int pos Hash List Size , Move move ) { String draw Str = STRING ; if ( Search . can Claim Draw 50 ( pos ) ) { draw Str = STRING ; } else if ( Search . can Claim Draw Rep ( pos , pos Hash List , pos Hash List Size , pos Hash List Size ) ) { draw Str...
private String canClaimDraw ( Position pos , long [ ] posHashList , int posHashListSize , Move move ) { String drawStr = STRING ; if ( Search . canClaimDraw50 ( pos ) ) { drawStr = STRING ; } else if ( Search . canClaimDrawRep ( pos , posHashList , posHashListSize , posHashListSize ) ) { drawStr = STRING ; } else { Str...
219
java-test-3898
java
What d the code finds ?
a textview by the tag i d
private Text View find Text View By Tag Id ( final String tag Id ) { for ( final Text View view : m Tag View Map . values ( ) ) { final Tag tag = ( Tag ) view . get Tag ( ) ; if ( tag Id . equals ( tag . id ) ) { return view ; } } return null ; }
private TextView findTextViewByTagId ( final String tagId ) { for ( final TextView view : mTagViewMap . values ( ) ) { final Tag tag = ( Tag ) view . getTag ( ) ; if ( tagId . equals ( tag . id ) ) { return view ; } } return null ; }
69
java-test-3899
java
What does the code assign to a graph ?
a metric
public void declare Dimension ( final int dimension Type , final int scale , final int pixelperscale , final int offset , final Long color Naming , final Long color Scale , final String name ) { this . scales [ dimension Type ] = Math . max ( NUM , scale ) ; this . pixels [ dimension Type ] = pixelperscale ; this . off...
public void declareDimension ( final int dimensionType , final int scale , final int pixelperscale , final int offset , final Long colorNaming , final Long colorScale , final String name ) { this . scales [ dimensionType ] = Math . max ( _NUM , scale ) ; this . pixels [ dimensionType ] = pixelperscale ; this . offsets ...
201
java-test-3900
java
What does the code get ?
node product version based on node attributes
public static Ignite Product Version product Version ( Cluster Node node ) { String ver Str = node . attribute ( ATTR BUILD VER ) ; String build Date = node . attribute ( ATTR BUILD DATE ) ; if ( build Date != null ) ver Str += STRING + build Date ; return Ignite Product Version . from String ( ver Str ) ; }
public static IgniteProductVersion productVersion ( ClusterNode node ) { String verStr = node . attribute ( ATTR_BUILD_VER ) ; String buildDate = node . attribute ( ATTR_BUILD_DATE ) ; if ( buildDate != null ) verStr += STRING + buildDate ; return IgniteProductVersion . fromString ( verStr ) ; }
67
java-test-3901
java
What may be specified the ordering criterion an ordered ?
by a binary predicate
private Iterator < Date > std lower bound ( final Date date ) { final List < Date > ldates = new Array List < Date > ( ) ; if ( dates . size ( ) > NUM ) { int index = - NUM ; for ( int i = NUM ; i < dates . size ( ) ; i ++ ) { final Date d = dates . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } if ( ...
private Iterator < Date > std_lower_bound ( final Date date ) { final List < Date > ldates = new ArrayList < Date > ( ) ; if ( dates_ . size ( ) > _NUM ) { int index = - _NUM ; for ( int i = _NUM ; i < dates_ . size ( ) ; i ++ ) { final Date d = dates_ . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } ...
151
java-test-3902
java
Where may by a binary predicate be specified the ordering criterion ?
an ordered
private Iterator < Date > std lower bound ( final Date date ) { final List < Date > ldates = new Array List < Date > ( ) ; if ( dates . size ( ) > NUM ) { int index = - NUM ; for ( int i = NUM ; i < dates . size ( ) ; i ++ ) { final Date d = dates . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } if ( ...
private Iterator < Date > std_lower_bound ( final Date date ) { final List < Date > ldates = new ArrayList < Date > ( ) ; if ( dates_ . size ( ) > _NUM ) { int index = - _NUM ; for ( int i = _NUM ; i < dates_ . size ( ) ; i ++ ) { final Date d = dates_ . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } ...
151
java-test-3903
java
What does an ordered range have ?
a value greater than or equivalent to a specified value
private Iterator < Date > std lower bound ( final Date date ) { final List < Date > ldates = new Array List < Date > ( ) ; if ( dates . size ( ) > NUM ) { int index = - NUM ; for ( int i = NUM ; i < dates . size ( ) ; i ++ ) { final Date d = dates . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } if ( ...
private Iterator < Date > std_lower_bound ( final Date date ) { final List < Date > ldates = new ArrayList < Date > ( ) ; if ( dates_ . size ( ) > _NUM ) { int index = - _NUM ; for ( int i = _NUM ; i < dates_ . size ( ) ; i ++ ) { final Date d = dates_ . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } ...
151
java-test-3904
java
What has a value greater than or equivalent to a specified value ?
an ordered range
private Iterator < Date > std lower bound ( final Date date ) { final List < Date > ldates = new Array List < Date > ( ) ; if ( dates . size ( ) > NUM ) { int index = - NUM ; for ( int i = NUM ; i < dates . size ( ) ; i ++ ) { final Date d = dates . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } if ( ...
private Iterator < Date > std_lower_bound ( final Date date ) { final List < Date > ldates = new ArrayList < Date > ( ) ; if ( dates_ . size ( ) > _NUM ) { int index = - _NUM ; for ( int i = _NUM ; i < dates_ . size ( ) ; i ++ ) { final Date d = dates_ . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } ...
151