id
stringlengths
11
16
language
stringclasses
2 values
question
stringlengths
13
844
answer
stringlengths
1
900
code
stringlengths
162
27.4k
code_original
stringlengths
162
26k
code_word_count
int64
51
5.96k
java-test-2504
java
For what purpose should the awt implementation call this function before changing the focus at the native level before changing the focus at the native level ?
for permission
static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ...
static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ...
880
java-test-2505
java
What owns the focus already ?
the specified heavyweight component
static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ...
static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ...
880
java-test-2506
java
What preceded it ?
a duplicate request
static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ...
static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ...
880
java-test-2507
java
What must an implementation ensure if ?
that calls to this method and native focus changes are atomic
static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ...
static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ...
880
java-test-2508
java
How is this accomplished typically ?
by only calling this function from the native event pumping thread , or by holding a global , native lock during invocation
static int should Natively Focus Heavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focused Window Change Allowed , long time , Caused Focus Event . Cause cause ) { if ( log . is Loggable ( Platform Logger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } ...
static int shouldNativelyFocusHeavyweight ( Component heavyweight , Component descendant , boolean temporary , boolean focusedWindowChangeAllowed , long time , CausedFocusEvent . Cause cause ) { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { if ( heavyweight == null ) { log . fine ( STRING ) ; } if ( time ...
880
java-test-2509
java
What does the code find ?
references to both the file itself
private void process Build File References ( Search Parameters params , Build File file ) { Workspace Path workspace Path = file . get Package Workspace Path ( ) ; if ( workspace Path == null ) { return ; } List < String > strings To Search = Lists . new Array List ( ) ; if ( file . get Blaze File Type ( ) == Blaze Fil...
private void processBuildFileReferences ( SearchParameters params , BuildFile file ) { WorkspacePath workspacePath = file . getPackageWorkspacePath ( ) ; if ( workspacePath == null ) { return ; } List < String > stringsToSearch = Lists . newArrayList ( ) ; if ( file . getBlazeFileType ( ) == BlazeFileType . BuildPackag...
157
java-test-2510
java
What does the code build ?
targets defined in the file
private void process Build File References ( Search Parameters params , Build File file ) { Workspace Path workspace Path = file . get Package Workspace Path ( ) ; if ( workspace Path == null ) { return ; } List < String > strings To Search = Lists . new Array List ( ) ; if ( file . get Blaze File Type ( ) == Blaze Fil...
private void processBuildFileReferences ( SearchParameters params , BuildFile file ) { WorkspacePath workspacePath = file . getPackageWorkspacePath ( ) ; if ( workspacePath == null ) { return ; } List < String > stringsToSearch = Lists . newArrayList ( ) ; if ( file . getBlazeFileType ( ) == BlazeFileType . BuildPackag...
157
java-test-2511
java
What does packet send ?
to remote node
public void send Packet ( Grid Clock Message msg , Inet Address addr , int port ) throws Ignite Checked Exception { try { Datagram Packet packet = new Datagram Packet ( msg . to Bytes ( ) , Grid Clock Message . PACKET SIZE , addr , port ) ; if ( log . is Debug Enabled ( ) ) log . debug ( STRING + msg + STRING + addr + ...
public void sendPacket ( GridClockMessage msg , InetAddress addr , int port ) throws IgniteCheckedException { try { DatagramPacket packet = new DatagramPacket ( msg . toBytes ( ) , GridClockMessage . PACKET_SIZE , addr , port ) ; if ( log . isDebugEnabled ( ) ) log . debug ( STRING + msg + STRING + addr + STRING + port...
128
java-test-2512
java
What sends to remote node ?
packet
public void send Packet ( Grid Clock Message msg , Inet Address addr , int port ) throws Ignite Checked Exception { try { Datagram Packet packet = new Datagram Packet ( msg . to Bytes ( ) , Grid Clock Message . PACKET SIZE , addr , port ) ; if ( log . is Debug Enabled ( ) ) log . debug ( STRING + msg + STRING + addr + ...
public void sendPacket ( GridClockMessage msg , InetAddress addr , int port ) throws IgniteCheckedException { try { DatagramPacket packet = new DatagramPacket ( msg . toBytes ( ) , GridClockMessage . PACKET_SIZE , addr , port ) ; if ( log . isDebugEnabled ( ) ) log . debug ( STRING + msg + STRING + addr + STRING + port...
128
java-test-2513
java
What does the code compute ?
the length of the prefix
private static int prefix Len ( String o1 , String o2 ) { final int l1 = o1 . length ( ) , l2 = o2 . length ( ) , l = l1 < l2 ? l1 : l2 ; int prefix = NUM ; while ( prefix < l && ( o1 . char At ( prefix ) == o2 . char At ( prefix ) ) ) { prefix ++ ; } return prefix ; }
private static int prefixLen ( String o1 , String o2 ) { final int l1 = o1 . length ( ) , l2 = o2 . length ( ) , l = l1 < l2 ? l1 : l2 ; int prefix = _NUM ; while ( prefix < l && ( o1 . charAt ( prefix ) == o2 . charAt ( prefix ) ) ) { prefix ++ ; } return prefix ; }
79
java-test-2514
java
What has changed its busy state ?
a wallet
public void fire Wallet Busy Change ( boolean new Wallet Is Busy ) { for ( Iterator < Wallet Busy Listener > it = wallet Busy Listeners . iterator ( ) ; it . has Next ( ) ; ) { Wallet Busy Listener wallet Busy Listener = it . next ( ) ; wallet Busy Listener . wallet Busy Change ( new Wallet Is Busy ) ; } }
public void fireWalletBusyChange ( boolean newWalletIsBusy ) { for ( Iterator < WalletBusyListener > it = walletBusyListeners . iterator ( ) ; it . hasNext ( ) ; ) { WalletBusyListener walletBusyListener = it . next ( ) ; walletBusyListener . walletBusyChange ( newWalletIsBusy ) ; } }
70
java-test-2515
java
What has a wallet changed ?
its busy state
public void fire Wallet Busy Change ( boolean new Wallet Is Busy ) { for ( Iterator < Wallet Busy Listener > it = wallet Busy Listeners . iterator ( ) ; it . has Next ( ) ; ) { Wallet Busy Listener wallet Busy Listener = it . next ( ) ; wallet Busy Listener . wallet Busy Change ( new Wallet Is Busy ) ; } }
public void fireWalletBusyChange ( boolean newWalletIsBusy ) { for ( Iterator < WalletBusyListener > it = walletBusyListeners . iterator ( ) ; it . hasNext ( ) ; ) { WalletBusyListener walletBusyListener = it . next ( ) ; walletBusyListener . walletBusyChange ( newWalletIsBusy ) ; } }
70
java-test-2516
java
What is stored in a file named < filename > . cot ?
cot
private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ...
private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {...
232
java-test-2517
java
Where did standard metadata store ?
in a file named < filename > . xml extended metadata
private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ...
private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {...
232
java-test-2518
java
Where is cot stored ?
in a file named < filename > . cot
private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ...
private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {...
232
java-test-2519
java
What is is stored in a file named < filename > - extended ?
xml extended metadata
private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ...
private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {...
232
java-test-2520
java
What do a string contain ?
the standard / extended metadata xml
private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ...
private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {...
232
java-test-2521
java
What will be stored in a map ?
the metadata information
private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ...
private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {...
232
java-test-2522
java
What stored in a file named < filename > . xml extended metadata ?
standard metadata
private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ...
private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {...
232
java-test-2523
java
Where is xml extended metadata is stored ?
in a file named < filename > - extended
private void initialize Metadata And COT ( ) { try { File home Dir = new File ( fedlet Home Dir ) ; String [ ] files = home Dir . list ( ) ; if ( ( files == null ) || ( files . length == NUM ) ) { return ; } for ( int i = NUM ; i < files . length ; i ++ ) { String file Name = files [ i ] ; if ( debug . message Enabled ...
private void initializeMetadataAndCOT ( ) { try { File homeDir = new File ( fedletHomeDir ) ; String [ ] files = homeDir . list ( ) ; if ( ( files == null ) || ( files . length == _NUM ) ) { return ; } for ( int i = _NUM ; i < files . length ; i ++ ) { String fileName = files [ i ] ; if ( debug . messageEnabled ( ) ) {...
232
java-test-2526
java
How do we re run on ?
based on java system properties and / or environment variables
private Platform create Platform ( ) { Platform platform ; try { String os Name = System . get Property ( STRING ) ; if ( os Name != null ) { os Name = os Name . to Lower Case ( ) ; logger . debug ( STRING , os Name ) ; if ( os Name . contains ( STRING ) ) { logger . debug ( STRING ) ; platform = new Windows Platform (...
private Platform createPlatform ( ) { Platform platform ; try { String osName = System . getProperty ( STRING ) ; if ( osName != null ) { osName = osName . toLowerCase ( ) ; logger . debug ( STRING , osName ) ; if ( osName . contains ( STRING ) ) { logger . debug ( STRING ) ; platform = new WindowsPlatform ( ) ; } else...
312
java-test-2527
java
What does we have ?
a large enough buffer for the given size
private void verify Buffer Size ( int sz ) { if ( sz > buf . length ) { byte [ ] old = buf ; buf = new byte [ Math . max ( sz , NUM * buf . length ) ] ; System . arraycopy ( old , NUM , buf , NUM , old . length ) ; old = null ; } }
private void verifyBufferSize ( int sz ) { if ( sz > buf . length ) { byte [ ] old = buf ; buf = new byte [ Math . max ( sz , _NUM * buf . length ) ] ; System . arraycopy ( old , _NUM , buf , _NUM , old . length ) ; old = null ; } }
68
java-test-2528
java
What does the code pull ?
all updated configs
void pulling Configs ( ) { Set < String > updated Configs = pulling Updated Configs ( config Md 5 s ) ; if ( updated Configs != null && ! updated Configs . is Empty ( ) ) { List < Config Item > config Items = fetch Configs ( Sets . new Hash Set ( updated Configs ) ) ; for ( Config Item item : config Items ) { config Md...
void pullingConfigs ( ) { Set < String > updatedConfigs = pullingUpdatedConfigs ( configMd5s ) ; if ( updatedConfigs != null && ! updatedConfigs . isEmpty ( ) ) { List < ConfigItem > configItems = fetchConfigs ( Sets . newHashSet ( updatedConfigs ) ) ; for ( ConfigItem item : configItems ) { configMd5s . put ( item . g...
107
java-test-2529
java
What does method remove ?
all the entries that correspond ( " dn " , ssotokenid ) supplied
protected static void remove Obj Impl Listeners ( Set dn Set , SSO Token ID sso Token Id ) { if ( debug . message Enabled ( ) ) { debug . message ( STRING ) ; } synchronized ( obj Impl Listeners ) { Iterator dn Itr = dn Set . iterator ( ) ; while ( dn Itr . has Next ( ) ) { String dn = ( String ) dn Itr . next ( ) ; Se...
protected static void removeObjImplListeners ( Set dnSet , SSOTokenID ssoTokenId ) { if ( debug . messageEnabled ( ) ) { debug . message ( STRING ) ; } synchronized ( objImplListeners ) { Iterator dnItr = dnSet . iterator ( ) ; while ( dnItr . hasNext ( ) ) { String dn = ( String ) dnItr . next ( ) ; Set objSet = ( Set...
228
java-test-2530
java
What must an xml document from specified input stream have ?
the requisite dtd uri
private static Document load Prefs Doc ( Input Stream in ) throws SAX Exception , IO Exception { Document Builder Factory dbf = Document Builder Factory . new Instance ( ) ; dbf . set Ignoring Element Content Whitespace ( BOOL ) ; dbf . set Validating ( BOOL ) ; dbf . set Coalescing ( BOOL ) ; dbf . set Ignoring Commen...
private static Document loadPrefsDoc ( InputStream in ) throws SAXException , IOException { DocumentBuilderFactory dbf = DocumentBuilderFactory . newInstance ( ) ; dbf . setIgnoringElementContentWhitespace ( _BOOL ) ; dbf . setValidating ( _BOOL ) ; dbf . setCoalescing ( _BOOL ) ; dbf . setIgnoringComments ( _BOOL ) ; ...
138
java-test-2531
java
What must have the requisite dtd uri ?
an xml document from specified input stream
private static Document load Prefs Doc ( Input Stream in ) throws SAX Exception , IO Exception { Document Builder Factory dbf = Document Builder Factory . new Instance ( ) ; dbf . set Ignoring Element Content Whitespace ( BOOL ) ; dbf . set Validating ( BOOL ) ; dbf . set Coalescing ( BOOL ) ; dbf . set Ignoring Commen...
private static Document loadPrefsDoc ( InputStream in ) throws SAXException , IOException { DocumentBuilderFactory dbf = DocumentBuilderFactory . newInstance ( ) ; dbf . setIgnoringElementContentWhitespace ( _BOOL ) ; dbf . setValidating ( _BOOL ) ; dbf . setCoalescing ( _BOOL ) ; dbf . setIgnoringComments ( _BOOL ) ; ...
138
java-test-2532
java
Does the code stop the extra gondola instances ?
No
public void stop ( ) { for ( Gondola g : gondolas ) { boolean status = g . stop ( ) ; if ( ! status ) { logger . warn ( STRING + g . get Host Id ( ) ) ; } } extras . clear ( ) ; members . clear ( ) ; }
public void stop ( ) { for ( Gondola g : gondolas ) { boolean status = g . stop ( ) ; if ( ! status ) { logger . warn ( STRING + g . getHostId ( ) ) ; } } extras . clear ( ) ; members . clear ( ) ; }
59
java-test-2533
java
What does the code not stop ?
the extra gondola instances
public void stop ( ) { for ( Gondola g : gondolas ) { boolean status = g . stop ( ) ; if ( ! status ) { logger . warn ( STRING + g . get Host Id ( ) ) ; } } extras . clear ( ) ; members . clear ( ) ; }
public void stop ( ) { for ( Gondola g : gondolas ) { boolean status = g . stop ( ) ; if ( ! status ) { logger . warn ( STRING + g . getHostId ( ) ) ; } } extras . clear ( ) ; members . clear ( ) ; }
59
java-test-2537
java
What do the tiles force optionally ?
to remain in memory
private void update Undrawn Tiles ( final List < Tile > undrawn Tiles , final int pre Draw Margin , final boolean force In Memory ) { if ( undrawn Tiles . is Empty ( ) ) { final Rectangle 2 D extended Bounds = new Rectangle 2 D . Double ( Math . max ( m model . get X ( ) - pre Draw Margin , NUM ) , Math . max ( m model...
private void updateUndrawnTiles ( final List < Tile > undrawnTiles , final int preDrawMargin , final boolean forceInMemory ) { if ( undrawnTiles . isEmpty ( ) ) { final Rectangle2D extendedBounds = new Rectangle2D . Double ( Math . max ( m_model . getX ( ) - preDrawMargin , _NUM ) , Math . max ( m_model . getY ( ) - pr...
185
java-test-2538
java
What did nothing leave ?
undrawn
private void update Undrawn Tiles ( final List < Tile > undrawn Tiles , final int pre Draw Margin , final boolean force In Memory ) { if ( undrawn Tiles . is Empty ( ) ) { final Rectangle 2 D extended Bounds = new Rectangle 2 D . Double ( Math . max ( m model . get X ( ) - pre Draw Margin , NUM ) , Math . max ( m model...
private void updateUndrawnTiles ( final List < Tile > undrawnTiles , final int preDrawMargin , final boolean forceInMemory ) { if ( undrawnTiles . isEmpty ( ) ) { final Rectangle2D extendedBounds = new Rectangle2D . Double ( Math . max ( m_model . getX ( ) - preDrawMargin , _NUM ) , Math . max ( m_model . getY ( ) - pr...
185
java-test-2539
java
What do we have ?
nothing left undrawn
private void update Undrawn Tiles ( final List < Tile > undrawn Tiles , final int pre Draw Margin , final boolean force In Memory ) { if ( undrawn Tiles . is Empty ( ) ) { final Rectangle 2 D extended Bounds = new Rectangle 2 D . Double ( Math . max ( m model . get X ( ) - pre Draw Margin , NUM ) , Math . max ( m model...
private void updateUndrawnTiles ( final List < Tile > undrawnTiles , final int preDrawMargin , final boolean forceInMemory ) { if ( undrawnTiles . isEmpty ( ) ) { final Rectangle2D extendedBounds = new Rectangle2D . Double ( Math . max ( m_model . getX ( ) - preDrawMargin , _NUM ) , Math . max ( m_model . getY ( ) - pr...
185
java-test-2540
java
Where have the tiles draw if we have nothing left undrawn if we have nothing left undrawn ?
within predrawmargin of us
private void update Undrawn Tiles ( final List < Tile > undrawn Tiles , final int pre Draw Margin , final boolean force In Memory ) { if ( undrawn Tiles . is Empty ( ) ) { final Rectangle 2 D extended Bounds = new Rectangle 2 D . Double ( Math . max ( m model . get X ( ) - pre Draw Margin , NUM ) , Math . max ( m model...
private void updateUndrawnTiles ( final List < Tile > undrawnTiles , final int preDrawMargin , final boolean forceInMemory ) { if ( undrawnTiles . isEmpty ( ) ) { final Rectangle2D extendedBounds = new Rectangle2D . Double ( Math . max ( m_model . getX ( ) - preDrawMargin , _NUM ) , Math . max ( m_model . getY ( ) - pr...
185
java-test-2541
java
For what purpose did the code call ?
to draw the current frame
public void on Draw Frame ( GL 10 gl Unused ) { boolean is New Frame = BOOL ; int frame Number = NUM ; synchronized ( this ) { if ( update Surface ) { is New Frame = BOOL ; frame Number = m Frame Number ; m Surface . update Tex Image ( ) ; m Surface . get Transform Matrix ( mST Matrix ) ; update Surface = BOOL ; } } GL...
public void onDrawFrame ( GL10 glUnused ) { boolean isNewFrame = _BOOL ; int frameNumber = _NUM ; synchronized ( this ) { if ( updateSurface ) { isNewFrame = _BOOL ; frameNumber = mFrameNumber ; mSurface . updateTexImage ( ) ; mSurface . getTransformMatrix ( mSTMatrix ) ; updateSurface = _BOOL ; } } GLES20 . glClearCol...
481
java-test-2542
java
When be the configuration be wrong ?
when we ' re not running
private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } }
private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } }
75
java-test-2543
java
How are we not restarted if it comes back to what it was when we were paused ?
implementation of the method from launchermodel . callbacks
private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } }
private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } }
75
java-test-2544
java
Where might resources have been loaded while we are paused ?
incoming places
private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } }
private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } }
75
java-test-2545
java
When might resources have been loaded incoming places ?
while we are paused
private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } }
private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } }
75
java-test-2546
java
In which direction be this called ?
from incoming places where resources might have been loaded while we are paused
private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } }
private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } }
75
java-test-2547
java
When did it be what ?
when we were paused
private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } }
private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } }
75
java-test-2548
java
What do this need ?
to be called from incoming places where resources might have been loaded while we are paused
private boolean wait Until Resume ( Runnable run , boolean delete Previous Runnables ) { if ( m Paused ) { Log . i ( TAG , STRING ) ; if ( delete Previous Runnables ) { while ( m Bind On Resume Callbacks . remove ( run ) ) { } } m Bind On Resume Callbacks . add ( run ) ; return BOOL ; } else { return BOOL ; } }
private boolean waitUntilResume ( Runnable run , boolean deletePreviousRunnables ) { if ( mPaused ) { Log . i ( TAG , STRING ) ; if ( deletePreviousRunnables ) { while ( mBindOnResumeCallbacks . remove ( run ) ) { } } mBindOnResumeCallbacks . add ( run ) ; return _BOOL ; } else { return _BOOL ; } }
75
java-test-2549
java
What do you set ?
the number of yarn containers to 3
public void send Message ( String type , String key , String value ) { if ( type . equals ( SET CONFIG TYPE ) ) { send Set Config Message ( key , value ) ; } else { throw new Illegal Argument Exception ( STRING + SET CONFIG TYPE + STRING ) ; } }
public void sendMessage ( String type , String key , String value ) { if ( type . equals ( SET_CONFIG_TYPE ) ) { sendSetConfigMessage ( key , value ) ; } else { throw new IllegalArgumentException ( STRING + SET_CONFIG_TYPE + STRING ) ; } }
57
java-test-2550
java
What does this create ?
a message containing ( type , key , value )
public void send Message ( String type , String key , String value ) { if ( type . equals ( SET CONFIG TYPE ) ) { send Set Config Message ( key , value ) ; } else { throw new Illegal Argument Exception ( STRING + SET CONFIG TYPE + STRING ) ; } }
public void sendMessage ( String type , String key , String value ) { if ( type . equals ( SET_CONFIG_TYPE ) ) { sendSetConfigMessage ( key , value ) ; } else { throw new IllegalArgumentException ( STRING + SET_CONFIG_TYPE + STRING ) ; } }
57
java-test-2551
java
What do you want ?
to set the number of yarn containers to 3
public void send Message ( String type , String key , String value ) { if ( type . equals ( SET CONFIG TYPE ) ) { send Set Config Message ( key , value ) ; } else { throw new Illegal Argument Exception ( STRING + SET CONFIG TYPE + STRING ) ; } }
public void sendMessage ( String type , String key , String value ) { if ( type . equals ( SET_CONFIG_TYPE ) ) { sendSetConfigMessage ( key , value ) ; } else { throw new IllegalArgumentException ( STRING + SET_CONFIG_TYPE + STRING ) ; } }
57
java-test-2552
java
What would you use if you want to set the number of yarn containers to 3 ?
" set - config " , " yarn . container . count " , " 3 " )
public void send Message ( String type , String key , String value ) { if ( type . equals ( SET CONFIG TYPE ) ) { send Set Config Message ( key , value ) ; } else { throw new Illegal Argument Exception ( STRING + SET CONFIG TYPE + STRING ) ; } }
public void sendMessage ( String type , String key , String value ) { if ( type . equals ( SET_CONFIG_TYPE ) ) { sendSetConfigMessage ( key , value ) ; } else { throw new IllegalArgumentException ( STRING + SET_CONFIG_TYPE + STRING ) ; } }
57
java-test-2553
java
What does the code modify of a key ?
interest ops
public void interest Ops ( Selectable Channel channel , int interest Ops ) throws Cancelled Key Exception { if ( channel != null ) { Selection Key key = channel . key For ( sel ) ; if ( key == null ) throw new Illegal Argument Exception ( STRING ) ; if ( ! key . is Valid ( ) ) return ; if ( Object Utils . object Equals...
public void interestOps ( SelectableChannel channel , int interestOps ) throws CancelledKeyException { if ( channel != null ) { SelectionKey key = channel . keyFor ( sel ) ; if ( key == null ) throw new IllegalArgumentException ( STRING ) ; if ( ! key . isValid ( ) ) return ; if ( ObjectUtils . objectEquals ( supposedI...
114
java-test-2554
java
Where do they exist ?
in a given file path
public static void create Parent Directories ( String path ) { File target File = new File ( path ) ; File parent = target File . get Parent File ( ) ; if ( ! parent . exists ( ) && ! parent . mkdirs ( ) ) { throw new Illegal State Exception ( STRING + parent ) ; } }
public static void createParentDirectories ( String path ) { File targetFile = new File ( path ) ; File parent = targetFile . getParentFile ( ) ; if ( ! parent . exists ( ) && ! parent . mkdirs ( ) ) { throw new IllegalStateException ( STRING + parent ) ; } }
63
java-test-2557
java
What is loading data task ?
the code stop
private void abort Loading ( ) { if ( thread == null ) return ; if ( thread . is Alive ( ) ) { thread . interrupt ( ) ; try { thread . join ( ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } }
private void abortLoading ( ) { if ( thread == null ) return ; if ( thread . isAlive ( ) ) { thread . interrupt ( ) ; try { thread . join ( ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } }
58
java-test-2558
java
What does the code stop load ?
data task
private void abort Loading ( ) { if ( thread == null ) return ; if ( thread . is Alive ( ) ) { thread . interrupt ( ) ; try { thread . join ( ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } }
private void abortLoading ( ) { if ( thread == null ) return ; if ( thread . isAlive ( ) ) { thread . interrupt ( ) ; try { thread . join ( ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } }
58
java-test-2559
java
What does not consume the excluded character ?
this
private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
84
java-test-2560
java
What does this not consume ?
the excluded character
private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
84
java-test-2561
java
Does this consume the excluded character ?
No
private String next To Internal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . char At ( pos ) ; if ( c == STRING || c == STRING || excluded . index Of ( c ) != - NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
private String nextToInternal ( String excluded ) { int start = pos ; for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == STRING || c == STRING || excluded . indexOf ( c ) != - _NUM ) { return in . substring ( start , pos ) ; } } return in . substring ( start ) ; }
84
java-test-2563
java
For what purpose should the certificate be issued with a ca certificate , especially for the server applications ?
to ensure interoperability with other client applications
public static org . opcfoundation . ua . transport . security . Key Pair create Https Certificate ( String host Name , String application Uri , int days , org . opcfoundation . ua . transport . security . Key Pair issuer Cert ) throws IO Exception , General Security Exception { if ( application Uri == null ) throw new ...
public static org . opcfoundation . ua . transport . security . KeyPair createHttpsCertificate ( String hostName , String applicationUri , int days , org . opcfoundation . ua . transport . security . KeyPair issuerCert ) throws IOException , GeneralSecurityException { if ( applicationUri == null ) throw new NullPointer...
165
java-test-2564
java
What does the code create ?
a new certificate that can be used with the https protocol
public static org . opcfoundation . ua . transport . security . Key Pair create Https Certificate ( String host Name , String application Uri , int days , org . opcfoundation . ua . transport . security . Key Pair issuer Cert ) throws IO Exception , General Security Exception { if ( application Uri == null ) throw new ...
public static org . opcfoundation . ua . transport . security . KeyPair createHttpsCertificate ( String hostName , String applicationUri , int days , org . opcfoundation . ua . transport . security . KeyPair issuerCert ) throws IOException , GeneralSecurityException { if ( applicationUri == null ) throw new NullPointer...
165
java-test-2565
java
How should the certificate be issued to ensure interoperability with other client applications ?
with a ca certificate , especially for the server applications
public static org . opcfoundation . ua . transport . security . Key Pair create Https Certificate ( String host Name , String application Uri , int days , org . opcfoundation . ua . transport . security . Key Pair issuer Cert ) throws IO Exception , General Security Exception { if ( application Uri == null ) throw new ...
public static org . opcfoundation . ua . transport . security . KeyPair createHttpsCertificate ( String hostName , String applicationUri , int days , org . opcfoundation . ua . transport . security . KeyPair issuerCert ) throws IOException , GeneralSecurityException { if ( applicationUri == null ) throw new NullPointer...
165
java-test-2566
java
How can a new certificate be used ?
with the https protocol
public static org . opcfoundation . ua . transport . security . Key Pair create Https Certificate ( String host Name , String application Uri , int days , org . opcfoundation . ua . transport . security . Key Pair issuer Cert ) throws IO Exception , General Security Exception { if ( application Uri == null ) throw new ...
public static org . opcfoundation . ua . transport . security . KeyPair createHttpsCertificate ( String hostName , String applicationUri , int days , org . opcfoundation . ua . transport . security . KeyPair issuerCert ) throws IOException , GeneralSecurityException { if ( applicationUri == null ) throw new NullPointer...
165
java-test-2567
java
What is exposed on procedure exit ?
a heap variable
boolean is Exposed On Exit ( Heap Variable < Object > H ) { for ( Iterator < Heap Operand < Object > > i = iterate Heap Uses ( H ) ; i . has Next ( ) ; ) { Heap Operand < Object > op = i . next ( ) ; Instruction s = op . instruction ; if ( exits . contains ( s ) ) { return BOOL ; } } return BOOL ; }
boolean isExposedOnExit ( HeapVariable < Object > H ) { for ( Iterator < HeapOperand < Object > > i = iterateHeapUses ( H ) ; i . hasNext ( ) ; ) { HeapOperand < Object > op = i . next ( ) ; Instruction s = op . instruction ; if ( exits . contains ( s ) ) { return _BOOL ; } } return _BOOL ; }
81
java-test-2569
java
Where does the index return ?
inside the given string where a comment starts ( usually the first
public static int comment Start ( String line ) { boolean insidequote = BOOL ; for ( int i = NUM ; i < line . length ( ) ; i ++ ) { char current = line . char At ( i ) ; if ( current == STRING ) { insidequote = ! insidequote ; } else if ( ! insidequote ) { if ( current == STRING ) { return i ; } } } return - NUM ; }
public static int commentStart ( String line ) { boolean insidequote = _BOOL ; for ( int i = _NUM ; i < line . length ( ) ; i ++ ) { char current = line . charAt ( i ) ; if ( current == STRING ) { insidequote = ! insidequote ; } else if ( ! insidequote ) { if ( current == STRING ) { return i ; } } } return - _NUM ; }
83
java-test-2577
java
What does the code instantiate ?
a new vendor option model
public Vendor Option Table Model ( Map < Vendor Option Type Interface , String > options ) { column Names [ NUM ] = Localisation . get String ( Vendor Option Table Model . class , STRING ) ; column Names [ NUM ] = Localisation . get String ( Vendor Option Table Model . class , STRING ) ; name Map = options ; List < Ven...
public VendorOptionTableModel ( Map < VendorOptionTypeInterface , String > options ) { columnNames [ _NUM ] = Localisation . getString ( VendorOptionTableModel . class , STRING ) ; columnNames [ _NUM ] = Localisation . getString ( VendorOptionTableModel . class , STRING ) ; nameMap = options ; List < VendorOptionTypeIn...
141
java-test-2578
java
What does the code load a resource ?
from the current set of resource loaders
protected Resource load Resource ( String resource Name , int resource Type , String encoding ) throws Resource Not Found Exception , Parse Error Exception , Exception { Resource resource = Resource Factory . get Resource ( resource Name , resource Type ) ; resource . set Runtime Services ( rsvc ) ; resource . set Name...
protected Resource loadResource ( String resourceName , int resourceType , String encoding ) throws ResourceNotFoundException , ParseErrorException , Exception { Resource resource = ResourceFactory . getResource ( resourceName , resourceType ) ; resource . setRuntimeServices ( rsvc ) ; resource . setName ( resourceName...
268
java-test-2579
java
In which direction does the code flatten a feature vector to a with dropout ?
from example
public static Map < String , Map < String , Double > > flatten Feature With Dropout ( Feature Vector feature Vector , double dropout ) { long seed = random . next Long ( ) ; return flatten Feature Stream To Map ( flatten Feature With Dropout As Stream ( feature Vector , dropout , seed ) ) ; }
public static Map < String , Map < String , Double > > flattenFeatureWithDropout ( FeatureVector featureVector , double dropout ) { long seed = random . nextLong ( ) ; return flattenFeatureStreamToMap ( flattenFeatureWithDropoutAsStream ( featureVector , dropout , seed ) ) ; }
61
java-test-2580
java
How does the code flatten a feature vector to a from example ?
with dropout
public static Map < String , Map < String , Double > > flatten Feature With Dropout ( Feature Vector feature Vector , double dropout ) { long seed = random . next Long ( ) ; return flatten Feature Stream To Map ( flatten Feature With Dropout As Stream ( feature Vector , dropout , seed ) ) ; }
public static Map < String , Map < String , Double > > flattenFeatureWithDropout ( FeatureVector featureVector , double dropout ) { long seed = random . nextLong ( ) ; return flattenFeatureStreamToMap ( flattenFeatureWithDropoutAsStream ( featureVector , dropout , seed ) ) ; }
61
java-test-2582
java
In which direction is the quantile drawn as a gaussian gradient ?
from the base plot dots
public Gaussian Density Layer Plot ( Plot p , int ax , double [ ] sigma ) { super ( STRING + p . name , p ) ; if ( sigma != null ) Array . check Length ( sigma , p . get Data ( ) . length ) ; this . sigma = sigma ; axis = ax ; if ( sigma != null ) { gausspdf sigma = new float [ sigma . length ] [ NUM ] ; for ( int i = ...
public GaussianDensityLayerPlot ( Plot p , int ax , double [ ] sigma ) { super ( STRING + p . name , p ) ; if ( sigma != null ) Array . checkLength ( sigma , p . getData ( ) . length ) ; this . sigma = sigma ; axis = ax ; if ( sigma != null ) { gausspdf_sigma = new float [ sigma . length ] [ _NUM ] ; for ( int i = _NUM...
158
java-test-2583
java
What does the code build ?
a gauss quantile plot based on given plot
public Gaussian Density Layer Plot ( Plot p , int ax , double [ ] sigma ) { super ( STRING + p . name , p ) ; if ( sigma != null ) Array . check Length ( sigma , p . get Data ( ) . length ) ; this . sigma = sigma ; axis = ax ; if ( sigma != null ) { gausspdf sigma = new float [ sigma . length ] [ NUM ] ; for ( int i = ...
public GaussianDensityLayerPlot ( Plot p , int ax , double [ ] sigma ) { super ( STRING + p . name , p ) ; if ( sigma != null ) Array . checkLength ( sigma , p . getData ( ) . length ) ; this . sigma = sigma ; axis = ax ; if ( sigma != null ) { gausspdf_sigma = new float [ sigma . length ] [ _NUM ] ; for ( int i = _NUM...
158
java-test-2584
java
What does the code generate ?
a uniform random zmat
public static Zmat uzmat ( int m , int n ) throws Jampack Exception { Zmat zm = new Zmat ( m , n ) ; for ( int i = NUM ; i < m ; i ++ ) { for ( int j = NUM ; j < n ; j ++ ) { zm . re [ i ] [ j ] = R . next Double ( ) ; zm . im [ i ] [ j ] = R . next Double ( ) ; } } return zm ; }
public static Zmat uzmat ( int m , int n ) throws JampackException { Zmat zm = new Zmat ( m , n ) ; for ( int i = _NUM ; i < m ; i ++ ) { for ( int j = _NUM ; j < n ; j ++ ) { zm . re [ i ] [ j ] = R . nextDouble ( ) ; zm . im [ i ] [ j ] = R . nextDouble ( ) ; } } return zm ; }
96
java-test-2585
java
What does the code create with the provided alpha parameters ?
a new dirichlet density function
public Dirichlet Density Function ( double [ ] alphas ) { this . alphas = alphas ; if ( alphas . length < NUM ) { log . warning ( STRING ) ; } for ( int i = NUM ; i < alphas . length ; i ++ ) { if ( alphas [ i ] <= NUM ) { log . warning ( STRING ) ; } } C = calculate C ( ) ; }
public DirichletDensityFunction ( double [ ] alphas ) { this . alphas = alphas ; if ( alphas . length < _NUM ) { log . warning ( STRING ) ; } for ( int i = _NUM ; i < alphas . length ; i ++ ) { if ( alphas [ i ] <= _NUM ) { log . warning ( STRING ) ; } } C = calculateC ( ) ; }
78
java-test-2586
java
When did we hit an exception ?
at a bad time ( when updating the index files )
void abort ( ) { aborted = BOOL ; try { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pending Updates . clear ( ) ; } finally { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; }...
void abort ( ) { aborted = _BOOL ; try { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pendingUpdates . clear ( ) ; } finally { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } } }
85
java-test-2587
java
What must we discard ?
all currently buffered docs
void abort ( ) { aborted = BOOL ; try { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pending Updates . clear ( ) ; } finally { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; }...
void abort ( ) { aborted = _BOOL ; try { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pendingUpdates . clear ( ) ; } finally { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } } }
85
java-test-2588
java
When did any docs add ?
since last flush
void abort ( ) { aborted = BOOL ; try { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pending Updates . clear ( ) ; } finally { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; }...
void abort ( ) { aborted = _BOOL ; try { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pendingUpdates . clear ( ) ; } finally { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } } }
85
java-test-2589
java
What does this discard ?
any docs added since last flush
void abort ( ) { aborted = BOOL ; try { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pending Updates . clear ( ) ; } finally { if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING ) ; }...
void abort ( ) { aborted = _BOOL ; try { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } try { consumer . abort ( ) ; } catch ( Throwable t ) { } pendingUpdates . clear ( ) ; } finally { if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING ) ; } } }
85
java-test-2593
java
When does the code split the string ?
every time the given character has been found
public static String [ ] split ( String string , char c ) { if ( count Matches ( string , c ) <= NUM ) return new String [ ] { string } ; String s = string + c ; String [ ] sa = new String [ count Matches ( string , c ) + NUM ] ; String Builder sb = new String Builder ( ) ; char [ ] ca = s . to Char Array ( ) ; int n =...
public static String [ ] split ( String string , char c ) { if ( countMatches ( string , c ) <= _NUM ) return new String [ ] { string } ; String s = string + c ; String [ ] sa = new String [ countMatches ( string , c ) + _NUM ] ; StringBuilder sb = new StringBuilder ( ) ; char [ ] ca = s . toCharArray ( ) ; int n = _NU...
159
java-test-2594
java
When did the code call ?
after an element of the stylesheet got processed
public void leave ( Node Info element , Context context ) { if ( element . get Node Type ( ) == Node Info . ELEMENT ) { my Debugger . leave ( ) ; if ( TRACE ) { indent = indent . substring ( NUM , indent . length ( ) - NUM ) ; trace ( indent + STRING + element . get Display Name ( ) + STRING ) ; } } }
public void leave ( NodeInfo element , Context context ) { if ( element . getNodeType ( ) == NodeInfo . ELEMENT ) { myDebugger . leave ( ) ; if ( TRACE ) { indent = indent . substring ( _NUM , indent . length ( ) - _NUM ) ; trace ( indent + STRING + element . getDisplayName ( ) + STRING ) ; } } }
77
java-test-2597
java
What does the code start using the provided factory creator on the factory ' s default uri path ?
a factory service for the given instance service class
public Service Host start Factory ( Class < ? extends Service > inst Service Class , Supplier < Factory Service > factory Creator ) { URI factory Uri = Uri Utils . build Factory Uri ( this , inst Service Class ) ; return start Factory ( factory Creator , factory Uri . get Path ( ) ) ; }
public ServiceHost startFactory ( Class < ? extends Service > instServiceClass , Supplier < FactoryService > factoryCreator ) { URI factoryUri = UriUtils . buildFactoryUri ( this , instServiceClass ) ; return startFactory ( factoryCreator , factoryUri . getPath ( ) ) ; }
60
java-test-2598
java
How does the code start a factory service for the given instance service class ?
using the provided factory creator on the factory ' s default uri path
public Service Host start Factory ( Class < ? extends Service > inst Service Class , Supplier < Factory Service > factory Creator ) { URI factory Uri = Uri Utils . build Factory Uri ( this , inst Service Class ) ; return start Factory ( factory Creator , factory Uri . get Path ( ) ) ; }
public ServiceHost startFactory ( Class < ? extends Service > instServiceClass , Supplier < FactoryService > factoryCreator ) { URI factoryUri = UriUtils . buildFactoryUri ( this , instServiceClass ) ; return startFactory ( factoryCreator , factoryUri . getPath ( ) ) ; }
60
java-test-2599
java
What is representing an open exchange engine ?
a filename ( without path )
public static String open Exchange File Name ( Chess Engine engine ) { String ret = STRING ; if ( engine . get Package Name ( ) != null ) ret += sanitize String ( engine . get Package Name ( ) ) ; ret += STRING ; if ( engine . get File Name ( ) != null ) ret += sanitize String ( engine . get File Name ( ) ) ; return re...
public static String openExchangeFileName ( ChessEngine engine ) { String ret = STRING ; if ( engine . getPackageName ( ) != null ) ret += sanitizeString ( engine . getPackageName ( ) ) ; ret += STRING ; if ( engine . getFileName ( ) != null ) ret += sanitizeString ( engine . getFileName ( ) ) ; return ret ; }
78
java-test-2600
java
What do a filename ( without path ) represent ?
an open exchange engine
public static String open Exchange File Name ( Chess Engine engine ) { String ret = STRING ; if ( engine . get Package Name ( ) != null ) ret += sanitize String ( engine . get Package Name ( ) ) ; ret += STRING ; if ( engine . get File Name ( ) != null ) ret += sanitize String ( engine . get File Name ( ) ) ; return re...
public static String openExchangeFileName ( ChessEngine engine ) { String ret = STRING ; if ( engine . getPackageName ( ) != null ) ret += sanitizeString ( engine . getPackageName ( ) ) ; ret += STRING ; if ( engine . getFileName ( ) != null ) ret += sanitizeString ( engine . getFileName ( ) ) ; return ret ; }
78
java-test-2604
java
How do rook bonus compute ?
on open / half - open file
private final int rook Bonus ( Position pos ) { int score = NUM ; final long w Pawns = pos . piece Type BB [ Piece . WPAWN ] ; final long b Pawns = pos . piece Type BB [ Piece . BPAWN ] ; final long occupied = pos . white BB | pos . black BB ; long m = pos . piece Type BB [ Piece . WROOK ] ; while ( m != NUM ) { int sq...
private final int rookBonus ( Position pos ) { int score = _NUM ; final long wPawns = pos . pieceTypeBB [ Piece . WPAWN ] ; final long bPawns = pos . pieceTypeBB [ Piece . BPAWN ] ; final long occupied = pos . whiteBB | pos . blackBB ; long m = pos . pieceTypeBB [ Piece . WROOK ] ; while ( m != _NUM ) { int sq = BitBoa...
521
java-test-2605
java
What does this method delete ?
a record in generalconfig table corresponding to config group and key passed
@ Request Mapping ( value = { STRING , STRING } , method = Request Method . DELETE ) @ Response Body public Rest Wrapper delete ( @ Path Variable ( STRING ) String config Group , @ Path Variable ( STRING ) String key , Principal principal ) { Rest Wrapper rest Wrapper = null ; try { General Config general Config = new ...
@ RequestMapping ( value = { STRING , STRING } , method = RequestMethod . DELETE ) @ ResponseBody public RestWrapper delete ( @ PathVariable ( STRING ) String configGroup , @ PathVariable ( STRING ) String key , Principal principal ) { RestWrapper restWrapper = null ; try { GeneralConfig generalConfig = new GeneralConf...
228
java-test-2606
java
What must both polygons have ?
loops with the same cyclic vertex order and the same nesting hierarchy
boolean boundary Approx Equals ( S2 Polygon b , double max Error ) { if ( num Loops ( ) != b . num Loops ( ) ) { log . severe ( STRING + Integer . to String ( num Loops ( ) ) + STRING + Integer . to String ( b . num Loops ( ) ) ) ; return BOOL ; } for ( int i = NUM ; i < num Loops ( ) ; ++ i ) { S2 Loop a Loop = loop (...
boolean boundaryApproxEquals ( S2Polygon b , double maxError ) { if ( numLoops ( ) != b . numLoops ( ) ) { log . severe ( STRING + Integer . toString ( numLoops ( ) ) + STRING + Integer . toString ( b . numLoops ( ) ) ) ; return _BOOL ; } for ( int i = _NUM ; i < numLoops ( ) ; ++ i ) { S2Loop aLoop = loop ( i ) ; bool...
183
java-test-2607
java
What have the same boundary except for vertex perturbations ?
two polygons
boolean boundary Approx Equals ( S2 Polygon b , double max Error ) { if ( num Loops ( ) != b . num Loops ( ) ) { log . severe ( STRING + Integer . to String ( num Loops ( ) ) + STRING + Integer . to String ( b . num Loops ( ) ) ) ; return BOOL ; } for ( int i = NUM ; i < num Loops ( ) ; ++ i ) { S2 Loop a Loop = loop (...
boolean boundaryApproxEquals ( S2Polygon b , double maxError ) { if ( numLoops ( ) != b . numLoops ( ) ) { log . severe ( STRING + Integer . toString ( numLoops ( ) ) + STRING + Integer . toString ( b . numLoops ( ) ) ) ; return _BOOL ; } for ( int i = _NUM ; i < numLoops ( ) ; ++ i ) { S2Loop aLoop = loop ( i ) ; bool...
183
java-test-2608
java
What must have loops with the same cyclic vertex order and the same nesting hierarchy ?
both polygons
boolean boundary Approx Equals ( S2 Polygon b , double max Error ) { if ( num Loops ( ) != b . num Loops ( ) ) { log . severe ( STRING + Integer . to String ( num Loops ( ) ) + STRING + Integer . to String ( b . num Loops ( ) ) ) ; return BOOL ; } for ( int i = NUM ; i < num Loops ( ) ; ++ i ) { S2 Loop a Loop = loop (...
boolean boundaryApproxEquals ( S2Polygon b , double maxError ) { if ( numLoops ( ) != b . numLoops ( ) ) { log . severe ( STRING + Integer . toString ( numLoops ( ) ) + STRING + Integer . toString ( b . numLoops ( ) ) ) ; return _BOOL ; } for ( int i = _NUM ; i < numLoops ( ) ; ++ i ) { S2Loop aLoop = loop ( i ) ; bool...
183
java-test-2609
java
What do two polygons have ?
the same boundary except for vertex perturbations
boolean boundary Approx Equals ( S2 Polygon b , double max Error ) { if ( num Loops ( ) != b . num Loops ( ) ) { log . severe ( STRING + Integer . to String ( num Loops ( ) ) + STRING + Integer . to String ( b . num Loops ( ) ) ) ; return BOOL ; } for ( int i = NUM ; i < num Loops ( ) ; ++ i ) { S2 Loop a Loop = loop (...
boolean boundaryApproxEquals ( S2Polygon b , double maxError ) { if ( numLoops ( ) != b . numLoops ( ) ) { log . severe ( STRING + Integer . toString ( numLoops ( ) ) + STRING + Integer . toString ( b . numLoops ( ) ) ) ; return _BOOL ; } for ( int i = _NUM ; i < numLoops ( ) ; ++ i ) { S2Loop aLoop = loop ( i ) ; bool...
183
java-test-2610
java
What could exist the minimum height ?
a given range count
static public int estimate Height ( final int entry Count , final int branching Factor ) { if ( entry Count < branching Factor ) return NUM ; final double logm = Math . log ( branching Factor ) ; final double logn = Math . log ( entry Count ) ; final double h = ( logm / logn ) - NUM ; return ( int ) Math . ceil ( h ) ;...
static public int estimateHeight ( final int entryCount , final int branchingFactor ) { if ( entryCount < branchingFactor ) return _NUM ; final double logm = Math . log ( branchingFactor ) ; final double logn = Math . log ( entryCount ) ; final double h = ( logm / logn ) - _NUM ; return ( int ) Math . ceil ( h ) ; }
76
java-test-2611
java
What can this be used also ?
to find the minimum height at which there could exist a given range count )
static public int estimate Height ( final int entry Count , final int branching Factor ) { if ( entry Count < branching Factor ) return NUM ; final double logm = Math . log ( branching Factor ) ; final double logn = Math . log ( entry Count ) ; final double h = ( logm / logn ) - NUM ; return ( int ) Math . ceil ( h ) ;...
static public int estimateHeight ( final int entryCount , final int branchingFactor ) { if ( entryCount < branchingFactor ) return _NUM ; final double logm = Math . log ( branchingFactor ) ; final double logn = Math . log ( entryCount ) ; final double h = ( logm / logn ) - _NUM ; return ( int ) Math . ceil ( h ) ; }
76
java-test-2612
java
What does the code compute ?
the height of the b + tree
static public int estimate Height ( final int entry Count , final int branching Factor ) { if ( entry Count < branching Factor ) return NUM ; final double logm = Math . log ( branching Factor ) ; final double logn = Math . log ( entry Count ) ; final double h = ( logm / logn ) - NUM ; return ( int ) Math . ceil ( h ) ;...
static public int estimateHeight ( final int entryCount , final int branchingFactor ) { if ( entryCount < branchingFactor ) return _NUM ; final double logm = Math . log ( branchingFactor ) ; final double logn = Math . log ( entryCount ) ; final double h = ( logm / logn ) - _NUM ; return ( int ) Math . ceil ( h ) ; }
76
java-test-2613
java
Where could a given range count exist ?
the minimum height
static public int estimate Height ( final int entry Count , final int branching Factor ) { if ( entry Count < branching Factor ) return NUM ; final double logm = Math . log ( branching Factor ) ; final double logn = Math . log ( entry Count ) ; final double h = ( logm / logn ) - NUM ; return ( int ) Math . ceil ( h ) ;...
static public int estimateHeight ( final int entryCount , final int branchingFactor ) { if ( entryCount < branchingFactor ) return _NUM ; final double logm = Math . log ( branchingFactor ) ; final double logn = Math . log ( entryCount ) ; final double h = ( logm / logn ) - _NUM ; return ( int ) Math . ceil ( h ) ; }
76
java-test-2616
java
What does the code remove ?
the given option
public synchronized void remove Option ( String key ) { Key k = new Key ( key ) ; options . remove ( key ) ; Hash Set < String > on = option Names . get ( k . get Section Name ( ) ) ; if ( on != null ) { on . remove ( k . get Option Name ( ) ) ; if ( on . is Empty ( ) ) { cleanup Section ( k . get Section Name ( ) ) ; ...
public synchronized void removeOption ( String key ) { Key k = new Key ( key ) ; options . remove ( key ) ; HashSet < String > on = optionNames . get ( k . getSectionName ( ) ) ; if ( on != null ) { on . remove ( k . getOptionName ( ) ) ; if ( on . isEmpty ( ) ) { cleanupSection ( k . getSectionName ( ) ) ; } } }
92
java-test-2617
java
What does the code calculate ?
the coordinates for the length of a single bar
protected double [ ] calculate Bar L 0 L 1 ( double value ) { double lclip = get Lower Clip ( ) ; double uclip = get Upper Clip ( ) ; double bar Low = Math . min ( this . base , value ) ; double bar High = Math . max ( this . base , value ) ; if ( bar High < lclip ) { return null ; } if ( bar Low > uclip ) { return nul...
protected double [ ] calculateBarL0L1 ( double value ) { double lclip = getLowerClip ( ) ; double uclip = getUpperClip ( ) ; double barLow = Math . min ( this . base , value ) ; double barHigh = Math . max ( this . base , value ) ; if ( barHigh < lclip ) { return null ; } if ( barLow > uclip ) { return null ; } barLow ...
127
java-test-2618
java
What do an encoded run occupy ?
3 characters
static final String array To RLE String ( short [ ] a ) { String Buffer buffer = new String Buffer ( ) ; buffer . append ( ( char ) ( a . length > > NUM ) ) ; buffer . append ( ( char ) a . length ) ; short run Value = a [ NUM ] ; int run Length = NUM ; for ( int i = NUM ; i < a . length ; ++ i ) { short s = a [ i ] ; ...
static final String arrayToRLEString ( short [ ] a ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( ( char ) ( a . length > > _NUM ) ) ; buffer . append ( ( char ) a . length ) ; short runValue = a [ _NUM ] ; int runLength = _NUM ; for ( int i = _NUM ; i < a . length ; ++ i ) { short s = a [ i ] ; if ...
156
java-test-2619
java
How do we represent this if we encounter a run where n = = escape ?
as : c escape n - 1 c
static final String array To RLE String ( short [ ] a ) { String Buffer buffer = new String Buffer ( ) ; buffer . append ( ( char ) ( a . length > > NUM ) ) ; buffer . append ( ( char ) a . length ) ; short run Value = a [ NUM ] ; int run Length = NUM ; for ( int i = NUM ; i < a . length ; ++ i ) { short s = a [ i ] ; ...
static final String arrayToRLEString ( short [ ] a ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( ( char ) ( a . length > > _NUM ) ) ; buffer . append ( ( char ) a . length ) ; short runValue = a [ _NUM ] ; int runLength = _NUM ; for ( int i = _NUM ; i < a . length ; ++ i ) { short s = a [ i ] ; if ...
156
java-test-2620
java
What do a string represent ?
a short array
static final String array To RLE String ( short [ ] a ) { String Buffer buffer = new String Buffer ( ) ; buffer . append ( ( char ) ( a . length > > NUM ) ) ; buffer . append ( ( char ) a . length ) ; short run Value = a [ NUM ] ; int run Length = NUM ; for ( int i = NUM ; i < a . length ; ++ i ) { short s = a [ i ] ; ...
static final String arrayToRLEString ( short [ ] a ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( ( char ) ( a . length > > _NUM ) ) ; buffer . append ( ( char ) a . length ) ; short runValue = a [ _NUM ] ; int runLength = _NUM ; for ( int i = _NUM ; i < a . length ; ++ i ) { short s = a [ i ] ; if ...
156
java-test-2621
java
What do we encounter ?
a run where n = = escape
static final String array To RLE String ( short [ ] a ) { String Buffer buffer = new String Buffer ( ) ; buffer . append ( ( char ) ( a . length > > NUM ) ) ; buffer . append ( ( char ) a . length ) ; short run Value = a [ NUM ] ; int run Length = NUM ; for ( int i = NUM ; i < a . length ; ++ i ) { short s = a [ i ] ; ...
static final String arrayToRLEString ( short [ ] a ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( ( char ) ( a . length > > _NUM ) ) ; buffer . append ( ( char ) a . length ) ; short runValue = a [ _NUM ] ; int runLength = _NUM ; for ( int i = _NUM ; i < a . length ; ++ i ) { short s = a [ i ] ; if ...
156
java-test-2622
java
What does the code generate ?
a sidc ( symbol identification coding scheme ) for an aircraft originating the given county and departure airport use type
private String create Aircraft Symbol Code ( String country , String airport Use ) { String identity ; if ( friends . contains ( country ) ) { identity = STRING ; } else if ( neutrals . contains ( country ) ) { identity = STRING ; } else if ( hostiles . contains ( country ) ) { identity = STRING ; } else { identity = S...
private String createAircraftSymbolCode ( String country , String airportUse ) { String identity ; if ( friends . contains ( country ) ) { identity = STRING ; } else if ( neutrals . contains ( country ) ) { identity = STRING ; } else if ( hostiles . contains ( country ) ) { identity = STRING ; } else { identity = STRIN...
136
java-test-2623
java
What is originating the given county and departure airport use type ?
an aircraft
private String create Aircraft Symbol Code ( String country , String airport Use ) { String identity ; if ( friends . contains ( country ) ) { identity = STRING ; } else if ( neutrals . contains ( country ) ) { identity = STRING ; } else if ( hostiles . contains ( country ) ) { identity = STRING ; } else { identity = S...
private String createAircraftSymbolCode ( String country , String airportUse ) { String identity ; if ( friends . contains ( country ) ) { identity = STRING ; } else if ( neutrals . contains ( country ) ) { identity = STRING ; } else if ( hostiles . contains ( country ) ) { identity = STRING ; } else { identity = STRIN...
136
java-test-2624
java
What do an aircraft originate ?
the given county and departure airport use type
private String create Aircraft Symbol Code ( String country , String airport Use ) { String identity ; if ( friends . contains ( country ) ) { identity = STRING ; } else if ( neutrals . contains ( country ) ) { identity = STRING ; } else if ( hostiles . contains ( country ) ) { identity = STRING ; } else { identity = S...
private String createAircraftSymbolCode ( String country , String airportUse ) { String identity ; if ( friends . contains ( country ) ) { identity = STRING ; } else if ( neutrals . contains ( country ) ) { identity = STRING ; } else if ( hostiles . contains ( country ) ) { identity = STRING ; } else { identity = STRIN...
136
java-test-2625
java
What do a hidden unit take ?
the provided number of inputs
protected Hidden Unit ( Unit [ ] units , double [ ] weights ) { this . units = units ; this . weights = new double [ weights . length ] ; System . arraycopy ( weights , NUM , this . weights , NUM , weights . length ) ; }
protected HiddenUnit ( Unit [ ] units , double [ ] weights ) { this . units = units ; this . weights = new double [ weights . length ] ; System . arraycopy ( weights , _NUM , this . weights , _NUM , weights . length ) ; }
53
java-test-2626
java
What does the initial weights set ?
to be a copy of the provided weights
protected Hidden Unit ( Unit [ ] units , double [ ] weights ) { this . units = units ; this . weights = new double [ weights . length ] ; System . arraycopy ( weights , NUM , this . weights , NUM , weights . length ) ; }
protected HiddenUnit ( Unit [ ] units , double [ ] weights ) { this . units = units ; this . weights = new double [ weights . length ] ; System . arraycopy ( weights , _NUM , this . weights , _NUM , weights . length ) ; }
53
java-test-2627
java
What sets to be a copy of the provided weights ?
the initial weights
protected Hidden Unit ( Unit [ ] units , double [ ] weights ) { this . units = units ; this . weights = new double [ weights . length ] ; System . arraycopy ( weights , NUM , this . weights , NUM , weights . length ) ; }
protected HiddenUnit ( Unit [ ] units , double [ ] weights ) { this . units = units ; this . weights = new double [ weights . length ] ; System . arraycopy ( weights , _NUM , this . weights , _NUM , weights . length ) ; }
53
java-test-2628
java
What is taking the provided number of inputs ?
a hidden unit
protected Hidden Unit ( Unit [ ] units , double [ ] weights ) { this . units = units ; this . weights = new double [ weights . length ] ; System . arraycopy ( weights , NUM , this . weights , NUM , weights . length ) ; }
protected HiddenUnit ( Unit [ ] units , double [ ] weights ) { this . units = units ; this . weights = new double [ weights . length ] ; System . arraycopy ( weights , _NUM , this . weights , _NUM , weights . length ) ; }
53
java-test-2629
java
What will it close ?
the server connection or the embedded connection
public void close ( ) throws Ade Internal Exception { if ( db Connection != null ) { try { db Connection . close ( ) ; } catch ( SQL Exception e ) { throw new Ade Internal Exception ( STRING , e ) ; } finally { db Connection = null ; } } if ( embedded DB Connection != null ) { close Embedded DB Connection ( ) ; } }
public void close ( ) throws AdeInternalException { if ( dbConnection != null ) { try { dbConnection . close ( ) ; } catch ( SQLException e ) { throw new AdeInternalException ( STRING , e ) ; } finally { dbConnection = null ; } } if ( embeddedDBConnection != null ) { closeEmbeddedDBConnection ( ) ; } }
74
java-test-2630
java
What can we have at any given time ?
only one
public void close ( ) throws Ade Internal Exception { if ( db Connection != null ) { try { db Connection . close ( ) ; } catch ( SQL Exception e ) { throw new Ade Internal Exception ( STRING , e ) ; } finally { db Connection = null ; } } if ( embedded DB Connection != null ) { close Embedded DB Connection ( ) ; } }
public void close ( ) throws AdeInternalException { if ( dbConnection != null ) { try { dbConnection . close ( ) ; } catch ( SQLException e ) { throw new AdeInternalException ( STRING , e ) ; } finally { dbConnection = null ; } } if ( embeddedDBConnection != null ) { closeEmbeddedDBConnection ( ) ; } }
74