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-5624 | java | How do writing of logs handle ? | a consoleoutstream | public Console Out Stream ( final Log Controller log Controller ) { super ( ) ; this . log Controller = log Controller ; try { final File f = new File ( System . get Property ( STRING ) , log Name ) ; if ( ! f . exists ( ) ) { f . create New File ( ) ; } filestream = new Print Stream ( new File Output Stream ( f , BOOL... | public ConsoleOutStream ( final LogController logController ) { super ( ) ; this . logController = logController ; try { final File f = new File ( System . getProperty ( STRING ) , logName ) ; if ( ! f . exists ( ) ) { f . createNewFile ( ) ; } filestream = new PrintStream ( new FileOutputStream ( f , _BOOL ) ) ; } cat... | 102 |
java-test-5625 | java | What does the code instantiate ? | a consoleoutstream to handle writing of logs | public Console Out Stream ( final Log Controller log Controller ) { super ( ) ; this . log Controller = log Controller ; try { final File f = new File ( System . get Property ( STRING ) , log Name ) ; if ( ! f . exists ( ) ) { f . create New File ( ) ; } filestream = new Print Stream ( new File Output Stream ( f , BOOL... | public ConsoleOutStream ( final LogController logController ) { super ( ) ; this . logController = logController ; try { final File f = new File ( System . getProperty ( STRING ) , logName ) ; if ( ! f . exists ( ) ) { f . createNewFile ( ) ; } filestream = new PrintStream ( new FileOutputStream ( f , _BOOL ) ) ; } cat... | 102 |
java-test-5626 | java | How is the code executed if the gs . isfinal flag is set . this gets executed / for each player ? | instead of setstatus | public void final Status ( Game Status gs ) { if ( ! gs . is Final ) return ; int max VP = NUM ; int min Turns = NUM ; Array List < Integer > winners = new Array List < Integer > ( ) ; for ( int i = NUM ; i < players . get Count ( ) ; i ++ ) { if ( gs . hand Sizes [ i ] > max VP ) { winners . clear ( ) ; winners . add ... | public void finalStatus ( GameStatus gs ) { if ( ! gs . isFinal ) return ; int maxVP = _NUM ; int minTurns = _NUM ; ArrayList < Integer > winners = new ArrayList < Integer > ( ) ; for ( int i = _NUM ; i < players . getCount ( ) ; i ++ ) { if ( gs . handSizes [ i ] > maxVP ) { winners . clear ( ) ; winners . add ( i ) ;... | 484 |
java-test-5627 | java | How does the code create a distribution with only one bag ? | according to instances in source | public Distribution ( Instances source ) throws Exception { m per Class Per Bag = new double [ NUM ] [ NUM ] ; m per Bag = new double [ NUM ] ; tota L = NUM ; m per Class = new double [ source . num Classes ( ) ] ; m per Class Per Bag [ NUM ] = new double [ source . num Classes ( ) ] ; Enumeration < Instance > enu = so... | public Distribution ( Instances source ) throws Exception { m_perClassPerBag = new double [ _NUM ] [ _NUM ] ; m_perBag = new double [ _NUM ] ; totaL = _NUM ; m_perClass = new double [ source . numClasses ( ) ] ; m_perClassPerBag [ _NUM ] = new double [ source . numClasses ( ) ] ; Enumeration < Instance > enu = source .... | 112 |
java-test-5628 | java | What does the code create according to instances in source ? | a distribution with only one bag | public Distribution ( Instances source ) throws Exception { m per Class Per Bag = new double [ NUM ] [ NUM ] ; m per Bag = new double [ NUM ] ; tota L = NUM ; m per Class = new double [ source . num Classes ( ) ] ; m per Class Per Bag [ NUM ] = new double [ source . num Classes ( ) ] ; Enumeration < Instance > enu = so... | public Distribution ( Instances source ) throws Exception { m_perClassPerBag = new double [ _NUM ] [ _NUM ] ; m_perBag = new double [ _NUM ] ; totaL = _NUM ; m_perClass = new double [ source . numClasses ( ) ] ; m_perClassPerBag [ _NUM ] = new double [ source . numClasses ( ) ] ; Enumeration < Instance > enu = source .... | 112 |
java-test-5629 | java | How does an md4 message digest operation continue ? | by filling the buffer , transform ( ing ) data in 512 - bit message block ( s ) , updating the variables context and count , and leaving ( buffering ) the remaining bytes in buffer for the next update or finish | public void engine Update ( byte [ ] input , int offset , int len ) { if ( offset < NUM || len < NUM || ( long ) offset + len > input . length ) throw new Array Index Out Of Bounds Exception ( ) ; int buffer Ndx = ( int ) ( count % BLOCK LENGTH ) ; count += len ; int part Len = BLOCK LENGTH - buffer Ndx ; int i = NUM ;... | public void engineUpdate ( byte [ ] input , int offset , int len ) { if ( offset < _NUM || len < _NUM || ( long ) offset + len > input . length ) throw new ArrayIndexOutOfBoundsException ( ) ; int bufferNdx = ( int ) ( count % BLOCK_LENGTH ) ; count += len ; int partLen = BLOCK_LENGTH - bufferNdx ; int i = _NUM ; if ( ... | 177 |
java-test-5630 | java | How do data transform ? | in 512 - bit message block ( s ) | public void engine Update ( byte [ ] input , int offset , int len ) { if ( offset < NUM || len < NUM || ( long ) offset + len > input . length ) throw new Array Index Out Of Bounds Exception ( ) ; int buffer Ndx = ( int ) ( count % BLOCK LENGTH ) ; count += len ; int part Len = BLOCK LENGTH - buffer Ndx ; int i = NUM ;... | public void engineUpdate ( byte [ ] input , int offset , int len ) { if ( offset < _NUM || len < _NUM || ( long ) offset + len > input . length ) throw new ArrayIndexOutOfBoundsException ( ) ; int bufferNdx = ( int ) ( count % BLOCK_LENGTH ) ; count += len ; int partLen = BLOCK_LENGTH - bufferNdx ; int i = _NUM ; if ( ... | 177 |
java-test-5631 | java | Where does the code create a builder ? | on top of the current resources xml file | public static Resources Poet create ( File file ) { init ( ) ; try { Document document = s Document Builder . parse ( file ) ; Element resources ; Node List list = document . get Elements By Tag Name ( ELEMENT RESOURCES ) ; if ( list == null || list . get Length ( ) == NUM ) { resources = document . create Element ( EL... | public static ResourcesPoet create ( File file ) { init ( ) ; try { Document document = sDocumentBuilder . parse ( file ) ; Element resources ; NodeList list = document . getElementsByTagName ( ELEMENT_RESOURCES ) ; if ( list == null || list . getLength ( ) == _NUM ) { resources = document . createElement ( ELEMENT_RES... | 130 |
java-test-5632 | java | In which direction do an arc centered at pc go ? | clockwise and including the two end points | public static final Geo [ ] approximate Arc ( Geo pc , Geo p0 , Geo p1 , double err ) { double theta = angle ( p0 , pc , p1 ) ; if ( Double . is Na N ( theta ) ) { return new Geo [ ] { p0 , p1 } ; } int n = ( int ) ( NUM + Math . abs ( theta / err ) ) ; Geo [ ] result = new Geo [ n ] ; result [ NUM ] = p0 ; double dthe... | public static final Geo [ ] approximateArc ( Geo pc , Geo p0 , Geo p1 , double err ) { double theta = angle ( p0 , pc , p1 ) ; if ( Double . isNaN ( theta ) ) { return new Geo [ ] { p0 , p1 } ; } int n = ( int ) ( _NUM + Math . abs ( theta / err ) ) ; Geo [ ] result = new Geo [ n ] ; result [ _NUM ] = p0 ; double dthet... | 173 |
java-test-5633 | java | What does the code save to the workspace ? | shared classpath files | private void save Shared Files ( List < String > shared Files , String handle Id , Start Request request ) { int i = NUM ; if ( shared Files == null || shared Files . size ( ) == NUM ) { return ; } for ( String filename : shared Files ) { Input Stream input Stream = request . get File ( STRING + i , BOOL ) ; file Manag... | private void saveSharedFiles ( List < String > sharedFiles , String handleId , StartRequest request ) { int i = _NUM ; if ( sharedFiles == null || sharedFiles . size ( ) == _NUM ) { return ; } for ( String filename : sharedFiles ) { InputStream inputStream = request . getFile ( STRING + i , _BOOL ) ; fileManager . save... | 93 |
java-test-5634 | java | What does the code add ? | a new sampler | public synchronized boolean add Sampler ( Sampler sampler ) { if ( tracer Pool == null ) { throw Client Error ( to String ( ) + STRING ) ; } Sampler [ ] samplers = cur Samplers ; for ( int i = NUM ; i < samplers . length ; i ++ ) { if ( samplers [ i ] == sampler ) { return BOOL ; } } Sampler [ ] new Samplers = Arrays .... | public synchronized boolean addSampler ( Sampler sampler ) { if ( tracerPool == null ) { throwClientError ( toString ( ) + STRING ) ; } Sampler [ ] samplers = curSamplers ; for ( int i = _NUM ; i < samplers . length ; i ++ ) { if ( samplers [ i ] == sampler ) { return _BOOL ; } } Sampler [ ] newSamplers = Arrays . copy... | 111 |
java-test-5635 | java | What does an ngram ( represented by the list of tokens ) not pass ? | the stopword filter | public static boolean passes Ngram Filter ( List < String > token List , Set < String > stopwords , boolean filter Partial Matches ) { List < String > filtered List = new Array List < String > ( ) ; for ( String ngram : token List ) { if ( ! stopwords . contains ( ngram ) ) { filtered List . add ( ngram ) ; } } if ( fi... | public static boolean passesNgramFilter ( List < String > tokenList , Set < String > stopwords , boolean filterPartialMatches ) { List < String > filteredList = new ArrayList < String > ( ) ; for ( String ngram : tokenList ) { if ( ! stopwords . contains ( ngram ) ) { filteredList . add ( ngram ) ; } } if ( filterParti... | 109 |
java-test-5636 | java | What does not pass the stopword filter ? | an ngram ( represented by the list of tokens ) | public static boolean passes Ngram Filter ( List < String > token List , Set < String > stopwords , boolean filter Partial Matches ) { List < String > filtered List = new Array List < String > ( ) ; for ( String ngram : token List ) { if ( ! stopwords . contains ( ngram ) ) { filtered List . add ( ngram ) ; } } if ( fi... | public static boolean passesNgramFilter ( List < String > tokenList , Set < String > stopwords , boolean filterPartialMatches ) { List < String > filteredList = new ArrayList < String > ( ) ; for ( String ngram : tokenList ) { if ( ! stopwords . contains ( ngram ) ) { filteredList . add ( ngram ) ; } } if ( filterParti... | 109 |
java-test-5637 | java | Does an ngram ( represented by the list of tokens ) pass the stopword filter ? | No | public static boolean passes Ngram Filter ( List < String > token List , Set < String > stopwords , boolean filter Partial Matches ) { List < String > filtered List = new Array List < String > ( ) ; for ( String ngram : token List ) { if ( ! stopwords . contains ( ngram ) ) { filtered List . add ( ngram ) ; } } if ( fi... | public static boolean passesNgramFilter ( List < String > tokenList , Set < String > stopwords , boolean filterPartialMatches ) { List < String > filteredList = new ArrayList < String > ( ) ; for ( String ngram : tokenList ) { if ( ! stopwords . contains ( ngram ) ) { filteredList . add ( ngram ) ; } } if ( filterParti... | 109 |
java-test-5638 | java | What does it contain ? | any stopwords b ) filterpartialmatches = false | public static boolean passes Ngram Filter ( List < String > token List , Set < String > stopwords , boolean filter Partial Matches ) { List < String > filtered List = new Array List < String > ( ) ; for ( String ngram : token List ) { if ( ! stopwords . contains ( ngram ) ) { filtered List . add ( ngram ) ; } } if ( fi... | public static boolean passesNgramFilter ( List < String > tokenList , Set < String > stopwords , boolean filterPartialMatches ) { List < String > filteredList = new ArrayList < String > ( ) ; for ( String ngram : tokenList ) { if ( ! stopwords . contains ( ngram ) ) { filteredList . add ( ngram ) ; } } if ( filterParti... | 109 |
java-test-5640 | java | What does the code write into a log ? | this particular history transaction of this cloudlet | protected void write ( final String str ) { if ( ! record ) { return ; } if ( num == null || history == null ) { newline = System . get Property ( STRING ) ; num = new Decimal Format ( STRING ) ; history = new String Buffer ( NUM ) ; history . append ( STRING ) ; history . append ( System . get Property ( STRING ) ) ; ... | protected void write ( final String str ) { if ( ! record ) { return ; } if ( num == null || history == null ) { newline = System . getProperty ( STRING ) ; num = new DecimalFormat ( STRING ) ; history = new StringBuffer ( _NUM ) ; history . append ( STRING ) ; history . append ( System . getProperty ( STRING ) ) ; his... | 190 |
java-test-5641 | java | What does this parse ? | the value part of a header | public static final Header Element [ ] parse Elements ( final char [ ] header Value ) { LOG . trace ( STRING ) ; if ( header Value == null ) { return new Header Element [ ] { } ; } final List elements = new Array List ( ) ; int i = NUM ; int from = NUM ; final int len = header Value . length ; boolean qouted = BOOL ; w... | public static final HeaderElement [ ] parseElements ( final char [ ] headerValue ) { LOG . trace ( STRING ) ; if ( headerValue == null ) { return new HeaderElement [ ] { } ; } final List elements = new ArrayList ( ) ; int i = _NUM ; int from = _NUM ; final int len = headerValue . length ; boolean qouted = _BOOL ; while... | 230 |
java-test-5642 | java | Where did a certificate generation start ? | at starttimems | public void certificate Created ( long start Time Ms , long finish Time Ms ) { certificates Generated . increment And Get ( ) ; certificate Generation Time Ms . add And Get ( finish Time Ms - start Time Ms ) ; first Certificate Generated Timestamp . compare And Set ( NUM , System . current Time Millis ( ) ) ; } | public void certificateCreated ( long startTimeMs , long finishTimeMs ) { certificatesGenerated . incrementAndGet ( ) ; certificateGenerationTimeMs . addAndGet ( finishTimeMs - startTimeMs ) ; firstCertificateGeneratedTimestamp . compareAndSet ( _NUM , System . currentTimeMillis ( ) ) ; } | 64 |
java-test-5643 | java | Where did a certificate generation complete ? | at finishtimems | public void certificate Created ( long start Time Ms , long finish Time Ms ) { certificates Generated . increment And Get ( ) ; certificate Generation Time Ms . add And Get ( finish Time Ms - start Time Ms ) ; first Certificate Generated Timestamp . compare And Set ( NUM , System . current Time Millis ( ) ) ; } | public void certificateCreated ( long startTimeMs , long finishTimeMs ) { certificatesGenerated . incrementAndGet ( ) ; certificateGenerationTimeMs . addAndGet ( finishTimeMs - startTimeMs ) ; firstCertificateGeneratedTimestamp . compareAndSet ( _NUM , System . currentTimeMillis ( ) ) ; } | 64 |
java-test-5644 | java | What does the code create ? | the test menu items | private void create Test Menu Items ( J Menu menu ) { J Menu d Tests = new J Menu ( Messages . get String ( STRING ) ) ; J Menu c Tests = new J Menu ( Messages . get String ( STRING ) ) ; menu . add ( d Tests ) ; menu . add ( c Tests ) ; Resource Bundle bundle = Resource Bundle . get Bundle ( STRING ) ; List < String >... | private void createTestMenuItems ( JMenu menu ) { JMenu dTests = new JMenu ( Messages . getString ( STRING ) ) ; JMenu cTests = new JMenu ( Messages . getString ( STRING ) ) ; menu . add ( dTests ) ; menu . add ( cTests ) ; ResourceBundle bundle = ResourceBundle . getBundle ( STRING ) ; List < String > keys = Collectio... | 191 |
java-test-5650 | java | How can a missingresourceexception be found a missingresourceexception ? | via the local definition of retry ( ) | public String handle Get Message ( Locale locale , String key ) { if ( bundle Name ( ) != null ) { Resource Bundle rb = Resource Bundle . get Bundle ( bundle Name ( ) , locale ) ; if ( rb . contains Key ( key ) ) { return rb . get String ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( local... | public String handleGetMessage ( Locale locale , String key ) { if ( bundleName ( ) != null ) { ResourceBundle rb = ResourceBundle . getBundle ( bundleName ( ) , locale ) ; if ( rb . containsKey ( key ) ) { return rb . getString ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( locale , key )... | 86 |
java-test-5651 | java | In which direction does on failure reflect it ? | at lower | public String handle Get Message ( Locale locale , String key ) { if ( bundle Name ( ) != null ) { Resource Bundle rb = Resource Bundle . get Bundle ( bundle Name ( ) , locale ) ; if ( rb . contains Key ( key ) ) { return rb . get String ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( local... | public String handleGetMessage ( Locale locale , String key ) { if ( bundleName ( ) != null ) { ResourceBundle rb = ResourceBundle . getBundle ( bundleName ( ) , locale ) ; if ( rb . containsKey ( key ) ) { return rb . getString ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( locale , key )... | 86 |
java-test-5652 | java | How does this method handle the inheritance tree ? | at lower levels | public String handle Get Message ( Locale locale , String key ) { if ( bundle Name ( ) != null ) { Resource Bundle rb = Resource Bundle . get Bundle ( bundle Name ( ) , locale ) ; if ( rb . contains Key ( key ) ) { return rb . get String ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( local... | public String handleGetMessage ( Locale locale , String key ) { if ( bundleName ( ) != null ) { ResourceBundle rb = ResourceBundle . getBundle ( bundleName ( ) , locale ) ; if ( rb . containsKey ( key ) ) { return rb . getString ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( locale , key )... | 86 |
java-test-5653 | java | When will it throw a missingresourceexception in the key can ' t be found via the local definition of retry ? | once it reaches this root class | public String handle Get Message ( Locale locale , String key ) { if ( bundle Name ( ) != null ) { Resource Bundle rb = Resource Bundle . get Bundle ( bundle Name ( ) , locale ) ; if ( rb . contains Key ( key ) ) { return rb . get String ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( local... | public String handleGetMessage ( Locale locale , String key ) { if ( bundleName ( ) != null ) { ResourceBundle rb = ResourceBundle . getBundle ( bundleName ( ) , locale ) ; if ( rb . containsKey ( key ) ) { return rb . getString ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( locale , key )... | 86 |
java-test-5654 | java | What will it throw a missingresourceexception once it reaches this root class ? | in the key can ' t be found via the local definition of retry | public String handle Get Message ( Locale locale , String key ) { if ( bundle Name ( ) != null ) { Resource Bundle rb = Resource Bundle . get Bundle ( bundle Name ( ) , locale ) ; if ( rb . contains Key ( key ) ) { return rb . get String ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( local... | public String handleGetMessage ( Locale locale , String key ) { if ( bundleName ( ) != null ) { ResourceBundle rb = ResourceBundle . getBundle ( bundleName ( ) , locale ) ; if ( rb . containsKey ( key ) ) { return rb . getString ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( locale , key )... | 86 |
java-test-5655 | java | What does this method handle at lower levels ? | the inheritance tree | public String handle Get Message ( Locale locale , String key ) { if ( bundle Name ( ) != null ) { Resource Bundle rb = Resource Bundle . get Bundle ( bundle Name ( ) , locale ) ; if ( rb . contains Key ( key ) ) { return rb . get String ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( local... | public String handleGetMessage ( Locale locale , String key ) { if ( bundleName ( ) != null ) { ResourceBundle rb = ResourceBundle . getBundle ( bundleName ( ) , locale ) ; if ( rb . containsKey ( key ) ) { return rb . getString ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( locale , key )... | 86 |
java-test-5656 | java | What do it reach ? | this root class | public String handle Get Message ( Locale locale , String key ) { if ( bundle Name ( ) != null ) { Resource Bundle rb = Resource Bundle . get Bundle ( bundle Name ( ) , locale ) ; if ( rb . contains Key ( key ) ) { return rb . get String ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( local... | public String handleGetMessage ( Locale locale , String key ) { if ( bundleName ( ) != null ) { ResourceBundle rb = ResourceBundle . getBundle ( bundleName ( ) , locale ) ; if ( rb . containsKey ( key ) ) { return rb . getString ( key ) ; } else { return retry ( locale , key ) ; } } else { return retry ( locale , key )... | 86 |
java-test-5657 | java | What does we calculate by forward projecting the line in the mercator projection , and then calculating segments along the straight line between them ? | rhumb lines | protected final static int rhumb Step ( Point 2 D pt 1 , Point 2 D pt 2 ) { int step = ( int ) Draw Util . distance ( pt 1 . get X ( ) , pt 1 . get Y ( ) , pt 2 . get X ( ) , pt 2 . get Y ( ) ) ; if ( step > NUM ) { step = NUM ; } else { step >>= NUM ; } return ( step == NUM ) ? NUM : step ; } | protected final static int rhumbStep ( Point2D pt1 , Point2D pt2 ) { int step = ( int ) DrawUtil . distance ( pt1 . getX ( ) , pt1 . getY ( ) , pt2 . getX ( ) , pt2 . getY ( ) ) ; if ( step > _NUM ) { step = _NUM ; } else { step >>= _NUM ; } return ( step == _NUM ) ? _NUM : step ; } | 95 |
java-test-5658 | java | What does the code compute ? | the best stepping factor for a rhumbline | protected final static int rhumb Step ( Point 2 D pt 1 , Point 2 D pt 2 ) { int step = ( int ) Draw Util . distance ( pt 1 . get X ( ) , pt 1 . get Y ( ) , pt 2 . get X ( ) , pt 2 . get Y ( ) ) ; if ( step > NUM ) { step = NUM ; } else { step >>= NUM ; } return ( step == NUM ) ? NUM : step ; } | protected final static int rhumbStep ( Point2D pt1 , Point2D pt2 ) { int step = ( int ) DrawUtil . distance ( pt1 . getX ( ) , pt1 . getY ( ) , pt2 . getX ( ) , pt2 . getY ( ) ) ; if ( step > _NUM ) { step = _NUM ; } else { step >>= _NUM ; } return ( step == _NUM ) ? _NUM : step ; } | 95 |
java-test-5659 | java | For what purpose does the best stepping factor between two x , y points compute ? | in order to interpolate points on a rhumb line | protected final static int rhumb Step ( Point 2 D pt 1 , Point 2 D pt 2 ) { int step = ( int ) Draw Util . distance ( pt 1 . get X ( ) , pt 1 . get Y ( ) , pt 2 . get X ( ) , pt 2 . get Y ( ) ) ; if ( step > NUM ) { step = NUM ; } else { step >>= NUM ; } return ( step == NUM ) ? NUM : step ; } | protected final static int rhumbStep ( Point2D pt1 , Point2D pt2 ) { int step = ( int ) DrawUtil . distance ( pt1 . getX ( ) , pt1 . getY ( ) , pt2 . getX ( ) , pt2 . getY ( ) ) ; if ( step > _NUM ) { step = _NUM ; } else { step >>= _NUM ; } return ( step == _NUM ) ? _NUM : step ; } | 95 |
java-test-5660 | java | What do we calculate then ? | segments along the straight line between them | protected final static int rhumb Step ( Point 2 D pt 1 , Point 2 D pt 2 ) { int step = ( int ) Draw Util . distance ( pt 1 . get X ( ) , pt 1 . get Y ( ) , pt 2 . get X ( ) , pt 2 . get Y ( ) ) ; if ( step > NUM ) { step = NUM ; } else { step >>= NUM ; } return ( step == NUM ) ? NUM : step ; } | protected final static int rhumbStep ( Point2D pt1 , Point2D pt2 ) { int step = ( int ) DrawUtil . distance ( pt1 . getX ( ) , pt1 . getY ( ) , pt2 . getX ( ) , pt2 . getY ( ) ) ; if ( step > _NUM ) { step = _NUM ; } else { step >>= _NUM ; } return ( step == _NUM ) ? _NUM : step ; } | 95 |
java-test-5661 | java | Where does points interpolate ? | on a rhumb line | protected final static int rhumb Step ( Point 2 D pt 1 , Point 2 D pt 2 ) { int step = ( int ) Draw Util . distance ( pt 1 . get X ( ) , pt 1 . get Y ( ) , pt 2 . get X ( ) , pt 2 . get Y ( ) ) ; if ( step > NUM ) { step = NUM ; } else { step >>= NUM ; } return ( step == NUM ) ? NUM : step ; } | protected final static int rhumbStep ( Point2D pt1 , Point2D pt2 ) { int step = ( int ) DrawUtil . distance ( pt1 . getX ( ) , pt1 . getY ( ) , pt2 . getX ( ) , pt2 . getY ( ) ) ; if ( step > _NUM ) { step = _NUM ; } else { step >>= _NUM ; } return ( step == _NUM ) ? _NUM : step ; } | 95 |
java-test-5662 | java | How does we calculate rhumb lines ? | by forward projecting the line in the mercator projection , and then calculating segments along the straight line between them | protected final static int rhumb Step ( Point 2 D pt 1 , Point 2 D pt 2 ) { int step = ( int ) Draw Util . distance ( pt 1 . get X ( ) , pt 1 . get Y ( ) , pt 2 . get X ( ) , pt 2 . get Y ( ) ) ; if ( step > NUM ) { step = NUM ; } else { step >>= NUM ; } return ( step == NUM ) ? NUM : step ; } | protected final static int rhumbStep ( Point2D pt1 , Point2D pt2 ) { int step = ( int ) DrawUtil . distance ( pt1 . getX ( ) , pt1 . getY ( ) , pt2 . getX ( ) , pt2 . getY ( ) ) ; if ( step > _NUM ) { step = _NUM ; } else { step >>= _NUM ; } return ( step == _NUM ) ? _NUM : step ; } | 95 |
java-test-5670 | java | What does the code add to a site ? | a set of server instances | public static void add Servers To Site ( SSO Token sso Token , String site Name , Collection server Instance Names ) throws SMS Exception , SSO Exception , Configuration Exception { String site Id = get Site Id ( sso Token , site Name ) ; if ( site Id != null ) { for ( Iterator i = server Instance Names . iterator ( ) ... | public static void addServersToSite ( SSOToken ssoToken , String siteName , Collection serverInstanceNames ) throws SMSException , SSOException , ConfigurationException { String siteId = getSiteId ( ssoToken , siteName ) ; if ( siteId != null ) { for ( Iterator i = serverInstanceNames . iterator ( ) ; i . hasNext ( ) ;... | 108 |
java-test-5671 | java | How does the code layout the dialog ? | by adding the dialog main content and updating the current shown step | void layout Default ( int size , String starting Step Id ) { super . layout Default ( card Panel , size , previous Button , next Button , finish Button , cancel Button ) ; final Dimension next Size = new Dimension ( next Button . get Width ( ) , next Button . get Height ( ) ) ; next Button . set Minimum Size ( next Siz... | void layoutDefault ( int size , String startingStepId ) { super . layoutDefault ( cardPanel , size , previousButton , nextButton , finishButton , cancelButton ) ; final Dimension nextSize = new Dimension ( nextButton . getWidth ( ) , nextButton . getHeight ( ) ) ; nextButton . setMinimumSize ( nextSize ) ; nextButton .... | 144 |
java-test-5672 | java | When should the code be called only ? | once after the dialog instance has been created | void layout Default ( int size , String starting Step Id ) { super . layout Default ( card Panel , size , previous Button , next Button , finish Button , cancel Button ) ; final Dimension next Size = new Dimension ( next Button . get Width ( ) , next Button . get Height ( ) ) ; next Button . set Minimum Size ( next Siz... | void layoutDefault ( int size , String startingStepId ) { super . layoutDefault ( cardPanel , size , previousButton , nextButton , finishButton , cancelButton ) ; final Dimension nextSize = new Dimension ( nextButton . getWidth ( ) , nextButton . getHeight ( ) ) ; nextButton . setMinimumSize ( nextSize ) ; nextButton .... | 144 |
java-test-5673 | java | What does the code generate ? | a 64 - byte key for ipsec | public String generate Key ( ) throws Exception { return Random String Utils . random ( KEY LENGTH , NUM , chars For Key . length - NUM , BOOL , BOOL , chars For Key , Secure Random . get Instance ( Security Util . get Secured Random Algorithm ( ) ) ) ; } | public String generateKey ( ) throws Exception { return RandomStringUtils . random ( KEY_LENGTH , _NUM , charsForKey . length - _NUM , _BOOL , _BOOL , charsForKey , SecureRandom . getInstance ( SecurityUtil . getSecuredRandomAlgorithm ( ) ) ) ; } | 56 |
java-test-5676 | java | What does this set using the value returned by getechochar ( ) ? | the foreground color | protected int draw Unselected Text ( Graphics g , int x , int y , int p0 , int p1 ) throws Bad Location Exception { Container c = get Container ( ) ; if ( c instanceof J Password Field ) { J Password Field f = ( J Password Field ) c ; if ( ! f . echo Char Is Set ( ) ) { return super . draw Unselected Text ( g , x , y ,... | protected int drawUnselectedText ( Graphics g , int x , int y , int p0 , int p1 ) throws BadLocationException { Container c = getContainer ( ) ; if ( c instanceof JPasswordField ) { JPasswordField f = ( JPasswordField ) c ; if ( ! f . echoCharIsSet ( ) ) { return super . drawUnselectedText ( g , x , y , p0 , p1 ) ; } i... | 185 |
java-test-5677 | java | What do this use ? | the value returned by getechochar ( ) | protected int draw Unselected Text ( Graphics g , int x , int y , int p0 , int p1 ) throws Bad Location Exception { Container c = get Container ( ) ; if ( c instanceof J Password Field ) { J Password Field f = ( J Password Field ) c ; if ( ! f . echo Char Is Set ( ) ) { return super . draw Unselected Text ( g , x , y ,... | protected int drawUnselectedText ( Graphics g , int x , int y , int p0 , int p1 ) throws BadLocationException { Container c = getContainer ( ) ; if ( c instanceof JPasswordField ) { JPasswordField f = ( JPasswordField ) c ; if ( ! f . echoCharIsSet ( ) ) { return super . drawUnselectedText ( g , x , y , p0 , p1 ) ; } i... | 185 |
java-test-5683 | java | What does the code check ? | the name of a field , parameter , etc | @ Override public Void visit Variable ( Variable Element e , Void p ) { if ( ! check For Serial ( e ) ) { if ( e . get Kind ( ) == ENUM CONSTANT || e . get Constant Value ( ) != null || heuristically Constant ( e ) ) check All Caps ( e ) ; else check Camel Case ( e , BOOL ) ; } return null ; } | @ Override public Void visitVariable ( VariableElement e , Void p ) { if ( ! checkForSerial ( e ) ) { if ( e . getKind ( ) == ENUM_CONSTANT || e . getConstantValue ( ) != null || heuristicallyConstant ( e ) ) checkAllCaps ( e ) ; else checkCamelCase ( e , _BOOL ) ; } return null ; } | 76 |
java-test-5685 | java | What d the code creates ? | a mosaic i d from a string | public static Mosaic Id parse ( final String mosaic Id ) { final Matcher matcher = MOSAIC ID PATTERN . matcher ( mosaic Id ) ; if ( ! matcher . matches ( ) ) { throw new Illegal Argument Exception ( String . format ( STRING , mosaic Id ) ) ; } return new Mosaic Id ( new Namespace Id ( matcher . group ( NUM ) ) , matche... | public static MosaicId parse ( final String mosaicId ) { final Matcher matcher = MOSAIC_ID_PATTERN . matcher ( mosaicId ) ; if ( ! matcher . matches ( ) ) { throw new IllegalArgumentException ( String . format ( STRING , mosaicId ) ) ; } return new MosaicId ( new NamespaceId ( matcher . group ( _NUM ) ) , matcher . gro... | 80 |
java-test-5687 | java | In which direction did in nodes read after all nodes from current file get processed ? | from the next file | @ Override public boolean has Next ( ) throws IO Exception , Collection Exception { if ( nodes . is Empty ( ) ) { if ( file Iterator . has Next ( ) ) { process Next File ( ) ; } else { return BOOL ; } } return BOOL ; } | @ Override public boolean hasNext ( ) throws IOException , CollectionException { if ( nodes . isEmpty ( ) ) { if ( fileIterator . hasNext ( ) ) { processNextFile ( ) ; } else { return _BOOL ; } } return _BOOL ; } | 54 |
java-test-5688 | java | When did in nodes read from the next file ? | after all nodes from current file get processed | @ Override public boolean has Next ( ) throws IO Exception , Collection Exception { if ( nodes . is Empty ( ) ) { if ( file Iterator . has Next ( ) ) { process Next File ( ) ; } else { return BOOL ; } } return BOOL ; } | @ Override public boolean hasNext ( ) throws IOException , CollectionException { if ( nodes . isEmpty ( ) ) { if ( fileIterator . hasNext ( ) ) { processNextFile ( ) ; } else { return _BOOL ; } } return _BOOL ; } | 54 |
java-test-5690 | java | What does the code get ? | list of user requests | @ Override public Enumeration < String > enumerate Requests ( ) { Vector < String > new Vector = new Vector < String > ( NUM ) ; if ( m split Thread != null ) { new Vector . add Element ( STRING ) ; } return new Vector . elements ( ) ; } | @ Override public Enumeration < String > enumerateRequests ( ) { Vector < String > newVector = new Vector < String > ( _NUM ) ; if ( m_splitThread != null ) { newVector . addElement ( STRING ) ; } return newVector . elements ( ) ; } | 56 |
java-test-5691 | java | What does the code map to a primitive field in a mapping class ? | a parsed primitive numeric field | private static void map Numeric Field ( final Object mapping Class Instance , final Field mapping Field , final JBBP Numeric Field numeric Field , final boolean invert Bit Order ) { final Class < ? > field Class = mapping Field . get Type ( ) ; try { if ( field Class == byte . class ) { mapping Field . set Byte ( mappi... | private static void mapNumericField ( final Object mappingClassInstance , final Field mappingField , final JBBPNumericField numericField , final boolean invertBitOrder ) { final Class < ? > fieldClass = mappingField . getType ( ) ; try { if ( fieldClass == byte . class ) { mappingField . setByte ( mappingClassInstance ... | 567 |
java-test-5692 | java | When did the code list ? | at the beginning of this module | private int is Head Assigned Here ( Signal Head head , Layout Turnout l Turnout ) { String sys Name = head . get System Name ( ) ; String u Name = head . get User Name ( ) ; String name = l Turnout . get Signal A 1 Name ( ) ; if ( ( name != null ) && ( name . length ( ) > NUM ) && ( ( name . equals ( u Name ) ) || ( na... | private int isHeadAssignedHere ( SignalHead head , LayoutTurnout lTurnout ) { String sysName = head . getSystemName ( ) ; String uName = head . getUserName ( ) ; String name = lTurnout . getSignalA1Name ( ) ; if ( ( name != null ) && ( name . length ( ) > _NUM ) && ( ( name . equals ( uName ) ) || ( name . equals ( sys... | 568 |
java-test-5693 | java | What does the index specify according to the code listed at the beginning of this module ? | the turnout position of the signal head | private int is Head Assigned Here ( Signal Head head , Layout Turnout l Turnout ) { String sys Name = head . get System Name ( ) ; String u Name = head . get User Name ( ) ; String name = l Turnout . get Signal A 1 Name ( ) ; if ( ( name != null ) && ( name . length ( ) > NUM ) && ( ( name . equals ( u Name ) ) || ( na... | private int isHeadAssignedHere ( SignalHead head , LayoutTurnout lTurnout ) { String sysName = head . getSystemName ( ) ; String uName = head . getUserName ( ) ; String name = lTurnout . getSignalA1Name ( ) ; if ( ( name != null ) && ( name . length ( ) > _NUM ) && ( ( name . equals ( uName ) ) || ( name . equals ( sys... | 568 |
java-test-5694 | java | What does the code add ? | an operand comment for a given position | public void add Operand Comment ( int pos , String comment ) { List < String > list = comments . get ( pos ) ; if ( list == null ) { list = new Array List < > ( NUM ) ; comments . put ( pos , list ) ; } list . add ( encode String ( comment ) ) ; } | public void addOperandComment ( int pos , String comment ) { List < String > list = comments . get ( pos ) ; if ( list == null ) { list = new ArrayList < > ( _NUM ) ; comments . put ( pos , list ) ; } list . add ( encodeString ( comment ) ) ; } | 66 |
java-test-5695 | java | What will double buffering make ? | this * much * nicer | void paint ( Graphics g ) { if ( vert == null || nvert <= NUM ) { return ; } transform ( ) ; if ( gr == null ) { gr = new Color [ NUM ] ; for ( int i = NUM ; i < NUM ; i ++ ) { int grey = ( int ) ( NUM * ( NUM - Math . pow ( i / NUM , NUM ) ) ) ; gr [ i ] = new Color ( grey , grey , grey ) ; } } int lg = NUM ; int lim ... | void paint ( Graphics g ) { if ( vert == null || nvert <= _NUM ) { return ; } transform ( ) ; if ( gr == null ) { gr = new Color [ _NUM ] ; for ( int i = _NUM ; i < _NUM ; i ++ ) { int grey = ( int ) ( _NUM * ( _NUM - Math . pow ( i / _NUM , _NUM ) ) ) ; gr [ i ] = new Color ( grey , grey , grey ) ; } } int lg = _NUM ;... | 281 |
java-test-5696 | java | What do it use to map from model space to screen space ? | the matrix associated with this model | void paint ( Graphics g ) { if ( vert == null || nvert <= NUM ) { return ; } transform ( ) ; if ( gr == null ) { gr = new Color [ NUM ] ; for ( int i = NUM ; i < NUM ; i ++ ) { int grey = ( int ) ( NUM * ( NUM - Math . pow ( i / NUM , NUM ) ) ) ; gr [ i ] = new Color ( grey , grey , grey ) ; } } int lg = NUM ; int lim ... | void paint ( Graphics g ) { if ( vert == null || nvert <= _NUM ) { return ; } transform ( ) ; if ( gr == null ) { gr = new Color [ _NUM ] ; for ( int i = _NUM ; i < _NUM ; i ++ ) { int grey = ( int ) ( _NUM * ( _NUM - Math . pow ( i / _NUM , _NUM ) ) ) ; gr [ i ] = new Color ( grey , grey , grey ) ; } } int lg = _NUM ;... | 281 |
java-test-5697 | java | What should have double buffering which will make this * much * nicer ? | the next version of the browser | void paint ( Graphics g ) { if ( vert == null || nvert <= NUM ) { return ; } transform ( ) ; if ( gr == null ) { gr = new Color [ NUM ] ; for ( int i = NUM ; i < NUM ; i ++ ) { int grey = ( int ) ( NUM * ( NUM - Math . pow ( i / NUM , NUM ) ) ) ; gr [ i ] = new Color ( grey , grey , grey ) ; } } int lg = NUM ; int lim ... | void paint ( Graphics g ) { if ( vert == null || nvert <= _NUM ) { return ; } transform ( ) ; if ( gr == null ) { gr = new Color [ _NUM ] ; for ( int i = _NUM ; i < _NUM ; i ++ ) { int grey = ( int ) ( _NUM * ( _NUM - Math . pow ( i / _NUM , _NUM ) ) ) ; gr [ i ] = new Color ( grey , grey , grey ) ; } } int lg = _NUM ;... | 281 |
java-test-5698 | java | How does the code update the ui ? | by the track color mode | private void update Ui By Track Color Mode ( String track Color Mode ) { boolean is Fixed Value = track Color Mode . equals ( get String ( R . string . settings map track color mode fixed value ) ) ; boolean is Dynamic Value = track Color Mode . equals ( get String ( R . string . settings map track color mode dynamic v... | private void updateUiByTrackColorMode ( String trackColorMode ) { boolean isFixedValue = trackColorMode . equals ( getString ( R . string . settings_map_track_color_mode_fixed_value ) ) ; boolean isDynamicValue = trackColorMode . equals ( getString ( R . string . settings_map_track_color_mode_dynamic_value ) ) ; slowPr... | 105 |
java-test-5702 | java | What does the code write ? | a string attribute | static public void write Attribute ( Writer out , char [ ] buff , String text ) throws IO Exception { int buff Length = buff . length ; int buff Index = NUM ; int length = text . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char ch = text . char At ( i ) ; if ( ch < NUM ) { if ( ch >= NUM ) { buff Index = add... | static public void writeAttribute ( Writer out , char [ ] buff , String text ) throws IOException { int buffLength = buff . length ; int buffIndex = _NUM ; int length = text . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char ch = text . charAt ( i ) ; if ( ch < _NUM ) { if ( ch >= _NUM ) { buffIndex = addTo... | 356 |
java-test-5703 | java | What does the code remove from a jsonobject ? | ' null ' fields | private static void remove Null Fields ( Object object ) throws JSON Exception { if ( object instanceof JSON Array ) { JSON Array array = ( JSON Array ) object ; for ( int i = NUM ; i < array . length ( ) ; ++ i ) remove Null Fields ( array . get ( i ) ) ; } else if ( object instanceof JSON Object ) { JSON Object json ... | private static void removeNullFields ( Object object ) throws JSONException { if ( object instanceof JSONArray ) { JSONArray array = ( JSONArray ) object ; for ( int i = _NUM ; i < array . length ( ) ; ++ i ) removeNullFields ( array . get ( i ) ) ; } else if ( object instanceof JSONObject ) { JSONObject json = ( JSONO... | 167 |
java-test-5704 | java | Till when do this method call itself recursively ? | until all the fields have been looked at | private static void remove Null Fields ( Object object ) throws JSON Exception { if ( object instanceof JSON Array ) { JSON Array array = ( JSON Array ) object ; for ( int i = NUM ; i < array . length ( ) ; ++ i ) remove Null Fields ( array . get ( i ) ) ; } else if ( object instanceof JSON Object ) { JSON Object json ... | private static void removeNullFields ( Object object ) throws JSONException { if ( object instanceof JSONArray ) { JSONArray array = ( JSONArray ) object ; for ( int i = _NUM ; i < array . length ( ) ; ++ i ) removeNullFields ( array . get ( i ) ) ; } else if ( object instanceof JSONObject ) { JSONObject json = ( JSONO... | 167 |
java-test-5705 | java | When does highlighting of bytes draw ? | when the mouse hovers over them | private void draw Mouse Over Highlighting ( final Graphics g ) { g . set Color ( m color Highlight ) ; m last Highlighted Nibble = get Nibble At Coordinate ( m last Mouse X , m last Mouse Y ) ; if ( m last Highlighted Nibble == - NUM ) { return ; } final Views last Highlighted View = m last Mouse X >= get Ascii View Le... | private void drawMouseOverHighlighting ( final Graphics g ) { g . setColor ( m_colorHighlight ) ; m_lastHighlightedNibble = getNibbleAtCoordinate ( m_lastMouseX , m_lastMouseY ) ; if ( m_lastHighlightedNibble == - _NUM ) { return ; } final Views lastHighlightedView = m_lastMouseX >= getAsciiViewLeft ( ) ? Views . ASCII... | 365 |
java-test-5706 | java | What do an xpath string use ? | to select a single node using a passed in namespace context | public static Node select Single Node ( Node doc , String str , Namespace Context nsctx ) throws X Path Exception { Node List nl = select Node List ( doc , str , nsctx ) ; if ( nl . get Length ( ) == NUM ) { return null ; } return nl . item ( NUM ) ; } | public static Node selectSingleNode ( Node doc , String str , NamespaceContext nsctx ) throws XPathException { NodeList nl = selectNodeList ( doc , str , nsctx ) ; if ( nl . getLength ( ) == _NUM ) { return null ; } return nl . item ( _NUM ) ; } | 62 |
java-test-5707 | java | What is using a passed in namespace context ? | a single node | public static Node select Single Node ( Node doc , String str , Namespace Context nsctx ) throws X Path Exception { Node List nl = select Node List ( doc , str , nsctx ) ; if ( nl . get Length ( ) == NUM ) { return null ; } return nl . item ( NUM ) ; } | public static Node selectSingleNode ( Node doc , String str , NamespaceContext nsctx ) throws XPathException { NodeList nl = selectNodeList ( doc , str , nsctx ) ; if ( nl . getLength ( ) == _NUM ) { return null ; } return nl . item ( _NUM ) ; } | 62 |
java-test-5708 | java | How do a single node select ? | using a passed in namespace context | public static Node select Single Node ( Node doc , String str , Namespace Context nsctx ) throws X Path Exception { Node List nl = select Node List ( doc , str , nsctx ) ; if ( nl . get Length ( ) == NUM ) { return null ; } return nl . item ( NUM ) ; } | public static Node selectSingleNode ( Node doc , String str , NamespaceContext nsctx ) throws XPathException { NodeList nl = selectNodeList ( doc , str , nsctx ) ; if ( nl . getLength ( ) == _NUM ) { return null ; } return nl . item ( _NUM ) ; } | 62 |
java-test-5709 | java | What do a single node use ? | a passed in namespace context | public static Node select Single Node ( Node doc , String str , Namespace Context nsctx ) throws X Path Exception { Node List nl = select Node List ( doc , str , nsctx ) ; if ( nl . get Length ( ) == NUM ) { return null ; } return nl . item ( NUM ) ; } | public static Node selectSingleNode ( Node doc , String str , NamespaceContext nsctx ) throws XPathException { NodeList nl = selectNodeList ( doc , str , nsctx ) ; if ( nl . getLength ( ) == _NUM ) { return null ; } return nl . item ( _NUM ) ; } | 62 |
java-test-5710 | java | What does the code update ? | the transition progress | public void update Progress ( float progress ) { if ( m Last Progress == progress ) { return ; } m Last Progress = progress ; if ( m Update State After Update Progress ) { boolean positive = progress >= NUM ; Transition Controller transition Controller ; for ( int i = NUM , size = m Transition Controls . size ( ) ; i <... | public void updateProgress ( float progress ) { if ( mLastProgress == progress ) { return ; } mLastProgress = progress ; if ( mUpdateStateAfterUpdateProgress ) { boolean positive = progress >= _NUM ; TransitionController transitionController ; for ( int i = _NUM , size = mTransitionControls . size ( ) ; i < size ; i ++... | 232 |
java-test-5711 | java | What does the code create ? | a location at a pixel offset from a latitude / longitude | public Location ( double latitude , double longitude , int x Offset , int y Offset , String name , OM Graphic location Marker ) { set Location ( latitude , longitude , x Offset , y Offset ) ; this . name = name ; if ( logger . is Loggable ( Level . FINER ) ) { logger . finer ( STRING + latitude + STRING + longitude + S... | public Location ( double latitude , double longitude , int xOffset , int yOffset , String name , OMGraphic locationMarker ) { setLocation ( latitude , longitude , xOffset , yOffset ) ; this . name = name ; if ( logger . isLoggable ( Level . FINER ) ) { logger . finer ( STRING + latitude + STRING + longitude + STRING + ... | 147 |
java-test-5713 | java | What does this method take ? | a fully qualified path to a directory | public final Set < Class < ? extends Annotation > > load External Annotation Classes From Directory ( final String dir Name ) { File root Directory = new File ( dir Name ) ; Set < String > anno Names = get Annotation Names From Directory ( STRING , dir Name , root Directory , JAVA SUFFIX ) ; return load Annotation Clas... | public final Set < Class < ? extends Annotation > > loadExternalAnnotationClassesFromDirectory ( final String dirName ) { File rootDirectory = new File ( dirName ) ; Set < String > annoNames = getAnnotationNamesFromDirectory ( STRING , dirName , rootDirectory , JAVA_SUFFIX ) ; return loadAnnotationClasses ( annoNames )... | 70 |
java-test-5714 | java | What does this method return from that directory ? | the set of all annotation classes | public final Set < Class < ? extends Annotation > > load External Annotation Classes From Directory ( final String dir Name ) { File root Directory = new File ( dir Name ) ; Set < String > anno Names = get Annotation Names From Directory ( STRING , dir Name , root Directory , JAVA SUFFIX ) ; return load Annotation Clas... | public final Set < Class < ? extends Annotation > > loadExternalAnnotationClassesFromDirectory ( final String dirName ) { File rootDirectory = new File ( dirName ) ; Set < String > annoNames = getAnnotationNamesFromDirectory ( STRING , dirName , rootDirectory , JAVA_SUFFIX ) ; return loadAnnotationClasses ( annoNames )... | 70 |
java-test-5715 | java | What does the code turn into a graph edit ? | a change record | protected void notify ( final I Change Record record ) { final Bigdata Graph Edit edit = to Graph Edit ( record ) ; if ( edit != null ) { for ( Bigdata Graph Listener listener : listeners ) { listener . graph Edited ( edit , record . to String ( ) ) ; } } } | protected void notify ( final IChangeRecord record ) { final BigdataGraphEdit edit = toGraphEdit ( record ) ; if ( edit != null ) { for ( BigdataGraphListener listener : listeners ) { listener . graphEdited ( edit , record . toString ( ) ) ; } } } | 59 |
java-test-5716 | java | What does the code notify ? | the graph listeners | protected void notify ( final I Change Record record ) { final Bigdata Graph Edit edit = to Graph Edit ( record ) ; if ( edit != null ) { for ( Bigdata Graph Listener listener : listeners ) { listener . graph Edited ( edit , record . to String ( ) ) ; } } } | protected void notify ( final IChangeRecord record ) { final BigdataGraphEdit edit = toGraphEdit ( record ) ; if ( edit != null ) { for ( BigdataGraphListener listener : listeners ) { listener . graphEdited ( edit , record . toString ( ) ) ; } } } | 59 |
java-test-5717 | java | What does this method delete ? | a record corresponding to passed batchid | @ Request Mapping ( value = STRING , method = Request Method . DELETE ) @ Response Body public Rest Wrapper delete ( @ Path Variable ( STRING ) Long batch Id , Principal principal ) { Rest Wrapper rest Wrapper = null ; try { batch DAO . delete ( batch Id ) ; rest Wrapper = new Rest Wrapper ( null , Rest Wrapper . OK ) ... | @ RequestMapping ( value = STRING , method = RequestMethod . DELETE ) @ ResponseBody public RestWrapper delete ( @ PathVariable ( STRING ) Long batchId , Principal principal ) { RestWrapper restWrapper = null ; try { batchDAO . delete ( batchId ) ; restWrapper = new RestWrapper ( null , RestWrapper . OK ) ; LOGGER . in... | 130 |
java-test-5718 | java | What does this method call proc ? | deletebatch | @ Request Mapping ( value = STRING , method = Request Method . DELETE ) @ Response Body public Rest Wrapper delete ( @ Path Variable ( STRING ) Long batch Id , Principal principal ) { Rest Wrapper rest Wrapper = null ; try { batch DAO . delete ( batch Id ) ; rest Wrapper = new Rest Wrapper ( null , Rest Wrapper . OK ) ... | @ RequestMapping ( value = STRING , method = RequestMethod . DELETE ) @ ResponseBody public RestWrapper delete ( @ PathVariable ( STRING ) Long batchId , Principal principal ) { RestWrapper restWrapper = null ; try { batchDAO . delete ( batchId ) ; restWrapper = new RestWrapper ( null , RestWrapper . OK ) ; LOGGER . in... | 130 |
java-test-5719 | java | What does the code retrieve ? | a collection previously saved | public < C extends Collection < T > , T > C retrieve Collection ( String key , Class < C > class Collection , Class < T > class Data ) { key = safety Key ( key ) ; try { File file = new File ( cache Directory , key ) ; Type type Collection = jolyglot . new Parameterized Type ( class Collection , class Data ) ; T data =... | public < C extends Collection < T > , T > C retrieveCollection ( String key , Class < C > classCollection , Class < T > classData ) { key = safetyKey ( key ) ; try { File file = new File ( cacheDirectory , key ) ; Type typeCollection = jolyglot . newParameterizedType ( classCollection , classData ) ; T data = jolyglot ... | 104 |
java-test-5720 | java | What does the code read ? | cnt records | void read CNT ( ) throws IO Exception { int [ ] header = new int [ NUM ] ; while ( BOOL ) { String S = isr . read Line ( ) ; if ( S == null ) break ; parse String ( S , header , NUM ) ; int n = header [ NUM ] ; if ( n == - NUM ) break ; for ( int i = NUM ; i < n ; i ++ ) isr . read Line ( ) ; } } | void readCNT ( ) throws IOException { int [ ] header = new int [ _NUM ] ; while ( _BOOL ) { String S = isr . readLine ( ) ; if ( S == null ) break ; parseString ( S , header , _NUM ) ; int n = header [ _NUM ] ; if ( n == - _NUM ) break ; for ( int i = _NUM ; i < n ; i ++ ) isr . readLine ( ) ; } } | 93 |
java-test-5721 | java | What does the code initialize ? | the list of hosts based on the app_host_names env . variable | protected void init Load Balancer ( boolean is Https ) { String base Service URL Template = new String ( ) ; if ( is Https ) { base Service URL Template = STRING ; } else { base Service URL Template = STRING ; } String host Name = System . getenv ( STRING ) ; String host Names [ ] = host Name . split ( STRING ) ; base ... | protected void initLoadBalancer ( boolean isHttps ) { String baseServiceURLTemplate = new String ( ) ; if ( isHttps ) { baseServiceURLTemplate = STRING ; } else { baseServiceURLTemplate = STRING ; } String hostName = System . getenv ( STRING ) ; String hostNames [ ] = hostName . split ( STRING ) ; baseUrls = new Linked... | 117 |
java-test-5725 | java | What does the lack of a timeout mean ? | this method won ' t throw sockettimeoutexception | public static boolean connect ( File Descriptor fd , Inet Address inet Address , int port ) throws Socket Exception { try { return Io Bridge . connect ( fd , inet Address , port , NUM ) ; } catch ( Socket Timeout Exception ex ) { throw new Assertion Error ( ex ) ; } } | public static boolean connect ( FileDescriptor fd , InetAddress inetAddress , int port ) throws SocketException { try { return IoBridge . connect ( fd , inetAddress , port , _NUM ) ; } catch ( SocketTimeoutException ex ) { throw new AssertionError ( ex ) ; } } | 58 |
java-test-5726 | java | What means this method won ' t throw sockettimeoutexception ? | the lack of a timeout | public static boolean connect ( File Descriptor fd , Inet Address inet Address , int port ) throws Socket Exception { try { return Io Bridge . connect ( fd , inet Address , port , NUM ) ; } catch ( Socket Timeout Exception ex ) { throw new Assertion Error ( ex ) ; } } | public static boolean connect ( FileDescriptor fd , InetAddress inetAddress , int port ) throws SocketException { try { return IoBridge . connect ( fd , inetAddress , port , _NUM ) ; } catch ( SocketTimeoutException ex ) { throw new AssertionError ( ex ) ; } } | 58 |
java-test-5727 | java | Does this method win throw sockettimeoutexception ? | No | public static boolean connect ( File Descriptor fd , Inet Address inet Address , int port ) throws Socket Exception { try { return Io Bridge . connect ( fd , inet Address , port , NUM ) ; } catch ( Socket Timeout Exception ex ) { throw new Assertion Error ( ex ) ; } } | public static boolean connect ( FileDescriptor fd , InetAddress inetAddress , int port ) throws SocketException { try { return IoBridge . connect ( fd , inetAddress , port , _NUM ) ; } catch ( SocketTimeoutException ex ) { throw new AssertionError ( ex ) ; } } | 58 |
java-test-5728 | java | When does socket ' fd connect to ' inetaddress ' on ' port ' ? | with no timeout | public static boolean connect ( File Descriptor fd , Inet Address inet Address , int port ) throws Socket Exception { try { return Io Bridge . connect ( fd , inet Address , port , NUM ) ; } catch ( Socket Timeout Exception ex ) { throw new Assertion Error ( ex ) ; } } | public static boolean connect ( FileDescriptor fd , InetAddress inetAddress , int port ) throws SocketException { try { return IoBridge . connect ( fd , inetAddress , port , _NUM ) ; } catch ( SocketTimeoutException ex ) { throw new AssertionError ( ex ) ; } } | 58 |
java-test-5730 | java | For what purpose did method call ? | to finish parsing of a token , given partial decoded state | protected final Json Token finish Token ( ) throws IO Exception { if ( input Ptr >= input End ) { return Json Token . NOT AVAILABLE ; } byte b = input Buffer [ input Ptr ++ ] ; if ( state == STATE INITIAL ) { if ( b == Smile Constants . HEADER BYTE 1 ) { if ( ! handle Header ( NUM ) ) { return Json Token . NOT AVAILABL... | protected final JsonToken _finishToken ( ) throws IOException { if ( _inputPtr >= _inputEnd ) { return JsonToken . NOT_AVAILABLE ; } byte b = _inputBuffer [ _inputPtr ++ ] ; if ( _state == STATE_INITIAL ) { if ( b == SmileConstants . HEADER_BYTE_1 ) { if ( ! _handleHeader ( _NUM ) ) { return JsonToken . NOT_AVAILABLE ;... | 348 |
java-test-5733 | java | For what purpose do class name check ? | to see if the class is in the root package and if it contains any of the exclusion strings | private boolean check Class Name ( String class Name ) { boolean include = BOOL ; if ( class Name . starts With ( root Package ) ) { for ( int i = NUM ; i < exclusions . size ( ) ; i ++ ) { if ( class Name . contains ( exclusions . get ( i ) ) ) { Log . i ( TAG , STRING + class Name + STRING + exclusions . get ( i ) + ... | private boolean checkClassName ( String className ) { boolean include = _BOOL ; if ( className . startsWith ( rootPackage ) ) { for ( int i = _NUM ; i < exclusions . size ( ) ; i ++ ) { if ( className . contains ( exclusions . get ( i ) ) ) { Log . i ( TAG , STRING + className + STRING + exclusions . get ( i ) + STRING... | 126 |
java-test-5734 | java | What do it contain ? | any of the exclusion strings | private boolean check Class Name ( String class Name ) { boolean include = BOOL ; if ( class Name . starts With ( root Package ) ) { for ( int i = NUM ; i < exclusions . size ( ) ; i ++ ) { if ( class Name . contains ( exclusions . get ( i ) ) ) { Log . i ( TAG , STRING + class Name + STRING + exclusions . get ( i ) + ... | private boolean checkClassName ( String className ) { boolean include = _BOOL ; if ( className . startsWith ( rootPackage ) ) { for ( int i = _NUM ; i < exclusions . size ( ) ; i ++ ) { if ( className . contains ( exclusions . get ( i ) ) ) { Log . i ( TAG , STRING + className + STRING + exclusions . get ( i ) + STRING... | 126 |
java-test-5738 | java | What does the code make ? | a note that it was replaced . used for tactical genius special pilot ability ( lvl 3 ) | public void replace Roll ( int bonus ) { Integer roll = new Integer ( Compute . d6 ( NUM ) ) ; rolls . set Element At ( roll , size ( ) - NUM ) ; bonuses . set Element At ( bonus , size ( ) - NUM ) ; was Roll Replaced . set Element At ( new Boolean ( BOOL ) , size ( ) - NUM ) ; } | public void replaceRoll ( int bonus ) { Integer roll = new Integer ( Compute . d6 ( _NUM ) ) ; rolls . setElementAt ( roll , size ( ) - _NUM ) ; bonuses . setElementAt ( bonus , size ( ) - _NUM ) ; wasRollReplaced . setElementAt ( new Boolean ( _BOOL ) , size ( ) - _NUM ) ; } | 75 |
java-test-5739 | java | What does the code replace with a new one ? | the previous init roll | public void replace Roll ( int bonus ) { Integer roll = new Integer ( Compute . d6 ( NUM ) ) ; rolls . set Element At ( roll , size ( ) - NUM ) ; bonuses . set Element At ( bonus , size ( ) - NUM ) ; was Roll Replaced . set Element At ( new Boolean ( BOOL ) , size ( ) - NUM ) ; } | public void replaceRoll ( int bonus ) { Integer roll = new Integer ( Compute . d6 ( _NUM ) ) ; rolls . setElementAt ( roll , size ( ) - _NUM ) ; bonuses . setElementAt ( bonus , size ( ) - _NUM ) ; wasRollReplaced . setElementAt ( new Boolean ( _BOOL ) , size ( ) - _NUM ) ; } | 75 |
java-test-5740 | java | Did the code add the pad bytes to the passed in block returning the number of bytes added ? | No | public int add Padding ( byte [ ] in , int in Off ) { byte code = ( byte ) ( in . length - in Off ) ; while ( in Off < ( in . length - NUM ) ) { in [ in Off ] = ( byte ) random . next Int ( ) ; in Off ++ ; } in [ in Off ] = code ; return code ; } | public int addPadding ( byte [ ] in , int inOff ) { byte code = ( byte ) ( in . length - inOff ) ; while ( inOff < ( in . length - _NUM ) ) { in [ inOff ] = ( byte ) random . nextInt ( ) ; inOff ++ ; } in [ inOff ] = code ; return code ; } | 77 |
java-test-5741 | java | What does the code return ? | the number of bytes added | public int add Padding ( byte [ ] in , int in Off ) { byte code = ( byte ) ( in . length - in Off ) ; while ( in Off < ( in . length - NUM ) ) { in [ in Off ] = ( byte ) random . next Int ( ) ; in Off ++ ; } in [ in Off ] = code ; return code ; } | public int addPadding ( byte [ ] in , int inOff ) { byte code = ( byte ) ( in . length - inOff ) ; while ( inOff < ( in . length - _NUM ) ) { in [ inOff ] = ( byte ) random . nextInt ( ) ; inOff ++ ; } in [ inOff ] = code ; return code ; } | 77 |
java-test-5748 | java | In which direction does an action perform a swipe right - to - left ? | across the vertical center of the view | public static View Action swipe Left Slow ( ) { return action With Assertions ( new General Swipe Action ( Swipe . SLOW , translate ( General Location . CENTER RIGHT , - EDGE FUZZ FACTOR , NUM ) , General Location . CENTER LEFT , Press . FINGER ) ) ; } | public static ViewAction swipeLeftSlow ( ) { return actionWithAssertions ( new GeneralSwipeAction ( Swipe . SLOW , translate ( GeneralLocation . CENTER_RIGHT , - EDGE_FUZZ_FACTOR , _NUM ) , GeneralLocation . CENTER_LEFT , Press . FINGER ) ) ; } | 53 |
java-test-5749 | java | Where must < ul > < be displayed ? | on screen < ul > | public static View Action swipe Left Slow ( ) { return action With Assertions ( new General Swipe Action ( Swipe . SLOW , translate ( General Location . CENTER RIGHT , - EDGE FUZZ FACTOR , NUM ) , General Location . CENTER LEFT , Press . FINGER ) ) ; } | public static ViewAction swipeLeftSlow ( ) { return actionWithAssertions ( new GeneralSwipeAction ( Swipe . SLOW , translate ( GeneralLocation . CENTER_RIGHT , - EDGE_FUZZ_FACTOR , _NUM ) , GeneralLocation . CENTER_LEFT , Press . FINGER ) ) ; } | 53 |
java-test-5750 | java | What must be displayed on screen < ul > ? | < ul > < | public static View Action swipe Left Slow ( ) { return action With Assertions ( new General Swipe Action ( Swipe . SLOW , translate ( General Location . CENTER RIGHT , - EDGE FUZZ FACTOR , NUM ) , General Location . CENTER LEFT , Press . FINGER ) ) ; } | public static ViewAction swipeLeftSlow ( ) { return actionWithAssertions ( new GeneralSwipeAction ( Swipe . SLOW , translate ( GeneralLocation . CENTER_RIGHT , - EDGE_FUZZ_FACTOR , _NUM ) , GeneralLocation . CENTER_LEFT , Press . FINGER ) ) ; } | 53 |
java-test-5751 | java | What does an action perform across the vertical center of the view ? | a swipe right - to - left | public static View Action swipe Left Slow ( ) { return action With Assertions ( new General Swipe Action ( Swipe . SLOW , translate ( General Location . CENTER RIGHT , - EDGE FUZZ FACTOR , NUM ) , General Location . CENTER LEFT , Press . FINGER ) ) ; } | public static ViewAction swipeLeftSlow ( ) { return actionWithAssertions ( new GeneralSwipeAction ( Swipe . SLOW , translate ( GeneralLocation . CENTER_RIGHT , - EDGE_FUZZ_FACTOR , _NUM ) , GeneralLocation . CENTER_LEFT , Press . FINGER ) ) ; } | 53 |
java-test-5752 | java | When did exception raise ? | when re - using them | public void test Bug 20687 ( ) throws Exception { if ( version Meets Minimum ( NUM , NUM ) ) { create Table ( STRING , STRING ) ; Connection pooling Conn = null ; Properties props = new Properties ( ) ; props . set Property ( STRING , STRING ) ; props . set Property ( STRING , STRING ) ; Prepared Statement pstmt 1 = nu... | public void testBug20687 ( ) throws Exception { if ( versionMeetsMinimum ( _NUM , _NUM ) ) { createTable ( STRING , STRING ) ; Connection poolingConn = null ; Properties props = new Properties ( ) ; props . setProperty ( STRING , STRING ) ; props . setProperty ( STRING , STRING ) ; PreparedStatement pstmt1 = null ; Pre... | 217 |
java-test-5753 | java | For what purpose does the code load the init parameters ? | for use in the http methods | public void init ( ) throws Servlet Exception { super . init ( ) ; try { String def = PROVIDER DEFAULT . to String ( ) ; String provider = get Init Parameter ( PARAM PROVIDER , def ) ; this . factory = Identity Services Factory . get Instance ( provider ) ; } catch ( Exception e ) { throw new Servlet Exception ( e ) ; ... | public void init ( ) throws ServletException { super . init ( ) ; try { String def = PROVIDER_DEFAULT . toString ( ) ; String provider = getInitParameter ( PARAM_PROVIDER , def ) ; this . factory = IdentityServicesFactory . getInstance ( provider ) ; } catch ( Exception e ) { throw new ServletException ( e ) ; } } | 72 |
java-test-5754 | java | What does the code load for use in the http methods ? | the init parameters | public void init ( ) throws Servlet Exception { super . init ( ) ; try { String def = PROVIDER DEFAULT . to String ( ) ; String provider = get Init Parameter ( PARAM PROVIDER , def ) ; this . factory = Identity Services Factory . get Instance ( provider ) ; } catch ( Exception e ) { throw new Servlet Exception ( e ) ; ... | public void init ( ) throws ServletException { super . init ( ) ; try { String def = PROVIDER_DEFAULT . toString ( ) ; String provider = getInitParameter ( PARAM_PROVIDER , def ) ; this . factory = IdentityServicesFactory . getInstance ( provider ) ; } catch ( Exception e ) { throw new ServletException ( e ) ; } } | 72 |
java-test-5755 | java | What fit into a swf edgerecord ? | the control - anchor point delta values | private int [ ] add Curve Subdivide Aware ( double [ ] curve ) { int [ ] delta = curve Deltas ( curve ) ; if ( exceeds Edge Record Limit ( delta ) ) { double [ ] left = new double [ NUM ] ; double [ ] right = new double [ NUM ] ; divide Quad ( curve , NUM , left , NUM , right , NUM ) ; int [ ] delta Left = curve Deltas... | private int [ ] addCurveSubdivideAware ( double [ ] curve ) { int [ ] delta = curveDeltas ( curve ) ; if ( exceedsEdgeRecordLimit ( delta ) ) { double [ ] left = new double [ _NUM ] ; double [ ] right = new double [ _NUM ] ; divideQuad ( curve , _NUM , left , _NUM , right , _NUM ) ; int [ ] deltaLeft = curveDeltas ( le... | 175 |
java-test-5756 | java | Till when does smaller sub - sections of a curve draw recursively ? | until the control - anchor point delta values fit into a swf edgerecord | private int [ ] add Curve Subdivide Aware ( double [ ] curve ) { int [ ] delta = curve Deltas ( curve ) ; if ( exceeds Edge Record Limit ( delta ) ) { double [ ] left = new double [ NUM ] ; double [ ] right = new double [ NUM ] ; divide Quad ( curve , NUM , left , NUM , right , NUM ) ; int [ ] delta Left = curve Deltas... | private int [ ] addCurveSubdivideAware ( double [ ] curve ) { int [ ] delta = curveDeltas ( curve ) ; if ( exceedsEdgeRecordLimit ( delta ) ) { double [ ] left = new double [ _NUM ] ; double [ ] right = new double [ _NUM ] ; divideQuad ( curve , _NUM , left , _NUM , right , _NUM ) ; int [ ] deltaLeft = curveDeltas ( le... | 175 |
java-test-5757 | java | Where does the control - anchor point delta values fit ? | into a swf edgerecord | private int [ ] add Curve Subdivide Aware ( double [ ] curve ) { int [ ] delta = curve Deltas ( curve ) ; if ( exceeds Edge Record Limit ( delta ) ) { double [ ] left = new double [ NUM ] ; double [ ] right = new double [ NUM ] ; divide Quad ( curve , NUM , left , NUM , right , NUM ) ; int [ ] delta Left = curve Deltas... | private int [ ] addCurveSubdivideAware ( double [ ] curve ) { int [ ] delta = curveDeltas ( curve ) ; if ( exceedsEdgeRecordLimit ( delta ) ) { double [ ] left = new double [ _NUM ] ; double [ ] right = new double [ _NUM ] ; divideQuad ( curve , _NUM , left , _NUM , right , _NUM ) ; int [ ] deltaLeft = curveDeltas ( le... | 175 |
java-test-5758 | java | What does the code add to an existing map of http headers ? | an authentication header | public static Map < String , String > add Auth Header ( String username , String password , Map < String , String > params ) { String creds = String . format ( STRING , username , password ) ; String encoded = Base 64 . encode To String ( creds . get Bytes ( ) , Base 64 . NO WRAP ) ; params . put ( STRING , STRING + en... | public static Map < String , String > addAuthHeader ( String username , String password , Map < String , String > params ) { String creds = String . format ( STRING , username , password ) ; String encoded = Base64 . encodeToString ( creds . getBytes ( ) , Base64 . NO_WRAP ) ; params . put ( STRING , STRING + encoded )... | 80 |
java-test-5760 | java | What do a string contain ? | terrain info | public Terrain ( String terrain ) { int first Colon = terrain . index Of ( STRING ) ; int last Colon = terrain . last Index Of ( STRING ) ; String name = terrain . substring ( NUM , first Colon ) ; type = Terrains . get Type ( name ) ; if ( first Colon == last Colon ) { level = level For ( terrain . substring ( first C... | public Terrain ( String terrain ) { int firstColon = terrain . indexOf ( STRING ) ; int lastColon = terrain . lastIndexOf ( STRING ) ; String name = terrain . substring ( _NUM , firstColon ) ; type = Terrains . getType ( name ) ; if ( firstColon == lastColon ) { level = levelFor ( terrain . substring ( firstColon + _NU... | 170 |
java-test-5761 | java | What does the code find ? | all children of a node | private final Array List < Integer > find Children ( int index ) { Array List < Integer > ret = new Array List < Integer > ( ) ; Start Entry se = new Start Entry ( ) ; End Entry ee = new End Entry ( ) ; int child = index + NUM ; while ( ( child >= NUM ) && ( child < num Entries ) ) { boolean have EE = read Entries ( ch... | private final ArrayList < Integer > findChildren ( int index ) { ArrayList < Integer > ret = new ArrayList < Integer > ( ) ; StartEntry se = new StartEntry ( ) ; EndEntry ee = new EndEntry ( ) ; int child = index + _NUM ; while ( ( child >= _NUM ) && ( child < numEntries ) ) { boolean haveEE = readEntries ( child , se ... | 136 |
java-test-5762 | java | What does a bean have ? | a customizer | public Bean Descriptor ( Class < ? > bean Class , Class < ? > customizer Class ) { this . bean Class Ref = get Weak Reference ( bean Class ) ; this . customizer Class Ref = get Weak Reference ( customizer Class ) ; String name = bean Class . get Name ( ) ; while ( name . index Of ( STRING ) >= NUM ) { name = name . sub... | public BeanDescriptor ( Class < ? > beanClass , Class < ? > customizerClass ) { this . beanClassRef = getWeakReference ( beanClass ) ; this . customizerClassRef = getWeakReference ( customizerClass ) ; String name = beanClass . getName ( ) ; while ( name . indexOf ( STRING ) >= _NUM ) { name = name . substring ( name .... | 96 |
java-test-5763 | java | What does the code create ? | a beandescriptor for a bean that has a customizer | public Bean Descriptor ( Class < ? > bean Class , Class < ? > customizer Class ) { this . bean Class Ref = get Weak Reference ( bean Class ) ; this . customizer Class Ref = get Weak Reference ( customizer Class ) ; String name = bean Class . get Name ( ) ; while ( name . index Of ( STRING ) >= NUM ) { name = name . sub... | public BeanDescriptor ( Class < ? > beanClass , Class < ? > customizerClass ) { this . beanClassRef = getWeakReference ( beanClass ) ; this . customizerClassRef = getWeakReference ( customizerClass ) ; String name = beanClass . getName ( ) ; while ( name . indexOf ( STRING ) >= _NUM ) { name = name . substring ( name .... | 96 |
java-test-5764 | java | How do verified message return only if the received mac and re - generated mac are the same ? | without mac | public byte [ ] unwrap ( byte [ ] incoming , int start , int len ) throws Sasl Exception { if ( len == NUM ) { return EMPTY BYTE ARRAY ; } byte [ ] mac = new byte [ NUM ] ; byte [ ] msg = new byte [ len - NUM ] ; byte [ ] msg Type = new byte [ NUM ] ; byte [ ] seq Num = new byte [ NUM ] ; System . arraycopy ( incoming ... | public byte [ ] unwrap ( byte [ ] incoming , int start , int len ) throws SaslException { if ( len == _NUM ) { return EMPTY_BYTE_ARRAY ; } byte [ ] mac = new byte [ _NUM ] ; byte [ ] msg = new byte [ len - _NUM ] ; byte [ ] msgType = new byte [ _NUM ] ; byte [ ] seqNum = new byte [ _NUM ] ; System . arraycopy ( incomin... | 403 |
java-test-5765 | java | Where be this mbean be visible after which ? | in jmx | protected boolean register M Bean ( final String object Name ) { M Bean Server mbs = Management Factory . get Platform M Bean Server ( ) ; try { mxbean Name = new Object Name ( object Name ) ; mbs . register M Bean ( this , mxbean Name ) ; } catch ( Malformed Object Name Exception e1 ) { e1 . print Stack Trace ( ) ; re... | protected boolean registerMBean ( final String objectName ) { MBeanServer mbs = ManagementFactory . getPlatformMBeanServer ( ) ; try { mxbeanName = new ObjectName ( objectName ) ; mbs . registerMBean ( this , mxbeanName ) ; } catch ( MalformedObjectNameException e1 ) { e1 . printStackTrace ( ) ; return _BOOL ; } catch ... | 163 |
java-test-5766 | java | What be visible in jmx ? | this mbean | protected boolean register M Bean ( final String object Name ) { M Bean Server mbs = Management Factory . get Platform M Bean Server ( ) ; try { mxbean Name = new Object Name ( object Name ) ; mbs . register M Bean ( this , mxbean Name ) ; } catch ( Malformed Object Name Exception e1 ) { e1 . print Stack Trace ( ) ; re... | protected boolean registerMBean ( final String objectName ) { MBeanServer mbs = ManagementFactory . getPlatformMBeanServer ( ) ; try { mxbeanName = new ObjectName ( objectName ) ; mbs . registerMBean ( this , mxbeanName ) ; } catch ( MalformedObjectNameException e1 ) { e1 . printStackTrace ( ) ; return _BOOL ; } catch ... | 163 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.