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-6609
java
What does the code draw showing the world axis ?
a kind of compass
private void draw Mouse World Axis ( ) { Vector 3 v = cursor World Position ; if ( ! Float . is Na N ( v . x + v . y + v . z ) ) { shape Renderer . begin ( ) ; shape Renderer . line ( v . x , v . y , v . z , v . x + NUM , v . y , v . z , Color . RED , Color . RED ) ; shape Renderer . line ( v . x , v . y , v . z , v . ...
private void drawMouseWorldAxis ( ) { Vector3 v = cursorWorldPosition ; if ( ! Float . isNaN ( v . x + v . y + v . z ) ) { shapeRenderer . begin ( ) ; shapeRenderer . line ( v . x , v . y , v . z , v . x + _NUM , v . y , v . z , Color . RED , Color . RED ) ; shapeRenderer . line ( v . x , v . y , v . z , v . x , v . y ...
176
java-test-6610
java
When be action taken ?
when a key is pressed ( shortcut )
public State Interactive key typed ( char p key char ) { State Interactive curr return state = this ; if ( Character . is Digit ( p key char ) ) { Brd Layer Structure layer structure = r brd . layer structure ; int digit = Character . digit ( p key char , NUM ) ; digit = Math . min ( digit , layer structure . signal la...
public StateInteractive key_typed ( char p_key_char ) { StateInteractive curr_return_state = this ; if ( Character . isDigit ( p_key_char ) ) { BrdLayerStructure layer_structure = r_brd . layer_structure ; int digit = Character . digit ( p_key_char , _NUM ) ; digit = Math . min ( digit , layer_structure . signal_layer_...
350
java-test-6611
java
What do listeners notify ?
to allow user input
public void notify Unlock Input ( ) { if ( locked ) { synchronized ( director Listeners ) { I Director Listener [ ] listeners = director Listeners . to Array ( new I Director Listener [ director Listeners . size ( ) ] ) ; for ( I Director Listener director Listener : listeners ) { if ( director Listener != this ) direc...
public void notifyUnlockInput ( ) { if ( locked ) { synchronized ( directorListeners ) { IDirectorListener [ ] listeners = directorListeners . toArray ( new IDirectorListener [ directorListeners . size ( ) ] ) ; for ( IDirectorListener directorListener : listeners ) { if ( directorListener != this ) directorListener . ...
81
java-test-6612
java
What does the code get ?
switch ' s wwn
public String show Switch Wwn ( ) throws Network Device Controller Exception { SSH Prompt [ ] prompts = { SSH Prompt . POUND , SSH Prompt . GREATER THAN , SSH Prompt . MDS CONFIG , SSH Prompt . MDS CONFIG IVR ZONE , SSH Prompt . MDS CONFIG IVR ZONESET } ; String Builder buf = new String Builder ( ) ; send Wait For ( MD...
public String showSwitchWwn ( ) throws NetworkDeviceControllerException { SSHPrompt [ ] prompts = { SSHPrompt . POUND , SSHPrompt . GREATER_THAN , SSHPrompt . MDS_CONFIG , SSHPrompt . MDS_CONFIG_IVR_ZONE , SSHPrompt . MDS_CONFIG_IVR_ZONESET } ; StringBuilder buf = new StringBuilder ( ) ; sendWaitFor ( MDSDialogProperti...
187
java-test-6616
java
What does the destination have ?
support for fragment shaders
@ Override boolean is Paint Valid ( Sun Graphics 2 D sg 2 d ) { Multiple Gradient Paint paint = ( Multiple Gradient Paint ) sg 2 d . paint ; if ( paint . get Fractions ( ) . length > MULTI MAX FRACTIONS ) { return BOOL ; } OGL Surface Data dst Data = ( OGL Surface Data ) sg 2 d . surface Data ; OGL Graphics Config gc =...
@ Override boolean isPaintValid ( SunGraphics2D sg2d ) { MultipleGradientPaint paint = ( MultipleGradientPaint ) sg2d . paint ; if ( paint . getFractions ( ) . length > MULTI_MAX_FRACTIONS ) { return _BOOL ; } OGLSurfaceData dstData = ( OGLSurfaceData ) sg2d . surfaceData ; OGLGraphicsConfig gc = dstData . getOGLGraphi...
109
java-test-6617
java
What does this be ?
to force compliance with the tree class , which interprets all non - quoted strings as nonterminals
private String quote Terminals ( String words ) { String Builder quoted Words = new String Builder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . starts With ( STRING ) && word . ends With ( STRING ) ) quoted Words . append ( String . format ( STRING , word ) ) ; else quoted Words . append ( String . ...
private String quoteTerminals ( String words ) { StringBuilder quotedWords = new StringBuilder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . startsWith ( STRING ) && word . endsWith ( STRING ) ) quotedWords . append ( String . format ( STRING , word ) ) ; else quotedWords . append ( String . format (...
100
java-test-6618
java
What does the tree class interpret as nonterminals ?
all non - quoted strings
private String quote Terminals ( String words ) { String Builder quoted Words = new String Builder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . starts With ( STRING ) && word . ends With ( STRING ) ) quoted Words . append ( String . format ( STRING , word ) ) ; else quoted Words . append ( String . ...
private String quoteTerminals ( String words ) { StringBuilder quotedWords = new StringBuilder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . startsWith ( STRING ) && word . endsWith ( STRING ) ) quotedWords . append ( String . format ( STRING , word ) ) ; else quotedWords . append ( String . format (...
100
java-test-6619
java
What interprets all non - quoted strings as nonterminals ?
the tree class
private String quote Terminals ( String words ) { String Builder quoted Words = new String Builder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . starts With ( STRING ) && word . ends With ( STRING ) ) quoted Words . append ( String . format ( STRING , word ) ) ; else quoted Words . append ( String . ...
private String quoteTerminals ( String words ) { StringBuilder quotedWords = new StringBuilder ( ) ; for ( String word : words . split ( STRING ) ) if ( word . startsWith ( STRING ) && word . endsWith ( STRING ) ) quotedWords . append ( String . format ( STRING , word ) ) ; else quotedWords . append ( String . format (...
100
java-test-6620
java
What does the code remove except for this year and previous year rationale ?
categories that contain a year in them ( starting with 19
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-6623
java
What does the code run resetting the text output and graph output ?
the regression
private void run Regression ( ) { runner . execute ( ) ; Graph graph = runner . get Out Graph ( ) ; Graph Utils . circle Layout ( graph , NUM , NUM , NUM ) ; Graph Utils . fruchterman Reingold Layout ( graph ) ; workbench . set Graph ( graph ) ; Regression Result report = runner . get Result ( ) ; report Text . set Tex...
private void runRegression ( ) { runner . execute ( ) ; Graph graph = runner . getOutGraph ( ) ; GraphUtils . circleLayout ( graph , _NUM , _NUM , _NUM ) ; GraphUtils . fruchtermanReingoldLayout ( graph ) ; workbench . setGraph ( graph ) ; RegressionResult report = runner . getResult ( ) ; reportText . setText ( report...
151
java-test-6624
java
What does the code reset ?
the text output and graph output
private void run Regression ( ) { runner . execute ( ) ; Graph graph = runner . get Out Graph ( ) ; Graph Utils . circle Layout ( graph , NUM , NUM , NUM ) ; Graph Utils . fruchterman Reingold Layout ( graph ) ; workbench . set Graph ( graph ) ; Regression Result report = runner . get Result ( ) ; report Text . set Tex...
private void runRegression ( ) { runner . execute ( ) ; Graph graph = runner . getOutGraph ( ) ; GraphUtils . circleLayout ( graph , _NUM , _NUM , _NUM ) ; GraphUtils . fruchtermanReingoldLayout ( graph ) ; workbench . setGraph ( graph ) ; RegressionResult report = runner . getResult ( ) ; reportText . setText ( report...
151
java-test-6626
java
For what purpose do two datasets compare ?
to see if they differ
protected void compare Datasets ( Instances data 1 , Instances data 2 ) throws Exception { if ( ! data 2 . equal Headers ( data 1 ) ) { throw new Exception ( STRING + data 2 . equal Headers Msg ( data 1 ) ) ; } if ( ! ( data 2 . num Instances ( ) == data 1 . num Instances ( ) ) ) { throw new Exception ( STRING ) ; } fo...
protected void compareDatasets ( Instances data1 , Instances data2 ) throws Exception { if ( ! data2 . equalHeaders ( data1 ) ) { throw new Exception ( STRING + data2 . equalHeadersMsg ( data1 ) ) ; } if ( ! ( data2 . numInstances ( ) == data1 . numInstances ( ) ) ) { throw new Exception ( STRING ) ; } for ( int i = _N...
226
java-test-6627
java
What does the code make ?
the full status based on the current data
private String make Full Status ( ) { if ( online ) { String full Status = status ; if ( status == null || status . is Empty ( ) ) { full Status = STRING ; } if ( game != null && ! game . is Empty ( ) ) { full Status += STRING + game + STRING ; } return full Status ; } else if ( ! update Succeeded ) { return STRING ; }...
private String makeFullStatus ( ) { if ( online ) { String fullStatus = status ; if ( status == null || status . isEmpty ( ) ) { fullStatus = STRING ; } if ( game != null && ! game . isEmpty ( ) ) { fullStatus += STRING + game + STRING ; } return fullStatus ; } else if ( ! updateSucceeded ) { return STRING ; } else { r...
88
java-test-6630
java
How do it store ?
as a point
public synchronized Task Stats mark Task Start ( Perf Task task , int round ) { Task Stats stats = new Task Stats ( task , next Task Run Num ( ) , round ) ; this . current Stats = stats ; points . add ( stats ) ; return stats ; }
public synchronized TaskStats markTaskStart ( PerfTask task , int round ) { TaskStats stats = new TaskStats ( task , nextTaskRunNum ( ) , round ) ; this . currentStats = stats ; points . add ( stats ) ; return stats ; }
54
java-test-6633
java
What does the code create ?
a snapshot of the volume
public Scale IO Snapshot Volume Response snapshot Volume ( String vol Id , String snapshot Name , String system Id ) throws Exception { String uri = Scale IO Constants . get Snapshot Volumes URI ( system Id ) ; Scale IO Snapshot Volumes sp Vol = new Scale IO Snapshot Volumes ( ) ; sp Vol . add Snapshot ( vol Id , snaps...
public ScaleIOSnapshotVolumeResponse snapshotVolume ( String volId , String snapshotName , String systemId ) throws Exception { String uri = ScaleIOConstants . getSnapshotVolumesURI ( systemId ) ; ScaleIOSnapshotVolumes spVol = new ScaleIOSnapshotVolumes ( ) ; spVol . addSnapshot ( volId , snapshotName ) ; ClientRespon...
108
java-test-6635
java
What does the code increment also for each node ?
the successor value
public void add Word ( String a Word ) { Key Value Node < String , Integer > parent = root ; for ( int i = NUM ; i < a Word . length ( ) ; i ++ ) { String subword = a Word . substring ( NUM , i + NUM ) ; Key Value Node < String , Integer > child = parent . get Child ( subword ) ; if ( child != null ) { if ( ! subword ....
public void addWord ( String aWord ) { KeyValueNode < String , Integer > parent = root ; for ( int i = _NUM ; i < aWord . length ( ) ; i ++ ) { String subword = aWord . substring ( _NUM , i + _NUM ) ; KeyValueNode < String , Integer > child = parent . getChild ( subword ) ; if ( child != null ) { if ( ! subword . equal...
166
java-test-6636
java
Where does the code increment the successor value also ?
for each node
public void add Word ( String a Word ) { Key Value Node < String , Integer > parent = root ; for ( int i = NUM ; i < a Word . length ( ) ; i ++ ) { String subword = a Word . substring ( NUM , i + NUM ) ; Key Value Node < String , Integer > child = parent . get Child ( subword ) ; if ( child != null ) { if ( ! subword ....
public void addWord ( String aWord ) { KeyValueNode < String , Integer > parent = root ; for ( int i = _NUM ; i < aWord . length ( ) ; i ++ ) { String subword = aWord . substring ( _NUM , i + _NUM ) ; KeyValueNode < String , Integer > child = parent . getChild ( subword ) ; if ( child != null ) { if ( ! subword . equal...
166
java-test-6637
java
What do callers read ?
output values
public void run ( ) { stdout = STRING ; stderr = STRING ; exit Value = - NUM ; error = null ; timedout = BOOL ; succeeded = BOOL ; try { Process Builder pb = new Process Builder ( commands ) ; Map < String , String > local Env = pb . environment ( ) ; for ( String key : env . key Set ( ) ) { local Env . put ( key , env...
public void run ( ) { stdout = STRING ; stderr = STRING ; exitValue = - _NUM ; error = null ; timedout = _BOOL ; succeeded = _BOOL ; try { ProcessBuilder pb = new ProcessBuilder ( commands ) ; Map < String , String > localEnv = pb . environment ( ) ; for ( String key : env . keySet ( ) ) { localEnv . put ( key , env . ...
264
java-test-6638
java
What does the code update ?
a jcombobox with the latest automations
public void update Combo Box ( J Combo Box < Automation > box ) { box . remove All Items ( ) ; box . add Item ( null ) ; for ( Automation automation : get Automations By Name List ( ) ) { box . add Item ( automation ) ; } }
public void updateComboBox ( JComboBox < Automation > box ) { box . removeAllItems ( ) ; box . addItem ( null ) ; for ( Automation automation : getAutomationsByNameList ( ) ) { box . addItem ( automation ) ; } }
55
java-test-6639
java
What do the elements contain ?
references to other resources
private boolean parse Source ( Http Message message , Source source , int depth , String base URL ) { log . debug ( STRING ) ; boolean resourcesfound = BOOL ; List < Element > elements = source . get All Elements ( HTML Element Name . A ) ; for ( Element el : elements ) { resourcesfound |= process Attribute Element ( m...
private boolean parseSource ( HttpMessage message , Source source , int depth , String baseURL ) { log . debug ( STRING ) ; boolean resourcesfound = _BOOL ; List < Element > elements = source . getAllElements ( HTMLElementName . A ) ; for ( Element el : elements ) { resourcesfound |= processAttributeElement ( message ,...
464
java-test-6640
java
What does the code parse ?
the html jericho source for the elements that contain references to other resources
private boolean parse Source ( Http Message message , Source source , int depth , String base URL ) { log . debug ( STRING ) ; boolean resourcesfound = BOOL ; List < Element > elements = source . get All Elements ( HTML Element Name . A ) ; for ( Element el : elements ) { resourcesfound |= process Attribute Element ( m...
private boolean parseSource ( HttpMessage message , Source source , int depth , String baseURL ) { log . debug ( STRING ) ; boolean resourcesfound = _BOOL ; List < Element > elements = source . getAllElements ( HTMLElementName . A ) ; for ( Element el : elements ) { resourcesfound |= processAttributeElement ( message ,...
464
java-test-6641
java
What do we use the buffers ?
to store information about the 3d world
@ Override public void on Surface Created ( EGL Config config ) { Log . i ( TAG , STRING ) ; GLES 20 . gl Clear Color ( NUM , NUM , NUM , NUM ) ; Byte Buffer bb Vertices = Byte Buffer . allocate Direct ( World Layout Data . CUBE COORDS . length * NUM ) ; bb Vertices . order ( Byte Order . native Order ( ) ) ; cube Vert...
@ Override public void onSurfaceCreated ( EGLConfig config ) { Log . i ( TAG , STRING ) ; GLES20 . glClearColor ( _NUM , _NUM , _NUM , _NUM ) ; ByteBuffer bbVertices = ByteBuffer . allocateDirect ( WorldLayoutData . CUBE_COORDS . length * _NUM ) ; bbVertices . order ( ByteOrder . nativeOrder ( ) ) ; cubeVertices = bbVe...
1,254
java-test-6642
java
What does the code create ?
the buffers we use to store information about the 3d world
@ Override public void on Surface Created ( EGL Config config ) { Log . i ( TAG , STRING ) ; GLES 20 . gl Clear Color ( NUM , NUM , NUM , NUM ) ; Byte Buffer bb Vertices = Byte Buffer . allocate Direct ( World Layout Data . CUBE COORDS . length * NUM ) ; bb Vertices . order ( Byte Order . native Order ( ) ) ; cube Vert...
@ Override public void onSurfaceCreated ( EGLConfig config ) { Log . i ( TAG , STRING ) ; GLES20 . glClearColor ( _NUM , _NUM , _NUM , _NUM ) ; ByteBuffer bbVertices = ByteBuffer . allocateDirect ( WorldLayoutData . CUBE_COORDS . length * _NUM ) ; bbVertices . order ( ByteOrder . nativeOrder ( ) ) ; cubeVertices = bbVe...
1,254
java-test-6643
java
What do we use hence ?
bytebuffers
@ Override public void on Surface Created ( EGL Config config ) { Log . i ( TAG , STRING ) ; GLES 20 . gl Clear Color ( NUM , NUM , NUM , NUM ) ; Byte Buffer bb Vertices = Byte Buffer . allocate Direct ( World Layout Data . CUBE COORDS . length * NUM ) ; bb Vertices . order ( Byte Order . native Order ( ) ) ; cube Vert...
@ Override public void onSurfaceCreated ( EGLConfig config ) { Log . i ( TAG , STRING ) ; GLES20 . glClearColor ( _NUM , _NUM , _NUM , _NUM ) ; ByteBuffer bbVertices = ByteBuffer . allocateDirect ( WorldLayoutData . CUBE_COORDS . length * _NUM ) ; bbVertices . order ( ByteOrder . nativeOrder ( ) ) ; cubeVertices = bbVe...
1,254
java-test-6644
java
How can it understand ?
a format
@ Override public void on Surface Created ( EGL Config config ) { Log . i ( TAG , STRING ) ; GLES 20 . gl Clear Color ( NUM , NUM , NUM , NUM ) ; Byte Buffer bb Vertices = Byte Buffer . allocate Direct ( World Layout Data . CUBE COORDS . length * NUM ) ; bb Vertices . order ( Byte Order . native Order ( ) ) ; cube Vert...
@ Override public void onSurfaceCreated ( EGLConfig config ) { Log . i ( TAG , STRING ) ; GLES20 . glClearColor ( _NUM , _NUM , _NUM , _NUM ) ; ByteBuffer bbVertices = ByteBuffer . allocateDirect ( WorldLayoutData . CUBE_COORDS . length * _NUM ) ; bbVertices . order ( ByteOrder . nativeOrder ( ) ) ; cubeVertices = bbVe...
1,254
java-test-6645
java
How does data need ?
in a format it can understand
@ Override public void on Surface Created ( EGL Config config ) { Log . i ( TAG , STRING ) ; GLES 20 . gl Clear Color ( NUM , NUM , NUM , NUM ) ; Byte Buffer bb Vertices = Byte Buffer . allocate Direct ( World Layout Data . CUBE COORDS . length * NUM ) ; bb Vertices . order ( Byte Order . native Order ( ) ) ; cube Vert...
@ Override public void onSurfaceCreated ( EGLConfig config ) { Log . i ( TAG , STRING ) ; GLES20 . glClearColor ( _NUM , _NUM , _NUM , _NUM ) ; ByteBuffer bbVertices = ByteBuffer . allocateDirect ( WorldLayoutData . CUBE_COORDS . length * _NUM ) ; bbVertices . order ( ByteOrder . nativeOrder ( ) ) ; cubeVertices = bbVe...
1,254
java-test-6646
java
For what purpose do the velocity modify if it is now out of bounds if it is now out of bounds ?
to cause a bounce in the opposite direction
private void make Iris In Bounds ( float simulation Rate ) { float iris Offset X = m Iris Position . x - m Eye Position . x ; float iris Offset Y = m Iris Position . y - m Eye Position . y ; float max Distance = m Eye Radius - m Iris Radius ; float distance = ( float ) Math . sqrt ( Math . pow ( iris Offset X , NUM ) +...
private void makeIrisInBounds ( float simulationRate ) { float irisOffsetX = mIrisPosition . x - mEyePosition . x ; float irisOffsetY = mIrisPosition . y - mEyePosition . y ; float maxDistance = mEyeRadius - mIrisRadius ; float distance = ( float ) Math . sqrt ( Math . pow ( irisOffsetX , _NUM ) + Math . pow ( irisOffs...
225
java-test-6647
java
What be the code correct if it is now out of bounds if it is now out of bounds ?
the iris position to be in - bounds within the eye
private void make Iris In Bounds ( float simulation Rate ) { float iris Offset X = m Iris Position . x - m Eye Position . x ; float iris Offset Y = m Iris Position . y - m Eye Position . y ; float max Distance = m Eye Radius - m Iris Radius ; float distance = ( float ) Math . sqrt ( Math . pow ( iris Offset X , NUM ) +...
private void makeIrisInBounds ( float simulationRate ) { float irisOffsetX = mIrisPosition . x - mEyePosition . x ; float irisOffsetY = mIrisPosition . y - mEyePosition . y ; float maxDistance = mEyeRadius - mIrisRadius ; float distance = ( float ) Math . sqrt ( Math . pow ( irisOffsetX , _NUM ) + Math . pow ( irisOffs...
225
java-test-6648
java
How will dsljson process json when working on inputstream ?
in chunks of byte [ ] inputs
public Object deserialize ( final Type manifest , final Input Stream stream , final byte [ ] buffer ) throws IO Exception { if ( manifest instanceof Class < ? > ) { return deserialize ( ( Class < ? > ) manifest , stream , buffer ) ; } final Json Stream Reader json = new Json Stream Reader < T Context > ( stream , buffe...
public Object deserialize ( final Type manifest , final InputStream stream , final byte [ ] buffer ) throws IOException { if ( manifest instanceof Class < ? > ) { return deserialize ( ( Class < ? > ) manifest , stream , buffer ) ; } final JsonStreamReader json = new JsonStreamReader < TContext > ( stream , buffer , con...
161
java-test-6649
java
When will dsljson process json in chunks of byte [ ] inputs ?
when working on inputstream
public Object deserialize ( final Type manifest , final Input Stream stream , final byte [ ] buffer ) throws IO Exception { if ( manifest instanceof Class < ? > ) { return deserialize ( ( Class < ? > ) manifest , stream , buffer ) ; } final Json Stream Reader json = new Json Stream Reader < T Context > ( stream , buffe...
public Object deserialize ( final Type manifest , final InputStream stream , final byte [ ] buffer ) throws IOException { if ( manifest instanceof Class < ? > ) { return deserialize ( ( Class < ? > ) manifest , stream , buffer ) ; } final JsonStreamReader json = new JsonStreamReader < TContext > ( stream , buffer , con...
161
java-test-6650
java
What does it see times on stderr ?
' expectedout ' on stdout and ' expectederr '
public static void exec And Check Output ( Process Builder builder , String expected Out , String expected Err ) throws Exception { Process process = builder . start ( ) ; Executor Service executor Service = Executors . new Fixed Thread Pool ( NUM ) ; try { Future < String > err Future = executor Service . submit ( str...
public static void execAndCheckOutput ( ProcessBuilder builder , String expectedOut , String expectedErr ) throws Exception { Process process = builder . start ( ) ; ExecutorService executorService = Executors . newFixedThreadPool ( _NUM ) ; try { Future < String > errFuture = executorService . submit ( streamToStringC...
162
java-test-6652
java
What does the code destroy ?
the test tables
@ After Class public static void after Class Base Test ( ) throws SQL Exception { if ( test Single Host ) { if ( ! shared Connection . is Closed ( ) ) { if ( ! temp View List . is Empty ( ) ) { Statement stmt = shared Connection . create Statement ( ) ; String view Name ; while ( ( view Name = temp View List . poll ( )...
@ AfterClass public static void afterClassBaseTest ( ) throws SQLException { if ( testSingleHost ) { if ( ! sharedConnection . isClosed ( ) ) { if ( ! tempViewList . isEmpty ( ) ) { Statement stmt = sharedConnection . createStatement ( ) ; String viewName ; while ( ( viewName = tempViewList . poll ( ) ) != null ) { try...
340
java-test-6654
java
What does the code update ?
the thread display panel which shows running / queued threads
private synchronized void update Thread Panel ( boolean force Update ) { if ( ! force Update && ! is Visible ( ) ) { return ; } thread Panel . remove All ( ) ; Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . gridx = NUM ; gbc . gridy = NUM ; gbc . weightx = NUM ; gbc . weighty = NUM ; gbc . fill = Grid ...
private synchronized void updateThreadPanel ( boolean forceUpdate ) { if ( ! forceUpdate && ! isVisible ( ) ) { return ; } threadPanel . removeAll ( ) ; GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . gridx = _NUM ; gbc . gridy = _NUM ; gbc . weightx = _NUM ; gbc . weighty = _NUM ; gbc . fill = GridBagConst...
286
java-test-6655
java
What does the thread display panel show ?
running / queued threads
private synchronized void update Thread Panel ( boolean force Update ) { if ( ! force Update && ! is Visible ( ) ) { return ; } thread Panel . remove All ( ) ; Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . gridx = NUM ; gbc . gridy = NUM ; gbc . weightx = NUM ; gbc . weighty = NUM ; gbc . fill = Grid ...
private synchronized void updateThreadPanel ( boolean forceUpdate ) { if ( ! forceUpdate && ! isVisible ( ) ) { return ; } threadPanel . removeAll ( ) ; GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . gridx = _NUM ; gbc . gridy = _NUM ; gbc . weightx = _NUM ; gbc . weighty = _NUM ; gbc . fill = GridBagConst...
286
java-test-6656
java
What shows running / queued threads ?
the thread display panel
private synchronized void update Thread Panel ( boolean force Update ) { if ( ! force Update && ! is Visible ( ) ) { return ; } thread Panel . remove All ( ) ; Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . gridx = NUM ; gbc . gridy = NUM ; gbc . weightx = NUM ; gbc . weighty = NUM ; gbc . fill = Grid ...
private synchronized void updateThreadPanel ( boolean forceUpdate ) { if ( ! forceUpdate && ! isVisible ( ) ) { return ; } threadPanel . removeAll ( ) ; GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . gridx = _NUM ; gbc . gridy = _NUM ; gbc . weightx = _NUM ; gbc . weighty = _NUM ; gbc . fill = GridBagConst...
286
java-test-6657
java
How does the code calculate the bin values ?
based on sector classification and for isotropic model
void calc Bins 4 Sec ( double Range ) { int ad = NUM ; if ( Range % this . Lag Size == NUM ) { ad = NUM ; } if ( ! this . Anisotropic ) { bins = new bin [ ( int ) Math . ceil ( Range / this . Lag Size ) + ad ] [ NUM ] ; int r = NUM ; for ( int i = NUM ; i < Pairs . size ( ) ; i ++ ) { if ( Pairs . get ( i ) . Distance ...
void calcBins4Sec ( double Range ) { int ad = _NUM ; if ( Range % this . LagSize == _NUM ) { ad = _NUM ; } if ( ! this . Anisotropic ) { bins = new bin [ ( int ) Math . ceil ( Range / this . LagSize ) + ad ] [ _NUM ] ; int r = _NUM ; for ( int i = _NUM ; i < Pairs . size ( ) ; i ++ ) { if ( Pairs . get ( i ) . Distance...
334
java-test-6658
java
For what purpose does the code expand the array passed in by the single element ?
to add
public static Event Bean [ ] add To Array ( Event Bean [ ] array , Event Bean event To Add ) { Event Bean [ ] new Array = new Event Bean [ array . length + NUM ] ; System . arraycopy ( array , NUM , new Array , NUM , array . length ) ; new Array [ new Array . length - NUM ] = event To Add ; return new Array ; }
public static EventBean [ ] addToArray ( EventBean [ ] array , EventBean eventToAdd ) { EventBean [ ] newArray = new EventBean [ array . length + _NUM ] ; System . arraycopy ( array , _NUM , newArray , _NUM , array . length ) ; newArray [ newArray . length - _NUM ] = eventToAdd ; return newArray ; }
79
java-test-6659
java
What does the code expand to add ?
the array passed in by the single element
public static Event Bean [ ] add To Array ( Event Bean [ ] array , Event Bean event To Add ) { Event Bean [ ] new Array = new Event Bean [ array . length + NUM ] ; System . arraycopy ( array , NUM , new Array , NUM , array . length ) ; new Array [ new Array . length - NUM ] = event To Add ; return new Array ; }
public static EventBean [ ] addToArray ( EventBean [ ] array , EventBean eventToAdd ) { EventBean [ ] newArray = new EventBean [ array . length + _NUM ] ; System . arraycopy ( array , _NUM , newArray , _NUM , array . length ) ; newArray [ newArray . length - _NUM ] = eventToAdd ; return newArray ; }
79
java-test-6660
java
Where is this methods be called for the respective activation ?
in the override method
public void result Photo ( int request Code , int result Code , Intent data ) { if ( result Code == Activity . RESULT OK ) { if ( request Code == SELECT PHOTO ) { this . my Photo = on Select From Gallery Result ( data ) ; } else if ( request Code == TAKE PHOTO ) { this . my Photo = on Take Photo Result ( ) ; } if ( thi...
public void resultPhoto ( int requestCode , int resultCode , Intent data ) { if ( resultCode == Activity . RESULT_OK ) { if ( requestCode == SELECT_PHOTO ) { this . myPhoto = onSelectFromGalleryResult ( data ) ; } else if ( requestCode == TAKE_PHOTO ) { this . myPhoto = onTakePhotoResult ( ) ; } if ( this . myPhoto != ...
120
java-test-6661
java
How do resources need lookup ?
based on incusion behavior
@ Suppress Warnings ( { STRING , STRING } ) private List filter Resources For Lookup ( Iterable resources , Resource Field field ) { List results = new Array List ( ) ; Iterator iterator = resources . iterator ( ) ; while ( iterator . has Next ( ) ) { Object resource = iterator . next ( ) ; Object property = Property U...
@ SuppressWarnings ( { STRING , STRING } ) private List filterResourcesForLookup ( Iterable resources , ResourceField field ) { List results = new ArrayList ( ) ; Iterator iterator = resources . iterator ( ) ; while ( iterator . hasNext ( ) ) { Object resource = iterator . next ( ) ; Object property = PropertyUtils . g...
143
java-test-6662
java
What do resources need based on incusion behavior ?
lookup
@ Suppress Warnings ( { STRING , STRING } ) private List filter Resources For Lookup ( Iterable resources , Resource Field field ) { List results = new Array List ( ) ; Iterator iterator = resources . iterator ( ) ; while ( iterator . has Next ( ) ) { Object resource = iterator . next ( ) ; Object property = Property U...
@ SuppressWarnings ( { STRING , STRING } ) private List filterResourcesForLookup ( Iterable resources , ResourceField field ) { List results = new ArrayList ( ) ; Iterator iterator = resources . iterator ( ) ; while ( iterator . hasNext ( ) ) { Object resource = iterator . next ( ) ; Object property = PropertyUtils . g...
143
java-test-6664
java
For what purpose do backoff time add if the start time is too close to now ?
to avoid race conditions
private Date backoff Time ( Date start Time ) { if ( start Time . before ( Date Utils . add Minutes ( new Date ( ) , - NUM ) ) ) { return Date Utils . add Seconds ( start Time , - NUM ) ; } return Date Utils . add Seconds ( start Time , - BACKOFF TIME ) ; }
private Date backoffTime ( Date startTime ) { if ( startTime . before ( DateUtils . addMinutes ( new Date ( ) , - _NUM ) ) ) { return DateUtils . addSeconds ( startTime , - _NUM ) ; } return DateUtils . addSeconds ( startTime , - BACKOFF_TIME ) ; }
65
java-test-6665
java
What does the code add if the start time is too close to now , add backoff time , to avoid race conditions ?
backoff time to start time
private Date backoff Time ( Date start Time ) { if ( start Time . before ( Date Utils . add Minutes ( new Date ( ) , - NUM ) ) ) { return Date Utils . add Seconds ( start Time , - NUM ) ; } return Date Utils . add Seconds ( start Time , - BACKOFF TIME ) ; }
private Date backoffTime ( Date startTime ) { if ( startTime . before ( DateUtils . addMinutes ( new Date ( ) , - _NUM ) ) ) { return DateUtils . addSeconds ( startTime , - _NUM ) ; } return DateUtils . addSeconds ( startTime , - BACKOFF_TIME ) ; }
65
java-test-6666
java
When do time start ?
backoff time
private Date backoff Time ( Date start Time ) { if ( start Time . before ( Date Utils . add Minutes ( new Date ( ) , - NUM ) ) ) { return Date Utils . add Seconds ( start Time , - NUM ) ; } return Date Utils . add Seconds ( start Time , - BACKOFF TIME ) ; }
private Date backoffTime ( Date startTime ) { if ( startTime . before ( DateUtils . addMinutes ( new Date ( ) , - _NUM ) ) ) { return DateUtils . addSeconds ( startTime , - _NUM ) ; } return DateUtils . addSeconds ( startTime , - BACKOFF_TIME ) ; }
65
java-test-6667
java
For what purpose do { # downloads update ?
to match { downloadprovider } state
private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download...
private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB...
428
java-test-6668
java
What taken in this update ?
snapshot
private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download...
private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB...
428
java-test-6669
java
What do it schedule depending on current download state depending on current download state with { alarmmanager ?
future actions
private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download...
private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB...
428
java-test-6670
java
How should p be called from { # updatethread } only for ( downloadinfo info : downloadbatch . getdownloads ( ) ) for ( downloadinfo info : downloadbatch . getdownloads ( ) ) ?
as after being requested through { # enqueueupdate ( ) }
private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download...
private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB...
428
java-test-6671
java
What do it update depending on current download state ?
user - visible notifications
private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download...
private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB...
428
java-test-6672
java
For what purpose should p be called from { # updatethread } only as after being requested through { # enqueueupdate ( ) } ?
for ( downloadinfo info : downloadbatch . getdownloads ( ) )
private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download...
private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB...
428
java-test-6673
java
What may it enqueue depending on current download state ?
{ downloadtask } instances
private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download...
private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB...
428
java-test-6674
java
Where did snapshot take ?
in this update
private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download...
private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB...
428
java-test-6675
java
How do it schedule future actions depending on current download state depending on current download state ?
with { alarmmanager
private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download...
private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB...
428
java-test-6676
java
For what purpose does the string builder search ?
to find the first reference to the specified string starting searching from the given index
public int index Of ( final String str , int start Index ) { start Index = ( start Index < NUM ? NUM : start Index ) ; if ( str == null || start Index >= size ) { return - NUM ; } final int str Len = str . length ( ) ; if ( str Len == NUM ) { return index Of ( str . char At ( NUM ) , start Index ) ; } if ( str Len == N...
public int indexOf ( final String str , int startIndex ) { startIndex = ( startIndex < _NUM ? _NUM : startIndex ) ; if ( str == null || startIndex >= size ) { return - _NUM ; } final int strLen = str . length ( ) ; if ( strLen == _NUM ) { return indexOf ( str . charAt ( _NUM ) , startIndex ) ; } if ( strLen == _NUM ) {...
195
java-test-6677
java
For what purpose will the resulting certificate be added to the kubernetes cluster ?
as a new secret
private void handle Certificate Request ( Certificate Request request ) { if ( request . get Renew ( ) ) { val certificate Response = request Handler . request Certificate ( request . get Domains ( ) ) ; secret Manager . update Certificate ( namespace , request . get Secret Name ( ) , certificate Response ) ; } else { ...
private void handleCertificateRequest ( CertificateRequest request ) { if ( request . getRenew ( ) ) { val certificateResponse = requestHandler . requestCertificate ( request . getDomains ( ) ) ; secretManager . updateCertificate ( namespace , request . getSecretName ( ) , certificateResponse ) ; } else { val certifica...
102
java-test-6678
java
How does this function perform a certificate request ?
as determined by preparecertificaterequest
private void handle Certificate Request ( Certificate Request request ) { if ( request . get Renew ( ) ) { val certificate Response = request Handler . request Certificate ( request . get Domains ( ) ) ; secret Manager . update Certificate ( namespace , request . get Secret Name ( ) , certificate Response ) ; } else { ...
private void handleCertificateRequest ( CertificateRequest request ) { if ( request . getRenew ( ) ) { val certificateResponse = requestHandler . requestCertificate ( request . getDomains ( ) ) ; secretManager . updateCertificate ( namespace , request . getSecretName ( ) , certificateResponse ) ; } else { val certifica...
102
java-test-6679
java
When does the code add an action to this card ?
during build time
private void add Action ( String label , int id , int type ) { Card Action card Action = new Card Action ( ) ; card Action . label = label ; card Action . id = id ; card Action . type = type ; m Card Actions . add ( card Action ) ; }
private void addAction ( String label , int id , int type ) { CardAction cardAction = new CardAction ( ) ; cardAction . label = label ; cardAction . id = id ; cardAction . type = type ; mCardActions . add ( cardAction ) ; }
58
java-test-6683
java
Where do s join method ?
on lists
public static String join ( Collection < ? > c , String delim ) { String Builder retval = new String Builder ( ) ; Iterator < ? > itr = c . iterator ( ) ; if ( itr . has Next ( ) ) retval . append ( itr . next ( ) ) ; else return STRING ; while ( itr . has Next ( ) ) { retval . append ( delim ) ; retval . append ( itr ...
public static String join ( Collection < ? > c , String delim ) { StringBuilder retval = new StringBuilder ( ) ; Iterator < ? > itr = c . iterator ( ) ; if ( itr . hasNext ( ) ) retval . append ( itr . next ( ) ) ; else return STRING ; while ( itr . hasNext ( ) ) { retval . append ( delim ) ; retval . append ( itr . ne...
99
java-test-6684
java
Where does the text change making it invisible if the text is empty or visible again otherwise ?
on the given label
private void hideable Label ( J Label label , String text ) { if ( text . is Empty ( ) ) { label . set Foreground ( LABEL INVISIBLE ) ; } else { label . set Foreground ( LABEL VISIBLE ) ; label . set Text ( text ) ; } }
private void hideableLabel ( JLabel label , String text ) { if ( text . isEmpty ( ) ) { label . setForeground ( LABEL_INVISIBLE ) ; } else { label . setForeground ( LABEL_VISIBLE ) ; label . setText ( text ) ; } }
54
java-test-6685
java
When is the text empty or visible ?
again otherwise
private void hideable Label ( J Label label , String text ) { if ( text . is Empty ( ) ) { label . set Foreground ( LABEL INVISIBLE ) ; } else { label . set Foreground ( LABEL VISIBLE ) ; label . set Text ( text ) ; } }
private void hideableLabel ( JLabel label , String text ) { if ( text . isEmpty ( ) ) { label . setForeground ( LABEL_INVISIBLE ) ; } else { label . setForeground ( LABEL_VISIBLE ) ; label . setText ( text ) ; } }
54
java-test-6688
java
What does the code see ?
the interface definition for the javadoc
@ Override public void create Connection Factory ( String name , boolean ha , boolean use Discovery , int cf Type , String [ ] connector Names , Object [ ] bindings ) throws Exception { check Started ( ) ; clear IO ( ) ; try { if ( use Discovery ) { if ( connector Names == null || connector Names . length == NUM ) { th...
@ Override public void createConnectionFactory ( String name , boolean ha , boolean useDiscovery , int cfType , String [ ] connectorNames , Object [ ] bindings ) throws Exception { checkStarted ( ) ; clearIO ( ) ; try { if ( useDiscovery ) { if ( connectorNames == null || connectorNames . length == _NUM ) { throw new I...
204
java-test-6690
java
What does the code return ?
the last modified time for the path
private boolean is Cache Valid ( ) { long now = Current Time . current Time ( ) ; if ( ( now - last Time < NUM ) && ! Current Time . is Test ( ) ) return BOOL ; long old Last Modified = last Modified ; long old Length = length ; long new Last Modified = backing . get Last Modified ( ) ; long new Length = backing . leng...
private boolean isCacheValid ( ) { long now = CurrentTime . currentTime ( ) ; if ( ( now - _lastTime < _NUM ) && ! CurrentTime . isTest ( ) ) return _BOOL ; long oldLastModified = _lastModified ; long oldLength = _length ; long newLastModified = _backing . getLastModified ( ) ; long newLength = _backing . length ( ) ; ...
165
java-test-6691
java
What does the code add ?
a regular expression constraint for finding string values that match the provided regular expression
public Parse Query < T > where Matches ( String key , String regex , String modifiers ) { check If Running ( ) ; builder . add Condition ( key , STRING , regex ) ; if ( modifiers . length ( ) != NUM ) { builder . add Condition ( key , STRING , modifiers ) ; } return this ; }
public ParseQuery < T > whereMatches ( String key , String regex , String modifiers ) { checkIfRunning ( ) ; builder . addCondition ( key , STRING , regex ) ; if ( modifiers . length ( ) != _NUM ) { builder . addCondition ( key , STRING , modifiers ) ; } return this ; }
65
java-test-6692
java
What did helper method use ?
to locate deserializers for properties
protected Json Deserializer < Object > find Deserializer ( Deserialization Config config , Deserializer Provider provider , Java Type type , Bean Property property ) throws Json Mapping Exception { Json Deserializer < Object > deser = provider . find Value Deserializer ( config , type , property ) ; return deser ; }
protected JsonDeserializer < Object > findDeserializer ( DeserializationConfig config , DeserializerProvider provider , JavaType type , BeanProperty property ) throws JsonMappingException { JsonDeserializer < Object > deser = provider . findValueDeserializer ( config , type , property ) ; return deser ; }
54
java-test-6693
java
What do an event listener receive ?
notifications that an ssl handshake has completed on this connection
@ Override public synchronized void add Handshake Completed Listener ( Handshake Completed Listener listener ) { if ( listener == null ) { throw new Illegal Argument Exception ( STRING ) ; } if ( handshake Listeners == null ) { handshake Listeners = new Hash Map < Handshake Completed Listener , Access Control Context >...
@ Override public synchronized void addHandshakeCompletedListener ( HandshakeCompletedListener listener ) { if ( listener == null ) { throw new IllegalArgumentException ( STRING ) ; } if ( handshakeListeners == null ) { handshakeListeners = new HashMap < HandshakeCompletedListener , AccessControlContext > ( _NUM ) ; } ...
78
java-test-6694
java
Why might to be flaky prove ?
since garbage collection can not be guaranteed
public void test Weak ( ) throws Interrupted Exception { Set < Object > object Set = new Weak Hash Set < Object > ( ) ; object Set . add ( new Object ( ) ) ; for ( int i = NUM ; i < NUM ; ++ i ) { new Object ( ) ; } System . gc ( ) ; Thread . sleep ( NUM ) ; assert True ( object Set . is Empty ( ) ) ; }
public void testWeak ( ) throws InterruptedException { Set < Object > objectSet = new WeakHashSet < Object > ( ) ; objectSet . add ( new Object ( ) ) ; for ( int i = _NUM ; i < _NUM ; ++ i ) { new Object ( ) ; } System . gc ( ) ; Thread . sleep ( _NUM ) ; assertTrue ( objectSet . isEmpty ( ) ) ; }
85
java-test-6695
java
What do the close method call ?
to release the underlying database resources
public < T extends PO > PO Result Set < T > scroll ( ) throws DB Exception { String sql = build SQL ( null , BOOL ) ; Prepared Statement pstmt = null ; Result Set rs = null ; PO Result Set < T > rs PO = null ; try { pstmt = DB . prepare Statement ( sql , trx Name ) ; rs = create Result Set ( pstmt ) ; rs PO = new PO Re...
public < T extends PO > POResultSet < T > scroll ( ) throws DBException { String sql = buildSQL ( null , _BOOL ) ; PreparedStatement pstmt = null ; ResultSet rs = null ; POResultSet < T > rsPO = null ; try { pstmt = DB . prepareStatement ( sql , trxName ) ; rs = createResultSet ( pstmt ) ; rsPO = new POResultSet < T > ...
175
java-test-6696
java
What calls to release the underlying database resources ?
the close method
public < T extends PO > PO Result Set < T > scroll ( ) throws DB Exception { String sql = build SQL ( null , BOOL ) ; Prepared Statement pstmt = null ; Result Set rs = null ; PO Result Set < T > rs PO = null ; try { pstmt = DB . prepare Statement ( sql , trx Name ) ; rs = create Result Set ( pstmt ) ; rs PO = new PO Re...
public < T extends PO > POResultSet < T > scroll ( ) throws DBException { String sql = buildSQL ( null , _BOOL ) ; PreparedStatement pstmt = null ; ResultSet rs = null ; POResultSet < T > rsPO = null ; try { pstmt = DB . prepareStatement ( sql , trxName ) ; rs = createResultSet ( pstmt ) ; rsPO = new POResultSet < T > ...
175
java-test-6697
java
What is binding inside the appropriate binder ?
list item
@ Override public void on Bind View Holder ( Base View Holder holder , int position ) { int item View Type = get Item View Type ( position ) ; if ( item View Type != VIEWTYPE NONE ) { Binder binder = binders . get ( item View Type ) ; binder . on Bind Callback ( holder , get Item ( position ) , position ) ; } }
@ Override public void onBindViewHolder ( BaseViewHolder holder , int position ) { int itemViewType = getItemViewType ( position ) ; if ( itemViewType != VIEWTYPE_NONE ) { Binder binder = binders . get ( itemViewType ) ; binder . onBindCallback ( holder , getItem ( position ) , position ) ; } }
72
java-test-6698
java
Where do list item bind ?
inside the appropriate binder
@ Override public void on Bind View Holder ( Base View Holder holder , int position ) { int item View Type = get Item View Type ( position ) ; if ( item View Type != VIEWTYPE NONE ) { Binder binder = binders . get ( item View Type ) ; binder . on Bind Callback ( holder , get Item ( position ) , position ) ; } }
@ Override public void onBindViewHolder ( BaseViewHolder holder , int position ) { int itemViewType = getItemViewType ( position ) ; if ( itemViewType != VIEWTYPE_NONE ) { Binder binder = binders . get ( itemViewType ) ; binder . onBindCallback ( holder , getItem ( position ) , position ) ; } }
72
java-test-6700
java
What do other models such as esri sde allow ?
inverted shells and exverted holes
private void check No Self Intersecting Rings ( Geometry Graph graph ) { for ( Iterator i = graph . get Edge Iterator ( ) ; i . has Next ( ) ; ) { Edge e = ( Edge ) i . next ( ) ; check No Self Intersecting Ring ( e . get Edge Intersection List ( ) ) ; if ( valid Err != null ) return ; } }
private void checkNoSelfIntersectingRings ( GeometryGraph graph ) { for ( Iterator i = graph . getEdgeIterator ( ) ; i . hasNext ( ) ; ) { Edge e = ( Edge ) i . next ( ) ; checkNoSelfIntersectingRing ( e . getEdgeIntersectionList ( ) ) ; if ( validErr != null ) return ; } }
74
java-test-6701
java
What allow inverted shells and exverted holes ?
other models such as esri sde
private void check No Self Intersecting Rings ( Geometry Graph graph ) { for ( Iterator i = graph . get Edge Iterator ( ) ; i . has Next ( ) ; ) { Edge e = ( Edge ) i . next ( ) ; check No Self Intersecting Ring ( e . get Edge Intersection List ( ) ) ; if ( valid Err != null ) return ; } }
private void checkNoSelfIntersectingRings ( GeometryGraph graph ) { for ( Iterator i = graph . getEdgeIterator ( ) ; i . hasNext ( ) ; ) { Edge e = ( Edge ) i . next ( ) ; checkNoSelfIntersectingRing ( e . getEdgeIntersectionList ( ) ) ; if ( validErr != null ) return ; } }
74
java-test-6702
java
What does this method unwind ?
all wrapped exceptions
public static String exception To String ( Throwable t ) { String Writer sw = new String Writer ( ) ; Print Writer out = new Print Writer ( sw ) ; print Exception Stack ( t , out , NUM ) ; return sw . to String ( ) ; }
public static String exceptionToString ( Throwable t ) { StringWriter sw = new StringWriter ( ) ; PrintWriter out = new PrintWriter ( sw ) ; printExceptionStack ( t , out , _NUM ) ; return sw . toString ( ) ; }
52
java-test-6705
java
What does the code create ?
a new instance of translucentbutton
public Moving Button Container ( ) { set Layout ( new java . awt . Flow Layout ( ) ) ; timer = new Timer ( NUM , this ) ; button = new J Button ( STRING ) ; button . set Opaque ( BOOL ) ; button . add Action Listener ( this ) ; add ( button ) ; }
public MovingButtonContainer ( ) { setLayout ( new java . awt . FlowLayout ( ) ) ; timer = new Timer ( _NUM , this ) ; button = new JButton ( STRING ) ; button . setOpaque ( _BOOL ) ; button . addActionListener ( this ) ; add ( button ) ; }
63
java-test-6706
java
What does the code generate ?
the code to reify the arguments of the given method
public static void generate Parameter Reifier Code ( String [ ] param Types , boolean is Static , final Code Visitor cv ) { cv . visit Int Insn ( SIPUSH , param Types . length ) ; cv . visit Type Insn ( ANEWARRAY , STRING ) ; int local Var Index = is Static ? NUM : NUM ; for ( int i = NUM ; i < param Types . length ; +...
public static void generateParameterReifierCode ( String [ ] paramTypes , boolean isStatic , final CodeVisitor cv ) { cv . visitIntInsn ( SIPUSH , paramTypes . length ) ; cv . visitTypeInsn ( ANEWARRAY , STRING ) ; int localVarIndex = isStatic ? _NUM : _NUM ; for ( int i = _NUM ; i < paramTypes . length ; ++ i ) { Stri...
287
java-test-6708
java
What does the code remove from the rest of the path forcing all slashes into the preferred slash ?
redundant slashes
private static String normalize ( String Builder sb , String path , int off ) { int len = path . length ( ) ; off = next Non Slash ( path , off , len ) ; int start = off ; char last C = NUM ; while ( off < len ) { char c = path . char At ( off ) ; if ( is Slash ( c ) ) { if ( last C == STRING ) throw new Invalid Path E...
private static String normalize ( StringBuilder sb , String path , int off ) { int len = path . length ( ) ; off = nextNonSlash ( path , off , len ) ; int start = off ; char lastC = _NUM ; while ( off < len ) { char c = path . charAt ( off ) ; if ( isSlash ( c ) ) { if ( lastC == STRING ) throw new InvalidPathException...
239
java-test-6709
java
What are removed in this method ?
properties that are not relevant for cluster member
private Properties remove Redundant Properties ( Properties props ) { if ( props == null ) { return null ; } Properties cloned Props = ( Properties ) props . clone ( ) ; cloned Props . remove ( X Path Properties . CONTAINER JNDI URL ) ; return cloned Props ; }
private Properties removeRedundantProperties ( Properties props ) { if ( props == null ) { return null ; } Properties clonedProps = ( Properties ) props . clone ( ) ; clonedProps . remove ( XPathProperties . CONTAINER_JNDI_URL ) ; return clonedProps ; }
53
java-test-6710
java
What do you want ?
to list all the locations in a cfg for debugging purposes
public Collection < Location > ordered Locations ( ) { Tree Set < Location > tree = new Tree Set < Location > ( ) ; for ( Iterator < Location > locs = location Iterator ( ) ; locs . has Next ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; }
public Collection < Location > orderedLocations ( ) { TreeSet < Location > tree = new TreeSet < Location > ( ) ; for ( Iterator < Location > locs = locationIterator ( ) ; locs . hasNext ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; }
69
java-test-6711
java
Where do so do ?
a good order
public Collection < Location > ordered Locations ( ) { Tree Set < Location > tree = new Tree Set < Location > ( ) ; for ( Iterator < Location > locs = location Iterator ( ) ; locs . has Next ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; }
public Collection < Location > orderedLocations ( ) { TreeSet < Location > tree = new TreeSet < Location > ( ) ; for ( Iterator < Location > locs = locationIterator ( ) ; locs . hasNext ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; }
69
java-test-6712
java
What do you list for debugging purposes ?
all the locations in a cfg
public Collection < Location > ordered Locations ( ) { Tree Set < Location > tree = new Tree Set < Location > ( ) ; for ( Iterator < Location > locs = location Iterator ( ) ; locs . has Next ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; }
public Collection < Location > orderedLocations ( ) { TreeSet < Location > tree = new TreeSet < Location > ( ) ; for ( Iterator < Location > locs = locationIterator ( ) ; locs . hasNext ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; }
69
java-test-6713
java
What does the code add to the new table ?
an indexbuilder
public Table Builder add Index ( Index Builder index ) { if ( escape Identifiers ) { index . set Name ( escape Identifier ( index . get Name ( ) ) ) ; for ( Index Builder . Column col : index . get Columns ( ) ) { col . set Name ( escape Identifier ( col . get Name ( ) ) ) ; } } indexes . add ( index ) ; return this ; ...
public TableBuilder addIndex ( IndexBuilder index ) { if ( _escapeIdentifiers ) { index . setName ( escapeIdentifier ( index . getName ( ) ) ) ; for ( IndexBuilder . Column col : index . getColumns ( ) ) { col . setName ( escapeIdentifier ( col . getName ( ) ) ) ; } } _indexes . add ( index ) ; return this ; }
80
java-test-6714
java
In which direction does the code generate a thresholds object ?
from data available from the datainput
public static Memory Thresholds from Data ( Data Input in ) throws IO Exception { long max Memory Bytes = in . read Long ( ) ; float critical Threshold = in . read Float ( ) ; float eviction Threshold = in . read Float ( ) ; return new Memory Thresholds ( max Memory Bytes , critical Threshold , eviction Threshold ) ; }
public static MemoryThresholds fromData ( DataInput in ) throws IOException { long maxMemoryBytes = in . readLong ( ) ; float criticalThreshold = in . readFloat ( ) ; float evictionThreshold = in . readFloat ( ) ; return new MemoryThresholds ( maxMemoryBytes , criticalThreshold , evictionThreshold ) ; }
66
java-test-6715
java
What does the code generate from data available from the datainput ?
a thresholds object
public static Memory Thresholds from Data ( Data Input in ) throws IO Exception { long max Memory Bytes = in . read Long ( ) ; float critical Threshold = in . read Float ( ) ; float eviction Threshold = in . read Float ( ) ; return new Memory Thresholds ( max Memory Bytes , critical Threshold , eviction Threshold ) ; }
public static MemoryThresholds fromData ( DataInput in ) throws IOException { long maxMemoryBytes = in . readLong ( ) ; float criticalThreshold = in . readFloat ( ) ; float evictionThreshold = in . readFloat ( ) ; return new MemoryThresholds ( maxMemoryBytes , criticalThreshold , evictionThreshold ) ; }
66
java-test-6718
java
For what purpose do delta x calculate ?
for views
private int scroll Horizontally Internal ( int dx ) { int child Count = get Child Count ( ) ; if ( child Count == NUM ) { return NUM ; } int item Count = get Item Count ( ) ; View left View = get Child At ( NUM ) ; View right View = get Child At ( child Count - NUM ) ; for ( int i = NUM ; i < get Child Count ( ) ; i ++...
private int scrollHorizontallyInternal ( int dx ) { int childCount = getChildCount ( ) ; if ( childCount == _NUM ) { return _NUM ; } int itemCount = getItemCount ( ) ; View leftView = getChildAt ( _NUM ) ; View rightView = getChildAt ( childCount - _NUM ) ; for ( int i = _NUM ; i < getChildCount ( ) ; i ++ ) { View vie...
399
java-test-6719
java
How does it return any assignments to parenthesis groups in the pattern ' s regular expression ?
as an array
public String [ ] match ( String text ) { List < String > matches = new Array List < String > ( ) ; match ( text , matches ) ; String arr [ ] = new String [ matches . size ( ) ] ; for ( int i = NUM ; i < matches . size ( ) ; i ++ ) arr [ i ] = matches . get ( i ) ; return arr ; }
public String [ ] match ( String text ) { List < String > matches = new ArrayList < String > ( ) ; _match ( text , matches ) ; String arr [ ] = new String [ matches . size ( ) ] ; for ( int i = _NUM ; i < matches . size ( ) ; i ++ ) arr [ i ] = matches . get ( i ) ; return arr ; }
81
java-test-6720
java
What does it return as an array ?
any assignments to parenthesis groups in the pattern ' s regular expression
public String [ ] match ( String text ) { List < String > matches = new Array List < String > ( ) ; match ( text , matches ) ; String arr [ ] = new String [ matches . size ( ) ] ; for ( int i = NUM ; i < matches . size ( ) ; i ++ ) arr [ i ] = matches . get ( i ) ; return arr ; }
public String [ ] match ( String text ) { List < String > matches = new ArrayList < String > ( ) ; _match ( text , matches ) ; String arr [ ] = new String [ matches . size ( ) ] ; for ( int i = _NUM ; i < matches . size ( ) ; i ++ ) arr [ i ] = matches . get ( i ) ; return arr ; }
81
java-test-6721
java
How does syscs_util . syscs_compress_table incur deadlock ?
with concurrent anomaly detection engine analyze processing
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6722
java
What shows that explicit acquisition beforehand does not seem to provide any help in avoiding deadlock ( contrary to any internet testimonials one may find ) ?
experience
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6723
java
What does derby have ?
a few important " oh by the way ( s ) " : 1 ) either of the prepared statements : syscs_util . syscs_compress_table ( ) syscs_util . syscs_inplace_compress_table ( ) should be called in autocommit mode . this should already be so for a new connection , by default , but as a formality , we ensure it . since we will not ...
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6724
java
What incurs deadlock with concurrent anomaly detection engine analyze processing ?
syscs_util . syscs_compress_table
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6725
java
What will we not reuse ?
the connection object
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6726
java
What acquire an exclusive table lock for their duration ?
both prepared statements
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6727
java
What reflects the scoping of this method and the default ( " in place = = true " ) ?
the fact that only the in - place form is trusted by anomaly detection engine at this time ( and so this is currently the only way it is offered publicly )
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6728
java
For what purpose do a known database prepared statement invoke ?
to compress a designated table
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6729
java
What does the fact that only the in - place form is trusted by anomaly detection engine at this time ( and so this is currently the only way it is offered publicly ) reflect ?
the scoping of this method and the default ( " in place = = true " )
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6730
java
Why did we ensure it ?
as a formality
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6731
java
What has a few important " oh by the way ( s ) " : 1 ) either of the prepared statements : syscs_util . syscs_compress_table ( ) syscs_util . syscs_inplace_compress_table ( ) should be called in autocommit mode . this should already be so for a new connection , by default , but as a formality , we ensure it . since we ...
derby
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6732
java
For what purpose did this be so already ?
for a new connection , by default
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6733
java
What does both prepared statements acquire ?
an exclusive table lock for their duration
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70
java-test-6734
java
What does experience show ?
that explicit acquisition beforehand does not seem to provide any help in avoiding deadlock ( contrary to any internet testimonials one may find )
private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; }
private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; }
70