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-4010
java
For what purpose did clients order already ?
for display
public static boolean requires Bidi ( char [ ] text , int start , int limit ) { final int RTL Mask = ( NUM << Bidi . DIRECTION RIGHT TO LEFT | NUM << AL | NUM << RLE | NUM << RLO | NUM << AN ) ; if ( NUM > start || start > limit || limit > text . length ) { throw new Illegal Argument Exception ( STRING + start + STRING...
public static boolean requiresBidi ( char [ ] text , int start , int limit ) { final int RTLMask = ( _NUM << Bidi . DIRECTION_RIGHT_TO_LEFT | _NUM << AL | _NUM << RLE | _NUM << RLO | _NUM << AN ) ; if ( _NUM > start || start > limit || limit > text . length ) { throw new IllegalArgumentException ( STRING + start + STRI...
208
java-test-4011
java
What do the specified text require ?
bidi analysis
public static boolean requires Bidi ( char [ ] text , int start , int limit ) { final int RTL Mask = ( NUM << Bidi . DIRECTION RIGHT TO LEFT | NUM << AL | NUM << RLE | NUM << RLO | NUM << AN ) ; if ( NUM > start || start > limit || limit > text . length ) { throw new Illegal Argument Exception ( STRING + start + STRING...
public static boolean requiresBidi ( char [ ] text , int start , int limit ) { final int RTLMask = ( _NUM << Bidi . DIRECTION_RIGHT_TO_LEFT | _NUM << AL | _NUM << RLE | _NUM << RLO | _NUM << AN ) ; if ( _NUM > start || start > limit || limit > text . length ) { throw new IllegalArgumentException ( STRING + start + STRI...
208
java-test-4012
java
What can avoid constructing a bidi object then ?
clients
public static boolean requires Bidi ( char [ ] text , int start , int limit ) { final int RTL Mask = ( NUM << Bidi . DIRECTION RIGHT TO LEFT | NUM << AL | NUM << RLE | NUM << RLO | NUM << AN ) ; if ( NUM > start || start > limit || limit > text . length ) { throw new Illegal Argument Exception ( STRING + start + STRING...
public static boolean requiresBidi ( char [ ] text , int start , int limit ) { final int RTLMask = ( _NUM << Bidi . DIRECTION_RIGHT_TO_LEFT | _NUM << AL | _NUM << RLE | _NUM << RLO | _NUM << AN ) ; if ( _NUM > start || start > limit || limit > text . length ) { throw new IllegalArgumentException ( STRING + start + STRI...
208
java-test-4013
java
What is constructing a bidi object ?
clients
public static boolean requires Bidi ( char [ ] text , int start , int limit ) { final int RTL Mask = ( NUM << Bidi . DIRECTION RIGHT TO LEFT | NUM << AL | NUM << RLE | NUM << RLO | NUM << AN ) ; if ( NUM > start || start > limit || limit > text . length ) { throw new Illegal Argument Exception ( STRING + start + STRING...
public static boolean requiresBidi ( char [ ] text , int start , int limit ) { final int RTLMask = ( _NUM << Bidi . DIRECTION_RIGHT_TO_LEFT | _NUM << AL | _NUM << RLE | _NUM << RLO | _NUM << AN ) ; if ( _NUM > start || start > limit || limit > text . length ) { throw new IllegalArgumentException ( STRING + start + STRI...
208
java-test-4014
java
For what purpose be in the arabic shaped already ?
for display
public static boolean requires Bidi ( char [ ] text , int start , int limit ) { final int RTL Mask = ( NUM << Bidi . DIRECTION RIGHT TO LEFT | NUM << AL | NUM << RLE | NUM << RLO | NUM << AN ) ; if ( NUM > start || start > limit || limit > text . length ) { throw new Illegal Argument Exception ( STRING + start + STRING...
public static boolean requiresBidi ( char [ ] text , int start , int limit ) { final int RTLMask = ( _NUM << Bidi . DIRECTION_RIGHT_TO_LEFT | _NUM << AL | _NUM << RLE | _NUM << RLO | _NUM << AN ) ; if ( _NUM > start || start > limit || limit > text . length ) { throw new IllegalArgumentException ( STRING + start + STRI...
208
java-test-4015
java
What will clients not cause ?
this method to return true
public static boolean requires Bidi ( char [ ] text , int start , int limit ) { final int RTL Mask = ( NUM << Bidi . DIRECTION RIGHT TO LEFT | NUM << AL | NUM << RLE | NUM << RLO | NUM << AN ) ; if ( NUM > start || start > limit || limit > text . length ) { throw new Illegal Argument Exception ( STRING + start + STRING...
public static boolean requiresBidi ( char [ ] text , int start , int limit ) { final int RTLMask = ( _NUM << Bidi . DIRECTION_RIGHT_TO_LEFT | _NUM << AL | _NUM << RLE | _NUM << RLO | _NUM << AN ) ; if ( _NUM > start || start > limit || limit > text . length ) { throw new IllegalArgumentException ( STRING + start + STRI...
208
java-test-4016
java
When did clients order for display ?
already
public static boolean requires Bidi ( char [ ] text , int start , int limit ) { final int RTL Mask = ( NUM << Bidi . DIRECTION RIGHT TO LEFT | NUM << AL | NUM << RLE | NUM << RLO | NUM << AN ) ; if ( NUM > start || start > limit || limit > text . length ) { throw new Illegal Argument Exception ( STRING + start + STRING...
public static boolean requiresBidi ( char [ ] text , int start , int limit ) { final int RTLMask = ( _NUM << Bidi . DIRECTION_RIGHT_TO_LEFT | _NUM << AL | _NUM << RLE | _NUM << RLO | _NUM << AN ) ; if ( _NUM > start || start > limit || limit > text . length ) { throw new IllegalArgumentException ( STRING + start + STRI...
208
java-test-4017
java
Will clients cause this method to return true ?
No
public static boolean requires Bidi ( char [ ] text , int start , int limit ) { final int RTL Mask = ( NUM << Bidi . DIRECTION RIGHT TO LEFT | NUM << AL | NUM << RLE | NUM << RLO | NUM << AN ) ; if ( NUM > start || start > limit || limit > text . length ) { throw new Illegal Argument Exception ( STRING + start + STRING...
public static boolean requiresBidi ( char [ ] text , int start , int limit ) { final int RTLMask = ( _NUM << Bidi . DIRECTION_RIGHT_TO_LEFT | _NUM << AL | _NUM << RLE | _NUM << RLO | _NUM << AN ) ; if ( _NUM > start || start > limit || limit > text . length ) { throw new IllegalArgumentException ( STRING + start + STRI...
208
java-test-4018
java
How d a trace session stops ?
with the given trace session i d
public void stop Trace Session ( int trace Session Id ) throws SQL Exception { try ( Fb Service service = attach Service Manager ( ) ) { service . start Service Action ( get Trace SPB ( service , isc action svc trace stop , trace Session Id ) ) ; queue Service ( service ) ; } catch ( IO Exception ioe ) { throw new SQL ...
public void stopTraceSession ( int traceSessionId ) throws SQLException { try ( FbService service = attachServiceManager ( ) ) { service . startServiceAction ( getTraceSPB ( service , isc_action_svc_trace_stop , traceSessionId ) ) ; queueService ( service ) ; } catch ( IOException ioe ) { throw new SQLException ( ioe )...
76
java-test-4023
java
What does the code handle ?
the resource model auto detection
private Input Stream create Auto Detected Stream ( final String default File Name ) throws IO Exception { try { Validate . not Null ( wro File , STRING ) ; if ( auto Detect Wro File ) { final File file = new File ( wro File . get Parent File ( ) , default File Name ) ; LOG . debug ( STRING + file ) ; return new File In...
private InputStream createAutoDetectedStream ( final String defaultFileName ) throws IOException { try { Validate . notNull ( wroFile , STRING ) ; if ( autoDetectWroFile ) { final File file = new File ( wroFile . getParentFile ( ) , defaultFileName ) ; LOG . debug ( STRING + file ) ; return new FileInputStream ( file )...
135
java-test-4024
java
How will your onactivityresult ( ) method be called ?
with the given requestcode
public static void start Upload Activity For Result ( Activity activity , Account account , int request Code ) { Intent action = new Intent ( activity , Upload Files Activity . class ) ; action . put Extra ( EXTRA ACCOUNT , ( account ) ) ; activity . start Activity For Result ( action , request Code ) ; }
public static void startUploadActivityForResult ( Activity activity , Account account , int requestCode ) { Intent action = new Intent ( activity , UploadFilesActivity . class ) ; action . putExtra ( EXTRA_ACCOUNT , ( account ) ) ; activity . startActivityForResult ( action , requestCode ) ; }
62
java-test-4025
java
Could subclasses make this call if their geometries / attributes require this action ( when fill color doesn ' t matter ) ?
No
protected float distance ( double x , double y ) { float distance = Float . POSITIVE INFINITY ; General Path shape = get Shape ( ) ; if ( get Need To Regenerate ( ) || shape == null ) { return distance ; } if ( shape . contains ( x , y ) ) { return NUM ; } else { return distance To Edge ( x , y ) ; } }
protected float _distance ( double x , double y ) { float distance = Float . POSITIVE_INFINITY ; GeneralPath shape = getShape ( ) ; if ( getNeedToRegenerate ( ) || shape == null ) { return distance ; } if ( shape . contains ( x , y ) ) { return _NUM ; } else { return distanceToEdge ( x , y ) ; } }
76
java-test-4026
java
What are set to null to allow garbage collection after a successful cashead ?
the prev and next pointers of the dequeued node
public E poll ( ) { for ( ; ; ) { Node < E > h = head ; Node < E > t = tail ; Node < E > first = h . get Prev ( ) ; if ( h == head ) { if ( h != t ) { if ( first == null ) { fix List ( t , h ) ; continue ; } E item = first . get Item ( ) ; if ( cas Head ( h , first ) ) { h . set Next ( null ) ; h . set Prev ( null ) ; ...
public E poll ( ) { for ( ; ; ) { Node < E > h = head ; Node < E > t = tail ; Node < E > first = h . getPrev ( ) ; if ( h == head ) { if ( h != t ) { if ( first == null ) { fixList ( t , h ) ; continue ; } E item = first . getItem ( ) ; if ( casHead ( h , first ) ) { h . setNext ( null ) ; h . setPrev ( null ) ; count ...
132
java-test-4027
java
When are the prev and next pointers of the dequeued node set to null to allow garbage collection ?
after a successful cashead
public E poll ( ) { for ( ; ; ) { Node < E > h = head ; Node < E > t = tail ; Node < E > first = h . get Prev ( ) ; if ( h == head ) { if ( h != t ) { if ( first == null ) { fix List ( t , h ) ; continue ; } E item = first . get Item ( ) ; if ( cas Head ( h , first ) ) { h . set Next ( null ) ; h . set Prev ( null ) ; ...
public E poll ( ) { for ( ; ; ) { Node < E > h = head ; Node < E > t = tail ; Node < E > first = h . getPrev ( ) ; if ( h == head ) { if ( h != t ) { if ( first == null ) { fixList ( t , h ) ; continue ; } E item = first . getItem ( ) ; if ( casHead ( h , first ) ) { h . setNext ( null ) ; h . setPrev ( null ) ; count ...
132
java-test-4028
java
What are the prev and next pointers of the dequeued node set after a successful cashead ?
to null to allow garbage collection
public E poll ( ) { for ( ; ; ) { Node < E > h = head ; Node < E > t = tail ; Node < E > first = h . get Prev ( ) ; if ( h == head ) { if ( h != t ) { if ( first == null ) { fix List ( t , h ) ; continue ; } E item = first . get Item ( ) ; if ( cas Head ( h , first ) ) { h . set Next ( null ) ; h . set Prev ( null ) ; ...
public E poll ( ) { for ( ; ; ) { Node < E > h = head ; Node < E > t = tail ; Node < E > first = h . getPrev ( ) ; if ( h == head ) { if ( h != t ) { if ( first == null ) { fixList ( t , h ) ; continue ; } E item = first . getItem ( ) ; if ( casHead ( h , first ) ) { h . setNext ( null ) ; h . setPrev ( null ) ; count ...
132
java-test-4029
java
What did the code set ?
the wave form effect delay and feedback parameters ( unknown parameters )
@ HLE Function ( nid = NUM , version = NUM , check Inside Interrupt = BOOL ) public int sce Sas Rev Param ( int sas Core , int delay , int feedback ) { check Sas Handle Good ( sas Core ) ; waveform Effect Delay = delay ; waveform Effect Feedback = feedback ; return NUM ; }
@ HLEFunction ( nid = _NUM , version = _NUM , checkInsideInterrupt = _BOOL ) public int __sceSasRevParam ( int sasCore , int delay , int feedback ) { checkSasHandleGood ( sasCore ) ; waveformEffectDelay = delay ; waveformEffectFeedback = feedback ; return _NUM ; }
61
java-test-4030
java
What do xml representation create ?
to streamresult
public boolean create XML ( Stream Result result ) { try { DOM Source source = new DOM Source ( get Document ( ) ) ; Transformer Factory t Factory = Transformer Factory . new Instance ( ) ; Transformer transformer = t Factory . new Transformer ( ) ; transformer . set Output Property ( Output Keys . ENCODING , STRING ) ...
public boolean createXML ( StreamResult result ) { try { DOMSource source = new DOMSource ( getDocument ( ) ) ; TransformerFactory tFactory = TransformerFactory . newInstance ( ) ; Transformer transformer = tFactory . newTransformer ( ) ; transformer . setOutputProperty ( OutputKeys . ENCODING , STRING ) ; transformer ...
115
java-test-4031
java
What creates to streamresult ?
xml representation
public boolean create XML ( Stream Result result ) { try { DOM Source source = new DOM Source ( get Document ( ) ) ; Transformer Factory t Factory = Transformer Factory . new Instance ( ) ; Transformer transformer = t Factory . new Transformer ( ) ; transformer . set Output Property ( Output Keys . ENCODING , STRING ) ...
public boolean createXML ( StreamResult result ) { try { DOMSource source = new DOMSource ( getDocument ( ) ) ; TransformerFactory tFactory = TransformerFactory . newInstance ( ) ; Transformer transformer = tFactory . newTransformer ( ) ; transformer . setOutputProperty ( OutputKeys . ENCODING , STRING ) ; transformer ...
115
java-test-4034
java
What may the list have ?
null contents
public List < Nce Consist Roster Entry > matching List ( String road Name , String road Number , String consist Number , String eng 1 Address , String eng 2 Address , String eng 3 Address , String eng 4 Address , String eng 5 Address , String eng 6 Address , String id ) { List < Nce Consist Roster Entry > l = new Array...
public List < NceConsistRosterEntry > matchingList ( String roadName , String roadNumber , String consistNumber , String eng1Address , String eng2Address , String eng3Address , String eng4Address , String eng5Address , String eng6Address , String id ) { List < NceConsistRosterEntry > l = new ArrayList < NceConsistRoste...
158
java-test-4035
java
What have the code get ?
a list of entries matching some information
public List < Nce Consist Roster Entry > matching List ( String road Name , String road Number , String consist Number , String eng 1 Address , String eng 2 Address , String eng 3 Address , String eng 4 Address , String eng 5 Address , String eng 6 Address , String id ) { List < Nce Consist Roster Entry > l = new Array...
public List < NceConsistRosterEntry > matchingList ( String roadName , String roadNumber , String consistNumber , String eng1Address , String eng2Address , String eng3Address , String eng4Address , String eng5Address , String eng6Address , String id ) { List < NceConsistRosterEntry > l = new ArrayList < NceConsistRoste...
158
java-test-4036
java
What does the code do ?
the appropriate processing for cfb iv mode decryption
private int decrypt Block With IV ( byte [ ] in , int in Off , byte [ ] out , int out Off ) throws Data Length Exception , Illegal State Exception { if ( ( in Off + block Size ) > in . length ) { throw new Data Length Exception ( STRING ) ; } if ( ( out Off + block Size ) > out . length ) { throw new Data Length Except...
private int decryptBlockWithIV ( byte [ ] in , int inOff , byte [ ] out , int outOff ) throws DataLengthException , IllegalStateException { if ( ( inOff + blockSize ) > in . length ) { throw new DataLengthException ( STRING ) ; } if ( ( outOff + blockSize ) > out . length ) { throw new DataLengthException ( STRING ) ; ...
467
java-test-4037
java
What does the code create ?
a new document used for saving xml files
public static Document new Document ( ) throws Parser Configuration Exception { Document Builder Factory dbfac = Document Builder Factory . new Instance ( ) ; Document Builder doc Builder ; doc Builder = dbfac . new Document Builder ( ) ; return doc Builder . new Document ( ) ; }
public static Document newDocument ( ) throws ParserConfigurationException { DocumentBuilderFactory dbfac = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder docBuilder ; docBuilder = dbfac . newDocumentBuilder ( ) ; return docBuilder . newDocument ( ) ; }
52
java-test-4038
java
What represents the best possible cipher based on the strength preference and the available ciphers on both the server and client environments ?
the cipher returned
private String find Cipher And Strength ( byte [ ] supported Ciphers , String [ ] tokens ) { byte s ; for ( int i = NUM ; i < strength . length ; i ++ ) { if ( ( s = strength [ i ] ) != NUM ) { for ( int j = NUM ; j < supported Ciphers . length ; j ++ ) { if ( s == supported Ciphers [ j ] && ( specified Cipher == null ...
private String findCipherAndStrength ( byte [ ] supportedCiphers , String [ ] tokens ) { byte s ; for ( int i = _NUM ; i < strength . length ; i ++ ) { if ( ( s = strength [ i ] ) != _NUM ) { for ( int j = _NUM ; j < supportedCiphers . length ; j ++ ) { if ( s == supportedCiphers [ j ] && ( specifiedCipher == null || s...
153
java-test-4039
java
What does it compare ?
with the ' supportedciphers ' array
private String find Cipher And Strength ( byte [ ] supported Ciphers , String [ ] tokens ) { byte s ; for ( int i = NUM ; i < strength . length ; i ++ ) { if ( ( s = strength [ i ] ) != NUM ) { for ( int j = NUM ; j < supported Ciphers . length ; j ++ ) { if ( s == supported Ciphers [ j ] && ( specified Cipher == null ...
private String findCipherAndStrength ( byte [ ] supportedCiphers , String [ ] tokens ) { byte s ; for ( int i = _NUM ; i < strength . length ; i ++ ) { if ( ( s = strength [ i ] ) != _NUM ) { for ( int j = _NUM ; j < supportedCiphers . length ; j ++ ) { if ( s == supportedCiphers [ j ] && ( specifiedCipher == null || s...
153
java-test-4040
java
What does the cipher returned represent ?
the best possible cipher based on the strength preference and the available ciphers on both the server and client environments
private String find Cipher And Strength ( byte [ ] supported Ciphers , String [ ] tokens ) { byte s ; for ( int i = NUM ; i < strength . length ; i ++ ) { if ( ( s = strength [ i ] ) != NUM ) { for ( int j = NUM ; j < supported Ciphers . length ; j ++ ) { if ( s == supported Ciphers [ j ] && ( specified Cipher == null ...
private String findCipherAndStrength ( byte [ ] supportedCiphers , String [ ] tokens ) { byte s ; for ( int i = _NUM ; i < strength . length ; i ++ ) { if ( ( s = strength [ i ] ) != _NUM ) { for ( int j = _NUM ; j < supportedCiphers . length ; j ++ ) { if ( s == supportedCiphers [ j ] && ( specifiedCipher == null || s...
153
java-test-4045
java
How are items such as signalmasts located at positionable points or turnouts facing ?
in the same direction as other given signalmasts
public boolean check Valid Dest ( Layout Block current Block , Layout Block next Block , Layout Block dest Block , Layout Block dest Blockn 1 , int path Method ) throws jmri . Jmri Exception { List < Layout Block > dest List = new Array List < Layout Block > ( ) ; if ( dest Blockn 1 != null ) { dest List . add ( dest B...
public boolean checkValidDest ( LayoutBlock currentBlock , LayoutBlock nextBlock , LayoutBlock destBlock , LayoutBlock destBlockn1 , int pathMethod ) throws jmri . JmriException { List < LayoutBlock > destList = new ArrayList < LayoutBlock > ( ) ; if ( destBlockn1 != null ) { destList . add ( destBlockn1 ) ; } try { re...
113
java-test-4046
java
What can we work ?
the direction of travel . given the destblock and the next block on
public boolean check Valid Dest ( Layout Block current Block , Layout Block next Block , Layout Block dest Block , Layout Block dest Blockn 1 , int path Method ) throws jmri . Jmri Exception { List < Layout Block > dest List = new Array List < Layout Block > ( ) ; if ( dest Blockn 1 != null ) { dest List . add ( dest B...
public boolean checkValidDest ( LayoutBlock currentBlock , LayoutBlock nextBlock , LayoutBlock destBlock , LayoutBlock destBlockn1 , int pathMethod ) throws jmri . JmriException { List < LayoutBlock > destList = new ArrayList < LayoutBlock > ( ) ; if ( destBlockn1 != null ) { destList . add ( destBlockn1 ) ; } try { re...
113
java-test-4047
java
How did signalmasts locate ?
at positionable points or turnouts
public boolean check Valid Dest ( Layout Block current Block , Layout Block next Block , Layout Block dest Block , Layout Block dest Blockn 1 , int path Method ) throws jmri . Jmri Exception { List < Layout Block > dest List = new Array List < Layout Block > ( ) ; if ( dest Blockn 1 != null ) { dest List . add ( dest B...
public boolean checkValidDest ( LayoutBlock currentBlock , LayoutBlock nextBlock , LayoutBlock destBlock , LayoutBlock destBlockn1 , int pathMethod ) throws jmri . JmriException { List < LayoutBlock > destList = new ArrayList < LayoutBlock > ( ) ; if ( destBlockn1 != null ) { destList . add ( destBlockn1 ) ; } try { re...
113
java-test-4048
java
What can we determine ?
the whether the destblock comes before the destblock + 1
public boolean check Valid Dest ( Layout Block current Block , Layout Block next Block , Layout Block dest Block , Layout Block dest Blockn 1 , int path Method ) throws jmri . Jmri Exception { List < Layout Block > dest List = new Array List < Layout Block > ( ) ; if ( dest Blockn 1 != null ) { dest List . add ( dest B...
public boolean checkValidDest ( LayoutBlock currentBlock , LayoutBlock nextBlock , LayoutBlock destBlock , LayoutBlock destBlockn1 , int pathMethod ) throws jmri . JmriException { List < LayoutBlock > destList = new ArrayList < LayoutBlock > ( ) ; if ( destBlockn1 != null ) { destList . add ( destBlockn1 ) ; } try { re...
113
java-test-4049
java
What is this used ?
to help with identifying items such as signalmasts located at positionable points or turnouts are facing in the same direction as other given signalmasts
public boolean check Valid Dest ( Layout Block current Block , Layout Block next Block , Layout Block dest Block , Layout Block dest Blockn 1 , int path Method ) throws jmri . Jmri Exception { List < Layout Block > dest List = new Array List < Layout Block > ( ) ; if ( dest Blockn 1 != null ) { dest List . add ( dest B...
public boolean checkValidDest ( LayoutBlock currentBlock , LayoutBlock nextBlock , LayoutBlock destBlock , LayoutBlock destBlockn1 , int pathMethod ) throws jmri . JmriException { List < LayoutBlock > destList = new ArrayList < LayoutBlock > ( ) ; if ( destBlockn1 != null ) { destList . add ( destBlockn1 ) ; } try { re...
113
java-test-4050
java
When do image duplicate ?
when captured with extra_output
private void try Correct Photo File Captured ( ) { if ( m Photo File Capture == null || m Files Created While Capture Photo == null || m Files Created While Capture Photo . size ( ) <= NUM ) return ; long capture Size = m Photo File Capture . length ( ) ; for ( File file : m Files Created While Capture Photo ) { if ( M...
private void tryCorrectPhotoFileCaptured ( ) { if ( mPhotoFileCapture == null || mFilesCreatedWhileCapturePhoto == null || mFilesCreatedWhileCapturePhoto . size ( ) <= _NUM ) return ; long captureSize = mPhotoFileCapture . length ( ) ; for ( File file : mFilesCreatedWhileCapturePhoto ) { if ( MediaUtils . isImageExtens...
155
java-test-4051
java
What do it ' s prefer by camera ?
default image
private void try Correct Photo File Captured ( ) { if ( m Photo File Capture == null || m Files Created While Capture Photo == null || m Files Created While Capture Photo . size ( ) <= NUM ) return ; long capture Size = m Photo File Capture . length ( ) ; for ( File file : m Files Created While Capture Photo ) { if ( M...
private void tryCorrectPhotoFileCaptured ( ) { if ( mPhotoFileCapture == null || mFilesCreatedWhileCapturePhoto == null || mFilesCreatedWhileCapturePhoto . size ( ) <= _NUM ) return ; long captureSize = mPhotoFileCapture . length ( ) ; for ( File file : mFilesCreatedWhileCapturePhoto ) { if ( MediaUtils . isImageExtens...
155
java-test-4052
java
How do it ' s prefer default image ?
by camera
private void try Correct Photo File Captured ( ) { if ( m Photo File Capture == null || m Files Created While Capture Photo == null || m Files Created While Capture Photo . size ( ) <= NUM ) return ; long capture Size = m Photo File Capture . length ( ) ; for ( File file : m Files Created While Capture Photo ) { if ( M...
private void tryCorrectPhotoFileCaptured ( ) { if ( mPhotoFileCapture == null || mFilesCreatedWhileCapturePhoto == null || mFilesCreatedWhileCapturePhoto . size ( ) <= _NUM ) return ; long captureSize = mPhotoFileCapture . length ( ) ; for ( File file : mFilesCreatedWhileCapturePhoto ) { if ( MediaUtils . isImageExtens...
155
java-test-4057
java
What did the code return ?
the remaining text
public String read Matching Flags ( String text ) { clear ( ) ; if ( text . starts With ( PM SEPARATOR ) ) { final String Tokenizer tok = new String Tokenizer ( text , PM SEPARATOR ) ; while ( tok . has More Tokens ( ) ) { final String flag = tok . next Token ( ) ; if ( flag . equals ( PM TYPE MATCH ) ) { type Matching...
public String readMatchingFlags ( String text ) { clear ( ) ; if ( text . startsWith ( PM_SEPARATOR ) ) { final StringTokenizer tok = new StringTokenizer ( text , PM_SEPARATOR ) ; while ( tok . hasMoreTokens ( ) ) { final String flag = tok . nextToken ( ) ; if ( flag . equals ( PM_TYPE_MATCH ) ) { typeMatching = _BOOL ...
203
java-test-4058
java
What did the code read ?
leading matching flags
public String read Matching Flags ( String text ) { clear ( ) ; if ( text . starts With ( PM SEPARATOR ) ) { final String Tokenizer tok = new String Tokenizer ( text , PM SEPARATOR ) ; while ( tok . has More Tokens ( ) ) { final String flag = tok . next Token ( ) ; if ( flag . equals ( PM TYPE MATCH ) ) { type Matching...
public String readMatchingFlags ( String text ) { clear ( ) ; if ( text . startsWith ( PM_SEPARATOR ) ) { final StringTokenizer tok = new StringTokenizer ( text , PM_SEPARATOR ) ; while ( tok . hasMoreTokens ( ) ) { final String flag = tok . nextToken ( ) ; if ( flag . equals ( PM_TYPE_MATCH ) ) { typeMatching = _BOOL ...
203
java-test-4060
java
What does the code create ?
a renderedimage instance of this image with width w , and height h in pixels
public Rendered Image create Scaled Rendering ( int w , int h , Rendering Hints hints ) { double sx = ( double ) w / get Width ( ) ; double sy = ( double ) h / get Height ( ) ; if ( Math . abs ( sx / sy - NUM ) < NUM ) { sx = sy ; } Affine Transform usr 2 dev = Affine Transform . get Scale Instance ( sx , sy ) ; Render...
public RenderedImage createScaledRendering ( int w , int h , RenderingHints hints ) { double sx = ( double ) w / getWidth ( ) ; double sy = ( double ) h / getHeight ( ) ; if ( Math . abs ( sx / sy - _NUM ) < _NUM ) { sx = sy ; } AffineTransform usr2dev = AffineTransform . getScaleInstance ( sx , sy ) ; RenderContext ne...
108
java-test-4061
java
What may have such a property in addition ?
any renderedimages that are obtained via the getsources ( ) method on the created renderedimage
public Rendered Image create Scaled Rendering ( int w , int h , Rendering Hints hints ) { double sx = ( double ) w / get Width ( ) ; double sy = ( double ) h / get Height ( ) ; if ( Math . abs ( sx / sy - NUM ) < NUM ) { sx = sy ; } Affine Transform usr 2 dev = Affine Transform . get Scale Instance ( sx , sy ) ; Render...
public RenderedImage createScaledRendering ( int w , int h , RenderingHints hints ) { double sx = ( double ) w / getWidth ( ) ; double sy = ( double ) h / getHeight ( ) ; if ( Math . abs ( sx / sy - _NUM ) < _NUM ) { sx = sy ; } AffineTransform usr2dev = AffineTransform . getScaleInstance ( sx , sy ) ; RenderContext ne...
108
java-test-4062
java
For what purpose did by the string hints_observed identify a property ?
to indicate which renderinghints were used to create the image
public Rendered Image create Scaled Rendering ( int w , int h , Rendering Hints hints ) { double sx = ( double ) w / get Width ( ) ; double sy = ( double ) h / get Height ( ) ; if ( Math . abs ( sx / sy - NUM ) < NUM ) { sx = sy ; } Affine Transform usr 2 dev = Affine Transform . get Scale Instance ( sx , sy ) ; Render...
public RenderedImage createScaledRendering ( int w , int h , RenderingHints hints ) { double sx = ( double ) w / getWidth ( ) ; double sy = ( double ) h / getHeight ( ) ; if ( Math . abs ( sx / sy - _NUM ) < _NUM ) { sx = sy ; } AffineTransform usr2dev = AffineTransform . getScaleInstance ( sx , sy ) ; RenderContext ne...
108
java-test-4063
java
What were which renderinghints used ?
to create the image
public Rendered Image create Scaled Rendering ( int w , int h , Rendering Hints hints ) { double sx = ( double ) w / get Width ( ) ; double sy = ( double ) h / get Height ( ) ; if ( Math . abs ( sx / sy - NUM ) < NUM ) { sx = sy ; } Affine Transform usr 2 dev = Affine Transform . get Scale Instance ( sx , sy ) ; Render...
public RenderedImage createScaledRendering ( int w , int h , RenderingHints hints ) { double sx = ( double ) w / getWidth ( ) ; double sy = ( double ) h / getHeight ( ) ; if ( Math . abs ( sx / sy - _NUM ) < _NUM ) { sx = sy ; } AffineTransform usr2dev = AffineTransform . getScaleInstance ( sx , sy ) ; RenderContext ne...
108
java-test-4064
java
What may any renderedimages that are obtained via the getsources ( ) method on the created renderedimage have in addition ?
such a property
public Rendered Image create Scaled Rendering ( int w , int h , Rendering Hints hints ) { double sx = ( double ) w / get Width ( ) ; double sy = ( double ) h / get Height ( ) ; if ( Math . abs ( sx / sy - NUM ) < NUM ) { sx = sy ; } Affine Transform usr 2 dev = Affine Transform . get Scale Instance ( sx , sy ) ; Render...
public RenderedImage createScaledRendering ( int w , int h , RenderingHints hints ) { double sx = ( double ) w / getWidth ( ) ; double sy = ( double ) h / getHeight ( ) ; if ( Math . abs ( sx / sy - _NUM ) < _NUM ) { sx = sy ; } AffineTransform usr2dev = AffineTransform . getScaleInstance ( sx , sy ) ; RenderContext ne...
108
java-test-4065
java
What were used to create the image ?
which renderinghints
public Rendered Image create Scaled Rendering ( int w , int h , Rendering Hints hints ) { double sx = ( double ) w / get Width ( ) ; double sy = ( double ) h / get Height ( ) ; if ( Math . abs ( sx / sy - NUM ) < NUM ) { sx = sy ; } Affine Transform usr 2 dev = Affine Transform . get Scale Instance ( sx , sy ) ; Render...
public RenderedImage createScaledRendering ( int w , int h , RenderingHints hints ) { double sx = ( double ) w / getWidth ( ) ; double sy = ( double ) h / getHeight ( ) ; if ( Math . abs ( sx / sy - _NUM ) < _NUM ) { sx = sy ; } AffineTransform usr2dev = AffineTransform . getScaleInstance ( sx , sy ) ; RenderContext ne...
108
java-test-4068
java
What does the code replace with a copy of the new text ?
instances of the old text
protected void replace ( final String param Text , final String new Text ) { int loc = builder . index Of ( param Text ) ; while ( loc >= NUM ) { builder . replace ( loc , loc + param Text . length ( ) , new Text ) ; loc = builder . index Of ( param Text ) ; } }
protected void replace ( final String paramText , final String newText ) { int loc = builder . indexOf ( paramText ) ; while ( loc >= _NUM ) { builder . replace ( loc , loc + paramText . length ( ) , newText ) ; loc = builder . indexOf ( paramText ) ; } }
66
java-test-4069
java
What does not consume the excluded character ?
this
private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
84
java-test-4070
java
What does this not consume ?
the excluded character
private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
84
java-test-4071
java
Does this consume the excluded character ?
No
private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
84
java-test-4074
java
What does the code draw ?
the graphical bullet item specified by the type argument
void draw Shape ( Graphics g , CSS . Value type , int ax , int ay , int aw , int ah , float align ) { int gap = is Left To Right ? - ( bulletgap + NUM ) : ( aw + bulletgap ) ; int x = ax + gap ; int y = Math . max ( ay , ay + ( int ) ( align * ah ) - NUM ) ; if ( type == CSS . Value . SQUARE ) { g . draw Rect ( x , y ,...
void drawShape ( Graphics g , CSS . Value type , int ax , int ay , int aw , int ah , float align ) { int gap = isLeftToRight ? - ( bulletgap + _NUM ) : ( aw + bulletgap ) ; int x = ax + gap ; int y = Math . max ( ay , ay + ( int ) ( align * ah ) - _NUM ) ; if ( type == CSS . Value . SQUARE ) { g . drawRect ( x , y , _N...
150
java-test-4075
java
Where does the code restore the properties associated with this preference ?
on boot
public static void restore ( final Context context ) { Shared Preferences prefs = Preference Manager . get Default Shared Preferences ( context ) ; if ( Long Term Orbits . is Supported ( ) && prefs . get Boolean ( KEY LOCATION TOGGLE , BOOL ) ) { save Download Data Wifi Only Pref ( context ) ; Alarm Manager am = ( Alar...
public static void restore ( final Context context ) { SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( context ) ; if ( LongTermOrbits . isSupported ( ) && prefs . getBoolean ( KEY_LOCATION_TOGGLE , _BOOL ) ) { saveDownloadDataWifiOnlyPref ( context ) ; AlarmManager am = ( AlarmManager ) con...
163
java-test-4076
java
What does the code restore on boot ?
the properties associated with this preference
public static void restore ( final Context context ) { Shared Preferences prefs = Preference Manager . get Default Shared Preferences ( context ) ; if ( Long Term Orbits . is Supported ( ) && prefs . get Boolean ( KEY LOCATION TOGGLE , BOOL ) ) { save Download Data Wifi Only Pref ( context ) ; Alarm Manager am = ( Alar...
public static void restore ( final Context context ) { SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( context ) ; if ( LongTermOrbits . isSupported ( ) && prefs . getBoolean ( KEY_LOCATION_TOGGLE , _BOOL ) ) { saveDownloadDataWifiOnlyPref ( context ) ; AlarmManager am = ( AlarmManager ) con...
163
java-test-4077
java
How does the code derive a color ?
by adding the specified offsets to the base color ' s hue , saturation , and brightness values
public static Color derive Color HSB ( Color base , float dH , float dS , float dB ) { float hsb [ ] = Color . RG Bto HSB ( base . get Red ( ) , base . get Green ( ) , base . get Blue ( ) , null ) ; hsb [ NUM ] += dH ; hsb [ NUM ] += dS ; hsb [ NUM ] += dB ; return Color . get HSB Color ( hsb [ NUM ] < NUM ? NUM : ( hs...
public static Color deriveColorHSB ( Color base , float dH , float dS , float dB ) { float hsb [ ] = Color . RGBtoHSB ( base . getRed ( ) , base . getGreen ( ) , base . getBlue ( ) , null ) ; hsb [ _NUM ] += dH ; hsb [ _NUM ] += dS ; hsb [ _NUM ] += dB ; return Color . getHSBColor ( hsb [ _NUM ] < _NUM ? _NUM : ( hsb [...
160
java-test-4078
java
What do the specified offsets add ?
to the base color ' s hue , saturation , and brightness values
public static Color derive Color HSB ( Color base , float dH , float dS , float dB ) { float hsb [ ] = Color . RG Bto HSB ( base . get Red ( ) , base . get Green ( ) , base . get Blue ( ) , null ) ; hsb [ NUM ] += dH ; hsb [ NUM ] += dS ; hsb [ NUM ] += dB ; return Color . get HSB Color ( hsb [ NUM ] < NUM ? NUM : ( hs...
public static Color deriveColorHSB ( Color base , float dH , float dS , float dB ) { float hsb [ ] = Color . RGBtoHSB ( base . getRed ( ) , base . getGreen ( ) , base . getBlue ( ) , null ) ; hsb [ _NUM ] += dH ; hsb [ _NUM ] += dS ; hsb [ _NUM ] += dB ; return Color . getHSBColor ( hsb [ _NUM ] < _NUM ? _NUM : ( hsb [...
160
java-test-4079
java
What is adding to the base color ' s hue , saturation , and brightness values ?
the specified offsets
public static Color derive Color HSB ( Color base , float dH , float dS , float dB ) { float hsb [ ] = Color . RG Bto HSB ( base . get Red ( ) , base . get Green ( ) , base . get Blue ( ) , null ) ; hsb [ NUM ] += dH ; hsb [ NUM ] += dS ; hsb [ NUM ] += dB ; return Color . get HSB Color ( hsb [ NUM ] < NUM ? NUM : ( hs...
public static Color deriveColorHSB ( Color base , float dH , float dS , float dB ) { float hsb [ ] = Color . RGBtoHSB ( base . getRed ( ) , base . getGreen ( ) , base . getBlue ( ) , null ) ; hsb [ _NUM ] += dH ; hsb [ _NUM ] += dS ; hsb [ _NUM ] += dB ; return Color . getHSBColor ( hsb [ _NUM ] < _NUM ? _NUM : ( hsb [...
160
java-test-4080
java
What will be be contrained to be between 0 and 1 ?
the resulting hue , saturation , and brightness values
public static Color derive Color HSB ( Color base , float dH , float dS , float dB ) { float hsb [ ] = Color . RG Bto HSB ( base . get Red ( ) , base . get Green ( ) , base . get Blue ( ) , null ) ; hsb [ NUM ] += dH ; hsb [ NUM ] += dS ; hsb [ NUM ] += dB ; return Color . get HSB Color ( hsb [ NUM ] < NUM ? NUM : ( hs...
public static Color deriveColorHSB ( Color base , float dH , float dS , float dB ) { float hsb [ ] = Color . RGBtoHSB ( base . getRed ( ) , base . getGreen ( ) , base . getBlue ( ) , null ) ; hsb [ _NUM ] += dH ; hsb [ _NUM ] += dS ; hsb [ _NUM ] += dB ; return Color . getHSBColor ( hsb [ _NUM ] < _NUM ? _NUM : ( hsb [...
160
java-test-4081
java
What will the resulting hue , saturation , and brightness values be be contrained ?
to be between 0 and 1
public static Color derive Color HSB ( Color base , float dH , float dS , float dB ) { float hsb [ ] = Color . RG Bto HSB ( base . get Red ( ) , base . get Green ( ) , base . get Blue ( ) , null ) ; hsb [ NUM ] += dH ; hsb [ NUM ] += dS ; hsb [ NUM ] += dB ; return Color . get HSB Color ( hsb [ NUM ] < NUM ? NUM : ( hs...
public static Color deriveColorHSB ( Color base , float dH , float dS , float dB ) { float hsb [ ] = Color . RGBtoHSB ( base . getRed ( ) , base . getGreen ( ) , base . getBlue ( ) , null ) ; hsb [ _NUM ] += dH ; hsb [ _NUM ] += dS ; hsb [ _NUM ] += dB ; return Color . getHSBColor ( hsb [ _NUM ] < _NUM ? _NUM : ( hsb [...
160
java-test-4082
java
What does the code remove ?
the first attribute with the specified name in the set of modifications
public synchronized void remove ( String name ) { for ( int i = NUM ; i < modifications . size ( ) ; i ++ ) { Modification mod = modifications . get ( i ) ; Attribute attr = mod . get Attribute ( ) ; if ( name . equals Ignore Case ( attr . get Attribute Description As String ( ) ) ) { modifications . remove ( i ) ; ret...
public synchronized void remove ( String name ) { for ( int i = _NUM ; i < modifications . size ( ) ; i ++ ) { Modification mod = modifications . get ( i ) ; Attribute attr = mod . getAttribute ( ) ; if ( name . equalsIgnoreCase ( attr . getAttributeDescriptionAsString ( ) ) ) { modifications . remove ( i ) ; return ; ...
80
java-test-4084
java
What does the code add ?
an appropriate policy database entry for parameters marked with the willclose annotation
public Obligation Policy Database Entry add Parameter Deletes Obligation Database Entry ( X Method xmethod , Obligation obligation , Obligation Policy Database Entry Type entry Type ) { Obligation Policy Database Entry entry = new Match Method Entry ( xmethod , Obligation Policy Database Action Type . DEL , entry Type ...
public ObligationPolicyDatabaseEntry addParameterDeletesObligationDatabaseEntry ( XMethod xmethod , Obligation obligation , ObligationPolicyDatabaseEntryType entryType ) { ObligationPolicyDatabaseEntry entry = new MatchMethodEntry ( xmethod , ObligationPolicyDatabaseActionType . DEL , entryType , obligation ) ; addEntr...
65
java-test-4085
java
What do the entries match ?
the typename and key values
public Map < Object , Space Document > read Documents By Keys ( Space Document Column Family Mapper mapper , String type Name , Object [ ] key Values ) { Map < Object , Space Document > result = Collections . empty Map ( ) ; Column Family Metadata metadata = metadata Cache . get Column Family Metadata ( type Name ) ; i...
public Map < Object , SpaceDocument > readDocumentsByKeys ( SpaceDocumentColumnFamilyMapper mapper , String typeName , Object [ ] keyValues ) { Map < Object , SpaceDocument > result = Collections . emptyMap ( ) ; ColumnFamilyMetadata metadata = metadataCache . getColumnFamilyMetadata ( typeName ) ; if ( metadata == nul...
261
java-test-4086
java
What does the code read ?
the entries matching the typename and key values from the matching column family
public Map < Object , Space Document > read Documents By Keys ( Space Document Column Family Mapper mapper , String type Name , Object [ ] key Values ) { Map < Object , Space Document > result = Collections . empty Map ( ) ; Column Family Metadata metadata = metadata Cache . get Column Family Metadata ( type Name ) ; i...
public Map < Object , SpaceDocument > readDocumentsByKeys ( SpaceDocumentColumnFamilyMapper mapper , String typeName , Object [ ] keyValues ) { Map < Object , SpaceDocument > result = Collections . emptyMap ( ) ; ColumnFamilyMetadata metadata = metadataCache . getColumnFamilyMetadata ( typeName ) ; if ( metadata == nul...
261
java-test-4087
java
When do the colour flash ?
" times " times
public synchronized void notify Band ( final int times , final int on Time , final int off Time , final int flash Colour ) { final List < BLE Action > list = new Array List < > ( ) ; byte [ ] colors = convert Rgb ( flash Colour ) ; list . add ( new Wait Action ( NUM ) ) ; list . add ( new Write Action ( Profile . UUID ...
public synchronized void notifyBand ( final int times , final int onTime , final int offTime , final int flashColour ) { final List < BLEAction > list = new ArrayList < > ( ) ; byte [ ] colors = convertRgb ( flashColour ) ; list . add ( new WaitAction ( _NUM ) ) ; list . add ( new WriteAction ( Profile . UUID_CHAR_CONT...
126
java-test-4088
java
What does the code draw ?
the " close " graphic for a state where it overlays a border
private void draw Overlay Graphic ( Graphics 2 D g , int width , int height ) { Shape s = shape Generator . create Tab Close Icon ( NUM , NUM , width - NUM , height - NUM ) ; g . set Paint ( graphic Base ) ; g . fill ( s ) ; s = shape Generator . create Tab Close Icon ( NUM , NUM , width - NUM , height - NUM ) ; g . se...
private void drawOverlayGraphic ( Graphics2D g , int width , int height ) { Shape s = shapeGenerator . createTabCloseIcon ( _NUM , _NUM , width - _NUM , height - _NUM ) ; g . setPaint ( graphicBase ) ; g . fill ( s ) ; s = shapeGenerator . createTabCloseIcon ( _NUM , _NUM , width - _NUM , height - _NUM ) ; g . setPaint...
142
java-test-4089
java
What does the code create ?
a new thread panel
public C Thread Panel ( final C Debug Perspective Model debug Perspective Model ) { super ( new Border Layout ( ) ) ; Preconditions . check Not Null ( debug Perspective Model , STRING ) ; set Border ( new Titled Border ( STRING ) ) ; final J Label thread Label = new J Label ( STRING ) ; thread Label . set Border ( Bord...
public CThreadPanel ( final CDebugPerspectiveModel debugPerspectiveModel ) { super ( new BorderLayout ( ) ) ; Preconditions . checkNotNull ( debugPerspectiveModel , STRING ) ; setBorder ( new TitledBorder ( STRING ) ) ; final JLabel threadLabel = new JLabel ( STRING ) ; threadLabel . setBorder ( BorderFactory . createE...
126
java-test-4090
java
What does the code load ?
the modules that belong to the target
private void load Target Modules ( ) { for ( final Module module : target . get Modules ( ) ) { module . add Listener ( module Keeper Listener ) ; modules . add ( module ) ; if ( ! module . is Loaded ( ) ) { try { module . load ( ) ; } catch ( final Couldnt Load Data Exception e ) { error Loading Module ( module , e ) ...
private void loadTargetModules ( ) { for ( final Module module : target . getModules ( ) ) { module . addListener ( moduleKeeperListener ) ; modules . add ( module ) ; if ( ! module . isLoaded ( ) ) { try { module . load ( ) ; } catch ( final CouldntLoadDataException e ) { errorLoadingModule ( module , e ) ; return ; }...
87
java-test-4091
java
How is the latter done ?
via getcharentitycode
public static String convert Char Entity ( String char Entity , boolean lookup HTM Lentities , Hashtable user Defined Char Entities ) { int char Code = - NUM ; if ( char Entity . starts With ( STRING ) ) { if ( char Entity . starts With ( STRING ) ) { try { char Code = Integer . parse Int ( char Entity . substring ( NU...
public static String convertCharEntity ( String charEntity , boolean lookupHTMLentities , Hashtable userDefinedCharEntities ) { int charCode = - _NUM ; if ( charEntity . startsWith ( STRING ) ) { if ( charEntity . startsWith ( STRING ) ) { try { charCode = Integer . parseInt ( charEntity . substring ( _NUM ) , _NUM ) ;...
178
java-test-4092
java
What does this handle ?
both numbered and symbol char entities
public static String convert Char Entity ( String char Entity , boolean lookup HTM Lentities , Hashtable user Defined Char Entities ) { int char Code = - NUM ; if ( char Entity . starts With ( STRING ) ) { if ( char Entity . starts With ( STRING ) ) { try { char Code = Integer . parse Int ( char Entity . substring ( NU...
public static String convertCharEntity ( String charEntity , boolean lookupHTMLentities , Hashtable userDefinedCharEntities ) { int charCode = - _NUM ; if ( charEntity . startsWith ( STRING ) ) { if ( charEntity . startsWith ( STRING ) ) { try { charCode = Integer . parseInt ( charEntity . substring ( _NUM ) , _NUM ) ;...
178
java-test-4093
java
What does the code create ?
a wgl - based backbuffer
@ Override public Volatile Image create Back Buffer ( W Component Peer peer ) { Component target = ( Component ) peer . get Target ( ) ; return new Sun Volatile Image ( target , target . get Width ( ) , target . get Height ( ) , Boolean . TRUE ) ; }
@ Override public VolatileImage createBackBuffer ( WComponentPeer peer ) { Component target = ( Component ) peer . getTarget ( ) ; return new SunVolatileImage ( target , target . getWidth ( ) , target . getHeight ( ) , Boolean . TRUE ) ; }
56
java-test-4099
java
What does each operation lock where ?
only a single resource ( high concurrency )
public void test single Resource Locking high Concurrency 100 ( ) throws Exception { Properties properties = new Properties ( ) ; properties . set Property ( Test Options . NTHREADS , STRING ) ; properties . set Property ( Test Options . NTASKS , STRING ) ; properties . set Property ( Test Options . NRESOURCES , STRING...
public void test_singleResourceLocking_highConcurrency100 ( ) throws Exception { Properties properties = new Properties ( ) ; properties . setProperty ( TestOptions . NTHREADS , STRING ) ; properties . setProperty ( TestOptions . NTASKS , STRING ) ; properties . setProperty ( TestOptions . NRESOURCES , STRING ) ; prope...
126
java-test-4100
java
For what purpose are set bit patterns used ?
to avoid a futex_wait_queue_me error on linux systems ( related to / dev / random usage )
public static void secure Delete ( File file ) throws IO Exception { log . debug ( STRING ) ; Random Access File raf = null ; if ( file != null && file . exists ( ) ) { try { file . set Writable ( BOOL ) ; System . gc ( ) ; long length = file . length ( ) ; raf = new Random Access File ( file , STRING ) ; raf . seek ( ...
public static void secureDelete ( File file ) throws IOException { log . debug ( STRING ) ; RandomAccessFile raf = null ; if ( file != null && file . exists ( ) ) { try { file . setWritable ( _BOOL ) ; System . gc ( ) ; long length = file . length ( ) ; raf = new RandomAccessFile ( file , STRING ) ; raf . seek ( _NUM )...
185
java-test-4101
java
How does the code delete a file ?
with an overwrite of all of the data
public static void secure Delete ( File file ) throws IO Exception { log . debug ( STRING ) ; Random Access File raf = null ; if ( file != null && file . exists ( ) ) { try { file . set Writable ( BOOL ) ; System . gc ( ) ; long length = file . length ( ) ; raf = new Random Access File ( file , STRING ) ; raf . seek ( ...
public static void secureDelete ( File file ) throws IOException { log . debug ( STRING ) ; RandomAccessFile raf = null ; if ( file != null && file . exists ( ) ) { try { file . setWritable ( _BOOL ) ; System . gc ( ) ; long length = file . length ( ) ; raf = new RandomAccessFile ( file , STRING ) ; raf . seek ( _NUM )...
185
java-test-4112
java
What does an automaton accept ?
all 1 - character substitutions of s
private Automaton substitutions Of ( String s ) { List < Automaton > list = new Array List < > ( ) ; for ( int i = NUM ; i < s . length ( ) ; i ++ ) { Automaton a = Automata . make String ( s . substring ( NUM , i ) ) ; a = Operations . concatenate ( a , Automata . make Any Char ( ) ) ; a = Operations . concatenate ( a...
private Automaton substitutionsOf ( String s ) { List < Automaton > list = new ArrayList < > ( ) ; for ( int i = _NUM ; i < s . length ( ) ; i ++ ) { Automaton a = Automata . makeString ( s . substring ( _NUM , i ) ) ; a = Operations . concatenate ( a , Automata . makeAnyChar ( ) ) ; a = Operations . concatenate ( a , ...
138
java-test-4122
java
Where is each value set to the absolute value ?
a new matrix object
public Matrix abs ( ) { Matrix result = new Matrix ( m , n ) ; for ( int i = NUM ; i < result . A . length ; i ++ ) { for ( int j = NUM ; j < result . A [ i ] . length ; j ++ ) result . A [ i ] [ j ] = Math . abs ( A [ i ] [ j ] ) ; } return result ; }
public Matrix abs ( ) { Matrix result = new Matrix ( m , n ) ; for ( int i = _NUM ; i < result . A . length ; i ++ ) { for ( int j = _NUM ; j < result . A [ i ] . length ; j ++ ) result . A [ i ] [ j ] = Math . abs ( A [ i ] [ j ] ) ; } return result ; }
85
java-test-4123
java
What might we want ?
to hold the incoming requests till there is a free thread
@ Override public < T > Future < T > submit ( Callable < T > task ) { synchronized ( this ) { active . increment And Get ( ) ; long timeout = NUM ; while ( queue . remaining Capacity ( ) == NUM ) { try { if ( timeout <= giveup Time ) { Thread . sleep ( DEFAULT SLEEP ) ; timeout += DEFAULT SLEEP ; } else { throw new Run...
@ Override public < T > Future < T > submit ( Callable < T > task ) { synchronized ( this ) { active . incrementAndGet ( ) ; long timeout = _NUM ; while ( queue . remainingCapacity ( ) == _NUM ) { try { if ( timeout <= giveupTime ) { Thread . sleep ( DEFAULT_SLEEP ) ; timeout += DEFAULT_SLEEP ; } else { throw new Runti...
112
java-test-4124
java
Till when is we hold the incoming requests ?
till there is a free thread
@ Override public < T > Future < T > submit ( Callable < T > task ) { synchronized ( this ) { active . increment And Get ( ) ; long timeout = NUM ; while ( queue . remaining Capacity ( ) == NUM ) { try { if ( timeout <= giveup Time ) { Thread . sleep ( DEFAULT SLEEP ) ; timeout += DEFAULT SLEEP ; } else { throw new Run...
@ Override public < T > Future < T > submit ( Callable < T > task ) { synchronized ( this ) { active . incrementAndGet ( ) ; long timeout = _NUM ; while ( queue . remainingCapacity ( ) == _NUM ) { try { if ( timeout <= giveupTime ) { Thread . sleep ( DEFAULT_SLEEP ) ; timeout += DEFAULT_SLEEP ; } else { throw new Runti...
112
java-test-4125
java
Why is this implemented ?
because we might want to hold the incoming requests till there is a free thread
@ Override public < T > Future < T > submit ( Callable < T > task ) { synchronized ( this ) { active . increment And Get ( ) ; long timeout = NUM ; while ( queue . remaining Capacity ( ) == NUM ) { try { if ( timeout <= giveup Time ) { Thread . sleep ( DEFAULT SLEEP ) ; timeout += DEFAULT SLEEP ; } else { throw new Run...
@ Override public < T > Future < T > submit ( Callable < T > task ) { synchronized ( this ) { active . incrementAndGet ( ) ; long timeout = _NUM ; while ( queue . remainingCapacity ( ) == _NUM ) { try { if ( timeout <= giveupTime ) { Thread . sleep ( DEFAULT_SLEEP ) ; timeout += DEFAULT_SLEEP ; } else { throw new Runti...
112
java-test-4126
java
What copys into new cifs share acls ?
unmanaged cifs share
private void copy AC Ls ( List < Un Managed Cifs Share ACL > orig ACL List , List < Cifs Share ACL > share ACL List , File Share fileshare ) { Cifs Share ACL share ACL = null ; for ( Un Managed Cifs Share ACL orig ACL : orig ACL List ) { share ACL = new Cifs Share ACL ( ) ; share ACL . set Id ( URI Util . create Id ( C...
private void copyACLs ( List < UnManagedCifsShareACL > origACLList , List < CifsShareACL > shareACLList , FileShare fileshare ) { CifsShareACL shareACL = null ; for ( UnManagedCifsShareACL origACL : origACLList ) { shareACL = new CifsShareACL ( ) ; shareACL . setId ( URIUtil . createId ( CifsShareACL . class ) ) ; shar...
176
java-test-4127
java
What do unmanaged cifs share copy ?
into new cifs share acls
private void copy AC Ls ( List < Un Managed Cifs Share ACL > orig ACL List , List < Cifs Share ACL > share ACL List , File Share fileshare ) { Cifs Share ACL share ACL = null ; for ( Un Managed Cifs Share ACL orig ACL : orig ACL List ) { share ACL = new Cifs Share ACL ( ) ; share ACL . set Id ( URI Util . create Id ( C...
private void copyACLs ( List < UnManagedCifsShareACL > origACLList , List < CifsShareACL > shareACLList , FileShare fileshare ) { CifsShareACL shareACL = null ; for ( UnManagedCifsShareACL origACL : origACLList ) { shareACL = new CifsShareACL ( ) ; shareACL . setId ( URIUtil . createId ( CifsShareACL . class ) ) ; shar...
176
java-test-4128
java
What does the code overwrite ?
a bit range within the vector
public static void overwrite ( long [ ] vector , long val , int offset , int len ) { int idx = offset > > NUM ; int bit Idx = offset & NUM ; int truncated Val Len = Math . min ( len , NUM - bit Idx ) ; vector [ idx ] &= ~ ( mask Below ( truncated Val Len ) << bit Idx ) ; vector [ idx ] |= val << bit Idx ; if ( len != t...
public static void overwrite ( long [ ] vector , long val , int offset , int len ) { int idx = offset > > _NUM ; int bitIdx = offset & _NUM ; int truncatedValLen = Math . min ( len , _NUM - bitIdx ) ; vector [ idx ] &= ~ ( maskBelow ( truncatedValLen ) << bitIdx ) ; vector [ idx ] |= val << bitIdx ; if ( len != truncat...
133
java-test-4129
java
What does the code get ?
a list of matching members
@ HLE Function ( nid = NUM , version = NUM ) public int sce Net Adhoc Matching Get Members ( @ Check Argument ( STRING ) int matching Id , T Pointer 32 size Addr , @ Can Be Null T Pointer buf ) { final int matching Member Size = NUM ; Matching Object matching Object = matching Objects . get ( matching Id ) ; List < psp...
@ HLEFunction ( nid = _NUM , version = _NUM ) public int sceNetAdhocMatchingGetMembers ( @ CheckArgument ( STRING ) int matchingId , TPointer32 sizeAddr , @ CanBeNull TPointer buf ) { final int matchingMemberSize = _NUM ; MatchingObject matchingObject = matchingObjects . get ( matchingId ) ; List < pspNetMacAddress > m...
286
java-test-4131
java
What does the code create ?
a client transaction that encapsulates a messagechannel . useful for implementations that want to subclass the standard
public SIP Client Transaction create Client Transaction ( SIP Request sip Request , Message Channel encapsulated Message Channel ) { SIP Client Transaction ct = new SIP Client Transaction ( this , encapsulated Message Channel ) ; ct . set Original Request ( sip Request ) ; return ct ; }
public SIPClientTransaction createClientTransaction ( SIPRequest sipRequest , MessageChannel encapsulatedMessageChannel ) { SIPClientTransaction ct = new SIPClientTransaction ( this , encapsulatedMessageChannel ) ; ct . setOriginalRequest ( sipRequest ) ; return ct ; }
51
java-test-4132
java
How are all the virtualpool updated ?
with matched pools
private static void persist Updated Vpool List ( List < Virtual Pool > updated Vpool List , Db Client db Client ) { if ( ! updated Vpool List . is Empty ( ) ) { db Client . update And Reindex Object ( updated Vpool List ) ; } }
private static void persistUpdatedVpoolList ( List < VirtualPool > updatedVpoolList , DbClient dbClient ) { if ( ! updatedVpoolList . isEmpty ( ) ) { dbClient . updateAndReindexObject ( updatedVpoolList ) ; } }
51
java-test-4133
java
What does the code add ?
property and attribute you need
public Builder add ( String property , Attributes attributes ) { Map < String , String > map = attributes . get Attributes ( ) ; String Builder string Builder = new String Builder ( ) ; string Builder . append ( property ) ; string Builder . append ( STRING ) ; string Builder . append ( Utils . join ( map , STRING , ST...
public Builder add ( String property , Attributes attributes ) { Map < String , String > map = attributes . getAttributes ( ) ; StringBuilder stringBuilder = new StringBuilder ( ) ; stringBuilder . append ( property ) ; stringBuilder . append ( STRING ) ; stringBuilder . append ( Utils . join ( map , STRING , STRING , ...
89
java-test-4137
java
What does a new resource use ?
an executor with as many threads as there are processors available
public Concurrent Coap Resource ( String name ) { super ( name ) ; this . threads = get Available Processors ( ) ; set Executor ( Executors . new Fixed Thread Pool ( threads , new Utils . Named Thread Factory ( STRING + name + STRING ) ) ) ; }
public ConcurrentCoapResource ( String name ) { super ( name ) ; this . threads = getAvailableProcessors ( ) ; setExecutor ( Executors . newFixedThreadPool ( threads , new Utils . NamedThreadFactory ( STRING + name + STRING ) ) ) ; }
53
java-test-4139
java
What does the code compute ?
the arc - tangent of the argument
protected static Dfp atan Internal ( final Dfp a ) { Dfp y = new Dfp ( a ) ; Dfp x = new Dfp ( y ) ; Dfp py = new Dfp ( y ) ; for ( int i = NUM ; i < NUM ; i += NUM ) { x = x . multiply ( a ) ; x = x . multiply ( a ) ; x = x . negate ( ) ; y = y . add ( x . divide ( i ) ) ; if ( y . equals ( py ) ) { break ; } py = new...
protected static Dfp atanInternal ( final Dfp a ) { Dfp y = new Dfp ( a ) ; Dfp x = new Dfp ( y ) ; Dfp py = new Dfp ( y ) ; for ( int i = _NUM ; i < _NUM ; i += _NUM ) { x = x . multiply ( a ) ; x = x . multiply ( a ) ; x = x . negate ( ) ; y = y . add ( x . divide ( i ) ) ; if ( y . equals ( py ) ) { break ; } py = n...
120
java-test-4140
java
How does the code validate a given resource ?
against a given shape
public Model validate Node Against Shape ( Dataset dataset , URI shapes Graph URI , Node focus Node , Node shape , Resource min Severity , Predicate < SH Constraint > constraint Filter , Function < RDF Node , String > label Function , Progress Monitor monitor ) { Model results = Jena Util . create Memory Model ( ) ; Mo...
public Model validateNodeAgainstShape ( Dataset dataset , URI shapesGraphURI , Node focusNode , Node shape , Resource minSeverity , Predicate < SHConstraint > constraintFilter , Function < RDFNode , String > labelFunction , ProgressMonitor monitor ) { Model results = JenaUtil . createMemoryModel ( ) ; Model oldResults ...
133
java-test-4143
java
What does the code calculate using the algorithm provided by the wcag v2 ?
the constrast between two colors
public static float compute Contrast Between Colors ( int bg , int fg ) { float bg R = Color . red ( bg ) / NUM ; float bg G = Color . green ( bg ) / NUM ; float bg B = Color . blue ( bg ) / NUM ; bg R = ( bg R < NUM ) ? bg R / NUM : ( float ) Math . pow ( ( bg R + NUM ) / NUM , NUM ) ; bg G = ( bg G < NUM ) ? bg G / N...
public static float computeContrastBetweenColors ( int bg , int fg ) { float bgR = Color . red ( bg ) / _NUM ; float bgG = Color . green ( bg ) / _NUM ; float bgB = Color . blue ( bg ) / _NUM ; bgR = ( bgR < _NUM ) ? bgR / _NUM : ( float ) Math . pow ( ( bgR + _NUM ) / _NUM , _NUM ) ; bgG = ( bgG < _NUM ) ? bgG / _NUM ...
356
java-test-4144
java
What does the code use ?
the algorithm provided by the wcag v2
public static float compute Contrast Between Colors ( int bg , int fg ) { float bg R = Color . red ( bg ) / NUM ; float bg G = Color . green ( bg ) / NUM ; float bg B = Color . blue ( bg ) / NUM ; bg R = ( bg R < NUM ) ? bg R / NUM : ( float ) Math . pow ( ( bg R + NUM ) / NUM , NUM ) ; bg G = ( bg G < NUM ) ? bg G / N...
public static float computeContrastBetweenColors ( int bg , int fg ) { float bgR = Color . red ( bg ) / _NUM ; float bgG = Color . green ( bg ) / _NUM ; float bgB = Color . blue ( bg ) / _NUM ; bgR = ( bgR < _NUM ) ? bgR / _NUM : ( float ) Math . pow ( ( bgR + _NUM ) / _NUM , _NUM ) ; bgG = ( bgG < _NUM ) ? bgG / _NUM ...
356
java-test-4145
java
How does the code calculate the constrast between two colors ?
using the algorithm provided by the wcag v2
public static float compute Contrast Between Colors ( int bg , int fg ) { float bg R = Color . red ( bg ) / NUM ; float bg G = Color . green ( bg ) / NUM ; float bg B = Color . blue ( bg ) / NUM ; bg R = ( bg R < NUM ) ? bg R / NUM : ( float ) Math . pow ( ( bg R + NUM ) / NUM , NUM ) ; bg G = ( bg G < NUM ) ? bg G / N...
public static float computeContrastBetweenColors ( int bg , int fg ) { float bgR = Color . red ( bg ) / _NUM ; float bgG = Color . green ( bg ) / _NUM ; float bgB = Color . blue ( bg ) / _NUM ; bgR = ( bgR < _NUM ) ? bgR / _NUM : ( float ) Math . pow ( ( bgR + _NUM ) / _NUM , _NUM ) ; bgG = ( bgG < _NUM ) ? bgG / _NUM ...
356
java-test-4147
java
What did pending read requests take ?
precedence over all write requests
public void write Request ( ) { Object lock = new Object ( ) ; synchronized ( lock ) { synchronized ( this ) { boolean go Ahead With Write = writer Locks . size ( ) == NUM && current Readers == NUM && current Writers == NUM ; if ( go Ahead With Write ) { ++ current Writers ; return ; } writer Locks . add Last ( lock ) ...
public void writeRequest ( ) { Object lock = new Object ( ) ; synchronized ( lock ) { synchronized ( this ) { boolean goAheadWithWrite = writerLocks . size ( ) == _NUM && currentReaders == _NUM && currentWriters == _NUM ; if ( goAheadWithWrite ) { ++ currentWriters ; return ; } writerLocks . addLast ( lock ) ; } try { ...
94
java-test-4148
java
Till when does the code request the write lock . block ?
until a write operation can be performed safely
public void write Request ( ) { Object lock = new Object ( ) ; synchronized ( lock ) { synchronized ( this ) { boolean go Ahead With Write = writer Locks . size ( ) == NUM && current Readers == NUM && current Writers == NUM ; if ( go Ahead With Write ) { ++ current Writers ; return ; } writer Locks . add Last ( lock ) ...
public void writeRequest ( ) { Object lock = new Object ( ) ; synchronized ( lock ) { synchronized ( this ) { boolean goAheadWithWrite = writerLocks . size ( ) == _NUM && currentReaders == _NUM && currentWriters == _NUM ; if ( goAheadWithWrite ) { ++ currentWriters ; return ; } writerLocks . addLast ( lock ) ; } try { ...
94
java-test-4149
java
What take precedence over all write requests ?
pending read requests
public void write Request ( ) { Object lock = new Object ( ) ; synchronized ( lock ) { synchronized ( this ) { boolean go Ahead With Write = writer Locks . size ( ) == NUM && current Readers == NUM && current Writers == NUM ; if ( go Ahead With Write ) { ++ current Writers ; return ; } writer Locks . add Last ( lock ) ...
public void writeRequest ( ) { Object lock = new Object ( ) ; synchronized ( lock ) { synchronized ( this ) { boolean goAheadWithWrite = writerLocks . size ( ) == _NUM && currentReaders == _NUM && currentWriters == _NUM ; if ( goAheadWithWrite ) { ++ currentWriters ; return ; } writerLocks . addLast ( lock ) ; } try { ...
94
java-test-4150
java
How be requests executed ?
in the order received
public void write Request ( ) { Object lock = new Object ( ) ; synchronized ( lock ) { synchronized ( this ) { boolean go Ahead With Write = writer Locks . size ( ) == NUM && current Readers == NUM && current Writers == NUM ; if ( go Ahead With Write ) { ++ current Writers ; return ; } writer Locks . add Last ( lock ) ...
public void writeRequest ( ) { Object lock = new Object ( ) ; synchronized ( lock ) { synchronized ( this ) { boolean goAheadWithWrite = writerLocks . size ( ) == _NUM && currentReaders == _NUM && currentWriters == _NUM ; if ( goAheadWithWrite ) { ++ currentWriters ; return ; } writerLocks . addLast ( lock ) ; } try { ...
94
java-test-4151
java
What does the code request until a write operation can be performed safely ?
the write lock . block
public void write Request ( ) { Object lock = new Object ( ) ; synchronized ( lock ) { synchronized ( this ) { boolean go Ahead With Write = writer Locks . size ( ) == NUM && current Readers == NUM && current Writers == NUM ; if ( go Ahead With Write ) { ++ current Writers ; return ; } writer Locks . add Last ( lock ) ...
public void writeRequest ( ) { Object lock = new Object ( ) ; synchronized ( lock ) { synchronized ( this ) { boolean goAheadWithWrite = writerLocks . size ( ) == _NUM && currentReaders == _NUM && currentWriters == _NUM ; if ( goAheadWithWrite ) { ++ currentWriters ; return ; } writerLocks . addLast ( lock ) ; } try { ...
94
java-test-4152
java
What are using this layoutblock ?
layouteditor panels
public void add Layout Editor ( Layout Editor panel ) { if ( panels . size ( ) > NUM ) { for ( int i = NUM ; i < panels . size ( ) ; i ++ ) { Layout Editor ed = panels . get ( i ) ; if ( ed == panel ) { return ; } } } panels . add ( panel ) ; }
public void addLayoutEditor ( LayoutEditor panel ) { if ( panels . size ( ) > _NUM ) { for ( int i = _NUM ; i < panels . size ( ) ; i ++ ) { LayoutEditor ed = panels . get ( i ) ; if ( ed == panel ) { return ; } } } panels . add ( panel ) ; }
72
java-test-4153
java
What are layouteditor panels using ?
this layoutblock
public void add Layout Editor ( Layout Editor panel ) { if ( panels . size ( ) > NUM ) { for ( int i = NUM ; i < panels . size ( ) ; i ++ ) { Layout Editor ed = panels . get ( i ) ; if ( ed == panel ) { return ; } } } panels . add ( panel ) ; }
public void addLayoutEditor ( LayoutEditor panel ) { if ( panels . size ( ) > _NUM ) { for ( int i = _NUM ; i < panels . size ( ) ; i ++ ) { LayoutEditor ed = panels . get ( i ) ; if ( ed == panel ) { return ; } } } panels . add ( panel ) ; }
72
java-test-4154
java
When is this called ?
when the new configuration is submitted
@ Override public String save ( ) { log . info ( STRING ) ; boolean base Url Changed = BOOL ; if ( ! string Equals ( base Url , cfg . get Base Url ( ) ) ) { log . info ( STRING + cfg . get Base Url ( ) + STRING + base Url + STRING ) ; try { URL burl = new URL ( base Url ) ; config Manager . set Base Url ( burl ) ; upda...
@ Override public String save ( ) { log . info ( STRING ) ; boolean baseUrlChanged = _BOOL ; if ( ! stringEquals ( baseUrl , cfg . getBaseUrl ( ) ) ) { log . info ( STRING + cfg . getBaseUrl ( ) + STRING + baseUrl + STRING ) ; try { URL burl = new URL ( baseUrl ) ; configManager . setBaseUrl ( burl ) ; updateAllAlterna...
711
java-test-4155
java
What does the code return ?
a state object that will be used for the remainder of the drawing process for a single chart
@ Override public Category Item Renderer State initialise ( Graphics 2 D g2 , Rectangle 2 D data Area , Category Plot plot , int renderer Index , Plot Rendering Info info ) { set Plot ( plot ) ; Category Dataset data = plot . get Dataset ( renderer Index ) ; if ( data != null ) { this . row Count = data . get Row Count...
@ Override public CategoryItemRendererState initialise ( Graphics2D g2 , Rectangle2D dataArea , CategoryPlot plot , int rendererIndex , PlotRenderingInfo info ) { setPlot ( plot ) ; CategoryDataset data = plot . getDataset ( rendererIndex ) ; if ( data != null ) { this . rowCount = data . getRowCount ( ) ; this . colum...
250
java-test-4156
java
How will each thread work ?
with a separate state object
@ Override public Category Item Renderer State initialise ( Graphics 2 D g2 , Rectangle 2 D data Area , Category Plot plot , int renderer Index , Plot Rendering Info info ) { set Plot ( plot ) ; Category Dataset data = plot . get Dataset ( renderer Index ) ; if ( data != null ) { this . row Count = data . get Row Count...
@ Override public CategoryItemRendererState initialise ( Graphics2D g2 , Rectangle2D dataArea , CategoryPlot plot , int rendererIndex , PlotRenderingInfo info ) { setPlot ( plot ) ; CategoryDataset data = plot . getDataset ( rendererIndex ) ; if ( data != null ) { this . rowCount = data . getRowCount ( ) ; this . colum...
250
java-test-4157
java
How do a single file copy ?
using nio
private static void nio Copy ( File Output Stream fos , File Input Stream fis ) throws IO Exception { File Channel out Channel = fos . get Channel ( ) ; File Channel in Channel = fis . get Channel ( ) ; long length = in Channel . size ( ) ; long offset = NUM ; while ( BOOL ) { long remaining = length - offset ; long to...
private static void nioCopy ( FileOutputStream fos , FileInputStream fis ) throws IOException { FileChannel outChannel = fos . getChannel ( ) ; FileChannel inChannel = fis . getChannel ( ) ; long length = inChannel . size ( ) ; long offset = _NUM ; while ( _BOOL ) { long remaining = length - offset ; long toTransfer = ...
132
java-test-4158
java
What does the code get ?
a random string with the given length
public String random String ( int len ) { String Builder buff = new String Builder ( ) ; for ( int i = NUM ; i < len ; i ++ ) { String from = ( i % NUM == NUM ) ? STRING : STRING ; buff . append ( from . char At ( get Int ( from . length ( ) ) ) ) ; } return buff . to String ( ) ; }
public String randomString ( int len ) { StringBuilder buff = new StringBuilder ( ) ; for ( int i = _NUM ; i < len ; i ++ ) { String from = ( i % _NUM == _NUM ) ? STRING : STRING ; buff . append ( from . charAt ( getInt ( from . length ( ) ) ) ) ; } return buff . toString ( ) ; }
80
java-test-4159
java
For what purpose is on this may rely later ?
to implement serialization correctly
@ Pure public Atom annotation Interface To Annotation Class ( ) { byte [ ] annotation Class Name tmp = new byte [ val . length + NUM ] ; System . arraycopy ( val , NUM , annotation Class Name tmp , NUM , val . length - NUM ) ; annotation Class Name tmp [ val . length - NUM ] = STRING ; annotation Class Name tmp [ val ....
@ Pure public Atom annotationInterfaceToAnnotationClass ( ) { byte [ ] annotationClassName_tmp = new byte [ val . length + _NUM ] ; System . arraycopy ( val , _NUM , annotationClassName_tmp , _NUM , val . length - _NUM ) ; annotationClassName_tmp [ val . length - _NUM ] = STRING ; annotationClassName_tmp [ val . length...
109
java-test-4160
java
What is $ proxy1 in sun vms ?
the annotation name of the first annotation
@ Pure public Atom annotation Interface To Annotation Class ( ) { byte [ ] annotation Class Name tmp = new byte [ val . length + NUM ] ; System . arraycopy ( val , NUM , annotation Class Name tmp , NUM , val . length - NUM ) ; annotation Class Name tmp [ val . length - NUM ] = STRING ; annotation Class Name tmp [ val ....
@ Pure public Atom annotationInterfaceToAnnotationClass ( ) { byte [ ] annotationClassName_tmp = new byte [ val . length + _NUM ] ; System . arraycopy ( val , _NUM , annotationClassName_tmp , _NUM , val . length - _NUM ) ; annotationClassName_tmp [ val . length - _NUM ] = STRING ; annotationClassName_tmp [ val . length...
109
java-test-4161
java
Where is the annotation name of the first annotation $ proxy1 ?
in sun vms
@ Pure public Atom annotation Interface To Annotation Class ( ) { byte [ ] annotation Class Name tmp = new byte [ val . length + NUM ] ; System . arraycopy ( val , NUM , annotation Class Name tmp , NUM , val . length - NUM ) ; annotation Class Name tmp [ val . length - NUM ] = STRING ; annotation Class Name tmp [ val ....
@ Pure public Atom annotationInterfaceToAnnotationClass ( ) { byte [ ] annotationClassName_tmp = new byte [ val . length + _NUM ] ; System . arraycopy ( val , _NUM , annotationClassName_tmp , _NUM , val . length - _NUM ) ; annotationClassName_tmp [ val . length - _NUM ] = STRING ; annotationClassName_tmp [ val . length...
109