id
stringlengths
11
16
language
stringclasses
2 values
question
stringlengths
13
844
answer
stringlengths
1
900
code
stringlengths
162
27.4k
code_original
stringlengths
162
26k
code_word_count
int64
51
5.96k
java-test-2773
java
Where does it save ?
in the preference store
public long generate New Ping Id ( ) { Preference Store prefs = get Preference Store ( ) ; Random rnd = new Random ( ) ; long id = rnd . next Long ( ) ; synchronized ( Ddms Preference Store . class ) { prefs . set Value ( PING ID , id ) ; try { prefs . save ( ) ; } catch ( IO Exception e ) { } } return id ; }
public long generateNewPingId ( ) { PreferenceStore prefs = getPreferenceStore ( ) ; Random rnd = new Random ( ) ; long id = rnd . nextLong ( ) ; synchronized ( DdmsPreferenceStore . class ) { prefs . setValue ( PING_ID , id ) ; try { prefs . save ( ) ; } catch ( IOException e ) { } } return id ; }
79
java-test-2785
java
What do it return then then ?
all the present ones
public static List < Web Element > find Elements Present After ( Search Context parent , By by , int wait In Seconds ) { Preconditions . check Not Null ( parent ) ; Preconditions . check Not Null ( by ) ; find Element Present After ( parent , by , wait In Seconds ) ; return parent . find Elements ( by ) ; }
public static List < WebElement > findElementsPresentAfter ( SearchContext parent , By by , int waitInSeconds ) { Preconditions . checkNotNull ( parent ) ; Preconditions . checkNotNull ( by ) ; findElementPresentAfter ( parent , by , waitInSeconds ) ; return parent . findElements ( by ) ; }
67
java-test-2786
java
Till when will it wait ?
until one is present
public static List < Web Element > find Elements Present After ( Search Context parent , By by , int wait In Seconds ) { Preconditions . check Not Null ( parent ) ; Preconditions . check Not Null ( by ) ; find Element Present After ( parent , by , wait In Seconds ) ; return parent . find Elements ( by ) ; }
public static List < WebElement > findElementsPresentAfter ( SearchContext parent , By by , int waitInSeconds ) { Preconditions . checkNotNull ( parent ) ; Preconditions . checkNotNull ( by ) ; findElementPresentAfter ( parent , by , waitInSeconds ) ; return parent . findElements ( by ) ; }
67
java-test-2788
java
What do them set if not ?
to default values
protected void check Params ( X Create Window Params params ) { if ( params == null ) { throw new Illegal Argument Exception ( STRING ) ; } params . put If Null ( PARENT WINDOW , Long . value Of ( X Toolkit . get Default Root Window ( ) ) ) ; params . put If Null ( BOUNDS , new Rectangle ( DEF LOCATION , DEF LOCATION ,...
protected void checkParams ( XCreateWindowParams params ) { if ( params == null ) { throw new IllegalArgumentException ( STRING ) ; } params . putIfNull ( PARENT_WINDOW , Long . valueOf ( XToolkit . getDefaultRootWindow ( ) ) ) ; params . putIfNull ( BOUNDS , new Rectangle ( DEF_LOCATION , DEF_LOCATION , MIN_SIZE , MIN...
293
java-test-2789
java
What are an enumeration describing ?
the available options valid options
@ Override public Enumeration < Option > list Options ( ) { Vector < Option > new Vector = new Vector < Option > ( NUM ) ; new Vector . add ( new Option ( STRING + STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add ( new Option ( STRING + STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add ( new ...
@ Override public Enumeration < Option > listOptions ( ) { Vector < Option > newVector = new Vector < Option > ( _NUM ) ; newVector . add ( new Option ( STRING + STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . add ( new Option ( STRING + STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . add ( new Op...
202
java-test-2790
java
What does the code do ?
what it says
private void enable Field Based On Update Method ( ) { if ( update Method . get Selected Item ( ) == Competitive Group . Update Method . ALVAREZ SQUIRE ) { tf Synpase Decay Percent . set Enabled ( BOOL ) ; } else if ( update Method . get Selected Item ( ) == Competitive Group . Update Method . RUMM ZIPSER ) { tf Synpas...
private void enableFieldBasedOnUpdateMethod ( ) { if ( updateMethod . getSelectedItem ( ) == CompetitiveGroup . UpdateMethod . ALVAREZ_SQUIRE ) { tfSynpaseDecayPercent . setEnabled ( _BOOL ) ; } else if ( updateMethod . getSelectedItem ( ) == CompetitiveGroup . UpdateMethod . RUMM_ZIPSER ) { tfSynpaseDecayPercent . set...
79
java-test-2791
java
For what purpose did database entities require ?
for generate business object data ddl testing
public Storage Unit Entity create Database Entities For Business Object Data Ddl Testing ( String partition Value , String s3 Key Prefix ) { List < Schema Column > schema Columns = new Array List < > ( ) ; schema Columns . add ( new Schema Column ( Abstract Service Test . FIRST PARTITION COLUMN NAME , STRING , Abstract...
public StorageUnitEntity createDatabaseEntitiesForBusinessObjectDataDdlTesting ( String partitionValue , String s3KeyPrefix ) { List < SchemaColumn > schemaColumns = new ArrayList < > ( ) ; schemaColumns . add ( new SchemaColumn ( AbstractServiceTest . FIRST_PARTITION_COLUMN_NAME , STRING , AbstractServiceTest . NO_COL...
498
java-test-2792
java
What does the code add to the items list ?
native express ads
private void add Native Express Ads ( ) { for ( int i = NUM ; i <= m Recycler View Items . size ( ) ; i += ITEMS PER AD ) { final Native Express Ad View ad View = new Native Express Ad View ( Main Activity . this ) ; m Recycler View Items . add ( i , ad View ) ; } }
private void addNativeExpressAds ( ) { for ( int i = _NUM ; i <= mRecyclerViewItems . size ( ) ; i += ITEMS_PER_AD ) { final NativeExpressAdView adView = new NativeExpressAdView ( MainActivity . this ) ; mRecyclerViewItems . add ( i , adView ) ; } }
69
java-test-2794
java
What does the code create ?
a new splitter
public Load Balanced Splitter ( int num Channels ) { if ( num Channels < NUM ) throw new Illegal Argument Exception ( STRING ) ; ch Busy = new boolean [ num Channels ] ; Arrays . fill ( ch Busy , BOOL ) ; gate = new Semaphore ( num Channels ) ; }
public LoadBalancedSplitter ( int numChannels ) { if ( numChannels < _NUM ) throw new IllegalArgumentException ( STRING ) ; chBusy = new boolean [ numChannels ] ; Arrays . fill ( chBusy , _BOOL ) ; gate = new Semaphore ( numChannels ) ; }
56
java-test-2795
java
What is performing on the managed object ?
a notifyupdate sync action
private void perform Update Operations ( Context context , Request request , Json Value after Value , Json Value before Value ) throws Resource Exception { final String managed Id = get Managed Object Id ( context ) ; activity Logger . log ( context , request , STRING , get Managed Object Path ( context ) , before Valu...
private void performUpdateOperations ( Context context , Request request , JsonValue afterValue , JsonValue beforeValue ) throws ResourceException { final String managedId = getManagedObjectId ( context ) ; activityLogger . log ( context , request , STRING , getManagedObjectPath ( context ) , beforeValue , afterValue ,...
134
java-test-2796
java
Where do a notifyupdate sync action perform ?
on the managed object
private void perform Update Operations ( Context context , Request request , Json Value after Value , Json Value before Value ) throws Resource Exception { final String managed Id = get Managed Object Id ( context ) ; activity Logger . log ( context , request , STRING , get Managed Object Path ( context ) , before Valu...
private void performUpdateOperations ( Context context , Request request , JsonValue afterValue , JsonValue beforeValue ) throws ResourceException { final String managedId = getManagedObjectId ( context ) ; activityLogger . log ( context , request , STRING , getManagedObjectPath ( context ) , beforeValue , afterValue ,...
134
java-test-2798
java
How is a reducer function initialized on each rail ?
from an initialsupplier value
public final < R > Parallel Flux < R > reduce ( Supplier < R > initial Supplier , Bi Function < R , T , R > reducer ) { Objects . require Non Null ( initial Supplier , STRING ) ; Objects . require Non Null ( reducer , STRING ) ; return on Assembly ( new Parallel Reduce < > ( this , initial Supplier , reducer ) ) ; }
public final < R > ParallelFlux < R > reduce ( Supplier < R > initialSupplier , BiFunction < R , T , R > reducer ) { Objects . requireNonNull ( initialSupplier , STRING ) ; Objects . requireNonNull ( reducer , STRING ) ; return onAssembly ( new ParallelReduce < > ( this , initialSupplier , reducer ) ) ; }
74
java-test-2799
java
What is initialized on each rail ?
a reducer function
public final < R > Parallel Flux < R > reduce ( Supplier < R > initial Supplier , Bi Function < R , T , R > reducer ) { Objects . require Non Null ( initial Supplier , STRING ) ; Objects . require Non Null ( reducer , STRING ) ; return on Assembly ( new Parallel Reduce < > ( this , initial Supplier , reducer ) ) ; }
public final < R > ParallelFlux < R > reduce ( Supplier < R > initialSupplier , BiFunction < R , T , R > reducer ) { Objects . requireNonNull ( initialSupplier , STRING ) ; Objects . requireNonNull ( reducer , STRING ) ; return onAssembly ( new ParallelReduce < > ( this , initialSupplier , reducer ) ) ; }
74
java-test-2800
java
How does all values within a ' rail ' reduce with a possibly different type ?
via a reducer function that is initialized on each rail from an initialsupplier value
public final < R > Parallel Flux < R > reduce ( Supplier < R > initial Supplier , Bi Function < R , T , R > reducer ) { Objects . require Non Null ( initial Supplier , STRING ) ; Objects . require Non Null ( reducer , STRING ) ; return on Assembly ( new Parallel Reduce < > ( this , initial Supplier , reducer ) ) ; }
public final < R > ParallelFlux < R > reduce ( Supplier < R > initialSupplier , BiFunction < R , T , R > reducer ) { Objects . requireNonNull ( initialSupplier , STRING ) ; Objects . requireNonNull ( reducer , STRING ) ; return onAssembly ( new ParallelReduce < > ( this , initialSupplier , reducer ) ) ; }
74
java-test-2801
java
Where is a reducer function initialized from an initialsupplier value ?
on each rail
public final < R > Parallel Flux < R > reduce ( Supplier < R > initial Supplier , Bi Function < R , T , R > reducer ) { Objects . require Non Null ( initial Supplier , STRING ) ; Objects . require Non Null ( reducer , STRING ) ; return on Assembly ( new Parallel Reduce < > ( this , initial Supplier , reducer ) ) ; }
public final < R > ParallelFlux < R > reduce ( Supplier < R > initialSupplier , BiFunction < R , T , R > reducer ) { Objects . requireNonNull ( initialSupplier , STRING ) ; Objects . requireNonNull ( reducer , STRING ) ; return onAssembly ( new ParallelReduce < > ( this , initialSupplier , reducer ) ) ; }
74
java-test-2804
java
What will call this method when it dismisses ?
the currently showing supertoast
private void show Next Super Toast ( ) { if ( super Toast Priority Queue . is Empty ( ) ) return ; final Super Toast super Toast = super Toast Priority Queue . peek ( ) ; if ( ! super Toast . is Showing ( ) ) { final Message message = obtain Message ( Messages . DISPLAY SUPERTOAST ) ; message . obj = super Toast ; send...
private void showNextSuperToast ( ) { if ( superToastPriorityQueue . isEmpty ( ) ) return ; final SuperToast superToast = superToastPriorityQueue . peek ( ) ; if ( ! superToast . isShowing ( ) ) { final Message message = obtainMessage ( Messages . DISPLAY_SUPERTOAST ) ; message . obj = superToast ; sendMessage ( messag...
78
java-test-2805
java
When will the currently showing supertoast call this method ?
when it dismisses
private void show Next Super Toast ( ) { if ( super Toast Priority Queue . is Empty ( ) ) return ; final Super Toast super Toast = super Toast Priority Queue . peek ( ) ; if ( ! super Toast . is Showing ( ) ) { final Message message = obtain Message ( Messages . DISPLAY SUPERTOAST ) ; message . obj = super Toast ; send...
private void showNextSuperToast ( ) { if ( superToastPriorityQueue . isEmpty ( ) ) return ; final SuperToast superToast = superToastPriorityQueue . peek ( ) ; if ( ! superToast . isShowing ( ) ) { final Message message = obtainMessage ( Messages . DISPLAY_SUPERTOAST ) ; message . obj = superToast ; sendMessage ( messag...
78
java-test-2806
java
What does the code show ?
the next supertoast in the current queue
private void show Next Super Toast ( ) { if ( super Toast Priority Queue . is Empty ( ) ) return ; final Super Toast super Toast = super Toast Priority Queue . peek ( ) ; if ( ! super Toast . is Showing ( ) ) { final Message message = obtain Message ( Messages . DISPLAY SUPERTOAST ) ; message . obj = super Toast ; send...
private void showNextSuperToast ( ) { if ( superToastPriorityQueue . isEmpty ( ) ) return ; final SuperToast superToast = superToastPriorityQueue . peek ( ) ; if ( ! superToast . isShowing ( ) ) { final Message message = obtainMessage ( Messages . DISPLAY_SUPERTOAST ) ; message . obj = superToast ; sendMessage ( messag...
78
java-test-2807
java
What does the code drain ?
the queue of methods waiting for specialized code generation
public static synchronized void do Deferred Specializations ( ) { if ( specialization In Progress ) { return ; } specialization In Progress = BOOL ; Iterator < Specialized Method > methods = deferred Methods . iterator ( ) ; while ( methods . has Next ( ) ) { Specialized Method m = methods . next ( ) ; if ( m . get Com...
public static synchronized void doDeferredSpecializations ( ) { if ( specializationInProgress ) { return ; } specializationInProgress = _BOOL ; Iterator < SpecializedMethod > methods = deferredMethods . iterator ( ) ; while ( methods . hasNext ( ) ) { SpecializedMethod m = methods . next ( ) ; if ( m . getCompiledMetho...
112
java-test-2812
java
What do a string contain ?
the last observation , the current estimate of the quantile and all markers
@ Override public String to String ( ) { if ( markers == null ) { return String . format ( STRING , DECIMAL FORMAT . format ( last Observation ) , DECIMAL FORMAT . format ( p Value ) ) ; } else { return String . format ( STRING , DECIMAL FORMAT . format ( last Observation ) , markers . to String ( ) ) ; } }
@ Override public String toString ( ) { if ( markers == null ) { return String . format ( STRING , DECIMAL_FORMAT . format ( lastObservation ) , DECIMAL_FORMAT . format ( pValue ) ) ; } else { return String . format ( STRING , DECIMAL_FORMAT . format ( lastObservation ) , markers . toString ( ) ) ; } }
71
java-test-2813
java
What does the code find ?
the lower index of the range of live items in the specified data series
public static int find Live Items Lower Bound ( XY Dataset dataset , int series , double x Low , double x High ) { Param Checks . null Not Permitted ( dataset , STRING ) ; if ( x Low >= x High ) { throw new Illegal Argument Exception ( STRING ) ; } int item Count = dataset . get Item Count ( series ) ; if ( item Count ...
public static int findLiveItemsLowerBound ( XYDataset dataset , int series , double xLow , double xHigh ) { ParamChecks . nullNotPermitted ( dataset , STRING ) ; if ( xLow >= xHigh ) { throw new IllegalArgumentException ( STRING ) ; } int itemCount = dataset . getItemCount ( series ) ; if ( itemCount <= _NUM ) { return...
456
java-test-2815
java
What does the code save ?
the scan to the filesystem
private void save ( ) { try { File Utils . write ( new File ( jar Name + STRING ) , text ) ; } catch ( IO Exception e ) { J Option Pane . show Message Dialog ( null , e . get Message ( ) , STRING , J Option Pane . ERROR MESSAGE ) ; } }
private void save ( ) { try { FileUtils . write ( new File ( jarName + STRING ) , text ) ; } catch ( IOException e ) { JOptionPane . showMessageDialog ( null , e . getMessage ( ) , STRING , JOptionPane . ERROR_MESSAGE ) ; } }
62
java-test-2818
java
What do the container call ?
the associateconnection method
public void associate Connection ( Object connection ) throws Resource Exception { if ( ! connection Sharing ) disassociate Connections ( ) ; try { final FB Connection abstract Connection = ( FB Connection ) connection ; abstract Connection . set Managed Connection ( this ) ; connection Handles . add ( abstract Connect...
public void associateConnection ( Object connection ) throws ResourceException { if ( ! connectionSharing ) disassociateConnections ( ) ; try { final FBConnection abstractConnection = ( FBConnection ) connection ; abstractConnection . setManagedConnection ( this ) ; connectionHandles . add ( abstractConnection ) ; } ca...
78
java-test-2819
java
In which direction do the method implementation for a managedconnection associate the new connection with itself ?
handle
public void associate Connection ( Object connection ) throws Resource Exception { if ( ! connection Sharing ) disassociate Connections ( ) ; try { final FB Connection abstract Connection = ( FB Connection ) connection ; abstract Connection . set Managed Connection ( this ) ; connection Handles . add ( abstract Connect...
public void associateConnection ( Object connection ) throws ResourceException { if ( ! connectionSharing ) disassociateConnections ( ) ; try { final FBConnection abstractConnection = ( FBConnection ) connection ; abstractConnection . setManagedConnection ( this ) ; connectionHandles . add ( abstractConnection ) ; } ca...
78
java-test-2820
java
What should dissociate the connection handle ( passed as a parameter ) from its currently associated managedconnection ?
the method implementation for a managedconnection
public void associate Connection ( Object connection ) throws Resource Exception { if ( ! connection Sharing ) disassociate Connections ( ) ; try { final FB Connection abstract Connection = ( FB Connection ) connection ; abstract Connection . set Managed Connection ( this ) ; connection Handles . add ( abstract Connect...
public void associateConnection ( Object connection ) throws ResourceException { if ( ! connectionSharing ) disassociateConnections ( ) ; try { final FBConnection abstractConnection = ( FBConnection ) connection ; abstractConnection . setManagedConnection ( this ) ; connectionHandles . add ( abstractConnection ) ; } ca...
78
java-test-2821
java
What used to change the association of an application - level connection handle with a managedconneciton instance the code ?
by the container
public void associate Connection ( Object connection ) throws Resource Exception { if ( ! connection Sharing ) disassociate Connections ( ) ; try { final FB Connection abstract Connection = ( FB Connection ) connection ; abstract Connection . set Managed Connection ( this ) ; connection Handles . add ( abstract Connect...
public void associateConnection ( Object connection ) throws ResourceException { if ( ! connectionSharing ) disassociateConnections ( ) ; try { final FBConnection abstractConnection = ( FBConnection ) connection ; abstractConnection . setManagedConnection ( this ) ; connectionHandles . add ( abstractConnection ) ; } ca...
78
java-test-2822
java
What should the method implementation for a managedconnection dissociate from its currently associated managedconnection ?
the connection handle ( passed as a parameter )
public void associate Connection ( Object connection ) throws Resource Exception { if ( ! connection Sharing ) disassociate Connections ( ) ; try { final FB Connection abstract Connection = ( FB Connection ) connection ; abstract Connection . set Managed Connection ( this ) ; connection Handles . add ( abstract Connect...
public void associateConnection ( Object connection ) throws ResourceException { if ( ! connectionSharing ) disassociateConnections ( ) ; try { final FBConnection abstractConnection = ( FBConnection ) connection ; abstractConnection . setManagedConnection ( this ) ; connectionHandles . add ( abstractConnection ) ; } ca...
78
java-test-2823
java
What should the container find ?
the right managedconnection instance
public void associate Connection ( Object connection ) throws Resource Exception { if ( ! connection Sharing ) disassociate Connections ( ) ; try { final FB Connection abstract Connection = ( FB Connection ) connection ; abstract Connection . set Managed Connection ( this ) ; connection Handles . add ( abstract Connect...
public void associateConnection ( Object connection ) throws ResourceException { if ( ! connectionSharing ) disassociateConnections ( ) ; try { final FBConnection abstractConnection = ( FBConnection ) connection ; abstractConnection . setManagedConnection ( this ) ; connectionHandles . add ( abstractConnection ) ; } ca...
78
java-test-2824
java
What did by the container use the code ?
to change the association of an application - level connection handle with a managedconneciton instance
public void associate Connection ( Object connection ) throws Resource Exception { if ( ! connection Sharing ) disassociate Connections ( ) ; try { final FB Connection abstract Connection = ( FB Connection ) connection ; abstract Connection . set Managed Connection ( this ) ; connection Handles . add ( abstract Connect...
public void associateConnection ( Object connection ) throws ResourceException { if ( ! connectionSharing ) disassociateConnections ( ) ; try { final FBConnection abstractConnection = ( FBConnection ) connection ; abstractConnection . setManagedConnection ( this ) ; connectionHandles . add ( abstractConnection ) ; } ca...
78
java-test-2828
java
What does the code read ?
the the conservative and progressive approximation of the knn distances of this entry from the specified input stream
@ Override public void read External ( Object Input in ) throws IO Exception , Class Not Found Exception { super . read External ( in ) ; conservative Approximation = ( Approximation Line ) in . read Object ( ) ; progressive Approximation = ( Approximation Line ) in . read Object ( ) ; }
@ Override public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { super . readExternal ( in ) ; conservativeApproximation = ( ApproximationLine ) in . readObject ( ) ; progressiveApproximation = ( ApproximationLine ) in . readObject ( ) ; }
57
java-test-2829
java
What does the code add to cimargument [ ] ?
cimargument
public CIM Argument [ ] add Element ( CIM Argument [ ] args , CIM Argument element ) { List < CIM Argument > args List = new Array List < CIM Argument > ( Arrays . as List ( args ) ) ; args List . add ( element ) ; CIM Argument [ ] args New = { } ; return args List . to Array ( args New ) ; }
public CIMArgument [ ] addElement ( CIMArgument [ ] args , CIMArgument element ) { List < CIMArgument > argsList = new ArrayList < CIMArgument > ( Arrays . asList ( args ) ) ; argsList . add ( element ) ; CIMArgument [ ] argsNew = { } ; return argsList . toArray ( argsNew ) ; }
74
java-test-2830
java
What does the code add ?
a ( possibly relevant ) doc
public void add Result ( int n , boolean is Relevant , long doc Name Extract Time ) { if ( Math . abs ( num Points + NUM - n ) > NUM ) { throw new Illegal Argument Exception ( STRING + n + STRING + num Points + STRING ) ; } if ( is Relevant ) { num Good Points += NUM ; recall Points . add ( new Recall Point ( n , num G...
public void addResult ( int n , boolean isRelevant , long docNameExtractTime ) { if ( Math . abs ( numPoints + _NUM - n ) > _NUM ) { throw new IllegalArgumentException ( STRING + n + STRING + numPoints + STRING ) ; } if ( isRelevant ) { numGoodPoints += _NUM ; recallPoints . add ( new RecallPoint ( n , numGoodPoints ) ...
184
java-test-2831
java
How does the code add the attributes specified in the list to the node ?
in ascending order of their names
private void add Arguments ( final Node node , final List list ) { final Named Node Map map = node . get Attributes ( ) ; if ( map != null ) { Collections . sort ( list , new Attribute Comparator ( ) ) ; for ( final Iterator iterator = list . iterator ( ) ; iterator . has Next ( ) ; ) { final Attr attribute = ( Attr ) ...
private void addArguments ( final Node node , final List list ) { final NamedNodeMap map = node . getAttributes ( ) ; if ( map != null ) { Collections . sort ( list , new AttributeComparator ( ) ) ; for ( final Iterator iterator = list . iterator ( ) ; iterator . hasNext ( ) ; ) { final Attr attribute = ( Attr ) iterat...
93
java-test-2832
java
What does the code add to the node in ascending order of their names ?
the attributes specified in the list
private void add Arguments ( final Node node , final List list ) { final Named Node Map map = node . get Attributes ( ) ; if ( map != null ) { Collections . sort ( list , new Attribute Comparator ( ) ) ; for ( final Iterator iterator = list . iterator ( ) ; iterator . has Next ( ) ; ) { final Attr attribute = ( Attr ) ...
private void addArguments ( final Node node , final List list ) { final NamedNodeMap map = node . getAttributes ( ) ; if ( map != null ) { Collections . sort ( list , new AttributeComparator ( ) ) ; for ( final Iterator iterator = list . iterator ( ) ; iterator . hasNext ( ) ; ) { final Attr attribute = ( Attr ) iterat...
93
java-test-2833
java
What does a string contain ?
all caps
public static boolean ISALLUPPERCASE ( String token ) { for ( int i = NUM ; i < token . length ( ) ; i ++ ) if ( ! Character . is Upper Case ( token . char At ( i ) ) ) return BOOL ; return BOOL ; }
public static boolean ISALLUPPERCASE ( String token ) { for ( int i = _NUM ; i < token . length ( ) ; i ++ ) if ( ! Character . isUpperCase ( token . charAt ( i ) ) ) return _BOOL ; return _BOOL ; }
52
java-test-2834
java
What does the code process ?
the saml response for the saml2 authentication module
public static void process Saml Response ( Http Servlet Request request , Http Servlet Response response , Print Writer out ) throws IO Exception { String url = get Url ( request , response ) ; XUI State xui State = Injector Holder . get Instance ( XUI State . class ) ; if ( xui State . is XUI Enabled ( ) ) { response ...
public static void processSamlResponse ( HttpServletRequest request , HttpServletResponse response , PrintWriter out ) throws IOException { String url = getUrl ( request , response ) ; XUIState xuiState = InjectorHolder . getInstance ( XUIState . class ) ; if ( xuiState . isXUIEnabled ( ) ) { response . sendRedirect ( ...
92
java-test-2835
java
How does the code direct the user back to the authentication process then ?
differently for xui and non - xui cases
public static void process Saml Response ( Http Servlet Request request , Http Servlet Response response , Print Writer out ) throws IO Exception { String url = get Url ( request , response ) ; XUI State xui State = Injector Holder . get Instance ( XUI State . class ) ; if ( xui State . is XUI Enabled ( ) ) { response ...
public static void processSamlResponse ( HttpServletRequest request , HttpServletResponse response , PrintWriter out ) throws IOException { String url = getUrl ( request , response ) ; XUIState xuiState = InjectorHolder . getInstance ( XUIState . class ) ; if ( xuiState . isXUIEnabled ( ) ) { response . sendRedirect ( ...
92
java-test-2836
java
What does a task indicate ?
that the operation completed
private Task Resource Rep finish Deactivate Task ( Block Consistency Group consistency Group , String task ) { URI id = consistency Group . get Id ( ) ; Operation op = new Operation ( ) ; op . ready ( ) ; op . set Progress ( NUM ) ; op . set Resource Type ( Resource Operation Type Enum . DELETE CONSISTENCY GROUP ) ; Op...
private TaskResourceRep finishDeactivateTask ( BlockConsistencyGroup consistencyGroup , String task ) { URI id = consistencyGroup . getId ( ) ; Operation op = new Operation ( ) ; op . ready ( ) ; op . setProgress ( _NUM ) ; op . setResourceType ( ResourceOperationTypeEnum . DELETE_CONSISTENCY_GROUP ) ; Operation status...
104
java-test-2837
java
What does the code cancel ?
a running statement
void cancel Statement ( String session Id , int statement Id ) { for ( Tcp Server Thread c : New . array List ( running ) ) { if ( c != null ) { c . cancel Statement ( session Id , statement Id ) ; } } }
void cancelStatement ( String sessionId , int statementId ) { for ( TcpServerThread c : New . arrayList ( running ) ) { if ( c != null ) { c . cancelStatement ( sessionId , statementId ) ; } } }
51
java-test-2838
java
What does the code parse ?
the supplied xsd
public static double parse Double ( String s ) { if ( POSITIVE INFINITY . equals ( s ) ) { return Double . POSITIVE INFINITY ; } else if ( NEGATIVE INFINITY . equals ( s ) ) { return Double . NEGATIVE INFINITY ; } else if ( Na N . equals ( s ) ) { return Double . Na N ; } else { s = trim Plus Sign ( s ) ; return Double...
public static double parseDouble ( String s ) { if ( POSITIVE_INFINITY . equals ( s ) ) { return Double . POSITIVE_INFINITY ; } else if ( NEGATIVE_INFINITY . equals ( s ) ) { return Double . NEGATIVE_INFINITY ; } else if ( NaN . equals ( s ) ) { return Double . NaN ; } else { s = trimPlusSign ( s ) ; return Double . pa...
88
java-test-2839
java
For what purpose does the code translate a date & time from a users time zone to the another ( probably server ) time zone ?
to assist in creating a simple trigger with the right date & time
public static Date translate Time ( Date date , Time Zone src , Time Zone dest ) { Date new Date = new Date ( ) ; int offset = ( dest . get Offset ( date . get Time ( ) ) - src . get Offset ( date . get Time ( ) ) ) ; new Date . set Time ( date . get Time ( ) - offset ) ; return new Date ; }
public static Date translateTime ( Date date , TimeZone src , TimeZone dest ) { Date newDate = new Date ( ) ; int offset = ( dest . getOffset ( date . getTime ( ) ) - src . getOffset ( date . getTime ( ) ) ) ; newDate . setTime ( date . getTime ( ) - offset ) ; return newDate ; }
79
java-test-2840
java
How do a simple trigger create ?
with the right date & time
public static Date translate Time ( Date date , Time Zone src , Time Zone dest ) { Date new Date = new Date ( ) ; int offset = ( dest . get Offset ( date . get Time ( ) ) - src . get Offset ( date . get Time ( ) ) ) ; new Date . set Time ( date . get Time ( ) - offset ) ; return new Date ; }
public static Date translateTime ( Date date , TimeZone src , TimeZone dest ) { Date newDate = new Date ( ) ; int offset = ( dest . getOffset ( date . getTime ( ) ) - src . getOffset ( date . getTime ( ) ) ) ; newDate . setTime ( date . getTime ( ) - offset ) ; return newDate ; }
79
java-test-2841
java
What does the code translate to the another ( probably server ) time zone to assist in creating a simple trigger with the right date & time ?
a date & time from a users time zone
public static Date translate Time ( Date date , Time Zone src , Time Zone dest ) { Date new Date = new Date ( ) ; int offset = ( dest . get Offset ( date . get Time ( ) ) - src . get Offset ( date . get Time ( ) ) ) ; new Date . set Time ( date . get Time ( ) - offset ) ; return new Date ; }
public static Date translateTime ( Date date , TimeZone src , TimeZone dest ) { Date newDate = new Date ( ) ; int offset = ( dest . getOffset ( date . getTime ( ) ) - src . getOffset ( date . getTime ( ) ) ) ; newDate . setTime ( date . getTime ( ) - offset ) ; return newDate ; }
79
java-test-2842
java
What is using a randomized set of class value colomns ?
a random entropy
private void calculate Entropy ( double scale , K Star Wrapper params ) { int i , j , k ; double actent = NUM , randent = NUM ; double pstar , tprob , avgprob = NUM , minprob = NUM ; double act Class Prob , rand Class Prob ; double [ ] [ ] pseudo Class Probs = new double [ NUM RAND COLS + NUM ] [ m Num Classes ] ; for ...
private void calculateEntropy ( double scale , KStarWrapper params ) { int i , j , k ; double actent = _NUM , randent = _NUM ; double pstar , tprob , avgprob = _NUM , minprob = _NUM ; double actClassProb , randClassProb ; double [ ] [ ] pseudoClassProbs = new double [ NUM_RAND_COLS + _NUM ] [ m_NumClasses ] ; for ( j =...
412
java-test-2843
java
What do a random entropy use ?
a randomized set of class value colomns
private void calculate Entropy ( double scale , K Star Wrapper params ) { int i , j , k ; double actent = NUM , randent = NUM ; double pstar , tprob , avgprob = NUM , minprob = NUM ; double act Class Prob , rand Class Prob ; double [ ] [ ] pseudo Class Probs = new double [ NUM RAND COLS + NUM ] [ m Num Classes ] ; for ...
private void calculateEntropy ( double scale , KStarWrapper params ) { int i , j , k ; double actent = _NUM , randent = _NUM ; double pstar , tprob , avgprob = _NUM , minprob = _NUM ; double actClassProb , randClassProb ; double [ ] [ ] pseudoClassProbs = new double [ NUM_RAND_COLS + _NUM ] [ m_NumClasses ] ; for ( j =...
412
java-test-2844
java
What does the code create ?
a new type parameter signature with the given name and bounds
public static char [ ] create Type Parameter Signature ( char [ ] type Parameter Name , char [ ] [ ] bound Signatures ) { int length = bound Signatures . length ; if ( length == NUM ) { return Char Operation . append ( type Parameter Name , C COLON ) ; } int bounds Size = NUM ; for ( int i = NUM ; i < length ; i ++ ) {...
public static char [ ] createTypeParameterSignature ( char [ ] typeParameterName , char [ ] [ ] boundSignatures ) { int length = boundSignatures . length ; if ( length == _NUM ) { return CharOperation . append ( typeParameterName , C_COLON ) ; } int boundsSize = _NUM ; for ( int i = _NUM ; i < length ; i ++ ) { boundsS...
206
java-test-2845
java
What does the code create ?
a new xliff document
public void create ( String xliff Path , String skeleton Path , Locale Id src Loc , Locale Id trg Loc , String data Type , String original , String message ) { if ( writer != null ) { close ( ) ; } this . skeleton Path = skeleton Path ; this . original = original ; this . src Loc = src Loc ; this . trg Loc = trg Loc ; ...
public void create ( String xliffPath , String skeletonPath , LocaleId srcLoc , LocaleId trgLoc , String dataType , String original , String message ) { if ( writer != null ) { close ( ) ; } this . skeletonPath = skeletonPath ; this . original = original ; this . srcLoc = srcLoc ; this . trgLoc = trgLoc ; this . dataTy...
431
java-test-2846
java
When did an exception occur ?
during the processing of a request or response
private void log Exception ( Throwable t , String url ) { log . log ( String . format ( STRING , url ) ) ; String Writer sw = new String Writer ( ) ; t . print Stack Trace ( new Print Writer ( sw ) ) ; log . log ( sw . to String ( ) ) ; log . log ( STRING ) ; }
private void logException ( Throwable t , String url ) { log . log ( String . format ( STRING , url ) ) ; StringWriter sw = new StringWriter ( ) ; t . printStackTrace ( new PrintWriter ( sw ) ) ; log . log ( sw . toString ( ) ) ; log . log ( STRING ) ; }
70
java-test-2848
java
What do we get below this node ?
all the leaves
public void fetch All Leaf Components ( List < Course Component > leaves , Enum Set < Block Type > types ) { if ( ! is Container ( ) && types . contains ( type ) ) { leaves . add ( this ) ; } else { for ( Course Component comp : children ) { comp . fetch All Leaf Components ( leaves , types ) ; } } }
public void fetchAllLeafComponents ( List < CourseComponent > leaves , EnumSet < BlockType > types ) { if ( ! isContainer ( ) && types . contains ( type ) ) { leaves . add ( this ) ; } else { for ( CourseComponent comp : children ) { comp . fetchAllLeafComponents ( leaves , types ) ; } } }
73
java-test-2851
java
What does the code generate ?
a signed certificate and a private key
public static Cert Chain Key Pair generate Signed ( String fqdn , X509 Certificate issuer Certificate , Private Key issuer Private Key ) { try { return generate Certificate And Sign ( fqdn , issuer Certificate , issuer Private Key , get Server Extensions ( issuer Certificate ) ) ; } catch ( Certificate Exception | Oper...
public static CertChainKeyPair generateSigned ( String fqdn , X509Certificate issuerCertificate , PrivateKey issuerPrivateKey ) { try { return generateCertificateAndSign ( fqdn , issuerCertificate , issuerPrivateKey , getServerExtensions ( issuerCertificate ) ) ; } catch ( CertificateException | OperatorCreationExcepti...
94
java-test-2864
java
What will it record ?
files in given directory with names like image - 0010
public File Image Recorder ( File base path , int starting seq , String prefix , Recording Success Callback callback ) { super ( base path , starting seq , prefix , callback ) ; this . activated = BOOL ; executor = Executors . new Fixed Thread Pool ( MAX SAVING THREADS ) ; }
public FileImageRecorder ( File base_path , int starting_seq , String prefix , RecordingSuccessCallback callback ) { super ( base_path , starting_seq , prefix , callback ) ; this . activated = _BOOL ; executor = Executors . newFixedThreadPool ( MAX_SAVING_THREADS ) ; }
56
java-test-2870
java
What will the resulting list of gts contain if ' gts ' has no values or if ' label ' is already part of the labels of ' gts ' if ' gts ' has no values or if ' label ' is already part of the labels of ' gts ' if ' gts ' has no values or if ' label ' is already part of the labels of ' gts ' ?
a clone of ' gts '
public static List < Geo Time Serie > timesplit ( Geo Time Serie gts , long quietperiod , int minvalues , String labelname ) { List < Geo Time Serie > series = new Array List < Geo Time Serie > ( ) ; if ( NUM == gts . values || gts . has Label ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ...
public static List < GeoTimeSerie > timesplit ( GeoTimeSerie gts , long quietperiod , int minvalues , String labelname ) { List < GeoTimeSerie > series = new ArrayList < GeoTimeSerie > ( ) ; if ( _NUM == gts . values || gts . hasLabel ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ( gts , _...
445
java-test-2871
java
What will contain a clone of ' gts ' if ' gts ' has no values or if ' label ' is already part of the labels of ' gts ' if ' gts ' has no values or if ' label ' is already part of the labels of ' gts ' if ' gts ' has no values or if ' label ' is already part of the labels of ' gts ' ?
the resulting list of gts
public static List < Geo Time Serie > timesplit ( Geo Time Serie gts , long quietperiod , int minvalues , String labelname ) { List < Geo Time Serie > series = new Array List < Geo Time Serie > ( ) ; if ( NUM == gts . values || gts . has Label ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ...
public static List < GeoTimeSerie > timesplit ( GeoTimeSerie gts , long quietperiod , int minvalues , String labelname ) { List < GeoTimeSerie > series = new ArrayList < GeoTimeSerie > ( ) ; if ( _NUM == gts . values || gts . hasLabel ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ( gts , _...
445
java-test-2872
java
How do a gts split into multiple gts ?
by cutting in ' quiet zones ' , i . e . intervals of ' quietperiod ' or more during which there were no measurements
public static List < Geo Time Serie > timesplit ( Geo Time Serie gts , long quietperiod , int minvalues , String labelname ) { List < Geo Time Serie > series = new Array List < Geo Time Serie > ( ) ; if ( NUM == gts . values || gts . has Label ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ...
public static List < GeoTimeSerie > timesplit ( GeoTimeSerie gts , long quietperiod , int minvalues , String labelname ) { List < GeoTimeSerie > series = new ArrayList < GeoTimeSerie > ( ) ; if ( _NUM == gts . values || gts . hasLabel ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ( gts , _...
445
java-test-2873
java
What do a gts split by cutting in ' quiet zones ' , i . e . intervals of ' quietperiod ' or more during which there were no measurements ?
into multiple gts
public static List < Geo Time Serie > timesplit ( Geo Time Serie gts , long quietperiod , int minvalues , String labelname ) { List < Geo Time Serie > series = new Array List < Geo Time Serie > ( ) ; if ( NUM == gts . values || gts . has Label ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ...
public static List < GeoTimeSerie > timesplit ( GeoTimeSerie gts , long quietperiod , int minvalues , String labelname ) { List < GeoTimeSerie > series = new ArrayList < GeoTimeSerie > ( ) ; if ( _NUM == gts . values || gts . hasLabel ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ( gts , _...
445
java-test-2874
java
What did ' gts have ?
no values
public static List < Geo Time Serie > timesplit ( Geo Time Serie gts , long quietperiod , int minvalues , String labelname ) { List < Geo Time Serie > series = new Array List < Geo Time Serie > ( ) ; if ( NUM == gts . values || gts . has Label ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ...
public static List < GeoTimeSerie > timesplit ( GeoTimeSerie gts , long quietperiod , int minvalues , String labelname ) { List < GeoTimeSerie > series = new ArrayList < GeoTimeSerie > ( ) ; if ( _NUM == gts . values || gts . hasLabel ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ( gts , _...
445
java-test-2875
java
What has no values ?
' gts
public static List < Geo Time Serie > timesplit ( Geo Time Serie gts , long quietperiod , int minvalues , String labelname ) { List < Geo Time Serie > series = new Array List < Geo Time Serie > ( ) ; if ( NUM == gts . values || gts . has Label ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ...
public static List < GeoTimeSerie > timesplit ( GeoTimeSerie gts , long quietperiod , int minvalues , String labelname ) { List < GeoTimeSerie > series = new ArrayList < GeoTimeSerie > ( ) ; if ( _NUM == gts . values || gts . hasLabel ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ( gts , _...
445
java-test-2876
java
When has no measurements were ?
during which
public static List < Geo Time Serie > timesplit ( Geo Time Serie gts , long quietperiod , int minvalues , String labelname ) { List < Geo Time Serie > series = new Array List < Geo Time Serie > ( ) ; if ( NUM == gts . values || gts . has Label ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ...
public static List < GeoTimeSerie > timesplit ( GeoTimeSerie gts , long quietperiod , int minvalues , String labelname ) { List < GeoTimeSerie > series = new ArrayList < GeoTimeSerie > ( ) ; if ( _NUM == gts . values || gts . hasLabel ( labelname ) ) { series . add ( gts . clone ( ) ) ; return series ; } sort ( gts , _...
445
java-test-2877
java
Where does it run 1 . 1 . ?
on java
private static String invoke 16 Method ( Object obj , Class < ? > type , String method , Class < ? > ret Type ) { if ( ! Version Utils . is Java 16 Or Above ( ) ) return STRING ; try { Method m = type . get Method ( method ) ; Object ret = m . invoke ( obj ) ; if ( ret == null ) return STRING ; if ( ! ( ret Type . is A...
private static String invoke16Method ( Object obj , Class < ? > type , String method , Class < ? > retType ) { if ( ! VersionUtils . isJava16OrAbove ( ) ) return STRING ; try { Method m = type . getMethod ( method ) ; Object ret = m . invoke ( obj ) ; if ( ret == null ) return STRING ; if ( ! ( retType . isAssignableFr...
156
java-test-2878
java
Where do products find ?
in warehouse with price for customer
public static M Warehouse Price [ ] find ( MB Partner b Partner , boolean Is SO Trx , Timestamp valid , int M Warehouse ID , String Value , String Name , String UPC , String SKU , String trx Name ) { int M Price List ID = Is SO Trx ? b Partner . get M Price List ID ( ) : b Partner . get PO Price List ID ( ) ; M Price L...
public static MWarehousePrice [ ] find ( MBPartner bPartner , boolean IsSOTrx , Timestamp valid , int M_Warehouse_ID , String Value , String Name , String UPC , String SKU , String trxName ) { int M_PriceList_ID = IsSOTrx ? bPartner . getM_PriceList_ID ( ) : bPartner . getPO_PriceList_ID ( ) ; MPriceList pl = null ; if...
243
java-test-2879
java
How does the code create a class descriptor ?
from a resource name
public static Class Descriptor create Class Descriptor From Resource Name ( String resource Name ) { if ( ! is Class Resource ( resource Name ) ) { throw new Illegal Argument Exception ( STRING + resource Name + STRING ) ; } return create Class Descriptor ( resource Name . substring ( NUM , resource Name . length ( ) -...
public static ClassDescriptor createClassDescriptorFromResourceName ( String resourceName ) { if ( ! isClassResource ( resourceName ) ) { throw new IllegalArgumentException ( STRING + resourceName + STRING ) ; } return createClassDescriptor ( resourceName . substring ( _NUM , resourceName . length ( ) - _NUM ) ) ; }
67
java-test-2880
java
What does a dialog display ?
the content of the binnavi log file
public static void show ( final Window parent , final String content ) { final C Log File Dialog dialog = new C Log File Dialog ( parent , content ) ; Gui Helper . center Child To Parent ( parent , dialog , BOOL ) ; dialog . set Visible ( BOOL ) ; }
public static void show ( final Window parent , final String content ) { final CLogFileDialog dialog = new CLogFileDialog ( parent , content ) ; GuiHelper . centerChildToParent ( parent , dialog , _BOOL ) ; dialog . setVisible ( _BOOL ) ; }
56
java-test-2881
java
What does the code show ?
a dialog that displays the content of the binnavi log file
public static void show ( final Window parent , final String content ) { final C Log File Dialog dialog = new C Log File Dialog ( parent , content ) ; Gui Helper . center Child To Parent ( parent , dialog , BOOL ) ; dialog . set Visible ( BOOL ) ; }
public static void show ( final Window parent , final String content ) { final CLogFileDialog dialog = new CLogFileDialog ( parent , content ) ; GuiHelper . centerChildToParent ( parent , dialog , _BOOL ) ; dialog . setVisible ( _BOOL ) ; }
56
java-test-2882
java
What does the code draw ?
the appearance for a push button
@ Deprecated protected Pdf Form X Object draw Push Button Appearance ( float width , float height , String text , Pdf Font font , int font Size ) { return draw Push Button Appearance ( width , height , text , font , ( float ) font Size ) ; }
@ Deprecated protected PdfFormXObject drawPushButtonAppearance ( float width , float height , String text , PdfFont font , int fontSize ) { return drawPushButtonAppearance ( width , height , text , font , ( float ) fontSize ) ; }
52
java-test-2883
java
How does the prompt string ( converted to lowercase ) parse br ?
by splitting on the ' ' character
public Open Id Prompt ( String prompt ) { original Value = prompt ; if ( is Empty ( prompt ) ) { prompts = Collections . empty Set ( ) ; } else { prompts = string To Set ( prompt . to Lower Case ( ) ) ; } }
public OpenIdPrompt ( String prompt ) { originalValue = prompt ; if ( isEmpty ( prompt ) ) { prompts = Collections . emptySet ( ) ; } else { prompts = stringToSet ( prompt . toLowerCase ( ) ) ; } }
52
java-test-2884
java
How is this method used at the client side ?
primarily
public static Request Security Token Response parse XML ( Input Stream is ) throws WS Federation Exception { Document doc = XML Utils . to DOM Document ( is , debug ) ; Element root = doc . get Document Element ( ) ; return new Request Security Token Response ( root ) ; }
public static RequestSecurityTokenResponse parseXML ( InputStream is ) throws WSFederationException { Document doc = XMLUtils . toDOMDocument ( is , debug ) ; Element root = doc . getDocumentElement ( ) ; return new RequestSecurityTokenResponse ( root ) ; }
55
java-test-2893
java
What does the code remove ?
all remarks
static String remove Remarks ( String s ) { char [ ] chars = s . to Char Array ( ) ; for ( int i = NUM ; i >= NUM && i < s . length ( ) ; i ++ ) { if ( s . char At ( i ) == STRING ) { i ++ ; while ( BOOL ) { if ( s . char At ( i ) == STRING ) { i ++ ; } else if ( s . char At ( i ) == STRING ) { break ; } i ++ ; } conti...
static String removeRemarks ( String s ) { char [ ] chars = s . toCharArray ( ) ; for ( int i = _NUM ; i >= _NUM && i < s . length ( ) ; i ++ ) { if ( s . charAt ( i ) == STRING ) { i ++ ; while ( _BOOL ) { if ( s . charAt ( i ) == STRING ) { i ++ ; } else if ( s . charAt ( i ) == STRING ) { break ; } i ++ ; } continue...
318
java-test-2894
java
What does the code create ?
a new instance for a given key
@ Override public < T > T instance ( Key < T > key ) { Objects . require Non Null ( key ) ; Class < T > type = ( Class ) key . raw Class ( ) ; if ( type . equals ( Provider . class ) ) { Type Ref type Ref = Type Ref . of ( key . type ( ) ) ; Type Ref param = type Ref . param ( NUM ) ; return ( T ) provider ( Key . of (...
@ Override public < T > T instance ( Key < T > key ) { Objects . requireNonNull ( key ) ; Class < T > type = ( Class ) key . rawClass ( ) ; if ( type . equals ( Provider . class ) ) { TypeRef typeRef = TypeRef . of ( key . type ( ) ) ; TypeRef param = typeRef . param ( _NUM ) ; return ( T ) provider ( Key . of ( param ...
134
java-test-2895
java
What does the code create ?
a repeat control for problem lists with sections
private static Element add Problem List Section ( String name , Element body Node , Hashtable < String , Element > repeat Controls , Element model Node ) { Element group Node = body Node . create Element ( NAMESPACE XFORMS , null ) ; group Node . set Name ( NODE GROUP ) ; Element label Node = group Node . create Elemen...
private static Element addProblemListSection ( String name , Element bodyNode , Hashtable < String , Element > repeatControls , Element modelNode ) { Element groupNode = bodyNode . createElement ( NAMESPACE_XFORMS , null ) ; groupNode . setName ( NODE_GROUP ) ; Element labelNode = groupNode . createElement ( NAMESPACE_...
154
java-test-2896
java
What is containing the expected serialization ?
an file
public static void assert Serialization Equals ( final String witness , final Object obj , final int [ ] skip , final int end Compare ) throws Exception { Byte Array Output Stream mem Out = new Byte Array Output Stream ( ) ; Object Output Stream obj Out = new Object Output Stream ( mem Out ) ; obj Out . write Object ( ...
public static void assertSerializationEquals ( final String witness , final Object obj , final int [ ] skip , final int endCompare ) throws Exception { ByteArrayOutputStream memOut = new ByteArrayOutputStream ( ) ; ObjectOutputStream objOut = new ObjectOutputStream ( memOut ) ; objOut . writeObject ( obj ) ; objOut . c...
97
java-test-2897
java
What checks against an file containing the expected serialization ?
the serialization of an object
public static void assert Serialization Equals ( final String witness , final Object obj , final int [ ] skip , final int end Compare ) throws Exception { Byte Array Output Stream mem Out = new Byte Array Output Stream ( ) ; Object Output Stream obj Out = new Object Output Stream ( mem Out ) ; obj Out . write Object ( ...
public static void assertSerializationEquals ( final String witness , final Object obj , final int [ ] skip , final int endCompare ) throws Exception { ByteArrayOutputStream memOut = new ByteArrayOutputStream ( ) ; ObjectOutputStream objOut = new ObjectOutputStream ( memOut ) ; objOut . writeObject ( obj ) ; objOut . c...
97
java-test-2898
java
What does the serialization of an object check ?
against an file containing the expected serialization
public static void assert Serialization Equals ( final String witness , final Object obj , final int [ ] skip , final int end Compare ) throws Exception { Byte Array Output Stream mem Out = new Byte Array Output Stream ( ) ; Object Output Stream obj Out = new Object Output Stream ( mem Out ) ; obj Out . write Object ( ...
public static void assertSerializationEquals ( final String witness , final Object obj , final int [ ] skip , final int endCompare ) throws Exception { ByteArrayOutputStream memOut = new ByteArrayOutputStream ( ) ; ObjectOutputStream objOut = new ObjectOutputStream ( memOut ) ; objOut . writeObject ( obj ) ; objOut . c...
97
java-test-2899
java
What do an file contain ?
the expected serialization
public static void assert Serialization Equals ( final String witness , final Object obj , final int [ ] skip , final int end Compare ) throws Exception { Byte Array Output Stream mem Out = new Byte Array Output Stream ( ) ; Object Output Stream obj Out = new Object Output Stream ( mem Out ) ; obj Out . write Object ( ...
public static void assertSerializationEquals ( final String witness , final Object obj , final int [ ] skip , final int endCompare ) throws Exception { ByteArrayOutputStream memOut = new ByteArrayOutputStream ( ) ; ObjectOutputStream objOut = new ObjectOutputStream ( memOut ) ; objOut . writeObject ( obj ) ; objOut . c...
97
java-test-2900
java
What does the string have ?
the structure : word1 ( morpheme ) + word2 ( morpheme ) + . . . + word3 for example : " aktion ( s ) + plan " or " verbraucher + zahlen "
public static Decompounded Word create From String ( String a Split ) { Decompounded Word s = new Decompounded Word ( ) ; String [ ] elems = a Split . split ( STRING ) ; for ( String string : elems ) { s . append Split Element ( Fragment . create From String ( string ) ) ; } return s ; }
public static DecompoundedWord createFromString ( String aSplit ) { DecompoundedWord s = new DecompoundedWord ( ) ; String [ ] elems = aSplit . split ( STRING ) ; for ( String string : elems ) { s . appendSplitElement ( Fragment . createFromString ( string ) ) ; } return s ; }
65
java-test-2901
java
What noticed that # of subframes sometimes underreported because these cast to an int . rounding would sometimes overreport , however . observed that a tolerance of . 000001 would define when to round up . this appeared to be causing gaps at zone boundaries , since a coverage box could think it doesn ' t have a certain...
the number of subframes vertically within this coverage box
public int vertical Subframes ( ) { double value = Math . abs ( ( nw lat - se lat ) / subframe Lat Interval ) ; int lower = ( int ) value ; int upper = lower + NUM ; if ( upper - value < NUM ) { return upper ; } else return lower ; }
public int verticalSubframes ( ) { double value = Math . abs ( ( nw_lat - se_lat ) / subframeLatInterval ) ; int lower = ( int ) value ; int upper = lower + _NUM ; if ( upper - value < _NUM ) { return upper ; } else return lower ; }
60
java-test-2902
java
When does the code send a heartbeat to the server ?
for the given node
@ Api Operation ( value = STRING ) @ Request Mapping ( value = STRING , method = Request Method . PUT ) @ Response Status ( Http Status . NO CONTENT ) @ Response Body public final void put Heartbeat ( @ Path Variable ( STRING ) String engine Name , @ Api Param ( value = STRING ) @ Request Param ( value = Web Constants ...
@ ApiOperation ( value = STRING ) @ RequestMapping ( value = STRING , method = RequestMethod . PUT ) @ ResponseStatus ( HttpStatus . NO_CONTENT ) @ ResponseBody public final void putHeartbeat ( @ PathVariable ( STRING ) String engineName , @ ApiParam ( value = STRING ) @ RequestParam ( value = WebConstants . SECURITY_T...
137
java-test-2903
java
How does it add it ?
as a tlatoken , with begin / endtlatoken objects
private void add One Source Token To TLA ( String str , Region region ) { if ( region == null ) { add One Token To TLA ( str ) ; return ; } int begin Col = tlacode Next Line . length ( ) ; int end Col = begin Col + str . length ( ) ; mapping Vector Next Line . add Element ( new Mapping Object . Source Token ( begin Col...
private void addOneSourceTokenToTLA ( String str , Region region ) { if ( region == null ) { addOneTokenToTLA ( str ) ; return ; } int beginCol = tlacodeNextLine . length ( ) ; int endCol = beginCol + str . length ( ) ; mappingVectorNextLine . addElement ( new MappingObject . SourceToken ( beginCol , endCol , region ) ...
96
java-test-2904
java
What converts to full java class name ?
symbolic name ( uri )
public static String to Full Class Name ( String symbolic Name ) { if ( uri To Class Name Map . contains Key ( symbolic Name ) ) return uri To Class Name Map . get ( symbolic Name ) ; return symbolic Name . replace ( STRING , STRING ) ; }
public static String toFullClassName ( String symbolicName ) { if ( uriToClassNameMap . containsKey ( symbolicName ) ) return uriToClassNameMap . get ( symbolicName ) ; return symbolicName . replace ( STRING , STRING ) ; }
53
java-test-2905
java
What does symbolic name ( uri ) convert ?
to full java class name
public static String to Full Class Name ( String symbolic Name ) { if ( uri To Class Name Map . contains Key ( symbolic Name ) ) return uri To Class Name Map . get ( symbolic Name ) ; return symbolic Name . replace ( STRING , STRING ) ; }
public static String toFullClassName ( String symbolicName ) { if ( uriToClassNameMap . containsKey ( symbolicName ) ) return uriToClassNameMap . get ( symbolicName ) ; return symbolicName . replace ( STRING , STRING ) ; }
53
java-test-2906
java
What does checks return if the entity is landing ( from a jump ) with damage that would force a psr if the entity is landing ( from a jump ) with damage that would force a psr for the piloting skill check ?
the target roll
public Piloting Roll Data check Landing With Damage ( Entity Movement Type overall Move Type ) { Piloting Roll Data roll = get Base Piloting Roll ( overall Move Type ) ; if ( ( ( get Bad Criticals ( Critical Slot . TYPE SYSTEM , Mech . SYSTEM GYRO , Mech . LOC CT ) > NUM ) && ( get Gyro Type ( ) != Mech . GYRO HEAVY DU...
public PilotingRollData checkLandingWithDamage ( EntityMovementType overallMoveType ) { PilotingRollData roll = getBasePilotingRoll ( overallMoveType ) ; if ( ( ( getBadCriticals ( CriticalSlot . TYPE_SYSTEM , Mech . SYSTEM_GYRO , Mech . LOC_CT ) > _NUM ) && ( getGyroType ( ) != Mech . GYRO_HEAVY_DUTY ) ) || ( ( getBad...
177
java-test-2907
java
What would damage force ?
a psr
public Piloting Roll Data check Landing With Damage ( Entity Movement Type overall Move Type ) { Piloting Roll Data roll = get Base Piloting Roll ( overall Move Type ) ; if ( ( ( get Bad Criticals ( Critical Slot . TYPE SYSTEM , Mech . SYSTEM GYRO , Mech . LOC CT ) > NUM ) && ( get Gyro Type ( ) != Mech . GYRO HEAVY DU...
public PilotingRollData checkLandingWithDamage ( EntityMovementType overallMoveType ) { PilotingRollData roll = getBasePilotingRoll ( overallMoveType ) ; if ( ( ( getBadCriticals ( CriticalSlot . TYPE_SYSTEM , Mech . SYSTEM_GYRO , Mech . LOC_CT ) > _NUM ) && ( getGyroType ( ) != Mech . GYRO_HEAVY_DUTY ) ) || ( ( getBad...
177
java-test-2908
java
How is the entity landing from a jump ) ?
with damage that
public Piloting Roll Data check Landing With Damage ( Entity Movement Type overall Move Type ) { Piloting Roll Data roll = get Base Piloting Roll ( overall Move Type ) ; if ( ( ( get Bad Criticals ( Critical Slot . TYPE SYSTEM , Mech . SYSTEM GYRO , Mech . LOC CT ) > NUM ) && ( get Gyro Type ( ) != Mech . GYRO HEAVY DU...
public PilotingRollData checkLandingWithDamage ( EntityMovementType overallMoveType ) { PilotingRollData roll = getBasePilotingRoll ( overallMoveType ) ; if ( ( ( getBadCriticals ( CriticalSlot . TYPE_SYSTEM , Mech . SYSTEM_GYRO , Mech . LOC_CT ) > _NUM ) && ( getGyroType ( ) != Mech . GYRO_HEAVY_DUTY ) ) || ( ( getBad...
177
java-test-2909
java
What would force a psr ?
damage
public Piloting Roll Data check Landing With Damage ( Entity Movement Type overall Move Type ) { Piloting Roll Data roll = get Base Piloting Roll ( overall Move Type ) ; if ( ( ( get Bad Criticals ( Critical Slot . TYPE SYSTEM , Mech . SYSTEM GYRO , Mech . LOC CT ) > NUM ) && ( get Gyro Type ( ) != Mech . GYRO HEAVY DU...
public PilotingRollData checkLandingWithDamage ( EntityMovementType overallMoveType ) { PilotingRollData roll = getBasePilotingRoll ( overallMoveType ) ; if ( ( ( getBadCriticals ( CriticalSlot . TYPE_SYSTEM , Mech . SYSTEM_GYRO , Mech . LOC_CT ) > _NUM ) && ( getGyroType ( ) != Mech . GYRO_HEAVY_DUTY ) ) || ( ( getBad...
177
java-test-2910
java
In which direction is the entity landing with damage that ?
from a jump )
public Piloting Roll Data check Landing With Damage ( Entity Movement Type overall Move Type ) { Piloting Roll Data roll = get Base Piloting Roll ( overall Move Type ) ; if ( ( ( get Bad Criticals ( Critical Slot . TYPE SYSTEM , Mech . SYSTEM GYRO , Mech . LOC CT ) > NUM ) && ( get Gyro Type ( ) != Mech . GYRO HEAVY DU...
public PilotingRollData checkLandingWithDamage ( EntityMovementType overallMoveType ) { PilotingRollData roll = getBasePilotingRoll ( overallMoveType ) ; if ( ( ( getBadCriticals ( CriticalSlot . TYPE_SYSTEM , Mech . SYSTEM_GYRO , Mech . LOC_CT ) > _NUM ) && ( getGyroType ( ) != Mech . GYRO_HEAVY_DUTY ) ) || ( ( getBad...
177
java-test-2912
java
How does the code run the given script ?
with command line arguments
public Object run ( final Reader in , final String file Name , List list ) throws Compilation Failed Exception { return run ( in , file Name , ( String [ ] ) list . to Array ( new String [ list . size ( ) ] ) ) ; }
public Object run ( final Reader in , final String fileName , List list ) throws CompilationFailedException { return run ( in , fileName , ( String [ ] ) list . toArray ( new String [ list . size ( ) ] ) ) ; }
52
java-test-2913
java
When do this use ?
before writing out a new version of the file
public void make Backup File ( String name ) { File file = find File ( name ) ; if ( file == null ) { log . info ( STRING + name + STRING ) ; } else if ( file . can Write ( ) ) { String backup Name = backup File Name ( file . get Absolute Path ( ) ) ; File backup File = find File ( backup Name ) ; if ( backup File != n...
public void makeBackupFile ( String name ) { File file = findFile ( name ) ; if ( file == null ) { log . info ( STRING + name + STRING ) ; } else if ( file . canWrite ( ) ) { String backupName = backupFileName ( file . getAbsolutePath ( ) ) ; File backupFile = findFile ( backupName ) ; if ( backupFile != null ) { if ( ...
149
java-test-2914
java
What does the code find ?
a range of unreserved rop registers
private int find Next Unreserved Rop Reg ( int start Reg , int width ) { int reg ; reg = reserved Rop Regs . next Clear Bit ( start Reg ) ; while ( BOOL ) { int i = NUM ; while ( i < width && ! reserved Rop Regs . get ( reg + i ) ) { i ++ ; } if ( i == width ) { return reg ; } reg = reserved Rop Regs . next Clear Bit (...
private int findNextUnreservedRopReg ( int startReg , int width ) { int reg ; reg = reservedRopRegs . nextClearBit ( startReg ) ; while ( _BOOL ) { int i = _NUM ; while ( i < width && ! reservedRopRegs . get ( reg + i ) ) { i ++ ; } if ( i == width ) { return reg ; } reg = reservedRopRegs . nextClearBit ( reg + i ) ; }...
94
java-test-2915
java
How are % ' , ' \ ' , and encoded where ' xx ' is the hexadecimal encoding of the byte ?
as three chars in ' % xx ' format
public static String byte Array To Json String ( byte [ ] bytes ) { String Builder sb = new String Builder ( bytes . length * NUM ) ; for ( byte b : bytes ) { if ( b >= NUM && b < NUM ) { char c = ( char ) b ; if ( c != STRING && c != STRING && c != STRING ) { sb . append ( c ) ; continue ; } } sb . append ( String . f...
public static String byteArrayToJsonString ( byte [ ] bytes ) { StringBuilder sb = new StringBuilder ( bytes . length * _NUM ) ; for ( byte b : bytes ) { if ( b >= _NUM && b < _NUM ) { char c = ( char ) b ; if ( c != STRING && c != STRING && c != STRING ) { sb . append ( c ) ; continue ; } } sb . append ( String . form...
107
java-test-2916
java
What are encoded where ' xx ' is the hexadecimal encoding of the byte ?
% ' , ' \ ' , and
public static String byte Array To Json String ( byte [ ] bytes ) { String Builder sb = new String Builder ( bytes . length * NUM ) ; for ( byte b : bytes ) { if ( b >= NUM && b < NUM ) { char c = ( char ) b ; if ( c != STRING && c != STRING && c != STRING ) { sb . append ( c ) ; continue ; } } sb . append ( String . f...
public static String byteArrayToJsonString ( byte [ ] bytes ) { StringBuilder sb = new StringBuilder ( bytes . length * _NUM ) ; for ( byte b : bytes ) { if ( b >= _NUM && b < _NUM ) { char c = ( char ) b ; if ( c != STRING && c != STRING && c != STRING ) { sb . append ( c ) ; continue ; } } sb . append ( String . form...
107
java-test-2917
java
Where are % ' , ' \ ' , and encoded as three chars in ' % xx ' format ?
where ' xx ' is the hexadecimal encoding of the byte
public static String byte Array To Json String ( byte [ ] bytes ) { String Builder sb = new String Builder ( bytes . length * NUM ) ; for ( byte b : bytes ) { if ( b >= NUM && b < NUM ) { char c = ( char ) b ; if ( c != STRING && c != STRING && c != STRING ) { sb . append ( c ) ; continue ; } } sb . append ( String . f...
public static String byteArrayToJsonString ( byte [ ] bytes ) { StringBuilder sb = new StringBuilder ( bytes . length * _NUM ) ; for ( byte b : bytes ) { if ( b >= _NUM && b < _NUM ) { char c = ( char ) b ; if ( c != STRING && c != STRING && c != STRING ) { sb . append ( c ) ; continue ; } } sb . append ( String . form...
107
java-test-2918
java
Where is xx the hexadecimal encoding of the byte ?
' % xx ' format
public static String byte Array To Json String ( byte [ ] bytes ) { String Builder sb = new String Builder ( bytes . length * NUM ) ; for ( byte b : bytes ) { if ( b >= NUM && b < NUM ) { char c = ( char ) b ; if ( c != STRING && c != STRING && c != STRING ) { sb . append ( c ) ; continue ; } } sb . append ( String . f...
public static String byteArrayToJsonString ( byte [ ] bytes ) { StringBuilder sb = new StringBuilder ( bytes . length * _NUM ) ; for ( byte b : bytes ) { if ( b >= _NUM && b < _NUM ) { char c = ( char ) b ; if ( c != STRING && c != STRING && c != STRING ) { sb . append ( c ) ; continue ; } } sb . append ( String . form...
107
java-test-2919
java
What marks at the current cursor position ?
the entry for a new text style
private void on Format Button Click ( Toggle Button toggle Button , String tag ) { Spannable s = m Content Edit Text . get Text ( ) ; if ( s == null ) return ; int selection Start = m Content Edit Text . get Selection Start ( ) ; m Style Start = selection Start ; int selection End = m Content Edit Text . get Selection ...
private void onFormatButtonClick ( ToggleButton toggleButton , String tag ) { Spannable s = mContentEditText . getText ( ) ; if ( s == null ) return ; int selectionStart = mContentEditText . getSelectionStart ( ) ; mStyleStart = selectionStart ; int selectionEnd = mContentEditText . getSelectionEnd ( ) ; if ( selection...
841
java-test-2920
java
Where does the entry for a new text style mark ?
at the current cursor position
private void on Format Button Click ( Toggle Button toggle Button , String tag ) { Spannable s = m Content Edit Text . get Text ( ) ; if ( s == null ) return ; int selection Start = m Content Edit Text . get Selection Start ( ) ; m Style Start = selection Start ; int selection End = m Content Edit Text . get Selection ...
private void onFormatButtonClick ( ToggleButton toggleButton , String tag ) { Spannable s = mContentEditText . getText ( ) ; if ( s == null ) return ; int selectionStart = mContentEditText . getSelectionStart ( ) ; mStyleStart = selectionStart ; int selectionEnd = mContentEditText . getSelectionEnd ( ) ; if ( selection...
841
java-test-2921
java
What does the code read ?
a ' trees ' block
private Tree [ ] read Trees Block ( Taxon List taxon List , boolean use Taxon List Numbering ) throws Import Exception , IO Exception { Array List < Tree > trees = new Array List < Tree > ( ) ; String [ ] last Token = new String [ NUM ] ; Hash Map < String , Taxon > translation List = read Translation List ( taxon List...
private Tree [ ] readTreesBlock ( TaxonList taxonList , boolean useTaxonListNumbering ) throws ImportException , IOException { ArrayList < Tree > trees = new ArrayList < Tree > ( ) ; String [ ] lastToken = new String [ _NUM ] ; HashMap < String , Taxon > translationList = readTranslationList ( taxonList , lastToken ) ;...
192
java-test-2922
java
What do we aren ?
that smart in that we ignore the singleswf property of the breakpoint meaning that if you have a breakpoint set on a single swf , it will be restored across all swfs
void reapply Breakpoints ( ) { int count = breakpoint Count ( ) ; for ( int i = NUM ; i < count ; i ++ ) { Break Action a = breakpoint At ( i ) ; a . clear Hits ( ) ; a . set Status ( Break Action . UNRESOLVED ) ; } String Builder sb = new String Builder ( ) ; resolve Breakpoints ( sb ) ; out ( sb . to String ( ) ) ; }
void reapplyBreakpoints ( ) { int count = breakpointCount ( ) ; for ( int i = _NUM ; i < count ; i ++ ) { BreakAction a = breakpointAt ( i ) ; a . clearHits ( ) ; a . setStatus ( BreakAction . UNRESOLVED ) ; } StringBuilder sb = new StringBuilder ( ) ; resolveBreakpoints ( sb ) ; out ( sb . toString ( ) ) ; }
85
java-test-2923
java
What does an algorithm ( like training change extensively ?
the polarity of the synapses in this group
public void revalidate Synapse Sets ( ) { Iterator < Synapse > ex Iterator = ex Synapse Set . iterator ( ) ; Array List < Synapse > ex Switches = new Array List < Synapse > ( ex Synapse Set . size ( ) ) ; while ( ex Iterator . has Next ( ) ) { Synapse s = ex Iterator . next ( ) ; if ( s . get Strength ( ) < NUM ) { ex ...
public void revalidateSynapseSets ( ) { Iterator < Synapse > exIterator = exSynapseSet . iterator ( ) ; ArrayList < Synapse > exSwitches = new ArrayList < Synapse > ( exSynapseSet . size ( ) ) ; while ( exIterator . hasNext ( ) ) { Synapse s = exIterator . next ( ) ; if ( s . getStrength ( ) < _NUM ) { exSwitches . add...
229
java-test-2924
java
When can this method be called to sort synapses into their appropriate sets thus ?
after the bulk of the algorithm is completed
public void revalidate Synapse Sets ( ) { Iterator < Synapse > ex Iterator = ex Synapse Set . iterator ( ) ; Array List < Synapse > ex Switches = new Array List < Synapse > ( ex Synapse Set . size ( ) ) ; while ( ex Iterator . has Next ( ) ) { Synapse s = ex Iterator . next ( ) ; if ( s . get Strength ( ) < NUM ) { ex ...
public void revalidateSynapseSets ( ) { Iterator < Synapse > exIterator = exSynapseSet . iterator ( ) ; ArrayList < Synapse > exSwitches = new ArrayList < Synapse > ( exSynapseSet . size ( ) ) ; while ( exIterator . hasNext ( ) ) { Synapse s = exIterator . next ( ) ; if ( s . getStrength ( ) < _NUM ) { exSwitches . add...
229
java-test-2925
java
What did this method sort ?
synapses
public void revalidate Synapse Sets ( ) { Iterator < Synapse > ex Iterator = ex Synapse Set . iterator ( ) ; Array List < Synapse > ex Switches = new Array List < Synapse > ( ex Synapse Set . size ( ) ) ; while ( ex Iterator . has Next ( ) ) { Synapse s = ex Iterator . next ( ) ; if ( s . get Strength ( ) < NUM ) { ex ...
public void revalidateSynapseSets ( ) { Iterator < Synapse > exIterator = exSynapseSet . iterator ( ) ; ArrayList < Synapse > exSwitches = new ArrayList < Synapse > ( exSynapseSet . size ( ) ) ; while ( exIterator . hasNext ( ) ) { Synapse s = exIterator . next ( ) ; if ( s . getStrength ( ) < _NUM ) { exSwitches . add...
229
java-test-2926
java
What changes the polarity of the synapses in this group extensively ?
an algorithm ( like training
public void revalidate Synapse Sets ( ) { Iterator < Synapse > ex Iterator = ex Synapse Set . iterator ( ) ; Array List < Synapse > ex Switches = new Array List < Synapse > ( ex Synapse Set . size ( ) ) ; while ( ex Iterator . has Next ( ) ) { Synapse s = ex Iterator . next ( ) ; if ( s . get Strength ( ) < NUM ) { ex ...
public void revalidateSynapseSets ( ) { Iterator < Synapse > exIterator = exSynapseSet . iterator ( ) ; ArrayList < Synapse > exSwitches = new ArrayList < Synapse > ( exSynapseSet . size ( ) ) ; while ( exIterator . hasNext ( ) ) { Synapse s = exIterator . next ( ) ; if ( s . getStrength ( ) < _NUM ) { exSwitches . add...
229
java-test-2927
java
What can this method be called thus after the bulk of the algorithm is completed ?
to sort synapses into their appropriate sets
public void revalidate Synapse Sets ( ) { Iterator < Synapse > ex Iterator = ex Synapse Set . iterator ( ) ; Array List < Synapse > ex Switches = new Array List < Synapse > ( ex Synapse Set . size ( ) ) ; while ( ex Iterator . has Next ( ) ) { Synapse s = ex Iterator . next ( ) ; if ( s . get Strength ( ) < NUM ) { ex ...
public void revalidateSynapseSets ( ) { Iterator < Synapse > exIterator = exSynapseSet . iterator ( ) ; ArrayList < Synapse > exSwitches = new ArrayList < Synapse > ( exSynapseSet . size ( ) ) ; while ( exIterator . hasNext ( ) ) { Synapse s = exIterator . next ( ) ; if ( s . getStrength ( ) < _NUM ) { exSwitches . add...
229