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-5767 | java | When may this be used ? | when detecting and handling nodes failure | @ Nullable public Tcp Discovery Node next Node ( @ Nullable Collection < Tcp Discovery Node > excluded ) { assert loc Node . internal Order ( ) > NUM : loc Node ; assert excluded == null || excluded . is Empty ( ) || ! excluded . contains ( loc Node ) : excluded ; rw Lock . read Lock ( ) . lock ( ) ; try { Collection <... | @ Nullable public TcpDiscoveryNode nextNode ( @ Nullable Collection < TcpDiscoveryNode > excluded ) { assert locNode . internalOrder ( ) > _NUM : locNode ; assert excluded == null || excluded . isEmpty ( ) || ! excluded . contains ( locNode ) : excluded ; rwLock . readLock ( ) . lock ( ) ; try { Collection < TcpDiscove... | 184 |
java-test-5768 | java | How does the code update the clusters ? | using the passed in cluster data | public final void update Clusters ( List < Cluster Data > cluster Data , int [ ] mat Index To Msg Internal Id ) { final Map < String , Collection < Integer > > names = new Hash Map < String , Collection < Integer > > ( ) ; int count = NUM ; String c Name = null ; m final Cluster Names = new Hash Map < Integer , String ... | public final void updateClusters ( List < ClusterData > clusterData , int [ ] matIndexToMsgInternalId ) { final Map < String , Collection < Integer > > names = new HashMap < String , Collection < Integer > > ( ) ; int count = _NUM ; String cName = null ; m_finalClusterNames = new HashMap < Integer , String > ( ) ; for ... | 382 |
java-test-5769 | java | What does the code update using the passed in cluster data ? | the clusters | public final void update Clusters ( List < Cluster Data > cluster Data , int [ ] mat Index To Msg Internal Id ) { final Map < String , Collection < Integer > > names = new Hash Map < String , Collection < Integer > > ( ) ; int count = NUM ; String c Name = null ; m final Cluster Names = new Hash Map < Integer , String ... | public final void updateClusters ( List < ClusterData > clusterData , int [ ] matIndexToMsgInternalId ) { final Map < String , Collection < Integer > > names = new HashMap < String , Collection < Integer > > ( ) ; int count = _NUM ; String cName = null ; m_finalClusterNames = new HashMap < Integer , String > ( ) ; for ... | 382 |
java-test-5770 | java | What does not consume the excluded character ? | this | private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | 84 |
java-test-5771 | java | What does this not consume ? | the excluded character | private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | 84 |
java-test-5772 | java | Does this consume the excluded character ? | No | private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; } | 84 |
java-test-5781 | java | What does the code add ? | a name - and - type constant | public Name And Type Constant add Name And Type ( String name , String type ) { Name And Type Constant entry = get Name And Type ( name , type ) ; if ( entry != null ) return entry ; Utf 8 Constant name Entry = add UTF 8 ( name ) ; Utf 8 Constant type Entry = add UTF 8 ( type ) ; entry = new Name And Type Constant ( th... | public NameAndTypeConstant addNameAndType ( String name , String type ) { NameAndTypeConstant entry = getNameAndType ( name , type ) ; if ( entry != null ) return entry ; Utf8Constant nameEntry = addUTF8 ( name ) ; Utf8Constant typeEntry = addUTF8 ( type ) ; entry = new NameAndTypeConstant ( this , _entries . size ( ) ... | 111 |
java-test-5783 | java | How do it do from right to left ? | digit - by - digit | public String add Binary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = NUM ; String Builder res = new String Builder ( ) ; int i = NUM ; while ( i < m || i < n ) { int p = i < m ? a . char At ( m - NUM - i ) - STRING : NUM ; int q = i < n ? b . char At ( n - NUM - i ) - STRING ... | public String addBinary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = _NUM ; StringBuilder res = new StringBuilder ( ) ; int i = _NUM ; while ( i < m || i < n ) { int p = i < m ? a . charAt ( m - _NUM - i ) - STRING : _NUM ; int q = i < n ? b . charAt ( n - _NUM - i ) - STRING ... | 159 |
java-test-5784 | java | What do math store ? | the sum to result | public String add Binary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = NUM ; String Builder res = new String Builder ( ) ; int i = NUM ; while ( i < m || i < n ) { int p = i < m ? a . char At ( m - NUM - i ) - STRING : NUM ; int q = i < n ? b . char At ( n - NUM - i ) - STRING ... | public String addBinary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = _NUM ; StringBuilder res = new StringBuilder ( ) ; int i = _NUM ; while ( i < m || i < n ) { int p = i < m ? a . charAt ( m - _NUM - i ) - STRING : _NUM ; int q = i < n ? b . charAt ( n - _NUM - i ) - STRING ... | 159 |
java-test-5785 | java | What stores the sum to result ? | math | public String add Binary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = NUM ; String Builder res = new String Builder ( ) ; int i = NUM ; while ( i < m || i < n ) { int p = i < m ? a . char At ( m - NUM - i ) - STRING : NUM ; int q = i < n ? b . char At ( n - NUM - i ) - STRING ... | public String addBinary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = _NUM ; StringBuilder res = new StringBuilder ( ) ; int i = _NUM ; while ( i < m || i < n ) { int p = i < m ? a . charAt ( m - _NUM - i ) - STRING : _NUM ; int q = i < n ? b . charAt ( n - _NUM - i ) - STRING ... | 159 |
java-test-5786 | java | When do carry check ? | before return | public String add Binary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = NUM ; String Builder res = new String Builder ( ) ; int i = NUM ; while ( i < m || i < n ) { int p = i < m ? a . char At ( m - NUM - i ) - STRING : NUM ; int q = i < n ? b . char At ( n - NUM - i ) - STRING ... | public String addBinary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = _NUM ; StringBuilder res = new StringBuilder ( ) ; int i = _NUM ; while ( i < m || i < n ) { int p = i < m ? a . charAt ( m - _NUM - i ) - STRING : _NUM ; int q = i < n ? b . charAt ( n - _NUM - i ) - STRING ... | 159 |
java-test-5787 | java | What do an integer use also ? | to store carry | public String add Binary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = NUM ; String Builder res = new String Builder ( ) ; int i = NUM ; while ( i < m || i < n ) { int p = i < m ? a . char At ( m - NUM - i ) - STRING : NUM ; int q = i < n ? b . char At ( n - NUM - i ) - STRING ... | public String addBinary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = _NUM ; StringBuilder res = new StringBuilder ( ) ; int i = _NUM ; while ( i < m || i < n ) { int p = i < m ? a . charAt ( m - _NUM - i ) - STRING : _NUM ; int q = i < n ? b . charAt ( n - _NUM - i ) - STRING ... | 159 |
java-test-5788 | java | When do carry update ? | for each round | public String add Binary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = NUM ; String Builder res = new String Builder ( ) ; int i = NUM ; while ( i < m || i < n ) { int p = i < m ? a . char At ( m - NUM - i ) - STRING : NUM ; int q = i < n ? b . char At ( n - NUM - i ) - STRING ... | public String addBinary ( String a , String b ) { int m = a . length ( ) ; int n = b . length ( ) ; int carry = _NUM ; StringBuilder res = new StringBuilder ( ) ; int i = _NUM ; while ( i < m || i < n ) { int p = i < m ? a . charAt ( m - _NUM - i ) - STRING : _NUM ; int q = i < n ? b . charAt ( n - _NUM - i ) - STRING ... | 159 |
java-test-5790 | java | What have been modified locally ? | existing properties | @ Visible For Testing protected Map < String , String > calculate Modified Server Defaults ( Map < String , String > new Defaults , Map < String , String > existing Defaults , Set < String > attr To Modify ) { Map < String , String > modified Values = new Hash Map < String , String > ( ) ; for ( String attr Name : attr... | @ VisibleForTesting protected Map < String , String > calculateModifiedServerDefaults ( Map < String , String > newDefaults , Map < String , String > existingDefaults , Set < String > attrToModify ) { Map < String , String > modifiedValues = new HashMap < String , String > ( ) ; for ( String attrName : attrToModify ) {... | 142 |
java-test-5794 | java | When has alarm been not published to external alarm system ? | ( i . e . publication field is null | public static Alarm Cache Object create Test Alarm 2 ( ) { Alarm Cache Object alarm 1 = new Alarm Cache Object ( ) ; alarm 1 . set Id ( Long . value Of ( NUM ) ) ; alarm 1 . set Fault Family ( STRING ) ; alarm 1 . set Fault Member ( STRING ) ; alarm 1 . set Fault Code ( NUM ) ; Alarm Condition condition = Alarm Conditi... | public static AlarmCacheObject createTestAlarm2 ( ) { AlarmCacheObject alarm1 = new AlarmCacheObject ( ) ; alarm1 . setId ( Long . valueOf ( _NUM ) ) ; alarm1 . setFaultFamily ( STRING ) ; alarm1 . setFaultMember ( STRING ) ; alarm1 . setFaultCode ( _NUM ) ; AlarmCondition condition = AlarmCondition . fromConfigXML ( S... | 142 |
java-test-5795 | java | What does the code not set ? | reference to tag i d | public static Alarm Cache Object create Test Alarm 2 ( ) { Alarm Cache Object alarm 1 = new Alarm Cache Object ( ) ; alarm 1 . set Id ( Long . value Of ( NUM ) ) ; alarm 1 . set Fault Family ( STRING ) ; alarm 1 . set Fault Member ( STRING ) ; alarm 1 . set Fault Code ( NUM ) ; Alarm Condition condition = Alarm Conditi... | public static AlarmCacheObject createTestAlarm2 ( ) { AlarmCacheObject alarm1 = new AlarmCacheObject ( ) ; alarm1 . setId ( Long . valueOf ( _NUM ) ) ; alarm1 . setFaultFamily ( STRING ) ; alarm1 . setFaultMember ( STRING ) ; alarm1 . setFaultCode ( _NUM ) ; AlarmCondition condition = AlarmCondition . fromConfigXML ( S... | 142 |
java-test-5796 | java | Does the code set reference to tag i d ? | No | public static Alarm Cache Object create Test Alarm 2 ( ) { Alarm Cache Object alarm 1 = new Alarm Cache Object ( ) ; alarm 1 . set Id ( Long . value Of ( NUM ) ) ; alarm 1 . set Fault Family ( STRING ) ; alarm 1 . set Fault Member ( STRING ) ; alarm 1 . set Fault Code ( NUM ) ; Alarm Condition condition = Alarm Conditi... | public static AlarmCacheObject createTestAlarm2 ( ) { AlarmCacheObject alarm1 = new AlarmCacheObject ( ) ; alarm1 . setId ( Long . valueOf ( _NUM ) ) ; alarm1 . setFaultFamily ( STRING ) ; alarm1 . setFaultMember ( STRING ) ; alarm1 . setFaultCode ( _NUM ) ; AlarmCondition condition = AlarmCondition . fromConfigXML ( S... | 142 |
java-test-5799 | java | How does the code shorten the provided message ? | by removing the trailing termination characters like ' . ' or a ' ! ' | private static String remove Termination Characters ( final String message ) { if ( message == null ) { throw new Illegal Argument Exception ( STRING ) ; } String err Msg = message . trim ( ) ; while ( err Msg . ends With ( STRING ) || err Msg . ends With ( STRING ) ) { err Msg = err Msg . substring ( NUM , err Msg . l... | private static String removeTerminationCharacters ( final String message ) { if ( message == null ) { throw new IllegalArgumentException ( STRING ) ; } String errMsg = message . trim ( ) ; while ( errMsg . endsWith ( STRING ) || errMsg . endsWith ( STRING ) ) { errMsg = errMsg . substring ( _NUM , errMsg . length ( ) -... | 86 |
java-test-5800 | java | What does the code apply ? | cascade rules | public void delete ( @ Nonnull Integer id ) throws Hibernate Exception { Entity Manager em = get Entity Manager ( ) ; try { begin ( ) ; T ENTITY entity = em . find ( entity Class , id ) ; if ( entity != null ) { LOG . debug ( STRING + entity . to String ( ) ) ; em . remove ( entity ) ; } commit ( ) ; } catch ( Exceptio... | public void delete ( @ Nonnull Integer id ) throws HibernateException { EntityManager em = getEntityManager ( ) ; try { begin ( ) ; T_ENTITY entity = em . find ( entityClass , id ) ; if ( entity != null ) { LOG . debug ( STRING + entity . toString ( ) ) ; em . remove ( entity ) ; } commit ( ) ; } catch ( Exception e ) ... | 112 |
java-test-5801 | java | What does the code make ? | the current color slightly lighter | public void lighter Color ( int factor ) { int color = get Color ( ) ; int r = color > > NUM & NUM ; int g = color > > NUM & NUM ; int b = color & NUM ; r = Math . min ( NUM , r + factor ) ; g = Math . min ( NUM , g + factor ) ; b = Math . min ( NUM , b + factor ) ; set Color ( ( ( r << NUM ) & NUM ) | ( ( g << NUM ) &... | public void lighterColor ( int factor ) { int color = getColor ( ) ; int r = color > > _NUM & _NUM ; int g = color > > _NUM & _NUM ; int b = color & _NUM ; r = Math . min ( _NUM , r + factor ) ; g = Math . min ( _NUM , g + factor ) ; b = Math . min ( _NUM , b + factor ) ; setColor ( ( ( r << _NUM ) & _NUM ) | ( ( g << ... | 114 |
java-test-5803 | java | What does the code update to reflect the current printer ' s selected paper size and imageable area for that paper size ? | a paper object | protected void validate Paper ( Paper orig Paper , Paper new Paper ) { if ( orig Paper == null || new Paper == null ) { return ; } else { double wid = orig Paper . get Width ( ) ; double hgt = orig Paper . get Height ( ) ; double ix = orig Paper . get Imageable X ( ) ; double iy = orig Paper . get Imageable Y ( ) ; dou... | protected void validatePaper ( Paper origPaper , Paper newPaper ) { if ( origPaper == null || newPaper == null ) { return ; } else { double wid = origPaper . getWidth ( ) ; double hgt = origPaper . getHeight ( ) ; double ix = origPaper . getImageableX ( ) ; double iy = origPaper . getImageableY ( ) ; double iw = origPa... | 324 |
java-test-5804 | java | For what purpose does the code update a paper object ? | to reflect the current printer ' s selected paper size and imageable area for that paper size | protected void validate Paper ( Paper orig Paper , Paper new Paper ) { if ( orig Paper == null || new Paper == null ) { return ; } else { double wid = orig Paper . get Width ( ) ; double hgt = orig Paper . get Height ( ) ; double ix = orig Paper . get Imageable X ( ) ; double iy = orig Paper . get Imageable Y ( ) ; dou... | protected void validatePaper ( Paper origPaper , Paper newPaper ) { if ( origPaper == null || newPaper == null ) { return ; } else { double wid = origPaper . getWidth ( ) ; double hgt = origPaper . getHeight ( ) ; double ix = origPaper . getImageableX ( ) ; double iy = origPaper . getImageableY ( ) ; double iw = origPa... | 324 |
java-test-5805 | java | For what purpose did subclasses override this method ? | to make more informed decisons | protected void validate Paper ( Paper orig Paper , Paper new Paper ) { if ( orig Paper == null || new Paper == null ) { return ; } else { double wid = orig Paper . get Width ( ) ; double hgt = orig Paper . get Height ( ) ; double ix = orig Paper . get Imageable X ( ) ; double iy = orig Paper . get Imageable Y ( ) ; dou... | protected void validatePaper ( Paper origPaper , Paper newPaper ) { if ( origPaper == null || newPaper == null ) { return ; } else { double wid = origPaper . getWidth ( ) ; double hgt = origPaper . getHeight ( ) ; double ix = origPaper . getImageableX ( ) ; double iy = origPaper . getImageableY ( ) ; double iw = origPa... | 324 |
java-test-5808 | java | Where do the arrows draw ? | on the attack | private void draw Arrows ( final Graphics 2 D g2 d , final int x , final int y , final int width , final int height , final Enum Set < Direction > directions , final Color line Color ) { int arrow Height = NUM + NUM * ( height / NUM - NUM ) ; int arrow Width = NUM + ( width / NUM - NUM ) ; if ( directions . contains ( ... | private void drawArrows ( final Graphics2D g2d , final int x , final int y , final int width , final int height , final EnumSet < Direction > directions , final Color lineColor ) { int arrowHeight = _NUM + _NUM * ( height / _NUM - _NUM ) ; int arrowWidth = _NUM + ( width / _NUM - _NUM ) ; if ( directions . contains ( D... | 785 |
java-test-5809 | java | What does the code initiate through the underlying connection ? | a new multiplexed connection | public synchronized TCP Connection open Connection ( ) throws IO Exception { int id ; do { last ID = ( ++ last ID ) & NUM ; id = last ID ; if ( orig ) id |= NUM ; } while ( connection Table . get ( id ) != null ) ; Multiplex Connection Info info = new Multiplex Connection Info ( id ) ; info . in = new Multiplex Input S... | public synchronized TCPConnection openConnection ( ) throws IOException { int id ; do { lastID = ( ++ lastID ) & _NUM ; id = lastID ; if ( orig ) id |= _NUM ; } while ( connectionTable . get ( id ) != null ) ; MultiplexConnectionInfo info = new MultiplexConnectionInfo ( id ) ; info . in = new MultiplexInputStream ( thi... | 237 |
java-test-5810 | java | How does the code initiate a new multiplexed connection ? | through the underlying connection | public synchronized TCP Connection open Connection ( ) throws IO Exception { int id ; do { last ID = ( ++ last ID ) & NUM ; id = last ID ; if ( orig ) id |= NUM ; } while ( connection Table . get ( id ) != null ) ; Multiplex Connection Info info = new Multiplex Connection Info ( id ) ; info . in = new Multiplex Input S... | public synchronized TCPConnection openConnection ( ) throws IOException { int id ; do { lastID = ( ++ lastID ) & _NUM ; id = lastID ; if ( orig ) id |= _NUM ; } while ( connectionTable . get ( id ) != null ) ; MultiplexConnectionInfo info = new MultiplexConnectionInfo ( id ) ; info . in = new MultiplexInputStream ( thi... | 237 |
java-test-5811 | java | What is this method determines ? | whether there is a current span available associated with the supplied i d | public boolean has Span With Id ( String id ) { Trace State ts = trace State . get ( ) ; if ( ts != null ) { String current Id = ts . peek Id ( ) ; if ( log . is Loggable ( Level . FINEST ) ) { log . finest ( STRING + id + STRING + current Id . equals ( id ) ) ; } return current Id . equals ( id ) ; } return BOOL ; } | public boolean hasSpanWithId ( String id ) { TraceState ts = traceState . get ( ) ; if ( ts != null ) { String currentId = ts . peekId ( ) ; if ( log . isLoggable ( Level . FINEST ) ) { log . finest ( STRING + id + STRING + currentId . equals ( id ) ) ; } return currentId . equals ( id ) ; } return _BOOL ; } | 87 |
java-test-5813 | java | How does export masks sort ? | by eligibility | static public List < Export Mask > sort Masks By Eligibility ( Map < Export Mask , Export Mask Policy > mask Map , Export Group export Group ) { List < Export Mask Comparator Container > export Mask Container List = new Array List < Export Mask Comparator Container > ( ) ; for ( Map . Entry < Export Mask , Export Mask ... | static public List < ExportMask > sortMasksByEligibility ( Map < ExportMask , ExportMaskPolicy > maskMap , ExportGroup exportGroup ) { List < ExportMaskComparatorContainer > exportMaskContainerList = new ArrayList < ExportMaskComparatorContainer > ( ) ; for ( Map . Entry < ExportMask , ExportMaskPolicy > entry : maskMa... | 260 |
java-test-5814 | java | For what purpose does this method perform a sort of the list ? | to determine the sort order this class should be derived | public void sort ( boolean ascending ) { if ( filter == null ) { filter Impl ( STRING ) ; } Integer [ ] filter Array = new Integer [ filter . size ( ) ] ; Integer [ ] temp Array = new Integer [ filter . size ( ) ] ; for ( int iter = NUM ; iter < filter . size ( ) ; iter ++ ) { filter Array [ iter ] = filter . get ( ite... | public void sort ( boolean ascending ) { if ( filter == null ) { filterImpl ( STRING ) ; } Integer [ ] filterArray = new Integer [ filter . size ( ) ] ; Integer [ ] tempArray = new Integer [ filter . size ( ) ] ; for ( int iter = _NUM ; iter < filter . size ( ) ; iter ++ ) { filterArray [ iter ] = filter . get ( iter )... | 175 |
java-test-5815 | java | What does this method perform to determine the sort order this class should be derived ? | a sort of the list | public void sort ( boolean ascending ) { if ( filter == null ) { filter Impl ( STRING ) ; } Integer [ ] filter Array = new Integer [ filter . size ( ) ] ; Integer [ ] temp Array = new Integer [ filter . size ( ) ] ; for ( int iter = NUM ; iter < filter . size ( ) ; iter ++ ) { filter Array [ iter ] = filter . get ( ite... | public void sort ( boolean ascending ) { if ( filter == null ) { filterImpl ( STRING ) ; } Integer [ ] filterArray = new Integer [ filter . size ( ) ] ; Integer [ ] tempArray = new Integer [ filter . size ( ) ] ; for ( int iter = _NUM ; iter < filter . size ( ) ; iter ++ ) { filterArray [ iter ] = filter . get ( iter )... | 175 |
java-test-5816 | java | What does the code create ? | a new byte array | public static byte [ ] clone Byte Array ( byte [ ] b ) { if ( b == null ) { return null ; } int len = b . length ; if ( len == NUM ) { return EMPTY BYTES ; } byte [ ] copy = new byte [ len ] ; System . arraycopy ( b , NUM , copy , NUM , len ) ; return copy ; } | public static byte [ ] cloneByteArray ( byte [ ] b ) { if ( b == null ) { return null ; } int len = b . length ; if ( len == _NUM ) { return EMPTY_BYTES ; } byte [ ] copy = new byte [ len ] ; System . arraycopy ( b , _NUM , copy , _NUM , len ) ; return copy ; } | 75 |
java-test-5817 | java | What does the code create ? | a substitution from the type parameters to the corresponding type arguments | @ Safe Varargs public static < T > Substitution < T > for Args ( List < Type Variable > parameters , T ... arguments ) { if ( parameters . size ( ) != arguments . length ) { throw new Illegal Argument Exception ( STRING + parameters . size ( ) + STRING + arguments . length ) ; } Substitution < T > s = new Substitution ... | @ SafeVarargs public static < T > Substitution < T > forArgs ( List < TypeVariable > parameters , T ... arguments ) { if ( parameters . size ( ) != arguments . length ) { throw new IllegalArgumentException ( STRING + parameters . size ( ) + STRING + arguments . length ) ; } Substitution < T > s = new Substitution < > (... | 116 |
java-test-5818 | java | What is the length of the path from the start node n to the state where ? | g ( n ) | public int eval ( I Node state ) { Eight Puzzle Node node = ( Eight Puzzle Node ) state ; int Pn = NUM ; for ( int r = NUM ; r <= Eight Puzzle Node . Max R ; r ++ ) { for ( int c = NUM ; c <= Eight Puzzle Node . Max C ; c ++ ) { if ( node . is Empty ( r , c ) ) { continue ; } int digit = node . cell ( r , c ) ; Pn += M... | public int eval ( INode state ) { EightPuzzleNode node = ( EightPuzzleNode ) state ; int Pn = _NUM ; for ( int r = _NUM ; r <= EightPuzzleNode . MaxR ; r ++ ) { for ( int c = _NUM ; c <= EightPuzzleNode . MaxC ; c ++ ) { if ( node . isEmpty ( r , c ) ) { continue ; } int digit = node . cell ( r , c ) ; Pn += Math . abs... | 170 |
java-test-5819 | java | What does this method keep ? | objects that have been allocated for temporary storage | public Flat Buffer Builder init ( Byte Buffer existing bb ) { bb = existing bb ; bb . clear ( ) ; bb . order ( Byte Order . LITTLE ENDIAN ) ; minalign = NUM ; space = bb . capacity ( ) ; vtable in use = NUM ; nested = BOOL ; finished = BOOL ; object start = NUM ; num vtables = NUM ; vector num elems = NUM ; return this... | public FlatBufferBuilder init ( ByteBuffer existing_bb ) { bb = existing_bb ; bb . clear ( ) ; bb . order ( ByteOrder . LITTLE_ENDIAN ) ; minalign = _NUM ; space = bb . capacity ( ) ; vtable_in_use = _NUM ; nested = _BOOL ; finished = _BOOL ; object_start = _NUM ; num_vtables = _NUM ; vector_num_elems = _NUM ; return t... | 80 |
java-test-5820 | java | What allows reusing this object on an existing ` bytebuffer ` ? | alternative initializer | public Flat Buffer Builder init ( Byte Buffer existing bb ) { bb = existing bb ; bb . clear ( ) ; bb . order ( Byte Order . LITTLE ENDIAN ) ; minalign = NUM ; space = bb . capacity ( ) ; vtable in use = NUM ; nested = BOOL ; finished = BOOL ; object start = NUM ; num vtables = NUM ; vector num elems = NUM ; return this... | public FlatBufferBuilder init ( ByteBuffer existing_bb ) { bb = existing_bb ; bb . clear ( ) ; bb . order ( ByteOrder . LITTLE_ENDIAN ) ; minalign = _NUM ; space = bb . capacity ( ) ; vtable_in_use = _NUM ; nested = _BOOL ; finished = _BOOL ; object_start = _NUM ; num_vtables = _NUM ; vector_num_elems = _NUM ; return t... | 80 |
java-test-5821 | java | For what purpose have objects been allocated ? | for temporary storage | public Flat Buffer Builder init ( Byte Buffer existing bb ) { bb = existing bb ; bb . clear ( ) ; bb . order ( Byte Order . LITTLE ENDIAN ) ; minalign = NUM ; space = bb . capacity ( ) ; vtable in use = NUM ; nested = BOOL ; finished = BOOL ; object start = NUM ; num vtables = NUM ; vector num elems = NUM ; return this... | public FlatBufferBuilder init ( ByteBuffer existing_bb ) { bb = existing_bb ; bb . clear ( ) ; bb . order ( ByteOrder . LITTLE_ENDIAN ) ; minalign = _NUM ; space = bb . capacity ( ) ; vtable_in_use = _NUM ; nested = _BOOL ; finished = _BOOL ; object_start = _NUM ; num_vtables = _NUM ; vector_num_elems = _NUM ; return t... | 80 |
java-test-5822 | java | What does alternative initializer allow ? | reusing this object on an existing ` bytebuffer ` | public Flat Buffer Builder init ( Byte Buffer existing bb ) { bb = existing bb ; bb . clear ( ) ; bb . order ( Byte Order . LITTLE ENDIAN ) ; minalign = NUM ; space = bb . capacity ( ) ; vtable in use = NUM ; nested = BOOL ; finished = BOOL ; object start = NUM ; num vtables = NUM ; vector num elems = NUM ; return this... | public FlatBufferBuilder init ( ByteBuffer existing_bb ) { bb = existing_bb ; bb . clear ( ) ; bb . order ( ByteOrder . LITTLE_ENDIAN ) ; minalign = _NUM ; space = bb . capacity ( ) ; vtable_in_use = _NUM ; nested = _BOOL ; finished = _BOOL ; object_start = _NUM ; num_vtables = _NUM ; vector_num_elems = _NUM ; return t... | 80 |
java-test-5823 | java | What does this method reset ? | the builder ' s internal state | public Flat Buffer Builder init ( Byte Buffer existing bb ) { bb = existing bb ; bb . clear ( ) ; bb . order ( Byte Order . LITTLE ENDIAN ) ; minalign = NUM ; space = bb . capacity ( ) ; vtable in use = NUM ; nested = BOOL ; finished = BOOL ; object start = NUM ; num vtables = NUM ; vector num elems = NUM ; return this... | public FlatBufferBuilder init ( ByteBuffer existing_bb ) { bb = existing_bb ; bb . clear ( ) ; bb . order ( ByteOrder . LITTLE_ENDIAN ) ; minalign = _NUM ; space = bb . capacity ( ) ; vtable_in_use = _NUM ; nested = _BOOL ; finished = _BOOL ; object_start = _NUM ; num_vtables = _NUM ; vector_num_elems = _NUM ; return t... | 80 |
java-test-5826 | java | What do handles watch ? | issues with watching | private Etcd Keys Response handle Etcd Watch Errors ( Etcd Exception exception ) { if ( exception . error Code == ETCD EVENT INDEX CLEARED CODE ) { initial Set All Flagz ( ) ; return null ; } else if ( exception . error Code == ETCD WATCHER CLEARED CODE ) { try { Thread . sleep ( reelection Backoff Ms . get ( ) ) ; } c... | private EtcdKeysResponse handleEtcdWatchErrors ( EtcdException exception ) { if ( exception . errorCode == ETCD_EVENT_INDEX_CLEARED_CODE ) { initialSetAllFlagz ( ) ; return null ; } else if ( exception . errorCode == ETCD_WATCHER_CLEARED_CODE ) { try { Thread . sleep ( reelectionBackoffMs . get ( ) ) ; } catch ( Interr... | 100 |
java-test-5828 | java | What do the labeling allow ? | detecting cut edges | private static List find Labeled Edge Rings ( Collection dir Edges ) { List edge Ring Starts = new Array List ( ) ; long curr Label = NUM ; for ( Iterator i = dir Edges . iterator ( ) ; i . has Next ( ) ; ) { Polygonize Directed Edge de = ( Polygonize Directed Edge ) i . next ( ) ; if ( de . is Marked ( ) ) continue ; ... | private static List findLabeledEdgeRings ( Collection dirEdges ) { List edgeRingStarts = new ArrayList ( ) ; long currLabel = _NUM ; for ( Iterator i = dirEdges . iterator ( ) ; i . hasNext ( ) ; ) { PolygonizeDirectedEdge de = ( PolygonizeDirectedEdge ) i . next ( ) ; if ( de . isMarked ( ) ) continue ; if ( de . getL... | 134 |
java-test-5829 | java | What does the labeling detect ? | cut edges | private static List find Labeled Edge Rings ( Collection dir Edges ) { List edge Ring Starts = new Array List ( ) ; long curr Label = NUM ; for ( Iterator i = dir Edges . iterator ( ) ; i . has Next ( ) ; ) { Polygonize Directed Edge de = ( Polygonize Directed Edge ) i . next ( ) ; if ( de . is Marked ( ) ) continue ; ... | private static List findLabeledEdgeRings ( Collection dirEdges ) { List edgeRingStarts = new ArrayList ( ) ; long currLabel = _NUM ; for ( Iterator i = dirEdges . iterator ( ) ; i . hasNext ( ) ; ) { PolygonizeDirectedEdge de = ( PolygonizeDirectedEdge ) i . next ( ) ; if ( de . isMarked ( ) ) continue ; if ( de . getL... | 134 |
java-test-5830 | java | What do all calls of this method have ? | includestacktrace true | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5831 | java | When do ll change this so the trace is printed only when tlc is called with the - debug option ? | on 20 mar 2012 | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5832 | java | Where was this printing of the stack trace added probably by sz . the stack trace ? | in tlc2 - - | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5833 | java | What changed this so the trace is printed only when tlc is called with the - debug option on 20 mar 2012 ? | ll | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5834 | java | How was this printing of the stack trace added probably in tlc2 - - ? | by sz . the stack trace | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5835 | java | For what purpose do ll change this on 20 mar 2012 ? | so the trace is printed only when tlc is called with the - debug option | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5836 | java | When is the trace printed ? | only when tlc is called with the - debug option | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5837 | java | What have includestacktrace true ? | all calls of this method | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5838 | java | What was added in tlc2 - - ? | this printing of the stack trace | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5839 | java | What do the stack trace provide to the user ? | no useful information | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5840 | java | How is tlc called when ? | with the - debug option | private static void print Error ( int error Code , String cause , Throwable throwable , boolean include Stack Trace ) { print Error ( error Code , cause ) ; if ( include Stack Trace ) { if ( TLC Globals . debug ) { Debug Printer . print ( STRING ) ; throwable . print Stack Trace ( Tool IO . out ) ; } } } | private static void printError ( int errorCode , String cause , Throwable throwable , boolean includeStackTrace ) { printError ( errorCode , cause ) ; if ( includeStackTrace ) { if ( TLCGlobals . debug ) { DebugPrinter . print ( STRING ) ; throwable . printStackTrace ( ToolIO . out ) ; } } } | 69 |
java-test-5841 | java | What does the code join ? | a collection of strings , separated by a delimiter | @ Check Return Value @ Nonnull public static String join ( @ Nonnull Collection < String > s , @ Nonnull String delimiter ) { String Builder buffer = new String Builder ( ) ; Iterator < String > iter = s . iterator ( ) ; while ( iter . has Next ( ) ) { buffer . append ( iter . next ( ) ) ; if ( iter . has Next ( ) ) { ... | @ CheckReturnValue @ Nonnull public static String join ( @ Nonnull Collection < String > s , @ Nonnull String delimiter ) { StringBuilder buffer = new StringBuilder ( ) ; Iterator < String > iter = s . iterator ( ) ; while ( iter . hasNext ( ) ) { buffer . append ( iter . next ( ) ) ; if ( iter . hasNext ( ) ) { buffer... | 96 |
java-test-5842 | java | What does the code get ? | details for the removeinitiator method note | @ Suppress Warnings ( STRING ) public List < String > remove Initiator Details ( URI initiator Id ) { List < String > result = Lists . new Array List ( ) ; Initiator initiator = db Client . query Object ( Initiator . class , initiator Id ) ; if ( initiator != null ) { result . add ( Compute System Dialog Properties . g... | @ SuppressWarnings ( STRING ) public List < String > removeInitiatorDetails ( URI initiatorId ) { List < String > result = Lists . newArrayList ( ) ; Initiator initiator = _dbClient . queryObject ( Initiator . class , initiatorId ) ; if ( initiator != null ) { result . add ( ComputeSystemDialogProperties . getMessage (... | 219 |
java-test-5845 | java | What does the code delete ? | the latest photo that placed in the determined directory | public static boolean delete Latest Photo ( ) { try { File media Storage Dir = get Media Storage Dir ( ) ; if ( ! media Storage Dir . exists ( ) ) return BOOL ; File [ ] images = media Storage Dir . list Files ( ) ; File latest Image = images [ NUM ] ; for ( File image : images ) { if ( image . last Modified ( ) > late... | public static boolean deleteLatestPhoto ( ) { try { File mediaStorageDir = getMediaStorageDir ( ) ; if ( ! mediaStorageDir . exists ( ) ) return _BOOL ; File [ ] images = mediaStorageDir . listFiles ( ) ; File latestImage = images [ _NUM ] ; for ( File image : images ) { if ( image . lastModified ( ) > latestImage . la... | 135 |
java-test-5846 | java | What does a frameset branch element replace ? | with a frame leaf element | private void update Frame Set ( Element element , String url ) { try { int start Offset = element . get Start Offset ( ) ; int end Offset = Math . min ( get Length ( ) , element . get End Offset ( ) ) ; String html = STRING ; if ( url != null ) { html += STRING + url + STRING ; } html += STRING ; install Parser If Nece... | private void updateFrameSet ( Element element , String url ) { try { int startOffset = element . getStartOffset ( ) ; int endOffset = Math . min ( getLength ( ) , element . getEndOffset ( ) ) ; String html = STRING ; if ( url != null ) { html += STRING + url + STRING ; } html += STRING ; installParserIfNecessary ( ) ; ... | 109 |
java-test-5847 | java | What replaces with a frame leaf element ? | a frameset branch element | private void update Frame Set ( Element element , String url ) { try { int start Offset = element . get Start Offset ( ) ; int end Offset = Math . min ( get Length ( ) , element . get End Offset ( ) ) ; String html = STRING ; if ( url != null ) { html += STRING + url + STRING ; } html += STRING ; install Parser If Nece... | private void updateFrameSet ( Element element , String url ) { try { int startOffset = element . getStartOffset ( ) ; int endOffset = Math . min ( getLength ( ) , element . getEndOffset ( ) ) ; String html = STRING ; if ( url != null ) { html += STRING + url + STRING ; } html += STRING ; installParserIfNecessary ( ) ; ... | 109 |
java-test-5848 | java | What did a new list returned contain ? | the invalid messages and a pruned msglist containing only those messages that are valid for the given role of the controller and openflow version of the switch | protected static Collection < OF Message > prune Invalid Messages ( Iterable < OF Message > msg List , Collection < OF Message > valid , OF Version sw Version , boolean is Active ) { if ( is Active ) { valid . add All ( Iterable Utils . to Collection ( msg List ) ) ; return Collections . empty List ( ) ; } else { Set <... | protected static Collection < OFMessage > pruneInvalidMessages ( Iterable < OFMessage > msgList , Collection < OFMessage > valid , OFVersion swVersion , boolean isActive ) { if ( isActive ) { valid . addAll ( IterableUtils . toCollection ( msgList ) ) ; return Collections . emptyList ( ) ; } else { Set < OFType > inval... | 183 |
java-test-5849 | java | What do a pruned msglist contain ? | only those messages that are valid for the given role of the controller and openflow version of the switch | protected static Collection < OF Message > prune Invalid Messages ( Iterable < OF Message > msg List , Collection < OF Message > valid , OF Version sw Version , boolean is Active ) { if ( is Active ) { valid . add All ( Iterable Utils . to Collection ( msg List ) ) ; return Collections . empty List ( ) ; } else { Set <... | protected static Collection < OFMessage > pruneInvalidMessages ( Iterable < OFMessage > msgList , Collection < OFMessage > valid , OFVersion swVersion , boolean isActive ) { if ( isActive ) { valid . addAll ( IterableUtils . toCollection ( msgList ) ) ; return Collections . emptyList ( ) ; } else { Set < OFType > inval... | 183 |
java-test-5850 | java | What is containing the invalid messages and a pruned msglist containing only those messages that are valid for the given role of the controller and openflow version of the switch ? | a new list returned | protected static Collection < OF Message > prune Invalid Messages ( Iterable < OF Message > msg List , Collection < OF Message > valid , OF Version sw Version , boolean is Active ) { if ( is Active ) { valid . add All ( Iterable Utils . to Collection ( msg List ) ) ; return Collections . empty List ( ) ; } else { Set <... | protected static Collection < OFMessage > pruneInvalidMessages ( Iterable < OFMessage > msgList , Collection < OFMessage > valid , OFVersion swVersion , boolean isActive ) { if ( isActive ) { valid . addAll ( IterableUtils . toCollection ( msgList ) ) ; return Collections . emptyList ( ) ; } else { Set < OFType > inval... | 183 |
java-test-5851 | java | How does any invalid messages sort ? | by moving them from the msglist | protected static Collection < OF Message > prune Invalid Messages ( Iterable < OF Message > msg List , Collection < OF Message > valid , OF Version sw Version , boolean is Active ) { if ( is Active ) { valid . add All ( Iterable Utils . to Collection ( msg List ) ) ; return Collections . empty List ( ) ; } else { Set <... | protected static Collection < OFMessage > pruneInvalidMessages ( Iterable < OFMessage > msgList , Collection < OFMessage > valid , OFVersion swVersion , boolean isActive ) { if ( isActive ) { valid . addAll ( IterableUtils . toCollection ( msgList ) ) ; return Collections . emptyList ( ) ; } else { Set < OFType > inval... | 183 |
java-test-5852 | java | What is containing only those messages that are valid for the given role of the controller and openflow version of the switch ? | a pruned msglist | protected static Collection < OF Message > prune Invalid Messages ( Iterable < OF Message > msg List , Collection < OF Message > valid , OF Version sw Version , boolean is Active ) { if ( is Active ) { valid . add All ( Iterable Utils . to Collection ( msg List ) ) ; return Collections . empty List ( ) ; } else { Set <... | protected static Collection < OFMessage > pruneInvalidMessages ( Iterable < OFMessage > msgList , Collection < OFMessage > valid , OFVersion swVersion , boolean isActive ) { if ( isActive ) { valid . addAll ( IterableUtils . toCollection ( msgList ) ) ; return Collections . emptyList ( ) ; } else { Set < OFType > inval... | 183 |
java-test-5853 | java | For what purpose is the size of each existing slice recalculated as new items are added ? | so that the proportions remain correct | public int add Item ( String label , float value , int color ) { Item it = new Item ( ) ; it . m Label = label ; it . m Color = color ; it . m Value = value ; it . m Highlight = Color . argb ( NUM , Math . min ( ( int ) ( m Highlight Strength * ( float ) Color . red ( color ) ) , NUM ) , Math . min ( ( int ) ( m Highli... | public int addItem ( String label , float value , int color ) { Item it = new Item ( ) ; it . mLabel = label ; it . mColor = color ; it . mValue = value ; it . mHighlight = Color . argb ( _NUM , Math . min ( ( int ) ( mHighlightStrength * ( float ) Color . red ( color ) ) , _NUM ) , Math . min ( ( int ) ( mHighlightStr... | 164 |
java-test-5854 | java | When is the size of each existing slice recalculated so that the proportions remain correct ? | as new items are added | public int add Item ( String label , float value , int color ) { Item it = new Item ( ) ; it . m Label = label ; it . m Color = color ; it . m Value = value ; it . m Highlight = Color . argb ( NUM , Math . min ( ( int ) ( m Highlight Strength * ( float ) Color . red ( color ) ) , NUM ) , Math . min ( ( int ) ( m Highli... | public int addItem ( String label , float value , int color ) { Item it = new Item ( ) ; it . mLabel = label ; it . mColor = color ; it . mValue = value ; it . mHighlight = Color . argb ( _NUM , Math . min ( ( int ) ( mHighlightStrength * ( float ) Color . red ( color ) ) , _NUM ) , Math . min ( ( int ) ( mHighlightStr... | 164 |
java-test-5855 | java | What does the code add to this view ? | a new data item | public int add Item ( String label , float value , int color ) { Item it = new Item ( ) ; it . m Label = label ; it . m Color = color ; it . m Value = value ; it . m Highlight = Color . argb ( NUM , Math . min ( ( int ) ( m Highlight Strength * ( float ) Color . red ( color ) ) , NUM ) , Math . min ( ( int ) ( m Highli... | public int addItem ( String label , float value , int color ) { Item it = new Item ( ) ; it . mLabel = label ; it . mColor = color ; it . mValue = value ; it . mHighlight = Color . argb ( _NUM , Math . min ( ( int ) ( mHighlightStrength * ( float ) Color . red ( color ) ) , _NUM ) , Math . min ( ( int ) ( mHighlightStr... | 164 |
java-test-5856 | java | What will this class run actually for every link ? | the spanning tree algo | private final void init T Time Matrix ( ) { log . info ( STRING ) ; Set < Id > zids = new Hash Set < Id > ( ) ; for ( Id zid : l2 z Mapping . values ( ) ) { zids . add ( zid ) ; } ttime Matrix . clear ( ) ; for ( Id fzone : zids ) { Map < Id , Tuple < Double , Integer > > tmap = new Hash Map < Id , Tuple < Double , Int... | private final void initTTimeMatrix ( ) { log . info ( STRING ) ; Set < Id > zids = new HashSet < Id > ( ) ; for ( Id zid : l2zMapping . values ( ) ) { zids . add ( zid ) ; } ttimeMatrix . clear ( ) ; for ( Id fzone : zids ) { Map < Id , Tuple < Double , Integer > > tmap = new HashMap < Id , Tuple < Double , Integer > >... | 156 |
java-test-5857 | java | What does the code initialize ? | a place where link2link ttimes can be added into zones | private final void init T Time Matrix ( ) { log . info ( STRING ) ; Set < Id > zids = new Hash Set < Id > ( ) ; for ( Id zid : l2 z Mapping . values ( ) ) { zids . add ( zid ) ; } ttime Matrix . clear ( ) ; for ( Id fzone : zids ) { Map < Id , Tuple < Double , Integer > > tmap = new Hash Map < Id , Tuple < Double , Int... | private final void initTTimeMatrix ( ) { log . info ( STRING ) ; Set < Id > zids = new HashSet < Id > ( ) ; for ( Id zid : l2zMapping . values ( ) ) { zids . add ( zid ) ; } ttimeMatrix . clear ( ) ; for ( Id fzone : zids ) { Map < Id , Tuple < Double , Integer > > tmap = new HashMap < Id , Tuple < Double , Integer > >... | 156 |
java-test-5858 | java | What does i assume ? | that this class will actually run the spanning tree algo for every link . well , actually no | private final void init T Time Matrix ( ) { log . info ( STRING ) ; Set < Id > zids = new Hash Set < Id > ( ) ; for ( Id zid : l2 z Mapping . values ( ) ) { zids . add ( zid ) ; } ttime Matrix . clear ( ) ; for ( Id fzone : zids ) { Map < Id , Tuple < Double , Integer > > tmap = new Hash Map < Id , Tuple < Double , Int... | private final void initTTimeMatrix ( ) { log . info ( STRING ) ; Set < Id > zids = new HashSet < Id > ( ) ; for ( Id zid : l2zMapping . values ( ) ) { zids . add ( zid ) ; } ttimeMatrix . clear ( ) ; for ( Id fzone : zids ) { Map < Id , Tuple < Double , Integer > > tmap = new HashMap < Id , Tuple < Double , Integer > >... | 156 |
java-test-5859 | java | For what purpose will this class run the spanning tree algo actually ? | for every link | private final void init T Time Matrix ( ) { log . info ( STRING ) ; Set < Id > zids = new Hash Set < Id > ( ) ; for ( Id zid : l2 z Mapping . values ( ) ) { zids . add ( zid ) ; } ttime Matrix . clear ( ) ; for ( Id fzone : zids ) { Map < Id , Tuple < Double , Integer > > tmap = new Hash Map < Id , Tuple < Double , Int... | private final void initTTimeMatrix ( ) { log . info ( STRING ) ; Set < Id > zids = new HashSet < Id > ( ) ; for ( Id zid : l2zMapping . values ( ) ) { zids . add ( zid ) ; } ttimeMatrix . clear ( ) ; for ( Id fzone : zids ) { Map < Id , Tuple < Double , Integer > > tmap = new HashMap < Id , Tuple < Double , Integer > >... | 156 |
java-test-5860 | java | What can be added into zones a place ? | link2link ttimes | private final void init T Time Matrix ( ) { log . info ( STRING ) ; Set < Id > zids = new Hash Set < Id > ( ) ; for ( Id zid : l2 z Mapping . values ( ) ) { zids . add ( zid ) ; } ttime Matrix . clear ( ) ; for ( Id fzone : zids ) { Map < Id , Tuple < Double , Integer > > tmap = new Hash Map < Id , Tuple < Double , Int... | private final void initTTimeMatrix ( ) { log . info ( STRING ) ; Set < Id > zids = new HashSet < Id > ( ) ; for ( Id zid : l2zMapping . values ( ) ) { zids . add ( zid ) ; } ttimeMatrix . clear ( ) ; for ( Id fzone : zids ) { Map < Id , Tuple < Double , Integer > > tmap = new HashMap < Id , Tuple < Double , Integer > >... | 156 |
java-test-5861 | java | What does not have any decimals ? | the formatted value | public Monetary Format decimal Mark ( char decimal Mark ) { check Argument ( ! Character . is Digit ( decimal Mark ) ) ; check Argument ( decimal Mark > NUM ) ; if ( decimal Mark == this . decimal Mark ) return this ; else return new Monetary Format ( negative Sign , positive Sign , zero Digit , decimal Mark , min Deci... | public MonetaryFormat decimalMark ( char decimalMark ) { checkArgument ( ! Character . isDigit ( decimalMark ) ) ; checkArgument ( decimalMark > _NUM ) ; if ( decimalMark == this . decimalMark ) return this ; else return new MonetaryFormat ( negativeSign , positiveSign , zeroDigit , decimalMark , minDecimals , decimalG... | 86 |
java-test-5862 | java | What does the formatted value not have ? | any decimals | public Monetary Format decimal Mark ( char decimal Mark ) { check Argument ( ! Character . is Digit ( decimal Mark ) ) ; check Argument ( decimal Mark > NUM ) ; if ( decimal Mark == this . decimal Mark ) return this ; else return new Monetary Format ( negative Sign , positive Sign , zero Digit , decimal Mark , min Deci... | public MonetaryFormat decimalMark ( char decimalMark ) { checkArgument ( ! Character . isDigit ( decimalMark ) ) ; checkArgument ( decimalMark > _NUM ) ; if ( decimalMark == this . decimalMark ) return this ; else return new MonetaryFormat ( negativeSign , positiveSign , zeroDigit , decimalMark , minDecimals , decimalG... | 86 |
java-test-5865 | java | What contains primitive values seen during generation / execution ? | the runtimeprimitivesseen set | private void initialize Runtime Primitives Seen ( ) { for ( Sequence s : component Manager . get All Primitive Sequences ( ) ) { Executable Sequence es = new Executable Sequence ( s ) ; es . execute ( new Dummy Visitor ( ) , new Dummy Check Generator ( ) ) ; Normal Execution e = ( Normal Execution ) es . get Result ( N... | private void initializeRuntimePrimitivesSeen ( ) { for ( Sequence s : componentManager . getAllPrimitiveSequences ( ) ) { ExecutableSequence es = new ExecutableSequence ( s ) ; es . execute ( new DummyVisitor ( ) , new DummyCheckGenerator ( ) ) ; NormalExecution e = ( NormalExecution ) es . getResult ( _NUM ) ; Object ... | 94 |
java-test-5866 | java | What does this method put in this set ? | those primitives | private void initialize Runtime Primitives Seen ( ) { for ( Sequence s : component Manager . get All Primitive Sequences ( ) ) { Executable Sequence es = new Executable Sequence ( s ) ; es . execute ( new Dummy Visitor ( ) , new Dummy Check Generator ( ) ) ; Normal Execution e = ( Normal Execution ) es . get Result ( N... | private void initializeRuntimePrimitivesSeen ( ) { for ( Sequence s : componentManager . getAllPrimitiveSequences ( ) ) { ExecutableSequence es = new ExecutableSequence ( s ) ; es . execute ( new DummyVisitor ( ) , new DummyCheckGenerator ( ) ) ; NormalExecution e = ( NormalExecution ) es . getResult ( _NUM ) ; Object ... | 94 |
java-test-5867 | java | What does the runtimeprimitivesseen set contain ? | primitive values seen during generation / execution | private void initialize Runtime Primitives Seen ( ) { for ( Sequence s : component Manager . get All Primitive Sequences ( ) ) { Executable Sequence es = new Executable Sequence ( s ) ; es . execute ( new Dummy Visitor ( ) , new Dummy Check Generator ( ) ) ; Normal Execution e = ( Normal Execution ) es . get Result ( N... | private void initializeRuntimePrimitivesSeen ( ) { for ( Sequence s : componentManager . getAllPrimitiveSequences ( ) ) { ExecutableSequence es = new ExecutableSequence ( s ) ; es . execute ( new DummyVisitor ( ) , new DummyCheckGenerator ( ) ) ; NormalExecution e = ( NormalExecution ) es . getResult ( _NUM ) ; Object ... | 94 |
java-test-5868 | java | When did primitive values see ? | during generation / execution | private void initialize Runtime Primitives Seen ( ) { for ( Sequence s : component Manager . get All Primitive Sequences ( ) ) { Executable Sequence es = new Executable Sequence ( s ) ; es . execute ( new Dummy Visitor ( ) , new Dummy Check Generator ( ) ) ; Normal Execution e = ( Normal Execution ) es . get Result ( N... | private void initializeRuntimePrimitivesSeen ( ) { for ( Sequence s : componentManager . getAllPrimitiveSequences ( ) ) { ExecutableSequence es = new ExecutableSequence ( s ) ; es . execute ( new DummyVisitor ( ) , new DummyCheckGenerator ( ) ) ; NormalExecution e = ( NormalExecution ) es . getResult ( _NUM ) ; Object ... | 94 |
java-test-5869 | java | What do a use ? | a set of known indentification values in the map of filters | public static Map . Entry < Symbol , Described Type > find Filter ( Map < Symbol , Object > filters , Object [ ] filter Ids ) { if ( filter Ids == null || filter Ids . length == NUM ) { throw new Illegal Argument Exception ( STRING ) ; } if ( filters == null || filters . is Empty ( ) ) { return null ; } for ( Map . Ent... | public static Map . Entry < Symbol , DescribedType > findFilter ( Map < Symbol , Object > filters , Object [ ] filterIds ) { if ( filterIds == null || filterIds . length == _NUM ) { throw new IllegalArgumentException ( STRING ) ; } if ( filters == null || filters . isEmpty ( ) ) { return null ; } for ( Map . Entry < Sy... | 185 |
java-test-5873 | java | What will method not return if this can not be done but rather returns null ? | an " unknown " serializer | protected Json Serializer < Object > find Explicit Untyped Serializer ( Class < ? > runtime Type , Bean Property property ) { Json Serializer < Object > ser = known Serializers . untyped Value Serializer ( runtime Type ) ; if ( ser != null ) { return ser ; } ser = serializer Cache . untyped Value Serializer ( runtime T... | protected JsonSerializer < Object > _findExplicitUntypedSerializer ( Class < ? > runtimeType , BeanProperty property ) { JsonSerializer < Object > ser = _knownSerializers . untypedValueSerializer ( runtimeType ) ; if ( ser != null ) { return ser ; } ser = _serializerCache . untypedValueSerializer ( runtimeType ) ; if (... | 103 |
java-test-5874 | java | What will method try ? | to find a serializer , either from cache or by constructing one | protected Json Serializer < Object > find Explicit Untyped Serializer ( Class < ? > runtime Type , Bean Property property ) { Json Serializer < Object > ser = known Serializers . untyped Value Serializer ( runtime Type ) ; if ( ser != null ) { return ser ; } ser = serializer Cache . untyped Value Serializer ( runtime T... | protected JsonSerializer < Object > _findExplicitUntypedSerializer ( Class < ? > runtimeType , BeanProperty property ) { JsonSerializer < Object > ser = _knownSerializers . untypedValueSerializer ( runtimeType ) ; if ( ser != null ) { return ser ; } ser = _serializerCache . untypedValueSerializer ( runtimeType ) ; if (... | 103 |
java-test-5875 | java | What do that find ? | a serializer , either from cache or by constructing one | protected Json Serializer < Object > find Explicit Untyped Serializer ( Class < ? > runtime Type , Bean Property property ) { Json Serializer < Object > ser = known Serializers . untyped Value Serializer ( runtime Type ) ; if ( ser != null ) { return ser ; } ser = serializer Cache . untyped Value Serializer ( runtime T... | protected JsonSerializer < Object > _findExplicitUntypedSerializer ( Class < ? > runtimeType , BeanProperty property ) { JsonSerializer < Object > ser = _knownSerializers . untypedValueSerializer ( runtimeType ) ; if ( ser != null ) { return ser ; } ser = _serializerCache . untypedValueSerializer ( runtimeType ) ; if (... | 103 |
java-test-5877 | java | What does the method return using the java introspector class ? | the property descriptors obtained through introspection | protected static Property Descriptor [ ] introspect ( Class clazz ) { Bean Info bean Info ; try { bean Info = Introspector . get Bean Info ( clazz ) ; } catch ( Introspection Exception e ) { return ( new Property Descriptor [ NUM ] ) ; } return bean Info . get Property Descriptors ( ) ; } | protected static PropertyDescriptor [ ] introspect ( Class clazz ) { BeanInfo beanInfo ; try { beanInfo = Introspector . getBeanInfo ( clazz ) ; } catch ( IntrospectionException e ) { return ( new PropertyDescriptor [ _NUM ] ) ; } return beanInfo . getPropertyDescriptors ( ) ; } | 61 |
java-test-5878 | java | How does the method return the property descriptors obtained through introspection ? | using the java introspector class | protected static Property Descriptor [ ] introspect ( Class clazz ) { Bean Info bean Info ; try { bean Info = Introspector . get Bean Info ( clazz ) ; } catch ( Introspection Exception e ) { return ( new Property Descriptor [ NUM ] ) ; } return bean Info . get Property Descriptors ( ) ; } | protected static PropertyDescriptor [ ] introspect ( Class clazz ) { BeanInfo beanInfo ; try { beanInfo = Introspector . getBeanInfo ( clazz ) ; } catch ( IntrospectionException e ) { return ( new PropertyDescriptor [ _NUM ] ) ; } return beanInfo . getPropertyDescriptors ( ) ; } | 61 |
java-test-5879 | java | How did the property descriptors obtain ? | through introspection | protected static Property Descriptor [ ] introspect ( Class clazz ) { Bean Info bean Info ; try { bean Info = Introspector . get Bean Info ( clazz ) ; } catch ( Introspection Exception e ) { return ( new Property Descriptor [ NUM ] ) ; } return bean Info . get Property Descriptors ( ) ; } | protected static PropertyDescriptor [ ] introspect ( Class clazz ) { BeanInfo beanInfo ; try { beanInfo = Introspector . getBeanInfo ( clazz ) ; } catch ( IntrospectionException e ) { return ( new PropertyDescriptor [ _NUM ] ) ; } return beanInfo . getPropertyDescriptors ( ) ; } | 61 |
java-test-5880 | java | What do this method use ? | to get a new telegrambot instance with the selected auth token | public static Telegram Bot login ( String auth Token ) { try { Http Request With Body request = Unirest . post ( API URL + STRING + auth Token + STRING ) ; Http Response < String > response = request . as String ( ) ; JSON Object json Response = Utils . process Response ( response ) ; if ( json Response != null && Util... | public static TelegramBot login ( String authToken ) { try { HttpRequestWithBody request = Unirest . post ( API_URL + STRING + authToken + STRING ) ; HttpResponse < String > response = request . asString ( ) ; JSONObject jsonResponse = Utils . processResponse ( response ) ; if ( jsonResponse != null && Utils . checkRes... | 148 |
java-test-5882 | java | What did we use ? | the rootblock fields , nextoffset , metastartaddr , metabitsaddr . metabitsaddr | private void initfrom Root Block ( final I Root Block View rb ) throws IO Exception { assert ( rb != null ) ; m store UUID = rb . get UUID ( ) ; if ( rb . get Next Offset ( ) == NUM ) { default Init ( ) ; } else { final long nxt Offset = rb . get Next Offset ( ) ; m next Allocation = - ( int ) ( nxt Offset > > NUM ) ; ... | private void initfromRootBlock ( final IRootBlockView rb ) throws IOException { assert ( rb != null ) ; m_storeUUID = rb . getUUID ( ) ; if ( rb . getNextOffset ( ) == _NUM ) { defaultInit ( ) ; } else { final long nxtOffset = rb . getNextOffset ( ) ; m_nextAllocation = - ( int ) ( nxtOffset > > _NUM ) ; if ( m_nextAll... | 706 |
java-test-5883 | java | What indicates the size of the allocation also ? | the long value | private void initfrom Root Block ( final I Root Block View rb ) throws IO Exception { assert ( rb != null ) ; m store UUID = rb . get UUID ( ) ; if ( rb . get Next Offset ( ) == NUM ) { default Init ( ) ; } else { final long nxt Offset = rb . get Next Offset ( ) ; m next Allocation = - ( int ) ( nxt Offset > > NUM ) ; ... | private void initfromRootBlock ( final IRootBlockView rb ) throws IOException { assert ( rb != null ) ; m_storeUUID = rb . getUUID ( ) ; if ( rb . getNextOffset ( ) == _NUM ) { defaultInit ( ) ; } else { final long nxtOffset = rb . getNextOffset ( ) ; m_nextAllocation = - ( int ) ( nxtOffset > > _NUM ) ; if ( m_nextAll... | 706 |
java-test-5884 | java | What was used where ? | initfilespec | private void initfrom Root Block ( final I Root Block View rb ) throws IO Exception { assert ( rb != null ) ; m store UUID = rb . get UUID ( ) ; if ( rb . get Next Offset ( ) == NUM ) { default Init ( ) ; } else { final long nxt Offset = rb . get Next Offset ( ) ; m next Allocation = - ( int ) ( nxt Offset > > NUM ) ; ... | private void initfromRootBlock ( final IRootBlockView rb ) throws IOException { assert ( rb != null ) ; m_storeUUID = rb . getUUID ( ) ; if ( rb . getNextOffset ( ) == _NUM ) { defaultInit ( ) ; } else { final long nxtOffset = rb . getNextOffset ( ) ; m_nextAllocation = - ( int ) ( nxtOffset > > _NUM ) ; if ( m_nextAll... | 706 |
java-test-5885 | java | What used to indicate the size ? | the low order 16 bits | private void initfrom Root Block ( final I Root Block View rb ) throws IO Exception { assert ( rb != null ) ; m store UUID = rb . get UUID ( ) ; if ( rb . get Next Offset ( ) == NUM ) { default Init ( ) ; } else { final long nxt Offset = rb . get Next Offset ( ) ; m next Allocation = - ( int ) ( nxt Offset > > NUM ) ; ... | private void initfromRootBlock ( final IRootBlockView rb ) throws IOException { assert ( rb != null ) ; m_storeUUID = rb . getUUID ( ) ; if ( rb . getNextOffset ( ) == _NUM ) { defaultInit ( ) ; } else { final long nxtOffset = rb . getNextOffset ( ) ; m_nextAllocation = - ( int ) ( nxtOffset > > _NUM ) ; if ( m_nextAll... | 706 |
java-test-5886 | java | What did the low order 16 bits use ? | to indicate the size | private void initfrom Root Block ( final I Root Block View rb ) throws IO Exception { assert ( rb != null ) ; m store UUID = rb . get UUID ( ) ; if ( rb . get Next Offset ( ) == NUM ) { default Init ( ) ; } else { final long nxt Offset = rb . get Next Offset ( ) ; m next Allocation = - ( int ) ( nxt Offset > > NUM ) ; ... | private void initfromRootBlock ( final IRootBlockView rb ) throws IOException { assert ( rb != null ) ; m_storeUUID = rb . getUUID ( ) ; if ( rb . getNextOffset ( ) == _NUM ) { defaultInit ( ) ; } else { final long nxtOffset = rb . getNextOffset ( ) ; m_nextAllocation = - ( int ) ( nxtOffset > > _NUM ) ; if ( m_nextAll... | 706 |
java-test-5887 | java | What did the long value indicate also ? | the size of the allocation | private void initfrom Root Block ( final I Root Block View rb ) throws IO Exception { assert ( rb != null ) ; m store UUID = rb . get UUID ( ) ; if ( rb . get Next Offset ( ) == NUM ) { default Init ( ) ; } else { final long nxt Offset = rb . get Next Offset ( ) ; m next Allocation = - ( int ) ( nxt Offset > > NUM ) ; ... | private void initfromRootBlock ( final IRootBlockView rb ) throws IOException { assert ( rb != null ) ; m_storeUUID = rb . getUUID ( ) ; if ( rb . getNextOffset ( ) == _NUM ) { defaultInit ( ) ; } else { final long nxtOffset = rb . getNextOffset ( ) ; m_nextAllocation = - ( int ) ( nxtOffset > > _NUM ) ; if ( m_nextAll... | 706 |
java-test-5888 | java | What do we note ? | that metabitsaddr must be an absolute address , with the low order 16 bits used to indicate the size | private void initfrom Root Block ( final I Root Block View rb ) throws IO Exception { assert ( rb != null ) ; m store UUID = rb . get UUID ( ) ; if ( rb . get Next Offset ( ) == NUM ) { default Init ( ) ; } else { final long nxt Offset = rb . get Next Offset ( ) ; m next Allocation = - ( int ) ( nxt Offset > > NUM ) ; ... | private void initfromRootBlock ( final IRootBlockView rb ) throws IOException { assert ( rb != null ) ; m_storeUUID = rb . getUUID ( ) ; if ( rb . getNextOffset ( ) == _NUM ) { defaultInit ( ) ; } else { final long nxtOffset = rb . getNextOffset ( ) ; m_nextAllocation = - ( int ) ( nxtOffset > > _NUM ) ; if ( m_nextAll... | 706 |
java-test-5889 | java | What are allocated the file ? | the allocation blocks | private void initfrom Root Block ( final I Root Block View rb ) throws IO Exception { assert ( rb != null ) ; m store UUID = rb . get UUID ( ) ; if ( rb . get Next Offset ( ) == NUM ) { default Init ( ) ; } else { final long nxt Offset = rb . get Next Offset ( ) ; m next Allocation = - ( int ) ( nxt Offset > > NUM ) ; ... | private void initfromRootBlock ( final IRootBlockView rb ) throws IOException { assert ( rb != null ) ; m_storeUUID = rb . getUUID ( ) ; if ( rb . getNextOffset ( ) == _NUM ) { defaultInit ( ) ; } else { final long nxtOffset = rb . getNextOffset ( ) ; m_nextAllocation = - ( int ) ( nxtOffset > > _NUM ) ; if ( m_nextAll... | 706 |
java-test-5891 | java | What does the code get ? | descriptor for provided class | static Optimized Class Descriptor class Descriptor ( Concurrent Map < Class , Optimized Class Descriptor > cls Map , Class cls , Marshaller Context ctx , Optimized Marshaller Id Mapper mapper ) throws IO Exception { Optimized Class Descriptor desc = cls Map . get ( cls ) ; if ( desc == null ) { int type Id = resolve Ty... | static OptimizedClassDescriptor classDescriptor ( ConcurrentMap < Class , OptimizedClassDescriptor > clsMap , Class cls , MarshallerContext ctx , OptimizedMarshallerIdMapper mapper ) throws IOException { OptimizedClassDescriptor desc = clsMap . get ( cls ) ; if ( desc == null ) { int typeId = resolveTypeId ( cls . getN... | 181 |
java-test-5900 | java | What does this method take care ? | of the case that a new node < < state , tableau > > in the ( state x tableau ) graph is generated after the state itself has been done . done means that the state has been found during safety checking in the state graph already , except that the node < < state , tableau > > not been created . < p > in this case , we wi... | private void add Next State ( final TLC State s , final long fp , final TB Graph Node tnode , final Order Of Solution oos , final Tableau Disk Graph dgraph ) throws IO Exception { final boolean [ ] check State Res = oos . check State ( s ) ; final int slen = check State Res . length ; final int alen = oos . get Check A... | private void addNextState ( final TLCState s , final long fp , final TBGraphNode tnode , final OrderOfSolution oos , final TableauDiskGraph dgraph ) throws IOException { final boolean [ ] checkStateRes = oos . checkState ( s ) ; final int slen = checkStateRes . length ; final int alen = oos . getCheckAction ( ) . lengt... | 764 |
java-test-5901 | java | What have a new node < < state , tableau > > in the ( state x tableau ) graph is generated after the state itself has been done means ? | that the state has been found during safety checking in the state graph already , except that the node < < state , tableau > > not been created . < p > in this case , we will have to generate the state graph successors of the state and create the permutation of all successors with all tableau nodes . < p > hopefully , ... | private void add Next State ( final TLC State s , final long fp , final TB Graph Node tnode , final Order Of Solution oos , final Tableau Disk Graph dgraph ) throws IO Exception { final boolean [ ] check State Res = oos . check State ( s ) ; final int slen = check State Res . length ; final int alen = oos . get Check A... | private void addNextState ( final TLCState s , final long fp , final TBGraphNode tnode , final OrderOfSolution oos , final TableauDiskGraph dgraph ) throws IOException { final boolean [ ] checkStateRes = oos . checkState ( s ) ; final int slen = checkStateRes . length ; final int alen = oos . getCheckAction ( ) . lengt... | 764 |
java-test-5902 | java | When is a new node < < state , tableau > > in the ( state x tableau ) graph generated ? | after the state itself has been done | private void add Next State ( final TLC State s , final long fp , final TB Graph Node tnode , final Order Of Solution oos , final Tableau Disk Graph dgraph ) throws IO Exception { final boolean [ ] check State Res = oos . check State ( s ) ; final int slen = check State Res . length ; final int alen = oos . get Check A... | private void addNextState ( final TLCState s , final long fp , final TBGraphNode tnode , final OrderOfSolution oos , final TableauDiskGraph dgraph ) throws IOException { final boolean [ ] checkStateRes = oos . checkState ( s ) ; final int slen = checkStateRes . length ; final int alen = oos . getCheckAction ( ) . lengt... | 764 |
java-test-5903 | java | What do we create with all tableau nodes ? | the permutation of all successors | private void add Next State ( final TLC State s , final long fp , final TB Graph Node tnode , final Order Of Solution oos , final Tableau Disk Graph dgraph ) throws IO Exception { final boolean [ ] check State Res = oos . check State ( s ) ; final int slen = check State Res . length ; final int alen = oos . get Check A... | private void addNextState ( final TLCState s , final long fp , final TBGraphNode tnode , final OrderOfSolution oos , final TableauDiskGraph dgraph ) throws IOException { final boolean [ ] checkStateRes = oos . checkState ( s ) ; final int slen = checkStateRes . length ; final int alen = oos . getCheckAction ( ) . lengt... | 764 |
java-test-5904 | java | What do we generate ? | the state graph successors of the state | private void add Next State ( final TLC State s , final long fp , final TB Graph Node tnode , final Order Of Solution oos , final Tableau Disk Graph dgraph ) throws IO Exception { final boolean [ ] check State Res = oos . check State ( s ) ; final int slen = check State Res . length ; final int alen = oos . get Check A... | private void addNextState ( final TLCState s , final long fp , final TBGraphNode tnode , final OrderOfSolution oos , final TableauDiskGraph dgraph ) throws IOException { final boolean [ ] checkStateRes = oos . checkState ( s ) ; final int slen = checkStateRes . length ; final int alen = oos . getCheckAction ( ) . lengt... | 764 |
java-test-5905 | java | What do it generate ? | successor nodes | private void add Next State ( final TLC State s , final long fp , final TB Graph Node tnode , final Order Of Solution oos , final Tableau Disk Graph dgraph ) throws IO Exception { final boolean [ ] check State Res = oos . check State ( s ) ; final int slen = check State Res . length ; final int alen = oos . get Check A... | private void addNextState ( final TLCState s , final long fp , final TBGraphNode tnode , final OrderOfSolution oos , final TableauDiskGraph dgraph ) throws IOException { final boolean [ ] checkStateRes = oos . checkState ( s ) ; final int slen = checkStateRes . length ; final int alen = oos . getCheckAction ( ) . lengt... | 764 |
java-test-5906 | java | What have means that the state has been found during safety checking in the state graph already , except that the node < < state , tableau > > not been created . <p> in this case , we will have to generate the state graph successors of the state and create the permutation of all successors with all tableau nodes . <p> ... | a new node < < state , tableau > > in the ( state x tableau ) graph is generated after the state itself has been done | private void add Next State ( final TLC State s , final long fp , final TB Graph Node tnode , final Order Of Solution oos , final Tableau Disk Graph dgraph ) throws IO Exception { final boolean [ ] check State Res = oos . check State ( s ) ; final int slen = check State Res . length ; final int alen = oos . get Check A... | private void addNextState ( final TLCState s , final long fp , final TBGraphNode tnode , final OrderOfSolution oos , final TableauDiskGraph dgraph ) throws IOException { final boolean [ ] checkStateRes = oos . checkState ( s ) ; final int slen = checkStateRes . length ; final int alen = oos . getCheckAction ( ) . lengt... | 764 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.