id
stringlengths
11
16
language
stringclasses
2 values
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-5383
java
What did by the xml dom wrapper use the code internally ?
to check if the subvariable name is just an element name , or a more complex xpath expression
@ Deprecated static public boolean is XMLID ( String name ) { int ln = name . length ( ) ; for ( int i = NUM ; i < ln ; i ++ ) { char c = name . char At ( i ) ; if ( i == NUM && ( c == STRING || c == STRING || Character . is Digit ( c ) ) ) { return BOOL ; } if ( ! Character . is Letter Or Digit ( c ) && c != STRING &&...
@ Deprecated static public boolean isXMLID ( String name ) { int ln = name . length ( ) ; for ( int i = _NUM ; i < ln ; i ++ ) { char c = name . charAt ( i ) ; if ( i == _NUM && ( c == STRING || c == STRING || Character . isDigit ( c ) ) ) { return _BOOL ; } if ( ! Character . isLetterOrDigit ( c ) && c != STRING && c ...
147
java-test-5384
java
What used to check if the subvariable name is just an element name , or a more complex xpath expression the code internally ?
by the xml dom wrapper
@ Deprecated static public boolean is XMLID ( String name ) { int ln = name . length ( ) ; for ( int i = NUM ; i < ln ; i ++ ) { char c = name . char At ( i ) ; if ( i == NUM && ( c == STRING || c == STRING || Character . is Digit ( c ) ) ) { return BOOL ; } if ( ! Character . is Letter Or Digit ( c ) && c != STRING &&...
@ Deprecated static public boolean isXMLID ( String name ) { int ln = name . length ( ) ; for ( int i = _NUM ; i < ln ; i ++ ) { char c = name . charAt ( i ) ; if ( i == _NUM && ( c == STRING || c == STRING || Character . isDigit ( c ) ) ) { return _BOOL ; } if ( ! Character . isLetterOrDigit ( c ) && c != STRING && c ...
147
java-test-5386
java
What will observe this event ?
all object which register this event
public void trigger Event ( E Event event , Bundle data ) { Set < Subscribe > register List = m Events . get ( event ) ; if ( register List == null ) { return ; } if ( ! register List . is Empty ( ) ) { for ( Iterator < Subscribe > it = register List . iterator ( ) ; it . has Next ( ) ; ) { Subscribe subscribe = it . n...
public void triggerEvent ( EEvent event , Bundle data ) { Set < Subscribe > registerList = mEvents . get ( event ) ; if ( registerList == null ) { return ; } if ( ! registerList . isEmpty ( ) ) { for ( Iterator < Subscribe > it = registerList . iterator ( ) ; it . hasNext ( ) ; ) { Subscribe subscribe = it . next ( ) ;...
96
java-test-5387
java
What register this event ?
all object
public void trigger Event ( E Event event , Bundle data ) { Set < Subscribe > register List = m Events . get ( event ) ; if ( register List == null ) { return ; } if ( ! register List . is Empty ( ) ) { for ( Iterator < Subscribe > it = register List . iterator ( ) ; it . has Next ( ) ; ) { Subscribe subscribe = it . n...
public void triggerEvent ( EEvent event , Bundle data ) { Set < Subscribe > registerList = mEvents . get ( event ) ; if ( registerList == null ) { return ; } if ( ! registerList . isEmpty ( ) ) { for ( Iterator < Subscribe > it = registerList . iterator ( ) ; it . hasNext ( ) ; ) { Subscribe subscribe = it . next ( ) ;...
96
java-test-5388
java
What did the code construct ?
a new rsapublickey
public RSA Public Key parse PEM Public Key ( String pem ) throws General Security Exception { try { byte [ ] bs = decode Ascii Armored PEM ( pem ) ; Byte Buffer data = Byte Buffer . wrap ( bs ) ; final ASN 1 Object ob = asn 1 Parser . parse ASN 1 ( data ) ; final List < ASN 1 Object > seq = asn 1 Object To Sequence ( o...
public RSAPublicKey parsePEMPublicKey ( String pem ) throws GeneralSecurityException { try { byte [ ] bs = decodeAsciiArmoredPEM ( pem ) ; ByteBuffer data = ByteBuffer . wrap ( bs ) ; final ASN1Object ob = asn1Parser . parseASN1 ( data ) ; final List < ASN1Object > seq = asn1ObjectToSequence ( ob , _NUM ) ; final BigIn...
153
java-test-5389
java
What does the code compare with another object instance ?
the current object instance
public boolean equals ( Object object ) { if ( ! ( object instanceof Object Instance ) ) { return BOOL ; } Object Instance val = ( Object Instance ) object ; if ( ! name . equals ( val . get Object Name ( ) ) ) return BOOL ; if ( class Name == null ) return ( val . get Class Name ( ) == null ) ; return class Name . equ...
public boolean equals ( Object object ) { if ( ! ( object instanceof ObjectInstance ) ) { return _BOOL ; } ObjectInstance val = ( ObjectInstance ) object ; if ( ! name . equals ( val . getObjectName ( ) ) ) return _BOOL ; if ( className == null ) return ( val . getClassName ( ) == null ) ; return className . equals ( v...
88
java-test-5390
java
What does the code create ?
a new basic condition , given a variable label , an expected value , and a relation to hold between the variable and its value
public Basic Condition ( String variable , Value value , Relation relation ) { this . variable = Template . create ( variable ) ; this . template Value = Template . create ( value . to String ( ) ) ; this . ground Value = value ; this . relation = relation ; }
public BasicCondition ( String variable , Value value , Relation relation ) { this . variable = Template . create ( variable ) ; this . templateValue = Template . create ( value . toString ( ) ) ; this . groundValue = value ; this . relation = relation ; }
56
java-test-5395
java
For what purpose be ttc name be lowercase ?
to avoid issues of capitalisation when used for lookup
public static String [ ] read Font Names ( final Font Data font Data , final int mode ) { final Font File 2 current Font File = new Font File 2 ( font Data ) ; final int font Count = current Font File . get Font Count ( ) ; final String [ ] font Names = new String [ font Count ] ; for ( int i = NUM ; i < font Count ; i...
public static String [ ] readFontNames ( final FontData fontData , final int mode ) { final FontFile2 currentFontFile = new FontFile2 ( fontData ) ; final int fontCount = currentFontFile . getFontCount ( ) ; final String [ ] fontNames = new String [ fontCount ] ; for ( int i = _NUM ; i < fontCount ; i ++ ) { currentFon...
270
java-test-5396
java
When do this relation follow automatically ?
when defining dynamic sub - domains
private boolean use Relation ( Relation rel , Relation Reference ref ) { if ( rel . get Left Cardinality ( ) != Cardinality . MANY && rel . get Right Cardinality ( ) != Cardinality . MANY ) { return ref . get Direction ( ) == Relation Direction . LEFT TO RIGHT ; } else if ( rel . get Left Cardinality ( ) != Cardinality...
private boolean useRelation ( Relation rel , RelationReference ref ) { if ( rel . getLeftCardinality ( ) != Cardinality . MANY && rel . getRightCardinality ( ) != Cardinality . MANY ) { return ref . getDirection ( ) == RelationDirection . LEFT_TO_RIGHT ; } else if ( rel . getLeftCardinality ( ) != Cardinality . MANY ) ...
127
java-test-5399
java
What does the code add to the current window ?
a single transition rule
public Zone Rules Builder add Rule To Window ( Local Date Time transition Date Time , Time Definition time Definition , int saving Amount Secs ) { Objects . require Non Null ( transition Date Time , STRING ) ; return add Rule To Window ( transition Date Time . get Year ( ) , transition Date Time . get Year ( ) , transi...
public ZoneRulesBuilder addRuleToWindow ( LocalDateTime transitionDateTime , TimeDefinition timeDefinition , int savingAmountSecs ) { Objects . requireNonNull ( transitionDateTime , STRING ) ; return addRuleToWindow ( transitionDateTime . getYear ( ) , transitionDateTime . getYear ( ) , transitionDateTime . getMonth ( ...
107
java-test-5400
java
What does this add ?
a rule such that the offset , expressed as a daylight savings amount , changes at the specified date - time
public Zone Rules Builder add Rule To Window ( Local Date Time transition Date Time , Time Definition time Definition , int saving Amount Secs ) { Objects . require Non Null ( transition Date Time , STRING ) ; return add Rule To Window ( transition Date Time . get Year ( ) , transition Date Time . get Year ( ) , transi...
public ZoneRulesBuilder addRuleToWindow ( LocalDateTime transitionDateTime , TimeDefinition timeDefinition , int savingAmountSecs ) { Objects . requireNonNull ( transitionDateTime , STRING ) ; return addRuleToWindow ( transitionDateTime . getYear ( ) , transitionDateTime . getYear ( ) , transitionDateTime . getMonth ( ...
107
java-test-5404
java
What does the code create ?
an annotation with the correct times and endpoint
private static Annotation create Zipkin Annotation ( String value , long time , Endpoint ep , boolean send Request ) { Annotation annotation = new Annotation ( ) ; annotation . set Host ( ep ) ; if ( send Request ) { annotation . set Timestamp ( time * NUM ) ; } else { annotation . set Timestamp ( time * NUM ) ; } anno...
private static Annotation createZipkinAnnotation ( String value , long time , Endpoint ep , boolean sendRequest ) { Annotation annotation = new Annotation ( ) ; annotation . setHost ( ep ) ; if ( sendRequest ) { annotation . setTimestamp ( time * _NUM ) ; } else { annotation . setTimestamp ( time * _NUM ) ; } annotatio...
79
java-test-5405
java
What does it use ?
the misc . breakline method
public String most Of String ( ) { String type Name = STRING ; switch ( type ) { case BUILTIN : type Name = STRING ; break ; case NUMBER : type Name = STRING ; break ; case STRING : type Name = STRING ; break ; case IDENT : type Name = STRING ; break ; case OTHER : type Name = STRING ; break ; case REP CHAR : type Name...
public String mostOfString ( ) { String typeName = STRING ; switch ( type ) { case BUILTIN : typeName = STRING ; break ; case NUMBER : typeName = STRING ; break ; case STRING : typeName = STRING ; break ; case IDENT : typeName = STRING ; break ; case OTHER : typeName = STRING ; break ; case REP_CHAR : typeName = STRING...
201
java-test-5406
java
How does it split it into reasonably - sized lines ?
using the misc . breakline method
public String most Of String ( ) { String type Name = STRING ; switch ( type ) { case BUILTIN : type Name = STRING ; break ; case NUMBER : type Name = STRING ; break ; case STRING : type Name = STRING ; break ; case IDENT : type Name = STRING ; break ; case OTHER : type Name = STRING ; break ; case REP CHAR : type Name...
public String mostOfString ( ) { String typeName = STRING ; switch ( type ) { case BUILTIN : typeName = STRING ; break ; case NUMBER : typeName = STRING ; break ; case STRING : typeName = STRING ; break ; case IDENT : typeName = STRING ; break ; case OTHER : typeName = STRING ; break ; case REP_CHAR : typeName = STRING...
201
java-test-5407
java
When does the code add the column ?
after the given previous column
public void add Column ( Column previous Column , Column column ) { if ( column != null ) { if ( previous Column == null ) { columns . add ( NUM , column ) ; } else { columns . add ( columns . index Of ( previous Column ) , column ) ; } } }
public void addColumn ( Column previousColumn , Column column ) { if ( column != null ) { if ( previousColumn == null ) { columns . add ( _NUM , column ) ; } else { columns . add ( columns . indexOf ( previousColumn ) , column ) ; } } }
59
java-test-5408
java
When did the ssl communications channel use ?
when connecting to a mysql server that understands ssl
private void negotiate SSL Connection ( String user , String password , String database , int pack Length ) throws SQL Exception { if ( ! Export Controlled . enabled ( ) ) { throw new Connection Feature Not Available Exception ( this . connection , this . last Packet Sent Time Ms , null ) ; } if ( ( this . server Capab...
private void negotiateSSLConnection ( String user , String password , String database , int packLength ) throws SQLException { if ( ! ExportControlled . enabled ( ) ) { throw new ConnectionFeatureNotAvailableException ( this . connection , this . lastPacketSentTimeMs , null ) ; } if ( ( this . serverCapabilities & CLIE...
207
java-test-5409
java
What does the code negotiate ?
the ssl communications channel used when connecting to a mysql server that understands ssl
private void negotiate SSL Connection ( String user , String password , String database , int pack Length ) throws SQL Exception { if ( ! Export Controlled . enabled ( ) ) { throw new Connection Feature Not Available Exception ( this . connection , this . last Packet Sent Time Ms , null ) ; } if ( ( this . server Capab...
private void negotiateSSLConnection ( String user , String password , String database , int packLength ) throws SQLException { if ( ! ExportControlled . enabled ( ) ) { throw new ConnectionFeatureNotAvailableException ( this . connection , this . lastPacketSentTimeMs , null ) ; } if ( ( this . serverCapabilities & CLIE...
207
java-test-5410
java
What understands ssl ?
a mysql server
private void negotiate SSL Connection ( String user , String password , String database , int pack Length ) throws SQL Exception { if ( ! Export Controlled . enabled ( ) ) { throw new Connection Feature Not Available Exception ( this . connection , this . last Packet Sent Time Ms , null ) ; } if ( ( this . server Capab...
private void negotiateSSLConnection ( String user , String password , String database , int packLength ) throws SQLException { if ( ! ExportControlled . enabled ( ) ) { throw new ConnectionFeatureNotAvailableException ( this . connection , this . lastPacketSentTimeMs , null ) ; } if ( ( this . serverCapabilities & CLIE...
207
java-test-5411
java
What will use an alphabet of 2 * * level elements ?
the returned symbol
public static int SAX ( int levels , double value ) { if ( levels > SAX MAX LEVELS || levels < NUM ) { throw new Runtime Exception ( ) ; } if ( null == INVNORM BOUNDS [ levels - NUM ] ) { synchronized ( INVNORM BOUNDS ) { if ( null == INVNORM BOUNDS [ levels - NUM ] ) { INVNORM BOUNDS [ levels - NUM ] = get Bounds ( NU...
public static int SAX ( int levels , double value ) { if ( levels > SAX_MAX_LEVELS || levels < _NUM ) { throw new RuntimeException ( ) ; } if ( null == INVNORM_BOUNDS [ levels - _NUM ] ) { synchronized ( INVNORM_BOUNDS ) { if ( null == INVNORM_BOUNDS [ levels - _NUM ] ) { INVNORM_BOUNDS [ levels - _NUM ] = getBounds ( ...
124
java-test-5412
java
What will the returned symbol use ?
an alphabet of 2 * * level elements
public static int SAX ( int levels , double value ) { if ( levels > SAX MAX LEVELS || levels < NUM ) { throw new Runtime Exception ( ) ; } if ( null == INVNORM BOUNDS [ levels - NUM ] ) { synchronized ( INVNORM BOUNDS ) { if ( null == INVNORM BOUNDS [ levels - NUM ] ) { INVNORM BOUNDS [ levels - NUM ] = get Bounds ( NU...
public static int SAX ( int levels , double value ) { if ( levels > SAX_MAX_LEVELS || levels < _NUM ) { throw new RuntimeException ( ) ; } if ( null == INVNORM_BOUNDS [ levels - _NUM ] ) { synchronized ( INVNORM_BOUNDS ) { if ( null == INVNORM_BOUNDS [ levels - _NUM ] ) { INVNORM_BOUNDS [ levels - _NUM ] = getBounds ( ...
124
java-test-5414
java
What does the code delete ?
a row in the database
@ Override public int delete ( @ Non Null Uri uri , String where , String [ ] where Args ) { Helpers . validate Selection ( where , APP READABLE COLUMNS SET ) ; SQ Lite Database db = open Helper . get Writable Database ( ) ; int count ; int match = URI MATCHER . match ( uri ) ; switch ( match ) { case MY DOWNLOADS : ca...
@ Override public int delete ( @ NonNull Uri uri , String where , String [ ] whereArgs ) { Helpers . validateSelection ( where , APP_READABLE_COLUMNS_SET ) ; SQLiteDatabase db = openHelper . getWritableDatabase ( ) ; int count ; int match = URI_MATCHER . match ( uri ) ; switch ( match ) { case MY_DOWNLOADS : case MY_DO...
267
java-test-5418
java
What does the code delete from disk ?
a storage information and files
public void delete Storage ( Storage Data storage Data ) throws Business Exception , IO Exception { Storage Data local = get Local Storage Data Object ( storage Data ) ; synchronized ( local ) { if ( ( storage Recorder . is Recording On ( ) || storage Recorder . is Recording Scheduled ( ) ) && Objects . equals ( local ...
public void deleteStorage ( StorageData storageData ) throws BusinessException , IOException { StorageData local = getLocalStorageDataObject ( storageData ) ; synchronized ( local ) { if ( ( storageRecorder . isRecordingOn ( ) || storageRecorder . isRecordingScheduled ( ) ) && Objects . equals ( local , recorderStorage...
161
java-test-5419
java
What does the code delete ?
the associated row in the database
public synchronized void delete File ( JDBC Sequential File file ) throws SQL Exception { try { connection . set Auto Commit ( BOOL ) ; delete File . set Int ( NUM , file . get Id ( ) ) ; delete File . execute Update ( ) ; connection . commit ( ) ; } catch ( SQL Exception e ) { connection . rollback ( ) ; throw e ; } }
public synchronized void deleteFile ( JDBCSequentialFile file ) throws SQLException { try { connection . setAutoCommit ( _BOOL ) ; deleteFile . setInt ( _NUM , file . getId ( ) ) ; deleteFile . executeUpdate ( ) ; connection . commit ( ) ; } catch ( SQLException e ) { connection . rollback ( ) ; throw e ; } }
75
java-test-5421
java
What does the code delete ?
all ctg files
public boolean clean ( ) { try { File Utils . delete Directory ( new File ( Properties . CTG DIR ) ) ; } catch ( IO Exception e ) { logger . error ( STRING + Properties . CTG DIR + STRING + e , e ) ; return BOOL ; } return BOOL ; }
public boolean clean ( ) { try { FileUtils . deleteDirectory ( new File ( Properties . CTG_DIR ) ) ; } catch ( IOException e ) { logger . error ( STRING + Properties . CTG_DIR + STRING + e , e ) ; return _BOOL ; } return _BOOL ; }
58
java-test-5422
java
What does the code launch ?
the ping
@ Override protected String do In Background ( Void ... params ) { try { String res = launch Ping ( url To Ping ) ; m Trace Route Result . append ( res ) ; publish Progress ( res ) ; Trace Route Container trace ; if ( res . contains ( UNREACHABLE PING ) && ! res . contains ( EXCEED PING ) ) { trace = new Trace Route Co...
@ Override protected String doInBackground ( Void ... params ) { try { String res = launchPing ( urlToPing ) ; mTraceRouteResult . append ( res ) ; publishProgress ( res ) ; TraceRouteContainer trace ; if ( res . contains ( UNREACHABLE_PING ) && ! res . contains ( EXCEED_PING ) ) { trace = new TraceRouteContainer ( STR...
237
java-test-5423
java
What does reverse allocation . period need ?
to be open
private boolean reverse It ( ) { if ( ! is Active ( ) ) throw new Illegal State Exception ( STRING ) ; M Period . test Period Open ( get Ctx ( ) , get Date Trx ( ) , M Period Control . DOCBASETYPE Payment Allocation , get AD Org ID ( ) ) ; set Is Active ( BOOL ) ; if ( ! is Posted ( ) ) set Posted ( BOOL ) ; set Docume...
private boolean reverseIt ( ) { if ( ! isActive ( ) ) throw new IllegalStateException ( STRING ) ; MPeriod . testPeriodOpen ( getCtx ( ) , getDateTrx ( ) , MPeriodControl . DOCBASETYPE_PaymentAllocation , getAD_Org_ID ( ) ) ; setIsActive ( _BOOL ) ; if ( ! isPosted ( ) ) setPosted ( _BOOL ) ; setDocumentNo ( getDocumen...
245
java-test-5424
java
What needs to be open ?
reverse allocation . period
private boolean reverse It ( ) { if ( ! is Active ( ) ) throw new Illegal State Exception ( STRING ) ; M Period . test Period Open ( get Ctx ( ) , get Date Trx ( ) , M Period Control . DOCBASETYPE Payment Allocation , get AD Org ID ( ) ) ; set Is Active ( BOOL ) ; if ( ! is Posted ( ) ) set Posted ( BOOL ) ; set Docume...
private boolean reverseIt ( ) { if ( ! isActive ( ) ) throw new IllegalStateException ( STRING ) ; MPeriod . testPeriodOpen ( getCtx ( ) , getDateTrx ( ) , MPeriodControl . DOCBASETYPE_PaymentAllocation , getAD_Org_ID ( ) ) ; setIsActive ( _BOOL ) ; if ( ! isPosted ( ) ) setPosted ( _BOOL ) ; setDocumentNo ( getDocumen...
245
java-test-5425
java
How do points - to information compute for given pointers ?
precisely
public void dd Solve ( Set < Node > qry Nodes ) { long solve time = NUM , prepare time = NUM ; if ( has Executed == BOOL ) solve ( ) ; if ( dd Prepared == BOOL || offline Processor == null ) { offline Processor = new Offline Processor ( this ) ; I Figure Manager . clean Cache ( ) ; dd Prepared = BOOL ; ps . println ( )...
public void ddSolve ( Set < Node > qryNodes ) { long solve_time = _NUM , prepare_time = _NUM ; if ( hasExecuted == _BOOL ) solve ( ) ; if ( ddPrepared == _BOOL || offlineProcessor == null ) { offlineProcessor = new OfflineProcessor ( this ) ; IFigureManager . cleanCache ( ) ; ddPrepared = _BOOL ; ps . println ( ) ; ps ...
270
java-test-5429
java
For what purpose would our kerberos v5 mechanism do a jaas login if this were the case ?
on behalf of the application
public static boolean use Subject Creds Only ( GSS Caller caller ) { if ( caller instanceof Http Caller ) { return BOOL ; } String prop Value = Access Controller . do Privileged ( new Get Property Action ( STRING , STRING ) ) ; return ( ! prop Value . equals Ignore Case ( STRING ) ) ; }
public static boolean useSubjectCredsOnly ( GSSCaller caller ) { if ( caller instanceof HttpCaller ) { return _BOOL ; } String propValue = AccessController . doPrivileged ( new GetPropertyAction ( STRING , STRING ) ) ; return ( ! propValue . equalsIgnoreCase ( STRING ) ) ; }
61
java-test-5430
java
How does the application indicate this ?
by explicitly setting the system property javax . security . auth . usesubjectcredsonly to false
public static boolean use Subject Creds Only ( GSS Caller caller ) { if ( caller instanceof Http Caller ) { return BOOL ; } String prop Value = Access Controller . do Privileged ( new Get Property Action ( STRING , STRING ) ) ; return ( ! prop Value . equals Ignore Case ( STRING ) ) ; }
public static boolean useSubjectCredsOnly ( GSSCaller caller ) { if ( caller instanceof HttpCaller ) { return _BOOL ; } String propValue = AccessController . doPrivileged ( new GetPropertyAction ( STRING , STRING ) ) ; return ( ! propValue . equalsIgnoreCase ( STRING ) ) ; }
61
java-test-5431
java
What would our kerberos v5 mechanism do if this were the case on behalf of the application ?
a jaas login
public static boolean use Subject Creds Only ( GSS Caller caller ) { if ( caller instanceof Http Caller ) { return BOOL ; } String prop Value = Access Controller . do Privileged ( new Get Property Action ( STRING , STRING ) ) ; return ( ! prop Value . equals Ignore Case ( STRING ) ) ; }
public static boolean useSubjectCredsOnly ( GSSCaller caller ) { if ( caller instanceof HttpCaller ) { return _BOOL ; } String propValue = AccessController . doPrivileged ( new GetPropertyAction ( STRING , STRING ) ) ; return ( ! propValue . equalsIgnoreCase ( STRING ) ) ; }
61
java-test-5432
java
What would do a jaas login if this were the case on behalf of the application ?
our kerberos v5 mechanism
public static boolean use Subject Creds Only ( GSS Caller caller ) { if ( caller instanceof Http Caller ) { return BOOL ; } String prop Value = Access Controller . do Privileged ( new Get Property Action ( STRING , STRING ) ) ; return ( ! prop Value . equals Ignore Case ( STRING ) ) ; }
public static boolean useSubjectCredsOnly ( GSSCaller caller ) { if ( caller instanceof HttpCaller ) { return _BOOL ; } String propValue = AccessController . doPrivileged ( new GetPropertyAction ( STRING , STRING ) ) ; return ( ! propValue . equalsIgnoreCase ( STRING ) ) ; }
61
java-test-5433
java
What do the mechanism obtain from outside of the current subject ?
the required credentials
public static boolean use Subject Creds Only ( GSS Caller caller ) { if ( caller instanceof Http Caller ) { return BOOL ; } String prop Value = Access Controller . do Privileged ( new Get Property Action ( STRING , STRING ) ) ; return ( ! prop Value . equals Ignore Case ( STRING ) ) ; }
public static boolean useSubjectCredsOnly ( GSSCaller caller ) { if ( caller instanceof HttpCaller ) { return _BOOL ; } String propValue = AccessController . doPrivileged ( new GetPropertyAction ( STRING , STRING ) ) ; return ( ! propValue . equalsIgnoreCase ( STRING ) ) ; }
61
java-test-5434
java
What did helper method use ?
to find a buffer to use , ideally one recycled earlier
private final char [ ] find Buffer ( int needed ) { if ( allocator != null ) { return allocator . alloc Char Buffer ( Buffer Recycler . Char Buffer Type . TEXT BUFFER , needed ) ; } return new char [ Math . max ( needed , MIN SEGMENT LEN ) ] ; }
private final char [ ] findBuffer ( int needed ) { if ( _allocator != null ) { return _allocator . allocCharBuffer ( BufferRecycler . CharBufferType . TEXT_BUFFER , needed ) ; } return new char [ Math . max ( needed , MIN_SEGMENT_LEN ) ] ; }
57
java-test-5435
java
What does the code initialize ?
the barcode decoder
private void init Barcode Reader ( List < String > bar Code Types ) { Enum Map < Decode Hint Type , Object > hints = new Enum Map < > ( Decode Hint Type . class ) ; Enum Set < Barcode Format > decode Formats = Enum Set . none Of ( Barcode Format . class ) ; if ( bar Code Types != null ) { for ( String code : bar Code T...
private void initBarcodeReader ( List < String > barCodeTypes ) { EnumMap < DecodeHintType , Object > hints = new EnumMap < > ( DecodeHintType . class ) ; EnumSet < BarcodeFormat > decodeFormats = EnumSet . noneOf ( BarcodeFormat . class ) ; if ( barCodeTypes != null ) { for ( String code : barCodeTypes ) { BarcodeForm...
135
java-test-5437
java
What does the code execute ?
a previously claimed scan range task
private void execute Claimed Task ( Claimed Task claimed Task ) { if ( ! claimed Task . set Start Time ( new Date ( ) ) ) { log . info ( STRING , claimed Task . get Task ( ) ) ; return ; } Scan Range Task task = claimed Task . get Task ( ) ; boolean release Task = BOOL ; try { scan Workflow . renew Scan Range Tasks ( I...
private void executeClaimedTask ( ClaimedTask claimedTask ) { if ( ! claimedTask . setStartTime ( new Date ( ) ) ) { _log . info ( STRING , claimedTask . getTask ( ) ) ; return ; } ScanRangeTask task = claimedTask . getTask ( ) ; boolean releaseTask = _BOOL ; try { _scanWorkflow . renewScanRangeTasks ( ImmutableList . ...
126
java-test-5439
java
What replaces a string suffix the code ?
by another
private String replace Suffix ( String value , String to Replace , String change To ) { String vvalue ; if ( ( value == null ) || ( to Replace == null ) || ( change To == null ) ) { return value ; } vvalue = remove Suffix ( value , to Replace ) ; if ( value . equals ( vvalue ) ) { return value ; } else { return vvalue ...
private String replaceSuffix ( String value , String toReplace , String changeTo ) { String vvalue ; if ( ( value == null ) || ( toReplace == null ) || ( changeTo == null ) ) { return value ; } vvalue = removeSuffix ( value , toReplace ) ; if ( value . equals ( vvalue ) ) { return value ; } else { return vvalue + chang...
82
java-test-5441
java
What can this worker spawn ?
any worker
public boolean can Spawn Workers ( ) { boolean can Spawn Worker = BOOL ; if ( verbose Log Level > NUM ) { Utilities . verbose Log ( STRING + grid Name + STRING + tier + STRING + max Tier Depth + STRING + life Remaining ( ) + STRING + maximum Life Millis ) ; } if ( ! grid Name . equals ( STRING ) ) { return BOOL ; } if ...
public boolean canSpawnWorkers ( ) { boolean canSpawnWorker = _BOOL ; if ( verboseLogLevel > _NUM ) { Utilities . verboseLog ( STRING + gridName + STRING + tier + STRING + maxTierDepth + STRING + lifeRemaining ( ) + STRING + maximumLifeMillis ) ; } if ( ! gridName . equals ( STRING ) ) { return _BOOL ; } if ( clusterSt...
284
java-test-5442
java
What can spawn any worker ?
this worker
public boolean can Spawn Workers ( ) { boolean can Spawn Worker = BOOL ; if ( verbose Log Level > NUM ) { Utilities . verbose Log ( STRING + grid Name + STRING + tier + STRING + max Tier Depth + STRING + life Remaining ( ) + STRING + maximum Life Millis ) ; } if ( ! grid Name . equals ( STRING ) ) { return BOOL ; } if ...
public boolean canSpawnWorkers ( ) { boolean canSpawnWorker = _BOOL ; if ( verboseLogLevel > _NUM ) { Utilities . verboseLog ( STRING + gridName + STRING + tier + STRING + maxTierDepth + STRING + lifeRemaining ( ) + STRING + maximumLifeMillis ) ; } if ( ! gridName . equals ( STRING ) ) { return _BOOL ; } if ( clusterSt...
284
java-test-5443
java
What does the code add ?
a label and a field combination
private void add ( final J Label label , final J Text Field field ) { panel . add ( label ) ; panel . add ( field ) ; if ( previous == null ) { layout . put Constraint ( Spring Layout . NORTH , panel , - SPACING , Spring Layout . NORTH , label ) ; } else { layout . put Constraint ( Spring Layout . NORTH , label , SPACI...
private void add ( final JLabel label , final JTextField field ) { panel . add ( label ) ; panel . add ( field ) ; if ( previous == null ) { layout . putConstraint ( SpringLayout . NORTH , panel , - SPACING , SpringLayout . NORTH , label ) ; } else { layout . putConstraint ( SpringLayout . NORTH , label , SPACING , Spr...
210
java-test-5444
java
What does the code convert into geotimeserie ?
a gtswrapper
public static Geo Time Serie from GTS Wrapper To GTS ( GTS Wrapper wrapper ) { Metadata metadata = wrapper . get Metadata ( ) ; Geo Time Serie gts = null ; if ( null != wrapper . get Encoded ( ) ) { byte [ ] bytes = null ; if ( wrapper . is Compressed ( ) ) { bytes = unwrap Encoded ( wrapper ) ; } else { bytes = wrappe...
public static GeoTimeSerie fromGTSWrapperToGTS ( GTSWrapper wrapper ) { Metadata metadata = wrapper . getMetadata ( ) ; GeoTimeSerie gts = null ; if ( null != wrapper . getEncoded ( ) ) { byte [ ] bytes = null ; if ( wrapper . isCompressed ( ) ) { bytes = unwrapEncoded ( wrapper ) ; } else { bytes = wrapper . getEncode...
261
java-test-5445
java
What be in the parse tree ?
an errornode
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5446
java
Where be an errornode be for any syntax error thrown by the parser ?
in the parse tree
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5447
java
For what purpose did tokens consume ?
to resync the parser during recovery
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5448
java
What will the parse tree have ?
an errornode for token . 3 .
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5449
java
For what purpose be an errornode be in the parse tree ?
for any syntax error thrown by the parser
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5450
java
What do it ' s offending token be ?
at n + 1 not current token where prediction started ( which we use to find syntax errors )
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5451
java
What did we use prediction ?
to find syntax errors
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5452
java
What will the parse tree have have will have have ?
an errornode for token . 2 . token mismatch
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5453
java
For what purpose do error nodes add if needed ?
for eof
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5454
java
What have i modified to add error nodes for eof if needed . ?
error strategy
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5455
java
What do we find ?
syntax errors
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5456
java
What started where ?
prediction
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5457
java
What is at n + 1 not current token where prediction started ( which we use to find syntax errors ) ?
it ' s offending token
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5458
java
What will we might is match leading to noviablealtexception during prediction ?
n tokens
public void visit Error Node ( Error Node node ) { Progress Indicator Provider . check Canceled ( ) ; Token bad Token = node . get Symbol ( ) ; boolean is Conjured Token = bad Token . get Token Index ( ) < NUM ; int node Start Index = bad Token . get Start Index ( ) ; Syntax Error error = token To Error Map . get ( nod...
public void visitErrorNode ( ErrorNode node ) { ProgressIndicatorProvider . checkCanceled ( ) ; Token badToken = node . getSymbol ( ) ; boolean isConjuredToken = badToken . getTokenIndex ( ) < _NUM ; int nodeStartIndex = badToken . getStartIndex ( ) ; SyntaxError error = tokenToErrorMap . get ( nodeStartIndex ) ; if ( ...
211
java-test-5459
java
What does not contain missing values within regarded attributes ?
the example
@ Override public boolean condition Ok ( Example example ) { boolean is Ok = BOOL ; for ( Attribute attribute : checked Attributes ) { is Ok &= ! Double . is Na N ( example . get Value ( attribute ) ) ; } return is Ok ; }
@ Override public boolean conditionOk ( Example example ) { boolean isOk = _BOOL ; for ( Attribute attribute : checkedAttributes ) { isOk &= ! Double . isNaN ( example . getValue ( attribute ) ) ; } return isOk ; }
51
java-test-5460
java
Does the example contain missing values within regarded attributes ?
No
@ Override public boolean condition Ok ( Example example ) { boolean is Ok = BOOL ; for ( Attribute attribute : checked Attributes ) { is Ok &= ! Double . is Na N ( example . get Value ( attribute ) ) ; } return is Ok ; }
@ Override public boolean conditionOk ( Example example ) { boolean isOk = _BOOL ; for ( Attribute attribute : checkedAttributes ) { isOk &= ! Double . isNaN ( example . getValue ( attribute ) ) ; } return isOk ; }
51
java-test-5461
java
What does the example not contain ?
missing values within regarded attributes
@ Override public boolean condition Ok ( Example example ) { boolean is Ok = BOOL ; for ( Attribute attribute : checked Attributes ) { is Ok &= ! Double . is Na N ( example . get Value ( attribute ) ) ; } return is Ok ; }
@ Override public boolean conditionOk ( Example example ) { boolean isOk = _BOOL ; for ( Attribute attribute : checkedAttributes ) { isOk &= ! Double . isNaN ( example . getValue ( attribute ) ) ; } return isOk ; }
51
java-test-5465
java
What must return a positive number ?
the duration extends pass the end of the epoch
protected long calculate Duration ( Leased Resource resource , long requested Duration ) { if ( requested Duration == Lease . FOREVER ) requested Duration = Long . MAX VALUE ; else if ( requested Duration == Lease . ANY ) requested Duration = default Length ; else if ( requested Duration < NUM ) throw new Illegal Argum...
protected long calculateDuration ( LeasedResource resource , long requestedDuration ) { if ( requestedDuration == Lease . FOREVER ) requestedDuration = Long . MAX_VALUE ; else if ( requestedDuration == Lease . ANY ) requestedDuration = defaultLength ; else if ( requestedDuration < _NUM ) throw new IllegalArgumentExcept...
78
java-test-5466
java
What have the code note ?
that we currently have four ! methods of loading up the database
private void load Binary ( Input Stream is ) throws IO Exception { if ( use New IO && is instanceof File Input Stream ) { File Input Stream fis = ( File Input Stream ) is ; if ( use Indexing ) { load Binary Index ( new URL ( index Name ) ) ; map Database ( fis ) ; } else { load Mapped Binary ( fis ) ; } } else { Data I...
private void loadBinary ( InputStream is ) throws IOException { if ( useNewIO && is instanceof FileInputStream ) { FileInputStream fis = ( FileInputStream ) is ; if ( useIndexing ) { loadBinaryIndex ( new URL ( indexName ) ) ; mapDatabase ( fis ) ; } else { loadMappedBinary ( fis ) ; } } else { DataInputStream dis = ne...
103
java-test-5467
java
What did we cod ?
it all
private void load Binary ( Input Stream is ) throws IO Exception { if ( use New IO && is instanceof File Input Stream ) { File Input Stream fis = ( File Input Stream ) is ; if ( use Indexing ) { load Binary Index ( new URL ( index Name ) ) ; map Database ( fis ) ; } else { load Mapped Binary ( fis ) ; } } else { Data I...
private void loadBinary ( InputStream is ) throws IOException { if ( useNewIO && is instanceof FileInputStream ) { FileInputStream fis = ( FileInputStream ) is ; if ( useIndexing ) { loadBinaryIndex ( new URL ( indexName ) ) ; mapDatabase ( fis ) ; } else { loadMappedBinary ( fis ) ; } } else { DataInputStream dis = ne...
103
java-test-5468
java
What do we have currently ?
four ! methods of loading up the database
private void load Binary ( Input Stream is ) throws IO Exception { if ( use New IO && is instanceof File Input Stream ) { File Input Stream fis = ( File Input Stream ) is ; if ( use Indexing ) { load Binary Index ( new URL ( index Name ) ) ; map Database ( fis ) ; } else { load Mapped Binary ( fis ) ; } } else { Data I...
private void loadBinary ( InputStream is ) throws IOException { if ( useNewIO && is instanceof FileInputStream ) { FileInputStream fis = ( FileInputStream ) is ; if ( useIndexing ) { loadBinaryIndex ( new URL ( indexName ) ) ; mapDatabase ( fis ) ; } else { loadMappedBinary ( fis ) ; } } else { DataInputStream dis = ne...
103
java-test-5469
java
For what purpose is a discard notification sent ?
an invocation of this method
public void remove Locators ( Lookup Locator [ ] locators ) { test Set For Null ( locators ) ; synchronized ( this ) { if ( terminated ) { throw new Illegal State Exception ( STRING ) ; } Hash Map groups Map = new Hash Map ( NUM ) ; for ( int i = NUM ; i < locators . length ; i ++ ) { Locator Reg reg = remove Discovere...
public void removeLocators ( LookupLocator [ ] locators ) { testSetForNull ( locators ) ; synchronized ( this ) { if ( terminated ) { throw new IllegalStateException ( STRING ) ; } HashMap groupsMap = new HashMap ( _NUM ) ; for ( int i = _NUM ; i < locators . length ; i ++ ) { LocatorReg reg = removeDiscoveredLocator (...
178
java-test-5470
java
Why is any lookup service discarded ?
as a result of an invocation of this method
public void remove Locators ( Lookup Locator [ ] locators ) { test Set For Null ( locators ) ; synchronized ( this ) { if ( terminated ) { throw new Illegal State Exception ( STRING ) ; } Hash Map groups Map = new Hash Map ( NUM ) ; for ( int i = NUM ; i < locators . length ; i ++ ) { Locator Reg reg = remove Discovere...
public void removeLocators ( LookupLocator [ ] locators ) { testSetForNull ( locators ) ; synchronized ( this ) { if ( terminated ) { throw new IllegalStateException ( STRING ) ; } HashMap groupsMap = new HashMap ( _NUM ) ; for ( int i = _NUM ; i < locators . length ; i ++ ) { LocatorReg reg = removeDiscoveredLocator (...
178
java-test-5471
java
How is it not is eligible for discovery currently ?
through other means , such as group discovery )
public void remove Locators ( Lookup Locator [ ] locators ) { test Set For Null ( locators ) ; synchronized ( this ) { if ( terminated ) { throw new Illegal State Exception ( STRING ) ; } Hash Map groups Map = new Hash Map ( NUM ) ; for ( int i = NUM ; i < locators . length ; i ++ ) { Locator Reg reg = remove Discovere...
public void removeLocators ( LookupLocator [ ] locators ) { testSetForNull ( locators ) ; synchronized ( this ) { if ( terminated ) { throw new IllegalStateException ( STRING ) ; } HashMap groupsMap = new HashMap ( _NUM ) ; for ( int i = _NUM ; i < locators . length ; i ++ ) { LocatorReg reg = removeDiscoveredLocator (...
178
java-test-5472
java
What does this array1 follow if both arrays are equal lexicographically ?
the array2
public static final int compare To ( char [ ] array 1 , char [ ] array 2 ) { int length 1 = array 1 . length ; int length 2 = array 2 . length ; int min = Math . min ( length 1 , length 2 ) ; for ( int i = NUM ; i < min ; i ++ ) { if ( array 1 [ i ] != array 2 [ i ] ) { return array 1 [ i ] - array 2 [ i ] ; } } return...
public static final int compareTo ( char [ ] array1 , char [ ] array2 ) { int length1 = array1 . length ; int length2 = array2 . length ; int min = Math . min ( length1 , length2 ) ; for ( int i = _NUM ; i < min ; i ++ ) { if ( array1 [ i ] != array2 [ i ] ) { return array1 [ i ] - array2 [ i ] ; } } return length1 - l...
105
java-test-5473
java
What follows the array2 if both arrays are equal lexicographically ?
this array1
public static final int compare To ( char [ ] array 1 , char [ ] array 2 ) { int length 1 = array 1 . length ; int length 2 = array 2 . length ; int min = Math . min ( length 1 , length 2 ) ; for ( int i = NUM ; i < min ; i ++ ) { if ( array 1 [ i ] != array 2 [ i ] ) { return array 1 [ i ] - array 2 [ i ] ; } } return...
public static final int compareTo ( char [ ] array1 , char [ ] array2 ) { int length1 = array1 . length ; int length2 = array2 . length ; int min = Math . min ( length1 , length2 ) ; for ( int i = _NUM ; i < min ; i ++ ) { if ( array1 [ i ] != array2 [ i ] ) { return array1 [ i ] - array2 [ i ] ; } } return length1 - l...
105
java-test-5474
java
What precedes the array2 , a positive integer lexicographically ?
array1
public static final int compare To ( char [ ] array 1 , char [ ] array 2 ) { int length 1 = array 1 . length ; int length 2 = array 2 . length ; int min = Math . min ( length 1 , length 2 ) ; for ( int i = NUM ; i < min ; i ++ ) { if ( array 1 [ i ] != array 2 [ i ] ) { return array 1 [ i ] - array 2 [ i ] ; } } return...
public static final int compareTo ( char [ ] array1 , char [ ] array2 ) { int length1 = array1 . length ; int length2 = array2 . length ; int min = Math . min ( length1 , length2 ) ; for ( int i = _NUM ; i < min ; i ++ ) { if ( array1 [ i ] != array2 [ i ] ) { return array1 [ i ] - array2 [ i ] ; } } return length1 - l...
105
java-test-5475
java
What does array1 precede lexicographically ?
the array2 , a positive integer
public static final int compare To ( char [ ] array 1 , char [ ] array 2 ) { int length 1 = array 1 . length ; int length 2 = array 2 . length ; int min = Math . min ( length 1 , length 2 ) ; for ( int i = NUM ; i < min ; i ++ ) { if ( array 1 [ i ] != array 2 [ i ] ) { return array 1 [ i ] - array 2 [ i ] ; } } return...
public static final int compareTo ( char [ ] array1 , char [ ] array2 ) { int length1 = array1 . length ; int length2 = array2 . length ; int min = Math . min ( length1 , length2 ) ; for ( int i = _NUM ; i < min ; i ++ ) { if ( array1 [ i ] != array2 [ i ] ) { return array1 [ i ] - array2 [ i ] ; } } return length1 - l...
105
java-test-5476
java
What does the code compare if array1 lexicographically precedes the array2 , a positive integer if this array1 lexicographically follows the array2 , or zero if both arrays are equal lexicographically ?
the two char arrays
public static final int compare To ( char [ ] array 1 , char [ ] array 2 ) { int length 1 = array 1 . length ; int length 2 = array 2 . length ; int min = Math . min ( length 1 , length 2 ) ; for ( int i = NUM ; i < min ; i ++ ) { if ( array 1 [ i ] != array 2 [ i ] ) { return array 1 [ i ] - array 2 [ i ] ; } } return...
public static final int compareTo ( char [ ] array1 , char [ ] array2 ) { int length1 = array1 . length ; int length2 = array2 . length ; int min = Math . min ( length1 , length2 ) ; for ( int i = _NUM ; i < min ; i ++ ) { if ( array1 [ i ] != array2 [ i ] ) { return array1 [ i ] - array2 [ i ] ; } } return length1 - l...
105
java-test-5477
java
What does the code compute for hsb similarity ?
the weight matrix
public static double [ ] [ ] compute Weight Matrix ( final int quanth , final int quants , final int quantb ) { final int dim = quanth * quants * quantb ; assert ( dim > NUM ) ; final double [ ] [ ] m = new double [ dim ] [ dim ] ; for ( int x = NUM ; x < dim ; x ++ ) { final int hx = x / ( quantb * quants ) ; final in...
public static double [ ] [ ] computeWeightMatrix ( final int quanth , final int quants , final int quantb ) { final int dim = quanth * quants * quantb ; assert ( dim > _NUM ) ; final double [ ] [ ] m = new double [ dim ] [ dim ] ; for ( int x = _NUM ; x < dim ; x ++ ) { final int hx = x / ( quantb * quants ) ; final in...
364
java-test-5479
java
For what purpose does body parse ?
to get doctype and configure transformer with proper method , public i d and system i d
private static void prepare Doc Type ( final Input Stream body , final Transformer transformer ) throws IO Exception { try { final String html = STRING ; final Document Type doctype = Rs Pretty Xml . get Doc Type ( body ) ; if ( null != doctype ) { if ( null == doctype . get System Id ( ) && null == doctype . get Publi...
private static void prepareDocType ( final InputStream body , final Transformer transformer ) throws IOException { try { final String html = STRING ; final DocumentType doctype = RsPrettyXml . getDocType ( body ) ; if ( null != doctype ) { if ( null == doctype . getSystemId ( ) && null == doctype . getPublicId ( ) && h...
201
java-test-5483
java
What is using the given credentials and optional authentication token ?
a user
public String authenticate ( Credentials credentials , String token ) throws Guacamole Exception { Guacamole Session existing Session ; if ( token != null ) existing Session = token Session Map . get ( token ) ; else existing Session = null ; Authenticated User authenticated User = get Authenticated User ( existing Ses...
public String authenticate ( Credentials credentials , String token ) throws GuacamoleException { GuacamoleSession existingSession ; if ( token != null ) existingSession = tokenSessionMap . get ( token ) ; else existingSession = null ; AuthenticatedUser authenticatedUser = getAuthenticatedUser ( existingSession , crede...
177
java-test-5484
java
Do the authentication procedure update the provided token ?
No
public String authenticate ( Credentials credentials , String token ) throws Guacamole Exception { Guacamole Session existing Session ; if ( token != null ) existing Session = token Session Map . get ( token ) ; else existing Session = null ; Authenticated User authenticated User = get Authenticated User ( existing Ses...
public String authenticate ( Credentials credentials , String token ) throws GuacamoleException { GuacamoleSession existingSession ; if ( token != null ) existingSession = tokenSessionMap . get ( token ) ; else existingSession = null ; AuthenticatedUser authenticatedUser = getAuthenticatedUser ( existingSession , crede...
177
java-test-5485
java
What does the code authenticate returning the authentication token associated with the user ' s guacamole session , which may be newly generated using the given credentials and optional authentication token ?
a user
public String authenticate ( Credentials credentials , String token ) throws Guacamole Exception { Guacamole Session existing Session ; if ( token != null ) existing Session = token Session Map . get ( token ) ; else existing Session = null ; Authenticated User authenticated User = get Authenticated User ( existing Ses...
public String authenticate ( Credentials credentials , String token ) throws GuacamoleException { GuacamoleSession existingSession ; if ( token != null ) existingSession = tokenSessionMap . get ( token ) ; else existingSession = null ; AuthenticatedUser authenticatedUser = getAuthenticatedUser ( existingSession , crede...
177
java-test-5486
java
What will attempt to update or reuse the provided token if an existing token is provided ?
the authentication procedure
public String authenticate ( Credentials credentials , String token ) throws Guacamole Exception { Guacamole Session existing Session ; if ( token != null ) existing Session = token Session Map . get ( token ) ; else existing Session = null ; Authenticated User authenticated User = get Authenticated User ( existing Ses...
public String authenticate ( Credentials credentials , String token ) throws GuacamoleException { GuacamoleSession existingSession ; if ( token != null ) existingSession = tokenSessionMap . get ( token ) ; else existingSession = null ; AuthenticatedUser authenticatedUser = getAuthenticatedUser ( existingSession , crede...
177
java-test-5487
java
What does the code return ?
the authentication token associated with the user ' s guacamole session , which may be newly generated
public String authenticate ( Credentials credentials , String token ) throws Guacamole Exception { Guacamole Session existing Session ; if ( token != null ) existing Session = token Session Map . get ( token ) ; else existing Session = null ; Authenticated User authenticated User = get Authenticated User ( existing Ses...
public String authenticate ( Credentials credentials , String token ) throws GuacamoleException { GuacamoleSession existingSession ; if ( token != null ) existingSession = tokenSessionMap . get ( token ) ; else existingSession = null ; AuthenticatedUser authenticatedUser = getAuthenticatedUser ( existingSession , crede...
177
java-test-5488
java
How can this function not return ?
null
public String authenticate ( Credentials credentials , String token ) throws Guacamole Exception { Guacamole Session existing Session ; if ( token != null ) existing Session = token Session Map . get ( token ) ; else existing Session = null ; Authenticated User authenticated User = get Authenticated User ( existing Ses...
public String authenticate ( Credentials credentials , String token ) throws GuacamoleException { GuacamoleSession existingSession ; if ( token != null ) existingSession = tokenSessionMap . get ( token ) ; else existingSession = null ; AuthenticatedUser authenticatedUser = getAuthenticatedUser ( existingSession , crede...
177
java-test-5489
java
What will the authentication procedure attempt if an existing token is provided ?
to update or reuse the provided token
public String authenticate ( Credentials credentials , String token ) throws Guacamole Exception { Guacamole Session existing Session ; if ( token != null ) existing Session = token Session Map . get ( token ) ; else existing Session = null ; Authenticated User authenticated User = get Authenticated User ( existing Ses...
public String authenticate ( Credentials credentials , String token ) throws GuacamoleException { GuacamoleSession existingSession ; if ( token != null ) existingSession = tokenSessionMap . get ( token ) ; else existingSession = null ; AuthenticatedUser authenticatedUser = getAuthenticatedUser ( existingSession , crede...
177
java-test-5490
java
What do a user use ?
the given credentials and optional authentication token
public String authenticate ( Credentials credentials , String token ) throws Guacamole Exception { Guacamole Session existing Session ; if ( token != null ) existing Session = token Session Map . get ( token ) ; else existing Session = null ; Authenticated User authenticated User = get Authenticated User ( existing Ses...
public String authenticate ( Credentials credentials , String token ) throws GuacamoleException { GuacamoleSession existingSession ; if ( token != null ) existingSession = tokenSessionMap . get ( token ) ; else existingSession = null ; AuthenticatedUser authenticatedUser = getAuthenticatedUser ( existingSession , crede...
177
java-test-5491
java
How does the code authenticate a user returning the authentication token associated with the user ' s guacamole session , which may be newly generated ?
using the given credentials and optional authentication token
public String authenticate ( Credentials credentials , String token ) throws Guacamole Exception { Guacamole Session existing Session ; if ( token != null ) existing Session = token Session Map . get ( token ) ; else existing Session = null ; Authenticated User authenticated User = get Authenticated User ( existing Ses...
public String authenticate ( Credentials credentials , String token ) throws GuacamoleException { GuacamoleSession existingSession ; if ( token != null ) existingSession = tokenSessionMap . get ( token ) ; else existingSession = null ; AuthenticatedUser authenticatedUser = getAuthenticatedUser ( existingSession , crede...
177
java-test-5492
java
When may the authentication token associated with the user ' s guacamole session be generated ?
newly
public String authenticate ( Credentials credentials , String token ) throws Guacamole Exception { Guacamole Session existing Session ; if ( token != null ) existing Session = token Session Map . get ( token ) ; else existing Session = null ; Authenticated User authenticated User = get Authenticated User ( existing Ses...
public String authenticate ( Credentials credentials , String token ) throws GuacamoleException { GuacamoleSession existingSession ; if ( token != null ) existingSession = tokenSessionMap . get ( token ) ; else existingSession = null ; AuthenticatedUser authenticatedUser = getAuthenticatedUser ( existingSession , crede...
177
java-test-5493
java
How did parameters define ?
by ade
protected final void parse Args ( String [ ] args ) throws Ade Exception { final Array List < String > ade Args = parse Ade Ext Args ( args ) ; super . parse Args ( ade Args . to Array ( new String [ ade Args . size ( ) ] ) ) ; }
protected final void parseArgs ( String [ ] args ) throws AdeException { final ArrayList < String > adeArgs = parseAdeExtArgs ( args ) ; super . parseArgs ( adeArgs . toArray ( new String [ adeArgs . size ( ) ] ) ) ; }
57
java-test-5495
java
How do the data load from the rdbms table ?
by the where
public final static < T extends Bean > List < T > load ( String table , String [ ] cols , String where , Object [ ] args , Class < T > clazz ) { return load ( table , cols , where , args , null , - NUM , - NUM , clazz ) ; }
public final static < T extends Bean > List < T > load ( String table , String [ ] cols , String where , Object [ ] args , Class < T > clazz ) { return load ( table , cols , where , args , null , - _NUM , - _NUM , clazz ) ; }
60
java-test-5496
java
What does a helper function check ?
whether the specified error could have been caused by the specified app
private static boolean package Matches ( Resolve Info app , Process Error err ) { final String app Pkg = app . activity Info . package Name ; final String err Pkg = err . info . process Name ; Log . d ( TAG , String . format ( STRING , app Pkg , err Pkg ) ) ; return app Pkg . equals ( err Pkg ) ; }
private static boolean packageMatches ( ResolveInfo app , ProcessError err ) { final String appPkg = app . activityInfo . packageName ; final String errPkg = err . info . processName ; Log . d ( TAG , String . format ( STRING , appPkg , errPkg ) ) ; return appPkg . equals ( errPkg ) ; }
71
java-test-5497
java
How does the code append a newline to the given buffer ?
via the given writer
private static void append Newline If Necessary ( String Buffer buf , Writer out ) throws IO Exception { int len = buf . length ( ) ; if ( ( len != NUM ) && ( buf . char At ( len - NUM ) != STRING ) ) { out . write ( STRING ) ; } }
private static void appendNewlineIfNecessary ( StringBuffer buf , Writer out ) throws IOException { int len = buf . length ( ) ; if ( ( len != _NUM ) && ( buf . charAt ( len - _NUM ) != STRING ) ) { out . write ( STRING ) ; } }
60
java-test-5498
java
What does we handle only ?
changes to the deployed services
@ Override public void object Changed ( String dn , int type ) { Matcher matcher = schema Dn Pattern . matcher ( dn ) ; if ( ! matcher . matches ( ) ) { return ; } refresh Service Route ( type , matcher . group ( NUM ) , matcher . group ( NUM ) ) ; }
@ Override public void objectChanged ( String dn , int type ) { Matcher matcher = schemaDnPattern . matcher ( dn ) ; if ( ! matcher . matches ( ) ) { return ; } refreshServiceRoute ( type , matcher . group ( _NUM ) , matcher . group ( _NUM ) ) ; }
61
java-test-5500
java
What does the code zip ?
the given resourcenode
private void zip Entry ( Zip Output Stream zip Output Stream , Resource Node resource Node ) { try ( Byte Array Input Stream input Stream = new Byte Array Input Stream ( ( byte [ ] ) resource Node . get Object ( ) ) ) { Zip Entry zip Entry = new Zip Entry ( create New Zip Entry Name ( resource Node . get Path ( ) ) ) ;...
private void zipEntry ( ZipOutputStream zipOutputStream , ResourceNode resourceNode ) { try ( ByteArrayInputStream inputStream = new ByteArrayInputStream ( ( byte [ ] ) resourceNode . getObject ( ) ) ) { ZipEntry zipEntry = new ZipEntry ( createNewZipEntryName ( resourceNode . getPath ( ) ) ) ; zipOutputStream . putNex...
187
java-test-5503
java
Why is this a problem ?
because there is no way to work around this with a cast
protected static Method resolve Java Method ( Bsh Class Manager bcm , Class clas , String name , Class [ ] types , boolean static Only ) throws Util Eval Error { if ( clas == null ) throw new Interpreter Error ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . ge...
protected static Method resolveJavaMethod ( BshClassManager bcm , Class clas , String name , Class [ ] types , boolean staticOnly ) throws UtilEvalError { if ( clas == null ) throw new InterpreterError ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . getResolve...
217
java-test-5504
java
What will this set on the method as necessary ?
the accessibilty flag
protected static Method resolve Java Method ( Bsh Class Manager bcm , Class clas , String name , Class [ ] types , boolean static Only ) throws Util Eval Error { if ( clas == null ) throw new Interpreter Error ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . ge...
protected static Method resolveJavaMethod ( BshClassManager bcm , Class clas , String name , Class [ ] types , boolean staticOnly ) throws UtilEvalError { if ( clas == null ) throw new InterpreterError ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . getResolve...
217
java-test-5505
java
What did this method utilize ?
cached methods
protected static Method resolve Java Method ( Bsh Class Manager bcm , Class clas , String name , Class [ ] types , boolean static Only ) throws Util Eval Error { if ( clas == null ) throw new Interpreter Error ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . ge...
protected static Method resolveJavaMethod ( BshClassManager bcm , Class clas , String name , Class [ ] types , boolean staticOnly ) throws UtilEvalError { if ( clas == null ) throw new InterpreterError ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . getResolve...
217
java-test-5506
java
What will it throw if , when directed to find a static method , this method locates a more specific matching instance method ?
a descriptive exception analogous to the error that the java compiler would produce
protected static Method resolve Java Method ( Bsh Class Manager bcm , Class clas , String name , Class [ ] types , boolean static Only ) throws Util Eval Error { if ( clas == null ) throw new Interpreter Error ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . ge...
protected static Method resolveJavaMethod ( BshClassManager bcm , Class clas , String name , Class [ ] types , boolean staticOnly ) throws UtilEvalError { if ( clas == null ) throw new InterpreterError ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . getResolve...
217
java-test-5507
java
What does this method perform ?
caching ( caches discovered methods through the class manager
protected static Method resolve Java Method ( Bsh Class Manager bcm , Class clas , String name , Class [ ] types , boolean static Only ) throws Util Eval Error { if ( clas == null ) throw new Interpreter Error ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . ge...
protected static Method resolveJavaMethod ( BshClassManager bcm , Class clas , String name , Class [ ] types , boolean staticOnly ) throws UtilEvalError { if ( clas == null ) throw new InterpreterError ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . getResolve...
217
java-test-5508
java
What does this method locate ?
a more specific matching instance method
protected static Method resolve Java Method ( Bsh Class Manager bcm , Class clas , String name , Class [ ] types , boolean static Only ) throws Util Eval Error { if ( clas == null ) throw new Interpreter Error ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . ge...
protected static Method resolveJavaMethod ( BshClassManager bcm , Class clas , String name , Class [ ] types , boolean staticOnly ) throws UtilEvalError { if ( clas == null ) throw new InterpreterError ( STRING ) ; Method method = null ; if ( bcm == null ) Interpreter . debug ( STRING ) ; else method = bcm . getResolve...
217
java-test-5509
java
What does the code retrieve from the attribute list if no match is found ?
the named parameter
@ Not Null public static String attr Or Default ( @ Not Null Attributes attributes , @ Not Null String name , @ Not Null String default Value ) { String value = attributes . get Value ( name ) ; return ( value != null ) ? value : default Value ; }
@ NotNull public static String attrOrDefault ( @ NotNull Attributes attributes , @ NotNull String name , @ NotNull String defaultValue ) { String value = attributes . getValue ( name ) ; return ( value != null ) ? value : defaultValue ; }
54
java-test-5514
java
What does the code handle ?
the hover events
protected void handle Hover Event ( Event evt ) { if ( evt . get Target ( ) instanceof Element ) { Element e = ( Element ) evt . get Target ( ) ; Node next = e . get Next Sibling ( ) ; if ( next instanceof Element ) { toggle Tooltip ( ( Element ) next , evt . get Type ( ) ) ; } else { Logging Util . warning ( STRING ) ...
protected void handleHoverEvent ( Event evt ) { if ( evt . getTarget ( ) instanceof Element ) { Element e = ( Element ) evt . getTarget ( ) ; Node next = e . getNextSibling ( ) ; if ( next instanceof Element ) { toggleTooltip ( ( Element ) next , evt . getType ( ) ) ; } else { LoggingUtil . warning ( STRING ) ; } } els...
94
java-test-5515
java
What does the code create ?
a samlv2 provider
public void create SAM Lv 2 Provider ( String realm , String entity Id , Map values ) throws AM Console Exception { try { List < String > meta Aliases = get Federation Alias ( values , Meta Template Parameters . P SAML ALIASES ) ; Set < String > duplicate Check = new Hash Set < String > ( meta Aliases ) ; if ( duplicat...
public void createSAMLv2Provider ( String realm , String entityId , Map values ) throws AMConsoleException { try { List < String > metaAliases = getFederationAlias ( values , MetaTemplateParameters . P_SAML_ALIASES ) ; Set < String > duplicateCheck = new HashSet < String > ( metaAliases ) ; if ( duplicateCheck . size (...
240
java-test-5517
java
What does the code create ?
a stream for every delayed image that is not written yet
public void process All ( ) throws IO Exception { for ( Iterator < Entry > i = image List . iterator ( ) ; i . has Next ( ) ; ) { Entry entry = ( Entry ) i . next ( ) ; if ( ! entry . written ) { entry . written = BOOL ; PDF Stream img = pdf . open Stream ( entry . name ) ; img . entry ( STRING , pdf . name ( STRING ) ...
public void processAll ( ) throws IOException { for ( Iterator < Entry > i = imageList . iterator ( ) ; i . hasNext ( ) ; ) { Entry entry = ( Entry ) i . next ( ) ; if ( ! entry . written ) { entry . written = _BOOL ; PDFStream img = pdf . openStream ( entry . name ) ; img . entry ( STRING , pdf . name ( STRING ) ) ; i...
204
java-test-5518
java
What does the code initialize ?
the report criteria map with default values
private void init Criteria Map ( ) { crit Params . clear ( ) ; crit Params . put ( EGOV COUNTER OPERATOR ID , Long . value Of ( - NUM ) ) ; crit Params . put ( EGOV COUNTER ID , Long . value Of ( - NUM ) ) ; crit Params . put ( EGOV FROM DATE , new Date ( ) ) ; crit Params . put ( EGOV TO DATE , new Date ( ) ) ; crit P...
private void initCriteriaMap ( ) { critParams . clear ( ) ; critParams . put ( EGOV_COUNTER_OPERATOR_ID , Long . valueOf ( - _NUM ) ) ; critParams . put ( EGOV_COUNTER_ID , Long . valueOf ( - _NUM ) ) ; critParams . put ( EGOV_FROM_DATE , new Date ( ) ) ; critParams . put ( EGOV_TO_DATE , new Date ( ) ) ; critParams . ...
144
java-test-5519
java
What does the code create ?
a new emr master group object
private Emr Master Security Group create Emr Cluster Master Group From Request ( String namespace Cd , String cluster Definition Name , String cluster Name , List < String > group Ids ) { Emr Master Security Group emr Master Security Group = new Emr Master Security Group ( ) ; emr Master Security Group . set Namespace ...
private EmrMasterSecurityGroup createEmrClusterMasterGroupFromRequest ( String namespaceCd , String clusterDefinitionName , String clusterName , List < String > groupIds ) { EmrMasterSecurityGroup emrMasterSecurityGroup = new EmrMasterSecurityGroup ( ) ; emrMasterSecurityGroup . setNamespace ( namespaceCd ) ; emrMaster...
114