id stringlengths 11 16 | language stringclasses 2
values | question stringlengths 13 844 | answer stringlengths 1 900 | code stringlengths 162 27.4k | code_original stringlengths 162 26k | code_word_count int64 51 5.96k |
|---|---|---|---|---|---|---|
java-test-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 |
java-test-6609 | java | What does the code draw showing the world axis ? | a kind of compass | 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 |
java-test-6610 | java | When be action taken ? | when a key is pressed ( shortcut ) | public State Interactive key typed ( char p key char ) { State Interactive curr return state = this ; if ( Character . is Digit ( p key char ) ) { Brd Layer Structure layer structure = r brd . layer structure ; int digit = Character . digit ( p key char , NUM ) ; digit = Math . min ( digit , layer structure . signal la... | public StateInteractive key_typed ( char p_key_char ) { StateInteractive curr_return_state = this ; if ( Character . isDigit ( p_key_char ) ) { BrdLayerStructure layer_structure = r_brd . layer_structure ; int digit = Character . digit ( p_key_char , _NUM ) ; digit = Math . min ( digit , layer_structure . signal_layer_... | 350 |
java-test-6611 | java | What do listeners notify ? | to allow user input | public void notify Unlock Input ( ) { if ( locked ) { synchronized ( director Listeners ) { I Director Listener [ ] listeners = director Listeners . to Array ( new I Director Listener [ director Listeners . size ( ) ] ) ; for ( I Director Listener director Listener : listeners ) { if ( director Listener != this ) direc... | public void notifyUnlockInput ( ) { if ( locked ) { synchronized ( directorListeners ) { IDirectorListener [ ] listeners = directorListeners . toArray ( new IDirectorListener [ directorListeners . size ( ) ] ) ; for ( IDirectorListener directorListener : listeners ) { if ( directorListener != this ) directorListener . ... | 81 |
java-test-6612 | java | What does the code get ? | switch ' s wwn | public String show Switch Wwn ( ) throws Network Device Controller Exception { SSH Prompt [ ] prompts = { SSH Prompt . POUND , SSH Prompt . GREATER THAN , SSH Prompt . MDS CONFIG , SSH Prompt . MDS CONFIG IVR ZONE , SSH Prompt . MDS CONFIG IVR ZONESET } ; String Builder buf = new String Builder ( ) ; send Wait For ( MD... | public String showSwitchWwn ( ) throws NetworkDeviceControllerException { SSHPrompt [ ] prompts = { SSHPrompt . POUND , SSHPrompt . GREATER_THAN , SSHPrompt . MDS_CONFIG , SSHPrompt . MDS_CONFIG_IVR_ZONE , SSHPrompt . MDS_CONFIG_IVR_ZONESET } ; StringBuilder buf = new StringBuilder ( ) ; sendWaitFor ( MDSDialogProperti... | 187 |
java-test-6616 | java | What does the destination have ? | support for fragment shaders | @ Override boolean is Paint Valid ( Sun Graphics 2 D sg 2 d ) { Multiple Gradient Paint paint = ( Multiple Gradient Paint ) sg 2 d . paint ; if ( paint . get Fractions ( ) . length > MULTI MAX FRACTIONS ) { return BOOL ; } OGL Surface Data dst Data = ( OGL Surface Data ) sg 2 d . surface Data ; OGL Graphics Config gc =... | @ Override boolean isPaintValid ( SunGraphics2D sg2d ) { MultipleGradientPaint paint = ( MultipleGradientPaint ) sg2d . paint ; if ( paint . getFractions ( ) . length > MULTI_MAX_FRACTIONS ) { return _BOOL ; } OGLSurfaceData dstData = ( OGLSurfaceData ) sg2d . surfaceData ; OGLGraphicsConfig gc = dstData . getOGLGraphi... | 109 |
java-test-6617 | java | What does this be ? | to force compliance with the tree class , which interprets all non - quoted strings as nonterminals | private String quote Terminals ( String words ) { String Builder quoted Words = new String Builder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . starts With ( STRING ) && word . ends With ( STRING ) ) quoted Words . append ( String . format ( STRING , word ) ) ; else quoted Words . append ( String . ... | private String quoteTerminals ( String words ) { StringBuilder quotedWords = new StringBuilder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . startsWith ( STRING ) && word . endsWith ( STRING ) ) quotedWords . append ( String . format ( STRING , word ) ) ; else quotedWords . append ( String . format (... | 100 |
java-test-6618 | java | What does the tree class interpret as nonterminals ? | all non - quoted strings | private String quote Terminals ( String words ) { String Builder quoted Words = new String Builder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . starts With ( STRING ) && word . ends With ( STRING ) ) quoted Words . append ( String . format ( STRING , word ) ) ; else quoted Words . append ( String . ... | private String quoteTerminals ( String words ) { StringBuilder quotedWords = new StringBuilder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . startsWith ( STRING ) && word . endsWith ( STRING ) ) quotedWords . append ( String . format ( STRING , word ) ) ; else quotedWords . append ( String . format (... | 100 |
java-test-6619 | java | What interprets all non - quoted strings as nonterminals ? | the tree class | private String quote Terminals ( String words ) { String Builder quoted Words = new String Builder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . starts With ( STRING ) && word . ends With ( STRING ) ) quoted Words . append ( String . format ( STRING , word ) ) ; else quoted Words . append ( String . ... | private String quoteTerminals ( String words ) { StringBuilder quotedWords = new StringBuilder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . startsWith ( STRING ) && word . endsWith ( STRING ) ) quotedWords . append ( String . format ( STRING , word ) ) ; else quotedWords . append ( String . format (... | 100 |
java-test-6620 | java | What does the code remove except for this year and previous year rationale ? | categories that contain a year in them ( starting with 19 | private Array List < String > filter Years ( Array List < String > items ) { Iterator < String > iterator ; Calendar now = Calendar . get Instance ( ) ; int year = now . get ( Calendar . YEAR ) ; String year In String = String . value Of ( year ) ; Log . d ( TAG , STRING + year In String ) ; int prev Year = year - NUM ... | private ArrayList < String > filterYears ( ArrayList < String > items ) { Iterator < String > iterator ; Calendar now = Calendar . getInstance ( ) ; int year = now . get ( Calendar . YEAR ) ; String yearInString = String . valueOf ( year ) ; Log . d ( TAG , STRING + yearInString ) ; int prevYear = year - _NUM ; String ... | 206 |
java-test-6623 | java | What does the code run resetting the text output and graph output ? | the regression | private void run Regression ( ) { runner . execute ( ) ; Graph graph = runner . get Out Graph ( ) ; Graph Utils . circle Layout ( graph , NUM , NUM , NUM ) ; Graph Utils . fruchterman Reingold Layout ( graph ) ; workbench . set Graph ( graph ) ; Regression Result report = runner . get Result ( ) ; report Text . set Tex... | private void runRegression ( ) { runner . execute ( ) ; Graph graph = runner . getOutGraph ( ) ; GraphUtils . circleLayout ( graph , _NUM , _NUM , _NUM ) ; GraphUtils . fruchtermanReingoldLayout ( graph ) ; workbench . setGraph ( graph ) ; RegressionResult report = runner . getResult ( ) ; reportText . setText ( report... | 151 |
java-test-6624 | java | What does the code reset ? | the text output and graph output | private void run Regression ( ) { runner . execute ( ) ; Graph graph = runner . get Out Graph ( ) ; Graph Utils . circle Layout ( graph , NUM , NUM , NUM ) ; Graph Utils . fruchterman Reingold Layout ( graph ) ; workbench . set Graph ( graph ) ; Regression Result report = runner . get Result ( ) ; report Text . set Tex... | private void runRegression ( ) { runner . execute ( ) ; Graph graph = runner . getOutGraph ( ) ; GraphUtils . circleLayout ( graph , _NUM , _NUM , _NUM ) ; GraphUtils . fruchtermanReingoldLayout ( graph ) ; workbench . setGraph ( graph ) ; RegressionResult report = runner . getResult ( ) ; reportText . setText ( report... | 151 |
java-test-6626 | java | For what purpose do two datasets compare ? | to see if they differ | protected void compare Datasets ( Instances data 1 , Instances data 2 ) throws Exception { if ( ! data 2 . equal Headers ( data 1 ) ) { throw new Exception ( STRING + data 2 . equal Headers Msg ( data 1 ) ) ; } if ( ! ( data 2 . num Instances ( ) == data 1 . num Instances ( ) ) ) { throw new Exception ( STRING ) ; } fo... | protected void compareDatasets ( Instances data1 , Instances data2 ) throws Exception { if ( ! data2 . equalHeaders ( data1 ) ) { throw new Exception ( STRING + data2 . equalHeadersMsg ( data1 ) ) ; } if ( ! ( data2 . numInstances ( ) == data1 . numInstances ( ) ) ) { throw new Exception ( STRING ) ; } for ( int i = _N... | 226 |
java-test-6627 | java | What does the code make ? | the full status based on the current data | private String make Full Status ( ) { if ( online ) { String full Status = status ; if ( status == null || status . is Empty ( ) ) { full Status = STRING ; } if ( game != null && ! game . is Empty ( ) ) { full Status += STRING + game + STRING ; } return full Status ; } else if ( ! update Succeeded ) { return STRING ; }... | private String makeFullStatus ( ) { if ( online ) { String fullStatus = status ; if ( status == null || status . isEmpty ( ) ) { fullStatus = STRING ; } if ( game != null && ! game . isEmpty ( ) ) { fullStatus += STRING + game + STRING ; } return fullStatus ; } else if ( ! updateSucceeded ) { return STRING ; } else { r... | 88 |
java-test-6630 | java | How do it store ? | as a point | public synchronized Task Stats mark Task Start ( Perf Task task , int round ) { Task Stats stats = new Task Stats ( task , next Task Run Num ( ) , round ) ; this . current Stats = stats ; points . add ( stats ) ; return stats ; } | public synchronized TaskStats markTaskStart ( PerfTask task , int round ) { TaskStats stats = new TaskStats ( task , nextTaskRunNum ( ) , round ) ; this . currentStats = stats ; points . add ( stats ) ; return stats ; } | 54 |
java-test-6633 | java | What does the code create ? | a snapshot of the volume | public Scale IO Snapshot Volume Response snapshot Volume ( String vol Id , String snapshot Name , String system Id ) throws Exception { String uri = Scale IO Constants . get Snapshot Volumes URI ( system Id ) ; Scale IO Snapshot Volumes sp Vol = new Scale IO Snapshot Volumes ( ) ; sp Vol . add Snapshot ( vol Id , snaps... | public ScaleIOSnapshotVolumeResponse snapshotVolume ( String volId , String snapshotName , String systemId ) throws Exception { String uri = ScaleIOConstants . getSnapshotVolumesURI ( systemId ) ; ScaleIOSnapshotVolumes spVol = new ScaleIOSnapshotVolumes ( ) ; spVol . addSnapshot ( volId , snapshotName ) ; ClientRespon... | 108 |
java-test-6635 | java | What does the code increment also for each node ? | the successor value | public void add Word ( String a Word ) { Key Value Node < String , Integer > parent = root ; for ( int i = NUM ; i < a Word . length ( ) ; i ++ ) { String subword = a Word . substring ( NUM , i + NUM ) ; Key Value Node < String , Integer > child = parent . get Child ( subword ) ; if ( child != null ) { if ( ! subword .... | public void addWord ( String aWord ) { KeyValueNode < String , Integer > parent = root ; for ( int i = _NUM ; i < aWord . length ( ) ; i ++ ) { String subword = aWord . substring ( _NUM , i + _NUM ) ; KeyValueNode < String , Integer > child = parent . getChild ( subword ) ; if ( child != null ) { if ( ! subword . equal... | 166 |
java-test-6636 | java | Where does the code increment the successor value also ? | for each node | public void add Word ( String a Word ) { Key Value Node < String , Integer > parent = root ; for ( int i = NUM ; i < a Word . length ( ) ; i ++ ) { String subword = a Word . substring ( NUM , i + NUM ) ; Key Value Node < String , Integer > child = parent . get Child ( subword ) ; if ( child != null ) { if ( ! subword .... | public void addWord ( String aWord ) { KeyValueNode < String , Integer > parent = root ; for ( int i = _NUM ; i < aWord . length ( ) ; i ++ ) { String subword = aWord . substring ( _NUM , i + _NUM ) ; KeyValueNode < String , Integer > child = parent . getChild ( subword ) ; if ( child != null ) { if ( ! subword . equal... | 166 |
java-test-6637 | java | What do callers read ? | output values | public void run ( ) { stdout = STRING ; stderr = STRING ; exit Value = - NUM ; error = null ; timedout = BOOL ; succeeded = BOOL ; try { Process Builder pb = new Process Builder ( commands ) ; Map < String , String > local Env = pb . environment ( ) ; for ( String key : env . key Set ( ) ) { local Env . put ( key , env... | public void run ( ) { stdout = STRING ; stderr = STRING ; exitValue = - _NUM ; error = null ; timedout = _BOOL ; succeeded = _BOOL ; try { ProcessBuilder pb = new ProcessBuilder ( commands ) ; Map < String , String > localEnv = pb . environment ( ) ; for ( String key : env . keySet ( ) ) { localEnv . put ( key , env . ... | 264 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.