id
stringlengths
11
16
language
stringclasses
2 values
question
stringlengths
13
844
answer
stringlengths
1
900
code
stringlengths
162
27.4k
code_original
stringlengths
162
26k
code_word_count
int64
51
5.96k
java-test-5929
java
What matches the principal ?
the object passed in
public boolean equals ( Object object ) { if ( this == object ) { return BOOL ; } else if ( object == null || get Class ( ) != object . get Class ( ) ) { return BOOL ; } return principal . equals ( object . to String ( ) ) ; }
public boolean equals ( Object object ) { if ( this == object ) { return _BOOL ; } else if ( object == null || getClass ( ) != object . getClass ( ) ) { return _BOOL ; } return principal . equals ( object . toString ( ) ) ; }
57
java-test-5930
java
What does the code compare to the specified object ?
this principal
public boolean equals ( Object object ) { if ( this == object ) { return BOOL ; } else if ( object == null || get Class ( ) != object . get Class ( ) ) { return BOOL ; } return principal . equals ( object . to String ( ) ) ; }
public boolean equals ( Object object ) { if ( this == object ) { return _BOOL ; } else if ( object == null || getClass ( ) != object . getClass ( ) ) { return _BOOL ; } return principal . equals ( object . toString ( ) ) ; }
57
java-test-5931
java
What match the given build name and team project ?
succeeded or partially succeeded builds
private I Build Query Result query Builds ( final TFS Team Project Collection connection , final String build Name , final String team Project , final Build Status status ) { Check . not Null ( connection , STRING ) ; Check . not Null Or Empty ( build Name , STRING ) ; Check . not Null Or Empty ( team Project , STRING ...
private IBuildQueryResult queryBuilds ( final TFSTeamProjectCollection connection , final String buildName , final String teamProject , final BuildStatus status ) { Check . notNull ( connection , STRING ) ; Check . notNullOrEmpty ( buildName , STRING ) ; Check . notNullOrEmpty ( teamProject , STRING ) ; final IBuildSer...
168
java-test-5932
java
What do succeeded or partially succeeded builds match ?
the given build name and team project
private I Build Query Result query Builds ( final TFS Team Project Collection connection , final String build Name , final String team Project , final Build Status status ) { Check . not Null ( connection , STRING ) ; Check . not Null Or Empty ( build Name , STRING ) ; Check . not Null Or Empty ( team Project , STRING ...
private IBuildQueryResult queryBuilds ( final TFSTeamProjectCollection connection , final String buildName , final String teamProject , final BuildStatus status ) { Check . notNull ( connection , STRING ) ; Check . notNullOrEmpty ( buildName , STRING ) ; Check . notNullOrEmpty ( teamProject , STRING ) ; final IBuildSer...
168
java-test-5933
java
Where did weights store ?
on file
private static Counter < String > load Weights ( String wts Initial File , boolean uniform Start Weights , boolean randomize Start Weights , Translation Model < I String , String > translation Model ) { Counter < String > weights = IO Tools . read Weights ( wts Initial File ) ; if ( weights == null ) weights = new Clas...
private static Counter < String > loadWeights ( String wtsInitialFile , boolean uniformStartWeights , boolean randomizeStartWeights , TranslationModel < IString , String > translationModel ) { Counter < String > weights = IOTools . readWeights ( wtsInitialFile ) ; if ( weights == null ) weights = new ClassicCounter < >...
228
java-test-5934
java
What stored on file ?
weights
private static Counter < String > load Weights ( String wts Initial File , boolean uniform Start Weights , boolean randomize Start Weights , Translation Model < I String , String > translation Model ) { Counter < String > weights = IO Tools . read Weights ( wts Initial File ) ; if ( weights == null ) weights = new Clas...
private static Counter < String > loadWeights ( String wtsInitialFile , boolean uniformStartWeights , boolean randomizeStartWeights , TranslationModel < IString , String > translationModel ) { Counter < String > weights = IOTools . readWeights ( wtsInitialFile ) ; if ( weights == null ) weights = new ClassicCounter < >...
228
java-test-5935
java
What did the code return ?
it ' s md5 digest
static String md 5 ( final Input Stream in , final int buffer Length ) throws IO Exception { final byte [ ] buffer = new byte [ buffer Length ] ; try { final Message Digest md = Message Digest . get Instance ( STRING ) ; final Digest Input Stream dis = new Digest Input Stream ( in , md ) ; while ( dis . read ( buffer )...
static String md5 ( final InputStream in , final int bufferLength ) throws IOException { final byte [ ] buffer = new byte [ bufferLength ] ; try { final MessageDigest md = MessageDigest . getInstance ( STRING ) ; final DigestInputStream dis = new DigestInputStream ( in , md ) ; while ( dis . read ( buffer ) != - _NUM )...
119
java-test-5936
java
What did the code read ?
all of the input stream
static String md 5 ( final Input Stream in , final int buffer Length ) throws IO Exception { final byte [ ] buffer = new byte [ buffer Length ] ; try { final Message Digest md = Message Digest . get Instance ( STRING ) ; final Digest Input Stream dis = new Digest Input Stream ( in , md ) ; while ( dis . read ( buffer )...
static String md5 ( final InputStream in , final int bufferLength ) throws IOException { final byte [ ] buffer = new byte [ bufferLength ] ; try { final MessageDigest md = MessageDigest . getInstance ( STRING ) ; final DigestInputStream dis = new DigestInputStream ( in , md ) ; while ( dis . read ( buffer ) != - _NUM )...
119
java-test-5937
java
What does the code initialize ?
a stellar function
private void initialize Function ( Stellar Function function , String function Name ) { try { if ( ! function . is Initialized ( ) ) { function . initialize ( context ) ; } } catch ( Throwable t ) { String error = format ( STRING , function Name ) ; throw new Parse Exception ( error , t ) ; } }
private void initializeFunction ( StellarFunction function , String functionName ) { try { if ( ! function . isInitialized ( ) ) { function . initialize ( context ) ; } } catch ( Throwable t ) { String error = format ( STRING , functionName ) ; throw new ParseException ( error , t ) ; } }
65
java-test-5938
java
Where did the url use ?
in the redirect
public void send Request ( Slo Request Settings request Settings , Http Servlet Response response ) throws IO Exception { Validate . not Null ( request Settings , STRING ) ; Validate . not Null ( response , STRING ) ; Validate . not Null ( get Message Store ( ) , STRING ) ; Validate . not Null ( get Metadata Settings (...
public void sendRequest ( SloRequestSettings requestSettings , HttpServletResponse response ) throws IOException { Validate . notNull ( requestSettings , STRING ) ; Validate . notNull ( response , STRING ) ; Validate . notNull ( getMessageStore ( ) , STRING ) ; Validate . notNull ( getMetadataSettings ( ) , STRING ) ; ...
156
java-test-5939
java
What does the code append to the provided string builder ?
a line with the short and / or long identifiers that may be used for the argument
void print Line For Short Long Argument ( final Argument a , final String Builder buffer ) { final Character short ID = a . get Short Identifier ( ) ; final String long ID = a . get Long Identifier ( ) ; if ( short ID != null ) { if ( is Usage Argument ( a ) ) { buffer . append ( STRING ) ; } buffer . append ( STRING )...
void printLineForShortLongArgument ( final Argument a , final StringBuilder buffer ) { final Character shortID = a . getShortIdentifier ( ) ; final String longID = a . getLongIdentifier ( ) ; if ( shortID != null ) { if ( isUsageArgument ( a ) ) { buffer . append ( STRING ) ; } buffer . append ( STRING ) ; buffer . app...
347
java-test-5941
java
For what purpose do header construct ?
to allow manual creation of header for writing to file
public Mp 4 Box Header ( String id ) { if ( id . length ( ) != IDENTIFIER LENGTH ) { throw new Runtime Exception ( STRING ) ; } data Buffer = Byte Buffer . allocate ( HEADER LENGTH ) ; try { this . id = id ; data Buffer . put ( NUM , id . get Bytes ( STRING ) [ NUM ] ) ; data Buffer . put ( NUM , id . get Bytes ( STRIN...
public Mp4BoxHeader ( String id ) { if ( id . length ( ) != IDENTIFIER_LENGTH ) { throw new RuntimeException ( STRING ) ; } dataBuffer = ByteBuffer . allocate ( HEADER_LENGTH ) ; try { this . id = id ; dataBuffer . put ( _NUM , id . getBytes ( STRING ) [ _NUM ] ) ; dataBuffer . put ( _NUM , id . getBytes ( STRING ) [ _...
146
java-test-5945
java
How does the code append a string ?
without implicit wrapping
public Wrapping String Builder append ( final String s ) { final int end = s . length ( ) ; for ( int i = NUM ; i < end ; i ++ ) { append ( s . char At ( i ) ) ; } return this ; }
public WrappingStringBuilder append ( final String s ) { final int end = s . length ( ) ; for ( int i = _NUM ; i < end ; i ++ ) { append ( s . charAt ( i ) ) ; } return this ; }
52
java-test-5946
java
What does it check ?
invalid characters in the source string
public void validate User Name ( String user Name , String reg Ex ) throws User Name Password Validation Exception { try { AM User Password Validation plugin = get UP Validation Instance ( ) ; if ( plugin != null ) { debug . message ( STRING ) ; Map env Map = new Hash Map ( NUM ) ; env Map . put ( com . sun . identity ...
public void validateUserName ( String userName , String regEx ) throws UserNamePasswordValidationException { try { AMUserPasswordValidation plugin = getUPValidationInstance ( ) ; if ( plugin != null ) { debug . message ( STRING ) ; Map envMap = new HashMap ( _NUM ) ; envMap . put ( com . sun . identity . shared . Const...
229
java-test-5947
java
What does the code validate by using validation plugin ?
the given user name
public void validate User Name ( String user Name , String reg Ex ) throws User Name Password Validation Exception { try { AM User Password Validation plugin = get UP Validation Instance ( ) ; if ( plugin != null ) { debug . message ( STRING ) ; Map env Map = new Hash Map ( NUM ) ; env Map . put ( com . sun . identity ...
public void validateUserName ( String userName , String regEx ) throws UserNamePasswordValidationException { try { AMUserPasswordValidation plugin = getUPValidationInstance ( ) ; if ( plugin != null ) { debug . message ( STRING ) ; Map envMap = new HashMap ( _NUM ) ; envMap . put ( com . sun . identity . shared . Const...
229
java-test-5948
java
How does the code validate the given user name ?
by using validation plugin
public void validate User Name ( String user Name , String reg Ex ) throws User Name Password Validation Exception { try { AM User Password Validation plugin = get UP Validation Instance ( ) ; if ( plugin != null ) { debug . message ( STRING ) ; Map env Map = new Hash Map ( NUM ) ; env Map . put ( com . sun . identity ...
public void validateUserName ( String userName , String regEx ) throws UserNamePasswordValidationException { try { AMUserPasswordValidation plugin = getUPValidationInstance ( ) ; if ( plugin != null ) { debug . message ( STRING ) ; Map envMap = new HashMap ( _NUM ) ; envMap . put ( com . sun . identity . shared . Const...
229
java-test-5949
java
What is calling on it ?
getminimumspan , getpreferredspan , and getmaximumspan
protected Size Requirements calculate Minor Axis Requirements ( int axis , Size Requirements r ) { if ( r == null ) { r = new Size Requirements ( ) ; } float pref = layout Pool . get Preferred Span ( axis ) ; float min = layout Pool . get Minimum Span ( axis ) ; r . minimum = ( int ) min ; r . preferred = Math . max ( ...
protected SizeRequirements calculateMinorAxisRequirements ( int axis , SizeRequirements r ) { if ( r == null ) { r = new SizeRequirements ( ) ; } float pref = layoutPool . getPreferredSpan ( axis ) ; float min = layoutPool . getMinimumSpan ( axis ) ; r . minimum = ( int ) min ; r . preferred = Math . max ( r . minimum ...
104
java-test-5950
java
How did the request forward to the logical view ?
by calling getminimumspan , getpreferredspan , and getmaximumspan on it
protected Size Requirements calculate Minor Axis Requirements ( int axis , Size Requirements r ) { if ( r == null ) { r = new Size Requirements ( ) ; } float pref = layout Pool . get Preferred Span ( axis ) ; float min = layout Pool . get Minimum Span ( axis ) ; r . minimum = ( int ) min ; r . preferred = Math . max ( ...
protected SizeRequirements calculateMinorAxisRequirements ( int axis , SizeRequirements r ) { if ( r == null ) { r = new SizeRequirements ( ) ; } float pref = layoutPool . getPreferredSpan ( axis ) ; float min = layoutPool . getMinimumSpan ( axis ) ; r . minimum = ( int ) min ; r . preferred = Math . max ( r . minimum ...
104
java-test-5951
java
For what purpose is this implemented ?
to forward the request to the logical view by calling getminimumspan , getpreferredspan , and getmaximumspan on it
protected Size Requirements calculate Minor Axis Requirements ( int axis , Size Requirements r ) { if ( r == null ) { r = new Size Requirements ( ) ; } float pref = layout Pool . get Preferred Span ( axis ) ; float min = layout Pool . get Minimum Span ( axis ) ; r . minimum = ( int ) min ; r . preferred = Math . max ( ...
protected SizeRequirements calculateMinorAxisRequirements ( int axis , SizeRequirements r ) { if ( r == null ) { r = new SizeRequirements ( ) ; } float pref = layoutPool . getPreferredSpan ( axis ) ; float min = layoutPool . getMinimumSpan ( axis ) ; r . minimum = ( int ) min ; r . preferred = Math . max ( r . minimum ...
104
java-test-5952
java
What defined in the timeconstants interface ?
the actual string objects
protected void update ( Timer Status new Status ) { if ( new Status == Timer Status . FORWARD ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING ) ; } backward Button . set Icon ( backward Icon ) ; backward Button . set Action Command ( Timer Status . TIMER BACKWARD ) ; forward Button . set Icon ( pause ...
protected void update ( TimerStatus newStatus ) { if ( newStatus == TimerStatus . FORWARD ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING ) ; } backwardButton . setIcon ( backwardIcon ) ; backwardButton . setActionCommand ( TimerStatus . TIMER_BACKWARD ) ; forwardButton . setIcon ( pauseIcon ) ; forwa...
254
java-test-5953
java
What did propertychangelistener interface method use ?
to find out when the timer has been stopped and started
protected void update ( Timer Status new Status ) { if ( new Status == Timer Status . FORWARD ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING ) ; } backward Button . set Icon ( backward Icon ) ; backward Button . set Action Command ( Timer Status . TIMER BACKWARD ) ; forward Button . set Icon ( pause ...
protected void update ( TimerStatus newStatus ) { if ( newStatus == TimerStatus . FORWARD ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING ) ; } backwardButton . setIcon ( backwardIcon ) ; backwardButton . setActionCommand ( TimerStatus . TIMER_BACKWARD ) ; forwardButton . setIcon ( pauseIcon ) ; forwa...
254
java-test-5954
java
Where did the actual string objects define ?
in the timeconstants interface
protected void update ( Timer Status new Status ) { if ( new Status == Timer Status . FORWARD ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING ) ; } backward Button . set Icon ( backward Icon ) ; backward Button . set Action Command ( Timer Status . TIMER BACKWARD ) ; forward Button . set Icon ( pause ...
protected void update ( TimerStatus newStatus ) { if ( newStatus == TimerStatus . FORWARD ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING ) ; } backwardButton . setIcon ( backwardIcon ) ; backwardButton . setActionCommand ( TimerStatus . TIMER_BACKWARD ) ; forwardButton . setIcon ( pauseIcon ) ; forwa...
254
java-test-5955
java
What used to find out when the timer has been stopped and started ?
propertychangelistener interface method
protected void update ( Timer Status new Status ) { if ( new Status == Timer Status . FORWARD ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING ) ; } backward Button . set Icon ( backward Icon ) ; backward Button . set Action Command ( Timer Status . TIMER BACKWARD ) ; forward Button . set Icon ( pause ...
protected void update ( TimerStatus newStatus ) { if ( newStatus == TimerStatus . FORWARD ) { if ( Debug . debugging ( STRING ) ) { Debug . output ( STRING ) ; } backwardButton . setIcon ( backwardIcon ) ; backwardButton . setActionCommand ( TimerStatus . TIMER_BACKWARD ) ; forwardButton . setIcon ( pauseIcon ) ; forwa...
254
java-test-5957
java
How does the code move the frame rate up or down ?
by changing the timer resolution
private void change Resolution ( boolean faster ) { if ( faster ) { current Resolution -= NUM ; } else { current Resolution += NUM ; } current Resolution = Math . max ( current Resolution , NUM ) ; current Resolution = Math . min ( current Resolution , NUM ) ; start Timer ( current Resolution ) ; }
private void changeResolution ( boolean faster ) { if ( faster ) { currentResolution -= _NUM ; } else { currentResolution += _NUM ; } currentResolution = Math . max ( currentResolution , _NUM ) ; currentResolution = Math . min ( currentResolution , _NUM ) ; startTimer ( currentResolution ) ; }
62
java-test-5958
java
What does the code change ?
the timer resolution
private void change Resolution ( boolean faster ) { if ( faster ) { current Resolution -= NUM ; } else { current Resolution += NUM ; } current Resolution = Math . max ( current Resolution , NUM ) ; current Resolution = Math . min ( current Resolution , NUM ) ; start Timer ( current Resolution ) ; }
private void changeResolution ( boolean faster ) { if ( faster ) { currentResolution -= _NUM ; } else { currentResolution += _NUM ; } currentResolution = Math . max ( currentResolution , _NUM ) ; currentResolution = Math . min ( currentResolution , _NUM ) ; startTimer ( currentResolution ) ; }
62
java-test-5959
java
What does the code move up or down by changing the timer resolution ?
the frame rate
private void change Resolution ( boolean faster ) { if ( faster ) { current Resolution -= NUM ; } else { current Resolution += NUM ; } current Resolution = Math . max ( current Resolution , NUM ) ; current Resolution = Math . min ( current Resolution , NUM ) ; start Timer ( current Resolution ) ; }
private void changeResolution ( boolean faster ) { if ( faster ) { currentResolution -= _NUM ; } else { currentResolution += _NUM ; } currentResolution = Math . max ( currentResolution , _NUM ) ; currentResolution = Math . min ( currentResolution , _NUM ) ; startTimer ( currentResolution ) ; }
62
java-test-5960
java
What does the code create for the given charsequence ?
a map from tokens to regex matchers
private static Map < Token , Matcher > create Matchers ( Map < Token , Pattern > patterns , Char Sequence char Sequence ) { Map < Token , Matcher > matchers = new Hash Map < > ( ) ; for ( Token token : patterns . key Set ( ) ) { Pattern pattern = patterns . get ( token ) ; Matcher matcher = pattern . matcher ( char Seq...
private static Map < Token , Matcher > createMatchers ( Map < Token , Pattern > patterns , CharSequence charSequence ) { Map < Token , Matcher > matchers = new HashMap < > ( ) ; for ( Token token : patterns . keySet ( ) ) { Pattern pattern = patterns . get ( token ) ; Matcher matcher = pattern . matcher ( charSequence ...
89
java-test-5961
java
For what purpose does the code create a map from tokens to regex matchers ?
for the given charsequence
private static Map < Token , Matcher > create Matchers ( Map < Token , Pattern > patterns , Char Sequence char Sequence ) { Map < Token , Matcher > matchers = new Hash Map < > ( ) ; for ( Token token : patterns . key Set ( ) ) { Pattern pattern = patterns . get ( token ) ; Matcher matcher = pattern . matcher ( char Seq...
private static Map < Token , Matcher > createMatchers ( Map < Token , Pattern > patterns , CharSequence charSequence ) { Map < Token , Matcher > matchers = new HashMap < > ( ) ; for ( Token token : patterns . keySet ( ) ) { Pattern pattern = patterns . get ( token ) ; Matcher matcher = pattern . matcher ( charSequence ...
89
java-test-5974
java
What does the caller have ?
discovery permission for each group
private static void check Groups ( String [ ] groups ) { Security Manager sm = System . get Security Manager ( ) ; if ( sm == null ) return ; if ( groups != null ) { for ( int i = NUM ; i < groups . length ; i ++ ) { sm . check Permission ( new Discovery Permission ( groups [ i ] ) ) ; } } else { sm . check Permission ...
private static void checkGroups ( String [ ] groups ) { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm == null ) return ; if ( groups != null ) { for ( int i = _NUM ; i < groups . length ; i ++ ) { sm . checkPermission ( new DiscoveryPermission ( groups [ i ] ) ) ; } } else { sm . checkPermission ( new ...
91
java-test-5975
java
What does the code find if not found ?
a node with a given string
public Key Value Node < String , Integer > find Word ( String a Word ) { a Word = a Word . to Lower Case ( ) ; Key Value Node < String , Integer > parent = root ; int depth = NUM ; while ( parent . has Children ( ) ) { String w = a Word . substring ( NUM , depth ) ; Key Value Node < String , Integer > child = parent . ...
public KeyValueNode < String , Integer > findWord ( String aWord ) { aWord = aWord . toLowerCase ( ) ; KeyValueNode < String , Integer > parent = root ; int depth = _NUM ; while ( parent . hasChildren ( ) ) { String w = aWord . substring ( _NUM , depth ) ; KeyValueNode < String , Integer > child = parent . getChild ( w...
129
java-test-5978
java
What does this method set for a component to be the standard keys ?
the focustraversalkeys
public static void fix Tab Keys ( final J Component component ) { final Set < AWT Key Stroke > forward = new Hash Set < AWT Key Stroke > ( component . get Focus Traversal Keys ( Keyboard Focus Manager . FORWARD TRAVERSAL KEYS ) ) ; forward . add ( Key Stroke . get Key Stroke ( STRING ) ) ; component . set Focus Travers...
public static void fixTabKeys ( final JComponent component ) { final Set < AWTKeyStroke > forward = new HashSet < AWTKeyStroke > ( component . getFocusTraversalKeys ( KeyboardFocusManager . FORWARD_TRAVERSAL_KEYS ) ) ; forward . add ( KeyStroke . getKeyStroke ( STRING ) ) ; component . setFocusTraversalKeys ( KeyboardF...
150
java-test-5979
java
What do you want where ?
the tab keys to leave the control
public static void fix Tab Keys ( final J Component component ) { final Set < AWT Key Stroke > forward = new Hash Set < AWT Key Stroke > ( component . get Focus Traversal Keys ( Keyboard Focus Manager . FORWARD TRAVERSAL KEYS ) ) ; forward . add ( Key Stroke . get Key Stroke ( STRING ) ) ; component . set Focus Travers...
public static void fixTabKeys ( final JComponent component ) { final Set < AWTKeyStroke > forward = new HashSet < AWTKeyStroke > ( component . getFocusTraversalKeys ( KeyboardFocusManager . FORWARD_TRAVERSAL_KEYS ) ) ; forward . add ( KeyStroke . getKeyStroke ( STRING ) ) ; component . setFocusTraversalKeys ( KeyboardF...
150
java-test-5980
java
What do the tab keys leave ?
the control
public static void fix Tab Keys ( final J Component component ) { final Set < AWT Key Stroke > forward = new Hash Set < AWT Key Stroke > ( component . get Focus Traversal Keys ( Keyboard Focus Manager . FORWARD TRAVERSAL KEYS ) ) ; forward . add ( Key Stroke . get Key Stroke ( STRING ) ) ; component . set Focus Travers...
public static void fixTabKeys ( final JComponent component ) { final Set < AWTKeyStroke > forward = new HashSet < AWTKeyStroke > ( component . getFocusTraversalKeys ( KeyboardFocusManager . FORWARD_TRAVERSAL_KEYS ) ) ; forward . add ( KeyStroke . getKeyStroke ( STRING ) ) ; component . setFocusTraversalKeys ( KeyboardF...
150
java-test-5981
java
What leaves the control ?
the tab keys
public static void fix Tab Keys ( final J Component component ) { final Set < AWT Key Stroke > forward = new Hash Set < AWT Key Stroke > ( component . get Focus Traversal Keys ( Keyboard Focus Manager . FORWARD TRAVERSAL KEYS ) ) ; forward . add ( Key Stroke . get Key Stroke ( STRING ) ) ; component . set Focus Travers...
public static void fixTabKeys ( final JComponent component ) { final Set < AWTKeyStroke > forward = new HashSet < AWTKeyStroke > ( component . getFocusTraversalKeys ( KeyboardFocusManager . FORWARD_TRAVERSAL_KEYS ) ) ; forward . add ( KeyStroke . getKeyStroke ( STRING ) ) ; component . setFocusTraversalKeys ( KeyboardF...
150
java-test-5982
java
Where do this use on tables or textareas ?
where you want the tab keys to leave the control
public static void fix Tab Keys ( final J Component component ) { final Set < AWT Key Stroke > forward = new Hash Set < AWT Key Stroke > ( component . get Focus Traversal Keys ( Keyboard Focus Manager . FORWARD TRAVERSAL KEYS ) ) ; forward . add ( Key Stroke . get Key Stroke ( STRING ) ) ; component . set Focus Travers...
public static void fixTabKeys ( final JComponent component ) { final Set < AWTKeyStroke > forward = new HashSet < AWTKeyStroke > ( component . getFocusTraversalKeys ( KeyboardFocusManager . FORWARD_TRAVERSAL_KEYS ) ) ; forward . add ( KeyStroke . getKeyStroke ( STRING ) ) ; component . setFocusTraversalKeys ( KeyboardF...
150
java-test-5984
java
Where did prefix append ?
in front of the fault code
public Coded Exception with Prefix ( String ... prefixes ) { String prefix = String Utils . join ( prefixes , STRING ) ; if ( ! fault Code . starts With ( prefix ) ) { fault Code = prefix + STRING + fault Code ; } return this ; }
public CodedException withPrefix ( String ... prefixes ) { String prefix = StringUtils . join ( prefixes , STRING ) ; if ( ! faultCode . startsWith ( prefix ) ) { faultCode = prefix + STRING + faultCode ; } return this ; }
52
java-test-5985
java
What does the code convert into a dayofweek ?
a string representation of a day
public static Day Of Week as Day ( String day ) { Day Of Week day Of Week = DAYMAP . get ( day . to Lower Case ( ) ) ; if ( day Of Week == null ) LOGGER . warn ( STRING , day ) ; return day Of Week ; }
public static DayOfWeek asDay ( String day ) { DayOfWeek dayOfWeek = DAYMAP . get ( day . toLowerCase ( ) ) ; if ( dayOfWeek == null ) LOGGER . warn ( STRING , day ) ; return dayOfWeek ; }
55
java-test-5988
java
What do we go when ?
to delete the volume
private void cleanup Any Backup Snapshots ( final Storage System storage , final Volume volume ) throws Exception { log . info ( String . format ( STRING , volume . get Label ( ) , volume . get Id ( ) ) ) ; CIM Object Path volume Path = cim Path . get Block Object Path ( storage , volume ) ; if ( helper . check Exists ...
private void cleanupAnyBackupSnapshots ( final StorageSystem storage , final Volume volume ) throws Exception { _log . info ( String . format ( STRING , volume . getLabel ( ) , volume . getId ( ) ) ) ; CIMObjectPath volumePath = _cimPath . getBlockObjectPath ( storage , volume ) ; if ( _helper . checkExists ( storage ,...
251
java-test-5989
java
Where be backup snapshot created be if there ' s a restore operation against an ' advanced ' snap typically ?
on vnx arrays
private void cleanup Any Backup Snapshots ( final Storage System storage , final Volume volume ) throws Exception { log . info ( String . format ( STRING , volume . get Label ( ) , volume . get Id ( ) ) ) ; CIM Object Path volume Path = cim Path . get Block Object Path ( storage , volume ) ; if ( helper . check Exists ...
private void cleanupAnyBackupSnapshots ( final StorageSystem storage , final Volume volume ) throws Exception { _log . info ( String . format ( STRING , volume . getLabel ( ) , volume . getId ( ) ) ) ; CIMObjectPath volumePath = _cimPath . getBlockObjectPath ( storage , volume ) ; if ( _helper . checkExists ( storage ,...
251
java-test-5990
java
What be on vnx arrays ?
backup snapshot created
private void cleanup Any Backup Snapshots ( final Storage System storage , final Volume volume ) throws Exception { log . info ( String . format ( STRING , volume . get Label ( ) , volume . get Id ( ) ) ) ; CIM Object Path volume Path = cim Path . get Block Object Path ( storage , volume ) ; if ( helper . check Exists ...
private void cleanupAnyBackupSnapshots ( final StorageSystem storage , final Volume volume ) throws Exception { _log . info ( String . format ( STRING , volume . getLabel ( ) , volume . getId ( ) ) ) ; CIMObjectPath volumePath = _cimPath . getBlockObjectPath ( storage , volume ) ; if ( _helper . checkExists ( storage ,...
251
java-test-5991
java
What will method have make ?
synchronous smi - s calls to clean up any backup snapshots that may exist for the volume
private void cleanup Any Backup Snapshots ( final Storage System storage , final Volume volume ) throws Exception { log . info ( String . format ( STRING , volume . get Label ( ) , volume . get Id ( ) ) ) ; CIM Object Path volume Path = cim Path . get Block Object Path ( storage , volume ) ; if ( helper . check Exists ...
private void cleanupAnyBackupSnapshots ( final StorageSystem storage , final Volume volume ) throws Exception { _log . info ( String . format ( STRING , volume . getLabel ( ) , volume . getId ( ) ) ) ; CIMObjectPath volumePath = _cimPath . getBlockObjectPath ( storage , volume ) ; if ( _helper . checkExists ( storage ,...
251
java-test-5992
java
When do we clean them all ?
when we go to delete the volume
private void cleanup Any Backup Snapshots ( final Storage System storage , final Volume volume ) throws Exception { log . info ( String . format ( STRING , volume . get Label ( ) , volume . get Id ( ) ) ) ; CIM Object Path volume Path = cim Path . get Block Object Path ( storage , volume ) ; if ( helper . check Exists ...
private void cleanupAnyBackupSnapshots ( final StorageSystem storage , final Volume volume ) throws Exception { _log . info ( String . format ( STRING , volume . getLabel ( ) , volume . getId ( ) ) ) ; CIMObjectPath volumePath = _cimPath . getBlockObjectPath ( storage , volume ) ; if ( _helper . checkExists ( storage ,...
251
java-test-5993
java
What do the getgui ( ) method recreate if needed ?
the palette components
protected void reset Palette ( ) { java . awt . Container pal = get Palette ( ) ; boolean put Up = BOOL ; if ( pal != null && pal . is Visible ( ) ) { put Up = BOOL ; set Palette Visible ( BOOL ) ; } if ( put Up ) { set Palette Visible ( BOOL ) ; } }
protected void resetPalette ( ) { java . awt . Container pal = getPalette ( ) ; boolean putUp = _BOOL ; if ( pal != null && pal . isVisible ( ) ) { putUp = _BOOL ; setPaletteVisible ( _BOOL ) ; } if ( putUp ) { setPaletteVisible ( _BOOL ) ; } }
67
java-test-5994
java
What will the code called when something about the layer has changed that would require the palette to be reconfigured cause ?
getgui ( ) to be called again
protected void reset Palette ( ) { java . awt . Container pal = get Palette ( ) ; boolean put Up = BOOL ; if ( pal != null && pal . is Visible ( ) ) { put Up = BOOL ; set Palette Visible ( BOOL ) ; } if ( put Up ) { set Palette Visible ( BOOL ) ; } }
protected void resetPalette ( ) { java . awt . Container pal = getPalette ( ) ; boolean putUp = _BOOL ; if ( pal != null && pal . isVisible ( ) ) { putUp = _BOOL ; setPaletteVisible ( _BOOL ) ; } if ( putUp ) { setPaletteVisible ( _BOOL ) ; } }
67
java-test-5995
java
What will cause getgui ( ) to be called again ?
the code called when something about the layer has changed that would require the palette to be reconfigured
protected void reset Palette ( ) { java . awt . Container pal = get Palette ( ) ; boolean put Up = BOOL ; if ( pal != null && pal . is Visible ( ) ) { put Up = BOOL ; set Palette Visible ( BOOL ) ; } if ( put Up ) { set Palette Visible ( BOOL ) ; } }
protected void resetPalette ( ) { java . awt . Container pal = getPalette ( ) ; boolean putUp = _BOOL ; if ( pal != null && pal . isVisible ( ) ) { putUp = _BOOL ; setPaletteVisible ( _BOOL ) ; } if ( putUp ) { setPaletteVisible ( _BOOL ) ; } }
67
java-test-5996
java
When would that require the palette to be reconfigured ?
when something about the layer
protected void reset Palette ( ) { java . awt . Container pal = get Palette ( ) ; boolean put Up = BOOL ; if ( pal != null && pal . is Visible ( ) ) { put Up = BOOL ; set Palette Visible ( BOOL ) ; } if ( put Up ) { set Palette Visible ( BOOL ) ; } }
protected void resetPalette ( ) { java . awt . Container pal = getPalette ( ) ; boolean putUp = _BOOL ; if ( pal != null && pal . isVisible ( ) ) { putUp = _BOOL ; setPaletteVisible ( _BOOL ) ; } if ( putUp ) { setPaletteVisible ( _BOOL ) ; } }
67
java-test-5997
java
What recreates the palette components if needed ?
the getgui ( ) method
protected void reset Palette ( ) { java . awt . Container pal = get Palette ( ) ; boolean put Up = BOOL ; if ( pal != null && pal . is Visible ( ) ) { put Up = BOOL ; set Palette Visible ( BOOL ) ; } if ( put Up ) { set Palette Visible ( BOOL ) ; } }
protected void resetPalette ( ) { java . awt . Container pal = getPalette ( ) ; boolean putUp = _BOOL ; if ( pal != null && pal . isVisible ( ) ) { putUp = _BOOL ; setPaletteVisible ( _BOOL ) ; } if ( putUp ) { setPaletteVisible ( _BOOL ) ; } }
67
java-test-5998
java
When should you take steps ?
before calling this method to make sure that the getgui ( ) method is ready to recreate the palette components from scratch if needed
protected void reset Palette ( ) { java . awt . Container pal = get Palette ( ) ; boolean put Up = BOOL ; if ( pal != null && pal . is Visible ( ) ) { put Up = BOOL ; set Palette Visible ( BOOL ) ; } if ( put Up ) { set Palette Visible ( BOOL ) ; } }
protected void resetPalette ( ) { java . awt . Container pal = getPalette ( ) ; boolean putUp = _BOOL ; if ( pal != null && pal . isVisible ( ) ) { putUp = _BOOL ; setPaletteVisible ( _BOOL ) ; } if ( putUp ) { setPaletteVisible ( _BOOL ) ; } }
67
java-test-5999
java
What would that require when something about the layer ?
the palette to be reconfigured
protected void reset Palette ( ) { java . awt . Container pal = get Palette ( ) ; boolean put Up = BOOL ; if ( pal != null && pal . is Visible ( ) ) { put Up = BOOL ; set Palette Visible ( BOOL ) ; } if ( put Up ) { set Palette Visible ( BOOL ) ; } }
protected void resetPalette ( ) { java . awt . Container pal = getPalette ( ) ; boolean putUp = _BOOL ; if ( pal != null && pal . isVisible ( ) ) { putUp = _BOOL ; setPaletteVisible ( _BOOL ) ; } if ( putUp ) { setPaletteVisible ( _BOOL ) ; } }
67
java-test-6000
java
For what purpose do this method call ?
to make sure that the getgui ( ) method is ready to recreate the palette components from scratch if needed
protected void reset Palette ( ) { java . awt . Container pal = get Palette ( ) ; boolean put Up = BOOL ; if ( pal != null && pal . is Visible ( ) ) { put Up = BOOL ; set Palette Visible ( BOOL ) ; } if ( put Up ) { set Palette Visible ( BOOL ) ; } }
protected void resetPalette ( ) { java . awt . Container pal = getPalette ( ) ; boolean putUp = _BOOL ; if ( pal != null && pal . isVisible ( ) ) { putUp = _BOOL ; setPaletteVisible ( _BOOL ) ; } if ( putUp ) { setPaletteVisible ( _BOOL ) ; } }
67
java-test-6001
java
When did the code call ?
when something about the layer has changed
protected void reset Palette ( ) { java . awt . Container pal = get Palette ( ) ; boolean put Up = BOOL ; if ( pal != null && pal . is Visible ( ) ) { put Up = BOOL ; set Palette Visible ( BOOL ) ; } if ( put Up ) { set Palette Visible ( BOOL ) ; } }
protected void resetPalette ( ) { java . awt . Container pal = getPalette ( ) ; boolean putUp = _BOOL ; if ( pal != null && pal . isVisible ( ) ) { putUp = _BOOL ; setPaletteVisible ( _BOOL ) ; } if ( putUp ) { setPaletteVisible ( _BOOL ) ; } }
67
java-test-6002
java
What does the code stop ?
the timer for specified key
public static long stop ( @ Non Null String key ) { long now = System . current Time Millis ( ) ; Map < String , Long > current Map = map . get ( ) ; Optional < Long > maybe Previous Instant = Optional . with ( current Map . get ( key ) ) ; if ( maybe Previous Instant . is Empty ( ) ) { Log . warn ( Timer . class , STR...
public static long stop ( @ NonNull String key ) { long now = System . currentTimeMillis ( ) ; Map < String , Long > currentMap = map . get ( ) ; Optional < Long > maybePreviousInstant = Optional . with ( currentMap . get ( key ) ) ; if ( maybePreviousInstant . isEmpty ( ) ) { Log . warn ( Timer . class , STRING , key ...
121
java-test-6003
java
For what purpose does an ast tree build ?
to access the iterator ( ) method of some iterable expression
public Member Select Tree build Iterator Method Access ( Expression Tree iterable Expr ) { Declared Type expr Type = ( Declared Type ) Types Utils . upper Bound ( Internal Utils . type Of ( iterable Expr ) ) ; assert expr Type != null : STRING ; Type Element expr Element = ( Type Element ) expr Type . as Element ( ) ; ...
public MemberSelectTree buildIteratorMethodAccess ( ExpressionTree iterableExpr ) { DeclaredType exprType = ( DeclaredType ) TypesUtils . upperBound ( InternalUtils . typeOf ( iterableExpr ) ) ; assert exprType != null : STRING ; TypeElement exprElement = ( TypeElement ) exprType . asElement ( ) ; Symbol . MethodSymbol...
425
java-test-6004
java
What do an ast tree access ?
the iterator ( ) method of some iterable expression
public Member Select Tree build Iterator Method Access ( Expression Tree iterable Expr ) { Declared Type expr Type = ( Declared Type ) Types Utils . upper Bound ( Internal Utils . type Of ( iterable Expr ) ) ; assert expr Type != null : STRING ; Type Element expr Element = ( Type Element ) expr Type . as Element ( ) ; ...
public MemberSelectTree buildIteratorMethodAccess ( ExpressionTree iterableExpr ) { DeclaredType exprType = ( DeclaredType ) TypesUtils . upperBound ( InternalUtils . typeOf ( iterableExpr ) ) ; assert exprType != null : STRING ; TypeElement exprElement = ( TypeElement ) exprType . asElement ( ) ; Symbol . MethodSymbol...
425
java-test-6006
java
How do this overloading run ?
slower than the overloadings that do not use varargs
public static < E extends Enum < E > > Enum Set < E > of ( E e ) { Enum Set < E > result = none Of ( e . get Declaring Class ( ) ) ; result . add ( e ) ; return result ; }
public static < E extends Enum < E > > EnumSet < E > of ( E e ) { EnumSet < E > result = noneOf ( e . getDeclaringClass ( ) ) ; result . add ( e ) ; return result ; }
51
java-test-6007
java
What may be used to create an enum set initially containing an arbitrary number of elements ?
this overloading
public static < E extends Enum < E > > Enum Set < E > of ( E e ) { Enum Set < E > result = none Of ( e . get Declaring Class ( ) ) ; result . add ( e ) ; return result ; }
public static < E extends Enum < E > > EnumSet < E > of ( E e ) { EnumSet < E > result = noneOf ( e . getDeclaringClass ( ) ) ; result . add ( e ) ; return result ; }
51
java-test-6008
java
What uses the varargs feature ?
a sixth overloading
public static < E extends Enum < E > > Enum Set < E > of ( E e ) { Enum Set < E > result = none Of ( e . get Declaring Class ( ) ) ; result . add ( e ) ; return result ; }
public static < E extends Enum < E > > EnumSet < E > of ( E e ) { EnumSet < E > result = noneOf ( e . getDeclaringClass ( ) ) ; result . add ( e ) ; return result ; }
51
java-test-6009
java
What may this overloading be used ?
to create an enum set initially containing an arbitrary number of elements
public static < E extends Enum < E > > Enum Set < E > of ( E e ) { Enum Set < E > result = none Of ( e . get Declaring Class ( ) ) ; result . add ( e ) ; return result ; }
public static < E extends Enum < E > > EnumSet < E > of ( E e ) { EnumSet < E > result = noneOf ( e . getDeclaringClass ( ) ) ; result . add ( e ) ; return result ; }
51
java-test-6010
java
What did a sixth overloading use ?
the varargs feature
public static < E extends Enum < E > > Enum Set < E > of ( E e ) { Enum Set < E > result = none Of ( e . get Declaring Class ( ) ) ; result . add ( e ) ; return result ; }
public static < E extends Enum < E > > EnumSet < E > of ( E e ) { EnumSet < E > result = noneOf ( e . getDeclaringClass ( ) ) ; result . add ( e ) ; return result ; }
51
java-test-6011
java
What do not use varargs ?
the overloadings
public static < E extends Enum < E > > Enum Set < E > of ( E e ) { Enum Set < E > result = none Of ( e . get Declaring Class ( ) ) ; result . add ( e ) ; return result ; }
public static < E extends Enum < E > > EnumSet < E > of ( E e ) { EnumSet < E > result = noneOf ( e . getDeclaringClass ( ) ) ; result . add ( e ) ; return result ; }
51
java-test-6012
java
What do the overloadings not use ?
varargs
public static < E extends Enum < E > > Enum Set < E > of ( E e ) { Enum Set < E > result = none Of ( e . get Declaring Class ( ) ) ; result . add ( e ) ; return result ; }
public static < E extends Enum < E > > EnumSet < E > of ( E e ) { EnumSet < E > result = noneOf ( e . getDeclaringClass ( ) ) ; result . add ( e ) ; return result ; }
51
java-test-6013
java
How do an enum set initialize ?
with one through five elements
public static < E extends Enum < E > > Enum Set < E > of ( E e ) { Enum Set < E > result = none Of ( e . get Declaring Class ( ) ) ; result . add ( e ) ; return result ; }
public static < E extends Enum < E > > EnumSet < E > of ( E e ) { EnumSet < E > result = noneOf ( e . getDeclaringClass ( ) ) ; result . add ( e ) ; return result ; }
51
java-test-6016
java
When do information log ?
when entering a search node
final long log Node Start ( long parent Index , Move m , int alpha , int beta , int ply , int depth ) { bb . put Int ( NUM , ( int ) - NUM ) ; bb . put Int ( NUM , ( int ) parent Index ) ; bb . put Short ( NUM , ( short ) ( m . from + ( m . to << NUM ) + ( m . promote To << NUM ) ) ) ; bb . put Short ( NUM , ( short ) ...
final long logNodeStart ( long parentIndex , Move m , int alpha , int beta , int ply , int depth ) { bb . putInt ( _NUM , ( int ) - _NUM ) ; bb . putInt ( _NUM , ( int ) parentIndex ) ; bb . putShort ( _NUM , ( short ) ( m . from + ( m . to << _NUM ) + ( m . promoteTo << _NUM ) ) ) ; bb . putShort ( _NUM , ( short ) al...
173
java-test-6017
java
What leaves intact in the given string ?
each code point
public static String randomly Recase Code Points ( Random random , String str ) { String Builder builder = new String Builder ( ) ; int pos = NUM ; while ( pos < str . length ( ) ) { int code Point = str . code Point At ( pos ) ; pos += Character . char Count ( code Point ) ; switch ( next Int ( random , NUM , NUM ) ) ...
public static String randomlyRecaseCodePoints ( Random random , String str ) { StringBuilder builder = new StringBuilder ( ) ; int pos = _NUM ; while ( pos < str . length ( ) ) { int codePoint = str . codePointAt ( pos ) ; pos += Character . charCount ( codePoint ) ; switch ( nextInt ( random , _NUM , _NUM ) ) { case _...
146
java-test-6018
java
What do check traffic purchase supported to other apps need ?
permission miui . permission
public static boolean is Traffic Purchase Supported ( Context context , int slot Id ) { if ( context != null && slot Id >= NUM && slot Id < NUM ) { try { final Uri uri = Uri . parse ( String . format ( TRAFFIC PURCHASE STATUS URI STR ISMI , slot Id ) ) ; return query Traffic Purchase Status ( context , uri ) ; } catch ...
public static boolean isTrafficPurchaseSupported ( Context context , int slotId ) { if ( context != null && slotId >= _NUM && slotId < _NUM ) { try { final Uri uri = Uri . parse ( String . format ( TRAFFIC_PURCHASE_STATUS_URI_STR_ISMI , slotId ) ) ; return queryTrafficPurchaseStatus ( context , uri ) ; } catch ( Except...
91
java-test-6023
java
What does the code not cancel ?
the given lease
public synchronized void remove ( Lease lease ) throws Unknown Lease Exception { Entry e = find Entry ( lease ) ; if ( ! remove Lease In Renew ( e ) ) leases . remove ( e ) ; calc Actual Renews ( ) ; logger . log ( Level . FINE , STRING , lease ) ; }
public synchronized void remove ( Lease lease ) throws UnknownLeaseException { Entry e = findEntry ( lease ) ; if ( ! removeLeaseInRenew ( e ) ) leases . remove ( e ) ; calcActualRenews ( ) ; logger . log ( Level . FINE , STRING , lease ) ; }
60
java-test-6024
java
What does the code remove from the managed set of leases ?
a given lease
public synchronized void remove ( Lease lease ) throws Unknown Lease Exception { Entry e = find Entry ( lease ) ; if ( ! remove Lease In Renew ( e ) ) leases . remove ( e ) ; calc Actual Renews ( ) ; logger . log ( Level . FINE , STRING , lease ) ; }
public synchronized void remove ( Lease lease ) throws UnknownLeaseException { Entry e = findEntry ( lease ) ; if ( ! removeLeaseInRenew ( e ) ) leases . remove ( e ) ; calcActualRenews ( ) ; logger . log ( Level . FINE , STRING , lease ) ; }
60
java-test-6027
java
What does the code run ?
the pam optimization phase
protected void run PAM Optimization ( Distance Query < V > dist Q , DBI Ds ids , Array Modifiable DBI Ds medoids , Writable Integer Data Store assignment ) { Writable Double Data Store nearest = Data Store Util . make Double Storage ( ids , Data Store Factory . HINT HOT | Data Store Factory . HINT TEMP ) ; Writable Dou...
protected void runPAMOptimization ( DistanceQuery < V > distQ , DBIDs ids , ArrayModifiableDBIDs medoids , WritableIntegerDataStore assignment ) { WritableDoubleDataStore nearest = DataStoreUtil . makeDoubleStorage ( ids , DataStoreFactory . HINT_HOT | DataStoreFactory . HINT_TEMP ) ; WritableDoubleDataStore second = D...
750
java-test-6028
java
In which direction must databuffer start ?
from from the start of the body
public Mp 4 Esds Box ( Mp 4 Box Header header , Byte Buffer data Buffer ) { this . header = header ; int section Three Length ; int section Four Length ; int section Five Length ; int section Six Length ; data Buffer . position ( data Buffer . position ( ) + VERSION FLAG LENGTH + OTHER FLAG LENGTH ) ; if ( data Buffer ...
public Mp4EsdsBox ( Mp4BoxHeader header , ByteBuffer dataBuffer ) { this . header = header ; int sectionThreeLength ; int sectionFourLength ; int sectionFiveLength ; int sectionSixLength ; dataBuffer . position ( dataBuffer . position ( ) + VERSION_FLAG_LENGTH + OTHER_FLAG_LENGTH ) ; if ( dataBuffer . get ( ) == SECTIO...
359
java-test-6029
java
What does the code create in the pool ?
new named threadpool with a specified amount of minimum and maximum elements
public Thread Pool ( String identifier , int min , int max ) { set Identifier ( identifier ) ; set Min ( min ) ; set Max ( max ) ; group = new Thread Group ( identifier ) ; group . set Daemon ( BOOL ) ; try { create Resources ( ) ; } catch ( Resource Unavailable Exception e ) { logger . log ( Level . SEVERE , STRING + ...
public ThreadPool ( String identifier , int min , int max ) { setIdentifier ( identifier ) ; setMin ( min ) ; setMax ( max ) ; group = new ThreadGroup ( identifier ) ; group . setDaemon ( _BOOL ) ; try { createResources ( ) ; } catch ( ResourceUnavailableException e ) { logger . log ( Level . SEVERE , STRING + min + ST...
86
java-test-6030
java
What does the code write to the file header ?
the bucket count , bucket size and item count
private void write File Header ( ) throws IO Exception { Byte Buffer buf = Byte Buffer . allocate ( ( int ) HEADER LENGTH ) ; buf . put ( MAGIC NUMBER ) ; buf . put ( FILE FORMAT VERSION ) ; buf . put Int ( bucket Count ) ; buf . put Int ( bucket Size ) ; buf . put Int ( item Count ) ; buf . rewind ( ) ; nio File . wri...
private void writeFileHeader ( ) throws IOException { ByteBuffer buf = ByteBuffer . allocate ( ( int ) HEADER_LENGTH ) ; buf . put ( MAGIC_NUMBER ) ; buf . put ( FILE_FORMAT_VERSION ) ; buf . putInt ( bucketCount ) ; buf . putInt ( bucketSize ) ; buf . putInt ( itemCount ) ; buf . rewind ( ) ; nioFile . write ( buf , _...
88
java-test-6032
java
When does this happen ?
when we encounter isolated cjk characters
private void flush Unigram ( ) { clear Attributes ( ) ; char term Buffer [ ] = term Att . resize Buffer ( NUM ) ; int len = Character . to Chars ( buffer [ index ] , term Buffer , NUM ) ; term Att . set Length ( len ) ; offset Att . set Offset ( start Offset [ index ] , end Offset [ index ] ) ; type Att . set Type ( SI...
private void flushUnigram ( ) { clearAttributes ( ) ; char termBuffer [ ] = termAtt . resizeBuffer ( _NUM ) ; int len = Character . toChars ( buffer [ index ] , termBuffer , _NUM ) ; termAtt . setLength ( len ) ; offsetAtt . setOffset ( startOffset [ index ] , endOffset [ index ] ) ; typeAtt . setType ( SINGLE_TYPE ) ;...
88
java-test-6033
java
What does we encounter when ?
isolated cjk characters
private void flush Unigram ( ) { clear Attributes ( ) ; char term Buffer [ ] = term Att . resize Buffer ( NUM ) ; int len = Character . to Chars ( buffer [ index ] , term Buffer , NUM ) ; term Att . set Length ( len ) ; offset Att . set Offset ( start Offset [ index ] , end Offset [ index ] ) ; type Att . set Type ( SI...
private void flushUnigram ( ) { clearAttributes ( ) ; char termBuffer [ ] = termAtt . resizeBuffer ( _NUM ) ; int len = Character . toChars ( buffer [ index ] , termBuffer , _NUM ) ; termAtt . setLength ( len ) ; offsetAtt . setOffset ( startOffset [ index ] , endOffset [ index ] ) ; typeAtt . setType ( SINGLE_TYPE ) ;...
88
java-test-6034
java
What do we encounter ?
a cjk character surrounded by space , punctuation , english , etc , but not beside any other cjk
private void flush Unigram ( ) { clear Attributes ( ) ; char term Buffer [ ] = term Att . resize Buffer ( NUM ) ; int len = Character . to Chars ( buffer [ index ] , term Buffer , NUM ) ; term Att . set Length ( len ) ; offset Att . set Offset ( start Offset [ index ] , end Offset [ index ] ) ; type Att . set Type ( SI...
private void flushUnigram ( ) { clearAttributes ( ) ; char termBuffer [ ] = termAtt . resizeBuffer ( _NUM ) ; int len = Character . toChars ( buffer [ index ] , termBuffer , _NUM ) ; termAtt . setLength ( len ) ; offsetAtt . setOffset ( startOffset [ index ] , endOffset [ index ] ) ; typeAtt . setType ( SINGLE_TYPE ) ;...
88
java-test-6035
java
What does the code convert to a readable cfile for airprobe ( gnuradio ) ?
a bin file
public static void bin To Cfile ( File binfile ) throws IO Exception { int i = NUM ; int byte 1 , byte 2 ; Input Stream buffy = new Buffered Input Stream ( new File Input Stream ( binfile ) ) ; Little Endian Output Stream data Out = new Little Endian Output Stream ( new Buffered Output Stream ( new File Output Stream (...
public static void binToCfile ( File binfile ) throws IOException { int i = _NUM ; int byte1 , byte2 ; InputStream buffy = new BufferedInputStream ( new FileInputStream ( binfile ) ) ; LittleEndianOutputStream dataOut = new LittleEndianOutputStream ( new BufferedOutputStream ( new FileOutputStream ( binfile . getAbsolu...
175
java-test-6036
java
What did the code set for the color for the color ?
the alpha
public int adjust Alpha ( int color , float factor ) { int alpha = Math . round ( Color . alpha ( color ) * factor ) ; int red = Color . red ( color ) ; int green = Color . green ( color ) ; int blue = Color . blue ( color ) ; return Color . argb ( alpha , red , green , blue ) ; }
public int adjustAlpha ( int color , float factor ) { int alpha = Math . round ( Color . alpha ( color ) * factor ) ; int red = Color . red ( color ) ; int green = Color . green ( color ) ; int blue = Color . blue ( color ) ; return Color . argb ( alpha , red , green , blue ) ; }
74
java-test-6037
java
What has at least one phone number ?
the contact with the particular contactid
public static boolean has Phone Number ( Content Resolver resolver , long contact ID ) { Cursor phone Cursor ; String [ ] selection Args = { String . value Of ( contact ID ) } ; Uri content Uri = Common Data Kinds . Phone . CONTENT URI ; phone Cursor = resolver . query ( content Uri , Data Type Query . PROJECTION , Dat...
public static boolean hasPhoneNumber ( ContentResolver resolver , long contactID ) { Cursor phoneCursor ; String [ ] selectionArgs = { String . valueOf ( contactID ) } ; Uri contentUri = CommonDataKinds . Phone . CONTENT_URI ; phoneCursor = resolver . query ( contentUri , DataTypeQuery . PROJECTION , DataTypeQuery . SE...
152
java-test-6038
java
What does the contact with the particular contactid have ?
at least one phone number
public static boolean has Phone Number ( Content Resolver resolver , long contact ID ) { Cursor phone Cursor ; String [ ] selection Args = { String . value Of ( contact ID ) } ; Uri content Uri = Common Data Kinds . Phone . CONTENT URI ; phone Cursor = resolver . query ( content Uri , Data Type Query . PROJECTION , Dat...
public static boolean hasPhoneNumber ( ContentResolver resolver , long contactID ) { Cursor phoneCursor ; String [ ] selectionArgs = { String . valueOf ( contactID ) } ; Uri contentUri = CommonDataKinds . Phone . CONTENT_URI ; phoneCursor = resolver . query ( contentUri , DataTypeQuery . PROJECTION , DataTypeQuery . SE...
152
java-test-6039
java
What does the code check ?
whether a name matches selector
private boolean matches ( String selector , String name ) { if ( selector . equals ( STRING ) ) { return BOOL ; } if ( selector . ends With ( STRING ) ) { return name . starts With ( selector . substring ( NUM , selector . length ( ) - NUM ) ) ; } return name . equals ( selector ) ; }
private boolean matches ( String selector , String name ) { if ( selector . equals ( STRING ) ) { return _BOOL ; } if ( selector . endsWith ( STRING ) ) { return name . startsWith ( selector . substring ( _NUM , selector . length ( ) - _NUM ) ) ; } return name . equals ( selector ) ; }
68
java-test-6040
java
What does the code create ?
a new filefloatsource
public File Float Source ( Schema Field field , Schema Field key Field , float def Val , String datadir ) { this . field = field ; this . key Field = key Field ; this . def Val = def Val ; this . data Dir = datadir ; }
public FileFloatSource ( SchemaField field , SchemaField keyField , float defVal , String datadir ) { this . field = field ; this . keyField = keyField ; this . defVal = defVal ; this . dataDir = datadir ; }
52
java-test-6042
java
What does the code update ?
the representation of the text form
@ Suppress Warnings ( STRING ) private void update Representation ( List < Invocation Sequence Data > invocations ) { source Invocations = invocations ; reset Displayed = BOOL ; Mutable Double duration = new Mutable Double ( NUM ) ; List < Sql Statement Data > sql List = new Array List < > ( ) ; Invocation Sequence Dat...
@ SuppressWarnings ( STRING ) private void updateRepresentation ( List < InvocationSequenceData > invocations ) { sourceInvocations = invocations ; resetDisplayed = _BOOL ; MutableDouble duration = new MutableDouble ( _NUM ) ; List < SqlStatementData > sqlList = new ArrayList < > ( ) ; InvocationSequenceDataHelper . co...
721
java-test-6043
java
Where do a point plot ?
in our visualization on - screen
private void plot Point ( int x , int y , int width , int height , double [ ] probs , boolean update ) { Graphics osg = m osi . get Graphics ( ) ; if ( update ) { osg . set XOR Mode ( Color . white ) ; osg . draw Line ( NUM , y , m panel Width - NUM , y ) ; update ( ) ; osg . draw Line ( NUM , y , m panel Width - NUM ,...
private void plotPoint ( int x , int y , int width , int height , double [ ] probs , boolean update ) { Graphics osg = m_osi . getGraphics ( ) ; if ( update ) { osg . setXORMode ( Color . white ) ; osg . drawLine ( _NUM , y , m_panelWidth - _NUM , y ) ; update ( ) ; osg . drawLine ( _NUM , y , m_panelWidth - _NUM , y )...
306
java-test-6046
java
What does the code make ?
a copy of the given unrooted tree
public Re Rooted Tree ( Rooted Tree source , Node ingroup Node , Node outgroup Node , double ingroup Branch Length ) throws No Edge Exception { this . source = source ; List < Node > children = new Array List < Node > ( ) ; Node node 1 = create Nodes ( source , outgroup Node , ingroup Node ) ; set Length ( node 1 , ing...
public ReRootedTree ( RootedTree source , Node ingroupNode , Node outgroupNode , double ingroupBranchLength ) throws NoEdgeException { this . source = source ; List < Node > children = new ArrayList < Node > ( ) ; Node node1 = createNodes ( source , outgroupNode , ingroupNode ) ; setLength ( node1 , ingroupBranchLength...
207
java-test-6047
java
How do header pack ?
by fastdht transfer protocol
public static void pack Header ( Pkg Header header , byte [ ] bs ) throws Unsupported Encoding Exception { Arrays . fill ( bs , NUM , FDHT PROTO PKG HEADER SIZE , ( byte ) NUM ) ; Proto Common . int 2 buff ( header . body len , bs , PROTO HEADER BODY LEN INDEX ) ; Proto Common . int 2 buff ( header . key hash code , bs...
public static void packHeader ( PkgHeader header , byte [ ] bs ) throws UnsupportedEncodingException { Arrays . fill ( bs , _NUM , FDHT_PROTO_PKG_HEADER_SIZE , ( byte ) _NUM ) ; ProtoCommon . int2buff ( header . body_len , bs , PROTO_HEADER_BODY_LEN_INDEX ) ; ProtoCommon . int2buff ( header . key_hash_code , bs , PROTO...
163
java-test-6048
java
What does the code generate ?
a statistics object based on the given measurements for all files monitored by this reporter
private Named List < Number > create Statistics ( long total Bytes , long local Bytes , int total Count , int local Count ) { Named List < Number > statistics = new Simple Ordered Map < Number > ( ) ; statistics . add ( LOCALITY BYTES TOTAL , total Bytes ) ; statistics . add ( LOCALITY BYTES LOCAL , local Bytes ) ; if ...
private NamedList < Number > createStatistics ( long totalBytes , long localBytes , int totalCount , int localCount ) { NamedList < Number > statistics = new SimpleOrderedMap < Number > ( ) ; statistics . add ( LOCALITY_BYTES_TOTAL , totalBytes ) ; statistics . add ( LOCALITY_BYTES_LOCAL , localBytes ) ; if ( localByte...
177
java-test-6049
java
What does the code wake ?
a connection from a select / poll close
@ Override public void request Close Read ( ) { state = state . to Close Read ( ) ; try { request Loop ( ) ; } catch ( Exception e ) { log . log ( Level . WARNING , e . to String ( ) , e ) ; } }
@ Override public void requestCloseRead ( ) { _state = _state . toCloseRead ( ) ; try { requestLoop ( ) ; } catch ( Exception e ) { log . log ( Level . WARNING , e . toString ( ) , e ) ; } }
54
java-test-6050
java
What does the code read ?
a single row from the stream
public void read Row ( final Data Input Stream in , final double [ ] data , final Column Type [ ] column Types , final boolean sparse , final double [ ] sparse Defaults ) throws IO Exception { if ( sparse ) { System . arraycopy ( sparse Defaults , NUM , data , NUM , sparse Defaults . length ) ; while ( BOOL ) { int ind...
public void readRow ( final DataInputStream in , final double [ ] data , final ColumnType [ ] columnTypes , final boolean sparse , final double [ ] sparseDefaults ) throws IOException { if ( sparse ) { System . arraycopy ( sparseDefaults , _NUM , data , _NUM , sparseDefaults . length ) ; while ( _BOOL ) { int index = i...
157
java-test-6051
java
What constructs from taxonkeyword ' s scientific name and common name properties ?
display name
private String create Keyword Display Name ( Taxon Keyword keyword ) { String combined = null ; if ( keyword != null ) { String scientific Name = String Utils . trim To Null ( keyword . get Scientific Name ( ) ) ; String common Name = String Utils . trim To Null ( keyword . get Common Name ( ) ) ; if ( scientific Name ...
private String createKeywordDisplayName ( TaxonKeyword keyword ) { String combined = null ; if ( keyword != null ) { String scientificName = StringUtils . trimToNull ( keyword . getScientificName ( ) ) ; String commonName = StringUtils . trimToNull ( keyword . getCommonName ( ) ) ; if ( scientificName != null && common...
125
java-test-6052
java
What do display name construct ?
from taxonkeyword ' s scientific name and common name properties
private String create Keyword Display Name ( Taxon Keyword keyword ) { String combined = null ; if ( keyword != null ) { String scientific Name = String Utils . trim To Null ( keyword . get Scientific Name ( ) ) ; String common Name = String Utils . trim To Null ( keyword . get Common Name ( ) ) ; if ( scientific Name ...
private String createKeywordDisplayName ( TaxonKeyword keyword ) { String combined = null ; if ( keyword != null ) { String scientificName = StringUtils . trimToNull ( keyword . getScientificName ( ) ) ; String commonName = StringUtils . trimToNull ( keyword . getCommonName ( ) ) ; if ( scientificName != null && common...
125
java-test-6053
java
What does the code pause ?
the current track
private void pause Current Track ( ) { if ( ! is Recording ( ) || is Paused ( ) ) { Log . d ( TAG , STRING ) ; return ; } recording Track Paused = BOOL ; Preferences Utils . set Boolean ( this , R . string . recording track paused key , BOOL ) ; Track track = my Tracks Provider Utils . get Track ( recording Track Id ) ...
private void pauseCurrentTrack ( ) { if ( ! isRecording ( ) || isPaused ( ) ) { Log . d ( TAG , STRING ) ; return ; } recordingTrackPaused = _BOOL ; PreferencesUtils . setBoolean ( this , R . string . recording_track_paused_key , _BOOL ) ; Track track = myTracksProviderUtils . getTrack ( recordingTrackId ) ; if ( track...
175
java-test-6054
java
When does the next representable floating point number return ?
after the first argument in the direction of the second argument
public static double next After ( final double start , final double direction ) { if ( Double . is Na N ( start ) || Double . is Na N ( direction ) ) { return Double . Na N ; } if ( start == direction ) { return direction ; } final double abs Start = Math . abs ( start ) ; final double abs Dir = Math . abs ( direction ...
public static double nextAfter ( final double start , final double direction ) { if ( Double . isNaN ( start ) || Double . isNaN ( direction ) ) { return Double . NaN ; } if ( start == direction ) { return direction ; } final double absStart = Math . abs ( start ) ; final double absDir = Math . abs ( direction ) ; fina...
256
java-test-6055
java
How does attributes value related to a specific service remove ?
by setting it to empty
public void remove Service Attributes ( String service Name , Set attr Names ) throws Id Repo Exception , SSO Exception { Map attr Map = new Hash Map ( attr Names . size ( ) * NUM ) ; Iterator it = attr Names . iterator ( ) ; while ( it . has Next ( ) ) { String attr Name = ( String ) it . next ( ) ; attr Map . put ( a...
public void removeServiceAttributes ( String serviceName , Set attrNames ) throws IdRepoException , SSOException { Map attrMap = new HashMap ( attrNames . size ( ) * _NUM ) ; Iterator it = attrNames . iterator ( ) ; while ( it . hasNext ( ) ) { String attrName = ( String ) it . next ( ) ; attrMap . put ( attrName , Col...
99
java-test-6056
java
How are the attributes for the service validated ?
against the service schema
public void remove Service Attributes ( String service Name , Set attr Names ) throws Id Repo Exception , SSO Exception { Map attr Map = new Hash Map ( attr Names . size ( ) * NUM ) ; Iterator it = attr Names . iterator ( ) ; while ( it . has Next ( ) ) { String attr Name = ( String ) it . next ( ) ; attr Map . put ( a...
public void removeServiceAttributes ( String serviceName , Set attrNames ) throws IdRepoException , SSOException { Map attrMap = new HashMap ( attrNames . size ( ) * _NUM ) ; Iterator it = attrNames . iterator ( ) ; while ( it . hasNext ( ) ) { String attrName = ( String ) it . next ( ) ; attrMap . put ( attrName , Col...
99
java-test-6057
java
What does the assumption be ?
that the service is already assigned to the identity . the attributes for the service are validated against the service schema
public void remove Service Attributes ( String service Name , Set attr Names ) throws Id Repo Exception , SSO Exception { Map attr Map = new Hash Map ( attr Names . size ( ) * NUM ) ; Iterator it = attr Names . iterator ( ) ; while ( it . has Next ( ) ) { String attr Name = ( String ) it . next ( ) ; attr Map . put ( a...
public void removeServiceAttributes ( String serviceName , Set attrNames ) throws IdRepoException , SSOException { Map attrMap = new HashMap ( attrNames . size ( ) * _NUM ) ; Iterator it = attrNames . iterator ( ) ; while ( it . hasNext ( ) ) { String attrName = ( String ) it . next ( ) ; attrMap . put ( attrName , Col...
99
java-test-6058
java
What does the code compare to another long buffer ' s remaining longs ?
the remaining longs of this buffer
public int compare To ( Long Buffer other Buffer ) { int compare Remaining = ( remaining ( ) < other Buffer . remaining ( ) ) ? remaining ( ) : other Buffer . remaining ( ) ; int this Pos = position ; int other Pos = other Buffer . position ; long this Long , other Long ; while ( compare Remaining > NUM ) { this Long =...
public int compareTo ( LongBuffer otherBuffer ) { int compareRemaining = ( remaining ( ) < otherBuffer . remaining ( ) ) ? remaining ( ) : otherBuffer . remaining ( ) ; int thisPos = position ; int otherPos = otherBuffer . position ; long thisLong , otherLong ; while ( compareRemaining > _NUM ) { thisLong = get ( thisP...
138
java-test-6059
java
What does the code create ?
a new configurablejtaplatform instance with the given jta transactionmanager and optionally a given usertransaction
public Configurable Jta Platform ( Transaction Manager tm , User Transaction ut ) { Assert . not Null ( tm , STRING ) ; this . transaction Manager = tm ; this . user Transaction = ( ut != null ? ut : new User Transaction Adapter ( tm ) ) ; }
public ConfigurableJtaPlatform ( TransactionManager tm , UserTransaction ut ) { Assert . notNull ( tm , STRING ) ; this . transactionManager = tm ; this . userTransaction = ( ut != null ? ut : new UserTransactionAdapter ( tm ) ) ; }
53
java-test-6060
java
What did the object use ?
to buffer persistent fields
public Object Output Stream . Put Field put Fields ( ) throws IO Exception { if ( cur Put == null ) { Serial Callback Context ctx = cur Context ; if ( ctx == null ) { throw new Not Active Exception ( STRING ) ; } Object cur Obj = ctx . get Obj ( ) ; Object Stream Class cur Desc = ctx . get Desc ( ) ; cur Put = new Put ...
public ObjectOutputStream . PutField putFields ( ) throws IOException { if ( curPut == null ) { SerialCallbackContext ctx = curContext ; if ( ctx == null ) { throw new NotActiveException ( STRING ) ; } Object curObj = ctx . getObj ( ) ; ObjectStreamClass curDesc = ctx . getDesc ( ) ; curPut = new PutFieldImpl ( curDesc...
90
java-test-6061
java
When will the fields be written to the stream ?
when writefields method is called
public Object Output Stream . Put Field put Fields ( ) throws IO Exception { if ( cur Put == null ) { Serial Callback Context ctx = cur Context ; if ( ctx == null ) { throw new Not Active Exception ( STRING ) ; } Object cur Obj = ctx . get Obj ( ) ; Object Stream Class cur Desc = ctx . get Desc ( ) ; cur Put = new Put ...
public ObjectOutputStream . PutField putFields ( ) throws IOException { if ( curPut == null ) { SerialCallbackContext ctx = curContext ; if ( ctx == null ) { throw new NotActiveException ( STRING ) ; } Object curObj = ctx . getObj ( ) ; ObjectStreamClass curDesc = ctx . getDesc ( ) ; curPut = new PutFieldImpl ( curDesc...
90
java-test-6062
java
What does the code retrieve ?
the object used to buffer persistent fields to be written to the stream
public Object Output Stream . Put Field put Fields ( ) throws IO Exception { if ( cur Put == null ) { Serial Callback Context ctx = cur Context ; if ( ctx == null ) { throw new Not Active Exception ( STRING ) ; } Object cur Obj = ctx . get Obj ( ) ; Object Stream Class cur Desc = ctx . get Desc ( ) ; cur Put = new Put ...
public ObjectOutputStream . PutField putFields ( ) throws IOException { if ( curPut == null ) { SerialCallbackContext ctx = curContext ; if ( ctx == null ) { throw new NotActiveException ( STRING ) ; } Object curObj = ctx . getObj ( ) ; ObjectStreamClass curDesc = ctx . getDesc ( ) ; curPut = new PutFieldImpl ( curDesc...
90
java-test-6067
java
What will this push on to the stack ?
the created input node
private Input Node read Start ( Input Node from , Event Node event ) throws Exception { Input Element input = new Input Element ( from , this , event ) ; if ( text . length ( ) > NUM ) { text . set Length ( NUM ) ; } if ( event . is Start ( ) ) { return stack . push ( input ) ; } return input ; }
private InputNode readStart ( InputNode from , EventNode event ) throws Exception { InputElement input = new InputElement ( from , this , event ) ; if ( text . length ( ) > _NUM ) { text . setLength ( _NUM ) ; } if ( event . isStart ( ) ) { return stack . push ( input ) ; } return input ; }
75