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-7134 | java | What does it read ? | the magic number and version number | protected void read Stream Header ( ) throws IO Exception , Stream Corrupted Exception { short s0 = bin . read Short ( ) ; short s1 = bin . read Short ( ) ; if ( s0 != STREAM MAGIC || s1 != STREAM VERSION ) { throw new Stream Corrupted Exception ( String . format ( STRING , s0 , s1 ) ) ; } } | protected void readStreamHeader ( ) throws IOException , StreamCorruptedException { short s0 = bin . readShort ( ) ; short s1 = bin . readShort ( ) ; if ( s0 != STREAM_MAGIC || s1 != STREAM_VERSION ) { throw new StreamCorruptedException ( String . format ( STRING , s0 , s1 ) ) ; } } | 68 |
java-test-7138 | java | What does the code compress to the file ? | the content of the local storage data folder | public void zip Storage Data ( Local Storage Data local Storage Data , String zip File Name ) throws Business Exception , IO Exception { if ( ! local Storage Data . is Fully Downloaded ( ) ) { throw new Business Exception ( STRING + local Storage Data + STRING , Storage Error Code Enum . STORAGE IS NOT DOWNLOADED ) ; }... | public void zipStorageData ( LocalStorageData localStorageData , String zipFileName ) throws BusinessException , IOException { if ( ! localStorageData . isFullyDownloaded ( ) ) { throw new BusinessException ( STRING + localStorageData + STRING , StorageErrorCodeEnum . STORAGE_IS_NOT_DOWNLOADED ) ; } else { Path zipPath... | 139 |
java-test-7139 | java | How is file name provided ? | via given path | public void zip Storage Data ( Local Storage Data local Storage Data , String zip File Name ) throws Business Exception , IO Exception { if ( ! local Storage Data . is Fully Downloaded ( ) ) { throw new Business Exception ( STRING + local Storage Data + STRING , Storage Error Code Enum . STORAGE IS NOT DOWNLOADED ) ; }... | public void zipStorageData ( LocalStorageData localStorageData , String zipFileName ) throws BusinessException , IOException { if ( ! localStorageData . isFullyDownloaded ( ) ) { throw new BusinessException ( STRING + localStorageData + STRING , StorageErrorCodeEnum . STORAGE_IS_NOT_DOWNLOADED ) ; } else { Path zipPath... | 139 |
java-test-7142 | java | What should this check right now ? | whether it actually belongs to this mixer | final boolean is Source Line ( Line . Info info ) { for ( int i = NUM ; i < source Line Info . length ; i ++ ) { if ( info . matches ( source Line Info [ i ] ) ) { return BOOL ; } } return BOOL ; } | final boolean isSourceLine ( Line . Info info ) { for ( int i = _NUM ; i < sourceLineInfo . length ; i ++ ) { if ( info . matches ( sourceLineInfo [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 55 |
java-test-7143 | java | What does this check just right now ? | whether it ' s supported | final boolean is Source Line ( Line . Info info ) { for ( int i = NUM ; i < source Line Info . length ; i ++ ) { if ( info . matches ( source Line Info [ i ] ) ) { return BOOL ; } } return BOOL ; } | final boolean isSourceLine ( Line . Info info ) { for ( int i = _NUM ; i < sourceLineInfo . length ; i ++ ) { if ( info . matches ( sourceLineInfo [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 55 |
java-test-7144 | java | What does the code extract ? | the disconnected components | public < V extends Vertex > List < Set < V > > components ( Graph graph ) { Adjacency Matrix < V > y = new Adjacency Matrix < V > ( graph ) ; List < T Int Array List > comps = extract Components ( y ) ; List < Set < V > > components = new Array List < Set < V > > ( comps . size ( ) ) ; for ( T Int Array List comp : com... | public < V extends Vertex > List < Set < V > > components ( Graph graph ) { AdjacencyMatrix < V > y = new AdjacencyMatrix < V > ( graph ) ; List < TIntArrayList > comps = extractComponents ( y ) ; List < Set < V > > components = new ArrayList < Set < V > > ( comps . size ( ) ) ; for ( TIntArrayList comp : comps ) { Set... | 153 |
java-test-7145 | java | What does the code use the meta class ? | to get a meta method for a method call | public void choose Meta ( Meta Class Impl mci ) { if ( mci == null ) return ; Object receiver = get Corrected Receiver ( ) ; Object [ ] new Args = remove Real Receiver ( args ) ; if ( receiver instanceof Class ) { if ( LOG ENABLED ) LOG . info ( STRING ) ; if ( ! mci . has Custom Static Invoke Method ( ) ) method = mci... | public void chooseMeta ( MetaClassImpl mci ) { if ( mci == null ) return ; Object receiver = getCorrectedReceiver ( ) ; Object [ ] newArgs = removeRealReceiver ( args ) ; if ( receiver instanceof Class ) { if ( LOG_ENABLED ) LOG . info ( STRING ) ; if ( ! mci . hasCustomStaticInvokeMethod ( ) ) method = mci . retrieveS... | 167 |
java-test-7146 | java | What does the code use to get a meta method for a method call ? | the meta class | public void choose Meta ( Meta Class Impl mci ) { if ( mci == null ) return ; Object receiver = get Corrected Receiver ( ) ; Object [ ] new Args = remove Real Receiver ( args ) ; if ( receiver instanceof Class ) { if ( LOG ENABLED ) LOG . info ( STRING ) ; if ( ! mci . has Custom Static Invoke Method ( ) ) method = mci... | public void chooseMeta ( MetaClassImpl mci ) { if ( mci == null ) return ; Object receiver = getCorrectedReceiver ( ) ; Object [ ] newArgs = removeRealReceiver ( args ) ; if ( receiver instanceof Class ) { if ( LOG_ENABLED ) LOG . info ( STRING ) ; if ( ! mci . hasCustomStaticInvokeMethod ( ) ) method = mci . retrieveS... | 167 |
java-test-7147 | java | What do internal utility function create ? | a snap candidate on the fly | private static Snap Candidate create Snap Candidate ( Constraint Widget widget , Constraint Anchor . Type type , int x , int y ) { Snap Candidate candidate = new Snap Candidate ( ) ; candidate . source = widget . get Anchor ( type ) ; Constraint Widget owner = widget . get Parent ( ) ; Constraint Anchor anchor = new Co... | private static SnapCandidate createSnapCandidate ( ConstraintWidget widget , ConstraintAnchor . Type type , int x , int y ) { SnapCandidate candidate = new SnapCandidate ( ) ; candidate . source = widget . getAnchor ( type ) ; ConstraintWidget owner = widget . getParent ( ) ; ConstraintAnchor anchor = new ConstraintAnc... | 93 |
java-test-7148 | java | What creates a snap candidate on the fly ? | internal utility function | private static Snap Candidate create Snap Candidate ( Constraint Widget widget , Constraint Anchor . Type type , int x , int y ) { Snap Candidate candidate = new Snap Candidate ( ) ; candidate . source = widget . get Anchor ( type ) ; Constraint Widget owner = widget . get Parent ( ) ; Constraint Anchor anchor = new Co... | private static SnapCandidate createSnapCandidate ( ConstraintWidget widget , ConstraintAnchor . Type type , int x , int y ) { SnapCandidate candidate = new SnapCandidate ( ) ; candidate . source = widget . getAnchor ( type ) ; ConstraintWidget owner = widget . getParent ( ) ; ConstraintAnchor anchor = new ConstraintAnc... | 93 |
java-test-7149 | java | What does which mean ? | adding the # in front if necessary ) | public static String to Channel ( String chan ) { if ( chan == null ) { return null ; } if ( ! validate Channel ( chan ) ) { return String Util . to Lower Case ( chan ) ; } if ( ! chan . starts With ( STRING ) ) { chan = STRING + chan ; } return String Util . to Lower Case ( chan ) ; } | public static String toChannel ( String chan ) { if ( chan == null ) { return null ; } if ( ! validateChannel ( chan ) ) { return StringUtil . toLowerCase ( chan ) ; } if ( ! chan . startsWith ( STRING ) ) { chan = STRING + chan ; } return StringUtil . toLowerCase ( chan ) ; } | 74 |
java-test-7150 | java | How does it return the input otherwise otherwise ? | in all lowercase | public static String to Channel ( String chan ) { if ( chan == null ) { return null ; } if ( ! validate Channel ( chan ) ) { return String Util . to Lower Case ( chan ) ; } if ( ! chan . starts With ( STRING ) ) { chan = STRING + chan ; } return String Util . to Lower Case ( chan ) ; } | public static String toChannel ( String chan ) { if ( chan == null ) { return null ; } if ( ! validateChannel ( chan ) ) { return StringUtil . toLowerCase ( chan ) ; } if ( ! chan . startsWith ( STRING ) ) { chan = STRING + chan ; } return StringUtil . toLowerCase ( chan ) ; } | 74 |
java-test-7151 | java | What does this test compare with the actual pdf stochastically ? | the coded pdf | static double mypdf ( double value , double shape , double scale ) { return Math . exp ( ( shape - NUM ) * Math . log ( value ) - value / scale - Gamma Function . log Gamma ( shape ) - shape * Math . log ( scale ) ) ; } | static double mypdf ( double value , double shape , double scale ) { return Math . exp ( ( shape - _NUM ) * Math . log ( value ) - value / scale - GammaFunction . logGamma ( shape ) - shape * Math . log ( scale ) ) ; } | 56 |
java-test-7152 | java | What does this test draw stochastically ? | gamma variates | static double mypdf ( double value , double shape , double scale ) { return Math . exp ( ( shape - NUM ) * Math . log ( value ) - value / scale - Gamma Function . log Gamma ( shape ) - shape * Math . log ( scale ) ) ; } | static double mypdf ( double value , double shape , double scale ) { return Math . exp ( ( shape - _NUM ) * Math . log ( value ) - value / scale - GammaFunction . logGamma ( shape ) - shape * Math . log ( scale ) ) ; } | 56 |
java-test-7153 | java | For what purpose does the hashcode return ? | for this stroke | public int hash Code ( ) { int hash = Float . float To Int Bits ( width ) ; hash = hash * NUM + join ; hash = hash * NUM + cap ; hash = hash * NUM + Float . float To Int Bits ( miterlimit ) ; if ( dash != null ) { hash = hash * NUM + Float . float To Int Bits ( dash phase ) ; for ( int i = NUM ; i < dash . length ; i +... | public int hashCode ( ) { int hash = Float . floatToIntBits ( width ) ; hash = hash * _NUM + join ; hash = hash * _NUM + cap ; hash = hash * _NUM + Float . floatToIntBits ( miterlimit ) ; if ( dash != null ) { hash = hash * _NUM + Float . floatToIntBits ( dash_phase ) ; for ( int i = _NUM ; i < dash . length ; i ++ ) {... | 118 |
java-test-7154 | java | What does the code load ? | the next screen ( next challenge or the finish screen | private void load Next Screen ( ) { if ( m Challenge No == m All Due Challenges . size ( ) - NUM ) { load Finish Screen ( ) ; return ; } m Challenge No += NUM ; m Current Challenge = m Challenge Data Source . get By Id ( m All Due Challenges . get ( m Challenge No ) ) ; Object Animator animation = Object Animator . of ... | private void loadNextScreen ( ) { if ( mChallengeNo == mAllDueChallenges . size ( ) - _NUM ) { loadFinishScreen ( ) ; return ; } mChallengeNo += _NUM ; mCurrentChallenge = mChallengeDataSource . getById ( mAllDueChallenges . get ( mChallengeNo ) ) ; ObjectAnimator animation = ObjectAnimator . ofInt ( mProgress , STRING... | 154 |
java-test-7158 | java | What does the code convert to indices in the sorted model ? | an array of unsorted model selection indices | public int [ ] to Sorted Model Indices ( int [ ] unsorted Model Indices ) { int [ ] sorted Model Indices = new int [ unsorted Model Indices . length ] ; int x = NUM ; for ( int unsorted Index : unsorted Model Indices ) { sorted Model Indices [ x ++ ] = to Sorted Model Index ( unsorted Index ) ; } Arrays . sort ( sorted... | public int [ ] toSortedModelIndices ( int [ ] unsortedModelIndices ) { int [ ] sortedModelIndices = new int [ unsortedModelIndices . length ] ; int x = _NUM ; for ( int unsortedIndex : unsortedModelIndices ) { sortedModelIndices [ x ++ ] = toSortedModelIndex ( unsortedIndex ) ; } Arrays . sort ( sortedModelIndices ) ; ... | 83 |
java-test-7159 | java | For what purpose does the code sort the model indices from low to high ? | to duplicate jlist ' s getselectedindices method | public int [ ] to Sorted Model Indices ( int [ ] unsorted Model Indices ) { int [ ] sorted Model Indices = new int [ unsorted Model Indices . length ] ; int x = NUM ; for ( int unsorted Index : unsorted Model Indices ) { sorted Model Indices [ x ++ ] = to Sorted Model Index ( unsorted Index ) ; } Arrays . sort ( sorted... | public int [ ] toSortedModelIndices ( int [ ] unsortedModelIndices ) { int [ ] sortedModelIndices = new int [ unsortedModelIndices . length ] ; int x = _NUM ; for ( int unsortedIndex : unsortedModelIndices ) { sortedModelIndices [ x ++ ] = toSortedModelIndex ( unsortedIndex ) ; } Arrays . sort ( sortedModelIndices ) ; ... | 83 |
java-test-7160 | java | What does the code sort from low to high to duplicate jlist ' s getselectedindices method ? | the model indices | public int [ ] to Sorted Model Indices ( int [ ] unsorted Model Indices ) { int [ ] sorted Model Indices = new int [ unsorted Model Indices . length ] ; int x = NUM ; for ( int unsorted Index : unsorted Model Indices ) { sorted Model Indices [ x ++ ] = to Sorted Model Index ( unsorted Index ) ; } Arrays . sort ( sorted... | public int [ ] toSortedModelIndices ( int [ ] unsortedModelIndices ) { int [ ] sortedModelIndices = new int [ unsortedModelIndices . length ] ; int x = _NUM ; for ( int unsortedIndex : unsortedModelIndices ) { sortedModelIndices [ x ++ ] = toSortedModelIndex ( unsortedIndex ) ; } Arrays . sort ( sortedModelIndices ) ; ... | 83 |
java-test-7161 | java | What does the previous node replace ? | the new element node | public void put Identifier ( String id Name , Element element ) { if ( element == null ) { remove Identifier ( id Name ) ; return ; } if ( needs Sync Data ( ) ) { synchronize Data ( ) ; } if ( identifiers == null ) { identifiers = new Hashtable ( ) ; } identifiers . put ( id Name , element ) ; } | public void putIdentifier ( String idName , Element element ) { if ( element == null ) { removeIdentifier ( idName ) ; return ; } if ( needsSyncData ( ) ) { synchronizeData ( ) ; } if ( identifiers == null ) { identifiers = new Hashtable ( ) ; } identifiers . put ( idName , element ) ; } | 71 |
java-test-7162 | java | What replaces the new element node ? | the previous node | public void put Identifier ( String id Name , Element element ) { if ( element == null ) { remove Identifier ( id Name ) ; return ; } if ( needs Sync Data ( ) ) { synchronize Data ( ) ; } if ( identifiers == null ) { identifiers = new Hashtable ( ) ; } identifiers . put ( id Name , element ) ; } | public void putIdentifier ( String idName , Element element ) { if ( element == null ) { removeIdentifier ( idName ) ; return ; } if ( needsSyncData ( ) ) { synchronizeData ( ) ; } if ( identifiers == null ) { identifiers = new Hashtable ( ) ; } identifiers . put ( idName , element ) ; } | 71 |
java-test-7163 | java | What does the code skip ? | a number of characters in a reader | public static void skip Fully ( Reader reader , long skip ) throws IO Exception { try { while ( skip > NUM ) { long skipped = reader . skip ( skip ) ; if ( skipped <= NUM ) { throw new EOF Exception ( ) ; } skip -= skipped ; } } catch ( Exception e ) { throw Db Exception . convert To IO Exception ( e ) ; } } | public static void skipFully ( Reader reader , long skip ) throws IOException { try { while ( skip > _NUM ) { long skipped = reader . skip ( skip ) ; if ( skipped <= _NUM ) { throw new EOFException ( ) ; } skip -= skipped ; } } catch ( Exception e ) { throw DbException . convertToIOException ( e ) ; } } | 76 |
java-test-7164 | java | When did the code call ? | when trying to discharge items | public void discharge Item ( Item Stack a Stack ) { increase Stored Energy Units ( GT Mod Handler . discharge Electric Item ( a Stack , ( int ) Math . min ( Integer . MAX VALUE , get EU Capacity ( ) - get Stored EU ( ) ) , ( int ) Math . min ( Integer . MAX VALUE , m Meta Tile Entity . get Input Tier ( ) ) , BOOL , BOO... | public void dischargeItem ( ItemStack aStack ) { increaseStoredEnergyUnits ( GT_ModHandler . dischargeElectricItem ( aStack , ( int ) Math . min ( Integer . MAX_VALUE , getEUCapacity ( ) - getStoredEU ( ) ) , ( int ) Math . min ( Integer . MAX_VALUE , mMetaTileEntity . getInputTier ( ) ) , _BOOL , _BOOL , _BOOL ) , _BO... | 87 |
java-test-7165 | java | What does the code escape ? | some special character | public static String escape Character To Display ( String text ) { Pattern pattern = PLAIN TEXT TO ESCAPE ; Matcher match = pattern . matcher ( text ) ; if ( match . find ( ) ) { String Builder out = new String Builder ( ) ; int end = NUM ; do { int start = match . start ( ) ; out . append ( text . substring ( end , st... | public static String escapeCharacterToDisplay ( String text ) { Pattern pattern = PLAIN_TEXT_TO_ESCAPE ; Matcher match = pattern . matcher ( text ) ; if ( match . find ( ) ) { StringBuilder out = new StringBuilder ( ) ; int end = _NUM ; do { int start = match . start ( ) ; out . append ( text . substring ( end , start ... | 247 |
java-test-7169 | java | Where are the types used ? | in this body | public Set < Type > used Types ( ) { Set < Type > types = new Hash Set < Type > ( ) ; for ( Dexlib Abstract Instruction i : instructions ) types . add All ( i . introduced Types ( ) ) ; if ( tries != null ) { for ( Try Block < ? extends Exception Handler > try Item : tries ) { List < ? extends Exception Handler > h Lis... | public Set < Type > usedTypes ( ) { Set < Type > types = new HashSet < Type > ( ) ; for ( DexlibAbstractInstruction i : instructions ) types . addAll ( i . introducedTypes ( ) ) ; if ( tries != null ) { for ( TryBlock < ? extends ExceptionHandler > tryItem : tries ) { List < ? extends ExceptionHandler > hList = tryItem... | 142 |
java-test-7172 | java | What does disconnectclient disconnect ? | the tcp / ip socket connection | public boolean disconnect Client ( ) throws Mqtt Exception { synchronized ( conn Lock ) { conn Lock Notified = BOOL ; conn Lock . notify ( ) ; } try { wmqtt Client . disconnect ( ) ; } catch ( Mqtt Persistence Exception mqpe ) { } connected = BOOL ; return BOOL ; } | public boolean disconnectClient ( ) throws MqttException { synchronized ( connLock ) { connLockNotified = _BOOL ; connLock . notify ( ) ; } try { wmqttClient . disconnect ( ) ; } catch ( MqttPersistenceException mqpe ) { } connected = _BOOL ; return _BOOL ; } | 57 |
java-test-7174 | java | What does the code add to the debugger provider ? | a new debugger | public void add Debugger ( final I Debugger debugger ) { debuggers . add ( Preconditions . check Not Null ( debugger , STRING ) ) ; for ( final Debugger Provider Listener listener : m listeners ) { try { listener . debugger Added ( this , debugger ) ; } catch ( final Exception exception ) { C Utility Functions . log Ex... | public void addDebugger ( final IDebugger debugger ) { debuggers . add ( Preconditions . checkNotNull ( debugger , STRING ) ) ; for ( final DebuggerProviderListener listener : m_listeners ) { try { listener . debuggerAdded ( this , debugger ) ; } catch ( final Exception exception ) { CUtilityFunctions . logException ( ... | 72 |
java-test-7175 | java | What did startreconnectthread use ? | to run in another thread | private synchronized void connect ( ) { while ( ! connected && ! shutdown Requested ) { try { connection = jms Connection Factory . create Connection ( ) ; refresh Subscriptions ( ) ; connection . set Exception Listener ( this ) ; connection . start ( ) ; connected = BOOL ; } catch ( Exception e ) { LOGGER . error ( ST... | private synchronized void connect ( ) { while ( ! connected && ! shutdownRequested ) { try { connection = jmsConnectionFactory . createConnection ( ) ; refreshSubscriptions ( ) ; connection . setExceptionListener ( this ) ; connection . start ( ) ; connected = _BOOL ; } catch ( Exception e ) { LOGGER . error ( STRING ,... | 119 |
java-test-7176 | java | What uses to run in another thread ? | startreconnectthread | private synchronized void connect ( ) { while ( ! connected && ! shutdown Requested ) { try { connection = jms Connection Factory . create Connection ( ) ; refresh Subscriptions ( ) ; connection . set Exception Listener ( this ) ; connection . start ( ) ; connected = BOOL ; } catch ( Exception e ) { LOGGER . error ( ST... | private synchronized void connect ( ) { while ( ! connected && ! shutdownRequested ) { try { connection = jmsConnectionFactory . createConnection ( ) ; refreshSubscriptions ( ) ; connection . setExceptionListener ( this ) ; connection . start ( ) ; connected = _BOOL ; } catch ( Exception e ) { LOGGER . error ( STRING ,... | 119 |
java-test-7177 | java | When are listeners notified of connection ? | once the connection is reestablished and all topic subscriptions are back | private synchronized void connect ( ) { while ( ! connected && ! shutdown Requested ) { try { connection = jms Connection Factory . create Connection ( ) ; refresh Subscriptions ( ) ; connection . set Exception Listener ( this ) ; connection . start ( ) ; connected = BOOL ; } catch ( Exception e ) { LOGGER . error ( ST... | private synchronized void connect ( ) { while ( ! connected && ! shutdownRequested ) { try { connection = jmsConnectionFactory . createConnection ( ) ; refreshSubscriptions ( ) ; connection . setExceptionListener ( this ) ; connection . start ( ) ; connected = _BOOL ; } catch ( Exception e ) { LOGGER . error ( STRING ,... | 119 |
java-test-7178 | java | When will only one thread be started ? | however many calls are made | private synchronized void connect ( ) { while ( ! connected && ! shutdown Requested ) { try { connection = jms Connection Factory . create Connection ( ) ; refresh Subscriptions ( ) ; connection . set Exception Listener ( this ) ; connection . start ( ) ; connected = BOOL ; } catch ( Exception e ) { LOGGER . error ( ST... | private synchronized void connect ( ) { while ( ! connected && ! shutdownRequested ) { try { connection = jmsConnectionFactory . createConnection ( ) ; refreshSubscriptions ( ) ; connection . setExceptionListener ( this ) ; connection . start ( ) ; connected = _BOOL ; } catch ( Exception e ) { LOGGER . error ( STRING ,... | 119 |
java-test-7179 | java | For what purpose does navigableindexes add ? | for the given attributes | public static < O > Indexed Collection < O > new Auto Indexed Collection ( Iterable < Attribute < O , Comparable > > attributes ) { Indexed Collection < O > auto Indexed Collection = new Concurrent Indexed Collection < O > ( ) ; for ( Attribute < O , ? extends Comparable > attribute : attributes ) { @ Suppress Warnings... | public static < O > IndexedCollection < O > newAutoIndexedCollection ( Iterable < Attribute < O , Comparable > > attributes ) { IndexedCollection < O > autoIndexedCollection = new ConcurrentIndexedCollection < O > ( ) ; for ( Attribute < O , ? extends Comparable > attribute : attributes ) { @ SuppressWarnings ( STRING ... | 104 |
java-test-7182 | java | What does the code calculate ? | the levenshtein distance for a candidate paraphrase given the source | public static int levenshtein ( String [ ] candidate , String [ ] source ) { if ( source . length == NUM ) return candidate . length ; if ( candidate . length == NUM ) return source . length ; int distances [ ] [ ] = new int [ source . length + NUM ] [ candidate . length + NUM ] ; for ( int i = NUM ; i <= source . leng... | public static int levenshtein ( String [ ] candidate , String [ ] source ) { if ( source . length == _NUM ) return candidate . length ; if ( candidate . length == _NUM ) return source . length ; int distances [ ] [ ] = new int [ source . length + _NUM ] [ candidate . length + _NUM ] ; for ( int i = _NUM ; i <= source .... | 283 |
java-test-7183 | java | What may this method be used ? | to register a converter with the javatypetranslator | public static void register Converter ( Java Type Converter the Converter ) { Class < ? > target Type = the Converter . get Target Type ( ) ; Class < ? > source Type = the Converter . get Source Type ( ) ; Hashtable < Class < ? > , Java Type Converter > inner Table = m converters . get ( target Type ) ; if ( inner Tabl... | public static void registerConverter ( JavaTypeConverter theConverter ) { Class < ? > targetType = theConverter . getTargetType ( ) ; Class < ? > sourceType = theConverter . getSourceType ( ) ; Hashtable < Class < ? > , JavaTypeConverter > innerTable = m_converters . get ( targetType ) ; if ( innerTable != null ) { inn... | 136 |
java-test-7185 | java | What does a utility method delete ? | the vms on the specified endpoint filtered by the instanceids that are passed in | public static void delete V Ms On This Endpoint ( Verification Host host , boolean is Mock , String parent Compute Link , List < String > instance Ids To Delete ) throws Throwable { delete V Ms On This Endpoint ( host , null , is Mock , parent Compute Link , instance Ids To Delete , null ) ; } | public static void deleteVMsOnThisEndpoint ( VerificationHost host , boolean isMock , String parentComputeLink , List < String > instanceIdsToDelete ) throws Throwable { deleteVMsOnThisEndpoint ( host , null , isMock , parentComputeLink , instanceIdsToDelete , null ) ; } | 62 |
java-test-7187 | java | What does that test ? | that number | public void test Parsing Of Longer Sequences ( ) throws Exception { double [ ] values = new double [ ] { NUM , - NUM , NUM , NUM } ; String Builder sb = new String Builder ( ) ; for ( int i = NUM ; i < values . length ; ++ i ) { if ( i > NUM ) { sb . append ( STRING ) ; } sb . append ( values [ i ] ) ; } String segment... | public void testParsingOfLongerSequences ( ) throws Exception { double [ ] values = new double [ ] { _NUM , - _NUM , _NUM , _NUM } ; StringBuilder sb = new StringBuilder ( ) ; for ( int i = _NUM ; i < values . length ; ++ i ) { if ( i > _NUM ) { sb . append ( STRING ) ; } sb . append ( values [ i ] ) ; } String segment... | 370 |
java-test-7188 | java | What does method try ? | to test that number | public void test Parsing Of Longer Sequences ( ) throws Exception { double [ ] values = new double [ ] { NUM , - NUM , NUM , NUM } ; String Builder sb = new String Builder ( ) ; for ( int i = NUM ; i < values . length ; ++ i ) { if ( i > NUM ) { sb . append ( STRING ) ; } sb . append ( values [ i ] ) ; } String segment... | public void testParsingOfLongerSequences ( ) throws Exception { double [ ] values = new double [ ] { _NUM , - _NUM , _NUM , _NUM } ; StringBuilder sb = new StringBuilder ( ) ; for ( int i = _NUM ; i < values . length ; ++ i ) { if ( i > _NUM ) { sb . append ( STRING ) ; } sb . append ( values [ i ] ) ; } String segment... | 370 |
java-test-7189 | java | How did the crc checksum contain ? | in bits 60 - 68 | public static CRC check ( Bit Set msg ) { CRC crc = CRC . UNKNOWN ; byte calculated = NUM ; for ( int i = msg . next Set Bit ( NUM ) ; i >= NUM && i <= NUM ; i = msg . next Set Bit ( i + NUM ) ) { calculated ^= sCHECKSUMS [ i - NUM ] ; } calculated ^= get Checksum ( msg ) ; switch ( ( byte ) calculated ) { case sFILL 0... | public static CRC check ( BitSet msg ) { CRC crc = CRC . UNKNOWN ; byte calculated = _NUM ; for ( int i = msg . nextSetBit ( _NUM ) ; i >= _NUM && i <= _NUM ; i = msg . nextSetBit ( i + _NUM ) ) { calculated ^= sCHECKSUMS [ i - _NUM ] ; } calculated ^= getChecksum ( msg ) ; switch ( ( byte ) calculated ) { case sFILL_0... | 110 |
java-test-7190 | java | What does message bits 9 - 59 pass ? | the crc checksum contained in bits 60 - 68 | public static CRC check ( Bit Set msg ) { CRC crc = CRC . UNKNOWN ; byte calculated = NUM ; for ( int i = msg . next Set Bit ( NUM ) ; i >= NUM && i <= NUM ; i = msg . next Set Bit ( i + NUM ) ) { calculated ^= sCHECKSUMS [ i - NUM ] ; } calculated ^= get Checksum ( msg ) ; switch ( ( byte ) calculated ) { case sFILL 0... | public static CRC check ( BitSet msg ) { CRC crc = CRC . UNKNOWN ; byte calculated = _NUM ; for ( int i = msg . nextSetBit ( _NUM ) ; i >= _NUM && i <= _NUM ; i = msg . nextSetBit ( i + _NUM ) ) { calculated ^= sCHECKSUMS [ i - _NUM ] ; } calculated ^= getChecksum ( msg ) ; switch ( ( byte ) calculated ) { case sFILL_0... | 110 |
java-test-7191 | java | What passs the crc checksum contained in bits 60 - 68 ? | message bits 9 - 59 | public static CRC check ( Bit Set msg ) { CRC crc = CRC . UNKNOWN ; byte calculated = NUM ; for ( int i = msg . next Set Bit ( NUM ) ; i >= NUM && i <= NUM ; i = msg . next Set Bit ( i + NUM ) ) { calculated ^= sCHECKSUMS [ i - NUM ] ; } calculated ^= get Checksum ( msg ) ; switch ( ( byte ) calculated ) { case sFILL 0... | public static CRC check ( BitSet msg ) { CRC crc = CRC . UNKNOWN ; byte calculated = _NUM ; for ( int i = msg . nextSetBit ( _NUM ) ; i >= _NUM && i <= _NUM ; i = msg . nextSetBit ( i + _NUM ) ) { calculated ^= sCHECKSUMS [ i - _NUM ] ; } calculated ^= getChecksum ( msg ) ; switch ( ( byte ) calculated ) { case sFILL_0... | 110 |
java-test-7192 | java | What do an attribute description have ? | the provided attribute name , type and options | @ Deprecated public static Attribute Description create ( final String attribute Name , final Attribute Type attribute Type , final String ... options ) { Reject . if Null ( options ) ; return create ( attribute Name , attribute Type , Arrays . as List ( options ) ) ; } | @ Deprecated public static AttributeDescription create ( final String attributeName , final AttributeType attributeType , final String ... options ) { Reject . ifNull ( options ) ; return create ( attributeName , attributeType , Arrays . asList ( options ) ) ; } | 52 |
java-test-7193 | java | What do all ae tuples cache ? | any memory location | public void invalidate All Loads ( ) { if ( ! do Memory ) return ; int i = NUM ; while ( i < cache . size ( ) ) { Available Expression ae = cache . get ( i ) ; if ( ae . is Load Or Store ( ) ) { cache . remove ( i ) ; continue ; } i ++ ; } } | public void invalidateAllLoads ( ) { if ( ! doMemory ) return ; int i = _NUM ; while ( i < cache . size ( ) ) { AvailableExpression ae = cache . get ( i ) ; if ( ae . isLoadOrStore ( ) ) { cache . remove ( i ) ; continue ; } i ++ ; } } | 70 |
java-test-7194 | java | What does the code eliminate ? | all ae tuples that cache any memory location | public void invalidate All Loads ( ) { if ( ! do Memory ) return ; int i = NUM ; while ( i < cache . size ( ) ) { Available Expression ae = cache . get ( i ) ; if ( ae . is Load Or Store ( ) ) { cache . remove ( i ) ; continue ; } i ++ ; } } | public void invalidateAllLoads ( ) { if ( ! doMemory ) return ; int i = _NUM ; while ( i < cache . size ( ) ) { AvailableExpression ae = cache . get ( i ) ; if ( ae . isLoadOrStore ( ) ) { cache . remove ( i ) ; continue ; } i ++ ; } } | 70 |
java-test-7195 | java | What cache any memory location ? | all ae tuples | public void invalidate All Loads ( ) { if ( ! do Memory ) return ; int i = NUM ; while ( i < cache . size ( ) ) { Available Expression ae = cache . get ( i ) ; if ( ae . is Load Or Store ( ) ) { cache . remove ( i ) ; continue ; } i ++ ; } } | public void invalidateAllLoads ( ) { if ( ! doMemory ) return ; int i = _NUM ; while ( i < cache . size ( ) ) { AvailableExpression ae = cache . get ( i ) ; if ( ae . isLoadOrStore ( ) ) { cache . remove ( i ) ; continue ; } i ++ ; } } | 70 |
java-test-7196 | java | What means the bean has accepted the most recent firmware file we have offered , which is stored as ` this . currentimage ` ? | a notification to this characteristic | private void on Notification Block ( Bluetooth Gatt Characteristic characteristic ) { int requested Block = Convert . two Bytes To Int ( characteristic . get Value ( ) , Constants . CC 2540 BYTE ORDER ) ; if ( requested Block == NUM ) { Log . i ( TAG , String . format ( STRING , current Image . name ( ) , current Image... | private void onNotificationBlock ( BluetoothGattCharacteristic characteristic ) { int requestedBlock = Convert . twoBytesToInt ( characteristic . getValue ( ) , Constants . CC2540_BYTE_ORDER ) ; if ( requestedBlock == _NUM ) { Log . i ( TAG , String . format ( STRING , currentImage . name ( ) , currentImage . sizeBytes... | 321 |
java-test-7197 | java | What did the code receive ? | a notification on block characteristic a notification to this characteristic | private void on Notification Block ( Bluetooth Gatt Characteristic characteristic ) { int requested Block = Convert . two Bytes To Int ( characteristic . get Value ( ) , Constants . CC 2540 BYTE ORDER ) ; if ( requested Block == NUM ) { Log . i ( TAG , String . format ( STRING , current Image . name ( ) , current Image... | private void onNotificationBlock ( BluetoothGattCharacteristic characteristic ) { int requestedBlock = Convert . twoBytesToInt ( characteristic . getValue ( ) , Constants . CC2540_BYTE_ORDER ) ; if ( requestedBlock == _NUM ) { Log . i ( TAG , String . format ( STRING , currentImage . name ( ) , currentImage . sizeBytes... | 321 |
java-test-7198 | java | What did a notification to this characteristic mean ? | the bean has accepted the most recent firmware file we have offered , which is stored as ` this . currentimage ` | private void on Notification Block ( Bluetooth Gatt Characteristic characteristic ) { int requested Block = Convert . two Bytes To Int ( characteristic . get Value ( ) , Constants . CC 2540 BYTE ORDER ) ; if ( requested Block == NUM ) { Log . i ( TAG , String . format ( STRING , current Image . name ( ) , current Image... | private void onNotificationBlock ( BluetoothGattCharacteristic characteristic ) { int requestedBlock = Convert . twoBytesToInt ( characteristic . getValue ( ) , Constants . CC2540_BYTE_ORDER ) ; if ( requestedBlock == _NUM ) { Log . i ( TAG , String . format ( STRING , currentImage . name ( ) , currentImage . sizeBytes... | 321 |
java-test-7200 | java | What is low defined ? | as available memory less than 20 % of max memory | public boolean memory Is Low ( ) { m Memory Usage = m Memory MX Bean . get Heap Memory Usage ( ) ; if ( is Enabled ( ) ) { long low Threshold = ( long ) ( NUM * m Memory Usage . get Max ( ) ) ; if ( low Threshold < LOW MEMORY MINIMUM ) { low Threshold = LOW MEMORY MINIMUM ; } long avail = m Memory Usage . get Max ( ) -... | public boolean memoryIsLow ( ) { m_MemoryUsage = m_MemoryMXBean . getHeapMemoryUsage ( ) ; if ( isEnabled ( ) ) { long lowThreshold = ( long ) ( _NUM * m_MemoryUsage . getMax ( ) ) ; if ( lowThreshold < LOW_MEMORY_MINIMUM ) { lowThreshold = LOW_MEMORY_MINIMUM ; } long avail = m_MemoryUsage . getMax ( ) - m_MemoryUsage ... | 107 |
java-test-7201 | java | In which direction do commands read unless the canonical path passed in is the same as that for dir / fname ? | from dir / fname | String read Startup Command File ( String dir , String fname , String canon Path ) { File dot Init File = new File ( dir , fname ) ; if ( ! dot Init File . exists ( ) ) { return null ; } String my Canon File ; try { my Canon File = dot Init File . get Canonical Path ( ) ; } catch ( IO Exception ee ) { Message Output . ... | String readStartupCommandFile ( String dir , String fname , String canonPath ) { File dotInitFile = new File ( dir , fname ) ; if ( ! dotInitFile . exists ( ) ) { return null ; } String myCanonFile ; try { myCanonFile = dotInitFile . getCanonicalPath ( ) ; } catch ( IOException ee ) { MessageOutput . println ( STRING ,... | 153 |
java-test-7202 | java | What does the code create from a file ? | new content | public Binary Content ( File a File ) throws IO Exception { this ( ) ; if ( a File == null || a File . length ( ) < NUM ) return ; ranges . add ( new Range ( NUM , a File , BOOL ) ) ; } | public BinaryContent ( File aFile ) throws IOException { this ( ) ; if ( aFile == null || aFile . length ( ) < _NUM ) return ; ranges . add ( new Range ( _NUM , aFile , _BOOL ) ) ; } | 51 |
java-test-7203 | java | What assigns to the child values of this row that add to 1 ? | random probability values | public void clear Row ( int node Index , int row Index ) { for ( int col Index = NUM ; col Index < get Num Columns ( node Index ) ; col Index ++ ) { set Probability ( node Index , row Index , col Index , Double . Na N ) ; } } | public void clearRow ( int nodeIndex , int rowIndex ) { for ( int colIndex = _NUM ; colIndex < getNumColumns ( nodeIndex ) ; colIndex ++ ) { setProbability ( nodeIndex , rowIndex , colIndex , Double . NaN ) ; } } | 58 |
java-test-7204 | java | What does random probability values assign ? | to the child values of this row that add to 1 | public void clear Row ( int node Index , int row Index ) { for ( int col Index = NUM ; col Index < get Num Columns ( node Index ) ; col Index ++ ) { set Probability ( node Index , row Index , col Index , Double . Na N ) ; } } | public void clearRow ( int nodeIndex , int rowIndex ) { for ( int colIndex = _NUM ; colIndex < getNumColumns ( nodeIndex ) ; colIndex ++ ) { setProbability ( nodeIndex , rowIndex , colIndex , Double . NaN ) ; } } | 58 |
java-test-7205 | java | What do that use just ? | to set its precomputed cost | @ Override public Array List < String > report Dense Features ( int index ) { dense Feature Index = index ; Array List < String > names = new Array List < > ( ) ; for ( int i = NUM ; i < phrase weights . length ; i ++ ) names . add ( String . format ( STRING , owner , i ) ) ; return names ; } | @ Override public ArrayList < String > reportDenseFeatures ( int index ) { denseFeatureIndex = index ; ArrayList < String > names = new ArrayList < > ( ) ; for ( int i = _NUM ; i < phrase_weights . length ; i ++ ) names . add ( String . format ( STRING , owner , i ) ) ; return names ; } | 74 |
java-test-7207 | java | Where do oozie job run ? | on an existing emr cluster | protected Oozie Workflow Job run Oozie Workflow Impl ( Run Oozie Workflow Request request ) throws Exception { validate Run Oozie Workflow Request ( request ) ; String namespace = request . get Namespace ( ) ; String emr Cluster Definition Name = request . get Emr Cluster Definition Name ( ) ; String emr Cluster Name =... | protected OozieWorkflowJob runOozieWorkflowImpl ( RunOozieWorkflowRequest request ) throws Exception { validateRunOozieWorkflowRequest ( request ) ; String namespace = request . getNamespace ( ) ; String emrClusterDefinitionName = request . getEmrClusterDefinitionName ( ) ; String emrClusterName = request . getEmrClust... | 230 |
java-test-7208 | java | What runs on an existing emr cluster ? | oozie job | protected Oozie Workflow Job run Oozie Workflow Impl ( Run Oozie Workflow Request request ) throws Exception { validate Run Oozie Workflow Request ( request ) ; String namespace = request . get Namespace ( ) ; String emr Cluster Definition Name = request . get Emr Cluster Definition Name ( ) ; String emr Cluster Name =... | protected OozieWorkflowJob runOozieWorkflowImpl ( RunOozieWorkflowRequest request ) throws Exception { validateRunOozieWorkflowRequest ( request ) ; String namespace = request . getNamespace ( ) ; String emrClusterDefinitionName = request . getEmrClusterDefinitionName ( ) ; String emrClusterName = request . getEmrClust... | 230 |
java-test-7209 | java | For what purpose did this function create one temporarily ? | in order to get the font metrics , a graphics context is required | private void initialize Font Metrics ( Font font ) { final Buffered Image temporary Image = new Buffered Image ( NUM , NUM , Buffered Image . TYPE INT RGB ) ; Graphics 2 D temporary Graphics 2 D = ( Graphics 2 D ) temporary Image . get Graphics ( ) ; temporary Graphics 2 D . set Font ( font ) ; font Metrics = temporary... | private void initializeFontMetrics ( Font font ) { final BufferedImage temporaryImage = new BufferedImage ( _NUM , _NUM , BufferedImage . TYPE_INT_RGB ) ; Graphics2D temporaryGraphics2D = ( Graphics2D ) temporaryImage . getGraphics ( ) ; temporaryGraphics2D . setFont ( font ) ; fontMetrics = temporaryGraphics2D . getFo... | 104 |
java-test-7210 | java | What does the code read at the other end of our dcc chat connection ? | the next line of text from the client | public String read Line ( ) throws IO Exception { if ( finished ) throw new Dcc Exception ( Dcc Exception . Reason . Chat Not Connected , user , STRING ) ; String line = buffered Reader . read Line ( ) ; log . info ( INPUT CHAT MARKER , STRING + line ) ; return line ; } | public String readLine ( ) throws IOException { if ( finished ) throw new DccException ( DccException . Reason . ChatNotConnected , user , STRING ) ; String line = bufferedReader . readLine ( ) ; log . info ( INPUT_CHAT_MARKER , STRING + line ) ; return line ; } | 61 |
java-test-7211 | java | What does the code calculate for doubles ? | the poisson distribution for mean x and k events | public static double poisson ( double k , double x , boolean cum ) { if ( ( x < NUM ) || ( k < NUM ) ) { throw new Arithmetic Exception ( STRING ) ; } k = k + NUM ; if ( cum ) { return ( NUM - igamma ( k , x ) ) ; } else { return ( ( Math . exp ( - x ) * Math . pow ( x , k ) ) / gamma ( k ) ) ; } } | public static double poisson ( double k , double x , boolean cum ) { if ( ( x < _NUM ) || ( k < _NUM ) ) { throw new ArithmeticException ( STRING ) ; } k = k + _NUM ; if ( cum ) { return ( _NUM - igamma ( k , x ) ) ; } else { return ( ( Math . exp ( - x ) * Math . pow ( x , k ) ) / gamma ( k ) ) ; } } | 94 |
java-test-7212 | java | What do it contain only ? | upper case hex numbers | static public String normalize WWN ( String wwn ) { String result = wwn ; if ( wwn != null && ! wwn . is Empty ( ) ) { result = wwn . replace All ( STRING , STRING ) ; result = result . to Upper Case ( ) ; } return result ; } | static public String normalizeWWN ( String wwn ) { String result = wwn ; if ( wwn != null && ! wwn . isEmpty ( ) ) { result = wwn . replaceAll ( STRING , STRING ) ; result = result . toUpperCase ( ) ; } return result ; } | 57 |
java-test-7213 | java | What do utility function normalize ? | the volume wwn | static public String normalize WWN ( String wwn ) { String result = wwn ; if ( wwn != null && ! wwn . is Empty ( ) ) { result = wwn . replace All ( STRING , STRING ) ; result = result . to Upper Case ( ) ; } return result ; } | static public String normalizeWWN ( String wwn ) { String result = wwn ; if ( wwn != null && ! wwn . isEmpty ( ) ) { result = wwn . replaceAll ( STRING , STRING ) ; result = result . toUpperCase ( ) ; } return result ; } | 57 |
java-test-7214 | java | What converts to a generic log level ? | a log4j specific log level | private Log Level log 4 j To Generic Log Level ( Level level ) { Log Level log Level = Log Level . ALL ; if ( level . equals ( Level . OFF ) ) { log Level = Log Level . OFF ; } else if ( level . equals ( Level . FATAL ) ) { log Level = Log Level . FATAL ; } else if ( level . equals ( Level . ERROR ) ) { log Level = Log... | private LogLevel log4jToGenericLogLevel ( Level level ) { LogLevel logLevel = LogLevel . ALL ; if ( level . equals ( Level . OFF ) ) { logLevel = LogLevel . OFF ; } else if ( level . equals ( Level . FATAL ) ) { logLevel = LogLevel . FATAL ; } else if ( level . equals ( Level . ERROR ) ) { logLevel = LogLevel . ERROR ;... | 224 |
java-test-7215 | java | What does a log4j specific log level convert ? | to a generic log level | private Log Level log 4 j To Generic Log Level ( Level level ) { Log Level log Level = Log Level . ALL ; if ( level . equals ( Level . OFF ) ) { log Level = Log Level . OFF ; } else if ( level . equals ( Level . FATAL ) ) { log Level = Log Level . FATAL ; } else if ( level . equals ( Level . ERROR ) ) { log Level = Log... | private LogLevel log4jToGenericLogLevel ( Level level ) { LogLevel logLevel = LogLevel . ALL ; if ( level . equals ( Level . OFF ) ) { logLevel = LogLevel . OFF ; } else if ( level . equals ( Level . FATAL ) ) { logLevel = LogLevel . FATAL ; } else if ( level . equals ( Level . ERROR ) ) { logLevel = LogLevel . ERROR ;... | 224 |
java-test-7216 | java | What does the code create ? | a new dataset with the given time zone and locale | public Time Table XY Dataset ( Time Zone zone , Locale locale ) { Param Checks . null Not Permitted ( zone , STRING ) ; Param Checks . null Not Permitted ( locale , STRING ) ; this . values = new Default Keyed Values 2 D ( BOOL ) ; this . working Calendar = Calendar . get Instance ( zone , locale ) ; this . x Position ... | public TimeTableXYDataset ( TimeZone zone , Locale locale ) { ParamChecks . nullNotPermitted ( zone , STRING ) ; ParamChecks . nullNotPermitted ( locale , STRING ) ; this . values = new DefaultKeyedValues2D ( _BOOL ) ; this . workingCalendar = Calendar . getInstance ( zone , locale ) ; this . xPosition = TimePeriodAnch... | 79 |
java-test-7217 | java | What do we need if they return a valid response ? | to run in local mode | private boolean is Running Inside Data Center ( ) { Set < String > hosts = zk Cluster Data . get Solr Hosts ( ) ; String solr Ping Query Template = STRING ; for ( String host : hosts ) { String solr Query = String . format ( solr Ping Query Template , host , Solr Interaction Utils . DEFAULT SOLR PORT ) ; try { Solr Int... | private boolean isRunningInsideDataCenter ( ) { Set < String > hosts = zkClusterData . getSolrHosts ( ) ; String solrPingQueryTemplate = STRING ; for ( String host : hosts ) { String solrQuery = String . format ( solrPingQueryTemplate , host , SolrInteractionUtils . DEFAULT_SOLR_PORT ) ; try { SolrInteractionUtils . ex... | 136 |
java-test-7218 | java | What do it use ? | the private ip | private boolean is Running Inside Data Center ( ) { Set < String > hosts = zk Cluster Data . get Solr Hosts ( ) ; String solr Ping Query Template = STRING ; for ( String host : hosts ) { String solr Query = String . format ( solr Ping Query Template , host , Solr Interaction Utils . DEFAULT SOLR PORT ) ; try { Solr Int... | private boolean isRunningInsideDataCenter ( ) { Set < String > hosts = zkClusterData . getSolrHosts ( ) ; String solrPingQueryTemplate = STRING ; for ( String host : hosts ) { String solrQuery = String . format ( solrPingQueryTemplate , host , SolrInteractionUtils . DEFAULT_SOLR_PORT ) ; try { SolrInteractionUtils . ex... | 136 |
java-test-7219 | java | How do solr run on them ? | using the private ip | private boolean is Running Inside Data Center ( ) { Set < String > hosts = zk Cluster Data . get Solr Hosts ( ) ; String solr Ping Query Template = STRING ; for ( String host : hosts ) { String solr Query = String . format ( solr Ping Query Template , host , Solr Interaction Utils . DEFAULT SOLR PORT ) ; try { Solr Int... | private boolean isRunningInsideDataCenter ( ) { Set < String > hosts = zkClusterData . getSolrHosts ( ) ; String solrPingQueryTemplate = STRING ; for ( String host : hosts ) { String solrQuery = String . format ( solrPingQueryTemplate , host , SolrInteractionUtils . DEFAULT_SOLR_PORT ) ; try { SolrInteractionUtils . ex... | 136 |
java-test-7220 | java | What do they return ? | a valid response | private boolean is Running Inside Data Center ( ) { Set < String > hosts = zk Cluster Data . get Solr Hosts ( ) ; String solr Ping Query Template = STRING ; for ( String host : hosts ) { String solr Query = String . format ( solr Ping Query Template , host , Solr Interaction Utils . DEFAULT SOLR PORT ) ; try { Solr Int... | private boolean isRunningInsideDataCenter ( ) { Set < String > hosts = zkClusterData . getSolrHosts ( ) ; String solrPingQueryTemplate = STRING ; for ( String host : hosts ) { String solrQuery = String . format ( solrPingQueryTemplate , host , SolrInteractionUtils . DEFAULT_SOLR_PORT ) ; try { SolrInteractionUtils . ex... | 136 |
java-test-7221 | java | How do we run ? | in local mode | private boolean is Running Inside Data Center ( ) { Set < String > hosts = zk Cluster Data . get Solr Hosts ( ) ; String solr Ping Query Template = STRING ; for ( String host : hosts ) { String solr Query = String . format ( solr Ping Query Template , host , Solr Interaction Utils . DEFAULT SOLR PORT ) ; try { Solr Int... | private boolean isRunningInsideDataCenter ( ) { Set < String > hosts = zkClusterData . getSolrHosts ( ) ; String solrPingQueryTemplate = STRING ; for ( String host : hosts ) { String solrQuery = String . format ( solrPingQueryTemplate , host , SolrInteractionUtils . DEFAULT_SOLR_PORT ) ; try { SolrInteractionUtils . ex... | 136 |
java-test-7228 | java | What does the code create ? | a java . awt . graphics to use for an image | protected Graphics create Graphics ( Image Formatter formatter , int width , int height ) { java . awt . Graphics graphics = null ; if ( formatter == null ) { logger . warning ( STRING ) ; return null ; } graphics = formatter . get Graphics ( width , height , get Transparent ( ) ) ; if ( graphics == null ) { logger . w... | protected Graphics createGraphics ( ImageFormatter formatter , int width , int height ) { java . awt . Graphics graphics = null ; if ( formatter == null ) { logger . warning ( STRING ) ; return null ; } graphics = formatter . getGraphics ( width , height , getTransparent ( ) ) ; if ( graphics == null ) { logger . warni... | 186 |
java-test-7229 | java | What will the graphics affect ? | the image contained within the imageformatter | protected Graphics create Graphics ( Image Formatter formatter , int width , int height ) { java . awt . Graphics graphics = null ; if ( formatter == null ) { logger . warning ( STRING ) ; return null ; } graphics = formatter . get Graphics ( width , height , get Transparent ( ) ) ; if ( graphics == null ) { logger . w... | protected Graphics createGraphics ( ImageFormatter formatter , int width , int height ) { java . awt . Graphics graphics = null ; if ( formatter == null ) { logger . warning ( STRING ) ; return null ; } graphics = formatter . getGraphics ( width , height , getTransparent ( ) ) ; if ( graphics == null ) { logger . warni... | 186 |
java-test-7231 | java | What does the code create by analyzing the . class files on the classpath ? | an analysis graph | @ Override protected Graph Document generate Analysis Document ( I Progress Monitor monitor ) throws IO Exception { String class Path = page . get Class Path ( ) ; String directory Filter = page . get Directory Filter ( ) ; String package Filter = page . get Package Filter ( ) ; Collection < String > package Whitelist ... | @ Override protected GraphDocument generateAnalysisDocument ( IProgressMonitor monitor ) throws IOException { String classPath = page . getClassPath ( ) ; String directoryFilter = page . getDirectoryFilter ( ) ; String packageFilter = page . getPackageFilter ( ) ; Collection < String > packageWhitelist = splitFilter ( ... | 293 |
java-test-7232 | java | How does the code create an analysis graph ? | by analyzing the . class files on the classpath | @ Override protected Graph Document generate Analysis Document ( I Progress Monitor monitor ) throws IO Exception { String class Path = page . get Class Path ( ) ; String directory Filter = page . get Directory Filter ( ) ; String package Filter = page . get Package Filter ( ) ; Collection < String > package Whitelist ... | @ Override protected GraphDocument generateAnalysisDocument ( IProgressMonitor monitor ) throws IOException { String classPath = page . getClassPath ( ) ; String directoryFilter = page . getDirectoryFilter ( ) ; String packageFilter = page . getPackageFilter ( ) ; Collection < String > packageWhitelist = splitFilter ( ... | 293 |
java-test-7233 | java | What does the specified string break by the specified separators ? | into array of strings | @ Nullable private List < String > to Array ( @ Nullable String s , @ Not Null String separators , @ Nullable List < Boolean > markers ) { if ( s == null ) return null ; s = s . trim ( ) ; if ( s . is Empty ( ) ) return null ; boolean p2 nl = markers != null && my Settings . JD P AT EMPTY LINES ; List < String > list =... | @ Nullable private List < String > toArray ( @ Nullable String s , @ NotNull String separators , @ Nullable List < Boolean > markers ) { if ( s == null ) return null ; s = s . trim ( ) ; if ( s . isEmpty ( ) ) return null ; boolean p2nl = markers != null && mySettings . JD_P_AT_EMPTY_LINES ; List < String > list = new ... | 350 |
java-test-7234 | java | How does the specified string break into array of strings ? | by the specified separators | @ Nullable private List < String > to Array ( @ Nullable String s , @ Not Null String separators , @ Nullable List < Boolean > markers ) { if ( s == null ) return null ; s = s . trim ( ) ; if ( s . is Empty ( ) ) return null ; boolean p2 nl = markers != null && my Settings . JD P AT EMPTY LINES ; List < String > list =... | @ Nullable private List < String > toArray ( @ Nullable String s , @ NotNull String separators , @ Nullable List < Boolean > markers ) { if ( s == null ) return null ; s = s . trim ( ) ; if ( s . isEmpty ( ) ) return null ; boolean p2nl = markers != null && mySettings . JD_P_AT_EMPTY_LINES ; List < String > list = new ... | 350 |
java-test-7235 | java | For what purpose d the code computes the i d ? | for a read from its matches matches | public int compute Id ( Bit Set active Matches , I Read Block read Block ) { if ( name 2 id != null ) { final String name = read Block . get Read Name ( ) ; final Integer id = name 2 id . get ( name ) ; if ( id != null && id > NUM ) return id ; } if ( active Matches . cardinality ( ) == NUM ) return Id Mapper . NOHITS ... | public int computeId ( BitSet activeMatches , IReadBlock readBlock ) { if ( name2id != null ) { final String name = readBlock . getReadName ( ) ; final Integer id = name2id . get ( name ) ; if ( id != null && id > _NUM ) return id ; } if ( activeMatches . cardinality ( ) == _NUM ) return IdMapper . NOHITS_ID ; for ( in... | 164 |
java-test-7236 | java | What do discrete nodes have ? | all the same cardinality | public void generate Random Network ( ) throws Exception { if ( m other Bayes Net == null ) { Init ( m n Nr Of Nodes , m n Cardinality ) ; generate Random Network Structure ( m n Nr Of Nodes , m n Nr Of Arcs ) ; generate Random Distributions ( m n Nr Of Nodes , m n Cardinality ) ; } else { m n Nr Of Nodes = m other Bay... | public void generateRandomNetwork ( ) throws Exception { if ( m_otherBayesNet == null ) { Init ( m_nNrOfNodes , m_nCardinality ) ; generateRandomNetworkStructure ( m_nNrOfNodes , m_nNrOfArcs ) ; generateRandomDistributions ( m_nNrOfNodes , m_nCardinality ) ; } else { m_nNrOfNodes = m_otherBayesNet . getNrOfNodes ( ) ; ... | 320 |
java-test-7237 | java | What is having all the same cardinality ? | discrete nodes | public void generate Random Network ( ) throws Exception { if ( m other Bayes Net == null ) { Init ( m n Nr Of Nodes , m n Cardinality ) ; generate Random Network Structure ( m n Nr Of Nodes , m n Nr Of Arcs ) ; generate Random Distributions ( m n Nr Of Nodes , m n Cardinality ) ; } else { m n Nr Of Nodes = m other Bay... | public void generateRandomNetwork ( ) throws Exception { if ( m_otherBayesNet == null ) { Init ( m_nNrOfNodes , m_nCardinality ) ; generateRandomNetworkStructure ( m_nNrOfNodes , m_nNrOfArcs ) ; generateRandomDistributions ( m_nNrOfNodes , m_nCardinality ) ; } else { m_nNrOfNodes = m_otherBayesNet . getNrOfNodes ( ) ; ... | 320 |
java-test-7238 | java | What do a new record add in ? | into the mapping | public void add Record ( String message Id , int i , double d ) { if ( m msg Data == null ) { m msg Data = new Tree Map < String , Log Normal Score . Msg Data > ( ) ; m min Lambda = NUM ; } final Msg Data data = new Msg Data ( ) ; data . m total Log Counts = i ; data . m lambda = d ; m msg Data . put ( message Id , dat... | public void addRecord ( String messageId , int i , double d ) { if ( m_msgData == null ) { m_msgData = new TreeMap < String , LogNormalScore . MsgData > ( ) ; m_minLambda = _NUM ; } final MsgData data = new MsgData ( ) ; data . m_totalLogCounts = i ; data . m_lambda = d ; m_msgData . put ( messageId , data ) ; m_minLam... | 117 |
java-test-7239 | java | What does the code take ? | the stack - based context ( this ) | Access Control Context optimize ( ) { Access Control Context acc ; Domain Combiner combiner = null ; Access Control Context parent = null ; Permission [ ] permissions = null ; if ( is Privileged ) { acc = privileged Context ; if ( acc != null ) { if ( acc . is Wrapped ) { permissions = acc . permissions ; parent = acc ... | AccessControlContext optimize ( ) { AccessControlContext acc ; DomainCombiner combiner = null ; AccessControlContext parent = null ; Permission [ ] permissions = null ; if ( isPrivileged ) { acc = privilegedContext ; if ( acc != null ) { if ( acc . isWrapped ) { permissions = acc . permissions ; parent = acc . parent ;... | 395 |
java-test-7240 | java | In which direction can the limited privilege scope flow indirectly ? | from the inherited parent thread or an assigned context previously captured by getcontext ( ) | Access Control Context optimize ( ) { Access Control Context acc ; Domain Combiner combiner = null ; Access Control Context parent = null ; Permission [ ] permissions = null ; if ( is Privileged ) { acc = privileged Context ; if ( acc != null ) { if ( acc . is Wrapped ) { permissions = acc . permissions ; parent = acc ... | AccessControlContext optimize ( ) { AccessControlContext acc ; DomainCombiner combiner = null ; AccessControlContext parent = null ; Permission [ ] permissions = null ; if ( isPrivileged ) { acc = privilegedContext ; if ( acc != null ) { if ( acc . isWrapped ) { permissions = acc . permissions ; parent = acc . parent ;... | 395 |
java-test-7241 | java | What does the code create ? | a path for the given feature | public Path Extractor Impl ( String path And Feature , boolean want Feature ) { this . path And Feature = path And Feature ; if ( INTERPRET PATHS ) { path = path And Feature ; return ; } if ( want Feature ) { int last Dot = path And Feature . last Index Of ( STRING ) ; if ( last Dot == - NUM ) { feature = path And Feat... | public PathExtractorImpl ( String pathAndFeature , boolean wantFeature ) { this . pathAndFeature = pathAndFeature ; if ( INTERPRET_PATHS ) { path = pathAndFeature ; return ; } if ( wantFeature ) { int lastDot = pathAndFeature . lastIndexOf ( STRING ) ; if ( lastDot == - _NUM ) { feature = pathAndFeature ; path = null ;... | 149 |
java-test-7243 | java | What does the code parse ? | the response document | public Naming Response parse XML ( ) { if ( document == null ) { return null ; } Element elem = document . get Document Element ( ) ; naming Response = new Naming Response ( ) ; String temp = elem . get Attribute ( STRING ) ; if ( temp != null ) { naming Response . set Response Version ( temp ) ; } temp = elem . get At... | public NamingResponse parseXML ( ) { if ( document == null ) { return null ; } Element elem = document . getDocumentElement ( ) ; namingResponse = new NamingResponse ( ) ; String temp = elem . getAttribute ( STRING ) ; if ( temp != null ) { namingResponse . setResponseVersion ( temp ) ; } temp = elem . getAttribute ( S... | 205 |
java-test-7246 | java | For what purpose does a user prompt ? | for a boolean value | protected boolean prompt Boolean ( final String prompt , final Optional < Boolean > default Value ) throws IO Exception { require Non Null ( prompt ) ; require Non Null ( default Value ) ; final Console Reader reader = get Reader ( ) ; reader . set Prompt ( prompt ) ; Boolean value = null ; boolean prompting = BOOL ; w... | protected boolean promptBoolean ( final String prompt , final Optional < Boolean > defaultValue ) throws IOException { requireNonNull ( prompt ) ; requireNonNull ( defaultValue ) ; final ConsoleReader reader = getReader ( ) ; reader . setPrompt ( prompt ) ; Boolean value = null ; boolean prompting = _BOOL ; while ( pro... | 166 |
java-test-7247 | java | Till when will the prompt be repeated ? | until a value true / false string has been submitted | protected boolean prompt Boolean ( final String prompt , final Optional < Boolean > default Value ) throws IO Exception { require Non Null ( prompt ) ; require Non Null ( default Value ) ; final Console Reader reader = get Reader ( ) ; reader . set Prompt ( prompt ) ; Boolean value = null ; boolean prompting = BOOL ; w... | protected boolean promptBoolean ( final String prompt , final Optional < Boolean > defaultValue ) throws IOException { requireNonNull ( prompt ) ; requireNonNull ( defaultValue ) ; final ConsoleReader reader = getReader ( ) ; reader . setPrompt ( prompt ) ; Boolean value = null ; boolean prompting = _BOOL ; while ( pro... | 166 |
java-test-7248 | java | What enters anything ? | the user doens ' t | protected boolean prompt Boolean ( final String prompt , final Optional < Boolean > default Value ) throws IO Exception { require Non Null ( prompt ) ; require Non Null ( default Value ) ; final Console Reader reader = get Reader ( ) ; reader . set Prompt ( prompt ) ; Boolean value = null ; boolean prompting = BOOL ; w... | protected boolean promptBoolean ( final String prompt , final Optional < Boolean > defaultValue ) throws IOException { requireNonNull ( prompt ) ; requireNonNull ( defaultValue ) ; final ConsoleReader reader = getReader ( ) ; reader . setPrompt ( prompt ) ; Boolean value = null ; boolean prompting = _BOOL ; while ( pro... | 166 |
java-test-7250 | java | What does the code add to the list ? | system environments | public void add System Runners ( @ Not Null List < Environment > system Environments ) { Default Action Group runners List = ( Default Action Group ) action Manager . get Action ( RUNNER LIST ) ; system Runners . clear ( ) ; clear Runner Actions ( runners List ) ; project Actions . remove All ( ) ; system Actions . rem... | public void addSystemRunners ( @ NotNull List < Environment > systemEnvironments ) { DefaultActionGroup runnersList = ( DefaultActionGroup ) actionManager . getAction ( RUNNER_LIST ) ; systemRunners . clear ( ) ; clearRunnerActions ( runnersList ) ; projectActions . removeAll ( ) ; systemActions . removeAll ( ) ; for (... | 208 |
java-test-7251 | java | What does the code remove ? | all pending bodies | public void update ( ) { for ( int i = NUM ; i < m Bodies To Be Removed . size ( ) ; i ++ ) { m World . destroy Body ( m Bodies To Be Removed . get ( i ) ) ; } m Bodies To Be Removed . clear ( ) ; m World . step ( FRAME RATE , NUM , NUM ) ; m World . clear Forces ( ) ; } | public void update ( ) { for ( int i = _NUM ; i < mBodiesToBeRemoved . size ( ) ; i ++ ) { mWorld . destroyBody ( mBodiesToBeRemoved . get ( i ) ) ; } mBodiesToBeRemoved . clear ( ) ; mWorld . step ( FRAME_RATE , _NUM , _NUM ) ; mWorld . clearForces ( ) ; } | 80 |
java-test-7252 | java | How does the code update the physics world ? | by removing all pending bodies | public void update ( ) { for ( int i = NUM ; i < m Bodies To Be Removed . size ( ) ; i ++ ) { m World . destroy Body ( m Bodies To Be Removed . get ( i ) ) ; } m Bodies To Be Removed . clear ( ) ; m World . step ( FRAME RATE , NUM , NUM ) ; m World . clear Forces ( ) ; } | public void update ( ) { for ( int i = _NUM ; i < mBodiesToBeRemoved . size ( ) ; i ++ ) { mWorld . destroyBody ( mBodiesToBeRemoved . get ( i ) ) ; } mBodiesToBeRemoved . clear ( ) ; mWorld . step ( FRAME_RATE , _NUM , _NUM ) ; mWorld . clearForces ( ) ; } | 80 |
java-test-7253 | java | What does the code update by removing all pending bodies ? | the physics world | public void update ( ) { for ( int i = NUM ; i < m Bodies To Be Removed . size ( ) ; i ++ ) { m World . destroy Body ( m Bodies To Be Removed . get ( i ) ) ; } m Bodies To Be Removed . clear ( ) ; m World . step ( FRAME RATE , NUM , NUM ) ; m World . clear Forces ( ) ; } | public void update ( ) { for ( int i = _NUM ; i < mBodiesToBeRemoved . size ( ) ; i ++ ) { mWorld . destroyBody ( mBodiesToBeRemoved . get ( i ) ) ; } mBodiesToBeRemoved . clear ( ) ; mWorld . step ( FRAME_RATE , _NUM , _NUM ) ; mWorld . clearForces ( ) ; } | 80 |
java-test-7254 | java | What does the code get ? | invoice due date | public static Timestamp invoice Due Date ( int p C Invoice ID ) throws SQL Exception { if ( p C Invoice ID == NUM ) return null ; Timestamp Due Date = null ; String sql = STRING + STRING + STRING ; Prepared Statement pstmt = Adempiere . prepare Statement ( sql ) ; pstmt . set Int ( NUM , p C Invoice ID ) ; Result Set r... | public static Timestamp invoiceDueDate ( int p_C_Invoice_ID ) throws SQLException { if ( p_C_Invoice_ID == _NUM ) return null ; Timestamp DueDate = null ; String sql = STRING + STRING + STRING ; PreparedStatement pstmt = Adempiere . prepareStatement ( sql ) ; pstmt . setInt ( _NUM , p_C_Invoice_ID ) ; ResultSet rs = ps... | 148 |
java-test-7255 | java | What do code correspond ? | volumemount | public static Volume Mount [ ] format Flume Container Volume Mount ( Log Draft log Draft ) { List < Volume Mount > volume Mounts = new Array List < > ( ) ; int idx Suffix = NUM ; for ( Log Item Draft log Item Draft : log Draft . get Log Item Drafts ( ) ) { if ( log Item Draft . is Auto Collect ( ) || log Item Draft . i... | public static VolumeMount [ ] formatFlumeContainerVolumeMount ( LogDraft logDraft ) { List < VolumeMount > volumeMounts = new ArrayList < > ( ) ; int idxSuffix = _NUM ; for ( LogItemDraft logItemDraft : logDraft . getLogItemDrafts ( ) ) { if ( logItemDraft . isAutoCollect ( ) || logItemDraft . isAutoDelete ( ) ) { Volu... | 154 |
java-test-7256 | java | What represents a list of values tokens of format $ { token - name ? | token - name | public String replace List Tokens ( String query String , Map < String , Integer > number Of Replacements , String replacement ) { Matcher matcher = token Pattern . matcher ( query String ) ; String Buffer buf = new String Buffer ( ) ; while ( matcher . find ( ) ) { String orig Token = matcher . group ( NUM ) ; if ( or... | public String replaceListTokens ( String queryString , Map < String , Integer > numberOfReplacements , String replacement ) { Matcher matcher = tokenPattern . matcher ( queryString ) ; StringBuffer buf = new StringBuffer ( ) ; while ( matcher . find ( ) ) { String origToken = matcher . group ( _NUM ) ; if ( origToken !... | 179 |
java-test-7257 | java | What tells how many replacements to produce ( comma - separated ) for each token ? | the numberofreplacements map | public String replace List Tokens ( String query String , Map < String , Integer > number Of Replacements , String replacement ) { Matcher matcher = token Pattern . matcher ( query String ) ; String Buffer buf = new String Buffer ( ) ; while ( matcher . find ( ) ) { String orig Token = matcher . group ( NUM ) ; if ( or... | public String replaceListTokens ( String queryString , Map < String , Integer > numberOfReplacements , String replacement ) { Matcher matcher = tokenPattern . matcher ( queryString ) ; StringBuffer buf = new StringBuffer ( ) ; while ( matcher . find ( ) ) { String origToken = matcher . group ( _NUM ) ; if ( origToken !... | 179 |
java-test-7258 | java | What does token - name represent tokens of format $ { token - name ? | a list of values | public String replace List Tokens ( String query String , Map < String , Integer > number Of Replacements , String replacement ) { Matcher matcher = token Pattern . matcher ( query String ) ; String Buffer buf = new String Buffer ( ) ; while ( matcher . find ( ) ) { String orig Token = matcher . group ( NUM ) ; if ( or... | public String replaceListTokens ( String queryString , Map < String , Integer > numberOfReplacements , String replacement ) { Matcher matcher = tokenPattern . matcher ( queryString ) ; StringBuffer buf = new StringBuffer ( ) ; while ( matcher . find ( ) ) { String origToken = matcher . group ( _NUM ) ; if ( origToken !... | 179 |
java-test-7259 | java | What does some tokens in a query string replace ? | with tokens of format $ { token - name } where token - name represents a list of values | public String replace List Tokens ( String query String , Map < String , Integer > number Of Replacements , String replacement ) { Matcher matcher = token Pattern . matcher ( query String ) ; String Buffer buf = new String Buffer ( ) ; while ( matcher . find ( ) ) { String orig Token = matcher . group ( NUM ) ; if ( or... | public String replaceListTokens ( String queryString , Map < String , Integer > numberOfReplacements , String replacement ) { Matcher matcher = tokenPattern . matcher ( queryString ) ; StringBuffer buf = new StringBuffer ( ) ; while ( matcher . find ( ) ) { String origToken = matcher . group ( _NUM ) ; if ( origToken !... | 179 |
java-test-7260 | java | What do the numberofreplacements map tell ? | how many replacements to produce ( comma - separated ) for each token | public String replace List Tokens ( String query String , Map < String , Integer > number Of Replacements , String replacement ) { Matcher matcher = token Pattern . matcher ( query String ) ; String Buffer buf = new String Buffer ( ) ; while ( matcher . find ( ) ) { String orig Token = matcher . group ( NUM ) ; if ( or... | public String replaceListTokens ( String queryString , Map < String , Integer > numberOfReplacements , String replacement ) { Matcher matcher = tokenPattern . matcher ( queryString ) ; StringBuffer buf = new StringBuffer ( ) ; while ( matcher . find ( ) ) { String origToken = matcher . group ( _NUM ) ; if ( origToken !... | 179 |
java-test-7261 | java | Where does token - name represent a list of values ? | tokens of format $ { token - name | public String replace List Tokens ( String query String , Map < String , Integer > number Of Replacements , String replacement ) { Matcher matcher = token Pattern . matcher ( query String ) ; String Buffer buf = new String Buffer ( ) ; while ( matcher . find ( ) ) { String orig Token = matcher . group ( NUM ) ; if ( or... | public String replaceListTokens ( String queryString , Map < String , Integer > numberOfReplacements , String replacement ) { Matcher matcher = tokenPattern . matcher ( queryString ) ; StringBuffer buf = new StringBuffer ( ) ; while ( matcher . find ( ) ) { String origToken = matcher . group ( _NUM ) ; if ( origToken !... | 179 |
java-test-7263 | java | What does the code create ? | the blockobject blocksnapshot data | private void create Block Snapshot Data ( String name , int num Snapshots ) throws Exception { Volume volume = new Volume ( ) ; URI volume URI = URI Util . create Id ( Volume . class ) ; test Volume UR Is . add ( volume URI ) ; volume . set Id ( volume URI ) ; String vol Name = STRING ; volume . set Label ( vol Name ) ... | private void createBlockSnapshotData ( String name , int numSnapshots ) throws Exception { Volume volume = new Volume ( ) ; URI volumeURI = URIUtil . createId ( Volume . class ) ; testVolumeURIs . add ( volumeURI ) ; volume . setId ( volumeURI ) ; String volName = STRING ; volume . setLabel ( volName ) ; URI cgUri = cr... | 267 |
java-test-7264 | java | For what purpose does listeners install ? | for the entire route | public String allocate Route ( List < Block Order > orders ) { if ( total Allocated ) { return null ; } if ( orders == null ) { orders = get Block Orders ( ) ; } else { orders = orders ; } allocated = BOOL ; total Allocated = BOOL ; String msg = check In Service ( ) ; if ( msg != null ) { total Allocated = BOOL ; retur... | public String allocateRoute ( List < BlockOrder > orders ) { if ( _totalAllocated ) { return null ; } if ( orders == null ) { _orders = getBlockOrders ( ) ; } else { _orders = orders ; } _allocated = _BOOL ; _totalAllocated = _BOOL ; String msg = checkInService ( ) ; if ( msg != null ) { _totalAllocated = _BOOL ; retur... | 122 |
java-test-7265 | java | What does the code create ? | a new unique temp file in the jvm temp directory which can be used for persistence | public static File create Temp File ( ) { File temp File ; try { temp File = File . create Temp File ( STRING , STRING ) ; } catch ( Exception e ) { throw new Illegal State Exception ( STRING , e ) ; } return temp File ; } | public static File createTempFile ( ) { File tempFile ; try { tempFile = File . createTempFile ( STRING , STRING ) ; } catch ( Exception e ) { throw new IllegalStateException ( STRING , e ) ; } return tempFile ; } | 53 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.