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-6465 | java | What did the code need ? | to ship instances across the network among clients | @ Override public void write External ( Object Output out ) throws IO Exception { String tid = get Thread Mapping ( ) ; out . write Object ( tid ) ; out . write Object ( this . user Transaction Server Lookup Name ) ; out . write Object ( this . initial Context Factory ) ; out . write Object ( this . provider Url ) ; ou... | @ Override public void writeExternal ( ObjectOutput out ) throws IOException { String tid = getThreadMapping ( ) ; out . writeObject ( tid ) ; out . writeObject ( this . userTransactionServerLookupName ) ; out . writeObject ( this . initialContextFactory ) ; out . writeObject ( this . providerUrl ) ; out . writeInt ( t... | 80 |
java-test-6466 | java | What does the text of a symbol represent ? | an identifier , an operator , or a symbol that always requires ( single ) quotes | public static Symbol Variant symbol Variant ( Char Sequence symbol ) { int length = symbol . length ( ) ; if ( length == NUM ) { throw new Empty Symbol Exception ( ) ; } if ( is Identifier Keyword ( symbol ) ) { return Symbol Variant . QUOTED ; } char c = symbol . char At ( NUM ) ; if ( is Identifier Start ( c ) ) { fo... | public static SymbolVariant symbolVariant ( CharSequence symbol ) { int length = symbol . length ( ) ; if ( length == _NUM ) { throw new EmptySymbolException ( ) ; } if ( isIdentifierKeyword ( symbol ) ) { return SymbolVariant . QUOTED ; } char c = symbol . charAt ( _NUM ) ; if ( isIdentifierStart ( c ) ) { for ( int i... | 208 |
java-test-6467 | java | What does the code build ? | a url request for a tile | protected String url ( int zoom Level , int x Tile , int y Tile ) { String Builder sb = new String Builder ( url ) ; sb . append ( STRING ) ; sb . append ( zoom Level ) ; sb . append ( STRING ) ; sb . append ( x Tile ) ; sb . append ( STRING ) ; sb . append ( y Tile ) ; sb . append ( STRING ) ; return sb . to String ( ... | protected String url ( int zoomLevel , int xTile , int yTile ) { StringBuilder sb = new StringBuilder ( _url ) ; sb . append ( STRING ) ; sb . append ( zoomLevel ) ; sb . append ( STRING ) ; sb . append ( xTile ) ; sb . append ( STRING ) ; sb . append ( yTile ) ; sb . append ( STRING ) ; return sb . toString ( ) ; } | 89 |
java-test-6468 | java | How does a jsonarray element match ? | by ordinal position | private Object read By Index Token ( Object current , String index Token ) { try { int index = Integer . parse Int ( index Token ) ; JSON Array current Arr = ( JSON Array ) current ; if ( index >= current Arr . length ( ) ) { throw new JSON Pointer Exception ( format ( STRING , index , current Arr . length ( ) ) ) ; } ... | private Object readByIndexToken ( Object current , String indexToken ) { try { int index = Integer . parseInt ( indexToken ) ; JSONArray currentArr = ( JSONArray ) current ; if ( index >= currentArr . length ( ) ) { throw new JSONPointerException ( format ( STRING , index , currentArr . length ( ) ) ) ; } return curren... | 111 |
java-test-6470 | java | How do circular dependency resolve ? | with utilities class | static public boolean is Fork Happening ( ) { String processes = null ; try { processes = get Current Processes ( ) ; return get Java Cmd Count ( processes ) > NUM ; } catch ( IO Exception e ) { e . print Stack Trace ( ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } return BOOL ; } | static public boolean isForkHappening ( ) { String processes = null ; try { processes = getCurrentProcesses ( ) ; return getJavaCmdCount ( processes ) > _NUM ; } catch ( IOException e ) { e . printStackTrace ( ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } return _BOOL ; } | 72 |
java-test-6471 | java | How did the config xml file give ? | in the form of an inputstream | private Cosu Config ( Context context , Input Stream in ) throws Xml Pull Parser Exception , IO Exception { m Context = context ; m Download Manager = ( Download Manager ) m Context . get System Service ( Context . DOWNLOAD SERVICE ) ; try { Xml Pull Parser parser = Xml . new Pull Parser ( ) ; parser . set Input ( in ,... | private CosuConfig ( Context context , InputStream in ) throws XmlPullParserException , IOException { mContext = context ; mDownloadManager = ( DownloadManager ) mContext . getSystemService ( Context . DOWNLOAD_SERVICE ) ; try { XmlPullParser parser = Xml . newPullParser ( ) ; parser . setInput ( in , null ) ; while ( ... | 275 |
java-test-6472 | java | What does the code parse ? | the config xml file given in the form of an inputstream | private Cosu Config ( Context context , Input Stream in ) throws Xml Pull Parser Exception , IO Exception { m Context = context ; m Download Manager = ( Download Manager ) m Context . get System Service ( Context . DOWNLOAD SERVICE ) ; try { Xml Pull Parser parser = Xml . new Pull Parser ( ) ; parser . set Input ( in ,... | private CosuConfig ( Context context , InputStream in ) throws XmlPullParserException , IOException { mContext = context ; mDownloadManager = ( DownloadManager ) mContext . getSystemService ( Context . DOWNLOAD_SERVICE ) ; try { XmlPullParser parser = Xml . newPullParser ( ) ; parser . setInput ( in , null ) ; while ( ... | 275 |
java-test-6474 | java | What need to be caught ? | no exceptions | private Vector < Class Definition > compute Unique Catch List ( Class Declaration [ ] exceptions ) { Vector < Class Definition > unique List = new Vector < > ( ) ; unique List . add Element ( def Runtime Exception ) ; unique List . add Element ( def Remote Exception ) ; next Exception : for ( int i = NUM ; i < exceptio... | private Vector < ClassDefinition > computeUniqueCatchList ( ClassDeclaration [ ] exceptions ) { Vector < ClassDefinition > uniqueList = new Vector < > ( ) ; uniqueList . addElement ( defRuntimeException ) ; uniqueList . addElement ( defRemoteException ) ; nextException : for ( int i = _NUM ; i < exceptions . length ; i... | 266 |
java-test-6475 | java | What does the code compute ? | the exceptions which need to be caught and rethrown in a stub method before wrapping exceptions in unexpectedexceptions | private Vector < Class Definition > compute Unique Catch List ( Class Declaration [ ] exceptions ) { Vector < Class Definition > unique List = new Vector < > ( ) ; unique List . add Element ( def Runtime Exception ) ; unique List . add Element ( def Remote Exception ) ; next Exception : for ( int i = NUM ; i < exceptio... | private Vector < ClassDefinition > computeUniqueCatchList ( ClassDeclaration [ ] exceptions ) { Vector < ClassDefinition > uniqueList = new Vector < > ( ) ; uniqueList . addElement ( defRuntimeException ) ; uniqueList . addElement ( defRemoteException ) ; nextException : for ( int i = _NUM ; i < exceptions . length ; i... | 266 |
java-test-6476 | java | How be which caught before wrapping exceptions in unexpectedexceptions ? | in a stub method | private Vector < Class Definition > compute Unique Catch List ( Class Declaration [ ] exceptions ) { Vector < Class Definition > unique List = new Vector < > ( ) ; unique List . add Element ( def Runtime Exception ) ; unique List . add Element ( def Remote Exception ) ; next Exception : for ( int i = NUM ; i < exceptio... | private Vector < ClassDefinition > computeUniqueCatchList ( ClassDeclaration [ ] exceptions ) { Vector < ClassDefinition > uniqueList = new Vector < > ( ) ; uniqueList . addElement ( defRuntimeException ) ; uniqueList . addElement ( defRemoteException ) ; nextException : for ( int i = _NUM ; i < exceptions . length ; i... | 266 |
java-test-6477 | java | How may the catch blocks for these exceptions be generated ? | in any order relative to each other | private Vector < Class Definition > compute Unique Catch List ( Class Declaration [ ] exceptions ) { Vector < Class Definition > unique List = new Vector < > ( ) ; unique List . add Element ( def Runtime Exception ) ; unique List . add Element ( def Remote Exception ) ; next Exception : for ( int i = NUM ; i < exceptio... | private Vector < ClassDefinition > computeUniqueCatchList ( ClassDeclaration [ ] exceptions ) { Vector < ClassDefinition > uniqueList = new Vector < > ( ) ; uniqueList . addElement ( defRuntimeException ) ; uniqueList . addElement ( defRemoteException ) ; nextException : for ( int i = _NUM ; i < exceptions . length ; i... | 266 |
java-test-6478 | java | What do a vector contain ? | classdefinition objects | private Vector < Class Definition > compute Unique Catch List ( Class Declaration [ ] exceptions ) { Vector < Class Definition > unique List = new Vector < > ( ) ; unique List . add Element ( def Runtime Exception ) ; unique List . add Element ( def Remote Exception ) ; next Exception : for ( int i = NUM ; i < exceptio... | private Vector < ClassDefinition > computeUniqueCatchList ( ClassDeclaration [ ] exceptions ) { Vector < ClassDefinition > uniqueList = new Vector < > ( ) ; uniqueList . addElement ( defRuntimeException ) ; uniqueList . addElement ( defRemoteException ) ; nextException : for ( int i = _NUM ; i < exceptions . length ; i... | 266 |
java-test-6479 | java | What do exceptions wrap ? | in unexpectedexceptions | private Vector < Class Definition > compute Unique Catch List ( Class Declaration [ ] exceptions ) { Vector < Class Definition > unique List = new Vector < > ( ) ; unique List . add Element ( def Runtime Exception ) ; unique List . add Element ( def Remote Exception ) ; next Exception : for ( int i = NUM ; i < exceptio... | private Vector < ClassDefinition > computeUniqueCatchList ( ClassDeclaration [ ] exceptions ) { Vector < ClassDefinition > uniqueList = new Vector < > ( ) ; uniqueList . addElement ( defRuntimeException ) ; uniqueList . addElement ( defRemoteException ) ; nextException : for ( int i = _NUM ; i < exceptions . length ; i... | 266 |
java-test-6480 | java | Where did the exceptions declare ? | in the throws clause of the method | private Vector < Class Definition > compute Unique Catch List ( Class Declaration [ ] exceptions ) { Vector < Class Definition > unique List = new Vector < > ( ) ; unique List . add Element ( def Runtime Exception ) ; unique List . add Element ( def Remote Exception ) ; next Exception : for ( int i = NUM ; i < exceptio... | private Vector < ClassDefinition > computeUniqueCatchList ( ClassDeclaration [ ] exceptions ) { Vector < ClassDefinition > uniqueList = new Vector < > ( ) ; uniqueList . addElement ( defRuntimeException ) ; uniqueList . addElement ( defRemoteException ) ; nextException : for ( int i = _NUM ; i < exceptions . length ; i... | 266 |
java-test-6481 | java | What do no exceptions need ? | to be caught | private Vector < Class Definition > compute Unique Catch List ( Class Declaration [ ] exceptions ) { Vector < Class Definition > unique List = new Vector < > ( ) ; unique List . add Element ( def Runtime Exception ) ; unique List . add Element ( def Remote Exception ) ; next Exception : for ( int i = NUM ; i < exceptio... | private Vector < ClassDefinition > computeUniqueCatchList ( ClassDeclaration [ ] exceptions ) { Vector < ClassDefinition > uniqueList = new Vector < > ( ) ; uniqueList . addElement ( defRuntimeException ) ; uniqueList . addElement ( defRemoteException ) ; nextException : for ( int i = _NUM ; i < exceptions . length ; i... | 266 |
java-test-6482 | java | What do the exceptions need ? | to be caught and rethrown in a stub method before wrapping exceptions in unexpectedexceptions | private Vector < Class Definition > compute Unique Catch List ( Class Declaration [ ] exceptions ) { Vector < Class Definition > unique List = new Vector < > ( ) ; unique List . add Element ( def Runtime Exception ) ; unique List . add Element ( def Remote Exception ) ; next Exception : for ( int i = NUM ; i < exceptio... | private Vector < ClassDefinition > computeUniqueCatchList ( ClassDeclaration [ ] exceptions ) { Vector < ClassDefinition > uniqueList = new Vector < > ( ) ; uniqueList . addElement ( defRuntimeException ) ; uniqueList . addElement ( defRemoteException ) ; nextException : for ( int i = _NUM ; i < exceptions . length ; i... | 266 |
java-test-6483 | java | Why are remoteexception and runtimeexception placed in the returned vector if none of their superclasses are already present ) automatically ? | since those exceptions should always be directly rethrown by a stub method | private Vector < Class Definition > compute Unique Catch List ( Class Declaration [ ] exceptions ) { Vector < Class Definition > unique List = new Vector < > ( ) ; unique List . add Element ( def Runtime Exception ) ; unique List . add Element ( def Remote Exception ) ; next Exception : for ( int i = NUM ; i < exceptio... | private Vector < ClassDefinition > computeUniqueCatchList ( ClassDeclaration [ ] exceptions ) { Vector < ClassDefinition > uniqueList = new Vector < > ( ) ; uniqueList . addElement ( defRuntimeException ) ; uniqueList . addElement ( defRemoteException ) ; nextException : for ( int i = _NUM ; i < exceptions . length ; i... | 266 |
java-test-6484 | java | What does the code fix ? | the location of the hw component in a lw container hierarchy | final void relocate Component ( ) { synchronized ( get Tree Lock ( ) ) { if ( peer == null ) { return ; } int native X = x ; int native Y = y ; for ( Component cont = get Container ( ) ; cont != null && cont . is Lightweight ( ) ; cont = cont . get Container ( ) ) { native X += cont . x ; native Y += cont . y ; } peer ... | final void relocateComponent ( ) { synchronized ( getTreeLock ( ) ) { if ( peer == null ) { return ; } int nativeX = x ; int nativeY = y ; for ( Component cont = getContainer ( ) ; cont != null && cont . isLightweight ( ) ; cont = cont . getContainer ( ) ) { nativeX += cont . x ; nativeY += cont . y ; } peer . setBound... | 108 |
java-test-6486 | java | What does an encoded run occupy ? | 3 bytes | static final String array To RLE String ( byte [ ] a ) { String Buffer buffer = new String Buffer ( ) ; buffer . append ( ( char ) ( a . length > > NUM ) ) ; buffer . append ( ( char ) a . length ) ; byte run Value = a [ NUM ] ; int run Length = NUM ; byte [ ] state = new byte [ NUM ] ; for ( int i = NUM ; i < a . leng... | static final String arrayToRLEString ( byte [ ] a ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( ( char ) ( a . length > > _NUM ) ) ; buffer . append ( ( char ) a . length ) ; byte runValue = a [ _NUM ] ; int runLength = _NUM ; byte [ ] state = new byte [ _NUM ] ; for ( int i = _NUM ; i < a . length... | 194 |
java-test-6487 | java | What do we represent ? | this as : b escape_byte n - 1 b the escape_byte value | static final String array To RLE String ( byte [ ] a ) { String Buffer buffer = new String Buffer ( ) ; buffer . append ( ( char ) ( a . length > > NUM ) ) ; buffer . append ( ( char ) a . length ) ; byte run Value = a [ NUM ] ; int run Length = NUM ; byte [ ] state = new byte [ NUM ] ; for ( int i = NUM ; i < a . leng... | static final String arrayToRLEString ( byte [ ] a ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( ( char ) ( a . length > > _NUM ) ) ; buffer . append ( ( char ) a . length ) ; byte runValue = a [ _NUM ] ; int runLength = _NUM ; byte [ ] state = new byte [ _NUM ] ; for ( int i = _NUM ; i < a . length... | 194 |
java-test-6488 | java | Why are the following notations are possible : escape_byte escape_byte escape_byte literal escape_byte n b n instances of byte b then ? | since an encoded run occupies 3 bytes | static final String array To RLE String ( byte [ ] a ) { String Buffer buffer = new String Buffer ( ) ; buffer . append ( ( char ) ( a . length > > NUM ) ) ; buffer . append ( ( char ) a . length ) ; byte run Value = a [ NUM ] ; int run Length = NUM ; byte [ ] state = new byte [ NUM ] ; for ( int i = NUM ; i < a . leng... | static final String arrayToRLEString ( byte [ ] a ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( ( char ) ( a . length > > _NUM ) ) ; buffer . append ( ( char ) a . length ) ; byte runValue = a [ _NUM ] ; int runLength = _NUM ; byte [ ] state = new byte [ _NUM ] ; for ( int i = _NUM ; i < a . length... | 194 |
java-test-6489 | java | How are two bytes packed into a single char ? | with a single extra zero byte at the end if needed | static final String array To RLE String ( byte [ ] a ) { String Buffer buffer = new String Buffer ( ) ; buffer . append ( ( char ) ( a . length > > NUM ) ) ; buffer . append ( ( char ) a . length ) ; byte run Value = a [ NUM ] ; int run Length = NUM ; byte [ ] state = new byte [ NUM ] ; for ( int i = NUM ; i < a . leng... | static final String arrayToRLEString ( byte [ ] a ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( ( char ) ( a . length > > _NUM ) ) ; buffer . append ( ( char ) a . length ) ; byte runValue = a [ _NUM ] ; int runLength = _NUM ; byte [ ] state = new byte [ _NUM ] ; for ( int i = _NUM ; i < a . length... | 194 |
java-test-6490 | java | What do we encounter ? | a run where n = = escape_byte | static final String array To RLE String ( byte [ ] a ) { String Buffer buffer = new String Buffer ( ) ; buffer . append ( ( char ) ( a . length > > NUM ) ) ; buffer . append ( ( char ) a . length ) ; byte run Value = a [ NUM ] ; int run Length = NUM ; byte [ ] state = new byte [ NUM ] ; for ( int i = NUM ; i < a . leng... | static final String arrayToRLEString ( byte [ ] a ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( ( char ) ( a . length > > _NUM ) ) ; buffer . append ( ( char ) a . length ) ; byte runValue = a [ _NUM ] ; int runLength = _NUM ; byte [ ] state = new byte [ _NUM ] ; for ( int i = _NUM ; i < a . length... | 194 |
java-test-6492 | java | What transforms the clion compiler invocation into a safe invocation of the compiler script that blaze uses ? | a wrapper script | @ Nullable private static File create Compiler Executable Wrapper ( File blaze Compiler Executable File ) { try { File blaze Compiler Wrapper = File Util . create Temp File ( STRING , STRING , BOOL ) ; if ( ! blaze Compiler Wrapper . set Executable ( BOOL ) ) { return null ; } Immutable List < String > compiler Wrapper... | @ Nullable private static File createCompilerExecutableWrapper ( File blazeCompilerExecutableFile ) { try { File blazeCompilerWrapper = FileUtil . createTempFile ( STRING , STRING , _BOOL ) ; if ( ! blazeCompilerWrapper . setExecutable ( _BOOL ) ) { return null ; } ImmutableList < String > compilerWrapperScriptLines = ... | 172 |
java-test-6493 | java | What does the code create ? | a wrapper script that transforms the clion compiler invocation into a safe invocation of the compiler script that blaze uses | @ Nullable private static File create Compiler Executable Wrapper ( File blaze Compiler Executable File ) { try { File blaze Compiler Wrapper = File Util . create Temp File ( STRING , STRING , BOOL ) ; if ( ! blaze Compiler Wrapper . set Executable ( BOOL ) ) { return null ; } Immutable List < String > compiler Wrapper... | @ Nullable private static File createCompilerExecutableWrapper ( File blazeCompilerExecutableFile ) { try { File blazeCompilerWrapper = FileUtil . createTempFile ( STRING , STRING , _BOOL ) ; if ( ! blazeCompilerWrapper . setExecutable ( _BOOL ) ) { return null ; } ImmutableList < String > compilerWrapperScriptLines = ... | 172 |
java-test-6494 | java | What handles arguments files ? | the c toolchain compiler wrapper script | @ Nullable private static File create Compiler Executable Wrapper ( File blaze Compiler Executable File ) { try { File blaze Compiler Wrapper = File Util . create Temp File ( STRING , STRING , BOOL ) ; if ( ! blaze Compiler Wrapper . set Executable ( BOOL ) ) { return null ; } Immutable List < String > compiler Wrapper... | @ Nullable private static File createCompilerExecutableWrapper ( File blazeCompilerExecutableFile ) { try { File blazeCompilerWrapper = FileUtil . createTempFile ( STRING , STRING , _BOOL ) ; if ( ! blazeCompilerWrapper . setExecutable ( _BOOL ) ) { return null ; } ImmutableList < String > compilerWrapperScriptLines = ... | 172 |
java-test-6495 | java | What do the c toolchain compiler wrapper script handle ? | arguments files | @ Nullable private static File create Compiler Executable Wrapper ( File blaze Compiler Executable File ) { try { File blaze Compiler Wrapper = File Util . create Temp File ( STRING , STRING , BOOL ) ; if ( ! blaze Compiler Wrapper . set Executable ( BOOL ) ) { return null ; } Immutable List < String > compiler Wrapper... | @ Nullable private static File createCompilerExecutableWrapper ( File blazeCompilerExecutableFile ) { try { File blazeCompilerWrapper = FileUtil . createTempFile ( STRING , STRING , _BOOL ) ; if ( ! blazeCompilerWrapper . setExecutable ( _BOOL ) ) { return null ; } ImmutableList < String > compilerWrapperScriptLines = ... | 172 |
java-test-6496 | java | What do we need ? | to move the compiler arguments from the file to the command line | @ Nullable private static File create Compiler Executable Wrapper ( File blaze Compiler Executable File ) { try { File blaze Compiler Wrapper = File Util . create Temp File ( STRING , STRING , BOOL ) ; if ( ! blaze Compiler Wrapper . set Executable ( BOOL ) ) { return null ; } Immutable List < String > compiler Wrapper... | @ Nullable private static File createCompilerExecutableWrapper ( File blazeCompilerExecutableFile ) { try { File blazeCompilerWrapper = FileUtil . createTempFile ( STRING , STRING , _BOOL ) ; if ( ! blazeCompilerWrapper . setExecutable ( _BOOL ) ) { return null ; } ImmutableList < String > compilerWrapperScriptLines = ... | 172 |
java-test-6497 | java | Where does clion pass arguments to the compiler ? | in an arguments file | @ Nullable private static File create Compiler Executable Wrapper ( File blaze Compiler Executable File ) { try { File blaze Compiler Wrapper = File Util . create Temp File ( STRING , STRING , BOOL ) ; if ( ! blaze Compiler Wrapper . set Executable ( BOOL ) ) { return null ; } Immutable List < String > compiler Wrapper... | @ Nullable private static File createCompilerExecutableWrapper ( File blazeCompilerExecutableFile ) { try { File blazeCompilerWrapper = FileUtil . createTempFile ( STRING , STRING , _BOOL ) ; if ( ! blazeCompilerWrapper . setExecutable ( _BOOL ) ) { return null ; } ImmutableList < String > compilerWrapperScriptLines = ... | 172 |
java-test-6498 | java | What do we move to the command line from the file ? | the compiler arguments | @ Nullable private static File create Compiler Executable Wrapper ( File blaze Compiler Executable File ) { try { File blaze Compiler Wrapper = File Util . create Temp File ( STRING , STRING , BOOL ) ; if ( ! blaze Compiler Wrapper . set Executable ( BOOL ) ) { return null ; } Immutable List < String > compiler Wrapper... | @ Nullable private static File createCompilerExecutableWrapper ( File blazeCompilerExecutableFile ) { try { File blazeCompilerWrapper = FileUtil . createTempFile ( STRING , STRING , _BOOL ) ; if ( ! blazeCompilerWrapper . setExecutable ( _BOOL ) ) { return null ; } ImmutableList < String > compilerWrapperScriptLines = ... | 172 |
java-test-6499 | java | What does a wrapper script transform into a safe invocation of the compiler script that blaze uses ? | the clion compiler invocation | @ Nullable private static File create Compiler Executable Wrapper ( File blaze Compiler Executable File ) { try { File blaze Compiler Wrapper = File Util . create Temp File ( STRING , STRING , BOOL ) ; if ( ! blaze Compiler Wrapper . set Executable ( BOOL ) ) { return null ; } Immutable List < String > compiler Wrapper... | @ Nullable private static File createCompilerExecutableWrapper ( File blazeCompilerExecutableFile ) { try { File blazeCompilerWrapper = FileUtil . createTempFile ( STRING , STRING , _BOOL ) ; if ( ! blazeCompilerWrapper . setExecutable ( _BOOL ) ) { return null ; } ImmutableList < String > compilerWrapperScriptLines = ... | 172 |
java-test-6500 | java | Where does this method calculate diff ? | between frame paths | public List < Frame Descriptor > diff ( Frame Path to ) { List < Frame Descriptor > to Frames = to . get Frames ( ) ; List < Frame Descriptor > diff = new Array List < > ( ) ; if ( is Subpath ( to ) ) { for ( int i = frames . size ( ) ; i < to Frames . size ( ) ; i ++ ) { diff . add ( to Frames . get ( i ) ) ; } } else... | public List < FrameDescriptor > diff ( FramePath to ) { List < FrameDescriptor > toFrames = to . getFrames ( ) ; List < FrameDescriptor > diff = new ArrayList < > ( ) ; if ( isSubpath ( to ) ) { for ( int i = frames . size ( ) ; i < toFrames . size ( ) ; i ++ ) { diff . add ( toFrames . get ( i ) ) ; } } else { diff . ... | 117 |
java-test-6501 | java | When did the code call ? | after a database has been closed | void close ( String name ) { if ( jmx ) { try { Utils . call Static Method ( STRING , name ) ; } catch ( Exception e ) { throw Db Exception . get ( Error Code . FEATURE NOT SUPPORTED 1 , e , STRING ) ; } } DATABASES . remove ( name ) ; } | void close ( String name ) { if ( jmx ) { try { Utils . callStaticMethod ( STRING , name ) ; } catch ( Exception e ) { throw DbException . get ( ErrorCode . FEATURE_NOT_SUPPORTED_1 , e , STRING ) ; } } DATABASES . remove ( name ) ; } | 61 |
java-test-6504 | java | What does the code extract ? | a map of named parameters | public static Map < String , String > parse Named Parameters ( String tag Value ) { Map < String , String > param Map = new Linked Hash Map < String , String > ( ) ; Stream Tokenizer tokenizer = make Tokenizer ( tag Value ) ; try { while ( tokenizer . next Token ( ) == Stream Tokenizer . TT WORD ) { String key = tokeni... | public static Map < String , String > parseNamedParameters ( String tagValue ) { Map < String , String > paramMap = new LinkedHashMap < String , String > ( ) ; StreamTokenizer tokenizer = makeTokenizer ( tagValue ) ; try { while ( tokenizer . nextToken ( ) == StreamTokenizer . TT_WORD ) { String key = tokenizer . sval ... | 144 |
java-test-6505 | java | What have the specified type ? | all actions of the specified state | public List < Expression > extract All Local Actions For Event Type ( State state , Class < ? extends Event Spec > event Type ) { List < Reaction > local Reactions = new Array List < Reaction > ( state . get Local Reactions ( ) ) ; List < Expression > result Actions = new Array List < Expression > ( ) ; for ( Reaction ... | public List < Expression > extractAllLocalActionsForEventType ( State state , Class < ? extends EventSpec > eventType ) { List < Reaction > localReactions = new ArrayList < Reaction > ( state . getLocalReactions ( ) ) ; List < Expression > resultActions = new ArrayList < Expression > ( ) ; for ( Reaction reaction : loc... | 276 |
java-test-6511 | java | What does the code create ? | a simple vertical gradient using the shape for bounds and the colors for top , two middle , and bottom colors | protected Paint create Vertical Gradient ( Shape s , Four Colors colors ) { Rectangle 2 D bounds = s . get Bounds 2 D ( ) ; float x Center = ( float ) bounds . get Center X ( ) ; float y Min = ( float ) bounds . get Min Y ( ) ; float y Max = ( float ) bounds . get Max Y ( ) ; return create Gradient ( x Center , y Min ,... | protected Paint createVerticalGradient ( Shape s , FourColors colors ) { Rectangle2D bounds = s . getBounds2D ( ) ; float xCenter = ( float ) bounds . getCenterX ( ) ; float yMin = ( float ) bounds . getMinY ( ) ; float yMax = ( float ) bounds . getMaxY ( ) ; return createGradient ( xCenter , yMin , xCenter , yMax , ne... | 129 |
java-test-6512 | java | What is holding the values ? | each key | private static void merge ( Map < String , Object > merged , Map < String , Object > attributes ) { for ( Hash Map . Entry < String , Object > new Entry : attributes . entry Set ( ) ) { String key = new Entry . get Key ( ) ; if ( key . equals ( Chronix Query Params . SOLR VERSION FIELD ) ) { continue ; } if ( ! merged ... | private static void merge ( Map < String , Object > merged , Map < String , Object > attributes ) { for ( HashMap . Entry < String , Object > newEntry : attributes . entrySet ( ) ) { String key = newEntry . getKey ( ) ; if ( key . equals ( ChronixQueryParams . SOLR_VERSION_FIELD ) ) { continue ; } if ( ! merged . conta... | 178 |
java-test-6513 | java | How are all values of the collection added of the collection object ? | instead | private static void merge ( Map < String , Object > merged , Map < String , Object > attributes ) { for ( Hash Map . Entry < String , Object > new Entry : attributes . entry Set ( ) ) { String key = new Entry . get Key ( ) ; if ( key . equals ( Chronix Query Params . SOLR VERSION FIELD ) ) { continue ; } if ( ! merged ... | private static void merge ( Map < String , Object > merged , Map < String , Object > attributes ) { for ( HashMap . Entry < String , Object > newEntry : attributes . entrySet ( ) ) { String key = newEntry . getKey ( ) ; if ( key . equals ( ChronixQueryParams . SOLR_VERSION_FIELD ) ) { continue ; } if ( ! merged . conta... | 178 |
java-test-6514 | java | What does the code parse into sdc records from a request ? | the http response text | private Record parse Response ( String response ) throws Stage Exception { Record record = null ; try ( Data Parser parser = parser Factory . get Parser ( STRING , response ) ) { record = parser . parse ( ) ; if ( conf . data Format == Data Format . TEXT ) { record . set ( record . get ( STRING ) ) ; } } catch ( IO Exc... | private Record parseResponse ( String response ) throws StageException { Record record = null ; try ( DataParser parser = parserFactory . getParser ( STRING , response ) ) { record = parser . parse ( ) ; if ( conf . dataFormat == DataFormat . TEXT ) { record . set ( record . get ( STRING ) ) ; } } catch ( IOException |... | 108 |
java-test-6515 | java | In which direction does the code parse the http response text into sdc records ? | from a request | private Record parse Response ( String response ) throws Stage Exception { Record record = null ; try ( Data Parser parser = parser Factory . get Parser ( STRING , response ) ) { record = parser . parse ( ) ; if ( conf . data Format == Data Format . TEXT ) { record . set ( record . get ( STRING ) ) ; } } catch ( IO Exc... | private Record parseResponse ( String response ) throws StageException { Record record = null ; try ( DataParser parser = parserFactory . getParser ( STRING , response ) ) { record = parser . parse ( ) ; if ( conf . dataFormat == DataFormat . TEXT ) { record . set ( record . get ( STRING ) ) ; } } catch ( IOException |... | 108 |
java-test-6517 | java | What does the code inject ? | the provisionedcapacity | private void inject Provisioned Capacity ( final Stat stat , final Map < String , Object > key Map ) { final Db Client db Client = ( Db Client ) key Map . get ( VNX File Constants . DBCLIENT ) ; try { final File Share file Obj = db Client . query Object ( File Share . class , stat . get Resource Id ( ) ) ; logger . inf... | private void injectProvisionedCapacity ( final Stat stat , final Map < String , Object > keyMap ) { final DbClient dbClient = ( DbClient ) keyMap . get ( VNXFileConstants . DBCLIENT ) ; try { final FileShare fileObj = dbClient . queryObject ( FileShare . class , stat . getResourceId ( ) ) ; _logger . info ( STRING , st... | 134 |
java-test-6519 | java | What does an automaton accept ? | all 1 - character insertions of s | private Automaton insertions Of ( String s ) { List < Automaton > list = new Array List < > ( ) ; for ( int i = NUM ; i <= s . length ( ) ; i ++ ) { Automaton a = Automata . make String ( s . substring ( NUM , i ) ) ; a = Operations . concatenate ( a , Automata . make Any Char ( ) ) ; a = Operations . concatenate ( a ,... | private Automaton insertionsOf ( String s ) { List < Automaton > list = new ArrayList < > ( ) ; for ( int i = _NUM ; i <= s . length ( ) ; i ++ ) { Automaton a = Automata . makeString ( s . substring ( _NUM , i ) ) ; a = Operations . concatenate ( a , Automata . makeAnyChar ( ) ) ; a = Operations . concatenate ( a , Au... | 136 |
java-test-6521 | java | What does the code parse ? | a column declaration | private void parse Create Column ( Table Builder Kraken factory , String name ) { Token token ; if ( ( token = scan Token ( ) ) != Token . IDENTIFIER ) { throw error ( L . l ( STRING , token ) ) ; } String type = lexeme ; int length = - NUM ; int scale = - NUM ; if ( type . equals Ignore Case ( STRING ) ) { if ( ( toke... | private void parseCreateColumn ( TableBuilderKraken factory , String name ) { Token token ; if ( ( token = scanToken ( ) ) != Token . IDENTIFIER ) { throw error ( L . l ( STRING , token ) ) ; } String type = _lexeme ; int length = - _NUM ; int scale = - _NUM ; if ( type . equalsIgnoreCase ( STRING ) ) { if ( ( token = ... | 1,010 |
java-test-6524 | java | When did the code call to return its result ? | after the autocomplete activity has finished | @ Override protected void on Activity Result ( int request Code , int result Code , Intent data ) { super . on Activity Result ( request Code , result Code , data ) ; if ( request Code == REQUEST CODE AUTOCOMPLETE ) { if ( result Code == RESULT OK ) { Place place = Place Autocomplete . get Place ( this , data ) ; Log .... | @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { super . onActivityResult ( requestCode , resultCode , data ) ; if ( requestCode == REQUEST_CODE_AUTOCOMPLETE ) { if ( resultCode == RESULT_OK ) { Place place = PlaceAutocomplete . getPlace ( this , data ) ; Log . i ( TAG , S... | 257 |
java-test-6525 | java | For what purpose did the code call after the autocomplete activity has finished ? | to return its result | @ Override protected void on Activity Result ( int request Code , int result Code , Intent data ) { super . on Activity Result ( request Code , result Code , data ) ; if ( request Code == REQUEST CODE AUTOCOMPLETE ) { if ( result Code == RESULT OK ) { Place place = Place Autocomplete . get Place ( this , data ) ; Log .... | @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { super . onActivityResult ( requestCode , resultCode , data ) ; if ( requestCode == REQUEST_CODE_AUTOCOMPLETE ) { if ( resultCode == RESULT_OK ) { Place place = PlaceAutocomplete . getPlace ( this , data ) ; Log . i ( TAG , S... | 257 |
java-test-6526 | java | What will this method generate ? | a random data attribute ( length between 0 ( invlusive ) and 16 ( exclusive ) bytes , contents are random bytes ) | public synchronized void send Ignore Packet ( ) throws IO Exception { Secure Random rnd = get Or Create Secure RND ( ) ; byte [ ] data = new byte [ rnd . next Int ( NUM ) ] ; rnd . next Bytes ( data ) ; send Ignore Packet ( data ) ; } | public synchronized void sendIgnorePacket ( ) throws IOException { SecureRandom rnd = getOrCreateSecureRND ( ) ; byte [ ] data = new byte [ rnd . nextInt ( _NUM ) ] ; rnd . nextBytes ( data ) ; sendIgnorePacket ( data ) ; } | 57 |
java-test-6527 | java | When must this method be called only ? | once the connection is established | public synchronized void send Ignore Packet ( ) throws IO Exception { Secure Random rnd = get Or Create Secure RND ( ) ; byte [ ] data = new byte [ rnd . next Int ( NUM ) ] ; rnd . next Bytes ( data ) ; send Ignore Packet ( data ) ; } | public synchronized void sendIgnorePacket ( ) throws IOException { SecureRandom rnd = getOrCreateSecureRND ( ) ; byte [ ] data = new byte [ rnd . nextInt ( _NUM ) ] ; rnd . nextBytes ( data ) ; sendIgnorePacket ( data ) ; } | 57 |
java-test-6528 | java | What does the code send ? | an ssh_msg_ignore packet | public synchronized void send Ignore Packet ( ) throws IO Exception { Secure Random rnd = get Or Create Secure RND ( ) ; byte [ ] data = new byte [ rnd . next Int ( NUM ) ] ; rnd . next Bytes ( data ) ; send Ignore Packet ( data ) ; } | public synchronized void sendIgnorePacket ( ) throws IOException { SecureRandom rnd = getOrCreateSecureRND ( ) ; byte [ ] data = new byte [ rnd . nextInt ( _NUM ) ] ; rnd . nextBytes ( data ) ; sendIgnorePacket ( data ) ; } | 57 |
java-test-6531 | java | What does the code get from a list of entry names ? | a list of description strings | public List < String > compose Description ( List < String > list ) { Linked List < String > ll = new Linked List < String > ( ) ; for ( String entry : list ) { String des = get Description ( entry ) ; if ( des != null ) { ll . add ( des ) ; } } return ll ; } | public List < String > composeDescription ( List < String > list ) { LinkedList < String > ll = new LinkedList < String > ( ) ; for ( String entry : list ) { String des = getDescription ( entry ) ; if ( des != null ) { ll . add ( des ) ; } } return ll ; } | 68 |
java-test-6533 | java | What does the code create ? | a new popupimage | public Popup Image ( final String image , final String title , final String caption ) { put ( Actions . ACTION , Actions . LOOK CLOSELY ) ; this . image = image ; if ( ! image . starts With ( STRING ) && ! image . starts With ( STRING ) ) { this . image = STRING + image ; } this . title = title ; this . caption = capti... | public PopupImage ( final String image , final String title , final String caption ) { put ( Actions . ACTION , Actions . LOOK_CLOSELY ) ; this . image = image ; if ( ! image . startsWith ( STRING ) && ! image . startsWith ( STRING ) ) { this . image = STRING + image ; } this . title = title ; this . caption = caption ... | 78 |
java-test-6534 | java | What does this method change basically ? | visibility of concrete item | private void update Model ( Image image To Update ) { Log . v ( TAG , STRING + image To Update ) ; for ( Image image : m Images List ) { if ( image . equals ( image To Update ) ) { Log . v ( TAG , STRING + image To Update ) ; image . set Visibility ( image To Update . is Visible ( ) ) ; break ; } } int index = m Images... | private void updateModel ( Image imageToUpdate ) { Log . v ( TAG , STRING + imageToUpdate ) ; for ( Image image : mImagesList ) { if ( image . equals ( imageToUpdate ) ) { Log . v ( TAG , STRING + imageToUpdate ) ; image . setVisibility ( imageToUpdate . isVisible ( ) ) ; break ; } } int index = mImagesList . indexOf (... | 160 |
java-test-6535 | java | Till when do we remove leading dot - separated strings instead of a precise comparison incrementally ? | until we find a match | private static boolean str Contains ( Set < String > messages , String message Key ) { String key = message Key ; do { if ( messages . contains ( key ) ) { return BOOL ; } int dot = key . index Of ( STRING ) ; if ( dot < NUM ) return BOOL ; key = key . substring ( dot + NUM ) ; } while ( BOOL ) ; } | private static boolean strContains ( Set < String > messages , String messageKey ) { String key = messageKey ; do { if ( messages . contains ( key ) ) { return _BOOL ; } int dot = key . indexOf ( STRING ) ; if ( dot < _NUM ) return _BOOL ; key = key . substring ( dot + _NUM ) ; } while ( _BOOL ) ; } | 77 |
java-test-6536 | java | What do messages contain ? | " y . z " | private static boolean str Contains ( Set < String > messages , String message Key ) { String key = message Key ; do { if ( messages . contains ( key ) ) { return BOOL ; } int dot = key . index Of ( STRING ) ; if ( dot < NUM ) return BOOL ; key = key . substring ( dot + NUM ) ; } while ( BOOL ) ; } | private static boolean strContains ( Set < String > messages , String messageKey ) { String key = messageKey ; do { if ( messages . contains ( key ) ) { return _BOOL ; } int dot = key . indexOf ( STRING ) ; if ( dot < _NUM ) return _BOOL ; key = key . substring ( dot + _NUM ) ; } while ( _BOOL ) ; } | 77 |
java-test-6537 | java | When do we find a match if messages contains " y . z " and we look for " x . y . z " ? | after removing the first " x | private static boolean str Contains ( Set < String > messages , String message Key ) { String key = message Key ; do { if ( messages . contains ( key ) ) { return BOOL ; } int dot = key . index Of ( STRING ) ; if ( dot < NUM ) return BOOL ; key = key . substring ( dot + NUM ) ; } while ( BOOL ) ; } | private static boolean strContains ( Set < String > messages , String messageKey ) { String key = messageKey ; do { if ( messages . contains ( key ) ) { return _BOOL ; } int dot = key . indexOf ( STRING ) ; if ( dot < _NUM ) return _BOOL ; key = key . substring ( dot + _NUM ) ; } while ( _BOOL ) ; } | 77 |
java-test-6538 | java | What do we remove instead of a precise comparison incrementally until we find a match ? | leading dot - separated strings | private static boolean str Contains ( Set < String > messages , String message Key ) { String key = message Key ; do { if ( messages . contains ( key ) ) { return BOOL ; } int dot = key . index Of ( STRING ) ; if ( dot < NUM ) return BOOL ; key = key . substring ( dot + NUM ) ; } while ( BOOL ) ; } | private static boolean strContains ( Set < String > messages , String messageKey ) { String key = messageKey ; do { if ( messages . contains ( key ) ) { return _BOOL ; } int dot = key . indexOf ( STRING ) ; if ( dot < _NUM ) return _BOOL ; key = key . substring ( dot + _NUM ) ; } while ( _BOOL ) ; } | 77 |
java-test-6539 | java | What does the code add with a timeout dependent on the text length ? | a text box bound to the bottom of the screen | public void add Static Text ( Sprite sprite , int text Length , int priority ) { add Static Sprite ( sprite , Math . max ( Removable Sprite . STANDARD PERSISTENCE TIME , text Length * Removable Sprite . STANDARD PERSISTENCE TIME / NUM ) , priority ) ; } | public void addStaticText ( Sprite sprite , int textLength , int priority ) { addStaticSprite ( sprite , Math . max ( RemovableSprite . STANDARD_PERSISTENCE_TIME , textLength * RemovableSprite . STANDARD_PERSISTENCE_TIME / _NUM ) , priority ) ; } | 51 |
java-test-6540 | java | How does the code add a text box bound to the bottom of the screen ? | with a timeout dependent on the text length | public void add Static Text ( Sprite sprite , int text Length , int priority ) { add Static Sprite ( sprite , Math . max ( Removable Sprite . STANDARD PERSISTENCE TIME , text Length * Removable Sprite . STANDARD PERSISTENCE TIME / NUM ) , priority ) ; } | public void addStaticText ( Sprite sprite , int textLength , int priority ) { addStaticSprite ( sprite , Math . max ( RemovableSprite . STANDARD_PERSISTENCE_TIME , textLength * RemovableSprite . STANDARD_PERSISTENCE_TIME / _NUM ) , priority ) ; } | 51 |
java-test-6541 | java | What does the carrier set how ? | the sms service center | public static long update Smsc Timestamp Drift ( Context context , long timestamp , long smsc Timestamp ) { final int thirty Mins = NUM * NUM * NUM ; long time Drift = NUM ; final long time Diff 30 Mins = Math . round ( ( smsc Timestamp - timestamp ) / thirty Mins ) ; if ( Math . abs ( time Diff 30 Mins ) > NUM ) { tim... | public static long updateSmscTimestampDrift ( Context context , long timestamp , long smscTimestamp ) { final int thirtyMins = _NUM * _NUM * _NUM ; long timeDrift = _NUM ; final long timeDiff30Mins = Math . round ( ( smscTimestamp - timestamp ) / thirtyMins ) ; if ( Math . abs ( timeDiff30Mins ) > _NUM ) { timeDrift = ... | 136 |
java-test-6542 | java | What sets the sms service center how ? | the carrier | public static long update Smsc Timestamp Drift ( Context context , long timestamp , long smsc Timestamp ) { final int thirty Mins = NUM * NUM * NUM ; long time Drift = NUM ; final long time Diff 30 Mins = Math . round ( ( smsc Timestamp - timestamp ) / thirty Mins ) ; if ( Math . abs ( time Diff 30 Mins ) > NUM ) { tim... | public static long updateSmscTimestampDrift ( Context context , long timestamp , long smscTimestamp ) { final int thirtyMins = _NUM * _NUM * _NUM ; long timeDrift = _NUM ; final long timeDiff30Mins = Math . round ( ( smscTimestamp - timestamp ) / thirtyMins ) ; if ( Math . abs ( timeDiff30Mins ) > _NUM ) { timeDrift = ... | 136 |
java-test-6543 | java | What do some devices store ? | a timestamp that is off by several hours | public static long update Smsc Timestamp Drift ( Context context , long timestamp , long smsc Timestamp ) { final int thirty Mins = NUM * NUM * NUM ; long time Drift = NUM ; final long time Diff 30 Mins = Math . round ( ( smsc Timestamp - timestamp ) / thirty Mins ) ; if ( Math . abs ( time Diff 30 Mins ) > NUM ) { tim... | public static long updateSmscTimestampDrift ( Context context , long timestamp , long smscTimestamp ) { final int thirtyMins = _NUM * _NUM * _NUM ; long timeDrift = _NUM ; final long timeDiff30Mins = Math . round ( ( smscTimestamp - timestamp ) / thirtyMins ) ; if ( Math . abs ( timeDiff30Mins ) > _NUM ) { timeDrift = ... | 136 |
java-test-6544 | java | What can this be used later ? | to display the correct timestamp to the user | public static long update Smsc Timestamp Drift ( Context context , long timestamp , long smsc Timestamp ) { final int thirty Mins = NUM * NUM * NUM ; long time Drift = NUM ; final long time Diff 30 Mins = Math . round ( ( smsc Timestamp - timestamp ) / thirty Mins ) ; if ( Math . abs ( time Diff 30 Mins ) > NUM ) { tim... | public static long updateSmscTimestampDrift ( Context context , long timestamp , long smscTimestamp ) { final int thirtyMins = _NUM * _NUM * _NUM ; long timeDrift = _NUM ; final long timeDiff30Mins = Math . round ( ( smscTimestamp - timestamp ) / thirtyMins ) ; if ( Math . abs ( timeDiff30Mins ) > _NUM ) { timeDrift = ... | 136 |
java-test-6554 | java | What contain mixed backing arrays ? | the cg source volumes | private boolean contains Mixed Backing Arrays ( Block Consistency Group cg ) { List < Volume > vplex Volumes = Block Consistency Group Utils . get Active Vplex Volumes In CG ( cg , db Client , Personality Types . SOURCE ) ; if ( vplex Volumes . size ( ) > NUM ) { URI storage System To Compare = get Source Backing Volum... | private boolean containsMixedBackingArrays ( BlockConsistencyGroup cg ) { List < Volume > vplexVolumes = BlockConsistencyGroupUtils . getActiveVplexVolumesInCG ( cg , _dbClient , PersonalityTypes . SOURCE ) ; if ( vplexVolumes . size ( ) > _NUM ) { URI storageSystemToCompare = getSourceBackingVolumeStorageSystem ( vple... | 125 |
java-test-6555 | java | What does the cg source volumes contain ? | mixed backing arrays | private boolean contains Mixed Backing Arrays ( Block Consistency Group cg ) { List < Volume > vplex Volumes = Block Consistency Group Utils . get Active Vplex Volumes In CG ( cg , db Client , Personality Types . SOURCE ) ; if ( vplex Volumes . size ( ) > NUM ) { URI storage System To Compare = get Source Backing Volum... | private boolean containsMixedBackingArrays ( BlockConsistencyGroup cg ) { List < Volume > vplexVolumes = BlockConsistencyGroupUtils . getActiveVplexVolumesInCG ( cg , _dbClient , PersonalityTypes . SOURCE ) ; if ( vplexVolumes . size ( ) > _NUM ) { URI storageSystemToCompare = getSourceBackingVolumeStorageSystem ( vple... | 125 |
java-test-6560 | java | What should this fix ? | some of the " can not download " problems | private String create File Name ( String f Name ) { List < String > forbidden Chars Patterns = new Array List < > ( ) ; forbidden Chars Patterns . add ( STRING ) ; forbidden Chars Patterns . add ( STRING ) ; forbidden Chars Patterns . add ( STRING ) ; String name To Test = f Name ; for ( String pattern : forbidden Char... | private String createFileName ( String fName ) { List < String > forbiddenCharsPatterns = new ArrayList < > ( ) ; forbiddenCharsPatterns . add ( STRING ) ; forbiddenCharsPatterns . add ( STRING ) ; forbiddenCharsPatterns . add ( STRING ) ; String nameToTest = fName ; for ( String pattern : forbiddenCharsPatterns ) { na... | 95 |
java-test-6561 | java | What does the filename not contain ? | illegal chars | private String create File Name ( String f Name ) { List < String > forbidden Chars Patterns = new Array List < > ( ) ; forbidden Chars Patterns . add ( STRING ) ; forbidden Chars Patterns . add ( STRING ) ; forbidden Chars Patterns . add ( STRING ) ; String name To Test = f Name ; for ( String pattern : forbidden Char... | private String createFileName ( String fName ) { List < String > forbiddenCharsPatterns = new ArrayList < > ( ) ; forbiddenCharsPatterns . add ( STRING ) ; forbiddenCharsPatterns . add ( STRING ) ; forbiddenCharsPatterns . add ( STRING ) ; String nameToTest = fName ; for ( String pattern : forbiddenCharsPatterns ) { na... | 95 |
java-test-6563 | java | What does the code choose ? | a jar file which contains the jdbc driver from local file system | private void handle File System Browse ( ) { File Dialog dialog = new File Dialog ( get Shell ( ) ) ; if ( dialog . open ( ) == null ) { return ; } jar File . set Text ( dialog . get Filter Path ( ) + System . get Property ( STRING ) + dialog . get File Name ( ) ) ; load Jdbc Driver ( ) ; } | private void handleFileSystemBrowse ( ) { FileDialog dialog = new FileDialog ( getShell ( ) ) ; if ( dialog . open ( ) == null ) { return ; } jarFile . setText ( dialog . getFilterPath ( ) + System . getProperty ( STRING ) + dialog . getFileName ( ) ) ; loadJdbcDriver ( ) ; } | 75 |
java-test-6564 | java | What does a jar file contain ? | the jdbc driver from local file system | private void handle File System Browse ( ) { File Dialog dialog = new File Dialog ( get Shell ( ) ) ; if ( dialog . open ( ) == null ) { return ; } jar File . set Text ( dialog . get Filter Path ( ) + System . get Property ( STRING ) + dialog . get File Name ( ) ) ; load Jdbc Driver ( ) ; } | private void handleFileSystemBrowse ( ) { FileDialog dialog = new FileDialog ( getShell ( ) ) ; if ( dialog . open ( ) == null ) { return ; } jarFile . setText ( dialog . getFilterPath ( ) + System . getProperty ( STRING ) + dialog . getFileName ( ) ) ; loadJdbcDriver ( ) ; } | 75 |
java-test-6565 | java | Why has this method returned successfully ? | since this method is specified as listener method in the jca container | @ Override public void process Updates ( final Data Tag Value Update data Tag Value Update ) { try { active Update Threads . get And Increment ( ) ; Collection < Source Data Tag Value > values = data Tag Value Update . get Values ( ) ; if ( values != null ) { for ( Source Data Tag Value source Data Tag Value : values )... | @ Override public void processUpdates ( final DataTagValueUpdate dataTagValueUpdate ) { try { activeUpdateThreads . getAndIncrement ( ) ; Collection < SourceDataTagValue > values = dataTagValueUpdate . getValues ( ) ; if ( values != null ) { for ( SourceDataTagValue sourceDataTagValue : values ) { if ( sourceDataTagVal... | 234 |
java-test-6566 | java | Why is the incoming jms message acknowledged only once this method has returned successfully once this method has returned successfully ? | since this method is specified as listener method in the jca container ; | @ Override public void process Updates ( final Data Tag Value Update data Tag Value Update ) { try { active Update Threads . get And Increment ( ) ; Collection < Source Data Tag Value > values = data Tag Value Update . get Values ( ) ; if ( values != null ) { for ( Source Data Tag Value source Data Tag Value : values )... | @ Override public void processUpdates ( final DataTagValueUpdate dataTagValueUpdate ) { try { activeUpdateThreads . getAndIncrement ( ) ; Collection < SourceDataTagValue > values = dataTagValueUpdate . getValues ( ) ; if ( values != null ) { for ( SourceDataTagValue sourceDataTagValue : values ) { if ( sourceDataTagVal... | 234 |
java-test-6567 | java | How is this method specified in the jca container ? | as listener method | @ Override public void process Updates ( final Data Tag Value Update data Tag Value Update ) { try { active Update Threads . get And Increment ( ) ; Collection < Source Data Tag Value > values = data Tag Value Update . get Values ( ) ; if ( values != null ) { for ( Source Data Tag Value source Data Tag Value : values )... | @ Override public void processUpdates ( final DataTagValueUpdate dataTagValueUpdate ) { try { activeUpdateThreads . getAndIncrement ( ) ; Collection < SourceDataTagValue > values = dataTagValueUpdate . getValues ( ) ; if ( values != null ) { for ( SourceDataTagValue sourceDataTagValue : values ) { if ( sourceDataTagVal... | 234 |
java-test-6568 | java | Where is this method specified as listener method ? | in the jca container | @ Override public void process Updates ( final Data Tag Value Update data Tag Value Update ) { try { active Update Threads . get And Increment ( ) ; Collection < Source Data Tag Value > values = data Tag Value Update . get Values ( ) ; if ( values != null ) { for ( Source Data Tag Value source Data Tag Value : values )... | @ Override public void processUpdates ( final DataTagValueUpdate dataTagValueUpdate ) { try { activeUpdateThreads . getAndIncrement ( ) ; Collection < SourceDataTagValue > values = dataTagValueUpdate . getValues ( ) ; if ( values != null ) { for ( SourceDataTagValue sourceDataTagValue : values ) { if ( sourceDataTagVal... | 234 |
java-test-6569 | java | What manages the acknowledgment ? | the transaction manager | @ Override public void process Updates ( final Data Tag Value Update data Tag Value Update ) { try { active Update Threads . get And Increment ( ) ; Collection < Source Data Tag Value > values = data Tag Value Update . get Values ( ) ; if ( values != null ) { for ( Source Data Tag Value source Data Tag Value : values )... | @ Override public void processUpdates ( final DataTagValueUpdate dataTagValueUpdate ) { try { activeUpdateThreads . getAndIncrement ( ) ; Collection < SourceDataTagValue > values = dataTagValueUpdate . getValues ( ) ; if ( values != null ) { for ( SourceDataTagValue sourceDataTagValue : values ) { if ( sourceDataTagVal... | 234 |
java-test-6570 | java | When is the incoming jms message acknowledged only since this method is specified as listener method in the jca container ; ? | once this method has returned successfully | @ Override public void process Updates ( final Data Tag Value Update data Tag Value Update ) { try { active Update Threads . get And Increment ( ) ; Collection < Source Data Tag Value > values = data Tag Value Update . get Values ( ) ; if ( values != null ) { for ( Source Data Tag Value source Data Tag Value : values )... | @ Override public void processUpdates ( final DataTagValueUpdate dataTagValueUpdate ) { try { activeUpdateThreads . getAndIncrement ( ) ; Collection < SourceDataTagValue > values = dataTagValueUpdate . getValues ( ) ; if ( values != null ) { for ( SourceDataTagValue sourceDataTagValue : values ) { if ( sourceDataTagVal... | 234 |
java-test-6571 | java | What did the transaction manager manage ? | the acknowledgment | @ Override public void process Updates ( final Data Tag Value Update data Tag Value Update ) { try { active Update Threads . get And Increment ( ) ; Collection < Source Data Tag Value > values = data Tag Value Update . get Values ( ) ; if ( values != null ) { for ( Source Data Tag Value source Data Tag Value : values )... | @ Override public void processUpdates ( final DataTagValueUpdate dataTagValueUpdate ) { try { activeUpdateThreads . getAndIncrement ( ) ; Collection < SourceDataTagValue > values = dataTagValueUpdate . getValues ( ) ; if ( values != null ) { for ( SourceDataTagValue sourceDataTagValue : values ) { if ( sourceDataTagVal... | 234 |
java-test-6574 | java | What does the code create ? | a new dgeneratingkeypair dialog | public D Generating Key Pair ( J Frame parent , Key Pair Type key Pair Type , int key Size , Provider provider ) { super ( parent , Dialog . Modality Type . DOCUMENT MODAL ) ; this . key Pair Type = key Pair Type ; this . key Size = key Size ; this . provider = provider ; init Components ( ) ; } | public DGeneratingKeyPair ( JFrame parent , KeyPairType keyPairType , int keySize , Provider provider ) { super ( parent , Dialog . ModalityType . DOCUMENT_MODAL ) ; this . keyPairType = keyPairType ; this . keySize = keySize ; this . provider = provider ; initComponents ( ) ; } | 68 |
java-test-6576 | java | For what purpose does keepalive enable ? | to see if data is available | private boolean enable Keepalive ( Poll Controller conn , boolean is New ) throws IO Exception { if ( select Max <= connection Count . get ( ) ) { throw new Illegal State Exception ( this + STRING + connection Count + STRING + select Max ) ; } Jni Socket Impl socket = ( Jni Socket Impl ) conn . get Socket ( ) ; if ( so... | private boolean enableKeepalive ( PollController conn , boolean isNew ) throws IOException { if ( _selectMax <= _connectionCount . get ( ) ) { throw new IllegalStateException ( this + STRING + _connectionCount + STRING + _selectMax ) ; } JniSocketImpl socket = ( JniSocketImpl ) conn . getSocket ( ) ; if ( socket == nul... | 239 |
java-test-6579 | java | What did it save to the users home directory immediately ? | the history | @ Override public void history Changed ( History Changed Event evt ) { load History ( BOOL ) ; m History . set Property ( evt . get History Name ( ) , model To String ( evt . get History ( ) ) ) ; save History ( ) ; } | @ Override public void historyChanged ( HistoryChangedEvent evt ) { loadHistory ( _BOOL ) ; m_History . setProperty ( evt . getHistoryName ( ) , modelToString ( evt . getHistory ( ) ) ) ; saveHistory ( ) ; } | 52 |
java-test-6580 | java | When did this method call ? | when a history is modified | @ Override public void history Changed ( History Changed Event evt ) { load History ( BOOL ) ; m History . set Property ( evt . get History Name ( ) , model To String ( evt . get History ( ) ) ) ; save History ( ) ; } | @ Override public void historyChanged ( HistoryChangedEvent evt ) { loadHistory ( _BOOL ) ; m_History . setProperty ( evt . getHistoryName ( ) , modelToString ( evt . getHistory ( ) ) ) ; saveHistory ( ) ; } | 52 |
java-test-6581 | java | How can the folder be converted to ? | project types | public List < Project Type Resolution > resolve Sources ( String path , boolean transient Only ) throws Server Exception , Not Found Exception { final List < Project Type Resolution > resolutions = new Array List < > ( ) ; for ( Project Type type : project Type Registry . get Project Types ( Project Type Registry . CHI... | public List < ProjectTypeResolution > resolveSources ( String path , boolean transientOnly ) throws ServerException , NotFoundException { final List < ProjectTypeResolution > resolutions = new ArrayList < > ( ) ; for ( ProjectType type : projectTypeRegistry . getProjectTypes ( ProjectTypeRegistry . CHILD_TO_PARENT_COMP... | 151 |
java-test-6582 | java | What will the threads check ? | their " run flags | private void release All Locks ( ) { synchronized ( read notify ) { read notify . notify All ( ) ; } synchronized ( write notify ) { write notify . notify All ( ) ; } synchronized ( state notify ) { state notify . notify All ( ) ; } } | private void releaseAllLocks ( ) { synchronized ( read_notify ) { read_notify . notifyAll ( ) ; } synchronized ( write_notify ) { write_notify . notifyAll ( ) ; } synchronized ( state_notify ) { state_notify . notifyAll ( ) ; } } | 54 |
java-test-6583 | java | What does the code perform ? | a single on - street search | public T Int Int Map build One Distance Table ( int stop ) { int origin Vertex = street Vertex For Stop . get ( stop ) ; if ( origin Vertex == - NUM ) { LOG . warn ( STRING , stop ) ; return null ; } Street Router router = new Street Router ( parent Network . street Layer ) ; router . distance Limit Meters = DISTANCE T... | public TIntIntMap buildOneDistanceTable ( int stop ) { int originVertex = streetVertexForStop . get ( stop ) ; if ( originVertex == - _NUM ) { LOG . warn ( STRING , stop ) ; return null ; } StreetRouter router = new StreetRouter ( parentNetwork . streetLayer ) ; router . distanceLimitMeters = DISTANCE_TABLE_SIZE_METERS... | 117 |
java-test-6584 | java | What does the recursive operator implement ? | getboundidentifiers | private static void inner Get Bound Identifiers ( Vector < Formal Param Node > vec , Expr Node expr ) { if ( expr instanceof Op Appl Node ) { Op Appl Node node = ( Op Appl Node ) expr ; if ( node . get Unbded Quant Symbols ( ) != null ) { for ( int i = NUM ; i < node . get Unbded Quant Symbols ( ) . length ; i ++ ) { v... | private static void innerGetBoundIdentifiers ( Vector < FormalParamNode > vec , ExprNode expr ) { if ( expr instanceof OpApplNode ) { OpApplNode node = ( OpApplNode ) expr ; if ( node . getUnbdedQuantSymbols ( ) != null ) { for ( int i = _NUM ; i < node . getUnbdedQuantSymbols ( ) . length ; i ++ ) { vec . add ( node .... | 397 |
java-test-6585 | java | What implements getboundidentifiers ? | the recursive operator | private static void inner Get Bound Identifiers ( Vector < Formal Param Node > vec , Expr Node expr ) { if ( expr instanceof Op Appl Node ) { Op Appl Node node = ( Op Appl Node ) expr ; if ( node . get Unbded Quant Symbols ( ) != null ) { for ( int i = NUM ; i < node . get Unbded Quant Symbols ( ) . length ; i ++ ) { v... | private static void innerGetBoundIdentifiers ( Vector < FormalParamNode > vec , ExprNode expr ) { if ( expr instanceof OpApplNode ) { OpApplNode node = ( OpApplNode ) expr ; if ( node . getUnbdedQuantSymbols ( ) != null ) { for ( int i = _NUM ; i < node . getUnbdedQuantSymbols ( ) . length ; i ++ ) { vec . add ( node .... | 397 |
java-test-6586 | java | Where did the ones declare ? | in expr | private static void inner Get Bound Identifiers ( Vector < Formal Param Node > vec , Expr Node expr ) { if ( expr instanceof Op Appl Node ) { Op Appl Node node = ( Op Appl Node ) expr ; if ( node . get Unbded Quant Symbols ( ) != null ) { for ( int i = NUM ; i < node . get Unbded Quant Symbols ( ) . length ; i ++ ) { v... | private static void innerGetBoundIdentifiers ( Vector < FormalParamNode > vec , ExprNode expr ) { if ( expr instanceof OpApplNode ) { OpApplNode node = ( OpApplNode ) expr ; if ( node . getUnbdedQuantSymbols ( ) != null ) { for ( int i = _NUM ; i < node . getUnbdedQuantSymbols ( ) . length ; i ++ ) { vec . add ( node .... | 397 |
java-test-6587 | java | What does it add ? | the bound identifiers in expr to those in vec | private static void inner Get Bound Identifiers ( Vector < Formal Param Node > vec , Expr Node expr ) { if ( expr instanceof Op Appl Node ) { Op Appl Node node = ( Op Appl Node ) expr ; if ( node . get Unbded Quant Symbols ( ) != null ) { for ( int i = NUM ; i < node . get Unbded Quant Symbols ( ) . length ; i ++ ) { v... | private static void innerGetBoundIdentifiers ( Vector < FormalParamNode > vec , ExprNode expr ) { if ( expr instanceof OpApplNode ) { OpApplNode node = ( OpApplNode ) expr ; if ( node . getUnbdedQuantSymbols ( ) != null ) { for ( int i = _NUM ; i < node . getUnbdedQuantSymbols ( ) . length ; i ++ ) { vec . add ( node .... | 397 |
java-test-6588 | java | What does this method take ? | an ( empty ) element and a biginteger | public static final void fill Element With Big Integer ( Element element , Big Integer biginteger ) { String encoded Int = encode ( biginteger ) ; if ( ! XML Utils . ignore Line Breaks ( ) && encoded Int . length ( ) > BASE 64 DEFAULTLENGTH ) { encoded Int = STRING + encoded Int + STRING ; } Document doc = element . ge... | public static final void fillElementWithBigInteger ( Element element , BigInteger biginteger ) { String encodedInt = encode ( biginteger ) ; if ( ! XMLUtils . ignoreLineBreaks ( ) && encodedInt . length ( ) > BASE64DEFAULTLENGTH ) { encodedInt = STRING + encodedInt + STRING ; } Document doc = element . getOwnerDocument... | 95 |
java-test-6589 | java | What does this method add to the element ? | the base64 encoded biginteger | public static final void fill Element With Big Integer ( Element element , Big Integer biginteger ) { String encoded Int = encode ( biginteger ) ; if ( ! XML Utils . ignore Line Breaks ( ) && encoded Int . length ( ) > BASE 64 DEFAULTLENGTH ) { encoded Int = STRING + encoded Int + STRING ; } Document doc = element . ge... | public static final void fillElementWithBigInteger ( Element element , BigInteger biginteger ) { String encodedInt = encode ( biginteger ) ; if ( ! XMLUtils . ignoreLineBreaks ( ) && encodedInt . length ( ) > BASE64DEFAULTLENGTH ) { encodedInt = STRING + encodedInt + STRING ; } Document doc = element . getOwnerDocument... | 95 |
java-test-6590 | java | What does the code read ? | the absolute times | public int [ ] read Turn Overflow Absolute ( ) throws IO Exception { String line = br . read Line ( ) ; while ( line != null ) { if ( line . matches ( STRING ) ) { return split Line ( line ) ; } line = br . read Line ( ) ; } return null ; } | public int [ ] readTurnOverflowAbsolute ( ) throws IOException { String line = br . readLine ( ) ; while ( line != null ) { if ( line . matches ( STRING ) ) { return splitLine ( line ) ; } line = br . readLine ( ) ; } return null ; } | 63 |
java-test-6591 | java | Till when will this method block ? | until some input is available | synchronized void receive ( byte b [ ] , int off , int len ) throws IO Exception { check State For Receive ( ) ; write Side = Thread . current Thread ( ) ; int bytes To Transfer = len ; while ( bytes To Transfer > NUM ) { if ( in == out ) await Space ( ) ; int next Transfer Amount = NUM ; if ( out < in ) { next Transfe... | synchronized void receive ( byte b [ ] , int off , int len ) throws IOException { checkStateForReceive ( ) ; writeSide = Thread . currentThread ( ) ; int bytesToTransfer = len ; while ( bytesToTransfer > _NUM ) { if ( in == out ) awaitSpace ( ) ; int nextTransferAmount = _NUM ; if ( out < in ) { nextTransferAmount = bu... | 213 |
java-test-6593 | java | For what purpose does the relevant bits soak then ? | to form a new loggingevent instance which can be used by any log4j element locally | public Logging Event decode ( final String data ) { Document document = parse ( data ) ; if ( document == null ) { return null ; } Vector events = decode Events ( document ) ; if ( events . size ( ) > NUM ) { return ( Logging Event ) events . first Element ( ) ; } return null ; } | public LoggingEvent decode ( final String data ) { Document document = parse ( data ) ; if ( document == null ) { return null ; } Vector events = decodeEvents ( document ) ; if ( events . size ( ) > _NUM ) { return ( LoggingEvent ) events . firstElement ( ) ; } return null ; } | 66 |
java-test-6594 | java | What does the code compute ? | the scale factor to be used when drawing loadings | private double compute Loadings Scale Factor ( double [ ] vector ) { if ( vector . length >= NUM ) { final double length = Math . sqrt ( Geometry . squared Distance ( NUM , NUM , vector [ NUM ] , vector [ NUM ] ) ) ; if ( length > NUM ) { final Rectangle 2 D bbox = graph View . get B Box ( ) ; return NUM * Math . min (... | private double computeLoadingsScaleFactor ( double [ ] vector ) { if ( vector . length >= _NUM ) { final double length = Math . sqrt ( Geometry . squaredDistance ( _NUM , _NUM , vector [ _NUM ] , vector [ _NUM ] ) ) ; if ( length > _NUM ) { final Rectangle2D bbox = graphView . getBBox ( ) ; return _NUM * Math . min ( b... | 105 |
java-test-6595 | java | What had we would attempt if the previous request had a digest authorization and its nonce matches to the current server nonce if the previous request had a digest authorization and its nonce matches to the current server nonce if the previous request had a digest authorization and its nonce matches to the current serv... | the same authentication | private boolean have Previous Digest Authorization And Should Abort ( Request request , String nonce , boolean is Stale ) { final String previous Authorization Header = request . header ( STRING ) ; if ( previous Authorization Header != null && previous Authorization Header . starts With ( STRING ) ) { return ! is Stal... | private boolean havePreviousDigestAuthorizationAndShouldAbort ( Request request , String nonce , boolean isStale ) { final String previousAuthorizationHeader = request . header ( STRING ) ; if ( previousAuthorizationHeader != null && previousAuthorizationHeader . startsWith ( STRING ) ) { return ! isStale ; } return _B... | 63 |
java-test-6596 | java | What do the previous request have ? | a digest authorization and its nonce matches to the current server nonce | private boolean have Previous Digest Authorization And Should Abort ( Request request , String nonce , boolean is Stale ) { final String previous Authorization Header = request . header ( STRING ) ; if ( previous Authorization Header != null && previous Authorization Header . starts With ( STRING ) ) { return ! is Stal... | private boolean havePreviousDigestAuthorizationAndShouldAbort ( Request request , String nonce , boolean isStale ) { final String previousAuthorizationHeader = request . header ( STRING ) ; if ( previousAuthorizationHeader != null && previousAuthorizationHeader . startsWith ( STRING ) ) { return ! isStale ; } return _B... | 63 |
java-test-6597 | java | When would we fail if the previous request had a digest authorization and its nonce matches to the current server nonce if the previous request had a digest authorization and its nonce matches to the current server nonce if the previous request had a digest authorization and its nonce matches to the current server nonc... | again and again | private boolean have Previous Digest Authorization And Should Abort ( Request request , String nonce , boolean is Stale ) { final String previous Authorization Header = request . header ( STRING ) ; if ( previous Authorization Header != null && previous Authorization Header . starts With ( STRING ) ) { return ! is Stal... | private boolean havePreviousDigestAuthorizationAndShouldAbort ( Request request , String nonce , boolean isStale ) { final String previousAuthorizationHeader = request . header ( STRING ) ; if ( previousAuthorizationHeader != null && previousAuthorizationHeader . startsWith ( STRING ) ) { return ! isStale ; } return _B... | 63 |
java-test-6598 | java | What does the code remove ? | a specific settingslistener | public void remove Listener ( On Setting Changed Listener listener ) { synchronized ( m Lock ) { if ( listener == null ) { throw new Illegal Argument Exception ( ) ; } if ( ! m Listeners . contains ( listener ) ) { return ; } int index = m Listeners . index Of ( listener ) ; m Listeners . remove ( listener ) ; On Share... | public void removeListener ( OnSettingChangedListener listener ) { synchronized ( mLock ) { if ( listener == null ) { throw new IllegalArgumentException ( ) ; } if ( ! mListeners . contains ( listener ) ) { return ; } int index = mListeners . indexOf ( listener ) ; mListeners . remove ( listener ) ; OnSharedPreferenceC... | 142 |
java-test-6599 | java | How should this be done if a listener has been set ? | in onpause | public void remove Listener ( On Setting Changed Listener listener ) { synchronized ( m Lock ) { if ( listener == null ) { throw new Illegal Argument Exception ( ) ; } if ( ! m Listeners . contains ( listener ) ) { return ; } int index = m Listeners . index Of ( listener ) ; m Listeners . remove ( listener ) ; On Share... | public void removeListener ( OnSettingChangedListener listener ) { synchronized ( mLock ) { if ( listener == null ) { throw new IllegalArgumentException ( ) ; } if ( ! mListeners . contains ( listener ) ) { return ; } int index = mListeners . indexOf ( listener ) ; mListeners . remove ( listener ) ; OnSharedPreferenceC... | 142 |
java-test-6605 | java | How are superfluous calculations avoided ? | by having the call provide information | public static void covariance Matrix ( Vec mean , Data Set data Set , Matrix covariance , double sum Of Weights , double sum Of Squared Weights ) { if ( ! covariance . is Square ( ) ) throw new Arithmetic Exception ( STRING ) ; else if ( covariance . rows ( ) != mean . length ( ) ) throw new Arithmetic Exception ( STRI... | public static void covarianceMatrix ( Vec mean , DataSet dataSet , Matrix covariance , double sumOfWeights , double sumOfSquaredWeights ) { if ( ! covariance . isSquare ( ) ) throw new ArithmeticException ( STRING ) ; else if ( covariance . rows ( ) != mean . length ( ) ) throw new ArithmeticException ( STRING ) ; else... | 246 |
java-test-6606 | java | What does the code remove from the list ? | the selected engineers in the table | @ Suppress Warnings ( STRING ) protected void remove Selected Engineers ( ) { I Selection selection = engineers Table . get Selection ( ) ; if ( ! ( selection instanceof I Structured Selection ) ) { return ; } I Structured Selection structured Selection = ( I Structured Selection ) selection ; Iterator < String > itera... | @ SuppressWarnings ( STRING ) protected void removeSelectedEngineers ( ) { ISelection selection = engineersTable . getSelection ( ) ; if ( ! ( selection instanceof IStructuredSelection ) ) { return ; } IStructuredSelection structuredSelection = ( IStructuredSelection ) selection ; Iterator < String > iterator = structu... | 115 |
java-test-6607 | java | What does the code create ? | a new countermovingaverage | public Counter Time Deadband Activator ( final int number Of Counters , final long check Interval , final int max Tags Per Time , final int deactivation Number Of Tags , final int time Deadband Time ) { this . number Of Counters = number Of Counters ; this . max Tags Per Time = max Tags Per Time ; this . deactivation N... | public CounterTimeDeadbandActivator ( final int numberOfCounters , final long checkInterval , final int maxTagsPerTime , final int deactivationNumberOfTags , final int timeDeadbandTime ) { this . numberOfCounters = numberOfCounters ; this . maxTagsPerTime = maxTagsPerTime ; this . deactivationNumberOfTags = deactivatio... | 108 |
java-test-6608 | java | What does the code show ? | the world axis | private void draw Mouse World Axis ( ) { Vector 3 v = cursor World Position ; if ( ! Float . is Na N ( v . x + v . y + v . z ) ) { shape Renderer . begin ( ) ; shape Renderer . line ( v . x , v . y , v . z , v . x + NUM , v . y , v . z , Color . RED , Color . RED ) ; shape Renderer . line ( v . x , v . y , v . z , v . ... | private void drawMouseWorldAxis ( ) { Vector3 v = cursorWorldPosition ; if ( ! Float . isNaN ( v . x + v . y + v . z ) ) { shapeRenderer . begin ( ) ; shapeRenderer . line ( v . x , v . y , v . z , v . x + _NUM , v . y , v . z , Color . RED , Color . RED ) ; shapeRenderer . line ( v . x , v . y , v . z , v . x , v . y ... | 176 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.