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-3884
java
What does the code expand into an array of fieldpositions describing how the pattern would be expanded ?
an affix pattern
private Field Position [ ] expand Affix ( String pattern ) { Array List < Field Position > positions = null ; int string Index = NUM ; for ( int i = NUM ; i < pattern . length ( ) ; ) { char c = pattern . char At ( i ++ ) ; if ( c == QUOTE ) { int field = - NUM ; Format . Field field ID = null ; c = pattern . char At (...
private FieldPosition [ ] expandAffix ( String pattern ) { ArrayList < FieldPosition > positions = null ; int stringIndex = _NUM ; for ( int i = _NUM ; i < pattern . length ( ) ; ) { char c = pattern . charAt ( i ++ ) ; if ( c == QUOTE ) { int field = - _NUM ; Format . Field fieldID = null ; c = pattern . charAt ( i ++...
428
java-test-3885
java
For what purpose does the code return a patchable state ?
to patch the resource
public Compute State create Instance ( ) throws Exception { Managed Object Reference vm ; if ( is Ovf Deploy ( ) ) { vm = deploy Ovf ( ) ; this . vm = vm ; } else { vm = create Vm ( ) ; if ( vm == null ) { return null ; } this . vm = vm ; } Compute State state = new Compute State ( ) ; state . resource Pool Link = Vim ...
public ComputeState createInstance ( ) throws Exception { ManagedObjectReference vm ; if ( isOvfDeploy ( ) ) { vm = deployOvf ( ) ; this . vm = vm ; } else { vm = createVm ( ) ; if ( vm == null ) { return null ; } this . vm = vm ; } ComputeState state = new ComputeState ( ) ; state . resourcePoolLink = VimUtils . first...
109
java-test-3887
java
What does displayer display ?
a tree provided in a dot format
public Tree Visualizer ( Tree Display Listener tdl , String dot , Node Place p ) { super ( ) ; initialize ( ) ; if ( m Show Border ) { set Border ( Border Factory . create Titled Border ( STRING ) ) ; } m listener = tdl ; Tree Build builder = new Tree Build ( ) ; Node n = null ; n = builder . create ( new String Reader...
public TreeVisualizer ( TreeDisplayListener tdl , String dot , NodePlace p ) { super ( ) ; initialize ( ) ; if ( m_ShowBorder ) { setBorder ( BorderFactory . createTitledBorder ( STRING ) ) ; } m_listener = tdl ; TreeBuild builder = new TreeBuild ( ) ; Node n = null ; n = builder . create ( new StringReader ( dot ) ) ;...
1,549
java-test-3888
java
For what purpose does displayer construct ?
to display a tree provided in a dot format . uses the nodeplacer to place the nodes
public Tree Visualizer ( Tree Display Listener tdl , String dot , Node Place p ) { super ( ) ; initialize ( ) ; if ( m Show Border ) { set Border ( Border Factory . create Titled Border ( STRING ) ) ; } m listener = tdl ; Tree Build builder = new Tree Build ( ) ; Node n = null ; n = builder . create ( new String Reader...
public TreeVisualizer ( TreeDisplayListener tdl , String dot , NodePlace p ) { super ( ) ; initialize ( ) ; if ( m_ShowBorder ) { setBorder ( BorderFactory . createTitledBorder ( STRING ) ) ; } m_listener = tdl ; TreeBuild builder = new TreeBuild ( ) ; Node n = null ; n = builder . create ( new StringReader ( dot ) ) ;...
1,549
java-test-3889
java
How did a tree provide ?
in a dot format
public Tree Visualizer ( Tree Display Listener tdl , String dot , Node Place p ) { super ( ) ; initialize ( ) ; if ( m Show Border ) { set Border ( Border Factory . create Titled Border ( STRING ) ) ; } m listener = tdl ; Tree Build builder = new Tree Build ( ) ; Node n = null ; n = builder . create ( new String Reader...
public TreeVisualizer ( TreeDisplayListener tdl , String dot , NodePlace p ) { super ( ) ; initialize ( ) ; if ( m_ShowBorder ) { setBorder ( BorderFactory . createTitledBorder ( STRING ) ) ; } m_listener = tdl ; TreeBuild builder = new TreeBuild ( ) ; Node n = null ; n = builder . create ( new StringReader ( dot ) ) ;...
1,549
java-test-3890
java
What displays a tree provided in a dot format ?
displayer
public Tree Visualizer ( Tree Display Listener tdl , String dot , Node Place p ) { super ( ) ; initialize ( ) ; if ( m Show Border ) { set Border ( Border Factory . create Titled Border ( STRING ) ) ; } m listener = tdl ; Tree Build builder = new Tree Build ( ) ; Node n = null ; n = builder . create ( new String Reader...
public TreeVisualizer ( TreeDisplayListener tdl , String dot , NodePlace p ) { super ( ) ; initialize ( ) ; if ( m_ShowBorder ) { setBorder ( BorderFactory . createTitledBorder ( STRING ) ) ; } m_listener = tdl ; TreeBuild builder = new TreeBuild ( ) ; Node n = null ; n = builder . create ( new StringReader ( dot ) ) ;...
1,549
java-test-3891
java
What are is used to check on overall usage when more than some minimum number of allocators are in use ?
the storage stats
public void test small Slot Waste Recylcing ( ) { final Journal store = ( Journal ) get Small Slot Store ( NUM , NUM , NUM ) ; try { final RW Strategy buffer Strategy = ( RW Strategy ) store . get Buffer Strategy ( ) ; final RW Store rw = buffer Strategy . get Store ( ) ; final int c Slot Size = NUM ; final int c Alloc...
public void test_smallSlotWasteRecylcing ( ) { final Journal store = ( Journal ) getSmallSlotStore ( _NUM , _NUM , _NUM ) ; try { final RWStrategy bufferStrategy = ( RWStrategy ) store . getBufferStrategy ( ) ; final RWStore rw = bufferStrategy . getStore ( ) ; final int cSlotSize = _NUM ; final int cAllocSize = _NUM ;...
338
java-test-3892
java
For what purpose are an attempt is made if the waste is above some specified amount then ?
to locate a " reasonable " candidate allocator to be used
public void test small Slot Waste Recylcing ( ) { final Journal store = ( Journal ) get Small Slot Store ( NUM , NUM , NUM ) ; try { final RW Strategy buffer Strategy = ( RW Strategy ) store . get Buffer Strategy ( ) ; final RW Store rw = buffer Strategy . get Store ( ) ; final int c Slot Size = NUM ; final int c Alloc...
public void test_smallSlotWasteRecylcing ( ) { final Journal store = ( Journal ) getSmallSlotStore ( _NUM , _NUM , _NUM ) ; try { final RWStrategy bufferStrategy = ( RWStrategy ) store . getBufferStrategy ( ) ; final RWStore rw = bufferStrategy . getStore ( ) ; final int cSlotSize = _NUM ; final int cAllocSize = _NUM ;...
338
java-test-3893
java
When are the storage stats is used to check on overall usage ?
when more than some minimum number of allocators are in use
public void test small Slot Waste Recylcing ( ) { final Journal store = ( Journal ) get Small Slot Store ( NUM , NUM , NUM ) ; try { final RW Strategy buffer Strategy = ( RW Strategy ) store . get Buffer Strategy ( ) ; final RW Store rw = buffer Strategy . get Store ( ) ; final int c Slot Size = NUM ; final int c Alloc...
public void test_smallSlotWasteRecylcing ( ) { final Journal store = ( Journal ) getSmallSlotStore ( _NUM , _NUM , _NUM ) ; try { final RWStrategy bufferStrategy = ( RWStrategy ) store . getBufferStrategy ( ) ; final RWStore rw = bufferStrategy . getStore ( ) ; final int cSlotSize = _NUM ; final int cAllocSize = _NUM ;...
338
java-test-3894
java
What are the storage stats is used when more than some minimum number of allocators are in use ?
to check on overall usage
public void test small Slot Waste Recylcing ( ) { final Journal store = ( Journal ) get Small Slot Store ( NUM , NUM , NUM ) ; try { final RW Strategy buffer Strategy = ( RW Strategy ) store . get Buffer Strategy ( ) ; final RW Store rw = buffer Strategy . get Store ( ) ; final int c Slot Size = NUM ; final int c Alloc...
public void test_smallSlotWasteRecylcing ( ) { final Journal store = ( Journal ) getSmallSlotStore ( _NUM , _NUM , _NUM ) ; try { final RWStrategy bufferStrategy = ( RWStrategy ) store . getBufferStrategy ( ) ; final RWStore rw = bufferStrategy . getStore ( ) ; final int cSlotSize = _NUM ; final int cAllocSize = _NUM ;...
338
java-test-3896
java
When do if a draw claim is allowed check ?
possibly after playing " move "
private String can Claim Draw ( Position pos , long [ ] pos Hash List , int pos Hash List Size , Move move ) { String draw Str = STRING ; if ( Search . can Claim Draw 50 ( pos ) ) { draw Str = STRING ; } else if ( Search . can Claim Draw Rep ( pos , pos Hash List , pos Hash List Size , pos Hash List Size ) ) { draw Str...
private String canClaimDraw ( Position pos , long [ ] posHashList , int posHashListSize , Move move ) { String drawStr = STRING ; if ( Search . canClaimDraw50 ( pos ) ) { drawStr = STRING ; } else if ( Search . canClaimDrawRep ( pos , posHashList , posHashListSize , posHashListSize ) ) { drawStr = STRING ; } else { Str...
219
java-test-3898
java
What d the code finds ?
a textview by the tag i d
private Text View find Text View By Tag Id ( final String tag Id ) { for ( final Text View view : m Tag View Map . values ( ) ) { final Tag tag = ( Tag ) view . get Tag ( ) ; if ( tag Id . equals ( tag . id ) ) { return view ; } } return null ; }
private TextView findTextViewByTagId ( final String tagId ) { for ( final TextView view : mTagViewMap . values ( ) ) { final Tag tag = ( Tag ) view . getTag ( ) ; if ( tagId . equals ( tag . id ) ) { return view ; } } return null ; }
69
java-test-3899
java
What does the code assign to a graph ?
a metric
public void declare Dimension ( final int dimension Type , final int scale , final int pixelperscale , final int offset , final Long color Naming , final Long color Scale , final String name ) { this . scales [ dimension Type ] = Math . max ( NUM , scale ) ; this . pixels [ dimension Type ] = pixelperscale ; this . off...
public void declareDimension ( final int dimensionType , final int scale , final int pixelperscale , final int offset , final Long colorNaming , final Long colorScale , final String name ) { this . scales [ dimensionType ] = Math . max ( _NUM , scale ) ; this . pixels [ dimensionType ] = pixelperscale ; this . offsets ...
201
java-test-3900
java
What does the code get ?
node product version based on node attributes
public static Ignite Product Version product Version ( Cluster Node node ) { String ver Str = node . attribute ( ATTR BUILD VER ) ; String build Date = node . attribute ( ATTR BUILD DATE ) ; if ( build Date != null ) ver Str += STRING + build Date ; return Ignite Product Version . from String ( ver Str ) ; }
public static IgniteProductVersion productVersion ( ClusterNode node ) { String verStr = node . attribute ( ATTR_BUILD_VER ) ; String buildDate = node . attribute ( ATTR_BUILD_DATE ) ; if ( buildDate != null ) verStr += STRING + buildDate ; return IgniteProductVersion . fromString ( verStr ) ; }
67
java-test-3901
java
What may be specified the ordering criterion an ordered ?
by a binary predicate
private Iterator < Date > std lower bound ( final Date date ) { final List < Date > ldates = new Array List < Date > ( ) ; if ( dates . size ( ) > NUM ) { int index = - NUM ; for ( int i = NUM ; i < dates . size ( ) ; i ++ ) { final Date d = dates . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } if ( ...
private Iterator < Date > std_lower_bound ( final Date date ) { final List < Date > ldates = new ArrayList < Date > ( ) ; if ( dates_ . size ( ) > _NUM ) { int index = - _NUM ; for ( int i = _NUM ; i < dates_ . size ( ) ; i ++ ) { final Date d = dates_ . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } ...
151
java-test-3902
java
Where may by a binary predicate be specified the ordering criterion ?
an ordered
private Iterator < Date > std lower bound ( final Date date ) { final List < Date > ldates = new Array List < Date > ( ) ; if ( dates . size ( ) > NUM ) { int index = - NUM ; for ( int i = NUM ; i < dates . size ( ) ; i ++ ) { final Date d = dates . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } if ( ...
private Iterator < Date > std_lower_bound ( final Date date ) { final List < Date > ldates = new ArrayList < Date > ( ) ; if ( dates_ . size ( ) > _NUM ) { int index = - _NUM ; for ( int i = _NUM ; i < dates_ . size ( ) ; i ++ ) { final Date d = dates_ . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } ...
151
java-test-3903
java
What does an ordered range have ?
a value greater than or equivalent to a specified value
private Iterator < Date > std lower bound ( final Date date ) { final List < Date > ldates = new Array List < Date > ( ) ; if ( dates . size ( ) > NUM ) { int index = - NUM ; for ( int i = NUM ; i < dates . size ( ) ; i ++ ) { final Date d = dates . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } if ( ...
private Iterator < Date > std_lower_bound ( final Date date ) { final List < Date > ldates = new ArrayList < Date > ( ) ; if ( dates_ . size ( ) > _NUM ) { int index = - _NUM ; for ( int i = _NUM ; i < dates_ . size ( ) ; i ++ ) { final Date d = dates_ . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } ...
151
java-test-3904
java
What has a value greater than or equivalent to a specified value ?
an ordered range
private Iterator < Date > std lower bound ( final Date date ) { final List < Date > ldates = new Array List < Date > ( ) ; if ( dates . size ( ) > NUM ) { int index = - NUM ; for ( int i = NUM ; i < dates . size ( ) ; i ++ ) { final Date d = dates . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } if ( ...
private Iterator < Date > std_lower_bound ( final Date date ) { final List < Date > ldates = new ArrayList < Date > ( ) ; if ( dates_ . size ( ) > _NUM ) { int index = - _NUM ; for ( int i = _NUM ; i < dates_ . size ( ) ; i ++ ) { final Date d = dates_ . get ( i ) ; if ( d . equals ( date ) ) { index = i ; break ; } } ...
151
java-test-3905
java
What needs to be crafted ?
a specific string
@ Override public synchronized Otr Session open Session ( Send < Bytestring > send ) throws Interrupted Exception , IO Exception { if ( send == null ) throw new Null Pointer Exception ( ) ; Chan < Boolean > chan = new Basic Chan < > ( NUM ) ; Otr Send Alice alice = new Otr Send Alice ( send , chan ) ; Session < Address...
@ Override public synchronized OtrSession openSession ( Send < Bytestring > send ) throws InterruptedException , IOException { if ( send == null ) throw new NullPointerException ( ) ; Chan < Boolean > chan = new BasicChan < > ( _NUM ) ; OtrSendAlice alice = new OtrSendAlice ( send , chan ) ; Session < Address , Bytestr...
235
java-test-3906
java
What did we create also ?
a sessionimpl object for handling messages
@ Override public synchronized Otr Session open Session ( Send < Bytestring > send ) throws Interrupted Exception , IO Exception { if ( send == null ) throw new Null Pointer Exception ( ) ; Chan < Boolean > chan = new Basic Chan < > ( NUM ) ; Otr Send Alice alice = new Otr Send Alice ( send , chan ) ; Session < Address...
@ Override public synchronized OtrSession openSession ( Send < Bytestring > send ) throws InterruptedException , IOException { if ( send == null ) throw new NullPointerException ( ) ; Chan < Boolean > chan = new BasicChan < > ( _NUM ) ; OtrSendAlice alice = new OtrSendAlice ( send , chan ) ; Session < Address , Bytestr...
235
java-test-3907
java
What did which mean ?
we are initializing otr version 3 , with version 2 as a backup if version 3 is not available
@ Override public synchronized Otr Session open Session ( Send < Bytestring > send ) throws Interrupted Exception , IO Exception { if ( send == null ) throw new Null Pointer Exception ( ) ; Chan < Boolean > chan = new Basic Chan < > ( NUM ) ; Otr Send Alice alice = new Otr Send Alice ( send , chan ) ; Session < Address...
@ Override public synchronized OtrSession openSession ( Send < Bytestring > send ) throws InterruptedException , IOException { if ( send == null ) throw new NullPointerException ( ) ; Chan < Boolean > chan = new BasicChan < > ( _NUM ) ; OtrSendAlice alice = new OtrSendAlice ( send , chan ) ; Session < Address , Bytestr...
235
java-test-3908
java
What does the opensession ( ) method start ?
the otr protocol
@ Override public synchronized Otr Session open Session ( Send < Bytestring > send ) throws Interrupted Exception , IO Exception { if ( send == null ) throw new Null Pointer Exception ( ) ; Chan < Boolean > chan = new Basic Chan < > ( NUM ) ; Otr Send Alice alice = new Otr Send Alice ( send , chan ) ; Session < Address...
@ Override public synchronized OtrSession openSession ( Send < Bytestring > send ) throws InterruptedException , IOException { if ( send == null ) throw new NullPointerException ( ) ; Chan < Boolean > chan = new BasicChan < > ( _NUM ) ; OtrSendAlice alice = new OtrSendAlice ( send , chan ) ; Session < Address , Bytestr...
235
java-test-3909
java
Are we initializing otr version 3 as if version 3 is not available ?
No
@ Override public synchronized Otr Session open Session ( Send < Bytestring > send ) throws Interrupted Exception , IO Exception { if ( send == null ) throw new Null Pointer Exception ( ) ; Chan < Boolean > chan = new Basic Chan < > ( NUM ) ; Otr Send Alice alice = new Otr Send Alice ( send , chan ) ; Session < Address...
@ Override public synchronized OtrSession openSession ( Send < Bytestring > send ) throws InterruptedException , IOException { if ( send == null ) throw new NullPointerException ( ) ; Chan < Boolean > chan = new BasicChan < > ( _NUM ) ; OtrSendAlice alice = new OtrSendAlice ( send , chan ) ; Session < Address , Bytestr...
235
java-test-3910
java
What starts the otr protocol ?
the opensession ( ) method
@ Override public synchronized Otr Session open Session ( Send < Bytestring > send ) throws Interrupted Exception , IO Exception { if ( send == null ) throw new Null Pointer Exception ( ) ; Chan < Boolean > chan = new Basic Chan < > ( NUM ) ; Otr Send Alice alice = new Otr Send Alice ( send , chan ) ; Session < Address...
@ Override public synchronized OtrSession openSession ( Send < Bytestring > send ) throws InterruptedException , IOException { if ( send == null ) throw new NullPointerException ( ) ; Chan < Boolean > chan = new BasicChan < > ( _NUM ) ; OtrSendAlice alice = new OtrSendAlice ( send , chan ) ; Session < Address , Bytestr...
235
java-test-3911
java
What means we are initializing otr version 3 , with version 2 as a backup if version 3 is not available ?
which
@ Override public synchronized Otr Session open Session ( Send < Bytestring > send ) throws Interrupted Exception , IO Exception { if ( send == null ) throw new Null Pointer Exception ( ) ; Chan < Boolean > chan = new Basic Chan < > ( NUM ) ; Otr Send Alice alice = new Otr Send Alice ( send , chan ) ; Session < Address...
@ Override public synchronized OtrSession openSession ( Send < Bytestring > send ) throws InterruptedException , IOException { if ( send == null ) throw new NullPointerException ( ) ; Chan < Boolean > chan = new BasicChan < > ( _NUM ) ; OtrSendAlice alice = new OtrSendAlice ( send , chan ) ; Session < Address , Bytestr...
235
java-test-3912
java
What does it create ?
a basicchan object that is passed into otrsendalice
@ Override public synchronized Otr Session open Session ( Send < Bytestring > send ) throws Interrupted Exception , IO Exception { if ( send == null ) throw new Null Pointer Exception ( ) ; Chan < Boolean > chan = new Basic Chan < > ( NUM ) ; Otr Send Alice alice = new Otr Send Alice ( send , chan ) ; Session < Address...
@ Override public synchronized OtrSession openSession ( Send < Bytestring > send ) throws InterruptedException , IOException { if ( send == null ) throw new NullPointerException ( ) ; Chan < Boolean > chan = new BasicChan < > ( _NUM ) ; OtrSendAlice alice = new OtrSendAlice ( send , chan ) ; Session < Address , Bytestr...
235
java-test-3913
java
What did a specific string need ?
to be crafted
@ Override public synchronized Otr Session open Session ( Send < Bytestring > send ) throws Interrupted Exception , IO Exception { if ( send == null ) throw new Null Pointer Exception ( ) ; Chan < Boolean > chan = new Basic Chan < > ( NUM ) ; Otr Send Alice alice = new Otr Send Alice ( send , chan ) ; Session < Address...
@ Override public synchronized OtrSession openSession ( Send < Bytestring > send ) throws InterruptedException , IOException { if ( send == null ) throw new NullPointerException ( ) ; Chan < Boolean > chan = new BasicChan < > ( _NUM ) ; OtrSendAlice alice = new OtrSendAlice ( send , chan ) ; Session < Address , Bytestr...
235
java-test-3920
java
What does that match with the specified element ?
all css selectors
private Vector apply CSS ( HTML Element element , HTML Component html C , CSS Element [ ] css , Vector nested Selectors , Vector sibling Selectors ) { String id = element . get Attribute By Id ( HTML Element . ATTR ID ) ; String class Name = element . get Attribute By Id ( HTML Element . ATTR CLASS ) ; Vector next Nest...
private Vector applyCSS ( HTMLElement element , HTMLComponent htmlC , CSSElement [ ] css , Vector nestedSelectors , Vector siblingSelectors ) { String id = element . getAttributeById ( HTMLElement . ATTR_ID ) ; String className = element . getAttributeById ( HTMLElement . ATTR_CLASS ) ; Vector nextNestedSelectors = new...
474
java-test-3921
java
What tries to match all css selectors with the specified element ?
a recursive method
private Vector apply CSS ( HTML Element element , HTML Component html C , CSS Element [ ] css , Vector nested Selectors , Vector sibling Selectors ) { String id = element . get Attribute By Id ( HTML Element . ATTR ID ) ; String class Name = element . get Attribute By Id ( HTML Element . ATTR CLASS ) ; Vector next Nest...
private Vector applyCSS ( HTMLElement element , HTMLComponent htmlC , CSSElement [ ] css , Vector nestedSelectors , Vector siblingSelectors ) { String id = element . getAttributeById ( HTMLElement . ATTR_ID ) ; String className = element . getAttributeById ( HTMLElement . ATTR_CLASS ) ; Vector nextNestedSelectors = new...
474
java-test-3922
java
What does a recursive method try ?
to match all css selectors with the specified element
private Vector apply CSS ( HTML Element element , HTML Component html C , CSS Element [ ] css , Vector nested Selectors , Vector sibling Selectors ) { String id = element . get Attribute By Id ( HTML Element . ATTR ID ) ; String class Name = element . get Attribute By Id ( HTML Element . ATTR CLASS ) ; Vector next Nest...
private Vector applyCSS ( HTMLElement element , HTMLComponent htmlC , CSSElement [ ] css , Vector nestedSelectors , Vector siblingSelectors ) { String id = element . getAttributeById ( HTMLElement . ATTR_ID ) ; String className = element . getAttributeById ( HTMLElement . ATTR_CLASS ) ; Vector nextNestedSelectors = new...
474
java-test-3923
java
What does the code create ?
an scaling icon that will be moved around
public Temporal OM Scaling Icon ( Object id , int render Type , boolean interpolate , Image Icon ii ) { this ( id , render Type , interpolate , ii . get Image ( ) , NUM ) ; set Max Scale ( NUM ) ; set Min Scale ( NUM ) ; }
public TemporalOMScalingIcon ( Object id , int renderType , boolean interpolate , ImageIcon ii ) { this ( id , renderType , interpolate , ii . getImage ( ) , _NUM ) ; setMaxScale ( _NUM ) ; setMinScale ( _NUM ) ; }
55
java-test-3924
java
What does the code call the parent method ?
to update the progress - bar in the ui while articles are refreshed
@ Override protected void on Progress Update ( Integer ... values ) { if ( parent != null ) { if ( values [ NUM ] == ON CACHE END ) { parent . on Cache End ( ) ; } else if ( values [ NUM ] == ON CACHE INTERRUPTED ) { Log . i ( TAG , STRING ) ; should Be Stopped = BOOL ; parent . on Cache Interrupted ( ) ; } else { pare...
@ Override protected void onProgressUpdate ( Integer ... values ) { if ( parent != null ) { if ( values [ _NUM ] == ON_CACHE_END ) { parent . onCacheEnd ( ) ; } else if ( values [ _NUM ] == ON_CACHE_INTERRUPTED ) { Log . i ( TAG , STRING ) ; shouldBeStopped = _BOOL ; parent . onCacheInterrupted ( ) ; } else { parent . ...
98
java-test-3925
java
What updates the progress - bar in the ui while articles are refreshed ?
the parent method
@ Override protected void on Progress Update ( Integer ... values ) { if ( parent != null ) { if ( values [ NUM ] == ON CACHE END ) { parent . on Cache End ( ) ; } else if ( values [ NUM ] == ON CACHE INTERRUPTED ) { Log . i ( TAG , STRING ) ; should Be Stopped = BOOL ; parent . on Cache Interrupted ( ) ; } else { pare...
@ Override protected void onProgressUpdate ( Integer ... values ) { if ( parent != null ) { if ( values [ _NUM ] == ON_CACHE_END ) { parent . onCacheEnd ( ) ; } else if ( values [ _NUM ] == ON_CACHE_INTERRUPTED ) { Log . i ( TAG , STRING ) ; shouldBeStopped = _BOOL ; parent . onCacheInterrupted ( ) ; } else { parent . ...
98
java-test-3926
java
What does the parent method update while articles are refreshed ?
the progress - bar in the ui
@ Override protected void on Progress Update ( Integer ... values ) { if ( parent != null ) { if ( values [ NUM ] == ON CACHE END ) { parent . on Cache End ( ) ; } else if ( values [ NUM ] == ON CACHE INTERRUPTED ) { Log . i ( TAG , STRING ) ; should Be Stopped = BOOL ; parent . on Cache Interrupted ( ) ; } else { pare...
@ Override protected void onProgressUpdate ( Integer ... values ) { if ( parent != null ) { if ( values [ _NUM ] == ON_CACHE_END ) { parent . onCacheEnd ( ) ; } else if ( values [ _NUM ] == ON_CACHE_INTERRUPTED ) { Log . i ( TAG , STRING ) ; shouldBeStopped = _BOOL ; parent . onCacheInterrupted ( ) ; } else { parent . ...
98
java-test-3927
java
When does the parent method update the progress - bar in the ui ?
while articles are refreshed
@ Override protected void on Progress Update ( Integer ... values ) { if ( parent != null ) { if ( values [ NUM ] == ON CACHE END ) { parent . on Cache End ( ) ; } else if ( values [ NUM ] == ON CACHE INTERRUPTED ) { Log . i ( TAG , STRING ) ; should Be Stopped = BOOL ; parent . on Cache Interrupted ( ) ; } else { pare...
@ Override protected void onProgressUpdate ( Integer ... values ) { if ( parent != null ) { if ( values [ _NUM ] == ON_CACHE_END ) { parent . onCacheEnd ( ) ; } else if ( values [ _NUM ] == ON_CACHE_INTERRUPTED ) { Log . i ( TAG , STRING ) ; shouldBeStopped = _BOOL ; parent . onCacheInterrupted ( ) ; } else { parent . ...
98
java-test-3928
java
How might this have been created beforehand ?
with the gui
public Process ( final File file , final Progress Listener progress Listener ) throws IO Exception , XML Exception { this . process Location = new File Process Location ( file ) ; init Context ( ) ; Reader in = null ; try { in = new Input Stream Reader ( new File Input Stream ( file ) , STRING ) ; read Process ( in , p...
public Process ( final File file , final ProgressListener progressListener ) throws IOException , XMLException { this . processLocation = new FileProcessLocation ( file ) ; initContext ( ) ; Reader in = null ; try { in = new InputStreamReader ( new FileInputStream ( file ) , STRING ) ; readProcess ( in , progressListen...
102
java-test-3929
java
For what purpose is this implemented ?
to calculate the requirements as the sum of the requirements of the columns and then adjust it
protected Size Requirements calculate Minor Axis Requirements ( int axis , Size Requirements r ) { update Grid ( ) ; calculate Column Requirements ( axis ) ; if ( r == null ) { r = new Size Requirements ( ) ; } long min = NUM ; long pref = NUM ; int n = column Requirements . length ; for ( int i = NUM ; i < n ; i ++ ) ...
protected SizeRequirements calculateMinorAxisRequirements ( int axis , SizeRequirements r ) { updateGrid ( ) ; calculateColumnRequirements ( axis ) ; if ( r == null ) { r = new SizeRequirements ( ) ; } long min = _NUM ; long pref = _NUM ; int n = columnRequirements . length ; for ( int i = _NUM ; i < n ; i ++ ) { SizeR...
377
java-test-3930
java
When does this method synchronize only ?
when the event is not asynchronous
public void call Event ( Event event ) { if ( event . is Asynchronous ( ) ) { if ( Thread . holds Lock ( this ) ) { throw new Illegal State Exception ( event . get Event Name ( ) + STRING ) ; } if ( server . is Primary Thread ( ) ) { throw new Illegal State Exception ( event . get Event Name ( ) + STRING ) ; } fire Eve...
public void callEvent ( Event event ) { if ( event . isAsynchronous ( ) ) { if ( Thread . holdsLock ( this ) ) { throw new IllegalStateException ( event . getEventName ( ) + STRING ) ; } if ( server . isPrimaryThread ( ) ) { throw new IllegalStateException ( event . getEventName ( ) + STRING ) ; } fireEvent ( event ) ;...
100
java-test-3931
java
What used to re - open closed documents ?
an annotation document
private void change Annotation Document State ( Source Document a Source Document , User a User , Annotation Document State Transition a Annotation Document State Transition ) { Annotation Document annotation Document = repository . get Annotation Document ( a Source Document , a User ) ; annotation Document . set Stat...
private void changeAnnotationDocumentState ( SourceDocument aSourceDocument , User aUser , AnnotationDocumentStateTransition aAnnotationDocumentStateTransition ) { AnnotationDocument annotationDocument = repository . getAnnotationDocument ( aSourceDocument , aUser ) ; annotationDocument . setState ( AnnotationDocumentS...
97
java-test-3932
java
What did an annotation document use ?
to re - open closed documents
private void change Annotation Document State ( Source Document a Source Document , User a User , Annotation Document State Transition a Annotation Document State Transition ) { Annotation Document annotation Document = repository . get Annotation Document ( a Source Document , a User ) ; annotation Document . set Stat...
private void changeAnnotationDocumentState ( SourceDocument aSourceDocument , User aUser , AnnotationDocumentStateTransition aAnnotationDocumentStateTransition ) { AnnotationDocument annotationDocument = repository . getAnnotationDocument ( aSourceDocument , aUser ) ; annotationDocument . setState ( AnnotationDocumentS...
97
java-test-3936
java
What form the request ?
the pagination parameters
@ Suppress Warnings ( STRING ) public Data Response paginate List ( Map < String , String > request Params , Paginate Request paginate Request , Object query , String default Sort , Map properties ) { if ( paginate Request == null ) { paginate Request = new Paginate Request ( ) ; } if ( paginate Request . get Start ( )...
@ SuppressWarnings ( STRING ) public DataResponse paginateList ( Map < String , String > requestParams , PaginateRequest paginateRequest , Object query , String defaultSort , Map properties ) { if ( paginateRequest == null ) { paginateRequest = new PaginateRequest ( ) ; } if ( paginateRequest . getStart ( ) == null ) {...
780
java-test-3937
java
What does the code use ?
the pagination parameters form the request
@ Suppress Warnings ( STRING ) public Data Response paginate List ( Map < String , String > request Params , Paginate Request paginate Request , Object query , String default Sort , Map properties ) { if ( paginate Request == null ) { paginate Request = new Paginate Request ( ) ; } if ( paginate Request . get Start ( )...
@ SuppressWarnings ( STRING ) public DataResponse paginateList ( Map < String , String > requestParams , PaginateRequest paginateRequest , Object query , String defaultSort , Map properties ) { if ( paginateRequest == null ) { paginateRequest = new PaginateRequest ( ) ; } if ( paginateRequest . getStart ( ) == null ) {...
780
java-test-3941
java
Where was the file located ?
the search path
public static File search Paths ( Iterable < ? extends File > paths , String rel File ) { for ( File path : paths ) { File f = new File ( path , rel File ) ; if ( f . exists ( ) ) { return path ; } } return null ; }
public static File searchPaths ( Iterable < ? extends File > paths , String relFile ) { for ( File path : paths ) { File f = new File ( path , relFile ) ; if ( f . exists ( ) ) { return path ; } } return null ; }
57
java-test-3942
java
Why should the root force to the store ?
since a new root is dirty ( if empty )
public void test reopen 01 ( ) { final I Raw Store store = new Simple Memory Raw Store ( ) ; final B Tree btree ; { Index Metadata md = new Index Metadata ( UUID . random UUID ( ) ) ; md . set Branching Factor ( NUM ) ; btree = B Tree . create ( store , md ) ; } assert True ( btree . is Open ( ) ) ; btree . close ( ) ;...
public void test_reopen01 ( ) { final IRawStore store = new SimpleMemoryRawStore ( ) ; final BTree btree ; { IndexMetadata md = new IndexMetadata ( UUID . randomUUID ( ) ) ; md . setBranchingFactor ( _NUM ) ; btree = BTree . create ( store , md ) ; } assertTrue ( btree . isOpen ( ) ) ; btree . close ( ) ; assertFalse (...
166
java-test-3943
java
What do the routine return ?
an str_token object suitable for return by the scanner
protected static token do code string ( ) throws java . io . IO Exception { String Buffer result = new String Buffer ( ) ; advance ( ) ; advance ( ) ; while ( ! ( next char == STRING && next char 2 == STRING ) ) { if ( next char == EOF CHAR ) { emit error ( STRING ) ; break ; } result . append ( new Character ( ( char ...
protected static token do_code_string ( ) throws java . io . IOException { StringBuffer result = new StringBuffer ( ) ; advance ( ) ; advance ( ) ; while ( ! ( next_char == STRING && next_char2 == STRING ) ) { if ( next_char == EOF_CHAR ) { emit_error ( STRING ) ; break ; } result . append ( new Character ( ( char ) ne...
116
java-test-3944
java
What is the code swallow ?
a code string
protected static token do code string ( ) throws java . io . IO Exception { String Buffer result = new String Buffer ( ) ; advance ( ) ; advance ( ) ; while ( ! ( next char == STRING && next char 2 == STRING ) ) { if ( next char == EOF CHAR ) { emit error ( STRING ) ; break ; } result . append ( new Character ( ( char ...
protected static token do_code_string ( ) throws java . io . IOException { StringBuffer result = new StringBuffer ( ) ; advance ( ) ; advance ( ) ; while ( ! ( next_char == STRING && next_char2 == STRING ) ) { if ( next_char == EOF_CHAR ) { emit_error ( STRING ) ; break ; } result . append ( new Character ( ( char ) ne...
116
java-test-3945
java
What include all characters up to the first occurrence of " : } ?
code strings
protected static token do code string ( ) throws java . io . IO Exception { String Buffer result = new String Buffer ( ) ; advance ( ) ; advance ( ) ; while ( ! ( next char == STRING && next char 2 == STRING ) ) { if ( next char == EOF CHAR ) { emit error ( STRING ) ; break ; } result . append ( new Character ( ( char ...
protected static token do_code_string ( ) throws java . io . IOException { StringBuffer result = new StringBuffer ( ) ; advance ( ) ; advance ( ) ; while ( ! ( next_char == STRING && next_char2 == STRING ) ) { if ( next_char == EOF_CHAR ) { emit_error ( STRING ) ; break ; } result . append ( new Character ( ( char ) ne...
116
java-test-3947
java
What did the code set based on the command provided in the supplied document ?
the indent of a bracket
protected void smart Insert After Bracket ( I Document document , Document Command command ) { if ( command . offset == - NUM || document . get Length ( ) == NUM ) { return ; } try { int p = ( command . offset == document . get Length ( ) ? command . offset - NUM : command . offset ) ; int line = document . get Line Of...
protected void smartInsertAfterBracket ( IDocument document , DocumentCommand command ) { if ( command . offset == - _NUM || document . getLength ( ) == _NUM ) { return ; } try { int p = ( command . offset == document . getLength ( ) ? command . offset - _NUM : command . offset ) ; int line = document . getLineOfOffset...
253
java-test-3948
java
What does the code remove except for this year and previous year rationale ?
categories that contain a year in them ( starting
private Array List < String > filter Years ( Array List < String > items ) { Iterator < String > iterator ; Calendar now = Calendar . get Instance ( ) ; int year = now . get ( Calendar . YEAR ) ; String year In String = String . value Of ( year ) ; Log . d ( TAG , STRING + year In String ) ; int prev Year = year - NUM ...
private ArrayList < String > filterYears ( ArrayList < String > items ) { Iterator < String > iterator ; Calendar now = Calendar . getInstance ( ) ; int year = now . get ( Calendar . YEAR ) ; String yearInString = String . valueOf ( year ) ; Log . d ( TAG , STRING + yearInString ) ; int prevYear = year - _NUM ; String ...
206
java-test-3949
java
What does the code create ?
a new data provider event
public Data Provider Event ( final Localizable Message reason , final Set < Type > types ) { Reject . if Null ( reason , types ) ; Reject . if True ( types . is Empty ( ) ) ; this . reason = reason ; final Enum Set < Type > tmp = Enum Set . none Of ( Type . class ) ; tmp . add All ( types ) ; this . types = Collections...
public DataProviderEvent ( final LocalizableMessage reason , final Set < Type > types ) { Reject . ifNull ( reason , types ) ; Reject . ifTrue ( types . isEmpty ( ) ) ; this . reason = reason ; final EnumSet < Type > tmp = EnumSet . noneOf ( Type . class ) ; tmp . addAll ( types ) ; this . types = Collections . unmodif...
87
java-test-3950
java
What is surrounding a single unicode code point ?
double - quotes
public static String print Code Point As String ( int code Point ) { String Builder builder = new String Builder ( NUM ) ; builder . append ( STRING ) ; try { print String Code Point ( builder , code Point ) ; } catch ( IO Exception e ) { throw new Error ( e ) ; } builder . append ( STRING ) ; return builder . to Strin...
public static String printCodePointAsString ( int codePoint ) { StringBuilder builder = new StringBuilder ( _NUM ) ; builder . append ( STRING ) ; try { printStringCodePoint ( builder , codePoint ) ; } catch ( IOException e ) { throw new Error ( e ) ; } builder . append ( STRING ) ; return builder . toString ( ) ; }
77
java-test-3951
java
What do double - quotes surround ?
a single unicode code point
public static String print Code Point As String ( int code Point ) { String Builder builder = new String Builder ( NUM ) ; builder . append ( STRING ) ; try { print String Code Point ( builder , code Point ) ; } catch ( IO Exception e ) { throw new Error ( e ) ; } builder . append ( STRING ) ; return builder . to Strin...
public static String printCodePointAsString ( int codePoint ) { StringBuilder builder = new StringBuilder ( _NUM ) ; builder . append ( STRING ) ; try { printStringCodePoint ( builder , codePoint ) ; } catch ( IOException e ) { throw new Error ( e ) ; } builder . append ( STRING ) ; return builder . toString ( ) ; }
77
java-test-3952
java
What do a string denote ?
an ascii - encoded ion string
public static String print Code Point As String ( int code Point ) { String Builder builder = new String Builder ( NUM ) ; builder . append ( STRING ) ; try { print String Code Point ( builder , code Point ) ; } catch ( IO Exception e ) { throw new Error ( e ) ; } builder . append ( STRING ) ; return builder . to Strin...
public static String printCodePointAsString ( int codePoint ) { StringBuilder builder = new StringBuilder ( _NUM ) ; builder . append ( STRING ) ; try { printStringCodePoint ( builder , codePoint ) ; } catch ( IOException e ) { throw new Error ( e ) ; } builder . append ( STRING ) ; return builder . toString ( ) ; }
77
java-test-3953
java
What does a string contain ?
the formatted version of the digits entered so far
private String attempt To Choose Formatting Pattern ( ) { if ( national Number . length ( ) >= MIN LEADING DIGITS LENGTH ) { get Available Formats ( national Number . to String ( ) ) ; String formatted Number = attempt To Format Accrued Digits ( ) ; if ( formatted Number . length ( ) > NUM ) { return formatted Number ;...
private String attemptToChooseFormattingPattern ( ) { if ( nationalNumber . length ( ) >= MIN_LEADING_DIGITS_LENGTH ) { getAvailableFormats ( nationalNumber . toString ( ) ) ; String formattedNumber = attemptToFormatAccruedDigits ( ) ; if ( formattedNumber . length ( ) > _NUM ) { return formattedNumber ; } return maybe...
109
java-test-3956
java
What does the code create ?
a stream to read from the counter file
private void open Counter Data Input Stream ( ) throws Data Fallback Exception { if ( d Input == null ) { if ( LOG . is Debug Enabled ( ) ) LOG . debug ( STRING + counter File . get Name ( ) + STRING ) ; try { d Input = new Buffered Reader ( new File Reader ( counter File ) ) ; } catch ( IO Exception e ) { throw new Da...
private void openCounterDataInputStream ( ) throws DataFallbackException { if ( dInput == null ) { if ( LOG . isDebugEnabled ( ) ) LOG . debug ( STRING + counterFile . getName ( ) + STRING ) ; try { dInput = new BufferedReader ( new FileReader ( counterFile ) ) ; } catch ( IOException e ) { throw new DataFallbackExcept...
92
java-test-3957
java
In which direction do a stream read ?
from the counter file
private void open Counter Data Input Stream ( ) throws Data Fallback Exception { if ( d Input == null ) { if ( LOG . is Debug Enabled ( ) ) LOG . debug ( STRING + counter File . get Name ( ) + STRING ) ; try { d Input = new Buffered Reader ( new File Reader ( counter File ) ) ; } catch ( IO Exception e ) { throw new Da...
private void openCounterDataInputStream ( ) throws DataFallbackException { if ( dInput == null ) { if ( LOG . isDebugEnabled ( ) ) LOG . debug ( STRING + counterFile . getName ( ) + STRING ) ; try { dInput = new BufferedReader ( new FileReader ( counterFile ) ) ; } catch ( IOException e ) { throw new DataFallbackExcept...
92
java-test-3958
java
What is describing the format ?
a user - friendly string
public String to String ( ) { String str = STRING ; String followed By = STRING ; int last Type = - NUM ; String last String = STRING ; int singles Count = NUM ; for ( Enumeration e = format Constraints . elements ( ) ; e . has More Elements ( ) ; ) { Format Constraint constraint = ( Format Constraint ) e . next Elemen...
public String toString ( ) { String str = STRING ; String followedBy = STRING ; int lastType = - _NUM ; String lastString = STRING ; int singlesCount = _NUM ; for ( Enumeration e = formatConstraints . elements ( ) ; e . hasMoreElements ( ) ; ) { FormatConstraint constraint = ( FormatConstraint ) e . nextElement ( ) ; i...
268
java-test-3960
java
What does this require ?
512k metabits = > 64k bytes
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3961
java
What can a ositive address be used ?
to indicate an explicitly allocated region
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3962
java
What does the trick be ?
to ensure that the region is allocated on a 128k boundary , then the lower bits can indicate which demi - space is used with a simple xor
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3963
java
When must writemetabits be are called ?
after all allocations have been made
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3964
java
What did a negative address indicate ?
a standard rw allocation
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3965
java
What can be used to indicate an explicitly allocated region ?
a ositive address
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3966
java
What do we associate with the root block ?
the 64k allocations
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3967
java
What indicates a standard rw allocation ?
a negative address
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3968
java
What must we ensure ?
that any previous demi - space write is removed from the wcs
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3969
java
What would we like ?
to associate the 64k allocations with the root block ,
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3970
java
How is the region allocated ?
on a 128k boundary
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3971
java
What do this leave ?
19 bits to index an allocator , or 18 bits without the sign = > 256k maximum index
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3972
java
For what purpose did problems at scale for maximum slot sizes less than 64k be while this is neat ?
to address the 8k bits in a 1k alloctor
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3973
java
How is which demi - space used ?
with a simple xor
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3974
java
What can indicate which demi - space is used with a simple xor ?
the lower bits
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3975
java
What can the lower bits indicate ?
which demi - space is used with a simple xor
private void write Meta Bits ( ) throws IO Exception { final byte buf [ ] = gen Metabits Data ( ) ; final long addr = m meta Bits Addr < NUM ? physical Address ( m meta Bits Addr ) : ( ( long ) m meta Bits Addr ) << ALLOCATION SCALEUP ; if ( addr == NUM ) { throw new Illegal State Exception ( STRING + m meta Bits Addr ...
private void writeMetaBits ( ) throws IOException { final byte buf [ ] = genMetabitsData ( ) ; final long addr = m_metaBitsAddr < _NUM ? physicalAddress ( m_metaBitsAddr ) : ( ( long ) m_metaBitsAddr ) << ALLOCATION_SCALEUP ; if ( addr == _NUM ) { throw new IllegalStateException ( STRING + m_metaBitsAddr ) ; } assert a...
158
java-test-3976
java
What does the code update ?
the favorite ui state
private void update Favorite Station ( ) { String show String = null ; if ( Fm Radio Station . is Favorite Station ( m Context , m Current Station ) ) { String station Name = Fm Radio Station . get Station Name ( m Context , m Current Station , Fm Radio Station . STATION TYPE FAVORITE ) ; Fm Radio Station . update Stat...
private void updateFavoriteStation ( ) { String showString = null ; if ( FmRadioStation . isFavoriteStation ( mContext , mCurrentStation ) ) { String stationName = FmRadioStation . getStationName ( mContext , mCurrentStation , FmRadioStation . STATION_TYPE_FAVORITE ) ; FmRadioStation . updateStationToDb ( mContext , st...
347
java-test-3979
java
What does cell editing initiate ?
on the specified element
public void edit Element ( final Object element , final String column Property Name ) { final int column Index = Table Viewer Utils . column Property Name To Column Index ( column Property Name , BOOL , viewer ) ; viewer . edit Element ( element , column Index ) ; }
public void editElement ( final Object element , final String columnPropertyName ) { final int columnIndex = TableViewerUtils . columnPropertyNameToColumnIndex ( columnPropertyName , _BOOL , viewer ) ; viewer . editElement ( element , columnIndex ) ; }
53
java-test-3980
java
How is the column that is edited specified ?
by property name
public void edit Element ( final Object element , final String column Property Name ) { final int column Index = Table Viewer Utils . column Property Name To Column Index ( column Property Name , BOOL , viewer ) ; viewer . edit Element ( element , column Index ) ; }
public void editElement ( final Object element , final String columnPropertyName ) { final int columnIndex = TableViewerUtils . columnPropertyNameToColumnIndex ( columnPropertyName , _BOOL , viewer ) ; viewer . editElement ( element , columnIndex ) ; }
53
java-test-3981
java
What initiates on the specified element ?
cell editing
public void edit Element ( final Object element , final String column Property Name ) { final int column Index = Table Viewer Utils . column Property Name To Column Index ( column Property Name , BOOL , viewer ) ; viewer . edit Element ( element , column Index ) ; }
public void editElement ( final Object element , final String columnPropertyName ) { final int columnIndex = TableViewerUtils . columnPropertyNameToColumnIndex ( columnPropertyName , _BOOL , viewer ) ; viewer . editElement ( element , columnIndex ) ; }
53
java-test-3983
java
What does the code serialize ?
a xml document into a string - encoded in utf8 format , with platform line separators
private static String serialize Document Int ( Document doc ) throws Transformer Exception , IO Exception { Byte Array Output Stream s = new Byte Array Output Stream ( ) ; Transformer Factory factory = Transformer Factory . new Instance ( ) ; Transformer transformer = factory . new Transformer ( ) ; transformer . set O...
private static String serializeDocumentInt ( Document doc ) throws TransformerException , IOException { ByteArrayOutputStream s = new ByteArrayOutputStream ( ) ; TransformerFactory factory = TransformerFactory . newInstance ( ) ; Transformer transformer = factory . newTransformer ( ) ; transformer . setOutputProperty (...
124
java-test-3987
java
What command cache ?
other sessions
private void test View Alter And Command Cache ( ) throws SQL Exception { delete Db ( STRING ) ; Connection conn = get Connection ( STRING ) ; Statement stat = conn . create Statement ( ) ; stat . execute ( STRING ) ; stat . execute ( STRING ) ; stat . execute ( STRING ) ; stat . execute ( STRING ) ; stat . execute ( S...
private void testViewAlterAndCommandCache ( ) throws SQLException { deleteDb ( STRING ) ; Connection conn = getConnection ( STRING ) ; Statement stat = conn . createStatement ( ) ; stat . execute ( STRING ) ; stat . execute ( STRING ) ; stat . execute ( STRING ) ; stat . execute ( STRING ) ; stat . execute ( STRING ) ;...
164
java-test-3988
java
Why can the user be authenticated ?
due to an existing session i d
public boolean soft Signin ( ) throws IO Exception { if ( url == null ) { throw new Illegal State Exception ( STRING ) ; } check Resolve Host ( ) ; if ( session Id != null ) { if ( check Authorized ( get Auth Check Url ( session Id ) ) ) { LOGGER . fine ( STRING + session Id ) ; return BOOL ; } else { session Id = null...
public boolean softSignin ( ) throws IOException { if ( url == null ) { throw new IllegalStateException ( STRING ) ; } checkResolveHost ( ) ; if ( sessionId != null ) { if ( checkAuthorized ( getAuthCheckUrl ( sessionId ) ) ) { LOGGER . fine ( STRING + sessionId ) ; return _BOOL ; } else { sessionId = null ; } } long i...
141
java-test-3989
java
What do the jvm parameters have ?
the repository and agent information
private void load Configuration From Jvm Parameters ( ) { String repository Property = System . get Property ( REPOSITORY PROPERTY ) ; if ( null != repository Property ) { String [ ] repository Ip Host = repository Property . split ( STRING ) ; if ( repository Ip Host . length == NUM ) { String repository Ip = reposito...
private void loadConfigurationFromJvmParameters ( ) { String repositoryProperty = System . getProperty ( REPOSITORY_PROPERTY ) ; if ( null != repositoryProperty ) { String [ ] repositoryIpHost = repositoryProperty . split ( STRING ) ; if ( repositoryIpHost . length == _NUM ) { String repositoryIp = repositoryIpHost [ _...
261
java-test-3990
java
What have the repository and agent information ?
the jvm parameters
private void load Configuration From Jvm Parameters ( ) { String repository Property = System . get Property ( REPOSITORY PROPERTY ) ; if ( null != repository Property ) { String [ ] repository Ip Host = repository Property . split ( STRING ) ; if ( repository Ip Host . length == NUM ) { String repository Ip = reposito...
private void loadConfigurationFromJvmParameters ( ) { String repositoryProperty = System . getProperty ( REPOSITORY_PROPERTY ) ; if ( null != repositoryProperty ) { String [ ] repositoryIpHost = repositoryProperty . split ( STRING ) ; if ( repositoryIpHost . length == _NUM ) { String repositoryIp = repositoryIpHost [ _...
261
java-test-3991
java
When do index0 ne be & lt ; = index1 ?
as always )
public void remove Index Interval ( int index 0 , int index 1 ) { int rm Min Index = Math . min ( index 0 , index 1 ) ; int rm Max Index = Math . max ( index 0 , index 1 ) ; int gap Length = ( rm Max Index - rm Min Index ) + NUM ; for ( int i = rm Min Index ; i <= max Index ; i ++ ) { set State ( i , value . get ( i + ...
public void removeIndexInterval ( int index0 , int index1 ) { int rmMinIndex = Math . min ( index0 , index1 ) ; int rmMaxIndex = Math . max ( index0 , index1 ) ; int gapLength = ( rmMaxIndex - rmMinIndex ) + _NUM ; for ( int i = rmMinIndex ; i <= maxIndex ; i ++ ) { setState ( i , value . get ( i + gapLength ) ) ; } in...
273
java-test-3992
java
Do lltoworld that returns normalized longitude in radians , to be used for more calculations in some methods provide a null lp if you want the world coordinates provided back to you here ?
No
protected double LL To World Returning Lon ( double lat , double lon , Point 2 D lp ) { double phi deg = lat ; double phi = Proj Math . deg To Rad ( phi deg ) ; double lamba deg = lon ; double lamba = Proj Math . deg To Rad ( lamba deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= More Math...
protected double LLToWorldReturningLon ( double lat , double lon , Point2D lp ) { double phi_deg = lat ; double phi = ProjMath . degToRad ( phi_deg ) ; double lamba_deg = lon ; double lamba = ProjMath . degToRad ( lamba_deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= MoreMath . TWO_PI_D ;...
239
java-test-3993
java
What do you want ?
the world coordinates provided back to you
protected double LL To World Returning Lon ( double lat , double lon , Point 2 D lp ) { double phi deg = lat ; double phi = Proj Math . deg To Rad ( phi deg ) ; double lamba deg = lon ; double lamba = Proj Math . deg To Rad ( lamba deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= More Math...
protected double LLToWorldReturningLon ( double lat , double lon , Point2D lp ) { double phi_deg = lat ; double phi = ProjMath . degToRad ( phi_deg ) ; double lamba_deg = lon ; double lamba = ProjMath . degToRad ( lamba_deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= MoreMath . TWO_PI_D ;...
239
java-test-3994
java
What do lltoworld that returns normalized longitude in radians , to be used for more calculations in some methods not provide if you want the world coordinates provided back to you here ?
a null lp
protected double LL To World Returning Lon ( double lat , double lon , Point 2 D lp ) { double phi deg = lat ; double phi = Proj Math . deg To Rad ( phi deg ) ; double lamba deg = lon ; double lamba = Proj Math . deg To Rad ( lamba deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= More Math...
protected double LLToWorldReturningLon ( double lat , double lon , Point2D lp ) { double phi_deg = lat ; double phi = ProjMath . degToRad ( phi_deg ) ; double lamba_deg = lon ; double lamba = ProjMath . degToRad ( lamba_deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= MoreMath . TWO_PI_D ;...
239
java-test-3995
java
What do not provide a null lp if you want the world coordinates provided back to you here ?
lltoworld that returns normalized longitude in radians , to be used for more calculations in some methods
protected double LL To World Returning Lon ( double lat , double lon , Point 2 D lp ) { double phi deg = lat ; double phi = Proj Math . deg To Rad ( phi deg ) ; double lamba deg = lon ; double lamba = Proj Math . deg To Rad ( lamba deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= More Math...
protected double LLToWorldReturningLon ( double lat , double lon , Point2D lp ) { double phi_deg = lat ; double phi = ProjMath . degToRad ( phi_deg ) ; double lamba_deg = lon ; double lamba = ProjMath . degToRad ( lamba_deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= MoreMath . TWO_PI_D ;...
239
java-test-3996
java
What do not provide a null lp here ?
lltoworld that returns normalized longitude in radians , to be used for more calculations in some methods
protected double LL To World Returning Lon ( double lat , double lon , Point 2 D lp ) { double phi deg = lat ; double phi = Proj Math . deg To Rad ( phi deg ) ; double lamba deg = lon ; double lamba = Proj Math . deg To Rad ( lamba deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= More Math...
protected double LLToWorldReturningLon ( double lat , double lon , Point2D lp ) { double phi_deg = lat ; double phi = ProjMath . degToRad ( phi_deg ) ; double lamba_deg = lon ; double lamba = ProjMath . degToRad ( lamba_deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= MoreMath . TWO_PI_D ;...
239
java-test-3997
java
Do lltoworld that returns normalized longitude in radians , to be used for more calculations in some methods provide a null lp here if you want the world coordinates provided back to you ?
No
protected double LL To World Returning Lon ( double lat , double lon , Point 2 D lp ) { double phi deg = lat ; double phi = Proj Math . deg To Rad ( phi deg ) ; double lamba deg = lon ; double lamba = Proj Math . deg To Rad ( lamba deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= More Math...
protected double LLToWorldReturningLon ( double lat , double lon , Point2D lp ) { double phi_deg = lat ; double phi = ProjMath . degToRad ( phi_deg ) ; double lamba_deg = lon ; double lamba = ProjMath . degToRad ( lamba_deg ) ; double dlamda = lamba - lamdaf ; if ( dlamda > Math . PI ) { dlamda -= MoreMath . TWO_PI_D ;...
239
java-test-3998
java
For what purpose do the approximate value generate ?
for a given amount and unit size
protected static boolean approx Unit ( final String Builder sbuf , final int amount , final int size , final String name ) { int count = amount / size ; int remainder ; if ( count == NUM ) { return BOOL ; } remainder = amount - ( count * size ) ; if ( remainder >= ( size * NUM / NUM ) ) { count ++ ; sbuf . append ( cou...
protected static boolean approxUnit ( final StringBuilder sbuf , final int amount , final int size , final String name ) { int count = amount / size ; int remainder ; if ( count == _NUM ) { return _BOOL ; } remainder = amount - ( count * size ) ; if ( remainder >= ( size * _NUM / _NUM ) ) { count ++ ; sbuf . append ( c...
215
java-test-3999
java
What does the code execute ?
a bq request with exponential backoff
@ Deprecated public static < T > T execute With Back Off ( Abstract Google Client Request < T > client , String error , Object ... error Args ) throws IO Exception , Interrupted Exception { return execute With Back Off ( client , String . format ( error , error Args ) ) ; }
@ Deprecated public static < T > T executeWithBackOff ( AbstractGoogleClientRequest < T > client , String error , Object ... errorArgs ) throws IOException , InterruptedException { return executeWithBackOff ( client , String . format ( error , errorArgs ) ) ; }
57
java-test-4000
java
What does the method rebuild ?
the list of visible events
public void rebuild Event List ( boolean reset Selected ) { if ( logger . is Loggable ( Level . FINE ) ) { logger . fine ( STRING ) ; } all Events = null ; active Events = null ; hide Details ( ) ; init Interface ( get Active Events ( ) , reset Selected ) ; highlight Current Event ( current Time ) ; fire Property Chang...
public void rebuildEventList ( boolean resetSelected ) { if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( STRING ) ; } allEvents = null ; activeEvents = null ; hideDetails ( ) ; initInterface ( getActiveEvents ( ) , resetSelected ) ; highlightCurrentEvent ( currentTime ) ; firePropertyChange ( ActiveEvents...
86
java-test-4002
java
What does which add ?
all helper text colors , which are contained by an array
public final void test Add All Helper Text Colors From Array ( ) { int helper Text Color 1 = Color . BLACK ; int helper Text Color 2 = Color . GRAY ; int [ ] helper Text Colors 1 = new int [ NUM ] ; helper Text Colors 1 [ NUM ] = helper Text Color 1 ; helper Text Colors 1 [ NUM ] = helper Text Color 2 ; Password Edit T...
public final void testAddAllHelperTextColorsFromArray ( ) { int helperTextColor1 = Color . BLACK ; int helperTextColor2 = Color . GRAY ; int [ ] helperTextColors1 = new int [ _NUM ] ; helperTextColors1 [ _NUM ] = helperTextColor1 ; helperTextColors1 [ _NUM ] = helperTextColor2 ; PasswordEditText passwordEditText = new ...
216
java-test-4003
java
What does the method allow ?
to add all helper text colors , which are contained by an array
public final void test Add All Helper Text Colors From Array ( ) { int helper Text Color 1 = Color . BLACK ; int helper Text Color 2 = Color . GRAY ; int [ ] helper Text Colors 1 = new int [ NUM ] ; helper Text Colors 1 [ NUM ] = helper Text Color 1 ; helper Text Colors 1 [ NUM ] = helper Text Color 2 ; Password Edit T...
public final void testAddAllHelperTextColorsFromArray ( ) { int helperTextColor1 = Color . BLACK ; int helperTextColor2 = Color . GRAY ; int [ ] helperTextColors1 = new int [ _NUM ] ; helperTextColors1 [ _NUM ] = helperTextColor1 ; helperTextColors1 [ _NUM ] = helperTextColor2 ; PasswordEditText passwordEditText = new ...
216
java-test-4004
java
Do the directories have files in them ?
No
public static boolean delete Directory Subdirectories ( String root Directory ) { if ( ( root Directory == null ) ) { return BOOL ; } boolean did Successfully Delete All Directories = BOOL ; try { List < File > files = get List Of Files In A Directory ( root Directory ) ; for ( File file : files ) { if ( file . is Dire...
public static boolean deleteDirectorySubdirectories ( String rootDirectory ) { if ( ( rootDirectory == null ) ) { return _BOOL ; } boolean didSuccessfullyDeleteAllDirectories = _BOOL ; try { List < File > files = getListOfFilesInADirectory ( rootDirectory ) ; for ( File file : files ) { if ( file . isDirectory ( ) ) { ...
168
java-test-4005
java
What do clients construct ?
a bidi object
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-4006
java
What can clients avoid then ?
constructing a bidi object
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-4007
java
What will not cause this method to return true ?
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-4008
java
What requires bidi analysis ?
the specified text
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-4009
java
When be in the arabic shaped 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