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-10701
java
What does the code write ?
a log of loaded properties to the plumbing . init logger
private void log After Load ( ) { Enumeration elem = properties . keys ( ) ; List lp = Collections . list ( elem ) ; Collections . sort ( lp ) ; Iterator iter = lp . iterator ( ) ; finer ( STRING + properties . size ( ) + STRING ) ; finer ( STRING ) ; while ( iter . has Next ( ) ) { String key = ( String ) iter . next ...
private void logAfterLoad ( ) { Enumeration elem = properties . keys ( ) ; List lp = Collections . list ( elem ) ; Collections . sort ( lp ) ; Iterator iter = lp . iterator ( ) ; finer ( STRING + properties . size ( ) + STRING ) ; finer ( STRING ) ; while ( iter . hasNext ( ) ) { String key = ( String ) iter . next ( )...
112
java-test-10702
java
What does the code rotate ?
the set of output files
private synchronized void rotate ( ) { Level old Level = get Level ( ) ; set Level ( Level . OFF ) ; super . close ( ) ; for ( int i = count - NUM ; i >= NUM ; i -- ) { File f1 = files [ i ] ; File f2 = files [ i + NUM ] ; if ( f1 . exists ( ) ) { if ( f2 . exists ( ) ) { f2 . delete ( ) ; } f1 . rename To ( f2 ) ; } }...
private synchronized void rotate ( ) { Level oldLevel = getLevel ( ) ; setLevel ( Level . OFF ) ; super . close ( ) ; for ( int i = count - _NUM ; i >= _NUM ; i -- ) { File f1 = files [ i ] ; File f2 = files [ i + _NUM ] ; if ( f1 . exists ( ) ) { if ( f2 . exists ( ) ) { f2 . delete ( ) ; } f1 . renameTo ( f2 ) ; } } ...
143
java-test-10704
java
What does the code create ?
a new instance of pfxreader
public P12 Reader ( Input Stream input Stream , String password ) throws General Security Exception , IO Exception { this . password = password ; key Store = Key Store . get Instance ( KEYSTORE TYPE ) ; key Store . load ( input Stream , password . to Char Array ( ) ) ; Enumeration aliases = key Store . aliases ( ) ; if...
public P12Reader ( InputStream inputStream , String password ) throws GeneralSecurityException , IOException { this . password = password ; keyStore = KeyStore . getInstance ( KEYSTORE_TYPE ) ; keyStore . load ( inputStream , password . toCharArray ( ) ) ; Enumeration aliases = keyStore . aliases ( ) ; if ( aliases . h...
89
java-test-10705
java
What defined in a rule ?
the part of speech constraint
public boolean check Pos Constraint ( Sentence s , String pos Constraint , Match Result m , J Cas jcas ) { Pattern pa Constraint = Pattern . compile ( STRING ) ; for ( Match Result mr : Toolbox . find Matches ( pa Constraint , pos Constraint ) ) { int group Number = Integer . parse Int ( mr . group ( NUM ) ) ; int toke...
public boolean checkPosConstraint ( Sentence s , String posConstraint , MatchResult m , JCas jcas ) { Pattern paConstraint = Pattern . compile ( STRING ) ; for ( MatchResult mr : Toolbox . findMatches ( paConstraint , posConstraint ) ) { int groupNumber = Integer . parseInt ( mr . group ( _NUM ) ) ; int tokenBegin = s ...
179
java-test-10706
java
What do the classes make ?
the suite
protected Onami Suite ( Runner Builder builder , Class < ? > suite , Class < ? > [ ] suite Classes ) throws Initialization Error { super ( suite , runners ( suite , suite Classes ) ) ; try { if ( LOGGER . is Loggable ( Level . FINER ) ) { LOGGER . finer ( STRING + suite . get Name ( ) ) ; } this . all Modules = inizial...
protected OnamiSuite ( RunnerBuilder builder , Class < ? > suite , Class < ? > [ ] suiteClasses ) throws InitializationError { super ( suite , runners ( suite , suiteClasses ) ) ; try { if ( LOGGER . isLoggable ( Level . FINER ) ) { LOGGER . finer ( STRING + suite . getName ( ) ) ; } this . allModules = inizializeInjec...
142
java-test-10707
java
When did by this class and subclasses call the code ?
once the classes making up the suite
protected Onami Suite ( Runner Builder builder , Class < ? > suite , Class < ? > [ ] suite Classes ) throws Initialization Error { super ( suite , runners ( suite , suite Classes ) ) ; try { if ( LOGGER . is Loggable ( Level . FINER ) ) { LOGGER . finer ( STRING + suite . get Name ( ) ) ; } this . all Modules = inizial...
protected OnamiSuite ( RunnerBuilder builder , Class < ? > suite , Class < ? > [ ] suiteClasses ) throws InitializationError { super ( suite , runners ( suite , suiteClasses ) ) ; try { if ( LOGGER . isLoggable ( Level . FINER ) ) { LOGGER . finer ( STRING + suite . getName ( ) ) ; } this . allModules = inizializeInjec...
142
java-test-10708
java
What are you using requestkeeper ?
to funnel your requests
public boolean on Event ( Action Result result ) { synchronized ( this ) { String request Id = result . get Response Info ( ) . m Request Id ; if ( request Id == null ) { return BOOL ; } boolean event Removed = m Request Ids . remove ( request Id ) ; if ( event Removed ) { Class key = null ; for ( Class type : m Last R...
public boolean onEvent ( ActionResult result ) { synchronized ( this ) { String requestId = result . getResponseInfo ( ) . mRequestId ; if ( requestId == null ) { return _BOOL ; } boolean eventRemoved = mRequestIds . remove ( requestId ) ; if ( eventRemoved ) { Class key = null ; for ( Class type : mLastRequestIdByType...
142
java-test-10709
java
What do you funnel ?
your requests
public boolean on Event ( Action Result result ) { synchronized ( this ) { String request Id = result . get Response Info ( ) . m Request Id ; if ( request Id == null ) { return BOOL ; } boolean event Removed = m Request Ids . remove ( request Id ) ; if ( event Removed ) { Class key = null ; for ( Class type : m Last R...
public boolean onEvent ( ActionResult result ) { synchronized ( this ) { String requestId = result . getResponseInfo ( ) . mRequestId ; if ( requestId == null ) { return _BOOL ; } boolean eventRemoved = mRequestIds . remove ( requestId ) ; if ( eventRemoved ) { Class key = null ; for ( Class type : mLastRequestIdByType...
142
java-test-10710
java
What are you using to funnel your requests ?
requestkeeper
public boolean on Event ( Action Result result ) { synchronized ( this ) { String request Id = result . get Response Info ( ) . m Request Id ; if ( request Id == null ) { return BOOL ; } boolean event Removed = m Request Ids . remove ( request Id ) ; if ( event Removed ) { Class key = null ; for ( Class type : m Last R...
public boolean onEvent ( ActionResult result ) { synchronized ( this ) { String requestId = result . getResponseInfo ( ) . mRequestId ; if ( requestId == null ) { return _BOOL ; } boolean eventRemoved = mRequestIds . remove ( requestId ) ; if ( eventRemoved ) { Class key = null ; for ( Class type : mLastRequestIdByType...
142
java-test-10711
java
What did the code require if you are using requestkeeper to funnel your requests ?
method to be called
public boolean on Event ( Action Result result ) { synchronized ( this ) { String request Id = result . get Response Info ( ) . m Request Id ; if ( request Id == null ) { return BOOL ; } boolean event Removed = m Request Ids . remove ( request Id ) ; if ( event Removed ) { Class key = null ; for ( Class type : m Last R...
public boolean onEvent ( ActionResult result ) { synchronized ( this ) { String requestId = result . getResponseInfo ( ) . mRequestId ; if ( requestId == null ) { return _BOOL ; } boolean eventRemoved = mRequestIds . remove ( requestId ) ; if ( eventRemoved ) { Class key = null ; for ( Class type : mLastRequestIdByType...
142
java-test-10712
java
Where be popup shown ?
above the task bar
public boolean can Popup Overlap Task Bar ( ) { boolean result = BOOL ; try { Security Manager sm = System . get Security Manager ( ) ; if ( sm != null ) { sm . check Permission ( Security Constants . AWT . SET WINDOW ALWAYS ON TOP PERMISSION ) ; } } catch ( Security Exception se ) { result = BOOL ; } return result ; }
public boolean canPopupOverlapTaskBar ( ) { boolean result = _BOOL ; try { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkPermission ( SecurityConstants . AWT . SET_WINDOW_ALWAYS_ON_TOP_PERMISSION ) ; } } catch ( SecurityException se ) { result = _BOOL ; } return result ; }
72
java-test-10713
java
What does this method check ?
corresponding security permission
public boolean can Popup Overlap Task Bar ( ) { boolean result = BOOL ; try { Security Manager sm = System . get Security Manager ( ) ; if ( sm != null ) { sm . check Permission ( Security Constants . AWT . SET WINDOW ALWAYS ON TOP PERMISSION ) ; } } catch ( Security Exception se ) { result = BOOL ; } return result ; }
public boolean canPopupOverlapTaskBar ( ) { boolean result = _BOOL ; try { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkPermission ( SecurityConstants . AWT . SET_WINDOW_ALWAYS_ON_TOP_PERMISSION ) ; } } catch ( SecurityException se ) { result = _BOOL ; } return result ; }
72
java-test-10714
java
What be shown above the task bar ?
popup
public boolean can Popup Overlap Task Bar ( ) { boolean result = BOOL ; try { Security Manager sm = System . get Security Manager ( ) ; if ( sm != null ) { sm . check Permission ( Security Constants . AWT . SET WINDOW ALWAYS ON TOP PERMISSION ) ; } } catch ( Security Exception se ) { result = BOOL ; } return result ; }
public boolean canPopupOverlapTaskBar ( ) { boolean result = _BOOL ; try { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkPermission ( SecurityConstants . AWT . SET_WINDOW_ALWAYS_ON_TOP_PERMISSION ) ; } } catch ( SecurityException se ) { result = _BOOL ; } return result ; }
72
java-test-10715
java
What does the code generate ?
a salt for use with the bcrypt . hashpw ( ) method
public static String gensalt ( int log rounds , Secure Random random ) { String Buffer rs = new String Buffer ( ) ; byte rnd [ ] = new byte [ BCRYPT SALT LEN ] ; random . next Bytes ( rnd ) ; rs . append ( STRING ) ; if ( log rounds < NUM ) { rs . append ( STRING ) ; } if ( log rounds > NUM ) { throw new Illegal Argume...
public static String gensalt ( int log_rounds , SecureRandom random ) { StringBuffer rs = new StringBuffer ( ) ; byte rnd [ ] = new byte [ BCRYPT_SALT_LEN ] ; random . nextBytes ( rnd ) ; rs . append ( STRING ) ; if ( log_rounds < _NUM ) { rs . append ( STRING ) ; } if ( log_rounds > _NUM ) { throw new IllegalArgumentE...
132
java-test-10716
java
What does the code terminate with a newline ?
the coordinate output
private void write ( Coordinate [ ] coords , int level , String Buffer buf ) { start Line ( STRING , level , buf ) ; boolean is New Line = BOOL ; for ( int i = NUM ; i < coords . length ; i ++ ) { if ( i > NUM ) { buf . append ( TUPLE SEPARATOR ) ; } if ( is New Line ) { start Line ( STRING , level , buf ) ; is New Lin...
private void write ( Coordinate [ ] coords , int level , StringBuffer buf ) { startLine ( STRING , level , buf ) ; boolean isNewLine = _BOOL ; for ( int i = _NUM ; i < coords . length ; i ++ ) { if ( i > _NUM ) { buf . append ( TUPLE_SEPARATOR ) ; } if ( isNewLine ) { startLine ( STRING , level , buf ) ; isNewLine = _B...
148
java-test-10717
java
What does the code create ?
the default inverse cumulative probability density test expected values
@ Override public double [ ] make Inverse Cumulative Test Values ( ) { double [ ] points = make Cumulative Test Points ( ) ; double [ ] points 2 = new double [ points . length - NUM ] ; System . arraycopy ( points , NUM , points 2 , NUM , points 2 . length ) ; return points 2 ; }
@ Override public double [ ] makeInverseCumulativeTestValues ( ) { double [ ] points = makeCumulativeTestPoints ( ) ; double [ ] points2 = new double [ points . length - _NUM ] ; System . arraycopy ( points , _NUM , points2 , _NUM , points2 . length ) ; return points2 ; }
66
java-test-10718
java
How does the code calculate the ntlm2 session response for the given challenge ?
using the specified password and client challenge
static byte [ ] ntlm 2 Session Response ( final byte [ ] ntlm Hash , final byte [ ] challenge , final byte [ ] client Challenge ) throws Authentication Exception { try { final Message Digest md 5 = Message Digest . get Instance ( STRING ) ; md 5 . update ( challenge ) ; md 5 . update ( client Challenge ) ; final byte [...
static byte [ ] ntlm2SessionResponse ( final byte [ ] ntlmHash , final byte [ ] challenge , final byte [ ] clientChallenge ) throws AuthenticationException { try { final MessageDigest md5 = MessageDigest . getInstance ( STRING ) ; md5 . update ( challenge ) ; md5 . update ( clientChallenge ) ; final byte [ ] digest = m...
158
java-test-10719
java
What does the code calculate using the specified password and client challenge ?
the ntlm2 session response for the given challenge
static byte [ ] ntlm 2 Session Response ( final byte [ ] ntlm Hash , final byte [ ] challenge , final byte [ ] client Challenge ) throws Authentication Exception { try { final Message Digest md 5 = Message Digest . get Instance ( STRING ) ; md 5 . update ( challenge ) ; md 5 . update ( client Challenge ) ; final byte [...
static byte [ ] ntlm2SessionResponse ( final byte [ ] ntlmHash , final byte [ ] challenge , final byte [ ] clientChallenge ) throws AuthenticationException { try { final MessageDigest md5 = MessageDigest . getInstance ( STRING ) ; md5 . update ( challenge ) ; md5 . update ( clientChallenge ) ; final byte [ ] digest = m...
158
java-test-10721
java
What does method add to the viewer ?
a new fragment class
@ Suppress Warnings ( STRING ) public void add ( final Class < ? extends Fragment > class Name , final Bundle params ) { final Holder m Holder = new Holder ( ) ; m Holder . m Class Name = class Name . get Name ( ) ; m Holder . m Params = params ; final int m Position = m Holder List . size ( ) ; m Holder List . add ( m...
@ SuppressWarnings ( STRING ) public void add ( final Class < ? extends Fragment > className , final Bundle params ) { final Holder mHolder = new Holder ( ) ; mHolder . mClassName = className . getName ( ) ; mHolder . mParams = params ; final int mPosition = mHolderList . size ( ) ; mHolderList . add ( mPosition , mHol...
92
java-test-10722
java
What does the code create ?
the qos rule objects from the given jsonobject
private List < Qo S Rule > create Qo S Rules ( Json Object qos Settings ) { List < Qo S Rule > rules = new Array List < > ( ) ; if ( qos Settings . contains Key ( JSON FIELD RULES ) ) { Json Object json Rules = qos Settings . get Json Object ( JSON FIELD RULES ) ; for ( String url Pattern Reg Exp : json Rules . field N...
private List < QoSRule > createQoSRules ( JsonObject qosSettings ) { List < QoSRule > rules = new ArrayList < > ( ) ; if ( qosSettings . containsKey ( JSON_FIELD_RULES ) ) { JsonObject jsonRules = qosSettings . getJsonObject ( JSON_FIELD_RULES ) ; for ( String urlPatternRegExp : jsonRules . fieldNames ( ) ) { log . deb...
247
java-test-10723
java
What does the code provide if it ' s available on this system ?
this adapter name
public String name ( ) { if ( System Type . is Mac OSX ( ) || ( System Type . is Windows ( ) && Double . value Of ( System . get Property ( STRING ) ) >= NUM ) ) { return STRING ; } else { return STRING ; } }
public String name ( ) { if ( SystemType . isMacOSX ( ) || ( SystemType . isWindows ( ) && Double . valueOf ( System . getProperty ( STRING ) ) >= _NUM ) ) { return STRING ; } else { return STRING ; } }
55
java-test-10724
java
Where s it s available ?
on this system
public String name ( ) { if ( System Type . is Mac OSX ( ) || ( System Type . is Windows ( ) && Double . value Of ( System . get Property ( STRING ) ) >= NUM ) ) { return STRING ; } else { return STRING ; } }
public String name ( ) { if ( SystemType . isMacOSX ( ) || ( SystemType . isWindows ( ) && Double . valueOf ( System . getProperty ( STRING ) ) >= _NUM ) ) { return STRING ; } else { return STRING ; } }
55
java-test-10727
java
Where will custom implementation of tooctets to ensure a string value too long be truncated properly ?
in view of the space needed by the type , length , and identifier
private static final byte [ ] to Octets ( int identifier , String text ) { byte [ ] s = text . get Bytes ( Standard Charsets . UTF 8 ) ; byte [ ] base = Octet Utils . to Octets ( Attribute Type . VENDOR SPECIFIC , identifier ) ; int max Text Space = Attribute . MAX ATTRIBUTE LENGTH - base . length ; byte [ ] octets ; i...
private static final byte [ ] toOctets ( int identifier , String text ) { byte [ ] s = text . getBytes ( StandardCharsets . UTF_8 ) ; byte [ ] base = OctetUtils . toOctets ( AttributeType . VENDOR_SPECIFIC , identifier ) ; int maxTextSpace = Attribute . MAX_ATTRIBUTE_LENGTH - base . length ; byte [ ] octets ; if ( s . ...
191
java-test-10728
java
What will be truncated in view of the space needed by the type , length , and identifier ?
custom implementation of tooctets to ensure a string value too long
private static final byte [ ] to Octets ( int identifier , String text ) { byte [ ] s = text . get Bytes ( Standard Charsets . UTF 8 ) ; byte [ ] base = Octet Utils . to Octets ( Attribute Type . VENDOR SPECIFIC , identifier ) ; int max Text Space = Attribute . MAX ATTRIBUTE LENGTH - base . length ; byte [ ] octets ; i...
private static final byte [ ] toOctets ( int identifier , String text ) { byte [ ] s = text . getBytes ( StandardCharsets . UTF_8 ) ; byte [ ] base = OctetUtils . toOctets ( AttributeType . VENDOR_SPECIFIC , identifier ) ; int maxTextSpace = Attribute . MAX_ATTRIBUTE_LENGTH - base . length ; byte [ ] octets ; if ( s . ...
191
java-test-10729
java
What does it return if successful ?
the size of the parsed bytes which is the key provider identifier length
private int parse Key Provider Id ( final byte [ ] b , final int off ) throws Parse Exception { final int bytes To Parse Len = b . length - off ; if ( bytes To Parse Len >= key Provider Id Len ) { key Provider Id = Arrays . copy Of Range ( b , off , off + key Provider Id Len ) ; return key Provider Id Len ; } else { th...
private int parseKeyProviderId ( final byte [ ] b , final int off ) throws ParseException { final int bytesToParseLen = b . length - off ; if ( bytesToParseLen >= keyProviderIdLen_ ) { keyProviderId_ = Arrays . copyOfRange ( b , off , off + keyProviderIdLen_ ) ; return keyProviderIdLen_ ; } else { throw new ParseExcept...
88
java-test-10730
java
What does the code skip for any given result object ?
more than one search result
private void remove Duplicates ( ) { m reduced Results . clear ( ) ; Object last = null ; for ( final Search Result r : m results ) { if ( last != r . get Object ( ) ) { last = r . get Object ( ) ; m reduced Results . add ( r ) ; } } }
private void removeDuplicates ( ) { m_reducedResults . clear ( ) ; Object last = null ; for ( final SearchResult r : m_results ) { if ( last != r . getObject ( ) ) { last = r . getObject ( ) ; m_reducedResults . add ( r ) ; } } }
64
java-test-10731
java
For what purpose does the code skip more than one search result ?
for any given result object
private void remove Duplicates ( ) { m reduced Results . clear ( ) ; Object last = null ; for ( final Search Result r : m results ) { if ( last != r . get Object ( ) ) { last = r . get Object ( ) ; m reduced Results . add ( r ) ; } } }
private void removeDuplicates ( ) { m_reducedResults . clear ( ) ; Object last = null ; for ( final SearchResult r : m_results ) { if ( last != r . getObject ( ) ) { last = r . getObject ( ) ; m_reducedResults . add ( r ) ; } } }
64
java-test-10732
java
How does the reduced results list fill the code ?
by skipping more than one search result for any given result object
private void remove Duplicates ( ) { m reduced Results . clear ( ) ; Object last = null ; for ( final Search Result r : m results ) { if ( last != r . get Object ( ) ) { last = r . get Object ( ) ; m reduced Results . add ( r ) ; } } }
private void removeDuplicates ( ) { m_reducedResults . clear ( ) ; Object last = null ; for ( final SearchResult r : m_results ) { if ( last != r . getObject ( ) ) { last = r . getObject ( ) ; m_reducedResults . add ( r ) ; } } }
64
java-test-10733
java
What does the code add to the database ?
a chat
public boolean add Chat ( @ Not Null Chat Impl chat ) { int updated Rows = NUM ; try { final Prepared Statement prepared Statement = connetion . get Prepared Statement ( STRING + STRING ) ; prepared Statement . set Int ( NUM , chat . get Id ( ) ) ; if ( chat . get Access Hash ( ) == null ) { prepared Statement . set Nu...
public boolean addChat ( @ NotNull ChatImpl chat ) { int updatedRows = _NUM ; try { final PreparedStatement preparedStatement = connetion . getPreparedStatement ( STRING + STRING ) ; preparedStatement . setInt ( _NUM , chat . getId ( ) ) ; if ( chat . getAccessHash ( ) == null ) { preparedStatement . setNull ( _NUM , T...
154
java-test-10734
java
Where did irix computers connect through a central gateway ?
on a lan
public static Inet Address find Inet Address ( ) throws Socket Exception , Unknown Host Exception { final Enumeration < Network Interface > enum 1 = Network Interface . get Network Interfaces ( ) ; if ( enum 1 == null ) { final Inet Address ip 1 = Inet Address . get Local Host ( ) ; return ip 1 ; } final List < Inet Ad...
public static InetAddress findInetAddress ( ) throws SocketException , UnknownHostException { final Enumeration < NetworkInterface > enum1 = NetworkInterface . getNetworkInterfaces ( ) ; if ( enum1 == null ) { final InetAddress ip1 = InetAddress . getLocalHost ( ) ; return ip1 ; } final List < InetAddress > allButLoopb...
285
java-test-10735
java
What do we pick ?
the first ip that is not a loopback and not a link local and not private
public static Inet Address find Inet Address ( ) throws Socket Exception , Unknown Host Exception { final Enumeration < Network Interface > enum 1 = Network Interface . get Network Interfaces ( ) ; if ( enum 1 == null ) { final Inet Address ip 1 = Inet Address . get Local Host ( ) ; return ip 1 ; } final List < Inet Ad...
public static InetAddress findInetAddress ( ) throws SocketException , UnknownHostException { final Enumeration < NetworkInterface > enum1 = NetworkInterface . getNetworkInterfaces ( ) ; if ( enum1 == null ) { final InetAddress ip1 = InetAddress . getLocalHost ( ) ; return ip1 ; } final List < InetAddress > allButLoopb...
285
java-test-10736
java
How did irix computers connect on a lan ?
through a central gateway
public static Inet Address find Inet Address ( ) throws Socket Exception , Unknown Host Exception { final Enumeration < Network Interface > enum 1 = Network Interface . get Network Interfaces ( ) ; if ( enum 1 == null ) { final Inet Address ip 1 = Inet Address . get Local Host ( ) ; return ip 1 ; } final List < Inet Ad...
public static InetAddress findInetAddress ( ) throws SocketException , UnknownHostException { final Enumeration < NetworkInterface > enum1 = NetworkInterface . getNetworkInterfaces ( ) ; if ( enum1 == null ) { final InetAddress ip1 = InetAddress . getLocalHost ( ) ; return ip1 ; } final List < InetAddress > allButLoopb...
285
java-test-10737
java
What connected on a lan ?
irix computers
public static Inet Address find Inet Address ( ) throws Socket Exception , Unknown Host Exception { final Enumeration < Network Interface > enum 1 = Network Interface . get Network Interfaces ( ) ; if ( enum 1 == null ) { final Inet Address ip 1 = Inet Address . get Local Host ( ) ; return ip 1 ; } final List < Inet Ad...
public static InetAddress findInetAddress ( ) throws SocketException , UnknownHostException { final Enumeration < NetworkInterface > enum1 = NetworkInterface . getNetworkInterfaces ( ) ; if ( enum1 == null ) { final InetAddress ip1 = InetAddress . getLocalHost ( ) ; return ip1 ; } final List < InetAddress > allButLoopb...
285
java-test-10738
java
How do we iterate ?
through an enumeration of network interfaces on the machine
public static Inet Address find Inet Address ( ) throws Socket Exception , Unknown Host Exception { final Enumeration < Network Interface > enum 1 = Network Interface . get Network Interfaces ( ) ; if ( enum 1 == null ) { final Inet Address ip 1 = Inet Address . get Local Host ( ) ; return ip 1 ; } final List < Inet Ad...
public static InetAddress findInetAddress ( ) throws SocketException , UnknownHostException { final Enumeration < NetworkInterface > enum1 = NetworkInterface . getNetworkInterfaces ( ) ; if ( enum1 == null ) { final InetAddress ip1 = InetAddress . getLocalHost ( ) ; return ip1 ; } final List < InetAddress > allButLoopb...
285
java-test-10739
java
Where is the upper left corner of the rectangle the minimum x , y values ?
the four coordinates
public Rectangle 2 D create Proper Bounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle 2 D . Double ( x , y , w , h ) ; }
public Rectangle2D createProperBounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle2D . Double ( x , y , w , h ) ; }
87
java-test-10740
java
What does the code create ?
a bounding rectangle given the four coordinates , where the upper left corner of the rectangle is the minimum x , y values and the width and height are the difference between xs and ys
public Rectangle 2 D create Proper Bounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle 2 D . Double ( x , y , w , h ) ; }
public Rectangle2D createProperBounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle2D . Double ( x , y , w , h ) ; }
87
java-test-10741
java
What are the difference between xs and ys a ?
the width and height
public Rectangle 2 D create Proper Bounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle 2 D . Double ( x , y , w , h ) ; }
public Rectangle2D createProperBounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle2D . Double ( x , y , w , h ) ; }
87
java-test-10742
java
What is the minimum x , y values the four coordinates ?
the upper left corner of the rectangle
public Rectangle 2 D create Proper Bounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle 2 D . Double ( x , y , w , h ) ; }
public Rectangle2D createProperBounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle2D . Double ( x , y , w , h ) ; }
87
java-test-10743
java
What does the code add to the set ?
a single terminal
public boolean add ( terminal sym ) throws internal error { boolean result ; not null ( sym ) ; result = elements . get ( sym . index ( ) ) ; if ( ! result ) elements . set ( sym . index ( ) ) ; return result ; }
public boolean add ( terminal sym ) throws internal_error { boolean result ; not_null ( sym ) ; result = _elements . get ( sym . index ( ) ) ; if ( ! result ) _elements . set ( sym . index ( ) ) ; return result ; }
53
java-test-10744
java
How does the specified range of the array sort if possible ?
using the given workspace array slice
static void sort ( float [ ] a , int left , int right , float [ ] work , int work Base , int work Len ) { while ( left <= right && Float . is Na N ( a [ right ] ) ) { -- right ; } for ( int k = right ; -- k >= left ; ) { float ak = a [ k ] ; if ( ak != ak ) { a [ k ] = a [ right ] ; a [ right ] = ak ; -- right ; } } do...
static void sort ( float [ ] a , int left , int right , float [ ] work , int workBase , int workLen ) { while ( left <= right && Float . isNaN ( a [ right ] ) ) { -- right ; } for ( int k = right ; -- k >= left ; ) { float ak = a [ k ] ; if ( ak != ak ) { a [ k ] = a [ right ] ; a [ right ] = ak ; -- right ; } } doSort...
278
java-test-10746
java
How does the code split the specified string before width ?
at the last blank
public static List < String > split At Last Blank ( String s , int width ) { List < String > chunks = new Array List < > ( ) ; String tmp = s ; while ( tmp . length ( ) > NUM ) { int index = find Splitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . ch...
public static List < String > splitAtLastBlank ( String s , int width ) { List < String > chunks = new ArrayList < > ( ) ; String tmp = s ; while ( tmp . length ( ) > _NUM ) { int index = findSplitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( _NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . charA...
165
java-test-10747
java
When does the code split the specified string at the last blank ?
before width
public static List < String > split At Last Blank ( String s , int width ) { List < String > chunks = new Array List < > ( ) ; String tmp = s ; while ( tmp . length ( ) > NUM ) { int index = find Splitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . ch...
public static List < String > splitAtLastBlank ( String s , int width ) { List < String > chunks = new ArrayList < > ( ) ; String tmp = s ; while ( tmp . length ( ) > _NUM ) { int index = findSplitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( _NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . charA...
165
java-test-10748
java
Where is it is split if there is no blank before the given width ?
at the next
public static List < String > split At Last Blank ( String s , int width ) { List < String > chunks = new Array List < > ( ) ; String tmp = s ; while ( tmp . length ( ) > NUM ) { int index = find Splitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . ch...
public static List < String > splitAtLastBlank ( String s , int width ) { List < String > chunks = new ArrayList < > ( ) ; String tmp = s ; while ( tmp . length ( ) > _NUM ) { int index = findSplitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( _NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . charA...
165
java-test-10749
java
What is resolveproxyclass extended ?
to acquire ( if present ) the location to determine the class loader to define the proxy class in
protected Class < ? > resolve Proxy Class ( String [ ] interfaces ) throws IO Exception , Class Not Found Exception { Stream Checker checker = stream Checker ; if ( checker != null ) { checker . check Proxy Interface Names ( interfaces ) ; } Object annotation = read Location ( ) ; Class Loader default Loader = skip Def...
protected Class < ? > resolveProxyClass ( String [ ] interfaces ) throws IOException , ClassNotFoundException { StreamChecker checker = streamChecker ; if ( checker != null ) { checker . checkProxyInterfaceNames ( interfaces ) ; } Object annotation = readLocation ( ) ; ClassLoader defaultLoader = skipDefaultResolveClas...
118
java-test-10750
java
What is extended to acquire ( if present ) the location to determine the class loader to define the proxy class in ?
resolveproxyclass
protected Class < ? > resolve Proxy Class ( String [ ] interfaces ) throws IO Exception , Class Not Found Exception { Stream Checker checker = stream Checker ; if ( checker != null ) { checker . check Proxy Interface Names ( interfaces ) ; } Object annotation = read Location ( ) ; Class Loader default Loader = skip Def...
protected Class < ? > resolveProxyClass ( String [ ] interfaces ) throws IOException , ClassNotFoundException { StreamChecker checker = streamChecker ; if ( checker != null ) { checker . checkProxyInterfaceNames ( interfaces ) ; } Object annotation = readLocation ( ) ; ClassLoader defaultLoader = skipDefaultResolveClas...
118
java-test-10751
java
For what purpose did the location acquire ?
to determine the class loader to define the proxy class in
protected Class < ? > resolve Proxy Class ( String [ ] interfaces ) throws IO Exception , Class Not Found Exception { Stream Checker checker = stream Checker ; if ( checker != null ) { checker . check Proxy Interface Names ( interfaces ) ; } Object annotation = read Location ( ) ; Class Loader default Loader = skip Def...
protected Class < ? > resolveProxyClass ( String [ ] interfaces ) throws IOException , ClassNotFoundException { StreamChecker checker = streamChecker ; if ( checker != null ) { checker . checkProxyInterfaceNames ( interfaces ) ; } Object annotation = readLocation ( ) ; ClassLoader defaultLoader = skipDefaultResolveClas...
118
java-test-10753
java
What does the code run ?
an init script from the classpath
private void run Init Script If Required ( String url , Connection connection ) throws SQL Exception { Matcher matcher = INITSCRIPT MATCHING PATTERN . matcher ( url ) ; if ( matcher . matches ( ) ) { String init Script Path = matcher . group ( NUM ) ; try { URL resource = Resources . get Resource ( init Script Path ) ;...
private void runInitScriptIfRequired ( String url , Connection connection ) throws SQLException { Matcher matcher = INITSCRIPT_MATCHING_PATTERN . matcher ( url ) ; if ( matcher . matches ( ) ) { String initScriptPath = matcher . group ( _NUM ) ; try { URL resource = Resources . getResource ( initScriptPath ) ; String s...
173
java-test-10754
java
What does the code return if no esds box is found ?
the position of the esds box within a parent
private static int find Esds Position ( Parsable Byte Array parent , int position , int size ) { int child Atom Position = parent . get Position ( ) ; while ( child Atom Position - position < size ) { parent . set Position ( child Atom Position ) ; int child Atom Size = parent . read Int ( ) ; Assertions . check Argume...
private static int findEsdsPosition ( ParsableByteArray parent , int position , int size ) { int childAtomPosition = parent . getPosition ( ) ; while ( childAtomPosition - position < size ) { parent . setPosition ( childAtomPosition ) ; int childAtomSize = parent . readInt ( ) ; Assertions . checkArgument ( childAtomSi...
120
java-test-10755
java
What does the code generate ?
a byte array containing random data
public static byte [ ] generate Random Bytes ( final int num Bytes ) { final Secure Random rand = new Secure Random ( ) ; final byte [ ] input = new byte [ num Bytes ] ; rand . next Bytes ( input ) ; return input ; }
public static byte [ ] generateRandomBytes ( final int numBytes ) { final SecureRandom rand = new SecureRandom ( ) ; final byte [ ] input = new byte [ numBytes ] ; rand . nextBytes ( input ) ; return input ; }
51
java-test-10756
java
What do a byte array contain ?
random data
public static byte [ ] generate Random Bytes ( final int num Bytes ) { final Secure Random rand = new Secure Random ( ) ; final byte [ ] input = new byte [ num Bytes ] ; rand . next Bytes ( input ) ; return input ; }
public static byte [ ] generateRandomBytes ( final int numBytes ) { final SecureRandom rand = new SecureRandom ( ) ; final byte [ ] input = new byte [ numBytes ] ; rand . nextBytes ( input ) ; return input ; }
51
java-test-10757
java
Why can this take a long time ?
since it spawns external process
protected boolean is Executable Valid ( @ Not Null String executable ) { try { General Command Line command Line = new General Command Line ( ) ; command Line . set Exe Path ( executable ) ; Capturing Process Handler handler = new Capturing Process Handler ( command Line . create Process ( ) , Charset Toolkit . get Def...
protected boolean isExecutableValid ( @ NotNull String executable ) { try { GeneralCommandLine commandLine = new GeneralCommandLine ( ) ; commandLine . setExePath ( executable ) ; CapturingProcessHandler handler = new CapturingProcessHandler ( commandLine . createProcess ( ) , CharsetToolkit . getDefaultSystemCharset (...
213
java-test-10758
java
What do it spawn ?
external process
protected boolean is Executable Valid ( @ Not Null String executable ) { try { General Command Line command Line = new General Command Line ( ) ; command Line . set Exe Path ( executable ) ; Capturing Process Handler handler = new Capturing Process Handler ( command Line . create Process ( ) , Charset Toolkit . get Def...
protected boolean isExecutableValid ( @ NotNull String executable ) { try { GeneralCommandLine commandLine = new GeneralCommandLine ( ) ; commandLine . setExePath ( executable ) ; CapturingProcessHandler handler = new CapturingProcessHandler ( commandLine . createProcess ( ) , CharsetToolkit . getDefaultSystemCharset (...
213
java-test-10759
java
How does this method work ?
great with dp mixture model
public void initialize Atoms For DP ( List < Datum > data , String filename , Random random ) { omega = new Array List < > ( K ) ; dof = new double [ K ] ; beta = new double [ K ] ; if ( filename != null ) { try { loc = Batch Mixture Model . initialize Clusters From File ( filename , K ) ; log . debug ( STRING , loc ) ...
public void initializeAtomsForDP ( List < Datum > data , String filename , Random random ) { omega = new ArrayList < > ( K ) ; dof = new double [ K ] ; beta = new double [ K ] ; if ( filename != null ) { try { loc = BatchMixtureModel . initializeClustersFromFile ( filename , K ) ; log . debug ( STRING , loc ) ; if ( lo...
229
java-test-10760
java
What does the code reset ?
the internal state of this singleton
public void reset Singleton ( ) { root = null ; tmp File Counter . set ( NUM ) ; accessed Files . clear ( ) ; should All Throw IO Exception = BOOL ; classes That Should Throw IO Exception . clear ( ) ; synchronized ( leaking Resources ) { for ( Leaking Resource resource : leaking Resources ) { try { resource . release ...
public void resetSingleton ( ) { root = null ; tmpFileCounter . set ( _NUM ) ; accessedFiles . clear ( ) ; shouldAllThrowIOException = _BOOL ; classesThatShouldThrowIOException . clear ( ) ; synchronized ( leakingResources ) { for ( LeakingResource resource : leakingResources ) { try { resource . release ( ) ; } catch ...
104
java-test-10762
java
When do a simple verification to maintain class invariants do ?
after reading an object from the input stream
private void read Object ( Object Input Stream in ) throws IO Exception , Class Not Found Exception { in . default Read Object ( ) ; if ( choice Limits . length != choice Formats . length ) { throw new Invalid Object Exception ( STRING ) ; } }
private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { in . defaultReadObject ( ) ; if ( choiceLimits . length != choiceFormats . length ) { throw new InvalidObjectException ( STRING ) ; } }
51
java-test-10763
java
What does the code return ?
the name of the lm method
@ Override public String to String ( ) { String coll = collection Model . get Name ( ) ; if ( coll != null ) { return String . format ( Locale . ROOT , STRING , get Name ( ) , coll ) ; } else { return String . format ( Locale . ROOT , STRING , get Name ( ) ) ; } }
@ Override public String toString ( ) { String coll = collectionModel . getName ( ) ; if ( coll != null ) { return String . format ( Locale . ROOT , STRING , getName ( ) , coll ) ; } else { return String . format ( Locale . ROOT , STRING , getName ( ) ) ; } }
68
java-test-10764
java
What does the code determine ?
the path to the file relative to the given directory path
private static String find Relative Path ( String file Path , String dir Path ) { String rel Path ; if ( ! dir Path . ends With ( File . separator ) ) { dir Path = dir Path + File . separator ; } if ( file Path . starts With ( dir Path ) ) { rel Path = file Path . substring ( dir Path . length ( ) ) ; } else { rel Path...
private static String findRelativePath ( String filePath , String dirPath ) { String relPath ; if ( ! dirPath . endsWith ( File . separator ) ) { dirPath = dirPath + File . separator ; } if ( filePath . startsWith ( dirPath ) ) { relPath = filePath . substring ( dirPath . length ( ) ) ; } else { relPath = filePath ; } ...
90
java-test-10765
java
What does the code read ?
a sequence of bit encoded using lzw compression with 12 - bit codewords from standard input
public static void expand ( ) { String [ ] st = new String [ L ] ; int i ; for ( i = NUM ; i < R ; i ++ ) st [ i ] = STRING + ( char ) i ; st [ i ++ ] = STRING ; int codeword = Binary Std In . read Int ( W ) ; if ( codeword == R ) return ; String val = st [ codeword ] ; while ( BOOL ) { Binary Std Out . write ( val ) ;...
public static void expand ( ) { String [ ] st = new String [ L ] ; int i ; for ( i = _NUM ; i < R ; i ++ ) st [ i ] = STRING + ( char ) i ; st [ i ++ ] = STRING ; int codeword = BinaryStdIn . readInt ( W ) ; if ( codeword == R ) return ; String val = st [ codeword ] ; while ( _BOOL ) { BinaryStdOut . write ( val ) ; co...
179
java-test-10766
java
How did lzw compression use from standard input ?
with 12 - bit codewords
public static void expand ( ) { String [ ] st = new String [ L ] ; int i ; for ( i = NUM ; i < R ; i ++ ) st [ i ] = STRING + ( char ) i ; st [ i ++ ] = STRING ; int codeword = Binary Std In . read Int ( W ) ; if ( codeword == R ) return ; String val = st [ codeword ] ; while ( BOOL ) { Binary Std Out . write ( val ) ;...
public static void expand ( ) { String [ ] st = new String [ L ] ; int i ; for ( i = _NUM ; i < R ; i ++ ) st [ i ] = STRING + ( char ) i ; st [ i ++ ] = STRING ; int codeword = BinaryStdIn . readInt ( W ) ; if ( codeword == R ) return ; String val = st [ codeword ] ; while ( _BOOL ) { BinaryStdOut . write ( val ) ; co...
179
java-test-10767
java
How are the offset points computed for accuracy ?
in full double precision
private void compute Offset Segment ( Line Segment seg , int side , double distance , Line Segment offset ) { int side Sign = side == Position . LEFT ? NUM : - NUM ; double dx = seg . p1 . x - seg . p0 . x ; double dy = seg . p1 . y - seg . p0 . y ; double len = Math . sqrt ( dx * dx + dy * dy ) ; double ux = side Sign...
private void computeOffsetSegment ( LineSegment seg , int side , double distance , LineSegment offset ) { int sideSign = side == Position . LEFT ? _NUM : - _NUM ; double dx = seg . p1 . x - seg . p0 . x ; double dy = seg . p1 . y - seg . p0 . y ; double len = Math . sqrt ( dx * dx + dy * dy ) ; double ux = sideSign * d...
163
java-test-10769
java
How is the hash code generated if present ?
using the signer ' s certificate path and the timestamp
public int hash Code ( ) { if ( myhash == - NUM ) { if ( timestamp == null ) { myhash = signer Cert Path . hash Code ( ) ; } else { myhash = signer Cert Path . hash Code ( ) + timestamp . hash Code ( ) ; } } return myhash ; }
public int hashCode ( ) { if ( myhash == - _NUM ) { if ( timestamp == null ) { myhash = signerCertPath . hashCode ( ) ; } else { myhash = signerCertPath . hashCode ( ) + timestamp . hashCode ( ) ; } } return myhash ; }
60
java-test-10771
java
What does method handle ?
time update for pseudotcp logic class
private void update Next Clock ( final Pseudo TCP Base tcp , final Object lock ) { try { long now = Pseudo TCP Base . now ( ) ; synchronized ( tcp ) { tcp . notify Clock ( now ) ; } long interval ; synchronized ( tcp ) { interval = tcp . get Next Clock ( Pseudo TCP Base . now ( ) ) ; } if ( logger . is Loggable ( Level...
private void updateNextClock ( final PseudoTCPBase tcp , final Object lock ) { try { long now = PseudoTCPBase . now ( ) ; synchronized ( tcp ) { tcp . notifyClock ( now ) ; } long interval ; synchronized ( tcp ) { interval = tcp . getNextClock ( PseudoTCPBase . now ( ) ) ; } if ( logger . isLoggable ( Level . FINEST ) ...
151
java-test-10772
java
For what purpose does the object implement the readfrom method ?
to restore its contents by calling the methods of datainput for primitive types and strings or calling readexternal for other objects
public void read From ( Data Input in ) throws IO Exception { type Id = in . read Int ( ) ; type Name = U . read String ( in ) ; int fields Size = in . read Int ( ) ; if ( fields Size == - NUM ) fields = null ; else { fields = new Hash Map < > ( ) ; for ( int i = NUM ; i < fields Size ; i ++ ) { String field Name = U ....
public void readFrom ( DataInput in ) throws IOException { typeId = in . readInt ( ) ; typeName = U . readString ( in ) ; int fieldsSize = in . readInt ( ) ; if ( fieldsSize == - _NUM ) fields = null ; else { fields = new HashMap < > ( ) ; for ( int i = _NUM ; i < fieldsSize ; i ++ ) { String fieldName = U . readString...
223
java-test-10773
java
How does its contents restore ?
by calling the methods of datainput for primitive types and strings or calling readexternal for other objects
public void read From ( Data Input in ) throws IO Exception { type Id = in . read Int ( ) ; type Name = U . read String ( in ) ; int fields Size = in . read Int ( ) ; if ( fields Size == - NUM ) fields = null ; else { fields = new Hash Map < > ( ) ; for ( int i = NUM ; i < fields Size ; i ++ ) { String field Name = U ....
public void readFrom ( DataInput in ) throws IOException { typeId = in . readInt ( ) ; typeName = U . readString ( in ) ; int fieldsSize = in . readInt ( ) ; if ( fieldsSize == - _NUM ) fields = null ; else { fields = new HashMap < > ( ) ; for ( int i = _NUM ; i < fieldsSize ; i ++ ) { String fieldName = U . readString...
223
java-test-10774
java
What do fields add ?
to parameterpanel ( gridlayout )
private void stat Init ( ) { label 1 . set Label For ( text Field 1 ) ; label 1 . set Text ( STRING ) ; label 1 . set Horizontal Alignment ( J Label . LEADING ) ; text Field 1 . set Background ( Adempiere PLAF . get Info Background ( ) ) ; label 2 . set Label For ( text Field 2 ) ; label 2 . set Text ( STRING ) ; label...
private void statInit ( ) { label1 . setLabelFor ( textField1 ) ; label1 . setText ( STRING ) ; label1 . setHorizontalAlignment ( JLabel . LEADING ) ; textField1 . setBackground ( AdempierePLAF . getInfoBackground ( ) ) ; label2 . setLabelFor ( textField2 ) ; label2 . setText ( STRING ) ; label2 . setHorizontalAlignmen...
342
java-test-10777
java
How does a bunch of swfs combine into one swf ?
by concatenate
public Hash Map < String , String > generate SWF By Combine ( List < String > swfs , String outputswf , int fps ) { List < String > argv List = Arrays . as List ( new String [ ] { get Path To Swf Tools ( ) + STRING + exec Ext , STRING , STRING , STRING , outputswf , STRING , Integer . to String ( fps ) , STRING , STRIN...
public HashMap < String , String > generateSWFByCombine ( List < String > swfs , String outputswf , int fps ) { List < String > argvList = Arrays . asList ( new String [ ] { getPathToSwfTools ( ) + STRING + execExt , STRING , STRING , STRING , outputswf , STRING , Integer . toString ( fps ) , STRING , STRING } ) ; argv...
113
java-test-10778
java
For what purpose did total shared storage capacity require ?
for solution
public double calculate Usable Capacity ( double storageparentusablecapacity , double storagereplicausablecapacity , double storagecloneusablecapacity , double storagepersistentusablecapacity , double storagesuspendusablecapacity , double swappowerstatecapacityreduction ) { double d = ( storageparentusablecapacity + st...
public double calculateUsableCapacity ( double storageparentusablecapacity , double storagereplicausablecapacity , double storagecloneusablecapacity , double storagepersistentusablecapacity , double storagesuspendusablecapacity , double swappowerstatecapacityreduction ) { double d = ( storageparentusablecapacity + stor...
62
java-test-10780
java
What does the code translate into a big endian int ?
a little endian int
public int read LE Int ( ) throws IO Exception { int byte 1 , byte 2 , byte 3 , byte 4 ; synchronized ( this ) { byte 1 = in . read ( ) ; byte 2 = in . read ( ) ; byte 3 = in . read ( ) ; byte 4 = in . read ( ) ; } if ( byte 4 == - NUM ) { throw new EOF Exception ( ) ; } return ( byte 4 << NUM ) + ( byte 3 << NUM ) + (...
public int readLEInt ( ) throws IOException { int byte1 , byte2 , byte3 , byte4 ; synchronized ( this ) { byte1 = in . read ( ) ; byte2 = in . read ( ) ; byte3 = in . read ( ) ; byte4 = in . read ( ) ; } if ( byte4 == - _NUM ) { throw new EOFException ( ) ; } return ( byte4 << _NUM ) + ( byte3 << _NUM ) + ( byte2 << _N...
109
java-test-10781
java
When do results find ?
after map changes
@ Override public void event Happened ( Map Event event ) { if ( event . get Type ( ) == Map Event . Type . MAP CLEARED || event . get Type ( ) == Map Event . Type . MAP NEW ) { entity Finder = null ; update Results ( BOOL ) ; } }
@ Override public void eventHappened ( MapEvent event ) { if ( event . getType ( ) == MapEvent . Type . MAP_CLEARED || event . getType ( ) == MapEvent . Type . MAP_NEW ) { entityFinder = null ; updateResults ( _BOOL ) ; } }
58
java-test-10782
java
What changed dim ?
changing data
private void run Par For Repeated Opt Test ( boolean reuse Partitioned Data , boolean update , boolean changed Dim , Exec Type et , int num Expected MR ) { RUNTIME PLATFORM platform Old = rtplatform ; double memfactor Old = Optimizer Utils . MEM UTIL FACTOR ; boolean reuse Old = Par For Program Block . ALLOW REUSE PART...
private void runParForRepeatedOptTest ( boolean reusePartitionedData , boolean update , boolean changedDim , ExecType et , int numExpectedMR ) { RUNTIME_PLATFORM platformOld = rtplatform ; double memfactorOld = OptimizerUtils . MEM_UTIL_FACTOR ; boolean reuseOld = ParForProgramBlock . ALLOW_REUSE_PARTITION_VARS ; Strin...
505
java-test-10783
java
What did changing data change ?
dim
private void run Par For Repeated Opt Test ( boolean reuse Partitioned Data , boolean update , boolean changed Dim , Exec Type et , int num Expected MR ) { RUNTIME PLATFORM platform Old = rtplatform ; double memfactor Old = Optimizer Utils . MEM UTIL FACTOR ; boolean reuse Old = Par For Program Block . ALLOW REUSE PART...
private void runParForRepeatedOptTest ( boolean reusePartitionedData , boolean update , boolean changedDim , ExecType et , int numExpectedMR ) { RUNTIME_PLATFORM platformOld = rtplatform ; double memfactorOld = OptimizerUtils . MEM_UTIL_FACTOR ; boolean reuseOld = ParForProgramBlock . ALLOW_REUSE_PARTITION_VARS ; Strin...
505
java-test-10784
java
When did the path follow ?
while traveling from one vertex of the box
protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ...
protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens...
165
java-test-10785
java
What has 4 vertices in dimension 3 ?
a simplex
protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ...
protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens...
165
java-test-10786
java
What has would be imply the start simplex would be : { ( 1 , 1 , 1 ) , ( 2 , 1 , 1 ) , ( 2 , 11 , 1 ) , ( 2 , 11 , 3 ) } . the first vertex would be set to the start point at ( 1 , 1 , 1 ) and the last vertex would be set to the diagonally opposite vertex at ( 2 , 11 , 3 ) in dimension 3 ?
the start point to ( 1 , 1 , 1 )
protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ...
protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens...
165
java-test-10787
java
In which direction do the diagonally opposite vertex move ?
only along the box edges
protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ...
protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens...
165
java-test-10788
java
What has the start point to ( 1 , 1 , 1 ) would be imply in dimension 3 ?
the start simplex would be : { ( 1 , 1 , 1 ) , ( 2 , 1 , 1 ) , ( 2 , 11 , 1 ) , ( 2 , 11 , 3 ) } . the first vertex would be set to the start point at ( 1 , 1 , 1 ) and the last vertex would be set to the diagonally opposite vertex at ( 2 , 11 , 3 )
protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ...
protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens...
165
java-test-10789
java
When is it built as the path followed ?
while traveling from one vertex of the box to the diagonally opposite vertex moving only along the box edges
protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ...
protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens...
165
java-test-10790
java
What will be located at the start point of the optimization ?
the first vertex of the box
protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ...
protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens...
165
java-test-10791
java
Where will the first vertex of the box be located ?
at the start point of the optimization
protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ...
protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens...
165
java-test-10792
java
How is it built while traveling from one vertex of the box to the diagonally opposite vertex moving only along the box edges ?
as the path followed
protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ...
protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens...
165
java-test-10801
java
What does this private method create just ?
a number of files with a specific extension
private void create File ( int number , String extention ) { for ( int i = NUM ; i < number ; i ++ ) { try { Buffered Writer output = new Buffered Writer ( new File Writer ( new File ( text Input Folder + STRING + String . value Of ( i ) + extention ) ) ) ; try { output . write ( STRING ) ; output . write ( String . va...
private void createFile ( int number , String extention ) { for ( int i = _NUM ; i < number ; i ++ ) { try { BufferedWriter output = new BufferedWriter ( new FileWriter ( new File ( textInputFolder + STRING + String . valueOf ( i ) + extention ) ) ) ; try { output . write ( STRING ) ; output . write ( String . valueOf ...
114
java-test-10802
java
What does the code write ?
a tag with a name
private void write Tag ( String name , Tag tag ) throws IO Exception { Tag Type type = tag . get Type ( ) ; byte [ ] name Bytes = name . get Bytes ( Standard Charsets . UTF 8 ) ; if ( type == Tag Type . END ) { throw new IO Exception ( STRING ) ; } os . write Byte ( type . get Id ( ) ) ; os . write Short ( name Bytes ....
private void writeTag ( String name , Tag tag ) throws IOException { TagType type = tag . getType ( ) ; byte [ ] nameBytes = name . getBytes ( StandardCharsets . UTF_8 ) ; if ( type == TagType . END ) { throw new IOException ( STRING ) ; } os . writeByte ( type . getId ( ) ) ; os . writeShort ( nameBytes . length ) ; o...
103
java-test-10803
java
What does the code translate ?
a little endian long
public long read LE Long ( ) throws IO Exception { long byte 1 = in . read ( ) ; long byte 2 = in . read ( ) ; long byte 3 = in . read ( ) ; long byte 4 = in . read ( ) ; long byte 5 = in . read ( ) ; long byte 6 = in . read ( ) ; long byte 7 = in . read ( ) ; long byte 8 = in . read ( ) ; if ( byte 8 == - NUM ) { thro...
public long readLELong ( ) throws IOException { long byte1 = in . read ( ) ; long byte2 = in . read ( ) ; long byte3 = in . read ( ) ; long byte4 = in . read ( ) ; long byte5 = in . read ( ) ; long byte6 = in . read ( ) ; long byte7 = in . read ( ) ; long byte8 = in . read ( ) ; if ( byte8 == - _NUM ) { throw new EOFEx...
162
java-test-10804
java
What does the code create ?
a subset of vertices detected in a specific iteration
public static < V extends Sampled Vertex > Set < V > create Detected Partition ( Collection < V > vertices , int iteration ) { Set < V > partition = new Hash Set < V > ( ) ; for ( V vertex : vertices ) { if ( vertex . is Detected ( ) ) { if ( vertex . get Iteration Detected ( ) == iteration ) vertices . add ( vertex ) ...
public static < V extends SampledVertex > Set < V > createDetectedPartition ( Collection < V > vertices , int iteration ) { Set < V > partition = new HashSet < V > ( ) ; for ( V vertex : vertices ) { if ( vertex . isDetected ( ) ) { if ( vertex . getIterationDetected ( ) == iteration ) vertices . add ( vertex ) ; } } r...
84
java-test-10805
java
What do the settings describe ?
how to handle certain debugger events to the debug client
private void send Debugger Event Settings ( ) { try { final Debugger Event Settings Storage event Settings Storage = new Debugger Event Settings Storage ( m debugger , m debug Target ) ; m debugger . set Debugger Event Settings ( event Settings Storage . deserialize ( ) ) ; } catch ( final Debug Exception Wrapper excep...
private void sendDebuggerEventSettings ( ) { try { final DebuggerEventSettingsStorage eventSettingsStorage = new DebuggerEventSettingsStorage ( m_debugger , m_debugTarget ) ; m_debugger . setDebuggerEventSettings ( eventSettingsStorage . deserialize ( ) ) ; } catch ( final DebugExceptionWrapper exception ) { CUtilityFu...
206
java-test-10806
java
What does the code send ?
the settings describing how to handle certain debugger events to the debug client
private void send Debugger Event Settings ( ) { try { final Debugger Event Settings Storage event Settings Storage = new Debugger Event Settings Storage ( m debugger , m debug Target ) ; m debugger . set Debugger Event Settings ( event Settings Storage . deserialize ( ) ) ; } catch ( final Debug Exception Wrapper excep...
private void sendDebuggerEventSettings ( ) { try { final DebuggerEventSettingsStorage eventSettingsStorage = new DebuggerEventSettingsStorage ( m_debugger , m_debugTarget ) ; m_debugger . setDebuggerEventSettings ( eventSettingsStorage . deserialize ( ) ) ; } catch ( final DebugExceptionWrapper exception ) { CUtilityFu...
206
java-test-10813
java
How are both names and values encoded before being added to the buffer ?
using the urlencoder
private void append Buffer ( String Builder buffer , String name , String value ) { if ( buffer . length ( ) > NUM ) { buffer . append ( STRING ) ; } String encoded Name = URL Encoder . encode ( name ) ; buffer . append ( encoded Name ) ; buffer . append ( STRING ) ; String encoded Value = URL Encoder . encode ( value ...
private void appendBuffer ( StringBuilder buffer , String name , String value ) { if ( buffer . length ( ) > _NUM ) { buffer . append ( STRING ) ; } String encodedName = URLEncoder . encode ( name ) ; buffer . append ( encodedName ) ; buffer . append ( STRING ) ; String encodedValue = URLEncoder . encode ( value ) ; bu...
83
java-test-10814
java
When are both names and values encoded using the urlencoder ?
before being added to the buffer
private void append Buffer ( String Builder buffer , String name , String value ) { if ( buffer . length ( ) > NUM ) { buffer . append ( STRING ) ; } String encoded Name = URL Encoder . encode ( name ) ; buffer . append ( encoded Name ) ; buffer . append ( STRING ) ; String encoded Value = URL Encoder . encode ( value ...
private void appendBuffer ( StringBuilder buffer , String name , String value ) { if ( buffer . length ( ) > _NUM ) { buffer . append ( STRING ) ; } String encodedName = URLEncoder . encode ( name ) ; buffer . append ( encodedName ) ; buffer . append ( STRING ) ; String encodedValue = URLEncoder . encode ( value ) ; bu...
83
java-test-10815
java
What did the code check ?
it ' s the right version
public static Map < String , Object > load Json Model ( File js File ) { try { Map < String , Object > model = Java Script Resolver . read Json Model ( js File ) ; if ( model == null ) { throw new Compiler Error Exception ( STRING + js File . get Absolute Path ( ) ) ; } if ( ! model . contains Key ( STRING ) ) { throw ...
public static Map < String , Object > loadJsonModel ( File jsFile ) { try { Map < String , Object > model = JavaScriptResolver . readJsonModel ( jsFile ) ; if ( model == null ) { throw new CompilerErrorException ( STRING + jsFile . getAbsolutePath ( ) ) ; } if ( ! model . containsKey ( STRING ) ) { throw new CeylonRunJ...
118
java-test-10816
java
What did the code read ?
the metamodel declaration from a js file
public static Map < String , Object > load Json Model ( File js File ) { try { Map < String , Object > model = Java Script Resolver . read Json Model ( js File ) ; if ( model == null ) { throw new Compiler Error Exception ( STRING + js File . get Absolute Path ( ) ) ; } if ( ! model . contains Key ( STRING ) ) { throw ...
public static Map < String , Object > loadJsonModel ( File jsFile ) { try { Map < String , Object > model = JavaScriptResolver . readJsonModel ( jsFile ) ; if ( model == null ) { throw new CompilerErrorException ( STRING + jsFile . getAbsolutePath ( ) ) ; } if ( ! model . containsKey ( STRING ) ) { throw new CeylonRunJ...
118
java-test-10817
java
What does the code add to the config ?
a style
public Resources Poet add Style ( String name , @ Nullable String parent Ref , @ Nullable List < Style Item > style Items ) { Element element = document . create Element ( STRING ) ; element . set Attribute ( STRING , name ) ; if ( parent Ref != null ) { element . set Attribute ( STRING , parent Ref ) ; } if ( style It...
public ResourcesPoet addStyle ( String name , @ Nullable String parentRef , @ Nullable List < StyleItem > styleItems ) { Element element = document . createElement ( STRING ) ; element . setAttribute ( STRING , name ) ; if ( parentRef != null ) { element . setAttribute ( STRING , parentRef ) ; } if ( styleItems != null...
152
java-test-10818
java
What does the code write to nce cs memory as long as there are no user input errors ?
all bytes
private boolean save Macro ( ) { if ( first Time ) { try { Thread . sleep ( first Time Sleep ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } first Time = BOOL ; byte [ ] macro Accy = new byte [ macro Size ] ; int index = NUM ; int accy Num = NUM ; accy Num = get Accy Row ( macro Accy , index ,...
private boolean saveMacro ( ) { if ( firstTime ) { try { Thread . sleep ( firstTimeSleep ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } firstTime = _BOOL ; byte [ ] macroAccy = new byte [ macroSize ] ; int index = _NUM ; int accyNum = _NUM ; accyNum = getAccyRow ( macroAccy , index , textAccy1 ,...
628
java-test-10819
java
When does the code write all bytes to nce cs memory ?
as long as there are no user input errors
private boolean save Macro ( ) { if ( first Time ) { try { Thread . sleep ( first Time Sleep ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } first Time = BOOL ; byte [ ] macro Accy = new byte [ macro Size ] ; int index = NUM ; int accy Num = NUM ; accy Num = get Accy Row ( macro Accy , index ,...
private boolean saveMacro ( ) { if ( firstTime ) { try { Thread . sleep ( firstTimeSleep ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } firstTime = _BOOL ; byte [ ] macroAccy = new byte [ macroSize ] ; int index = _NUM ; int accyNum = _NUM ; accyNum = getAccyRow ( macroAccy , index , textAccy1 ,...
628
java-test-10820
java
How did the associated sessions initialize for a given set of starting tasks for a given set of starting tasks ?
with a proper blocking semaphore and value of number of tasks to be run
protected void initialize Task Done ( Set < Task Image Container > tasks , Optional < Runnable > runnable When Done ) { Set < Capture Session > session Set = new Hash Set < > ( ) ; Map < Capture Session , Integer > session Task Count = new Hash Map < > ( ) ; for ( Task Image Container task : tasks ) { session Set . add...
protected void initializeTaskDone ( Set < TaskImageContainer > tasks , Optional < Runnable > runnableWhenDone ) { Set < CaptureSession > sessionSet = new HashSet < > ( ) ; Map < CaptureSession , Integer > sessionTaskCount = new HashMap < > ( ) ; for ( TaskImageContainer task : tasks ) { sessionSet . add ( task . mSessi...
240
java-test-10821
java
For what purpose did the associated sessions initialize with a proper blocking semaphore and value of number of tasks to be run ?
for a given set of starting tasks
protected void initialize Task Done ( Set < Task Image Container > tasks , Optional < Runnable > runnable When Done ) { Set < Capture Session > session Set = new Hash Set < > ( ) ; Map < Capture Session , Integer > session Task Count = new Hash Map < > ( ) ; for ( Task Image Container task : tasks ) { session Set . add...
protected void initializeTaskDone ( Set < TaskImageContainer > tasks , Optional < Runnable > runnableWhenDone ) { Set < CaptureSession > sessionSet = new HashSet < > ( ) ; Map < CaptureSession , Integer > sessionTaskCount = new HashMap < > ( ) ; for ( TaskImageContainer task : tasks ) { sessionSet . add ( task . mSessi...
240
java-test-10822
java
What does the code initialize ?
the java servlet
@ Override public void init ( ) throws Servlet Exception { try { destination Configuration = get Destination Configuration ( ) ; } catch ( IO Exception e ) { throw new Servlet Exception ( e . get Message ( ) , e ) ; } try { destination Url = get Destination Url ( ) ; } catch ( IO Exception e ) { throw new Servlet Excep...
@ Override public void init ( ) throws ServletException { try { destinationConfiguration = getDestinationConfiguration ( ) ; } catch ( IOException e ) { throw new ServletException ( e . getMessage ( ) , e ) ; } try { destinationUrl = getDestinationUrl ( ) ; } catch ( IOException e ) { throw new ServletException ( e . g...
82
java-test-10824
java
What does the code translate the os name ?
to folder name
private static String translate OS Name To Folder Name ( String os Name ) { if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } e...
private static String translateOSNameToFolderName ( String osName ) { if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else { retu...
94
java-test-10825
java
What does the code translate to folder name ?
the os name
private static String translate OS Name To Folder Name ( String os Name ) { if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } e...
private static String translateOSNameToFolderName ( String osName ) { if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else { retu...
94
java-test-10826
java
Where does all of the text consume ?
in the next word
private void parse Text ( ) { String Builder buf = new String Builder ( ) ; int start = next Char ; do { char ch = text . char At ( next Char ++ ) ; switch ( ch ) { case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING...
private void parseText ( ) { StringBuilder buf = new StringBuilder ( ) ; int start = nextChar ; do { char ch = text . charAt ( nextChar ++ ) ; switch ( ch ) { case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf...
166
java-test-10827
java
What consumes in the next word ?
all of the text
private void parse Text ( ) { String Builder buf = new String Builder ( ) ; int start = next Char ; do { char ch = text . char At ( next Char ++ ) ; switch ( ch ) { case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING...
private void parseText ( ) { StringBuilder buf = new StringBuilder ( ) ; int start = nextChar ; do { char ch = text . charAt ( nextChar ++ ) ; switch ( ch ) { case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf...
166