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-5195 | java | What does the code calculate through p_other ? | the nearest point to this point on an orthogonal or diagonal line | public Pla Point Int fortyfive degree projection ( Pla Point Int p other ) { int dx = this . v x - p other . v x ; int dy = this . v y - p other . v y ; double [ ] dist arr = new double [ NUM ] ; dist arr [ NUM ] = Math . abs ( dx ) ; dist arr [ NUM ] = Math . abs ( dy ) ; double diagonal 1 = ( ( double ) dy - ( double... | public PlaPointInt fortyfive_degree_projection ( PlaPointInt p_other ) { int dx = this . v_x - p_other . v_x ; int dy = this . v_y - p_other . v_y ; double [ ] dist_arr = new double [ _NUM ] ; dist_arr [ _NUM ] = Math . abs ( dx ) ; dist_arr [ _NUM ] = Math . abs ( dy ) ; double diagonal_1 = ( ( double ) dy - ( double ... | 356 |
java-test-5196 | java | What does the code initialize ? | the event for week view | public Week View Event ( long id , String name , Calendar start Time , Calendar end Time ) { this . m Id = id ; this . m Name = name ; this . m Start Time = start Time ; this . m End Time = end Time ; } | public WeekViewEvent ( long id , String name , Calendar startTime , Calendar endTime ) { this . mId = id ; this . mName = name ; this . mStartTime = startTime ; this . mEndTime = endTime ; } | 53 |
java-test-5197 | java | What does the code update to display the current index and the total count of the search result ? | the status label | private void update Status Label ( ) { String text = STRING ; if ( search Result != null ) { switch ( search Result . size ( ) ) { case NUM : text = STRING ; break ; case NUM : text = STRING ; break ; default : text = STRING + ( search Result Index + NUM ) + STRING + search Result . size ( ) + STRING ; } } status Text ... | private void updateStatusLabel ( ) { String text = STRING ; if ( searchResult != null ) { switch ( searchResult . size ( ) ) { case _NUM : text = STRING ; break ; case _NUM : text = STRING ; break ; default : text = STRING + ( searchResultIndex + _NUM ) + STRING + searchResult . size ( ) + STRING ; } } statusText . set... | 86 |
java-test-5198 | java | For what purpose does the code update the status label ? | to display the current index and the total count of the search result | private void update Status Label ( ) { String text = STRING ; if ( search Result != null ) { switch ( search Result . size ( ) ) { case NUM : text = STRING ; break ; case NUM : text = STRING ; break ; default : text = STRING + ( search Result Index + NUM ) + STRING + search Result . size ( ) + STRING ; } } status Text ... | private void updateStatusLabel ( ) { String text = STRING ; if ( searchResult != null ) { switch ( searchResult . size ( ) ) { case _NUM : text = STRING ; break ; case _NUM : text = STRING ; break ; default : text = STRING + ( searchResultIndex + _NUM ) + STRING + searchResult . size ( ) + STRING ; } } statusText . set... | 86 |
java-test-5203 | java | For what purpose does the code resize the array ? | to contain a smaller number of elements | public void resize ( int size ) { if ( buffer != null ) { if ( size >= NUM && size < buffer . size ( ) ) { int old Last Index = buffer . size ( ) - NUM ; int new Last Index = size - NUM ; for ( int i = old Last Index ; i > new Last Index ; i -- ) { buffer . remove ( i ) ; } } } else { if ( size >= NUM && size < offsets... | public void resize ( int size ) { if ( buffer != null ) { if ( size >= _NUM && size < buffer . size ( ) ) { int oldLastIndex = buffer . size ( ) - _NUM ; int newLastIndex = size - _NUM ; for ( int i = oldLastIndex ; i > newLastIndex ; i -- ) { buffer . remove ( i ) ; } } } else { if ( size >= _NUM && size < offsets . s... | 173 |
java-test-5207 | java | How does the code run the wrapper ? | with the specified arguments | @ Override public void run ( ) { Multiple Objects Bundle data = generator . load Data ( ) ; if ( LOG . is Verbose ( ) ) { LOG . verbose ( STRING ) ; } try { if ( output File . exists ( ) && LOG . is Verbose ( ) ) { LOG . verbose ( STRING + output File + STRING + STRING ) ; } try ( Output Stream Writer out Stream = new ... | @ Override public void run ( ) { MultipleObjectsBundle data = generator . loadData ( ) ; if ( LOG . isVerbose ( ) ) { LOG . verbose ( STRING ) ; } try { if ( outputFile . exists ( ) && LOG . isVerbose ( ) ) { LOG . verbose ( STRING + outputFile + STRING + STRING ) ; } try ( OutputStreamWriter outStream = new FileWriter... | 139 |
java-test-5209 | java | For what purpose does a hashcode return ? | for this kerberoskey | public int hash Code ( ) { int result = NUM ; if ( is Destroyed ( ) ) { return result ; } result = NUM * result + Arrays . hash Code ( get Encoded ( ) ) ; result = NUM * result + get Key Type ( ) ; if ( principal != null ) { result = NUM * result + principal . hash Code ( ) ; } return result * NUM + version Num ; } | public int hashCode ( ) { int result = _NUM ; if ( isDestroyed ( ) ) { return result ; } result = _NUM * result + Arrays . hashCode ( getEncoded ( ) ) ; result = _NUM * result + getKeyType ( ) ; if ( principal != null ) { result = _NUM * result + principal . hashCode ( ) ; } return result * _NUM + versionNum ; } | 83 |
java-test-5210 | java | What did this point set contain ? | only the specified point ids | public Free Form Point Set slice ( List < String > ids ) { Free Form Point Set ret = new Free Form Point Set ( ids . size ( ) ) ; Hash Set < String > ids Hash Set = new Hash Set < String > ( ids ) ; ret . id = id ; ret . label = label ; ret . description = description ; int n = NUM ; for ( int i = NUM ; i < this . ids ... | public FreeFormPointSet slice ( List < String > ids ) { FreeFormPointSet ret = new FreeFormPointSet ( ids . size ( ) ) ; HashSet < String > idsHashSet = new HashSet < String > ( ids ) ; ret . id = id ; ret . label = label ; ret . description = description ; int n = _NUM ; for ( int i = _NUM ; i < this . ids . length ; ... | 176 |
java-test-5211 | java | What is containing only the specified point ids ? | this point set | public Free Form Point Set slice ( List < String > ids ) { Free Form Point Set ret = new Free Form Point Set ( ids . size ( ) ) ; Hash Set < String > ids Hash Set = new Hash Set < String > ( ids ) ; ret . id = id ; ret . label = label ; ret . description = description ; int n = NUM ; for ( int i = NUM ; i < this . ids ... | public FreeFormPointSet slice ( List < String > ids ) { FreeFormPointSet ret = new FreeFormPointSet ( ids . size ( ) ) ; HashSet < String > idsHashSet = new HashSet < String > ( ids ) ; ret . id = id ; ret . label = label ; ret . description = description ; int n = _NUM ; for ( int i = _NUM ; i < this . ids . length ; ... | 176 |
java-test-5212 | java | What does the code get ? | a subset of this point set containing only the specified point ids | public Free Form Point Set slice ( List < String > ids ) { Free Form Point Set ret = new Free Form Point Set ( ids . size ( ) ) ; Hash Set < String > ids Hash Set = new Hash Set < String > ( ids ) ; ret . id = id ; ret . label = label ; ret . description = description ; int n = NUM ; for ( int i = NUM ; i < this . ids ... | public FreeFormPointSet slice ( List < String > ids ) { FreeFormPointSet ret = new FreeFormPointSet ( ids . size ( ) ) ; HashSet < String > idsHashSet = new HashSet < String > ( ids ) ; ret . id = id ; ret . label = label ; ret . description = description ; int n = _NUM ; for ( int i = _NUM ; i < this . ids . length ; ... | 176 |
java-test-5218 | java | What does the code initialize ? | a timer with a target , a selector and an interval in seconds | public CC Timer ( Object t , String s , float seconds ) { target = t ; selector = s ; interval = seconds ; elapsed = - NUM ; try { Class < ? > cls = target . get Class ( ) ; invocation = cls . get Method ( s , Float . TYPE ) ; } catch ( No Such Method Exception e ) { e . print Stack Trace ( ) ; } } | public CCTimer ( Object t , String s , float seconds ) { target = t ; selector = s ; interval = seconds ; elapsed = - _NUM ; try { Class < ? > cls = target . getClass ( ) ; invocation = cls . getMethod ( s , Float . TYPE ) ; } catch ( NoSuchMethodException e ) { e . printStackTrace ( ) ; } } | 80 |
java-test-5219 | java | What does the code update depending on whether the entered formula string is valid or not ? | the color of the input field | private void update Color ( ) { try { Breakpoint Condition Parser . evaluate ( input Field . get Text ( ) ) ; input Field . set Background ( Color . WHITE ) ; } catch ( final Invalid Formula Exception e ) { input Field . set Background ( Color . RED ) ; } } | private void updateColor ( ) { try { BreakpointConditionParser . evaluate ( inputField . getText ( ) ) ; inputField . setBackground ( Color . WHITE ) ; } catch ( final InvalidFormulaException e ) { inputField . setBackground ( Color . RED ) ; } } | 58 |
java-test-5220 | java | How does a charsequence split ? | according to the delimiter character | public static Char Sequence [ ] split ( Char Sequence line , int delimiter ) { Char Sequence [ ] tokens 0 = split ( line , delimiter , N ) ; if ( tokens 0 . length < N ) { return tokens 0 ; } else { Char Sequence [ ] tokens 1 = split ( tokens 0 [ N - NUM ] , delimiter ) ; Char Sequence [ ] tokens 2 = new Char Sequence ... | public static CharSequence [ ] split ( CharSequence line , int delimiter ) { CharSequence [ ] tokens0 = split ( line , delimiter , N ) ; if ( tokens0 . length < N ) { return tokens0 ; } else { CharSequence [ ] tokens1 = split ( tokens0 [ N - _NUM ] , delimiter ) ; CharSequence [ ] tokens2 = new CharSequence [ tokens0 .... | 146 |
java-test-5222 | java | What does the code compute for the indicator ? | the default filters from the ' filter ' property of the top - level json object | private void compute Default Filters ( File indicator File , Json Object json Obj ) { default Filters = new Array List < Filter > ( ) ; Json Array filter Array = Utils . get Field Value As Array ( json Obj , STRING ) ; if ( filter Array != null ) { Set < String > filter Fields = Utils . get All Filter Fields ( json Obj... | private void computeDefaultFilters ( File indicatorFile , JsonObject jsonObj ) { defaultFilters = new ArrayList < Filter > ( ) ; JsonArray filterArray = Utils . getFieldValueAsArray ( jsonObj , STRING ) ; if ( filterArray != null ) { Set < String > filterFields = Utils . getAllFilterFields ( jsonObj ) ; for ( int i = _... | 181 |
java-test-5226 | java | What does the code add ? | a string and a double | private String compute ( String left , double right , boolean is Integer ) { if ( left == null && Double . is Na N ( right ) ) { return null ; } if ( is Integer && right == ( int ) right ) { return ( left == null ? STRING : left ) + ( int ) right ; } else if ( Double . is Infinite ( right ) ) { return ( left == null ? ... | private String compute ( String left , double right , boolean isInteger ) { if ( left == null && Double . isNaN ( right ) ) { return null ; } if ( isInteger && right == ( int ) right ) { return ( left == null ? STRING : left ) + ( int ) right ; } else if ( Double . isInfinite ( right ) ) { return ( left == null ? STRIN... | 127 |
java-test-5227 | java | What does the double represents an integer try ? | to add it without trailing ' . 0 ' | private String compute ( String left , double right , boolean is Integer ) { if ( left == null && Double . is Na N ( right ) ) { return null ; } if ( is Integer && right == ( int ) right ) { return ( left == null ? STRING : left ) + ( int ) right ; } else if ( Double . is Infinite ( right ) ) { return ( left == null ? ... | private String compute ( String left , double right , boolean isInteger ) { if ( left == null && Double . isNaN ( right ) ) { return null ; } if ( isInteger && right == ( int ) right ) { return ( left == null ? STRING : left ) + ( int ) right ; } else if ( Double . isInfinite ( right ) ) { return ( left == null ? STRIN... | 127 |
java-test-5228 | java | When is the stream completed ? | when tuple . eof = = true | public Tuple read ( ) throws IO Exception { try { Map fields = json Tuple Stream . next ( ) ; if ( fields == null ) { Map m = new Hash Map ( ) ; m . put ( STRING , BOOL ) ; return new Tuple ( m ) ; } else { String msg = ( String ) fields . get ( STRING ) ; if ( msg != null ) { Handled Exception io Exception = new Handl... | public Tuple read ( ) throws IOException { try { Map fields = jsonTupleStream . next ( ) ; if ( fields == null ) { Map m = new HashMap ( ) ; m . put ( STRING , _BOOL ) ; return new Tuple ( m ) ; } else { String msg = ( String ) fields . get ( STRING ) ; if ( msg != null ) { HandledException ioException = new HandledExc... | 213 |
java-test-5229 | java | What does the code read ? | a tuple from the stream | public Tuple read ( ) throws IO Exception { try { Map fields = json Tuple Stream . next ( ) ; if ( fields == null ) { Map m = new Hash Map ( ) ; m . put ( STRING , BOOL ) ; return new Tuple ( m ) ; } else { String msg = ( String ) fields . get ( STRING ) ; if ( msg != null ) { Handled Exception io Exception = new Handl... | public Tuple read ( ) throws IOException { try { Map fields = jsonTupleStream . next ( ) ; if ( fields == null ) { Map m = new HashMap ( ) ; m . put ( STRING , _BOOL ) ; return new Tuple ( m ) ; } else { String msg = ( String ) fields . get ( STRING ) ; if ( msg != null ) { HandledException ioException = new HandledExc... | 213 |
java-test-5230 | java | What does the code add ? | an attribute to the attribute payload | public void add Attribute ( String alias , String type Uri , String value ) throws Message Exception { if ( alias . index Of ( STRING ) > - NUM || alias . index Of ( STRING ) > - NUM || alias . index Of ( STRING ) > - NUM || alias . index Of ( STRING ) > - NUM ) throw new Message Exception ( STRING + alias ) ; int coun... | public void addAttribute ( String alias , String typeUri , String value ) throws MessageException { if ( alias . indexOf ( STRING ) > - _NUM || alias . indexOf ( STRING ) > - _NUM || alias . indexOf ( STRING ) > - _NUM || alias . indexOf ( STRING ) > - _NUM ) throw new MessageException ( STRING + alias ) ; int count = ... | 224 |
java-test-5233 | java | What does the code remove from the layout since they ' re only listed in the user toolbar ? | the given meta beans | protected void remove User Tool Bar Beans ( Vector < ? > metabeans ) { int i ; int n ; Meta Bean meta ; Vector < Object > subflow ; Bean Instance beaninst ; for ( i = NUM ; i < metabeans . size ( ) ; i ++ ) { meta = ( Meta Bean ) metabeans . get ( i ) ; subflow = meta . get Sub Flow ( ) ; for ( n = NUM ; n < subflow . ... | protected void removeUserToolBarBeans ( Vector < ? > metabeans ) { int i ; int n ; MetaBean meta ; Vector < Object > subflow ; BeanInstance beaninst ; for ( i = _NUM ; i < metabeans . size ( ) ; i ++ ) { meta = ( MetaBean ) metabeans . get ( i ) ; subflow = meta . getSubFlow ( ) ; for ( n = _NUM ; n < subflow . size ( ... | 120 |
java-test-5234 | java | Why does the code remove the given meta beans from the layout ? | since they ' re only listed in the user toolbar | protected void remove User Tool Bar Beans ( Vector < ? > metabeans ) { int i ; int n ; Meta Bean meta ; Vector < Object > subflow ; Bean Instance beaninst ; for ( i = NUM ; i < metabeans . size ( ) ; i ++ ) { meta = ( Meta Bean ) metabeans . get ( i ) ; subflow = meta . get Sub Flow ( ) ; for ( n = NUM ; n < subflow . ... | protected void removeUserToolBarBeans ( Vector < ? > metabeans ) { int i ; int n ; MetaBean meta ; Vector < Object > subflow ; BeanInstance beaninst ; for ( i = _NUM ; i < metabeans . size ( ) ; i ++ ) { meta = ( MetaBean ) metabeans . get ( i ) ; subflow = meta . getSubFlow ( ) ; for ( n = _NUM ; n < subflow . size ( ... | 120 |
java-test-5241 | java | What did the code put into the cache for reuse ? | a dmessage | public static void free ( D Message msg ) { int index = size 2 Index ( msg . get Size ( ) ) ; msg . clear ( ) ; if ( index < NUM ) ; else if ( m cache [ index ] != null ) ; else m cache [ index ] = msg ; } | public static void free ( DMessage msg ) { int index = size2Index ( msg . getSize ( ) ) ; msg . clear ( ) ; if ( index < _NUM ) ; else if ( m_cache [ index ] != null ) ; else m_cache [ index ] = msg ; } | 60 |
java-test-5244 | java | What does the code find ? | customizations which must be re - applied | public String sql AD get Customization Change Logs ( String vendor Name , String catalog Name , String schema Name ) { String search Table Name = STRING ; Array List < String > column Names = new Array List < String > ( ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; ... | public String sqlAD_getCustomizationChangeLogs ( String vendorName , String catalogName , String schemaName ) { String searchTableName = STRING ; ArrayList < String > columnNames = new ArrayList < String > ( ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . a... | 382 |
java-test-5245 | java | For what purpose does the code get the database specific sql command ? | to find customizations which must be re - applied | public String sql AD get Customization Change Logs ( String vendor Name , String catalog Name , String schema Name ) { String search Table Name = STRING ; Array List < String > column Names = new Array List < String > ( ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; ... | public String sqlAD_getCustomizationChangeLogs ( String vendorName , String catalogName , String schemaName ) { String searchTableName = STRING ; ArrayList < String > columnNames = new ArrayList < String > ( ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . a... | 382 |
java-test-5246 | java | How do mouse wheel rotations treat ? | like slider - handle drags | public void adjust Zoom From Mouse Wheel ( int rot ) { Projection projection = get Projection ( ) ; if ( projection == null ) { return ; } set User Has Changed Scale ( BOOL ) ; Point 2 D minutes Pnt 0 = projection . inverse ( NUM , NUM ) ; Point 2 D minutes Pnt 1 = projection . inverse ( NUM , NUM ) ; double minutes Pe... | public void adjustZoomFromMouseWheel ( int rot ) { Projection projection = getProjection ( ) ; if ( projection == null ) { return ; } setUserHasChangedScale ( _BOOL ) ; Point2D minutesPnt0 = projection . inverse ( _NUM , _NUM ) ; Point2D minutesPnt1 = projection . inverse ( _NUM , _NUM ) ; double minutesPerPixel = minu... | 200 |
java-test-5255 | java | What maps to one or more platform dependent names ? | a platform independent library name | private String [ ] platform Names ( String library Name ) { if ( is Windows ) return new String [ ] { library Name + ( is 64 Bit ? STRING : STRING ) } ; if ( is Linux ) return new String [ ] { STRING + library Name + ( is 64 Bit ? STRING : STRING ) } ; if ( is Mac ) return new String [ ] { STRING + library Name + STRIN... | private String [ ] platformNames ( String libraryName ) { if ( isWindows ) return new String [ ] { libraryName + ( is64Bit ? STRING : STRING ) } ; if ( isLinux ) return new String [ ] { STRING + libraryName + ( is64Bit ? STRING : STRING ) } ; if ( isMac ) return new String [ ] { STRING + libraryName + STRING , STRING +... | 101 |
java-test-5256 | java | What does a platform independent library name map ? | to one or more platform dependent names | private String [ ] platform Names ( String library Name ) { if ( is Windows ) return new String [ ] { library Name + ( is 64 Bit ? STRING : STRING ) } ; if ( is Linux ) return new String [ ] { STRING + library Name + ( is 64 Bit ? STRING : STRING ) } ; if ( is Mac ) return new String [ ] { STRING + library Name + STRIN... | private String [ ] platformNames ( String libraryName ) { if ( isWindows ) return new String [ ] { libraryName + ( is64Bit ? STRING : STRING ) } ; if ( isLinux ) return new String [ ] { STRING + libraryName + ( is64Bit ? STRING : STRING ) } ; if ( isMac ) return new String [ ] { STRING + libraryName + STRING , STRING +... | 101 |
java-test-5257 | java | What do the parameter values inform ? | this managedsysteminfo instance | private void update Managed System ( I Source S ) throws Ade Exception { logger . trace ( String . format ( STRING , S . get Source Id ( ) ) ) ; boolean update Ok ; try { logger . info ( String . format ( STRING , S . get Source Id ( ) ) ) ; update Ok = execute Batch ( get Sql For Update ( S ) ) ; if ( update Ok ) { ch... | private void updateManagedSystem ( ISource S ) throws AdeException { logger . trace ( String . format ( STRING , S . getSourceId ( ) ) ) ; boolean updateOk ; try { logger . info ( String . format ( STRING , S . getSourceId ( ) ) ) ; updateOk = executeBatch ( getSqlForUpdate ( S ) ) ; if ( updateOk ) { checkForObsoleteR... | 198 |
java-test-5258 | java | Where did the values find ? | in the database query | private void update Managed System ( I Source S ) throws Ade Exception { logger . trace ( String . format ( STRING , S . get Source Id ( ) ) ) ; boolean update Ok ; try { logger . info ( String . format ( STRING , S . get Source Id ( ) ) ) ; update Ok = execute Batch ( get Sql For Update ( S ) ) ; if ( update Ok ) { ch... | private void updateManagedSystem ( ISource S ) throws AdeException { logger . trace ( String . format ( STRING , S . getSourceId ( ) ) ) ; boolean updateOk ; try { logger . info ( String . format ( STRING , S . getSourceId ( ) ) ) ; updateOk = executeBatch ( getSqlForUpdate ( S ) ) ; if ( updateOk ) { checkForObsoleteR... | 198 |
java-test-5259 | java | What are that is ? | that their left edges are on the same x location , with respect to the specified margin | static public void assert Left Aligned ( View first , View second , int margin ) { int [ ] xy = new int [ NUM ] ; first . get Location On Screen ( xy ) ; int first Left = xy [ NUM ] ; second . get Location On Screen ( xy ) ; int second Left = xy [ NUM ] ; assert Equals ( STRING , Math . abs ( first Left - second Left )... | static public void assertLeftAligned ( View first , View second , int margin ) { int [ ] xy = new int [ _NUM ] ; first . getLocationOnScreen ( xy ) ; int firstLeft = xy [ _NUM ] ; second . getLocationOnScreen ( xy ) ; int secondLeft = xy [ _NUM ] ; assertEquals ( STRING , Math . abs ( firstLeft - secondLeft ) , margin ... | 86 |
java-test-5260 | java | What does the code read into the specified drawing ? | a list of figures | protected void read ( URL url , Input Stream in , Drawing drawing , Linked List < Figure > figures ) throws IO Exception { Nano XMLDOM Input domi = new Nano XMLDOM Input ( factory , in ) ; domi . open Element ( factory . get Name ( drawing ) ) ; domi . open Element ( STRING , NUM ) ; figures . clear ( ) ; for ( int i =... | protected void read ( URL url , InputStream in , Drawing drawing , LinkedList < Figure > figures ) throws IOException { NanoXMLDOMInput domi = new NanoXMLDOMInput ( factory , in ) ; domi . openElement ( factory . getName ( drawing ) ) ; domi . openElement ( STRING , _NUM ) ; figures . clear ( ) ; for ( int i = _NUM , n... | 148 |
java-test-5261 | java | Where did a child element name " figures " ? | in the element that represents the drawing | protected void read ( URL url , Input Stream in , Drawing drawing , Linked List < Figure > figures ) throws IO Exception { Nano XMLDOM Input domi = new Nano XMLDOM Input ( factory , in ) ; domi . open Element ( factory . get Name ( drawing ) ) ; domi . open Element ( STRING , NUM ) ; figures . clear ( ) ; for ( int i =... | protected void read ( URL url , InputStream in , Drawing drawing , LinkedList < Figure > figures ) throws IOException { NanoXMLDOMInput domi = new NanoXMLDOMInput ( factory , in ) ; domi . openElement ( factory . getName ( drawing ) ) ; domi . openElement ( STRING , _NUM ) ; figures . clear ( ) ; for ( int i = _NUM , n... | 148 |
java-test-5262 | java | What is this method expects ? | that there is a child element named " figures " in the element that represents the drawing | protected void read ( URL url , Input Stream in , Drawing drawing , Linked List < Figure > figures ) throws IO Exception { Nano XMLDOM Input domi = new Nano XMLDOM Input ( factory , in ) ; domi . open Element ( factory . get Name ( drawing ) ) ; domi . open Element ( STRING , NUM ) ; figures . clear ( ) ; for ( int i =... | protected void read ( URL url , InputStream in , Drawing drawing , LinkedList < Figure > figures ) throws IOException { NanoXMLDOMInput domi = new NanoXMLDOMInput ( factory , in ) ; domi . openElement ( factory . getName ( drawing ) ) ; domi . openElement ( STRING , _NUM ) ; figures . clear ( ) ; for ( int i = _NUM , n... | 148 |
java-test-5263 | java | Where does the code create a string in the buffer from an already encoded utf - 8 string ? | in a bytebuffer | public int create String ( Byte Buffer s ) { int length = s . remaining ( ) ; add Byte ( ( byte ) NUM ) ; start Vector ( NUM , length , NUM ) ; bb . position ( space -= length ) ; bb . put ( s ) ; return end Vector ( ) ; } | public int createString ( ByteBuffer s ) { int length = s . remaining ( ) ; addByte ( ( byte ) _NUM ) ; startVector ( _NUM , length , _NUM ) ; bb . position ( space -= length ) ; bb . put ( s ) ; return endVector ( ) ; } | 61 |
java-test-5264 | java | What does the code create in a bytebuffer ? | a string in the buffer from an already encoded utf - 8 string | public int create String ( Byte Buffer s ) { int length = s . remaining ( ) ; add Byte ( ( byte ) NUM ) ; start Vector ( NUM , length , NUM ) ; bb . position ( space -= length ) ; bb . put ( s ) ; return end Vector ( ) ; } | public int createString ( ByteBuffer s ) { int length = s . remaining ( ) ; addByte ( ( byte ) _NUM ) ; startVector ( _NUM , length , _NUM ) ; bb . position ( space -= length ) ; bb . put ( s ) ; return endVector ( ) ; } | 61 |
java-test-5265 | java | What does the list contain already ? | a padstack with p_padstack | public boolean add via padstack ( Lib Padstack p padstack ) { if ( p padstack == null ) return BOOL ; if ( get via padstack ( p padstack . pads name ) != null ) return BOOL ; via padstacks . add ( p padstack ) ; return BOOL ; } | public boolean add_via_padstack ( LibPadstack p_padstack ) { if ( p_padstack == null ) return _BOOL ; if ( get_via_padstack ( p_padstack . pads_name ) != null ) return _BOOL ; via_padstacks . add ( p_padstack ) ; return _BOOL ; } | 53 |
java-test-5266 | java | How can the atomicinteger be not incremented ? | without exceeding the maximum | private boolean try Increment ( Atomic Integer counter , int max ) { while ( BOOL ) { int count = counter . get ( ) ; if ( count >= max && max != NUM ) return BOOL ; if ( counter . compare And Set ( count , count + NUM ) ) return BOOL ; } } | private boolean tryIncrement ( AtomicInteger counter , int max ) { while ( _BOOL ) { int count = counter . get ( ) ; if ( count >= max && max != _NUM ) return _BOOL ; if ( counter . compareAndSet ( count , count + _NUM ) ) return _BOOL ; } } | 60 |
java-test-5267 | java | How do the given atomicinteger increment ? | without exceeding the specified maximum value | private boolean try Increment ( Atomic Integer counter , int max ) { while ( BOOL ) { int count = counter . get ( ) ; if ( count >= max && max != NUM ) return BOOL ; if ( counter . compare And Set ( count , count + NUM ) ) return BOOL ; } } | private boolean tryIncrement ( AtomicInteger counter , int max ) { while ( _BOOL ) { int count = counter . get ( ) ; if ( count >= max && max != _NUM ) return _BOOL ; if ( counter . compareAndSet ( count , count + _NUM ) ) return _BOOL ; } } | 60 |
java-test-5268 | java | What can be passed in the content - type header ? | the full media type string | public String build ( ) { if ( cached Build Result != null ) { return cached Build Result ; } String Builder str = new String Builder ( ) ; str . append ( type ) ; str . append ( STRING ) ; str . append ( sub Type ) ; if ( parameters != null ) { for ( Entry < String , String > entry : parameters . entry Set ( ) ) { Str... | public String build ( ) { if ( cachedBuildResult != null ) { return cachedBuildResult ; } StringBuilder str = new StringBuilder ( ) ; str . append ( type ) ; str . append ( STRING ) ; str . append ( subType ) ; if ( parameters != null ) { for ( Entry < String , String > entry : parameters . entrySet ( ) ) { String valu... | 153 |
java-test-5269 | java | Where can the full media type string be passed ? | in the content - type header | public String build ( ) { if ( cached Build Result != null ) { return cached Build Result ; } String Builder str = new String Builder ( ) ; str . append ( type ) ; str . append ( STRING ) ; str . append ( sub Type ) ; if ( parameters != null ) { for ( Entry < String , String > entry : parameters . entry Set ( ) ) { Str... | public String build ( ) { if ( cachedBuildResult != null ) { return cachedBuildResult ; } StringBuilder str = new StringBuilder ( ) ; str . append ( type ) ; str . append ( STRING ) ; str . append ( subType ) ; if ( parameters != null ) { for ( Entry < String , String > entry : parameters . entrySet ( ) ) { String valu... | 153 |
java-test-5272 | java | What do this plugin perform ? | work on a background task | public void register Intent ( Plugin plugin ) { Preconditions . check State ( ! fired . get ( ) , STRING , this ) ; Preconditions . check State ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . increment And Get ( ) ; } | public void registerIntent ( Plugin plugin ) { Preconditions . checkState ( ! fired . get ( ) , STRING , this ) ; Preconditions . checkState ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . incrementAndGet ( ) ; } | 62 |
java-test-5273 | java | When do the event proceed ? | once the registered background task has completed | public void register Intent ( Plugin plugin ) { Preconditions . check State ( ! fired . get ( ) , STRING , this ) ; Preconditions . check State ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . increment And Get ( ) ; } | public void registerIntent ( Plugin plugin ) { Preconditions . checkState ( ! fired . get ( ) , STRING , this ) ; Preconditions . checkState ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . incrementAndGet ( ) ; } | 62 |
java-test-5274 | java | What will this plugin continue ? | to perform work on a background task | public void register Intent ( Plugin plugin ) { Preconditions . check State ( ! fired . get ( ) , STRING , this ) ; Preconditions . check State ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . increment And Get ( ) ; } | public void registerIntent ( Plugin plugin ) { Preconditions . checkState ( ! fired . get ( ) , STRING , this ) ; Preconditions . checkState ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . incrementAndGet ( ) ; } | 62 |
java-test-5279 | java | What does the code create ? | a vertical separator for visually separating status bar elements | private Component create Separator ( ) { J Separator sep = new J Separator ( Swing Constants . VERTICAL ) ; sep . set Preferred Size ( new Dimension ( NUM , NUM ) ) ; sep . set Minimum Size ( new Dimension ( NUM , NUM ) ) ; return sep ; } | private Component createSeparator ( ) { JSeparator sep = new JSeparator ( SwingConstants . VERTICAL ) ; sep . setPreferredSize ( new Dimension ( _NUM , _NUM ) ) ; sep . setMinimumSize ( new Dimension ( _NUM , _NUM ) ) ; return sep ; } | 55 |
java-test-5280 | java | What does a merge hold on indexwriter instance ? | the synchronized lock | final synchronized void merge Finish ( Merge Policy . One Merge merge ) { notify All ( ) ; if ( merge . register Done ) { final List < Segment Commit Info > source Segments = merge . segments ; for ( Segment Commit Info info : source Segments ) { merging Segments . remove ( info ) ; } merge . register Done = BOOL ; } r... | final synchronized void mergeFinish ( MergePolicy . OneMerge merge ) { notifyAll ( ) ; if ( merge . registerDone ) { final List < SegmentCommitInfo > sourceSegments = merge . segments ; for ( SegmentCommitInfo info : sourceSegments ) { mergingSegments . remove ( info ) ; } merge . registerDone = _BOOL ; } runningMerges... | 78 |
java-test-5281 | java | Where does a merge hold the synchronized lock ? | on indexwriter instance | final synchronized void merge Finish ( Merge Policy . One Merge merge ) { notify All ( ) ; if ( merge . register Done ) { final List < Segment Commit Info > source Segments = merge . segments ; for ( Segment Commit Info info : source Segments ) { merging Segments . remove ( info ) ; } merge . register Done = BOOL ; } r... | final synchronized void mergeFinish ( MergePolicy . OneMerge merge ) { notifyAll ( ) ; if ( merge . registerDone ) { final List < SegmentCommitInfo > sourceSegments = merge . segments ; for ( SegmentCommitInfo info : sourceSegments ) { mergingSegments . remove ( info ) ; } merge . registerDone = _BOOL ; } runningMerges... | 78 |
java-test-5283 | java | What does the code update to center the target position ? | the view position | private void adjust View ( ) { if ( ( dvx == NUM ) && ( dvy == NUM ) ) { return ; } final int sx = convert World X To Scaled Screen ( x ) - get Screen View X ( ) + SIZE UNIT PIXELS / NUM ; final int sy = convert World Y To Scaled Screen ( y ) - get Screen View Y ( ) + SIZE UNIT PIXELS / NUM ; if ( ( sx < NUM ) || ( sx ... | private void adjustView ( ) { if ( ( dvx == _NUM ) && ( dvy == _NUM ) ) { return ; } final int sx = convertWorldXToScaledScreen ( x ) - getScreenViewX ( ) + SIZE_UNIT_PIXELS / _NUM ; final int sy = convertWorldYToScaledScreen ( y ) - getScreenViewY ( ) + SIZE_UNIT_PIXELS / _NUM ; if ( ( sx < _NUM ) || ( sx >= sw ) || (... | 281 |
java-test-5284 | java | For what purpose does the code update the view position ? | to center the target position | private void adjust View ( ) { if ( ( dvx == NUM ) && ( dvy == NUM ) ) { return ; } final int sx = convert World X To Scaled Screen ( x ) - get Screen View X ( ) + SIZE UNIT PIXELS / NUM ; final int sy = convert World Y To Scaled Screen ( y ) - get Screen View Y ( ) + SIZE UNIT PIXELS / NUM ; if ( ( sx < NUM ) || ( sx ... | private void adjustView ( ) { if ( ( dvx == _NUM ) && ( dvy == _NUM ) ) { return ; } final int sx = convertWorldXToScaledScreen ( x ) - getScreenViewX ( ) + SIZE_UNIT_PIXELS / _NUM ; final int sy = convertWorldYToScaledScreen ( y ) - getScreenViewY ( ) + SIZE_UNIT_PIXELS / _NUM ; if ( ( sx < _NUM ) || ( sx >= sw ) || (... | 281 |
java-test-5285 | java | How do a layer initialize ? | by adding the desired number of neurons with the desired neuron update rule | private void initialize Layer ( List < Neuron > layer , Neuron Update Rule node Type , int nodes ) { for ( int i = NUM ; i < nodes ; i ++ ) { Neuron node = new Neuron ( get Parent Network ( ) , node Type ) ; layer . add ( node ) ; } } | private void initializeLayer ( List < Neuron > layer , NeuronUpdateRule nodeType , int nodes ) { for ( int i = _NUM ; i < nodes ; i ++ ) { Neuron node = new Neuron ( getParentNetwork ( ) , nodeType ) ; layer . add ( node ) ; } } | 61 |
java-test-5286 | java | Where does the code draw a vertical line and a corresponding frequency label ? | at the bottom | private void draw Frequency Line And Label ( Graphics 2 D graphics , long frequency ) { double x Axis = get Axis From Frequency ( frequency ) ; draw Frequency Line ( graphics , x Axis , m Color Spectrum Line ) ; draw Tick Line ( graphics , frequency , BOOL ) ; graphics . set Color ( m Color Spectrum Line ) ; draw Frequ... | private void drawFrequencyLineAndLabel ( Graphics2D graphics , long frequency ) { double xAxis = getAxisFromFrequency ( frequency ) ; drawFrequencyLine ( graphics , xAxis , mColorSpectrumLine ) ; drawTickLine ( graphics , frequency , _BOOL ) ; graphics . setColor ( mColorSpectrumLine ) ; drawFrequencyLabel ( graphics ,... | 79 |
java-test-5287 | java | What does the code draw at the bottom ? | a vertical line and a corresponding frequency label | private void draw Frequency Line And Label ( Graphics 2 D graphics , long frequency ) { double x Axis = get Axis From Frequency ( frequency ) ; draw Frequency Line ( graphics , x Axis , m Color Spectrum Line ) ; draw Tick Line ( graphics , frequency , BOOL ) ; graphics . set Color ( m Color Spectrum Line ) ; draw Frequ... | private void drawFrequencyLineAndLabel ( Graphics2D graphics , long frequency ) { double xAxis = getAxisFromFrequency ( frequency ) ; drawFrequencyLine ( graphics , xAxis , mColorSpectrumLine ) ; drawTickLine ( graphics , frequency , _BOOL ) ; graphics . setColor ( mColorSpectrumLine ) ; drawFrequencyLabel ( graphics ,... | 79 |
java-test-5288 | java | Where are all ' show ' filters listed ? | after other types of filters | public void add Filter ( Filter filter ) { int size = filters . size ( ) ; if ( size == NUM || filter . type == Filter Type . SHOW || filters . get ( size - NUM ) . type != Filter Type . SHOW ) { filters . add ( filter ) ; } else { for ( int i = NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == Filter Type .... | public void addFilter ( Filter filter ) { int size = filters . size ( ) ; if ( size == _NUM || filter . type == FilterType . SHOW || filters . get ( size - _NUM ) . type != FilterType . SHOW ) { filters . add ( filter ) ; } else { for ( int i = _NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == FilterType . ... | 107 |
java-test-5289 | java | What are listed after other types of filters ? | all ' show ' filters | public void add Filter ( Filter filter ) { int size = filters . size ( ) ; if ( size == NUM || filter . type == Filter Type . SHOW || filters . get ( size - NUM ) . type != Filter Type . SHOW ) { filters . add ( filter ) ; } else { for ( int i = NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == Filter Type .... | public void addFilter ( Filter filter ) { int size = filters . size ( ) ; if ( size == _NUM || filter . type == FilterType . SHOW || filters . get ( size - _NUM ) . type != FilterType . SHOW ) { filters . add ( filter ) ; } else { for ( int i = _NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == FilterType . ... | 107 |
java-test-5290 | java | Does the code maintain the invariant that all ' show ' filters are listed after other types of filters ? | No | public void add Filter ( Filter filter ) { int size = filters . size ( ) ; if ( size == NUM || filter . type == Filter Type . SHOW || filters . get ( size - NUM ) . type != Filter Type . SHOW ) { filters . add ( filter ) ; } else { for ( int i = NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == Filter Type .... | public void addFilter ( Filter filter ) { int size = filters . size ( ) ; if ( size == _NUM || filter . type == FilterType . SHOW || filters . get ( size - _NUM ) . type != FilterType . SHOW ) { filters . add ( filter ) ; } else { for ( int i = _NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == FilterType . ... | 107 |
java-test-5291 | java | What does the code generate using the key we were initialised with ? | a signature for the message we ' ve been loaded with | public byte [ ] generate Signature ( ) throws Crypto Exception , Data Length Exception { content Digest . do Final ( m Dash , m Dash . length - h Len - s Len ) ; if ( s Len != NUM ) { random . next Bytes ( salt ) ; System . arraycopy ( salt , NUM , m Dash , m Dash . length - s Len , s Len ) ; } byte [ ] h = new byte [ ... | public byte [ ] generateSignature ( ) throws CryptoException , DataLengthException { contentDigest . doFinal ( mDash , mDash . length - hLen - sLen ) ; if ( sLen != _NUM ) { random . nextBytes ( salt ) ; System . arraycopy ( salt , _NUM , mDash , mDash . length - sLen , sLen ) ; } byte [ ] h = new byte [ hLen ] ; conte... | 306 |
java-test-5292 | java | How does the code sort the players ? | by seat | public void sort Players ( ) { int index = NUM ; for ( int i = NUM ; i <= get Player Count ( ) ; i ++ ) { Player p = get Player At Seat ( i ) ; if ( p != null ) { players . remove ( p ) ; players . add ( index , p ) ; index ++ ; } } } | public void sortPlayers ( ) { int index = _NUM ; for ( int i = _NUM ; i <= getPlayerCount ( ) ; i ++ ) { Player p = getPlayerAtSeat ( i ) ; if ( p != null ) { players . remove ( p ) ; players . add ( index , p ) ; index ++ ; } } } | 71 |
java-test-5293 | java | What does the code sort by seat ? | the players | public void sort Players ( ) { int index = NUM ; for ( int i = NUM ; i <= get Player Count ( ) ; i ++ ) { Player p = get Player At Seat ( i ) ; if ( p != null ) { players . remove ( p ) ; players . add ( index , p ) ; index ++ ; } } } | public void sortPlayers ( ) { int index = _NUM ; for ( int i = _NUM ; i <= getPlayerCount ( ) ; i ++ ) { Player p = getPlayerAtSeat ( i ) ; if ( p != null ) { players . remove ( p ) ; players . add ( index , p ) ; index ++ ; } } } | 71 |
java-test-5297 | java | What will method create if makedirs set to true and file ' s path doesn ' t exists ? | path / mkdirs | public static boolean is Writable ( final File file , final boolean make Dirs ) { if ( file == null ) { Log . e ( File Utils . class , STRING ) ; return BOOL ; } final String file Parent Dir = file . get Parent ( ) ; if ( ! Text Utils . is Empty ( file Parent Dir ) ) { final File file Dir = new File ( file Parent Dir )... | public static boolean isWritable ( final File file , final boolean makeDirs ) { if ( file == null ) { Log . e ( FileUtils . class , STRING ) ; return _BOOL ; } final String fileParentDir = file . getParent ( ) ; if ( ! TextUtils . isEmpty ( fileParentDir ) ) { final File fileDir = new File ( fileParentDir ) ; if ( ! fi... | 179 |
java-test-5298 | java | What does the code create ? | a datasource from an input stream | public Byte Array Data Source ( Input Stream is , String type ) { try { Byte Array Output Stream os = new Byte Array Output Stream ( ) ; int ch ; while ( ( ch = is . read ( ) ) != - NUM ) { os . write ( ch ) ; } m data = os . to Byte Array ( ) ; } catch ( IO Exception ioex ) { log . log ( Level . WARNING , STRING , ioe... | public ByteArrayDataSource ( InputStream is , String type ) { try { ByteArrayOutputStream os = new ByteArrayOutputStream ( ) ; int ch ; while ( ( ch = is . read ( ) ) != - _NUM ) { os . write ( ch ) ; } m_data = os . toByteArray ( ) ; } catch ( IOException ioex ) { log . log ( Level . WARNING , STRING , ioex ) ; } if (... | 110 |
java-test-5299 | java | How do details of api changes construct ? | by service and component name | private String create Component Changes ( ) { String Builder builder = new String Builder ( ) ; for ( Service Catalog Diff service Catalog Diff : diff List ) { builder . append ( create Api Changes ( service Catalog Diff ) ) ; } return builder . to String ( ) ; } | private String createComponentChanges ( ) { StringBuilder builder = new StringBuilder ( ) ; for ( ServiceCatalogDiff serviceCatalogDiff : diffList ) { builder . append ( createApiChanges ( serviceCatalogDiff ) ) ; } return builder . toString ( ) ; } | 55 |
java-test-5300 | java | For what purpose does the code show a list ? | to select one or more items to delete | private void cmd delete Selection ( ) { m frame . set Cursor ( Cursor . get Predefined Cursor ( Cursor . WAIT CURSOR ) ) ; if ( A Dialog . ask ( get Window No ( ) , m frame , STRING ) ) { int records = delete Selection ( ) ; set Status Line ( Msg . get Msg ( Env . get Ctx ( ) , STRING ) + records , BOOL ) ; } m frame .... | private void cmd_deleteSelection ( ) { m_frame . setCursor ( Cursor . getPredefinedCursor ( Cursor . WAIT_CURSOR ) ) ; if ( ADialog . ask ( getWindowNo ( ) , m_frame , STRING ) ) { int records = deleteSelection ( ) ; setStatusLine ( Msg . getMsg ( Env . getCtx ( ) , STRING ) + records , _BOOL ) ; } m_frame . setCursor ... | 111 |
java-test-5301 | java | In which direction does this method deserializ a string ? | from the given byte array | public static String deserialize String ( byte [ ] buffer , Mutable Int offset ) { int length = deserialize Int ( buffer , offset ) ; String val = new String ( buffer , offset . int Value ( ) , length ) ; offset . add ( length ) ; return val ; } | public static String deserializeString ( byte [ ] buffer , MutableInt offset ) { int length = deserializeInt ( buffer , offset ) ; String val = new String ( buffer , offset . intValue ( ) , length ) ; offset . add ( length ) ; return val ; } | 56 |
java-test-5302 | java | What is used to determine if they contain an id3 tag this method ? | by non mp3s ( such as . ogg and . flac ) | public static boolean is Id 3 Tag ( Random Access File raf ) throws IO Exception { if ( ! is ID 3 V 2 Header ( raf ) ) { return BOOL ; } byte [ ] tag Header = new byte [ FIELD TAG SIZE LENGTH ] ; raf . seek ( raf . get File Pointer ( ) + NUM ) ; raf . read ( tag Header ) ; Byte Buffer bb = Byte Buffer . wrap ( tag Head... | public static boolean isId3Tag ( RandomAccessFile raf ) throws IOException { if ( ! isID3V2Header ( raf ) ) { return _BOOL ; } byte [ ] tagHeader = new byte [ FIELD_TAG_SIZE_LENGTH ] ; raf . seek ( raf . getFilePointer ( ) + _NUM ) ; raf . read ( tagHeader ) ; ByteBuffer bb = ByteBuffer . wrap ( tagHeader ) ; int size ... | 117 |
java-test-5303 | java | What does file contain ? | an id3 tag | public static boolean is Id 3 Tag ( Random Access File raf ) throws IO Exception { if ( ! is ID 3 V 2 Header ( raf ) ) { return BOOL ; } byte [ ] tag Header = new byte [ FIELD TAG SIZE LENGTH ] ; raf . seek ( raf . get File Pointer ( ) + NUM ) ; raf . read ( tag Header ) ; Byte Buffer bb = Byte Buffer . wrap ( tag Head... | public static boolean isId3Tag ( RandomAccessFile raf ) throws IOException { if ( ! isID3V2Header ( raf ) ) { return _BOOL ; } byte [ ] tagHeader = new byte [ FIELD_TAG_SIZE_LENGTH ] ; raf . seek ( raf . getFilePointer ( ) + _NUM ) ; raf . read ( tagHeader ) ; ByteBuffer bb = ByteBuffer . wrap ( tagHeader ) ; int size ... | 117 |
java-test-5304 | java | What is by non mp3s ( such as . ogg and . flac ) used this method ? | to determine if they contain an id3 tag | public static boolean is Id 3 Tag ( Random Access File raf ) throws IO Exception { if ( ! is ID 3 V 2 Header ( raf ) ) { return BOOL ; } byte [ ] tag Header = new byte [ FIELD TAG SIZE LENGTH ] ; raf . seek ( raf . get File Pointer ( ) + NUM ) ; raf . read ( tag Header ) ; Byte Buffer bb = Byte Buffer . wrap ( tag Head... | public static boolean isId3Tag ( RandomAccessFile raf ) throws IOException { if ( ! isID3V2Header ( raf ) ) { return _BOOL ; } byte [ ] tagHeader = new byte [ FIELD_TAG_SIZE_LENGTH ] ; raf . seek ( raf . getFilePointer ( ) + _NUM ) ; raf . read ( tagHeader ) ; ByteBuffer bb = ByteBuffer . wrap ( tagHeader ) ; int size ... | 117 |
java-test-5307 | java | What do an array hold ? | the collected events | public Event Bean [ ] to Array ( ) { if ( first Event == null ) { return new Event Bean [ NUM ] ; } if ( additional Events == null ) { return new Event Bean [ ] { first Event } ; } Event Bean [ ] events = new Event Bean [ NUM + additional Events . size ( ) ] ; events [ NUM ] = first Event ; int count = NUM ; for ( Even... | public EventBean [ ] toArray ( ) { if ( firstEvent == null ) { return new EventBean [ _NUM ] ; } if ( additionalEvents == null ) { return new EventBean [ ] { firstEvent } ; } EventBean [ ] events = new EventBean [ _NUM + additionalEvents . size ( ) ] ; events [ _NUM ] = firstEvent ; int count = _NUM ; for ( EventBean t... | 107 |
java-test-5312 | java | What does this function calculate ? | the position for each legend | private void Legends ( List < String > legends list , List < Integer > color code list ) { text Paint . set Color ( Color . BLACK ) ; text Paint . set Text Size ( NUM ) ; int left = ( int ) ( graphwidth * NUM ) ; for ( int i = NUM ; i < legends list . size ( ) ; i ++ ) { String label = legends list . get ( i ) ; float ... | private void Legends ( List < String > legends_list , List < Integer > color_code_list ) { textPaint . setColor ( Color . BLACK ) ; textPaint . setTextSize ( _NUM ) ; int left = ( int ) ( graphwidth * _NUM ) ; for ( int i = _NUM ; i < legends_list . size ( ) ; i ++ ) { String label = legends_list . get ( i ) ; float te... | 185 |
java-test-5314 | java | What does the code make with a random direction ? | a new 3d unit vector | static public P Vector random 3 D ( P Vector target , P Applet parent ) { float angle ; float vz ; if ( parent == null ) { angle = ( float ) ( Math . random ( ) * Math . PI * NUM ) ; vz = ( float ) ( Math . random ( ) * NUM - NUM ) ; } else { angle = parent . random ( P Constants . TWO PI ) ; vz = parent . random ( - N... | static public PVector random3D ( PVector target , PApplet parent ) { float angle ; float vz ; if ( parent == null ) { angle = ( float ) ( Math . random ( ) * Math . PI * _NUM ) ; vz = ( float ) ( Math . random ( ) * _NUM - _NUM ) ; } else { angle = parent . random ( PConstants . TWO_PI ) ; vz = parent . random ( - _NUM... | 186 |
java-test-5321 | java | What does the code write into the application bundle ? | the pkginfo file | private void write Pkg Info ( ) throws Build Exception { File pkg Info = new File ( m Contents Dir , STRING ) ; Print Writer writer = null ; try { writer = new Print Writer ( new Buffered Writer ( new File Writer ( pkg Info ) ) ) ; writer . print ( bundle Properties . get CF Bundle Package Type ( ) ) ; writer . println... | private void writePkgInfo ( ) throws BuildException { File pkgInfo = new File ( mContentsDir , STRING ) ; PrintWriter writer = null ; try { writer = new PrintWriter ( new BufferedWriter ( new FileWriter ( pkgInfo ) ) ) ; writer . print ( bundleProperties . getCFBundlePackageType ( ) ) ; writer . println ( bundlePropert... | 122 |
java-test-5323 | java | Do a static utility method create an image from a document automatically ? | No | public static Buffered Image render To Image ( String url , int width , int height , int buffered Image Type ) { Graphics 2 D Renderer g2 r = new Graphics 2 D Renderer ( ) ; g2 r . set Document ( url ) ; Dimension dim = new Dimension ( width , height ) ; Buffered Image buff = new Buffered Image ( ( int ) dim . get Widt... | public static BufferedImage renderToImage ( String url , int width , int height , int bufferedImageType ) { Graphics2DRenderer g2r = new Graphics2DRenderer ( ) ; g2r . setDocument ( url ) ; Dimension dim = new Dimension ( width , height ) ; BufferedImage buff = new BufferedImage ( ( int ) dim . getWidth ( ) , ( int ) d... | 136 |
java-test-5324 | java | When must blob index to the bloballocator that then points to the blobheader if saving as ? | then addr | public long save ( ) { if ( m is Saved ) { throw new Illegal State Exception ( ERR ALREADY SAVED ) ; } if ( m store == null ) { return NUM ; } if ( m count == NUM ) { m is Saved = BOOL ; return NUM ; } int addr = ( int ) m store . alloc ( m buf , m count , m context ) ; if ( m blob Header != null ) { try { m writing Hd... | public long save ( ) { if ( m_isSaved ) { throw new IllegalStateException ( ERR_ALREADY_SAVED ) ; } if ( m_store == null ) { return _NUM ; } if ( m_count == _NUM ) { m_isSaved = _BOOL ; return _NUM ; } int addr = ( int ) m_store . alloc ( m_buf , m_count , m_context ) ; if ( m_blobHeader != null ) { try { m_writingHdr ... | 290 |
java-test-5327 | java | How does the code split the input string ? | based on the default delimiter | public List < String > split String With Default Delimiter ( String input String ) { List < String > split String = new Array List < > ( ) ; if ( input String != null ) { String Tokenizer string Tokenizer = new String Tokenizer ( input String , configuration Helper . get Property ( Configuration Value . FIELD DATA DELI... | public List < String > splitStringWithDefaultDelimiter ( String inputString ) { List < String > splitString = new ArrayList < > ( ) ; if ( inputString != null ) { StringTokenizer stringTokenizer = new StringTokenizer ( inputString , configurationHelper . getProperty ( ConfigurationValue . FIELD_DATA_DELIMITER ) ) ; whi... | 99 |
java-test-5329 | java | Do arguments have a common prefix ? | No | public static String find Common Prefix ( String ... strings ) { String Builder prefix = new String Builder ( ) ; int index = NUM ; char c = NUM ; loop : while ( BOOL ) { for ( int i = NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == NUM ) { c = ... | public static String findCommonPrefix ( String ... strings ) { StringBuilder prefix = new StringBuilder ( ) ; int index = _NUM ; char c = _NUM ; loop : while ( _BOOL ) { for ( int i = _NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == _NUM ) { c =... | 151 |
java-test-5330 | java | What do not have a common prefix ? | arguments | public static String find Common Prefix ( String ... strings ) { String Builder prefix = new String Builder ( ) ; int index = NUM ; char c = NUM ; loop : while ( BOOL ) { for ( int i = NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == NUM ) { c = ... | public static String findCommonPrefix ( String ... strings ) { StringBuilder prefix = new StringBuilder ( ) ; int index = _NUM ; char c = _NUM ; loop : while ( _BOOL ) { for ( int i = _NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == _NUM ) { c =... | 151 |
java-test-5331 | java | What do arguments not have ? | a common prefix | public static String find Common Prefix ( String ... strings ) { String Builder prefix = new String Builder ( ) ; int index = NUM ; char c = NUM ; loop : while ( BOOL ) { for ( int i = NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == NUM ) { c = ... | public static String findCommonPrefix ( String ... strings ) { StringBuilder prefix = new StringBuilder ( ) ; int index = _NUM ; char c = _NUM ; loop : while ( _BOOL ) { for ( int i = _NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == _NUM ) { c =... | 151 |
java-test-5336 | java | Do we delete the file for testing reasons immediately ? | No | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5337 | java | When do we not delete the file for testing reasons ? | immediately | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5338 | java | What do we mark ? | the file | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5339 | java | For what purpose do we not delete the file immediately ? | for testing reasons | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5340 | java | For what purpose did we upload mark file just just ? | for cleanup | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5341 | java | What do we not delete for testing reasons immediately ? | the file | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5342 | java | When did we upload mark file for cleanup ? | just | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5343 | java | When do we delete it if marking the file fails ? | right away | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5344 | java | How does the code inflate the current sam line ? | by replacing all & by the corresponding field in the previous sam line | public static int inflate ( byte [ ] previous , int previous Length , byte [ ] current , int current Length , byte [ ] result ) { if ( previous == null ) { System . arraycopy ( current , NUM , result , NUM , current Length ) ; return current Length ; } int length = NUM ; int start 1 = NUM ; int start 2 = NUM ; while ( ... | public static int inflate ( byte [ ] previous , int previousLength , byte [ ] current , int currentLength , byte [ ] result ) { if ( previous == null ) { System . arraycopy ( current , _NUM , result , _NUM , currentLength ) ; return currentLength ; } int length = _NUM ; int start1 = _NUM ; int start2 = _NUM ; while ( s... | 261 |
java-test-5345 | java | What does the code inflate by replacing all & by the corresponding field in the previous sam line ? | the current sam line | public static int inflate ( byte [ ] previous , int previous Length , byte [ ] current , int current Length , byte [ ] result ) { if ( previous == null ) { System . arraycopy ( current , NUM , result , NUM , current Length ) ; return current Length ; } int length = NUM ; int start 1 = NUM ; int start 2 = NUM ; while ( ... | public static int inflate ( byte [ ] previous , int previousLength , byte [ ] current , int currentLength , byte [ ] result ) { if ( previous == null ) { System . arraycopy ( current , _NUM , result , _NUM , currentLength ) ; return currentLength ; } int length = _NUM ; int start1 = _NUM ; int start2 = _NUM ; while ( s... | 261 |
java-test-5346 | java | When do unsupported attributes ignore ? | when directed | private byte [ ] decode ( Der Input Stream in ) throws IO Exception { Der Value val = in . get Der Value ( ) ; byte [ ] der Encoding = val . to Byte Array ( ) ; der Encoding [ NUM ] = Der Value . tag Set Of ; Der Input Stream der In = new Der Input Stream ( der Encoding ) ; Der Value [ ] der Vals = der In . get Set ( N... | private byte [ ] decode ( DerInputStream in ) throws IOException { DerValue val = in . getDerValue ( ) ; byte [ ] derEncoding = val . toByteArray ( ) ; derEncoding [ _NUM ] = DerValue . tag_SetOf ; DerInputStream derIn = new DerInputStream ( derEncoding ) ; DerValue [ ] derVals = derIn . getSet ( _NUM , _BOOL ) ; PKCS9... | 249 |
java-test-5347 | java | What does the code load ? | the projects of a database | public static List < I Navi Project > load Projects ( final Abstract SQL Provider provider , final Debugger Template Manager debugger Manager ) throws Couldnt Load Data Exception { Postgre SQL Database Functions . check Arguments ( provider , debugger Manager ) ; final C Connection connection = provider . get Connectio... | public static List < INaviProject > loadProjects ( final AbstractSQLProvider provider , final DebuggerTemplateManager debuggerManager ) throws CouldntLoadDataException { PostgreSQLDatabaseFunctions . checkArguments ( provider , debuggerManager ) ; final CConnection connection = provider . getConnection ( ) ; final List... | 350 |
java-test-5348 | java | Why will the set be converted to a list also ? | because of the use of a comparator | private List < Protection System > sort Protection Systems ( Set < Protection System > protection Systems ) { List < Protection System > protection Systems Lst = new Array List < Protection System > ( protection Systems ) ; if ( protection Systems . size ( ) > NUM ) { log . info ( STRING ) ; log . info ( STRING + prote... | private List < ProtectionSystem > sortProtectionSystems ( Set < ProtectionSystem > protectionSystems ) { List < ProtectionSystem > protectionSystemsLst = new ArrayList < ProtectionSystem > ( protectionSystems ) ; if ( protectionSystems . size ( ) > _NUM ) { _log . info ( STRING ) ; _log . info ( STRING + protectionSyst... | 122 |
java-test-5349 | java | How does the set of protectionsystem objects sort ? | by the cglastcreatedtime field | private List < Protection System > sort Protection Systems ( Set < Protection System > protection Systems ) { List < Protection System > protection Systems Lst = new Array List < Protection System > ( protection Systems ) ; if ( protection Systems . size ( ) > NUM ) { log . info ( STRING ) ; log . info ( STRING + prote... | private List < ProtectionSystem > sortProtectionSystems ( Set < ProtectionSystem > protectionSystems ) { List < ProtectionSystem > protectionSystemsLst = new ArrayList < ProtectionSystem > ( protectionSystems ) ; if ( protectionSystems . size ( ) > _NUM ) { _log . info ( STRING ) ; _log . info ( STRING + protectionSyst... | 122 |
java-test-5350 | java | What does the code create ? | the button pages for a category | public static Array List < Page > page Creator Buttons ( Array List < Page > pages , Item manual Type ) { Array List < Page > new Pages = new Array List < > ( ) ; int page Amount = pages . size ( ) ; int times = NUM ; while ( page Amount > NUM ) { Array List < Page > pages Temp = new Array List < > ( ) ; pages Temp . a... | public static ArrayList < Page > pageCreatorButtons ( ArrayList < Page > pages , Item manualType ) { ArrayList < Page > newPages = new ArrayList < > ( ) ; int pageAmount = pages . size ( ) ; int times = _NUM ; while ( pageAmount > _NUM ) { ArrayList < Page > pagesTemp = new ArrayList < > ( ) ; pagesTemp . addAll ( page... | 230 |
java-test-5351 | java | What do the string represent ? | a level | public static Level string To Level ( String level ) { Level result ; if ( level . equals Ignore Case ( STRING ) ) result = ALL ; else if ( level . equals Ignore Case ( STRING ) ) result = CONFIG ; else if ( level . equals Ignore Case ( STRING ) ) result = FINE ; else if ( level . equals Ignore Case ( STRING ) ) result... | public static Level stringToLevel ( String level ) { Level result ; if ( level . equalsIgnoreCase ( STRING ) ) result = ALL ; else if ( level . equalsIgnoreCase ( STRING ) ) result = CONFIG ; else if ( level . equalsIgnoreCase ( STRING ) ) result = FINE ; else if ( level . equalsIgnoreCase ( STRING ) ) result = FINER ;... | 166 |
java-test-5352 | java | What does the code turn into the corresponding level ( case - insensitive ) ? | the string representing a level , e . g . , | public static Level string To Level ( String level ) { Level result ; if ( level . equals Ignore Case ( STRING ) ) result = ALL ; else if ( level . equals Ignore Case ( STRING ) ) result = CONFIG ; else if ( level . equals Ignore Case ( STRING ) ) result = FINE ; else if ( level . equals Ignore Case ( STRING ) ) result... | public static Level stringToLevel ( String level ) { Level result ; if ( level . equalsIgnoreCase ( STRING ) ) result = ALL ; else if ( level . equalsIgnoreCase ( STRING ) ) result = CONFIG ; else if ( level . equalsIgnoreCase ( STRING ) ) result = FINE ; else if ( level . equalsIgnoreCase ( STRING ) ) result = FINER ;... | 166 |
java-test-5353 | java | What does the code create ? | a new exportmask for host for the given initiators | protected List < String > create New Export Mask Workflow For Initiators ( List < URI > initiator UR Is , Export Group export Group , Workflow workflow , Map < URI , Integer > volume Map , Storage System storage , String token , String previous Step ) throws Exception { List < String > new Steps = new Array List < > ( ... | protected List < String > createNewExportMaskWorkflowForInitiators ( List < URI > initiatorURIs , ExportGroup exportGroup , Workflow workflow , Map < URI , Integer > volumeMap , StorageSystem storage , String token , String previousStep ) throws Exception { List < String > newSteps = new ArrayList < > ( ) ; if ( ! init... | 270 |
java-test-5354 | java | Where does the code add a certain event handler ? | on event bus | @ Fluent public < T > Job on ( String event , Handler < Message < T > > handler ) { logger . debug ( STRING + Kue . get Certain Job Address ( event , this ) ) ; event Bus . consumer ( Kue . get Certain Job Address ( event , this ) , handler ) ; return this ; } | @ Fluent public < T > Job on ( String event , Handler < Message < T > > handler ) { logger . debug ( STRING + Kue . getCertainJobAddress ( event , this ) ) ; eventBus . consumer ( Kue . getCertainJobAddress ( event , this ) , handler ) ; return this ; } | 65 |
java-test-5355 | java | What does the code add on event bus ? | a certain event handler | @ Fluent public < T > Job on ( String event , Handler < Message < T > > handler ) { logger . debug ( STRING + Kue . get Certain Job Address ( event , this ) ) ; event Bus . consumer ( Kue . get Certain Job Address ( event , this ) , handler ) ; return this ; } | @ Fluent public < T > Job on ( String event , Handler < Message < T > > handler ) { logger . debug ( STRING + Kue . getCertainJobAddress ( event , this ) ) ; eventBus . consumer ( Kue . getCertainJobAddress ( event , this ) , handler ) ; return this ; } | 65 |
java-test-5356 | java | What does the code draw around the content area ? | the bottom edge of the border | protected void paint Content Border Bottom Edge ( Graphics g , int x , int y , int w , int h , boolean draw Broken , Rectangle sel Rect , boolean is Content Border Painted ) { if ( is Content Border Painted ) { g . set Color ( dark Shadow ) ; g . fill Rect ( x , y + h - NUM , w - NUM , NUM ) ; } } | protected void paintContentBorderBottomEdge ( Graphics g , int x , int y , int w , int h , boolean drawBroken , Rectangle selRect , boolean isContentBorderPainted ) { if ( isContentBorderPainted ) { g . setColor ( darkShadow ) ; g . fillRect ( x , y + h - _NUM , w - _NUM , _NUM ) ; } } | 77 |
java-test-5357 | java | What have returned in the same spots ? | infinities | protected static void assert Statistical Summary Equals ( Statistical Summary expected , Statistical Summary observed , double delta ) { Unit Test Utils . assert Equals ( expected . get Max ( ) , observed . get Max ( ) , NUM ) ; Unit Test Utils . assert Equals ( expected . get Min ( ) , observed . get Min ( ) , NUM ) ;... | protected static void assertStatisticalSummaryEquals ( StatisticalSummary expected , StatisticalSummary observed , double delta ) { UnitTestUtils . assertEquals ( expected . getMax ( ) , observed . getMax ( ) , _NUM ) ; UnitTestUtils . assertEquals ( expected . getMin ( ) , observed . getMin ( ) , _NUM ) ; Assert . ass... | 187 |
java-test-5358 | java | Where have infinities returned ? | in the same spots | protected static void assert Statistical Summary Equals ( Statistical Summary expected , Statistical Summary observed , double delta ) { Unit Test Utils . assert Equals ( expected . get Max ( ) , observed . get Max ( ) , NUM ) ; Unit Test Utils . assert Equals ( expected . get Min ( ) , observed . get Min ( ) , NUM ) ;... | protected static void assertStatisticalSummaryEquals ( StatisticalSummary expected , StatisticalSummary observed , double delta ) { UnitTestUtils . assertEquals ( expected . getMax ( ) , observed . getMax ( ) , _NUM ) ; UnitTestUtils . assertEquals ( expected . getMin ( ) , observed . getMin ( ) , _NUM ) ; Assert . ass... | 187 |
java-test-5360 | java | What does the code syllabify marking syllable boundaries with dash characters in the output ? | a phonetic string | public String syllabify ( String phone String ) { Linked List < String > phone List = split Into Allophones ( phone String ) ; syllabify ( phone List ) ; String Builder sb = new String Builder ( ) ; for ( String p : phone List ) { if ( sb . length ( ) > NUM ) sb . append ( STRING ) ; sb . append ( p ) ; } return sb . t... | public String syllabify ( String phoneString ) { LinkedList < String > phoneList = splitIntoAllophones ( phoneString ) ; syllabify ( phoneList ) ; StringBuilder sb = new StringBuilder ( ) ; for ( String p : phoneList ) { if ( sb . length ( ) > _NUM ) sb . append ( STRING ) ; sb . append ( p ) ; } return sb . toString (... | 84 |
java-test-5361 | java | When are single quotes inserted ? | at the beginning of the corresponding syllable | public String syllabify ( String phone String ) { Linked List < String > phone List = split Into Allophones ( phone String ) ; syllabify ( phone List ) ; String Builder sb = new String Builder ( ) ; for ( String p : phone List ) { if ( sb . length ( ) > NUM ) sb . append ( STRING ) ; sb . append ( p ) ; } return sb . t... | public String syllabify ( String phoneString ) { LinkedList < String > phoneList = splitIntoAllophones ( phoneString ) ; syllabify ( phoneList ) ; StringBuilder sb = new StringBuilder ( ) ; for ( String p : phoneList ) { if ( sb . length ( ) > _NUM ) sb . append ( STRING ) ; sb . append ( p ) ; } return sb . toString (... | 84 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.