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-8271
java
What has exit restrictions on some kayer ?
this pin
public boolean has trace exit restrictions ( ) { for ( int index = first layer ( ) ; index <= last layer ( ) ; ++ index ) { Collection < Brd Trace Exit Restriction > curr exit restrictions = get trace exit restrictions ( index ) ; if ( curr exit restrictions . size ( ) > NUM ) return BOOL ; } return BOOL ; }
public boolean has_trace_exit_restrictions ( ) { for ( int index = first_layer ( ) ; index <= last_layer ( ) ; ++ index ) { Collection < BrdTraceExitRestriction > curr_exit_restrictions = get_trace_exit_restrictions ( index ) ; if ( curr_exit_restrictions . size ( ) > _NUM ) return _BOOL ; } return _BOOL ; }
69
java-test-8276
java
What did characters write ?
the resulting , possibly escaped , characters to out
protected static void write Quoted String Value ( Byte Array Output Stream out , byte [ ] buf ) { int len = buf . length ; byte ch ; for ( int i = NUM ; i < len ; i ++ ) { ch = buf [ i ] ; if ( need Escape ( ( char ) ch ) ) { out . write ( STRING ) ; } out . write ( ch ) ; } }
protected static void writeQuotedStringValue ( ByteArrayOutputStream out , byte [ ] buf ) { int len = buf . length ; byte ch ; for ( int i = _NUM ; i < len ; i ++ ) { ch = buf [ i ] ; if ( needEscape ( ( char ) ch ) ) { out . write ( STRING ) ; } out . write ( ch ) ; } }
81
java-test-8277
java
What does a byte [ ] contain ?
characters that must be quoted and write the resulting , possibly escaped , characters to out
protected static void write Quoted String Value ( Byte Array Output Stream out , byte [ ] buf ) { int len = buf . length ; byte ch ; for ( int i = NUM ; i < len ; i ++ ) { ch = buf [ i ] ; if ( need Escape ( ( char ) ch ) ) { out . write ( STRING ) ; } out . write ( ch ) ; } }
protected static void writeQuotedStringValue ( ByteArrayOutputStream out , byte [ ] buf ) { int len = buf . length ; byte ch ; for ( int i = _NUM ; i < len ; i ++ ) { ch = buf [ i ] ; if ( needEscape ( ( char ) ch ) ) { out . write ( STRING ) ; } out . write ( ch ) ; } }
81
java-test-8278
java
What is matching some information ?
decoders
public List < Decoder File > matching Decoder List ( String mfg , String family , String decoder Mfg ID , String decoder Version ID , String decoder Product ID , String model , String developer ID ) { List < Decoder File > l = new Array List < Decoder File > ( ) ; for ( int i = NUM ; i < num Decoders ( ) ; i ++ ) { if ...
public List < DecoderFile > matchingDecoderList ( String mfg , String family , String decoderMfgID , String decoderVersionID , String decoderProductID , String model , String developerID ) { List < DecoderFile > l = new ArrayList < DecoderFile > ( ) ; for ( int i = _NUM ; i < numDecoders ( ) ; i ++ ) { if ( checkEntry ...
123
java-test-8279
java
What does the code get ?
a list of decoders matching some information
public List < Decoder File > matching Decoder List ( String mfg , String family , String decoder Mfg ID , String decoder Version ID , String decoder Product ID , String model , String developer ID ) { List < Decoder File > l = new Array List < Decoder File > ( ) ; for ( int i = NUM ; i < num Decoders ( ) ; i ++ ) { if ...
public List < DecoderFile > matchingDecoderList ( String mfg , String family , String decoderMfgID , String decoderVersionID , String decoderProductID , String model , String developerID ) { List < DecoderFile > l = new ArrayList < DecoderFile > ( ) ; for ( int i = _NUM ; i < numDecoders ( ) ; i ++ ) { if ( checkEntry ...
123
java-test-8280
java
How do a properties file store ?
as a resource configuration
public synchronized void store Resource Config ( String cluster Name , Resource Type resource Type , Tungsten Properties resource Props ) throws Configuration Exception { if ( get Cluster Home ( ) == null ) { throw new Configuration Exception ( STRING + get Module Properties File Name ( Configuration Constants . TR PRO...
public synchronized void storeResourceConfig ( String clusterName , ResourceType resourceType , TungstenProperties resourceProps ) throws ConfigurationException { if ( getClusterHome ( ) == null ) { throw new ConfigurationException ( STRING + getModulePropertiesFileName ( ConfigurationConstants . TR_PROPERTIES , getClu...
220
java-test-8281
java
What does the code find ?
all object elements that match the filter criteria
public static < T > List < T > find All ( final Collection < T > collection , final Filter < T > filter ) { final List < T > matches = new Array List < T > ( collection . size ( ) ) ; for ( final T element : collection ) { if ( filter . accept ( element ) ) { matches . add ( element ) ; } } return matches ; }
public static < T > List < T > findAll ( final Collection < T > collection , final Filter < T > filter ) { final List < T > matches = new ArrayList < T > ( collection . size ( ) ) ; for ( final T element : collection ) { if ( filter . accept ( element ) ) { matches . add ( element ) ; } } return matches ; }
80
java-test-8282
java
When does an image draw in nonblocking mode in nonblocking mode ?
at x , y
public boolean draw Image ( Image img , int x , int y , Color bg , Image Observer observer ) { if ( img == null ) { return BOOL ; } if ( is Hi DPI Image ( img ) ) { final int img W = img . get Width ( null ) ; final int img H = img . get Height ( null ) ; return draw Hi DPI Image ( img , x , y , x + img W , y + img H ,...
public boolean drawImage ( Image img , int x , int y , Color bg , ImageObserver observer ) { if ( img == null ) { return _BOOL ; } if ( isHiDPIImage ( img ) ) { final int imgW = img . getWidth ( null ) ; final int imgH = img . getHeight ( null ) ; return drawHiDPIImage ( img , x , y , x + imgW , y + imgH , _NUM , _NUM ...
190
java-test-8284
java
For what purpose does the calendaralerts table search ?
for alarms that should have fired
private static final void reschedule Missed Alarms ( Content Resolver cr , Context context , Alarm Manager Interface manager ) { long now = System . current Time Millis ( ) ; long ancient = now - Date Utils . DAY IN MILLIS ; String [ ] projection = new String [ ] { Calendar Contract . Calendar Alerts . ALARM TIME } ; i...
private static final void rescheduleMissedAlarms ( ContentResolver cr , Context context , AlarmManagerInterface manager ) { long now = System . currentTimeMillis ( ) ; long ancient = now - DateUtils . DAY_IN_MILLIS ; String [ ] projection = new String [ ] { CalendarContract . CalendarAlerts . ALARM_TIME } ; if ( Build ...
298
java-test-8285
java
For what purpose can this method be called at boot time ?
to restore alarms that may have been lost due to a phone reboot
private static final void reschedule Missed Alarms ( Content Resolver cr , Context context , Alarm Manager Interface manager ) { long now = System . current Time Millis ( ) ; long ancient = now - Date Utils . DAY IN MILLIS ; String [ ] projection = new String [ ] { Calendar Contract . Calendar Alerts . ALARM TIME } ; i...
private static final void rescheduleMissedAlarms ( ContentResolver cr , Context context , AlarmManagerInterface manager ) { long now = System . currentTimeMillis ( ) ; long ancient = now - DateUtils . DAY_IN_MILLIS ; String [ ] projection = new String [ ] { CalendarContract . CalendarAlerts . ALARM_TIME } ; if ( Build ...
298
java-test-8286
java
Why may alarms have been lost ?
due to a phone reboot
private static final void reschedule Missed Alarms ( Content Resolver cr , Context context , Alarm Manager Interface manager ) { long now = System . current Time Millis ( ) ; long ancient = now - Date Utils . DAY IN MILLIS ; String [ ] projection = new String [ ] { Calendar Contract . Calendar Alerts . ALARM TIME } ; i...
private static final void rescheduleMissedAlarms ( ContentResolver cr , Context context , AlarmManagerInterface manager ) { long now = System . currentTimeMillis ( ) ; long ancient = now - DateUtils . DAY_IN_MILLIS ; String [ ] projection = new String [ ] { CalendarContract . CalendarAlerts . ALARM_TIME } ; if ( Build ...
298
java-test-8288
java
What does the code allow ?
this closeable to be used within the closure
public static < T , U extends Closeable > T with Closeable ( U self , @ Closure Params ( value = First Param . class ) Closure < T > action ) throws IO Exception { try { T result = action . call ( self ) ; Closeable temp = self ; self = null ; temp . close ( ) ; return result ; } finally { Default Groovy Methods Suppor...
public static < T , U extends Closeable > T withCloseable ( U self , @ ClosureParams ( value = FirstParam . class ) Closure < T > action ) throws IOException { try { T result = action . call ( self ) ; Closeable temp = self ; self = null ; temp . close ( ) ; return result ; } finally { DefaultGroovyMethodsSupport . clo...
84
java-test-8289
java
What be used within the closure ?
this closeable
public static < T , U extends Closeable > T with Closeable ( U self , @ Closure Params ( value = First Param . class ) Closure < T > action ) throws IO Exception { try { T result = action . call ( self ) ; Closeable temp = self ; self = null ; temp . close ( ) ; return result ; } finally { Default Groovy Methods Suppor...
public static < T , U extends Closeable > T withCloseable ( U self , @ ClosureParams ( value = FirstParam . class ) Closure < T > action ) throws IOException { try { T result = action . call ( self ) ; Closeable temp = self ; self = null ; temp . close ( ) ; return result ; } finally { DefaultGroovyMethodsSupport . clo...
84
java-test-8290
java
What is the code determine given a configuration ?
what the general encryption key is
private byte [ ] calculate General Encryption Key ( byte [ ] user Password , byte [ ] first Doc Id Value , int key Bit Length , int revision , byte [ ] o Value , int p Value , boolean encrypt Metadata ) throws General Security Exception { final byte [ ] padded Password = pad Password ( user Password ) ; Message Digest ...
private byte [ ] calculateGeneralEncryptionKey ( byte [ ] userPassword , byte [ ] firstDocIdValue , int keyBitLength , int revision , byte [ ] oValue , int pValue , boolean encryptMetadata ) throws GeneralSecurityException { final byte [ ] paddedPassword = padPassword ( userPassword ) ; MessageDigest md5 = createMD5Dig...
349
java-test-8291
java
What is what ?
the general encryption key
private byte [ ] calculate General Encryption Key ( byte [ ] user Password , byte [ ] first Doc Id Value , int key Bit Length , int revision , byte [ ] o Value , int p Value , boolean encrypt Metadata ) throws General Security Exception { final byte [ ] padded Password = pad Password ( user Password ) ; Message Digest ...
private byte [ ] calculateGeneralEncryptionKey ( byte [ ] userPassword , byte [ ] firstDocIdValue , int keyBitLength , int revision , byte [ ] oValue , int pValue , boolean encryptMetadata ) throws GeneralSecurityException { final byte [ ] paddedPassword = padPassword ( userPassword ) ; MessageDigest md5 = createMD5Dig...
349
java-test-8292
java
What is interpreting the contents of a tag incorrectly ?
a media player
public static byte [ ] unsynchronize ( byte [ ] aby Source ) { Byte Array Input Stream input = new Byte Array Input Stream ( aby Source ) ; Byte Array Output Stream output = new Byte Array Output Stream ( aby Source . length ) ; int count = NUM ; while ( input . available ( ) > NUM ) { int first Byte = input . read ( )...
public static byte [ ] unsynchronize ( byte [ ] abySource ) { ByteArrayInputStream input = new ByteArrayInputStream ( abySource ) ; ByteArrayOutputStream output = new ByteArrayOutputStream ( abySource . length ) ; int count = _NUM ; while ( input . available ( ) > _NUM ) { int firstByte = input . read ( ) ; count ++ ; ...
298
java-test-8293
java
For what purpose has the decision been made already ?
to unsynchronize the byte array
public static byte [ ] unsynchronize ( byte [ ] aby Source ) { Byte Array Input Stream input = new Byte Array Input Stream ( aby Source ) ; Byte Array Output Stream output = new Byte Array Output Stream ( aby Source . length ) ; int count = NUM ; while ( input . available ( ) > NUM ) { int first Byte = input . read ( )...
public static byte [ ] unsynchronize ( byte [ ] abySource ) { ByteArrayInputStream input = new ByteArrayInputStream ( abySource ) ; ByteArrayOutputStream output = new ByteArrayOutputStream ( abySource . length ) ; int count = _NUM ; while ( input . available ( ) > _NUM ) { int firstByte = input . read ( ) ; count ++ ; ...
298
java-test-8294
java
What do they share ?
a synset or a concept
public boolean similar To ( Object o ) { if ( o == null ) { return BOOL ; } if ( ! ( o instanceof Semantic Concept ) ) { return BOOL ; } Semantic Concept other Concept = ( Semantic Concept ) o ; Hash Set < Integer > synset intersection = new Hash Set < Integer > ( this . synsets ) ; synset intersection . retain All ( o...
public boolean similarTo ( Object o ) { if ( o == null ) { return _BOOL ; } if ( ! ( o instanceof SemanticConcept ) ) { return _BOOL ; } SemanticConcept otherConcept = ( SemanticConcept ) o ; HashSet < Integer > synset_intersection = new HashSet < Integer > ( this . synsets ) ; synset_intersection . retainAll ( otherCo...
137
java-test-8295
java
What does the code create ?
a component manager , initially populated with the given sequences , which are considered seed sequences
public Component Manager ( Collection < Sequence > general Seeds ) { Set < Sequence > seed Set = new Linked Hash Set < > ( general Seeds . size ( ) ) ; seed Set . add All ( general Seeds ) ; this . gral Seeds = Collections . unmodifiable Set ( seed Set ) ; gral Components = new Sequence Collection ( seed Set ) ; }
public ComponentManager ( Collection < Sequence > generalSeeds ) { Set < Sequence > seedSet = new LinkedHashSet < > ( generalSeeds . size ( ) ) ; seedSet . addAll ( generalSeeds ) ; this . gralSeeds = Collections . unmodifiableSet ( seedSet ) ; gralComponents = new SequenceCollection ( seedSet ) ; }
70
java-test-8296
java
What do we control on popups ?
event flow
public boolean grab Input ( ) { if ( grab Log . is Loggable ( Platform Logger . Level . FINE ) ) { grab Log . fine ( STRING , this ) ; } X Toolkit . awt Lock ( ) ; try { if ( X Awt State . get Grab Window ( ) == this && X Awt State . is Manual Grab ( ) ) { grab Log . fine ( STRING ) ; return BOOL ; } X Base Window prev...
public boolean grabInput ( ) { if ( grabLog . isLoggable ( PlatformLogger . Level . FINE ) ) { grabLog . fine ( STRING , this ) ; } XToolkit . awtLock ( ) ; try { if ( XAwtState . getGrabWindow ( ) == this && XAwtState . isManualGrab ( ) ) { grabLog . fine ( STRING ) ; return _BOOL ; } XBaseWindow prevGrabWindow = XAwt...
491
java-test-8297
java
For what purpose should we grab both keyboard and pointer always ?
to control event flow on popups
public boolean grab Input ( ) { if ( grab Log . is Loggable ( Platform Logger . Level . FINE ) ) { grab Log . fine ( STRING , this ) ; } X Toolkit . awt Lock ( ) ; try { if ( X Awt State . get Grab Window ( ) == this && X Awt State . is Manual Grab ( ) ) { grab Log . fine ( STRING ) ; return BOOL ; } X Base Window prev...
public boolean grabInput ( ) { if ( grabLog . isLoggable ( PlatformLogger . Level . FINE ) ) { grabLog . fine ( STRING , this ) ; } XToolkit . awtLock ( ) ; try { if ( XAwtState . getGrabWindow ( ) == this && XAwtState . isManualGrab ( ) ) { grabLog . fine ( STRING ) ; return _BOOL ; } XBaseWindow prevGrabWindow = XAwt...
491
java-test-8298
java
Where do we control event flow ?
on popups
public boolean grab Input ( ) { if ( grab Log . is Loggable ( Platform Logger . Level . FINE ) ) { grab Log . fine ( STRING , this ) ; } X Toolkit . awt Lock ( ) ; try { if ( X Awt State . get Grab Window ( ) == this && X Awt State . is Manual Grab ( ) ) { grab Log . fine ( STRING ) ; return BOOL ; } X Base Window prev...
public boolean grabInput ( ) { if ( grabLog . isLoggable ( PlatformLogger . Level . FINE ) ) { grabLog . fine ( STRING , this ) ; } XToolkit . awtLock ( ) ; try { if ( XAwtState . getGrabWindow ( ) == this && XAwtState . isManualGrab ( ) ) { grabLog . fine ( STRING ) ; return _BOOL ; } XBaseWindow prevGrabWindow = XAwt...
491
java-test-8299
java
What do this simplify also ?
synthetic grab implementation
public boolean grab Input ( ) { if ( grab Log . is Loggable ( Platform Logger . Level . FINE ) ) { grab Log . fine ( STRING , this ) ; } X Toolkit . awt Lock ( ) ; try { if ( X Awt State . get Grab Window ( ) == this && X Awt State . is Manual Grab ( ) ) { grab Log . fine ( STRING ) ; return BOOL ; } X Base Window prev...
public boolean grabInput ( ) { if ( grabLog . isLoggable ( PlatformLogger . Level . FINE ) ) { grabLog . fine ( STRING , this ) ; } XToolkit . awtLock ( ) ; try { if ( XAwtState . getGrabWindow ( ) == this && XAwtState . isManualGrab ( ) ) { grabLog . fine ( STRING ) ; return _BOOL ; } XBaseWindow prevGrabWindow = XAwt...
491
java-test-8300
java
What should we grab to control event flow on popups always ?
both keyboard and pointer
public boolean grab Input ( ) { if ( grab Log . is Loggable ( Platform Logger . Level . FINE ) ) { grab Log . fine ( STRING , this ) ; } X Toolkit . awt Lock ( ) ; try { if ( X Awt State . get Grab Window ( ) == this && X Awt State . is Manual Grab ( ) ) { grab Log . fine ( STRING ) ; return BOOL ; } X Base Window prev...
public boolean grabInput ( ) { if ( grabLog . isLoggable ( PlatformLogger . Level . FINE ) ) { grabLog . fine ( STRING , this ) ; } XToolkit . awtLock ( ) ; try { if ( XAwtState . getGrabWindow ( ) == this && XAwtState . isManualGrab ( ) ) { grabLog . fine ( STRING ) ; return _BOOL ; } XBaseWindow prevGrabWindow = XAwt...
491
java-test-8301
java
How do lun modify ?
in async mode
public VN Xe Command Job modify Lun Async ( Lun Modify Param param , String resource Id ) { String Builder url Bld = new String Builder ( URL RESOURCE ) ; url Bld . append ( resource Id ) ; url Bld . append ( URL LUN MODIFY ACTION ) ; url = url Bld . to String ( ) ; return post Request Async ( param ) ; }
public VNXeCommandJob modifyLunAsync ( LunModifyParam param , String resourceId ) { StringBuilder urlBld = new StringBuilder ( URL_RESOURCE ) ; urlBld . append ( resourceId ) ; urlBld . append ( URL_LUN_MODIFY_ACTION ) ; _url = urlBld . toString ( ) ; return postRequestAsync ( param ) ; }
71
java-test-8302
java
When did the code call ?
when the playback service starts
public void on Start ( ) { if ( m Audio Mirror Buffer == null ) { m Audio Mirror Buffer = new byte [ NUM ] ; } if ( m Streamer != null ) { m Streamer . start ( ) ; } if ( m Insecure Streamer != null ) { m Insecure Streamer . start ( ) ; } }
public void onStart ( ) { if ( mAudioMirrorBuffer == null ) { mAudioMirrorBuffer = new byte [ _NUM ] ; } if ( mStreamer != null ) { mStreamer . start ( ) ; } if ( mInsecureStreamer != null ) { mInsecureStreamer . start ( ) ; } }
64
java-test-8303
java
How does the test scan the statement indices ?
in some order
public void do Stress Test ( Temp Triple Store tmp , Inference Engine inf , int ntrials , int D , int N ) { Abstract Triple Store store = inf . database ; assert Same Graphs ( tmp , store ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retract And Assert ( inf , store ...
public void doStressTest ( TempTripleStore tmp , InferenceEngine inf , int ntrials , int D , int N ) { AbstractTripleStore store = inf . database ; assertSameGraphs ( tmp , store ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retractAndAssert ( inf , store , _NUM , D...
102
java-test-8304
java
What do we write ?
other tests for that
public void do Stress Test ( Temp Triple Store tmp , Inference Engine inf , int ntrials , int D , int N ) { Abstract Triple Store store = inf . database ; assert Same Graphs ( tmp , store ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retract And Assert ( inf , store ...
public void doStressTest ( TempTripleStore tmp , InferenceEngine inf , int ntrials , int D , int N ) { AbstractTripleStore store = inf . database ; assertSameGraphs ( tmp , store ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retractAndAssert ( inf , store , _NUM , D...
102
java-test-8305
java
When do we do multiple retractions potentially ?
before we back out of them
public void do Stress Test ( Temp Triple Store tmp , Inference Engine inf , int ntrials , int D , int N ) { Abstract Triple Store store = inf . database ; assert Same Graphs ( tmp , store ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retract And Assert ( inf , store ...
public void doStressTest ( TempTripleStore tmp , InferenceEngine inf , int ntrials , int D , int N ) { AbstractTripleStore store = inf . database ; assertSameGraphs ( tmp , store ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retractAndAssert ( inf , store , _NUM , D...
102
java-test-8306
java
What does this test not guarentee by itself ?
that any entailments of those explicit statements were removed
public void do Stress Test ( Temp Triple Store tmp , Inference Engine inf , int ntrials , int D , int N ) { Abstract Triple Store store = inf . database ; assert Same Graphs ( tmp , store ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retract And Assert ( inf , store ...
public void doStressTest ( TempTripleStore tmp , InferenceEngine inf , int ntrials , int D , int N ) { AbstractTripleStore store = inf . database ; assertSameGraphs ( tmp , store ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retractAndAssert ( inf , store , _NUM , D...
102
java-test-8307
java
What does the test select to retract ?
n explicit statement
public void do Stress Test ( Temp Triple Store tmp , Inference Engine inf , int ntrials , int D , int N ) { Abstract Triple Store store = inf . database ; assert Same Graphs ( tmp , store ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retract And Assert ( inf , store ...
public void doStressTest ( TempTripleStore tmp , InferenceEngine inf , int ntrials , int D , int N ) { AbstractTripleStore store = inf . database ; assertSameGraphs ( tmp , store ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retractAndAssert ( inf , store , _NUM , D...
102
java-test-8308
java
How did data set ?
arbitrary
public void do Stress Test ( Temp Triple Store tmp , Inference Engine inf , int ntrials , int D , int N ) { Abstract Triple Store store = inf . database ; assert Same Graphs ( tmp , store ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retract And Assert ( inf , store ...
public void doStressTest ( TempTripleStore tmp , InferenceEngine inf , int ntrials , int D , int N ) { AbstractTripleStore store = inf . database ; assertSameGraphs ( tmp , store ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retractAndAssert ( inf , store , _NUM , D...
102
java-test-8309
java
What does the test scan in some order ?
the statement indices
public void do Stress Test ( Temp Triple Store tmp , Inference Engine inf , int ntrials , int D , int N ) { Abstract Triple Store store = inf . database ; assert Same Graphs ( tmp , store ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retract And Assert ( inf , store ...
public void doStressTest ( TempTripleStore tmp , InferenceEngine inf , int ntrials , int D , int N ) { AbstractTripleStore store = inf . database ; assertSameGraphs ( tmp , store ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retractAndAssert ( inf , store , _NUM , D...
102
java-test-8310
java
What do we do potentially before we back out of them ?
multiple retractions
public void do Stress Test ( Temp Triple Store tmp , Inference Engine inf , int ntrials , int D , int N ) { Abstract Triple Store store = inf . database ; assert Same Graphs ( tmp , store ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retract And Assert ( inf , store ...
public void doStressTest ( TempTripleStore tmp , InferenceEngine inf , int ntrials , int D , int N ) { AbstractTripleStore store = inf . database ; assertSameGraphs ( tmp , store ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retractAndAssert ( inf , store , _NUM , D...
102
java-test-8311
java
What does we need ?
to write other tests for that
public void do Stress Test ( Temp Triple Store tmp , Inference Engine inf , int ntrials , int D , int N ) { Abstract Triple Store store = inf . database ; assert Same Graphs ( tmp , store ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retract And Assert ( inf , store ...
public void doStressTest ( TempTripleStore tmp , InferenceEngine inf , int ntrials , int D , int N ) { AbstractTripleStore store = inf . database ; assertSameGraphs ( tmp , store ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { MDC . put ( STRING , STRING + trial ) ; retractAndAssert ( inf , store , _NUM , D...
102
java-test-8312
java
How does the code surround the string if such missing from string ?
with provided prefix and suffix
public static String surround ( String string , String prefix , String suffix ) { if ( string . starts With ( prefix ) == BOOL ) { string = prefix + string ; } if ( string . ends With ( suffix ) == BOOL ) { string += suffix ; } return string ; }
public static String surround ( String string , String prefix , String suffix ) { if ( string . startsWith ( prefix ) == _BOOL ) { string = prefix + string ; } if ( string . endsWith ( suffix ) == _BOOL ) { string += suffix ; } return string ; }
57
java-test-8313
java
How do such miss ?
from string
public static String surround ( String string , String prefix , String suffix ) { if ( string . starts With ( prefix ) == BOOL ) { string = prefix + string ; } if ( string . ends With ( suffix ) == BOOL ) { string += suffix ; } return string ; }
public static String surround ( String string , String prefix , String suffix ) { if ( string . startsWith ( prefix ) == _BOOL ) { string = prefix + string ; } if ( string . endsWith ( suffix ) == _BOOL ) { string += suffix ; } return string ; }
57
java-test-8314
java
For what purpose do a comma add after the year ?
to add a pause
private Array List < String > parse Json ( String text ) { text = text . substring ( text . index Of ( STRING ) + SIZE OF EVENTS , text . index Of ( STRING ) ) ; Array List < String > events = new Array List < String > ( ) ; if ( text . is Empty ( ) ) { return events ; } int start Index = NUM , end Index = NUM ; while ...
private ArrayList < String > parseJson ( String text ) { text = text . substring ( text . indexOf ( STRING ) + SIZE_OF_EVENTS , text . indexOf ( STRING ) ) ; ArrayList < String > events = new ArrayList < String > ( ) ; if ( text . isEmpty ( ) ) { return events ; } int startIndex = _NUM , endIndex = _NUM ; while ( endIn...
253
java-test-8315
java
What did the events split ?
into a string array of individual events
private Array List < String > parse Json ( String text ) { text = text . substring ( text . index Of ( STRING ) + SIZE OF EVENTS , text . index Of ( STRING ) ) ; Array List < String > events = new Array List < String > ( ) ; if ( text . is Empty ( ) ) { return events ; } int start Index = NUM , end Index = NUM ; while ...
private ArrayList < String > parseJson ( String text ) { text = text . substring ( text . indexOf ( STRING ) + SIZE_OF_EVENTS , text . indexOf ( STRING ) ) ; ArrayList < String > events = new ArrayList < String > ( ) ; if ( text . isEmpty ( ) ) { return events ; } int startIndex = _NUM , endIndex = _NUM ; while ( endIn...
253
java-test-8316
java
How do the list make ?
pretty by adding a comma after the year to add a pause , and by removing a unicode char
private Array List < String > parse Json ( String text ) { text = text . substring ( text . index Of ( STRING ) + SIZE OF EVENTS , text . index Of ( STRING ) ) ; Array List < String > events = new Array List < String > ( ) ; if ( text . is Empty ( ) ) { return events ; } int start Index = NUM , end Index = NUM ; while ...
private ArrayList < String > parseJson ( String text ) { text = text . substring ( text . indexOf ( STRING ) + SIZE_OF_EVENTS , text . indexOf ( STRING ) ) ; ArrayList < String > events = new ArrayList < String > ( ) ; if ( text . isEmpty ( ) ) { return events ; } int startIndex = _NUM , endIndex = _NUM ; while ( endIn...
253
java-test-8317
java
When do a comma add to add a pause ?
after the year
private Array List < String > parse Json ( String text ) { text = text . substring ( text . index Of ( STRING ) + SIZE OF EVENTS , text . index Of ( STRING ) ) ; Array List < String > events = new Array List < String > ( ) ; if ( text . is Empty ( ) ) { return events ; } int start Index = NUM , end Index = NUM ; while ...
private ArrayList < String > parseJson ( String text ) { text = text . substring ( text . indexOf ( STRING ) + SIZE_OF_EVENTS , text . indexOf ( STRING ) ) ; ArrayList < String > events = new ArrayList < String > ( ) ; if ( text . isEmpty ( ) ) { return events ; } int startIndex = _NUM , endIndex = _NUM ; while ( endIn...
253
java-test-8318
java
What do this method check ?
whether the given file or the file name of the file is valid . the method name parameter is used for debugging purposes , to output in which method an error has occurred
private boolean is File Valid ( File file , String method Name ) { if ( file == null ) { Log . print Concat Line ( name , STRING , method Name , STRING ) ; return BOOL ; } String file Name = file . get Name ( ) ; if ( file Name == null || file Name . length ( ) == NUM ) { Log . print Concat Line ( name , STRING + metho...
private boolean isFileValid ( File file , String methodName ) { if ( file == null ) { Log . printConcatLine ( name , STRING , methodName , STRING ) ; return _BOOL ; } String fileName = file . getName ( ) ; if ( fileName == null || fileName . length ( ) == _NUM ) { Log . printConcatLine ( name , STRING + methodName , ST...
93
java-test-8319
java
What do this have ?
no effect on the software it ' s here for logging purpose
private static void log Os Info ( ) { Logger . append Log ( STRING + Cfg . get Os ( ) ) ; Logger . append Log ( STRING + Os . get Os Name ( ) ) ; Logger . append Log ( STRING + Os . platform ( ) ) ; Logger . append Log ( STRING + System . get Property ( STRING ) ) ; Logger . append Log ( STRING + Host Info . available ...
private static void logOsInfo ( ) { Logger . appendLog ( STRING + Cfg . getOs ( ) ) ; Logger . appendLog ( STRING + Os . getOsName ( ) ) ; Logger . appendLog ( STRING + Os . platform ( ) ) ; Logger . appendLog ( STRING + System . getProperty ( STRING ) ) ; Logger . appendLog ( STRING + HostInfo . availableCpus ( ) ) ; ...
106
java-test-8320
java
What does it have so ?
this exact length
public static String trim Or Pad ( String str , int length , char pad Char ) { String result ; if ( str == null ) { result = STRING ; } else { result = str ; } if ( result . length ( ) > length ) { return result . substring ( NUM , length ) ; } while ( result . length ( ) < length ) { result += pad Char ; } return resu...
public static String trimOrPad ( String str , int length , char padChar ) { String result ; if ( str == null ) { result = STRING ; } else { result = str ; } if ( result . length ( ) > length ) { return result . substring ( _NUM , length ) ; } while ( result . length ( ) < length ) { result += padChar ; } return result ...
83
java-test-8321
java
Where is a list of points not contained ?
in another list of points
public static Coordinate pt Not In List ( Coordinate [ ] test Pts , Coordinate [ ] pts ) { for ( int i = NUM ; i < test Pts . length ; i ++ ) { Coordinate test Pt = test Pts [ i ] ; if ( ! is In List ( test Pt , pts ) ) return test Pt ; } return null ; }
public static Coordinate ptNotInList ( Coordinate [ ] testPts , Coordinate [ ] pts ) { for ( int i = _NUM ; i < testPts . length ; i ++ ) { Coordinate testPt = testPts [ i ] ; if ( ! isInList ( testPt , pts ) ) return testPt ; } return null ; }
70
java-test-8322
java
What does the code find ?
a point in a list of points which is not contained in another list of points
public static Coordinate pt Not In List ( Coordinate [ ] test Pts , Coordinate [ ] pts ) { for ( int i = NUM ; i < test Pts . length ; i ++ ) { Coordinate test Pt = test Pts [ i ] ; if ( ! is In List ( test Pt , pts ) ) return test Pt ; } return null ; }
public static Coordinate ptNotInList ( Coordinate [ ] testPts , Coordinate [ ] pts ) { for ( int i = _NUM ; i < testPts . length ; i ++ ) { Coordinate testPt = testPts [ i ] ; if ( ! isInList ( testPt , pts ) ) return testPt ; } return null ; }
70
java-test-8323
java
What is not contained in another list of points ?
a list of points
public static Coordinate pt Not In List ( Coordinate [ ] test Pts , Coordinate [ ] pts ) { for ( int i = NUM ; i < test Pts . length ; i ++ ) { Coordinate test Pt = test Pts [ i ] ; if ( ! is In List ( test Pt , pts ) ) return test Pt ; } return null ; }
public static Coordinate ptNotInList ( Coordinate [ ] testPts , Coordinate [ ] pts ) { for ( int i = _NUM ; i < testPts . length ; i ++ ) { Coordinate testPt = testPts [ i ] ; if ( ! isInList ( testPt , pts ) ) return testPt ; } return null ; }
70
java-test-8324
java
What does action group have ?
visible children
public static boolean has Visible Children ( Action Group group , Presentation Factory factory , Action Manager action Manager , Perspective Manager perspective Manager ) { Action Event event = new Action Event ( factory . get Presentation ( group ) , action Manager , perspective Manager ) ; for ( Action an Action : gr...
public static boolean hasVisibleChildren ( ActionGroup group , PresentationFactory factory , ActionManager actionManager , PerspectiveManager perspectiveManager ) { ActionEvent event = new ActionEvent ( factory . getPresentation ( group ) , actionManager , perspectiveManager ) ; for ( Action anAction : group . getChild...
232
java-test-8325
java
What has visible children ?
action group
public static boolean has Visible Children ( Action Group group , Presentation Factory factory , Action Manager action Manager , Perspective Manager perspective Manager ) { Action Event event = new Action Event ( factory . get Presentation ( group ) , action Manager , perspective Manager ) ; for ( Action an Action : gr...
public static boolean hasVisibleChildren ( ActionGroup group , PresentationFactory factory , ActionManager actionManager , PerspectiveManager perspectiveManager ) { ActionEvent event = new ActionEvent ( factory . getPresentation ( group ) , actionManager , perspectiveManager ) ; for ( Action anAction : group . getChild...
232
java-test-8326
java
What does the method take ?
a string for the servlet name and a string for the jsp file
public void test Add Servlet With Name And Jsp File ( ) throws Exception { String xml = WEBAPP TEST HEADER + STRING + STRING ; Web Xml web Xml = Web Xml Io . parse Web Xml ( new Byte Array Input Stream ( xml . get Bytes ( STRING ) ) , get Entity Resolver ( ) ) ; Web Xml Utils . add Jsp File ( web Xml , STRING , STRING ...
public void testAddServletWithNameAndJspFile ( ) throws Exception { String xml = WEBAPP_TEST_HEADER + STRING + STRING ; WebXml webXml = WebXmlIo . parseWebXml ( new ByteArrayInputStream ( xml . getBytes ( STRING ) ) , getEntityResolver ( ) ) ; WebXmlUtils . addJspFile ( webXml , STRING , STRING ) ; assertTrue ( WebXmlU...
95
java-test-8327
java
How can a single servlet be added ?
using the method that takes a string for the servlet name and a string for the jsp file
public void test Add Servlet With Name And Jsp File ( ) throws Exception { String xml = WEBAPP TEST HEADER + STRING + STRING ; Web Xml web Xml = Web Xml Io . parse Web Xml ( new Byte Array Input Stream ( xml . get Bytes ( STRING ) ) , get Entity Resolver ( ) ) ; Web Xml Utils . add Jsp File ( web Xml , STRING , STRING ...
public void testAddServletWithNameAndJspFile ( ) throws Exception { String xml = WEBAPP_TEST_HEADER + STRING + STRING ; WebXml webXml = WebXmlIo . parseWebXml ( new ByteArrayInputStream ( xml . getBytes ( STRING ) ) , getEntityResolver ( ) ) ; WebXmlUtils . addJspFile ( webXml , STRING , STRING ) ; assertTrue ( WebXmlU...
95
java-test-8329
java
What do it get if the prioritylistener is set automatically ?
the clicked event
public boolean fire Map Mouse Clicked ( Mouse Event evt ) { if ( DEBUG ) { logger . fine ( STRING ) ; } click Happened = BOOL ; boolean consumed = BOOL ; evt = new Map Mouse Event ( get Parent Mode ( ) , evt ) ; if ( priority Listener != null && evt . get Click Count ( ) > NUM ) { priority Listener . mouse Clicked ( ev...
public boolean fireMapMouseClicked ( MouseEvent evt ) { if ( DEBUG ) { logger . fine ( STRING ) ; } clickHappened = _BOOL ; boolean consumed = _BOOL ; evt = new MapMouseEvent ( getParentMode ( ) , evt ) ; if ( priorityListener != null && evt . getClickCount ( ) > _NUM ) { priorityListener . mouseClicked ( evt ) ; consu...
241
java-test-8330
java
How do the other listeners get a shot at the event if it is not set ?
according to the consumeevent mode
public boolean fire Map Mouse Clicked ( Mouse Event evt ) { if ( DEBUG ) { logger . fine ( STRING ) ; } click Happened = BOOL ; boolean consumed = BOOL ; evt = new Map Mouse Event ( get Parent Mode ( ) , evt ) ; if ( priority Listener != null && evt . get Click Count ( ) > NUM ) { priority Listener . mouse Clicked ( ev...
public boolean fireMapMouseClicked ( MouseEvent evt ) { if ( DEBUG ) { logger . fine ( STRING ) ; } clickHappened = _BOOL ; boolean consumed = _BOOL ; evt = new MapMouseEvent ( getParentMode ( ) , evt ) ; if ( priorityListener != null && evt . getClickCount ( ) > _NUM ) { priorityListener . mouseClicked ( evt ) ; consu...
241
java-test-8331
java
What does the code handle ?
a mouseclicked mouselistener event
public boolean fire Map Mouse Clicked ( Mouse Event evt ) { if ( DEBUG ) { logger . fine ( STRING ) ; } click Happened = BOOL ; boolean consumed = BOOL ; evt = new Map Mouse Event ( get Parent Mode ( ) , evt ) ; if ( priority Listener != null && evt . get Click Count ( ) > NUM ) { priority Listener . mouse Clicked ( ev...
public boolean fireMapMouseClicked ( MouseEvent evt ) { if ( DEBUG ) { logger . fine ( STRING ) ; } clickHappened = _BOOL ; boolean consumed = _BOOL ; evt = new MapMouseEvent ( getParentMode ( ) , evt ) ; if ( priorityListener != null && evt . getClickCount ( ) > _NUM ) { priorityListener . mouseClicked ( evt ) ; consu...
241
java-test-8332
java
What do the other listeners get if it is not set according to the consumeevent mode ?
a shot at the event
public boolean fire Map Mouse Clicked ( Mouse Event evt ) { if ( DEBUG ) { logger . fine ( STRING ) ; } click Happened = BOOL ; boolean consumed = BOOL ; evt = new Map Mouse Event ( get Parent Mode ( ) , evt ) ; if ( priority Listener != null && evt . get Click Count ( ) > NUM ) { priority Listener . mouse Clicked ( ev...
public boolean fireMapMouseClicked ( MouseEvent evt ) { if ( DEBUG ) { logger . fine ( STRING ) ; } clickHappened = _BOOL ; boolean consumed = _BOOL ; evt = new MapMouseEvent ( getParentMode ( ) , evt ) ; if ( priorityListener != null && evt . getClickCount ( ) > _NUM ) { priorityListener . mouseClicked ( evt ) ; consu...
241
java-test-8333
java
What get a shot at the event if it is not set according to the consumeevent mode ?
the other listeners
public boolean fire Map Mouse Clicked ( Mouse Event evt ) { if ( DEBUG ) { logger . fine ( STRING ) ; } click Happened = BOOL ; boolean consumed = BOOL ; evt = new Map Mouse Event ( get Parent Mode ( ) , evt ) ; if ( priority Listener != null && evt . get Click Count ( ) > NUM ) { priority Listener . mouse Clicked ( ev...
public boolean fireMapMouseClicked ( MouseEvent evt ) { if ( DEBUG ) { logger . fine ( STRING ) ; } clickHappened = _BOOL ; boolean consumed = _BOOL ; evt = new MapMouseEvent ( getParentMode ( ) , evt ) ; if ( priorityListener != null && evt . getClickCount ( ) > _NUM ) { priorityListener . mouseClicked ( evt ) ; consu...
241
java-test-8335
java
What does mode_none call ?
deallocate all
public boolean control Run Train ( int idx ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING + idx + STRING + run Mode + STRING + get Display Name ( ) ) ; } boolean ret = BOOL ; int old Index = - MODE MANUAL ; if ( engineer == null ) { switch ( idx ) { case HALT : case RESUME : case RETRY : ret = BOOL ; brea...
public boolean controlRunTrain ( int idx ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING + idx + STRING + _runMode + STRING + getDisplayName ( ) ) ; } boolean ret = _BOOL ; int oldIndex = - MODE_MANUAL ; if ( _engineer == null ) { switch ( idx ) { case HALT : case RESUME : case RETRY : ret = _BOOL ; break ; ...
378
java-test-8336
java
What has an initial capacity of 110 % the size of the specified array ?
the list instance
public Int Array List ( int [ ] data ) { array = new int [ ( int ) ( data . length * NUM ) + NUM ] ; size = data . length ; System . arraycopy ( data , NUM , array , NUM , size ) ; }
public IntArrayList ( int [ ] data ) { array = new int [ ( int ) ( data . length * _NUM ) + _NUM ] ; size = data . length ; System . arraycopy ( data , _NUM , array , _NUM , size ) ; }
52
java-test-8337
java
What do a list contain ?
the elements of the specified array
public Int Array List ( int [ ] data ) { array = new int [ ( int ) ( data . length * NUM ) + NUM ] ; size = data . length ; System . arraycopy ( data , NUM , array , NUM , size ) ; }
public IntArrayList ( int [ ] data ) { array = new int [ ( int ) ( data . length * _NUM ) + _NUM ] ; size = data . length ; System . arraycopy ( data , _NUM , array , _NUM , size ) ; }
52
java-test-8338
java
What does the list instance have ?
an initial capacity of 110 % the size of the specified array
public Int Array List ( int [ ] data ) { array = new int [ ( int ) ( data . length * NUM ) + NUM ] ; size = data . length ; System . arraycopy ( data , NUM , array , NUM , size ) ; }
public IntArrayList ( int [ ] data ) { array = new int [ ( int ) ( data . length * _NUM ) + _NUM ] ; size = data . length ; System . arraycopy ( data , _NUM , array , _NUM , size ) ; }
52
java-test-8340
java
How did check types order ?
by data type
public void test Ordered By Datatype ( ) throws Exception { int last Type = Integer . MIN VALUE ; while ( type Info Rs . next ( ) ) { String name = type Info Rs . get String ( STRING ) ; int type = type Info Rs . get Int ( STRING ) ; assert True ( STRING + type + STRING + name + STRING + last Type , type >= last Type )...
public void testOrderedByDatatype ( ) throws Exception { int lastType = Integer . MIN_VALUE ; while ( typeInfoRs . next ( ) ) { String name = typeInfoRs . getString ( STRING ) ; int type = typeInfoRs . getInt ( STRING ) ; assertTrue ( STRING + type + STRING + name + STRING + lastType , type >= lastType ) ; lastType = t...
86
java-test-8341
java
What does the code serialize the bitmap ?
to base64
public static String to Base 64 ( Bitmap bitmap ) { if ( bitmap == null ) { throw new Null Pointer Exception ( STRING ) ; } String base 64 Bitmap = null ; Byte Array Output Stream stream = new Byte Array Output Stream ( ) ; bitmap . compress ( Bitmap . Compress Format . PNG , NUM , stream ) ; byte [ ] image Bitmap = st...
public static String toBase64 ( Bitmap bitmap ) { if ( bitmap == null ) { throw new NullPointerException ( STRING ) ; } String base64Bitmap = null ; ByteArrayOutputStream stream = new ByteArrayOutputStream ( ) ; bitmap . compress ( Bitmap . CompressFormat . PNG , _NUM , stream ) ; byte [ ] imageBitmap = stream . toByte...
105
java-test-8343
java
What does the create ?
the method to import a natively copied volume to a vplex virtual volume
private Workflow . Method create Import Copy Method ( URI vplex URI , List < Volume Descriptor > volume Descriptors , URI project URI , URI tenant URI ) { return new Workflow . Method ( IMPORT COPY METHOD NAME , vplex URI , volume Descriptors , project URI , tenant URI ) ; }
private Workflow . Method createImportCopyMethod ( URI vplexURI , List < VolumeDescriptor > volumeDescriptors , URI projectURI , URI tenantURI ) { return new Workflow . Method ( IMPORT_COPY_METHOD_NAME , vplexURI , volumeDescriptors , projectURI , tenantURI ) ; }
55
java-test-8344
java
What imports to a vplex virtual volume ?
a natively copied volume
private Workflow . Method create Import Copy Method ( URI vplex URI , List < Volume Descriptor > volume Descriptors , URI project URI , URI tenant URI ) { return new Workflow . Method ( IMPORT COPY METHOD NAME , vplex URI , volume Descriptors , project URI , tenant URI ) ; }
private Workflow . Method createImportCopyMethod ( URI vplexURI , List < VolumeDescriptor > volumeDescriptors , URI projectURI , URI tenantURI ) { return new Workflow . Method ( IMPORT_COPY_METHOD_NAME , vplexURI , volumeDescriptors , projectURI , tenantURI ) ; }
55
java-test-8345
java
What does a natively copied volume import ?
to a vplex virtual volume
private Workflow . Method create Import Copy Method ( URI vplex URI , List < Volume Descriptor > volume Descriptors , URI project URI , URI tenant URI ) { return new Workflow . Method ( IMPORT COPY METHOD NAME , vplex URI , volume Descriptors , project URI , tenant URI ) ; }
private Workflow . Method createImportCopyMethod ( URI vplexURI , List < VolumeDescriptor > volumeDescriptors , URI projectURI , URI tenantURI ) { return new Workflow . Method ( IMPORT_COPY_METHOD_NAME , vplexURI , volumeDescriptors , projectURI , tenantURI ) ; }
55
java-test-8346
java
What has tenantadmin role ?
the subtenants user
private boolean user Tenant Has Permission For Virtual Pool ( String vpool Id ) { Virtual Pool vpool = db Client . query Object ( Virtual Pool . class , URI . create ( vpool Id ) ) ; if ( vpool == null ) { log . error ( STRING , vpool Id ) ; return BOOL ; } Storage OS User user = get User From Context ( ) ; URI tenant ...
private boolean userTenantHasPermissionForVirtualPool ( String vpoolId ) { VirtualPool vpool = _dbClient . queryObject ( VirtualPool . class , URI . create ( vpoolId ) ) ; if ( vpool == null ) { _log . error ( STRING , vpoolId ) ; return _BOOL ; } StorageOSUser user = getUserFromContext ( ) ; URI tenantURI = URI . crea...
185
java-test-8347
java
What does the subtenants user have ?
tenantadmin role
private boolean user Tenant Has Permission For Virtual Pool ( String vpool Id ) { Virtual Pool vpool = db Client . query Object ( Virtual Pool . class , URI . create ( vpool Id ) ) ; if ( vpool == null ) { log . error ( STRING , vpool Id ) ; return BOOL ; } Storage OS User user = get User From Context ( ) ; URI tenant ...
private boolean userTenantHasPermissionForVirtualPool ( String vpoolId ) { VirtualPool vpool = _dbClient . queryObject ( VirtualPool . class , URI . create ( vpoolId ) ) ; if ( vpool == null ) { _log . error ( STRING , vpoolId ) ; return _BOOL ; } StorageOSUser user = getUserFromContext ( ) ; URI tenantURI = URI . crea...
185
java-test-8348
java
What does the code create ?
a linkitem with the properties of a root node
Byte Tree Item ( ) { in = NUM ; out = NUM ; parent = null ; terminal = BOOL ; is Source = BOOL ; depth = - NUM ; value = Byte . MIN VALUE ; network Id = null ; children = Collections . synchronized Set ( new Hash Set < Byte Tree Item > ( ) ) ; }
ByteTreeItem ( ) { in = _NUM ; out = _NUM ; parent = null ; terminal = _BOOL ; isSource = _BOOL ; depth = - _NUM ; value = Byte . MIN_VALUE ; networkId = null ; children = Collections . synchronizedSet ( new HashSet < ByteTreeItem > ( ) ) ; }
64
java-test-8351
java
What does the code throw if the value is empty ( null ) ?
a error
private void required ( String attribute Name , Resource attribut Value , boolean exists ) throws Application Exception { if ( attribut Value == null ) throw new Application Exception ( STRING , STRING + attribute Name + STRING + action + STRING ) ; if ( exists && ! attribut Value . exists ( ) ) throw new Application E...
private void required ( String attributeName , Resource attributValue , boolean exists ) throws ApplicationException { if ( attributValue == null ) throw new ApplicationException ( STRING , STRING + attributeName + STRING + action + STRING ) ; if ( exists && ! attributValue . exists ( ) ) throw new ApplicationException...
106
java-test-8355
java
What do the user submit ?
a bulk edit form
@ Button ( list = STRING , key = STRING , order = NUM , type = Button . TYPE PRIMARY ) @ Requires Permissions ( permissions = PERMISSION EDIT ) public Resolution bulk Update ( ) { int updated = NUM ; setup Form ( Mode . BULK EDIT ) ; disable Blob Fields ( ) ; form . read From Request ( context . get Request ( ) ) ; if ...
@ Button ( list = STRING , key = STRING , order = _NUM , type = Button . TYPE_PRIMARY ) @ RequiresPermissions ( permissions = PERMISSION_EDIT ) public Resolution bulkUpdate ( ) { int updated = _NUM ; setupForm ( Mode . BULK_EDIT ) ; disableBlobFields ( ) ; form . readFromRequest ( context . getRequest ( ) ) ; if ( form...
243
java-test-8356
java
What does the code handle ?
a bulk update operation ( typically invoked by the user submitting a bulk edit form )
@ Button ( list = STRING , key = STRING , order = NUM , type = Button . TYPE PRIMARY ) @ Requires Permissions ( permissions = PERMISSION EDIT ) public Resolution bulk Update ( ) { int updated = NUM ; setup Form ( Mode . BULK EDIT ) ; disable Blob Fields ( ) ; form . read From Request ( context . get Request ( ) ) ; if ...
@ Button ( list = STRING , key = STRING , order = _NUM , type = Button . TYPE_PRIMARY ) @ RequiresPermissions ( permissions = PERMISSION_EDIT ) public Resolution bulkUpdate ( ) { int updated = _NUM ; setupForm ( Mode . BULK_EDIT ) ; disableBlobFields ( ) ; form . readFromRequest ( context . getRequest ( ) ) ; if ( form...
243
java-test-8357
java
Where is the vorbiscommenttag mandatory ?
within an oggvorbis file
public Tag read ( Random Access File raf ) throws Cannot Read Exception , IO Exception { logger . config ( STRING ) ; byte [ ] raw Vorbis Comment Data = read Raw Packet Data ( raf ) ; Vorbis Comment Tag tag = vorbis Comment Reader . read ( raw Vorbis Comment Data , BOOL ) ; logger . fine ( STRING ) ; return tag ; }
public Tag read ( RandomAccessFile raf ) throws CannotReadException , IOException { logger . config ( STRING ) ; byte [ ] rawVorbisCommentData = readRawPacketData ( raf ) ; VorbisCommentTag tag = vorbisCommentReader . read ( rawVorbisCommentData , _BOOL ) ; logger . fine ( STRING ) ; return tag ; }
70
java-test-8358
java
What is mandatory within an oggvorbis file ?
the vorbiscommenttag
public Tag read ( Random Access File raf ) throws Cannot Read Exception , IO Exception { logger . config ( STRING ) ; byte [ ] raw Vorbis Comment Data = read Raw Packet Data ( raf ) ; Vorbis Comment Tag tag = vorbis Comment Reader . read ( raw Vorbis Comment Data , BOOL ) ; logger . fine ( STRING ) ; return tag ; }
public Tag read ( RandomAccessFile raf ) throws CannotReadException , IOException { logger . config ( STRING ) ; byte [ ] rawVorbisCommentData = readRawPacketData ( raf ) ; VorbisCommentTag tag = vorbisCommentReader . read ( rawVorbisCommentData , _BOOL ) ; logger . fine ( STRING ) ; return tag ; }
70
java-test-8359
java
What did the code read ?
the logical vorbiscomment tag
public Tag read ( Random Access File raf ) throws Cannot Read Exception , IO Exception { logger . config ( STRING ) ; byte [ ] raw Vorbis Comment Data = read Raw Packet Data ( raf ) ; Vorbis Comment Tag tag = vorbis Comment Reader . read ( raw Vorbis Comment Data , BOOL ) ; logger . fine ( STRING ) ; return tag ; }
public Tag read ( RandomAccessFile raf ) throws CannotReadException , IOException { logger . config ( STRING ) ; byte [ ] rawVorbisCommentData = readRawPacketData ( raf ) ; VorbisCommentTag tag = vorbisCommentReader . read ( rawVorbisCommentData , _BOOL ) ; logger . fine ( STRING ) ; return tag ; }
70
java-test-8360
java
What does the successor function impose as we approach ?
the correct ordering
public void test key Builder successor float near Zero ( ) throws No Successor Exception { assert Zero Ulps ( NUM , Successor Util . successor ( NUM ) ) ; assert Zero Ulps ( NUM , Successor Util . successor ( NUM ) ) ; assert Zero Ulps ( NUM , Successor Util . successor ( + NUM ) ) ; assert True ( - NUM == Float . int ...
public void test_keyBuilder_successor_float_nearZero ( ) throws NoSuccessorException { assertZeroUlps ( _NUM , SuccessorUtil . successor ( _NUM ) ) ; assertZeroUlps ( _NUM , SuccessorUtil . successor ( _NUM ) ) ; assertZeroUlps ( _NUM , SuccessorUtil . successor ( + _NUM ) ) ; assertTrue ( - _NUM == Float . intBitsToFl...
178
java-test-8361
java
When does the successor function impose the correct ordering ?
as we approach
public void test key Builder successor float near Zero ( ) throws No Successor Exception { assert Zero Ulps ( NUM , Successor Util . successor ( NUM ) ) ; assert Zero Ulps ( NUM , Successor Util . successor ( NUM ) ) ; assert Zero Ulps ( NUM , Successor Util . successor ( + NUM ) ) ; assert True ( - NUM == Float . int ...
public void test_keyBuilder_successor_float_nearZero ( ) throws NoSuccessorException { assertZeroUlps ( _NUM , SuccessorUtil . successor ( _NUM ) ) ; assertZeroUlps ( _NUM , SuccessorUtil . successor ( _NUM ) ) ; assertZeroUlps ( _NUM , SuccessorUtil . successor ( + _NUM ) ) ; assertTrue ( - _NUM == Float . intBitsToFl...
178
java-test-8362
java
Why does java hide the finite nonzero values , nan values , and positive infinity , and negative infinity , but also from you most of the time ?
since positive zero and negative zero compare as equals ( for java )
public void test key Builder successor float near Zero ( ) throws No Successor Exception { assert Zero Ulps ( NUM , Successor Util . successor ( NUM ) ) ; assert Zero Ulps ( NUM , Successor Util . successor ( NUM ) ) ; assert Zero Ulps ( NUM , Successor Util . successor ( + NUM ) ) ; assert True ( - NUM == Float . int ...
public void test_keyBuilder_successor_float_nearZero ( ) throws NoSuccessorException { assertZeroUlps ( _NUM , SuccessorUtil . successor ( _NUM ) ) ; assertZeroUlps ( _NUM , SuccessorUtil . successor ( _NUM ) ) ; assertZeroUlps ( _NUM , SuccessorUtil . successor ( + _NUM ) ) ; assertTrue ( - _NUM == Float . intBitsToFl...
178
java-test-8363
java
What imposes the correct ordering as we approach ?
the successor function
public void test key Builder successor float near Zero ( ) throws No Successor Exception { assert Zero Ulps ( NUM , Successor Util . successor ( NUM ) ) ; assert Zero Ulps ( NUM , Successor Util . successor ( NUM ) ) ; assert Zero Ulps ( NUM , Successor Util . successor ( + NUM ) ) ; assert True ( - NUM == Float . int ...
public void test_keyBuilder_successor_float_nearZero ( ) throws NoSuccessorException { assertZeroUlps ( _NUM , SuccessorUtil . successor ( _NUM ) ) ; assertZeroUlps ( _NUM , SuccessorUtil . successor ( _NUM ) ) ; assertZeroUlps ( _NUM , SuccessorUtil . successor ( + _NUM ) ) ; assertTrue ( - _NUM == Float . intBitsToFl...
178
java-test-8364
java
What does the code generate ?
the migration class name for migrating from one db version to the other
public static Class Name generate Migration Name ( String package Name , Schema from , Schema to ) { return Class Name . get ( package Name , String . format ( Locale . US , STRING , from . get Version ( ) , to . get Version ( ) ) ) ; }
public static ClassName generateMigrationName ( String packageName , Schema from , Schema to ) { return ClassName . get ( packageName , String . format ( Locale . US , STRING , from . getVersion ( ) , to . getVersion ( ) ) ) ; }
55
java-test-8365
java
When is this method executed ?
immediately after decryption
private byte post Decryption ( Cipher State state , Byte Buffer in Byte Buffer , long position , byte [ ] iv ) throws IO Exception { byte padding = NUM ; if ( state . is Reset ( ) ) { reset Cipher ( state , position , iv ) ; padding = get Padding ( position ) ; in Byte Buffer . position ( padding ) ; } return padding ;...
private byte postDecryption ( CipherState state , ByteBuffer inByteBuffer , long position , byte [ ] iv ) throws IOException { byte padding = _NUM ; if ( state . isReset ( ) ) { resetCipher ( state , position , iv ) ; padding = getPadding ( position ) ; inByteBuffer . position ( padding ) ; } return padding ; }
74
java-test-8371
java
What do it mean if current number is larger than previous one ?
we can extend our last decreasing sequence length by 1 . so inc = dec + 1 . otherwise , dec = inc + 1 . return the max of these two counts
public int wiggle Max Length ( int [ ] nums ) { if ( nums == null || nums . length == NUM ) { return NUM ; } int inc = NUM ; int dec = NUM ; for ( int i = NUM ; i < nums . length ; i ++ ) { if ( nums [ i ] > nums [ i - NUM ] ) { inc = dec + NUM ; } else if ( nums [ i ] < nums [ i - NUM ] ) { dec = inc + NUM ; } } retur...
public int wiggleMaxLength ( int [ ] nums ) { if ( nums == null || nums . length == _NUM ) { return _NUM ; } int inc = _NUM ; int dec = _NUM ; for ( int i = _NUM ; i < nums . length ; i ++ ) { if ( nums [ i ] > nums [ i - _NUM ] ) { inc = dec + _NUM ; } else if ( nums [ i ] < nums [ i - _NUM ] ) { dec = inc + _NUM ; } ...
113
java-test-8372
java
What use to record the count of increasing - first and decreasing - first sequences ?
two vars
public int wiggle Max Length ( int [ ] nums ) { if ( nums == null || nums . length == NUM ) { return NUM ; } int inc = NUM ; int dec = NUM ; for ( int i = NUM ; i < nums . length ; i ++ ) { if ( nums [ i ] > nums [ i - NUM ] ) { inc = dec + NUM ; } else if ( nums [ i ] < nums [ i - NUM ] ) { dec = inc + NUM ; } } retur...
public int wiggleMaxLength ( int [ ] nums ) { if ( nums == null || nums . length == _NUM ) { return _NUM ; } int inc = _NUM ; int dec = _NUM ; for ( int i = _NUM ; i < nums . length ; i ++ ) { if ( nums [ i ] > nums [ i - _NUM ] ) { inc = dec + _NUM ; } else if ( nums [ i ] < nums [ i - _NUM ] ) { dec = inc + _NUM ; } ...
113
java-test-8373
java
What do two vars use ?
to record the count of increasing - first and decreasing - first sequences
public int wiggle Max Length ( int [ ] nums ) { if ( nums == null || nums . length == NUM ) { return NUM ; } int inc = NUM ; int dec = NUM ; for ( int i = NUM ; i < nums . length ; i ++ ) { if ( nums [ i ] > nums [ i - NUM ] ) { inc = dec + NUM ; } else if ( nums [ i ] < nums [ i - NUM ] ) { dec = inc + NUM ; } } retur...
public int wiggleMaxLength ( int [ ] nums ) { if ( nums == null || nums . length == _NUM ) { return _NUM ; } int inc = _NUM ; int dec = _NUM ; for ( int i = _NUM ; i < nums . length ; i ++ ) { if ( nums [ i ] > nums [ i - _NUM ] ) { inc = dec + _NUM ; } else if ( nums [ i ] < nums [ i - _NUM ] ) { dec = inc + _NUM ; } ...
113
java-test-8374
java
How do the camera position change depending on the state of the animate toggle button ?
by moving or animating the camera
private void change Camera ( Camera Update update , Cancelable Callback callback ) { if ( m Animate Toggle . is Checked ( ) ) { if ( m Custom Duration Toggle . is Checked ( ) ) { int duration = m Custom Duration Bar . get Progress ( ) ; m Map . animate Camera ( update , Math . max ( duration , NUM ) , callback ) ; } el...
private void changeCamera ( CameraUpdate update , CancelableCallback callback ) { if ( mAnimateToggle . isChecked ( ) ) { if ( mCustomDurationToggle . isChecked ( ) ) { int duration = mCustomDurationBar . getProgress ( ) ; mMap . animateCamera ( update , Math . max ( duration , _NUM ) , callback ) ; } else { mMap . ani...
101
java-test-8375
java
What does the code add a generator loader ?
to the dtedframecache to be used by the layer
public Builder add Generator Loader ( Generator Loader g Loader ) { if ( loaders == null ) { loaders = new Array List < Generator Loader > ( ) ; } if ( g Loader != null ) { loaders . add ( g Loader ) ; } return this ; }
public Builder addGeneratorLoader ( GeneratorLoader gLoader ) { if ( loaders == null ) { loaders = new ArrayList < GeneratorLoader > ( ) ; } if ( gLoader != null ) { loaders . add ( gLoader ) ; } return this ; }
53
java-test-8376
java
What does the code add to the dtedframecache to be used by the layer ?
a generator loader
public Builder add Generator Loader ( Generator Loader g Loader ) { if ( loaders == null ) { loaders = new Array List < Generator Loader > ( ) ; } if ( g Loader != null ) { loaders . add ( g Loader ) ; } return this ; }
public Builder addGeneratorLoader ( GeneratorLoader gLoader ) { if ( loaders == null ) { loaders = new ArrayList < GeneratorLoader > ( ) ; } if ( gLoader != null ) { loaders . add ( gLoader ) ; } return this ; }
53
java-test-8377
java
What does you want just when ?
the raw nonterminal word
public static String clean Non Terminal ( String nt ) { if ( is Nonterminal ( nt ) ) { if ( is Indexed Non Terminal ( nt ) ) { return nt . substring ( NUM , nt . index Of ( INDEX SEPARATOR ) ) ; } return nt . substring ( NUM , nt . length ( ) - NUM ) ; } return nt ; }
public static String cleanNonTerminal ( String nt ) { if ( isNonterminal ( nt ) ) { if ( isIndexedNonTerminal ( nt ) ) { return nt . substring ( _NUM , nt . indexOf ( INDEX_SEPARATOR ) ) ; } return nt . substring ( _NUM , nt . length ( ) - _NUM ) ; } return nt ; }
70
java-test-8378
java
When did this remove them ?
when you just want the raw nonterminal word
public static String clean Non Terminal ( String nt ) { if ( is Nonterminal ( nt ) ) { if ( is Indexed Non Terminal ( nt ) ) { return nt . substring ( NUM , nt . index Of ( INDEX SEPARATOR ) ) ; } return nt . substring ( NUM , nt . length ( ) - NUM ) ; } return nt ; }
public static String cleanNonTerminal ( String nt ) { if ( isNonterminal ( nt ) ) { if ( isIndexedNonTerminal ( nt ) ) { return nt . substring ( _NUM , nt . indexOf ( INDEX_SEPARATOR ) ) ; } return nt . substring ( _NUM , nt . length ( ) - _NUM ) ; } return nt ; }
70
java-test-8379
java
How are nonterminals stored in the vocabulary ?
in square brackets
public static String clean Non Terminal ( String nt ) { if ( is Nonterminal ( nt ) ) { if ( is Indexed Non Terminal ( nt ) ) { return nt . substring ( NUM , nt . index Of ( INDEX SEPARATOR ) ) ; } return nt . substring ( NUM , nt . length ( ) - NUM ) ; } return nt ; }
public static String cleanNonTerminal ( String nt ) { if ( isNonterminal ( nt ) ) { if ( isIndexedNonTerminal ( nt ) ) { return nt . substring ( _NUM , nt . indexOf ( INDEX_SEPARATOR ) ) ; } return nt . substring ( _NUM , nt . length ( ) - _NUM ) ; } return nt ; }
70
java-test-8380
java
For what purpose can year values greater than 9999 be is must added year values greater than 9999 to the left of this representation ?
to accommodate
public static Date string To Date ( String str Date ) throws Parse Exception { int [ ] diff Time = null ; boolean plus Time = BOOL ; int idx T = str Date . index Of ( STRING ) ; if ( idx T == - NUM ) { throw new Parse Exception ( STRING , NUM ) ; } int idx Diff UTC = str Date . index Of ( STRING , idx T ) ; if ( idx Di...
public static Date stringToDate ( String strDate ) throws ParseException { int [ ] diffTime = null ; boolean plusTime = _BOOL ; int idxT = strDate . indexOf ( STRING ) ; if ( idxT == - _NUM ) { throw new ParseException ( STRING , _NUM ) ; } int idxDiffUTC = strDate . indexOf ( STRING , idxT ) ; if ( idxDiffUTC == - _NU...
268
java-test-8381
java
What represent hour respectively , minute and second ?
" ss
public static Date string To Date ( String str Date ) throws Parse Exception { int [ ] diff Time = null ; boolean plus Time = BOOL ; int idx T = str Date . index Of ( STRING ) ; if ( idx T == - NUM ) { throw new Parse Exception ( STRING , NUM ) ; } int idx Diff UTC = str Date . index Of ( STRING , idx T ) ; if ( idx Di...
public static Date stringToDate ( String strDate ) throws ParseException { int [ ] diffTime = null ; boolean plusTime = _BOOL ; int idxT = strDate . indexOf ( STRING ) ; if ( idxT == - _NUM ) { throw new ParseException ( STRING , _NUM ) ; } int idxDiffUTC = strDate . indexOf ( STRING , idxT ) ; if ( idxDiffUTC == - _NU...
268
java-test-8382
java
When would one write 20 : 00 - 05 : 00 ?
1999 - 05 - 31t13
public static Date string To Date ( String str Date ) throws Parse Exception { int [ ] diff Time = null ; boolean plus Time = BOOL ; int idx T = str Date . index Of ( STRING ) ; if ( idx T == - NUM ) { throw new Parse Exception ( STRING , NUM ) ; } int idx Diff UTC = str Date . index Of ( STRING , idx T ) ; if ( idx Di...
public static Date stringToDate ( String strDate ) throws ParseException { int [ ] diffTime = null ; boolean plusTime = _BOOL ; int idxT = strDate . indexOf ( STRING ) ; if ( idxT == - _NUM ) { throw new ParseException ( STRING , _NUM ) ; } int idxDiffUTC = strDate . indexOf ( STRING , idxT ) ; if ( idxDiffUTC == - _NU...
268
java-test-8385
java
What does the code create if it does not yet exist ?
a lock in a directory
@ Override public Lock lock Or Fail ( ) throws Sail Locked Exception { Lock lock = try Lock ( ) ; if ( lock != null ) { return lock ; } String requested By = get Process Name ( ) ; String locked By = get Locked By ( ) ; if ( locked By != null ) { throw new Sail Locked Exception ( locked By , requested By , this ) ; } l...
@ Override public Lock lockOrFail ( ) throws SailLockedException { Lock lock = tryLock ( ) ; if ( lock != null ) { return lock ; } String requestedBy = getProcessName ( ) ; String lockedBy = getLockedBy ( ) ; if ( lockedBy != null ) { throw new SailLockedException ( lockedBy , requestedBy , this ) ; } lock = tryLock ( ...
106
java-test-8386
java
How will the code simplified method load step data to locate the workflow ?
using either a workflow i d or a step i d
public Object load Step Data ( String step Or Workflow Id , String key ) { Workflow workflow = null ; if ( step Or Workflow Id . matches ( WORKFLOW URI Match ) ) { workflow = load Workflow From Uri ( URI . create ( step Or Workflow Id ) ) ; if ( workflow != null ) { return load Step Data ( workflow . get Workflow URI (...
public Object loadStepData ( String stepOrWorkflowId , String key ) { Workflow workflow = null ; if ( stepOrWorkflowId . matches ( WORKFLOW_URI_Match ) ) { workflow = loadWorkflowFromUri ( URI . create ( stepOrWorkflowId ) ) ; if ( workflow != null ) { return loadStepData ( workflow . getWorkflowURI ( ) , key , stepOrW...
151
java-test-8387
java
What do that use to locate the workflow ?
either a workflow i d or a step i d
public Object load Step Data ( String step Or Workflow Id , String key ) { Workflow workflow = null ; if ( step Or Workflow Id . matches ( WORKFLOW URI Match ) ) { workflow = load Workflow From Uri ( URI . create ( step Or Workflow Id ) ) ; if ( workflow != null ) { return load Step Data ( workflow . get Workflow URI (...
public Object loadStepData ( String stepOrWorkflowId , String key ) { Workflow workflow = null ; if ( stepOrWorkflowId . matches ( WORKFLOW_URI_Match ) ) { workflow = loadWorkflowFromUri ( URI . create ( stepOrWorkflowId ) ) ; if ( workflow != null ) { return loadStepData ( workflow . getWorkflowURI ( ) , key , stepOrW...
151
java-test-8388
java
What will load step data using either a workflow i d or a step i d to locate the workflow ?
the code simplified method
public Object load Step Data ( String step Or Workflow Id , String key ) { Workflow workflow = null ; if ( step Or Workflow Id . matches ( WORKFLOW URI Match ) ) { workflow = load Workflow From Uri ( URI . create ( step Or Workflow Id ) ) ; if ( workflow != null ) { return load Step Data ( workflow . get Workflow URI (...
public Object loadStepData ( String stepOrWorkflowId , String key ) { Workflow workflow = null ; if ( stepOrWorkflowId . matches ( WORKFLOW_URI_Match ) ) { workflow = loadWorkflowFromUri ( URI . create ( stepOrWorkflowId ) ) ; if ( workflow != null ) { return loadStepData ( workflow . getWorkflowURI ( ) , key , stepOrW...
151
java-test-8389
java
What will the code simplified method load using either a workflow i d or a step i d to locate the workflow ?
step data
public Object load Step Data ( String step Or Workflow Id , String key ) { Workflow workflow = null ; if ( step Or Workflow Id . matches ( WORKFLOW URI Match ) ) { workflow = load Workflow From Uri ( URI . create ( step Or Workflow Id ) ) ; if ( workflow != null ) { return load Step Data ( workflow . get Workflow URI (...
public Object loadStepData ( String stepOrWorkflowId , String key ) { Workflow workflow = null ; if ( stepOrWorkflowId . matches ( WORKFLOW_URI_Match ) ) { workflow = loadWorkflowFromUri ( URI . create ( stepOrWorkflowId ) ) ; if ( workflow != null ) { return loadStepData ( workflow . getWorkflowURI ( ) , key , stepOrW...
151
java-test-8390
java
What does the code add ?
a new customtimertask to be executed
public void start Execution Every Day At ( Custom Timer Task task , int target Hour , int target Min , int target Sec ) { Bot Logger . warn ( LOGTAG , STRING + task . get Task Name ( ) ) ; final Runnable task Wrapper = null ; if ( task . get Times ( ) != NUM ) { final long delay = comput Next Dilay ( target Hour , targ...
public void startExecutionEveryDayAt ( CustomTimerTask task , int targetHour , int targetMin , int targetSec ) { BotLogger . warn ( LOGTAG , STRING + task . getTaskName ( ) ) ; final Runnable taskWrapper = null ; if ( task . getTimes ( ) != _NUM ) { final long delay = computNextDilay ( targetHour , targetMin , targetSe...
99
java-test-8391
java
When are the srcimg and biop parameters used only ?
when invoked from the oglbufimgops
static void Iso Blit ( Surface Data src Data , Surface Data dst Data , Buffered Image src Img , Buffered Image Op biop , Composite comp , Region clip , Affine Transform xform , int hint , int sx 1 , int sy 1 , int sx 2 , int sy 2 , double dx 1 , double dy 1 , double dx 2 , double dy 2 , boolean texture ) { int ctxflags...
static void IsoBlit ( SurfaceData srcData , SurfaceData dstData , BufferedImage srcImg , BufferedImageOp biop , Composite comp , Region clip , AffineTransform xform , int hint , int sx1 , int sy1 , int sx2 , int sy2 , double dx1 , double dy1 , double dx2 , double dy2 , boolean texture ) { int ctxflags = _NUM ; if ( src...
407
java-test-8396
java
When did the code invoke in dev mode ?
when a server error occurs
protected Completion Stage < Result > on Dev Server Error ( Http . Request Header request , Useful Exception exception ) { Object Node json Error = Json . new Object ( ) ; final Throwable cause = exception . cause ; final String description = exception . description ; final String id = exception . id ; final String tit...
protected CompletionStage < Result > onDevServerError ( Http . RequestHeader request , UsefulException exception ) { ObjectNode jsonError = Json . newObject ( ) ; final Throwable cause = exception . cause ; final String description = exception . description ; final String id = exception . id ; final String title = exce...
145