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-7005 | java | What does the code create using random sampling with replacement ? | a new dataset of the same size | public Instances resample ( Random random ) { Instances new Data = new Instances ( this , num Instances ( ) ) ; while ( new Data . num Instances ( ) < num Instances ( ) ) { new Data . add ( instance ( random . next Int ( num Instances ( ) ) ) ) ; } return new Data ; } | public Instances resample ( Random random ) { Instances newData = new Instances ( this , numInstances ( ) ) ; while ( newData . numInstances ( ) < numInstances ( ) ) { newData . add ( instance ( random . nextInt ( numInstances ( ) ) ) ) ; } return newData ; } | 65 |
java-test-7006 | java | How do random sampling use ? | with replacement | public Instances resample ( Random random ) { Instances new Data = new Instances ( this , num Instances ( ) ) ; while ( new Data . num Instances ( ) < num Instances ( ) ) { new Data . add ( instance ( random . next Int ( num Instances ( ) ) ) ) ; } return new Data ; } | public Instances resample ( Random random ) { Instances newData = new Instances ( this , numInstances ( ) ) ; while ( newData . numInstances ( ) < numInstances ( ) ) { newData . add ( instance ( random . nextInt ( numInstances ( ) ) ) ) ; } return newData ; } | 65 |
java-test-7008 | java | What does the code decode ? | the object from byte buffer | @ Suppress Warnings ( { STRING , STRING } ) public Object decode ( Byte Buffer buffer ) { byte type = buffer . get ( ) ; switch ( type ) { case TYPE NULL : return null ; case TYPE LIST : { int length = buffer . get Int ( ) ; List l = new Array List ( length ) ; for ( int i = NUM ; i < length ; i ++ ) { l . add ( decode... | @ SuppressWarnings ( { STRING , STRING } ) public Object decode ( ByteBuffer buffer ) { byte type = buffer . get ( ) ; switch ( type ) { case TYPE_NULL : return null ; case TYPE_LIST : { int length = buffer . getInt ( ) ; List l = new ArrayList ( length ) ; for ( int i = _NUM ; i < length ; i ++ ) { l . add ( decode ( ... | 429 |
java-test-7011 | java | Where did the object locate ? | at the address | public static Object from Address ( long address ) { Object [ ] array = new Object [ ] { null } ; long base Offset = unsafe . array Base Offset ( Object [ ] . class ) ; unsafe . put Long ( array , base Offset , address ) ; return array [ NUM ] ; } | public static Object fromAddress ( long address ) { Object [ ] array = new Object [ ] { null } ; long baseOffset = unsafe . arrayBaseOffset ( Object [ ] . class ) ; unsafe . putLong ( array , baseOffset , address ) ; return array [ _NUM ] ; } | 60 |
java-test-7012 | java | What does the code create ? | a new minimumsizeenforcer | public Shell Minimum Size Enforcer ( final Shell shell , final int minimum Width , final int minimum Height ) { this . shell = shell ; this . minimum Width = minimum Width ; this . minimum Height = minimum Height ; current Location = shell . get Location ( ) ; if ( ( FORCE LEGACY BEHAVIOR || ! attempt Set Minimum Size ... | public ShellMinimumSizeEnforcer ( final Shell shell , final int minimumWidth , final int minimumHeight ) { this . shell = shell ; this . minimumWidth = minimumWidth ; this . minimumHeight = minimumHeight ; currentLocation = shell . getLocation ( ) ; if ( ( FORCE_LEGACY_BEHAVIOR || ! attemptSetMinimumSize ( ) ) && ! Win... | 111 |
java-test-7014 | java | What does the code create ? | a type alias for a static inner type with the given fullname and nickname | public Type Name ( String full Name , String nickname , String parent Type Name ) { this . top Level Alias = Type Alias . create ( full Name , nickname , parent Type Name ) ; this . pattern = null ; this . inner Type Names = Arrays . as List ( ) ; } | public TypeName ( String fullName , String nickname , String parentTypeName ) { this . topLevelAlias = TypeAlias . create ( fullName , nickname , parentTypeName ) ; this . pattern = null ; this . innerTypeNames = Arrays . asList ( ) ; } | 58 |
java-test-7016 | java | What does the code remove from the memory ? | a memory region | public void remove ( final long address , final int length ) { Preconditions . check Argument ( address >= NUM , STRING ) ; Preconditions . check Argument ( length > NUM , STRING ) ; try { m write Lock . lock ( ) ; final Memory Chunk chunk = find Chunk ( address ) ; if ( chunk == null ) { final Memory Chunk next Chunk ... | public void remove ( final long address , final int length ) { Preconditions . checkArgument ( address >= _NUM , STRING ) ; Preconditions . checkArgument ( length > _NUM , STRING ) ; try { m_writeLock . lock ( ) ; final MemoryChunk chunk = findChunk ( address ) ; if ( chunk == null ) { final MemoryChunk nextChunk = fin... | 399 |
java-test-7017 | java | What does the code continue ? | a line along a given direction to the margin | public double continue To Margin ( double [ ] origin , double [ ] delta ) { assert ( delta . length == NUM && origin . length == NUM ) ; double factor = Double . POSITIVE INFINITY ; if ( delta [ NUM ] > NUM ) { factor = Math . min ( factor , ( maxx - origin [ NUM ] ) / delta [ NUM ] ) ; } else if ( delta [ NUM ] < NUM ... | public double continueToMargin ( double [ ] origin , double [ ] delta ) { assert ( delta . length == _NUM && origin . length == _NUM ) ; double factor = Double . POSITIVE_INFINITY ; if ( delta [ _NUM ] > _NUM ) { factor = Math . min ( factor , ( maxx - origin [ _NUM ] ) / delta [ _NUM ] ) ; } else if ( delta [ _NUM ] <... | 184 |
java-test-7018 | java | What do the keys in the specified namespace have ? | 1 or more values assigned | public Set < Byte String > keys ( Byte String namespace ) { if ( namespace != null ) { Set Multimap < Byte String , Byte String > namespace Data = contents . get ( namespace ) ; if ( namespace Data != null ) { return namespace Data . key Set ( ) ; } } return Collections . empty Set ( ) ; } | public Set < ByteString > keys ( ByteString namespace ) { if ( namespace != null ) { SetMultimap < ByteString , ByteString > namespaceData = contents . get ( namespace ) ; if ( namespaceData != null ) { return namespaceData . keySet ( ) ; } } return Collections . emptySet ( ) ; } | 67 |
java-test-7019 | java | What have 1 or more values assigned ? | the keys in the specified namespace | public Set < Byte String > keys ( Byte String namespace ) { if ( namespace != null ) { Set Multimap < Byte String , Byte String > namespace Data = contents . get ( namespace ) ; if ( namespace Data != null ) { return namespace Data . key Set ( ) ; } } return Collections . empty Set ( ) ; } | public Set < ByteString > keys ( ByteString namespace ) { if ( namespace != null ) { SetMultimap < ByteString , ByteString > namespaceData = contents . get ( namespace ) ; if ( namespaceData != null ) { return namespaceData . keySet ( ) ; } } return Collections . emptySet ( ) ; } | 67 |
java-test-7020 | java | What does them save ? | to database | @ Suppress Lint ( STRING ) private boolean perform Cells Update ( final Location location , final String provider Name ) { if ( ! prefs . get Boolean ( Preferences . KEY LOG CELLS , Preferences . VAL SAVE CELLS ) ) { Log . i ( TAG , STRING ) ; return BOOL ; } if ( ! Geometry Utils . is Valid Location ( location ) ) { L... | @ SuppressLint ( STRING ) private boolean performCellsUpdate ( final Location location , final String providerName ) { if ( ! prefs . getBoolean ( Preferences . KEY_LOG_CELLS , Preferences . VAL_SAVE_CELLS ) ) { Log . i ( TAG , STRING ) ; return _BOOL ; } if ( ! GeometryUtils . isValidLocation ( location ) ) { Log . e ... | 389 |
java-test-7023 | java | What does the code write ? | an omrect to the link | public static void write ( OM Rect rect , Link link , Link Properties props ) throws IO Exception { switch ( rect . get Render Type ( ) ) { case OM Rect . RENDERTYPE LATLON : Link Rectangle . write ( ( float ) rect . get North Lat ( ) , ( float ) rect . get West Lon ( ) , ( float ) rect . get South Lat ( ) , ( float ) ... | public static void write ( OMRect rect , Link link , LinkProperties props ) throws IOException { switch ( rect . getRenderType ( ) ) { case OMRect . RENDERTYPE_LATLON : LinkRectangle . write ( ( float ) rect . getNorthLat ( ) , ( float ) rect . getWestLon ( ) , ( float ) rect . getSouthLat ( ) , ( float ) rect . getEas... | 235 |
java-test-7024 | java | What do i cancel ? | a scheduled ) notification | @ React Method public void r Delete All ( Callback error Callback , Callback success Callback ) { try { Array List < Integer > ids = m Notification Manager . get I Ds ( ) ; for ( Integer id : ids ) { try { m Notification Manager . delete ( id ) ; } catch ( Exception e ) { Log . e ( STRING , STRING + Log . get Stack Tra... | @ ReactMethod public void rDeleteAll ( Callback errorCallback , Callback successCallback ) { try { ArrayList < Integer > ids = mNotificationManager . getIDs ( ) ; for ( Integer id : ids ) { try { mNotificationManager . delete ( id ) ; } catch ( Exception e ) { Log . e ( STRING , STRING + Log . getStackTraceString ( e )... | 132 |
java-test-7025 | java | How is reindex done once once ? | onl | public void insert Child ( Node [ ] nodes , int index ) { for ( Node node : nodes ) { node . detach From Parent ( ) ; node . parent Node = this ; try { init Child Nodes ( node ) ; child Nodes . add ( index , node ) ; index ++ ; } catch ( Index Out Of Bounds Exception ignore ) { throw new Lagarto DOM Exception ( STRING ... | public void insertChild ( Node [ ] nodes , int index ) { for ( Node node : nodes ) { node . detachFromParent ( ) ; node . parentNode = this ; try { initChildNodes ( node ) ; childNodes . add ( index , node ) ; index ++ ; } catch ( IndexOutOfBoundsException ignore ) { throw new LagartoDOMException ( STRING + index ) ; }... | 89 |
java-test-7026 | java | How does warnings log into this method ? | with little formatting to the warning or error stream flex hooks | public int simple Log Warnings ( Context cx , boolean log As Errors ) { Compiler Handler handler = cx . get Handler ( ) ; if ( handler == null ) { handler = cx . statics . handler ; } int count = NUM ; for ( Tree Map < Integer , Set < Warning Record > > loc Map : warnings By Loc . values ( ) ) { for ( Set < Warning Rec... | public int simpleLogWarnings ( Context cx , boolean logAsErrors ) { CompilerHandler handler = cx . getHandler ( ) ; if ( handler == null ) { handler = cx . statics . handler ; } int count = _NUM ; for ( TreeMap < Integer , Set < WarningRecord > > locMap : warningsByLoc . values ( ) ) { for ( Set < WarningRecord > recor... | 232 |
java-test-7027 | java | By how much do to the warning or error stream flex hooks format ? | little | public int simple Log Warnings ( Context cx , boolean log As Errors ) { Compiler Handler handler = cx . get Handler ( ) ; if ( handler == null ) { handler = cx . statics . handler ; } int count = NUM ; for ( Tree Map < Integer , Set < Warning Record > > loc Map : warnings By Loc . values ( ) ) { for ( Set < Warning Rec... | public int simpleLogWarnings ( Context cx , boolean logAsErrors ) { CompilerHandler handler = cx . getHandler ( ) ; if ( handler == null ) { handler = cx . statics . handler ; } int count = _NUM ; for ( TreeMap < Integer , Set < WarningRecord > > locMap : warningsByLoc . values ( ) ) { for ( Set < WarningRecord > recor... | 232 |
java-test-7028 | java | What uses it ? | nothing in asc | public int simple Log Warnings ( Context cx , boolean log As Errors ) { Compiler Handler handler = cx . get Handler ( ) ; if ( handler == null ) { handler = cx . statics . handler ; } int count = NUM ; for ( Tree Map < Integer , Set < Warning Record > > loc Map : warnings By Loc . values ( ) ) { for ( Set < Warning Rec... | public int simpleLogWarnings ( Context cx , boolean logAsErrors ) { CompilerHandler handler = cx . getHandler ( ) ; if ( handler == null ) { handler = cx . statics . handler ; } int count = _NUM ; for ( TreeMap < Integer , Set < WarningRecord > > locMap : warningsByLoc . values ( ) ) { for ( Set < WarningRecord > recor... | 232 |
java-test-7029 | java | What does them append ? | to builder | private void append Text ( Comment Tokenizer tokenizer , String Builder builder ) { while ( tokenizer . has Next ( ) && tokenizer . peek Next ( ) . kind == Token Kind . TEXT ) { String text = tokenizer . poll Next ( ) . text ; if ( builder . length ( ) > NUM && builder . char At ( builder . length ( ) - NUM ) != STRING... | private void appendText ( CommentTokenizer tokenizer , StringBuilder builder ) { while ( tokenizer . hasNext ( ) && tokenizer . peekNext ( ) . kind == TokenKind . TEXT ) { String text = tokenizer . pollNext ( ) . text ; if ( builder . length ( ) > _NUM && builder . charAt ( builder . length ( ) - _NUM ) != STRING && ! ... | 103 |
java-test-7030 | java | What does the code release ? | the proxy lock on the mapmousemode | public void release Proxy ( ) { Map Mouse Mode mmm = mouse Support . get Proxied ( ) ; if ( mmm != null ) { mouse Support . release Proxy ( ) ; property Change Support . fire Property Change ( Mouse Delegator . Proxy Mouse Mode Property , mmm , null ) ; } } | public void releaseProxy ( ) { MapMouseMode mmm = mouseSupport . getProxied ( ) ; if ( mmm != null ) { mouseSupport . releaseProxy ( ) ; propertyChangeSupport . firePropertyChange ( MouseDelegator . ProxyMouseModeProperty , mmm , null ) ; } } | 58 |
java-test-7031 | java | What facilitates mappings from property values to character intervals ? | the code based on the given version | private void init ( String version ) throws Unsupported Unicode Version Exception { if ( version . equals ( STRING ) || version . equals ( STRING ) ) { bind ( Unicode 1 1 . property Values , Unicode 1 1 . intervals , Unicode 1 1 . property Value Aliases , Unicode 1 1 . maximum Code Point , Unicode 1 1 . caseless Match ... | private void init ( String version ) throws UnsupportedUnicodeVersionException { if ( version . equals ( STRING ) || version . equals ( STRING ) ) { bind ( Unicode_1_1 . propertyValues , Unicode_1_1 . intervals , Unicode_1_1 . propertyValueAliases , Unicode_1_1 . maximumCodePoint , Unicode_1_1 . caselessMatchPartitions... | 1,230 |
java-test-7032 | java | What does the code based on the given version facilitate ? | mappings from property values to character intervals | private void init ( String version ) throws Unsupported Unicode Version Exception { if ( version . equals ( STRING ) || version . equals ( STRING ) ) { bind ( Unicode 1 1 . property Values , Unicode 1 1 . intervals , Unicode 1 1 . property Value Aliases , Unicode 1 1 . maximum Code Point , Unicode 1 1 . caseless Match ... | private void init ( String version ) throws UnsupportedUnicodeVersionException { if ( version . equals ( STRING ) || version . equals ( STRING ) ) { bind ( Unicode_1_1 . propertyValues , Unicode_1_1 . intervals , Unicode_1_1 . propertyValueAliases , Unicode_1_1 . maximumCodePoint , Unicode_1_1 . caselessMatchPartitions... | 1,230 |
java-test-7033 | java | How has refreshtimer been registered ? | without problems | static void validate Refresh Timer ( ) { if ( refresh Timer Object Name == null || refresh Timer == null ) { create Refresh Timer ( ) ; } raise On Failure ( refresh Timer != null , STRING ) ; if ( mbean Server != null && ! mbean Server . is Registered ( refresh Timer Object Name ) ) { try { mbean Server . register M Be... | static void validateRefreshTimer ( ) { if ( refreshTimerObjectName == null || refreshTimer == null ) { createRefreshTimer ( ) ; } raiseOnFailure ( refreshTimer != null , STRING ) ; if ( mbeanServer != null && ! mbeanServer . isRegistered ( refreshTimerObjectName ) ) { try { mbeanServer . registerMBean ( refreshTimer , ... | 123 |
java-test-7034 | java | What does the code create ? | the list of worldicons | private List < World Icon > create Cache ( ) { List < World Icon > result = do Create Cache ( ) ; if ( result == null ) { return Collections . empty List ( ) ; } else { return Collections . unmodifiable List ( result ) ; } } | private List < WorldIcon > createCache ( ) { List < WorldIcon > result = doCreateCache ( ) ; if ( result == null ) { return Collections . emptyList ( ) ; } else { return Collections . unmodifiableList ( result ) ; } } | 53 |
java-test-7036 | java | How is the serialization done ? | by calling dataserializer . writeobject | public void write As Serialized Byte Array ( Object v ) throws IO Exception { if ( this . ignore Writes ) return ; check If Writable ( ) ; ensure Capacity ( NUM ) ; if ( v instanceof Heap Data Output Stream ) { Heap Data Output Stream other = ( Heap Data Output Stream ) v ; other . finish Writing ( ) ; Internal Data Se... | public void writeAsSerializedByteArray ( Object v ) throws IOException { if ( this . ignoreWrites ) return ; checkIfWritable ( ) ; ensureCapacity ( _NUM ) ; if ( v instanceof HeapDataOutputStream ) { HeapDataOutputStream other = ( HeapDataOutputStream ) v ; other . finishWriting ( ) ; InternalDataSerializer . writeArra... | 251 |
java-test-7037 | java | How is the byte array produced ? | by serializing v | public void write As Serialized Byte Array ( Object v ) throws IO Exception { if ( this . ignore Writes ) return ; check If Writable ( ) ; ensure Capacity ( NUM ) ; if ( v instanceof Heap Data Output Stream ) { Heap Data Output Stream other = ( Heap Data Output Stream ) v ; other . finish Writing ( ) ; Internal Data Se... | public void writeAsSerializedByteArray ( Object v ) throws IOException { if ( this . ignoreWrites ) return ; checkIfWritable ( ) ; ensureCapacity ( _NUM ) ; if ( v instanceof HeapDataOutputStream ) { HeapDataOutputStream other = ( HeapDataOutputStream ) v ; other . finishWriting ( ) ; InternalDataSerializer . writeArra... | 251 |
java-test-7038 | java | What does the code load ? | the properties of the artifact | public Properties load Properties ( String artifact , String version ) throws IO Exception { Properties props = new Properties ( ) ; Path properties File = get Properties File ( artifact , version ) ; if ( ! Files . exists ( properties File ) ) { throw new Artifact Not Found Exception ( artifact , version ) ; } try ( I... | public Properties loadProperties ( String artifact , String version ) throws IOException { Properties props = new Properties ( ) ; Path propertiesFile = getPropertiesFile ( artifact , version ) ; if ( ! Files . exists ( propertiesFile ) ) { throw new ArtifactNotFoundException ( artifact , version ) ; } try ( InputStrea... | 96 |
java-test-7041 | java | Till when does it not be in the list of expanded path ? | until the new path is a descendant | private void collapse Up From Last Parent ( final Tree Path new Path ) { Tree Path current Parent = m last Parent ; while ( current Parent != null && ! current Parent . is Descendant ( new Path ) && ! stay Expanded Contains Descendant Of ( current Parent ) ) { m tree . collapse Path ( current Parent ) ; current Parent ... | private void collapseUpFromLastParent ( final TreePath newPath ) { TreePath currentParent = m_lastParent ; while ( currentParent != null && ! currentParent . isDescendant ( newPath ) && ! stayExpandedContainsDescendantOf ( currentParent ) ) { m_tree . collapsePath ( currentParent ) ; currentParent = currentParent . get... | 78 |
java-test-7042 | java | What does the code draw ? | the x tick | private void draw X Tick ( Graphics grahics ) { grahics . set Font ( scale . get Font ( ) ) ; for ( int i = NUM ; i < tick Label Positions . size ( ) ; i ++ ) { if ( tick Visibilities . get ( i ) == BOOL ) { String text = tick Labels . get ( i ) ; int font Width = Figure Utilities . get Text Extents ( text , get Font (... | private void drawXTick ( Graphics grahics ) { grahics . setFont ( scale . getFont ( ) ) ; for ( int i = _NUM ; i < tickLabelPositions . size ( ) ; i ++ ) { if ( tickVisibilities . get ( i ) == _BOOL ) { String text = tickLabels . get ( i ) ; int fontWidth = FigureUtilities . getTextExtents ( text , getFont ( ) ) . widt... | 129 |
java-test-7043 | java | How is this tested ? | using erdos - gallai condition on degree distribution graphicality | private boolean passes Erdos Gallai Test ( ) { Mutable Degree Distribution copy = new Mutable Simple Degree Distribution ( get Degrees ( ) ) ; int L = copy . size ( ) ; int degree Sum = NUM ; for ( int degree : copy . get Degrees ( ) ) { if ( degree < NUM ) { return BOOL ; } degree Sum += degree ; } if ( degree Sum % N... | private boolean passesErdosGallaiTest ( ) { MutableDegreeDistribution copy = new MutableSimpleDegreeDistribution ( getDegrees ( ) ) ; int L = copy . size ( ) ; int degreeSum = _NUM ; for ( int degree : copy . getDegrees ( ) ) { if ( degree < _NUM ) { return _BOOL ; } degreeSum += degree ; } if ( degreeSum % _NUM != _NU... | 201 |
java-test-7044 | java | What do the output write ? | to an output file | public String parse ( String input Template , String intput Encoding , String output File , String output Encoding , String object ID , Object object ) throws Exception { if ( object ID != null && object != null ) { control Context . put ( object ID , object ) ; } Template template = get Template ( input Template , inp... | public String parse ( String inputTemplate , String intputEncoding , String outputFile , String outputEncoding , String objectID , Object object ) throws Exception { if ( objectID != null && object != null ) { controlContext . put ( objectID , object ) ; } Template template = getTemplate ( inputTemplate , inputEncoding... | 227 |
java-test-7047 | java | What does this method validate raising an exception if the response reflects an operation failure ? | a createdisksresponse object | private static Create Disks Response check Create Disks Response ( Create Disks Response create Disks Response ) throws Rpc Exception { logger . info ( STRING , create Disks Response ) ; switch ( create Disks Response . get Result ( ) ) { case OK : break ; case INVALID RESERVATION : throw new Invalid Reservation Except... | private static CreateDisksResponse checkCreateDisksResponse ( CreateDisksResponse createDisksResponse ) throws RpcException { logger . info ( STRING , createDisksResponse ) ; switch ( createDisksResponse . getResult ( ) ) { case OK : break ; case INVALID_RESERVATION : throw new InvalidReservationException ( createDisks... | 120 |
java-test-7049 | java | What does the code create ? | a step in the passed workflow to do a native restore of the backend snapshot with the passed uri | private String create Workflow Step For Restore Native Snapshot ( Workflow workflow , Storage System parent System , URI parent Volume URI , URI snapshot URI , URI parent Pool URI , String wait For , Workflow . Method rollback Method ) { URI parent System URI = parent System . get Id ( ) ; Workflow . Method restore Vol... | private String createWorkflowStepForRestoreNativeSnapshot ( Workflow workflow , StorageSystem parentSystem , URI parentVolumeURI , URI snapshotURI , URI parentPoolURI , String waitFor , Workflow . Method rollbackMethod ) { URI parentSystemURI = parentSystem . getId ( ) ; Workflow . Method restoreVolumeMethod = new Work... | 170 |
java-test-7051 | java | Where does it report the error ? | at line line + 1 , column loc + 1 | public static int find End Of String ( String str , int loc , int line ) throws Parse Algorithm Exception { int pos = loc + NUM ; boolean found = BOOL ; while ( ( ! found ) && ( pos < str . length ( ) ) ) { char c = str . char At ( pos ) ; if ( c == STRING ) { found = BOOL ; } else if ( c == STRING && ( pos < str . len... | public static int findEndOfString ( String str , int loc , int line ) throws ParseAlgorithmException { int pos = loc + _NUM ; boolean found = _BOOL ; while ( ( ! found ) && ( pos < str . length ( ) ) ) { char c = str . charAt ( pos ) ; if ( c == STRING ) { found = _BOOL ; } else if ( c == STRING && ( pos < str . length... | 139 |
java-test-7052 | java | What does this method assume ? | that str is a string whose character at position loc is a quote ( " ) . it returns the position immediately after the matching quote that ends a tla + string . if there is no matching quote , then it throws a parsealgorithmexception , reporting the error at line line + 1 , column loc + 1 | public static int find End Of String ( String str , int loc , int line ) throws Parse Algorithm Exception { int pos = loc + NUM ; boolean found = BOOL ; while ( ( ! found ) && ( pos < str . length ( ) ) ) { char c = str . char At ( pos ) ; if ( c == STRING ) { found = BOOL ; } else if ( c == STRING && ( pos < str . len... | public static int findEndOfString ( String str , int loc , int line ) throws ParseAlgorithmException { int pos = loc + _NUM ; boolean found = _BOOL ; while ( ( ! found ) && ( pos < str . length ( ) ) ) { char c = str . charAt ( pos ) ; if ( c == STRING ) { found = _BOOL ; } else if ( c == STRING && ( pos < str . length... | 139 |
java-test-7053 | java | When is it returns the position ? | immediately after the matching quote that ends a tla + string | public static int find End Of String ( String str , int loc , int line ) throws Parse Algorithm Exception { int pos = loc + NUM ; boolean found = BOOL ; while ( ( ! found ) && ( pos < str . length ( ) ) ) { char c = str . char At ( pos ) ; if ( c == STRING ) { found = BOOL ; } else if ( c == STRING && ( pos < str . len... | public static int findEndOfString ( String str , int loc , int line ) throws ParseAlgorithmException { int pos = loc + _NUM ; boolean found = _BOOL ; while ( ( ! found ) && ( pos < str . length ( ) ) ) { char c = str . charAt ( pos ) ; if ( c == STRING ) { found = _BOOL ; } else if ( c == STRING && ( pos < str . length... | 139 |
java-test-7054 | java | What does writejunittestfiles write from a list of lists of executable sequences ? | a suite of test class files | public List < File > write J Unit Test Files ( List < List < Executable Sequence > > seq Partition ) { List < File > ret = new Array List < > ( ) ; Name Generator class Name Gen = new Name Generator ( master Test Class Name ) ; create Output Dir ( ) ; for ( List < Executable Sequence > partition : seq Partition ) { ret... | public List < File > writeJUnitTestFiles ( List < List < ExecutableSequence > > seqPartition ) { List < File > ret = new ArrayList < > ( ) ; NameGenerator classNameGen = new NameGenerator ( masterTestClassName ) ; createOutputDir ( ) ; for ( List < ExecutableSequence > partition : seqPartition ) { ret . add ( writeTest... | 110 |
java-test-7055 | java | What writes a suite of test class files from a list of lists of executable sequences ? | writejunittestfiles | public List < File > write J Unit Test Files ( List < List < Executable Sequence > > seq Partition ) { List < File > ret = new Array List < > ( ) ; Name Generator class Name Gen = new Name Generator ( master Test Class Name ) ; create Output Dir ( ) ; for ( List < Executable Sequence > partition : seq Partition ) { ret... | public List < File > writeJUnitTestFiles ( List < List < ExecutableSequence > > seqPartition ) { List < File > ret = new ArrayList < > ( ) ; NameGenerator classNameGen = new NameGenerator ( masterTestClassName ) ; createOutputDir ( ) ; for ( List < ExecutableSequence > partition : seqPartition ) { ret . add ( writeTest... | 110 |
java-test-7056 | java | What does the code destroy ? | the given region | private void basic Destroy ( Local Region region , Disk Region dr ) { if ( dr . is Backup ( ) ) { if ( region != null ) { region . close Entries ( ) ; } Persistent Oplog Set oplog Set = get Persistent Oplog Set ( dr ) ; oplog Set . basic Destroy ( dr ) ; } else { dr . free All Entries On Disk ( region ) ; if ( region !... | private void basicDestroy ( LocalRegion region , DiskRegion dr ) { if ( dr . isBackup ( ) ) { if ( region != null ) { region . closeEntries ( ) ; } PersistentOplogSet oplogSet = getPersistentOplogSet ( dr ) ; oplogSet . basicDestroy ( dr ) ; } else { dr . freeAllEntriesOnDisk ( region ) ; if ( region != null ) { region... | 93 |
java-test-7057 | java | What must be stored in the database connected to by the provider argument ? | the given debugger template | public static void delete Debugger ( final Abstract SQL Provider provider , final Debugger Template debugger ) throws Couldnt Delete Exception { Preconditions . check Not Null ( debugger , STRING ) ; Preconditions . check Argument ( debugger . in Same Database ( provider ) , STRING ) ; Navi Logger . info ( STRING , deb... | public static void deleteDebugger ( final AbstractSQLProvider provider , final DebuggerTemplate debugger ) throws CouldntDeleteException { Preconditions . checkNotNull ( debugger , STRING ) ; Preconditions . checkArgument ( debugger . inSameDatabase ( provider ) , STRING ) ; NaviLogger . info ( STRING , debugger . getI... | 96 |
java-test-7058 | java | What perform on a state machine ? | init operations | public Set < State > init And Start ( State Machine state Machine ) { Context context = new RAM Context ( System . current Time Millis ( ) , null , state Machine ) ; final List < String > triggered Events = events DAO . find Triggered Events Names By SM Id ( state Machine . get Id ( ) ) ; Set < State > initial States =... | public Set < State > initAndStart ( StateMachine stateMachine ) { Context context = new RAMContext ( System . currentTimeMillis ( ) , null , stateMachine ) ; final List < String > triggeredEvents = eventsDAO . findTriggeredEventsNamesBySMId ( stateMachine . getId ( ) ) ; Set < State > initialStates = context . getIniti... | 108 |
java-test-7059 | java | Where do init operations perform ? | on a state machine | public Set < State > init And Start ( State Machine state Machine ) { Context context = new RAM Context ( System . current Time Millis ( ) , null , state Machine ) ; final List < String > triggered Events = events DAO . find Triggered Events Names By SM Id ( state Machine . get Id ( ) ) ; Set < State > initial States =... | public Set < State > initAndStart ( StateMachine stateMachine ) { Context context = new RAMContext ( System . currentTimeMillis ( ) , null , stateMachine ) ; final List < String > triggeredEvents = eventsDAO . findTriggeredEventsNamesBySMId ( stateMachine . getId ( ) ) ; Set < State > initialStates = context . getIniti... | 108 |
java-test-7060 | java | What does the code note ? | the results in the lattice | private void simulate Block ( Ssa Basic Block block ) { for ( Ssa Insn insn : block . get Insns ( ) ) { if ( insn instanceof Phi Insn ) { simulate Phi ( ( Phi Insn ) insn ) ; } else { simulate Stmt ( insn ) ; } } } | private void simulateBlock ( SsaBasicBlock block ) { for ( SsaInsn insn : block . getInsns ( ) ) { if ( insn instanceof PhiInsn ) { simulatePhi ( ( PhiInsn ) insn ) ; } else { simulateStmt ( insn ) ; } } } | 55 |
java-test-7061 | java | What did the given range produce ? | an empty text | public Attributed String ( Attributed Character Iterator text , int begin Index , int end Index , Attribute [ ] attributes ) { if ( text == null ) { throw new Null Pointer Exception ( ) ; } int text Begin Index = text . get Begin Index ( ) ; int text End Index = text . get End Index ( ) ; if ( begin Index < text Begin ... | public AttributedString ( AttributedCharacterIterator text , int beginIndex , int endIndex , Attribute [ ] attributes ) { if ( text == null ) { throw new NullPointerException ( ) ; } int textBeginIndex = text . getBeginIndex ( ) ; int textEndIndex = text . getEndIndex ( ) ; if ( beginIndex < textBeginIndex || endIndex ... | 505 |
java-test-7062 | java | What match the given attributes ? | only attributes | public Attributed String ( Attributed Character Iterator text , int begin Index , int end Index , Attribute [ ] attributes ) { if ( text == null ) { throw new Null Pointer Exception ( ) ; } int text Begin Index = text . get Begin Index ( ) ; int text End Index = text . get End Index ( ) ; if ( begin Index < text Begin ... | public AttributedString ( AttributedCharacterIterator text , int beginIndex , int endIndex , Attribute [ ] attributes ) { if ( text == null ) { throw new NullPointerException ( ) ; } int textBeginIndex = text . getBeginIndex ( ) ; int textEndIndex = text . getEndIndex ( ) ; if ( beginIndex < textBeginIndex || endIndex ... | 505 |
java-test-7067 | java | What did the code read ? | data from given input stream | public void import From ( Data Input Stream in ) throws IO Exception { seq Id = in . read Int ( ) ; n Rows = info . is Row Block Enabled ( ) ? in . read Int ( ) : NUM ; import From ( in , primary Key ) ; for ( int i = NUM ; i < info . col Blocks . length ; i ++ ) { Byte Array cb = cell Blocks [ i ] ; import From ( in ,... | public void importFrom ( DataInputStream in ) throws IOException { seqId = in . readInt ( ) ; nRows = info . isRowBlockEnabled ( ) ? in . readInt ( ) : _NUM ; importFrom ( in , primaryKey ) ; for ( int i = _NUM ; i < info . colBlocks . length ; i ++ ) { ByteArray cb = cellBlocks [ i ] ; importFrom ( in , cb ) ; } } | 94 |
java-test-7068 | java | How do the corner smothen ? | by adding an extra line | private Pla Line Int smoothen corner ( Pla Line Int Alist p line arr , int p start no ) { if ( p line arr . size ( ) - p start no < NUM ) return null ; Pla Line Int cur line = p line arr . get ( p start no ) ; Pla Line Int a line = p line arr . get ( p start no + NUM ) ; Pla Line Int b line = p line arr . get ( p start... | private PlaLineInt smoothen_corner ( PlaLineIntAlist p_line_arr , int p_start_no ) { if ( p_line_arr . size ( ) - p_start_no < _NUM ) return null ; PlaLineInt cur_line = p_line_arr . get ( p_start_no ) ; PlaLineInt a_line = p_line_arr . get ( p_start_no + _NUM ) ; PlaLineInt b_line = p_line_arr . get ( p_start_no + _NU... | 810 |
java-test-7069 | java | When is the board state modified accordingly ? | when the user presses square buttons | @ Override public void action Performed ( Action Event ae ) { for ( int i = NUM ; i < curr Size * curr Size ; i ++ ) { if ( ae . get Source ( ) == square Buttons [ i ] ) { N Queens Controller contr = ( N Queens Controller ) get Controller ( ) ; XY Location loc = new XY Location ( i % curr Size , i / curr Size ) ; contr... | @ Override public void actionPerformed ( ActionEvent ae ) { for ( int i = _NUM ; i < currSize * currSize ; i ++ ) { if ( ae . getSource ( ) == squareButtons [ i ] ) { NQueensController contr = ( NQueensController ) getController ( ) ; XYLocation loc = new XYLocation ( i % currSize , i / currSize ) ; contr . modifySquar... | 92 |
java-test-7070 | java | What did the user press when ? | square buttons | @ Override public void action Performed ( Action Event ae ) { for ( int i = NUM ; i < curr Size * curr Size ; i ++ ) { if ( ae . get Source ( ) == square Buttons [ i ] ) { N Queens Controller contr = ( N Queens Controller ) get Controller ( ) ; XY Location loc = new XY Location ( i % curr Size , i / curr Size ) ; contr... | @ Override public void actionPerformed ( ActionEvent ae ) { for ( int i = _NUM ; i < currSize * currSize ; i ++ ) { if ( ae . getSource ( ) == squareButtons [ i ] ) { NQueensController contr = ( NQueensController ) getController ( ) ; XYLocation loc = new XYLocation ( i % currSize , i / currSize ) ; contr . modifySquar... | 92 |
java-test-7071 | java | What do the constraint have ? | at least one variable that is | private boolean is Relevant ( Constraint < ? > constraint , Set < Variable Reference > targets ) { Set < Variable < ? > > variables = constraint . get Variables ( ) ; Set < String > target Names = new Hash Set < String > ( ) ; for ( Variable Reference v : targets ) { target Names . add ( v . get Name ( ) ) ; } for ( Va... | private boolean isRelevant ( Constraint < ? > constraint , Set < VariableReference > targets ) { Set < Variable < ? > > variables = constraint . getVariables ( ) ; Set < String > targetNames = new HashSet < String > ( ) ; for ( VariableReference v : targets ) { targetNames . add ( v . getName ( ) ) ; } for ( Variable <... | 108 |
java-test-7072 | java | What does the code take ? | an array of directories where message ids xml resides | public static void main ( String [ ] args ) { try { Set < String > files = new Tree Set < String > ( ) ; for ( int i = NUM ; i < args . length ; i ++ ) { get XML Files ( args [ i ] , files ) ; } new Log Messages Formatter ( files ) ; } catch ( Parser Configuration Exception e ) { e . print Stack Trace ( ) ; } catch ( S... | public static void main ( String [ ] args ) { try { Set < String > files = new TreeSet < String > ( ) ; for ( int i = _NUM ; i < args . length ; i ++ ) { getXMLFiles ( args [ i ] , files ) ; } new LogMessagesFormatter ( files ) ; } catch ( ParserConfigurationException e ) { e . printStackTrace ( ) ; } catch ( SAXExcept... | 117 |
java-test-7073 | java | What resides directories ? | message ids xml | public static void main ( String [ ] args ) { try { Set < String > files = new Tree Set < String > ( ) ; for ( int i = NUM ; i < args . length ; i ++ ) { get XML Files ( args [ i ] , files ) ; } new Log Messages Formatter ( files ) ; } catch ( Parser Configuration Exception e ) { e . print Stack Trace ( ) ; } catch ( S... | public static void main ( String [ ] args ) { try { Set < String > files = new TreeSet < String > ( ) ; for ( int i = _NUM ; i < args . length ; i ++ ) { getXMLFiles ( args [ i ] , files ) ; } new LogMessagesFormatter ( files ) ; } catch ( ParserConfigurationException e ) { e . printStackTrace ( ) ; } catch ( SAXExcept... | 117 |
java-test-7074 | java | In which direction does a map create ? | from library name to library path | private Map create Libraries Map ( Servlet Context context ) { Hash Map library map = new Hash Map ( ) ; for ( Enumeration en = context . get Init Parameter Names ( ) ; en . has More Elements ( ) ; ) { String s = ( String ) en . next Element ( ) ; if ( s . starts With ( LIBRARY PREFIX ) ) { String libname = s . substri... | private Map createLibrariesMap ( ServletContext context ) { HashMap library_map = new HashMap ( ) ; for ( Enumeration en = context . getInitParameterNames ( ) ; en . hasMoreElements ( ) ; ) { String s = ( String ) en . nextElement ( ) ; if ( s . startsWith ( LIBRARY_PREFIX ) ) { String libname = s . substring ( LIBRARY... | 149 |
java-test-7075 | java | What does the code search ? | interfaces of superclasses | public static Soot Method resolve ( Soot Method Ref ref ) throws Cannot Find Method Exception { Soot Class cl = ref . declaring Class ( ) ; while ( BOOL ) { if ( cl . declares Method ( ref . get Sub Signature ( ) ) ) { Soot Method possible Target = cl . get Method ( ref . get Sub Signature ( ) ) ; if ( ref . is Static ... | public static SootMethod resolve ( SootMethodRef ref ) throws CannotFindMethodException { SootClass cl = ref . declaringClass ( ) ; while ( _BOOL ) { if ( cl . declaresMethod ( ref . getSubSignature ( ) ) ) { SootMethod possibleTarget = cl . getMethod ( ref . getSubSignature ( ) ) ; if ( ref . isStatic ( ) == possibleT... | 287 |
java-test-7076 | java | What do this search try ? | to find concrete methods first . copied from sootmethodrefimpl , but crap about phantom refs and ignore resolution errors excised | public static Soot Method resolve ( Soot Method Ref ref ) throws Cannot Find Method Exception { Soot Class cl = ref . declaring Class ( ) ; while ( BOOL ) { if ( cl . declares Method ( ref . get Sub Signature ( ) ) ) { Soot Method possible Target = cl . get Method ( ref . get Sub Signature ( ) ) ; if ( ref . is Static ... | public static SootMethod resolve ( SootMethodRef ref ) throws CannotFindMethodException { SootClass cl = ref . declaringClass ( ) ; while ( _BOOL ) { if ( cl . declaresMethod ( ref . getSubSignature ( ) ) ) { SootMethod possibleTarget = cl . getMethod ( ref . getSubSignature ( ) ) ; if ( ref . isStatic ( ) == possibleT... | 287 |
java-test-7077 | java | What does this search find first ? | concrete methods | public static Soot Method resolve ( Soot Method Ref ref ) throws Cannot Find Method Exception { Soot Class cl = ref . declaring Class ( ) ; while ( BOOL ) { if ( cl . declares Method ( ref . get Sub Signature ( ) ) ) { Soot Method possible Target = cl . get Method ( ref . get Sub Signature ( ) ) ; if ( ref . is Static ... | public static SootMethod resolve ( SootMethodRef ref ) throws CannotFindMethodException { SootClass cl = ref . declaringClass ( ) ; while ( _BOOL ) { if ( cl . declaresMethod ( ref . getSubSignature ( ) ) ) { SootMethod possibleTarget = cl . getMethod ( ref . getSubSignature ( ) ) ; if ( ref . isStatic ( ) == possibleT... | 287 |
java-test-7078 | java | What does the code resolve to the first defined method of its ancestors ? | a method ref | public static Soot Method resolve ( Soot Method Ref ref ) throws Cannot Find Method Exception { Soot Class cl = ref . declaring Class ( ) ; while ( BOOL ) { if ( cl . declares Method ( ref . get Sub Signature ( ) ) ) { Soot Method possible Target = cl . get Method ( ref . get Sub Signature ( ) ) ; if ( ref . is Static ... | public static SootMethod resolve ( SootMethodRef ref ) throws CannotFindMethodException { SootClass cl = ref . declaringClass ( ) ; while ( _BOOL ) { if ( cl . declaresMethod ( ref . getSubSignature ( ) ) ) { SootMethod possibleTarget = cl . getMethod ( ref . getSubSignature ( ) ) ; if ( ref . isStatic ( ) == possibleT... | 287 |
java-test-7079 | java | When did the code trigger ? | when printer is changed | public void item State Changed ( Item Event e ) { String p Name = ( String ) e . get Item ( ) ; if ( e . get State Change ( ) == Item Event . SELECTED ) { this . printer Name = p Name ; } } | public void itemStateChanged ( ItemEvent e ) { String pName = ( String ) e . getItem ( ) ; if ( e . getStateChange ( ) == ItemEvent . SELECTED ) { this . printerName = pName ; } } | 51 |
java-test-7080 | java | What does the code create ? | a new date tick | public Date Tick ( Tick Type tick Type , Date date , String label , Text Anchor text Anchor , Text Anchor rotation Anchor , double angle ) { super ( tick Type , date . get Time ( ) , label , text Anchor , rotation Anchor , angle ) ; Param Checks . null Not Permitted ( tick Type , STRING ) ; this . date = date ; } | public DateTick ( TickType tickType , Date date , String label , TextAnchor textAnchor , TextAnchor rotationAnchor , double angle ) { super ( tickType , date . getTime ( ) , label , textAnchor , rotationAnchor , angle ) ; ParamChecks . nullNotPermitted ( tickType , STRING ) ; this . date = date ; } | 72 |
java-test-7081 | java | What does the code modify with custom values set by the user , such as final output size and opacity ? | the source xml content | @ Nullable private String override Xml File Content ( @ Not Null Document vd Document , @ Not Null Vd Preview . Source Size vd Original Size , @ Not Null String Builder error Buffer ) { int final Width = vd Original Size . get Width ( ) ; int final Height = vd Original Size . get Height ( ) ; Integer output Width = my ... | @ Nullable private String overrideXmlFileContent ( @ NotNull Document vdDocument , @ NotNull VdPreview . SourceSize vdOriginalSize , @ NotNull StringBuilder errorBuffer ) { int finalWidth = vdOriginalSize . getWidth ( ) ; int finalHeight = vdOriginalSize . getHeight ( ) ; Integer outputWidth = myOutputWidth . get ( ) ;... | 245 |
java-test-7082 | java | When should by the database engine be called this method ? | once when initializing the trigger | protected void init ( Connection conn , String trigger Name , String schema Name , String table Name ) throws SQL Exception { if ( this . templates == null ) { this . schema Name = schema Name ; this . trigger Name = trigger Name ; this . templates = get Templates ( conn ) ; } if ( templates == null || templates . size... | protected void init ( Connection conn , String triggerName , String schemaName , String tableName ) throws SQLException { if ( this . templates == null ) { this . schemaName = schemaName ; this . triggerName = triggerName ; this . templates = getTemplates ( conn ) ; } if ( templates == null || templates . size ( ) == _... | 93 |
java-test-7083 | java | Where are files created when ? | on the secondary file system | public void test Access And Modification Time Upwards Propagation ( ) throws Exception { create ( igfs Secondary , paths ( DIR , SUBDIR ) , paths ( FILE , FILE 2 ) ) ; T2 < Long , Long > times Dir 0 = check Parent Listing Time ( igfs Secondary File System , DIR ) ; T2 < Long , Long > times Sub Dir 0 = check Parent List... | public void testAccessAndModificationTimeUpwardsPropagation ( ) throws Exception { create ( igfsSecondary , paths ( DIR , SUBDIR ) , paths ( FILE , FILE2 ) ) ; T2 < Long , Long > timesDir0 = checkParentListingTime ( igfsSecondaryFileSystem , DIR ) ; T2 < Long , Long > timesSubDir0 = checkParentListingTime ( igfsSeconda... | 289 |
java-test-7084 | java | When do stage style switch ? | after flag has been destroyed | public String switch Stage Path ( ) { return STRING + Rel Coordinates . get Rel Coords ( NUM , NUM ) + STRING + Rel Coordinates . get Rel Coords ( NUM , NUM , NUM , NUM ) + Rel Coordinates . get Rel Coords ( NUM , NUM , NUM , NUM ) + Rel Coordinates . get Rel Coords ( NUM , NUM , NUM , NUM ) + Rel Coordinates . get Rel... | public String switchStagePath ( ) { return STRING + RelCoordinates . getRelCoords ( _NUM , _NUM ) + STRING + RelCoordinates . getRelCoords ( _NUM , _NUM , _NUM , _NUM ) + RelCoordinates . getRelCoords ( _NUM , _NUM , _NUM , _NUM ) + RelCoordinates . getRelCoords ( _NUM , _NUM , _NUM , _NUM ) + RelCoordinates . getRelCo... | 780 |
java-test-7085 | java | For what purpose did they map non - ascii characters both on parsing and printing ? | primarily for html documents | private static void define Entity ( String name , char value ) { if ( by Name . get ( name ) == null ) { by Name . put ( name , new Integer ( value ) ) ; by Char . put ( new Integer ( value ) , name ) ; } } | private static void defineEntity ( String name , char value ) { if ( _byName . get ( name ) == null ) { _byName . put ( name , new Integer ( value ) ) ; _byChar . put ( new Integer ( value ) , name ) ; } } | 56 |
java-test-7086 | java | Where did they map non - ascii characters primarily for html documents ? | both on parsing and printing | private static void define Entity ( String name , char value ) { if ( by Name . get ( name ) == null ) { by Name . put ( name , new Integer ( value ) ) ; by Char . put ( new Integer ( value ) , name ) ; } } | private static void defineEntity ( String name , char value ) { if ( _byName . get ( name ) == null ) { _byName . put ( name , new Integer ( value ) ) ; _byChar . put ( new Integer ( value ) , name ) ; } } | 56 |
java-test-7087 | java | What are they used ? | to map non - ascii characters both on parsing and printing , primarily for html documents | private static void define Entity ( String name , char value ) { if ( by Name . get ( name ) == null ) { by Name . put ( name , new Integer ( value ) ) ; by Char . put ( new Integer ( value ) , name ) ; } } | private static void defineEntity ( String name , char value ) { if ( _byName . get ( name ) == null ) { _byName . put ( name , new Integer ( value ) ) ; _byChar . put ( new Integer ( value ) , name ) ; } } | 56 |
java-test-7088 | java | What does the code create ? | a tstream & lt | public static T Stream < Json Object > water Detector ( Topology topology , int well Id ) { Random r Num = new Random ( ) ; T Stream < Integer > temp = topology . poll ( null , NUM , Time Unit . SECONDS ) ; T Stream < Integer > acidity = topology . poll ( null , NUM , Time Unit . SECONDS ) ; T Stream < Integer > ecoli ... | public static TStream < JsonObject > waterDetector ( Topology topology , int wellId ) { Random rNum = new Random ( ) ; TStream < Integer > temp = topology . poll ( null , _NUM , TimeUnit . SECONDS ) ; TStream < Integer > acidity = topology . poll ( null , _NUM , TimeUnit . SECONDS ) ; TStream < Integer > ecoli = topolo... | 359 |
java-test-7089 | java | What do a single one represent ? | all readings on the well | public static T Stream < Json Object > water Detector ( Topology topology , int well Id ) { Random r Num = new Random ( ) ; T Stream < Integer > temp = topology . poll ( null , NUM , Time Unit . SECONDS ) ; T Stream < Integer > acidity = topology . poll ( null , NUM , Time Unit . SECONDS ) ; T Stream < Integer > ecoli ... | public static TStream < JsonObject > waterDetector ( Topology topology , int wellId ) { Random rNum = new Random ( ) ; TStream < Integer > temp = topology . poll ( null , _NUM , TimeUnit . SECONDS ) ; TStream < Integer > acidity = topology . poll ( null , _NUM , TimeUnit . SECONDS ) ; TStream < Integer > ecoli = topolo... | 359 |
java-test-7090 | java | What is representing all readings on the well ? | a single one | public static T Stream < Json Object > water Detector ( Topology topology , int well Id ) { Random r Num = new Random ( ) ; T Stream < Integer > temp = topology . poll ( null , NUM , Time Unit . SECONDS ) ; T Stream < Integer > acidity = topology . poll ( null , NUM , Time Unit . SECONDS ) ; T Stream < Integer > ecoli ... | public static TStream < JsonObject > waterDetector ( Topology topology , int wellId ) { Random rNum = new Random ( ) ; TStream < Integer > temp = topology . poll ( null , _NUM , TimeUnit . SECONDS ) ; TStream < Integer > acidity = topology . poll ( null , _NUM , TimeUnit . SECONDS ) ; TStream < Integer > ecoli = topolo... | 359 |
java-test-7091 | java | Where does the code remove the items from the receiver ? | at the given zero - relative indices | public void remove ( final int [ ] indices ) { check Widget ( ) ; for ( final int index : indices ) { if ( index < NUM || index >= items . size ( ) ) { SWT . error ( SWT . ERROR INVALID ARGUMENT ) ; } items . remove ( index ) ; } redraw Tables ( ) ; } | public void remove ( final int [ ] indices ) { checkWidget ( ) ; for ( final int index : indices ) { if ( index < _NUM || index >= items . size ( ) ) { SWT . error ( SWT . ERROR_INVALID_ARGUMENT ) ; } items . remove ( index ) ; } redrawTables ( ) ; } | 66 |
java-test-7092 | java | What does the code delete ? | a request from the script | private void do Delete ( Script Step step ) { if ( aggregator Editor . is Aggregator ( step ) ) { Script Step step Pair = aggregator Editor . get Aggregator Pair ( step ) ; steps . remove ( step Pair ) ; search Bean . remove From Search Match ( step Pair ) ; } steps . remove ( step ) ; search Bean . remove From Search ... | private void doDelete ( ScriptStep step ) { if ( aggregatorEditor . isAggregator ( step ) ) { ScriptStep stepPair = aggregatorEditor . getAggregatorPair ( step ) ; steps . remove ( stepPair ) ; searchBean . removeFromSearchMatch ( stepPair ) ; } steps . remove ( step ) ; searchBean . removeFromSearchMatch ( step ) ; re... | 83 |
java-test-7095 | java | What creates at test index ? | for world bank loans short country name | public static final Index create Test Bank Index Country Name ( ) { Index lastname = new Index ( STRING ) ; lastname . is Unique ( BOOL ) ; Array List < Index Field > fields = new Array List < > ( NUM ) ; fields . add ( new Index Field ( STRING ) ) ; lastname . set Fields ( fields ) ; lastname . set Table ( Fixtures . ... | public static final Index createTestBankIndexCountryName ( ) { Index lastname = new Index ( STRING ) ; lastname . isUnique ( _BOOL ) ; ArrayList < IndexField > fields = new ArrayList < > ( _NUM ) ; fields . add ( new IndexField ( STRING ) ) ; lastname . setFields ( fields ) ; lastname . setTable ( Fixtures . createTest... | 87 |
java-test-7100 | java | Where does an argument of type " literal " from the request read ? | in the format : " { " charcount " } " crlf * char8 note before calling , the request should be positioned so that nextchar is ' { ' . leading whitespace is not skipped in this method | public String consume Literal ( Charset charset ) throws Decoding Exception { if ( charset == null ) { return consume Literal ( US ASCII ) ; } else { Fast Byte Array Output Stream out = new Fast Byte Array Output Stream ( ) ; Input Stream in = null ; try { in = consume Literal ( BOOL ) ; byte [ ] buf = new byte [ NUM ]... | public String consumeLiteral ( Charset charset ) throws DecodingException { if ( charset == null ) { return consumeLiteral ( US_ASCII ) ; } else { FastByteArrayOutputStream out = new FastByteArrayOutputStream ( ) ; InputStream in = null ; try { in = consumeLiteral ( _BOOL ) ; byte [ ] buf = new byte [ _NUM ] ; for ( in... | 213 |
java-test-7101 | java | What reads in the format : " { " charcount " } " crlf * char8 note before calling , the request should be positioned so that nextchar is ' { ' . leading whitespace is not skipped in this method ? | an argument of type " literal " from the request | public String consume Literal ( Charset charset ) throws Decoding Exception { if ( charset == null ) { return consume Literal ( US ASCII ) ; } else { Fast Byte Array Output Stream out = new Fast Byte Array Output Stream ( ) ; Input Stream in = null ; try { in = consume Literal ( BOOL ) ; byte [ ] buf = new byte [ NUM ]... | public String consumeLiteral ( Charset charset ) throws DecodingException { if ( charset == null ) { return consumeLiteral ( US_ASCII ) ; } else { FastByteArrayOutputStream out = new FastByteArrayOutputStream ( ) ; InputStream in = null ; try { in = consumeLiteral ( _BOOL ) ; byte [ ] buf = new byte [ _NUM ] ; for ( in... | 213 |
java-test-7102 | java | What will animate matrix of imageview ? | animator | private Object Animator create Entering Image Matrix Animator ( ) { Matrix init Matrix = Matrix Utils . get Image Matrix ( m Animated Image ) ; init Matrix . get Values ( m Init Thumbnail Matrix Values ) ; final Matrix end Matrix = Matrix Utils . get Image Matrix ( m Image To ) ; Log . v ( TAG , STRING + Arrays . to St... | private ObjectAnimator createEnteringImageMatrixAnimator ( ) { Matrix initMatrix = MatrixUtils . getImageMatrix ( mAnimatedImage ) ; initMatrix . getValues ( mInitThumbnailMatrixValues ) ; final Matrix endMatrix = MatrixUtils . getImageMatrix ( mImageTo ) ; Log . v ( TAG , STRING + Arrays . toString ( mInitThumbnailMat... | 151 |
java-test-7103 | java | What will animator animate ? | matrix of imageview | private Object Animator create Entering Image Matrix Animator ( ) { Matrix init Matrix = Matrix Utils . get Image Matrix ( m Animated Image ) ; init Matrix . get Values ( m Init Thumbnail Matrix Values ) ; final Matrix end Matrix = Matrix Utils . get Image Matrix ( m Image To ) ; Log . v ( TAG , STRING + Arrays . to St... | private ObjectAnimator createEnteringImageMatrixAnimator ( ) { Matrix initMatrix = MatrixUtils . getImageMatrix ( mAnimatedImage ) ; initMatrix . getValues ( mInitThumbnailMatrixValues ) ; final Matrix endMatrix = MatrixUtils . getImageMatrix ( mImageTo ) ; Log . v ( TAG , STRING + Arrays . toString ( mInitThumbnailMat... | 151 |
java-test-7104 | java | What does this method create ? | animator that will animate matrix of imageview | private Object Animator create Entering Image Matrix Animator ( ) { Matrix init Matrix = Matrix Utils . get Image Matrix ( m Animated Image ) ; init Matrix . get Values ( m Init Thumbnail Matrix Values ) ; final Matrix end Matrix = Matrix Utils . get Image Matrix ( m Image To ) ; Log . v ( TAG , STRING + Arrays . to St... | private ObjectAnimator createEnteringImageMatrixAnimator ( ) { Matrix initMatrix = MatrixUtils . getImageMatrix ( mAnimatedImage ) ; initMatrix . getValues ( mInitThumbnailMatrixValues ) ; final Matrix endMatrix = MatrixUtils . getImageMatrix ( mImageTo ) ; Log . v ( TAG , STRING + Arrays . toString ( mInitThumbnailMat... | 151 |
java-test-7105 | java | When did the effect show ? | when scaling of one view is smoothly changed to the scale of the second view | private Object Animator create Entering Image Matrix Animator ( ) { Matrix init Matrix = Matrix Utils . get Image Matrix ( m Animated Image ) ; init Matrix . get Values ( m Init Thumbnail Matrix Values ) ; final Matrix end Matrix = Matrix Utils . get Image Matrix ( m Image To ) ; Log . v ( TAG , STRING + Arrays . to St... | private ObjectAnimator createEnteringImageMatrixAnimator ( ) { Matrix initMatrix = MatrixUtils . getImageMatrix ( mAnimatedImage ) ; initMatrix . getValues ( mInitThumbnailMatrixValues ) ; final Matrix endMatrix = MatrixUtils . getImageMatrix ( mImageTo ) ; Log . v ( TAG , STRING + Arrays . toString ( mInitThumbnailMat... | 151 |
java-test-7106 | java | For what purpose is it needed ? | in order to show the effect when scaling of one view is smoothly changed to the scale of the second view | private Object Animator create Entering Image Matrix Animator ( ) { Matrix init Matrix = Matrix Utils . get Image Matrix ( m Animated Image ) ; init Matrix . get Values ( m Init Thumbnail Matrix Values ) ; final Matrix end Matrix = Matrix Utils . get Image Matrix ( m Image To ) ; Log . v ( TAG , STRING + Arrays . to St... | private ObjectAnimator createEnteringImageMatrixAnimator ( ) { Matrix initMatrix = MatrixUtils . getImageMatrix ( mAnimatedImage ) ; initMatrix . getValues ( mInitThumbnailMatrixValues ) ; final Matrix endMatrix = MatrixUtils . getImageMatrix ( mImageTo ) ; Log . v ( TAG , STRING + Arrays . toString ( mInitThumbnailMat... | 151 |
java-test-7108 | java | What does not provide a mechanism for getting the source ip address of a received indication . to match indications with connections ? | the wbem listener interface | private CIM Object Path create Handler ( ) throws WBEM Exception , Connection Manager Exception { Cim Listener listener = connection . get Indication Listener ( ) ; URL listener URL = listener . get URL ( ) ; if ( listener URL == null ) { throw new Connection Manager Exception ( STRING ) ; } String Buffer handler Name ... | private CIMObjectPath createHandler ( ) throws WBEMException , ConnectionManagerException { CimListener listener = _connection . getIndicationListener ( ) ; URL listenerURL = listener . getURL ( ) ; if ( listenerURL == null ) { throw new ConnectionManagerException ( STRING ) ; } StringBuffer handlerNameBuff = new Strin... | 237 |
java-test-7109 | java | What does the wbem listener interface not provide ? | a mechanism for getting the source ip address of a received indication . to match indications with connections | private CIM Object Path create Handler ( ) throws WBEM Exception , Connection Manager Exception { Cim Listener listener = connection . get Indication Listener ( ) ; URL listener URL = listener . get URL ( ) ; if ( listener URL == null ) { throw new Connection Manager Exception ( STRING ) ; } String Buffer handler Name ... | private CIMObjectPath createHandler ( ) throws WBEMException , ConnectionManagerException { CimListener listener = _connection . getIndicationListener ( ) ; URL listenerURL = listener . getURL ( ) ; if ( listenerURL == null ) { throw new ConnectionManagerException ( STRING ) ; } StringBuffer handlerNameBuff = new Strin... | 237 |
java-test-7110 | java | When does an imageloader with bitmap memory cache and a default placeholder image create ? | while the image is being fetched and loaded | private Image Loader ( Fragment Activity activity , int default Place Holder Res Id ) { super ( new Request Queue ( activity ) , Bitmap Cache . get Instance ( activity . get Support Fragment Manager ( ) ) ) ; m Resources = activity . get Resources ( ) ; m Place Holder Drawables = new Array List < Drawable > ( NUM ) ; m... | private ImageLoader ( FragmentActivity activity , int defaultPlaceHolderResId ) { super ( newRequestQueue ( activity ) , BitmapCache . getInstance ( activity . getSupportFragmentManager ( ) ) ) ; mResources = activity . getResources ( ) ; mPlaceHolderDrawables = new ArrayList < Drawable > ( _NUM ) ; mPlaceHolderDrawabl... | 100 |
java-test-7111 | java | When did the code call to adjust the selection ? | after an insertion | void adjust Selection ( J Editor Pane pane , HTML Document doc , int start Offset , int old Length ) { int new Length = doc . get Length ( ) ; if ( new Length != old Length && start Offset < new Length ) { if ( start Offset > NUM ) { String text ; try { text = doc . get Text ( start Offset - NUM , NUM ) ; } catch ( Bad... | void adjustSelection ( JEditorPane pane , HTMLDocument doc , int startOffset , int oldLength ) { int newLength = doc . getLength ( ) ; if ( newLength != oldLength && startOffset < newLength ) { if ( startOffset > _NUM ) { String text ; try { text = doc . getText ( startOffset - _NUM , _NUM ) ; } catch ( BadLocationExce... | 160 |
java-test-7112 | java | For what purpose did the code call after an insertion ? | to adjust the selection | void adjust Selection ( J Editor Pane pane , HTML Document doc , int start Offset , int old Length ) { int new Length = doc . get Length ( ) ; if ( new Length != old Length && start Offset < new Length ) { if ( start Offset > NUM ) { String text ; try { text = doc . get Text ( start Offset - NUM , NUM ) ; } catch ( Bad... | void adjustSelection ( JEditorPane pane , HTMLDocument doc , int startOffset , int oldLength ) { int newLength = doc . getLength ( ) ; if ( newLength != oldLength && startOffset < newLength ) { if ( startOffset > _NUM ) { String text ; try { text = doc . getText ( startOffset - _NUM , _NUM ) ; } catch ( BadLocationExce... | 160 |
java-test-7113 | java | What do the string need ? | to be searched | public Boyer Moore Matcher ( String pattern ) { this . pattern = pattern ; this . occurrence = new Hash Map < > ( ) ; for ( int i = NUM ; i < pattern . length ( ) ; i ++ ) { occurrence . put ( pattern . char At ( i ) , i ) ; } } | public BoyerMooreMatcher ( String pattern ) { this . pattern = pattern ; this . occurrence = new HashMap < > ( ) ; for ( int i = _NUM ; i < pattern . length ( ) ; i ++ ) { occurrence . put ( pattern . charAt ( i ) , i ) ; } } | 63 |
java-test-7114 | java | Where do the invdistweightedinterpolate work how to tweak the two constants that control how the interpolation curve is shaped ? | between device profiles | public void test Inv Interpolation ( ) { Invariant Device Profile p1 = m Predefined Device Profiles . get ( NUM ) ; Invariant Device Profile p2 = m Predefined Device Profiles . get ( NUM ) ; Array List < Point F > pts = create Interpolated Points ( new Point F ( p1 . min Width Dps , p1 . min Height Dps ) , new Point F ... | public void testInvInterpolation ( ) { InvariantDeviceProfile p1 = mPredefinedDeviceProfiles . get ( _NUM ) ; InvariantDeviceProfile p2 = mPredefinedDeviceProfiles . get ( _NUM ) ; ArrayList < PointF > pts = createInterpolatedPoints ( new PointF ( p1 . minWidthDps , p1 . minHeightDps ) , new PointF ( p2 . minWidthDps ,... | 230 |
java-test-7115 | java | For what purpose do the invdistweightedinterpolate work between device profiles how ? | to tweak the two constants that control how the interpolation curve is shaped | public void test Inv Interpolation ( ) { Invariant Device Profile p1 = m Predefined Device Profiles . get ( NUM ) ; Invariant Device Profile p2 = m Predefined Device Profiles . get ( NUM ) ; Array List < Point F > pts = create Interpolated Points ( new Point F ( p1 . min Width Dps , p1 . min Height Dps ) , new Point F ... | public void testInvInterpolation ( ) { InvariantDeviceProfile p1 = mPredefinedDeviceProfiles . get ( _NUM ) ; InvariantDeviceProfile p2 = mPredefinedDeviceProfiles . get ( _NUM ) ; ArrayList < PointF > pts = createInterpolatedPoints ( new PointF ( p1 . minWidthDps , p1 . minHeightDps ) , new PointF ( p2 . minWidthDps ,... | 230 |
java-test-7116 | java | What control how the interpolation curve is shaped ? | the two constants | public void test Inv Interpolation ( ) { Invariant Device Profile p1 = m Predefined Device Profiles . get ( NUM ) ; Invariant Device Profile p2 = m Predefined Device Profiles . get ( NUM ) ; Array List < Point F > pts = create Interpolated Points ( new Point F ( p1 . min Width Dps , p1 . min Height Dps ) , new Point F ... | public void testInvInterpolation ( ) { InvariantDeviceProfile p1 = mPredefinedDeviceProfiles . get ( _NUM ) ; InvariantDeviceProfile p2 = mPredefinedDeviceProfiles . get ( _NUM ) ; ArrayList < PointF > pts = createInterpolatedPoints ( new PointF ( p1 . minWidthDps , p1 . minHeightDps ) , new PointF ( p2 . minWidthDps ,... | 230 |
java-test-7117 | java | What does the invdistweightedinterpolate tweak ? | the two constants that control how the interpolation curve is shaped | public void test Inv Interpolation ( ) { Invariant Device Profile p1 = m Predefined Device Profiles . get ( NUM ) ; Invariant Device Profile p2 = m Predefined Device Profiles . get ( NUM ) ; Array List < Point F > pts = create Interpolated Points ( new Point F ( p1 . min Width Dps , p1 . min Height Dps ) , new Point F ... | public void testInvInterpolation ( ) { InvariantDeviceProfile p1 = mPredefinedDeviceProfiles . get ( _NUM ) ; InvariantDeviceProfile p2 = mPredefinedDeviceProfiles . get ( _NUM ) ; ArrayList < PointF > pts = createInterpolatedPoints ( new PointF ( p1 . minWidthDps , p1 . minHeightDps ) , new PointF ( p2 . minWidthDps ,... | 230 |
java-test-7118 | java | What do the two constants control ? | how the interpolation curve is shaped | public void test Inv Interpolation ( ) { Invariant Device Profile p1 = m Predefined Device Profiles . get ( NUM ) ; Invariant Device Profile p2 = m Predefined Device Profiles . get ( NUM ) ; Array List < Point F > pts = create Interpolated Points ( new Point F ( p1 . min Width Dps , p1 . min Height Dps ) , new Point F ... | public void testInvInterpolation ( ) { InvariantDeviceProfile p1 = mPredefinedDeviceProfiles . get ( _NUM ) ; InvariantDeviceProfile p2 = mPredefinedDeviceProfiles . get ( _NUM ) ; ArrayList < PointF > pts = createInterpolatedPoints ( new PointF ( p1 . minWidthDps , p1 . minHeightDps ) , new PointF ( p2 . minWidthDps ,... | 230 |
java-test-7120 | java | By how much do the function of scheduleablegroupaction on all the objects run ? | 1 by 1 | public void run ( ) { allow To Change = BOOL ; synchronized ( actions ) { if ( ! actions . is Empty ( ) ) { for ( Iterator iter = actions . iterator ( ) ; iter . has Next ( ) ; ) { do Group Action ( iter . next ( ) ) ; if ( remove Element After Action ) { iter . remove ( ) ; } } } } reset ( ) ; } | public void run ( ) { allowToChange = _BOOL ; synchronized ( actions ) { if ( ! actions . isEmpty ( ) ) { for ( Iterator iter = actions . iterator ( ) ; iter . hasNext ( ) ; ) { doGroupAction ( iter . next ( ) ) ; if ( removeElementAfterAction ) { iter . remove ( ) ; } } } } reset ( ) ; } | 82 |
java-test-7124 | java | How does the code sort the given column ? | with the given sortcount , which indicates the sort order | private void sort ( int column Index , int sort Count ) { Sort Order order = Sort Order . values ( ) [ sort Count % NUM ] ; List < Row Sorter . Sort Key > sort Keys = new Array List < > ( ) ; if ( column Index != NUM ) { sort Keys . add ( new Row Sorter . Sort Key ( NUM , Sort Order . DESCENDING ) ) ; } sort Keys . add... | private void sort ( int columnIndex , int sortCount ) { SortOrder order = SortOrder . values ( ) [ sortCount % _NUM ] ; List < RowSorter . SortKey > sortKeys = new ArrayList < > ( ) ; if ( columnIndex != _NUM ) { sortKeys . add ( new RowSorter . SortKey ( _NUM , SortOrder . DESCENDING ) ) ; } sortKeys . add ( new RowSo... | 123 |
java-test-7125 | java | What indicates the sort order ? | the given | private void sort ( int column Index , int sort Count ) { Sort Order order = Sort Order . values ( ) [ sort Count % NUM ] ; List < Row Sorter . Sort Key > sort Keys = new Array List < > ( ) ; if ( column Index != NUM ) { sort Keys . add ( new Row Sorter . Sort Key ( NUM , Sort Order . DESCENDING ) ) ; } sort Keys . add... | private void sort ( int columnIndex , int sortCount ) { SortOrder order = SortOrder . values ( ) [ sortCount % _NUM ] ; List < RowSorter . SortKey > sortKeys = new ArrayList < > ( ) ; if ( columnIndex != _NUM ) { sortKeys . add ( new RowSorter . SortKey ( _NUM , SortOrder . DESCENDING ) ) ; } sortKeys . add ( new RowSo... | 123 |
java-test-7126 | java | What added on the end ? | the pieces of the given name | public Name join ( Name rhs ) { List < Name Piece > new Piece List = new Array List < > ( ) ; new Piece List . add All ( name Pieces ) ; new Piece List . add All ( rhs . name Pieces ) ; return new Name ( new Piece List ) ; } | public Name join ( Name rhs ) { List < NamePiece > newPieceList = new ArrayList < > ( ) ; newPieceList . addAll ( namePieces ) ; newPieceList . addAll ( rhs . namePieces ) ; return new Name ( newPieceList ) ; } | 59 |
java-test-7127 | java | What do a new name contain ? | the pieces from this name plus the pieces of the given name added on the end | public Name join ( Name rhs ) { List < Name Piece > new Piece List = new Array List < > ( ) ; new Piece List . add All ( name Pieces ) ; new Piece List . add All ( rhs . name Pieces ) ; return new Name ( new Piece List ) ; } | public Name join ( Name rhs ) { List < NamePiece > newPieceList = new ArrayList < > ( ) ; newPieceList . addAll ( namePieces ) ; newPieceList . addAll ( rhs . namePieces ) ; return new Name ( newPieceList ) ; } | 59 |
java-test-7128 | java | What does the code add potentially creating them on demand to provided collection ? | surrogate ids | @ Suppress Warnings ( STRING ) public void add Surrogate Ids ( Collection < Ignite Uuid > col ) { if ( surrogate Ids == null ) { surrogate Ids = new Ignite Uuid [ ids . length ] ; for ( int i = last Existing Idx + NUM ; i < surrogate Ids . length ; i ++ ) surrogate Ids [ i ] = Ignite Uuid . random Uuid ( ) ; } for ( in... | @ SuppressWarnings ( STRING ) public void addSurrogateIds ( Collection < IgniteUuid > col ) { if ( surrogateIds == null ) { surrogateIds = new IgniteUuid [ ids . length ] ; for ( int i = lastExistingIdx + _NUM ; i < surrogateIds . length ; i ++ ) surrogateIds [ i ] = IgniteUuid . randomUuid ( ) ; } for ( int i = lastEx... | 109 |
java-test-7129 | java | For what purpose does the code add surrogate ids potentially creating them on demand ? | to provided collection | @ Suppress Warnings ( STRING ) public void add Surrogate Ids ( Collection < Ignite Uuid > col ) { if ( surrogate Ids == null ) { surrogate Ids = new Ignite Uuid [ ids . length ] ; for ( int i = last Existing Idx + NUM ; i < surrogate Ids . length ; i ++ ) surrogate Ids [ i ] = Ignite Uuid . random Uuid ( ) ; } for ( in... | @ SuppressWarnings ( STRING ) public void addSurrogateIds ( Collection < IgniteUuid > col ) { if ( surrogateIds == null ) { surrogateIds = new IgniteUuid [ ids . length ] ; for ( int i = lastExistingIdx + _NUM ; i < surrogateIds . length ; i ++ ) surrogateIds [ i ] = IgniteUuid . randomUuid ( ) ; } for ( int i = lastEx... | 109 |
java-test-7130 | java | What does the code update to update ? | the entry - drop waiting - for | private I Entry Holder update Entry SA ( Context context , I Entry Holder entry , I Template Holder template , boolean from Replication , boolean origin , I Server Type Desc type Desc ) throws SA Exception { cache Manager . insert To Recent Updates If Needed ( entry , cache Manager . requires Eviction Replication Prote... | private IEntryHolder updateEntrySA ( Context context , IEntryHolder entry , ITemplateHolder template , boolean fromReplication , boolean origin , IServerTypeDesc typeDesc ) throws SAException { _cacheManager . insertToRecentUpdatesIfNeeded ( entry , _cacheManager . requiresEvictionReplicationProtection ( ) ? Long . MAX... | 125 |
java-test-7131 | java | What does a given string match ? | the value of a field | private boolean key Match ( String key , Lazy Node token ) { if ( token . type == Lazy Node . EFIELD ) { String field = token . get String Value ( cbuf ) ; return field . equals ( key ) ; } else { int length = key . length ( ) ; if ( token . end Index - token . start Index != length ) { return BOOL ; } for ( int i = NU... | private boolean keyMatch ( String key , LazyNode token ) { if ( token . type == LazyNode . EFIELD ) { String field = token . getStringValue ( cbuf ) ; return field . equals ( key ) ; } else { int length = key . length ( ) ; if ( token . endIndex - token . startIndex != length ) { return _BOOL ; } for ( int i = _NUM ; i... | 127 |
java-test-7132 | java | For what purpose is the readstreamheader method provided ? | to allow subclasses to read and verify their own stream headers | 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-7133 | java | What do subclasses read ? | their own stream headers | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.