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-5362
java
How do the relevant fields for the object instance passed in write ?
using the given pdxwriter
public boolean write Data ( Pdx Writer writer , Object obj ) { if ( is Relevant ( obj . get Class ( ) ) ) { write Data ( writer , obj , get Class Info ( obj . get Class ( ) ) ) ; return BOOL ; } return BOOL ; }
public boolean writeData ( PdxWriter writer , Object obj ) { if ( isRelevant ( obj . getClass ( ) ) ) { writeData ( writer , obj , getClassInfo ( obj . getClass ( ) ) ) ; return _BOOL ; } return _BOOL ; }
55
java-test-5363
java
What does the code use ?
the given pdxwriter
public boolean write Data ( Pdx Writer writer , Object obj ) { if ( is Relevant ( obj . get Class ( ) ) ) { write Data ( writer , obj , get Class Info ( obj . get Class ( ) ) ) ; return BOOL ; } return BOOL ; }
public boolean writeData ( PdxWriter writer , Object obj ) { if ( isRelevant ( obj . getClass ( ) ) ) { writeData ( writer , obj , getClassInfo ( obj . getClass ( ) ) ) ; return _BOOL ; } return _BOOL ; }
55
java-test-5364
java
What do a histogram enumerate ?
all of the return value of failurereasons
@ Visible For Testing void record Failure Reasons ( Context context ) { int reasons = Failure Reason . bit Value ( failure Reasons ( context ) ) ; m Failure Reasons To Record . add ( reasons ) ; if ( Library Loader . is Initialized ( ) ) { Integer reasons To Record ; while ( ( reasons To Record = m Failure Reasons To R...
@ VisibleForTesting void recordFailureReasons ( Context context ) { int reasons = FailureReason . bitValue ( failureReasons ( context ) ) ; mFailureReasonsToRecord . add ( reasons ) ; if ( LibraryLoader . isInitialized ( ) ) { Integer reasonsToRecord ; while ( ( reasonsToRecord = mFailureReasonsToRecord . poll ( ) ) !=...
104
java-test-5365
java
What do the current context have ?
a static member import , either on - demand or explicit
public static boolean has Import Static ( String fq Class Name , String member Name , Psi Element context ) { final Psi File file = context . get Containing File ( ) ; if ( ! ( file instanceof Psi Java File ) ) { return BOOL ; } final Psi Java File java File = ( Psi Java File ) file ; final Psi Import List import List ...
public static boolean hasImportStatic ( String fqClassName , String memberName , PsiElement context ) { final PsiFile file = context . getContainingFile ( ) ; if ( ! ( file instanceof PsiJavaFile ) ) { return _BOOL ; } final PsiJavaFile javaFile = ( PsiJavaFile ) file ; final PsiImportList importList = javaFile . getIm...
306
java-test-5366
java
What does the code render into textures ?
the normals and depth
void render Normal And Depth ( ) { gl Enable ( GL DEPTH TEST ) ; gl Use Program ( this . normal Program ) ; gl Uniform Matrix 4 fv ( view Matrix Uniform , BOOL , view Matrix . get ( matrix Buffer ) ) ; gl Uniform Matrix 4 fv ( proj Matrix Uniform , BOOL , proj Matrix . get ( matrix Buffer ) ) ; gl Uniform Matrix 3 fv (...
void renderNormalAndDepth ( ) { glEnable ( GL_DEPTH_TEST ) ; glUseProgram ( this . normalProgram ) ; glUniformMatrix4fv ( viewMatrixUniform , _BOOL , viewMatrix . get ( matrixBuffer ) ) ; glUniformMatrix4fv ( projMatrixUniform , _BOOL , projMatrix . get ( matrixBuffer ) ) ; glUniformMatrix3fv ( normalMatrixUniform , _B...
251
java-test-5367
java
When does us compute the length of the output stream ?
when stream is closed
@ Override public void around Write To ( Writer Interceptor Context writer Interceptor Context ) throws IO Exception { Length Of Output Stream stream = ( Length Of Output Stream ) writer Interceptor Context . get Property ( PROPERTY OUTPUT STREAM ) ; try { writer Interceptor Context . proceed ( ) ; if ( stream != null ...
@ Override public void aroundWriteTo ( WriterInterceptorContext writerInterceptorContext ) throws IOException { LengthOfOutputStream stream = ( LengthOfOutputStream ) writerInterceptorContext . getProperty ( PROPERTY_OUTPUT_STREAM ) ; try { writerInterceptorContext . proceed ( ) ; if ( stream != null ) { emitSuccess ( ...
191
java-test-5368
java
What does us compute when stream is closed ?
the length of the output stream
@ Override public void around Write To ( Writer Interceptor Context writer Interceptor Context ) throws IO Exception { Length Of Output Stream stream = ( Length Of Output Stream ) writer Interceptor Context . get Property ( PROPERTY OUTPUT STREAM ) ; try { writer Interceptor Context . proceed ( ) ; if ( stream != null ...
@ Override public void aroundWriteTo ( WriterInterceptorContext writerInterceptorContext ) throws IOException { LengthOfOutputStream stream = ( LengthOfOutputStream ) writerInterceptorContext . getProperty ( PROPERTY_OUTPUT_STREAM ) ; try { writerInterceptorContext . proceed ( ) ; if ( stream != null ) { emitSuccess ( ...
191
java-test-5369
java
What does this allow ?
us to compute the length of the output stream when stream is closed
@ Override public void around Write To ( Writer Interceptor Context writer Interceptor Context ) throws IO Exception { Length Of Output Stream stream = ( Length Of Output Stream ) writer Interceptor Context . get Property ( PROPERTY OUTPUT STREAM ) ; try { writer Interceptor Context . proceed ( ) ; if ( stream != null ...
@ Override public void aroundWriteTo ( WriterInterceptorContext writerInterceptorContext ) throws IOException { LengthOfOutputStream stream = ( LengthOfOutputStream ) writerInterceptorContext . getProperty ( PROPERTY_OUTPUT_STREAM ) ; try { writerInterceptorContext . proceed ( ) ; if ( stream != null ) { emitSuccess ( ...
191
java-test-5370
java
What converts to forward slashes ?
back slashes
@ Not Null public static String normalize ( @ Not Null String path ) { int start = NUM ; boolean separator = BOOL ; if ( System Info . is Windows ) { if ( path . starts With ( STRING ) ) { start = NUM ; separator = BOOL ; } else if ( path . starts With ( STRING ) ) { return normalize Tail ( NUM , path , BOOL ) ; } } fo...
@ NotNull public static String normalize ( @ NotNull String path ) { int start = _NUM ; boolean separator = _BOOL ; if ( SystemInfo . isWindows ) { if ( path . startsWith ( STRING ) ) { start = _NUM ; separator = _BOOL ; } else if ( path . startsWith ( STRING ) ) { return normalizeTail ( _NUM , path , _BOOL ) ; } } for...
171
java-test-5371
java
What does back slashes convert ?
to forward slashes
@ Not Null public static String normalize ( @ Not Null String path ) { int start = NUM ; boolean separator = BOOL ; if ( System Info . is Windows ) { if ( path . starts With ( STRING ) ) { start = NUM ; separator = BOOL ; } else if ( path . starts With ( STRING ) ) { return normalize Tail ( NUM , path , BOOL ) ; } } fo...
@ NotNull public static String normalize ( @ NotNull String path ) { int start = _NUM ; boolean separator = _BOOL ; if ( SystemInfo . isWindows ) { if ( path . startsWith ( STRING ) ) { start = _NUM ; separator = _BOOL ; } else if ( path . startsWith ( STRING ) ) { return normalizeTail ( _NUM , path , _BOOL ) ; } } for...
171
java-test-5372
java
For what purpose should this method return its argument just ?
for a correctly formed url
public String canonicalize ( String simple URL ) { String result URL = simple URL ; if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRI...
public String canonicalize ( String simpleURL ) { String resultURL = simpleURL ; if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL...
131
java-test-5373
java
How does that url transform into a canonical form ?
by including a protocol name and additional syntax , if necessary
public String canonicalize ( String simple URL ) { String result URL = simple URL ; if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRI...
public String canonicalize ( String simpleURL ) { String resultURL = simpleURL ; if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL...
131
java-test-5374
java
What does this method ' s job be ?
to transform that url into a canonical form , by including a protocol name and additional syntax , if necessary . for a correctly formed url
public String canonicalize ( String simple URL ) { String result URL = simple URL ; if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRI...
public String canonicalize ( String simpleURL ) { String resultURL = simpleURL ; if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL...
131
java-test-5375
java
What is to transform that url into a canonical form , by including a protocol name and additional syntax , if necessary . for a correctly formed url ?
this method ' s job
public String canonicalize ( String simple URL ) { String result URL = simple URL ; if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRI...
public String canonicalize ( String simpleURL ) { String resultURL = simpleURL ; if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL...
131
java-test-5376
java
What do primitive ( not boolean ) convert ?
to boolean or byte
private static void primitive 2 b ( Method Visitor mv , Class Node type ) { Label true Label = new Label ( ) ; Label false Label = new Label ( ) ; if ( type == Class Helper . double TYPE ) { mv . visit Insn ( DCONST 0 ) ; mv . visit Insn ( DCMPL ) ; } else if ( type == Class Helper . long TYPE ) { mv . visit Insn ( LCO...
private static void primitive2b ( MethodVisitor mv , ClassNode type ) { Label trueLabel = new Label ( ) ; Label falseLabel = new Label ( ) ; if ( type == ClassHelper . double_TYPE ) { mv . visitInsn ( DCONST_0 ) ; mv . visitInsn ( DCMPL ) ; } else if ( type == ClassHelper . long_TYPE ) { mv . visitInsn ( LCONST_0 ) ; m...
197
java-test-5377
java
What converts to boolean or byte ?
primitive ( not boolean )
private static void primitive 2 b ( Method Visitor mv , Class Node type ) { Label true Label = new Label ( ) ; Label false Label = new Label ( ) ; if ( type == Class Helper . double TYPE ) { mv . visit Insn ( DCONST 0 ) ; mv . visit Insn ( DCMPL ) ; } else if ( type == Class Helper . long TYPE ) { mv . visit Insn ( LCO...
private static void primitive2b ( MethodVisitor mv , ClassNode type ) { Label trueLabel = new Label ( ) ; Label falseLabel = new Label ( ) ; if ( type == ClassHelper . double_TYPE ) { mv . visitInsn ( DCONST_0 ) ; mv . visitInsn ( DCMPL ) ; } else if ( type == ClassHelper . long_TYPE ) { mv . visitInsn ( LCONST_0 ) ; m...
197
java-test-5381
java
What does the code create ?
properly formatted message to send over udp that acts like a syslog message syslog format : " & lt ; priority & gt ; timestamp orange_link blue_link : message " details : http : / / en . wikipedia . org / wiki / syslog # priority
protected void send Log Event ( String component , String message , Callback < Object > callback ) { String syslog Message = String . format ( Locale . US , STRING , get Sys Log Formatted Date ( ) , utils . get Application Name ( context ) , component , message ) ; send Data Over UDP ( syslog Message , callback ) ; }
protected void sendLogEvent ( String component , String message , Callback < Object > callback ) { String syslogMessage = String . format ( Locale . US , STRING , getSysLogFormattedDate ( ) , utils . getApplicationName ( context ) , component , message ) ; sendDataOverUDP ( syslogMessage , callback ) ; }
67
java-test-5382
java
What does the code serialize ?
the given exceptions stacktrace elements as well as it ' s suppressed exceptions to the given output stream
public static < T extends Throwable > T write Stack Traces ( T throwable , Stream Output out ) throws IO Exception { Stack Trace Element [ ] stack Trace = throwable . get Stack Trace ( ) ; out . write V Int ( stack Trace . length ) ; for ( Stack Trace Element element : stack Trace ) { out . write String ( element . get...
public static < T extends Throwable > T writeStackTraces ( T throwable , StreamOutput out ) throws IOException { StackTraceElement [ ] stackTrace = throwable . getStackTrace ( ) ; out . writeVInt ( stackTrace . length ) ; for ( StackTraceElement element : stackTrace ) { out . writeString ( element . getClassName ( ) ) ...
165
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