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-10560 | java | How does the code create the consumer threads since the producer ' s job is small enough that having more threads than processors will not be problematic ( they are also not active at the same time at least half the time ) . also populates this classes copy of the neurons in the network ? | in a quantity equal to the number of available processors | private Concurrent Buffered Update ( final Network network ) { this . network = network ; current Available Processors = get Available Consumer Processors ( ) ; executors = Executors . new Fixed Thread Pool ( current Available Processors ) ; for ( Neuron n : network . get Flat Neuron List ( ) ) { neurons . add ( n ) ; ... | private ConcurrentBufferedUpdate ( final Network network ) { this . network = network ; currentAvailableProcessors = getAvailableConsumerProcessors ( ) ; executors = Executors . newFixedThreadPool ( currentAvailableProcessors ) ; for ( Neuron n : network . getFlatNeuronList ( ) ) { neurons . add ( n ) ; } for ( NeuronG... | 112 |
java-test-10561 | java | What does the code create since the producer ' s job is small enough that having more threads than processors will not be problematic ( they are also not active at the same time at least half the time ) . also populates this classes copy of the neurons in the network in a quantity equal to the number of available proce... | the consumer threads | private Concurrent Buffered Update ( final Network network ) { this . network = network ; current Available Processors = get Available Consumer Processors ( ) ; executors = Executors . new Fixed Thread Pool ( current Available Processors ) ; for ( Neuron n : network . get Flat Neuron List ( ) ) { neurons . add ( n ) ; ... | private ConcurrentBufferedUpdate ( final Network network ) { this . network = network ; currentAvailableProcessors = getAvailableConsumerProcessors ( ) ; executors = Executors . newFixedThreadPool ( currentAvailableProcessors ) ; for ( Neuron n : network . getFlatNeuronList ( ) ) { neurons . add ( n ) ; } for ( NeuronG... | 112 |
java-test-10562 | java | When are they not are active also ? | at the same time at least half the time | private Concurrent Buffered Update ( final Network network ) { this . network = network ; current Available Processors = get Available Consumer Processors ( ) ; executors = Executors . new Fixed Thread Pool ( current Available Processors ) ; for ( Neuron n : network . get Flat Neuron List ( ) ) { neurons . add ( n ) ; ... | private ConcurrentBufferedUpdate ( final Network network ) { this . network = network ; currentAvailableProcessors = getAvailableConsumerProcessors ( ) ; executors = Executors . newFixedThreadPool ( currentAvailableProcessors ) ; for ( Neuron n : network . getFlatNeuronList ( ) ) { neurons . add ( n ) ; } for ( NeuronG... | 112 |
java-test-10563 | java | What do strings represent ? | vertical bar . bar height | private List < String > prepare Y Column ( Double y Value , int y Max Lines , int y0 ) { Double y Pos Dot U = Math . abs ( y Value / this . score Per Dot ) ; if ( ( int ) Math . rint ( y Pos Dot U ) == NUM ) { Array List < String > str Depth = new Array List < String > ( ) ; for ( int j = NUM ; j < y Max Lines ; j ++ )... | private List < String > prepareYColumn ( Double yValue , int yMaxLines , int y0 ) { Double yPosDotU = Math . abs ( yValue / this . scorePerDot ) ; if ( ( int ) Math . rint ( yPosDotU ) == _NUM ) { ArrayList < String > strDepth = new ArrayList < String > ( ) ; for ( int j = _NUM ; j < yMaxLines ; j ++ ) { strDepth . add... | 251 |
java-test-10564 | java | What does the code prepare ? | a list of strings representing vertical bar | private List < String > prepare Y Column ( Double y Value , int y Max Lines , int y0 ) { Double y Pos Dot U = Math . abs ( y Value / this . score Per Dot ) ; if ( ( int ) Math . rint ( y Pos Dot U ) == NUM ) { Array List < String > str Depth = new Array List < String > ( ) ; for ( int j = NUM ; j < y Max Lines ; j ++ )... | private List < String > prepareYColumn ( Double yValue , int yMaxLines , int y0 ) { Double yPosDotU = Math . abs ( yValue / this . scorePerDot ) ; if ( ( int ) Math . rint ( yPosDotU ) == _NUM ) { ArrayList < String > strDepth = new ArrayList < String > ( ) ; for ( int j = _NUM ; j < yMaxLines ; j ++ ) { strDepth . add... | 251 |
java-test-10565 | java | For what purpose do bar height rescale ? | to fit a y span of ymaxlines of text | private List < String > prepare Y Column ( Double y Value , int y Max Lines , int y0 ) { Double y Pos Dot U = Math . abs ( y Value / this . score Per Dot ) ; if ( ( int ) Math . rint ( y Pos Dot U ) == NUM ) { Array List < String > str Depth = new Array List < String > ( ) ; for ( int j = NUM ; j < y Max Lines ; j ++ )... | private List < String > prepareYColumn ( Double yValue , int yMaxLines , int y0 ) { Double yPosDotU = Math . abs ( yValue / this . scorePerDot ) ; if ( ( int ) Math . rint ( yPosDotU ) == _NUM ) { ArrayList < String > strDepth = new ArrayList < String > ( ) ; for ( int j = _NUM ; j < yMaxLines ; j ++ ) { strDepth . add... | 251 |
java-test-10566 | java | What do it overwrite ? | with the signed jar | public static void sign ( File jsr File , Private Key private Key , X509 Certificate [ ] certificate Chain , Signature Type signature Type , String signature Name , String signer , Digest Type digest Type , String tsa Url , Provider provider ) throws IO Exception , Crypto Exception { File tmp File = File . create Temp ... | public static void sign ( File jsrFile , PrivateKey privateKey , X509Certificate [ ] certificateChain , SignatureType signatureType , String signatureName , String signer , DigestType digestType , String tsaUrl , Provider provider ) throws IOException , CryptoException { File tmpFile = File . createTempFile ( STRING , ... | 140 |
java-test-10567 | java | What did the code read ? | a bunch of bytes | protected void read Bytes ( final byte [ ] buffer , final int position ) throws Authentication Exception { if ( message Contents . length < position + buffer . length ) throw new Authentication Exception ( STRING ) ; System . arraycopy ( message Contents , position , buffer , NUM , buffer . length ) ; } | protected void readBytes ( final byte [ ] buffer , final int position ) throws AuthenticationException { if ( messageContents . length < position + buffer . length ) throw new AuthenticationException ( STRING ) ; System . arraycopy ( messageContents , position , buffer , _NUM , buffer . length ) ; } | 59 |
java-test-10570 | java | What does the code show ? | history dialog | private void show History Dialog ( ) { JB List commands List = new JB List ( History Utils . get Commands From History ( ) ) ; commands List . set Cell Renderer ( new History List Cell Renderer ( ) ) ; commands List . set Empty Text ( STRING ) ; commands List . set Selection Mode ( List Selection Model . SINGLE SELECTI... | private void showHistoryDialog ( ) { JBList commandsList = new JBList ( HistoryUtils . getCommandsFromHistory ( ) ) ; commandsList . setCellRenderer ( new HistoryListCellRenderer ( ) ) ; commandsList . setEmptyText ( STRING ) ; commandsList . setSelectionMode ( ListSelectionModel . SINGLE_SELECTION ) ; String [ ] butto... | 153 |
java-test-10571 | java | What splits into two separate methods for items and headers ? | oncreateviewholder method | @ Override public VH on Create View Holder ( View Group parent , int view Type ) { if ( view Type == TYPE ITEM ) { return on Create Item View Holder ( parent ) ; } else if ( view Type == TYPE HEADER ) { return on Create Header View Holder ( parent ) ; } throw new Runtime Exception ( STRING + view Type ) ; } | @ Override public VH onCreateViewHolder ( ViewGroup parent , int viewType ) { if ( viewType == TYPE_ITEM ) { return onCreateItemViewHolder ( parent ) ; } else if ( viewType == TYPE_HEADER ) { return onCreateHeaderViewHolder ( parent ) ; } throw new RuntimeException ( STRING + viewType ) ; } | 71 |
java-test-10572 | java | What does oncreateviewholder method split ? | into two separate methods for items and headers | @ Override public VH on Create View Holder ( View Group parent , int view Type ) { if ( view Type == TYPE ITEM ) { return on Create Item View Holder ( parent ) ; } else if ( view Type == TYPE HEADER ) { return on Create Header View Holder ( parent ) ; } throw new Runtime Exception ( STRING + view Type ) ; } | @ Override public VH onCreateViewHolder ( ViewGroup parent , int viewType ) { if ( viewType == TYPE_ITEM ) { return onCreateItemViewHolder ( parent ) ; } else if ( viewType == TYPE_HEADER ) { return onCreateHeaderViewHolder ( parent ) ; } throw new RuntimeException ( STRING + viewType ) ; } | 71 |
java-test-10573 | java | What does the second column display ? | the count / share values | public static void write Histogram ( T Double Double Hash Map distr , String filename ) throws File Not Found Exception , IO Exception { Buffered Writer a Writer = IO Utils . get Buffered Writer ( filename ) ; a Writer . write ( STRING ) ; a Writer . new Line ( ) ; double [ ] keys = distr . keys ( ) ; Arrays . sort ( k... | public static void writeHistogram ( TDoubleDoubleHashMap distr , String filename ) throws FileNotFoundException , IOException { BufferedWriter aWriter = IOUtils . getBufferedWriter ( filename ) ; aWriter . write ( STRING ) ; aWriter . newLine ( ) ; double [ ] keys = distr . keys ( ) ; Arrays . sort ( keys ) ; for ( dou... | 140 |
java-test-10574 | java | How does the code write a histogram ? | as a tab - separated file with two columns | public static void write Histogram ( T Double Double Hash Map distr , String filename ) throws File Not Found Exception , IO Exception { Buffered Writer a Writer = IO Utils . get Buffered Writer ( filename ) ; a Writer . write ( STRING ) ; a Writer . new Line ( ) ; double [ ] keys = distr . keys ( ) ; Arrays . sort ( k... | public static void writeHistogram ( TDoubleDoubleHashMap distr , String filename ) throws FileNotFoundException , IOException { BufferedWriter aWriter = IOUtils . getBufferedWriter ( filename ) ; aWriter . write ( STRING ) ; aWriter . newLine ( ) ; double [ ] keys = distr . keys ( ) ; Arrays . sort ( keys ) ; for ( dou... | 140 |
java-test-10575 | java | What does the first column indicate ? | the bin key ( e . g . upper bin border ) | public static void write Histogram ( T Double Double Hash Map distr , String filename ) throws File Not Found Exception , IO Exception { Buffered Writer a Writer = IO Utils . get Buffered Writer ( filename ) ; a Writer . write ( STRING ) ; a Writer . new Line ( ) ; double [ ] keys = distr . keys ( ) ; Arrays . sort ( k... | public static void writeHistogram ( TDoubleDoubleHashMap distr , String filename ) throws FileNotFoundException , IOException { BufferedWriter aWriter = IOUtils . getBufferedWriter ( filename ) ; aWriter . write ( STRING ) ; aWriter . newLine ( ) ; double [ ] keys = distr . keys ( ) ; Arrays . sort ( keys ) ; for ( dou... | 140 |
java-test-10576 | java | What displays the count / share values ? | the second column | public static void write Histogram ( T Double Double Hash Map distr , String filename ) throws File Not Found Exception , IO Exception { Buffered Writer a Writer = IO Utils . get Buffered Writer ( filename ) ; a Writer . write ( STRING ) ; a Writer . new Line ( ) ; double [ ] keys = distr . keys ( ) ; Arrays . sort ( k... | public static void writeHistogram ( TDoubleDoubleHashMap distr , String filename ) throws FileNotFoundException , IOException { BufferedWriter aWriter = IOUtils . getBufferedWriter ( filename ) ; aWriter . write ( STRING ) ; aWriter . newLine ( ) ; double [ ] keys = distr . keys ( ) ; Arrays . sort ( keys ) ; for ( dou... | 140 |
java-test-10577 | java | Where does the code create a file with the given contents ? | at the given path | public static I File create File ( I Path path , String contents ) throws Core Exception , Unsupported Encoding Exception { Byte Array Input Stream byte Array Input Stream = new Byte Array Input Stream ( contents . get Bytes ( STRING ) ) ; return create File ( path , byte Array Input Stream ) ; } | public static IFile createFile ( IPath path , String contents ) throws CoreException , UnsupportedEncodingException { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream ( contents . getBytes ( STRING ) ) ; return createFile ( path , byteArrayInputStream ) ; } | 59 |
java-test-10578 | java | How does the code create a file at the given path ? | with the given contents | public static I File create File ( I Path path , String contents ) throws Core Exception , Unsupported Encoding Exception { Byte Array Input Stream byte Array Input Stream = new Byte Array Input Stream ( contents . get Bytes ( STRING ) ) ; return create File ( path , byte Array Input Stream ) ; } | public static IFile createFile ( IPath path , String contents ) throws CoreException , UnsupportedEncodingException { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream ( contents . getBytes ( STRING ) ) ; return createFile ( path , byteArrayInputStream ) ; } | 59 |
java-test-10580 | java | What is holding all the locations ? | the quadtree | protected Quad Tree < Location > create Data ( ) { Quad Tree < Location > qt = new Quad Tree < Location > ( NUM , - NUM , - NUM , NUM , NUM , NUM ) ; if ( ! check Index Settings ( ) ) { return null ; } int line Count = NUM ; Object token = null ; boolean read Header = ! csv Has Header ; try { URL csv URL = Prop Utils .... | protected QuadTree < Location > createData ( ) { QuadTree < Location > qt = new QuadTree < Location > ( _NUM , - _NUM , - _NUM , _NUM , _NUM , _NUM ) ; if ( ! checkIndexSettings ( ) ) { return null ; } int lineCount = _NUM ; Object token = null ; boolean readHeader = ! csvHasHeader ; try { URL csvURL = PropUtils . getR... | 607 |
java-test-10581 | java | What do the quadtree hold ? | all the locations | protected Quad Tree < Location > create Data ( ) { Quad Tree < Location > qt = new Quad Tree < Location > ( NUM , - NUM , - NUM , NUM , NUM , NUM ) ; if ( ! check Index Settings ( ) ) { return null ; } int line Count = NUM ; Object token = null ; boolean read Header = ! csv Has Header ; try { URL csv URL = Prop Utils .... | protected QuadTree < Location > createData ( ) { QuadTree < Location > qt = new QuadTree < Location > ( _NUM , - _NUM , - _NUM , _NUM , _NUM , _NUM ) ; if ( ! checkIndexSettings ( ) ) { return null ; } int lineCount = _NUM ; Object token = null ; boolean readHeader = ! csvHasHeader ; try { URL csvURL = PropUtils . getR... | 607 |
java-test-10582 | java | When did mutiple oocurrences of one level wildcard reduce to just one ? | immediately following a previous one | private String aggregate Wildcard ( String target Token ) { int len = NUM ; if ( target Token == null || ( len = target Token . length ( ) ) == NUM ) { return target Token ; } char [ ] oldchars = target Token . to Char Array ( ) ; char [ ] newchars = new char [ len ] ; int i = NUM ; int j = NUM ; int k = NUM ; boolean ... | private String aggregateWildcard ( String targetToken ) { int len = _NUM ; if ( targetToken == null || ( len = targetToken . length ( ) ) == _NUM ) { return targetToken ; } char [ ] oldchars = targetToken . toCharArray ( ) ; char [ ] newchars = new char [ len ] ; int i = _NUM ; int j = _NUM ; int k = _NUM ; boolean fou... | 200 |
java-test-10583 | java | What is this method used ? | to reduce mutiple oocurrences of one level wildcard immediately following a previous one to just one . so " a [ * ] [ * ] [ * ] b " where one level wild pattern is " [ * ] " reduces to " a [ * ] b " | private String aggregate Wildcard ( String target Token ) { int len = NUM ; if ( target Token == null || ( len = target Token . length ( ) ) == NUM ) { return target Token ; } char [ ] oldchars = target Token . to Char Array ( ) ; char [ ] newchars = new char [ len ] ; int i = NUM ; int j = NUM ; int k = NUM ; boolean ... | private String aggregateWildcard ( String targetToken ) { int len = _NUM ; if ( targetToken == null || ( len = targetToken . length ( ) ) == _NUM ) { return targetToken ; } char [ ] oldchars = targetToken . toCharArray ( ) ; char [ ] newchars = new char [ len ] ; int i = _NUM ; int j = _NUM ; int k = _NUM ; boolean fou... | 200 |
java-test-10584 | java | How do a biginteger convert to a byte array ? | in unsigned format | static byte [ ] to Byte Array ( Big Integer bi ) { byte [ ] b = bi . to Byte Array ( ) ; if ( ( b . length > NUM ) && ( b [ NUM ] == NUM ) ) { int n = b . length - NUM ; byte [ ] newarray = new byte [ n ] ; System . arraycopy ( b , NUM , newarray , NUM , n ) ; b = newarray ; } return b ; } | static byte [ ] toByteArray ( BigInteger bi ) { byte [ ] b = bi . toByteArray ( ) ; if ( ( b . length > _NUM ) && ( b [ _NUM ] == _NUM ) ) { int n = b . length - _NUM ; byte [ ] newarray = new byte [ n ] ; System . arraycopy ( b , _NUM , newarray , _NUM , n ) ; b = newarray ; } return b ; } | 90 |
java-test-10585 | java | What does it prepend if the msb is set ? | an extra zero | static byte [ ] to Byte Array ( Big Integer bi ) { byte [ ] b = bi . to Byte Array ( ) ; if ( ( b . length > NUM ) && ( b [ NUM ] == NUM ) ) { int n = b . length - NUM ; byte [ ] newarray = new byte [ n ] ; System . arraycopy ( b , NUM , newarray , NUM , n ) ; b = newarray ; } return b ; } | static byte [ ] toByteArray ( BigInteger bi ) { byte [ ] b = bi . toByteArray ( ) ; if ( ( b . length > _NUM ) && ( b [ _NUM ] == _NUM ) ) { int n = b . length - _NUM ; byte [ ] newarray = new byte [ n ] ; System . arraycopy ( b , _NUM , newarray , _NUM , n ) ; b = newarray ; } return b ; } | 90 |
java-test-10586 | java | What does biginteger use ? | 2 ' s complement format | static byte [ ] to Byte Array ( Big Integer bi ) { byte [ ] b = bi . to Byte Array ( ) ; if ( ( b . length > NUM ) && ( b [ NUM ] == NUM ) ) { int n = b . length - NUM ; byte [ ] newarray = new byte [ n ] ; System . arraycopy ( b , NUM , newarray , NUM , n ) ; b = newarray ; } return b ; } | static byte [ ] toByteArray ( BigInteger bi ) { byte [ ] b = bi . toByteArray ( ) ; if ( ( b . length > _NUM ) && ( b [ _NUM ] == _NUM ) ) { int n = b . length - _NUM ; byte [ ] newarray = new byte [ n ] ; System . arraycopy ( b , _NUM , newarray , _NUM , n ) ; b = newarray ; } return b ; } | 90 |
java-test-10587 | java | What does it use if it is not null ? | loc the location | private void add Left Paren V ( AST ast , P Cal Location loc ) { if ( ast . get Origin ( ) == null ) { return ; } if ( loc != null ) { mapping Vector Next Line . add Element ( new Mapping Object . Left Paren ( loc ) ) ; } else { add Left Paren ( ast . get Origin ( ) ) ; } } | private void addLeftParenV ( AST ast , PCalLocation loc ) { if ( ast . getOrigin ( ) == null ) { return ; } if ( loc != null ) { mappingVectorNextLine . addElement ( new MappingObject . LeftParen ( loc ) ) ; } else { addLeftParen ( ast . getOrigin ( ) ) ; } } | 74 |
java-test-10588 | java | What do have different values ? | the elements of the list of parameter values | @ Override public void test ( List < T > list ) throws Parameter Exception { Set < T > values = new Hash Set < > ( ) ; for ( T pv : list ) { if ( ! values . add ( pv ) ) { Object [ ] parametervaluesarr = list . to Array ( ) ; throw new Wrong Parameter Value Exception ( STRING + STRING + Arrays . deep To String ( parame... | @ Override public void test ( List < T > list ) throws ParameterException { Set < T > values = new HashSet < > ( ) ; for ( T pv : list ) { if ( ! values . add ( pv ) ) { Object [ ] parametervaluesarr = list . toArray ( ) ; throw new WrongParameterValueException ( STRING + STRING + Arrays . deepToString ( parametervalue... | 87 |
java-test-10592 | java | What parses the title in the format title year or title ( year ) ? | 1 = date | public static String [ ] parse Title ( String title ) { String v [ ] = { STRING , STRING } ; if ( title == null ) return v ; Pattern p = Pattern . compile ( STRING , Pattern . CASE INSENSITIVE ) ; Matcher m = p . matcher ( title ) ; if ( m . find ( ) ) { v [ NUM ] = m . group ( NUM ) ; v [ NUM ] = m . group ( NUM ) ; }... | public static String [ ] parseTitle ( String title ) { String v [ ] = { STRING , STRING } ; if ( title == null ) return v ; Pattern p = Pattern . compile ( STRING , Pattern . CASE_INSENSITIVE ) ; Matcher m = p . matcher ( title ) ; if ( m . find ( ) ) { v [ _NUM ] = m . group ( _NUM ) ; v [ _NUM ] = m . group ( _NUM ) ... | 105 |
java-test-10593 | java | Where do 1 = date parse the title ? | in the format title year or title ( year ) | public static String [ ] parse Title ( String title ) { String v [ ] = { STRING , STRING } ; if ( title == null ) return v ; Pattern p = Pattern . compile ( STRING , Pattern . CASE INSENSITIVE ) ; Matcher m = p . matcher ( title ) ; if ( m . find ( ) ) { v [ NUM ] = m . group ( NUM ) ; v [ NUM ] = m . group ( NUM ) ; }... | public static String [ ] parseTitle ( String title ) { String v [ ] = { STRING , STRING } ; if ( title == null ) return v ; Pattern p = Pattern . compile ( STRING , Pattern . CASE_INSENSITIVE ) ; Matcher m = p . matcher ( title ) ; if ( m . find ( ) ) { v [ _NUM ] = m . group ( _NUM ) ; v [ _NUM ] = m . group ( _NUM ) ... | 105 |
java-test-10605 | java | When will stream be cached ? | after it is read | public Input Stream put ( final URL Connection connection , final boolean flush Cache On Close ) { final String key = get Key ( connection ) ; if ( key == null ) return null ; if ( ! is Cacheable ( ( Http URL Connection ) connection ) ) try { cache . remove ( key ) ; return null ; } catch ( IO Exception e ) { return nu... | public InputStream put ( final URLConnection connection , final boolean flushCacheOnClose ) { final String key = getKey ( connection ) ; if ( key == null ) return null ; if ( ! isCacheable ( ( HttpURLConnection ) connection ) ) try { cache . remove ( key ) ; return null ; } catch ( IOException e ) { return null ; } Str... | 305 |
java-test-10606 | java | What does internal method provide ? | a common search - match - return capability | private List < Roster Entry > find Matching Entries ( Roster Comparator c ) { List < Roster Entry > l = new Array List < > ( ) ; for ( Roster Entry r : list ) { if ( c . check ( r ) ) { l . add ( r ) ; } } return l ; } | private List < RosterEntry > findMatchingEntries ( RosterComparator c ) { List < RosterEntry > l = new ArrayList < > ( ) ; for ( RosterEntry r : _list ) { if ( c . check ( r ) ) { l . add ( r ) ; } } return l ; } | 62 |
java-test-10607 | java | What does internal method work ? | to provide a common search - match - return capability | private List < Roster Entry > find Matching Entries ( Roster Comparator c ) { List < Roster Entry > l = new Array List < > ( ) ; for ( Roster Entry r : list ) { if ( c . check ( r ) ) { l . add ( r ) ; } } return l ; } | private List < RosterEntry > findMatchingEntries ( RosterComparator c ) { List < RosterEntry > l = new ArrayList < > ( ) ; for ( RosterEntry r : _list ) { if ( c . check ( r ) ) { l . add ( r ) ; } } return l ; } | 62 |
java-test-10609 | java | What does the code extract from subband ? | the watermark data | private Object [ ] inv Wm Sub Band ( Image img , double [ ] wm , int n , double threshold ) { int m = NUM ; double z = NUM ; double v = NUM ; for ( int i = NUM ; i < img . get Width ( ) * img . get Height ( ) ; i ++ ) { if ( img . get Data ( ) [ i ] > threshold ) { z += ( img . get Data ( ) [ i ] * wm [ i % n ] ) ; v +... | private Object [ ] invWmSubBand ( Image img , double [ ] wm , int n , double threshold ) { int m = _NUM ; double z = _NUM ; double v = _NUM ; for ( int i = _NUM ; i < img . getWidth ( ) * img . getHeight ( ) ; i ++ ) { if ( img . getData ( ) [ i ] > threshold ) { z += ( img . getData ( ) [ i ] * wm [ i % n ] ) ; v += M... | 138 |
java-test-10611 | java | How did the object pass ? | with the priority value | public synchronized void insert ( double priority , Object data ) { num Elements ++ ; if ( num Elements == queue . length ) { Priority Queue Node [ ] tmp = new Priority Queue Node [ ( int ) ( queue . length * NUM ) ] ; System . arraycopy ( queue , NUM , tmp , NUM , queue . length ) ; for ( int i = queue . length ; i < ... | public synchronized void insert ( double _priority , Object _data ) { numElements ++ ; if ( numElements == queue . length ) { PriorityQueueNode [ ] tmp = new PriorityQueueNode [ ( int ) ( queue . length * _NUM ) ] ; System . arraycopy ( queue , _NUM , tmp , _NUM , queue . length ) ; for ( int i = queue . length ; i < t... | 131 |
java-test-10614 | java | What does the code create ? | a new instance of an obfuscating secretkey wrapper | @ Suppress Lint ( STRING ) public Obfuscating Secret Key Wrapper ( Context context , int salt Index , Salt Generator salt Generator , String preshared Secret ) throws No Such Padding Exception , No Such Algorithm Exception { m Context = context . get Application Context ( ) ; m Salt Index = salt Index ; m Salt Generato... | @ SuppressLint ( STRING ) public ObfuscatingSecretKeyWrapper ( Context context , int saltIndex , SaltGenerator saltGenerator , String presharedSecret ) throws NoSuchPaddingException , NoSuchAlgorithmException { mContext = context . getApplicationContext ( ) ; mSaltIndex = saltIndex ; mSaltGenerator = saltGenerator ; mP... | 85 |
java-test-10617 | java | What does the code get ? | the combined html contents of each element in the set of matched elements , including their descendants | public String html All ( boolean set Included ) { String Builder sb = new String Builder ( ) ; for ( Node node : nodes ) { sb . append ( set Included ? node . get Html ( ) : node . get Inner Html ( ) ) ; } return sb . to String ( ) ; } | public String htmlAll ( boolean setIncluded ) { StringBuilder sb = new StringBuilder ( ) ; for ( Node node : nodes ) { sb . append ( setIncluded ? node . getHtml ( ) : node . getInnerHtml ( ) ) ; } return sb . toString ( ) ; } | 61 |
java-test-10619 | java | For what purpose does every splitlen characters space ? | so that the string will wrap | public static String insert Breaking Whitespace ( int line Len , String original ) { if ( original == null || line Len <= NUM ) throw new Illegal Argument Exception ( ) ; int length = original . length ( ) ; if ( length <= line Len ) return original ; int curr Pos = NUM ; String Builder retval = new String Builder ( ) ... | public static String insertBreakingWhitespace ( int lineLen , String original ) { if ( original == null || lineLen <= _NUM ) throw new IllegalArgumentException ( ) ; int length = original . length ( ) ; if ( length <= lineLen ) return original ; int currPos = _NUM ; StringBuilder retval = new StringBuilder ( ) ; while ... | 137 |
java-test-10621 | java | What do the given command wrap with chown ? | into a command | protected String wrap Linux Command ( String command ) throws IO Exception , Interrupted Exception { String set Group = STRING + get Gid ( ) + STRING + get Gid ( ) + STRING + get Gid ( ) + STRING ; String set User = STRING + get Uid ( ) + STRING + get Uid ( ) + STRING + get Gid ( ) + STRING ; String chown Command = STR... | protected String wrapLinuxCommand ( String command ) throws IOException , InterruptedException { String setGroup = STRING + getGid ( ) + STRING + getGid ( ) + STRING + getGid ( ) + STRING ; String setUser = STRING + getUid ( ) + STRING + getUid ( ) + STRING + getGid ( ) + STRING ; String chownCommand = STRING ; return ... | 100 |
java-test-10622 | java | How do the given command wrap into a command ? | with chown | protected String wrap Linux Command ( String command ) throws IO Exception , Interrupted Exception { String set Group = STRING + get Gid ( ) + STRING + get Gid ( ) + STRING + get Gid ( ) + STRING ; String set User = STRING + get Uid ( ) + STRING + get Uid ( ) + STRING + get Gid ( ) + STRING ; String chown Command = STR... | protected String wrapLinuxCommand ( String command ) throws IOException , InterruptedException { String setGroup = STRING + getGid ( ) + STRING + getGid ( ) + STRING + getGid ( ) + STRING ; String setUser = STRING + getUid ( ) + STRING + getUid ( ) + STRING + getGid ( ) + STRING ; String chownCommand = STRING ; return ... | 100 |
java-test-10624 | java | What will it build if its not there ? | a parser to parse the statement and then put it in the cache | public Abstract DML Query parse Sql Query ( SQL Query sql Query , I Space Proxy space ) throws SQL Exception { Abstract DML Query query = ( Abstract DML Query ) get Query From Cache ( get Unique Key ( sql Query ) ) ; try { if ( query == null ) { if ( logger . is Loggable ( Level . FINE ) ) { logger . fine ( STRING ) ; ... | public AbstractDMLQuery parseSqlQuery ( SQLQuery sqlQuery , ISpaceProxy space ) throws SQLException { AbstractDMLQuery query = ( AbstractDMLQuery ) getQueryFromCache ( getUniqueKey ( sqlQuery ) ) ; try { if ( query == null ) { if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( STRING ) ; } SqlParser parser... | 328 |
java-test-10625 | java | What will it try first ? | to retrieve the query from the cache | public Abstract DML Query parse Sql Query ( SQL Query sql Query , I Space Proxy space ) throws SQL Exception { Abstract DML Query query = ( Abstract DML Query ) get Query From Cache ( get Unique Key ( sql Query ) ) ; try { if ( query == null ) { if ( logger . is Loggable ( Level . FINE ) ) { logger . fine ( STRING ) ; ... | public AbstractDMLQuery parseSqlQuery ( SQLQuery sqlQuery , ISpaceProxy space ) throws SQLException { AbstractDMLQuery query = ( AbstractDMLQuery ) getQueryFromCache ( getUniqueKey ( sqlQuery ) ) ; try { if ( query == null ) { if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( STRING ) ; } SqlParser parser... | 328 |
java-test-10626 | java | What does each level contain ? | the indices of the nodes present in that level | private int index Of Element In Level ( int element , int level [ ] ) throws Exception { for ( int i = NUM ; i < level . length ; i ++ ) { if ( level [ i ] == element ) { return i ; } } throw new Exception ( STRING + m nodes . get ( element ) . ID + STRING + STRING ) ; } | private int indexOfElementInLevel ( int element , int level [ ] ) throws Exception { for ( int i = _NUM ; i < level . length ; i ++ ) { if ( level [ i ] == element ) { return i ; } } throw new Exception ( STRING + m_nodes . get ( element ) . ID + STRING + STRING ) ; } | 73 |
java-test-10627 | java | What contains the indices of the nodes present in that level ? | each level | private int index Of Element In Level ( int element , int level [ ] ) throws Exception { for ( int i = NUM ; i < level . length ; i ++ ) { if ( level [ i ] == element ) { return i ; } } throw new Exception ( STRING + m nodes . get ( element ) . ID + STRING + STRING ) ; } | private int indexOfElementInLevel ( int element , int level [ ] ) throws Exception { for ( int i = _NUM ; i < level . length ; i ++ ) { if ( level [ i ] == element ) { return i ; } } throw new Exception ( STRING + m_nodes . get ( element ) . ID + STRING + STRING ) ; } | 73 |
java-test-10628 | java | What is it be supposed ? | to be in | private int index Of Element In Level ( int element , int level [ ] ) throws Exception { for ( int i = NUM ; i < level . length ; i ++ ) { if ( level [ i ] == element ) { return i ; } } throw new Exception ( STRING + m nodes . get ( element ) . ID + STRING + STRING ) ; } | private int indexOfElementInLevel ( int element , int level [ ] ) throws Exception { for ( int i = _NUM ; i < level . length ; i ++ ) { if ( level [ i ] == element ) { return i ; } } throw new Exception ( STRING + m_nodes . get ( element ) . ID + STRING + STRING ) ; } | 73 |
java-test-10629 | java | What affect the operation of the component ? | any features and properties | @ Override public void reset ( XML Component Manager component Manager ) throws XML Configuration Exception { boolean parser settings ; try { parser settings = component Manager . get Feature ( PARSER SETTINGS ) ; } catch ( XML Configuration Exception e ) { parser settings = BOOL ; } if ( ! parser settings ) { reset ( ... | @ Override public void reset ( XMLComponentManager componentManager ) throws XMLConfigurationException { boolean parser_settings ; try { parser_settings = componentManager . getFeature ( PARSER_SETTINGS ) ; } catch ( XMLConfigurationException e ) { parser_settings = _BOOL ; } if ( ! parser_settings ) { reset ( ) ; retu... | 421 |
java-test-10630 | java | What do any features and properties affect ? | the operation of the component | @ Override public void reset ( XML Component Manager component Manager ) throws XML Configuration Exception { boolean parser settings ; try { parser settings = component Manager . get Feature ( PARSER SETTINGS ) ; } catch ( XML Configuration Exception e ) { parser settings = BOOL ; } if ( ! parser settings ) { reset ( ... | @ Override public void reset ( XMLComponentManager componentManager ) throws XMLConfigurationException { boolean parser_settings ; try { parser_settings = componentManager . getFeature ( PARSER_SETTINGS ) ; } catch ( XMLConfigurationException e ) { parser_settings = _BOOL ; } if ( ! parser_settings ) { reset ( ) ; retu... | 421 |
java-test-10631 | java | What does the code make ? | one pass of the idle object evictor | public void evict ( ) throws Exception { assert Open ( ) ; boolean is Empty ; synchronized ( this ) { is Empty = pool . is Empty ( ) ; } if ( ! is Empty ) { if ( soft Min Evictable Idle Time Millis > NUM ) { int num To Evict = get Num Idle ( ) - get Min Idle ( ) ; evict ( System . current Time Millis ( ) - soft Min Evi... | public void evict ( ) throws Exception { assertOpen ( ) ; boolean isEmpty ; synchronized ( this ) { isEmpty = pool . isEmpty ( ) ; } if ( ! isEmpty ) { if ( softMinEvictableIdleTimeMillis > _NUM ) { int numToEvict = getNumIdle ( ) - getMinIdle ( ) ; evict ( System . currentTimeMillis ( ) - softMinEvictableIdleTimeMilli... | 138 |
java-test-10639 | java | What does the code decrypt ? | the given data with asymmetric key | public static String decrypt With Asymmetric Key ( String data , String enc Algorithm , Key enc Key ) throws Exception { try { byte [ ] tmp = Base 64 . decode ( data ) ; Map map = unwrap Key With Encoded Data ( tmp ) ; byte [ ] enc Data = ( byte [ ] ) map . get ( ENCRYPTED DATA ) ; byte [ ] key Data = ( byte [ ] ) map ... | public static String decryptWithAsymmetricKey ( String data , String encAlgorithm , Key encKey ) throws Exception { try { byte [ ] tmp = Base64 . decode ( data ) ; Map map = unwrapKeyWithEncodedData ( tmp ) ; byte [ ] encData = ( byte [ ] ) map . get ( ENCRYPTED_DATA ) ; byte [ ] keyData = ( byte [ ] ) map . get ( ENCR... | 231 |
java-test-10640 | java | What do string representation convert ? | to locale object | private Locale to Locale ( String str ) { if ( str == null ) return null ; String [ ] split = str . split ( STRING ) ; if ( split . length == NUM ) return new Locale ( STRING ) ; else if ( split . length == NUM ) return new Locale ( split [ NUM ] ) ; else if ( split . length == NUM ) return new Locale ( split [ NUM ] ,... | private Locale toLocale ( String str ) { if ( str == null ) return null ; String [ ] split = str . split ( STRING ) ; if ( split . length == _NUM ) return new Locale ( STRING ) ; else if ( split . length == _NUM ) return new Locale ( split [ _NUM ] ) ; else if ( split . length == _NUM ) return new Locale ( split [ _NUM... | 110 |
java-test-10641 | java | What converts to locale object ? | string representation | private Locale to Locale ( String str ) { if ( str == null ) return null ; String [ ] split = str . split ( STRING ) ; if ( split . length == NUM ) return new Locale ( STRING ) ; else if ( split . length == NUM ) return new Locale ( split [ NUM ] ) ; else if ( split . length == NUM ) return new Locale ( split [ NUM ] ,... | private Locale toLocale ( String str ) { if ( str == null ) return null ; String [ ] split = str . split ( STRING ) ; if ( split . length == _NUM ) return new Locale ( STRING ) ; else if ( split . length == _NUM ) return new Locale ( split [ _NUM ] ) ; else if ( split . length == _NUM ) return new Locale ( split [ _NUM... | 110 |
java-test-10642 | java | What does the code get as a string ? | the contents of the stream | public static String stream To String ( final Input Stream stream ) throws IO Exception { if ( stream == null ) { throw new Null Pointer Exception ( STRING ) ; } final String Builder out = new String Builder ( ) ; final byte [ ] b = File Utils . make Byte Buffer ( ) ; int len = stream . read ( b ) ; final int eof = - N... | public static String streamToString ( final InputStream stream ) throws IOException { if ( stream == null ) { throw new NullPointerException ( STRING ) ; } final StringBuilder out = new StringBuilder ( ) ; final byte [ ] b = FileUtils . makeByteBuffer ( ) ; int len = stream . read ( b ) ; final int eof = - _NUM ; while... | 131 |
java-test-10643 | java | What does the code add ? | no - op console handler for root java logger | public static Collection < Handler > add Java No Op Logger ( ) { Collection < Handler > saved Hnds = new Array List < > ( ) ; Logger log = Logger . get Logger ( STRING ) ; for ( Handler h : log . get Handlers ( ) ) { log . remove Handler ( h ) ; saved Hnds . add ( h ) ; } Console Handler hnd = new Console Handler ( ) ;... | public static Collection < Handler > addJavaNoOpLogger ( ) { Collection < Handler > savedHnds = new ArrayList < > ( ) ; Logger log = Logger . getLogger ( STRING ) ; for ( Handler h : log . getHandlers ( ) ) { log . removeHandler ( h ) ; savedHnds . add ( h ) ; } ConsoleHandler hnd = new ConsoleHandler ( ) ; hnd . setLe... | 103 |
java-test-10644 | java | What does the code generate ? | a properly - escaped ldap query which finds all objects having at least one username attribute set to the specified username , where the possible username attributes are defined within guacamole . properties | private String generate LDAP Query ( String username ) throws Guacamole Exception { List < String > username Attributes = conf Service . get Username Attributes ( ) ; String Builder ldap Query = new String Builder ( STRING ) ; if ( username Attributes . size ( ) > NUM ) ldap Query . append ( STRING ) ; for ( String use... | private String generateLDAPQuery ( String username ) throws GuacamoleException { List < String > usernameAttributes = confService . getUsernameAttributes ( ) ; StringBuilder ldapQuery = new StringBuilder ( STRING ) ; if ( usernameAttributes . size ( ) > _NUM ) ldapQuery . append ( STRING ) ; for ( String usernameAttrib... | 167 |
java-test-10645 | java | What does all objects have ? | at least one username attribute set to the specified username , where the possible username attributes are defined within guacamole | private String generate LDAP Query ( String username ) throws Guacamole Exception { List < String > username Attributes = conf Service . get Username Attributes ( ) ; String Builder ldap Query = new String Builder ( STRING ) ; if ( username Attributes . size ( ) > NUM ) ldap Query . append ( STRING ) ; for ( String use... | private String generateLDAPQuery ( String username ) throws GuacamoleException { List < String > usernameAttributes = confService . getUsernameAttributes ( ) ; StringBuilder ldapQuery = new StringBuilder ( STRING ) ; if ( usernameAttributes . size ( ) > _NUM ) ldapQuery . append ( STRING ) ; for ( String usernameAttrib... | 167 |
java-test-10646 | java | Where are the possible username attributes defined ? | the specified username | private String generate LDAP Query ( String username ) throws Guacamole Exception { List < String > username Attributes = conf Service . get Username Attributes ( ) ; String Builder ldap Query = new String Builder ( STRING ) ; if ( username Attributes . size ( ) > NUM ) ldap Query . append ( STRING ) ; for ( String use... | private String generateLDAPQuery ( String username ) throws GuacamoleException { List < String > usernameAttributes = confService . getUsernameAttributes ( ) ; StringBuilder ldapQuery = new StringBuilder ( STRING ) ; if ( usernameAttributes . size ( ) > _NUM ) ldapQuery . append ( STRING ) ; for ( String usernameAttrib... | 167 |
java-test-10647 | java | What are defined the specified username ? | the possible username attributes | private String generate LDAP Query ( String username ) throws Guacamole Exception { List < String > username Attributes = conf Service . get Username Attributes ( ) ; String Builder ldap Query = new String Builder ( STRING ) ; if ( username Attributes . size ( ) > NUM ) ldap Query . append ( STRING ) ; for ( String use... | private String generateLDAPQuery ( String username ) throws GuacamoleException { List < String > usernameAttributes = confService . getUsernameAttributes ( ) ; StringBuilder ldapQuery = new StringBuilder ( STRING ) ; if ( usernameAttributes . size ( ) > _NUM ) ldapQuery . append ( STRING ) ; for ( String usernameAttrib... | 167 |
java-test-10648 | java | What does the code create given container ? | a new check box menu item | private J Check Box Menu Item create Check Item ( Container c , String txt , boolean selected , String setting ) { Settings s = new Settings ( gui . Main Window . GUI NS ) ; J Check Box Menu Item i = new J Check Box Menu Item ( txt ) ; if ( setting == null ) { i . set Selected ( selected ) ; } else { i . set Selected (... | private JCheckBoxMenuItem createCheckItem ( Container c , String txt , boolean selected , String setting ) { Settings s = new Settings ( gui . MainWindow . GUI_NS ) ; JCheckBoxMenuItem i = new JCheckBoxMenuItem ( txt ) ; if ( setting == null ) { i . setSelected ( selected ) ; } else { i . setSelected ( s . getBoolean (... | 110 |
java-test-10649 | java | By how much does the code create a new check box menu item ? | given container | private J Check Box Menu Item create Check Item ( Container c , String txt , boolean selected , String setting ) { Settings s = new Settings ( gui . Main Window . GUI NS ) ; J Check Box Menu Item i = new J Check Box Menu Item ( txt ) ; if ( setting == null ) { i . set Selected ( selected ) ; } else { i . set Selected (... | private JCheckBoxMenuItem createCheckItem ( Container c , String txt , boolean selected , String setting ) { Settings s = new Settings ( gui . MainWindow . GUI_NS ) ; JCheckBoxMenuItem i = new JCheckBoxMenuItem ( txt ) ; if ( setting == null ) { i . setSelected ( selected ) ; } else { i . setSelected ( s . getBoolean (... | 110 |
java-test-10650 | java | What handles the query result ? | internal conversion function | private Set < T > convert Results ( Collection < Token > tokens ) { Set < T > results = new Hash Set < T > ( ) ; for ( Token token : tokens ) { results . add ( adapter . from Token ( token ) ) ; } return results ; } | private Set < T > convertResults ( Collection < Token > tokens ) { Set < T > results = new HashSet < T > ( ) ; for ( Token token : tokens ) { results . add ( adapter . fromToken ( token ) ) ; } return results ; } | 56 |
java-test-10651 | java | What do internal conversion function handle ? | the query result | private Set < T > convert Results ( Collection < Token > tokens ) { Set < T > results = new Hash Set < T > ( ) ; for ( Token token : tokens ) { results . add ( adapter . from Token ( token ) ) ; } return results ; } | private Set < T > convertResults ( Collection < Token > tokens ) { Set < T > results = new HashSet < T > ( ) ; for ( Token token : tokens ) { results . add ( adapter . fromToken ( token ) ) ; } return results ; } | 56 |
java-test-10652 | java | What is nt the highest all possible iv combinations ? | the boolean set to true stat | public void refine By Highest ( boolean att Is Highest , boolean def Is Highest , boolean sta Is Highest ) { Array List < IV Combination > refined List = new Array List < > ( ) ; for ( IV Combination comb : iV Combinations ) { Boolean [ ] known Att Def Sta = { att Is Highest , def Is Highest , sta Is Highest } ; if ( A... | public void refineByHighest ( boolean attIsHighest , boolean defIsHighest , boolean staIsHighest ) { ArrayList < IVCombination > refinedList = new ArrayList < > ( ) ; for ( IVCombination comb : iVCombinations ) { Boolean [ ] knownAttDefSta = { attIsHighest , defIsHighest , staIsHighest } ; if ( Arrays . equals ( comb .... | 110 |
java-test-10653 | java | Where is the boolean set to true stat nt is the highest ? | all possible iv combinations | public void refine By Highest ( boolean att Is Highest , boolean def Is Highest , boolean sta Is Highest ) { Array List < IV Combination > refined List = new Array List < > ( ) ; for ( IV Combination comb : iV Combinations ) { Boolean [ ] known Att Def Sta = { att Is Highest , def Is Highest , sta Is Highest } ; if ( A... | public void refineByHighest ( boolean attIsHighest , boolean defIsHighest , boolean staIsHighest ) { ArrayList < IVCombination > refinedList = new ArrayList < > ( ) ; for ( IVCombination comb : iVCombinations ) { Boolean [ ] knownAttDefSta = { attIsHighest , defIsHighest , staIsHighest } ; if ( Arrays . equals ( comb .... | 110 |
java-test-10654 | java | For what purpose did the code deduce how long to to wait until a ping is required ? | in order to keep the connection alive the server must see activity within the keepalive interval | public void notify Sent Bytes ( int sent Bytes Count ) { final String method Name = STRING ; if ( sent Bytes Count > NUM ) { this . last Outbound Activity = System . current Time Millis ( ) ; } log . fine ( CLASS NAME , method Name , STRING , new Object [ ] { new Integer ( sent Bytes Count ) } ) ; } | public void notifySentBytes ( int sentBytesCount ) { final String methodName = STRING ; if ( sentBytesCount > _NUM ) { this . lastOutboundActivity = System . currentTimeMillis ( ) ; } log . fine ( CLASS_NAME , methodName , STRING , new Object [ ] { new Integer ( sentBytesCount ) } ) ; } | 71 |
java-test-10655 | java | What did the server know ? | the client is alive | public void notify Sent Bytes ( int sent Bytes Count ) { final String method Name = STRING ; if ( sent Bytes Count > NUM ) { this . last Outbound Activity = System . current Time Millis ( ) ; } log . fine ( CLASS NAME , method Name , STRING , new Object [ ] { new Integer ( sent Bytes Count ) } ) ; } | public void notifySentBytes ( int sentBytesCount ) { final String methodName = STRING ; if ( sentBytesCount > _NUM ) { this . lastOutboundActivity = System . currentTimeMillis ( ) ; } log . fine ( CLASS_NAME , methodName , STRING , new Object [ ] { new Integer ( sentBytesCount ) } ) ; } | 71 |
java-test-10656 | java | For what purpose must the server see activity within the keepalive interval ? | in order to keep the connection alive | public void notify Sent Bytes ( int sent Bytes Count ) { final String method Name = STRING ; if ( sent Bytes Count > NUM ) { this . last Outbound Activity = System . current Time Millis ( ) ; } log . fine ( CLASS NAME , method Name , STRING , new Object [ ] { new Integer ( sent Bytes Count ) } ) ; } | public void notifySentBytes ( int sentBytesCount ) { final String methodName = STRING ; if ( sentBytesCount > _NUM ) { this . lastOutboundActivity = System . currentTimeMillis ( ) ; } log . fine ( CLASS_NAME , methodName , STRING , new Object [ ] { new Integer ( sentBytesCount ) } ) ; } | 71 |
java-test-10657 | java | When do this method work ? | the next time that a ping must be sent in order for the server to know the client is alive | public void notify Sent Bytes ( int sent Bytes Count ) { final String method Name = STRING ; if ( sent Bytes Count > NUM ) { this . last Outbound Activity = System . current Time Millis ( ) ; } log . fine ( CLASS NAME , method Name , STRING , new Object [ ] { new Integer ( sent Bytes Count ) } ) ; } | public void notifySentBytes ( int sentBytesCount ) { final String methodName = STRING ; if ( sentBytesCount > _NUM ) { this . lastOutboundActivity = System . currentTimeMillis ( ) ; } log . fine ( CLASS_NAME , methodName , STRING , new Object [ ] { new Integer ( sentBytesCount ) } ) ; } | 71 |
java-test-10658 | java | What did the code deduce in order to keep the connection alive the server must see activity within the keepalive interval ? | how long to to wait until a ping is required | public void notify Sent Bytes ( int sent Bytes Count ) { final String method Name = STRING ; if ( sent Bytes Count > NUM ) { this . last Outbound Activity = System . current Time Millis ( ) ; } log . fine ( CLASS NAME , method Name , STRING , new Object [ ] { new Integer ( sent Bytes Count ) } ) ; } | public void notifySentBytes ( int sentBytesCount ) { final String methodName = STRING ; if ( sentBytesCount > _NUM ) { this . lastOutboundActivity = System . currentTimeMillis ( ) ; } log . fine ( CLASS_NAME , methodName , STRING , new Object [ ] { new Integer ( sentBytesCount ) } ) ; } | 71 |
java-test-10659 | java | What do the application not receive ? | any messages | public void notify Sent Bytes ( int sent Bytes Count ) { final String method Name = STRING ; if ( sent Bytes Count > NUM ) { this . last Outbound Activity = System . current Time Millis ( ) ; } log . fine ( CLASS NAME , method Name , STRING , new Object [ ] { new Integer ( sent Bytes Count ) } ) ; } | public void notifySentBytes ( int sentBytesCount ) { final String methodName = STRING ; if ( sentBytesCount > _NUM ) { this . lastOutboundActivity = System . currentTimeMillis ( ) ; } log . fine ( CLASS_NAME , methodName , STRING , new Object [ ] { new Integer ( sentBytesCount ) } ) ; } | 71 |
java-test-10660 | java | What must the server see in order to keep the connection alive ? | activity within the keepalive interval | public void notify Sent Bytes ( int sent Bytes Count ) { final String method Name = STRING ; if ( sent Bytes Count > NUM ) { this . last Outbound Activity = System . current Time Millis ( ) ; } log . fine ( CLASS NAME , method Name , STRING , new Object [ ] { new Integer ( sent Bytes Count ) } ) ; } | public void notifySentBytes ( int sentBytesCount ) { final String methodName = STRING ; if ( sentBytesCount > _NUM ) { this . lastOutboundActivity = System . currentTimeMillis ( ) ; } log . fine ( CLASS_NAME , methodName , STRING , new Object [ ] { new Integer ( sentBytesCount ) } ) ; } | 71 |
java-test-10661 | java | For what purpose must a ping be sent the next time ? | in order for the server to know the client is alive | public void notify Sent Bytes ( int sent Bytes Count ) { final String method Name = STRING ; if ( sent Bytes Count > NUM ) { this . last Outbound Activity = System . current Time Millis ( ) ; } log . fine ( CLASS NAME , method Name , STRING , new Object [ ] { new Integer ( sent Bytes Count ) } ) ; } | public void notifySentBytes ( int sentBytesCount ) { final String methodName = STRING ; if ( sentBytesCount > _NUM ) { this . lastOutboundActivity = System . currentTimeMillis ( ) ; } log . fine ( CLASS_NAME , methodName , STRING , new Object [ ] { new Integer ( sentBytesCount ) } ) ; } | 71 |
java-test-10662 | java | What does the code convert ? | an array of strings in a comma delimited string | protected static String list To Comma Delimited String ( List < String > string List ) { if ( string List == null ) { return STRING ; } String Builder result = new String Builder ( ) ; for ( Iterator < String > it = string List . iterator ( ) ; it . has Next ( ) ; ) { Object element = it . next ( ) ; if ( element != nu... | protected static String listToCommaDelimitedString ( List < String > stringList ) { if ( stringList == null ) { return STRING ; } StringBuilder result = new StringBuilder ( ) ; for ( Iterator < String > it = stringList . iterator ( ) ; it . hasNext ( ) ; ) { Object element = it . next ( ) ; if ( element != null ) { res... | 115 |
java-test-10663 | java | What does the code add ? | stack trace element | public void add Element ( Er Stack Trace Element element ) { if ( class Name == null ) { declaring Class = element . get Declaring Class ( ) ; if ( declaring Class . contains ( STRING ) ) { class Name = declaring Class . substring ( declaring Class . last Index Of ( STRING ) + NUM ) ; package Name = declaring Class . s... | public void addElement ( ErStackTraceElement element ) { if ( className == null ) { declaringClass = element . getDeclaringClass ( ) ; if ( declaringClass . contains ( STRING ) ) { className = declaringClass . substring ( declaringClass . lastIndexOf ( STRING ) + _NUM ) ; packageName = declaringClass . substring ( _NUM... | 139 |
java-test-10664 | java | What converts to a keypair instance ? | a given rsa privatekey instance | public static Key Pair private Key To Key Pair ( Private Key p Key ) throws No Such Algorithm Exception , Invalid Key Spec Exception { Key Factory key Factory = Key Factory . get Instance ( Key Constants . KEY FACTORY , new Bouncy Castle Provider ( ) ) ; RSA Private Crt Key rsa P Key = ( RSA Private Crt Key ) p Key ; R... | public static KeyPair privateKeyToKeyPair ( PrivateKey pKey ) throws NoSuchAlgorithmException , InvalidKeySpecException { KeyFactory keyFactory = KeyFactory . getInstance ( KeyConstants . KEY_FACTORY , new BouncyCastleProvider ( ) ) ; RSAPrivateCrtKey rsaPKey = ( RSAPrivateCrtKey ) pKey ; RSAPublicKeySpec publicKeySpec... | 129 |
java-test-10665 | java | What does a given rsa privatekey instance convert ? | to a keypair instance | public static Key Pair private Key To Key Pair ( Private Key p Key ) throws No Such Algorithm Exception , Invalid Key Spec Exception { Key Factory key Factory = Key Factory . get Instance ( Key Constants . KEY FACTORY , new Bouncy Castle Provider ( ) ) ; RSA Private Crt Key rsa P Key = ( RSA Private Crt Key ) p Key ; R... | public static KeyPair privateKeyToKeyPair ( PrivateKey pKey ) throws NoSuchAlgorithmException , InvalidKeySpecException { KeyFactory keyFactory = KeyFactory . getInstance ( KeyConstants . KEY_FACTORY , new BouncyCastleProvider ( ) ) ; RSAPrivateCrtKey rsaPKey = ( RSAPrivateCrtKey ) pKey ; RSAPublicKeySpec publicKeySpec... | 129 |
java-test-10666 | java | How does the given inputstream copy to the given channel ? | using the most efficient means possible | private static void transfer From ( File Channel channel , Input Stream in ) throws IO Exception { Readable Byte Channel read Channel = Channels . new Channel ( in ) ; if ( ! BROKEN NIO ) { channel . transfer From ( read Channel , NUM , MAX EMPTYDB SIZE ) ; } else { Byte Buffer bb = Byte Buffer . allocate ( NUM ) ; whi... | private static void transferFrom ( FileChannel channel , InputStream in ) throws IOException { ReadableByteChannel readChannel = Channels . newChannel ( in ) ; if ( ! BROKEN_NIO ) { channel . transferFrom ( readChannel , _NUM , MAX_EMPTYDB_SIZE ) ; } else { ByteBuffer bb = ByteBuffer . allocate ( _NUM ) ; while ( readC... | 104 |
java-test-10669 | java | What does the code write to the specified output stream ? | the content disposition header | protected void send Disposition Header ( final Output Stream out ) throws IO Exception { LOG . trace ( STRING ) ; out . write ( CONTENT DISPOSITION BYTES ) ; out . write ( QUOTE BYTES ) ; out . write ( Encoding Util . get Ascii Bytes ( get Name ( ) ) ) ; out . write ( QUOTE BYTES ) ; } | protected void sendDispositionHeader ( final OutputStream out ) throws IOException { LOG . trace ( STRING ) ; out . write ( CONTENT_DISPOSITION_BYTES ) ; out . write ( QUOTE_BYTES ) ; out . write ( EncodingUtil . getAsciiBytes ( getName ( ) ) ) ; out . write ( QUOTE_BYTES ) ; } | 66 |
java-test-10673 | java | When be we be more efficient by relying on http keep - alive ? | on a push | private Http URL Connection request Reservation ( ) { try { connection = Http Transport Manager . open Connection ( url , basic Auth Username , basic Auth Password ) ; connection . set Use Caches ( BOOL ) ; connection . set Connect Timeout ( http Timeout ) ; connection . set Read Timeout ( http Timeout ) ; connection .... | private HttpURLConnection requestReservation ( ) { try { connection = HttpTransportManager . openConnection ( url , basicAuthUsername , basicAuthPassword ) ; connection . setUseCaches ( _BOOL ) ; connection . setConnectTimeout ( httpTimeout ) ; connection . setReadTimeout ( httpTimeout ) ; connection . setRequestMethod... | 103 |
java-test-10674 | java | How be we be more efficient on a push ? | by relying on http keep - alive | private Http URL Connection request Reservation ( ) { try { connection = Http Transport Manager . open Connection ( url , basic Auth Username , basic Auth Password ) ; connection . set Use Caches ( BOOL ) ; connection . set Connect Timeout ( http Timeout ) ; connection . set Read Timeout ( http Timeout ) ; connection .... | private HttpURLConnection requestReservation ( ) { try { connection = HttpTransportManager . openConnection ( url , basicAuthUsername , basicAuthPassword ) ; connection . setUseCaches ( _BOOL ) ; connection . setConnectTimeout ( httpTimeout ) ; connection . setReadTimeout ( httpTimeout ) ; connection . setRequestMethod... | 103 |
java-test-10675 | java | What have we found ? | that we can be more efficient on a push by relying on http keep - alive | private Http URL Connection request Reservation ( ) { try { connection = Http Transport Manager . open Connection ( url , basic Auth Username , basic Auth Password ) ; connection . set Use Caches ( BOOL ) ; connection . set Connect Timeout ( http Timeout ) ; connection . set Read Timeout ( http Timeout ) ; connection .... | private HttpURLConnection requestReservation ( ) { try { connection = HttpTransportManager . openConnection ( url , basicAuthUsername , basicAuthPassword ) ; connection . setUseCaches ( _BOOL ) ; connection . setConnectTimeout ( httpTimeout ) ; connection . setReadTimeout ( httpTimeout ) ; connection . setRequestMethod... | 103 |
java-test-10676 | java | When do sure it is ok to make ? | before streaming data to the remote node | private Http URL Connection request Reservation ( ) { try { connection = Http Transport Manager . open Connection ( url , basic Auth Username , basic Auth Password ) ; connection . set Use Caches ( BOOL ) ; connection . set Connect Timeout ( http Timeout ) ; connection . set Read Timeout ( http Timeout ) ; connection .... | private HttpURLConnection requestReservation ( ) { try { connection = HttpTransportManager . openConnection ( url , basicAuthUsername , basicAuthPassword ) ; connection . setUseCaches ( _BOOL ) ; connection . setConnectTimeout ( httpTimeout ) ; connection . setReadTimeout ( httpTimeout ) ; connection . setRequestMethod... | 103 |
java-test-10677 | java | What does the code remove for the admin roles ? | the aci | void remove Admin Role Aci ( boolean recursive ) throws AM Exception , SSO Exception { String org DN = get Organization DN ( ) ; AM Organization Impl org = new AM Organization Impl ( token , org DN ) ; Set aci Set = org . get Attribute ( STRING ) ; Set new Aci Set = new Hash Set ( ) ; Iterator iter = aci Set . iterator... | void removeAdminRoleAci ( boolean recursive ) throws AMException , SSOException { String orgDN = getOrganizationDN ( ) ; AMOrganizationImpl org = new AMOrganizationImpl ( token , orgDN ) ; Set aciSet = org . getAttribute ( STRING ) ; Set newAciSet = new HashSet ( ) ; Iterator iter = aciSet . iterator ( ) ; DN thisDN = ... | 390 |
java-test-10678 | java | What does the code delete ? | the file , or all files in the directory | public static void delete File ( final File file , final boolean delete Dir ) { if ( file . is Directory ( ) ) { for ( final File sub File : file . list Files ( ) ) { delete File ( sub File , BOOL ) ; } if ( delete Dir ) { file . delete ( ) ; } } else { file . delete ( ) ; } } | public static void deleteFile ( final File file , final boolean deleteDir ) { if ( file . isDirectory ( ) ) { for ( final File subFile : file . listFiles ( ) ) { deleteFile ( subFile , _BOOL ) ; } if ( deleteDir ) { file . delete ( ) ; } } else { file . delete ( ) ; } } | 75 |
java-test-10679 | java | What do a model use ? | newton and raftery ' s harmonic mean estimator | public double log Marginal Likelihood Harmonic ( List < Double > v ) { double sum = NUM ; final int size = v . size ( ) ; for ( int i = NUM ; i < size ; i ++ ) sum += v . get ( i ) ; double denominator = Log Tricks . log Zero ; for ( int i = NUM ; i < size ; i ++ ) denominator = Log Tricks . log Sum ( denominator , sum... | public double logMarginalLikelihoodHarmonic ( List < Double > v ) { double sum = _NUM ; final int size = v . size ( ) ; for ( int i = _NUM ; i < size ; i ++ ) sum += v . get ( i ) ; double denominator = LogTricks . logZero ; for ( int i = _NUM ; i < size ; i ++ ) denominator = LogTricks . logSum ( denominator , sum - v... | 109 |
java-test-10681 | java | What does the code return ? | the changes received by other sessions for the shared diagram | public String poll ( long timeout ) throws Interrupted Exception { last Time Millis = System . current Time Millis ( ) ; String result = STRING ; synchronized ( this ) { if ( buffer . length ( ) == NUM ) { wait ( timeout ) ; } if ( buffer . length ( ) > NUM ) { result = STRING + buffer . to String ( ) + STRING ; buffer... | public String poll ( long timeout ) throws InterruptedException { lastTimeMillis = System . currentTimeMillis ( ) ; String result = STRING ; synchronized ( this ) { if ( buffer . length ( ) == _NUM ) { wait ( timeout ) ; } if ( buffer . length ( ) > _NUM ) { result = STRING + buffer . toString ( ) + STRING ; buffer = n... | 92 |
java-test-10682 | java | What does the method return if no change was received within the given timeout ? | an empty xml node | public String poll ( long timeout ) throws Interrupted Exception { last Time Millis = System . current Time Millis ( ) ; String result = STRING ; synchronized ( this ) { if ( buffer . length ( ) == NUM ) { wait ( timeout ) ; } if ( buffer . length ( ) > NUM ) { result = STRING + buffer . to String ( ) + STRING ; buffer... | public String poll ( long timeout ) throws InterruptedException { lastTimeMillis = System . currentTimeMillis ( ) ; String result = STRING ; synchronized ( this ) { if ( buffer . length ( ) == _NUM ) { wait ( timeout ) ; } if ( buffer . length ( ) > _NUM ) { result = STRING + buffer . toString ( ) + STRING ; buffer = n... | 92 |
java-test-10683 | java | When was no change received ? | within the given timeout | public String poll ( long timeout ) throws Interrupted Exception { last Time Millis = System . current Time Millis ( ) ; String result = STRING ; synchronized ( this ) { if ( buffer . length ( ) == NUM ) { wait ( timeout ) ; } if ( buffer . length ( ) > NUM ) { result = STRING + buffer . to String ( ) + STRING ; buffer... | public String poll ( long timeout ) throws InterruptedException { lastTimeMillis = System . currentTimeMillis ( ) ; String result = STRING ; synchronized ( this ) { if ( buffer . length ( ) == _NUM ) { wait ( timeout ) ; } if ( buffer . length ( ) > _NUM ) { result = STRING + buffer . toString ( ) + STRING ; buffer = n... | 92 |
java-test-10684 | java | For what purpose do we support the preferred scheme ? | for a given host | public Authentication Header ( String hdrname , Message Header response , Http Caller Info hci , boolean dont Use Negotiate ) { this . hci = hci ; this . dont Use Negotiate = dont Use Negotiate ; rsp = response ; this . hdrname = hdrname ; schemes = new Hash Map < String , Scheme Map Value > ( ) ; parse ( ) ; } | public AuthenticationHeader ( String hdrname , MessageHeader response , HttpCallerInfo hci , boolean dontUseNegotiate ) { this . hci = hci ; this . dontUseNegotiate = dontUseNegotiate ; rsp = response ; this . hdrname = hdrname ; schemes = new HashMap < String , SchemeMapValue > ( ) ; parse ( ) ; } | 68 |
java-test-10685 | java | What does the code create ? | a new kernel | public Kernel new Kernel ( String name ) { Kernel kernel = get Kernel By Name ( name ) ; if ( kernel == null && ! name . equals ( NONE ) ) { kernel = new Kernel ( name ) ; Integer old Size = Integer . value Of ( kernel Hash Table . size ( ) ) ; kernel Hash Table . put ( name , kernel ) ; set Dirty And Fire Property Cha... | public Kernel newKernel ( String name ) { Kernel kernel = getKernelByName ( name ) ; if ( kernel == null && ! name . equals ( NONE ) ) { kernel = new Kernel ( name ) ; Integer oldSize = Integer . valueOf ( _kernelHashTable . size ( ) ) ; _kernelHashTable . put ( name , kernel ) ; setDirtyAndFirePropertyChange ( KERNEL_... | 107 |
java-test-10686 | java | How did plots request plots ? | as a line | public void line ( String src Name , Paint color , String legend , float width , boolean stack ) { if ( legend != null ) { comments . add ( new Legend Text ( color , legend ) ) ; } Sourced Plot Element parent = stack ? find Parent ( ) : null ; plot Elements . add ( new Line ( src Name , color , new Basic Stroke ( width... | public void line ( String srcName , Paint color , String legend , float width , boolean stack ) { if ( legend != null ) { comments . add ( new LegendText ( color , legend ) ) ; } SourcedPlotElement parent = stack ? findParent ( ) : null ; plotElements . add ( new Line ( srcName , color , new BasicStroke ( width ) , par... | 82 |
java-test-10687 | java | What does the code execute ? | all possible | private void queue Ready Jobs For Execution Locked H ( ) { Array Set < Job Status > jobs = m Jobs . get Jobs ( ) ; if ( DEBUG ) { } for ( int i = NUM ; i < jobs . size ( ) ; i ++ ) { Job Status job = jobs . value At ( i ) ; if ( is Ready To Be Executed Locked ( job ) ) { if ( DEBUG ) { } m Pending Jobs . add ( job ) ; ... | private void queueReadyJobsForExecutionLockedH ( ) { ArraySet < JobStatus > jobs = mJobs . getJobs ( ) ; if ( DEBUG ) { } for ( int i = _NUM ; i < jobs . size ( ) ; i ++ ) { JobStatus job = jobs . valueAt ( i ) ; if ( isReadyToBeExecutedLocked ( job ) ) { if ( DEBUG ) { } mPendingJobs . add ( job ) ; } else if ( isRead... | 152 |
java-test-10688 | java | What did we do ? | as many as we can | private void queue Ready Jobs For Execution Locked H ( ) { Array Set < Job Status > jobs = m Jobs . get Jobs ( ) ; if ( DEBUG ) { } for ( int i = NUM ; i < jobs . size ( ) ; i ++ ) { Job Status job = jobs . value At ( i ) ; if ( is Ready To Be Executed Locked ( job ) ) { if ( DEBUG ) { } m Pending Jobs . add ( job ) ; ... | private void queueReadyJobsForExecutionLockedH ( ) { ArraySet < JobStatus > jobs = mJobs . getJobs ( ) ; if ( DEBUG ) { } for ( int i = _NUM ; i < jobs . size ( ) ; i ++ ) { JobStatus job = jobs . valueAt ( i ) ; if ( isReadyToBeExecutedLocked ( job ) ) { if ( DEBUG ) { } mPendingJobs . add ( job ) ; } else if ( isRead... | 152 |
java-test-10691 | java | What does the code get ? | the optional hello message | @ HLE Function ( nid = NUM , version = NUM ) public int sce Net Adhoc Matching Get Hello Opt ( @ Check Argument ( STRING ) int matching Id , T Pointer 32 opt Len Addr , @ Can Be Null T Pointer opt Data ) { Matching Object matching Object = matching Objects . get ( matching Id ) ; int hello Opt Len = matching Object . g... | @ HLEFunction ( nid = _NUM , version = _NUM ) public int sceNetAdhocMatchingGetHelloOpt ( @ CheckArgument ( STRING ) int matchingId , TPointer32 optLenAddr , @ CanBeNull TPointer optData ) { MatchingObject matchingObject = matchingObjects . get ( matchingId ) ; int helloOptLen = matchingObject . getHelloOptLen ( ) ; in... | 173 |
java-test-10692 | java | What does the code calculate ? | the total for the y - values in all series for a given item index | public static double calculate Stack Total ( Table XY Dataset dataset , int item ) { double total = NUM ; int series Count = dataset . get Series Count ( ) ; for ( int s = NUM ; s < series Count ; s ++ ) { double value = dataset . get Y Value ( s , item ) ; if ( ! Double . is Na N ( value ) ) { total = total + value ; ... | public static double calculateStackTotal ( TableXYDataset dataset , int item ) { double total = _NUM ; int seriesCount = dataset . getSeriesCount ( ) ; for ( int s = _NUM ; s < seriesCount ; s ++ ) { double value = dataset . getYValue ( s , item ) ; if ( ! Double . isNaN ( value ) ) { total = total + value ; } } return... | 88 |
java-test-10693 | java | What contains pure jaas module ( s ) ? | the auth chain | public boolean is Pure JAAS Module Present ( final String config Name , final Configuration configuration ) throws Auth Login Exception { if ( enforce JAAS Thread ) { return BOOL ; } if ( null == configuration ) { return BOOL ; } final App Configuration Entry [ ] entries = configuration . get App Configuration Entry ( ... | public boolean isPureJAASModulePresent ( final String configName , final Configuration configuration ) throws AuthLoginException { if ( enforceJAASThread ) { return _BOOL ; } if ( null == configuration ) { return _BOOL ; } final AppConfigurationEntry [ ] entries = configuration . getAppConfigurationEntry ( configName )... | 197 |
java-test-10694 | java | What does the auth chain contain ? | pure jaas module ( s ) | public boolean is Pure JAAS Module Present ( final String config Name , final Configuration configuration ) throws Auth Login Exception { if ( enforce JAAS Thread ) { return BOOL ; } if ( null == configuration ) { return BOOL ; } final App Configuration Entry [ ] entries = configuration . get App Configuration Entry ( ... | public boolean isPureJAASModulePresent ( final String configName , final Configuration configuration ) throws AuthLoginException { if ( enforceJAASThread ) { return _BOOL ; } if ( null == configuration ) { return _BOOL ; } final AppConfigurationEntry [ ] entries = configuration . getAppConfigurationEntry ( configName )... | 197 |
java-test-10695 | java | What exists in the accent color groups ? | the color returned by getrandomaccentcolor | public void test Get Random Accent Color ( ) { List < Integer > accent Color List = new Array List < > ( ) ; try { for ( String name : Material Palettes . COLORS WITH ACCENT NAMES ) { accent Color List . add All ( Material Palettes . get Accent Colors By Name ( name ) ) ; } Integer random Color = Material Palettes . ge... | public void testGetRandomAccentColor ( ) { List < Integer > accentColorList = new ArrayList < > ( ) ; try { for ( String name : MaterialPalettes . COLORS_WITH_ACCENT_NAMES ) { accentColorList . addAll ( MaterialPalettes . getAccentColorsByName ( name ) ) ; } Integer randomColor = MaterialPalettes . getRandomAccentColor... | 106 |
java-test-10696 | java | Where does the color returned by getrandomaccentcolor exist ? | in the accent color groups | public void test Get Random Accent Color ( ) { List < Integer > accent Color List = new Array List < > ( ) ; try { for ( String name : Material Palettes . COLORS WITH ACCENT NAMES ) { accent Color List . add All ( Material Palettes . get Accent Colors By Name ( name ) ) ; } Integer random Color = Material Palettes . ge... | public void testGetRandomAccentColor ( ) { List < Integer > accentColorList = new ArrayList < > ( ) ; try { for ( String name : MaterialPalettes . COLORS_WITH_ACCENT_NAMES ) { accentColorList . addAll ( MaterialPalettes . getAccentColorsByName ( name ) ) ; } Integer randomColor = MaterialPalettes . getRandomAccentColor... | 106 |
java-test-10697 | java | When do the last rules start ? | from the same year | void tidy ( int window Start Year ) { if ( last Rule List . size ( ) == NUM ) { throw new Illegal State Exception ( STRING ) ; } if ( window End . equals ( Local Date Time . MAX ) ) { max Last Rule Start Year = Math . max ( max Last Rule Start Year , window Start Year ) + NUM ; for ( TZ Rule last Rule : last Rule List ... | void tidy ( int windowStartYear ) { if ( lastRuleList . size ( ) == _NUM ) { throw new IllegalStateException ( STRING ) ; } if ( windowEnd . equals ( LocalDateTime . MAX ) ) { maxLastRuleStartYear = Math . max ( maxLastRuleStartYear , windowStartYear ) + _NUM ; for ( TZRule lastRule : lastRuleList ) { addRule ( lastRul... | 341 |
java-test-10698 | java | What has odd offset where ? | penultimate year | void tidy ( int window Start Year ) { if ( last Rule List . size ( ) == NUM ) { throw new Illegal State Exception ( STRING ) ; } if ( window End . equals ( Local Date Time . MAX ) ) { max Last Rule Start Year = Math . max ( max Last Rule Start Year , window Start Year ) + NUM ; for ( TZ Rule last Rule : last Rule List ... | void tidy ( int windowStartYear ) { if ( lastRuleList . size ( ) == _NUM ) { throw new IllegalStateException ( STRING ) ; } if ( windowEnd . equals ( LocalDateTime . MAX ) ) { maxLastRuleStartYear = Math . max ( maxLastRuleStartYear , windowStartYear ) + _NUM ; for ( TZRule lastRule : lastRuleList ) { addRule ( lastRul... | 341 |
java-test-10699 | java | What does penultimate year have where ? | odd offset | void tidy ( int window Start Year ) { if ( last Rule List . size ( ) == NUM ) { throw new Illegal State Exception ( STRING ) ; } if ( window End . equals ( Local Date Time . MAX ) ) { max Last Rule Start Year = Math . max ( max Last Rule Start Year , window Start Year ) + NUM ; for ( TZ Rule last Rule : last Rule List ... | void tidy ( int windowStartYear ) { if ( lastRuleList . size ( ) == _NUM ) { throw new IllegalStateException ( STRING ) ; } if ( windowEnd . equals ( LocalDateTime . MAX ) ) { maxLastRuleStartYear = Math . max ( maxLastRuleStartYear , windowStartYear ) + _NUM ; for ( TZRule lastRule : lastRuleList ) { addRule ( lastRul... | 341 |
java-test-10700 | java | What does the code initialize ? | all the images in this tileset | public void load All Images ( Component comp , Media Tracker tracker ) { for ( Iterator < Hex Entry > i = bases . iterator ( ) ; i . has Next ( ) ; ) { Hex Entry entry = i . next ( ) ; if ( entry . get Image ( ) == null ) { entry . load Image ( comp ) ; } tracker . add Image ( entry . get Image ( ) , NUM ) ; } for ( It... | public void loadAllImages ( Component comp , MediaTracker tracker ) { for ( Iterator < HexEntry > i = bases . iterator ( ) ; i . hasNext ( ) ; ) { HexEntry entry = i . next ( ) ; if ( entry . getImage ( ) == null ) { entry . loadImage ( comp ) ; } tracker . addImage ( entry . getImage ( ) , _NUM ) ; } for ( Iterator < ... | 228 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.