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-4164 | java | What does the code process ? | all found files and directories | void trigger Wildcard Expander ( final Collection < File > all Files , final Wildcard Context wildcard Context ) throws IO Exception { LOG . debug ( STRING , all Files ) ; if ( all Files . is Empty ( ) ) { final String message = String . format ( STRING , wildcard Context . get Wildcard ( ) ) ; LOG . warn ( message ) ;... | void triggerWildcardExpander ( final Collection < File > allFiles , final WildcardContext wildcardContext ) throws IOException { LOG . debug ( STRING , allFiles ) ; if ( allFiles . isEmpty ( ) ) { final String message = String . format ( STRING , wildcardContext . getWildcard ( ) ) ; LOG . warn ( message ) ; throw new ... | 147 |
java-test-4165 | java | What does the code use the wildcardexpanderhandler ? | to process all found files and directories | void trigger Wildcard Expander ( final Collection < File > all Files , final Wildcard Context wildcard Context ) throws IO Exception { LOG . debug ( STRING , all Files ) ; if ( all Files . is Empty ( ) ) { final String message = String . format ( STRING , wildcard Context . get Wildcard ( ) ) ; LOG . warn ( message ) ;... | void triggerWildcardExpander ( final Collection < File > allFiles , final WildcardContext wildcardContext ) throws IOException { LOG . debug ( STRING , allFiles ) ; if ( allFiles . isEmpty ( ) ) { final String message = String . format ( STRING , wildcardContext . getWildcard ( ) ) ; LOG . warn ( message ) ; throw new ... | 147 |
java-test-4166 | java | What does the code use to process all found files and directories ? | the wildcardexpanderhandler | void trigger Wildcard Expander ( final Collection < File > all Files , final Wildcard Context wildcard Context ) throws IO Exception { LOG . debug ( STRING , all Files ) ; if ( all Files . is Empty ( ) ) { final String message = String . format ( STRING , wildcard Context . get Wildcard ( ) ) ; LOG . warn ( message ) ;... | void triggerWildcardExpander ( final Collection < File > allFiles , final WildcardContext wildcardContext ) throws IOException { LOG . debug ( STRING , allFiles ) ; if ( allFiles . isEmpty ( ) ) { final String message = String . format ( STRING , wildcardContext . getWildcard ( ) ) ; LOG . warn ( message ) ; throw new ... | 147 |
java-test-4167 | java | What will these properties be used ? | to initialise the basic formatter | protected Fast Map < String > read Declared Properties ( Widget Creator Context context ) { Fast Map < String > declared Properties = new Fast Map < String > ( ) ; String back Color = context . read Widget Property ( STRING ) ; if ( back Color != null && back Color . length ( ) > NUM ) { declared Properties . put ( STR... | protected FastMap < String > readDeclaredProperties ( WidgetCreatorContext context ) { FastMap < String > declaredProperties = new FastMap < String > ( ) ; String backColor = context . readWidgetProperty ( STRING ) ; if ( backColor != null && backColor . length ( ) > _NUM ) { declaredProperties . put ( STRING , backCol... | 472 |
java-test-4168 | java | How will it be done ? | by method initbasicformatteroptions | protected Fast Map < String > read Declared Properties ( Widget Creator Context context ) { Fast Map < String > declared Properties = new Fast Map < String > ( ) ; String back Color = context . read Widget Property ( STRING ) ; if ( back Color != null && back Color . length ( ) > NUM ) { declared Properties . put ( STR... | protected FastMap < String > readDeclaredProperties ( WidgetCreatorContext context ) { FastMap < String > declaredProperties = new FastMap < String > ( ) ; String backColor = context . readWidgetProperty ( STRING ) ; if ( backColor != null && backColor . length ( ) > _NUM ) { declaredProperties . put ( STRING , backCol... | 472 |
java-test-4169 | java | What will be used to initialise the basic formatter ? | these properties | protected Fast Map < String > read Declared Properties ( Widget Creator Context context ) { Fast Map < String > declared Properties = new Fast Map < String > ( ) ; String back Color = context . read Widget Property ( STRING ) ; if ( back Color != null && back Color . length ( ) > NUM ) { declared Properties . put ( STR... | protected FastMap < String > readDeclaredProperties ( WidgetCreatorContext context ) { FastMap < String > declaredProperties = new FastMap < String > ( ) ; String backColor = context . readWidgetProperty ( STRING ) ; if ( backColor != null && backColor . length ( ) > _NUM ) { declaredProperties . put ( STRING , backCol... | 472 |
java-test-4170 | java | Where did that replica take the checkpoint ? | the position in | 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-4171 | java | Where do the position in the log in which that replica took the checkpoint save ? | in an auxiliary table | 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-4172 | java | What did that replica take the position in the position in ? | the checkpoint | 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-4173 | java | What take a checkpoint when ? | a 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-4174 | java | What took a checkpoint ? | any 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-4175 | java | How did the batch execution strategy introduce ? | with the durable techniques to improve state management | 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-4176 | java | What saves in an auxiliary table ? | the position in the log in which that replica took the checkpoint | 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-4177 | java | Where is it used to find lower or upper log portions to be restored in the recovering replica ? | during state transfer | 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-4178 | java | For what purpose does over the commands iterate ? | to find if any replica took a checkpoint | 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-4179 | java | When is to save in an auxiliary table the position in the log in which that replica took the checkpoint necessary ? | when a replica take a checkpoint | 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-4180 | java | For what purpose is it used during state transfer ? | to find lower or upper log portions to be 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-4181 | java | What be restored in the recovering replica ? | lower or upper log portions | 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-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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.