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-1895
java
For what purpose do headers of the request analyze ?
for " accept - encoding " header and its mangled variations and gzip header value and its mangled variations
@ Suppress Warnings ( STRING ) public static boolean is Gzip Supported ( final Http Servlet Request request ) { if ( request != null ) { final Enumeration < String > header Names = request . get Header Names ( ) ; if ( header Names != null ) { while ( header Names . has More Elements ( ) ) { final String header Name = ...
@ SuppressWarnings ( STRING ) public static boolean isGzipSupported ( final HttpServletRequest request ) { if ( request != null ) { final Enumeration < String > headerNames = request . getHeaderNames ( ) ; if ( headerNames != null ) { while ( headerNames . hasMoreElements ( ) ) { final String headerName = headerNames ....
143
java-test-1896
java
For what purpose will a radial gradient result in a circular shape ?
to create a square use fillrect or draw a larger shape and clip to the appropriate size
public void fill Rect Radial Gradient ( Object graphics , int start Color , int end Color , int x , int y , int width , int height , float relative X , float relative Y , float relative Size ) { int center X = ( int ) ( width * ( NUM - relative X ) ) ; int center Y = ( int ) ( height * ( NUM - relative Y ) ) ; int size...
public void fillRectRadialGradient ( Object graphics , int startColor , int endColor , int x , int y , int width , int height , float relativeX , float relativeY , float relativeSize ) { int centerX = ( int ) ( width * ( _NUM - relativeX ) ) ; int centerY = ( int ) ( height * ( _NUM - relativeY ) ) ; int size = ( int )...
435
java-test-1897
java
What does the code draw ?
a radial gradient in the given coordinates with the given colors
public void fill Rect Radial Gradient ( Object graphics , int start Color , int end Color , int x , int y , int width , int height , float relative X , float relative Y , float relative Size ) { int center X = ( int ) ( width * ( NUM - relative X ) ) ; int center Y = ( int ) ( height * ( NUM - relative Y ) ) ; int size...
public void fillRectRadialGradient ( Object graphics , int startColor , int endColor , int x , int y , int width , int height , float relativeX , float relativeY , float relativeSize ) { int centerX = ( int ) ( width * ( _NUM - relativeX ) ) ; int centerY = ( int ) ( height * ( _NUM - relativeY ) ) ; int size = ( int )...
435
java-test-1898
java
When does alpha take into consideration ?
when drawing the gradient
public void fill Rect Radial Gradient ( Object graphics , int start Color , int end Color , int x , int y , int width , int height , float relative X , float relative Y , float relative Size ) { int center X = ( int ) ( width * ( NUM - relative X ) ) ; int center Y = ( int ) ( height * ( NUM - relative Y ) ) ; int size...
public void fillRectRadialGradient ( Object graphics , int startColor , int endColor , int x , int y , int width , int height , float relativeX , float relativeY , float relativeSize ) { int centerX = ( int ) ( width * ( _NUM - relativeX ) ) ; int centerY = ( int ) ( height * ( _NUM - relativeY ) ) ; int size = ( int )...
435
java-test-1899
java
When is the value converted to the opposed endian system ?
while reading
private static int read Swapped Integer ( final Data Input Stream input ) throws IO Exception { final int value 1 = input . read Byte ( ) ; final int value 2 = input . read Byte ( ) ; final int value 3 = input . read Byte ( ) ; final int value 4 = input . read Byte ( ) ; return ( ( value 1 & NUM ) << NUM ) + ( ( value ...
private static int readSwappedInteger ( final DataInputStream input ) throws IOException { final int value1 = input . readByte ( ) ; final int value2 = input . readByte ( ) ; final int value3 = input . readByte ( ) ; final int value4 = input . readByte ( ) ; return ( ( value1 & _NUM ) << _NUM ) + ( ( value2 & _NUM ) <<...
111
java-test-1900
java
What does the code create ?
a sliding window from text
public static Window window For Word In Position ( int window Size , int word Pos , List < String > sentence ) { List < String > window = new Array List < > ( ) ; List < String > only Tokens = new Array List < > ( ) ; int context Size = ( int ) Math . floor ( ( window Size - NUM ) / NUM ) ; for ( int i = word Pos - con...
public static Window windowForWordInPosition ( int windowSize , int wordPos , List < String > sentence ) { List < String > window = new ArrayList < > ( ) ; List < String > onlyTokens = new ArrayList < > ( ) ; int contextSize = ( int ) Math . floor ( ( windowSize - _NUM ) / _NUM ) ; for ( int i = wordPos - contextSize ;...
219
java-test-1903
java
How do the ward list populate the code ?
by zone
public List < Boundary > populate Ward ( final Long zone Id ) { List < Boundary > ward List = new Linked List < Boundary > ( ) ; try { ward List = boundary Service . get Child Boundaries By Boundary Id ( zone Id ) ; } catch ( final Exception e ) { LOGGER . error ( STRING + e . get Message ( ) ) ; throw new Application ...
public List < Boundary > populateWard ( final Long zoneId ) { List < Boundary > wardList = new LinkedList < Boundary > ( ) ; try { wardList = boundaryService . getChildBoundariesByBoundaryId ( zoneId ) ; } catch ( final Exception e ) { LOGGER . error ( STRING + e . getMessage ( ) ) ; throw new ApplicationRuntimeExcepti...
88
java-test-1904
java
What does the code handle ?
the request of migration
public void handle Request ( List arguments ) { try { Install Logger migrate Log = new Install Logger ( STR MIGRATE ) ; Multiple Migrate Driver driver = new Multiple Migrate Driver ( ) ; if ( arguments . is Empty ( ) ) { Debug . log ( STRING ) ; driver . migrate ( migrate Log ) ; } else if ( arguments . size ( ) == NUM...
public void handleRequest ( List arguments ) { try { InstallLogger migrateLog = new InstallLogger ( STR_MIGRATE ) ; MultipleMigrateDriver driver = new MultipleMigrateDriver ( ) ; if ( arguments . isEmpty ( ) ) { Debug . log ( STRING ) ; driver . migrate ( migrateLog ) ; } else if ( arguments . size ( ) == _NUM ) { Debu...
164
java-test-1905
java
What did the code given an iterable of files and a " current working directory " return ?
an iterable where the files that were relative are now absolute after having the " cwd " applied to them as their parent directory . files in the list that were already absolute are returned unmodified
public static Iterable < File > apply Cwd ( File cwd , Iterable < File > files ) { if ( files != null ) { List < File > result = new Array List < File > ( ) ; for ( File f : files ) { result . add ( apply Cwd ( cwd , f ) ) ; } return result ; } else { return null ; } }
public static Iterable < File > applyCwd ( File cwd , Iterable < File > files ) { if ( files != null ) { List < File > result = new ArrayList < File > ( ) ; for ( File f : files ) { result . add ( applyCwd ( cwd , f ) ) ; } return result ; } else { return null ; } }
74
java-test-1906
java
What returns an iterable where the files that were relative are now absolute after having the " cwd " applied to them as their parent directory . files in the list that were already absolute are returned unmodified ?
the code given an iterable of files and a " current working directory "
public static Iterable < File > apply Cwd ( File cwd , Iterable < File > files ) { if ( files != null ) { List < File > result = new Array List < File > ( ) ; for ( File f : files ) { result . add ( apply Cwd ( cwd , f ) ) ; } return result ; } else { return null ; } }
public static Iterable < File > applyCwd ( File cwd , Iterable < File > files ) { if ( files != null ) { List < File > result = new ArrayList < File > ( ) ; for ( File f : files ) { result . add ( applyCwd ( cwd , f ) ) ; } return result ; } else { return null ; } }
74
java-test-1909
java
What does the code place in the provided mutablebiginteger objects ?
the quotient
Mutable Big Integer divide Knuth ( Mutable Big Integer b , Mutable Big Integer quotient , boolean need Remainder ) { if ( b . int Len == NUM ) throw new Arithmetic Exception ( STRING ) ; if ( int Len == NUM ) { quotient . int Len = quotient . offset = NUM ; return need Remainder ? new Mutable Big Integer ( ) : null ; }...
MutableBigInteger divideKnuth ( MutableBigInteger b , MutableBigInteger quotient , boolean needRemainder ) { if ( b . intLen == _NUM ) throw new ArithmeticException ( STRING ) ; if ( intLen == _NUM ) { quotient . intLen = quotient . offset = _NUM ; return needRemainder ? new MutableBigInteger ( ) : null ; } int cmp = c...
364
java-test-1910
java
What does the code calculate ?
the quotient of this div b
Mutable Big Integer divide Knuth ( Mutable Big Integer b , Mutable Big Integer quotient , boolean need Remainder ) { if ( b . int Len == NUM ) throw new Arithmetic Exception ( STRING ) ; if ( int Len == NUM ) { quotient . int Len = quotient . offset = NUM ; return need Remainder ? new Mutable Big Integer ( ) : null ; }...
MutableBigInteger divideKnuth ( MutableBigInteger b , MutableBigInteger quotient , boolean needRemainder ) { if ( b . intLen == _NUM ) throw new ArithmeticException ( STRING ) ; if ( intLen == _NUM ) { quotient . intLen = quotient . offset = _NUM ; return needRemainder ? new MutableBigInteger ( ) : null ; } int cmp = c...
364
java-test-1911
java
How does the code add a new usre ?
through the frontend
public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme...
public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ...
309
java-test-1912
java
What does the code add through the frontend ?
a new usre
public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme...
public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ...
309
java-test-1913
java
What does the code do activates also to do sso see the methods to create a hash and use those ones ?
the account
public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme...
public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ...
309
java-test-1914
java
For what purpose does the code do activates the account also ?
to do sso see the methods to create a hash and use those ones
public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme...
public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ...
309
java-test-1915
java
What does the code see ?
the methods to create a hash and use those ones
public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme...
public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ...
309
java-test-1916
java
What does the code use ?
those ones
public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme...
public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ...
309
java-test-1919
java
What does the code add ?
edge
void add Edge ( Method Parameter in , Method Parameter out ) { Set < Method Parameter > outs = graph . get ( in ) ; if ( outs == null ) { outs = new Hash Set < > ( ) ; graph . put ( in , outs ) ; } outs . add ( out ) ; }
void addEdge ( MethodParameter in , MethodParameter out ) { Set < MethodParameter > outs = graph . get ( in ) ; if ( outs == null ) { outs = new HashSet < > ( ) ; graph . put ( in , outs ) ; } outs . add ( out ) ; }
62
java-test-1920
java
Where are these drawn ?
on top of the main view sprite
public void attach Sprite ( Sprite sprite , Horizontal Alignment x Align , Vertical Alignment y Align , int x Offset , int y Offset ) { int x = x Offset ; switch ( x Align ) { case LEFT : break ; case RIGHT : x += get Width ( ) - sprite . get Width ( ) ; break ; case CENTER : x += ( get Width ( ) - sprite . get Width (...
public void attachSprite ( Sprite sprite , HorizontalAlignment xAlign , VerticalAlignment yAlign , int xOffset , int yOffset ) { int x = xOffset ; switch ( xAlign ) { case LEFT : break ; case RIGHT : x += getWidth ( ) - sprite . getWidth ( ) ; break ; case CENTER : x += ( getWidth ( ) - sprite . getWidth ( ) ) / _NUM ;...
194
java-test-1923
java
What must caller update only updates subscriptionsbyeventtype ?
typesbysubscriber
private void unubscribe By Event Type ( Object subscriber , Class < ? > event Type ) { List < Subscription > subscriptions = subscriptions By Event Type . get ( event Type ) ; if ( subscriptions != null ) { int size = subscriptions . size ( ) ; for ( int i = NUM ; i < size ; i ++ ) { if ( subscriptions . get ( i ) . su...
private void unubscribeByEventType ( Object subscriber , Class < ? > eventType ) { List < Subscription > subscriptions = subscriptionsByEventType . get ( eventType ) ; if ( subscriptions != null ) { int size = subscriptions . size ( ) ; for ( int i = _NUM ; i < size ; i ++ ) { if ( subscriptions . get ( i ) . subscribe...
97
java-test-1927
java
Do the removed length match the length of the inserted string ?
No
public Str Builder replace ( final int start Index , int end Index , final String replace Str ) { end Index = validate Range ( start Index , end Index ) ; final int insert Len = ( replace Str == null ? NUM : replace Str . length ( ) ) ; replace Impl ( start Index , end Index , end Index - start Index , replace Str , in...
public StrBuilder replace ( final int startIndex , int endIndex , final String replaceStr ) { endIndex = validateRange ( startIndex , endIndex ) ; final int insertLen = ( replaceStr == null ? _NUM : replaceStr . length ( ) ) ; replaceImpl ( startIndex , endIndex , endIndex - startIndex , replaceStr , insertLen ) ; retu...
80
java-test-1928
java
What is invocation delegated ?
to internalputproperty
public void put External Property ( SSO Token client Token , String key , String value ) throws Session Exception { try { session Utils Wrapper . check Permission To Set Property ( client Token , key , value ) ; } catch ( Session Exception se ) { fire Session Event ( Session Event Type . PROTECTED PROPERTY ) ; session ...
public void putExternalProperty ( SSOToken clientToken , String key , String value ) throws SessionException { try { sessionUtilsWrapper . checkPermissionToSetProperty ( clientToken , key , value ) ; } catch ( SessionException se ) { fireSessionEvent ( SessionEventType . PROTECTED_PROPERTY ) ; sessionLogging . logEvent...
102
java-test-1929
java
What does this method be ?
to be used in conjuction with sessionrequesthandler / sessionservice invocation path
public void put External Property ( SSO Token client Token , String key , String value ) throws Session Exception { try { session Utils Wrapper . check Permission To Set Property ( client Token , key , value ) ; } catch ( Session Exception se ) { fire Session Event ( Session Event Type . PROTECTED PROPERTY ) ; session ...
public void putExternalProperty ( SSOToken clientToken , String key , String value ) throws SessionException { try { sessionUtilsWrapper . checkPermissionToSetProperty ( clientToken , key , value ) ; } catch ( SessionException se ) { fireSessionEvent ( SessionEventType . PROTECTED_PROPERTY ) ; sessionLogging . logEvent...
102
java-test-1930
java
What should client have if it is protected ?
permission to set it
public void put External Property ( SSO Token client Token , String key , String value ) throws Session Exception { try { session Utils Wrapper . check Permission To Set Property ( client Token , key , value ) ; } catch ( Session Exception se ) { fire Session Event ( Session Event Type . PROTECTED PROPERTY ) ; session ...
public void putExternalProperty ( SSOToken clientToken , String key , String value ) throws SessionException { try { sessionUtilsWrapper . checkPermissionToSetProperty ( clientToken , key , value ) ; } catch ( SessionException se ) { fireSessionEvent ( SessionEventType . PROTECTED_PROPERTY ) ; sessionLogging . logEvent...
102
java-test-1934
java
What does this implementation use ?
zero step of newton ' s method
public static double inv Sqrt Quick ( final double value ) { if ( USE JDK MATH ) { return NUM / Math . sqrt ( value ) ; } return Double . long Bits To Double ( NUM - ( Double . double To Raw Long Bits ( value ) > > NUM ) ) ; }
public static double invSqrtQuick ( final double value ) { if ( USE_JDK_MATH ) { return _NUM / Math . sqrt ( value ) ; } return Double . longBitsToDouble ( _NUM - ( Double . doubleToRawLongBits ( value ) > > _NUM ) ) ; }
58
java-test-1935
java
What do you use ?
your own number : n = 0 : about 3
public static double inv Sqrt Quick ( final double value ) { if ( USE JDK MATH ) { return NUM / Math . sqrt ( value ) ; } return Double . long Bits To Double ( NUM - ( Double . double To Raw Long Bits ( value ) > > NUM ) ) ; }
public static double invSqrtQuick ( final double value ) { if ( USE_JDK_MATH ) { return _NUM / Math . sqrt ( value ) ; } return Double . longBitsToDouble ( _NUM - ( Double . doubleToRawLongBits ( value ) > > _NUM ) ) ; }
58
java-test-1936
java
What does you want ?
to copy - paste this code and
public static double inv Sqrt Quick ( final double value ) { if ( USE JDK MATH ) { return NUM / Math . sqrt ( value ) ; } return Double . long Bits To Double ( NUM - ( Double . double To Raw Long Bits ( value ) > > NUM ) ) ; }
public static double invSqrtQuick ( final double value ) { if ( USE_JDK_MATH ) { return _NUM / Math . sqrt ( value ) ; } return Double . longBitsToDouble ( _NUM - ( Double . doubleToRawLongBits ( value ) > > _NUM ) ) ; }
58
java-test-1937
java
Should a wildcard in the host / port match any of the path urls ?
No
@ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ...
@ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT...
694
java-test-1938
java
How will they be compared ?
by the super class ' comparison function
@ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ...
@ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT...
694
java-test-1939
java
What should not match any of the path urls ?
a wildcard in the host / port
@ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ...
@ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT...
694
java-test-1940
java
When should specific comparison for urls , where a wildcard in the host / port should not match any of the path . strings be canonicalized ?
prior to entering this comparison
@ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ...
@ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT...
694
java-test-1941
java
What should a wildcard in the host / port not match urls ?
any of the path
@ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ...
@ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT...
694
java-test-1942
java
Where should a wildcard in the host / port not match any of the path ?
urls
@ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ...
@ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT...
694
java-test-1944
java
What does this method set ?
the working directory
private void initialize Context ( ) throws IO Exception { String working Dir = System . get Property ( STRING ) ; File dataset = File Utils . get File ( working Dir + STRING ) ; File log 4 j File = File Utils . get File ( working Dir + STRING ) ; File dataset Folder = new File ( destination Folder + STRING ) ; File log...
private void initializeContext ( ) throws IOException { String workingDir = System . getProperty ( STRING ) ; File dataset = FileUtils . getFile ( workingDir + STRING ) ; File log4jFile = FileUtils . getFile ( workingDir + STRING ) ; File datasetFolder = new File ( destinationFolder + STRING ) ; File log4jFolder = new ...
132
java-test-1945
java
What does this method copy to the appropriate path ?
the static context files such as log4j or xmldataset ( needed by hsqldb )
private void initialize Context ( ) throws IO Exception { String working Dir = System . get Property ( STRING ) ; File dataset = File Utils . get File ( working Dir + STRING ) ; File log 4 j File = File Utils . get File ( working Dir + STRING ) ; File dataset Folder = new File ( destination Folder + STRING ) ; File log...
private void initializeContext ( ) throws IOException { String workingDir = System . getProperty ( STRING ) ; File dataset = FileUtils . getFile ( workingDir + STRING ) ; File log4jFile = FileUtils . getFile ( workingDir + STRING ) ; File datasetFolder = new File ( destinationFolder + STRING ) ; File log4jFolder = new ...
132
java-test-1946
java
Can nested layers have one parent only ?
No
public void add Child ( Pdf Layer child Layer ) { if ( child Layer . parent != null ) throw new Illegal Argument Exception ( STRING ) ; child Layer . parent = this ; if ( children == null ) children = new Array List < > ( ) ; children . add ( child Layer ) ; }
public void addChild ( PdfLayer childLayer ) { if ( childLayer . parent != null ) throw new IllegalArgumentException ( STRING ) ; childLayer . parent = this ; if ( children == null ) children = new ArrayList < > ( ) ; children . add ( childLayer ) ; }
61
java-test-1947
java
When did from auto - closing clips call the code ?
when one of their open ( ) method is called
void auto Closing Clip Opened ( Auto Closing Clip clip ) { if ( Printer . debug ) Printer . debug ( STRING ) ; int index = NUM ; synchronized ( auto Closing Clips ) { index = get Auto Closing Clip Index ( clip ) ; if ( index == - NUM ) { if ( Printer . debug ) Printer . debug ( STRING + clip ) ; auto Closing Clips . ad...
void autoClosingClipOpened ( AutoClosingClip clip ) { if ( Printer . debug ) Printer . debug ( STRING ) ; int index = _NUM ; synchronized ( autoClosingClips ) { index = getAutoClosingClipIndex ( clip ) ; if ( index == - _NUM ) { if ( Printer . debug ) Printer . debug ( STRING + clip ) ; autoClosingClips . add ( new Cli...
131
java-test-1948
java
Where does it exist ?
in the states list
public synchronized static int insert Lua State ( Lua State L ) { int i ; for ( i = NUM ; i < states . size ( ) ; i ++ ) { Lua State state = ( Lua State ) states . get ( i ) ; if ( state != null ) { if ( state . get C Ptr Peer ( ) == L . get C Ptr Peer ( ) ) return i ; } } i = get Next State Index ( ) ; states . set ( ...
public synchronized static int insertLuaState ( LuaState L ) { int i ; for ( i = _NUM ; i < states . size ( ) ; i ++ ) { LuaState state = ( LuaState ) states . get ( i ) ; if ( state != null ) { if ( state . getCPtrPeer ( ) == L . getCPtrPeer ( ) ) return i ; } } i = getNextStateIndex ( ) ; states . set ( i , L ) ; ret...
103
java-test-1949
java
What does the code receive if it exists in the states list ?
a existing luastate
public synchronized static int insert Lua State ( Lua State L ) { int i ; for ( i = NUM ; i < states . size ( ) ; i ++ ) { Lua State state = ( Lua State ) states . get ( i ) ; if ( state != null ) { if ( state . get C Ptr Peer ( ) == L . get C Ptr Peer ( ) ) return i ; } } i = get Next State Index ( ) ; states . set ( ...
public synchronized static int insertLuaState ( LuaState L ) { int i ; for ( i = _NUM ; i < states . size ( ) ; i ++ ) { LuaState state = ( LuaState ) states . get ( i ) ; if ( state != null ) { if ( state . getCPtrPeer ( ) == L . getCPtrPeer ( ) ) return i ; } } i = getNextStateIndex ( ) ; states . set ( i , L ) ; ret...
103
java-test-1950
java
What does the code normalize ?
the given local file name
private void normalize Local File Name ( String Builder local File Name ) { while ( BOOL ) { int dot Dot Index = local File Name . index Of ( STRING ) ; if ( dot Dot Index < NUM ) { break ; } int parent Index = local File Name . last Index Of ( STRING , dot Dot Index - NUM ) ; if ( parent Index < NUM ) { break ; } loca...
private void normalizeLocalFileName ( StringBuilder localFileName ) { while ( _BOOL ) { int dotDotIndex = localFileName . indexOf ( STRING ) ; if ( dotDotIndex < _NUM ) { break ; } int parentIndex = localFileName . lastIndexOf ( STRING , dotDotIndex - _NUM ) ; if ( parentIndex < _NUM ) { break ; } localFileName . delet...
404
java-test-1951
java
How do leading remove ?
special notation
private void normalize Local File Name ( String Builder local File Name ) { while ( BOOL ) { int dot Dot Index = local File Name . index Of ( STRING ) ; if ( dot Dot Index < NUM ) { break ; } int parent Index = local File Name . last Index Of ( STRING , dot Dot Index - NUM ) ; if ( parent Index < NUM ) { break ; } loca...
private void normalizeLocalFileName ( StringBuilder localFileName ) { while ( _BOOL ) { int dotDotIndex = localFileName . indexOf ( STRING ) ; if ( dotDotIndex < _NUM ) { break ; } int parentIndex = localFileName . lastIndexOf ( STRING , dotDotIndex - _NUM ) ; if ( parentIndex < _NUM ) { break ; } localFileName . delet...
404
java-test-1952
java
What does the code obtain from the given context ?
the bthelperclient
public static Bt Helper Client from ( Context context ) { if ( s Bt Helper Client == null ) { synchronized ( Bt Helper Client . class ) { if ( s Bt Helper Client == null ) s Bt Helper Client = new Bt Helper Client ( context ) ; } } return s Bt Helper Client ; }
public static BtHelperClient from ( Context context ) { if ( sBtHelperClient == null ) { synchronized ( BtHelperClient . class ) { if ( sBtHelperClient == null ) sBtHelperClient = new BtHelperClient ( context ) ; } } return sBtHelperClient ; }
61
java-test-1953
java
What does the code replace with their plain text equivalents ?
entity references in html cdata
public static String decode ( String html ) { if ( html . index Of ( STRING ) < NUM ) { return html ; } char [ ] chars = html . to Char Array ( ) ; int delta = NUM ; int n = chars . length ; for ( int i = NUM ; i < n ; ) { char ch = chars [ i ] ; if ( chars [ i ] == STRING ) { long packed End And Codepoint = Html Entit...
public static String decode ( String html ) { if ( html . indexOf ( STRING ) < _NUM ) { return html ; } char [ ] chars = html . toCharArray ( ) ; int delta = _NUM ; int n = chars . length ; for ( int i = _NUM ; i < n ; ) { char ch = chars [ i ] ; if ( chars [ i ] == STRING ) { long packedEndAndCodepoint = HtmlEntities ...
229
java-test-1954
java
What does the code create ?
a new capitalizationfilterfactory
public Capitalization Filter Factory ( Map < String , String > args ) { super ( args ) ; boolean ignore Case = get Boolean ( args , KEEP IGNORE CASE , BOOL ) ; Set < String > k = get Set ( args , KEEP ) ; if ( k != null ) { keep = new Char Array Set ( NUM , ignore Case ) ; keep . add All ( k ) ; } k = get Set ( args , ...
public CapitalizationFilterFactory ( Map < String , String > args ) { super ( args ) ; boolean ignoreCase = getBoolean ( args , KEEP_IGNORE_CASE , _BOOL ) ; Set < String > k = getSet ( args , KEEP ) ; if ( k != null ) { keep = new CharArraySet ( _NUM , ignoreCase ) ; keep . addAll ( k ) ; } k = getSet ( args , OK_PREFI...
247
java-test-1955
java
What did the code read from a file ?
an x . 509v3 certificate
public Burp Certificate import Certificate ( String filename ) { set Status ( STRING ) ; File Input Stream fis ; try { fis = new File Input Stream ( filename ) ; byte value [ ] = new byte [ fis . available ( ) ] ; fis . read ( value ) ; Byte Array Input Stream bais = new Byte Array Input Stream ( value ) ; fis . close ...
public BurpCertificate importCertificate ( String filename ) { setStatus ( STRING ) ; FileInputStream fis ; try { fis = new FileInputStream ( filename ) ; byte value [ ] = new byte [ fis . available ( ) ] ; fis . read ( value ) ; ByteArrayInputStream bais = new ByteArrayInputStream ( value ) ; fis . close ( ) ; Certifi...
245
java-test-1956
java
How is this done ?
in conjunction with calls to stop and skip
private Monitor remove Mon ( String label , String detail , String units ) { Mon Key key = get Mon Key ( label , detail , units ) ; Monitor mon = ( Monitor ) map . get ( key ) ; if ( mon != null ) map . remove ( mon ) ; return mon ; }
private Monitor removeMon ( String label , String detail , String units ) { MonKey key = getMonKey ( label , detail , units ) ; Monitor mon = ( Monitor ) map . get ( key ) ; if ( mon != null ) map . remove ( mon ) ; return mon ; }
60
java-test-1957
java
What does the code remove from map ?
monitor
private Monitor remove Mon ( String label , String detail , String units ) { Mon Key key = get Mon Key ( label , detail , units ) ; Monitor mon = ( Monitor ) map . get ( key ) ; if ( mon != null ) map . remove ( mon ) ; return mon ; }
private Monitor removeMon ( String label , String detail , String units ) { MonKey key = getMonKey ( label , detail , units ) ; Monitor mon = ( Monitor ) map . get ( key ) ; if ( mon != null ) map . remove ( mon ) ; return mon ; }
60
java-test-1958
java
What does the code delete ?
the existing environment
public void delete Environment ( Environment environment ) throws IO Exception { String id = environment . get Id ( ) ; Environment local = existing Environments . remove ( id ) ; if ( null != local ) { Files . delete If Exists ( path Resolver . get Environment File Path ( local ) ) ; Agent Mappings agent Mappings = ag...
public void deleteEnvironment ( Environment environment ) throws IOException { String id = environment . getId ( ) ; Environment local = existingEnvironments . remove ( id ) ; if ( null != local ) { Files . deleteIfExists ( pathResolver . getEnvironmentFilePath ( local ) ) ; AgentMappings agentMappings = agentMappingsR...
113
java-test-1960
java
What does the code consider to cluster assignments recursively ?
all possible class
public static void map Classes ( int num Clusters , int lev , int [ ] [ ] counts , int [ ] cluster Totals , double [ ] current , double [ ] best , int error ) { if ( lev == num Clusters ) { if ( error < best [ num Clusters ] ) { best [ num Clusters ] = error ; for ( int i = NUM ; i < num Clusters ; i ++ ) { best [ i ] ...
public static void mapClasses ( int numClusters , int lev , int [ ] [ ] counts , int [ ] clusterTotals , double [ ] current , double [ ] best , int error ) { if ( lev == numClusters ) { if ( error < best [ numClusters ] ) { best [ numClusters ] = error ; for ( int i = _NUM ; i < numClusters ; i ++ ) { best [ i ] = curr...
310
java-test-1961
java
When does a scheduleitem place ?
earlier in the schedule
public void move Item Up ( Schedule Item si ) { int sequence Id = si . get Sequence Id ( ) ; if ( sequence Id - NUM <= NUM ) { si . set Sequence Id ( sequence Num + NUM ) ; resequence Ids ( ) ; } else { Schedule Item replace Si = get Item By Sequence Id ( sequence Id - NUM ) ; if ( replace Si != null ) { replace Si . s...
public void moveItemUp ( ScheduleItem si ) { int sequenceId = si . getSequenceId ( ) ; if ( sequenceId - _NUM <= _NUM ) { si . setSequenceId ( _sequenceNum + _NUM ) ; resequenceIds ( ) ; } else { ScheduleItem replaceSi = getItemBySequenceId ( sequenceId - _NUM ) ; if ( replaceSi != null ) { replaceSi . setSequenceId ( ...
135
java-test-1962
java
What did the code set if needed ?
the document root
@ Override public void customize ( Configurable Embedded Servlet Container container ) { Mime Mappings mappings = new Mime Mappings ( Mime Mappings . DEFAULT ) ; mappings . add ( STRING , STRING ) ; mappings . add ( STRING , STRING ) ; container . set Mime Mappings ( mappings ) ; File root ; if ( env . accepts Profiles...
@ Override public void customize ( ConfigurableEmbeddedServletContainer container ) { MimeMappings mappings = new MimeMappings ( MimeMappings . DEFAULT ) ; mappings . add ( STRING , STRING ) ; mappings . add ( STRING , STRING ) ; container . setMimeMappings ( mappings ) ; File root ; if ( env . acceptsProfiles ( Consta...
119
java-test-1963
java
What did the code set ?
mime types
@ Override public void customize ( Configurable Embedded Servlet Container container ) { Mime Mappings mappings = new Mime Mappings ( Mime Mappings . DEFAULT ) ; mappings . add ( STRING , STRING ) ; mappings . add ( STRING , STRING ) ; container . set Mime Mappings ( mappings ) ; File root ; if ( env . accepts Profiles...
@ Override public void customize ( ConfigurableEmbeddedServletContainer container ) { MimeMappings mappings = new MimeMappings ( MimeMappings . DEFAULT ) ; mappings . add ( STRING , STRING ) ; mappings . add ( STRING , STRING ) ; container . setMimeMappings ( mappings ) ; File root ; if ( env . acceptsProfiles ( Consta...
119
java-test-1964
java
What does the code add ?
a receive load that the track will either service or exclude
public boolean add Load Name ( String load ) { if ( load List . contains ( load ) ) { return BOOL ; } load List . add ( load ) ; log . debug ( STRING , get Name ( ) , load ) ; set Dirty And Fire Property Change ( LOADS CHANGED PROPERTY , load List . size ( ) - NUM , load List . size ( ) ) ; return BOOL ; }
public boolean addLoadName ( String load ) { if ( _loadList . contains ( load ) ) { return _BOOL ; } _loadList . add ( load ) ; log . debug ( STRING , getName ( ) , load ) ; setDirtyAndFirePropertyChange ( LOADS_CHANGED_PROPERTY , _loadList . size ( ) - _NUM , _loadList . size ( ) ) ; return _BOOL ; }
79
java-test-1966
java
When did the code call ?
when a block start is encountered
private void start Block ( int start Token ) { if ( stack Count == unit Stack . length ) { int [ ] new US = new int [ stack Count * NUM ] ; System . arraycopy ( unit Stack , NUM , new US , NUM , stack Count ) ; unit Stack = new US ; } unit Stack [ stack Count ++ ] = start Token ; }
private void startBlock ( int startToken ) { if ( stackCount == unitStack . length ) { int [ ] newUS = new int [ stackCount * _NUM ] ; System . arraycopy ( unitStack , _NUM , newUS , _NUM , stackCount ) ; unitStack = newUS ; } unitStack [ stackCount ++ ] = startToken ; }
73
java-test-1967
java
What has the code find ?
the upper limit of the treeset map lookup
protected String find Upper Limit ( String prefix ) { if ( prefix . is Empty ( ) ) { return STRING ; } if ( prefix . length ( ) == NUM ) { char c = prefix . char At ( NUM ) ; return c < STRING ? Character . to String ( ( char ) ( c + NUM ) ) : STRING ; } char last Char = prefix . char At ( prefix . length ( ) - NUM ) ;...
protected String findUpperLimit ( String prefix ) { if ( prefix . isEmpty ( ) ) { return STRING ; } if ( prefix . length ( ) == _NUM ) { char c = prefix . charAt ( _NUM ) ; return c < STRING ? Character . toString ( ( char ) ( c + _NUM ) ) : STRING ; } char lastChar = prefix . charAt ( prefix . length ( ) - _NUM ) ; if...
150
java-test-1974
java
What does the code create ?
the path where all iteration - related data should be stored
public final void create Iteration Directory ( final int iteration ) { File dir = new File ( get Iteration Path ( iteration ) ) ; if ( ! dir . mkdir ( ) ) { if ( this . overwrite Files == Overwrite File Setting . overwrite Existing Files && dir . exists ( ) ) { log . info ( STRING + get Iteration Path ( iteration ) + S...
public final void createIterationDirectory ( final int iteration ) { File dir = new File ( getIterationPath ( iteration ) ) ; if ( ! dir . mkdir ( ) ) { if ( this . overwriteFiles == OverwriteFileSetting . overwriteExistingFiles && dir . exists ( ) ) { log . info ( STRING + getIterationPath ( iteration ) + STRING ) ; }...
96
java-test-1975
java
What should be stored the path ?
all iteration - related data
public final void create Iteration Directory ( final int iteration ) { File dir = new File ( get Iteration Path ( iteration ) ) ; if ( ! dir . mkdir ( ) ) { if ( this . overwrite Files == Overwrite File Setting . overwrite Existing Files && dir . exists ( ) ) { log . info ( STRING + get Iteration Path ( iteration ) + S...
public final void createIterationDirectory ( final int iteration ) { File dir = new File ( getIterationPath ( iteration ) ) ; if ( ! dir . mkdir ( ) ) { if ( this . overwriteFiles == OverwriteFileSetting . overwriteExistingFiles && dir . exists ( ) ) { log . info ( STRING + getIterationPath ( iteration ) + STRING ) ; }...
96
java-test-1976
java
When does it need to be un - escaped ?
when returning the raw sql for use as sql
@ Override public String create Initial Load Sql For ( Node node , Trigger Router trigger , Table table , Trigger History trigger History , Channel channel , String override Select Sql ) { String sql = super . create Initial Load Sql For ( node , trigger , table , trigger History , channel , override Select Sql ) ; sql...
@ Override public String createInitialLoadSqlFor ( Node node , TriggerRouter trigger , Table table , TriggerHistory triggerHistory , Channel channel , String overrideSelectSql ) { String sql = super . createInitialLoadSqlFor ( node , trigger , table , triggerHistory , channel , overrideSelectSql ) ; sql = sql . replace...
76
java-test-1977
java
What does it need when returning the raw sql for use as sql ?
to be un - escaped
@ Override public String create Initial Load Sql For ( Node node , Trigger Router trigger , Table table , Trigger History trigger History , Channel channel , String override Select Sql ) { String sql = super . create Initial Load Sql For ( node , trigger , table , trigger History , channel , override Select Sql ) ; sql...
@ Override public String createInitialLoadSqlFor ( Node node , TriggerRouter trigger , Table table , TriggerHistory triggerHistory , Channel channel , String overrideSelectSql ) { String sql = super . createInitialLoadSqlFor ( node , trigger , table , triggerHistory , channel , overrideSelectSql ) ; sql = sql . replace...
76
java-test-1978
java
For what purpose does the raw sql return when ?
for use as sql
@ Override public String create Initial Load Sql For ( Node node , Trigger Router trigger , Table table , Trigger History trigger History , Channel channel , String override Select Sql ) { String sql = super . create Initial Load Sql For ( node , trigger , table , trigger History , channel , override Select Sql ) ; sql...
@ Override public String createInitialLoadSqlFor ( Node node , TriggerRouter trigger , Table table , TriggerHistory triggerHistory , Channel channel , String overrideSelectSql ) { String sql = super . createInitialLoadSqlFor ( node , trigger , table , triggerHistory , channel , overrideSelectSql ) ; sql = sql . replace...
76
java-test-1979
java
When have all the templates escaped because the sql is inserted into a view ?
when returning the raw sql for use as sql it needs to be un - escaped
@ Override public String create Initial Load Sql For ( Node node , Trigger Router trigger , Table table , Trigger History trigger History , Channel channel , String override Select Sql ) { String sql = super . create Initial Load Sql For ( node , trigger , table , trigger History , channel , override Select Sql ) ; sql...
@ Override public String createInitialLoadSqlFor ( Node node , TriggerRouter trigger , Table table , TriggerHistory triggerHistory , Channel channel , String overrideSelectSql ) { String sql = super . createInitialLoadSqlFor ( node , trigger , table , triggerHistory , channel , overrideSelectSql ) ; sql = sql . replace...
76
java-test-1980
java
Why have all the templates escaped when returning the raw sql for use as sql it needs to be un - escaped ?
because the sql is inserted into a view
@ Override public String create Initial Load Sql For ( Node node , Trigger Router trigger , Table table , Trigger History trigger History , Channel channel , String override Select Sql ) { String sql = super . create Initial Load Sql For ( node , trigger , table , trigger History , channel , override Select Sql ) ; sql...
@ Override public String createInitialLoadSqlFor ( Node node , TriggerRouter trigger , Table table , TriggerHistory triggerHistory , Channel channel , String overrideSelectSql ) { String sql = super . createInitialLoadSqlFor ( node , trigger , table , triggerHistory , channel , overrideSelectSql ) ; sql = sql . replace...
76
java-test-1982
java
What do the classpath modify how how ?
to add a jar at runtime
protected synchronized boolean load Jar ( String jar File Name ) { boolean ret = loaded Jars . contains ( jar File Name ) ; if ( ! ret ) { try { logger . fine ( STRING + jar File Name + STRING ) ; Classpath Hacker . add File ( jar File Name ) ; } catch ( IO Exception ioe ) { logger . warning ( STRING + jar File Name ) ...
protected synchronized boolean loadJar ( String jarFileName ) { boolean ret = loadedJars . contains ( jarFileName ) ; if ( ! ret ) { try { logger . fine ( STRING + jarFileName + STRING ) ; ClasspathHacker . addFile ( jarFileName ) ; } catch ( IOException ioe ) { logger . warning ( STRING + jarFileName ) ; } loadedJars ...
93
java-test-1983
java
How do codeblock generate ?
with all the ginmodules
public static void generate List Of Modules ( String Builder builder ) { Iterator < String > entry Iterator = EXTENSIONS FQN . iterator ( ) ; while ( entry Iterator . has Next ( ) ) { String gin Module FQN = entry Iterator . next ( ) ; String has Comma = entry Iterator . has Next ( ) ? STRING : STRING ; builder . appen...
public static void generateListOfModules ( StringBuilder builder ) { Iterator < String > entryIterator = EXTENSIONS_FQN . iterator ( ) ; while ( entryIterator . hasNext ( ) ) { String ginModuleFQN = entryIterator . next ( ) ; String hasComma = entryIterator . hasNext ( ) ? STRING : STRING ; builder . append ( Generator...
89
java-test-1984
java
What does the code create ?
a new image file chooser
public J File Image Chooser ( final Shell parent , final int style , final File working Dir ) { file Dialog = new File Dialog ( parent , style ) ; if ( working Dir != null ) file Dialog . set Filter Path ( working Dir . get Absolute Path ( ) ) ; }
public JFileImageChooser ( final Shell parent , final int style , final File workingDir ) { fileDialog = new FileDialog ( parent , style ) ; if ( workingDir != null ) fileDialog . setFilterPath ( workingDir . getAbsolutePath ( ) ) ; }
57
java-test-1985
java
What does the code apply ?
the minimum function on given list of number
public static final Number MIN ( Number [ ] vals ) { try { Collection col = Arrays . as List ( vals ) ; Number min = ( Number ) Collections . max ( col ) ; return min ; } catch ( Virtual Machine Error err ) { System Failure . initiate Failure ( err ) ; throw err ; } catch ( Throwable t ) { System Failure . check Failur...
public static final Number MIN ( Number [ ] vals ) { try { Collection col = Arrays . asList ( vals ) ; Number min = ( Number ) Collections . max ( col ) ; return min ; } catch ( VirtualMachineError err ) { SystemFailure . initiateFailure ( err ) ; throw err ; } catch ( Throwable t ) { SystemFailure . checkFailure ( ) ;...
82
java-test-1986
java
How does the code write the given value into node depending on the type of the value ?
using writeprimitiveattribute or writecomplexattribute
protected void write Attribute ( mx Codec enc , Object obj , String attr , Object value , Node node ) { value = convert Value To Xml ( value ) ; if ( is Primitive Value ( value ) ) { write Primitive Attribute ( enc , obj , attr , value , node ) ; } else { write Complex Attribute ( enc , obj , attr , value , node ) ; } ...
protected void writeAttribute ( mxCodec enc , Object obj , String attr , Object value , Node node ) { value = convertValueToXml ( value ) ; if ( isPrimitiveValue ( value ) ) { writePrimitiveAttribute ( enc , obj , attr , value , node ) ; } else { writeComplexAttribute ( enc , obj , attr , value , node ) ; } }
77
java-test-1988
java
What will this method set in motion ?
all the steps needed to create and render the current omgraphiclist with the current projection
public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se...
public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ...
83
java-test-1989
java
For what purpose did all the steps need ?
to create and render the current omgraphiclist with the current projection
public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se...
public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ...
83
java-test-1990
java
What will a method launch ?
a layerworker thread to call the prepare method
public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se...
public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ...
83
java-test-1991
java
What will call repaint on this layer ?
workercomplete
public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se...
public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ...
83
java-test-1992
java
What can be picked in the getprojection ( ) method ?
the current projection
public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se...
public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ...
83
java-test-1993
java
What calls the prepare method ?
a layerworker thread
public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se...
public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ...
83
java-test-1994
java
What do a layerworker thread call ?
the prepare method
public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se...
public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ...
83
java-test-1995
java
Where can the current projection be picked ?
in the getprojection ( ) method
public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se...
public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ...
83
java-test-1996
java
How does the code save the pagemanager state ( an ordered stack of pagefactories ) to the provided bundle ?
using the provided tag
public void on Save Instance State ( Bundle out State ) { Log . d ( TAG , STRING + nesting ) ; check Not Null ( out State , STRING ) ; Page page = peek ( ) ; save Page State ( page ) ; out State . put Serializable ( STACK TAG , ( Stack ) m Factory Stack . clone ( ) ) ; out State . put Bundle ( STATE TAG , ( Bundle ) m ...
public void onSaveInstanceState ( Bundle outState ) { Log . d ( TAG , STRING + nesting ) ; checkNotNull ( outState , STRING ) ; Page page = peek ( ) ; savePageState ( page ) ; outState . putSerializable ( STACK_TAG , ( Stack ) mFactoryStack . clone ( ) ) ; outState . putBundle ( STATE_TAG , ( Bundle ) mPageStates . clo...
90
java-test-1997
java
What does the code save to the provided bundle using the provided tag ?
the pagemanager state ( an ordered stack of pagefactories )
public void on Save Instance State ( Bundle out State ) { Log . d ( TAG , STRING + nesting ) ; check Not Null ( out State , STRING ) ; Page page = peek ( ) ; save Page State ( page ) ; out State . put Serializable ( STACK TAG , ( Stack ) m Factory Stack . clone ( ) ) ; out State . put Bundle ( STATE TAG , ( Bundle ) m ...
public void onSaveInstanceState ( Bundle outState ) { Log . d ( TAG , STRING + nesting ) ; checkNotNull ( outState , STRING ) ; Page page = peek ( ) ; savePageState ( page ) ; outState . putSerializable ( STACK_TAG , ( Stack ) mFactoryStack . clone ( ) ) ; outState . putBundle ( STATE_TAG , ( Bundle ) mPageStates . clo...
90
java-test-1998
java
What does unregisters unpublish ?
this reservation
private void unregister ( ) { Grid Dht Local Partition [ ] arr = parts . get ( ) ; if ( ! F . is Empty ( arr ) && parts . compare And Set ( arr , EMPTY ) ) { for ( int i = arr . length - NUM ; i >= NUM ; i -- ) { Grid Dht Local Partition part = arr [ i ] ; part . remove Reservation ( this ) ; try Evict ( part ) ; } } C...
private void unregister ( ) { GridDhtLocalPartition [ ] arr = parts . get ( ) ; if ( ! F . isEmpty ( arr ) && parts . compareAndSet ( arr , EMPTY ) ) { for ( int i = arr . length - _NUM ; i >= _NUM ; i -- ) { GridDhtLocalPartition part = arr [ i ] ; part . removeReservation ( this ) ; tryEvict ( part ) ; } } CI1 < Grid...
136
java-test-2001
java
What does a new disk space monitor use ?
a periodic polling mechanism
public Polling Scan Disk Space Monitor ( Set < Path > watch Paths , long polling Interval Millis ) { this . watch Paths = Collections . unmodifiable Set ( new Hash Set < > ( watch Paths ) ) ; this . polling Interval Millis = polling Interval Millis ; }
public PollingScanDiskSpaceMonitor ( Set < Path > watchPaths , long pollingIntervalMillis ) { this . watchPaths = Collections . unmodifiableSet ( new HashSet < > ( watchPaths ) ) ; this . pollingIntervalMillis = pollingIntervalMillis ; }
52
java-test-2002
java
What does the code create ?
a new disk space monitor that uses a periodic polling mechanism
public Polling Scan Disk Space Monitor ( Set < Path > watch Paths , long polling Interval Millis ) { this . watch Paths = Collections . unmodifiable Set ( new Hash Set < > ( watch Paths ) ) ; this . polling Interval Millis = polling Interval Millis ; }
public PollingScanDiskSpaceMonitor ( Set < Path > watchPaths , long pollingIntervalMillis ) { this . watchPaths = Collections . unmodifiableSet ( new HashSet < > ( watchPaths ) ) ; this . pollingIntervalMillis = pollingIntervalMillis ; }
52
java-test-2003
java
What uses a periodic polling mechanism ?
a new disk space monitor
public Polling Scan Disk Space Monitor ( Set < Path > watch Paths , long polling Interval Millis ) { this . watch Paths = Collections . unmodifiable Set ( new Hash Set < > ( watch Paths ) ) ; this . polling Interval Millis = polling Interval Millis ; }
public PollingScanDiskSpaceMonitor ( Set < Path > watchPaths , long pollingIntervalMillis ) { this . watchPaths = Collections . unmodifiableSet ( new HashSet < > ( watchPaths ) ) ; this . pollingIntervalMillis = pollingIntervalMillis ; }
52
java-test-2004
java
What have we seen the number of times ?
each feature
void update Feature Counts ( int [ ] translation Ids , List < List < Rich Translation < I String , String > > > nbest Lists ) { for ( int i = NUM ; i < translation Ids . length ; i ++ ) { Set < String > features = new Hash Set < String > ( ) ; for ( Rich Translation < I String , String > trans : nbest Lists . get ( i )...
void updateFeatureCounts ( int [ ] translationIds , List < List < RichTranslation < IString , String > > > nbestLists ) { for ( int i = _NUM ; i < translationIds . length ; i ++ ) { Set < String > features = new HashSet < String > ( ) ; for ( RichTranslation < IString , String > trans : nbestLists . get ( i ) ) { for (...
200
java-test-2005
java
What do the file indicate ?
the compaction is present or not
public static boolean is Compaction Required For Table ( String meta Folder Path ) { String minor Compaction Status File = meta Folder Path + Carbon Common Constants . FILE SEPARATOR + Carbon Common Constants . minor Compaction Required File ; String major Compaction Status File = meta Folder Path + Carbon Common Const...
public static boolean isCompactionRequiredForTable ( String metaFolderPath ) { String minorCompactionStatusFile = metaFolderPath + CarbonCommonConstants . FILE_SEPARATOR + CarbonCommonConstants . minorCompactionRequiredFile ; String majorCompactionStatusFile = metaFolderPath + CarbonCommonConstants . FILE_SEPARATOR + C...
155
java-test-2010
java
What does mnemonic and returns structure contain ?
plain text and index of mnemonic char ( if any )
public static Text With Mnemonic parse Text ( final String text With Mnemonic ) { if ( text With Mnemonic == null ) { throw new Illegal Argument Exception ( STRING ) ; } int index = - NUM ; final String Buffer plain Text = new String Buffer ( ) ; for ( int i = NUM ; i < text With Mnemonic . length ( ) ; i ++ ) { char c...
public static TextWithMnemonic parseText ( final String textWithMnemonic ) { if ( textWithMnemonic == null ) { throw new IllegalArgumentException ( STRING ) ; } int index = - _NUM ; final StringBuffer plainText = new StringBuffer ( ) ; for ( int i = _NUM ; i < textWithMnemonic . length ( ) ; i ++ ) { char ch = textWith...
169
java-test-2011
java
What might text contain ?
mnemonic and returns structure which contains plain text and index of mnemonic char ( if any )
public static Text With Mnemonic parse Text ( final String text With Mnemonic ) { if ( text With Mnemonic == null ) { throw new Illegal Argument Exception ( STRING ) ; } int index = - NUM ; final String Buffer plain Text = new String Buffer ( ) ; for ( int i = NUM ; i < text With Mnemonic . length ( ) ; i ++ ) { char c...
public static TextWithMnemonic parseText ( final String textWithMnemonic ) { if ( textWithMnemonic == null ) { throw new IllegalArgumentException ( STRING ) ; } int index = - _NUM ; final StringBuffer plainText = new StringBuffer ( ) ; for ( int i = _NUM ; i < textWithMnemonic . length ( ) ; i ++ ) { char ch = textWith...
169
java-test-2012
java
What contains plain text and index of mnemonic char ( if any ) ?
mnemonic and returns structure
public static Text With Mnemonic parse Text ( final String text With Mnemonic ) { if ( text With Mnemonic == null ) { throw new Illegal Argument Exception ( STRING ) ; } int index = - NUM ; final String Buffer plain Text = new String Buffer ( ) ; for ( int i = NUM ; i < text With Mnemonic . length ( ) ; i ++ ) { char c...
public static TextWithMnemonic parseText ( final String textWithMnemonic ) { if ( textWithMnemonic == null ) { throw new IllegalArgumentException ( STRING ) ; } int index = - _NUM ; final StringBuffer plainText = new StringBuffer ( ) ; for ( int i = _NUM ; i < textWithMnemonic . length ( ) ; i ++ ) { char ch = textWith...
169
java-test-2015
java
What does the code destroy ?
the provided bucket
public void destroy Bucket ( Auto Mix Bucket bucket ) { Shared Preferences prefs = get Prefs ( ) ; Shared Preferences . Editor editor = prefs . edit ( ) ; Set < String > set = new Tree Set < > ( prefs . get String Set ( PREF BUCKETS IDS , new Tree Set < String > ( ) ) ) ; set . remove ( bucket . get Session Id ( ) ) ; ...
public void destroyBucket ( AutoMixBucket bucket ) { SharedPreferences prefs = getPrefs ( ) ; SharedPreferences . Editor editor = prefs . edit ( ) ; Set < String > set = new TreeSet < > ( prefs . getStringSet ( PREF_BUCKETS_IDS , new TreeSet < String > ( ) ) ) ; set . remove ( bucket . getSessionId ( ) ) ; editor . put...
106
java-test-2017
java
When do info displayed keep ?
even when outside the component right - click
@ Override public void mouse Clicked ( Mouse Event e ) { if ( Swing Utilities . is Left Mouse Button ( e ) ) { if ( e . get Click Count ( ) == NUM ) { fixed Hover Entry = BOOL ; set Fixed Start At ( hover Entry ) ; } else { long actual Hover Entry = find Hover Entry ( e . get Point ( ) ) ; fixed Hover Entry = actual Ho...
@ Override public void mouseClicked ( MouseEvent e ) { if ( SwingUtilities . isLeftMouseButton ( e ) ) { if ( e . getClickCount ( ) == _NUM ) { fixedHoverEntry = _BOOL ; setFixedStartAt ( hoverEntry ) ; } else { long actualHoverEntry = findHoverEntry ( e . getPoint ( ) ) ; fixedHoverEntry = actualHoverEntry != - _NUM ;...
111
java-test-2018
java
Where do stuff display ?
on mouse
@ Override public void mouse Clicked ( Mouse Event e ) { if ( Swing Utilities . is Left Mouse Button ( e ) ) { if ( e . get Click Count ( ) == NUM ) { fixed Hover Entry = BOOL ; set Fixed Start At ( hover Entry ) ; } else { long actual Hover Entry = find Hover Entry ( e . get Point ( ) ) ; fixed Hover Entry = actual Ho...
@ Override public void mouseClicked ( MouseEvent e ) { if ( SwingUtilities . isLeftMouseButton ( e ) ) { if ( e . getClickCount ( ) == _NUM ) { fixedHoverEntry = _BOOL ; setFixedStartAt ( hoverEntry ) ; } else { long actualHoverEntry = findHoverEntry ( e . getPoint ( ) ) ; fixedHoverEntry = actualHoverEntry != - _NUM ;...
111
java-test-2020
java
What does the code traverse ?
the expanded group metadata list
@ Suppress Warnings ( STRING ) private void refresh Exp Group Metadata List ( boolean force Children Count Refresh , boolean sync Group Positions ) { final Array List < Group Metadata > egml = m Exp Group Metadata List ; int egml Size = egml . size ( ) ; int cur Fl Pos = NUM ; m Total Exp Children Count = NUM ; if ( sy...
@ SuppressWarnings ( STRING ) private void refreshExpGroupMetadataList ( boolean forceChildrenCountRefresh , boolean syncGroupPositions ) { final ArrayList < GroupMetadata > egml = mExpGroupMetadataList ; int egmlSize = egml . size ( ) ; int curFlPos = _NUM ; mTotalExpChildrenCount = _NUM ; if ( syncGroupPositions ) { ...
384
java-test-2021
java
What does the code write ?
a domain specification object
private void write Domain Spec ( Domain Spec spec , Document document , Element parent Element ) { if ( spec instanceof Top Domain ) { Element top Domain = document . create Element ( STRING ) ; parent Element . append Child ( top Domain ) ; } else if ( spec instanceof Bottom Domain ) { Element bottom Domain = document...
private void writeDomainSpec ( DomainSpec spec , Document document , Element parentElement ) { if ( spec instanceof TopDomain ) { Element topDomain = document . createElement ( STRING ) ; parentElement . appendChild ( topDomain ) ; } else if ( spec instanceof BottomDomain ) { Element bottomDomain = document . createEle...
146
java-test-2022
java
What does the code provide ?
an iterator of indices
@ Data Provider ( name = STRING ) public Iterator < Object [ ] > repeat Data Provider ( ) { Collection < Object [ ] > dp = new Array List < > ( experiment Count ) ; for ( int count = NUM ; count < experiment Count ; count ++ ) { dp . add ( new Object [ ] { count } ) ; } return dp . iterator ( ) ; }
@ DataProvider ( name = STRING ) public Iterator < Object [ ] > repeatDataProvider ( ) { Collection < Object [ ] > dp = new ArrayList < > ( experimentCount ) ; for ( int count = _NUM ; count < experimentCount ; count ++ ) { dp . add ( new Object [ ] { count } ) ; } return dp . iterator ( ) ; }
77
java-test-2023
java
What do the given protos not have ?
different hash codes
private void check Not Equal ( Message m1 , Message m2 ) { String equals Error = String . format ( STRING , m1 , m2 ) ; assert False ( equals Error , m1 . equals ( m2 ) ) ; assert False ( equals Error , m2 . equals ( m1 ) ) ; assert False ( String . format ( STRING , m1 , m2 ) , m1 . hash Code ( ) == m2 . hash Code ( )...
private void checkNotEqual ( Message m1 , Message m2 ) { String equalsError = String . format ( STRING , m1 , m2 ) ; assertFalse ( equalsError , m1 . equals ( m2 ) ) ; assertFalse ( equalsError , m2 . equals ( m1 ) ) ; assertFalse ( String . format ( STRING , m1 , m2 ) , m1 . hashCode ( ) == m2 . hashCode ( ) ) ; }
86
java-test-2024
java
What not haves different hash codes ?
the given protos
private void check Not Equal ( Message m1 , Message m2 ) { String equals Error = String . format ( STRING , m1 , m2 ) ; assert False ( equals Error , m1 . equals ( m2 ) ) ; assert False ( equals Error , m2 . equals ( m1 ) ) ; assert False ( String . format ( STRING , m1 , m2 ) , m1 . hash Code ( ) == m2 . hash Code ( )...
private void checkNotEqual ( Message m1 , Message m2 ) { String equalsError = String . format ( STRING , m1 , m2 ) ; assertFalse ( equalsError , m1 . equals ( m2 ) ) ; assertFalse ( equalsError , m2 . equals ( m1 ) ) ; assertFalse ( String . format ( STRING , m1 , m2 ) , m1 . hashCode ( ) == m2 . hashCode ( ) ) ; }
86
java-test-2025
java
Do the given protos have different hash codes ?
No
private void check Not Equal ( Message m1 , Message m2 ) { String equals Error = String . format ( STRING , m1 , m2 ) ; assert False ( equals Error , m1 . equals ( m2 ) ) ; assert False ( equals Error , m2 . equals ( m1 ) ) ; assert False ( String . format ( STRING , m1 , m2 ) , m1 . hash Code ( ) == m2 . hash Code ( )...
private void checkNotEqual ( Message m1 , Message m2 ) { String equalsError = String . format ( STRING , m1 , m2 ) ; assertFalse ( equalsError , m1 . equals ( m2 ) ) ; assertFalse ( equalsError , m2 . equals ( m1 ) ) ; assertFalse ( String . format ( STRING , m1 , m2 ) , m1 . hashCode ( ) == m2 . hashCode ( ) ) ; }
86
java-test-2027
java
When did the code execute ?
before delete operation
protected boolean before Delete ( ) { if ( is Store Attachments On File System ) { for ( int i = NUM ; i < m items . size ( ) ; i ++ ) { final M Attachment Entry entry = m items . get ( i ) ; final File file = entry . get File ( ) ; if ( file != null && file . exists ( ) ) { if ( ! file . delete ( ) ) { log . warning (...
protected boolean beforeDelete ( ) { if ( isStoreAttachmentsOnFileSystem ) { for ( int i = _NUM ; i < m_items . size ( ) ; i ++ ) { final MAttachmentEntry entry = m_items . get ( i ) ; final File file = entry . getFile ( ) ; if ( file != null && file . exists ( ) ) { if ( ! file . delete ( ) ) { log . warning ( STRING ...
164
java-test-2028
java
What fires a propertychangeevent for the scale values for scale and offset with the affinetransforms representing the previous and new ?
setter
public void scale ( double scalex , double scaley , Point 2 D from ) { Affine Transform xf = Affine Transform . get Translate Instance ( from . get X ( ) , from . get Y ( ) ) ; xf . scale ( scalex , scaley ) ; xf . translate ( - from . get X ( ) , - from . get Y ( ) ) ; inverse = null ; transform . pre Concatenate ( xf...
public void scale ( double scalex , double scaley , Point2D from ) { AffineTransform xf = AffineTransform . getTranslateInstance ( from . getX ( ) , from . getY ( ) ) ; xf . scale ( scalex , scaley ) ; xf . translate ( - from . getX ( ) , - from . getY ( ) ) ; inverse = null ; transform . preConcatenate ( xf ) ; fireSt...
91
java-test-2029
java
How does setter fire a propertychangeevent for the scale values for scale and offset ?
with the affinetransforms representing the previous and new
public void scale ( double scalex , double scaley , Point 2 D from ) { Affine Transform xf = Affine Transform . get Translate Instance ( from . get X ( ) , from . get Y ( ) ) ; xf . scale ( scalex , scaley ) ; xf . translate ( - from . get X ( ) , - from . get Y ( ) ) ; inverse = null ; transform . pre Concatenate ( xf...
public void scale ( double scalex , double scaley , Point2D from ) { AffineTransform xf = AffineTransform . getTranslateInstance ( from . getX ( ) , from . getY ( ) ) ; xf . scale ( scalex , scaley ) ; xf . translate ( - from . getX ( ) , - from . getY ( ) ) ; inverse = null ; transform . preConcatenate ( xf ) ; fireSt...
91
java-test-2030
java
What is representing the previous and new values for scale and offset ?
the affinetransforms
public void scale ( double scalex , double scaley , Point 2 D from ) { Affine Transform xf = Affine Transform . get Translate Instance ( from . get X ( ) , from . get Y ( ) ) ; xf . scale ( scalex , scaley ) ; xf . translate ( - from . get X ( ) , - from . get Y ( ) ) ; inverse = null ; transform . pre Concatenate ( xf...
public void scale ( double scalex , double scaley , Point2D from ) { AffineTransform xf = AffineTransform . getTranslateInstance ( from . getX ( ) , from . getY ( ) ) ; xf . scale ( scalex , scaley ) ; xf . translate ( - from . getX ( ) , - from . getY ( ) ) ; inverse = null ; transform . preConcatenate ( xf ) ; fireSt...
91