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-9789
java
What does the code add ?
all child comments
private void add Child Comments ( List < ? extends I Endless Adaptable > loaded Items , Comment comment , List < I Endless Adaptable > displayed Comments ) { for ( int j = loaded Items . index Of ( comment ) + NUM ; j < loaded Items . size ( ) ; ++ j ) { Comment child = ( Comment ) loaded Items . get ( j ) ; if ( child...
private void addChildComments ( List < ? extends IEndlessAdaptable > loadedItems , Comment comment , List < IEndlessAdaptable > displayedComments ) { for ( int j = loadedItems . indexOf ( comment ) + _NUM ; j < loadedItems . size ( ) ; ++ j ) { Comment child = ( Comment ) loadedItems . get ( j ) ; if ( child . getDepth...
101
java-test-9790
java
How did close segment states open previously ?
with opensegmentstates
private Apply Deletes Result close Segment States ( Index Writer . Reader Pool pool , Segment State [ ] seg States , boolean success , long gen ) throws IO Exception { int num Readers = seg States . length ; Throwable first Exc = null ; List < Segment Commit Info > all Deleted = null ; long tot Del Count = NUM ; for ( ...
private ApplyDeletesResult closeSegmentStates ( IndexWriter . ReaderPool pool , SegmentState [ ] segStates , boolean success , long gen ) throws IOException { int numReaders = segStates . length ; Throwable firstExc = null ; List < SegmentCommitInfo > allDeleted = null ; long totDelCount = _NUM ; for ( int j = _NUM ; j...
348
java-test-9791
java
What does the code compute ?
the similarity between two signature , which is also an estimation of the cosine similarity between the two vectors
public final double similarity ( final boolean [ ] sig 1 , final boolean [ ] sig 2 ) { double agg = NUM ; for ( int i = NUM ; i < sig 1 . length ; i ++ ) { if ( sig 1 [ i ] == sig 2 [ i ] ) { agg ++ ; } } agg = agg / sig 1 . length ; return Math . cos ( ( NUM - agg ) * Math . PI ) ; }
public final double similarity ( final boolean [ ] sig1 , final boolean [ ] sig2 ) { double agg = _NUM ; for ( int i = _NUM ; i < sig1 . length ; i ++ ) { if ( sig1 [ i ] == sig2 [ i ] ) { agg ++ ; } } agg = agg / sig1 . length ; return Math . cos ( ( _NUM - agg ) * Math . PI ) ; }
89
java-test-9792
java
What do a midlet overwrite ?
the supplied jad file
public static void sign ( File jad File , File jar File , RSA Private Key private Key , X509 Certificate [ ] certificate Chain , int certificate Number ) throws IO Exception , Crypto Exception { File tmp File = File . create Temp File ( STRING , STRING ) ; tmp File . delete On Exit ( ) ; sign ( jad File , tmp File , ja...
public static void sign ( File jadFile , File jarFile , RSAPrivateKey privateKey , X509Certificate [ ] certificateChain , int certificateNumber ) throws IOException , CryptoException { File tmpFile = File . createTempFile ( STRING , STRING ) ; tmpFile . deleteOnExit ( ) ; sign ( jadFile , tmpFile , jarFile , privateKey...
115
java-test-9793
java
What is overwriting the supplied jad file ?
a midlet
public static void sign ( File jad File , File jar File , RSA Private Key private Key , X509 Certificate [ ] certificate Chain , int certificate Number ) throws IO Exception , Crypto Exception { File tmp File = File . create Temp File ( STRING , STRING ) ; tmp File . delete On Exit ( ) ; sign ( jad File , tmp File , ja...
public static void sign ( File jadFile , File jarFile , RSAPrivateKey privateKey , X509Certificate [ ] certificateChain , int certificateNumber ) throws IOException , CryptoException { File tmpFile = File . createTempFile ( STRING , STRING ) ; tmpFile . deleteOnExit ( ) ; sign ( jadFile , tmpFile , jarFile , privateKey...
115
java-test-9794
java
What does the code validate ?
the new password fields
private boolean validate New Password ( Request And Response request And Response , final User edited User , final boolean current Is Edited User , final String new Password , final String new Password 2 ) throws IO Exception { boolean has Errors = BOOL ; if ( new Password == null || new Password . is Empty ( ) ) { add...
private boolean validateNewPassword ( RequestAndResponse requestAndResponse , final User editedUser , final boolean currentIsEditedUser , final String newPassword , final String newPassword2 ) throws IOException { boolean hasErrors = _BOOL ; if ( newPassword == null || newPassword . isEmpty ( ) ) { addErrorMessage ( re...
265
java-test-9795
java
What does the code get based on where the mouse is , distance and azimuth angle as the mouse moves ?
the line and circle ready for the map repaint
public void mouse Moved ( Mouse Event e ) { mouse Support . fire Map Mouse Moved ( e ) ; if ( e . get Source ( ) instanceof Map Bean ) { if ( draw Distance Objects && the Map != null ) { double lat 1 , lat 2 , long 1 , long 2 ; r Point 2 = the Map . get Coordinates ( e ) ; the Map . repaint ( ) ; if ( info Delegator !=...
public void mouseMoved ( MouseEvent e ) { mouseSupport . fireMapMouseMoved ( e ) ; if ( e . getSource ( ) instanceof MapBean ) { if ( drawDistanceObjects && theMap != null ) { double lat1 , lat2 , long1 , long2 ; rPoint2 = theMap . getCoordinates ( e ) ; theMap . repaint ( ) ; if ( infoDelegator != null ) { Debug . mes...
292
java-test-9796
java
When does the code get the line and circle ready for the map repaint based on where the mouse is , distance and azimuth angle ?
as the mouse moves
public void mouse Moved ( Mouse Event e ) { mouse Support . fire Map Mouse Moved ( e ) ; if ( e . get Source ( ) instanceof Map Bean ) { if ( draw Distance Objects && the Map != null ) { double lat 1 , lat 2 , long 1 , long 2 ; r Point 2 = the Map . get Coordinates ( e ) ; the Map . repaint ( ) ; if ( info Delegator !=...
public void mouseMoved ( MouseEvent e ) { mouseSupport . fireMapMouseMoved ( e ) ; if ( e . getSource ( ) instanceof MapBean ) { if ( drawDistanceObjects && theMap != null ) { double lat1 , lat2 , long1 , long2 ; rPoint2 = theMap . getCoordinates ( e ) ; theMap . repaint ( ) ; if ( infoDelegator != null ) { Debug . mes...
292
java-test-9797
java
What be used within the closure ?
this input stream
public static < T , U extends Input Stream > T with Stream ( U stream , @ Closure Params ( value = First Param . class ) Closure < T > closure ) throws IO Exception { try { T result = closure . call ( stream ) ; Input Stream temp = stream ; stream = null ; temp . close ( ) ; return result ; } finally { close With Warni...
public static < T , U extends InputStream > T withStream ( U stream , @ ClosureParams ( value = FirstParam . class ) Closure < T > closure ) throws IOException { try { T result = closure . call ( stream ) ; InputStream temp = stream ; stream = null ; temp . close ( ) ; return result ; } finally { closeWithWarning ( str...
81
java-test-9798
java
What does the code allow ensuring that it is flushed and closed before this method returns ?
this input stream to be used within the closure
public static < T , U extends Input Stream > T with Stream ( U stream , @ Closure Params ( value = First Param . class ) Closure < T > closure ) throws IO Exception { try { T result = closure . call ( stream ) ; Input Stream temp = stream ; stream = null ; temp . close ( ) ; return result ; } finally { close With Warni...
public static < T , U extends InputStream > T withStream ( U stream , @ ClosureParams ( value = FirstParam . class ) Closure < T > closure ) throws IOException { try { T result = closure . call ( stream ) ; InputStream temp = stream ; stream = null ; temp . close ( ) ; return result ; } finally { closeWithWarning ( str...
81
java-test-9799
java
How do none return ?
without exception if misspelled or non - existing and for case - insensitivity
public static P Data Partition Format parse P Data Partition Format ( String s ) { if ( s . equals Ignore Case ( STRING ) ) return ROW WISE ; else if ( s . equals Ignore Case ( STRING ) ) return ROW BLOCK WISE ; else if ( s . equals Ignore Case ( STRING ) ) return ROW BLOCK WISE N ; else if ( s . equals Ignore Case ( S...
public static PDataPartitionFormat parsePDataPartitionFormat ( String s ) { if ( s . equalsIgnoreCase ( STRING ) ) return ROW_WISE ; else if ( s . equalsIgnoreCase ( STRING ) ) return ROW_BLOCK_WISE ; else if ( s . equalsIgnoreCase ( STRING ) ) return ROW_BLOCK_WISE_N ; else if ( s . equalsIgnoreCase ( STRING ) ) retur...
140
java-test-9801
java
What does this method delete ?
a record corresponding to batchid passed
@ Request Mapping ( value = STRING , method = Request Method . DELETE ) @ Response Body public Rest Wrapper delete ( @ Path Variable ( STRING ) Long batch Id , Principal principal ) { Rest Wrapper rest Wrapper = null ; try { File file = new File ( ) ; file . set Batch Id ( batch Id ) ; file DAO . delete ( batch Id ) ; ...
@ RequestMapping ( value = STRING , method = RequestMethod . DELETE ) @ ResponseBody public RestWrapper delete ( @ PathVariable ( STRING ) Long batchId , Principal principal ) { RestWrapper restWrapper = null ; try { File file = new File ( ) ; file . setBatchId ( batchId ) ; fileDAO . delete ( batchId ) ; restWrapper =...
148
java-test-9802
java
What does this method call proc ?
deletefile
@ Request Mapping ( value = STRING , method = Request Method . DELETE ) @ Response Body public Rest Wrapper delete ( @ Path Variable ( STRING ) Long batch Id , Principal principal ) { Rest Wrapper rest Wrapper = null ; try { File file = new File ( ) ; file . set Batch Id ( batch Id ) ; file DAO . delete ( batch Id ) ; ...
@ RequestMapping ( value = STRING , method = RequestMethod . DELETE ) @ ResponseBody public RestWrapper delete ( @ PathVariable ( STRING ) Long batchId , Principal principal ) { RestWrapper restWrapper = null ; try { File file = new File ( ) ; file . setBatchId ( batchId ) ; fileDAO . delete ( batchId ) ; restWrapper =...
148
java-test-9803
java
What does the code make ?
a copy of a range of bytes from the passed in data array
public static byte [ ] copy Of Range ( byte [ ] data , int from , int to ) { int new Length = get Length ( from , to ) ; byte [ ] tmp = new byte [ new Length ] ; if ( data . length - from < new Length ) { System . arraycopy ( data , from , tmp , NUM , data . length - from ) ; } else { System . arraycopy ( data , from ,...
public static byte [ ] copyOfRange ( byte [ ] data , int from , int to ) { int newLength = getLength ( from , to ) ; byte [ ] tmp = new byte [ newLength ] ; if ( data . length - from < newLength ) { System . arraycopy ( data , from , tmp , _NUM , data . length - from ) ; } else { System . arraycopy ( data , from , tmp ...
100
java-test-9804
java
What will be padded with zeroes in which case ?
the return array
public static byte [ ] copy Of Range ( byte [ ] data , int from , int to ) { int new Length = get Length ( from , to ) ; byte [ ] tmp = new byte [ new Length ] ; if ( data . length - from < new Length ) { System . arraycopy ( data , from , tmp , NUM , data . length - from ) ; } else { System . arraycopy ( data , from ,...
public static byte [ ] copyOfRange ( byte [ ] data , int from , int to ) { int newLength = getLength ( from , to ) ; byte [ ] tmp = new byte [ newLength ] ; if ( data . length - from < newLength ) { System . arraycopy ( data , from , tmp , _NUM , data . length - from ) ; } else { System . arraycopy ( data , from , tmp ...
100
java-test-9806
java
What did the code read ?
any errors from the process
private void wait For Errors ( Write Stream Old error , Input Stream input Stream , Input Stream error Stream ) throws IO Exception { byte [ ] buffer = new byte [ NUM ] ; int stderr Len = NUM ; int stdout Len = NUM ; if ( input Stream == null || error Stream == null ) return ; do { if ( ( stderr Len = error Stream . av...
private void waitForErrors ( WriteStreamOld error , InputStream inputStream , InputStream errorStream ) throws IOException { byte [ ] buffer = new byte [ _NUM ] ; int stderrLen = _NUM ; int stdoutLen = _NUM ; if ( inputStream == null || errorStream == null ) return ; do { if ( ( stderrLen = errorStream . available ( ) ...
295
java-test-9807
java
Where do rectangles locate ?
in an image
public Rectangle Location Result locate Rectangles ( Mat gray Image ) { Mat gray = gray Image . clone ( ) ; Filter . downsample ( gray , NUM ) ; Filter . upsample ( gray , NUM ) ; Mat cache Hierarchy = new Mat ( ) ; Mat gray Temp = new Mat ( ) ; List < Rectangle > rectangles = new Array List < > ( ) ; List < Contour > ...
public RectangleLocationResult locateRectangles ( Mat grayImage ) { Mat gray = grayImage . clone ( ) ; Filter . downsample ( gray , _NUM ) ; Filter . upsample ( gray , _NUM ) ; Mat cacheHierarchy = new Mat ( ) ; Mat grayTemp = new Mat ( ) ; List < Rectangle > rectangles = new ArrayList < > ( ) ; List < Contour > contou...
431
java-test-9813
java
Where do the traceback start ?
at a specific level
String traceback ( int level ) { String Buffer sb = new String Buffer ( ) ; sb . append ( STRING ) ; for ( Debug Lib . Call Frame c ; ( c = get Call Frame ( level ++ ) ) != null ; ) { sb . append ( STRING ) ; sb . append ( c . shortsource ( ) ) ; sb . append ( STRING ) ; if ( c . currentline ( ) > NUM ) sb . append ( c...
String traceback ( int level ) { StringBuffer sb = new StringBuffer ( ) ; sb . append ( STRING ) ; for ( DebugLib . CallFrame c ; ( c = getCallFrame ( level ++ ) ) != null ; ) { sb . append ( STRING ) ; sb . append ( c . shortsource ( ) ) ; sb . append ( STRING ) ; if ( c . currentline ( ) > _NUM ) sb . append ( c . cu...
213
java-test-9814
java
What does the code get ?
the traceback starting at a specific level
String traceback ( int level ) { String Buffer sb = new String Buffer ( ) ; sb . append ( STRING ) ; for ( Debug Lib . Call Frame c ; ( c = get Call Frame ( level ++ ) ) != null ; ) { sb . append ( STRING ) ; sb . append ( c . shortsource ( ) ) ; sb . append ( STRING ) ; if ( c . currentline ( ) > NUM ) sb . append ( c...
String traceback ( int level ) { StringBuffer sb = new StringBuffer ( ) ; sb . append ( STRING ) ; for ( DebugLib . CallFrame c ; ( c = getCallFrame ( level ++ ) ) != null ; ) { sb . append ( STRING ) ; sb . append ( c . shortsource ( ) ) ; sb . append ( STRING ) ; if ( c . currentline ( ) > _NUM ) sb . append ( c . cu...
213
java-test-9815
java
What is starting at a specific level ?
the traceback
String traceback ( int level ) { String Buffer sb = new String Buffer ( ) ; sb . append ( STRING ) ; for ( Debug Lib . Call Frame c ; ( c = get Call Frame ( level ++ ) ) != null ; ) { sb . append ( STRING ) ; sb . append ( c . shortsource ( ) ) ; sb . append ( STRING ) ; if ( c . currentline ( ) > NUM ) sb . append ( c...
String traceback ( int level ) { StringBuffer sb = new StringBuffer ( ) ; sb . append ( STRING ) ; for ( DebugLib . CallFrame c ; ( c = getCallFrame ( level ++ ) ) != null ; ) { sb . append ( STRING ) ; sb . append ( c . shortsource ( ) ) ; sb . append ( STRING ) ; if ( c . currentline ( ) > _NUM ) sb . append ( c . cu...
213
java-test-9818
java
What does the code read from the given position ?
the sort order info from the given buffer
static Sort Order read Sort Order ( Byte Buffer buffer , int position , Jet Format format ) { short value = buffer . get Short ( position ) ; byte version = NUM ; if ( format . SIZE SORT ORDER == NUM ) { version = buffer . get ( position + NUM ) ; } if ( value == NUM ) { return format . DEFAULT SORT ORDER ; } if ( valu...
static SortOrder readSortOrder ( ByteBuffer buffer , int position , JetFormat format ) { short value = buffer . getShort ( position ) ; byte version = _NUM ; if ( format . SIZE_SORT_ORDER == _NUM ) { version = buffer . get ( position + _NUM ) ; } if ( value == _NUM ) { return format . DEFAULT_SORT_ORDER ; } if ( value ...
137
java-test-9819
java
What does the code find ?
the node that represents a given function in a call graph
private static Function Block find Block ( final Callgraph callgraph , final Function function ) { for ( final Function Block callgraph Node : callgraph ) { if ( function == callgraph Node . get Function ( ) ) { return callgraph Node ; } } throw new Illegal State Exception ( STRING ) ; }
private static FunctionBlock findBlock ( final Callgraph callgraph , final Function function ) { for ( final FunctionBlock callgraphNode : callgraph ) { if ( function == callgraphNode . getFunction ( ) ) { return callgraphNode ; } } throw new IllegalStateException ( STRING ) ; }
56
java-test-9820
java
What does the node represent in a call graph ?
a given function
private static Function Block find Block ( final Callgraph callgraph , final Function function ) { for ( final Function Block callgraph Node : callgraph ) { if ( function == callgraph Node . get Function ( ) ) { return callgraph Node ; } } throw new Illegal State Exception ( STRING ) ; }
private static FunctionBlock findBlock ( final Callgraph callgraph , final Function function ) { for ( final FunctionBlock callgraphNode : callgraph ) { if ( function == callgraphNode . getFunction ( ) ) { return callgraphNode ; } } throw new IllegalStateException ( STRING ) ; }
56
java-test-9821
java
Where does the node represent a given function ?
in a call graph
private static Function Block find Block ( final Callgraph callgraph , final Function function ) { for ( final Function Block callgraph Node : callgraph ) { if ( function == callgraph Node . get Function ( ) ) { return callgraph Node ; } } throw new Illegal State Exception ( STRING ) ; }
private static FunctionBlock findBlock ( final Callgraph callgraph , final Function function ) { for ( final FunctionBlock callgraphNode : callgraph ) { if ( function == callgraphNode . getFunction ( ) ) { return callgraphNode ; } } throw new IllegalStateException ( STRING ) ; }
56
java-test-9823
java
What takes precedence if a " handle action " throws an exception when triggered by a source completion that also throws an exception if a " handle action " throws an exception when triggered by a source completion that also throws an exception ?
the action exception
public void test Handle source Failed Action Failed ( ) { for ( boolean create Incomplete : new boolean [ ] { BOOL , BOOL } ) for ( Execution Mode m : Execution Mode . values ( ) ) { final Atomic Integer a = new Atomic Integer ( NUM ) ; final CF Exception ex 1 = new CF Exception ( ) ; final CF Exception ex 2 = new CF E...
public void testHandle_sourceFailedActionFailed ( ) { for ( boolean createIncomplete : new boolean [ ] { _BOOL , _BOOL } ) for ( ExecutionMode m : ExecutionMode . values ( ) ) { final AtomicInteger a = new AtomicInteger ( _NUM ) ; final CFException ex1 = new CFException ( ) ; final CFException ex2 = new CFException ( )...
175
java-test-9827
java
What will this print ?
the bits of the cell
@ Override public String to String ( ) { String Builder s = new String Builder ( NUM ) ; final int number Of Leading Zeros = Long . number Of Leading Zeros ( term ) ; for ( int i = NUM ; i < number Of Leading Zeros ; i ++ ) { s . append ( STRING ) ; } if ( term != NUM ) s . append ( Long . to Binary String ( term ) ) ;...
@ Override public String toString ( ) { StringBuilder s = new StringBuilder ( _NUM ) ; final int numberOfLeadingZeros = Long . numberOfLeadingZeros ( term ) ; for ( int i = _NUM ; i < numberOfLeadingZeros ; i ++ ) { s . append ( STRING ) ; } if ( term != _NUM ) s . append ( Long . toBinaryString ( term ) ) ; return s ....
92
java-test-9828
java
What does the code remove before and after the expression ?
whitespaces and comments
private void trim White Spaces And Comments ( org . eclipse . che . ide . ext . java . jdt . internal . compiler . ast . Expression expression ) { int start = expression . source Start ; int end = expression . source End ; int token ; int trim Left Position = expression . source Start ; int trim Right Position = expres...
private void trimWhiteSpacesAndComments ( org . eclipse . che . ide . ext . java . jdt . internal . compiler . ast . Expression expression ) { int start = expression . sourceStart ; int end = expression . sourceEnd ; int token ; int trimLeftPosition = expression . sourceStart ; int trimRightPosition = expression . sour...
270
java-test-9829
java
When does the code remove whitespaces and comments ?
before and after the expression
private void trim White Spaces And Comments ( org . eclipse . che . ide . ext . java . jdt . internal . compiler . ast . Expression expression ) { int start = expression . source Start ; int end = expression . source End ; int token ; int trim Left Position = expression . source Start ; int trim Right Position = expres...
private void trimWhiteSpacesAndComments ( org . eclipse . che . ide . ext . java . jdt . internal . compiler . ast . Expression expression ) { int start = expression . sourceStart ; int end = expression . sourceEnd ; int token ; int trimLeftPosition = expression . sourceStart ; int trimRightPosition = expression . sour...
270
java-test-9830
java
What does a task push ?
onto the task stack
public Task push Task ( String task Name , String description Format , Object ... args ) { clear Output ( ) ; String description = String . format ( description Format , args ) ; String indented = indent ( description + STRING ) ; out . print ( indented ) ; Task t = new Task ( task Name , description Format , args ) ; ...
public Task pushTask ( String taskName , String descriptionFormat , Object ... args ) { clearOutput ( ) ; String description = String . format ( descriptionFormat , args ) ; String indented = indent ( description + STRING ) ; out . print ( indented ) ; Task t = new Task ( taskName , descriptionFormat , args ) ; stack ....
84
java-test-9831
java
What does the code create ?
an identity string given a mac address
private String create Identity ( byte [ ] mac ) { String Builder sb = new String Builder ( STRING ) ; try { for ( int i = NUM ; i < mac . length ; i ++ ) { sb . append ( String . format ( STRING , mac [ i ] ) ) ; } } catch ( Null Pointer Exception ex ) { return null ; } return sb . to String ( ) ; }
private String createIdentity ( byte [ ] mac ) { StringBuilder sb = new StringBuilder ( STRING ) ; try { for ( int i = _NUM ; i < mac . length ; i ++ ) { sb . append ( String . format ( STRING , mac [ i ] ) ) ; } } catch ( NullPointerException ex ) { return null ; } return sb . toString ( ) ; }
81
java-test-9832
java
What will this return ?
the squared loss of the given points
public static double squared Loss ( double [ ] x , double [ ] y , double w 0 , double w 1 ) { double sum = NUM ; for ( int j = NUM ; j < x . length ; j ++ ) { sum += Math . pow ( ( y [ j ] - ( w 1 * x [ j ] + w 0 ) ) , NUM ) ; } return sum ; }
public static double squaredLoss ( double [ ] x , double [ ] y , double w_0 , double w_1 ) { double sum = _NUM ; for ( int j = _NUM ; j < x . length ; j ++ ) { sum += Math . pow ( ( y [ j ] - ( w_1 * x [ j ] + w_0 ) ) , _NUM ) ; } return sum ; }
81
java-test-9833
java
When does the code calculate wait duration ?
after failure attempt
public synchronized long exponential Wait ( ) { long max Delay Ret = min Delay + ( ( max Delay - min Delay ) / max Failure Count ) * current Failure Count ; return ( long ) ( random . next Float ( ) * max Delay Ret ) ; }
public synchronized long exponentialWait ( ) { long maxDelayRet = minDelay + ( ( maxDelay - minDelay ) / maxFailureCount ) * currentFailureCount ; return ( long ) ( random . nextFloat ( ) * maxDelayRet ) ; }
52
java-test-9834
java
What does this method not duplicate ?
selection listeners and property listeners
public Object clone ( ) throws Clone Not Supported Exception { Default Tree Selection Model clone = ( Default Tree Selection Model ) super . clone ( ) ; clone . change Support = null ; if ( selection != null ) { int sel Length = selection . length ; clone . selection = new Tree Path [ sel Length ] ; System . arraycopy ...
public Object clone ( ) throws CloneNotSupportedException { DefaultTreeSelectionModel clone = ( DefaultTreeSelectionModel ) super . clone ( ) ; clone . changeSupport = null ; if ( selection != null ) { int selLength = selection . length ; clone . selection = new TreePath [ selLength ] ; System . arraycopy ( selection ,...
162
java-test-9835
java
How does a clone of this object return ?
with the same selection
public Object clone ( ) throws Clone Not Supported Exception { Default Tree Selection Model clone = ( Default Tree Selection Model ) super . clone ( ) ; clone . change Support = null ; if ( selection != null ) { int sel Length = selection . length ; clone . selection = new Tree Path [ sel Length ] ; System . arraycopy ...
public Object clone ( ) throws CloneNotSupportedException { DefaultTreeSelectionModel clone = ( DefaultTreeSelectionModel ) super . clone ( ) ; clone . changeSupport = null ; if ( selection != null ) { int selLength = selection . length ; clone . selection = new TreePath [ selLength ] ; System . arraycopy ( selection ,...
162
java-test-9836
java
What does the code add to the configuration controller ?
a core command tag changer
public void add Core Command Tag Changer ( final Long equipment Id , final I Core Command Tag Changer command Tag Changer ) { List < I Core Command Tag Changer > changers = core Command Tag Changers . get ( equipment Id ) ; if ( changers == null ) { changers = new Array List < > ( ) ; core Command Tag Changers . put ( ...
public void addCoreCommandTagChanger ( final Long equipmentId , final ICoreCommandTagChanger commandTagChanger ) { List < ICoreCommandTagChanger > changers = coreCommandTagChangers . get ( equipmentId ) ; if ( changers == null ) { changers = new ArrayList < > ( ) ; coreCommandTagChangers . put ( equipmentId , changers ...
86
java-test-9838
java
How did the code walking speed change ?
according to health / exhaustion / fat
@ Subscribe Event public void walking Penalty ( Living Update Event event ) { if ( ! ( event . get Entity Living ( ) instanceof Entity Player ) ) return ; Entity Player player = ( Entity Player ) event . get Entity Living ( ) ; if ( ! Entity Player Ext . is Survival ( player ) ) return ; if ( ! ( player . get Food Stat...
@ SubscribeEvent public void walkingPenalty ( LivingUpdateEvent event ) { if ( ! ( event . getEntityLiving ( ) instanceof EntityPlayer ) ) return ; EntityPlayer player = ( EntityPlayer ) event . getEntityLiving ( ) ; if ( ! EntityPlayerExt . isSurvival ( player ) ) return ; if ( ! ( player . getFoodStats ( ) instanceof...
126
java-test-9839
java
What does the code open ?
the given stream and quality
public void open ( String stream , String quality ) { if ( stream != null ) { String url = STRING + stream ; if ( ! Helper . validate Channel ( stream ) ) { url = stream ; } Item existing Item = get Exisiting Item ( url , quality ) ; if ( existing Item != null ) { existing Item . start ( ) ; tabs . set Selected Compone...
public void open ( String stream , String quality ) { if ( stream != null ) { String url = STRING + stream ; if ( ! Helper . validateChannel ( stream ) ) { url = stream ; } Item existingItem = getExisitingItem ( url , quality ) ; if ( existingItem != null ) { existingItem . start ( ) ; tabs . setSelectedComponent ( exi...
199
java-test-9840
java
What iterates in eigenvalue information ?
matrix product
public double evaluate Iteration ( ) { double old Eigenvalue = eigenvalue ; transposed Eigenvector = transposed Eigenvector . secure Product ( matrix ) ; transposed Eigenvector = transposed Eigenvector . product ( NUM / transposed Eigenvector . components [ NUM ] ) ; eigenvector = matrix . secure Product ( eigenvector ...
public double evaluateIteration ( ) { double oldEigenvalue = eigenvalue ; transposedEigenvector = transposedEigenvector . secureProduct ( matrix ) ; transposedEigenvector = transposedEigenvector . product ( _NUM / transposedEigenvector . components [ _NUM ] ) ; eigenvector = matrix . secureProduct ( eigenvector ) ; eig...
104
java-test-9841
java
Where do matrix product iterate ?
in eigenvalue information
public double evaluate Iteration ( ) { double old Eigenvalue = eigenvalue ; transposed Eigenvector = transposed Eigenvector . secure Product ( matrix ) ; transposed Eigenvector = transposed Eigenvector . product ( NUM / transposed Eigenvector . components [ NUM ] ) ; eigenvector = matrix . secure Product ( eigenvector ...
public double evaluateIteration ( ) { double oldEigenvalue = eigenvalue ; transposedEigenvector = transposedEigenvector . secureProduct ( matrix ) ; transposedEigenvector = transposedEigenvector . product ( _NUM / transposedEigenvector . components [ _NUM ] ) ; eigenvector = matrix . secureProduct ( eigenvector ) ; eig...
104
java-test-9844
java
What starts the noxitem resources download ?
the code given a position associated to a noxitem
void load ( int position , boolean use Circular Transformation ) { if ( is Downloading ( position ) ) { return ; } Nox Item nox Item = nox Items . get ( position ) ; if ( ( nox Item . has Url ( ) && ! is Bitmap Ready ( position ) ) || nox Item . has Resource Id ( ) && ! is Drawable Ready ( position ) ) { loading [ posi...
void load ( int position , boolean useCircularTransformation ) { if ( isDownloading ( position ) ) { return ; } NoxItem noxItem = noxItems . get ( position ) ; if ( ( noxItem . hasUrl ( ) && ! isBitmapReady ( position ) ) || noxItem . hasResourceId ( ) && ! isDrawableReady ( position ) ) { loading [ position ] = _BOOL ...
98
java-test-9845
java
What will this load download only if wasn ' t previously downloaded or the download is not being performed ?
the resources associated to the noxitem
void load ( int position , boolean use Circular Transformation ) { if ( is Downloading ( position ) ) { return ; } Nox Item nox Item = nox Items . get ( position ) ; if ( ( nox Item . has Url ( ) && ! is Bitmap Ready ( position ) ) || nox Item . has Resource Id ( ) && ! is Drawable Ready ( position ) ) { loading [ posi...
void load ( int position , boolean useCircularTransformation ) { if ( isDownloading ( position ) ) { return ; } NoxItem noxItem = noxItems . get ( position ) ; if ( ( noxItem . hasUrl ( ) && ! isBitmapReady ( position ) ) || noxItem . hasResourceId ( ) && ! isDrawableReady ( position ) ) { loading [ position ] = _BOOL ...
98
java-test-9846
java
What will download the resources associated to the noxitem only if wasn ' t previously downloaded or the download is not being performed ?
this load
void load ( int position , boolean use Circular Transformation ) { if ( is Downloading ( position ) ) { return ; } Nox Item nox Item = nox Items . get ( position ) ; if ( ( nox Item . has Url ( ) && ! is Bitmap Ready ( position ) ) || nox Item . has Resource Id ( ) && ! is Drawable Ready ( position ) ) { loading [ posi...
void load ( int position , boolean useCircularTransformation ) { if ( isDownloading ( position ) ) { return ; } NoxItem noxItem = noxItems . get ( position ) ; if ( ( noxItem . hasUrl ( ) && ! isBitmapReady ( position ) ) || noxItem . hasResourceId ( ) && ! isDrawableReady ( position ) ) { loading [ position ] = _BOOL ...
98
java-test-9847
java
What did the code give ?
a position associated to a noxitem
void load ( int position , boolean use Circular Transformation ) { if ( is Downloading ( position ) ) { return ; } Nox Item nox Item = nox Items . get ( position ) ; if ( ( nox Item . has Url ( ) && ! is Bitmap Ready ( position ) ) || nox Item . has Resource Id ( ) && ! is Drawable Ready ( position ) ) { loading [ posi...
void load ( int position , boolean useCircularTransformation ) { if ( isDownloading ( position ) ) { return ; } NoxItem noxItem = noxItems . get ( position ) ; if ( ( noxItem . hasUrl ( ) && ! isBitmapReady ( position ) ) || noxItem . hasResourceId ( ) && ! isDrawableReady ( position ) ) { loading [ position ] = _BOOL ...
98
java-test-9848
java
What does the code given a position associated to a noxitem start ?
the noxitem resources download
void load ( int position , boolean use Circular Transformation ) { if ( is Downloading ( position ) ) { return ; } Nox Item nox Item = nox Items . get ( position ) ; if ( ( nox Item . has Url ( ) && ! is Bitmap Ready ( position ) ) || nox Item . has Resource Id ( ) && ! is Drawable Ready ( position ) ) { loading [ posi...
void load ( int position , boolean useCircularTransformation ) { if ( isDownloading ( position ) ) { return ; } NoxItem noxItem = noxItems . get ( position ) ; if ( ( noxItem . hasUrl ( ) && ! isBitmapReady ( position ) ) || noxItem . hasResourceId ( ) && ! isDrawableReady ( position ) ) { loading [ position ] = _BOOL ...
98
java-test-9855
java
What does the code load ?
the non - native call graph views of a module
public static I Filled List < I Callgraph View > load Callgraph Views ( final Abstract SQL Provider provider , final C Module module , final C Tag Manager view Tag Manager , final C Tag Manager node Tag Manager ) throws Couldnt Load Data Exception { return load Module Callgraphs ( provider , module , view Tag Manager ,...
public static IFilledList < ICallgraphView > loadCallgraphViews ( final AbstractSQLProvider provider , final CModule module , final CTagManager viewTagManager , final CTagManager nodeTagManager ) throws CouldntLoadDataException { return loadModuleCallgraphs ( provider , module , viewTagManager , nodeTagManager , ViewTy...
72
java-test-9856
java
When does a the pickup of the shipment schedule ?
right at the beginning of the tour
@ Deprecated public Builder schedule Pickup At Beginning ( Carrier Shipment shipment ) { assert Is Not Null ( shipment ) ; boolean was New = open Pickups . add ( shipment ) ; if ( ! was New ) { throw new Illegal State Exception ( STRING ) ; } Pickup pickup = create Pickup ( shipment ) ; tour Elements . add ( NUM , pick...
@ Deprecated public Builder schedulePickupAtBeginning ( CarrierShipment shipment ) { assertIsNotNull ( shipment ) ; boolean wasNew = openPickups . add ( shipment ) ; if ( ! wasNew ) { throw new IllegalStateException ( STRING ) ; } Pickup pickup = createPickup ( shipment ) ; tourElements . add ( _NUM , pickup ) ; return...
74
java-test-9857
java
What does the code add ?
a new spider scan result
public void add Scan Result ( String uri , String method , String flags , boolean skipped ) { Spider Scan Result result = new Spider Scan Result ( uri , method , flags , ! skipped ) ; synchronized ( scan Results ) { scan Results . add ( result ) ; try { fire Table Rows Inserted ( scan Results . size ( ) - NUM , scan Re...
public void addScanResult ( String uri , String method , String flags , boolean skipped ) { SpiderScanResult result = new SpiderScanResult ( uri , method , flags , ! skipped ) ; synchronized ( scanResults ) { scanResults . add ( result ) ; try { fireTableRowsInserted ( scanResults . size ( ) - _NUM , scanResults . size...
93
java-test-9859
java
When does loader try to find in the hashtable whether there is a value for that namespace ?
when resolving an entity
public static XML Input Source resolve Document ( XSD Description desc , Hashtable location Pairs , XML Entity Resolver entity Resolver ) throws IO Exception { String loc = null ; if ( desc . get Context Type ( ) == XSD Description . CONTEXT IMPORT || desc . from Instance ( ) ) { String namespace = desc . get Target Na...
public static XMLInputSource resolveDocument ( XSDDescription desc , Hashtable locationPairs , XMLEntityResolver entityResolver ) throws IOException { String loc = null ; if ( desc . getContextType ( ) == XSDDescription . CONTEXT_IMPORT || desc . fromInstance ( ) ) { String namespace = desc . getTargetNamespace ( ) ; S...
215
java-test-9860
java
What is loader find in the hashtable ?
whether there is a value for that namespace
public static XML Input Source resolve Document ( XSD Description desc , Hashtable location Pairs , XML Entity Resolver entity Resolver ) throws IO Exception { String loc = null ; if ( desc . get Context Type ( ) == XSD Description . CONTEXT IMPORT || desc . from Instance ( ) ) { String namespace = desc . get Target Na...
public static XMLInputSource resolveDocument ( XSDDescription desc , Hashtable locationPairs , XMLEntityResolver entityResolver ) throws IOException { String loc = null ; if ( desc . getContextType ( ) == XSDDescription . CONTEXT_IMPORT || desc . fromInstance ( ) ) { String namespace = desc . getTargetNamespace ( ) ; S...
215
java-test-9861
java
What does this method resolve ?
location of the given schema
public static XML Input Source resolve Document ( XSD Description desc , Hashtable location Pairs , XML Entity Resolver entity Resolver ) throws IO Exception { String loc = null ; if ( desc . get Context Type ( ) == XSD Description . CONTEXT IMPORT || desc . from Instance ( ) ) { String namespace = desc . get Target Na...
public static XMLInputSource resolveDocument ( XSDDescription desc , Hashtable locationPairs , XMLEntityResolver entityResolver ) throws IOException { String loc = null ; if ( desc . getContextType ( ) == XSDDescription . CONTEXT_IMPORT || desc . fromInstance ( ) ) { String namespace = desc . getTargetNamespace ( ) ; S...
215
java-test-9862
java
What does loader try when resolving an entity when resolving an entity ?
to find in the hashtable whether there is a value for that namespace
public static XML Input Source resolve Document ( XSD Description desc , Hashtable location Pairs , XML Entity Resolver entity Resolver ) throws IO Exception { String loc = null ; if ( desc . get Context Type ( ) == XSD Description . CONTEXT IMPORT || desc . from Instance ( ) ) { String namespace = desc . get Target Na...
public static XMLInputSource resolveDocument ( XSDDescription desc , Hashtable locationPairs , XMLEntityResolver entityResolver ) throws IOException { String loc = null ; if ( desc . getContextType ( ) == XSDDescription . CONTEXT_IMPORT || desc . fromInstance ( ) ) { String namespace = desc . getTargetNamespace ( ) ; S...
215
java-test-9863
java
What does this method try ?
to resolve location of the given schema
public static XML Input Source resolve Document ( XSD Description desc , Hashtable location Pairs , XML Entity Resolver entity Resolver ) throws IO Exception { String loc = null ; if ( desc . get Context Type ( ) == XSD Description . CONTEXT IMPORT || desc . from Instance ( ) ) { String namespace = desc . get Target Na...
public static XMLInputSource resolveDocument ( XSDDescription desc , Hashtable locationPairs , XMLEntityResolver entityResolver ) throws IOException { String loc = null ; if ( desc . getContextType ( ) == XSDDescription . CONTEXT_IMPORT || desc . fromInstance ( ) ) { String namespace = desc . getTargetNamespace ( ) ; S...
215
java-test-9867
java
What did the code add to a map stripping training list separator ?
key - value
private void add Tag To Map ( Map < String , String > map , String key , String value ) { if ( autocomplete Preset Item != null && autocomplete Preset Item . get Key Type ( key ) == Preset Key Type . MULTISELECT ) { if ( value . ends With ( String . value Of ( autocomplete Preset Item . get Delimiter ( key ) ) ) ) { va...
private void addTagToMap ( Map < String , String > map , String key , String value ) { if ( autocompletePresetItem != null && autocompletePresetItem . getKeyType ( key ) == PresetKeyType . MULTISELECT ) { if ( value . endsWith ( String . valueOf ( autocompletePresetItem . getDelimiter ( key ) ) ) ) { value = value . su...
102
java-test-9868
java
What do a map strip ?
training list separator
private void add Tag To Map ( Map < String , String > map , String key , String value ) { if ( autocomplete Preset Item != null && autocomplete Preset Item . get Key Type ( key ) == Preset Key Type . MULTISELECT ) { if ( value . ends With ( String . value Of ( autocomplete Preset Item . get Delimiter ( key ) ) ) ) { va...
private void addTagToMap ( Map < String , String > map , String key , String value ) { if ( autocompletePresetItem != null && autocompletePresetItem . getKeyType ( key ) == PresetKeyType . MULTISELECT ) { if ( value . endsWith ( String . valueOf ( autocompletePresetItem . getDelimiter ( key ) ) ) ) { value = value . su...
102
java-test-9870
java
What does the given collection contain ?
exactly all of the exptectedentries
private < T > void assert Contains ( final T [ ] expected Entries , final Collection < T > collection ) { assert Equals ( expected Entries . length , collection . size ( ) ) ; for ( T t : expected Entries ) { assert True ( collection . contains ( t ) ) ; } }
private < T > void assertContains ( final T [ ] expectedEntries , final Collection < T > collection ) { assertEquals ( expectedEntries . length , collection . size ( ) ) ; for ( T t : expectedEntries ) { assertTrue ( collection . contains ( t ) ) ; } }
60
java-test-9874
java
What does the code make ?
something like a random " database " fixed point double , tostring ' s it , and checks parsing
public void test Doubles Larger Than Life ( ) throws Exception { int iters = at Least ( NUM ) ; for ( int i = NUM ; i < iters ; i ++ ) { Big Integer unscaled = Test Util . next Big Integer ( random ( ) , NUM ) ; int scale = Test Util . next Int ( random ( ) , - NUM , NUM ) ; int precision = Test Util . next Int ( rando...
public void testDoublesLargerThanLife ( ) throws Exception { int iters = atLeast ( _NUM ) ; for ( int i = _NUM ; i < iters ; i ++ ) { BigInteger unscaled = TestUtil . nextBigInteger ( random ( ) , _NUM ) ; int scale = TestUtil . nextInt ( random ( ) , - _NUM , _NUM ) ; int precision = TestUtil . nextInt ( random ( ) , ...
152
java-test-9875
java
What does we check for now ?
up to 100 digits
public void test Doubles Larger Than Life ( ) throws Exception { int iters = at Least ( NUM ) ; for ( int i = NUM ; i < iters ; i ++ ) { Big Integer unscaled = Test Util . next Big Integer ( random ( ) , NUM ) ; int scale = Test Util . next Int ( random ( ) , - NUM , NUM ) ; int precision = Test Util . next Int ( rando...
public void testDoublesLargerThanLife ( ) throws Exception { int iters = atLeast ( _NUM ) ; for ( int i = _NUM ; i < iters ; i ++ ) { BigInteger unscaled = TestUtil . nextBigInteger ( random ( ) , _NUM ) ; int scale = TestUtil . nextInt ( random ( ) , - _NUM , _NUM ) ; int precision = TestUtil . nextInt ( random ( ) , ...
152
java-test-9876
java
How does strings concatenate ?
using a separator
public static String join ( Char Sequence separator , Iterable < String > strings ) { String Builder sb = new String Builder ( ) ; boolean first = BOOL ; for ( String s : strings ) { if ( first ) { first = BOOL ; } else { sb . append ( separator ) ; } sb . append ( s ) ; } return sb . to String ( ) ; }
public static String join ( CharSequence separator , Iterable < String > strings ) { StringBuilder sb = new StringBuilder ( ) ; boolean first = _BOOL ; for ( String s : strings ) { if ( first ) { first = _BOOL ; } else { sb . append ( separator ) ; } sb . append ( s ) ; } return sb . toString ( ) ; }
76
java-test-9877
java
For what purpose is block not allocated to a warrant ?
for use by circuitbuilder only
public String allocate ( String path Name ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING + path Name + STRING + get System Name ( ) + STRING + get State ( ) ) ; } if ( path Name == null ) { log . error ( STRING + get Display Name ( ) + STRING ) ; return null ; } else if ( warrant != null ) { return Bundle...
public String allocate ( String pathName ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING + pathName + STRING + getSystemName ( ) + STRING + getState ( ) ) ; } if ( pathName == null ) { log . error ( STRING + getDisplayName ( ) + STRING ) ; return null ; } else if ( _warrant != null ) { return Bundle . getMes...
155
java-test-9878
java
For what purpose do command run ?
to get dump file
public boolean runtest ( ) { clean Temp ( ) ; Command Line command = adb Command ( STRING , STRING , STRING , STRING , STRING , STRING ) ; String output = execute Command Quietly ( command ) ; log . debug ( STRING , output ) ; try { Thread . sleep ( NUM ) ; } catch ( Interrupted Exception ie ) { throw new Runtime Excep...
public boolean runtest ( ) { cleanTemp ( ) ; CommandLine command = adbCommand ( STRING , STRING , STRING , STRING , STRING , STRING ) ; String output = executeCommandQuietly ( command ) ; log . debug ( STRING , output ) ; try { Thread . sleep ( _NUM ) ; } catch ( InterruptedException ie ) { throw new RuntimeException (...
85
java-test-9879
java
What can call this method internally internally for ensuring capacity ?
synchronized methods in this class
private void ensure Capacity Helper ( int min Capacity ) { int old Capacity = element Data . length ; if ( min Capacity > old Capacity ) { Object [ ] old Data = element Data ; int new Capacity = ( capacity Increment > NUM ) ? ( old Capacity + capacity Increment ) : ( old Capacity * NUM ) ; if ( new Capacity < min Capac...
private void ensureCapacityHelper ( int minCapacity ) { int oldCapacity = elementData . length ; if ( minCapacity > oldCapacity ) { Object [ ] oldData = elementData ; int newCapacity = ( capacityIncrement > _NUM ) ? ( oldCapacity + capacityIncrement ) : ( oldCapacity * _NUM ) ; if ( newCapacity < minCapacity ) { newCap...
110
java-test-9880
java
What does this implement ?
the unsynchronized semantics of ensurecapacity
private void ensure Capacity Helper ( int min Capacity ) { int old Capacity = element Data . length ; if ( min Capacity > old Capacity ) { Object [ ] old Data = element Data ; int new Capacity = ( capacity Increment > NUM ) ? ( old Capacity + capacity Increment ) : ( old Capacity * NUM ) ; if ( new Capacity < min Capac...
private void ensureCapacityHelper ( int minCapacity ) { int oldCapacity = elementData . length ; if ( minCapacity > oldCapacity ) { Object [ ] oldData = elementData ; int newCapacity = ( capacityIncrement > _NUM ) ? ( oldCapacity + capacityIncrement ) : ( oldCapacity * _NUM ) ; if ( newCapacity < minCapacity ) { newCap...
110
java-test-9881
java
For what purpose can synchronized methods in this class call this method internally internally ?
for ensuring capacity
private void ensure Capacity Helper ( int min Capacity ) { int old Capacity = element Data . length ; if ( min Capacity > old Capacity ) { Object [ ] old Data = element Data ; int new Capacity = ( capacity Increment > NUM ) ? ( old Capacity + capacity Increment ) : ( old Capacity * NUM ) ; if ( new Capacity < min Capac...
private void ensureCapacityHelper ( int minCapacity ) { int oldCapacity = elementData . length ; if ( minCapacity > oldCapacity ) { Object [ ] oldData = elementData ; int newCapacity = ( capacityIncrement > _NUM ) ? ( oldCapacity + capacityIncrement ) : ( oldCapacity * _NUM ) ; if ( newCapacity < minCapacity ) { newCap...
110
java-test-9883
java
What must the caller have ?
discoverypermission for each group
public void add Groups ( String [ ] new Groups ) throws IO Exception { test Array For Null Element ( new Groups ) ; check Groups ( new Groups ) ; synchronized ( registrars ) { if ( terminated ) throw new Illegal State Exception ( STRING ) ; if ( groups == null ) throw new Unsupported Operation Exception ( STRING ) ; Co...
public void addGroups ( String [ ] newGroups ) throws IOException { testArrayForNullElement ( newGroups ) ; checkGroups ( newGroups ) ; synchronized ( registrars ) { if ( terminated ) throw new IllegalStateException ( STRING ) ; if ( groups == null ) throw new UnsupportedOperationException ( STRING ) ; Collection req =...
139
java-test-9884
java
What have the code add to the set to be discovered ?
a set of groups
public void add Groups ( String [ ] new Groups ) throws IO Exception { test Array For Null Element ( new Groups ) ; check Groups ( new Groups ) ; synchronized ( registrars ) { if ( terminated ) throw new Illegal State Exception ( STRING ) ; if ( groups == null ) throw new Unsupported Operation Exception ( STRING ) ; Co...
public void addGroups ( String [ ] newGroups ) throws IOException { testArrayForNullElement ( newGroups ) ; checkGroups ( newGroups ) ; synchronized ( registrars ) { if ( terminated ) throw new IllegalStateException ( STRING ) ; if ( groups == null ) throw new UnsupportedOperationException ( STRING ) ; Collection req =...
139
java-test-9885
java
For what purpose have the code add a set of groups to the set ?
to be discovered
public void add Groups ( String [ ] new Groups ) throws IO Exception { test Array For Null Element ( new Groups ) ; check Groups ( new Groups ) ; synchronized ( registrars ) { if ( terminated ) throw new Illegal State Exception ( STRING ) ; if ( groups == null ) throw new Unsupported Operation Exception ( STRING ) ; Co...
public void addGroups ( String [ ] newGroups ) throws IOException { testArrayForNullElement ( newGroups ) ; checkGroups ( newGroups ) ; synchronized ( registrars ) { if ( terminated ) throw new IllegalStateException ( STRING ) ; if ( groups == null ) throw new UnsupportedOperationException ( STRING ) ; Collection req =...
139
java-test-9891
java
What does all storage files match ?
the expected s3 key prefix value
public void validate Storage Files ( Collection < String > storage File Paths , String s3 Key Prefix , Business Object Data Entity business Object Data Entity , String storage Name ) throws Illegal Argument Exception { for ( String storage File Path : storage File Paths ) { Assert . is True ( storage File Path . starts...
public void validateStorageFiles ( Collection < String > storageFilePaths , String s3KeyPrefix , BusinessObjectDataEntity businessObjectDataEntity , String storageName ) throws IllegalArgumentException { for ( String storageFilePath : storageFilePaths ) { Assert . isTrue ( storageFilePath . startsWith ( s3KeyPrefix ) ,...
107
java-test-9892
java
What match the expected s3 key prefix value ?
all storage files
public void validate Storage Files ( Collection < String > storage File Paths , String s3 Key Prefix , Business Object Data Entity business Object Data Entity , String storage Name ) throws Illegal Argument Exception { for ( String storage File Path : storage File Paths ) { Assert . is True ( storage File Path . starts...
public void validateStorageFiles ( Collection < String > storageFilePaths , String s3KeyPrefix , BusinessObjectDataEntity businessObjectDataEntity , String storageName ) throws IllegalArgumentException { for ( String storageFilePath : storageFilePaths ) { Assert . isTrue ( storageFilePath . startsWith ( s3KeyPrefix ) ,...
107
java-test-9894
java
What contains query ' fb ' , but not ' bf ' ?
name ' foobar '
private boolean contains Chars In Order ( String name , String query ) { int i Name = NUM , i Query = NUM ; while ( i Name < name . length ( ) && i Query < query . length ( ) ) { if ( name . char At ( i Name ) == query . char At ( i Query ) ) { i Name ++ ; i Query ++ ; } else { i Name ++ ; } } return i Query == query ....
private boolean containsCharsInOrder ( String name , String query ) { int iName = _NUM , iQuery = _NUM ; while ( iName < name . length ( ) && iQuery < query . length ( ) ) { if ( name . charAt ( iName ) == query . charAt ( iQuery ) ) { iName ++ ; iQuery ++ ; } else { iName ++ ; } } return iQuery == query . length ( ) ;...
95
java-test-9895
java
What do name contain in order ?
all the characters of query
private boolean contains Chars In Order ( String name , String query ) { int i Name = NUM , i Query = NUM ; while ( i Name < name . length ( ) && i Query < query . length ( ) ) { if ( name . char At ( i Name ) == query . char At ( i Query ) ) { i Name ++ ; i Query ++ ; } else { i Name ++ ; } } return i Query == query ....
private boolean containsCharsInOrder ( String name , String query ) { int iName = _NUM , iQuery = _NUM ; while ( iName < name . length ( ) && iQuery < query . length ( ) ) { if ( name . charAt ( iName ) == query . charAt ( iQuery ) ) { iName ++ ; iQuery ++ ; } else { iName ++ ; } } return iQuery == query . length ( ) ;...
95
java-test-9896
java
What does name ' foobar ' contain ?
query ' fb ' , but not ' bf '
private boolean contains Chars In Order ( String name , String query ) { int i Name = NUM , i Query = NUM ; while ( i Name < name . length ( ) && i Query < query . length ( ) ) { if ( name . char At ( i Name ) == query . char At ( i Query ) ) { i Name ++ ; i Query ++ ; } else { i Name ++ ; } } return i Query == query ....
private boolean containsCharsInOrder ( String name , String query ) { int iName = _NUM , iQuery = _NUM ; while ( iName < name . length ( ) && iQuery < query . length ( ) ) { if ( name . charAt ( iName ) == query . charAt ( iQuery ) ) { iName ++ ; iQuery ++ ; } else { iName ++ ; } } return iQuery == query . length ( ) ;...
95
java-test-9897
java
What does the code remove ?
all available plugins
public void remove All Plugins ( ) { Iterator < Abstract Plugin > iter = all Plugins . iterator ( ) ; while ( iter . has Next ( ) ) { Abstract Plugin plugin = ( Abstract Plugin ) iter . next ( ) ; plugin . remove Plugin Observer ( this ) ; active Plugins . remove ( plugin ) ; iter . remove ( ) ; } }
public void removeAllPlugins ( ) { Iterator < AbstractPlugin > iter = allPlugins . iterator ( ) ; while ( iter . hasNext ( ) ) { AbstractPlugin plugin = ( AbstractPlugin ) iter . next ( ) ; plugin . removePluginObserver ( this ) ; activePlugins . remove ( plugin ) ; iter . remove ( ) ; } }
71
java-test-9898
java
What does the code retrieve from the given start date ?
a page of mailbox dump requests
public Generic Feed retrieve Page Of Mailbox Dump Requests ( Date from Date ) throws Apps For Your Domain Exception , Malformed URL Exception , IO Exception , Service Exception { String url = BASE URL + STRING + domain ; if ( from Date != null ) { url += STRING + DATE FORMAT . format ( from Date ) ; } return get Feed (...
public GenericFeed retrievePageOfMailboxDumpRequests ( Date fromDate ) throws AppsForYourDomainException , MalformedURLException , IOException , ServiceException { String url = BASE_URL + STRING + domain ; if ( fromDate != null ) { url += STRING + DATE_FORMAT . format ( fromDate ) ; } return getFeed ( new URL ( url ) ,...
80
java-test-9902
java
What do the first and the last indexes of the child views need ?
to be notified of the change to the model
void calculate Update Indexes ( Document Event e ) { int pos = e . get Offset ( ) ; first Update Index = get View Index ( pos , Position . Bias . Forward ) ; if ( first Update Index == - NUM && e . get Type ( ) == Document Event . Event Type . REMOVE && pos >= get End Offset ( ) ) { first Update Index = get View Count ...
void calculateUpdateIndexes ( DocumentEvent e ) { int pos = e . getOffset ( ) ; firstUpdateIndex = getViewIndex ( pos , Position . Bias . Forward ) ; if ( firstUpdateIndex == - _NUM && e . getType ( ) == DocumentEvent . EventType . REMOVE && pos >= getEndOffset ( ) ) { firstUpdateIndex = getViewCount ( ) - _NUM ; } las...
240
java-test-9903
java
What does the code calculate ?
the first and the last indexes of the child views that need to be notified of the change to the model
void calculate Update Indexes ( Document Event e ) { int pos = e . get Offset ( ) ; first Update Index = get View Index ( pos , Position . Bias . Forward ) ; if ( first Update Index == - NUM && e . get Type ( ) == Document Event . Event Type . REMOVE && pos >= get End Offset ( ) ) { first Update Index = get View Count ...
void calculateUpdateIndexes ( DocumentEvent e ) { int pos = e . getOffset ( ) ; firstUpdateIndex = getViewIndex ( pos , Position . Bias . Forward ) ; if ( firstUpdateIndex == - _NUM && e . getType ( ) == DocumentEvent . EventType . REMOVE && pos >= getEndOffset ( ) ) { firstUpdateIndex = getViewCount ( ) - _NUM ; } las...
240
java-test-9904
java
What need to be notified of the change to the model ?
the first and the last indexes of the child views
void calculate Update Indexes ( Document Event e ) { int pos = e . get Offset ( ) ; first Update Index = get View Index ( pos , Position . Bias . Forward ) ; if ( first Update Index == - NUM && e . get Type ( ) == Document Event . Event Type . REMOVE && pos >= get End Offset ( ) ) { first Update Index = get View Count ...
void calculateUpdateIndexes ( DocumentEvent e ) { int pos = e . getOffset ( ) ; firstUpdateIndex = getViewIndex ( pos , Position . Bias . Forward ) ; if ( firstUpdateIndex == - _NUM && e . getType ( ) == DocumentEvent . EventType . REMOVE && pos >= getEndOffset ( ) ) { firstUpdateIndex = getViewCount ( ) - _NUM ; } las...
240
java-test-9907
java
What checks exception ?
getinstance ( string algorithm , string provider
public void test Get Instance ( ) throws Exception { try { Exemption Mechanism . get Instance ( ( String ) null , STRING ) ; fail ( STRING ) ; } catch ( No Such Provider Exception pe ) { } try { Exemption Mechanism . get Instance ( STRING , ( String ) null ) ; fail ( STRING ) ; } catch ( Illegal Argument Exception e ) ...
public void testGetInstance ( ) throws Exception { try { ExemptionMechanism . getInstance ( ( String ) null , STRING ) ; fail ( STRING ) ; } catch ( NoSuchProviderException pe ) { } try { ExemptionMechanism . getInstance ( STRING , ( String ) null ) ; fail ( STRING ) ; } catch ( IllegalArgumentException e ) { } }
74
java-test-9908
java
What performs on all objects that require it ?
creation - time injections
void inject All ( final Errors errors ) { for ( Injectable Reference < ? > reference : new Array List < > ( pending Injection . values ( ) ) ) { try { reference . get ( errors ) ; } catch ( Errors Exception e ) { errors . merge ( e . get Errors ( ) ) ; } } if ( ! pending Injection . is Empty ( ) ) { throw new Assertion...
void injectAll ( final Errors errors ) { for ( InjectableReference < ? > reference : new ArrayList < > ( pendingInjection . values ( ) ) ) { try { reference . get ( errors ) ; } catch ( ErrorsException e ) { errors . merge ( e . getErrors ( ) ) ; } } if ( ! pendingInjection . isEmpty ( ) ) { throw new AssertionError ( ...
96
java-test-9909
java
Where does creation - time injections perform ?
on all objects that require it
void inject All ( final Errors errors ) { for ( Injectable Reference < ? > reference : new Array List < > ( pending Injection . values ( ) ) ) { try { reference . get ( errors ) ; } catch ( Errors Exception e ) { errors . merge ( e . get Errors ( ) ) ; } } if ( ! pending Injection . is Empty ( ) ) { throw new Assertion...
void injectAll ( final Errors errors ) { for ( InjectableReference < ? > reference : new ArrayList < > ( pendingInjection . values ( ) ) ) { try { reference . get ( errors ) ; } catch ( ErrorsException e ) { errors . merge ( e . getErrors ( ) ) ; } } if ( ! pendingInjection . isEmpty ( ) ) { throw new AssertionError ( ...
96
java-test-9910
java
When is ordering of injection arbitrary if the two instances are codependent ( directly or transitively ) ?
whenever fulfilling an injection depends on another object that requires injection
void inject All ( final Errors errors ) { for ( Injectable Reference < ? > reference : new Array List < > ( pending Injection . values ( ) ) ) { try { reference . get ( errors ) ; } catch ( Errors Exception e ) { errors . merge ( e . get Errors ( ) ) ; } } if ( ! pending Injection . is Empty ( ) ) { throw new Assertion...
void injectAll ( final Errors errors ) { for ( InjectableReference < ? > reference : new ArrayList < > ( pendingInjection . values ( ) ) ) { try { reference . get ( errors ) ; } catch ( ErrorsException e ) { errors . merge ( e . getErrors ( ) ) ; } } if ( ! pendingInjection . isEmpty ( ) ) { throw new AssertionError ( ...
96
java-test-9911
java
How are the two instances are codependent ?
directly or transitively
void inject All ( final Errors errors ) { for ( Injectable Reference < ? > reference : new Array List < > ( pending Injection . values ( ) ) ) { try { reference . get ( errors ) ; } catch ( Errors Exception e ) { errors . merge ( e . get Errors ( ) ) ; } } if ( ! pending Injection . is Empty ( ) ) { throw new Assertion...
void injectAll ( final Errors errors ) { for ( InjectableReference < ? > reference : new ArrayList < > ( pendingInjection . values ( ) ) ) { try { reference . get ( errors ) ; } catch ( ErrorsException e ) { errors . merge ( e . getErrors ( ) ) ; } } if ( ! pendingInjection . isEmpty ( ) ) { throw new AssertionError ( ...
96
java-test-9914
java
What does the code unregister ?
any broadcastreceivers
public void close ( ) { while ( ! m Receivers . is Empty ( ) ) { m Context . unregister Receiver ( m Receivers . remove ( NUM ) ) ; } if ( m Output Writer != null ) { try { m Output Writer . close ( ) ; } catch ( IO Exception e ) { Log . w ( m Tag , STRING , e ) ; } } }
public void close ( ) { while ( ! mReceivers . isEmpty ( ) ) { mContext . unregisterReceiver ( mReceivers . remove ( _NUM ) ) ; } if ( mOutputWriter != null ) { try { mOutputWriter . close ( ) ; } catch ( IOException e ) { Log . w ( mTag , STRING , e ) ; } } }
76
java-test-9915
java
What does the code close ?
the utility instance
public void close ( ) { while ( ! m Receivers . is Empty ( ) ) { m Context . unregister Receiver ( m Receivers . remove ( NUM ) ) ; } if ( m Output Writer != null ) { try { m Output Writer . close ( ) ; } catch ( IO Exception e ) { Log . w ( m Tag , STRING , e ) ; } } }
public void close ( ) { while ( ! mReceivers . isEmpty ( ) ) { mContext . unregisterReceiver ( mReceivers . remove ( _NUM ) ) ; } if ( mOutputWriter != null ) { try { mOutputWriter . close ( ) ; } catch ( IOException e ) { Log . w ( mTag , STRING , e ) ; } } }
76
java-test-9916
java
What does the code remove ?
the 1st occurrence of the argument ( core mutation method )
public boolean remove Arg ( final B Op arg ) { if ( arg == null ) throw new Illegal Argument Exception ( ) ; if ( arg == this ) throw new Illegal Argument Exception ( ) ; if ( args . remove ( arg ) ) { mutation ( ) ; return BOOL ; } return BOOL ; }
public boolean removeArg ( final BOp arg ) { if ( arg == null ) throw new IllegalArgumentException ( ) ; if ( arg == this ) throw new IllegalArgumentException ( ) ; if ( args . remove ( arg ) ) { mutation ( ) ; return _BOOL ; } return _BOOL ; }
61
java-test-9917
java
What provides the necessary credentials ?
a corresponding " server " configuration in the global settings
private GH Repository resolve Repository ( ) throws IO Exception { try { Git Hub PR Trigger trigger = gh PR Trigger From Run ( run ) ; if ( trigger != null ) { return trigger . get Remote Repository ( ) ; } else { throw new Abort Exception ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
private GHRepository resolveRepository ( ) throws IOException { try { GitHubPRTrigger trigger = ghPRTriggerFromRun ( run ) ; if ( trigger != null ) { return trigger . getRemoteRepository ( ) ; } else { throw new AbortException ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
75
java-test-9918
java
What does this expect ?
that the pull request trigger is configured properly for this project and that it specifies a github project which has a corresponding " server " configuration in the global settings ( which provides the necessary credentials )
private GH Repository resolve Repository ( ) throws IO Exception { try { Git Hub PR Trigger trigger = gh PR Trigger From Run ( run ) ; if ( trigger != null ) { return trigger . get Remote Repository ( ) ; } else { throw new Abort Exception ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
private GHRepository resolveRepository ( ) throws IOException { try { GitHubPRTrigger trigger = ghPRTriggerFromRun ( run ) ; if ( trigger != null ) { return trigger . getRemoteRepository ( ) ; } else { throw new AbortException ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
75
java-test-9919
java
What did it specify ?
a github project which has a corresponding " server " configuration in the global settings ( which provides the necessary credentials )
private GH Repository resolve Repository ( ) throws IO Exception { try { Git Hub PR Trigger trigger = gh PR Trigger From Run ( run ) ; if ( trigger != null ) { return trigger . get Remote Repository ( ) ; } else { throw new Abort Exception ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
private GHRepository resolveRepository ( ) throws IOException { try { GitHubPRTrigger trigger = ghPRTriggerFromRun ( run ) ; if ( trigger != null ) { return trigger . getRemoteRepository ( ) ; } else { throw new AbortException ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
75
java-test-9920
java
What has a corresponding " server " configuration in the global settings ( which provides the necessary credentials ) ?
a github project
private GH Repository resolve Repository ( ) throws IO Exception { try { Git Hub PR Trigger trigger = gh PR Trigger From Run ( run ) ; if ( trigger != null ) { return trigger . get Remote Repository ( ) ; } else { throw new Abort Exception ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
private GHRepository resolveRepository ( ) throws IOException { try { GitHubPRTrigger trigger = ghPRTriggerFromRun ( run ) ; if ( trigger != null ) { return trigger . getRemoteRepository ( ) ; } else { throw new AbortException ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
75
java-test-9921
java
What does a github project have ?
a corresponding " server " configuration in the global settings ( which provides the necessary credentials )
private GH Repository resolve Repository ( ) throws IO Exception { try { Git Hub PR Trigger trigger = gh PR Trigger From Run ( run ) ; if ( trigger != null ) { return trigger . get Remote Repository ( ) ; } else { throw new Abort Exception ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
private GHRepository resolveRepository ( ) throws IOException { try { GitHubPRTrigger trigger = ghPRTriggerFromRun ( run ) ; if ( trigger != null ) { return trigger . getRemoteRepository ( ) ; } else { throw new AbortException ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
75
java-test-9922
java
What does a corresponding " server " configuration in the global settings provide ?
the necessary credentials
private GH Repository resolve Repository ( ) throws IO Exception { try { Git Hub PR Trigger trigger = gh PR Trigger From Run ( run ) ; if ( trigger != null ) { return trigger . get Remote Repository ( ) ; } else { throw new Abort Exception ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
private GHRepository resolveRepository ( ) throws IOException { try { GitHubPRTrigger trigger = ghPRTriggerFromRun ( run ) ; if ( trigger != null ) { return trigger . getRemoteRepository ( ) ; } else { throw new AbortException ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
75
java-test-9923
java
What does the code look ?
the github repository associated with this build
private GH Repository resolve Repository ( ) throws IO Exception { try { Git Hub PR Trigger trigger = gh PR Trigger From Run ( run ) ; if ( trigger != null ) { return trigger . get Remote Repository ( ) ; } else { throw new Abort Exception ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
private GHRepository resolveRepository ( ) throws IOException { try { GitHubPRTrigger trigger = ghPRTriggerFromRun ( run ) ; if ( trigger != null ) { return trigger . getRemoteRepository ( ) ; } else { throw new AbortException ( STRING ) ; } } catch ( Exception e ) { log . error ( STRING ) ; throw e ; } }
75
java-test-9930
java
What should pass a copy this method ?
situations where this would be undesirable
public static void rand Shuffle K ( Array List < Integer > inds , int k , Random rand ) { for ( int i = NUM ; i < k ; i ++ ) { Collections . swap ( inds , i , rand . next Int ( inds . size ( ) ) ) ; } }
public static void randShuffleK ( ArrayList < Integer > inds , int k , Random rand ) { for ( int i = _NUM ; i < k ; i ++ ) { Collections . swap ( inds , i , rand . nextInt ( inds . size ( ) ) ) ; } }
59
java-test-9931
java
What shuffles in a list ?
k integers
public static void rand Shuffle K ( Array List < Integer > inds , int k , Random rand ) { for ( int i = NUM ; i < k ; i ++ ) { Collections . swap ( inds , i , rand . next Int ( inds . size ( ) ) ) ; } }
public static void randShuffleK ( ArrayList < Integer > inds , int k , Random rand ) { for ( int i = _NUM ; i < k ; i ++ ) { Collections . swap ( inds , i , rand . nextInt ( inds . size ( ) ) ) ; } }
59
java-test-9932
java
What will this method alter ?
the list passed to it
public static void rand Shuffle K ( Array List < Integer > inds , int k , Random rand ) { for ( int i = NUM ; i < k ; i ++ ) { Collections . swap ( inds , i , rand . next Int ( inds . size ( ) ) ) ; } }
public static void randShuffleK ( ArrayList < Integer > inds , int k , Random rand ) { for ( int i = _NUM ; i < k ; i ++ ) { Collections . swap ( inds , i , rand . nextInt ( inds . size ( ) ) ) ; } }
59
java-test-9934
java
What does the code draw ?
the background annotations
private void draw ( final Execution Unit process , final Graphics 2 D g2 , final Process Renderer Model renderer Model , final boolean printing ) { Process Background Image image = renderer Model . get Background Image ( process ) ; if ( image != null ) { Graphics 2 D g2 D = ( Graphics 2 D ) g2 . create ( ) ; int x = i...
private void draw ( final ExecutionUnit process , final Graphics2D g2 , final ProcessRendererModel rendererModel , final boolean printing ) { ProcessBackgroundImage image = rendererModel . getBackgroundImage ( process ) ; if ( image != null ) { Graphics2D g2D = ( Graphics2D ) g2 . create ( ) ; int x = image . getX ( ) ...
308
java-test-9935
java
What does the code create ?
a new validator , which allows to validate texts to ensure , that they only contain letters
public Letter Validator ( @ Non Null final Char Sequence error Message , @ Non Null final Case case Sensitivity , final boolean allow Spaces , @ Non Null final char ... allowed Characters ) { super ( error Message ) ; set Case Sensitivity ( case Sensitivity ) ; allow Spaces ( allow Spaces ) ; set Allowed Characters ( a...
public LetterValidator ( @ NonNull final CharSequence errorMessage , @ NonNull final Case caseSensitivity , final boolean allowSpaces , @ NonNull final char ... allowedCharacters ) { super ( errorMessage ) ; setCaseSensitivity ( caseSensitivity ) ; allowSpaces ( allowSpaces ) ; setAllowedCharacters ( allowedCharacters ...
66
java-test-9936
java
For what purpose does which validate texts ?
to ensure , that they only contain letters
public Letter Validator ( @ Non Null final Char Sequence error Message , @ Non Null final Case case Sensitivity , final boolean allow Spaces , @ Non Null final char ... allowed Characters ) { super ( error Message ) ; set Case Sensitivity ( case Sensitivity ) ; allow Spaces ( allow Spaces ) ; set Allowed Characters ( a...
public LetterValidator ( @ NonNull final CharSequence errorMessage , @ NonNull final Case caseSensitivity , final boolean allowSpaces , @ NonNull final char ... allowedCharacters ) { super ( errorMessage ) ; setCaseSensitivity ( caseSensitivity ) ; allowSpaces ( allowSpaces ) ; setAllowedCharacters ( allowedCharacters ...
66
java-test-9937
java
What does a new validator allow ?
to validate texts to ensure , that they only contain letters
public Letter Validator ( @ Non Null final Char Sequence error Message , @ Non Null final Case case Sensitivity , final boolean allow Spaces , @ Non Null final char ... allowed Characters ) { super ( error Message ) ; set Case Sensitivity ( case Sensitivity ) ; allow Spaces ( allow Spaces ) ; set Allowed Characters ( a...
public LetterValidator ( @ NonNull final CharSequence errorMessage , @ NonNull final Case caseSensitivity , final boolean allowSpaces , @ NonNull final char ... allowedCharacters ) { super ( errorMessage ) ; setCaseSensitivity ( caseSensitivity ) ; allowSpaces ( allowSpaces ) ; setAllowedCharacters ( allowedCharacters ...
66
java-test-9938
java
What do you want ?
to read / write data
@ Main Thread public final void register ( Storage Access Listener storage Access Listener ) { if ( CHECK THREADS ) { Ui Thread Context . assert Ui Thread ( ) ; } if ( listeners . contains ( storage Access Listener ) ) { throw new Storage Access Exception ( STRING ) ; } listeners . add ( storage Access Listener ) ; }
@ MainThread public final void register ( StorageAccessListener storageAccessListener ) { if ( CHECK_THREADS ) { UiThreadContext . assertUiThread ( ) ; } if ( listeners . contains ( storageAccessListener ) ) { throw new StorageAccessException ( STRING ) ; } listeners . add ( storageAccessListener ) ; }
65
java-test-9939
java
What ll you need if you want to read / write data ?
to implement this to know when file access is ready
@ Main Thread public final void register ( Storage Access Listener storage Access Listener ) { if ( CHECK THREADS ) { Ui Thread Context . assert Ui Thread ( ) ; } if ( listeners . contains ( storage Access Listener ) ) { throw new Storage Access Exception ( STRING ) ; } listeners . add ( storage Access Listener ) ; }
@ MainThread public final void register ( StorageAccessListener storageAccessListener ) { if ( CHECK_THREADS ) { UiThreadContext . assertUiThread ( ) ; } if ( listeners . contains ( storageAccessListener ) ) { throw new StorageAccessException ( STRING ) ; } listeners . add ( storageAccessListener ) ; }
65