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-5907
java
How do we create the permutation of all successors ?
with all tableau nodes
private void add Next State ( final TLC State s , final long fp , final TB Graph Node tnode , final Order Of Solution oos , final Tableau Disk Graph dgraph ) throws IO Exception { final boolean [ ] check State Res = oos . check State ( s ) ; final int slen = check State Res . length ; final int alen = oos . get Check A...
private void addNextState ( final TLCState s , final long fp , final TBGraphNode tnode , final OrderOfSolution oos , final TableauDiskGraph dgraph ) throws IOException { final boolean [ ] checkStateRes = oos . checkState ( s ) ; final int slen = checkStateRes . length ; final int alen = oos . getCheckAction ( ) . lengt...
764
java-test-5908
java
What can we decode ?
the last two digits
public static int num Decodings ( String s ) { if ( s == null || s . length ( ) == NUM ) { return NUM ; } int len = s . length ( ) ; int [ ] ways = new int [ len + NUM ] ; ways [ NUM ] = NUM ; ways [ NUM ] = s . char At ( NUM ) == STRING ? NUM : NUM ; for ( int i = NUM ; i <= len ; i ++ ) { int code 1 = Integer . value...
public static int numDecodings ( String s ) { if ( s == null || s . length ( ) == _NUM ) { return _NUM ; } int len = s . length ( ) ; int [ ] ways = new int [ len + _NUM ] ; ways [ _NUM ] = _NUM ; ways [ _NUM ] = s . charAt ( _NUM ) == STRING ? _NUM : _NUM ; for ( int i = _NUM ; i <= len ; i ++ ) { int code1 = Integer ...
184
java-test-5909
java
What do ways = mean when string length is zero when string length is zero ?
only one way
public static int num Decodings ( String s ) { if ( s == null || s . length ( ) == NUM ) { return NUM ; } int len = s . length ( ) ; int [ ] ways = new int [ len + NUM ] ; ways [ NUM ] = NUM ; ways [ NUM ] = s . char At ( NUM ) == STRING ? NUM : NUM ; for ( int i = NUM ; i <= len ; i ++ ) { int code 1 = Integer . value...
public static int numDecodings ( String s ) { if ( s == null || s . length ( ) == _NUM ) { return _NUM ; } int len = s . length ( ) ; int [ ] ways = new int [ len + _NUM ] ; ways [ _NUM ] = _NUM ; ways [ _NUM ] = s . charAt ( _NUM ) == STRING ? _NUM : _NUM ; for ( int i = _NUM ; i <= len ; i ++ ) { int code1 = Integer ...
184
java-test-5910
java
When do ways = mean only one way ?
when string length is zero
public static int num Decodings ( String s ) { if ( s == null || s . length ( ) == NUM ) { return NUM ; } int len = s . length ( ) ; int [ ] ways = new int [ len + NUM ] ; ways [ NUM ] = NUM ; ways [ NUM ] = s . char At ( NUM ) == STRING ? NUM : NUM ; for ( int i = NUM ; i <= len ; i ++ ) { int code 1 = Integer . value...
public static int numDecodings ( String s ) { if ( s == null || s . length ( ) == _NUM ) { return _NUM ; } int len = s . length ( ) ; int [ ] ways = new int [ len + _NUM ] ; ways [ _NUM ] = _NUM ; ways [ _NUM ] = s . charAt ( _NUM ) == STRING ? _NUM : _NUM ; for ( int i = _NUM ; i <= len ; i ++ ) { int code1 = Integer ...
184
java-test-5911
java
What means only one way when string length is zero when string length is zero ?
ways [ 0 ] =
public static int num Decodings ( String s ) { if ( s == null || s . length ( ) == NUM ) { return NUM ; } int len = s . length ( ) ; int [ ] ways = new int [ len + NUM ] ; ways [ NUM ] = NUM ; ways [ NUM ] = s . char At ( NUM ) == STRING ? NUM : NUM ; for ( int i = NUM ; i <= len ; i ++ ) { int code 1 = Integer . value...
public static int numDecodings ( String s ) { if ( s == null || s . length ( ) == _NUM ) { return _NUM ; } int len = s . length ( ) ; int [ ] ways = new int [ len + _NUM ] ; ways [ _NUM ] = _NUM ; ways [ _NUM ] = s . charAt ( _NUM ) == STRING ? _NUM : _NUM ; for ( int i = _NUM ; i <= len ; i ++ ) { int code1 = Integer ...
184
java-test-5912
java
How is an expression structurally identical to one of the group ?
by expressions
public int lookup Group Expr ( Sql Node expr ) { for ( int i = NUM ; i < group Exprs . size ( ) ; i ++ ) { Sql Node group Expr = group Exprs . get ( i ) ; if ( expr . equals Deep ( group Expr , Litmus . IGNORE ) ) { return i ; } } return - NUM ; }
public int lookupGroupExpr ( SqlNode expr ) { for ( int i = _NUM ; i < groupExprs . size ( ) ; i ++ ) { SqlNode groupExpr = groupExprs . get ( i ) ; if ( expr . equalsDeep ( groupExpr , Litmus . IGNORE ) ) { return i ; } } return - _NUM ; }
70
java-test-5913
java
What does the code perform ?
the kernel density estimation step
protected void estimate Densities ( Relation < O > rel , KNN Query < O > knnq , final DBI Ds ids , Writable Data Store < double [ ] > densities ) { final int dim = dimensionality ( rel ) ; final int knum = kmax + NUM - kmin ; for ( DBID Iter iter = ids . iter ( ) ; iter . valid ( ) ; iter . advance ( ) ) { densities . ...
protected void estimateDensities ( Relation < O > rel , KNNQuery < O > knnq , final DBIDs ids , WritableDataStore < double [ ] > densities ) { final int dim = dimensionality ( rel ) ; final int knum = kmax + _NUM - kmin ; for ( DBIDIter iter = ids . iter ( ) ; iter . valid ( ) ; iter . advance ( ) ) { densities . put (...
410
java-test-5914
java
In which direction ll we rotate it so it ' s out of sight , and then up or down by a little bit ?
around the y - axis
private void hide Object ( ) { float [ ] rotation Matrix = new float [ NUM ] ; float [ ] pos Vec = new float [ NUM ] ; float angle XZ = ( float ) Math . random ( ) * NUM + NUM ; Matrix . set Rotate M ( rotation Matrix , NUM , angle XZ , NUM , NUM , NUM ) ; float old Object Distance = object Distance ; object Distance =...
private void hideObject ( ) { float [ ] rotationMatrix = new float [ _NUM ] ; float [ ] posVec = new float [ _NUM ] ; float angleXZ = ( float ) Math . random ( ) * _NUM + _NUM ; Matrix . setRotateM ( rotationMatrix , _NUM , angleXZ , _NUM , _NUM , _NUM ) ; float oldObjectDistance = objectDistance ; objectDistance = ( f...
249
java-test-5915
java
What does the code find ?
a new random position for the object
private void hide Object ( ) { float [ ] rotation Matrix = new float [ NUM ] ; float [ ] pos Vec = new float [ NUM ] ; float angle XZ = ( float ) Math . random ( ) * NUM + NUM ; Matrix . set Rotate M ( rotation Matrix , NUM , angle XZ , NUM , NUM , NUM ) ; float old Object Distance = object Distance ; object Distance =...
private void hideObject ( ) { float [ ] rotationMatrix = new float [ _NUM ] ; float [ ] posVec = new float [ _NUM ] ; float angleXZ = ( float ) Math . random ( ) * _NUM + _NUM ; Matrix . setRotateM ( rotationMatrix , _NUM , angleXZ , _NUM , _NUM , _NUM ) ; float oldObjectDistance = objectDistance ; objectDistance = ( f...
249
java-test-5916
java
For what purpose ll we rotate it around the y - axis ?
so it ' s out of sight , and then up or down by a little bit
private void hide Object ( ) { float [ ] rotation Matrix = new float [ NUM ] ; float [ ] pos Vec = new float [ NUM ] ; float angle XZ = ( float ) Math . random ( ) * NUM + NUM ; Matrix . set Rotate M ( rotation Matrix , NUM , angle XZ , NUM , NUM , NUM ) ; float old Object Distance = object Distance ; object Distance =...
private void hideObject ( ) { float [ ] rotationMatrix = new float [ _NUM ] ; float [ ] posVec = new float [ _NUM ] ; float angleXZ = ( float ) Math . random ( ) * _NUM + _NUM ; Matrix . setRotateM ( rotationMatrix , _NUM , angleXZ , _NUM , _NUM , _NUM ) ; float oldObjectDistance = objectDistance ; objectDistance = ( f...
249
java-test-5917
java
What is using to confirm the best match ?
blast output results
public void process ( Set < Raw Protein < PIRSF Hmmer 2 Raw Match > > blasted Raw Proteins , Map < String , Integer > blast Result Map , String blasted Matches File Path ) throws IO Exception { Map < String , Integer > sf Tb Map = sf Tb File Parser . parse ( sf Tb File Resource ) ; Map < String , PIRSF Hmmer 2 Raw Matc...
public void process ( Set < RawProtein < PIRSFHmmer2RawMatch > > blastedRawProteins , Map < String , Integer > blastResultMap , String blastedMatchesFilePath ) throws IOException { Map < String , Integer > sfTbMap = sfTbFileParser . parse ( sfTbFileResource ) ; Map < String , PIRSFHmmer2RawMatch > blastedProteinIdBestM...
382
java-test-5918
java
What do blast output results use ?
to confirm the best match
public void process ( Set < Raw Protein < PIRSF Hmmer 2 Raw Match > > blasted Raw Proteins , Map < String , Integer > blast Result Map , String blasted Matches File Path ) throws IO Exception { Map < String , Integer > sf Tb Map = sf Tb File Parser . parse ( sf Tb File Resource ) ; Map < String , PIRSF Hmmer 2 Raw Matc...
public void process ( Set < RawProtein < PIRSFHmmer2RawMatch > > blastedRawProteins , Map < String , Integer > blastResultMap , String blastedMatchesFilePath ) throws IOException { Map < String , Integer > sfTbMap = sfTbFileParser . parse ( sfTbFileResource ) ; Map < String , PIRSFHmmer2RawMatch > blastedProteinIdBestM...
382
java-test-5919
java
How does the given string indent ?
by a given number of indention strings
protected String indent ( String content , int count , String indent Str ) { String result ; String Tokenizer tok ; int i ; tok = new String Tokenizer ( content , STRING , BOOL ) ; result = STRING ; while ( tok . has More Tokens ( ) ) { if ( result . ends With ( STRING ) || ( result . length ( ) == NUM ) ) { for ( i = ...
protected String indent ( String content , int count , String indentStr ) { String result ; StringTokenizer tok ; int i ; tok = new StringTokenizer ( content , STRING , _BOOL ) ; result = STRING ; while ( tok . hasMoreTokens ( ) ) { if ( result . endsWith ( STRING ) || ( result . length ( ) == _NUM ) ) { for ( i = _NUM...
109
java-test-5920
java
What does the code replace with their unicode character representations ?
html entities in a given string
public static String replace Html Entities ( final String s ) { final String Builder t = new String Builder ( ) ; for ( int i = NUM , n = s . length ( ) ; i < n ; i ++ ) { final char c = s . char At ( i ) ; if ( c == STRING ) { final int j = s . index Of ( STRING , i ) ; if ( j >= NUM ) { final Character unicode = HTML...
public static String replaceHtmlEntities ( final String s ) { final StringBuilder t = new StringBuilder ( ) ; for ( int i = _NUM , n = s . length ( ) ; i < n ; i ++ ) { final char c = s . charAt ( i ) ; if ( c == STRING ) { final int j = s . indexOf ( STRING , i ) ; if ( j >= _NUM ) { final Character unicode = HTML_ENT...
153
java-test-5922
java
How do an array sort ?
using binary insertion sort
public static < T > void binary Insertion Sort ( T [ ] d , int left , int right , Comparator < T > comp ) { for ( int i = left + NUM ; i <= right ; i ++ ) { T t = d [ i ] ; int l = left ; for ( int r = i ; l < r ; ) { int m = ( l + r ) > > > NUM ; if ( comp . compare ( t , d [ m ] ) >= NUM ) { l = m + NUM ; } else { r ...
public static < T > void binaryInsertionSort ( T [ ] d , int left , int right , Comparator < T > comp ) { for ( int i = left + _NUM ; i <= right ; i ++ ) { T t = d [ i ] ; int l = left ; for ( int r = i ; l < r ; ) { int m = ( l + r ) > > > _NUM ; if ( comp . compare ( t , d [ m ] ) >= _NUM ) { l = m + _NUM ; } else { ...
156
java-test-5923
java
What does the code create ?
the sparsity based connection panel
public static Sparse Connection Panel create Sparsity Adjustment Panel ( Sparse connection , Network Panel network Panel ) { Sparse Connection Panel sap = new Sparse Connection Panel ( connection , network Panel ) ; sap . fill Field Values ( ) ; sap . initialize Sparse Slider ( ) ; sap . add Change Listeners ( ) ; sap ...
public static SparseConnectionPanel createSparsityAdjustmentPanel ( Sparse connection , NetworkPanel networkPanel ) { SparseConnectionPanel sap = new SparseConnectionPanel ( connection , networkPanel ) ; sap . fillFieldValues ( ) ; sap . initializeSparseSlider ( ) ; sap . addChangeListeners ( ) ; sap . addActionListene...
78
java-test-5926
java
What will receive all intended messages ?
a single consumer with no jms selector
public void test Non Discriminating Consumer ( ) throws Exception { consumer Connection = create Connection ( ) ; consumer Connection . start ( ) ; LOG . info ( STRING + consumer Connection ) ; try { Thread . sleep ( NUM ) ; } catch ( Exception e ) { } Consumer consumer = new Consumer ( consumer Connection , null ) ; T...
public void testNonDiscriminatingConsumer ( ) throws Exception { consumerConnection = createConnection ( ) ; consumerConnection . start ( ) ; LOG . info ( STRING + consumerConnection ) ; try { Thread . sleep ( _NUM ) ; } catch ( Exception e ) { } Consumer consumer = new Consumer ( consumerConnection , null ) ; Thread c...
256
java-test-5928
java
What does the code verify ?
the different flavours of the blender types
public void test Blending Type ( ) throws IO Exception { Bytes Ref pl = new Bytes Ref ( STRING ) ; long w = NUM ; Input keys [ ] = new Input [ ] { new Input ( STRING , w , pl ) } ; Path temp Dir = create Temp Dir ( STRING ) ; Analyzer a = new Standard Analyzer ( Char Array Set . EMPTY SET ) ; Blended Infix Suggester su...
public void testBlendingType ( ) throws IOException { BytesRef pl = new BytesRef ( STRING ) ; long w = _NUM ; Input keys [ ] = new Input [ ] { new Input ( STRING , w , pl ) } ; Path tempDir = createTempDir ( STRING ) ; Analyzer a = new StandardAnalyzer ( CharArraySet . EMPTY_SET ) ; BlendedInfixSuggester suggester = ne...
509
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