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-1024
java
What does the code initialize to basiccomponentui mapping ?
the uiclassid
protected void init Class Defaults ( UI Defaults table ) { super . init Class Defaults ( table ) ; final String windows Package Name = STRING ; Object [ ] ui Defaults = { STRING , windows Package Name + STRING , STRING , windows Package Name + STRING , STRING , windows Package Name + STRING , STRING , windows Package N...
protected void initClassDefaults ( UIDefaults table ) { super . initClassDefaults ( table ) ; final String windowsPackageName = STRING ; Object [ ] uiDefaults = { STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , S...
318
java-test-1025
java
What must this table map to a basiccomponentui class of the appropriate type ?
those constants
protected void init Class Defaults ( UI Defaults table ) { super . init Class Defaults ( table ) ; final String windows Package Name = STRING ; Object [ ] ui Defaults = { STRING , windows Package Name + STRING , STRING , windows Package Name + STRING , STRING , windows Package Name + STRING , STRING , windows Package N...
protected void initClassDefaults ( UIDefaults table ) { super . initClassDefaults ( table ) ; final String windowsPackageName = STRING ; Object [ ] uiDefaults = { STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , S...
318
java-test-1026
java
What define their own uiclassid constants ?
the jcomponent classes
protected void init Class Defaults ( UI Defaults table ) { super . init Class Defaults ( table ) ; final String windows Package Name = STRING ; Object [ ] ui Defaults = { STRING , windows Package Name + STRING , STRING , windows Package Name + STRING , STRING , windows Package Name + STRING , STRING , windows Package N...
protected void initClassDefaults ( UIDefaults table ) { super . initClassDefaults ( table ) ; final String windowsPackageName = STRING ; Object [ ] uiDefaults = { STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , S...
318
java-test-1027
java
What does the code initialize the uiclassid ?
to basiccomponentui mapping
protected void init Class Defaults ( UI Defaults table ) { super . init Class Defaults ( table ) ; final String windows Package Name = STRING ; Object [ ] ui Defaults = { STRING , windows Package Name + STRING , STRING , windows Package Name + STRING , STRING , windows Package Name + STRING , STRING , windows Package N...
protected void initClassDefaults ( UIDefaults table ) { super . initClassDefaults ( table ) ; final String windowsPackageName = STRING ; Object [ ] uiDefaults = { STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , S...
318
java-test-1028
java
What do the jcomponent classes define ?
their own uiclassid constants
protected void init Class Defaults ( UI Defaults table ) { super . init Class Defaults ( table ) ; final String windows Package Name = STRING ; Object [ ] ui Defaults = { STRING , windows Package Name + STRING , STRING , windows Package Name + STRING , STRING , windows Package Name + STRING , STRING , windows Package N...
protected void initClassDefaults ( UIDefaults table ) { super . initClassDefaults ( table ) ; final String windowsPackageName = STRING ; Object [ ] uiDefaults = { STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , STRING , windowsPackageName + STRING , S...
318
java-test-1029
java
Could using break the caller because the indexes would be shifted to accomodate the contentprovider ' s internal bindings ?
No
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1030
java
What s internal bindings ?
the contentprovider
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1031
java
What appends to the given stringbuilder ?
an sql string
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1032
java
What do everyone use ?
the " ? " binding form
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1033
java
What do we encourage everyone ?
to use the " ? " binding form
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1034
java
When may one want to add where clauses that were not provided by the caller since " ? " is a positional form ?
when implementing a contentprovider
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1035
java
What uses the " ? " binding form ?
everyone
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1036
java
Why may one want to add where clauses that were not provided by the caller when implementing a contentprovider ?
since " ? " is a positional form
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1037
java
Why did this method deprecate ?
because we want to encourage everyone to use the " ? " binding form . however , when implementing a contentprovider , one may want to add where clauses that were not provided by the caller . since " ? " is a positional form , using it in this case could break the caller because
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1038
java
What may one want since " ? " is a positional form when implementing a contentprovider ?
to add where clauses that were not provided by the caller
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1039
java
What does the contentprovider s ?
internal bindings
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1040
java
What do we want ?
to encourage everyone to use the " ? " binding form
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1041
java
What does an sql string append ?
to the given stringbuilder
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1042
java
What may want to add where clauses that were not provided by the caller since " ? " is a positional form when implementing a contentprovider ?
one
public static void append Escaped SQL String ( String Builder sb , String sql String ) { sb . append ( STRING ) ; if ( sql String . index Of ( STRING ) != - NUM ) { int length = sql String . length ( ) ; for ( int i = NUM ; i < length ; i ++ ) { char c = sql String . char At ( i ) ; if ( c == STRING ) { sb . append ( S...
public static void appendEscapedSQLString ( StringBuilder sb , String sqlString ) { sb . append ( STRING ) ; if ( sqlString . indexOf ( STRING ) != - _NUM ) { int length = sqlString . length ( ) ; for ( int i = _NUM ; i < length ; i ++ ) { char c = sqlString . charAt ( i ) ; if ( c == STRING ) { sb . append ( STRING ) ...
119
java-test-1043
java
What has this returns if the text has multiple lines ?
the length of the longest line
public float text Width ( String str ) { if ( text Font == null ) { default Font Or Death ( STRING ) ; } int length = str . length ( ) ; if ( length > text Width Buffer . length ) { text Width Buffer = new char [ length + NUM ] ; } str . get Chars ( NUM , length , text Width Buffer , NUM ) ; float wide = NUM ; int inde...
public float textWidth ( String str ) { if ( textFont == null ) { defaultFontOrDeath ( STRING ) ; } int length = str . length ( ) ; if ( length > textWidthBuffer . length ) { textWidthBuffer = new char [ length + _NUM ] ; } str . getChars ( _NUM , length , textWidthBuffer , _NUM ) ; float wide = _NUM ; int index = _NUM...
176
java-test-1044
java
What does the code remove from the sub - query ?
the first and the last bracket
private static String remove Brackets ( String sub Query ) { if ( sub Query . index Of ( STRING ) == NUM && sub Query . last Index Of ( STRING ) == sub Query . length ( ) - NUM ) { return sub Query . substring ( NUM , sub Query . length ( ) - NUM ) ; } return sub Query ; }
private static String removeBrackets ( String subQuery ) { if ( subQuery . indexOf ( STRING ) == _NUM && subQuery . lastIndexOf ( STRING ) == subQuery . length ( ) - _NUM ) { return subQuery . substring ( _NUM , subQuery . length ( ) - _NUM ) ; } return subQuery ; }
68
java-test-1045
java
What does the code get ?
the colloquial type name and human form of the type of the given constant , when used as an encoded value
public static String constant To Human ( Constant cst ) { int type = constant To Value Type ( cst ) ; if ( type == VALUE NULL ) { return STRING ; } String Builder sb = new String Builder ( ) ; sb . append ( cst . type Name ( ) ) ; sb . append ( STRING ) ; sb . append ( cst . to Human ( ) ) ; return sb . to String ( ) ;...
public static String constantToHuman ( Constant cst ) { int type = constantToValueType ( cst ) ; if ( type == VALUE_NULL ) { return STRING ; } StringBuilder sb = new StringBuilder ( ) ; sb . append ( cst . typeName ( ) ) ; sb . append ( STRING ) ; sb . append ( cst . toHuman ( ) ) ; return sb . toString ( ) ; }
84
java-test-1046
java
What does the code parse into milliseconds ?
a duration string
public static long parse Duration ( String duration Str ) { long duration = - NUM ; String [ ] component Arr = duration Str . split ( STRING ) ; switch ( component Arr . length ) { case NUM : duration = parse Duration From Seconds ( duration Str ) ; break ; case NUM : case NUM : duration Str = ensure Segmented Duration...
public static long parseDuration ( String durationStr ) { long duration = - _NUM ; String [ ] componentArr = durationStr . split ( STRING ) ; switch ( componentArr . length ) { case _NUM : duration = parseDurationFromSeconds ( durationStr ) ; break ; case _NUM : case _NUM : durationStr = ensureSegmentedDuration ( durat...
94
java-test-1047
java
For what purpose does a definition of name visible from the point of the reference . returns a list of such definitions find ?
for each reference in the collection
@ Not Null public static List < Pair < Psi Element , Psi Element > > find Definitions ( String name , Collection < ? extends Psi Reference > references , @ Nullable Collection < ? extends Psi Element > ignored ) { List < Pair < Psi Element , Psi Element > > conflicts = new Array List < Pair < Psi Element , Psi Element ...
@ NotNull public static List < Pair < PsiElement , PsiElement > > findDefinitions ( String name , Collection < ? extends PsiReference > references , @ Nullable Collection < ? extends PsiElement > ignored ) { List < Pair < PsiElement , PsiElement > > conflicts = new ArrayList < Pair < PsiElement , PsiElement > > ( ) ; R...
221
java-test-1048
java
What did the code read ?
an array from an amf encoded buffer
private static Array List < Object > read Amf Strict Array ( Parsable Byte Array data ) { int count = data . read Unsigned Int To Int ( ) ; Array List < Object > list = new Array List < > ( count ) ; for ( int i = NUM ; i < count ; i ++ ) { int type = read Amf Type ( data ) ; list . add ( read Amf Data ( data , type ) ...
private static ArrayList < Object > readAmfStrictArray ( ParsableByteArray data ) { int count = data . readUnsignedIntToInt ( ) ; ArrayList < Object > list = new ArrayList < > ( count ) ; for ( int i = _NUM ; i < count ; i ++ ) { int type = readAmfType ( data ) ; list . add ( readAmfData ( data , type ) ) ; } return li...
91
java-test-1050
java
What does the code draw ?
the waferedge , including the notch
protected void draw Wafer Edge ( Graphics 2 D g2 , Rectangle 2 D plot Area ) { Ellipse 2 D wafer Edge = get Wafer Edge ( plot Area ) ; g2 . set Color ( Color . black ) ; g2 . draw ( wafer Edge ) ; Arc 2 D notch ; Rectangle 2 D wafer Frame = wafer Edge . get Frame ( ) ; double notch Diameter = wafer Frame . get Width ( ...
protected void drawWaferEdge ( Graphics2D g2 , Rectangle2D plotArea ) { Ellipse2D waferEdge = getWaferEdge ( plotArea ) ; g2 . setColor ( Color . black ) ; g2 . draw ( waferEdge ) ; Arc2D notch ; Rectangle2D waferFrame = waferEdge . getFrame ( ) ; double notchDiameter = waferFrame . getWidth ( ) * _NUM ; if ( this . or...
320
java-test-1051
java
What does it return ?
the pressed button
public static int show Message Box ( Component parent , String title , String msg , int buttons , int message Type ) { String icon ; switch ( message Type ) { case J Option Pane . ERROR MESSAGE : icon = STRING ; break ; case J Option Pane . INFORMATION MESSAGE : icon = STRING ; break ; case J Option Pane . WARNING MESS...
public static int showMessageBox ( Component parent , String title , String msg , int buttons , int messageType ) { String icon ; switch ( messageType ) { case JOptionPane . ERROR_MESSAGE : icon = STRING ; break ; case JOptionPane . INFORMATION_MESSAGE : icon = STRING ; break ; case JOptionPane . WARNING_MESSAGE : icon...
127
java-test-1052
java
What do us allow ?
any pending transitions and input to go by before continuing
void flush Edt ( ) { if ( ! is Edt ( ) ) { return ; } while ( ! should EDT Sleep No Form Animation ( ) ) { edt Loop Impl ( ) ; } while ( animation Queue != null && animation Queue . size ( ) > NUM ) { edt Loop Impl ( ) ; } }
void flushEdt ( ) { if ( ! isEdt ( ) ) { return ; } while ( ! shouldEDTSleepNoFormAnimation ( ) ) { edtLoopImpl ( ) ; } while ( animationQueue != null && animationQueue . size ( ) > _NUM ) { edtLoopImpl ( ) ; } }
63
java-test-1053
java
When do any pending transitions and input go by ?
before continuing with our other tasks
void flush Edt ( ) { if ( ! is Edt ( ) ) { return ; } while ( ! should EDT Sleep No Form Animation ( ) ) { edt Loop Impl ( ) ; } while ( animation Queue != null && animation Queue . size ( ) > NUM ) { edt Loop Impl ( ) ; } }
void flushEdt ( ) { if ( ! isEdt ( ) ) { return ; } while ( ! shouldEDTSleepNoFormAnimation ( ) ) { edtLoopImpl ( ) ; } while ( animationQueue != null && animationQueue . size ( ) > _NUM ) { edtLoopImpl ( ) ; } }
63
java-test-1054
java
What does the code read ?
a new proxy class descriptor from the receiver
private Class < ? > read New Proxy Class Desc ( ) throws Class Not Found Exception , IO Exception { int count = input . read Int ( ) ; String [ ] interface Names = new String [ count ] ; for ( int i = NUM ; i < count ; i ++ ) { interface Names [ i ] = input . read UTF ( ) ; } Class < ? > proxy = resolve Proxy Class ( i...
private Class < ? > readNewProxyClassDesc ( ) throws ClassNotFoundException , IOException { int count = input . readInt ( ) ; String [ ] interfaceNames = new String [ count ] ; for ( int i = _NUM ; i < count ; i ++ ) { interfaceNames [ i ] = input . readUTF ( ) ; } Class < ? > proxy = resolveProxyClass ( interfaceNames...
95
java-test-1055
java
What do int array convert ?
to integer list
public static List < Integer > convert To Integer List ( int [ ] array ) { List < Integer > integers = new Array List < Integer > ( ) ; for ( int i = NUM ; i < array . length ; i ++ ) { integers . add ( array [ i ] ) ; } return integers ; }
public static List < Integer > convertToIntegerList ( int [ ] array ) { List < Integer > integers = new ArrayList < Integer > ( ) ; for ( int i = _NUM ; i < array . length ; i ++ ) { integers . add ( array [ i ] ) ; } return integers ; }
64
java-test-1056
java
What should clients accept notifying the sink as resources succeed or fail ?
resources for asynchronous processing
protected boolean handle Chunk ( final E [ ] chunk ) throws Execution Exception , Interrupted Exception , IO Exception { assert chunk != null ; assert chunk . length > NUM ; final int chunk Size = chunk . length ; final long begin Nanos = System . nano Time ( ) ; try { for ( E e : chunk ) { master . add Pending ( e , t...
protected boolean handleChunk ( final E [ ] chunk ) throws ExecutionException , InterruptedException , IOException { assert chunk != null ; assert chunk . length > _NUM ; final int chunkSize = chunk . length ; final long beginNanos = System . nanoTime ( ) ; try { for ( E e : chunk ) { master . addPending ( e , this , l...
239
java-test-1057
java
What does the code submit ?
the chunk of resources for processing by the remote client task
protected boolean handle Chunk ( final E [ ] chunk ) throws Execution Exception , Interrupted Exception , IO Exception { assert chunk != null ; assert chunk . length > NUM ; final int chunk Size = chunk . length ; final long begin Nanos = System . nano Time ( ) ; try { for ( E e : chunk ) { master . add Pending ( e , t...
protected boolean handleChunk ( final E [ ] chunk ) throws ExecutionException , InterruptedException , IOException { assert chunk != null ; assert chunk . length > _NUM ; final int chunkSize = chunk . length ; final long beginNanos = System . nanoTime ( ) ; try { for ( E e : chunk ) { master . addPending ( e , this , l...
239
java-test-1058
java
When do the sink notify ?
as resources succeed or fail
protected boolean handle Chunk ( final E [ ] chunk ) throws Execution Exception , Interrupted Exception , IO Exception { assert chunk != null ; assert chunk . length > NUM ; final int chunk Size = chunk . length ; final long begin Nanos = System . nano Time ( ) ; try { for ( E e : chunk ) { master . add Pending ( e , t...
protected boolean handleChunk ( final E [ ] chunk ) throws ExecutionException , InterruptedException , IOException { assert chunk != null ; assert chunk . length > _NUM ; final int chunkSize = chunk . length ; final long beginNanos = System . nanoTime ( ) ; try { for ( E e : chunk ) { master . addPending ( e , this , l...
239
java-test-1063
java
What is the code ensure ?
that there also is a selection container object
public static Selection Result ensure Selection Result ( final Database db ) { List < Selection Result > selections = Result Util . filter Results ( db . get Hierarchy ( ) , db , Selection Result . class ) ; if ( ! selections . is Empty ( ) ) { return selections . get ( NUM ) ; } Selection Result sel = new Selection Re...
public static SelectionResult ensureSelectionResult ( final Database db ) { List < SelectionResult > selections = ResultUtil . filterResults ( db . getHierarchy ( ) , db , SelectionResult . class ) ; if ( ! selections . isEmpty ( ) ) { return selections . get ( _NUM ) ; } SelectionResult sel = new SelectionResult ( ) ;...
84
java-test-1064
java
What does the code create ?
a directory in the computer ' s temp directory
public static File make Temp Dir ( ) throws IO Exception { File temp = File . create Temp File ( STRING , null ) ; if ( ! temp . delete ( ) ) return null ; if ( ! temp . mkdir ( ) ) return null ; return temp ; }
public static File makeTempDir ( ) throws IOException { File temp = File . createTempFile ( STRING , null ) ; if ( ! temp . delete ( ) ) return null ; if ( ! temp . mkdir ( ) ) return null ; return temp ; }
54
java-test-1065
java
What do only the user walls give ?
the userid
public void fetch My Walls ( String user Id ) { Retro Callback retro Callback ; retro Callback = new Retro Callback ( this ) ; retro Callback . set Request Id ( Http Constants . Api Response Codes . GET USER WALLS ) ; retro Callback List . add ( retro Callback ) ; m Yelo Api . get User Walls ( user Id , retro Callback ...
public void fetchMyWalls ( String userId ) { RetroCallback retroCallback ; retroCallback = new RetroCallback ( this ) ; retroCallback . setRequestId ( HttpConstants . ApiResponseCodes . GET_USER_WALLS ) ; retroCallbackList . add ( retroCallback ) ; mYeloApi . getUserWalls ( userId , retroCallback ) ; mSwipeRefreshLayou...
82
java-test-1066
java
What give the userid ?
only the user walls
public void fetch My Walls ( String user Id ) { Retro Callback retro Callback ; retro Callback = new Retro Callback ( this ) ; retro Callback . set Request Id ( Http Constants . Api Response Codes . GET USER WALLS ) ; retro Callback List . add ( retro Callback ) ; m Yelo Api . get User Walls ( user Id , retro Callback ...
public void fetchMyWalls ( String userId ) { RetroCallback retroCallback ; retroCallback = new RetroCallback ( this ) ; retroCallback . setRequestId ( HttpConstants . ApiResponseCodes . GET_USER_WALLS ) ; retroCallbackList . add ( retroCallback ) ; mYeloApi . getUserWalls ( userId , retroCallback ) ; mSwipeRefreshLayou...
82
java-test-1067
java
How does the code create a new linklabel ?
with the given text
public Link Label ( String text ) { super ( text ) ; if ( Desktop . is Desktop Supported ( ) ) { set Cursor ( Cursor . get Predefined Cursor ( Cursor . HAND CURSOR ) ) ; enable Events ( Mouse Event . MOUSE EVENT MASK ) ; } }
public LinkLabel ( String text ) { super ( text ) ; if ( Desktop . isDesktopSupported ( ) ) { setCursor ( Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ; enableEvents ( MouseEvent . MOUSE_EVENT_MASK ) ; } }
53
java-test-1068
java
What does the code create with the given text ?
a new linklabel
public Link Label ( String text ) { super ( text ) ; if ( Desktop . is Desktop Supported ( ) ) { set Cursor ( Cursor . get Predefined Cursor ( Cursor . HAND CURSOR ) ) ; enable Events ( Mouse Event . MOUSE EVENT MASK ) ; } }
public LinkLabel ( String text ) { super ( text ) ; if ( Desktop . isDesktopSupported ( ) ) { setCursor ( Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ; enableEvents ( MouseEvent . MOUSE_EVENT_MASK ) ; } }
53
java-test-1070
java
What does the code write the given setting string ?
to the settings output ( if any )
private static void output Setting ( String setting ) { if ( out != null && ! written Settings . contains ( setting ) ) { if ( written Settings . size ( ) == NUM ) { out . println ( STRING + ( run Index + NUM ) ) ; } out . println ( setting ) ; written Settings . add ( setting ) ; } }
private static void outputSetting ( String setting ) { if ( out != null && ! writtenSettings . contains ( setting ) ) { if ( writtenSettings . size ( ) == _NUM ) { out . println ( STRING + ( runIndex + _NUM ) ) ; } out . println ( setting ) ; writtenSettings . add ( setting ) ; } }
70
java-test-1071
java
What does the code build ?
a regular expression that will match any stopword
public static Pattern build Stopword Pattern ( Collection < String > stopwords , Boolean case Sensitive ) { String Joiner sj = new String Joiner ( STRING ) ; for ( String s : stopwords ) { sj . add ( Pattern . quote ( s ) ) ; } if ( case Sensitive ) { return Pattern . compile ( STRING + sj . to String ( ) + STRING ) ; ...
public static Pattern buildStopwordPattern ( Collection < String > stopwords , Boolean caseSensitive ) { StringJoiner sj = new StringJoiner ( STRING ) ; for ( String s : stopwords ) { sj . add ( Pattern . quote ( s ) ) ; } if ( caseSensitive ) { return Pattern . compile ( STRING + sj . toString ( ) + STRING ) ; } else ...
100
java-test-1073
java
What does this method doesn ?
check site
@ Override public Stored Workflow Definition insert Workflow Definition ( int proj Id , int rev Id , Workflow Definition def , Zone Id workflow Time Zone ) throws Resource Conflict Exception { String config Text = cfm . to Text ( def . get Config ( ) ) ; String zone Id = workflow Time Zone . get Id ( ) ; long config Di...
@ Override public StoredWorkflowDefinition insertWorkflowDefinition ( int projId , int revId , WorkflowDefinition def , ZoneId workflowTimeZone ) throws ResourceConflictException { String configText = cfm . toText ( def . getConfig ( ) ) ; String zoneId = workflowTimeZone . getId ( ) ; long configDigest = WorkflowConfi...
232
java-test-1076
java
How does the path portion of the uri scan ?
everything after the host and port
public Path Impl fs Walk ( String user Path , Map < String , Object > attributes , String uri ) { String path ; String query = null ; int query Index = uri . index Of ( STRING ) ; if ( query Index >= NUM ) { path = uri . substring ( NUM , query Index ) ; query = uri . substring ( query Index + NUM ) ; } else path = uri...
public PathImpl fsWalk ( String userPath , Map < String , Object > attributes , String uri ) { String path ; String query = null ; int queryIndex = uri . indexOf ( STRING ) ; if ( queryIndex >= _NUM ) { path = uri . substring ( _NUM , queryIndex ) ; query = uri . substring ( queryIndex + _NUM ) ; } else path = uri ; if...
110
java-test-1079
java
What did the code read ?
a fragmented utf - 8 string
public String read Fragmented UTF ( ) throws IO Exception { String Buffer result = new String Buffer ( super . read UTF ( ) ) ; boolean fragment Flag = super . read Boolean ( ) ; while ( fragment Flag != END REACHED ) { result . append ( super . read UTF ( ) ) ; fragment Flag = super . read Boolean ( ) ; } return resul...
public String readFragmentedUTF ( ) throws IOException { StringBuffer result = new StringBuffer ( super . readUTF ( ) ) ; boolean fragmentFlag = super . readBoolean ( ) ; while ( fragmentFlag != END_REACHED ) { result . append ( super . readUTF ( ) ) ; fragmentFlag = super . readBoolean ( ) ; } return result . toString...
79
java-test-1080
java
What does local stores contain ?
primary and backup entries
private void check Local Store ( Ignite ignite , Cache Store < Integer , Ignite Bi Tuple < Integer , ? > > store , String name , Set < Integer > keys ) { check Local Store ( ignite , store , name , keys , BOOL ) ; }
private void checkLocalStore ( Ignite ignite , CacheStore < Integer , IgniteBiTuple < Integer , ? > > store , String name , Set < Integer > keys ) { checkLocalStore ( ignite , store , name , keys , _BOOL ) ; }
51
java-test-1081
java
What contains primary and backup entries ?
local stores
private void check Local Store ( Ignite ignite , Cache Store < Integer , Ignite Bi Tuple < Integer , ? > > store , String name , Set < Integer > keys ) { check Local Store ( ignite , store , name , keys , BOOL ) ; }
private void checkLocalStore ( Ignite ignite , CacheStore < Integer , IgniteBiTuple < Integer , ? > > store , String name , Set < Integer > keys ) { checkLocalStore ( ignite , store , name , keys , _BOOL ) ; }
51
java-test-1082
java
How does the code add a transaction to this block ?
with or without checking the sanity of doing so
void add Transaction ( Transaction t , boolean run Sanity Checks ) { un Cache Transactions ( ) ; if ( transactions == null ) { transactions = new Array List < Transaction > ( ) ; } t . set Parent ( this ) ; if ( run Sanity Checks && transactions . size ( ) == NUM && ! t . is Coin Base ( ) ) throw new Runtime Exception ...
void addTransaction ( Transaction t , boolean runSanityChecks ) { unCacheTransactions ( ) ; if ( transactions == null ) { transactions = new ArrayList < Transaction > ( ) ; } t . setParent ( this ) ; if ( runSanityChecks && transactions . size ( ) == _NUM && ! t . isCoinBase ( ) ) throw new RuntimeException ( STRING + ...
143
java-test-1083
java
What does the code find ?
all the matches of a pattern in a charsequence
public static Iterable < Match Result > find Matches ( Pattern pattern , Char Sequence s ) { List < Match Result > results = new Array List < Match Result > ( ) ; for ( Matcher m = pattern . matcher ( s ) ; m . find ( ) ; ) results . add ( m . to Match Result ( ) ) ; return results ; }
public static Iterable < MatchResult > findMatches ( Pattern pattern , CharSequence s ) { List < MatchResult > results = new ArrayList < MatchResult > ( ) ; for ( Matcher m = pattern . matcher ( s ) ; m . find ( ) ; ) results . add ( m . toMatchResult ( ) ) ; return results ; }
71
java-test-1084
java
What can the compact form add ?
property attributes
private void start Outer RDF Description ( XMP Node schema Node , int level ) throws IO Exception { write Indent ( level + NUM ) ; write ( RDF SCHEMA START ) ; write Tree Name ( ) ; Set < String > used Prefixes = new Hash Set < > ( ) ; used Prefixes . add ( STRING ) ; used Prefixes . add ( STRING ) ; declare Used Names...
private void startOuterRDFDescription ( XMPNode schemaNode , int level ) throws IOException { writeIndent ( level + _NUM ) ; write ( RDF_SCHEMA_START ) ; writeTreeName ( ) ; Set < String > usedPrefixes = new HashSet < > ( ) ; usedPrefixes . add ( STRING ) ; usedPrefixes . add ( STRING ) ; declareUsedNamespaces ( schema...
97
java-test-1085
java
What can add property attributes ?
the compact form
private void start Outer RDF Description ( XMP Node schema Node , int level ) throws IO Exception { write Indent ( level + NUM ) ; write ( RDF SCHEMA START ) ; write Tree Name ( ) ; Set < String > used Prefixes = new Hash Set < > ( ) ; used Prefixes . add ( STRING ) ; used Prefixes . add ( STRING ) ; declare Used Names...
private void startOuterRDFDescription ( XMPNode schemaNode , int level ) throws IOException { writeIndent ( level + _NUM ) ; write ( RDF_SCHEMA_START ) ; writeTreeName ( ) ; Set < String > usedPrefixes = new HashSet < > ( ) ; usedPrefixes . add ( STRING ) ; usedPrefixes . add ( STRING ) ; declareUsedNamespaces ( schema...
97
java-test-1086
java
For what purpose do the element leave open ?
so that the compact form can add property attributes
private void start Outer RDF Description ( XMP Node schema Node , int level ) throws IO Exception { write Indent ( level + NUM ) ; write ( RDF SCHEMA START ) ; write Tree Name ( ) ; Set < String > used Prefixes = new Hash Set < > ( ) ; used Prefixes . add ( STRING ) ; used Prefixes . add ( STRING ) ; declare Used Names...
private void startOuterRDFDescription ( XMPNode schemaNode , int level ) throws IOException { writeIndent ( level + _NUM ) ; write ( RDF_SCHEMA_START ) ; writeTreeName ( ) ; Set < String > usedPrefixes = new HashSet < > ( ) ; usedPrefixes . add ( STRING ) ; usedPrefixes . add ( STRING ) ; declareUsedNamespaces ( schema...
97
java-test-1087
java
What does the code start ?
the outer rdf : description element , including all needed xmlns attributes
private void start Outer RDF Description ( XMP Node schema Node , int level ) throws IO Exception { write Indent ( level + NUM ) ; write ( RDF SCHEMA START ) ; write Tree Name ( ) ; Set < String > used Prefixes = new Hash Set < > ( ) ; used Prefixes . add ( STRING ) ; used Prefixes . add ( STRING ) ; declare Used Names...
private void startOuterRDFDescription ( XMPNode schemaNode , int level ) throws IOException { writeIndent ( level + _NUM ) ; write ( RDF_SCHEMA_START ) ; writeTreeName ( ) ; Set < String > usedPrefixes = new HashSet < > ( ) ; usedPrefixes . add ( STRING ) ; usedPrefixes . add ( STRING ) ; declareUsedNamespaces ( schema...
97
java-test-1091
java
What does the code draw ?
a 3d oval
public void draw 3 D Oval ( Graphics g , Color colors [ ] , int x , int y , int w , int h , boolean raised ) { Color c = g . get Color ( ) ; g . set Color ( raised ? colors [ HIGHLIGHT COLOR ] : colors [ SHADOW COLOR ] ) ; g . draw Arc ( x , y , w , h , NUM , NUM ) ; g . set Color ( raised ? colors [ SHADOW COLOR ] : c...
public void draw3DOval ( Graphics g , Color colors [ ] , int x , int y , int w , int h , boolean raised ) { Color c = g . getColor ( ) ; g . setColor ( raised ? colors [ HIGHLIGHT_COLOR ] : colors [ SHADOW_COLOR ] ) ; g . drawArc ( x , y , w , h , _NUM , _NUM ) ; g . setColor ( raised ? colors [ SHADOW_COLOR ] : colors...
126
java-test-1092
java
What have 0 / 1 / 2 / . . . 6 / 7 car / pt in ?
how many persons
private void write Legs Distribution ( final String plans File , final String output File ) { Map < Id < Person > , List < String > > person Id 2 legs = get Legs For All Plans In Choice Set ( plans File ) ; Map < Id < Person > , double [ ] > person Id 2 Legs Counts = get Person Id 2 Legs Count In Choice Set ( person Id...
private void writeLegsDistribution ( final String plansFile , final String outputFile ) { Map < Id < Person > , List < String > > personId2legs = getLegsForAllPlansInChoiceSet ( plansFile ) ; Map < Id < Person > , double [ ] > personId2LegsCounts = getPersonId2LegsCountInChoiceSet ( personId2legs ) ; int carIndex = _NU...
530
java-test-1093
java
What do 16699 persons have in their choice set ?
0 car
private void write Legs Distribution ( final String plans File , final String output File ) { Map < Id < Person > , List < String > > person Id 2 legs = get Legs For All Plans In Choice Set ( plans File ) ; Map < Id < Person > , double [ ] > person Id 2 Legs Counts = get Person Id 2 Legs Count In Choice Set ( person Id...
private void writeLegsDistribution ( final String plansFile , final String outputFile ) { Map < Id < Person > , List < String > > personId2legs = getLegsForAllPlansInChoiceSet ( plansFile ) ; Map < Id < Person > , double [ ] > personId2LegsCounts = getPersonId2LegsCountInChoiceSet ( personId2legs ) ; int carIndex = _NU...
530
java-test-1094
java
What have 0 pt in their choice set ?
66564 persons
private void write Legs Distribution ( final String plans File , final String output File ) { Map < Id < Person > , List < String > > person Id 2 legs = get Legs For All Plans In Choice Set ( plans File ) ; Map < Id < Person > , double [ ] > person Id 2 Legs Counts = get Person Id 2 Legs Count In Choice Set ( person Id...
private void writeLegsDistribution ( final String plansFile , final String outputFile ) { Map < Id < Person > , List < String > > personId2legs = getLegsForAllPlansInChoiceSet ( plansFile ) ; Map < Id < Person > , double [ ] > personId2LegsCounts = getPersonId2LegsCountInChoiceSet ( personId2legs ) ; int carIndex = _NU...
530
java-test-1095
java
What have the code write ?
how many persons have 0 / 1 / 2 / . . . 6 / 7 car / pt in their plans choice set ? " . for e . g . = = 0 16699 . 0 66564 . 0 = = indicates that 16699 persons have 0 car in their choice set and 66564 persons have 0 pt in their choice set
private void write Legs Distribution ( final String plans File , final String output File ) { Map < Id < Person > , List < String > > person Id 2 legs = get Legs For All Plans In Choice Set ( plans File ) ; Map < Id < Person > , double [ ] > person Id 2 Legs Counts = get Person Id 2 Legs Count In Choice Set ( person Id...
private void writeLegsDistribution ( final String plansFile , final String outputFile ) { Map < Id < Person > , List < String > > personId2legs = getLegsForAllPlansInChoiceSet ( plansFile ) ; Map < Id < Person > , double [ ] > personId2LegsCounts = getPersonId2LegsCountInChoiceSet ( personId2legs ) ; int carIndex = _NU...
530
java-test-1096
java
What do how many persons have ?
0 / 1 / 2 / . . . 6 / 7 car / pt in
private void write Legs Distribution ( final String plans File , final String output File ) { Map < Id < Person > , List < String > > person Id 2 legs = get Legs For All Plans In Choice Set ( plans File ) ; Map < Id < Person > , double [ ] > person Id 2 Legs Counts = get Person Id 2 Legs Count In Choice Set ( person Id...
private void writeLegsDistribution ( final String plansFile , final String outputFile ) { Map < Id < Person > , List < String > > personId2legs = getLegsForAllPlansInChoiceSet ( plansFile ) ; Map < Id < Person > , double [ ] > personId2LegsCounts = getPersonId2LegsCountInChoiceSet ( personId2legs ) ; int carIndex = _NU...
530
java-test-1097
java
What has 0 car in their choice set ?
16699 persons
private void write Legs Distribution ( final String plans File , final String output File ) { Map < Id < Person > , List < String > > person Id 2 legs = get Legs For All Plans In Choice Set ( plans File ) ; Map < Id < Person > , double [ ] > person Id 2 Legs Counts = get Person Id 2 Legs Count In Choice Set ( person Id...
private void writeLegsDistribution ( final String plansFile , final String outputFile ) { Map < Id < Person > , List < String > > personId2legs = getLegsForAllPlansInChoiceSet ( plansFile ) ; Map < Id < Person > , double [ ] > personId2LegsCounts = getPersonId2LegsCountInChoiceSet ( personId2legs ) ; int carIndex = _NU...
530
java-test-1098
java
What do 66564 persons have in their choice set ?
0 pt
private void write Legs Distribution ( final String plans File , final String output File ) { Map < Id < Person > , List < String > > person Id 2 legs = get Legs For All Plans In Choice Set ( plans File ) ; Map < Id < Person > , double [ ] > person Id 2 Legs Counts = get Person Id 2 Legs Count In Choice Set ( person Id...
private void writeLegsDistribution ( final String plansFile , final String outputFile ) { Map < Id < Person > , List < String > > personId2legs = getLegsForAllPlansInChoiceSet ( plansFile ) ; Map < Id < Person > , double [ ] > personId2LegsCounts = getPersonId2LegsCountInChoiceSet ( personId2legs ) ; int carIndex = _NU...
530
java-test-1099
java
What creates a map of exportmask uri to list of initiator uris ?
simple conversion routine
protected Map < URI , List < URI > > to Export Mask To Initiator UR Is ( Map < String , Set < URI > > initiator To Export Masks , Map < String , URI > port Name To Initiator URI ) { Map < URI , List < URI > > map = Collections . EMPTY MAP ; if ( initiator To Export Masks != null && initiator To Export Masks . size ( ) ...
protected Map < URI , List < URI > > toExportMaskToInitiatorURIs ( Map < String , Set < URI > > initiatorToExportMasks , Map < String , URI > portNameToInitiatorURI ) { Map < URI , List < URI > > map = Collections . EMPTY_MAP ; if ( initiatorToExportMasks != null && initiatorToExportMasks . size ( ) > _NUM ) { map = ne...
230
java-test-1100
java
What does simple conversion routine create to list of initiator uris ?
a map of exportmask uri
protected Map < URI , List < URI > > to Export Mask To Initiator UR Is ( Map < String , Set < URI > > initiator To Export Masks , Map < String , URI > port Name To Initiator URI ) { Map < URI , List < URI > > map = Collections . EMPTY MAP ; if ( initiator To Export Masks != null && initiator To Export Masks . size ( ) ...
protected Map < URI , List < URI > > toExportMaskToInitiatorURIs ( Map < String , Set < URI > > initiatorToExportMasks , Map < String , URI > portNameToInitiatorURI ) { Map < URI , List < URI > > map = Collections . EMPTY_MAP ; if ( initiatorToExportMasks != null && initiatorToExportMasks . size ( ) > _NUM ) { map = ne...
230
java-test-1101
java
What does the code update ?
the current dialogue state displayed in the component
@ Override public void trigger ( Dialogue State state , Collection < String > updated Vars ) { if ( frame != null && frame . is Visible ( ) ) { chat Tab . trigger ( state , updated Vars ) ; state Monitor Tab . refresh ( state , updated Vars ) ; } refresh ( ) ; }
@ Override public void trigger ( DialogueState state , Collection < String > updatedVars ) { if ( frame != null && frame . isVisible ( ) ) { chatTab . trigger ( state , updatedVars ) ; stateMonitorTab . refresh ( state , updatedVars ) ; } refresh ( ) ; }
61
java-test-1102
java
When must version be of the from ?
xx . xx . xx . xx or xx . xx . xx or xx . xx or xx where xx is a positive integer
public Version ( final String version ) { final String Tokenizer tokens = new String Tokenizer ( version , STRING , BOOL ) ; if ( tokens . count Tokens ( ) < NUM ) { throw new Illegal Argument Exception ( STRING + version ) ; } try { m major = Integer . parse Int ( tokens . next Token ( ) ) ; if ( tokens . has More Tok...
public Version ( final String version ) { final StringTokenizer tokens = new StringTokenizer ( version , STRING , _BOOL ) ; if ( tokens . countTokens ( ) < _NUM ) { throw new IllegalArgumentException ( STRING + version ) ; } try { m_major = Integer . parseInt ( tokens . nextToken ( ) ) ; if ( tokens . hasMoreTokens ( )...
197
java-test-1103
java
What does the code create ?
a new h2fullprunedblockstore
public H2 Full Pruned Block Store ( Network Parameters params , String db Name , int full Store Depth ) throws Block Store Exception { this . params = params ; this . full Store Depth = full Store Depth ; connection URL = STRING + db Name + STRING ; conn = new Thread Local < Connection > ( ) ; all Connections = new Lin...
public H2FullPrunedBlockStore ( NetworkParameters params , String dbName , int fullStoreDepth ) throws BlockStoreException { this . params = params ; this . fullStoreDepth = fullStoreDepth ; connectionURL = STRING + dbName + STRING ; conn = new ThreadLocal < Connection > ( ) ; allConnections = new LinkedList < Connecti...
163
java-test-1105
java
Where does the code evaluate an xpath expression ?
on xml nodes
public Object exec ( List arguments ) throws Template Model Exception { if ( arguments . size ( ) != NUM ) { throw new Template Model Exception ( STRING ) ; } return derive Model ( navigator . apply X Path ( nodes , ( String ) arguments . get ( NUM ) , namespaces ) ) ; }
public Object exec ( List arguments ) throws TemplateModelException { if ( arguments . size ( ) != _NUM ) { throw new TemplateModelException ( STRING ) ; } return deriveModel ( navigator . applyXPath ( nodes , ( String ) arguments . get ( _NUM ) , namespaces ) ) ; }
60
java-test-1106
java
What does the code create ?
a unique new primary key name for the given mailobject
public static String new Name ( Mail mail ) throws Messaging Exception { String old Name = mail . get Name ( ) ; if ( old Name . length ( ) > NUM ) { int count = NUM ; int index = NUM ; while ( ( index = old Name . index Of ( STRING , index + NUM ) ) >= NUM ) { count ++ ; } if ( count > NUM ) { throw new Messaging Exce...
public static String newName ( Mail mail ) throws MessagingException { String oldName = mail . getName ( ) ; if ( oldName . length ( ) > _NUM ) { int count = _NUM ; int index = _NUM ; while ( ( index = oldName . indexOf ( STRING , index + _NUM ) ) >= _NUM ) { count ++ ; } if ( count > _NUM ) { throw new MessagingExcept...
122
java-test-1107
java
What might this collect call trigger ?
execution of any pending transformations
public static Matrix Block to Matrix Block ( Java Pair RDD < Matrix Indexes , Matrix Cell > rdd , int rlen , int clen , long nnz ) throws DML Runtime Exception { long t0 = DML Script . STATISTICS ? System . nano Time ( ) : NUM ; Matrix Block out = null ; long lnnz = ( nnz >= NUM ) ? nnz : ( long ) rlen * clen ; boolean...
public static MatrixBlock toMatrixBlock ( JavaPairRDD < MatrixIndexes , MatrixCell > rdd , int rlen , int clen , long nnz ) throws DMLRuntimeException { long t0 = DMLScript . STATISTICS ? System . nanoTime ( ) : _NUM ; MatrixBlock out = null ; long lnnz = ( nnz >= _NUM ) ? nnz : ( long ) rlen * clen ; boolean sparse = ...
270
java-test-1108
java
What might trigger execution of any pending transformations ?
this collect call
public static Matrix Block to Matrix Block ( Java Pair RDD < Matrix Indexes , Matrix Cell > rdd , int rlen , int clen , long nnz ) throws DML Runtime Exception { long t0 = DML Script . STATISTICS ? System . nano Time ( ) : NUM ; Matrix Block out = null ; long lnnz = ( nnz >= NUM ) ? nnz : ( long ) rlen * clen ; boolean...
public static MatrixBlock toMatrixBlock ( JavaPairRDD < MatrixIndexes , MatrixCell > rdd , int rlen , int clen , long nnz ) throws DMLRuntimeException { long t0 = DMLScript . STATISTICS ? System . nanoTime ( ) : _NUM ; MatrixBlock out = null ; long lnnz = ( nnz >= _NUM ) ? nnz : ( long ) rlen * clen ; boolean sparse = ...
270
java-test-1109
java
When do we walk through everything ?
after the loop
private boolean should Skip Children ( CCFG Node node , Set < CCFG Edge > handled Back Edges , Set < CCFG Node > children , boolean handle Loops ) { if ( node == null || children == null ) return BOOL ; boolean skip Children = BOOL ; if ( handle Loops ) { for ( CCFG Node child : children ) { CCFG Edge current Edge = cc...
private boolean shouldSkipChildren ( CCFGNode node , Set < CCFGEdge > handledBackEdges , Set < CCFGNode > children , boolean handleLoops ) { if ( node == null || children == null ) return _BOOL ; boolean skipChildren = _BOOL ; if ( handleLoops ) { for ( CCFGNode child : children ) { CCFGEdge currentEdge = ccfg . getEdg...
108
java-test-1110
java
What did we make ?
our two runs through the loop
private boolean should Skip Children ( CCFG Node node , Set < CCFG Edge > handled Back Edges , Set < CCFG Node > children , boolean handle Loops ) { if ( node == null || children == null ) return BOOL ; boolean skip Children = BOOL ; if ( handle Loops ) { for ( CCFG Node child : children ) { CCFG Edge current Edge = cc...
private boolean shouldSkipChildren ( CCFGNode node , Set < CCFGEdge > handledBackEdges , Set < CCFGNode > children , boolean handleLoops ) { if ( node == null || children == null ) return _BOOL ; boolean skipChildren = _BOOL ; if ( handleLoops ) { for ( CCFGNode child : children ) { CCFGEdge currentEdge = ccfg . getEdg...
108
java-test-1111
java
Do we follow backedges ?
No
private boolean should Skip Children ( CCFG Node node , Set < CCFG Edge > handled Back Edges , Set < CCFG Node > children , boolean handle Loops ) { if ( node == null || children == null ) return BOOL ; boolean skip Children = BOOL ; if ( handle Loops ) { for ( CCFG Node child : children ) { CCFG Edge current Edge = cc...
private boolean shouldSkipChildren ( CCFGNode node , Set < CCFGEdge > handledBackEdges , Set < CCFGNode > children , boolean handleLoops ) { if ( node == null || children == null ) return _BOOL ; boolean skipChildren = _BOOL ; if ( handleLoops ) { for ( CCFGNode child : children ) { CCFGEdge currentEdge = ccfg . getEdg...
108
java-test-1112
java
When did nodes visit ?
previously
private boolean should Skip Children ( CCFG Node node , Set < CCFG Edge > handled Back Edges , Set < CCFG Node > children , boolean handle Loops ) { if ( node == null || children == null ) return BOOL ; boolean skip Children = BOOL ; if ( handle Loops ) { for ( CCFG Node child : children ) { CCFG Edge current Edge = cc...
private boolean shouldSkipChildren ( CCFGNode node , Set < CCFGEdge > handledBackEdges , Set < CCFGNode > children , boolean handleLoops ) { if ( node == null || children == null ) return _BOOL ; boolean skipChildren = _BOOL ; if ( handleLoops ) { for ( CCFGNode child : children ) { CCFGEdge currentEdge = ccfg . getEdg...
108
java-test-1113
java
When are the possible activedefs have determined ?
already
private boolean should Skip Children ( CCFG Node node , Set < CCFG Edge > handled Back Edges , Set < CCFG Node > children , boolean handle Loops ) { if ( node == null || children == null ) return BOOL ; boolean skip Children = BOOL ; if ( handle Loops ) { for ( CCFG Node child : children ) { CCFG Edge current Edge = cc...
private boolean shouldSkipChildren ( CCFGNode node , Set < CCFGEdge > handledBackEdges , Set < CCFGNode > children , boolean handleLoops ) { if ( node == null || children == null ) return _BOOL ; boolean skipChildren = _BOOL ; if ( handleLoops ) { for ( CCFGNode child : children ) { CCFGEdge currentEdge = ccfg . getEdg...
108
java-test-1114
java
Where do we find all intra - method pairs ?
within loops
private boolean should Skip Children ( CCFG Node node , Set < CCFG Edge > handled Back Edges , Set < CCFG Node > children , boolean handle Loops ) { if ( node == null || children == null ) return BOOL ; boolean skip Children = BOOL ; if ( handle Loops ) { for ( CCFG Node child : children ) { CCFG Edge current Edge = cc...
private boolean shouldSkipChildren ( CCFGNode node , Set < CCFGEdge > handledBackEdges , Set < CCFGNode > children , boolean handleLoops ) { if ( node == null || children == null ) return _BOOL ; boolean skipChildren = _BOOL ; if ( handleLoops ) { for ( CCFGNode child : children ) { CCFGEdge currentEdge = ccfg . getEdg...
108
java-test-1115
java
In which direction do we walk after the loop after the loop ?
through everything
private boolean should Skip Children ( CCFG Node node , Set < CCFG Edge > handled Back Edges , Set < CCFG Node > children , boolean handle Loops ) { if ( node == null || children == null ) return BOOL ; boolean skip Children = BOOL ; if ( handle Loops ) { for ( CCFG Node child : children ) { CCFG Edge current Edge = cc...
private boolean shouldSkipChildren ( CCFGNode node , Set < CCFGEdge > handledBackEdges , Set < CCFGNode > children , boolean handleLoops ) { if ( node == null || children == null ) return _BOOL ; boolean skipChildren = _BOOL ; if ( handleLoops ) { for ( CCFGNode child : children ) { CCFGEdge currentEdge = ccfg . getEdg...
108
java-test-1116
java
What do we find within loops ?
all intra - method pairs
private boolean should Skip Children ( CCFG Node node , Set < CCFG Edge > handled Back Edges , Set < CCFG Node > children , boolean handle Loops ) { if ( node == null || children == null ) return BOOL ; boolean skip Children = BOOL ; if ( handle Loops ) { for ( CCFG Node child : children ) { CCFG Edge current Edge = cc...
private boolean shouldSkipChildren ( CCFGNode node , Set < CCFGEdge > handledBackEdges , Set < CCFGNode > children , boolean handleLoops ) { if ( node == null || children == null ) return _BOOL ; boolean skipChildren = _BOOL ; if ( handleLoops ) { for ( CCFGNode child : children ) { CCFGEdge currentEdge = ccfg . getEdg...
108
java-test-1117
java
When do we don ?
after we make our two runs through the loop
private boolean should Skip Children ( CCFG Node node , Set < CCFG Edge > handled Back Edges , Set < CCFG Node > children , boolean handle Loops ) { if ( node == null || children == null ) return BOOL ; boolean skip Children = BOOL ; if ( handle Loops ) { for ( CCFG Node child : children ) { CCFG Edge current Edge = cc...
private boolean shouldSkipChildren ( CCFGNode node , Set < CCFGEdge > handledBackEdges , Set < CCFGNode > children , boolean handleLoops ) { if ( node == null || children == null ) return _BOOL ; boolean skipChildren = _BOOL ; if ( handleLoops ) { for ( CCFGNode child : children ) { CCFGEdge currentEdge = ccfg . getEdg...
108
java-test-1118
java
Do we visit nodes after our current node after our current node ?
No
private boolean should Skip Children ( CCFG Node node , Set < CCFG Edge > handled Back Edges , Set < CCFG Node > children , boolean handle Loops ) { if ( node == null || children == null ) return BOOL ; boolean skip Children = BOOL ; if ( handle Loops ) { for ( CCFG Node child : children ) { CCFG Edge current Edge = cc...
private boolean shouldSkipChildren ( CCFGNode node , Set < CCFGEdge > handledBackEdges , Set < CCFGNode > children , boolean handleLoops ) { if ( node == null || children == null ) return _BOOL ; boolean skipChildren = _BOOL ; if ( handleLoops ) { for ( CCFGNode child : children ) { CCFGEdge currentEdge = ccfg . getEdg...
108
java-test-1119
java
What does this consider ?
order relevant
boolean same Members ( Array List < Relation Member Description > rmds 1 , Array List < Relation Member Description > rmds 2 ) { if ( rmds 1 == null ) { return rmds 2 == null ; } if ( rmds 2 == null ) { return rmds 1 == null ; } if ( rmds 1 . size ( ) != rmds 2 . size ( ) ) { return BOOL ; } for ( int i = NUM ; i < rmd...
boolean sameMembers ( ArrayList < RelationMemberDescription > rmds1 , ArrayList < RelationMemberDescription > rmds2 ) { if ( rmds1 == null ) { return rmds2 == null ; } if ( rmds2 == null ) { return rmds1 == null ; } if ( rmds1 . size ( ) != rmds2 . size ( ) ) { return _BOOL ; } for ( int i = _NUM ; i < rmds1 . size ( )...
163
java-test-1121
java
What does the code add ?
a validation error to list
public void add Error ( Element element , Error Content error ) { List < Error Content > list = errors . get ( element ) ; if ( list == null ) { list = Lists . new Array List ( ) ; errors . put ( element , list ) ; } list . add ( error ) ; }
public void addError ( Element element , ErrorContent error ) { List < ErrorContent > list = errors . get ( element ) ; if ( list == null ) { list = Lists . newArrayList ( ) ; errors . put ( element , list ) ; } list . add ( error ) ; }
62
java-test-1122
java
What produces a malformed location other cases ?
sany
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1123
java
What does it doesn ?
t find
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1124
java
What does that be ?
to be fixed
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1125
java
Where does sany produce a malformed location ?
other cases
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1126
java
For what purpose is parseint called when ?
to parse it
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1127
java
What assumes that the line number is preceded either by " line " or by " line " that begins the error message , and that the column number is preceded by either " column " or " col " ?
a kludge
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1128
java
What does sany produce other cases ?
a malformed location
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1129
java
How does a 3 - element array return ?
val with val [ 0 ] = the line number and val [ 1 ] = the column number
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1130
java
How were an error message returns sany on some errors ?
with location line 2147483647
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1131
java
When do by ll do this ?
on 17 oct 2010
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1132
java
When does values of - 1 return ?
when an exception is thrown
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1133
java
What does the fix be hoping that the comment is accurate and the return value of - 1 is expected by the caller ?
to return values of - 1 when an exception is thrown
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1134
java
What is to return values of - 1 when an exception is thrown hoping that the comment is accurate and the return value of - 1 is expected by the caller ?
the fix
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1135
java
Where should this be fixed perhaps ?
in sany
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1136
java
For what purpose were an error message returns sany with location line 2147483647 ?
on some errors
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1137
java
What does a kludge assume ?
that the line number is preceded either by " line " or by " line " that begins the error message , and that the column number is preceded by either " column " or " col "
private static final int [ ] find Line And Column ( final int idx , final String message ) { int [ ] val = { - NUM , - NUM , message . length ( ) } ; int begin Index = message . index Of ( STRING , idx ) ; int offset = NUM ; if ( begin Index != idx ) { begin Index = - NUM ; } if ( begin Index == - NUM ) { begin Index =...
private static final int [ ] findLineAndColumn ( final int idx , final String message ) { int [ ] val = { - _NUM , - _NUM , message . length ( ) } ; int beginIndex = message . indexOf ( STRING , idx ) ; int offset = _NUM ; if ( beginIndex != idx ) { beginIndex = - _NUM ; } if ( beginIndex == - _NUM ) { beginIndex = mes...
501
java-test-1153
java
Where does the code deselect the items ?
at the given zero - relative indices in the receiver
private void deselect ( final int [ ] indices , final boolean should Fire Events ) { check Widget ( ) ; if ( indices == null ) { SWT . error ( SWT . ERROR NULL ARGUMENT ) ; } final List < DL Item > to Be Removed = new Array List < DL Item > ( ) ; for ( final int index : indices ) { if ( index < NUM || index >= items . ...
private void deselect ( final int [ ] indices , final boolean shouldFireEvents ) { checkWidget ( ) ; if ( indices == null ) { SWT . error ( SWT . ERROR_NULL_ARGUMENT ) ; } final List < DLItem > toBeRemoved = new ArrayList < DLItem > ( ) ; for ( final int index : indices ) { if ( index < _NUM || index >= items . size ( ...
170
java-test-1165
java
For what purpose does the code draw a message ?
to state that there is no data to plot
protected void draw No Data Message ( Graphics 2 D g2 , Rectangle 2 D area ) { Shape saved Clip = g2 . get Clip ( ) ; g2 . clip ( area ) ; String message = this . no Data Message ; if ( message != null ) { g2 . set Font ( this . no Data Message Font ) ; g2 . set Paint ( this . no Data Message Paint ) ; Text Block block...
protected void drawNoDataMessage ( Graphics2D g2 , Rectangle2D area ) { Shape savedClip = g2 . getClip ( ) ; g2 . clip ( area ) ; String message = this . noDataMessage ; if ( message != null ) { g2 . setFont ( this . noDataMessageFont ) ; g2 . setPaint ( this . noDataMessagePaint ) ; TextBlock block = TextUtilities . c...
176