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-8687
java
What does this not save to the date picker settings class ?
the default border properties
private Array List < Calendar Border Properties > z Get Default Border Properties List ( ) { Array List < Calendar Border Properties > results = new Array List < Calendar Border Properties > ( ) ; Color default Date Box Border Color = new Color ( NUM , NUM , NUM ) ; Color default Weekday Endcaps Border Color = color Ba...
private ArrayList < CalendarBorderProperties > zGetDefaultBorderPropertiesList ( ) { ArrayList < CalendarBorderProperties > results = new ArrayList < CalendarBorderProperties > ( ) ; Color defaultDateBoxBorderColor = new Color ( _NUM , _NUM , _NUM ) ; Color defaultWeekdayEndcapsBorderColor = colorBackgroundWeekdayLabel...
229
java-test-8688
java
What does this create ?
a list of default border properties for the calendar
private Array List < Calendar Border Properties > z Get Default Border Properties List ( ) { Array List < Calendar Border Properties > results = new Array List < Calendar Border Properties > ( ) ; Color default Date Box Border Color = new Color ( NUM , NUM , NUM ) ; Color default Weekday Endcaps Border Color = color Ba...
private ArrayList < CalendarBorderProperties > zGetDefaultBorderPropertiesList ( ) { ArrayList < CalendarBorderProperties > results = new ArrayList < CalendarBorderProperties > ( ) ; Color defaultDateBoxBorderColor = new Color ( _NUM , _NUM , _NUM ) ; Color defaultWeekdayEndcapsBorderColor = colorBackgroundWeekdayLabel...
229
java-test-8689
java
What does this not set the upper left corner calendar label ?
to be visible or invisible
private Array List < Calendar Border Properties > z Get Default Border Properties List ( ) { Array List < Calendar Border Properties > results = new Array List < Calendar Border Properties > ( ) ; Color default Date Box Border Color = new Color ( NUM , NUM , NUM ) ; Color default Weekday Endcaps Border Color = color Ba...
private ArrayList < CalendarBorderProperties > zGetDefaultBorderPropertiesList ( ) { ArrayList < CalendarBorderProperties > results = new ArrayList < CalendarBorderProperties > ( ) ; Color defaultDateBoxBorderColor = new Color ( _NUM , _NUM , _NUM ) ; Color defaultWeekdayEndcapsBorderColor = colorBackgroundWeekdayLabel...
229
java-test-8690
java
What does the code get ?
all smb shares of storagesystem
private Hash Map < String , Hash Set < String > > discover All SMB Shares ( final Storage System storage System , final List < Isilon Access Zone > isilon Access Zones ) { String resume Token = null ; Hash Map < String , Hash Set < String > > all Shares = new Hash Map < String , Hash Set < String > > ( ) ; URI storage ...
private HashMap < String , HashSet < String > > discoverAllSMBShares ( final StorageSystem storageSystem , final List < IsilonAccessZone > isilonAccessZones ) { String resumeToken = null ; HashMap < String , HashSet < String > > allShares = new HashMap < String , HashSet < String > > ( ) ; URI storageSystemId = storage...
461
java-test-8693
java
By how much does the code turn the items in the list ?
by p_factor times 90 degree around the current position
public void rotate 90 degree ( int p factor ) { if ( p factor == NUM ) return ; Brd Components components = r brd . brd components ; for ( Brd Component curr component : component list ) { components . rotate 90 deg ( curr component . id no , p factor , current position ) ; } clearance violations = new Linked List < Br...
public void rotate_90_degree ( int p_factor ) { if ( p_factor == _NUM ) return ; BrdComponents components = r_brd . brd_components ; for ( BrdComponent curr_component : component_list ) { components . rotate_90_deg ( curr_component . id_no , p_factor , current_position ) ; } clearance_violations = new LinkedList < BrdI...
174
java-test-8694
java
What does the code turn by p_factor times 90 degree around the current position ?
the items in the list
public void rotate 90 degree ( int p factor ) { if ( p factor == NUM ) return ; Brd Components components = r brd . brd components ; for ( Brd Component curr component : component list ) { components . rotate 90 deg ( curr component . id no , p factor , current position ) ; } clearance violations = new Linked List < Br...
public void rotate_90_degree ( int p_factor ) { if ( p_factor == _NUM ) return ; BrdComponents components = r_brd . brd_components ; for ( BrdComponent curr_component : component_list ) { components . rotate_90_deg ( curr_component . id_no , p_factor , current_position ) ; } clearance_violations = new LinkedList < BrdI...
174
java-test-8697
java
What does the code create ?
a unique subset prefix to be added to the font name when the font is embedded and subset
protected static String create Subset Prefix ( ) { String Builder s = new String Builder ( STRING ) ; for ( int k = NUM ; k < NUM ; ++ k ) { s . append ( ( char ) ( Math . random ( ) * NUM + STRING ) ) ; } return s + STRING ; }
protected static String createSubsetPrefix ( ) { StringBuilder s = new StringBuilder ( STRING ) ; for ( int k = _NUM ; k < _NUM ; ++ k ) { s . append ( ( char ) ( Math . random ( ) * _NUM + STRING ) ) ; } return s + STRING ; }
62
java-test-8698
java
When be a unique subset prefix added to the font name ?
when the font is embedded and subset
protected static String create Subset Prefix ( ) { String Builder s = new String Builder ( STRING ) ; for ( int k = NUM ; k < NUM ; ++ k ) { s . append ( ( char ) ( Math . random ( ) * NUM + STRING ) ) ; } return s + STRING ; }
protected static String createSubsetPrefix ( ) { StringBuilder s = new StringBuilder ( STRING ) ; for ( int k = _NUM ; k < _NUM ; ++ k ) { s . append ( ( char ) ( Math . random ( ) * _NUM + STRING ) ) ; } return s + STRING ; }
62
java-test-8699
java
What do we control ?
which mutation events are spawned
void internal Delete Data ( int offset , int count , boolean replace ) throws DOM Exception { Core Document Impl owner Document = owner Document ( ) ; if ( owner Document . error Checking ) { if ( is Read Only ( ) ) { String msg = DOM Message Formatter . format Message ( DOM Message Formatter . DOM DOMAIN , STRING , nu...
void internalDeleteData ( int offset , int count , boolean replace ) throws DOMException { CoreDocumentImpl ownerDocument = ownerDocument ( ) ; if ( ownerDocument . errorChecking ) { if ( isReadOnly ( ) ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , STRING , null ) ; throw new...
281
java-test-8700
java
What do we need within dom actions sometimes ?
to be able to control which mutation events are spawned
void internal Delete Data ( int offset , int count , boolean replace ) throws DOM Exception { Core Document Impl owner Document = owner Document ( ) ; if ( owner Document . error Checking ) { if ( is Read Only ( ) ) { String msg = DOM Message Formatter . format Message ( DOM Message Formatter . DOM DOMAIN , STRING , nu...
void internalDeleteData ( int offset , int count , boolean replace ) throws DOMException { CoreDocumentImpl ownerDocument = ownerDocument ( ) ; if ( ownerDocument . errorChecking ) { if ( isReadOnly ( ) ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , STRING , null ) ; throw new...
281
java-test-8701
java
What do this version of the deletedata operation allows ?
us to do so
void internal Delete Data ( int offset , int count , boolean replace ) throws DOM Exception { Core Document Impl owner Document = owner Document ( ) ; if ( owner Document . error Checking ) { if ( is Read Only ( ) ) { String msg = DOM Message Formatter . format Message ( DOM Message Formatter . DOM DOMAIN , STRING , nu...
void internalDeleteData ( int offset , int count , boolean replace ) throws DOMException { CoreDocumentImpl ownerDocument = ownerDocument ( ) ; if ( ownerDocument . errorChecking ) { if ( isReadOnly ( ) ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , STRING , null ) ; throw new...
281
java-test-8702
java
What do allows us to do so ?
this version of the deletedata operation
void internal Delete Data ( int offset , int count , boolean replace ) throws DOM Exception { Core Document Impl owner Document = owner Document ( ) ; if ( owner Document . error Checking ) { if ( is Read Only ( ) ) { String msg = DOM Message Formatter . format Message ( DOM Message Formatter . DOM DOMAIN , STRING , nu...
void internalDeleteData ( int offset , int count , boolean replace ) throws DOMException { CoreDocumentImpl ownerDocument = ownerDocument ( ) ; if ( ownerDocument . errorChecking ) { if ( isReadOnly ( ) ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , STRING , null ) ; throw new...
281
java-test-8703
java
Where do we need to be able to control which mutation events are spawned sometimes ?
within dom actions
void internal Delete Data ( int offset , int count , boolean replace ) throws DOM Exception { Core Document Impl owner Document = owner Document ( ) ; if ( owner Document . error Checking ) { if ( is Read Only ( ) ) { String msg = DOM Message Formatter . format Message ( DOM Message Formatter . DOM DOMAIN , STRING , nu...
void internalDeleteData ( int offset , int count , boolean replace ) throws DOMException { CoreDocumentImpl ownerDocument = ownerDocument ( ) ; if ( ownerDocument . errorChecking ) { if ( isReadOnly ( ) ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , STRING , null ) ; throw new...
281
java-test-8708
java
What will this is turn ?
the wake lock
public synchronized void sleep Until ( long time To Wake From Phone Boot ) { write Debug ( STRING + new Date ( System . current Time Millis ( ) + time To Wake From Phone Boot - System Clock . elapsed Realtime ( ) ) ) ; if ( wake Lock . is Held ( ) ) { write Debug ( STRING ) ; wake Lock . release ( ) ; } alarm Manager ....
public synchronized void sleepUntil ( long timeToWakeFromPhoneBoot ) { writeDebug ( STRING + new Date ( System . currentTimeMillis ( ) + timeToWakeFromPhoneBoot - SystemClock . elapsedRealtime ( ) ) ) ; if ( wakeLock . isHeld ( ) ) { writeDebug ( STRING ) ; wakeLock . release ( ) ; } alarmManager . set ( AlarmManager ....
96
java-test-8709
java
What do decide what to do ?
the component class
public synchronized void sleep Until ( long time To Wake From Phone Boot ) { write Debug ( STRING + new Date ( System . current Time Millis ( ) + time To Wake From Phone Boot - System Clock . elapsed Realtime ( ) ) ) ; if ( wake Lock . is Held ( ) ) { write Debug ( STRING ) ; wake Lock . release ( ) ; } alarm Manager ....
public synchronized void sleepUntil ( long timeToWakeFromPhoneBoot ) { writeDebug ( STRING + new Date ( System . currentTimeMillis ( ) + timeToWakeFromPhoneBoot - SystemClock . elapsedRealtime ( ) ) ) ; if ( wakeLock . isHeld ( ) ) { writeDebug ( STRING ) ; wakeLock . release ( ) ; } alarmManager . set ( AlarmManager ....
96
java-test-8710
java
What do the component class decide ?
what to do
public synchronized void sleep Until ( long time To Wake From Phone Boot ) { write Debug ( STRING + new Date ( System . current Time Millis ( ) + time To Wake From Phone Boot - System Clock . elapsed Realtime ( ) ) ) ; if ( wake Lock . is Held ( ) ) { write Debug ( STRING ) ; wake Lock . release ( ) ; } alarm Manager ....
public synchronized void sleepUntil ( long timeToWakeFromPhoneBoot ) { writeDebug ( STRING + new Date ( System . currentTimeMillis ( ) + timeToWakeFromPhoneBoot - SystemClock . elapsedRealtime ( ) ) ) ; if ( wakeLock . isHeld ( ) ) { writeDebug ( STRING ) ; wakeLock . release ( ) ; } alarmManager . set ( AlarmManager ....
96
java-test-8711
java
What do this allow ?
the phone to sleep ( if it wants )
public synchronized void sleep Until ( long time To Wake From Phone Boot ) { write Debug ( STRING + new Date ( System . current Time Millis ( ) + time To Wake From Phone Boot - System Clock . elapsed Realtime ( ) ) ) ; if ( wake Lock . is Held ( ) ) { write Debug ( STRING ) ; wake Lock . release ( ) ; } alarm Manager ....
public synchronized void sleepUntil ( long timeToWakeFromPhoneBoot ) { writeDebug ( STRING + new Date ( System . currentTimeMillis ( ) + timeToWakeFromPhoneBoot - SystemClock . elapsedRealtime ( ) ) ) ; if ( wakeLock . isHeld ( ) ) { writeDebug ( STRING ) ; wakeLock . release ( ) ; } alarmManager . set ( AlarmManager ....
96
java-test-8718
java
Where does a tag substitution perform ?
on a string
protected String tag Swap ( String template , String tag , String value ) { int val Len = value . length ( ) ; int tag Len = tag . length ( ) ; int idx = template . index Of ( tag ) ; while ( idx != - NUM ) { template = template . substring ( NUM , idx ) + value + template . substring ( idx + tag Len ) ; idx = template...
protected String tagSwap ( String template , String tag , String value ) { int valLen = value . length ( ) ; int tagLen = tag . length ( ) ; int idx = template . indexOf ( tag ) ; while ( idx != - _NUM ) { template = template . substring ( _NUM , idx ) + value + template . substring ( idx + tagLen ) ; idx = template . ...
97
java-test-8719
java
What performs on a string ?
a tag substitution
protected String tag Swap ( String template , String tag , String value ) { int val Len = value . length ( ) ; int tag Len = tag . length ( ) ; int idx = template . index Of ( tag ) ; while ( idx != - NUM ) { template = template . substring ( NUM , idx ) + value + template . substring ( idx + tag Len ) ; idx = template...
protected String tagSwap ( String template , String tag , String value ) { int valLen = value . length ( ) ; int tagLen = tag . length ( ) ; int idx = template . indexOf ( tag ) ; while ( idx != - _NUM ) { template = template . substring ( _NUM , idx ) + value + template . substring ( idx + tagLen ) ; idx = template . ...
97
java-test-8721
java
What did it let in case you need a special type of grabpoint ?
you define the grabpoint object to use for the node
public int add Point ( Grab Point gp , int position ) { if ( gp == null ) { return - NUM ; } int x = gp . get X ( ) ; int y = gp . get Y ( ) ; int render Type = poly . get Render Type ( ) ; Projection proj = get Projection ( ) ; if ( render Type == OM Graphic . RENDERTYPE LATLON ) { Debug . message ( STRING , STRING ) ...
public int addPoint ( GrabPoint gp , int position ) { if ( gp == null ) { return - _NUM ; } int x = gp . getX ( ) ; int y = gp . getY ( ) ; int renderType = poly . getRenderType ( ) ; Projection proj = getProjection ( ) ; if ( renderType == OMGraphic . RENDERTYPE_LATLON ) { Debug . message ( STRING , STRING ) ; if ( pr...
1,280
java-test-8722
java
What does the code add ?
a point at a certain point in the polygon coordinate list
public int add Point ( Grab Point gp , int position ) { if ( gp == null ) { return - NUM ; } int x = gp . get X ( ) ; int y = gp . get Y ( ) ; int render Type = poly . get Render Type ( ) ; Projection proj = get Projection ( ) ; if ( render Type == OM Graphic . RENDERTYPE LATLON ) { Debug . message ( STRING , STRING ) ...
public int addPoint ( GrabPoint gp , int position ) { if ( gp == null ) { return - _NUM ; } int x = gp . getX ( ) ; int y = gp . getY ( ) ; int renderType = poly . getRenderType ( ) ; Projection proj = getProjection ( ) ; if ( renderType == OMGraphic . RENDERTYPE_LATLON ) { Debug . message ( STRING , STRING ) ; if ( pr...
1,280
java-test-8723
java
What does you define ?
the grabpoint object to use for the node
public int add Point ( Grab Point gp , int position ) { if ( gp == null ) { return - NUM ; } int x = gp . get X ( ) ; int y = gp . get Y ( ) ; int render Type = poly . get Render Type ( ) ; Projection proj = get Projection ( ) ; if ( render Type == OM Graphic . RENDERTYPE LATLON ) { Debug . message ( STRING , STRING ) ...
public int addPoint ( GrabPoint gp , int position ) { if ( gp == null ) { return - _NUM ; } int x = gp . getX ( ) ; int y = gp . getY ( ) ; int renderType = poly . getRenderType ( ) ; Projection proj = getProjection ( ) ; if ( renderType == OMGraphic . RENDERTYPE_LATLON ) { Debug . message ( STRING , STRING ) ; if ( pr...
1,280
java-test-8728
java
What does the code make ?
ball tree nodes of temp nodes that were used in the merging process
protected Ball Node make Ball Tree ( Temp Node node , int startidx , int endidx , int [ ] inst List , int depth , final double root Radius ) throws Exception { Ball Node ball = null ; Instance pivot ; if ( m Max Depth < depth ) m Max Depth = depth ; if ( node . points . length > m Max Instances In Leaf && ( root Radius...
protected BallNode makeBallTree ( TempNode node , int startidx , int endidx , int [ ] instList , int depth , final double rootRadius ) throws Exception { BallNode ball = null ; Instance pivot ; if ( m_MaxDepth < depth ) m_MaxDepth = depth ; if ( node . points . length > m_MaxInstancesInLeaf && ( rootRadius == _NUM ? _B...
325
java-test-8729
java
What does it return always ?
the last full word
public static String safe Truncate ( final String value , final int length , final String filler ) { validate ( value , NULL STRING PREDICATE , NULL STRING MSG SUPPLIER ) ; if ( length == NUM ) { return STRING ; } if ( length >= value . length ( ) ) { return value ; } String [ ] words = words ( value ) ; String Joiner ...
public static String safeTruncate ( final String value , final int length , final String filler ) { validate ( value , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; if ( length == _NUM ) { return STRING ; } if ( length >= value . length ( ) ) { return value ; } String [ ] words = words ( value ) ; StringJoiner r...
152
java-test-8730
java
How does the code not cut a word ?
in half
public static String safe Truncate ( final String value , final int length , final String filler ) { validate ( value , NULL STRING PREDICATE , NULL STRING MSG SUPPLIER ) ; if ( length == NUM ) { return STRING ; } if ( length >= value . length ( ) ) { return value ; } String [ ] words = words ( value ) ; String Joiner ...
public static String safeTruncate ( final String value , final int length , final String filler ) { validate ( value , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; if ( length == _NUM ) { return STRING ; } if ( length >= value . length ( ) ) { return value ; } String [ ] words = words ( value ) ; StringJoiner r...
152
java-test-8731
java
When did this not succeed ?
within given timeout
public void wait For Ready ( long how long ) throws IO Exception { long since = System . current Time Millis ( ) ; synchronized ( state mutex ) { while ( BOOL ) { if ( state == State . DEMO ) { return ; } else if ( state == State . ERROR || state == State . DISCONNECTED ) { throw new IO Exception ( STRING ) ; } else if...
public void waitForReady ( long how_long ) throws IOException { long since = System . currentTimeMillis ( ) ; synchronized ( state_mutex ) { while ( _BOOL ) { if ( state == State . DEMO ) { return ; } else if ( state == State . ERROR || state == State . DISCONNECTED ) { throw new IOException ( STRING ) ; } else if ( ( ...
172
java-test-8732
java
What do drone switch ?
to demo mode
public void wait For Ready ( long how long ) throws IO Exception { long since = System . current Time Millis ( ) ; synchronized ( state mutex ) { while ( BOOL ) { if ( state == State . DEMO ) { return ; } else if ( state == State . ERROR || state == State . DISCONNECTED ) { throw new IO Exception ( STRING ) ; } else if...
public void waitForReady ( long how_long ) throws IOException { long since = System . currentTimeMillis ( ) ; synchronized ( state_mutex ) { while ( _BOOL ) { if ( state == State . DEMO ) { return ; } else if ( state == State . ERROR || state == State . DISCONNECTED ) { throw new IOException ( STRING ) ; } else if ( ( ...
172
java-test-8733
java
What switchs to demo mode ?
drone
public void wait For Ready ( long how long ) throws IO Exception { long since = System . current Time Millis ( ) ; synchronized ( state mutex ) { while ( BOOL ) { if ( state == State . DEMO ) { return ; } else if ( state == State . ERROR || state == State . DISCONNECTED ) { throw new IO Exception ( STRING ) ; } else if...
public void waitForReady ( long how_long ) throws IOException { long since = System . currentTimeMillis ( ) ; synchronized ( state_mutex ) { while ( _BOOL ) { if ( state == State . DEMO ) { return ; } else if ( state == State . ERROR || state == State . DISCONNECTED ) { throw new IOException ( STRING ) ; } else if ( ( ...
172
java-test-8734
java
How do the same result achieve ?
another way
public void wait For Ready ( long how long ) throws IO Exception { long since = System . current Time Millis ( ) ; synchronized ( state mutex ) { while ( BOOL ) { if ( state == State . DEMO ) { return ; } else if ( state == State . ERROR || state == State . DISCONNECTED ) { throw new IO Exception ( STRING ) ; } else if...
public void waitForReady ( long how_long ) throws IOException { long since = System . currentTimeMillis ( ) ; synchronized ( state_mutex ) { while ( _BOOL ) { if ( state == State . DEMO ) { return ; } else if ( state == State . ERROR || state == State . DISCONNECTED ) { throw new IOException ( STRING ) ; } else if ( ( ...
172
java-test-8735
java
What configured to invoke node ?
process builder
public Process Builder prepare Main Module Resolve Process Builder ( File package Root ) { final Builder < String > builder = Immutable List . < String > builder ( ) ; Node Js Binary node Binary = node Binary Provider . get ( ) ; if ( is Windows ( ) ) { builder . add ( WIN SHELL COMAMNDS ) ; builder . add ( escape Bina...
public ProcessBuilder prepareMainModuleResolveProcessBuilder ( File packageRoot ) { final Builder < String > builder = ImmutableList . < String > builder ( ) ; NodeJsBinary nodeBinary = nodeBinaryProvider . get ( ) ; if ( isWindows ( ) ) { builder . add ( WIN_SHELL_COMAMNDS ) ; builder . add ( escapeBinaryPath ( nodeBi...
171
java-test-8736
java
What does process builder configure ?
to invoke node
public Process Builder prepare Main Module Resolve Process Builder ( File package Root ) { final Builder < String > builder = Immutable List . < String > builder ( ) ; Node Js Binary node Binary = node Binary Provider . get ( ) ; if ( is Windows ( ) ) { builder . add ( WIN SHELL COMAMNDS ) ; builder . add ( escape Bina...
public ProcessBuilder prepareMainModuleResolveProcessBuilder ( File packageRoot ) { final Builder < String > builder = ImmutableList . < String > builder ( ) ; NodeJsBinary nodeBinary = nodeBinaryProvider . get ( ) ; if ( isWindows ( ) ) { builder . add ( WIN_SHELL_COMAMNDS ) ; builder . add ( escapeBinaryPath ( nodeBi...
171
java-test-8740
java
What does code subtract ?
two values
public static String generate Sub ( final I Translation Environment environment , final long offset , final Operand Size size , final String operand 1 , final String operand 2 , final List < Reil Instruction > instructions ) throws Illegal Argument Exception { Preconditions . check Not Null ( environment , STRING ) ; P...
public static String generateSub ( final ITranslationEnvironment environment , final long offset , final OperandSize size , final String operand1 , final String operand2 , final List < ReilInstruction > instructions ) throws IllegalArgumentException { Preconditions . checkNotNull ( environment , STRING ) ; Precondition...
777
java-test-8741
java
What represents an outlier ?
an ellipse
protected void draw Ellipse ( Point 2 D point , double o Radius , Graphics 2 D g2 ) { Ellipse 2 D . Double dot = new Ellipse 2 D . Double ( point . get X ( ) + o Radius / NUM , point . get Y ( ) , o Radius , o Radius ) ; g2 . draw ( dot ) ; }
protected void drawEllipse ( Point2D point , double oRadius , Graphics2D g2 ) { Ellipse2D . Double dot = new Ellipse2D . Double ( point . getX ( ) + oRadius / _NUM , point . getY ( ) , oRadius , oRadius ) ; g2 . draw ( dot ) ; }
68
java-test-8742
java
What does the code create ?
a speech bubble - shaped shape
public Shape create Shape ( final Alignment alignment , final float stroke ) { float w = get Size ( ) . width - NUM * CORNER RADIUS - stroke ; float h = get Size ( ) . height - NUM * CORNER RADIUS - stroke ; float o = CORNER RADIUS ; General Path gp = new General Path ( ) ; switch ( alignment ) { case TOPLEFT : gp . mo...
public Shape createShape ( final Alignment alignment , final float stroke ) { float w = getSize ( ) . width - _NUM * CORNER_RADIUS - stroke ; float h = getSize ( ) . height - _NUM * CORNER_RADIUS - stroke ; float o = CORNER_RADIUS ; GeneralPath gp = new GeneralPath ( ) ; switch ( alignment ) { case TOPLEFT : gp . moveT...
1,376
java-test-8743
java
What do data return ?
unique entry
private void action Text ( ) { String text = m text . get Text ( ) ; if ( text != null && text . length ( ) > NUM && text . equals ( m last Display ) ) { log . finest ( STRING ) ; return ; } if ( text == null || text . length ( ) == NUM || text . equals ( STRING ) ) { action Button ( text ) ; return ; } text = text . t...
private void actionText ( ) { String text = m_text . getText ( ) ; if ( text != null && text . length ( ) > _NUM && text . equals ( m_lastDisplay ) ) { log . finest ( STRING ) ; return ; } if ( text == null || text . length ( ) == _NUM || text . equals ( STRING ) ) { actionButton ( text ) ; return ; } text = text . toU...
582
java-test-8744
java
What do rtl_sdr command use ?
to sniff a gsm tower
public static Process Builder rtl Sdr Snif ( String dir , String frequency , String gain , String samplerate ) { Process Builder pb = new Process Builder ( STRING , STRING , frequency , STRING , gain , frequency + STRING , STRING , samplerate ) ; pb . directory ( new File ( dir ) ) ; return pb ; }
public static ProcessBuilder rtlSdrSnif ( String dir , String frequency , String gain , String samplerate ) { ProcessBuilder pb = new ProcessBuilder ( STRING , STRING , frequency , STRING , gain , frequency + STRING , STRING , samplerate ) ; pb . directory ( new File ( dir ) ) ; return pb ; }
63
java-test-8745
java
What use to sniff a gsm tower ?
rtl_sdr command
public static Process Builder rtl Sdr Snif ( String dir , String frequency , String gain , String samplerate ) { Process Builder pb = new Process Builder ( STRING , STRING , frequency , STRING , gain , frequency + STRING , STRING , samplerate ) ; pb . directory ( new File ( dir ) ) ; return pb ; }
public static ProcessBuilder rtlSdrSnif ( String dir , String frequency , String gain , String samplerate ) { ProcessBuilder pb = new ProcessBuilder ( STRING , STRING , frequency , STRING , gain , frequency + STRING , STRING , samplerate ) ; pb . directory ( new File ( dir ) ) ; return pb ; }
63
java-test-8746
java
What are located in which ?
python interpreters pointed in environment path
public static List < Python Installation Directory > where Are Python Interpreters ( ) { final List < Python Installation Directory > paths = new Array List < > ( ) ; for ( final Suite Executor interpreter : Enum Set . all Of ( Suite Executor . class ) ) { paths . add All ( where Is Python Interpreter ( interpreter ) )...
public static List < PythonInstallationDirectory > whereArePythonInterpreters ( ) { final List < PythonInstallationDirectory > paths = new ArrayList < > ( ) ; for ( final SuiteExecutor interpreter : EnumSet . allOf ( SuiteExecutor . class ) ) { paths . addAll ( whereIsPythonInterpreter ( interpreter ) ) ; } return path...
71
java-test-8747
java
What pointed in environment path in which ?
python interpreters
public static List < Python Installation Directory > where Are Python Interpreters ( ) { final List < Python Installation Directory > paths = new Array List < > ( ) ; for ( final Suite Executor interpreter : Enum Set . all Of ( Suite Executor . class ) ) { paths . add All ( where Is Python Interpreter ( interpreter ) )...
public static List < PythonInstallationDirectory > whereArePythonInterpreters ( ) { final List < PythonInstallationDirectory > paths = new ArrayList < > ( ) ; for ( final SuiteExecutor interpreter : EnumSet . allOf ( SuiteExecutor . class ) ) { paths . addAll ( whereIsPythonInterpreter ( interpreter ) ) ; } return path...
71
java-test-8748
java
What does the code add ?
a collection of alternative groundings
public void add ( Collection < Rule Grounding > alternatives ) { boolean found Success = BOOL ; for ( Rule Grounding g : alternatives ) { if ( ! g . is Failed ( ) ) { add ( g ) ; found Success = BOOL ; } } if ( ! found Success ) { groundings . clear ( ) ; } }
public void add ( Collection < RuleGrounding > alternatives ) { boolean foundSuccess = _BOOL ; for ( RuleGrounding g : alternatives ) { if ( ! g . isFailed ( ) ) { add ( g ) ; foundSuccess = _BOOL ; } } if ( ! foundSuccess ) { groundings . clear ( ) ; } }
65
java-test-8749
java
What will it calculate ?
any of its conditionals
public void activate Logix ( ) { if ( is Activated ) { return ; } reset Conditionals ( ) ; assemble Listener List ( ) ; for ( int i = NUM ; i < listeners . size ( ) ; i ++ ) { start Listener ( listeners . get ( i ) ) ; } is Activated = BOOL ; calculate Conditionals ( ) ; }
public void activateLogix ( ) { if ( _isActivated ) { return ; } resetConditionals ( ) ; assembleListenerList ( ) ; for ( int i = _NUM ; i < _listeners . size ( ) ; i ++ ) { startListener ( _listeners . get ( i ) ) ; } _isActivated = _BOOL ; calculateConditionals ( ) ; }
69
java-test-8750
java
What does the code start by connecting all inputs that are included the conditionals in this logix ?
logix processing
public void activate Logix ( ) { if ( is Activated ) { return ; } reset Conditionals ( ) ; assemble Listener List ( ) ; for ( int i = NUM ; i < listeners . size ( ) ; i ++ ) { start Listener ( listeners . get ( i ) ) ; } is Activated = BOOL ; calculate Conditionals ( ) ; }
public void activateLogix ( ) { if ( _isActivated ) { return ; } resetConditionals ( ) ; assembleListenerList ( ) ; for ( int i = _NUM ; i < _listeners . size ( ) ; i ++ ) { startListener ( _listeners . get ( i ) ) ; } _isActivated = _BOOL ; calculateConditionals ( ) ; }
69
java-test-8751
java
How does the code start logix processing ?
by connecting all inputs that are included the conditionals in this logix
public void activate Logix ( ) { if ( is Activated ) { return ; } reset Conditionals ( ) ; assemble Listener List ( ) ; for ( int i = NUM ; i < listeners . size ( ) ; i ++ ) { start Listener ( listeners . get ( i ) ) ; } is Activated = BOOL ; calculate Conditionals ( ) ; }
public void activateLogix ( ) { if ( _isActivated ) { return ; } resetConditionals ( ) ; assembleListenerList ( ) ; for ( int i = _NUM ; i < _listeners . size ( ) ; i ++ ) { startListener ( _listeners . get ( i ) ) ; } _isActivated = _BOOL ; calculateConditionals ( ) ; }
69
java-test-8752
java
When must a logix be activated ?
before it will calculate any of its conditionals
public void activate Logix ( ) { if ( is Activated ) { return ; } reset Conditionals ( ) ; assemble Listener List ( ) ; for ( int i = NUM ; i < listeners . size ( ) ; i ++ ) { start Listener ( listeners . get ( i ) ) ; } is Activated = BOOL ; calculate Conditionals ( ) ; }
public void activateLogix ( ) { if ( _isActivated ) { return ; } resetConditionals ( ) ; assembleListenerList ( ) ; for ( int i = _NUM ; i < _listeners . size ( ) ; i ++ ) { startListener ( _listeners . get ( i ) ) ; } _isActivated = _BOOL ; calculateConditionals ( ) ; }
69
java-test-8753
java
What does the code connect ?
all inputs that are included the conditionals in this logix
public void activate Logix ( ) { if ( is Activated ) { return ; } reset Conditionals ( ) ; assemble Listener List ( ) ; for ( int i = NUM ; i < listeners . size ( ) ; i ++ ) { start Listener ( listeners . get ( i ) ) ; } is Activated = BOOL ; calculate Conditionals ( ) ; }
public void activateLogix ( ) { if ( _isActivated ) { return ; } resetConditionals ( ) ; assembleListenerList ( ) ; for ( int i = _NUM ; i < _listeners . size ( ) ; i ++ ) { startListener ( _listeners . get ( i ) ) ; } _isActivated = _BOOL ; calculateConditionals ( ) ; }
69
java-test-8754
java
What does the code update according to the selected values ?
the font in the preview component
private void update Components ( ) { updating Components = BOOL ; Font font = get Font ( ) ; font List . set Selected Value ( font . get Name ( ) , BOOL ) ; size List . set Selected Value ( font . get Size ( ) , BOOL ) ; bold Check Box . set Selected ( font . is Bold ( ) ) ; italic Check Box . set Selected ( font . is ...
private void updateComponents ( ) { updatingComponents = _BOOL ; Font font = getFont ( ) ; fontList . setSelectedValue ( font . getName ( ) , _BOOL ) ; sizeList . setSelectedValue ( font . getSize ( ) , _BOOL ) ; boldCheckBox . setSelected ( font . isBold ( ) ) ; italicCheckBox . setSelected ( font . isItalic ( ) ) ; i...
146
java-test-8757
java
What will it output into the output params ?
any conflicts it finds
protected Map < Cell , Long > detect Write Already Committed Internal ( Table Reference table Ref , Map < Cell , Long > keys To Load , @ Output Set < Cell Conflict > spanning Writes , @ Output Set < Cell Conflict > dominating Writes , Transaction Service transaction Service ) { Map < Cell , Long > raw Results = key Val...
protected Map < Cell , Long > detectWriteAlreadyCommittedInternal ( TableReference tableRef , Map < Cell , Long > keysToLoad , @ Output Set < CellConflict > spanningWrites , @ Output Set < CellConflict > dominatingWrites , TransactionService transactionService ) { Map < Cell , Long > rawResults = keyValueService . getL...
413
java-test-8758
java
What will this return ?
the set of keys that need to be retried
protected Map < Cell , Long > detect Write Already Committed Internal ( Table Reference table Ref , Map < Cell , Long > keys To Load , @ Output Set < Cell Conflict > spanning Writes , @ Output Set < Cell Conflict > dominating Writes , Transaction Service transaction Service ) { Map < Cell , Long > raw Results = key Val...
protected Map < Cell , Long > detectWriteAlreadyCommittedInternal ( TableReference tableRef , Map < Cell , Long > keysToLoad , @ Output Set < CellConflict > spanningWrites , @ Output Set < CellConflict > dominatingWrites , TransactionService transactionService ) { Map < Cell , Long > rawResults = keyValueService . getL...
413
java-test-8759
java
How does the given set of devices filter ?
by only selecting those devices that were actually used in this launch
public Collection < I Device > filter By Used ( @ Not Null Collection < I Device > devices ) { Set < I Device > used = Sets . new Hash Set With Expected Size ( my Devices Used In Launch . size ( ) ) ; for ( I Device d : devices ) { if ( my Devices Used In Launch . contains ( d . get Serial Number ( ) ) ) { used . add (...
public Collection < IDevice > filterByUsed ( @ NotNull Collection < IDevice > devices ) { Set < IDevice > used = Sets . newHashSetWithExpectedSize ( myDevicesUsedInLaunch . size ( ) ) ; for ( IDevice d : devices ) { if ( myDevicesUsedInLaunch . contains ( d . getSerialNumber ( ) ) ) { used . add ( d ) ; } } return used...
90
java-test-8760
java
What exceeds the stop threshold ?
the available buffer capacity
private void check Stop ( ) { if ( m Can Process Audio && m Output . is Running ( ) && m Output . available ( ) >= m Buffer Stop Threshold ) { m Output . drain ( ) ; m Output . stop ( ) ; } }
private void checkStop ( ) { if ( mCanProcessAudio && mOutput . isRunning ( ) && mOutput . available ( ) >= mBufferStopThreshold ) { mOutput . drain ( ) ; mOutput . stop ( ) ; } }
51
java-test-8761
java
What does the available buffer capacity exceed ?
the stop threshold
private void check Stop ( ) { if ( m Can Process Audio && m Output . is Running ( ) && m Output . available ( ) >= m Buffer Stop Threshold ) { m Output . drain ( ) ; m Output . stop ( ) ; } }
private void checkStop ( ) { if ( mCanProcessAudio && mOutput . isRunning ( ) && mOutput . available ( ) >= mBufferStopThreshold ) { mOutput . drain ( ) ; mOutput . stop ( ) ; } }
51
java-test-8762
java
What did it convert the buffered text then ?
to return the corrosponding text
public String process ( String value ) { if ( value . index Of ( STRING ) < NUM ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . to String ( ) ; } finally { clear ( ) ; } }
public String process ( String value ) { if ( value . indexOf ( STRING ) < _NUM ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . toString ( ) ; } finally { clear ( ) ; } }
55
java-test-8763
java
When remain the contents of the buffer remain unchanged ?
after the value is buffered
public String process ( String value ) { if ( value . index Of ( STRING ) < NUM ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . to String ( ) ; } finally { clear ( ) ; } }
public String process ( String value ) { if ( value . indexOf ( STRING ) < _NUM ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . toString ( ) ; } finally { clear ( ) ; } }
55
java-test-8764
java
What did it convert to return the corrosponding text then ?
the buffered text
public String process ( String value ) { if ( value . index Of ( STRING ) < NUM ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . to String ( ) ; } finally { clear ( ) ; } }
public String process ( String value ) { if ( value . indexOf ( STRING ) < _NUM ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . toString ( ) ; } finally { clear ( ) ; } }
55
java-test-8765
java
What is this method used ?
to append the provided text
public String process ( String value ) { if ( value . index Of ( STRING ) < NUM ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . to String ( ) ; } finally { clear ( ) ; } }
public String process ( String value ) { if ( value . indexOf ( STRING ) < _NUM ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . toString ( ) ; } finally { clear ( ) ; } }
55
java-test-8766
java
What does it return ?
the corrosponding text
public String process ( String value ) { if ( value . index Of ( STRING ) < NUM ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . to String ( ) ; } finally { clear ( ) ; } }
public String process ( String value ) { if ( value . indexOf ( STRING ) < _NUM ) { return value ; } try { source . append ( value ) ; parse ( ) ; return text . toString ( ) ; } finally { clear ( ) ; } }
55
java-test-8767
java
For what purpose do the zoning update ?
for both the new exportmasks being created and those being updated
private String handle Zoning Update ( URI export , List < URI > initiators , Map < URI , Integer > block Object Map , Workflow workflow , String wait For , List < Export Mask > export Masks To Create On Device , List < Export Mask > export Masks To Update On Device ) { String zoning Step Id = workflow . create Step Id ...
private String handleZoningUpdate ( URI export , List < URI > initiators , Map < URI , Integer > blockObjectMap , Workflow workflow , String waitFor , List < ExportMask > exportMasksToCreateOnDevice , List < ExportMask > exportMasksToUpdateOnDevice ) { String zoningStepId = workflow . createStepId ( ) ; List < URI > ex...
297
java-test-8768
java
What does the code load from the database ?
the event values of a trace
private static List < List < Trace Register > > load Trace Event Values ( final C Connection connection , final Trace List trace List ) throws SQL Exception { final List < List < Trace Register > > values = new Array List < > ( ) ; final String query = STRING + C Table Names . TRACE EVENT VALUES TABLE + STRING + trace ...
private static List < List < TraceRegister > > loadTraceEventValues ( final CConnection connection , final TraceList traceList ) throws SQLException { final List < List < TraceRegister > > values = new ArrayList < > ( ) ; final String query = STRING + CTableNames . TRACE_EVENT_VALUES_TABLE + STRING + traceList . getId ...
301
java-test-8772
java
How do vanilla name if needed for nether and the_end ?
proper
private static Path rename To Vanilla Nether Or End ( Path world Container , Path old World Path , Path world Path ) { final String new Name = get Vanilla Nether Or End Name ( old World Path ) ; final Path new World Path = world Container . resolve ( new Name ) ; if ( is Valid Bukkit Nether Or End ( world Container , o...
private static Path renameToVanillaNetherOrEnd ( Path worldContainer , Path oldWorldPath , Path worldPath ) { final String newName = getVanillaNetherOrEndName ( oldWorldPath ) ; final Path newWorldPath = worldContainer . resolve ( newName ) ; if ( isValidBukkitNetherOrEnd ( worldContainer , oldWorldPath ) ) { if ( File...
104
java-test-8773
java
For what purpose do vanilla name if needed proper ?
for nether and the_end
private static Path rename To Vanilla Nether Or End ( Path world Container , Path old World Path , Path world Path ) { final String new Name = get Vanilla Nether Or End Name ( old World Path ) ; final Path new World Path = world Container . resolve ( new Name ) ; if ( is Valid Bukkit Nether Or End ( world Container , o...
private static Path renameToVanillaNetherOrEnd ( Path worldContainer , Path oldWorldPath , Path worldPath ) { final String newName = getVanillaNetherOrEndName ( oldWorldPath ) ; final Path newWorldPath = worldContainer . resolve ( newName ) ; if ( isValidBukkitNetherOrEnd ( worldContainer , oldWorldPath ) ) { if ( File...
104
java-test-8774
java
How does the world rename to the proper vanilla naming for nether and the_end if needed ?
at the provided path
private static Path rename To Vanilla Nether Or End ( Path world Container , Path old World Path , Path world Path ) { final String new Name = get Vanilla Nether Or End Name ( old World Path ) ; final Path new World Path = world Container . resolve ( new Name ) ; if ( is Valid Bukkit Nether Or End ( world Container , o...
private static Path renameToVanillaNetherOrEnd ( Path worldContainer , Path oldWorldPath , Path worldPath ) { final String newName = getVanillaNetherOrEndName ( oldWorldPath ) ; final Path newWorldPath = worldContainer . resolve ( newName ) ; if ( isValidBukkitNetherOrEnd ( worldContainer , oldWorldPath ) ) { if ( File...
104
java-test-8775
java
What does the code create ?
a buffered image of the given width and height , compatible with the alpha requirement
protected static Buffered Image create Buffered Image ( int width , int height , boolean has Alpha ) { Buffered Image bimage = null ; Graphics Environment ge = Graphics Environment . get Local Graphics Environment ( ) ; try { int transparency = Transparency . OPAQUE ; if ( has Alpha ) { transparency = Transparency . TR...
protected static BufferedImage createBufferedImage ( int width , int height , boolean hasAlpha ) { BufferedImage bimage = null ; GraphicsEnvironment ge = GraphicsEnvironment . getLocalGraphicsEnvironment ( ) ; try { int transparency = Transparency . OPAQUE ; if ( hasAlpha ) { transparency = Transparency . TRANSLUCENT ;...
161
java-test-8776
java
What does the code get ?
the smallest whole number larger than x
public static double ceil ( double x ) { double y ; if ( Double . is Na N ( x ) ) { return x ; } y = floor ( x ) ; if ( y == x ) { return y ; } y += NUM ; if ( y == NUM ) { return x * y ; } return y ; }
public static double ceil ( double x ) { double y ; if ( Double . isNaN ( x ) ) { return x ; } y = floor ( x ) ; if ( y == x ) { return y ; } y += _NUM ; if ( y == _NUM ) { return x * y ; } return y ; }
67
java-test-8777
java
What does the code perform on a set of records with the same start position ?
merge operation
Vcf Record [ ] merge Records ( Vcf Record [ ] records , Vcf Header [ ] headers , Vcf Header dest Header , Set < String > unmergeable Format Fields , boolean preserve Formats ) { assert records . length == headers . length ; final Multi Map < Integer , Vcf Record > record Sets = new Multi Map < > ( BOOL ) ; final Multi ...
VcfRecord [ ] mergeRecords ( VcfRecord [ ] records , VcfHeader [ ] headers , VcfHeader destHeader , Set < String > unmergeableFormatFields , boolean preserveFormats ) { assert records . length == headers . length ; final MultiMap < Integer , VcfRecord > recordSets = new MultiMap < > ( _BOOL ) ; final MultiMap < Integer...
430
java-test-8778
java
Where does the code perform merge operation ?
on a set of records with the same start position
Vcf Record [ ] merge Records ( Vcf Record [ ] records , Vcf Header [ ] headers , Vcf Header dest Header , Set < String > unmergeable Format Fields , boolean preserve Formats ) { assert records . length == headers . length ; final Multi Map < Integer , Vcf Record > record Sets = new Multi Map < > ( BOOL ) ; final Multi ...
VcfRecord [ ] mergeRecords ( VcfRecord [ ] records , VcfHeader [ ] headers , VcfHeader destHeader , Set < String > unmergeableFormatFields , boolean preserveFormats ) { assert records . length == headers . length ; final MultiMap < Integer , VcfRecord > recordSets = new MultiMap < > ( _BOOL ) ; final MultiMap < Integer...
430
java-test-8779
java
What does the code generate ?
xml and pojos
private void next ( ) { if ( root Pane . get Center ( ) == conn Layer Pnl ) { if ( check Input ( jdbc Drv Jar Tf , BOOL , STRING ) && check Input ( jdbc Drv Cls Tf , BOOL , STRING ) && check Input ( jdbc Url Tf , BOOL , STRING ) && check Input ( user Tf , BOOL , STRING ) ) fill ( ) ; } else generate ( ) ; }
private void next ( ) { if ( rootPane . getCenter ( ) == connLayerPnl ) { if ( checkInput ( jdbcDrvJarTf , _BOOL , STRING ) && checkInput ( jdbcDrvClsTf , _BOOL , STRING ) && checkInput ( jdbcUrlTf , _BOOL , STRING ) && checkInput ( userTf , _BOOL , STRING ) ) fill ( ) ; } else generate ( ) ; }
83
java-test-8783
java
For what purpose is this method retained ?
for transitional consistency with previous implementations
public boolean compile ( String [ ] args ) { long start Time = System . current Time Millis ( ) ; long batch ID ; synchronized ( batch Count Lock ) { batch ID = batch Count ++ ; } Batch batch = parse Args ( args ) ; if ( batch == null ) { return BOOL ; } boolean status ; try { batch Table . put ( batch ID , batch ) ; s...
public boolean compile ( String [ ] args ) { long startTime = System . currentTimeMillis ( ) ; long batchID ; synchronized ( batchCountLock ) { batchID = batchCount ++ ; } Batch batch = parseArgs ( args ) ; if ( batch == null ) { return _BOOL ; } boolean status ; try { batchTable . put ( batchID , batch ) ; status = in...
148
java-test-8784
java
How do changes to coloringmanager commit ?
based on selected coloring method
private void commit Changes ( ) { try { double floor Val = Double . parse Double ( floor . get Text ( ) ) ; double ceiling Val = Double . parse Double ( ceiling . get Text ( ) ) ; double dec Amount = Double . parse Double ( decrement Amount . get Text ( ) ) ; double inc Amount = Double . parse Double ( increment Amount...
private void commitChanges ( ) { try { double floorVal = Double . parseDouble ( floor . getText ( ) ) ; double ceilingVal = Double . parseDouble ( ceiling . getText ( ) ) ; double decAmount = Double . parseDouble ( decrementAmount . getText ( ) ) ; double incAmount = Double . parseDouble ( incrementAmount . getText ( )...
404
java-test-8785
java
What did this send to the user if set ?
a rejection message
protected void rejected ( final RP Entity user ) { if ( rejected Message != null ) { send Message ( user , rejected Message ) ; if ( get Resistance ( ) != NUM ) { user . stop ( ) ; user . clear Path ( ) ; } } }
protected void rejected ( final RPEntity user ) { if ( rejectedMessage != null ) { sendMessage ( user , rejectedMessage ) ; if ( getResistance ( ) != _NUM ) { user . stop ( ) ; user . clearPath ( ) ; } } }
53
java-test-8786
java
When did the code call ?
when the user is rejected
protected void rejected ( final RP Entity user ) { if ( rejected Message != null ) { send Message ( user , rejected Message ) ; if ( get Resistance ( ) != NUM ) { user . stop ( ) ; user . clear Path ( ) ; } } }
protected void rejected ( final RPEntity user ) { if ( rejectedMessage != null ) { sendMessage ( user , rejectedMessage ) ; if ( getResistance ( ) != _NUM ) { user . stop ( ) ; user . clearPath ( ) ; } } }
53
java-test-8787
java
What does the code add ?
a notification handler for a service
public static void add Notification Handler ( String service , Notification Handler handler ) throws Already Registered Exception { if ( notification Handlers . contains Key ( service ) ) { throw new Already Registered Exception ( PLL Bundle . get String ( STRING ) + service ) ; } notification Handlers . put ( service ...
public static void addNotificationHandler ( String service , NotificationHandler handler ) throws AlreadyRegisteredException { if ( notificationHandlers . containsKey ( service ) ) { throw new AlreadyRegisteredException ( PLLBundle . getString ( STRING ) + service ) ; } notificationHandlers . put ( service , handler ) ...
61
java-test-8793
java
What does the code create ?
a sub - projection
protected T create Projection ( @ Nullable Collection < Grid Client Node > nodes , @ Nullable Grid Client Predicate < ? super Grid Client Node > filter , @ Nullable Grid Client Load Balancer balancer , Projection Factory < T > factory ) throws Grid Client Exception { if ( nodes != null && nodes . is Empty ( ) ) throw n...
protected T createProjection ( @ Nullable Collection < GridClientNode > nodes , @ Nullable GridClientPredicate < ? super GridClientNode > filter , @ Nullable GridClientLoadBalancer balancer , ProjectionFactory < T > factory ) throws GridClientException { if ( nodes != null && nodes . isEmpty ( ) ) throw new GridClientE...
241
java-test-8794
java
What do the given type manipulate ?
to replace wrapper with object
private Method Type remove Wrapper ( Method Type target Type ) { Class [ ] types = target Type . parameter Array ( ) ; for ( int i = NUM ; i < types . length ; i ++ ) { if ( types [ i ] == Wrapper . class ) { target Type = target Type . change Parameter Type ( i , Object . class ) ; } } return target Type ; }
private MethodType removeWrapper ( MethodType targetType ) { Class [ ] types = targetType . parameterArray ( ) ; for ( int i = _NUM ; i < types . length ; i ++ ) { if ( types [ i ] == Wrapper . class ) { targetType = targetType . changeParameterType ( i , Object . class ) ; } } return targetType ; }
78
java-test-8795
java
What does the code estimate ?
the confidence probability of a clustering
private double compute Confidence ( int support , int samples ) { final double z = Normal Distribution . standard Normal Quantile ( alpha ) ; final double eprob = support / ( double ) samples ; return Math . max ( NUM , eprob - z * Math . sqrt ( ( eprob * ( NUM - eprob ) ) / samples ) ) ; }
private double computeConfidence ( int support , int samples ) { final double z = NormalDistribution . standardNormalQuantile ( alpha ) ; final double eprob = support / ( double ) samples ; return Math . max ( _NUM , eprob - z * Math . sqrt ( ( eprob * ( _NUM - eprob ) ) / samples ) ) ; }
67
java-test-8796
java
What does it return if the string can not match a valid ipv6 address ?
the index of the next character to scan in the address
private static int scan Hex Sequence ( String address , int index , int end , int [ ] counter ) { char test Char ; int num Digits = NUM ; int start = index ; for ( ; index < end ; ++ index ) { test Char = address . char At ( index ) ; if ( test Char == STRING ) { if ( num Digits > NUM && ++ counter [ NUM ] > NUM ) { re...
private static int scanHexSequence ( String address , int index , int end , int [ ] counter ) { char testChar ; int numDigits = _NUM ; int start = index ; for ( ; index < end ; ++ index ) { testChar = address . charAt ( index ) ; if ( testChar == STRING ) { if ( numDigits > _NUM && ++ counter [ _NUM ] > _NUM ) { return...
234
java-test-8797
java
What does iswellformedipv6reference scan ?
the hex sequences of an ipv6 address
private static int scan Hex Sequence ( String address , int index , int end , int [ ] counter ) { char test Char ; int num Digits = NUM ; int start = index ; for ( ; index < end ; ++ index ) { test Char = address . char At ( index ) ; if ( test Char == STRING ) { if ( num Digits > NUM && ++ counter [ NUM ] > NUM ) { re...
private static int scanHexSequence ( String address , int index , int end , int [ ] counter ) { char testChar ; int numDigits = _NUM ; int start = index ; for ( ; index < end ; ++ index ) { testChar = address . charAt ( index ) ; if ( testChar == STRING ) { if ( numDigits > _NUM && ++ counter [ _NUM ] > _NUM ) { return...
234
java-test-8798
java
What scans the hex sequences of an ipv6 address ?
iswellformedipv6reference
private static int scan Hex Sequence ( String address , int index , int end , int [ ] counter ) { char test Char ; int num Digits = NUM ; int start = index ; for ( ; index < end ; ++ index ) { test Char = address . char At ( index ) ; if ( test Char == STRING ) { if ( num Digits > NUM && ++ counter [ NUM ] > NUM ) { re...
private static int scanHexSequence ( String address , int index , int end , int [ ] counter ) { char testChar ; int numDigits = _NUM ; int start = index ; for ( ; index < end ; ++ index ) { testChar = address . charAt ( index ) ; if ( testChar == STRING ) { if ( numDigits > _NUM && ++ counter [ _NUM ] > _NUM ) { return...
234
java-test-8799
java
What does the code initialize ?
the producer and consumer lists
private void init Producer Consumer Lists ( ) { consumer List . clear ( ) ; producer List . clear ( ) ; for ( int i = NUM ; i < data Table . get Logical Column Count ( ) ; i ++ ) { add Column Attribute ( i , consumer List ) ; add Column Attribute ( i , producer List ) ; } }
private void initProducerConsumerLists ( ) { consumerList . clear ( ) ; producerList . clear ( ) ; for ( int i = _NUM ; i < dataTable . getLogicalColumnCount ( ) ; i ++ ) { addColumnAttribute ( i , consumerList ) ; addColumnAttribute ( i , producerList ) ; } }
68
java-test-8801
java
What calls this method ?
only a single thread
public static boolean do Check Point ( ) { if ( force Chkpt ) { force Chkpt = BOOL ; return BOOL ; } if ( chkpt Duration == NUM ) { return BOOL ; } long now = System . current Time Millis ( ) ; if ( now - last Chkpt >= TLC Globals . chkpt Duration ) { last Chkpt = now ; return BOOL ; } return BOOL ; }
public static boolean doCheckPoint ( ) { if ( forceChkpt ) { forceChkpt = _BOOL ; return _BOOL ; } if ( chkptDuration == _NUM ) { return _BOOL ; } long now = System . currentTimeMillis ( ) ; if ( now - lastChkpt >= TLCGlobals . chkptDuration ) { lastChkpt = now ; return _BOOL ; } return _BOOL ; }
74
java-test-8803
java
What does the code save in shared preferences ?
the list of the stack traces ' file names
private static void save Confirmed Stack Traces ( Weak Reference < Context > weak Context ) { Context context = null ; if ( weak Context != null ) { context = weak Context . get ( ) ; if ( context != null ) { try { String [ ] filenames = search For Report ( ) ; Shared Preferences preferences = context . get Shared Pref...
private static void saveConfirmedStackTraces ( WeakReference < Context > weakContext ) { Context context = null ; if ( weakContext != null ) { context = weakContext . get ( ) ; if ( context != null ) { try { String [ ] filenames = searchForReport ( ) ; SharedPreferences preferences = context . getSharedPreferences ( AR...
120
java-test-8804
java
Where does the code save the list of the stack traces ' file names ?
in shared preferences
private static void save Confirmed Stack Traces ( Weak Reference < Context > weak Context ) { Context context = null ; if ( weak Context != null ) { context = weak Context . get ( ) ; if ( context != null ) { try { String [ ] filenames = search For Report ( ) ; Shared Preferences preferences = context . get Shared Pref...
private static void saveConfirmedStackTraces ( WeakReference < Context > weakContext ) { Context context = null ; if ( weakContext != null ) { context = weakContext . get ( ) ; if ( context != null ) { try { String [ ] filenames = searchForReport ( ) ; SharedPreferences preferences = context . getSharedPreferences ( AR...
120
java-test-8805
java
How do byte - array write ?
with a vint length prefix
public static int write Byte Array ( final byte [ ] tgt , final int tgt Offset , final byte [ ] src , final int src Offset , final int src Length ) { byte [ ] vint = vint To Bytes ( src Length ) ; System . arraycopy ( vint , NUM , tgt , tgt Offset , vint . length ) ; int offset = tgt Offset + vint . length ; System . a...
public static int writeByteArray ( final byte [ ] tgt , final int tgtOffset , final byte [ ] src , final int srcOffset , final int srcLength ) { byte [ ] vint = vintToBytes ( srcLength ) ; System . arraycopy ( vint , _NUM , tgt , tgtOffset , vint . length ) ; int offset = tgtOffset + vint . length ; System . arraycopy ...
100
java-test-8807
java
What does the code prepare ?
one block of data
@ Override protected void prepare Block ( ) { double [ ] frame = get Next Frame ( ) ; if ( frame == null ) return ; int frame Length = frame Provider . get Frame Length Samples ( ) ; if ( processor != null ) processor . apply Inline ( frame , NUM , frame Length ) ; if ( output Window != null ) output Window . apply Inl...
@ Override protected void prepareBlock ( ) { double [ ] frame = getNextFrame ( ) ; if ( frame == null ) return ; int frameLength = frameProvider . getFrameLengthSamples ( ) ; if ( processor != null ) processor . applyInline ( frame , _NUM , frameLength ) ; if ( outputWindow != null ) outputWindow . applyInline ( frame ...
157
java-test-8808
java
When is this method called from the superclass ?
before readblock ( ) is called
@ Override protected void prepare Block ( ) { double [ ] frame = get Next Frame ( ) ; if ( frame == null ) return ; int frame Length = frame Provider . get Frame Length Samples ( ) ; if ( processor != null ) processor . apply Inline ( frame , NUM , frame Length ) ; if ( output Window != null ) output Window . apply Inl...
@ Override protected void prepareBlock ( ) { double [ ] frame = getNextFrame ( ) ; if ( frame == null ) return ; int frameLength = frameProvider . getFrameLengthSamples ( ) ; if ( processor != null ) processor . applyInline ( frame , _NUM , frameLength ) ; if ( outputWindow != null ) outputWindow . applyInline ( frame ...
157
java-test-8809
java
What does the code remove off the front of a nick if one is present ?
the status char
private String remove Status Char ( String nick ) { if ( nick . starts With ( STRING ) || nick . starts With ( STRING ) || nick . starts With ( STRING ) ) { nick = nick . substring ( NUM ) ; } return nick ; }
private String removeStatusChar ( String nick ) { if ( nick . startsWith ( STRING ) || nick . startsWith ( STRING ) || nick . startsWith ( STRING ) ) { nick = nick . substring ( _NUM ) ; } return nick ; }
51
java-test-8810
java
What does the source throw with the received event count and how long the last event was seen ?
an assertionerror
public final Test Subscriber < T > assert Terminated ( long timeout , Time Unit unit ) { if ( ! await ( timeout , unit ) ) { cancel ( ) ; assertion Error ( STRING + volatile Size + STRING + ( System . current Time Millis ( ) - last Event ) + STRING ) ; } return this ; }
public final TestSubscriber < T > assertTerminated ( long timeout , TimeUnit unit ) { if ( ! await ( timeout , unit ) ) { cancel ( ) ; assertionError ( STRING + volatileSize + STRING + ( System . currentTimeMillis ( ) - lastEvent ) + STRING ) ; } return this ; }
64
java-test-8811
java
When does the source terminate ?
within the specified amount of time
public final Test Subscriber < T > assert Terminated ( long timeout , Time Unit unit ) { if ( ! await ( timeout , unit ) ) { cancel ( ) ; assertion Error ( STRING + volatile Size + STRING + ( System . current Time Millis ( ) - last Event ) + STRING ) ; } return this ; }
public final TestSubscriber < T > assertTerminated ( long timeout , TimeUnit unit ) { if ( ! await ( timeout , unit ) ) { cancel ( ) ; assertionError ( STRING + volatileSize + STRING + ( System . currentTimeMillis ( ) - lastEvent ) + STRING ) ; } return this ; }
64
java-test-8819
java
How does a string parse ?
as a int
public static int parse String As Int ( String in ) throws Index Parse Field Exception { try { return Integer . parse Int ( in ) ; } catch ( Number Format Exception e ) { throw new Index Parse Field Exception ( in , e ) ; } }
public static int parseStringAsInt ( String in ) throws IndexParseFieldException { try { return Integer . parseInt ( in ) ; } catch ( NumberFormatException e ) { throw new IndexParseFieldException ( in , e ) ; } }
51
java-test-8820
java
For what purpose does unbroken line draw ?
for tabs
protected void paint Content Border Top Edge ( Graphics g , int x , int y , int w , int h , boolean draw Broken , Rectangle sel Rect , boolean is Content Border Painted ) { if ( is Content Border Painted ) { g . set Color ( select Highlight ) ; g . fill Rect ( x , y , w - NUM , NUM ) ; } }
protected void paintContentBorderTopEdge ( Graphics g , int x , int y , int w , int h , boolean drawBroken , Rectangle selRect , boolean isContentBorderPainted ) { if ( isContentBorderPainted ) { g . setColor ( selectHighlight ) ; g . fillRect ( x , y , w - _NUM , _NUM ) ; } }
73
java-test-8821
java
What are the code draws around the content area ?
the top edge of the border
protected void paint Content Border Top Edge ( Graphics g , int x , int y , int w , int h , boolean draw Broken , Rectangle sel Rect , boolean is Content Border Painted ) { if ( is Content Border Painted ) { g . set Color ( select Highlight ) ; g . fill Rect ( x , y , w - NUM , NUM ) ; } }
protected void paintContentBorderTopEdge ( Graphics g , int x , int y , int w , int h , boolean drawBroken , Rectangle selRect , boolean isContentBorderPainted ) { if ( isContentBorderPainted ) { g . setColor ( selectHighlight ) ; g . fillRect ( x , y , w - _NUM , _NUM ) ; } }
73
java-test-8823
java
What does the code generate ?
the xml structure for the header
protected void header To XML ( ) { Element root ; Element node ; Element child ; int i ; root = m Document . get Document Element ( ) ; root . set Attribute ( ATT NAME , valid Content ( m Instances . relation Name ( ) ) ) ; root . set Attribute ( ATT VERSION , Version . VERSION ) ; node = m Document . create Element ( ...
protected void headerToXML ( ) { Element root ; Element node ; Element child ; int i ; root = m_Document . getDocumentElement ( ) ; root . setAttribute ( ATT_NAME , validContent ( m_Instances . relationName ( ) ) ) ; root . setAttribute ( ATT_VERSION , Version . VERSION ) ; node = m_Document . createElement ( TAG_HEADE...
141
java-test-8824
java
What does the code append ?
a class or interface
private void emit Class ( Doc Comment comment ) { String tag Name = ( comment . get Type ( ) == Doc Comment . CLASS ) ? STRING : STRING ; xml . append ( STRING ) ; xml . append ( tag Name ) ; xml . append ( STRING ) ; xml . append ( comment . get Name ( ) ) ; xml . append ( STRING ) ; xml . append ( comment . get Fulln...
private void emitClass ( DocComment comment ) { String tagName = ( comment . getType ( ) == DocComment . CLASS ) ? STRING : STRING ; xml . append ( STRING ) ; xml . append ( tagName ) ; xml . append ( STRING ) ; xml . append ( comment . getName ( ) ) ; xml . append ( STRING ) ; xml . append ( comment . getFullname ( ) ...
534
java-test-8825
java
Where do speed and distance update ?
at analytics item
public void update Analytics ( double speed , double distance ) { if ( distance < NUM ) { tvdistance . set Text ( String . value Of ( Math . round ( distance ) ) ) ; tvdisunit . set Text ( R . string . meter ) ; } else { tvdistance . set Text ( String . format ( STRING , distance / NUM ) ) ; tvdisunit . set Text ( R . ...
public void updateAnalytics ( double speed , double distance ) { if ( distance < _NUM ) { tvdistance . setText ( String . valueOf ( Math . round ( distance ) ) ) ; tvdisunit . setText ( R . string . meter ) ; } else { tvdistance . setText ( String . format ( STRING , distance / _NUM ) ) ; tvdisunit . setText ( R . stri...
99
java-test-8826
java
What updates at analytics item ?
speed and distance
public void update Analytics ( double speed , double distance ) { if ( distance < NUM ) { tvdistance . set Text ( String . value Of ( Math . round ( distance ) ) ) ; tvdisunit . set Text ( R . string . meter ) ; } else { tvdistance . set Text ( String . format ( STRING , distance / NUM ) ) ; tvdisunit . set Text ( R . ...
public void updateAnalytics ( double speed , double distance ) { if ( distance < _NUM ) { tvdistance . setText ( String . valueOf ( Math . round ( distance ) ) ) ; tvdisunit . setText ( R . string . meter ) ; } else { tvdistance . setText ( String . format ( STRING , distance / _NUM ) ) ; tvdisunit . setText ( R . stri...
99
java-test-8827
java
Where did errors happen ?
in the gzip thread
@ Override public void close ( ) throws IO Exception { if ( m Buffer Count > NUM ) { try { m Queue . write ( m Buffer , NUM , m Buffer Count ) ; } catch ( Interrupted Exception e ) { throw new IO Exception ( STRING ) ; } m Buffer Count = NUM ; } m Queue . close ( ) ; try { m Thread . join ( ) ; } catch ( Interrupted Ex...
@ Override public void close ( ) throws IOException { if ( mBufferCount > _NUM ) { try { mQueue . write ( mBuffer , _NUM , mBufferCount ) ; } catch ( InterruptedException e ) { throw new IOException ( STRING ) ; } mBufferCount = _NUM ; } mQueue . close ( ) ; try { mThread . join ( ) ; } catch ( InterruptedException e )...
109
java-test-8828
java
What does it load ?
the filter taps
public void read Mixed Excitation Filters ( Input Stream mix Filters Stream ) throws IO Exception { String line ; Vector < Double > taps = new Vector < Double > ( ) ; Scanner s = null ; int i , j ; try { s = new Scanner ( new Buffered Reader ( new Input Stream Reader ( mix Filters Stream , STRING ) ) ) ; s . use Locale...
public void readMixedExcitationFilters ( InputStream mixFiltersStream ) throws IOException { String line ; Vector < Double > taps = new Vector < Double > ( ) ; Scanner s = null ; int i , j ; try { s = new Scanner ( new BufferedReader ( new InputStreamReader ( mixFiltersStream , STRING ) ) ) ; s . useLocale ( Locale . U...
262
java-test-8830
java
What does the code add to the station ?
a landing pad
public void add Landing Pad ( int x , int z ) { Block Position pos = new Block Position ( x , NUM , z ) ; if ( ! spawn Locations . contains ( pos ) ) { spawn Locations . add ( pos ) ; occupied Landing Pads . put ( pos , BOOL ) ; } }
public void addLandingPad ( int x , int z ) { BlockPosition pos = new BlockPosition ( x , _NUM , z ) ; if ( ! spawnLocations . contains ( pos ) ) { spawnLocations . add ( pos ) ; occupiedLandingPads . put ( pos , _BOOL ) ; } }
61
java-test-8831
java
What do the specified video have ?
binary data associated with it
public void copy Video Data ( Video v , Output Stream out ) throws IO Exception { Path source = get Video Path ( v ) ; if ( ! Files . exists ( source ) ) { throw new File Not Found Exception ( STRING + v . get Id ( ) ) ; } Files . copy ( source , out ) ; }
public void copyVideoData ( Video v , OutputStream out ) throws IOException { Path source = getVideoPath ( v ) ; if ( ! Files . exists ( source ) ) { throw new FileNotFoundException ( STRING + v . getId ( ) ) ; } Files . copy ( source , out ) ; }
66
java-test-8840
java
What returns the implementation ?
macro providers
private void register Providers ( ) { final Dev Machine dev Machine = app Context . get Dev Machine ( ) ; if ( dev Machine == null ) { return ; } final Set < Macro > providers = get Macros ( dev Machine ) ; check Not Null ( providers ) ; if ( providers . is Empty ( ) ) { return ; } provider Registry . register ( provid...
private void registerProviders ( ) { final DevMachine devMachine = appContext . getDevMachine ( ) ; if ( devMachine == null ) { return ; } final Set < Macro > providers = getMacros ( devMachine ) ; checkNotNull ( providers ) ; if ( providers . isEmpty ( ) ) { return ; } providerRegistry . register ( providers ) ; }
76
java-test-8841
java
How does the code attempt a field goal if successful ?
using the offense ' s kicker
private void field Goal Att ( Team offense , Team defense ) { double fg Dist Ratio = Math . pow ( ( NUM - game Yard Line ) / NUM , NUM ) ; double fg Acc Ratio = Math . pow ( ( NUM - game Yard Line ) / NUM , NUM ) ; double fg Dist Chance = ( get H Fadv ( ) + offense . get K ( NUM ) . rat Kick Pow - fg Dist Ratio * NUM )...
private void fieldGoalAtt ( Team offense , Team defense ) { double fgDistRatio = Math . pow ( ( _NUM - gameYardLine ) / _NUM , _NUM ) ; double fgAccRatio = Math . pow ( ( _NUM - gameYardLine ) / _NUM , _NUM ) ; double fgDistChance = ( getHFadv ( ) + offense . getK ( _NUM ) . ratKickPow - fgDistRatio * _NUM ) ; double f...
419