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-6735
java
What do explicit acquisition beforehand provide ?
any help in avoiding deadlock
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6736
java
What provides any help in avoiding deadlock ?
explicit acquisition beforehand
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6737
java
How do the mergehash and the basehash merger this function ?
by over riding any attributes found in the basehash
private Map merge Map ( Map base Hash , Map merge Hash ) { Map results = null ; if ( base Hash != null ) { results = new Hash Map ( base Hash ) ; } if ( merge Hash != null ) { if ( results != null ) { results . put All ( merge Hash ) ; } else { results = merge Hash ; } } return results ; }
private Map mergeMap ( Map baseHash , Map mergeHash ) { Map results = null ; if ( baseHash != null ) { results = new HashMap ( baseHash ) ; } if ( mergeHash != null ) { if ( results != null ) { results . putAll ( mergeHash ) ; } else { results = mergeHash ; } } return results ; }
76
java-test-6738
java
Where did any attributes find ?
in the basehash
private Map merge Map ( Map base Hash , Map merge Hash ) { Map results = null ; if ( base Hash != null ) { results = new Hash Map ( base Hash ) ; } if ( merge Hash != null ) { if ( results != null ) { results . put All ( merge Hash ) ; } else { results = merge Hash ; } } return results ; }
private Map mergeMap ( Map baseHash , Map mergeHash ) { Map results = null ; if ( baseHash != null ) { results = new HashMap ( baseHash ) ; } if ( mergeHash != null ) { if ( results != null ) { results . putAll ( mergeHash ) ; } else { results = mergeHash ; } } return results ; }
76
java-test-6739
java
What does the code merge with the basehash ?
the mergehash
private Map merge Map ( Map base Hash , Map merge Hash ) { Map results = null ; if ( base Hash != null ) { results = new Hash Map ( base Hash ) ; } if ( merge Hash != null ) { if ( results != null ) { results . put All ( merge Hash ) ; } else { results = merge Hash ; } } return results ; }
private Map mergeMap ( Map baseHash , Map mergeHash ) { Map results = null ; if ( baseHash != null ) { results = new HashMap ( baseHash ) ; } if ( mergeHash != null ) { if ( results != null ) { results . putAll ( mergeHash ) ; } else { results = mergeHash ; } } return results ; }
76
java-test-6740
java
What did service type parameters use ?
in push or post to registry
private Registry Services build Service Type Params ( Resource resource ) { Registry Services rs = new Registry Services ( ) ; rs . service Types = SERVICE TYPE EML ; rs . service UR Ls = cfg . get Resource Eml Url ( resource . get Shortname ( ) ) ; if ( resource . has Published Data ( ) && resource . get Core Type Ter...
private RegistryServices buildServiceTypeParams ( Resource resource ) { RegistryServices rs = new RegistryServices ( ) ; rs . serviceTypes = SERVICE_TYPE_EML ; rs . serviceURLs = cfg . getResourceEmlUrl ( resource . getShortname ( ) ) ; if ( resource . hasPublishedData ( ) && resource . getCoreTypeTerm ( ) != null ) { ...
295
java-test-6741
java
What used in push or post to registry ?
service type parameters
private Registry Services build Service Type Params ( Resource resource ) { Registry Services rs = new Registry Services ( ) ; rs . service Types = SERVICE TYPE EML ; rs . service UR Ls = cfg . get Resource Eml Url ( resource . get Shortname ( ) ) ; if ( resource . has Published Data ( ) && resource . get Core Type Ter...
private RegistryServices buildServiceTypeParams ( Resource resource ) { RegistryServices rs = new RegistryServices ( ) ; rs . serviceTypes = SERVICE_TYPE_EML ; rs . serviceURLs = cfg . getResourceEmlUrl ( resource . getShortname ( ) ) ; if ( resource . hasPublishedData ( ) && resource . getCoreTypeTerm ( ) != null ) { ...
295
java-test-6742
java
What does the code convert into a string ?
the header portion , i . e . codebase , signer , principals , of this policy entry
String header To String ( ) { String p String = principals To String ( ) ; if ( p String . length ( ) == NUM ) { return codebase To String ( ) ; } else { return codebase To String ( ) + STRING + p String ; } }
String headerToString ( ) { String pString = principalsToString ( ) ; if ( pString . length ( ) == _NUM ) { return codebaseToString ( ) ; } else { return codebaseToString ( ) + STRING + pString ; } }
53
java-test-6745
java
What does the code create ?
a list of shaperecord to draw a line from the given origin ( startx , starty ) to the specified coordinates ( in pixels )
public static List < Shape Record > line ( double start X , double start Y , double end X , double end Y ) { List < Shape Record > shape Records = new Array List < Shape Record > ( ) ; shape Records . add ( move ( start X , start Y ) ) ; shape Records . add All ( straight Edge ( start X , start Y , end X , end Y ) ) ; ...
public static List < ShapeRecord > line ( double startX , double startY , double endX , double endY ) { List < ShapeRecord > shapeRecords = new ArrayList < ShapeRecord > ( ) ; shapeRecords . add ( move ( startX , startY ) ) ; shapeRecords . addAll ( straightEdge ( startX , startY , endX , endY ) ) ; return shapeRecords...
87
java-test-6746
java
How should which return always ?
the same as string
public void test Explode ( ) { String [ ] test Strings = { STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING } ; for ( String test : test Strings ) { String [ ] result Explode = String Utils . explode ( test , STRING ) ; String [ ] result Split = test . split ( STRING ) ; assert Eq...
public void testExplode ( ) { String [ ] testStrings = { STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING } ; for ( String test : testStrings ) { String [ ] resultExplode = StringUtils . explode ( test , STRING ) ; String [ ] resultSplit = test . split ( STRING ) ; assertEquals ( ...
140
java-test-6748
java
What does the code compare ?
the equality of two compact array objects
public boolean equals ( Object obj ) { if ( obj == null ) return BOOL ; if ( this == obj ) return BOOL ; if ( get Class ( ) != obj . get Class ( ) ) return BOOL ; Compact Byte Array other = ( Compact Byte Array ) obj ; for ( int i = NUM ; i < UNICODECOUNT ; i ++ ) { if ( element At ( ( char ) i ) != other . element At ...
public boolean equals ( Object obj ) { if ( obj == null ) return _BOOL ; if ( this == obj ) return _BOOL ; if ( getClass ( ) != obj . getClass ( ) ) return _BOOL ; CompactByteArray other = ( CompactByteArray ) obj ; for ( int i = _NUM ; i < UNICODECOUNT ; i ++ ) { if ( elementAt ( ( char ) i ) != other . elementAt ( ( ...
100
java-test-6749
java
What does the code add ?
a timestamp manifest to this signature
public void add Timestamp Manifest ( String timestamp Manifest Xml ) throws Exception { Element object = get First Element By Tag Name ( document , ds Element ( Constants . TAG OBJECT ) ) ; Document timestamp Manifest Doc = parse Document ( timestamp Manifest Xml , BOOL ) ; Element timestamp Manifest Element = timestam...
public void addTimestampManifest ( String timestampManifestXml ) throws Exception { Element object = getFirstElementByTagName ( document , dsElement ( Constants . _TAG_OBJECT ) ) ; Document timestampManifestDoc = parseDocument ( timestampManifestXml , _BOOL ) ; Element timestampManifestElement = timestampManifestDoc . ...
85
java-test-6751
java
What did lexes block cut ?
heading and tailing spaces / newlines
protected void re Lex HTMLB Lock ( int block Start , int block End , int last Nonspace Character Offset , I Element Type template Element Type ) { List < Custom Token > tokens = new Array List < Custom Token > ( ) ; int my Offset = lex Spaces In Range ( block Start , block End , tokens ) ; if ( my Offset <= last Nonspa...
protected void reLexHTMLBLock ( int blockStart , int blockEnd , int lastNonspaceCharacterOffset , IElementType templateElementType ) { List < CustomToken > tokens = new ArrayList < CustomToken > ( ) ; int myOffset = lexSpacesInRange ( blockStart , blockEnd , tokens ) ; if ( myOffset <= lastNonspaceCharacterOffset ) { t...
165
java-test-6752
java
What do we have ?
index file that points to files that were deleted
protected void finalize ( List < Snapshot Files > snapshots , int file List Generation , Map < String , Blob Meta Data > blobs ) { Blob Store Index Shard Snapshots new Snapshots = new Blob Store Index Shard Snapshots ( snapshots ) ; List < String > blobs To Delete = new Array List < > ( ) ; for ( String blob Name : blo...
protected void finalize ( List < SnapshotFiles > snapshots , int fileListGeneration , Map < String , BlobMetaData > blobs ) { BlobStoreIndexShardSnapshots newSnapshots = new BlobStoreIndexShardSnapshots ( snapshots ) ; List < String > blobsToDelete = new ArrayList < > ( ) ; for ( String blobName : blobs . keySet ( ) ) ...
342
java-test-6753
java
What do we need ?
to be really careful in handling index files in case of failures to make sure we have index file that points to files that were deleted
protected void finalize ( List < Snapshot Files > snapshots , int file List Generation , Map < String , Blob Meta Data > blobs ) { Blob Store Index Shard Snapshots new Snapshots = new Blob Store Index Shard Snapshots ( snapshots ) ; List < String > blobs To Delete = new Array List < > ( ) ; for ( String blob Name : blo...
protected void finalize ( List < SnapshotFiles > snapshots , int fileListGeneration , Map < String , BlobMetaData > blobs ) { BlobStoreIndexShardSnapshots newSnapshots = new BlobStoreIndexShardSnapshots ( snapshots ) ; List < String > blobsToDelete = new ArrayList < > ( ) ; for ( String blobName : blobs . keySet ( ) ) ...
342
java-test-6754
java
What do we handle ?
index files
protected void finalize ( List < Snapshot Files > snapshots , int file List Generation , Map < String , Blob Meta Data > blobs ) { Blob Store Index Shard Snapshots new Snapshots = new Blob Store Index Shard Snapshots ( snapshots ) ; List < String > blobs To Delete = new Array List < > ( ) ; for ( String blob Name : blo...
protected void finalize ( List < SnapshotFiles > snapshots , int fileListGeneration , Map < String , BlobMetaData > blobs ) { BlobStoreIndexShardSnapshots newSnapshots = new BlobStoreIndexShardSnapshots ( snapshots ) ; List < String > blobsToDelete = new ArrayList < > ( ) ; for ( String blobName : blobs . keySet ( ) ) ...
342
java-test-6755
java
For what purpose be we be really careful in handling index files ?
in case of failures
protected void finalize ( List < Snapshot Files > snapshots , int file List Generation , Map < String , Blob Meta Data > blobs ) { Blob Store Index Shard Snapshots new Snapshots = new Blob Store Index Shard Snapshots ( snapshots ) ; List < String > blobs To Delete = new Array List < > ( ) ; for ( String blob Name : blo...
protected void finalize ( List < SnapshotFiles > snapshots , int fileListGeneration , Map < String , BlobMetaData > blobs ) { BlobStoreIndexShardSnapshots newSnapshots = new BlobStoreIndexShardSnapshots ( snapshots ) ; List < String > blobsToDelete = new ArrayList < > ( ) ; for ( String blobName : blobs . keySet ( ) ) ...
342
java-test-6756
java
What does the code create at the given location ?
a field annotation for the given element name
private void create Field Annotation ( J Cas jcas , String local Name , int begin , int end ) { String field Name = null ; if ( use Substitution ) { field Name = substitution . get ( local Name ) ; if ( field Name == null ) { field Name = local Name ; } } else { field Name = local Name ; } Field field = new Field ( jca...
private void createFieldAnnotation ( JCas jcas , String localName , int begin , int end ) { String fieldName = null ; if ( useSubstitution ) { fieldName = substitution . get ( localName ) ; if ( fieldName == null ) { fieldName = localName ; } } else { fieldName = localName ; } Field field = new Field ( jcas , begin , e...
100
java-test-6757
java
How is the field created if substitutions are used ?
using the substituted name
private void create Field Annotation ( J Cas jcas , String local Name , int begin , int end ) { String field Name = null ; if ( use Substitution ) { field Name = substitution . get ( local Name ) ; if ( field Name == null ) { field Name = local Name ; } } else { field Name = local Name ; } Field field = new Field ( jca...
private void createFieldAnnotation ( JCas jcas , String localName , int begin , int end ) { String fieldName = null ; if ( useSubstitution ) { fieldName = substitution . get ( localName ) ; if ( fieldName == null ) { fieldName = localName ; } } else { fieldName = localName ; } Field field = new Field ( jcas , begin , e...
100
java-test-6760
java
What do guice do on the injected instances ?
static analysis
void validate Oustanding Injections ( Errors errors ) { for ( Injectable Reference < ? > reference : pending Injection . values ( ) ) { try { reference . validate ( errors ) ; } catch ( Errors Exception e ) { errors . merge ( e . get Errors ( ) ) ; } } }
void validateOustandingInjections ( Errors errors ) { for ( InjectableReference < ? > reference : pendingInjection . values ( ) ) { try { reference . validate ( errors ) ; } catch ( ErrorsException e ) { errors . merge ( e . getErrors ( ) ) ; } } }
58
java-test-6761
java
Where do guice do static analysis ?
on the injected instances
void validate Oustanding Injections ( Errors errors ) { for ( Injectable Reference < ? > reference : pending Injection . values ( ) ) { try { reference . validate ( errors ) ; } catch ( Errors Exception e ) { errors . merge ( e . get Errors ( ) ) ; } } }
void validateOustandingInjections ( Errors errors ) { for ( InjectableReference < ? > reference : pendingInjection . values ( ) ) { try { reference . validate ( errors ) ; } catch ( ErrorsException e ) { errors . merge ( e . getErrors ( ) ) ; } } }
58
java-test-6763
java
What will it print if the tlc runs in print - diff - only mode and the last state is set if the tlc runs in print - diff - only mode and the last state is set ?
the diff
public static void print State ( TLC State current State , TLC State last State , int num ) { String state String ; if ( last State != null && TLC Globals . print Diffs Only ) { state String = current State . to String ( last State ) ; } else { state String = current State . to String ( ) ; } MP . print State ( EC . TL...
public static void printState ( TLCState currentState , TLCState lastState , int num ) { String stateString ; if ( lastState != null && TLCGlobals . printDiffsOnly ) { stateString = currentState . toString ( lastState ) ; } else { stateString = currentState . toString ( ) ; } MP . printState ( EC . TLC_STATE_PRINT1 , n...
103
java-test-6764
java
What runs in print - diff - only mode ?
the tlc
public static void print State ( TLC State current State , TLC State last State , int num ) { String state String ; if ( last State != null && TLC Globals . print Diffs Only ) { state String = current State . to String ( last State ) ; } else { state String = current State . to String ( ) ; } MP . print State ( EC . TL...
public static void printState ( TLCState currentState , TLCState lastState , int num ) { String stateString ; if ( lastState != null && TLCGlobals . printDiffsOnly ) { stateString = currentState . toString ( lastState ) ; } else { stateString = currentState . toString ( ) ; } MP . printState ( EC . TLC_STATE_PRINT1 , n...
103
java-test-6765
java
Where do the tlc run ?
in print - diff - only mode
public static void print State ( TLC State current State , TLC State last State , int num ) { String state String ; if ( last State != null && TLC Globals . print Diffs Only ) { state String = current State . to String ( last State ) ; } else { state String = current State . to String ( ) ; } MP . print State ( EC . TL...
public static void printState ( TLCState currentState , TLCState lastState , int num ) { String stateString ; if ( lastState != null && TLCGlobals . printDiffsOnly ) { stateString = currentState . toString ( lastState ) ; } else { stateString = currentState . toString ( ) ; } MP . printState ( EC . TLC_STATE_PRINT1 , n...
103
java-test-6766
java
What does the code find ?
the index of the given " minutes " in the " values " list
public static int find Minutes In Reminder List ( Array List < Integer > values , int minutes ) { int index = values . index Of ( minutes ) ; if ( index == - NUM ) { Log . e ( TAG , STRING + minutes + STRING ) ; return NUM ; } return index ; }
public static int findMinutesInReminderList ( ArrayList < Integer > values , int minutes ) { int index = values . indexOf ( minutes ) ; if ( index == - _NUM ) { Log . e ( TAG , STRING + minutes + STRING ) ; return _NUM ; } return index ; }
60
java-test-6767
java
How does all copy fields remove ?
with the given source field name
private void remove Copy Field Source ( String source Field Name , List < Copy Field > removed Copy Fields ) { List < Copy Field > source Copy Fields = copy Fields Map . remove ( source Field Name ) ; if ( null != source Copy Fields ) { for ( Copy Field source Copy Field : source Copy Fields ) { decrement Copy Field Ta...
private void removeCopyFieldSource ( String sourceFieldName , List < CopyField > removedCopyFields ) { List < CopyField > sourceCopyFields = copyFieldsMap . remove ( sourceFieldName ) ; if ( null != sourceCopyFields ) { for ( CopyField sourceCopyField : sourceCopyFields ) { decrementCopyFieldTargetCount ( sourceCopyFie...
94
java-test-6768
java
What adds to removedcopyfields ?
the removed copy fields
private void remove Copy Field Source ( String source Field Name , List < Copy Field > removed Copy Fields ) { List < Copy Field > source Copy Fields = copy Fields Map . remove ( source Field Name ) ; if ( null != source Copy Fields ) { for ( Copy Field source Copy Field : source Copy Fields ) { decrement Copy Field Ta...
private void removeCopyFieldSource ( String sourceFieldName , List < CopyField > removedCopyFields ) { List < CopyField > sourceCopyFields = copyFieldsMap . remove ( sourceFieldName ) ; if ( null != sourceCopyFields ) { for ( CopyField sourceCopyField : sourceCopyFields ) { decrementCopyFieldTargetCount ( sourceCopyFie...
94
java-test-6769
java
What do the removed copy fields add ?
to removedcopyfields
private void remove Copy Field Source ( String source Field Name , List < Copy Field > removed Copy Fields ) { List < Copy Field > source Copy Fields = copy Fields Map . remove ( source Field Name ) ; if ( null != source Copy Fields ) { for ( Copy Field source Copy Field : source Copy Fields ) { decrement Copy Field Ta...
private void removeCopyFieldSource ( String sourceFieldName , List < CopyField > removedCopyFields ) { List < CopyField > sourceCopyFields = copyFieldsMap . remove ( sourceFieldName ) ; if ( null != sourceCopyFields ) { for ( CopyField sourceCopyField : sourceCopyFields ) { decrementCopyFieldTargetCount ( sourceCopyFie...
94
java-test-6770
java
Where is the default format defined ?
in messages . properties
public static String current Default Formatted Time Stamp ( ) { try { Simple Date Format sdf = new Simple Date Format ( DEFAULT TIME STAMP FORMAT ) ; final String formatted Time Stamp = sdf . format ( new Date ( ) ) ; return formatted Time Stamp ; } catch ( Illegal Argument Exception e ) { Simple Date Format sdf = new ...
public static String currentDefaultFormattedTimeStamp ( ) { try { SimpleDateFormat sdf = new SimpleDateFormat ( DEFAULT_TIME_STAMP_FORMAT ) ; final String formattedTimeStamp = sdf . format ( new Date ( ) ) ; return formattedTimeStamp ; } catch ( IllegalArgumentException e ) { SimpleDateFormat sdf = new SimpleDateFormat...
98
java-test-6771
java
What does the code get ?
the current time stamp based on the default format
public static String current Default Formatted Time Stamp ( ) { try { Simple Date Format sdf = new Simple Date Format ( DEFAULT TIME STAMP FORMAT ) ; final String formatted Time Stamp = sdf . format ( new Date ( ) ) ; return formatted Time Stamp ; } catch ( Illegal Argument Exception e ) { Simple Date Format sdf = new ...
public static String currentDefaultFormattedTimeStamp ( ) { try { SimpleDateFormat sdf = new SimpleDateFormat ( DEFAULT_TIME_STAMP_FORMAT ) ; final String formattedTimeStamp = sdf . format ( new Date ( ) ) ; return formattedTimeStamp ; } catch ( IllegalArgumentException e ) { SimpleDateFormat sdf = new SimpleDateFormat...
98
java-test-6772
java
What is defined in messages . properties ?
the default format
public static String current Default Formatted Time Stamp ( ) { try { Simple Date Format sdf = new Simple Date Format ( DEFAULT TIME STAMP FORMAT ) ; final String formatted Time Stamp = sdf . format ( new Date ( ) ) ; return formatted Time Stamp ; } catch ( Illegal Argument Exception e ) { Simple Date Format sdf = new ...
public static String currentDefaultFormattedTimeStamp ( ) { try { SimpleDateFormat sdf = new SimpleDateFormat ( DEFAULT_TIME_STAMP_FORMAT ) ; final String formattedTimeStamp = sdf . format ( new Date ( ) ) ; return formattedTimeStamp ; } catch ( IllegalArgumentException e ) { SimpleDateFormat sdf = new SimpleDateFormat...
98
java-test-6773
java
What does the code add in classmembers before the first method node ?
a field node
void add Field To Class Members ( Node class Members , Node field ) { for ( Node n : class Members . children ( ) ) { if ( n . is Member Function Def ( ) ) { class Members . add Child Before ( field , n ) ; return ; } } class Members . add Child To Back ( field ) ; }
void addFieldToClassMembers ( Node classMembers , Node field ) { for ( Node n : classMembers . children ( ) ) { if ( n . isMemberFunctionDef ( ) ) { classMembers . addChildBefore ( field , n ) ; return ; } } classMembers . addChildToBack ( field ) ; }
68
java-test-6774
java
When does the code add a field node in classmembers ?
before the first method node
void add Field To Class Members ( Node class Members , Node field ) { for ( Node n : class Members . children ( ) ) { if ( n . is Member Function Def ( ) ) { class Members . add Child Before ( field , n ) ; return ; } } class Members . add Child To Back ( field ) ; }
void addFieldToClassMembers ( Node classMembers , Node field ) { for ( Node n : classMembers . children ( ) ) { if ( n . isMemberFunctionDef ( ) ) { classMembers . addChildBefore ( field , n ) ; return ; } } classMembers . addChildToBack ( field ) ; }
68
java-test-6775
java
Where does the code add a field node before the first method node ?
in classmembers
void add Field To Class Members ( Node class Members , Node field ) { for ( Node n : class Members . children ( ) ) { if ( n . is Member Function Def ( ) ) { class Members . add Child Before ( field , n ) ; return ; } } class Members . add Child To Back ( field ) ; }
void addFieldToClassMembers ( Node classMembers , Node field ) { for ( Node n : classMembers . children ( ) ) { if ( n . isMemberFunctionDef ( ) ) { classMembers . addChildBefore ( field , n ) ; return ; } } classMembers . addChildToBack ( field ) ; }
68
java-test-6778
java
What does the code create ?
an alert event with error logs attached , which aid in troubleshooting customer issues and sends it to connectemc . <
public Task Resource Rep send Alert ( String source , Integer event Id , List < String > node Ids , List < String > node Names , List < String > log Names , Integer severity , String start , String end , String msg Regex , Integer max Count , boolean multiple Requests , Event Parameters event Parameters ) { Uri Builder...
public TaskResourceRep sendAlert ( String source , Integer eventId , List < String > nodeIds , List < String > nodeNames , List < String > logNames , Integer severity , String start , String end , String msgRegex , Integer maxCount , boolean multipleRequests , EventParameters eventParameters ) { UriBuilder builder = cl...
296
java-test-6779
java
What does an alert event with error logs attached send it ?
to connectemc
public Task Resource Rep send Alert ( String source , Integer event Id , List < String > node Ids , List < String > node Names , List < String > log Names , Integer severity , String start , String end , String msg Regex , Integer max Count , boolean multiple Requests , Event Parameters event Parameters ) { Uri Builder...
public TaskResourceRep sendAlert ( String source , Integer eventId , List < String > nodeIds , List < String > nodeNames , List < String > logNames , Integer severity , String start , String end , String msgRegex , Integer maxCount , boolean multipleRequests , EventParameters eventParameters ) { UriBuilder builder = cl...
296
java-test-6780
java
What sends to connectemc it ?
an alert event with error logs attached
public Task Resource Rep send Alert ( String source , Integer event Id , List < String > node Ids , List < String > node Names , List < String > log Names , Integer severity , String start , String end , String msg Regex , Integer max Count , boolean multiple Requests , Event Parameters event Parameters ) { Uri Builder...
public TaskResourceRep sendAlert ( String source , Integer eventId , List < String > nodeIds , List < String > nodeNames , List < String > logNames , Integer severity , String start , String end , String msgRegex , Integer maxCount , boolean multipleRequests , EventParameters eventParameters ) { UriBuilder builder = cl...
296
java-test-6782
java
What do this wipe effectively ?
any text in progress
synchronized private void insert Text ( String a String ) { Attributed String attrib String = new Attributed String ( a String ) ; attrib String . add Attribute ( Attribute . LANGUAGE , get Locale ( ) , NUM , a String . length ( ) ) ; Text Hit Info the Caret = Text Hit Info . after Offset ( a String . length ( ) - NUM ...
synchronized private void insertText ( String aString ) { AttributedString attribString = new AttributedString ( aString ) ; attribString . addAttribute ( Attribute . LANGUAGE , getLocale ( ) , _NUM , aString . length ( ) ) ; TextHitInfo theCaret = TextHitInfo . afterOffset ( aString . length ( ) - _NUM ) ; InputMethod...
163
java-test-6783
java
What do the component commit to the current text view ?
all of the characters in the string
synchronized private void insert Text ( String a String ) { Attributed String attrib String = new Attributed String ( a String ) ; attrib String . add Attribute ( Attribute . LANGUAGE , get Locale ( ) , NUM , a String . length ( ) ) ; Text Hit Info the Caret = Text Hit Info . after Offset ( a String . length ( ) - NUM ...
synchronized private void insertText ( String aString ) { AttributedString attribString = new AttributedString ( aString ) ; attribString . addAttribute ( Attribute . LANGUAGE , getLocale ( ) , _NUM , aString . length ( ) ) ; TextHitInfo theCaret = TextHitInfo . afterOffset ( aString . length ( ) - _NUM ) ; InputMethod...
163
java-test-6784
java
What does the code tell ?
the component to commit all of the characters in the string to the current text view
synchronized private void insert Text ( String a String ) { Attributed String attrib String = new Attributed String ( a String ) ; attrib String . add Attribute ( Attribute . LANGUAGE , get Locale ( ) , NUM , a String . length ( ) ) ; Text Hit Info the Caret = Text Hit Info . after Offset ( a String . length ( ) - NUM ...
synchronized private void insertText ( String aString ) { AttributedString attribString = new AttributedString ( aString ) ; attribString . addAttribute ( Attribute . LANGUAGE , getLocale ( ) , _NUM , aString . length ( ) ) ; TextHitInfo theCaret = TextHitInfo . afterOffset ( aString . length ( ) - _NUM ) ; InputMethod...
163
java-test-6785
java
What does a string replace ?
with another string in a string object
public static String replace String ( String original String , String token , String new String ) { int len Token = token . length ( ) ; int idx = original String . index Of ( token ) ; while ( idx != - NUM ) { original String = original String . substring ( NUM , idx ) + new String + original String . substring ( idx ...
public static String replaceString ( String originalString , String token , String newString ) { int lenToken = token . length ( ) ; int idx = originalString . indexOf ( token ) ; while ( idx != - _NUM ) { originalString = originalString . substring ( _NUM , idx ) + newString + originalString . substring ( idx + lenTok...
97
java-test-6786
java
How is a text string renders in windows ?
without the mnemonic
public static void paint Text ( Graphics g , Abstract Button b , Rectangle text Rect , String text , int text Shift Offset ) { Font Metrics fm = Swing Utilities 2 . get Font Metrics ( b , g ) ; int mnem Index = b . get Displayed Mnemonic Index ( ) ; if ( Windows Look And Feel . is Mnemonic Hidden ( ) == BOOL ) { mnem I...
public static void paintText ( Graphics g , AbstractButton b , Rectangle textRect , String text , int textShiftOffset ) { FontMetrics fm = SwingUtilities2 . getFontMetrics ( b , g ) ; int mnemIndex = b . getDisplayedMnemonicIndex ( ) ; if ( WindowsLookAndFeel . isMnemonicHidden ( ) == _BOOL ) { mnemIndex = - _NUM ; } X...
190
java-test-6787
java
Why does this be here ?
because the windowsui hierarchy doesn ' t match the component hierarchy
public static void paint Text ( Graphics g , Abstract Button b , Rectangle text Rect , String text , int text Shift Offset ) { Font Metrics fm = Swing Utilities 2 . get Font Metrics ( b , g ) ; int mnem Index = b . get Displayed Mnemonic Index ( ) ; if ( Windows Look And Feel . is Mnemonic Hidden ( ) == BOOL ) { mnem I...
public static void paintText ( Graphics g , AbstractButton b , Rectangle textRect , String text , int textShiftOffset ) { FontMetrics fm = SwingUtilities2 . getFontMetrics ( b , g ) ; int mnemIndex = b . getDisplayedMnemonicIndex ( ) ; if ( WindowsLookAndFeel . isMnemonicHidden ( ) == _BOOL ) { mnemIndex = - _NUM ; } X...
190
java-test-6788
java
What will call this static method ?
all the overriden painttext methods of the buttonui delegates
public static void paint Text ( Graphics g , Abstract Button b , Rectangle text Rect , String text , int text Shift Offset ) { Font Metrics fm = Swing Utilities 2 . get Font Metrics ( b , g ) ; int mnem Index = b . get Displayed Mnemonic Index ( ) ; if ( Windows Look And Feel . is Mnemonic Hidden ( ) == BOOL ) { mnem I...
public static void paintText ( Graphics g , AbstractButton b , Rectangle textRect , String text , int textShiftOffset ) { FontMetrics fm = SwingUtilities2 . getFontMetrics ( b , g ) ; int mnemIndex = b . getDisplayedMnemonicIndex ( ) ; if ( WindowsLookAndFeel . isMnemonicHidden ( ) == _BOOL ) { mnemIndex = - _NUM ; } X...
190
java-test-6789
java
Where is a text string renders without the mnemonic ?
in windows
public static void paint Text ( Graphics g , Abstract Button b , Rectangle text Rect , String text , int text Shift Offset ) { Font Metrics fm = Swing Utilities 2 . get Font Metrics ( b , g ) ; int mnem Index = b . get Displayed Mnemonic Index ( ) ; if ( Windows Look And Feel . is Mnemonic Hidden ( ) == BOOL ) { mnem I...
public static void paintText ( Graphics g , AbstractButton b , Rectangle textRect , String text , int textShiftOffset ) { FontMetrics fm = SwingUtilities2 . getFontMetrics ( b , g ) ; int mnemIndex = b . getDisplayedMnemonicIndex ( ) ; if ( WindowsLookAndFeel . isMnemonicHidden ( ) == _BOOL ) { mnemIndex = - _NUM ; } X...
190
java-test-6791
java
What does the code set ?
the default paths
public Select Config Destination Folder Dialog ( @ Nullable Project project , Config File Type file Type ) { super ( project ) ; set Title ( Gct Bundle . message ( STRING ) ) ; init ( ) ; destination Folder Chooser . add Browse Folder Listener ( Gct Bundle . message ( STRING ) , null , project , File Chooser Descriptor...
public SelectConfigDestinationFolderDialog ( @ Nullable Project project , ConfigFileType fileType ) { super ( project ) ; setTitle ( GctBundle . message ( STRING ) ) ; init ( ) ; destinationFolderChooser . addBrowseFolderListener ( GctBundle . message ( STRING ) , null , project , FileChooserDescriptorFactory . createS...
231
java-test-6792
java
What does the process function return ?
a subset version of the original
public byte [ ] Process ( String font Name ) { try { int j ; for ( j = NUM ; j < fonts . length ; j ++ ) if ( font Name . equals ( fonts [ j ] . name ) ) break ; if ( j == fonts . length ) return null ; if ( gsubr Index Offset >= NUM ) G Bias = Calc Bias ( gsubr Index Offset , j ) ; Build New Char String ( j ) ; Build ...
public byte [ ] Process ( String fontName ) { try { int j ; for ( j = _NUM ; j < fonts . length ; j ++ ) if ( fontName . equals ( fonts [ j ] . name ) ) break ; if ( j == fonts . length ) return null ; if ( gsubrIndexOffset >= _NUM ) GBias = CalcBias ( gsubrIndexOffset , j ) ; BuildNewCharString ( j ) ; BuildNewLGSubrs...
151
java-test-6793
java
What does the process function extract out of the cff file ?
one font
public byte [ ] Process ( String font Name ) { try { int j ; for ( j = NUM ; j < fonts . length ; j ++ ) if ( font Name . equals ( fonts [ j ] . name ) ) break ; if ( j == fonts . length ) return null ; if ( gsubr Index Offset >= NUM ) G Bias = Calc Bias ( gsubr Index Offset , j ) ; Build New Char String ( j ) ; Build ...
public byte [ ] Process ( String fontName ) { try { int j ; for ( j = _NUM ; j < fonts . length ; j ++ ) if ( fontName . equals ( fonts [ j ] . name ) ) break ; if ( j == fonts . length ) return null ; if ( gsubrIndexOffset >= _NUM ) GBias = CalcBias ( gsubrIndexOffset , j ) ; BuildNewCharString ( j ) ; BuildNewLGSubrs...
151
java-test-6799
java
What does the code write ?
a file with the given name , to the given directory , containing the given value
public static void write Token ( File dir , String name , String value ) throws IO Exception { Preconditions . check Argument ( dir . is Directory ( ) , STRING , dir ) ; File token = new File ( dir , name ) ; File Utils . write ( token , value , Standard Charsets . UTF 8 ) ; }
public static void writeToken ( File dir , String name , String value ) throws IOException { Preconditions . checkArgument ( dir . isDirectory ( ) , STRING , dir ) ; File token = new File ( dir , name ) ; FileUtils . write ( token , value , StandardCharsets . UTF_8 ) ; }
64
java-test-6800
java
What does the code find ?
the index of the next unescapped ( using backslash ) character
public static int find Next Unescaped ( char char To Find , int start Idx , String s ) { if ( start Idx >= s . length ( ) ) return - NUM ; char [ ] char Array = s . to Char Array ( ) ; for ( int i = start Idx ; i < char Array . length ; ++ i ) { if ( i > NUM && char Array [ i - NUM ] == STRING ) continue ; if ( char Ar...
public static int findNextUnescaped ( char charToFind , int startIdx , String s ) { if ( startIdx >= s . length ( ) ) return - _NUM ; char [ ] charArray = s . toCharArray ( ) ; for ( int i = startIdx ; i < charArray . length ; ++ i ) { if ( i > _NUM && charArray [ i - _NUM ] == STRING ) continue ; if ( charArray [ i ] ...
109
java-test-6803
java
What be not the same in both arrays ?
the order of the elements
static boolean equal ( Object [ ] arr 1 , Object [ ] arr 2 ) { if ( arr 1 == arr 2 ) { return BOOL ; } else if ( arr 1 . length != arr 2 . length ) { return BOOL ; } for ( int i = arr 1 . length ; -- i >= NUM ; ) { if ( ! contains ( arr 2 , arr 2 . length , arr 1 [ i ] ) ) { return BOOL ; } } return BOOL ; }
static boolean equal ( Object [ ] arr1 , Object [ ] arr2 ) { if ( arr1 == arr2 ) { return _BOOL ; } else if ( arr1 . length != arr2 . length ) { return _BOOL ; } for ( int i = arr1 . length ; -- i >= _NUM ; ) { if ( ! contains ( arr2 , arr2 . length , arr1 [ i ] ) ) { return _BOOL ; } } return _BOOL ; }
95
java-test-6804
java
Where be the order of the elements not be the same ?
in both arrays
static boolean equal ( Object [ ] arr 1 , Object [ ] arr 2 ) { if ( arr 1 == arr 2 ) { return BOOL ; } else if ( arr 1 . length != arr 2 . length ) { return BOOL ; } for ( int i = arr 1 . length ; -- i >= NUM ; ) { if ( ! contains ( arr 2 , arr 2 . length , arr 1 [ i ] ) ) { return BOOL ; } } return BOOL ; }
static boolean equal ( Object [ ] arr1 , Object [ ] arr2 ) { if ( arr1 == arr2 ) { return _BOOL ; } else if ( arr1 . length != arr2 . length ) { return _BOOL ; } for ( int i = arr1 . length ; -- i >= _NUM ; ) { if ( ! contains ( arr2 , arr2 . length , arr1 [ i ] ) ) { return _BOOL ; } } return _BOOL ; }
95
java-test-6805
java
What does the two arrays contain ?
equal elements
static boolean equal ( Object [ ] arr 1 , Object [ ] arr 2 ) { if ( arr 1 == arr 2 ) { return BOOL ; } else if ( arr 1 . length != arr 2 . length ) { return BOOL ; } for ( int i = arr 1 . length ; -- i >= NUM ; ) { if ( ! contains ( arr 2 , arr 2 . length , arr 1 [ i ] ) ) { return BOOL ; } } return BOOL ; }
static boolean equal ( Object [ ] arr1 , Object [ ] arr2 ) { if ( arr1 == arr2 ) { return _BOOL ; } else if ( arr1 . length != arr2 . length ) { return _BOOL ; } for ( int i = arr1 . length ; -- i >= _NUM ; ) { if ( ! contains ( arr2 , arr2 . length , arr1 [ i ] ) ) { return _BOOL ; } } return _BOOL ; }
95
java-test-6806
java
For what purpose should the native code trigger an event for undecorated windows as this is a void function ?
to notify the system on actual change
@ Override protected void set Bounds ( long native Window Pointer , int x , int y , boolean x Set , boolean y Set , int w , int h , int cw , int ch , float x Gravity , float y Gravity ) { int width ; int height ; if ( w > NUM ) { width = w ; } else if ( cw > NUM ) { width = cw ; } else { width = get Width ( ) ; } if ( ...
@ Override protected void _setBounds ( long nativeWindowPointer , int x , int y , boolean xSet , boolean ySet , int w , int h , int cw , int ch , float xGravity , float yGravity ) { int width ; int height ; if ( w > _NUM ) { width = w ; } else if ( cw > _NUM ) { width = cw ; } else { width = getWidth ( ) ; } if ( h > _...
234
java-test-6807
java
What will setbounds ( x , y , xset , yset , 800 , 600 , - 1 , - 1 ) make ?
the window 800x600 pixels
@ Override protected void set Bounds ( long native Window Pointer , int x , int y , boolean x Set , boolean y Set , int w , int h , int cw , int ch , float x Gravity , float y Gravity ) { int width ; int height ; if ( w > NUM ) { width = w ; } else if ( cw > NUM ) { width = cw ; } else { width = get Width ( ) ; } if ( ...
@ Override protected void _setBounds ( long nativeWindowPointer , int x , int y , boolean xSet , boolean ySet , int w , int h , int cw , int ch , float xGravity , float yGravity ) { int width ; int height ; if ( w > _NUM ) { width = w ; } else if ( cw > _NUM ) { width = cw ; } else { width = getWidth ( ) ; } if ( h > _...
234
java-test-6808
java
Why should the native code trigger an event for undecorated windows to notify the system on actual change ?
as this is a void function
@ Override protected void set Bounds ( long native Window Pointer , int x , int y , boolean x Set , boolean y Set , int w , int h , int cw , int ch , float x Gravity , float y Gravity ) { int width ; int height ; if ( w > NUM ) { width = w ; } else if ( cw > NUM ) { width = cw ; } else { width = get Width ( ) ; } if ( ...
@ Override protected void _setBounds ( long nativeWindowPointer , int x , int y , boolean xSet , boolean ySet , int w , int h , int cw , int ch , float xGravity , float yGravity ) { int width ; int height ; if ( w > _NUM ) { width = w ; } else if ( cw > _NUM ) { width = cw ; } else { width = getWidth ( ) ; } if ( h > _...
234
java-test-6809
java
What will make the window client size to be 800x600 pixels ?
setbounds ( x , y , xset , yset , - 1 , - 1 , 800 , 600
@ Override protected void set Bounds ( long native Window Pointer , int x , int y , boolean x Set , boolean y Set , int w , int h , int cw , int ch , float x Gravity , float y Gravity ) { int width ; int height ; if ( w > NUM ) { width = w ; } else if ( cw > NUM ) { width = cw ; } else { width = get Width ( ) ; } if ( ...
@ Override protected void _setBounds ( long nativeWindowPointer , int x , int y , boolean xSet , boolean ySet , int w , int h , int cw , int ch , float xGravity , float yGravity ) { int width ; int height ; if ( w > _NUM ) { width = w ; } else if ( cw > _NUM ) { width = cw ; } else { width = getWidth ( ) ; } if ( h > _...
234
java-test-6810
java
What will make the window 800x600 pixels ?
setbounds ( x , y , xset , yset , 800 , 600 , - 1 , - 1 )
@ Override protected void set Bounds ( long native Window Pointer , int x , int y , boolean x Set , boolean y Set , int w , int h , int cw , int ch , float x Gravity , float y Gravity ) { int width ; int height ; if ( w > NUM ) { width = w ; } else if ( cw > NUM ) { width = cw ; } else { width = get Width ( ) ; } if ( ...
@ Override protected void _setBounds ( long nativeWindowPointer , int x , int y , boolean xSet , boolean ySet , int w , int h , int cw , int ch , float xGravity , float yGravity ) { int width ; int height ; if ( w > _NUM ) { width = w ; } else if ( cw > _NUM ) { width = cw ; } else { width = getWidth ( ) ; } if ( h > _...
234
java-test-6811
java
What will setbounds ( x , y , xset , yset , - 1 , - 1 , 800 , 600 make ?
the window client size to be 800x600 pixels
@ Override protected void set Bounds ( long native Window Pointer , int x , int y , boolean x Set , boolean y Set , int w , int h , int cw , int ch , float x Gravity , float y Gravity ) { int width ; int height ; if ( w > NUM ) { width = w ; } else if ( cw > NUM ) { width = cw ; } else { width = get Width ( ) ; } if ( ...
@ Override protected void _setBounds ( long nativeWindowPointer , int x , int y , boolean xSet , boolean ySet , int w , int h , int cw , int ch , float xGravity , float yGravity ) { int width ; int height ; if ( w > _NUM ) { width = w ; } else if ( cw > _NUM ) { width = cw ; } else { width = getWidth ( ) ; } if ( h > _...
234
java-test-6815
java
Where does over all instructions iterate ?
in the ir
private void collect Osr Points And Barriers ( IR ir ) { osr Points = new Linked List < Instruction > ( ) ; osr Barriers = new Linked List < Instruction > ( ) ; Enumeration < Instruction > instenum = ir . forward Instr Enumerator ( ) ; while ( instenum . has More Elements ( ) ) { Instruction inst = instenum . next Elem...
private void collectOsrPointsAndBarriers ( IR ir ) { osrPoints = new LinkedList < Instruction > ( ) ; osrBarriers = new LinkedList < Instruction > ( ) ; Enumeration < Instruction > instenum = ir . forwardInstrEnumerator ( ) ; while ( instenum . hasMoreElements ( ) ) { Instruction inst = instenum . nextElement ( ) ; if ...
115
java-test-6816
java
What does the code add with the current time ?
a single chatmessage
public synchronized void add Message ( String line , boolean action ) { add Line ( new Text Message ( System . current Time Millis ( ) , line , action ) ) ; number Of Messages ++ ; last Message = System . current Time Millis ( ) ; }
public synchronized void addMessage ( String line , boolean action ) { addLine ( new TextMessage ( System . currentTimeMillis ( ) , line , action ) ) ; numberOfMessages ++ ; lastMessage = System . currentTimeMillis ( ) ; }
51
java-test-6817
java
What does the code create ?
a scriptpubkey for the given redeem script
public static Script create P 2 SH Output Script ( Script redeem Script ) { byte [ ] hash = Utils . sha 256 hash 160 ( redeem Script . get Program ( ) ) ; return Script Builder . create P 2 SH Output Script ( hash ) ; }
public static Script createP2SHOutputScript ( Script redeemScript ) { byte [ ] hash = Utils . sha256hash160 ( redeemScript . getProgram ( ) ) ; return ScriptBuilder . createP2SHOutputScript ( hash ) ; }
51
java-test-6818
java
What does the code allow ?
user to find similar words
public static void load Model ( ) throws IO Exception , T Exception , Unknown Word Exception { final Word 2 Vec Model model ; try ( Profiling Timer timer = Profiling Timer . create ( LOG , STRING ) ) { String json = Common . read File To String ( new File ( STRING ) ) ; model = Word 2 Vec Model . from Thrift ( Thrift U...
public static void loadModel ( ) throws IOException , TException , UnknownWordException { final Word2VecModel model ; try ( ProfilingTimer timer = ProfilingTimer . create ( LOG , STRING ) ) { String json = Common . readFileToString ( new File ( STRING ) ) ; model = Word2VecModel . fromThrift ( ThriftUtils . deserialize...
100
java-test-6819
java
What does user find ?
similar words
public static void load Model ( ) throws IO Exception , T Exception , Unknown Word Exception { final Word 2 Vec Model model ; try ( Profiling Timer timer = Profiling Timer . create ( LOG , STRING ) ) { String json = Common . read File To String ( new File ( STRING ) ) ; model = Word 2 Vec Model . from Thrift ( Thrift U...
public static void loadModel ( ) throws IOException , TException , UnknownWordException { final Word2VecModel model ; try ( ProfilingTimer timer = ProfilingTimer . create ( LOG , STRING ) ) { String json = Common . readFileToString ( new File ( STRING ) ) ; model = Word2VecModel . fromThrift ( ThriftUtils . deserialize...
100
java-test-6821
java
What does the code get ?
a copy of the complete configuration that is or will be used by the running server
public Properties config ( ) { Properties running Config = new Properties ( config ) ; running Config . set Property ( Kafka Config . Zk Connect Prop ( ) , zookeeper Connection ( ) ) ; running Config . set Property ( Kafka Config . Broker Id Prop ( ) , Integer . to String ( broker Id ) ) ; running Config . set Property...
public Properties config ( ) { Properties runningConfig = new Properties ( config ) ; runningConfig . setProperty ( KafkaConfig . ZkConnectProp ( ) , zookeeperConnection ( ) ) ; runningConfig . setProperty ( KafkaConfig . BrokerIdProp ( ) , Integer . toString ( brokerId ) ) ; runningConfig . setProperty ( KafkaConfig ....
113
java-test-6822
java
What do values use ?
rules that vary depending on cookie version
public static void maybe Quote 2 ( int version , String Buffer buf , String value ) { if ( value == null || value . length ( ) == NUM ) { buf . append ( STRING ) ; } else if ( contains CTL ( value , version ) ) throw new Illegal Argument Exception ( STRING ) ; else if ( already Quoted ( value ) ) { buf . append ( STRIN...
public static void maybeQuote2 ( int version , StringBuffer buf , String value ) { if ( value == null || value . length ( ) == _NUM ) { buf . append ( STRING ) ; } else if ( containsCTL ( value , version ) ) throw new IllegalArgumentException ( STRING ) ; else if ( alreadyQuoted ( value ) ) { buf . append ( STRING ) ; ...
220
java-test-6823
java
How does values quote ?
using rules that vary depending on cookie version
public static void maybe Quote 2 ( int version , String Buffer buf , String value ) { if ( value == null || value . length ( ) == NUM ) { buf . append ( STRING ) ; } else if ( contains CTL ( value , version ) ) throw new Illegal Argument Exception ( STRING ) ; else if ( already Quoted ( value ) ) { buf . append ( STRIN...
public static void maybeQuote2 ( int version , StringBuffer buf , String value ) { if ( value == null || value . length ( ) == _NUM ) { buf . append ( STRING ) ; } else if ( containsCTL ( value , version ) ) throw new IllegalArgumentException ( STRING ) ; else if ( alreadyQuoted ( value ) ) { buf . append ( STRING ) ; ...
220
java-test-6824
java
What does an array remove according to the provided comparator ?
duplicate consecutive elements
private static < E > Object [ ] remove Dupes ( Object [ ] array , Comparator < ? super E > comparator ) { int size = NUM ; for ( int i = NUM ; i < array . length ; i ++ ) { Object element = array [ i ] ; if ( unsafe Compare ( comparator , array [ size - NUM ] , element ) != NUM ) { array [ size ] = element ; size ++ ; ...
private static < E > Object [ ] removeDupes ( Object [ ] array , Comparator < ? super E > comparator ) { int size = _NUM ; for ( int i = _NUM ; i < array . length ; i ++ ) { Object element = array [ i ] ; if ( unsafeCompare ( comparator , array [ size - _NUM ] , element ) != _NUM ) { array [ size ] = element ; size ++ ...
133
java-test-6825
java
What does this method not support ?
empty arrays
private static < E > Object [ ] remove Dupes ( Object [ ] array , Comparator < ? super E > comparator ) { int size = NUM ; for ( int i = NUM ; i < array . length ; i ++ ) { Object element = array [ i ] ; if ( unsafe Compare ( comparator , array [ size - NUM ] , element ) != NUM ) { array [ size ] = element ; size ++ ; ...
private static < E > Object [ ] removeDupes ( Object [ ] array , Comparator < ? super E > comparator ) { int size = _NUM ; for ( int i = _NUM ; i < array . length ; i ++ ) { Object element = array [ i ] ; if ( unsafeCompare ( comparator , array [ size - _NUM ] , element ) != _NUM ) { array [ size ] = element ; size ++ ...
133
java-test-6827
java
What did the code build ?
the test suite
public void process Config XML ( URI uri ) throws Exception { Element test Cases Elem = load XML From URL ( uri ) ; Node List children = test Cases Elem . get Child Nodes ( ) ; for ( int child Idx = NUM ; child Idx < children . get Length ( ) ; child Idx ++ ) { Node n = children . item ( child Idx ) ; if ( n . get Node...
public void processConfigXML ( URI uri ) throws Exception { Element testCasesElem = loadXMLFromURL ( uri ) ; NodeList children = testCasesElem . getChildNodes ( ) ; for ( int childIdx = _NUM ; childIdx < children . getLength ( ) ; childIdx ++ ) { Node n = children . item ( childIdx ) ; if ( n . getNodeType ( ) == Node ...
233
java-test-6828
java
What did the code read ?
the test case configurations file
public void process Config XML ( URI uri ) throws Exception { Element test Cases Elem = load XML From URL ( uri ) ; Node List children = test Cases Elem . get Child Nodes ( ) ; for ( int child Idx = NUM ; child Idx < children . get Length ( ) ; child Idx ++ ) { Node n = children . item ( child Idx ) ; if ( n . get Node...
public void processConfigXML ( URI uri ) throws Exception { Element testCasesElem = loadXMLFromURL ( uri ) ; NodeList children = testCasesElem . getChildNodes ( ) ; for ( int childIdx = _NUM ; childIdx < children . getLength ( ) ; childIdx ++ ) { Node n = children . item ( childIdx ) ; if ( n . getNodeType ( ) == Node ...
233
java-test-6830
java
What will anything thrown out of this method cause ?
the task to no longer be scheduled
public void run ( ) { if ( is Transient ) { throw new Runtime Exception ( STRING ) ; } lock . lock ( ) ; try { final long begin = System . current Time Millis ( ) ; final int i = ( int ) snapshot Count % NUM ; final File file = new File ( data Dir , BASENAME + i + EXT ) ; if ( ! data Dir . exists ( ) ) { if ( ! data Di...
public void run ( ) { if ( isTransient ) { throw new RuntimeException ( STRING ) ; } lock . lock ( ) ; try { final long begin = System . currentTimeMillis ( ) ; final int i = ( int ) snapshotCount % _NUM ; final File file = new File ( dataDir , BASENAME + i + EXT ) ; if ( ! dataDir . exists ( ) ) { if ( ! dataDir . mkd...
216
java-test-6831
java
What will cause the task to no longer be scheduled ?
anything thrown out of this method
public void run ( ) { if ( is Transient ) { throw new Runtime Exception ( STRING ) ; } lock . lock ( ) ; try { final long begin = System . current Time Millis ( ) ; final int i = ( int ) snapshot Count % NUM ; final File file = new File ( data Dir , BASENAME + i + EXT ) ; if ( ! data Dir . exists ( ) ) { if ( ! data Di...
public void run ( ) { if ( isTransient ) { throw new RuntimeException ( STRING ) ; } lock . lock ( ) ; try { final long begin = System . currentTimeMillis ( ) ; final int i = ( int ) snapshotCount % _NUM ; final File file = new File ( dataDir , BASENAME + i + EXT ) ; if ( ! dataDir . exists ( ) ) { if ( ! dataDir . mkd...
216
java-test-6832
java
What does a date convert ?
to the textual representation of dates used by people
public static String date To Text ( Context context , Date date ) { String text Date ; date = truncate Hours ( date ) ; Calendar c = Calendar . get Instance ( ) ; c . set ( Calendar . HOUR OF DAY , NUM ) ; c . set ( Calendar . MINUTE , NUM ) ; c . set ( Calendar . SECOND , NUM ) ; c . set ( Calendar . MILLISECOND , NUM...
public static String dateToText ( Context context , Date date ) { String textDate ; date = truncateHours ( date ) ; Calendar c = Calendar . getInstance ( ) ; c . set ( Calendar . HOUR_OF_DAY , _NUM ) ; c . set ( Calendar . MINUTE , _NUM ) ; c . set ( Calendar . SECOND , _NUM ) ; c . set ( Calendar . MILLISECOND , _NUM ...
194
java-test-6833
java
What does the code calculate ?
the certificate fingerprint - simply the sha - 512 hash of the der - encoded certificate
public static String fingerprint ( X509 Certificate cert ) throws Certificate Exception { try { Message Digest md = Message Digest . get Instance ( STRING ) ; md . update ( cert . get Encoded ( ) ) ; return Byte Printer . compact Hex ( md . digest ( ) ) ; } catch ( No Such Algorithm Exception e ) { throw new Certificat...
public static String fingerprint ( X509Certificate cert ) throws CertificateException { try { MessageDigest md = MessageDigest . getInstance ( STRING ) ; md . update ( cert . getEncoded ( ) ) ; return BytePrinter . compactHex ( md . digest ( ) ) ; } catch ( NoSuchAlgorithmException e ) { throw new CertificateException ...
83
java-test-6837
java
What is the code determine ?
how preferred a given abi is on this system
public static int find Abi Score ( String [ ] supported Abis , String abi ) { for ( int i = NUM ; i < supported Abis . length ; ++ i ) { if ( supported Abis [ i ] != null && abi . equals ( supported Abis [ i ] ) ) { return i ; } } return - NUM ; }
public static int findAbiScore ( String [ ] supportedAbis , String abi ) { for ( int i = _NUM ; i < supportedAbis . length ; ++ i ) { if ( supportedAbis [ i ] != null && abi . equals ( supportedAbis [ i ] ) ) { return i ; } } return - _NUM ; }
67
java-test-6838
java
What does the code generate ?
a unique volume label based on the given base name and index
public static String generate Default Volume Label ( String base Volume Label , int volume Index , int volume Count ) { String Builder volume Label Builder = new String Builder ( base Volume Label ) ; if ( volume Count > NUM ) { volume Label Builder . append ( STRING ) ; volume Label Builder . append ( volume Index + N...
public static String generateDefaultVolumeLabel ( String baseVolumeLabel , int volumeIndex , int volumeCount ) { StringBuilder volumeLabelBuilder = new StringBuilder ( baseVolumeLabel ) ; if ( volumeCount > _NUM ) { volumeLabelBuilder . append ( STRING ) ; volumeLabelBuilder . append ( volumeIndex + _NUM ) ; } return v...
78
java-test-6840
java
What does we haven ' t create yet ?
an unassigned group
private int insert Unassigned Rule ( ) throws SQL Exception { Prepared Statement rule Statement ; String unassigned Rule Sql Statement = STRING + SQL . RULES + STRING ; unassigned Rule Sql Statement = String . format ( unassigned Rule Sql Statement , UNASSIGNED RULE NAME , UNASSIGNED RULE DESCRIPTION , UNASSIGNED RULE ...
private int insertUnassignedRule ( ) throws SQLException { PreparedStatement ruleStatement ; String unassignedRuleSqlStatement = STRING + SQL . RULES + STRING ; unassignedRuleSqlStatement = String . format ( unassignedRuleSqlStatement , UNASSIGNED_RULE_NAME , UNASSIGNED_RULE_DESCRIPTION , UNASSIGNED_RULE ) ; ruleStatem...
93
java-test-6841
java
What does the attribute name of which equal ?
the specified name to be sent to the listener
public synchronized void enable Attribute ( String name ) throws java . lang . Illegal Argument Exception { if ( name == null ) { throw new java . lang . Illegal Argument Exception ( STRING ) ; } if ( ! enabled Attributes . contains ( name ) ) { enabled Attributes . add Element ( name ) ; } }
public synchronized void enableAttribute ( String name ) throws java . lang . IllegalArgumentException { if ( name == null ) { throw new java . lang . IllegalArgumentException ( STRING ) ; } if ( ! enabledAttributes . contains ( name ) ) { enabledAttributes . addElement ( name ) ; } }
62
java-test-6842
java
How do it write to " sc " ?
through " out "
private final void send Chunk To ( Byte Buffer in , Socket Channel sc , Byte Buffer out ) throws IO Exception { int bytes Sent = in . remaining ( ) ; if ( in . is Direct ( ) ) { flush Buffer ( sc , out ) ; while ( in . remaining ( ) > NUM ) { sc . write ( in ) ; } } else { int OUT MAX = out . remaining ( ) ; if ( bytes...
private final void sendChunkTo ( ByteBuffer in , SocketChannel sc , ByteBuffer out ) throws IOException { int bytesSent = in . remaining ( ) ; if ( in . isDirect ( ) ) { flushBuffer ( sc , out ) ; while ( in . remaining ( ) > _NUM ) { sc . write ( in ) ; } } else { int OUT_MAX = out . remaining ( ) ; if ( bytesSent <= ...
232
java-test-6843
java
How does the code send the data ?
by writing it to " sc " through " out " ( out is used to chunk to data and is probably a direct memory buffer )
private final void send Chunk To ( Byte Buffer in , Socket Channel sc , Byte Buffer out ) throws IO Exception { int bytes Sent = in . remaining ( ) ; if ( in . is Direct ( ) ) { flush Buffer ( sc , out ) ; while ( in . remaining ( ) > NUM ) { sc . write ( in ) ; } } else { int OUT MAX = out . remaining ( ) ; if ( bytes...
private final void sendChunkTo ( ByteBuffer in , SocketChannel sc , ByteBuffer out ) throws IOException { int bytesSent = in . remaining ( ) ; if ( in . isDirect ( ) ) { flushBuffer ( sc , out ) ; while ( in . remaining ( ) > _NUM ) { sc . write ( in ) ; } } else { int OUT_MAX = out . remaining ( ) ; if ( bytesSent <= ...
232
java-test-6844
java
What does the code enlarge so that it contains p_point ?
the octagon
public void join ( Pla Point Float p point ) { lx = Math . min ( p point . v x , lx ) ; ly = Math . min ( p point . v y , ly ) ; rx = Math . max ( rx , p point . v x ) ; uy = Math . max ( uy , p point . v y ) ; double tmp = p point . v x - p point . v y ; ulx = Math . min ( ulx , tmp ) ; lrx = Math . max ( lrx , tmp ) ...
public void join ( PlaPointFloat p_point ) { lx = Math . min ( p_point . v_x , lx ) ; ly = Math . min ( p_point . v_y , ly ) ; rx = Math . max ( rx , p_point . v_x ) ; uy = Math . max ( uy , p_point . v_y ) ; double tmp = p_point . v_x - p_point . v_y ; ulx = Math . min ( ulx , tmp ) ; lrx = Math . max ( lrx , tmp ) ; ...
145
java-test-6845
java
For what purpose does the code enlarge the octagon ?
so that it contains p_point
public void join ( Pla Point Float p point ) { lx = Math . min ( p point . v x , lx ) ; ly = Math . min ( p point . v y , ly ) ; rx = Math . max ( rx , p point . v x ) ; uy = Math . max ( uy , p point . v y ) ; double tmp = p point . v x - p point . v y ; ulx = Math . min ( ulx , tmp ) ; lrx = Math . max ( lrx , tmp ) ...
public void join ( PlaPointFloat p_point ) { lx = Math . min ( p_point . v_x , lx ) ; ly = Math . min ( p_point . v_y , ly ) ; rx = Math . max ( rx , p_point . v_x ) ; uy = Math . max ( uy , p_point . v_y ) ; double tmp = p_point . v_x - p_point . v_y ; ulx = Math . min ( ulx , tmp ) ; lrx = Math . max ( lrx , tmp ) ; ...
145
java-test-6846
java
What does the code create ?
a button with initial text and an icon
public Fancy Button ( String text , Icon icon ) { super ( text , icon ) ; add Mouse Listener ( hover Listener ) ; add Focus Listener ( focus Listener ) ; set Border Painted ( BOOL ) ; set Border ( new Drop Shadow Border ( SHADOW COLOR , NUM , NUM , NUM , BOOL , BOOL , BOOL , BOOL ) ) ; set Focus Painted ( BOOL ) ; set ...
public FancyButton ( String text , Icon icon ) { super ( text , icon ) ; addMouseListener ( hoverListener ) ; addFocusListener ( focusListener ) ; setBorderPainted ( _BOOL ) ; setBorder ( new DropShadowBorder ( SHADOW_COLOR , _NUM , _NUM , _NUM , _BOOL , _BOOL , _BOOL , _BOOL ) ) ; setFocusPainted ( _BOOL ) ; setConten...
134
java-test-6847
java
What does the code create ?
new form csvparseroptions
public CSV Parser Options ( java . awt . Component parent ) { super ( ( J Frame ) Swing Utilities . window For Component ( parent ) , BOOL ) ; init Components ( ) ; Modifiable J Option Pane . reverse OK Cancel ( ok , cancel ) ; pack ( ) ; set Location Relative To ( parent ) ; set Visible ( BOOL ) ; }
public CSVParserOptions ( java . awt . Component parent ) { super ( ( JFrame ) SwingUtilities . windowForComponent ( parent ) , _BOOL ) ; initComponents ( ) ; ModifiableJOptionPane . reverseOKCancel ( ok , cancel ) ; pack ( ) ; setLocationRelativeTo ( parent ) ; setVisible ( _BOOL ) ; }
70
java-test-6848
java
For what purpose does this method modify session property otherwise ?
to remove the sepcified protocol from the session
public static void invalidate Session ( Object session , Http Servlet Request request , Http Servlet Response response , String protocol ) throws Session Exception { Session Provider provider = Session Manager . get Provider ( ) ; if ( ! is Multiple Protocol Session ( session , protocol ) ) { provider . invalidate Sess...
public static void invalidateSession ( Object session , HttpServletRequest request , HttpServletResponse response , String protocol ) throws SessionException { SessionProvider provider = SessionManager . getProvider ( ) ; if ( ! isMultipleProtocolSession ( session , protocol ) ) { provider . invalidateSession ( session...
78
java-test-6849
java
What does this method modify otherwise to remove the sepcified protocol from the session ?
session property
public static void invalidate Session ( Object session , Http Servlet Request request , Http Servlet Response response , String protocol ) throws Session Exception { Session Provider provider = Session Manager . get Provider ( ) ; if ( ! is Multiple Protocol Session ( session , protocol ) ) { provider . invalidate Sess...
public static void invalidateSession ( Object session , HttpServletRequest request , HttpServletResponse response , String protocol ) throws SessionException { SessionProvider provider = SessionManager . getProvider ( ) ; if ( ! isMultipleProtocolSession ( session , protocol ) ) { provider . invalidateSession ( session...
78
java-test-6850
java
Where is it not used ?
in any other federation protocol
public static void invalidate Session ( Object session , Http Servlet Request request , Http Servlet Response response , String protocol ) throws Session Exception { Session Provider provider = Session Manager . get Provider ( ) ; if ( ! is Multiple Protocol Session ( session , protocol ) ) { provider . invalidate Sess...
public static void invalidateSession ( Object session , HttpServletRequest request , HttpServletResponse response , String protocol ) throws SessionException { SessionProvider provider = SessionManager . getProvider ( ) ; if ( ! isMultipleProtocolSession ( session , protocol ) ) { provider . invalidateSession ( session...
78
java-test-6851
java
Where do users have access to ?
either globally or in a single room
public static Set < Emoticon > parse Emote Set ( JSON Object set Data , String stream Restriction , Emoticon . Sub Type sub Type ) { try { JSON Array emoticons = ( JSON Array ) set Data . get ( STRING ) ; String title = JSON Util . get String ( set Data , STRING ) ; return parse Emoticons ( emoticons , stream Restricti...
public static Set < Emoticon > parseEmoteSet ( JSONObject setData , String streamRestriction , Emoticon . SubType subType ) { try { JSONArray emoticons = ( JSONArray ) setData . get ( STRING ) ; String title = JSONUtil . getString ( setData , STRING ) ; return parseEmoticons ( emoticons , streamRestriction , title , su...
108
java-test-6852
java
What set on the framelist ?
the frame files
public boolean copy ( String to Rpf Dir ) { File to Dir = new File ( to Rpf Dir ) ; boolean ret = BOOL ; String source Rpf Dir = get Rpf Dir ( ) ; if ( ( to Dir . exists ( ) || to Dir . mkdirs ( ) ) && frame List != null ) { if ( verbose ) { Debug . output ( STRING + source Rpf Dir + STRING + to Rpf Dir + STRING ) ; } ...
public boolean copy ( String toRpfDir ) { File toDir = new File ( toRpfDir ) ; boolean ret = _BOOL ; String sourceRpfDir = getRpfDir ( ) ; if ( ( toDir . exists ( ) || toDir . mkdirs ( ) ) && frameList != null ) { if ( verbose ) { Debug . output ( STRING + sourceRpfDir + STRING + toRpfDir + STRING ) ; } for ( Iterator ...
257
java-test-6853
java
Where did the frame files set currently ?
on the framelist
public boolean copy ( String to Rpf Dir ) { File to Dir = new File ( to Rpf Dir ) ; boolean ret = BOOL ; String source Rpf Dir = get Rpf Dir ( ) ; if ( ( to Dir . exists ( ) || to Dir . mkdirs ( ) ) && frame List != null ) { if ( verbose ) { Debug . output ( STRING + source Rpf Dir + STRING + to Rpf Dir + STRING ) ; } ...
public boolean copy ( String toRpfDir ) { File toDir = new File ( toRpfDir ) ; boolean ret = _BOOL ; String sourceRpfDir = getRpfDir ( ) ; if ( ( toDir . exists ( ) || toDir . mkdirs ( ) ) && frameList != null ) { if ( verbose ) { Debug . output ( STRING + sourceRpfDir + STRING + toRpfDir + STRING ) ; } for ( Iterator ...
257
java-test-6855
java
What does the code decode ?
the hex encoded byte data writing it to the given output stream
public int decode ( byte [ ] data , int off , int length , Output Stream out ) throws IO Exception { byte b1 , b2 ; int out Len = NUM ; int end = off + length ; while ( end > off ) { if ( ! ignore ( ( char ) data [ end - NUM ] ) ) { break ; } end -- ; } int i = off ; while ( i < end ) { while ( i < end && ignore ( ( ch...
public int decode ( byte [ ] data , int off , int length , OutputStream out ) throws IOException { byte b1 , b2 ; int outLen = _NUM ; int end = off + length ; while ( end > off ) { if ( ! ignore ( ( char ) data [ end - _NUM ] ) ) { break ; } end -- ; } int i = off ; while ( i < end ) { while ( i < end && ignore ( ( cha...
195
java-test-6856
java
What does the contents of the 2nd array append ?
to the contents of the first array
public static NV [ ] concat ( final NV [ ] a , final NV [ ] b ) { if ( a == null && b == null ) return a ; if ( a == null ) return b ; if ( b == null ) return a ; final NV [ ] c = new NV [ a . length + b . length ] ; System . arraycopy ( a , NUM , c , NUM , a . length ) ; System . arraycopy ( b , NUM , c , a . length ,...
public static NV [ ] concat ( final NV [ ] a , final NV [ ] b ) { if ( a == null && b == null ) return a ; if ( a == null ) return b ; if ( b == null ) return a ; final NV [ ] c = new NV [ a . length + b . length ] ; System . arraycopy ( a , _NUM , c , _NUM , a . length ) ; System . arraycopy ( b , _NUM , c , a . lengt...
109
java-test-6857
java
What is appending to the contents of the first array ?
the contents of the 2nd array
public static NV [ ] concat ( final NV [ ] a , final NV [ ] b ) { if ( a == null && b == null ) return a ; if ( a == null ) return b ; if ( b == null ) return a ; final NV [ ] c = new NV [ a . length + b . length ] ; System . arraycopy ( a , NUM , c , NUM , a . length ) ; System . arraycopy ( b , NUM , c , a . length ,...
public static NV [ ] concat ( final NV [ ] a , final NV [ ] b ) { if ( a == null && b == null ) return a ; if ( a == null ) return b ; if ( b == null ) return a ; final NV [ ] c = new NV [ a . length + b . length ] ; System . arraycopy ( a , _NUM , c , _NUM , a . length ) ; System . arraycopy ( b , _NUM , c , a . lengt...
109
java-test-6858
java
How does a starting vector deliver ?
in r
double startv ( S Mat A , double [ ] [ ] wptr , int step , int n ) { double rnm 2 , t ; double [ ] r ; int id , i ; rnm 2 = svd ddot ( n , wptr [ NUM ] , NUM , wptr [ NUM ] , NUM ) ; Random random = new Random ( NUM + step ) ; r = wptr [ NUM ] ; for ( id = NUM ; id < NUM ; id ++ ) { if ( id > NUM || step > NUM || rnm 2...
double startv ( SMat A , double [ ] [ ] wptr , int step , int n ) { double rnm2 , t ; double [ ] r ; int id , i ; rnm2 = svd_ddot ( n , wptr [ _NUM ] , _NUM , wptr [ _NUM ] , _NUM ) ; Random random = new Random ( _NUM + step ) ; r = wptr [ _NUM ] ; for ( id = _NUM ; id < _NUM ; id ++ ) { if ( id > _NUM || step > _NUM |...
442
java-test-6859
java
What does the code find ?
the migrations with the passed names
List < V Plex Migration Info > find Migrations ( List < String > migration Names ) throws V Plex Api Exception { List < V Plex Migration Info > migration Info List = new Array List < V Plex Migration Info > ( ) ; for ( String migration Name : migration Names ) { try { V Plex Migration Info migration Info = find Migrati...
List < VPlexMigrationInfo > findMigrations ( List < String > migrationNames ) throws VPlexApiException { List < VPlexMigrationInfo > migrationInfoList = new ArrayList < VPlexMigrationInfo > ( ) ; for ( String migrationName : migrationNames ) { try { VPlexMigrationInfo migrationInfo = findMigration ( migrationName , VPl...
172
java-test-6860
java
What does this method perform ?
the percent - encoding as defined in section 2 . 1 of rfc 3986
private static void percent Encoder ( final String url Element , final String Builder encoded Buffer ) { Reject . if Null ( url Element ) ; for ( int count = NUM ; count < url Element . length ( ) ; count ++ ) { final char c = url Element . char At ( count ) ; if ( VALID CHARS . contains ( c ) ) { encoded Buffer . appe...
private static void percentEncoder ( final String urlElement , final StringBuilder encodedBuffer ) { Reject . ifNull ( urlElement ) ; for ( int count = _NUM ; count < urlElement . length ( ) ; count ++ ) { final char c = urlElement . charAt ( count ) ; if ( VALID_CHARS . contains ( c ) ) { encodedBuffer . append ( c ) ...
110
java-test-6861
java
What is defined in the system ?
user . home property
private static boolean is User Home Defined ( String Builder a String Builder ) { boolean is Defined = System . get Property ( STRING ) != null ; if ( ! is Defined ) { a String Builder . append ( STRING ) ; } return is Defined ; }
private static boolean isUserHomeDefined ( StringBuilder aStringBuilder ) { boolean isDefined = System . getProperty ( STRING ) != null ; if ( ! isDefined ) { aStringBuilder . append ( STRING ) ; } return isDefined ; }
51
java-test-6862
java
What does the code update ?
the pseudo - references for this training epoch
private void update Pseudo References ( int epoch ) { if ( nbest List Writer != null ) { nbest List Writer . close ( ) ; Evaluation Metric < I String , String > metric = new BLEU Metric < I String , String > ( references ) ; Multi Translation Metric Max < I String , String > search Algorithm = new Hill Climbing Multi T...
private void updatePseudoReferences ( int epoch ) { if ( nbestListWriter != null ) { nbestListWriter . close ( ) ; EvaluationMetric < IString , String > metric = new BLEUMetric < IString , String > ( references ) ; MultiTranslationMetricMax < IString , String > searchAlgorithm = new HillClimbingMultiTranslationMetricMa...
409
java-test-6864
java
What generates the a value from the given p , q , returning the a value ?
procedure c procedure
private Big Integer procedure C ( Big Integer p , Big Integer q ) { Big Integer p Sub 1 = p . subtract ( ONE ) ; Big Integer p Sub 1 Div Q = p Sub 1 . divide ( q ) ; int length = p . bit Length ( ) ; for ( ; ; ) { Big Integer d = new Big Integer ( length , init random ) ; if ( d . compare To ( ONE ) > NUM && d . compar...
private BigInteger procedure_C ( BigInteger p , BigInteger q ) { BigInteger pSub1 = p . subtract ( ONE ) ; BigInteger pSub1DivQ = pSub1 . divide ( q ) ; int length = p . bitLength ( ) ; for ( ; ; ) { BigInteger d = new BigInteger ( length , init_random ) ; if ( d . compareTo ( ONE ) > _NUM && d . compareTo ( pSub1 ) < ...
138