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-754 | java | When do a subnode register ? | before its father node | void export Children ( Snmp Mib Oid brother ) throws Illegal Access Exception { if ( brother == null ) return ; final long [ ] oid = new long [ NUM ] ; for ( int i = NUM ; i < nb Children ; i ++ ) { final Snmp Mib Node child = children . element At ( i ) ; if ( child == null ) continue ; oid [ NUM ] = var List [ i ] ; ... | void exportChildren ( SnmpMibOid brother ) throws IllegalAccessException { if ( brother == null ) return ; final long [ ] oid = new long [ _NUM ] ; for ( int i = _NUM ; i < nbChildren ; i ++ ) { final SnmpMibNode child = children . elementAt ( i ) ; if ( child == null ) continue ; oid [ _NUM ] = varList [ i ] ; brother... | 97 |
java-test-755 | java | What does a patch fix ? | the problem of registering a subnode before its father node | void export Children ( Snmp Mib Oid brother ) throws Illegal Access Exception { if ( brother == null ) return ; final long [ ] oid = new long [ NUM ] ; for ( int i = NUM ; i < nb Children ; i ++ ) { final Snmp Mib Node child = children . element At ( i ) ; if ( child == null ) continue ; oid [ NUM ] = var List [ i ] ; ... | void exportChildren ( SnmpMibOid brother ) throws IllegalAccessException { if ( brother == null ) return ; final long [ ] oid = new long [ _NUM ] ; for ( int i = _NUM ; i < nbChildren ; i ++ ) { final SnmpMibNode child = children . elementAt ( i ) ; if ( child == null ) continue ; oid [ _NUM ] = varList [ i ] ; brother... | 97 |
java-test-756 | java | What does this node ' s children export ? | to a brother node that will replace this node in the oid tree | void export Children ( Snmp Mib Oid brother ) throws Illegal Access Exception { if ( brother == null ) return ; final long [ ] oid = new long [ NUM ] ; for ( int i = NUM ; i < nb Children ; i ++ ) { final Snmp Mib Node child = children . element At ( i ) ; if ( child == null ) continue ; oid [ NUM ] = var List [ i ] ; ... | void exportChildren ( SnmpMibOid brother ) throws IllegalAccessException { if ( brother == null ) return ; final long [ ] oid = new long [ _NUM ] ; for ( int i = _NUM ; i < nbChildren ; i ++ ) { final SnmpMibNode child = children . elementAt ( i ) ; if ( child == null ) continue ; oid [ _NUM ] = varList [ i ] ; brother... | 97 |
java-test-757 | java | What fixes the problem of registering a subnode before its father node ? | a patch | void export Children ( Snmp Mib Oid brother ) throws Illegal Access Exception { if ( brother == null ) return ; final long [ ] oid = new long [ NUM ] ; for ( int i = NUM ; i < nb Children ; i ++ ) { final Snmp Mib Node child = children . element At ( i ) ; if ( child == null ) continue ; oid [ NUM ] = var List [ i ] ; ... | void exportChildren ( SnmpMibOid brother ) throws IllegalAccessException { if ( brother == null ) return ; final long [ ] oid = new long [ _NUM ] ; for ( int i = _NUM ; i < nbChildren ; i ++ ) { final SnmpMibNode child = children . elementAt ( i ) ; if ( child == null ) continue ; oid [ _NUM ] = varList [ i ] ; brother... | 97 |
java-test-758 | java | What does the code compute ? | the predicted rating r between a user and an item based on the formula : r = b + q ^ t * ( p + ( 1 / sqrt ( n ) * sum ( y_i ) ) ) where b : the baseline estimate of the user for the item q : the item vector p : the user vector n : number of ratings of the user y_i : the weight vector | protected static final float compute Predicted Rating ( final float mean Rating , final float user Baseline , final float item Baseline , Float Matrix user , Float Matrix item , final int num Ratings , Float Matrix sum Weights , final float min Rating , final float max Rating ) { float predicted = mean Rating + user Ba... | protected static final float computePredictedRating ( final float meanRating , final float userBaseline , final float itemBaseline , FloatMatrix user , FloatMatrix item , final int numRatings , FloatMatrix sumWeights , final float minRating , final float maxRating ) { float predicted = meanRating + userBaseline + itemB... | 123 |
java-test-769 | java | What does this method close ? | the elasticsearch node | public void close ( ) { if ( log . is Loggable ( Level . FINEST ) ) { log . finest ( STRING + node + STRING + client ) ; } if ( client != null ) { client . close ( ) ; client = null ; } if ( node != null ) { node . stop ( ) ; node = null ; } } | public void close ( ) { if ( log . isLoggable ( Level . FINEST ) ) { log . finest ( STRING + node + STRING + client ) ; } if ( client != null ) { client . close ( ) ; client = null ; } if ( node != null ) { node . stop ( ) ; node = null ; } } | 70 |
java-test-772 | 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-773 | 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-774 | 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-777 | java | What does the code add ? | an equation with two operands on the right - hand side | void new Equation ( DF Lattice Cell lhs , DF Operator operator , DF Lattice Cell op 1 , DF Lattice Cell op 2 ) { DF Equation eq = new DF Equation ( lhs , operator , op 1 , op 2 ) ; equations . add Graph Node ( eq ) ; equations . add Graph Node ( lhs ) ; equations . add Graph Node ( op 1 ) ; equations . add Graph Node (... | void newEquation ( DF_LatticeCell lhs , DF_Operator operator , DF_LatticeCell op1 , DF_LatticeCell op2 ) { DF_Equation eq = new DF_Equation ( lhs , operator , op1 , op2 ) ; equations . addGraphNode ( eq ) ; equations . addGraphNode ( lhs ) ; equations . addGraphNode ( op1 ) ; equations . addGraphNode ( op2 ) ; newEquat... | 134 |
java-test-778 | java | For what purpose must any other threads in reactqueueconfiguration ( besides the ui thread ) to finish running be called from the ui thread ? | so that we can fully shut down other threads | @ Override public void destroy ( ) { Ui Thread Util . assert On Ui Thread ( ) ; if ( m Destroyed ) { return ; } m Destroyed = BOOL ; m Hybrid Data . reset Native ( ) ; m Java Registry . notify Catalyst Instance Destroy ( ) ; boolean was Idle = ( m Pending JS Calls . get And Set ( NUM ) == NUM ) ; if ( ! was Idle && ! m... | @ Override public void destroy ( ) { UiThreadUtil . assertOnUiThread ( ) ; if ( mDestroyed ) { return ; } mDestroyed = _BOOL ; mHybridData . resetNative ( ) ; mJavaRegistry . notifyCatalystInstanceDestroy ( ) ; boolean wasIdle = ( mPendingJSCalls . getAndSet ( _NUM ) == _NUM ) ; if ( ! wasIdle && ! mBridgeIdleListeners... | 131 |
java-test-780 | java | Where do device vibrate if the feature is enabled ? | on each key press | private void vibrate If Enabled ( ) { final boolean enabled = styled Attributes . get Boolean ( R . styleable . Pin Lock vibrate On Click , BOOL ) ; if ( enabled ) { Vibrator v = ( Vibrator ) context . get System Service ( Context . VIBRATOR SERVICE ) ; final int duration = styled Attributes . get Int ( R . styleable .... | private void vibrateIfEnabled ( ) { final boolean enabled = styledAttributes . getBoolean ( R . styleable . PinLock_vibrateOnClick , _BOOL ) ; if ( enabled ) { Vibrator v = ( Vibrator ) context . getSystemService ( Context . VIBRATOR_SERVICE ) ; final int duration = styledAttributes . getInt ( R . styleable . PinLock_v... | 85 |
java-test-781 | java | How does the code find the web - inf ? | dir | private void locate Uri Root ( File f ) { String t Uri Base = uri Base ; if ( t Uri Base == null ) { t Uri Base = STRING ; } try { if ( f . exists ( ) ) { f = new File ( f . get Canonical Path ( ) ) ; while ( f != null ) { File g = new File ( f , STRING ) ; if ( g . exists ( ) && g . is Directory ( ) ) { uri Root = f .... | private void locateUriRoot ( File f ) { String tUriBase = uriBase ; if ( tUriBase == null ) { tUriBase = STRING ; } try { if ( f . exists ( ) ) { f = new File ( f . getCanonicalPath ( ) ) ; while ( f != null ) { File g = new File ( f , STRING ) ; if ( g . exists ( ) && g . isDirectory ( ) ) { uriRoot = f . getCanonical... | 256 |
java-test-782 | java | What should we require maybe ? | the docbase | private void locate Uri Root ( File f ) { String t Uri Base = uri Base ; if ( t Uri Base == null ) { t Uri Base = STRING ; } try { if ( f . exists ( ) ) { f = new File ( f . get Canonical Path ( ) ) ; while ( f != null ) { File g = new File ( f , STRING ) ; if ( g . exists ( ) && g . is Directory ( ) ) { uri Root = f .... | private void locateUriRoot ( File f ) { String tUriBase = uriBase ; if ( tUriBase == null ) { tUriBase = STRING ; } try { if ( f . exists ( ) ) { f = new File ( f . getCanonicalPath ( ) ) ; while ( f != null ) { File g = new File ( f , STRING ) ; if ( g . exists ( ) && g . isDirectory ( ) ) { uriRoot = f . getCanonical... | 256 |
java-test-784 | java | How does the code initialize the gui ? | with settings from the filter being edited | protected void initialize ( ) { List < Add User Fields . Attribute Spec > specs = m filter . get Attribute Specs ( ) ; m list Model = new Default List Model ( ) ; m list . set Model ( m list Model ) ; if ( specs . size ( ) > NUM ) { m up But . set Enabled ( BOOL ) ; m down But . set Enabled ( BOOL ) ; for ( Add User Fi... | protected void initialize ( ) { List < AddUserFields . AttributeSpec > specs = m_filter . getAttributeSpecs ( ) ; m_listModel = new DefaultListModel ( ) ; m_list . setModel ( m_listModel ) ; if ( specs . size ( ) > _NUM ) { m_upBut . setEnabled ( _BOOL ) ; m_downBut . setEnabled ( _BOOL ) ; for ( AddUserFields . Attrib... | 183 |
java-test-787 | java | What does this method handle ? | version strings that include rc or ms | public static int compare Version Strings ( String version 1 , String version 2 ) throws Number Format Exception { version 1 = Sdk Utils . cleanup Version ( version 1 ) ; version 2 = Sdk Utils . cleanup Version ( version 2 ) ; String split Regex = STRING ; String [ ] array 1 = version 1 . split ( split Regex ) ; String... | public static int compareVersionStrings ( String version1 , String version2 ) throws NumberFormatException { version1 = SdkUtils . cleanupVersion ( version1 ) ; version2 = SdkUtils . cleanupVersion ( version2 ) ; String splitRegex = STRING ; String [ ] array1 = version1 . split ( splitRegex ) ; String [ ] array2 = vers... | 159 |
java-test-788 | java | For what purpose do we persist it immediately ? | so that if when further post - processing of the volume encounters some error , we would be able to have some reference to the volume and we could attempt to delete it | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-789 | java | What does further post - processing of the volume encounter when ? | some error | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-790 | java | What do we have ? | some reference to the volume | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-791 | java | Do we delete it ? | No | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-792 | java | What do we need ? | to immediately persist it , so that if when further post - processing of the volume encounters some error , we would be able to have some reference to the volume and we could attempt to delete it | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-793 | java | When be we be able to have some reference to the volume ? | when further post - processing of the volume encounters some error | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-794 | java | What does this method save ? | the native i d info and creation time for the volume object | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-795 | java | What encounters some error when ? | further post - processing of the volume | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-796 | java | What could we attempt ? | to delete it | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-797 | java | When do we persist it so that if when further post - processing of the volume encounters some error , we would be able to have some reference to the volume and we could attempt to delete it ? | immediately | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-798 | java | What does the code add ? | a else statement | public Pair add Else If ( Expr Boolean condition , Statement body , Position start , Position end ) { Pair pair ; ifs . add ( pair = new Pair ( condition , body , start , end ) ) ; body . set Parent ( this ) ; return pair ; } | public Pair addElseIf ( ExprBoolean condition , Statement body , Position start , Position end ) { Pair pair ; ifs . add ( pair = new Pair ( condition , body , start , end ) ) ; body . setParent ( this ) ; return pair ; } | 54 |
java-test-799 | java | What is to determine if the binary data contains a serialised session object ? | the objective | @ Suppress Warnings ( STRING ) private boolean is Token Valid For Compression ( byte [ ] blob ) { if ( blob == null ) { return BOOL ; } String contents ; try { contents = blob Utils . to UTF 8 ( blob ) ; } catch ( Unsupported Encoding Exception e ) { return BOOL ; } if ( ! contents . starts With ( STRING ) ) { return B... | @ SuppressWarnings ( STRING ) private boolean isTokenValidForCompression ( byte [ ] blob ) { if ( blob == null ) { return _BOOL ; } String contents ; try { contents = blobUtils . toUTF8 ( blob ) ; } catch ( UnsupportedEncodingException e ) { return _BOOL ; } if ( ! contents . startsWith ( STRING ) ) { return _BOOL ; } ... | 160 |
java-test-800 | java | What do the binary data contain ? | a serialised session object | @ Suppress Warnings ( STRING ) private boolean is Token Valid For Compression ( byte [ ] blob ) { if ( blob == null ) { return BOOL ; } String contents ; try { contents = blob Utils . to UTF 8 ( blob ) ; } catch ( Unsupported Encoding Exception e ) { return BOOL ; } if ( ! contents . starts With ( STRING ) ) { return B... | @ SuppressWarnings ( STRING ) private boolean isTokenValidForCompression ( byte [ ] blob ) { if ( blob == null ) { return _BOOL ; } String contents ; try { contents = blobUtils . toUTF8 ( blob ) ; } catch ( UnsupportedEncodingException e ) { return _BOOL ; } if ( ! contents . startsWith ( STRING ) ) { return _BOOL ; } ... | 160 |
java-test-801 | java | What does the objective be ? | to determine if the binary data contains a serialised session object | @ Suppress Warnings ( STRING ) private boolean is Token Valid For Compression ( byte [ ] blob ) { if ( blob == null ) { return BOOL ; } String contents ; try { contents = blob Utils . to UTF 8 ( blob ) ; } catch ( Unsupported Encoding Exception e ) { return BOOL ; } if ( ! contents . starts With ( STRING ) ) { return B... | @ SuppressWarnings ( STRING ) private boolean isTokenValidForCompression ( byte [ ] blob ) { if ( blob == null ) { return _BOOL ; } String contents ; try { contents = blobUtils . toUTF8 ( blob ) ; } catch ( UnsupportedEncodingException e ) { return _BOOL ; } if ( ! contents . startsWith ( STRING ) ) { return _BOOL ; } ... | 160 |
java-test-802 | java | What does the code convert to the type of the whole expression ? | an operand of a conditional expression | protected Node conditional Expr Promotion ( Node node , Type Mirror dest Type ) { Type Mirror node Type = node . get Type ( ) ; if ( types . is Same Type ( node Type , dest Type ) ) { return node ; } if ( Types Utils . is Primitive ( node Type ) && Types Utils . is Boxed Primitive ( dest Type ) ) { return box ( node ) ... | protected Node conditionalExprPromotion ( Node node , TypeMirror destType ) { TypeMirror nodeType = node . getType ( ) ; if ( types . isSameType ( nodeType , destType ) ) { return node ; } if ( TypesUtils . isPrimitive ( nodeType ) && TypesUtils . isBoxedPrimitive ( destType ) ) { return box ( node ) ; } boolean isBoxe... | 384 |
java-test-803 | java | When should caret be placed marker ? | when file is loaded in editor | protected void configure By File ( @ Test Data File @ Non Nls @ Not Null String file Path ) { try { final File io File = new File ( get Test Data Path ( ) + file Path ) ; String file Text = File Util Rt . load File ( io File , Charset Toolkit . UTF 8 , BOOL ) ; configure From File Text ( io File . get Name ( ) , file T... | protected void configureByFile ( @ TestDataFile @ NonNls @ NotNull String filePath ) { try { final File ioFile = new File ( getTestDataPath ( ) + filePath ) ; String fileText = FileUtilRt . loadFile ( ioFile , CharsetToolkit . UTF8 , _BOOL ) ; configureFromFileText ( ioFile . getName ( ) , fileText ) ; } catch ( IOExce... | 100 |
java-test-804 | java | What does that need ? | to be tested | protected void configure By File ( @ Test Data File @ Non Nls @ Not Null String file Path ) { try { final File io File = new File ( get Test Data Path ( ) + file Path ) ; String file Text = File Util Rt . load File ( io File , Charset Toolkit . UTF 8 , BOOL ) ; configure From File Text ( io File . get Name ( ) , file T... | protected void configureByFile ( @ TestDataFile @ NonNls @ NotNull String filePath ) { try { final File ioFile = new File ( getTestDataPath ( ) + filePath ) ; String fileText = FileUtilRt . loadFile ( ioFile , CharsetToolkit . UTF8 , _BOOL ) ; configureFromFileText ( ioFile . getName ( ) , fileText ) ; } catch ( IOExce... | 100 |
java-test-805 | java | Where is file loaded when ? | in editor | protected void configure By File ( @ Test Data File @ Non Nls @ Not Null String file Path ) { try { final File io File = new File ( get Test Data Path ( ) + file Path ) ; String file Text = File Util Rt . load File ( io File , Charset Toolkit . UTF 8 , BOOL ) ; configure From File Text ( io File . get Name ( ) , file T... | protected void configureByFile ( @ TestDataFile @ NonNls @ NotNull String filePath ) { try { final File ioFile = new File ( getTestDataPath ( ) + filePath ) ; String fileText = FileUtilRt . loadFile ( ioFile , CharsetToolkit . UTF8 , _BOOL ) ; configureFromFileText ( ioFile . getName ( ) , fileText ) ; } catch ( IOExce... | 100 |
java-test-806 | java | What does the code compute ? | the children of this package fragment | private I Java Element [ ] compute Children ( Array List names Without Extension ) { int size = names Without Extension . size ( ) ; if ( size == NUM ) return NO ELEMENTS ; I Java Element [ ] children = new I Java Element [ size ] ; for ( int i = NUM ; i < size ; i ++ ) { String name Without Extension = ( String ) name... | private IJavaElement [ ] computeChildren ( ArrayList namesWithoutExtension ) { int size = namesWithoutExtension . size ( ) ; if ( size == _NUM ) return NO_ELEMENTS ; IJavaElement [ ] children = new IJavaElement [ size ] ; for ( int i = _NUM ; i < size ; i ++ ) { String nameWithoutExtension = ( String ) namesWithoutExte... | 107 |
java-test-807 | java | What does the code make ? | the subpath unclosed | public List < Integer > replace Close With Line ( ) { List < Integer > modified Subpaths Indices = new Array List < > ( ) ; int i = NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . is Closed ( ) ) { subpath . set Closed ( BOOL ) ; subpath . add Segment ( new Line ( subpath . get Last Point ( ) , subpath . get ... | public List < Integer > replaceCloseWithLine ( ) { List < Integer > modifiedSubpathsIndices = new ArrayList < > ( ) ; int i = _NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . isClosed ( ) ) { subpath . setClosed ( _BOOL ) ; subpath . addSegment ( new Line ( subpath . getLastPoint ( ) , subpath . getStartPoint... | 105 |
java-test-808 | java | What does the line connect ? | the last and the first points of the subpaths | public List < Integer > replace Close With Line ( ) { List < Integer > modified Subpaths Indices = new Array List < > ( ) ; int i = NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . is Closed ( ) ) { subpath . set Closed ( BOOL ) ; subpath . add Segment ( new Line ( subpath . get Last Point ( ) , subpath . get ... | public List < Integer > replaceCloseWithLine ( ) { List < Integer > modifiedSubpathsIndices = new ArrayList < > ( ) ; int i = _NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . isClosed ( ) ) { subpath . setClosed ( _BOOL ) ; subpath . addSegment ( new Line ( subpath . getLastPoint ( ) , subpath . getStartPoint... | 105 |
java-test-809 | java | What does the code add to each closed subpath ? | additional line | public List < Integer > replace Close With Line ( ) { List < Integer > modified Subpaths Indices = new Array List < > ( ) ; int i = NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . is Closed ( ) ) { subpath . set Closed ( BOOL ) ; subpath . add Segment ( new Line ( subpath . get Last Point ( ) , subpath . get ... | public List < Integer > replaceCloseWithLine ( ) { List < Integer > modifiedSubpathsIndices = new ArrayList < > ( ) ; int i = _NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . isClosed ( ) ) { subpath . setClosed ( _BOOL ) ; subpath . addSegment ( new Line ( subpath . getLastPoint ( ) , subpath . getStartPoint... | 105 |
java-test-810 | java | What does this method return ? | all pending connectiorequest connections | public Enumeration enumurate Queue ( ) { Vector elements = new Vector ( ) ; synchronized ( LOCK ) { Enumeration e = pending . elements ( ) ; while ( e . has More Elements ( ) ) { elements . add Element ( e . next Element ( ) ) ; } } return elements . elements ( ) ; } | public Enumeration enumurateQueue ( ) { Vector elements = new Vector ( ) ; synchronized ( LOCK ) { Enumeration e = pending . elements ( ) ; while ( e . hasMoreElements ( ) ) { elements . addElement ( e . nextElement ( ) ) ; } } return elements . elements ( ) ; } | 63 |
java-test-811 | java | What did the code create ? | a single pipeline from them | private Collection Processing Engine build CPE ( ) throws Baleen Exception { if ( collection Reader == null ) { throw new Baleen Exception ( STRING ) ; } Map < String , Analysis Engine Description > analysis Engines = new Linked Hash Map < > ( ) ; analysis Engines . put All ( annotators ) ; analysis Engines . put All (... | private CollectionProcessingEngine buildCPE ( ) throws BaleenException { if ( collectionReader == null ) { throw new BaleenException ( STRING ) ; } Map < String , AnalysisEngineDescription > analysisEngines = new LinkedHashMap < > ( ) ; analysisEngines . putAll ( annotators ) ; analysisEngines . putAll ( consumers ) ; ... | 298 |
java-test-812 | java | What does the code take ? | the components previously created | private Collection Processing Engine build CPE ( ) throws Baleen Exception { if ( collection Reader == null ) { throw new Baleen Exception ( STRING ) ; } Map < String , Analysis Engine Description > analysis Engines = new Linked Hash Map < > ( ) ; analysis Engines . put All ( annotators ) ; analysis Engines . put All (... | private CollectionProcessingEngine buildCPE ( ) throws BaleenException { if ( collectionReader == null ) { throw new BaleenException ( STRING ) ; } Map < String , AnalysisEngineDescription > analysisEngines = new LinkedHashMap < > ( ) ; analysisEngines . putAll ( annotators ) ; analysisEngines . putAll ( consumers ) ; ... | 298 |
java-test-818 | java | What does the code find ? | rowindexmax for greaterthan operator | private static int uarimax Gt ( double value , double [ ] bv , int bvi [ ] , Binary Operator b Op ) throws DML Runtime Exception { int ix Max = bv . length ; if ( value <= bv [ NUM ] || value > bv [ bv . length - NUM ] ) return ix Max ; int ix = Arrays . binary Search ( bv , value ) ; ix = Math . abs ( ix ) - NUM ; ix ... | private static int uarimaxGt ( double value , double [ ] bv , int bvi [ ] , BinaryOperator bOp ) throws DMLRuntimeException { int ixMax = bv . length ; if ( value <= bv [ _NUM ] || value > bv [ bv . length - _NUM ] ) return ixMax ; int ix = Arrays . binarySearch ( bv , value ) ; ix = Math . abs ( ix ) - _NUM ; ixMax = ... | 102 |
java-test-819 | java | What does the iterator return for use by the application ? | amidentity objects | public Id Search Results search Identities ( Id Type type , String pattern , Map av Pairs , boolean recursive , int max Results , int max Time , Set return Attributes , boolean return All Attributes ) throws Id Repo Exception , SSO Exception { Id Search Control crtl = new Id Search Control ( ) ; crtl . set Search Modif... | public IdSearchResults searchIdentities ( IdType type , String pattern , Map avPairs , boolean recursive , int maxResults , int maxTime , Set returnAttributes , boolean returnAllAttributes ) throws IdRepoException , SSOException { IdSearchControl crtl = new IdSearchControl ( ) ; crtl . setSearchModifiers ( IdSearchOpMo... | 150 |
java-test-820 | java | For what purpose does the iterator return amidentity objects ? | for use by the application | public Id Search Results search Identities ( Id Type type , String pattern , Map av Pairs , boolean recursive , int max Results , int max Time , Set return Attributes , boolean return All Attributes ) throws Id Repo Exception , SSO Exception { Id Search Control crtl = new Id Search Control ( ) ; crtl . set Search Modif... | public IdSearchResults searchIdentities ( IdType type , String pattern , Map avPairs , boolean recursive , int maxResults , int maxTime , Set returnAttributes , boolean returnAllAttributes ) throws IdRepoException , SSOException { IdSearchControl crtl = new IdSearchControl ( ) ; crtl . setSearchModifiers ( IdSearchOpMo... | 150 |
java-test-821 | java | What does the code compute ? | the utility of all children with respect to this node | protected double category Utility ( ) throws Exception { if ( m children == null ) { throw new Exception ( STRING ) ; } double total CU = NUM ; for ( int i = NUM ; i < m children . size ( ) ; i ++ ) { C Node child = m children . get ( i ) ; total CU += category Utility Child ( child ) ; } total CU /= m children . size ... | protected double categoryUtility ( ) throws Exception { if ( m_children == null ) { throw new Exception ( STRING ) ; } double totalCU = _NUM ; for ( int i = _NUM ; i < m_children . size ( ) ; i ++ ) { CNode child = m_children . get ( i ) ; totalCU += categoryUtilityChild ( child ) ; } totalCU /= m_children . size ( ) ;... | 89 |
java-test-822 | java | What defined in plugins ? | filter conditions | public static void register Condition ( String condition Name , Class < ? extends Attribute Filter Condition > condition Class ) { String [ ] new Condition Names = new String [ CONDITION NAMES . length + NUM ] ; System . arraycopy ( CONDITION NAMES , NUM , new Condition Names , NUM , CONDITION NAMES . length ) ; new Co... | public static void registerCondition ( String conditionName , Class < ? extends AttributeFilterCondition > conditionClass ) { String [ ] newConditionNames = new String [ CONDITION_NAMES . length + _NUM ] ; System . arraycopy ( CONDITION_NAMES , _NUM , newConditionNames , _NUM , CONDITION_NAMES . length ) ; newCondition... | 150 |
java-test-823 | java | What does this method allow ? | registering filter conditions defined in plugins | public static void register Condition ( String condition Name , Class < ? extends Attribute Filter Condition > condition Class ) { String [ ] new Condition Names = new String [ CONDITION NAMES . length + NUM ] ; System . arraycopy ( CONDITION NAMES , NUM , new Condition Names , NUM , CONDITION NAMES . length ) ; new Co... | public static void registerCondition ( String conditionName , Class < ? extends AttributeFilterCondition > conditionClass ) { String [ ] newConditionNames = new String [ CONDITION_NAMES . length + _NUM ] ; System . arraycopy ( CONDITION_NAMES , _NUM , newConditionNames , _NUM , CONDITION_NAMES . length ) ; newCondition... | 150 |
java-test-826 | java | What does the code update ? | the form title | protected void update Form Title ( ) { if ( null != displayed Cmr Repository Definition ) { main Form . set Image ( Image Formatter . get Cmr Repository Image ( displayed Cmr Repository Definition , BOOL ) ) ; main Form . set Text ( displayed Cmr Repository Definition . get Name ( ) ) ; main Form . set Tool Tip Text ( ... | protected void updateFormTitle ( ) { if ( null != displayedCmrRepositoryDefinition ) { mainForm . setImage ( ImageFormatter . getCmrRepositoryImage ( displayedCmrRepositoryDefinition , _BOOL ) ) ; mainForm . setText ( displayedCmrRepositoryDefinition . getName ( ) ) ; mainForm . setToolTipText ( TextFormatter . getCmrR... | 139 |
java-test-827 | java | For what purpose do they present to the user ? | for toggling | private void add System Imes ( Set < String > exclude Packages ) { final Context context = get Activity ( ) ; if ( context == null ) return ; Input Method Manager imm = ( Input Method Manager ) context . get System Service ( Context . INPUT METHOD SERVICE ) ; List < Input Method Info > imis = imm . get Input Method Lis... | private void addSystemImes ( Set < String > excludePackages ) { final Context context = getActivity ( ) ; if ( context == null ) return ; InputMethodManager imm = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; List < InputMethodInfo > imis = imm . getInputMethodList ( ) ; for ( I... | 136 |
java-test-828 | java | What does the code find ? | all pre - installed input methods that are marked as default | private void add System Imes ( Set < String > exclude Packages ) { final Context context = get Activity ( ) ; if ( context == null ) return ; Input Method Manager imm = ( Input Method Manager ) context . get System Service ( Context . INPUT METHOD SERVICE ) ; List < Input Method Info > imis = imm . get Input Method Lis... | private void addSystemImes ( Set < String > excludePackages ) { final Context context = getActivity ( ) ; if ( context == null ) return ; InputMethodManager imm = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; List < InputMethodInfo > imis = imm . getInputMethodList ( ) ; for ( I... | 136 |
java-test-829 | java | Why do non - default ones add ? | as they may include other stuff that we don ' t need to auto - include | private void add System Imes ( Set < String > exclude Packages ) { final Context context = get Activity ( ) ; if ( context == null ) return ; Input Method Manager imm = ( Input Method Manager ) context . get System Service ( Context . INPUT METHOD SERVICE ) ; List < Input Method Info > imis = imm . get Input Method Lis... | private void addSystemImes ( Set < String > excludePackages ) { final Context context = getActivity ( ) ; if ( context == null ) return ; InputMethodManager imm = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; List < InputMethodInfo > imis = imm . getInputMethodList ( ) ; for ( I... | 136 |
java-test-830 | java | What installed pre ? | input methods | private void add System Imes ( Set < String > exclude Packages ) { final Context context = get Activity ( ) ; if ( context == null ) return ; Input Method Manager imm = ( Input Method Manager ) context . get System Service ( Context . INPUT METHOD SERVICE ) ; List < Input Method Info > imis = imm . get Input Method Lis... | private void addSystemImes ( Set < String > excludePackages ) { final Context context = getActivity ( ) ; if ( context == null ) return ; InputMethodManager imm = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; List < InputMethodInfo > imis = imm . getInputMethodList ( ) ; for ( I... | 136 |
java-test-831 | java | For what purpose did the code add them to an exclusion list ? | so that they aren ' t presented to the user for toggling | private void add System Imes ( Set < String > exclude Packages ) { final Context context = get Activity ( ) ; if ( context == null ) return ; Input Method Manager imm = ( Input Method Manager ) context . get System Service ( Context . INPUT METHOD SERVICE ) ; List < Input Method Info > imis = imm . get Input Method Lis... | private void addSystemImes ( Set < String > excludePackages ) { final Context context = getActivity ( ) ; if ( context == null ) return ; InputMethodManager imm = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; List < InputMethodInfo > imis = imm . getInputMethodList ( ) ; for ( I... | 136 |
java-test-832 | java | For what purpose does an internetaddress object or null return if the parsing fails ? | to be be used in multiple places | public static Internet Address parse Email ( Object value ) { String str = Caster . to String ( value , STRING ) ; if ( str . index Of ( STRING ) > - NUM ) { try { Internet Address addr = new Internet Address ( str ) ; fix IDN ( addr ) ; return addr ; } catch ( Address Exception ex ) { } } return null ; } | public static InternetAddress parseEmail ( Object value ) { String str = Caster . toString ( value , STRING ) ; if ( str . indexOf ( STRING ) > - _NUM ) { try { InternetAddress addr = new InternetAddress ( str ) ; fixIDN ( addr ) ; return addr ; } catch ( AddressException ex ) { } } return null ; } | 74 |
java-test-834 | java | What does this return for the caller to extract the output variables ? | the executioncontext | private Execution Context execute Using Simplified Compilation Chain ( String dml Script File Path , boolean is File , Map < String , String > arg Vals , boolean parse Py DML , String [ ] inputs , String [ ] outputs , Local Variable Map input Symbol Table , String config File Path ) throws IO Exception , DML Exception ... | private ExecutionContext executeUsingSimplifiedCompilationChain ( String dmlScriptFilePath , boolean isFile , Map < String , String > argVals , boolean parsePyDML , String [ ] inputs , String [ ] outputs , LocalVariableMap inputSymbolTable , String configFilePath ) throws IOException , DMLException { DMLConfig config =... | 597 |
java-test-835 | java | What does the caller extract ? | the output variables | private Execution Context execute Using Simplified Compilation Chain ( String dml Script File Path , boolean is File , Map < String , String > arg Vals , boolean parse Py DML , String [ ] inputs , String [ ] outputs , Local Variable Map input Symbol Table , String config File Path ) throws IO Exception , DML Exception ... | private ExecutionContext executeUsingSimplifiedCompilationChain ( String dmlScriptFilePath , boolean isFile , Map < String , String > argVals , boolean parsePyDML , String [ ] inputs , String [ ] outputs , LocalVariableMap inputSymbolTable , String configFilePath ) throws IOException , DMLException { DMLConfig config =... | 597 |
java-test-836 | java | How did the caller ( which is compileandexecutescript ) set inputsymboltable ? | with appropriate matrix representation ( rdd , matrixobject ) | private Execution Context execute Using Simplified Compilation Chain ( String dml Script File Path , boolean is File , Map < String , String > arg Vals , boolean parse Py DML , String [ ] inputs , String [ ] outputs , Local Variable Map input Symbol Table , String config File Path ) throws IO Exception , DML Exception ... | private ExecutionContext executeUsingSimplifiedCompilationChain ( String dmlScriptFilePath , boolean isFile , Map < String , String > argVals , boolean parsePyDML , String [ ] inputs , String [ ] outputs , LocalVariableMap inputSymbolTable , String configFilePath ) throws IOException , DMLException { DMLConfig config =... | 597 |
java-test-837 | java | For what purpose does this return the executioncontext ? | for the caller to extract the output variables | private Execution Context execute Using Simplified Compilation Chain ( String dml Script File Path , boolean is File , Map < String , String > arg Vals , boolean parse Py DML , String [ ] inputs , String [ ] outputs , Local Variable Map input Symbol Table , String config File Path ) throws IO Exception , DML Exception ... | private ExecutionContext executeUsingSimplifiedCompilationChain ( String dmlScriptFilePath , boolean isFile , Map < String , String > argVals , boolean parsePyDML , String [ ] inputs , String [ ] outputs , LocalVariableMap inputSymbolTable , String configFilePath ) throws IOException , DMLException { DMLConfig config =... | 597 |
java-test-843 | java | What does both say ? | in their comments that they ' re not really sure what the right approach is . we go with chrome ' s behavior ( which also experimentally seems to match what ie does ) | static String Builder append Quoted String ( String Builder target , String key ) { target . append ( STRING ) ; for ( int i = NUM , len = key . length ( ) ; i < len ; i ++ ) { char ch = key . char At ( i ) ; switch ( ch ) { case STRING : target . append ( STRING ) ; break ; case STRING : target . append ( STRING ) ; b... | static StringBuilder appendQuotedString ( StringBuilder target , String key ) { target . append ( STRING ) ; for ( int i = _NUM , len = key . length ( ) ; i < len ; i ++ ) { char ch = key . charAt ( i ) ; switch ( ch ) { case STRING : target . append ( STRING ) ; break ; case STRING : target . append ( STRING ) ; break... | 121 |
java-test-844 | java | Till when will this reveal start from the start view ' s boundaries ? | until it fills the target view | @ Non Null public static Animator create Circular Reveal ( @ Non Null Point center , int width , @ Non Null View target View , @ Non Null Interpolator interpolator ) { final Animator circular Reveal = View Animation Utils . create Circular Reveal ( target View , center . x , center . y , width , ( float ) Math . hypot ... | @ NonNull public static Animator createCircularReveal ( @ NonNull Point center , int width , @ NonNull View targetView , @ NonNull Interpolator interpolator ) { final Animator circularReveal = ViewAnimationUtils . createCircularReveal ( targetView , center . x , center . y , width , ( float ) Math . hypot ( center . x ... | 90 |
java-test-845 | java | What does the code create from a given start view to it ' s target view ? | a simple circular reveal | @ Non Null public static Animator create Circular Reveal ( @ Non Null Point center , int width , @ Non Null View target View , @ Non Null Interpolator interpolator ) { final Animator circular Reveal = View Animation Utils . create Circular Reveal ( target View , center . x , center . y , width , ( float ) Math . hypot ... | @ NonNull public static Animator createCircularReveal ( @ NonNull Point center , int width , @ NonNull View targetView , @ NonNull Interpolator interpolator ) { final Animator circularReveal = ViewAnimationUtils . createCircularReveal ( targetView , center . x , center . y , width , ( float ) Math . hypot ( center . x ... | 90 |
java-test-846 | java | In which direction does the code create a simple circular reveal ? | from a given start view to it ' s target view | @ Non Null public static Animator create Circular Reveal ( @ Non Null Point center , int width , @ Non Null View target View , @ Non Null Interpolator interpolator ) { final Animator circular Reveal = View Animation Utils . create Circular Reveal ( target View , center . x , center . y , width , ( float ) Math . hypot ... | @ NonNull public static Animator createCircularReveal ( @ NonNull Point center , int width , @ NonNull View targetView , @ NonNull Interpolator interpolator ) { final Animator circularReveal = ViewAnimationUtils . createCircularReveal ( targetView , center . x , center . y , width , ( float ) Math . hypot ( center . x ... | 90 |
java-test-847 | java | What does the code create ? | a new abstract managed object definition | protected Abstract Managed Object Definition ( String name , Abstract Managed Object Definition < ? super C , ? super S > parent ) { this . name = name ; this . parent = parent ; if ( parent != null ) { register In Parent ( ) ; for ( Property Definition < ? > pd : parent . get All Property Definitions ( ) ) { all Prope... | protected AbstractManagedObjectDefinition ( String name , AbstractManagedObjectDefinition < ? super C , ? super S > parent ) { this . name = name ; this . parent = parent ; if ( parent != null ) { registerInParent ( ) ; for ( PropertyDefinition < ? > pd : parent . getAllPropertyDefinitions ( ) ) { allPropertyDefinition... | 167 |
java-test-851 | java | What does the code capitalize ? | the first character of the titles of names : mr mrs ms miss dr prof | public static String capitalize Name Title Abbrvs ( String line ) { String result = line ; for ( String title : new String [ ] { STRING , STRING , STRING , STRING , STRING , STRING } ) { result = result . replace All ( STRING + title + STRING , Character . to Upper Case ( title . char At ( NUM ) ) + title . substring (... | public static String capitalizeNameTitleAbbrvs ( String line ) { String result = line ; for ( String title : new String [ ] { STRING , STRING , STRING , STRING , STRING , STRING } ) { result = result . replaceAll ( STRING + title + STRING , Character . toUpperCase ( title . charAt ( _NUM ) ) + title . substring ( _NUM ... | 114 |
java-test-852 | java | How do the osgi entry log ? | using the slf4j logger | private void log Entry ( Log Entry entry ) { String Builder log Message = new String Builder ( STRING ) ; log Message . append ( entry . get Bundle ( ) ) ; if ( entry . get Service Reference ( ) != null ) { log Message . append ( STRING ) ; log Message . append ( entry . get Service Reference ( ) ) ; } log Message . ap... | private void logEntry ( LogEntry entry ) { StringBuilder logMessage = new StringBuilder ( STRING ) ; logMessage . append ( entry . getBundle ( ) ) ; if ( entry . getServiceReference ( ) != null ) { logMessage . append ( STRING ) ; logMessage . append ( entry . getServiceReference ( ) ) ; } logMessage . append ( STRING ... | 258 |
java-test-855 | java | What does the code add to the colour map ? | more colours | private void extend Colour Map ( int highest ) { for ( int i = m color List . size ( ) ; i < highest ; i ++ ) { Color pc = m Default Colors [ i % NUM ] ; int ija = i / NUM ; ija *= NUM ; for ( int j = NUM ; j < ija ; j ++ ) { pc = pc . brighter ( ) ; } m color List . add ( pc ) ; } } | private void extendColourMap ( int highest ) { for ( int i = m_colorList . size ( ) ; i < highest ; i ++ ) { Color pc = m_DefaultColors [ i % _NUM ] ; int ija = i / _NUM ; ija *= _NUM ; for ( int j = _NUM ; j < ija ; j ++ ) { pc = pc . brighter ( ) ; } m_colorList . add ( pc ) ; } } | 89 |
java-test-856 | java | How does column numbers look starting from 0 ? | by giving the header line . i . e | public static Map < String , Integer > create Idx From Key ( String line , String seperator ) { String [ ] keys = line . split ( seperator ) ; Map < String , Integer > idx From Key = new Concurrent Hash Map < String , Integer > ( ) ; for ( int i = NUM ; i < keys . length ; i ++ ) { idx From Key . put ( keys [ i ] , i )... | public static Map < String , Integer > createIdxFromKey ( String line , String seperator ) { String [ ] keys = line . split ( seperator ) ; Map < String , Integer > idxFromKey = new ConcurrentHashMap < String , Integer > ( ) ; for ( int i = _NUM ; i < keys . length ; i ++ ) { idxFromKey . put ( keys [ i ] , i ) ; } ret... | 92 |
java-test-857 | java | What can be applied on the result got ? | multiple processors | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-858 | java | Where can multiple processors be applied ? | on the result got | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-859 | java | What can be applied on the processed result ? | multiple decorators | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-860 | java | Where can multiple decorators be applied ? | on the processed result | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-861 | java | What apply different types of decorators above the processed result ? | directormetrics | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-862 | java | Where do directormetrics apply different types of decorators ? | above the processed result | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-863 | java | What do directormetrics apply above the processed result ? | different types of decorators | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-866 | java | For what purpose do some super basic byte array use ? | . can be overridden if you like | private static String byte Array To Hex String ( byte [ ] bytes ) { String Builder sb = new String Builder ( bytes . length * NUM ) ; for ( byte element : bytes ) { int v = element & NUM ; if ( v < NUM ) { sb . append ( STRING ) ; } sb . append ( Integer . to Hex String ( v ) ) ; } return sb . to String ( ) ; } | private static String byteArrayToHexString ( byte [ ] bytes ) { StringBuilder sb = new StringBuilder ( bytes . length * _NUM ) ; for ( byte element : bytes ) { int v = element & _NUM ; if ( v < _NUM ) { sb . append ( STRING ) ; } sb . append ( Integer . toHexString ( v ) ) ; } return sb . toString ( ) ; } | 84 |
java-test-867 | java | What does the code create ? | a new updatepropertieswriter | @ Suppress Warnings ( { STRING , STRING } ) public Update Properties Writer ( final Properties prop , final Print Stream ps ) { this . prop = prop ; this . ps = ps ; this . keys = new Tree Set < String > ( ( Set ) prop . key Set ( ) ) ; } | @ SuppressWarnings ( { STRING , STRING } ) public UpdatePropertiesWriter ( final Properties prop , final PrintStream ps ) { this . prop = prop ; this . ps = ps ; this . keys = new TreeSet < String > ( ( Set ) prop . keySet ( ) ) ; } | 60 |
java-test-868 | java | What is it called from vm ? | to add certain system threads to the system thread group | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new Illegal Thread State Exception ( ) ; } if ( threads == null ) { threads = new Thread [ NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copy Of ( threads , nthreads * NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; n ... | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new IllegalThreadStateException ( ) ; } if ( threads == null ) { threads = new Thread [ _NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copyOf ( threads , nthreads * _NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; nUns... | 85 |
java-test-869 | java | What did it add to the system thread group ? | certain system threads | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new Illegal Thread State Exception ( ) ; } if ( threads == null ) { threads = new Thread [ NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copy Of ( threads , nthreads * NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; n ... | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new IllegalThreadStateException ( ) ; } if ( threads == null ) { threads = new Thread [ _NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copyOf ( threads , nthreads * _NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; nUns... | 85 |
java-test-870 | java | In which direction is it called to add certain system threads to the system thread group ? | from vm | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new Illegal Thread State Exception ( ) ; } if ( threads == null ) { threads = new Thread [ NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copy Of ( threads , nthreads * NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; n ... | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new IllegalThreadStateException ( ) ; } if ( threads == null ) { threads = new Thread [ _NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copyOf ( threads , nthreads * _NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; nUns... | 85 |
java-test-871 | java | For what purpose do them stuff in a normal array ? | for faster access | protected static Dynamic Field [ ] dynamic Field List To Sorted Array ( List < Dynamic Field > dynamic Field List ) { Dynamic Field [ ] d Fields = dynamic Field List . to Array ( new Dynamic Field [ dynamic Field List . size ( ) ] ) ; Arrays . sort ( d Fields ) ; log . trace ( STRING + Arrays . to String ( d Fields ) )... | protected static DynamicField [ ] dynamicFieldListToSortedArray ( List < DynamicField > dynamicFieldList ) { DynamicField [ ] dFields = dynamicFieldList . toArray ( new DynamicField [ dynamicFieldList . size ( ) ] ) ; Arrays . sort ( dFields ) ; log . trace ( STRING + Arrays . toString ( dFields ) ) ; return dFields ; ... | 80 |
java-test-876 | java | What does the code write ? | an array of bytes to the buffer expanding if necessary | public void write Bytes ( final byte [ ] bytes , final int off , final int len ) { if ( len > remaining ( ) ) { write Bytes Slow ( bytes , off , len ) ; return ; } final Block block = current ; System . arraycopy ( bytes , off , block . data , block . limit , len ) ; block . limit += len ; } | public void writeBytes ( final byte [ ] bytes , final int off , final int len ) { if ( len > remaining ( ) ) { writeBytesSlow ( bytes , off , len ) ; return ; } final Block block = current ; System . arraycopy ( bytes , off , block . data , block . limit , len ) ; block . limit += len ; } | 75 |
java-test-877 | java | What could we use ? | a rasterization algorithm | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-878 | java | What does this function keep from winding up in many unnecessary cells by inserting each segment individually and splitting long segments into pieces ? | long and angular line strings | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-879 | java | What uses real - world float coordinates , not fixed coordinates ? | the line string | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-880 | java | How does this function keep long and angular line strings from winding up in many unnecessary cells ? | by inserting each segment individually and splitting long segments into pieces | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-881 | java | How is just splitting the line segments up into manageable pieces easier to follow ? | at the expense of slower insert performance ( which so far doesn ' t seem to be a problem ) | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-882 | java | What do the line string use ? | real - world float coordinates , not fixed coordinates | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-885 | java | What does the code end ? | all subreports | public void end ( ) { while ( ! subreports . is Empty ( ) ) { String subreport = subreports . pop ( ) ; add Log Entry ( new Subreport End Entry ( subreport ) ) ; } this . end Date = new Date ( ) ; } | public void end ( ) { while ( ! subreports . isEmpty ( ) ) { String subreport = subreports . pop ( ) ; addLogEntry ( new SubreportEndEntry ( subreport ) ) ; } this . endDate = new Date ( ) ; } | 51 |
java-test-886 | java | When should this be done of course ? | during load time | public static void register ( String model Name , I Wind Model model , int awesomeness ) { models . put ( model Name , model ) ; if ( model Name . equals Ignore Case ( user Model Choice ) ) { awesomeness = Integer . MAX VALUE ; } if ( awesomeness > best ) { best = awesomeness ; active Model = model ; } } | public static void register ( String modelName , IWindModel model , int awesomeness ) { models . put ( modelName , model ) ; if ( modelName . equalsIgnoreCase ( userModelChoice ) ) { awesomeness = Integer . MAX_VALUE ; } if ( awesomeness > best ) { best = awesomeness ; activeModel = model ; } } | 69 |
java-test-891 | java | What does anything other than a 4 character length group password use ? | only valid group i d characters | public static final Loco Net Message create Set Ur 92 Group Password Packet ( String s Group Password ) throws jmri . jmrix . loconet . Loco Net Exception { int gr p1 = s Group Password . char At ( NUM ) ; int gr p2 = s Group Password . char At ( NUM ) ; int gr p3 = s Group Password . char At ( NUM ) ; int gr p4 = s Gr... | public static final LocoNetMessage createSetUr92GroupPasswordPacket ( String sGroupPassword ) throws jmri . jmrix . loconet . LocoNetException { int gr_p1 = sGroupPassword . charAt ( _NUM ) ; int gr_p2 = sGroupPassword . charAt ( _NUM ) ; int gr_p3 = sGroupPassword . charAt ( _NUM ) ; int gr_p4 = sGroupPassword . charA... | 419 |
java-test-892 | java | What uses only valid group i d characters ? | anything other than a 4 character length group password | public static final Loco Net Message create Set Ur 92 Group Password Packet ( String s Group Password ) throws jmri . jmrix . loconet . Loco Net Exception { int gr p1 = s Group Password . char At ( NUM ) ; int gr p2 = s Group Password . char At ( NUM ) ; int gr p3 = s Group Password . char At ( NUM ) ; int gr p4 = s Gr... | public static final LocoNetMessage createSetUr92GroupPasswordPacket ( String sGroupPassword ) throws jmri . jmrix . loconet . LocoNetException { int gr_p1 = sGroupPassword . charAt ( _NUM ) ; int gr_p2 = sGroupPassword . charAt ( _NUM ) ; int gr_p3 = sGroupPassword . charAt ( _NUM ) ; int gr_p4 = sGroupPassword . charA... | 419 |
java-test-893 | java | For what purpose does the code create a loconet packet ? | to set the duplex group password | public static final Loco Net Message create Set Ur 92 Group Password Packet ( String s Group Password ) throws jmri . jmrix . loconet . Loco Net Exception { int gr p1 = s Group Password . char At ( NUM ) ; int gr p2 = s Group Password . char At ( NUM ) ; int gr p3 = s Group Password . char At ( NUM ) ; int gr p4 = s Gr... | public static final LocoNetMessage createSetUr92GroupPasswordPacket ( String sGroupPassword ) throws jmri . jmrix . loconet . LocoNetException { int gr_p1 = sGroupPassword . charAt ( _NUM ) ; int gr_p2 = sGroupPassword . charAt ( _NUM ) ; int gr_p3 = sGroupPassword . charAt ( _NUM ) ; int gr_p4 = sGroupPassword . charA... | 419 |
java-test-894 | java | What does s provide ? | anything other than a 4 character length group password which uses only valid group i d characters ( 0 - 9 , a - c , a - c ) | public static final Loco Net Message create Set Ur 92 Group Password Packet ( String s Group Password ) throws jmri . jmrix . loconet . Loco Net Exception { int gr p1 = s Group Password . char At ( NUM ) ; int gr p2 = s Group Password . char At ( NUM ) ; int gr p3 = s Group Password . char At ( NUM ) ; int gr p4 = s Gr... | public static final LocoNetMessage createSetUr92GroupPasswordPacket ( String sGroupPassword ) throws jmri . jmrix . loconet . LocoNetException { int gr_p1 = sGroupPassword . charAt ( _NUM ) ; int gr_p2 = sGroupPassword . charAt ( _NUM ) ; int gr_p3 = sGroupPassword . charAt ( _NUM ) ; int gr_p4 = sGroupPassword . charA... | 419 |
java-test-895 | java | What does the code create ? | the cache to be used by this migration server | private void create Cache ( ) throws Exception { if ( this . distributed System == null ) { this . distributed System = Internal Distributed System . get Connected Instance ( ) ; } this . cache = Cache Factory . create ( this . distributed System ) ; } | private void createCache ( ) throws Exception { if ( this . distributedSystem == null ) { this . distributedSystem = InternalDistributedSystem . getConnectedInstance ( ) ; } this . cache = CacheFactory . create ( this . distributedSystem ) ; } | 51 |
java-test-896 | java | What is starting at the given index ? | a type argument signature | private static int append Type Argument Signature ( char [ ] string , int start , boolean fully Qualify Type Names , String Buffer buffer ) { if ( start >= string . length ) { throw new Illegal Argument Exception ( ) ; } char c = string [ start ] ; switch ( c ) { case C STAR : buffer . append ( STRING ) ; return start ... | private static int appendTypeArgumentSignature ( char [ ] string , int start , boolean fullyQualifyTypeNames , StringBuffer buffer ) { if ( start >= string . length ) { throw new IllegalArgumentException ( ) ; } char c = string [ start ] ; switch ( c ) { case C_STAR : buffer . append ( STRING ) ; return start ; case C_... | 153 |
java-test-898 | java | What loads the actual initiators first first ? | from the stringset | public static boolean check If Initiators For RP ( Db Client db Client , String Set initiator List ) { if ( db Client == null || initiator List == null ) { return BOOL ; } List < Initiator > initiators = new Array List < Initiator > ( ) ; for ( String initiator Id : initiator List ) { Initiator initiator = db Client . ... | public static boolean checkIfInitiatorsForRP ( DbClient dbClient , StringSet initiatorList ) { if ( dbClient == null || initiatorList == null ) { return _BOOL ; } List < Initiator > initiators = new ArrayList < Initiator > ( ) ; for ( String initiatorId : initiatorList ) { Initiator initiator = dbClient . queryObject (... | 111 |
java-test-899 | java | What do from the stringset load first first ? | the actual initiators | public static boolean check If Initiators For RP ( Db Client db Client , String Set initiator List ) { if ( db Client == null || initiator List == null ) { return BOOL ; } List < Initiator > initiators = new Array List < Initiator > ( ) ; for ( String initiator Id : initiator List ) { Initiator initiator = db Client . ... | public static boolean checkIfInitiatorsForRP ( DbClient dbClient , StringSet initiatorList ) { if ( dbClient == null || initiatorList == null ) { return _BOOL ; } List < Initiator > initiators = new ArrayList < Initiator > ( ) ; for ( String initiatorId : initiatorList ) { Initiator initiator = dbClient . queryObject (... | 111 |
java-test-900 | java | What does the code send to the websocket server ? | an opening handshake request | private void write Handshake ( Web Socket Output Stream output , String key ) throws Web Socket Exception { m Handshake Builder . set Key ( key ) ; String request Line = m Handshake Builder . build Request Line ( ) ; List < String [ ] > headers = m Handshake Builder . build Headers ( ) ; String handshake = Handshake Bu... | private void writeHandshake ( WebSocketOutputStream output , String key ) throws WebSocketException { mHandshakeBuilder . setKey ( key ) ; String requestLine = mHandshakeBuilder . buildRequestLine ( ) ; List < String [ ] > headers = mHandshakeBuilder . buildHeaders ( ) ; String handshake = HandshakeBuilder . build ( re... | 141 |
java-test-901 | java | What does the code create ? | a blog object | public static Blob to Blob ( Connection conn , Object value ) throws Page Exception , SQL Exception { if ( value instanceof Blob ) return ( Blob ) value ; if ( System Util . JAVA VERSION >= System Util . JAVA VERSION 1 6 ) { try { Blob blob = conn . create Blob ( ) ; blob . set Bytes ( NUM , Caster . to Binary ( value ... | public static Blob toBlob ( Connection conn , Object value ) throws PageException , SQLException { if ( value instanceof Blob ) return ( Blob ) value ; if ( SystemUtil . JAVA_VERSION >= SystemUtil . JAVA_VERSION_1_6 ) { try { Blob blob = conn . createBlob ( ) ; blob . setBytes ( _NUM , Caster . toBinary ( value ) ) ; r... | 150 |
java-test-902 | java | What does the code add to the target ? | a light indicator | protected Light Icon add Light ( ) { Light Icon l = new Light Icon ( this ) ; Icon Adder editor = get Icon Editor ( STRING ) ; l . set Off Icon ( editor . get Icon ( STRING ) ) ; l . set On Icon ( editor . get Icon ( STRING ) ) ; l . set Inconsistent Icon ( editor . get Icon ( STRING ) ) ; l . set Unknown Icon ( editor... | protected LightIcon addLight ( ) { LightIcon l = new LightIcon ( this ) ; IconAdder editor = getIconEditor ( STRING ) ; l . setOffIcon ( editor . getIcon ( STRING ) ) ; l . setOnIcon ( editor . getIcon ( STRING ) ) ; l . setInconsistentIcon ( editor . getIcon ( STRING ) ) ; l . setUnknownIcon ( editor . getIcon ( STRIN... | 133 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.