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-3771
java
What is confing at the specified place ?
the matsim4urbansim
String write Config File V 2 ( Matsim Config Type matsim Config Type ) throws Unchecked IO Exception { try { String destination = this . dummy Path + STRING ; Buffered Writer bw = IO Utils . get Buffered Writer ( destination ) ; String xsd Path = Temp Directory Util . create Custom Temp Directory ( STRING ) ; Load File...
String writeConfigFileV2 ( MatsimConfigType matsimConfigType ) throws UncheckedIOException { try { String destination = this . dummyPath + STRING ; BufferedWriter bw = IOUtils . getBufferedWriter ( destination ) ; String xsdPath = TempDirectoryUtil . createCustomTempDirectory ( STRING ) ; LoadFile loadFile = new LoadFi...
365
java-test-3772
java
What does the code write ?
the matsim4urbansim confing at the specified place using jaxb
String write Config File V 2 ( Matsim Config Type matsim Config Type ) throws Unchecked IO Exception { try { String destination = this . dummy Path + STRING ; Buffered Writer bw = IO Utils . get Buffered Writer ( destination ) ; String xsd Path = Temp Directory Util . create Custom Temp Directory ( STRING ) ; Load File...
String writeConfigFileV2 ( MatsimConfigType matsimConfigType ) throws UncheckedIOException { try { String destination = this . dummyPath + STRING ; BufferedWriter bw = IOUtils . getBufferedWriter ( destination ) ; String xsdPath = TempDirectoryUtil . createCustomTempDirectory ( STRING ) ; LoadFile loadFile = new LoadFi...
365
java-test-3773
java
What did the code move after click on portal icon ?
recheck block connections
protected boolean check Portal Icon For Update ( Portal Icon icon , boolean moved ) { Portal portal = icon . get Portal ( ) ; if ( portal == null ) { icon . remove ( ) ; log . error ( STRING ) ; return BOOL ; } String name = portal . get Display Name ( ) ; String msg = null ; O Block from Block = portal . get From Bloc...
protected boolean checkPortalIconForUpdate ( PortalIcon icon , boolean moved ) { Portal portal = icon . getPortal ( ) ; if ( portal == null ) { icon . remove ( ) ; log . error ( STRING ) ; return _BOOL ; } String name = portal . getDisplayName ( ) ; String msg = null ; OBlock fromBlock = portal . getFromBlock ( ) ; OBl...
745
java-test-3774
java
What have events ?
which days
void load Event Days In Background ( int start Day , int num Days , boolean [ ] event Days , final Runnable ui Callback ) { Load Event Days Request request = new Load Event Days Request ( start Day , num Days , event Days , ui Callback ) ; try { m Loader Queue . put ( request ) ; } catch ( Interrupted Exception ex ) { ...
void loadEventDaysInBackground ( int startDay , int numDays , boolean [ ] eventDays , final Runnable uiCallback ) { LoadEventDaysRequest request = new LoadEventDaysRequest ( startDay , numDays , eventDays , uiCallback ) ; try { mLoaderQueue . put ( request ) ; } catch ( InterruptedException ex ) { Log . e ( STRING , ST...
82
java-test-3775
java
When be events marked ?
the days
void load Event Days In Background ( int start Day , int num Days , boolean [ ] event Days , final Runnable ui Callback ) { Load Event Days Request request = new Load Event Days Request ( start Day , num Days , event Days , ui Callback ) ; try { m Loader Queue . put ( request ) ; } catch ( Interrupted Exception ex ) { ...
void loadEventDaysInBackground ( int startDay , int numDays , boolean [ ] eventDays , final Runnable uiCallback ) { LoadEventDaysRequest request = new LoadEventDaysRequest ( startDay , numDays , eventDays , uiCallback ) ; try { mLoaderQueue . put ( request ) ; } catch ( InterruptedException ex ) { Log . e ( STRING , ST...
82
java-test-3776
java
What does the code send ?
a request for the days with events to be marked . loads " numdays " worth of days , starting at start , and fills in eventdays to express which
void load Event Days In Background ( int start Day , int num Days , boolean [ ] event Days , final Runnable ui Callback ) { Load Event Days Request request = new Load Event Days Request ( start Day , num Days , event Days , ui Callback ) ; try { m Loader Queue . put ( request ) ; } catch ( Interrupted Exception ex ) { ...
void loadEventDaysInBackground ( int startDay , int numDays , boolean [ ] eventDays , final Runnable uiCallback ) { LoadEventDaysRequest request = new LoadEventDaysRequest ( startDay , numDays , eventDays , uiCallback ) ; try { mLoaderQueue . put ( request ) ; } catch ( InterruptedException ex ) { Log . e ( STRING , ST...
82
java-test-3777
java
What inserts at that index ?
a key and value
protected void copy Down ( final int entry Index , final int count ) { final Mutable Leaf Data data = ( Mutable Leaf Data ) this . data ; final Mutable Key Buffer keys = data . keys ; final Mutable Value Buffer vals = data . vals ; System . arraycopy ( keys . keys , entry Index , keys . keys , entry Index + NUM , count...
protected void copyDown ( final int entryIndex , final int count ) { final MutableLeafData data = ( MutableLeafData ) this . data ; final MutableKeyBuffer keys = data . keys ; final MutableValueBuffer vals = data . vals ; System . arraycopy ( keys . keys , entryIndex , keys . keys , entryIndex + _NUM , count ) ; System...
291
java-test-3778
java
Where do a key and value insert ?
at that index
protected void copy Down ( final int entry Index , final int count ) { final Mutable Leaf Data data = ( Mutable Leaf Data ) this . data ; final Mutable Key Buffer keys = data . keys ; final Mutable Value Buffer vals = data . vals ; System . arraycopy ( keys . keys , entry Index , keys . keys , entry Index + NUM , count...
protected void copyDown ( final int entryIndex , final int count ) { final MutableLeafData data = ( MutableLeafData ) this . data ; final MutableKeyBuffer keys = data . keys ; final MutableValueBuffer vals = data . vals ; System . arraycopy ( keys . keys , entryIndex , keys . keys , entryIndex + _NUM , count ) ; System...
291
java-test-3779
java
How does an iso file mount ?
using ' mount ' command
public void mount ( String iso , String dir ) { String Builder buf = new String Builder ( ) ; String command = String . format ( Image Server Dialog Properties . get String ( STRING ) , STRING + iso + STRING , dir ) ; send Wait For ( command , default Timeout , prompts , buf ) ; log . debug ( buf . to String ( ) ) ; }
public void mount ( String iso , String dir ) { StringBuilder buf = new StringBuilder ( ) ; String command = String . format ( ImageServerDialogProperties . getString ( STRING ) , STRING + iso + STRING , dir ) ; sendWaitFor ( command , defaultTimeout , prompts , buf ) ; log . debug ( buf . toString ( ) ) ; }
75
java-test-3781
java
What does the code draw ?
a line with an arrow at the end
public void line Arrow ( final int x0 , final int y0 , final int x1 , final int y1 , final int sidelength , final int padding , final long line Color , final long arrow Color ) { final double dx = x1 - x0 ; final double dy = y1 - y0 ; final double angle = Math . atan 2 ( dy , dx ) ; final double d = Math . sqrt ( ( dx ...
public void lineArrow ( final int x0 , final int y0 , final int x1 , final int y1 , final int sidelength , final int padding , final long lineColor , final long arrowColor ) { final double dx = x1 - x0 ; final double dy = y1 - y0 ; final double angle = Math . atan2 ( dy , dx ) ; final double d = Math . sqrt ( ( dx * dx...
357
java-test-3782
java
What does the code instantiate ?
a new delegating resource loader
public Delegating Resource Loader ( Map < String , Resource Loader > loaders , File cache Directory ) { this . loaders = Collection Utils . is Empty ( loaders ) ? Collections . < String , Resource Loader > empty Map ( ) : Collections . unmodifiable Map ( loaders ) ; this . cache Directory = init Cache Directory ( cache...
public DelegatingResourceLoader ( Map < String , ResourceLoader > loaders , File cacheDirectory ) { this . loaders = CollectionUtils . isEmpty ( loaders ) ? Collections . < String , ResourceLoader > emptyMap ( ) : Collections . unmodifiableMap ( loaders ) ; this . cacheDirectory = initCacheDirectory ( cacheDirectory ) ...
67
java-test-3783
java
What does the code create for the given endpoint , username , password and xtremio version for the given endpoint , username , password and xtremio version ?
a new xtremio rest client
protected Rest Client Itf create New Rest Client ( URI endpoint , String username , String password , String version , Client client ) { Xtrem IO Client xio Client = null ; if ( version != null && ! version . is Empty ( ) && Integer . value Of ( version . split ( DOT OPERATOR ) [ NUM ] ) >= XIO MIN 4X VERSION ) { xio C...
protected RestClientItf createNewRestClient ( URI endpoint , String username , String password , String version , Client client ) { XtremIOClient xioClient = null ; if ( version != null && ! version . isEmpty ( ) && Integer . valueOf ( version . split ( DOT_OPERATOR ) [ _NUM ] ) >= XIO_MIN_4X_VERSION ) { xioClient = ne...
115
java-test-3784
java
What will a rest client support ?
version 2 rest apis
protected Rest Client Itf create New Rest Client ( URI endpoint , String username , String password , String version , Client client ) { Xtrem IO Client xio Client = null ; if ( version != null && ! version . is Empty ( ) && Integer . value Of ( version . split ( DOT OPERATOR ) [ NUM ] ) >= XIO MIN 4X VERSION ) { xio C...
protected RestClientItf createNewRestClient ( URI endpoint , String username , String password , String version , Client client ) { XtremIOClient xioClient = null ; if ( version != null && ! version . isEmpty ( ) && Integer . valueOf ( version . split ( DOT_OPERATOR ) [ _NUM ] ) >= XIO_MIN_4X_VERSION ) { xioClient = ne...
115
java-test-3785
java
For what purpose does the code create a new xtremio rest client ?
for the given endpoint , username , password and xtremio version
protected Rest Client Itf create New Rest Client ( URI endpoint , String username , String password , String version , Client client ) { Xtrem IO Client xio Client = null ; if ( version != null && ! version . is Empty ( ) && Integer . value Of ( version . split ( DOT OPERATOR ) [ NUM ] ) >= XIO MIN 4X VERSION ) { xio C...
protected RestClientItf createNewRestClient ( URI endpoint , String username , String password , String version , Client client ) { XtremIOClient xioClient = null ; if ( version != null && ! version . isEmpty ( ) && Integer . valueOf ( version . split ( DOT_OPERATOR ) [ _NUM ] ) >= XIO_MIN_4X_VERSION ) { xioClient = ne...
115
java-test-3786
java
What does the code translate to a row - major ( ie . c - type ) array ?
a column - major ( ie . fortran - type ) array
static private < E > List < E > to Java List ( List < E > values , int rows , int columns ) { List < E > result = new Array List < > ( values . size ( ) ) ; for ( int i = NUM ; i < values . size ( ) ; i ++ ) { int row = i / columns ; int column = i % columns ; E value = values . get ( ( column * rows ) + row ) ; result...
static private < E > List < E > toJavaList ( List < E > values , int rows , int columns ) { List < E > result = new ArrayList < > ( values . size ( ) ) ; for ( int i = _NUM ; i < values . size ( ) ; i ++ ) { int row = i / columns ; int column = i % columns ; E value = values . get ( ( column * rows ) + row ) ; result ....
106
java-test-3787
java
How do ie array ?
column - major
static private < E > List < E > to Java List ( List < E > values , int rows , int columns ) { List < E > result = new Array List < > ( values . size ( ) ) ; for ( int i = NUM ; i < values . size ( ) ; i ++ ) { int row = i / columns ; int column = i % columns ; E value = values . get ( ( column * rows ) + row ) ; result...
static private < E > List < E > toJavaList ( List < E > values , int rows , int columns ) { List < E > result = new ArrayList < > ( values . size ( ) ) ; for ( int i = _NUM ; i < values . size ( ) ; i ++ ) { int row = i / columns ; int column = i % columns ; E value = values . get ( ( column * rows ) + row ) ; result ....
106
java-test-3788
java
What does the code read ?
a " flags - list " argument from the request
public Flags flag List ( ) throws Decoding Exception { Flags flags = new Flags ( ) ; next Word Char ( ) ; consume Char ( STRING ) ; Character Validator validator = new Noop Char Validator ( ) ; String next Word = consume Word ( validator ) ; while ( ! next Word . ends With ( STRING ) ) { Decoder Utils . set Flag ( next...
public Flags flagList ( ) throws DecodingException { Flags flags = new Flags ( ) ; nextWordChar ( ) ; consumeChar ( STRING ) ; CharacterValidator validator = new NoopCharValidator ( ) ; String nextWord = consumeWord ( validator ) ; while ( ! nextWord . endsWith ( STRING ) ) { DecoderUtils . setFlag ( nextWord , flags )...
153
java-test-3789
java
What does this method perform to see if we need to refresh ?
a series of quick checks on the current open file
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-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