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-4182
java
Where be lower or upper log portions restored ?
in the recovering replica
private int find Checkpoint Position ( int [ ] cids ) { if ( config . get Global Checkpoint Period ( ) < NUM ) return - NUM ; if ( cids . length == NUM ) throw new Illegal Argument Exception ( ) ; int first CID = cids [ NUM ] ; if ( ( first CID + NUM ) % checkpoint Portion == NUM ) { return cid Position ( cids , first ...
private int findCheckpointPosition ( int [ ] cids ) { if ( config . getGlobalCheckpointPeriod ( ) < _NUM ) return - _NUM ; if ( cids . length == _NUM ) throw new IllegalArgumentException ( ) ; int firstCID = cids [ _NUM ] ; if ( ( firstCID + _NUM ) % checkpointPortion == _NUM ) { return cidPosition ( cids , firstCID ) ...
140
java-test-4183
java
Why is to identify if the batch contains checkpoint indexes necessary ?
several consensus instances can be executed in the same batch of commands
private int find Checkpoint Position ( int [ ] cids ) { if ( config . get Global Checkpoint Period ( ) < NUM ) return - NUM ; if ( cids . length == NUM ) throw new Illegal Argument Exception ( ) ; int first CID = cids [ NUM ] ; if ( ( first CID + NUM ) % checkpoint Portion == NUM ) { return cid Position ( cids , first ...
private int findCheckpointPosition ( int [ ] cids ) { if ( config . getGlobalCheckpointPeriod ( ) < _NUM ) return - _NUM ; if ( cids . length == _NUM ) throw new IllegalArgumentException ( ) ; int firstCID = cids [ _NUM ] ; if ( ( firstCID + _NUM ) % checkpointPortion == _NUM ) { return cidPosition ( cids , firstCID ) ...
140
java-test-4185
java
What does \ r remove ?
from the end of every line
private String strip Off CR ( String str ) { String [ ] arr = str . split ( STRING ) ; String Builder buf = new String Builder ( ) ; for ( String s : arr ) { if ( s . ends With ( STRING ) ) { buf . append ( s . substring ( NUM , s . length ( ) - NUM ) ) ; } else { buf . append ( s ) ; } buf . append ( STRING ) ; } retu...
private String stripOffCR ( String str ) { String [ ] arr = str . split ( STRING ) ; StringBuilder buf = new StringBuilder ( ) ; for ( String s : arr ) { if ( s . endsWith ( STRING ) ) { buf . append ( s . substring ( _NUM , s . length ( ) - _NUM ) ) ; } else { buf . append ( s ) ; } buf . append ( STRING ) ; } return ...
99
java-test-4186
java
What removes from the end of every line ?
\ r
private String strip Off CR ( String str ) { String [ ] arr = str . split ( STRING ) ; String Builder buf = new String Builder ( ) ; for ( String s : arr ) { if ( s . ends With ( STRING ) ) { buf . append ( s . substring ( NUM , s . length ( ) - NUM ) ) ; } else { buf . append ( s ) ; } buf . append ( STRING ) ; } retu...
private String stripOffCR ( String str ) { String [ ] arr = str . split ( STRING ) ; StringBuilder buf = new StringBuilder ( ) ; for ( String s : arr ) { if ( s . endsWith ( STRING ) ) { buf . append ( s . substring ( _NUM , s . length ( ) - _NUM ) ) ; } else { buf . append ( s ) ; } buf . append ( STRING ) ; } return ...
99
java-test-4187
java
What does the code generate ?
a list of endpoint help dtos used to describe the major service endpoints
protected static List < Endpoint Help Dto > describe Endpoints ( List < Class < ? extends Abstract Resource > > resource Classes ) { List < Endpoint Help Dto > result = new Linked List < > ( ) ; if ( resource Classes != null && ! resource Classes . is Empty ( ) ) { for ( Class < ? extends Abstract Resource > resource C...
protected static List < EndpointHelpDto > describeEndpoints ( List < Class < ? extends AbstractResource > > resourceClasses ) { List < EndpointHelpDto > result = new LinkedList < > ( ) ; if ( resourceClasses != null && ! resourceClasses . isEmpty ( ) ) { for ( Class < ? extends AbstractResource > resourceClass : resour...
112
java-test-4188
java
What does the code inflate ?
a preference hierarchy
public Preference Screen inflate From Resource ( Context context , int res Id , Preference Screen root Preferences ) { set No Commit ( BOOL ) ; final Preference Inflater inflater = new Preference Inflater ( context , this ) ; root Preferences = ( Preference Screen ) inflater . inflate ( res Id , root Preferences , BOOL...
public PreferenceScreen inflateFromResource ( Context context , int resId , PreferenceScreen rootPreferences ) { setNoCommit ( _BOOL ) ; final PreferenceInflater inflater = new PreferenceInflater ( context , this ) ; rootPreferences = ( PreferenceScreen ) inflater . inflate ( resId , rootPreferences , _BOOL ) ; rootPre...
84
java-test-4189
java
What does the mmotionposition view place during a scroll that results from tracking motion events ?
at the offset specified by mmotionviewleft
private View fill Specific ( int position , int left ) { if ( DEBUG ) Log . i ( TAG , STRING + position + STRING + left + M FIRST POSITION + m First Position ) ; final int num Rows = m Num Rows ; int motion Column Start ; int motion Column End = - NUM ; if ( ! m Stack From Bottom ) { motion Column Start = position - ( ...
private View fillSpecific ( int position , int left ) { if ( DEBUG ) Log . i ( TAG , STRING + position + STRING + left + M_FIRST_POSITION + mFirstPosition ) ; final int numRows = mNumRows ; int motionColumnStart ; int motionColumnEnd = - _NUM ; if ( ! mStackFromBottom ) { motionColumnStart = position - ( position % num...
443
java-test-4190
java
What does the code update based on their heading and ground speed ?
all the traffic projections
private void update Traffic Projections ( ) { List < Air Map Traffic > updated = new Array List < > ( ) ; for ( Air Map Traffic traffic : all Traffic ) { if ( traffic . get Ground Speed Kt ( ) > - NUM && traffic . get True Heading ( ) > - NUM ) { all Traffic . remove ( traffic ) ; Coordinate projected = projected Coord...
private void updateTrafficProjections ( ) { List < AirMapTraffic > updated = new ArrayList < > ( ) ; for ( AirMapTraffic traffic : allTraffic ) { if ( traffic . getGroundSpeedKt ( ) > - _NUM && traffic . getTrueHeading ( ) > - _NUM ) { allTraffic . remove ( traffic ) ; Coordinate projected = projectedCoordinate ( traff...
119
java-test-4191
java
How does the code update all the traffic projections ?
based on their heading and ground speed
private void update Traffic Projections ( ) { List < Air Map Traffic > updated = new Array List < > ( ) ; for ( Air Map Traffic traffic : all Traffic ) { if ( traffic . get Ground Speed Kt ( ) > - NUM && traffic . get True Heading ( ) > - NUM ) { all Traffic . remove ( traffic ) ; Coordinate projected = projected Coord...
private void updateTrafficProjections ( ) { List < AirMapTraffic > updated = new ArrayList < > ( ) ; for ( AirMapTraffic traffic : allTraffic ) { if ( traffic . getGroundSpeedKt ( ) > - _NUM && traffic . getTrueHeading ( ) > - _NUM ) { allTraffic . remove ( traffic ) ; Coordinate projected = projectedCoordinate ( traff...
119
java-test-4192
java
How is an image pushed to a v1 registry without namespace prefix processed ?
in the following way : < registry_name > / < repository_name > - > < registry_name > / library / < repository_name > results from v1 queries
private void ensure Namespace Exists ( Result result ) { Docker Image image = Docker Image . from Image Name ( result . name ) ; if ( image . get Namespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT NAMESPACE , image . get Repository ( ) ) ; } }
private void ensureNamespaceExists ( Result result ) { DockerImage image = DockerImage . fromImageName ( result . name ) ; if ( image . getNamespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT_NAMESPACE , image . getRepository ( ) ) ; } }
61
java-test-4193
java
What has a namespace prefix ?
an image name
private void ensure Namespace Exists ( Result result ) { Docker Image image = Docker Image . from Image Name ( result . name ) ; if ( image . get Namespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT NAMESPACE , image . get Repository ( ) ) ; } }
private void ensureNamespaceExists ( Result result ) { DockerImage image = DockerImage . fromImageName ( result . name ) ; if ( image . getNamespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT_NAMESPACE , image . getRepository ( ) ) ; } }
61
java-test-4194
java
How did an image push to a v1 registry ?
without namespace prefix
private void ensure Namespace Exists ( Result result ) { Docker Image image = Docker Image . from Image Name ( result . name ) ; if ( image . get Namespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT NAMESPACE , image . get Repository ( ) ) ; } }
private void ensureNamespaceExists ( Result result ) { DockerImage image = DockerImage . fromImageName ( result . name ) ; if ( image . getNamespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT_NAMESPACE , image . getRepository ( ) ) ; } }
61
java-test-4195
java
When be this be a problem ?
later
private void ensure Namespace Exists ( Result result ) { Docker Image image = Docker Image . from Image Name ( result . name ) ; if ( image . get Namespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT NAMESPACE , image . get Repository ( ) ) ; } }
private void ensureNamespaceExists ( Result result ) { DockerImage image = DockerImage . fromImageName ( result . name ) ; if ( image . getNamespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT_NAMESPACE , image . getRepository ( ) ) ; } }
61
java-test-4196
java
Does an image pushed to a v2 registry get the default prefix ?
No
private void ensure Namespace Exists ( Result result ) { Docker Image image = Docker Image . from Image Name ( result . name ) ; if ( image . get Namespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT NAMESPACE , image . get Repository ( ) ) ; } }
private void ensureNamespaceExists ( Result result ) { DockerImage image = DockerImage . fromImageName ( result . name ) ; if ( image . getNamespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT_NAMESPACE , image . getRepository ( ) ) ; } }
61
java-test-4197
java
What do we instantiate later later ?
containers based on these images
private void ensure Namespace Exists ( Result result ) { Docker Image image = Docker Image . from Image Name ( result . name ) ; if ( image . get Namespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT NAMESPACE , image . get Repository ( ) ) ; } }
private void ensureNamespaceExists ( Result result ) { DockerImage image = DockerImage . fromImageName ( result . name ) ; if ( image . getNamespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT_NAMESPACE , image . getRepository ( ) ) ; } }
61
java-test-4198
java
What does an image pushed to a v2 registry not get ?
the default prefix
private void ensure Namespace Exists ( Result result ) { Docker Image image = Docker Image . from Image Name ( result . name ) ; if ( image . get Namespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT NAMESPACE , image . get Repository ( ) ) ; } }
private void ensureNamespaceExists ( Result result ) { DockerImage image = DockerImage . fromImageName ( result . name ) ; if ( image . getNamespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT_NAMESPACE , image . getRepository ( ) ) ; } }
61
java-test-4199
java
What does an image name have ?
a namespace prefix
private void ensure Namespace Exists ( Result result ) { Docker Image image = Docker Image . from Image Name ( result . name ) ; if ( image . get Namespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT NAMESPACE , image . get Repository ( ) ) ; } }
private void ensureNamespaceExists ( Result result ) { DockerImage image = DockerImage . fromImageName ( result . name ) ; if ( image . getNamespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT_NAMESPACE , image . getRepository ( ) ) ; } }
61
java-test-4200
java
When do we instantiate containers based on these images ?
later
private void ensure Namespace Exists ( Result result ) { Docker Image image = Docker Image . from Image Name ( result . name ) ; if ( image . get Namespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT NAMESPACE , image . get Repository ( ) ) ; } }
private void ensureNamespaceExists ( Result result ) { DockerImage image = DockerImage . fromImageName ( result . name ) ; if ( image . getNamespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT_NAMESPACE , image . getRepository ( ) ) ; } }
61
java-test-4201
java
What does not get the default prefix ?
an image pushed to a v2 registry
private void ensure Namespace Exists ( Result result ) { Docker Image image = Docker Image . from Image Name ( result . name ) ; if ( image . get Namespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT NAMESPACE , image . get Repository ( ) ) ; } }
private void ensureNamespaceExists ( Result result ) { DockerImage image = DockerImage . fromImageName ( result . name ) ; if ( image . getNamespace ( ) == null ) { result . name = String . format ( STRING , DEFAULT_NAMESPACE , image . getRepository ( ) ) ; } }
61
java-test-4202
java
How does the filter test ?
in conjunction with the filteredclassifier
public void test Filtered Classifier ( ) { Instances data ; int i ; if ( m Filtered Classifier == null ) { return ; } try { data = get Filtered Classifier Data ( ) ; m Filtered Classifier . build Classifier ( data ) ; for ( i = NUM ; i < data . num Instances ( ) ; i ++ ) { m Filtered Classifier . classify Instance ( da...
public void testFilteredClassifier ( ) { Instances data ; int i ; if ( m_FilteredClassifier == null ) { return ; } try { data = getFilteredClassifierData ( ) ; m_FilteredClassifier . buildClassifier ( data ) ; for ( i = _NUM ; i < data . numInstances ( ) ; i ++ ) { m_FilteredClassifier . classifyInstance ( data . insta...
103
java-test-4203
java
What does the code create ?
the signedproperties dom object element
protected void incorporate Signed Properties ( ) throws DSS Exception { signed Properties Dom = DSSXML Utils . add Element ( document Dom , qualifying Properties Dom , X Ad ES , XADES SIGNED PROPERTIES ) ; signed Properties Dom . set Attribute ( ID , STRING + deterministic Id ) ; incorporate Signed Signature Properties...
protected void incorporateSignedProperties ( ) throws DSSException { signedPropertiesDom = DSSXMLUtils . addElement ( documentDom , qualifyingPropertiesDom , XAdES , XADES_SIGNED_PROPERTIES ) ; signedPropertiesDom . setAttribute ( ID , STRING + deterministicId ) ; incorporateSignedSignatureProperties ( ) ; }
60
java-test-4206
java
What invokes at each step ?
all directories scanners
private boolean execute ( ) { final String tag = STRING + taskid + STRING ; try { if ( cancelled ) { LOG . finer ( tag + STRING ) ; return BOOL ; } if ( ! notify State Change ( RUNNING , STRING ) ) { LOG . finer ( tag + STRING ) ; return BOOL ; } scan All Directories ( ) ; } catch ( Exception x ) { if ( LOG . is Loggab...
private boolean execute ( ) { final String tag = STRING + taskid + STRING ; try { if ( cancelled ) { LOG . finer ( tag + STRING ) ; return _BOOL ; } if ( ! notifyStateChange ( RUNNING , STRING ) ) { LOG . finer ( tag + STRING ) ; return _BOOL ; } scanAllDirectories ( ) ; } catch ( Exception x ) { if ( LOG . isLoggable ...
137
java-test-4207
java
Where do all directories scanners invoke in sequence ?
at each step
private boolean execute ( ) { final String tag = STRING + taskid + STRING ; try { if ( cancelled ) { LOG . finer ( tag + STRING ) ; return BOOL ; } if ( ! notify State Change ( RUNNING , STRING ) ) { LOG . finer ( tag + STRING ) ; return BOOL ; } scan All Directories ( ) ; } catch ( Exception x ) { if ( LOG . is Loggab...
private boolean execute ( ) { final String tag = STRING + taskid + STRING ; try { if ( cancelled ) { LOG . finer ( tag + STRING ) ; return _BOOL ; } if ( ! notifyStateChange ( RUNNING , STRING ) ) { LOG . finer ( tag + STRING ) ; return _BOOL ; } scanAllDirectories ( ) ; } catch ( Exception x ) { if ( LOG . isLoggable ...
137
java-test-4208
java
What does the code create ?
a vbo
static void create Vbo ( ) { int vbo = gl Gen Buffers ( ) ; gl Bind Buffer ( GL ARRAY BUFFER , vbo ) ; Byte Buffer bb = Buffer Utils . create Byte Buffer ( boxes . length * NUM * ( NUM + NUM ) * NUM * NUM ) ; Float Buffer fv = bb . as Float Buffer ( ) ; for ( int i = NUM ; i < boxes . length ; i += NUM ) { Demo Utils ....
static void createVbo ( ) { int vbo = glGenBuffers ( ) ; glBindBuffer ( GL_ARRAY_BUFFER , vbo ) ; ByteBuffer bb = BufferUtils . createByteBuffer ( boxes . length * _NUM * ( _NUM + _NUM ) * _NUM * _NUM ) ; FloatBuffer fv = bb . asFloatBuffer ( ) ; for ( int i = _NUM ; i < boxes . length ; i += _NUM ) { DemoUtils . trian...
204
java-test-4212
java
What returns the input string as - is ?
the type doesn ' t
String rename Internal Type ( String type ) { if ( type == null ) { return null ; } if ( type . equals ( m Old Name ) ) { return m New Name ; } if ( m Old Base != m Old Name && type . equals ( m Old Base ) ) { return m New Base ; } int pos = type . index Of ( STRING ) ; if ( pos == m Old Base . length ( ) && type . sta...
String renameInternalType ( String type ) { if ( type == null ) { return null ; } if ( type . equals ( mOldName ) ) { return mNewName ; } if ( mOldBase != mOldName && type . equals ( mOldBase ) ) { return mNewBase ; } int pos = type . indexOf ( STRING ) ; if ( pos == mOldBase . length ( ) && type . startsWith ( mOldBas...
138
java-test-4213
java
In which direction do new table create by the table model ?
from database
private String generate Create New Table SQL ( Collection < String > remove Column Names , Table Model table Model ) { for ( String remove Column Name : remove Column Names ) { table Model . remove Column Model By Name ( remove Column Name ) ; } return generate Create Table SQL ( table Model ) ; }
private String generateCreateNewTableSQL ( Collection < String > removeColumnNames , TableModel tableModel ) { for ( String removeColumnName : removeColumnNames ) { tableModel . removeColumnModelByName ( removeColumnName ) ; } return generateCreateTableSQL ( tableModel ) ; }
60
java-test-4214
java
When do that remove ?
before generating the sql
private String generate Create New Table SQL ( Collection < String > remove Column Names , Table Model table Model ) { for ( String remove Column Name : remove Column Names ) { table Model . remove Column Model By Name ( remove Column Name ) ; } return generate Create Table SQL ( table Model ) ; }
private String generateCreateNewTableSQL ( Collection < String > removeColumnNames , TableModel tableModel ) { for ( String removeColumnName : removeColumnNames ) { tableModel . removeColumnModelByName ( removeColumnName ) ; } return generateCreateTableSQL ( tableModel ) ; }
60
java-test-4215
java
How do new table create from database ?
by the table model
private String generate Create New Table SQL ( Collection < String > remove Column Names , Table Model table Model ) { for ( String remove Column Name : remove Column Names ) { table Model . remove Column Model By Name ( remove Column Name ) ; } return generate Create Table SQL ( table Model ) ; }
private String generateCreateNewTableSQL ( Collection < String > removeColumnNames , TableModel tableModel ) { for ( String removeColumnName : removeColumnNames ) { tableModel . removeColumnModelByName ( removeColumnName ) ; } return generateCreateTableSQL ( tableModel ) ; }
60
java-test-4216
java
What do the columns need ?
to remove before generating the sql
private String generate Create New Table SQL ( Collection < String > remove Column Names , Table Model table Model ) { for ( String remove Column Name : remove Column Names ) { table Model . remove Column Model By Name ( remove Column Name ) ; } return generate Create Table SQL ( table Model ) ; }
private String generateCreateNewTableSQL ( Collection < String > removeColumnNames , TableModel tableModel ) { for ( String removeColumnName : removeColumnNames ) { tableModel . removeColumnModelByName ( removeColumnName ) ; } return generateCreateTableSQL ( tableModel ) ; }
60
java-test-4217
java
What will it remove ?
the columns that need to remove before generating the sql
private String generate Create New Table SQL ( Collection < String > remove Column Names , Table Model table Model ) { for ( String remove Column Name : remove Column Names ) { table Model . remove Column Model By Name ( remove Column Name ) ; } return generate Create Table SQL ( table Model ) ; }
private String generateCreateNewTableSQL ( Collection < String > removeColumnNames , TableModel tableModel ) { for ( String removeColumnName : removeColumnNames ) { tableModel . removeColumnModelByName ( removeColumnName ) ; } return generateCreateTableSQL ( tableModel ) ; }
60
java-test-4218
java
For what purpose does the code generate a sql ?
to create new table by the table model from database
private String generate Create New Table SQL ( Collection < String > remove Column Names , Table Model table Model ) { for ( String remove Column Name : remove Column Names ) { table Model . remove Column Model By Name ( remove Column Name ) ; } return generate Create Table SQL ( table Model ) ; }
private String generateCreateNewTableSQL ( Collection < String > removeColumnNames , TableModel tableModel ) { for ( String removeColumnName : removeColumnNames ) { tableModel . removeColumnModelByName ( removeColumnName ) ; } return generateCreateTableSQL ( tableModel ) ; }
60
java-test-4219
java
What does the code read ?
the specified sections from penn treebank
public Penn Treebank Reader ( String treebank Home , String [ ] sections , String parse View Name ) throws Exception { super ( Corpus Reader Configurator . build Resource Manager ( PENN TREEBANK WSJ , treebank Home ) ) ; this . parse View Name = parse View Name ; combined WSJ Home = treebank Home ; if ( sections == nul...
public PennTreebankReader ( String treebankHome , String [ ] sections , String parseViewName ) throws Exception { super ( CorpusReaderConfigurator . buildResourceManager ( PENN_TREEBANK_WSJ , treebankHome ) ) ; this . parseViewName = parseViewName ; combinedWSJHome = treebankHome ; if ( sections == null ) this . sectio...
120
java-test-4220
java
What do the components not have ?
a parent
@ Not Null public static Map < Rad Component , List < Rad Component > > group Siblings ( @ Not Null List < ? extends Rad Component > components ) { Map < Rad Component , List < Rad Component > > sibling Lists = new Hash Map < Rad Component , List < Rad Component > > ( ) ; if ( components . is Empty ( ) ) { return sibli...
@ NotNull public static Map < RadComponent , List < RadComponent > > groupSiblings ( @ NotNull List < ? extends RadComponent > components ) { Map < RadComponent , List < RadComponent > > siblingLists = new HashMap < RadComponent , List < RadComponent > > ( ) ; if ( components . isEmpty ( ) ) { return siblingLists ; } i...
203
java-test-4221
java
Do the components have a parent ?
No
@ Not Null public static Map < Rad Component , List < Rad Component > > group Siblings ( @ Not Null List < ? extends Rad Component > components ) { Map < Rad Component , List < Rad Component > > sibling Lists = new Hash Map < Rad Component , List < Rad Component > > ( ) ; if ( components . is Empty ( ) ) { return sibli...
@ NotNull public static Map < RadComponent , List < RadComponent > > groupSiblings ( @ NotNull List < ? extends RadComponent > components ) { Map < RadComponent , List < RadComponent > > siblingLists = new HashMap < RadComponent , List < RadComponent > > ( ) ; if ( components . isEmpty ( ) ) { return siblingLists ; } i...
203
java-test-4222
java
What do not have a parent ?
the components
@ Not Null public static Map < Rad Component , List < Rad Component > > group Siblings ( @ Not Null List < ? extends Rad Component > components ) { Map < Rad Component , List < Rad Component > > sibling Lists = new Hash Map < Rad Component , List < Rad Component > > ( ) ; if ( components . is Empty ( ) ) { return sibli...
@ NotNull public static Map < RadComponent , List < RadComponent > > groupSiblings ( @ NotNull List < ? extends RadComponent > components ) { Map < RadComponent , List < RadComponent > > siblingLists = new HashMap < RadComponent , List < RadComponent > > ( ) ; if ( components . isEmpty ( ) ) { return siblingLists ; } i...
203
java-test-4223
java
What is a list of siblings a map ?
each value
@ Not Null public static Map < Rad Component , List < Rad Component > > group Siblings ( @ Not Null List < ? extends Rad Component > components ) { Map < Rad Component , List < Rad Component > > sibling Lists = new Hash Map < Rad Component , List < Rad Component > > ( ) ; if ( components . is Empty ( ) ) { return sibli...
@ NotNull public static Map < RadComponent , List < RadComponent > > groupSiblings ( @ NotNull List < ? extends RadComponent > components ) { Map < RadComponent , List < RadComponent > > siblingLists = new HashMap < RadComponent , List < RadComponent > > ( ) ; if ( components . isEmpty ( ) ) { return siblingLists ; } i...
203
java-test-4224
java
Where are the keys are the parents ?
a map
@ Not Null public static Map < Rad Component , List < Rad Component > > group Siblings ( @ Not Null List < ? extends Rad Component > components ) { Map < Rad Component , List < Rad Component > > sibling Lists = new Hash Map < Rad Component , List < Rad Component > > ( ) ; if ( components . is Empty ( ) ) { return sibli...
@ NotNull public static Map < RadComponent , List < RadComponent > > groupSiblings ( @ NotNull List < ? extends RadComponent > components ) { Map < RadComponent , List < RadComponent > > siblingLists = new HashMap < RadComponent , List < RadComponent > > ( ) ; if ( components . isEmpty ( ) ) { return siblingLists ; } i...
203
java-test-4225
java
What are the parents a map ?
the keys
@ Not Null public static Map < Rad Component , List < Rad Component > > group Siblings ( @ Not Null List < ? extends Rad Component > components ) { Map < Rad Component , List < Rad Component > > sibling Lists = new Hash Map < Rad Component , List < Rad Component > > ( ) ; if ( components . is Empty ( ) ) { return sibli...
@ NotNull public static Map < RadComponent , List < RadComponent > > groupSiblings ( @ NotNull List < ? extends RadComponent > components ) { Map < RadComponent , List < RadComponent > > siblingLists = new HashMap < RadComponent , List < RadComponent > > ( ) ; if ( components . isEmpty ( ) ) { return siblingLists ; } i...
203
java-test-4226
java
Where is each value a list of siblings ?
a map
@ Not Null public static Map < Rad Component , List < Rad Component > > group Siblings ( @ Not Null List < ? extends Rad Component > components ) { Map < Rad Component , List < Rad Component > > sibling Lists = new Hash Map < Rad Component , List < Rad Component > > ( ) ; if ( components . is Empty ( ) ) { return sibli...
@ NotNull public static Map < RadComponent , List < RadComponent > > groupSiblings ( @ NotNull List < ? extends RadComponent > components ) { Map < RadComponent , List < RadComponent > > siblingLists = new HashMap < RadComponent , List < RadComponent > > ( ) ; if ( components . isEmpty ( ) ) { return siblingLists ; } i...
203
java-test-4227
java
When do the number of non - newline characters count in the string ?
before first newline
private int count Non Newline ( String str , int off , int len ) { for ( int cnt = NUM ; cnt < len ; cnt ++ ) { final int pos = off + cnt ; if ( str . char At ( pos ) == UNIX NEWLINE ) { return cnt ; } if ( str . char At ( pos ) == CARRIAGE RETURN ) { return cnt ; } } return len ; }
private int countNonNewline ( String str , int off , int len ) { for ( int cnt = _NUM ; cnt < len ; cnt ++ ) { final int pos = off + cnt ; if ( str . charAt ( pos ) == UNIX_NEWLINE ) { return cnt ; } if ( str . charAt ( pos ) == CARRIAGE_RETURN ) { return cnt ; } } return len ; }
80
java-test-4228
java
What counts in the string ?
the number of non - newline characters
private int count Non Newline ( String str , int off , int len ) { for ( int cnt = NUM ; cnt < len ; cnt ++ ) { final int pos = off + cnt ; if ( str . char At ( pos ) == UNIX NEWLINE ) { return cnt ; } if ( str . char At ( pos ) == CARRIAGE RETURN ) { return cnt ; } } return len ; }
private int countNonNewline ( String str , int off , int len ) { for ( int cnt = _NUM ; cnt < len ; cnt ++ ) { final int pos = off + cnt ; if ( str . charAt ( pos ) == UNIX_NEWLINE ) { return cnt ; } if ( str . charAt ( pos ) == CARRIAGE_RETURN ) { return cnt ; } } return len ; }
80
java-test-4229
java
What does not contain the first element up to the specified limit ?
a new vector
private Vector < Snmp Var Bind > split From ( Vector < Snmp Var Bind > original , int limit ) { int max = original . size ( ) ; Vector < Snmp Var Bind > result = new Vector < > ( max - limit ) ; int i = limit ; for ( Enumeration < Snmp Var Bind > e = original . elements ( ) ; e . has More Elements ( ) ; -- i ) { Snmp V...
private Vector < SnmpVarBind > splitFrom ( Vector < SnmpVarBind > original , int limit ) { int max = original . size ( ) ; Vector < SnmpVarBind > result = new Vector < > ( max - limit ) ; int i = limit ; for ( Enumeration < SnmpVarBind > e = original . elements ( ) ; e . hasMoreElements ( ) ; -- i ) { SnmpVarBind var =...
127
java-test-4230
java
What does this method create ?
a new vector which does not contain the first element up to the specified limit
private Vector < Snmp Var Bind > split From ( Vector < Snmp Var Bind > original , int limit ) { int max = original . size ( ) ; Vector < Snmp Var Bind > result = new Vector < > ( max - limit ) ; int i = limit ; for ( Enumeration < Snmp Var Bind > e = original . elements ( ) ; e . has More Elements ( ) ; -- i ) { Snmp V...
private Vector < SnmpVarBind > splitFrom ( Vector < SnmpVarBind > original , int limit ) { int max = original . size ( ) ; Vector < SnmpVarBind > result = new Vector < > ( max - limit ) ; int i = limit ; for ( Enumeration < SnmpVarBind > e = original . elements ( ) ; e . hasMoreElements ( ) ; -- i ) { SnmpVarBind var =...
127
java-test-4231
java
What does a new vector not contain up to the specified limit ?
the first element
private Vector < Snmp Var Bind > split From ( Vector < Snmp Var Bind > original , int limit ) { int max = original . size ( ) ; Vector < Snmp Var Bind > result = new Vector < > ( max - limit ) ; int i = limit ; for ( Enumeration < Snmp Var Bind > e = original . elements ( ) ; e . has More Elements ( ) ; -- i ) { Snmp V...
private Vector < SnmpVarBind > splitFrom ( Vector < SnmpVarBind > original , int limit ) { int max = original . size ( ) ; Vector < SnmpVarBind > result = new Vector < > ( max - limit ) ; int i = limit ; for ( Enumeration < SnmpVarBind > e = original . elements ( ) ; e . hasMoreElements ( ) ; -- i ) { SnmpVarBind var =...
127
java-test-4232
java
Does a new vector contain the first element up to the specified limit ?
No
private Vector < Snmp Var Bind > split From ( Vector < Snmp Var Bind > original , int limit ) { int max = original . size ( ) ; Vector < Snmp Var Bind > result = new Vector < > ( max - limit ) ; int i = limit ; for ( Enumeration < Snmp Var Bind > e = original . elements ( ) ; e . has More Elements ( ) ; -- i ) { Snmp V...
private Vector < SnmpVarBind > splitFrom ( Vector < SnmpVarBind > original , int limit ) { int max = original . size ( ) ; Vector < SnmpVarBind > result = new Vector < > ( max - limit ) ; int i = limit ; for ( Enumeration < SnmpVarBind > e = original . elements ( ) ; e . hasMoreElements ( ) ; -- i ) { SnmpVarBind var =...
127
java-test-4233
java
In which direction does a new vector not contain the first element ?
up to the specified limit
private Vector < Snmp Var Bind > split From ( Vector < Snmp Var Bind > original , int limit ) { int max = original . size ( ) ; Vector < Snmp Var Bind > result = new Vector < > ( max - limit ) ; int i = limit ; for ( Enumeration < Snmp Var Bind > e = original . elements ( ) ; e . has More Elements ( ) ; -- i ) { Snmp V...
private Vector < SnmpVarBind > splitFrom ( Vector < SnmpVarBind > original , int limit ) { int max = original . size ( ) ; Vector < SnmpVarBind > result = new Vector < > ( max - limit ) ; int i = limit ; for ( Enumeration < SnmpVarBind > e = original . elements ( ) ; e . hasMoreElements ( ) ; -- i ) { SnmpVarBind var =...
127
java-test-4235
java
What is using the given page link ?
a document page
@ Override public Service Document Query Result query Document Page ( String page Link ) throws Bad Request Exception , Document Not Found Exception , Timeout Exception , Interrupted Exception { check Not Null ( page Link , STRING ) ; check Argument ( ! page Link . is Empty ( ) , STRING ) ; page Link = decode Page Link...
@ Override public ServiceDocumentQueryResult queryDocumentPage ( String pageLink ) throws BadRequestException , DocumentNotFoundException , TimeoutException , InterruptedException { checkNotNull ( pageLink , STRING ) ; checkArgument ( ! pageLink . isEmpty ( ) , STRING ) ; pageLink = decodePageLink ( pageLink ) ; Operat...
139
java-test-4236
java
How do a document page query ?
using the given page link
@ Override public Service Document Query Result query Document Page ( String page Link ) throws Bad Request Exception , Document Not Found Exception , Timeout Exception , Interrupted Exception { check Not Null ( page Link , STRING ) ; check Argument ( ! page Link . is Empty ( ) , STRING ) ; page Link = decode Page Link...
@ Override public ServiceDocumentQueryResult queryDocumentPage ( String pageLink ) throws BadRequestException , DocumentNotFoundException , TimeoutException , InterruptedException { checkNotNull ( pageLink , STRING ) ; checkArgument ( ! pageLink . isEmpty ( ) , STRING ) ; pageLink = decodePageLink ( pageLink ) ; Operat...
139
java-test-4237
java
What do a document page use ?
the given page link
@ Override public Service Document Query Result query Document Page ( String page Link ) throws Bad Request Exception , Document Not Found Exception , Timeout Exception , Interrupted Exception { check Not Null ( page Link , STRING ) ; check Argument ( ! page Link . is Empty ( ) , STRING ) ; page Link = decode Page Link...
@ Override public ServiceDocumentQueryResult queryDocumentPage ( String pageLink ) throws BadRequestException , DocumentNotFoundException , TimeoutException , InterruptedException { checkNotNull ( pageLink , STRING ) ; checkArgument ( ! pageLink . isEmpty ( ) , STRING ) ; pageLink = decodePageLink ( pageLink ) ; Operat...
139
java-test-4241
java
For what purpose does this frame mutate ?
to contain the given parameters
public void wrap ( final int stream Id , final Frame Type type , final Byte Buffer data ) { POOL . release ( this . direct Buffer ) ; this . direct Buffer = POOL . acquire Mutable Direct Buffer ( Frame Header Flyweight . compute Frame Header Length ( type , NUM , data . remaining ( ) ) ) ; this . length = Frame Header ...
public void wrap ( final int streamId , final FrameType type , final ByteBuffer data ) { POOL . release ( this . directBuffer ) ; this . directBuffer = POOL . acquireMutableDirectBuffer ( FrameHeaderFlyweight . computeFrameHeaderLength ( type , _NUM , data . remaining ( ) ) ) ; this . length = FrameHeaderFlyweight . en...
94
java-test-4242
java
Do the old value be what ?
No
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4243
java
When did the code invoke ?
when a permanent change to the jtextfield has been made
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4244
java
What do subclasses want ?
to display the value differently
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4245
java
Do this notify property listeners ?
No
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4246
java
How do that display the value ?
differently
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4247
java
What want to display the value differently ?
subclasses
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4248
java
What do this not notify ?
property listeners
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4249
java
What do that display differently ?
the value
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4250
java
What not notify property listeners ?
this
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4251
java
May the invoker may was know ?
No
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4252
java
What may may was not know what the old value was ?
the invoker
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4253
java
What may the invoker may was not know ?
what the old value was
void updated Text Field ( ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING ) ; } Cv Value cv = cv Map . get ( get Cv Num ( ) ) ; int old Cv = cv . get Value ( ) ; int new Val ; try { new Val = text To Value ( value . get Text ( ) ) ; } catch ( java . lang . Number Format Exception ex ) { new Val = NUM ; } i...
void updatedTextField ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING ) ; } CvValue cv = _cvMap . get ( getCvNum ( ) ) ; int oldCv = cv . getValue ( ) ; int newVal ; try { newVal = textToValue ( _value . getText ( ) ) ; } catch ( java . lang . NumberFormatException ex ) { newVal = _NUM ; } int newCv = newV...
132
java-test-4254
java
How does all iexpandable items expand ?
with at least the specified level
public int expand All ( int level ) { int expanded = NUM ; for ( int i = NUM ; i < m Items . size ( ) ; i ++ ) { T item = get Item ( i ) ; if ( is Expandable ( item ) ) { I Expandable expandable = ( I Expandable ) item ; if ( expandable . get Expansion Level ( ) <= level && expand ( i , BOOL , BOOL ) > NUM ) { expanded...
public int expandAll ( int level ) { int expanded = _NUM ; for ( int i = _NUM ; i < mItems . size ( ) ; i ++ ) { T item = getItem ( i ) ; if ( isExpandable ( item ) ) { IExpandable expandable = ( IExpandable ) item ; if ( expandable . getExpansionLevel ( ) <= level && expand ( i , _BOOL , _BOOL ) > _NUM ) { expanded ++...
96
java-test-4256
java
How does the code execute a script ?
in a separate process . in windows
protected int exec Script ( String script , String List args ) { if ( is Windows ( ) ) { String List new Args = new String List ( ) ; new Args . add ( STRING ) ; new Args . add ( script ) ; new Args . add All ( args ) ; return exec ( STRING , new Args ) ; } return exec ( script , args ) ; }
protected int execScript ( String script , StringList args ) { if ( isWindows ( ) ) { StringList newArgs = new StringList ( ) ; newArgs . add ( STRING ) ; newArgs . add ( script ) ; newArgs . addAll ( args ) ; return exec ( STRING , newArgs ) ; } return exec ( script , args ) ; }
76
java-test-4257
java
What does the code run using a document ?
an analysis engine
public static J Cas run Test ( String a Document Id , Analysis Engine a Engine , String a Language , String a Document ) throws UIMA Exception { if ( offline ) { System . set Property ( Resource Object Provider Base . PROP REPO OFFLINE , STRING ) ; } offline = BOOL ; J Cas jcas = a Engine . new J Cas ( ) ; if ( a Docum...
public static JCas runTest ( String aDocumentId , AnalysisEngine aEngine , String aLanguage , String aDocument ) throws UIMAException { if ( offline ) { System . setProperty ( ResourceObjectProviderBase . PROP_REPO_OFFLINE , STRING ) ; } offline = _BOOL ; JCas jcas = aEngine . newJCas ( ) ; if ( aDocumentId != null ) {...
173
java-test-4258
java
How does the code run an analysis engine ?
using a document
public static J Cas run Test ( String a Document Id , Analysis Engine a Engine , String a Language , String a Document ) throws UIMA Exception { if ( offline ) { System . set Property ( Resource Object Provider Base . PROP REPO OFFLINE , STRING ) ; } offline = BOOL ; J Cas jcas = a Engine . new J Cas ( ) ; if ( a Docum...
public static JCas runTest ( String aDocumentId , AnalysisEngine aEngine , String aLanguage , String aDocument ) throws UIMAException { if ( offline ) { System . setProperty ( ResourceObjectProviderBase . PROP_REPO_OFFLINE , STRING ) ; } offline = _BOOL ; JCas jcas = aEngine . newJCas ( ) ; if ( aDocumentId != null ) {...
173
java-test-4262
java
Where does the code add highlights for the given region ?
on the given pane
public static void mark Text ( J Text Component pane , int start , int end , Simple Marker marker ) { try { Highlighter hiliter = pane . get Highlighter ( ) ; int sel Start = pane . get Selection Start ( ) ; int sel End = pane . get Selection End ( ) ; if ( sel Start == sel End || end < sel Start || start > sel Start )...
public static void markText ( JTextComponent pane , int start , int end , SimpleMarker marker ) { try { Highlighter hiliter = pane . getHighlighter ( ) ; int selStart = pane . getSelectionStart ( ) ; int selEnd = pane . getSelectionEnd ( ) ; if ( selStart == selEnd || end < selStart || start > selStart ) { hiliter . ad...
170
java-test-4263
java
What does the code notify ?
the root component this component is managing the provider
private < T > void add Provider ( @ Not Null Provider < T > provider ) throws Provider Conflict Exception { Class < T > type = provider . type ( ) ; Annotation qualifier = provider . get Qualifier ( ) ; String key = Poke Helper . make Provider Key ( type , qualifier ) ; add New Key To Component ( key , this ) ; provide...
private < T > void addProvider ( @ NotNull Provider < T > provider ) throws ProviderConflictException { Class < T > type = provider . type ( ) ; Annotation qualifier = provider . getQualifier ( ) ; String key = PokeHelper . makeProviderKey ( type , qualifier ) ; addNewKeyToComponent ( key , this ) ; provider . setCompo...
88
java-test-4264
java
Where can a file appear ?
in multiple folders
public boolean is Parent ( File folder , File file ) { if ( folder == null || file == null ) { return BOOL ; } else if ( folder instanceof Shell Folder ) { File parent = file . get Parent File ( ) ; if ( parent != null && parent . equals ( folder ) ) { return BOOL ; } File [ ] children = get Files ( folder , BOOL ) ; f...
public boolean isParent ( File folder , File file ) { if ( folder == null || file == null ) { return _BOOL ; } else if ( folder instanceof ShellFolder ) { File parent = file . getParentFile ( ) ; if ( parent != null && parent . equals ( folder ) ) { return _BOOL ; } File [ ] children = getFiles ( folder , _BOOL ) ; for...
123
java-test-4265
java
What does the code show ?
a list of all items for which offers exist
@ Override public void fire ( Player player , Sentence sentence , Event Raiser npc ) { Market market = Trade Center Zone Configurator . get Shop From Zone ( player . get Zone ( ) ) ; RP Slot offers Slot = market . get Slot ( Market . OFFERS SLOT NAME ) ; List < Offer > offers = get Offers ( offers Slot ) ; if ( offers ...
@ Override public void fire ( Player player , Sentence sentence , EventRaiser npc ) { Market market = TradeCenterZoneConfigurator . getShopFromZone ( player . getZone ( ) ) ; RPSlot offersSlot = market . getSlot ( Market . OFFERS_SLOT_NAME ) ; List < Offer > offers = getOffers ( offersSlot ) ; if ( offers . isEmpty ( )...
113
java-test-4266
java
How did the number of buckets that are required for this type reduce ?
by eliminating ranges that are likely to be entirely unused
protected static Long convert Timepoint To Bucketing Long ( Date timepoint To Be Converted ) { if ( timepoint To Be Converted == null ) { return null ; } Long to Return = timepoint To Be Converted . get Time ( ) - Primary Index Bucket Generator Impl . TIMEPOINT MIN ; if ( to Return < NUM ) { return NUM ; } else if ( to...
protected static Long convertTimepointToBucketingLong ( Date timepointToBeConverted ) { if ( timepointToBeConverted == null ) { return null ; } Long toReturn = timepointToBeConverted . getTime ( ) - PrimaryIndexBucketGeneratorImpl . TIMEPOINT_MIN ; if ( toReturn < _NUM ) { return _NUM ; } else if ( toReturn > PrimaryIn...
100
java-test-4267
java
What does this method assume ?
that the date format is the same as the format being returned by the parseutils . parsestringasdate
protected static Long convert Timepoint To Bucketing Long ( Date timepoint To Be Converted ) { if ( timepoint To Be Converted == null ) { return null ; } Long to Return = timepoint To Be Converted . get Time ( ) - Primary Index Bucket Generator Impl . TIMEPOINT MIN ; if ( to Return < NUM ) { return NUM ; } else if ( to...
protected static Long convertTimepointToBucketingLong ( Date timepointToBeConverted ) { if ( timepointToBeConverted == null ) { return null ; } Long toReturn = timepointToBeConverted . getTime ( ) - PrimaryIndexBucketGeneratorImpl . TIMEPOINT_MIN ; if ( toReturn < _NUM ) { return _NUM ; } else if ( toReturn > PrimaryIn...
100
java-test-4268
java
For what purpose is this done ?
to reduce the number of buckets that are required for this type ( by eliminating ranges that are likely to be entirely unused )
protected static Long convert Timepoint To Bucketing Long ( Date timepoint To Be Converted ) { if ( timepoint To Be Converted == null ) { return null ; } Long to Return = timepoint To Be Converted . get Time ( ) - Primary Index Bucket Generator Impl . TIMEPOINT MIN ; if ( to Return < NUM ) { return NUM ; } else if ( to...
protected static Long convertTimepointToBucketingLong ( Date timepointToBeConverted ) { if ( timepointToBeConverted == null ) { return null ; } Long toReturn = timepointToBeConverted . getTime ( ) - PrimaryIndexBucketGeneratorImpl . TIMEPOINT_MIN ; if ( toReturn < _NUM ) { return _NUM ; } else if ( toReturn > PrimaryIn...
100
java-test-4269
java
What does this method convert to its corresponding long value ?
the timepoint value
protected static Long convert Timepoint To Bucketing Long ( Date timepoint To Be Converted ) { if ( timepoint To Be Converted == null ) { return null ; } Long to Return = timepoint To Be Converted . get Time ( ) - Primary Index Bucket Generator Impl . TIMEPOINT MIN ; if ( to Return < NUM ) { return NUM ; } else if ( to...
protected static Long convertTimepointToBucketingLong ( Date timepointToBeConverted ) { if ( timepointToBeConverted == null ) { return null ; } Long toReturn = timepointToBeConverted . getTime ( ) - PrimaryIndexBucketGeneratorImpl . TIMEPOINT_MIN ; if ( toReturn < _NUM ) { return _NUM ; } else if ( toReturn > PrimaryIn...
100
java-test-4270
java
When are they inserted in the natural sort order ?
when adding fields
private static void add Default Fields ( Sorted Set < Pdx Field > my Fields , Sorted Set < Pdx Field > other Fields ) { for ( Pdx Field f : other Fields ) { if ( ! my Fields . contains ( f ) ) { my Fields . add ( new Default Pdx Field ( f ) ) ; } } }
private static void addDefaultFields ( SortedSet < PdxField > myFields , SortedSet < PdxField > otherFields ) { for ( PdxField f : otherFields ) { if ( ! myFields . contains ( f ) ) { myFields . add ( new DefaultPdxField ( f ) ) ; } } }
65
java-test-4271
java
When are any fields that are in otherfields but not in myfields added to myfields as defaults ?
when adding fields they are inserted in the natural sort order
private static void add Default Fields ( Sorted Set < Pdx Field > my Fields , Sorted Set < Pdx Field > other Fields ) { for ( Pdx Field f : other Fields ) { if ( ! my Fields . contains ( f ) ) { my Fields . add ( new Default Pdx Field ( f ) ) ; } } }
private static void addDefaultFields ( SortedSet < PdxField > myFields , SortedSet < PdxField > otherFields ) { for ( PdxField f : otherFields ) { if ( ! myFields . contains ( f ) ) { myFields . add ( new DefaultPdxField ( f ) ) ; } } }
65
java-test-4272
java
When do you receive the " memory warning " ?
in the short term
public void remove All Textures ( ) { for ( Weak Reference < CC Texture 2 D > tex SR : textures . values ( ) ) { CC Texture 2 D tex = tex SR . get ( ) ; if ( tex != null ) tex . release Texture ( CC Director . gl ) ; } textures . clear ( ) ; }
public void removeAllTextures ( ) { for ( WeakReference < CCTexture2D > texSR : textures . values ( ) ) { CCTexture2D tex = texSR . get ( ) ; if ( tex != null ) tex . releaseTexture ( CCDirector . gl ) ; } textures . clear ( ) ; }
66
java-test-4273
java
What does the code purge ?
the dictionary of loaded textures
public void remove All Textures ( ) { for ( Weak Reference < CC Texture 2 D > tex SR : textures . values ( ) ) { CC Texture 2 D tex = tex SR . get ( ) ; if ( tex != null ) tex . release Texture ( CC Director . gl ) ; } textures . clear ( ) ; }
public void removeAllTextures ( ) { for ( WeakReference < CCTexture2D > texSR : textures . values ( ) ) { CCTexture2D tex = texSR . get ( ) ; if ( tex != null ) tex . releaseTexture ( CCDirector . gl ) ; } textures . clear ( ) ; }
66
java-test-4274
java
What do you receive in the short term ?
the " memory warning "
public void remove All Textures ( ) { for ( Weak Reference < CC Texture 2 D > tex SR : textures . values ( ) ) { CC Texture 2 D tex = tex SR . get ( ) ; if ( tex != null ) tex . release Texture ( CC Director . gl ) ; } textures . clear ( ) ; }
public void removeAllTextures ( ) { for ( WeakReference < CCTexture2D > texSR : textures . values ( ) ) { CCTexture2D tex = texSR . get ( ) ; if ( tex != null ) tex . releaseTexture ( CCDirector . gl ) ; } textures . clear ( ) ; }
66
java-test-4275
java
What will it free ?
some resources preventing your app from being killed in the medium term
public void remove All Textures ( ) { for ( Weak Reference < CC Texture 2 D > tex SR : textures . values ( ) ) { CC Texture 2 D tex = tex SR . get ( ) ; if ( tex != null ) tex . release Texture ( CC Director . gl ) ; } textures . clear ( ) ; }
public void removeAllTextures ( ) { for ( WeakReference < CCTexture2D > texSR : textures . values ( ) ) { CCTexture2D tex = texSR . get ( ) ; if ( tex != null ) tex . releaseTexture ( CCDirector . gl ) ; } textures . clear ( ) ; }
66
java-test-4276
java
What will it allocate in the long term ?
more resources
public void remove All Textures ( ) { for ( Weak Reference < CC Texture 2 D > tex SR : textures . values ( ) ) { CC Texture 2 D tex = tex SR . get ( ) ; if ( tex != null ) tex . release Texture ( CC Director . gl ) ; } textures . clear ( ) ; }
public void removeAllTextures ( ) { for ( WeakReference < CCTexture2D > texSR : textures . values ( ) ) { CCTexture2D tex = texSR . get ( ) ; if ( tex != null ) tex . releaseTexture ( CCDirector . gl ) ; } textures . clear ( ) ; }
66
java-test-4277
java
When will it allocate more resources ?
in the long term
public void remove All Textures ( ) { for ( Weak Reference < CC Texture 2 D > tex SR : textures . values ( ) ) { CC Texture 2 D tex = tex SR . get ( ) ; if ( tex != null ) tex . release Texture ( CC Director . gl ) ; } textures . clear ( ) ; }
public void removeAllTextures ( ) { for ( WeakReference < CCTexture2D > texSR : textures . values ( ) ) { CCTexture2D tex = texSR . get ( ) ; if ( tex != null ) tex . releaseTexture ( CCDirector . gl ) ; } textures . clear ( ) ; }
66
java-test-4278
java
When being your app killed ?
in the medium term
public void remove All Textures ( ) { for ( Weak Reference < CC Texture 2 D > tex SR : textures . values ( ) ) { CC Texture 2 D tex = tex SR . get ( ) ; if ( tex != null ) tex . release Texture ( CC Director . gl ) ; } textures . clear ( ) ; }
public void removeAllTextures ( ) { for ( WeakReference < CCTexture2D > texSR : textures . values ( ) ) { CCTexture2D tex = texSR . get ( ) ; if ( tex != null ) tex . releaseTexture ( CCDirector . gl ) ; } textures . clear ( ) ; }
66
java-test-4279
java
What are two different assignment arrays used ?
to allow overlapping assignment of points to the clusters
private double dot ( final int k0 , final int k1 , final int [ ] assignment 0 , final int [ ] assignment 1 ) { double dot = NUM ; final int N = X . size ( ) ; int a = NUM , b = NUM ; for ( int i = NUM ; i < N ; i ++ ) { if ( assignment 0 [ i ] != k0 ) continue ; a ++ ; for ( int j = NUM ; j < N ; j ++ ) { if ( assignme...
private double dot ( final int k0 , final int k1 , final int [ ] assignment0 , final int [ ] assignment1 ) { double dot = _NUM ; final int N = X . size ( ) ; int a = _NUM , b = _NUM ; for ( int i = _NUM ; i < N ; i ++ ) { if ( assignment0 [ i ] != k0 ) continue ; a ++ ; for ( int j = _NUM ; j < N ; j ++ ) { if ( assign...
162
java-test-4280
java
What did two different assignment arrays allow to the clusters ?
overlapping assignment of points
private double dot ( final int k0 , final int k1 , final int [ ] assignment 0 , final int [ ] assignment 1 ) { double dot = NUM ; final int N = X . size ( ) ; int a = NUM , b = NUM ; for ( int i = NUM ; i < N ; i ++ ) { if ( assignment 0 [ i ] != k0 ) continue ; a ++ ; for ( int j = NUM ; j < N ; j ++ ) { if ( assignme...
private double dot ( final int k0 , final int k1 , final int [ ] assignment0 , final int [ ] assignment1 ) { double dot = _NUM ; final int N = X . size ( ) ; int a = _NUM , b = _NUM ; for ( int i = _NUM ; i < N ; i ++ ) { if ( assignment0 [ i ] != k0 ) continue ; a ++ ; for ( int j = _NUM ; j < N ; j ++ ) { if ( assign...
162
java-test-4281
java
What do handles add ?
provider resource i d mapper request
public void handle Tbl Provider Resource Id Mapper Button Add Request ( Request Invocation Event event ) throws Model Control Exception { try { Map values = get Values ( ) ; on Before Save Profile ( values ) ; set Page Session Attribute ( PROPERTY ATTRIBUTE , ( Hash Map ) values ) ; SM Discovery Provider Resource Id Ma...
public void handleTblProviderResourceIdMapperButtonAddRequest ( RequestInvocationEvent event ) throws ModelControlException { try { Map values = getValues ( ) ; onBeforeSaveProfile ( values ) ; setPageSessionAttribute ( PROPERTY_ATTRIBUTE , ( HashMap ) values ) ; SMDiscoveryProviderResourceIdMapperAddViewBean vb = ( SM...
171
java-test-4282
java
Why is this the only way to gain horizontal velocity when iris hits the bottom or the eye moves quickly ?
since there is no other horizontal force
private float apply Bounce ( float velocity , float dist Out Of Bounds , float simulation Rate ) { if ( is Zero ( dist Out Of Bounds ) ) { return velocity ; } velocity *= - NUM ; float bounce = BOUNCE MULTIPLIER * Math . abs ( dist Out Of Bounds / m Iris Radius ) ; if ( velocity > NUM ) { velocity += bounce * simulatio...
private float applyBounce ( float velocity , float distOutOfBounds , float simulationRate ) { if ( isZero ( distOutOfBounds ) ) { return velocity ; } velocity *= - _NUM ; float bounce = BOUNCE_MULTIPLIER * Math . abs ( distOutOfBounds / mIrisRadius ) ; if ( velocity > _NUM ) { velocity += bounce * simulationRate ; } el...
89
java-test-4283
java
For what purpose do velocity update ?
in response to bouncing off the sides of the eye ( i . e . , when iris hits the bottom or the eye moves quickly
private float apply Bounce ( float velocity , float dist Out Of Bounds , float simulation Rate ) { if ( is Zero ( dist Out Of Bounds ) ) { return velocity ; } velocity *= - NUM ; float bounce = BOUNCE MULTIPLIER * Math . abs ( dist Out Of Bounds / m Iris Radius ) ; if ( velocity > NUM ) { velocity += bounce * simulatio...
private float applyBounce ( float velocity , float distOutOfBounds , float simulationRate ) { if ( isZero ( distOutOfBounds ) ) { return velocity ; } velocity *= - _NUM ; float bounce = BOUNCE_MULTIPLIER * Math . abs ( distOutOfBounds / mIrisRadius ) ; if ( velocity > _NUM ) { velocity += bounce * simulationRate ; } el...
89
java-test-4284
java
What hits the bottom when ?
iris
private float apply Bounce ( float velocity , float dist Out Of Bounds , float simulation Rate ) { if ( is Zero ( dist Out Of Bounds ) ) { return velocity ; } velocity *= - NUM ; float bounce = BOUNCE MULTIPLIER * Math . abs ( dist Out Of Bounds / m Iris Radius ) ; if ( velocity > NUM ) { velocity += bounce * simulatio...
private float applyBounce ( float velocity , float distOutOfBounds , float simulationRate ) { if ( isZero ( distOutOfBounds ) ) { return velocity ; } velocity *= - _NUM ; float bounce = BOUNCE_MULTIPLIER * Math . abs ( distOutOfBounds / mIrisRadius ) ; if ( velocity > _NUM ) { velocity += bounce * simulationRate ; } el...
89
java-test-4285
java
What does iris hit when ?
the bottom
private float apply Bounce ( float velocity , float dist Out Of Bounds , float simulation Rate ) { if ( is Zero ( dist Out Of Bounds ) ) { return velocity ; } velocity *= - NUM ; float bounce = BOUNCE MULTIPLIER * Math . abs ( dist Out Of Bounds / m Iris Radius ) ; if ( velocity > NUM ) { velocity += bounce * simulatio...
private float applyBounce ( float velocity , float distOutOfBounds , float simulationRate ) { if ( isZero ( distOutOfBounds ) ) { return velocity ; } velocity *= - _NUM ; float bounce = BOUNCE_MULTIPLIER * Math . abs ( distOutOfBounds / mIrisRadius ) ; if ( velocity > _NUM ) { velocity += bounce * simulationRate ; } el...
89
java-test-4286
java
When is this the only way to gain horizontal velocity since there is no other horizontal force ?
when iris hits the bottom or the eye moves quickly
private float apply Bounce ( float velocity , float dist Out Of Bounds , float simulation Rate ) { if ( is Zero ( dist Out Of Bounds ) ) { return velocity ; } velocity *= - NUM ; float bounce = BOUNCE MULTIPLIER * Math . abs ( dist Out Of Bounds / m Iris Radius ) ; if ( velocity > NUM ) { velocity += bounce * simulatio...
private float applyBounce ( float velocity , float distOutOfBounds , float simulationRate ) { if ( isZero ( distOutOfBounds ) ) { return velocity ; } velocity *= - _NUM ; float bounce = BOUNCE_MULTIPLIER * Math . abs ( distOutOfBounds / mIrisRadius ) ; if ( velocity > _NUM ) { velocity += bounce * simulationRate ; } el...
89
java-test-4288
java
What does the code read ?
a value from a . properties file stored relative to the folder specified by the system property ' rapidminer . home
private static String read Config Property ( String relative Path , String property Key ) { String home = get Rapid Miner Home ( ) ; if ( home == null ) { log Warn ( STRING + relative Path + STRING ) ; return null ; } File property File = new File ( home , relative Path ) ; if ( property File . can Read ( ) ) { Propert...
private static String readConfigProperty ( String relativePath , String propertyKey ) { String home = getRapidMinerHome ( ) ; if ( home == null ) { logWarn ( STRING + relativePath + STRING ) ; return null ; } File propertyFile = new File ( home , relativePath ) ; if ( propertyFile . canRead ( ) ) { Properties props = n...
168
java-test-4290
java
What does an xml node represent ?
a collection of the environment parameters
public static Map parse Env Parameters ( Node p Node ) throws Policy Exception { Node node = null ; Set node Set = XML Utils . get Child Nodes ( p Node , ATTRIBUTE VALUE PAIR ) ; if ( node Set == null ) { debug . error ( STRING + ATTRIBUTE VALUE PAIR ) ; String objs [ ] = { ATTRIBUTE VALUE PAIR } ; throw new Policy Exc...
public static Map parseEnvParameters ( Node pNode ) throws PolicyException { Node node = null ; Set nodeSet = XMLUtils . getChildNodes ( pNode , ATTRIBUTE_VALUE_PAIR ) ; if ( nodeSet == null ) { debug . error ( STRING + ATTRIBUTE_VALUE_PAIR ) ; String objs [ ] = { ATTRIBUTE_VALUE_PAIR } ; throw new PolicyException ( Re...
261
java-test-4293
java
What does the code generate depending on the type of element ?
text describing its conceptual value and role
@ Override public void start Element ( String uri , String local Name , String name , Attributes attributes ) { fix White Space ( ) ; final String aria Label = attributes . get Value ( STRING ) ; final String alt = attributes . get Value ( STRING ) ; final String title = attributes . get Value ( STRING ) ; if ( aria La...
@ Override public void startElement ( String uri , String localName , String name , Attributes attributes ) { fixWhiteSpace ( ) ; final String ariaLabel = attributes . getValue ( STRING ) ; final String alt = attributes . getValue ( STRING ) ; final String title = attributes . getValue ( STRING ) ; if ( ariaLabel != nu...
401
java-test-4294
java
What is spoken after any content ?
the role text
@ Override public void start Element ( String uri , String local Name , String name , Attributes attributes ) { fix White Space ( ) ; final String aria Label = attributes . get Value ( STRING ) ; final String alt = attributes . get Value ( STRING ) ; final String title = attributes . get Value ( STRING ) ; if ( aria La...
@ Override public void startElement ( String uri , String localName , String name , Attributes attributes ) { fixWhiteSpace ( ) ; final String ariaLabel = attributes . getValue ( STRING ) ; final String alt = attributes . getValue ( STRING ) ; final String title = attributes . getValue ( STRING ) ; if ( ariaLabel != nu...
401
java-test-4295
java
For what purpose is it added to the stack ?
to wait for the closing tag
@ Override public void start Element ( String uri , String local Name , String name , Attributes attributes ) { fix White Space ( ) ; final String aria Label = attributes . get Value ( STRING ) ; final String alt = attributes . get Value ( STRING ) ; final String title = attributes . get Value ( STRING ) ; if ( aria La...
@ Override public void startElement ( String uri , String localName , String name , Attributes attributes ) { fixWhiteSpace ( ) ; final String ariaLabel = attributes . getValue ( STRING ) ; final String alt = attributes . getValue ( STRING ) ; final String title = attributes . getValue ( STRING ) ; if ( ariaLabel != nu...
401
java-test-4296
java
What do text describe ?
its conceptual value and role
@ Override public void start Element ( String uri , String local Name , String name , Attributes attributes ) { fix White Space ( ) ; final String aria Label = attributes . get Value ( STRING ) ; final String alt = attributes . get Value ( STRING ) ; final String title = attributes . get Value ( STRING ) ; if ( aria La...
@ Override public void startElement ( String uri , String localName , String name , Attributes attributes ) { fixWhiteSpace ( ) ; final String ariaLabel = attributes . getValue ( STRING ) ; final String alt = attributes . getValue ( STRING ) ; final String title = attributes . getValue ( STRING ) ; if ( ariaLabel != nu...
401
java-test-4297
java
Where is the role text spoken ?
after any content
@ Override public void start Element ( String uri , String local Name , String name , Attributes attributes ) { fix White Space ( ) ; final String aria Label = attributes . get Value ( STRING ) ; final String alt = attributes . get Value ( STRING ) ; final String title = attributes . get Value ( STRING ) ; if ( aria La...
@ Override public void startElement ( String uri , String localName , String name , Attributes attributes ) { fixWhiteSpace ( ) ; final String ariaLabel = attributes . getValue ( STRING ) ; final String alt = attributes . getValue ( STRING ) ; final String title = attributes . getValue ( STRING ) ; if ( ariaLabel != nu...
401
java-test-4298
java
What does the code draw ?
a dot file
public static void draw To Png ( final File dest , final Annotated Type Mirror type ) { try { final File dot File = File . create Temp File ( dest . get Name ( ) , STRING ) ; draw To Dot ( dot File , type ) ; exec Dot To Png ( dot File , dest ) ; } catch ( Exception exc ) { throw new Runtime Exception ( exc ) ; } }
public static void drawToPng ( final File dest , final AnnotatedTypeMirror type ) { try { final File dotFile = File . createTempFile ( dest . getName ( ) , STRING ) ; drawToDot ( dotFile , type ) ; execDotToPng ( dotFile , dest ) ; } catch ( Exception exc ) { throw new RuntimeException ( exc ) ; } }
79
java-test-4299
java
What does the code generate ?
a one - dimensional array of normal random doubles
public static double [ ] ndary ( int n ) { double d [ ] = new double [ n ] ; for ( int i = NUM ; i < n ; i ++ ) { d [ i ] = R . next Gaussian ( ) ; } return d ; }
public static double [ ] ndary ( int n ) { double d [ ] = new double [ n ] ; for ( int i = _NUM ; i < n ; i ++ ) { d [ i ] = R . nextGaussian ( ) ; } return d ; }
54