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-11547
java
What do x get firstly then ?
y = a * e ^ ( - b * x ) * sin ( c * x + d )
public static float vibration ( float x , float total Length , float A , float B , float C , float D ) { x *= total Length ; return ( float ) ( A * Math . exp ( - B * x ) * Math . sin ( C * x + D ) ) ; }
public static float vibration ( float x , float totalLength , float A , float B , float C , float D ) { x *= totalLength ; return ( float ) ( A * Math . exp ( - B * x ) * Math . sin ( C * x + D ) ) ; }
60
java-test-11548
java
What does method take ?
an omgraphic
public static Iterator create Shape 3 D ( OM Graphic graphic , double baseline Height ) { Debug . message ( STRING , STRING ) ; boolean DEBUG SHAPE = Debug . debugging ( STRING ) ; if ( graphic == null ) { return NULL ITERATOR ; } if ( graphic instanceof OM Graphic List ) { Hash Set set = new Hash Set ( ) ; for ( OM Gr...
public static Iterator createShape3D ( OMGraphic graphic , double baselineHeight ) { Debug . message ( STRING , STRING ) ; boolean DEBUG_SHAPE = Debug . debugging ( STRING ) ; if ( graphic == null ) { return NULL_ITERATOR ; } if ( graphic instanceof OMGraphicList ) { HashSet set = new HashSet ( ) ; for ( OMGraphic subg...
275
java-test-11549
java
What does method create out of it ?
one or more shape3d objects
public static Iterator create Shape 3 D ( OM Graphic graphic , double baseline Height ) { Debug . message ( STRING , STRING ) ; boolean DEBUG SHAPE = Debug . debugging ( STRING ) ; if ( graphic == null ) { return NULL ITERATOR ; } if ( graphic instanceof OM Graphic List ) { Hash Set set = new Hash Set ( ) ; for ( OM Gr...
public static Iterator createShape3D ( OMGraphic graphic , double baselineHeight ) { Debug . message ( STRING , STRING ) ; boolean DEBUG_SHAPE = Debug . debugging ( STRING ) ; if ( graphic == null ) { return NULL_ITERATOR ; } if ( graphic instanceof OMGraphicList ) { HashSet set = new HashSet ( ) ; for ( OMGraphic subg...
275
java-test-11550
java
What does method return ?
an iterator containing them
public static Iterator create Shape 3 D ( OM Graphic graphic , double baseline Height ) { Debug . message ( STRING , STRING ) ; boolean DEBUG SHAPE = Debug . debugging ( STRING ) ; if ( graphic == null ) { return NULL ITERATOR ; } if ( graphic instanceof OM Graphic List ) { Hash Set set = new Hash Set ( ) ; for ( OM Gr...
public static Iterator createShape3D ( OMGraphic graphic , double baselineHeight ) { Debug . message ( STRING , STRING ) ; boolean DEBUG_SHAPE = Debug . debugging ( STRING ) ; if ( graphic == null ) { return NULL_ITERATOR ; } if ( graphic instanceof OMGraphicList ) { HashSet set = new HashSet ( ) ; for ( OMGraphic subg...
275
java-test-11551
java
What does the code overwrite if it exists ?
the existing entry
private final void add User ( String channel , User user ) { channel = channel . to Lower Case ( ) ; synchronized ( channels ) { Hashtable < User , User > users = channels . get ( channel ) ; if ( users == null ) { users = new Hashtable < User , User > ( ) ; channels . put ( channel , users ) ; } users . put ( user , u...
private final void addUser ( String channel , User user ) { channel = channel . toLowerCase ( ) ; synchronized ( _channels ) { Hashtable < User , User > users = _channels . get ( channel ) ; if ( users == null ) { users = new Hashtable < User , User > ( ) ; _channels . put ( channel , users ) ; } users . put ( user , u...
83
java-test-11552
java
What mean what ?
the extra arguments
public void load Traces ( Reader r ) throws Trace Exception , java . io . IO Exception { Trim Line Reader reader = new Log File Traces . Trim Line Reader ( r ) ; String Tokenizer tokens = reader . tokenize Line ( ) ; if ( tokens == null ) { throw new Trace Exception ( STRING ) ; } while ( ! tokens . has More Tokens ( )...
public void loadTraces ( Reader r ) throws TraceException , java . io . IOException { TrimLineReader reader = new LogFileTraces . TrimLineReader ( r ) ; StringTokenizer tokens = reader . tokenizeLine ( ) ; if ( tokens == null ) { throw new TraceException ( STRING ) ; } while ( ! tokens . hasMoreTokens ( ) ) { tokens = ...
560
java-test-11555
java
How do message send to groups ?
via zk
public void send ( Jetstream Message msg ) throws Exception { if ( msg == null ) { throw new Exception ( STRING ) ; } Request req = new ZK Send Message Request ( this , msg ) ; if ( ! m request Queue . offer ( req ) ) LOGGER . warn ( STRING ) ; }
public void send ( JetstreamMessage msg ) throws Exception { if ( msg == null ) { throw new Exception ( STRING ) ; } Request req = new ZKSendMessageRequest ( this , msg ) ; if ( ! m_requestQueue . offer ( req ) ) LOGGER . warn ( STRING ) ; }
60
java-test-11556
java
What does the code wrap in a random order ?
the specified iterator
public Unsorted Input Iterator ( Input Iterator source ) throws IO Exception { super ( source ) ; ords = new int [ entries . size ( ) ] ; Random random = new Random ( ) ; for ( int i = NUM ; i < ords . length ; i ++ ) { ords [ i ] = i ; } for ( int i = NUM ; i < ords . length ; i ++ ) { int random Position = random . n...
public UnsortedInputIterator ( InputIterator source ) throws IOException { super ( source ) ; ords = new int [ entries . size ( ) ] ; Random random = new Random ( ) ; for ( int i = _NUM ; i < ords . length ; i ++ ) { ords [ i ] = i ; } for ( int i = _NUM ; i < ords . length ; i ++ ) { int randomPosition = random . next...
123
java-test-11557
java
What do power key click quickly then ?
to lock phone
private void power Up Auto If Need ( ) { if ( ( NUM == m Value Head Set Plug ) ) { if ( ! m Is Power Uping && ! m Is Power Up && s Activity Is On Stop ) { Log . w ( TAG , STRING ) ; int i Current Station = Fm Radio Station . get Current Station ( m Context ) ; power Up Async ( Fm Radio Utils . compute Frequency ( i Cur...
private void powerUpAutoIfNeed ( ) { if ( ( _NUM == mValueHeadSetPlug ) ) { if ( ! mIsPowerUping && ! mIsPowerUp && sActivityIsOnStop ) { Log . w ( TAG , STRING ) ; int iCurrentStation = FmRadioStation . getCurrentStation ( mContext ) ; powerUpAsync ( FmRadioUtils . computeFrequency ( iCurrentStation ) ) ; } } }
90
java-test-11558
java
What clicks to lock phone quickly then ?
power key
private void power Up Auto If Need ( ) { if ( ( NUM == m Value Head Set Plug ) ) { if ( ! m Is Power Uping && ! m Is Power Up && s Activity Is On Stop ) { Log . w ( TAG , STRING ) ; int i Current Station = Fm Radio Station . get Current Station ( m Context ) ; power Up Async ( Fm Radio Utils . compute Frequency ( i Cur...
private void powerUpAutoIfNeed ( ) { if ( ( _NUM == mValueHeadSetPlug ) ) { if ( ! mIsPowerUping && ! mIsPowerUp && sActivityIsOnStop ) { Log . w ( TAG , STRING ) ; int iCurrentStation = FmRadioStation . getCurrentStation ( mContext ) ; powerUpAsync ( FmRadioUtils . computeFrequency ( iCurrentStation ) ) ; } } }
90
java-test-11559
java
For what purpose do auto power ?
for two cases
private void power Up Auto If Need ( ) { if ( ( NUM == m Value Head Set Plug ) ) { if ( ! m Is Power Uping && ! m Is Power Up && s Activity Is On Stop ) { Log . w ( TAG , STRING ) ; int i Current Station = Fm Radio Station . get Current Station ( m Context ) ; power Up Async ( Fm Radio Utils . compute Frequency ( i Cur...
private void powerUpAutoIfNeed ( ) { if ( ( _NUM == mValueHeadSetPlug ) ) { if ( ! mIsPowerUping && ! mIsPowerUp && sActivityIsOnStop ) { Log . w ( TAG , STRING ) ; int iCurrentStation = FmRadioStation . getCurrentStation ( mContext ) ; powerUpAsync ( FmRadioUtils . computeFrequency ( iCurrentStation ) ) ; } } }
90
java-test-11560
java
How is these two cases will not callback ?
onserviceconnected
private void power Up Auto If Need ( ) { if ( ( NUM == m Value Head Set Plug ) ) { if ( ! m Is Power Uping && ! m Is Power Up && s Activity Is On Stop ) { Log . w ( TAG , STRING ) ; int i Current Station = Fm Radio Station . get Current Station ( m Context ) ; power Up Async ( Fm Radio Utils . compute Frequency ( i Cur...
private void powerUpAutoIfNeed ( ) { if ( ( _NUM == mValueHeadSetPlug ) ) { if ( ! mIsPowerUping && ! mIsPowerUp && sActivityIsOnStop ) { Log . w ( TAG , STRING ) ; int iCurrentStation = FmRadioStation . getCurrentStation ( mContext ) ; powerUpAsync ( FmRadioUtils . computeFrequency ( iCurrentStation ) ) ; } } }
90
java-test-11567
java
Where do the tenant credentials / signers copy under services ?
at new location
private void copy Signer To New Location ( ) { String tenant Ldu Dn = get Ldu Dn ( ) ; I Ldap Message creds Objects = null ; try { creds Objects = get Tenant Credentials ( tenant Ldu Dn ) ; int max Index = get Curr Max Index ( TRUSTED CRED OBJECT CLASS , null ) + NUM ; String cn = get Tenant Credential Cn ( max Index )...
private void copySignerToNewLocation ( ) { String tenantLduDn = getLduDn ( ) ; ILdapMessage credsObjects = null ; try { credsObjects = getTenantCredentials ( tenantLduDn ) ; int maxIndex = getCurrMaxIndex ( TRUSTED_CRED_OBJECT_CLASS , null ) + _NUM ; String cn = getTenantCredentialCn ( maxIndex ) ; ILdapEntry lastSigne...
213
java-test-11568
java
How do the tenant credentials / signers copy at new location ?
under services
private void copy Signer To New Location ( ) { String tenant Ldu Dn = get Ldu Dn ( ) ; I Ldap Message creds Objects = null ; try { creds Objects = get Tenant Credentials ( tenant Ldu Dn ) ; int max Index = get Curr Max Index ( TRUSTED CRED OBJECT CLASS , null ) + NUM ; String cn = get Tenant Credential Cn ( max Index )...
private void copySignerToNewLocation ( ) { String tenantLduDn = getLduDn ( ) ; ILdapMessage credsObjects = null ; try { credsObjects = getTenantCredentials ( tenantLduDn ) ; int maxIndex = getCurrMaxIndex ( TRUSTED_CRED_OBJECT_CLASS , null ) + _NUM ; String cn = getTenantCredentialCn ( maxIndex ) ; ILdapEntry lastSigne...
213
java-test-11569
java
What copy at new location ?
the tenant credentials / signers
private void copy Signer To New Location ( ) { String tenant Ldu Dn = get Ldu Dn ( ) ; I Ldap Message creds Objects = null ; try { creds Objects = get Tenant Credentials ( tenant Ldu Dn ) ; int max Index = get Curr Max Index ( TRUSTED CRED OBJECT CLASS , null ) + NUM ; String cn = get Tenant Credential Cn ( max Index )...
private void copySignerToNewLocation ( ) { String tenantLduDn = getLduDn ( ) ; ILdapMessage credsObjects = null ; try { credsObjects = getTenantCredentials ( tenantLduDn ) ; int maxIndex = getCurrMaxIndex ( TRUSTED_CRED_OBJECT_CLASS , null ) + _NUM ; String cn = getTenantCredentialCn ( maxIndex ) ; ILdapEntry lastSigne...
213
java-test-11570
java
For what purpose is we declare a dummy script here ?
so there is no warning in the ij run / debug configuration window about " missing shutdown script "
@ Override public OS Process Handler create Process Handler ( String working Directory , Map < String , String > env Variables ) throws Execution Exception { startup Process Handler . destroy Process ( ) ; Process Builder dummy Process = new Process Builder ( STRING ) ; try { return new OS Process Handler ( dummy Proce...
@ Override public OSProcessHandler createProcessHandler ( String workingDirectory , Map < String , String > envVariables ) throws ExecutionException { startupProcessHandler . destroyProcess ( ) ; ProcessBuilder dummyProcess = new ProcessBuilder ( STRING ) ; try { return new OSProcessHandler ( dummyProcess . start ( ) ,...
91
java-test-11571
java
What is we declare here so there is no warning in the ij run / debug configuration window about " missing shutdown script " ?
a dummy script
@ Override public OS Process Handler create Process Handler ( String working Directory , Map < String , String > env Variables ) throws Execution Exception { startup Process Handler . destroy Process ( ) ; Process Builder dummy Process = new Process Builder ( STRING ) ; try { return new OS Process Handler ( dummy Proce...
@ Override public OSProcessHandler createProcessHandler ( String workingDirectory , Map < String , String > envVariables ) throws ExecutionException { startupProcessHandler . destroyProcess ( ) ; ProcessBuilder dummyProcess = new ProcessBuilder ( STRING ) ; try { return new OSProcessHandler ( dummyProcess . start ( ) ,...
91
java-test-11572
java
What indicated in the query ?
the identifier scheme meta data property
private void apply Id Scheme ( Data Query Params params , Grid grid ) { if ( ! params . is Skip Meta ( ) && params . has Non Uid Output Id Scheme ( ) ) { List < Dimensional Item Object > items = params . get All Dimension Items ( ) ; Map < String , String > map = Identifiable Object Utils . get Uid Property Map ( items...
private void applyIdScheme ( DataQueryParams params , Grid grid ) { if ( ! params . isSkipMeta ( ) && params . hasNonUidOutputIdScheme ( ) ) { List < DimensionalItemObject > items = params . getAllDimensionItems ( ) ; Map < String , String > map = IdentifiableObjectUtils . getUidPropertyMap ( items , params . getOutput...
95
java-test-11573
java
What does the code substitute with the identifier scheme meta data property indicated in the query ?
the meta data of the grid
private void apply Id Scheme ( Data Query Params params , Grid grid ) { if ( ! params . is Skip Meta ( ) && params . has Non Uid Output Id Scheme ( ) ) { List < Dimensional Item Object > items = params . get All Dimension Items ( ) ; Map < String , String > map = Identifiable Object Utils . get Uid Property Map ( items...
private void applyIdScheme ( DataQueryParams params , Grid grid ) { if ( ! params . isSkipMeta ( ) && params . hasNonUidOutputIdScheme ( ) ) { List < DimensionalItemObject > items = params . getAllDimensionItems ( ) ; Map < String , String > map = IdentifiableObjectUtils . getUidPropertyMap ( items , params . getOutput...
95
java-test-11574
java
What does the code update with the backend replication group name ?
the backend volume
private void update Backend Volume ( Block Consistency Group cg , Volume backend Volume , Db Client db Client ) { if ( backend Volume != null ) { String backend CG = cg . get Cg Name On Storage System ( backend Volume . get Storage Controller ( ) ) ; if ( backend CG != null && ! backend CG . is Empty ( ) ) { log . info...
private void updateBackendVolume ( BlockConsistencyGroup cg , Volume backendVolume , DbClient dbClient ) { if ( backendVolume != null ) { String backendCG = cg . getCgNameOnStorageSystem ( backendVolume . getStorageController ( ) ) ; if ( backendCG != null && ! backendCG . isEmpty ( ) ) { log . info ( STRING , backendV...
112
java-test-11579
java
What is the buffer have expecting ?
to have the required capacity available
public static void insert Empty Data ( Byte Buffer buffer , int len ) { byte [ ] buf = buffer . array ( ) ; int pos = buffer . position ( ) ; int limit = buffer . limit ( ) ; System . arraycopy ( buf , pos , buf , pos + len , limit - pos ) ; Arrays . fill ( buf , pos , pos + len , ( byte ) NUM ) ; buffer . limit ( limi...
public static void insertEmptyData ( ByteBuffer buffer , int len ) { byte [ ] buf = buffer . array ( ) ; int pos = buffer . position ( ) ; int limit = buffer . limit ( ) ; System . arraycopy ( buf , pos , buf , pos + len , limit - pos ) ; Arrays . fill ( buf , pos , pos + len , ( byte ) _NUM ) ; buffer . limit ( limit ...
91
java-test-11580
java
What do the buffer have ?
the required capacity available
public static void insert Empty Data ( Byte Buffer buffer , int len ) { byte [ ] buf = buffer . array ( ) ; int pos = buffer . position ( ) ; int limit = buffer . limit ( ) ; System . arraycopy ( buf , pos , buf , pos + len , limit - pos ) ; Arrays . fill ( buf , pos , pos + len , ( byte ) NUM ) ; buffer . limit ( limi...
public static void insertEmptyData ( ByteBuffer buffer , int len ) { byte [ ] buf = buffer . array ( ) ; int pos = buffer . position ( ) ; int limit = buffer . limit ( ) ; System . arraycopy ( buf , pos , buf , pos + len , limit - pos ) ; Arrays . fill ( buf , pos , pos + len , ( byte ) _NUM ) ; buffer . limit ( limit ...
91
java-test-11581
java
When does it return error ?
when cart empty
public static String check Cart ( Http Servlet Request request , Http Servlet Response response ) { Shopping Cart cart = get Cart Object ( request ) ; if ( cart == null || cart . size ( ) <= NUM ) { return STRING ; } return STRING ; }
public static String checkCart ( HttpServletRequest request , HttpServletResponse response ) { ShoppingCart cart = getCartObject ( request ) ; if ( cart == null || cart . size ( ) <= _NUM ) { return STRING ; } return STRING ; }
51
java-test-11584
java
What does the code create ?
a step in the passed workflow to detach the backend full copy volumes with the passed uris
private String create Workflow Step For Detach Native Full Copy ( Workflow workflow , Storage System native System , List < URI > native Full Copy UR Is , String wait For , Workflow . Method rollback Method ) { URI native System URI = native System . get Id ( ) ; Workflow . Method detach Full Copy Method = new Workflow...
private String createWorkflowStepForDetachNativeFullCopy ( Workflow workflow , StorageSystem nativeSystem , List < URI > nativeFullCopyURIs , String waitFor , Workflow . Method rollbackMethod ) { URI nativeSystemURI = nativeSystem . getId ( ) ; Workflow . Method detachFullCopyMethod = new Workflow . Method ( DETACH_FC_...
158
java-test-11585
java
What does the code write ?
the data for a given entity
public void write Data ( Object entity , Entity Type entity Type ) throws XML Stream Exception , O Data Render Exception { xml Writer . write Start Element ( ODATA CONTENT ) ; xml Writer . write Attribute ( TYPE , XML . to String ( ) ) ; xml Writer . write Start Element ( METADATA , ODATA PROPERTIES , STRING ) ; marsha...
public void writeData ( Object entity , EntityType entityType ) throws XMLStreamException , ODataRenderException { xmlWriter . writeStartElement ( ODATA_CONTENT ) ; xmlWriter . writeAttribute ( TYPE , XML . toString ( ) ) ; xmlWriter . writeStartElement ( METADATA , ODATA_PROPERTIES , STRING ) ; marshall ( entity , ent...
92
java-test-11586
java
For what purpose can attribute - value pairs be specifed ?
so that distinguished name of users with matching attribute - value pairs will be returned
public AM Search Results search Users ( AM Search Control search Control , String av Filter ) throws AM Exception , SSO Exception { int level = search Control . get Search Scope ( ) ; if ( ( level != AM Constants . SCOPE ONE ) && ( level != AM Constants . SCOPE SUB ) ) { throw new AM Exception ( AMSDK Bundle . get Stri...
public AMSearchResults searchUsers ( AMSearchControl searchControl , String avFilter ) throws AMException , SSOException { int level = searchControl . getSearchScope ( ) ; if ( ( level != AMConstants . SCOPE_ONE ) && ( level != AMConstants . SCOPE_SUB ) ) { throw new AMException ( AMSDKBundle . getString ( STRING , sup...
183
java-test-11590
java
What does the code save to disk ?
the given key pair
public static boolean save DSA Key Pair File ( String uname , Key Pair kp ) { boolean success = BOOL ; if ( save DSA Private Key File ( uname , ( DSA Private Key ) kp . get Private ( ) ) ) { success = save DSA Public Key File ( uname , ( DSA Public Key ) kp . get Public ( ) ) ; } return success ; }
public static boolean saveDSAKeyPairFile ( String uname , KeyPair kp ) { boolean success = _BOOL ; if ( saveDSAPrivateKeyFile ( uname , ( DSAPrivateKey ) kp . getPrivate ( ) ) ) { success = saveDSAPublicKeyFile ( uname , ( DSAPublicKey ) kp . getPublic ( ) ) ; } return success ; }
74
java-test-11591
java
What does the code generate if one doesn ' t exist ?
an empty keystore for the private key
public static boolean save DSA Key Pair File ( String uname , Key Pair kp ) { boolean success = BOOL ; if ( save DSA Private Key File ( uname , ( DSA Private Key ) kp . get Private ( ) ) ) { success = save DSA Public Key File ( uname , ( DSA Public Key ) kp . get Public ( ) ) ; } return success ; }
public static boolean saveDSAKeyPairFile ( String uname , KeyPair kp ) { boolean success = _BOOL ; if ( saveDSAPrivateKeyFile ( uname , ( DSAPrivateKey ) kp . getPrivate ( ) ) ) { success = saveDSAPublicKeyFile ( uname , ( DSAPublicKey ) kp . getPublic ( ) ) ; } return success ; }
74
java-test-11594
java
How do the given object recreate ?
using the given pdxreader
public Object read Data ( Pdx Reader reader , Class < ? > clazz ) { Object result = null ; if ( is Relevant ( clazz ) ) { Auto Class Info ci = get Class Info ( clazz ) ; result = ci . new Instance ( clazz ) ; Internal Pdx Reader ri = ( Internal Pdx Reader ) reader ; Pdx Type pt = ri . get Pdx Type ( ) ; if ( ci . match...
public Object readData ( PdxReader reader , Class < ? > clazz ) { Object result = null ; if ( isRelevant ( clazz ) ) { AutoClassInfo ci = getClassInfo ( clazz ) ; result = ci . newInstance ( clazz ) ; InternalPdxReader ri = ( InternalPdxReader ) reader ; PdxType pt = ri . getPdxType ( ) ; if ( ci . matchesPdxType ( pt ...
141
java-test-11595
java
What does the code build ?
an array of positions in geojson format
public static Json Array geo JSON Coordinates ( Array List < Geo Point > coordinates ) { Json Array json = new Json Array ( ) ; Iterator < Geo Point > it = coordinates . iterator ( ) ; while ( it . has Next ( ) ) { Geo Point position = it . next ( ) ; json . add ( Kml Geometry . geo JSON Position ( position ) ) ; } ret...
public static JsonArray geoJSONCoordinates ( ArrayList < GeoPoint > coordinates ) { JsonArray json = new JsonArray ( ) ; Iterator < GeoPoint > it = coordinates . iterator ( ) ; while ( it . hasNext ( ) ) { GeoPoint position = it . next ( ) ; json . add ( KmlGeometry . geoJSONPosition ( position ) ) ; } return json ; }
80
java-test-11596
java
How does a model build ?
using the current kernel
protected String use Kernel ( Instances data ) throws Exception { Kernel kernel = null ; String Buffer text = new String Buffer ( ) ; try { kernel = Kernel . make Copy ( m Kernel ) ; } catch ( Exception e ) { e . print Stack Trace ( ) ; fail ( STRING + e ) ; } kernel . build Kernel ( data ) ; for ( int n = NUM ; n < da...
protected String useKernel ( Instances data ) throws Exception { Kernel kernel = null ; StringBuffer text = new StringBuffer ( ) ; try { kernel = Kernel . makeCopy ( m_Kernel ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; fail ( STRING + e ) ; } kernel . buildKernel ( data ) ; for ( int n = _NUM ; n < data . n...
160
java-test-11610
java
What does the code collect into a contiguous list ?
all the points from the directededges of this ring
protected void compute Points ( Directed Edge start ) { start De = start ; Directed Edge de = start ; boolean is First Edge = BOOL ; do { if ( de == null ) throw new Topology Exception ( STRING ) ; if ( de . get Edge Ring ( ) == this ) throw new Topology Exception ( STRING + de . get Coordinate ( ) ) ; edges . add ( de...
protected void computePoints ( DirectedEdge start ) { startDe = start ; DirectedEdge de = start ; boolean isFirstEdge = _BOOL ; do { if ( de == null ) throw new TopologyException ( STRING ) ; if ( de . getEdgeRing ( ) == this ) throw new TopologyException ( STRING + de . getCoordinate ( ) ) ; edges . add ( de ) ; Label...
162
java-test-11612
java
What does the code expect ?
that the waitstrategy returns successfully after connection to a container with a listening port
protected void wait Until Ready And Succeed ( String shell Command ) { final Generic Container container = start Container With Command ( shell Command ) ; container . start ( ) ; assert True ( String . format ( STRING , WAIT TIMEOUT MILLIS ) , ready . get ( ) ) ; }
protected void waitUntilReadyAndSucceed ( String shellCommand ) { final GenericContainer container = startContainerWithCommand ( shellCommand ) ; container . start ( ) ; assertTrue ( String . format ( STRING , WAIT_TIMEOUT_MILLIS ) , ready . get ( ) ) ; }
55
java-test-11619
java
What does this method create ?
zero spacing around the buttons
public static J Panel create Dialog Button Panel ( J Button jb Positive , J Button jb Negative ) { J Panel panel = new J Panel ( new Mig Layout ( STRING ) ) ; if ( jb Positive != null ) { panel . add ( jb Positive , STRING ) ; } if ( jb Negative != null ) { panel . add ( jb Negative , STRING ) ; } return panel ; }
public static JPanel createDialogButtonPanel ( JButton jbPositive , JButton jbNegative ) { JPanel panel = new JPanel ( new MigLayout ( STRING ) ) ; if ( jbPositive != null ) { panel . add ( jbPositive , STRING ) ; } if ( jbNegative != null ) { panel . add ( jbNegative , STRING ) ; } return panel ; }
78
java-test-11620
java
What does the code convert to their proper data types ?
the environment parameters
private void convert Env Params ( Map env Params ) throws Policy Exception { if ( ( env Params == null ) || ( env Params . is Empty ( ) ) ) { return ; } Set req IP Set = ( Set ) env Params . get ( REQUEST IP ) ; String req IP = null ; if ( req IP Set != null ) { if ( ! req IP Set . is Empty ( ) ) { Iterator items = req...
private void convertEnvParams ( Map envParams ) throws PolicyException { if ( ( envParams == null ) || ( envParams . isEmpty ( ) ) ) { return ; } Set reqIPSet = ( Set ) envParams . get ( REQUEST_IP ) ; String reqIP = null ; if ( reqIPSet != null ) { if ( ! reqIPSet . isEmpty ( ) ) { Iterator items = reqIPSet . iterator...
478
java-test-11621
java
What does the code instantiate ?
a new demo module
public Demo Module ( Swing Set 2 swingset , String resource Name , String icon Path ) { UI Manager . put ( STRING , Boolean . FALSE ) ; panel = new J Panel ( ) ; panel . set Border ( Border Factory . create Empty Border ( NUM , NUM , NUM , NUM ) ) ; panel . set Layout ( new Border Layout ( ) ) ; this . resource Name = ...
public DemoModule ( SwingSet2 swingset , String resourceName , String iconPath ) { UIManager . put ( STRING , Boolean . FALSE ) ; panel = new JPanel ( ) ; panel . setBorder ( BorderFactory . createEmptyBorder ( _NUM , _NUM , _NUM , _NUM ) ) ; panel . setLayout ( new BorderLayout ( ) ) ; this . resourceName = resourceNa...
101
java-test-11622
java
What have this method adds with lta level ?
references to retrieved ocsp responses from lt level
protected void add References From Offline OCSP Source ( List < Timestamp Reference > references ) { Offline OCSP Source ocsp Source = get OCSP Source ( ) ; if ( ocsp Source != null ) { List < Basic OCSP Resp > contained OCSP Responses = ocsp Source . get Contained OCSP Responses ( ) ; if ( Collection Utils . is Not Em...
protected void addReferencesFromOfflineOCSPSource ( List < TimestampReference > references ) { OfflineOCSPSource ocspSource = getOCSPSource ( ) ; if ( ocspSource != null ) { List < BasicOCSPResp > containedOCSPResponses = ocspSource . getContainedOCSPResponses ( ) ; if ( CollectionUtils . isNotEmpty ( containedOCSPResp...
184
java-test-11623
java
What does the code attempt ?
to minimise the median placement of connected cells on adjacent ranks
private void weighted Median ( int iteration , mx Graph Hierarchy Model model ) { boolean downward Sweep = ( iteration % NUM == NUM ) ; if ( downward Sweep ) { for ( int j = model . max Rank - NUM ; j >= NUM ; j -- ) { median Rank ( j , downward Sweep ) ; } } else { for ( int j = NUM ; j < model . max Rank ; j ++ ) { m...
private void weightedMedian ( int iteration , mxGraphHierarchyModel model ) { boolean downwardSweep = ( iteration % _NUM == _NUM ) ; if ( downwardSweep ) { for ( int j = model . maxRank - _NUM ; j >= _NUM ; j -- ) { medianRank ( j , downwardSweep ) ; } } else { for ( int j = _NUM ; j < model . maxRank ; j ++ ) { median...
96
java-test-11627
java
What stores in the default place ?
the all of the operation engine objects
public void write Operations Engine File ( ) { make Backup File ( default Operations Filename ( ) ) ; try { if ( ! check File ( default Operations Filename ( ) ) ) { java . io . File file = new java . io . File ( default Operations Filename ( ) ) ; java . io . File parent Dir = file . get Parent File ( ) ; if ( ! paren...
public void writeOperationsEngineFile ( ) { makeBackupFile ( defaultOperationsFilename ( ) ) ; try { if ( ! checkFile ( defaultOperationsFilename ( ) ) ) { java . io . File file = new java . io . File ( defaultOperationsFilename ( ) ) ; java . io . File parentDir = file . getParentFile ( ) ; if ( ! parentDir . exists (...
152
java-test-11628
java
Where do the all of the operation engine objects store including making a backup if needed ?
in the default place
public void write Operations Engine File ( ) { make Backup File ( default Operations Filename ( ) ) ; try { if ( ! check File ( default Operations Filename ( ) ) ) { java . io . File file = new java . io . File ( default Operations Filename ( ) ) ; java . io . File parent Dir = file . get Parent File ( ) ; if ( ! paren...
public void writeOperationsEngineFile ( ) { makeBackupFile ( defaultOperationsFilename ( ) ) ; try { if ( ! checkFile ( defaultOperationsFilename ( ) ) ) { java . io . File file = new java . io . File ( defaultOperationsFilename ( ) ) ; java . io . File parentDir = file . getParentFile ( ) ; if ( ! parentDir . exists (...
152
java-test-11629
java
What will method use fast lookup ( and identity comparison ) methods ?
to see if we know serializer to use for given type
public final Json Serializer < ? > find Serializer By Lookup ( Java Type type , Serialization Config config , Basic Bean Description bean Desc , Bean Property property , boolean static Typing ) { Class < ? > raw = type . get Raw Class ( ) ; String cls Name = raw . get Name ( ) ; Json Serializer < ? > ser = concrete . g...
public final JsonSerializer < ? > findSerializerByLookup ( JavaType type , SerializationConfig config , BasicBeanDescription beanDesc , BeanProperty property , boolean staticTyping ) { Class < ? > raw = type . getRawClass ( ) ; String clsName = raw . getName ( ) ; JsonSerializer < ? > ser = _concrete . get ( clsName ) ...
168
java-test-11630
java
What will method use to see if we know serializer to use for given type ?
fast lookup ( and identity comparison ) methods
public final Json Serializer < ? > find Serializer By Lookup ( Java Type type , Serialization Config config , Basic Bean Description bean Desc , Bean Property property , boolean static Typing ) { Class < ? > raw = type . get Raw Class ( ) ; String cls Name = raw . get Name ( ) ; Json Serializer < ? > ser = concrete . g...
public final JsonSerializer < ? > findSerializerByLookup ( JavaType type , SerializationConfig config , BasicBeanDescription beanDesc , BeanProperty property , boolean staticTyping ) { Class < ? > raw = type . getRawClass ( ) ; String clsName = raw . getName ( ) ; JsonSerializer < ? > ser = _concrete . get ( clsName ) ...
168
java-test-11631
java
In which direction do vdc attributes copy to another ?
from one object
private void copy Vdc Object ( Virtual Data Center src , Virtual Data Center dest ) { log . info ( STRING , dest . get Id ( ) ) ; dest . set Short Id ( src . get Short Id ( ) ) ; dest . set Version ( src . get Version ( ) ) ; dest . set Api Endpoint ( src . get Api Endpoint ( ) ) ; dest . set Connection Status ( src . ...
private void copyVdcObject ( VirtualDataCenter src , VirtualDataCenter dest ) { log . info ( STRING , dest . getId ( ) ) ; dest . setShortId ( src . getShortId ( ) ) ; dest . setVersion ( src . getVersion ( ) ) ; dest . setApiEndpoint ( src . getApiEndpoint ( ) ) ; dest . setConnectionStatus ( src . getConnectionStatus...
183
java-test-11632
java
What does the code read ?
the link types of the visum file
public void read Link Types ( final int [ ] columns Indices , final Buffered Reader reader ) throws IO Exception { String line = reader . read Line ( ) ; while ( line != null && line . length ( ) > NUM ) { line = reader . read Line ( ) ; } }
public void readLinkTypes ( final int [ ] columnsIndices , final BufferedReader reader ) throws IOException { String line = reader . readLine ( ) ; while ( line != null && line . length ( ) > _NUM ) { line = reader . readLine ( ) ; } }
58
java-test-11633
java
What does the code shrink ?
the heap of " hot " ( extreme ) items
private static void shrink Heap ( Tree Set < Double DBID Pair > hotset , int k ) { Modifiable DBI Ds seenids = DBID Util . new Hash Set ( NUM * k ) ; int cnt = NUM ; for ( Iterator < Double DBID Pair > i = hotset . iterator ( ) ; i . has Next ( ) ; ) { Double DBID Pair p = i . next ( ) ; if ( cnt > k || seenids . conta...
private static void shrinkHeap ( TreeSet < DoubleDBIDPair > hotset , int k ) { ModifiableDBIDs seenids = DBIDUtil . newHashSet ( _NUM * k ) ; int cnt = _NUM ; for ( Iterator < DoubleDBIDPair > i = hotset . iterator ( ) ; i . hasNext ( ) ; ) { DoubleDBIDPair p = i . next ( ) ; if ( cnt > k || seenids . contains ( p ) ) ...
113
java-test-11634
java
How do file write ?
using echo command
public void write File ( String file Path , String content ) { String Builder buf = new String Builder ( ) ; String new Content = strip Off CR ( content ) ; String [ ] lines = new Content . split ( STRING ) ; String cmd = null ; for ( String line : lines ) { if ( cmd == null ) { cmd = String . format ( Image Server Dia...
public void writeFile ( String filePath , String content ) { StringBuilder buf = new StringBuilder ( ) ; String newContent = stripOffCR ( content ) ; String [ ] lines = newContent . split ( STRING ) ; String cmd = null ; for ( String line : lines ) { if ( cmd == null ) { cmd = String . format ( ImageServerDialogPropert...
133
java-test-11635
java
What does the code determine according to the formatting style of the current locale ?
the relative positions of ( md ) and y
private void determine Locale MD Y Indices ( ) { String formatted Date = format Month Day Year ( m Calendar ) ; String month And Day = format Month And Day ( m Calendar ) ; String year = extract Year From Formatted Date ( formatted Date , month And Day ) ; if ( formatted Date . index Of ( month And Day ) < formatted Da...
private void determineLocale_MD_Y_Indices ( ) { String formattedDate = formatMonthDayYear ( mCalendar ) ; String monthAndDay = formatMonthAndDay ( mCalendar ) ; String year = extractYearFromFormattedDate ( formattedDate , monthAndDay ) ; if ( formattedDate . indexOf ( monthAndDay ) < formattedDate . indexOf ( year ) ) ...
112
java-test-11636
java
What does the code get ?
a textual description of this list of item sets
public String to String ( int num Sets ) { if ( m sets . size ( ) == NUM ) { return STRING ; } String Buffer result = new String Buffer ( ) ; result . append ( STRING + m sets . size ( ) + STRING ) ; if ( num Sets > NUM ) { result . append ( STRING + num Sets ) ; } result . append ( STRING ) ; int count = NUM ; for ( F...
public String toString ( int numSets ) { if ( m_sets . size ( ) == _NUM ) { return STRING ; } StringBuffer result = new StringBuffer ( ) ; result . append ( STRING + m_sets . size ( ) + STRING ) ; if ( numSets > _NUM ) { result . append ( STRING + numSets ) ; } result . append ( STRING ) ; int count = _NUM ; for ( Freq...
138
java-test-11639
java
How does the byte array hash ?
using the sha - 256 algorithm
public static byte [ ] hash ( byte [ ] data ) { try { Message Digest md = Message Digest . get Instance ( STRING ) ; md . update ( data ) ; return md . digest ( ) ; } catch ( Exception e ) { throw new Runtime Exception ( STRING + e . get Message ( ) , e ) ; } }
public static byte [ ] hash ( byte [ ] data ) { try { MessageDigest md = MessageDigest . getInstance ( STRING ) ; md . update ( data ) ; return md . digest ( ) ; } catch ( Exception e ) { throw new RuntimeException ( STRING + e . getMessage ( ) , e ) ; } }
68
java-test-11640
java
What does the code draw ?
the specified label using the canvas
public void draw Label ( boolean is Edge , Map < String , Object > attrs ) { String label = mx Utils . get String ( attrs , STRING ) ; if ( label != null && label . length ( ) > NUM ) { mx Point offset = new mx Point ( mx Utils . get Double ( attrs , STRING ) , mx Utils . get Double ( attrs , STRING ) ) ; mx Rectangle ...
public void drawLabel ( boolean isEdge , Map < String , Object > attrs ) { String label = mxUtils . getString ( attrs , STRING ) ; if ( label != null && label . length ( ) > _NUM ) { mxPoint offset = new mxPoint ( mxUtils . getDouble ( attrs , STRING ) , mxUtils . getDouble ( attrs , STRING ) ) ; mxRectangle vertexBoun...
255
java-test-11641
java
What is using the canvas ?
the specified label
public void draw Label ( boolean is Edge , Map < String , Object > attrs ) { String label = mx Utils . get String ( attrs , STRING ) ; if ( label != null && label . length ( ) > NUM ) { mx Point offset = new mx Point ( mx Utils . get Double ( attrs , STRING ) , mx Utils . get Double ( attrs , STRING ) ) ; mx Rectangle ...
public void drawLabel ( boolean isEdge , Map < String , Object > attrs ) { String label = mxUtils . getString ( attrs , STRING ) ; if ( label != null && label . length ( ) > _NUM ) { mxPoint offset = new mxPoint ( mxUtils . getDouble ( attrs , STRING ) , mxUtils . getDouble ( attrs , STRING ) ) ; mxRectangle vertexBoun...
255
java-test-11642
java
What does the code add ?
an info field
public Vcf Record add Info ( String key , String ... values ) { Array List < String > val = m Info . get ( key ) ; if ( val == null ) { val = new Array List < > ( ) ; m Info . put ( key , val ) ; } if ( values != null ) { Collections . add All ( val , values ) ; } return this ; }
public VcfRecord addInfo ( String key , String ... values ) { ArrayList < String > val = mInfo . get ( key ) ; if ( val == null ) { val = new ArrayList < > ( ) ; mInfo . put ( key , val ) ; } if ( values != null ) { Collections . addAll ( val , values ) ; } return this ; }
79
java-test-11643
java
What does the code create ?
a new missing mandatory properties exception with the provided causes
public Missing Mandatory Properties Exception ( Localizable Message ufn , Collection < Property Exception > causes , boolean is Create ) { super ( create Message ( causes ) ) ; this . causes = new Array List < > ( causes ) ; this . ufn = ufn ; this . is Create = is Create ; }
public MissingMandatoryPropertiesException ( LocalizableMessage ufn , Collection < PropertyException > causes , boolean isCreate ) { super ( createMessage ( causes ) ) ; this . causes = new ArrayList < > ( causes ) ; this . ufn = ufn ; this . isCreate = isCreate ; }
59
java-test-11644
java
When is by the garbage collector on an object called this method ?
when garbage collection determines that there are no more references to the object
@ Override protected void finalize ( ) { try { if ( socket != null ) { socket . close ( ) ; socket = null ; } thread Service . terminate ( ) ; } catch ( Exception e ) { if ( SNMP ADAPTOR LOGGER . is Loggable ( Level . FINER ) ) { SNMP ADAPTOR LOGGER . logp ( Level . FINER , dbg Tag , STRING , STRING , e ) ; } } }
@ Override protected void finalize ( ) { try { if ( socket != null ) { socket . close ( ) ; socket = null ; } threadService . terminate ( ) ; } catch ( Exception e ) { if ( SNMP_ADAPTOR_LOGGER . isLoggable ( Level . FINER ) ) { SNMP_ADAPTOR_LOGGER . logp ( Level . FINER , dbgTag , STRING , STRING , e ) ; } } }
80
java-test-11645
java
What are garbage collection determines when ?
that there are no more references to the object
@ Override protected void finalize ( ) { try { if ( socket != null ) { socket . close ( ) ; socket = null ; } thread Service . terminate ( ) ; } catch ( Exception e ) { if ( SNMP ADAPTOR LOGGER . is Loggable ( Level . FINER ) ) { SNMP ADAPTOR LOGGER . logp ( Level . FINER , dbg Tag , STRING , STRING , e ) ; } } }
@ Override protected void finalize ( ) { try { if ( socket != null ) { socket . close ( ) ; socket = null ; } threadService . terminate ( ) ; } catch ( Exception e ) { if ( SNMP_ADAPTOR_LOGGER . isLoggable ( Level . FINER ) ) { SNMP_ADAPTOR_LOGGER . logp ( Level . FINER , dbgTag , STRING , STRING , e ) ; } } }
80
java-test-11649
java
When becomes isquiescent becomes true ?
after invoking a single task
public void test Is Quiescent ( ) throws Exception { Fork Join Pool p = new Fork Join Pool ( NUM ) ; Pool Cleaner cleaner = null ; try { cleaner = cleaner ( p ) ; assert True ( p . is Quiescent ( ) ) ; long start Time = System . nano Time ( ) ; Fib Task f = new Fib Task ( NUM ) ; p . invoke ( f ) ; assert Same ( Fork J...
public void testIsQuiescent ( ) throws Exception { ForkJoinPool p = new ForkJoinPool ( _NUM ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( p ) ; assertTrue ( p . isQuiescent ( ) ) ; long startTime = System . nanoTime ( ) ; FibTask f = new FibTask ( _NUM ) ; p . invoke ( f ) ; assertSame ( ForkJoinPool . def...
376
java-test-11650
java
What does this method call ?
proc updateservers
@ Request Mapping ( value = { STRING , STRING } , method = Request Method . POST ) @ Response Body public Rest Wrapper update ( @ Model Attribute ( STRING ) @ Valid Servers server , Binding Result binding Result , Principal principal ) { Rest Wrapper rest Wrapper = null ; if ( binding Result . has Errors ( ) ) { Bindin...
@ RequestMapping ( value = { STRING , STRING } , method = RequestMethod . POST ) @ ResponseBody public RestWrapper update ( @ ModelAttribute ( STRING ) @ Valid Servers server , BindingResult bindingResult , Principal principal ) { RestWrapper restWrapper = null ; if ( bindingResult . hasErrors ( ) ) { BindingResultErro...
352
java-test-11651
java
What does this method update ?
the values of the instance passed
@ Request Mapping ( value = { STRING , STRING } , method = Request Method . POST ) @ Response Body public Rest Wrapper update ( @ Model Attribute ( STRING ) @ Valid Servers server , Binding Result binding Result , Principal principal ) { Rest Wrapper rest Wrapper = null ; if ( binding Result . has Errors ( ) ) { Bindin...
@ RequestMapping ( value = { STRING , STRING } , method = RequestMethod . POST ) @ ResponseBody public RestWrapper update ( @ ModelAttribute ( STRING ) @ Valid Servers server , BindingResult bindingResult , Principal principal ) { RestWrapper restWrapper = null ; if ( bindingResult . hasErrors ( ) ) { BindingResultErro...
352
java-test-11657
java
What does the code show depending on the pressed button by default ?
the selected emotes page
private void show Emotes ( ) { for ( J Toggle Button button : buttons . key Set ( ) ) { if ( button . is Selected ( ) ) { show Panel ( buttons . get ( button ) ) ; return ; } } show Panel ( default Panel ) ; }
private void showEmotes ( ) { for ( JToggleButton button : buttons . keySet ( ) ) { if ( button . isSelected ( ) ) { showPanel ( buttons . get ( button ) ) ; return ; } } showPanel ( defaultPanel ) ; }
55
java-test-11658
java
What does the code generate ?
a collection configurations section
private static List < Object > generate Collection Configs ( Map < String , String > name Map ) { List < Object > output = new Linked List < Object > ( ) ; for ( String resource Name String : name Map . key Set ( ) ) { Map < String , Object > collection Map = new Linked Hash Map < String , Object > ( ) ; collection Map...
private static List < Object > generateCollectionConfigs ( Map < String , String > nameMap ) { List < Object > output = new LinkedList < Object > ( ) ; for ( String resourceNameString : nameMap . keySet ( ) ) { Map < String , Object > collectionMap = new LinkedHashMap < String , Object > ( ) ; collectionMap . put ( CON...
121
java-test-11659
java
What executes on h2 database ?
sql query
private static List < List < ? > > execute H 2 Query ( String sql , Object [ ] args ) throws SQL Exception { List < List < ? > > res = new Array List < > ( ) ; Result Set rs = null ; try ( Prepared Statement st = conn . prepare Statement ( sql ) ) { for ( int idx = NUM ; idx < args . length ; idx ++ ) st . set Object (...
private static List < List < ? > > executeH2Query ( String sql , Object [ ] args ) throws SQLException { List < List < ? > > res = new ArrayList < > ( ) ; ResultSet rs = null ; try ( PreparedStatement st = conn . prepareStatement ( sql ) ) { for ( int idx = _NUM ; idx < args . length ; idx ++ ) st . setObject ( idx + _...
207
java-test-11660
java
Where do sql query execute ?
on h2 database
private static List < List < ? > > execute H 2 Query ( String sql , Object [ ] args ) throws SQL Exception { List < List < ? > > res = new Array List < > ( ) ; Result Set rs = null ; try ( Prepared Statement st = conn . prepare Statement ( sql ) ) { for ( int idx = NUM ; idx < args . length ; idx ++ ) st . set Object (...
private static List < List < ? > > executeH2Query ( String sql , Object [ ] args ) throws SQLException { List < List < ? > > res = new ArrayList < > ( ) ; ResultSet rs = null ; try ( PreparedStatement st = conn . prepareStatement ( sql ) ) { for ( int idx = _NUM ; idx < args . length ; idx ++ ) st . setObject ( idx + _...
207
java-test-11664
java
What does the code create ?
a new stringarray from a collection of strings
public static String Array to Array ( J Cas j Cas , Collection < String > collection ) { if ( collection == null || collection . is Empty ( ) ) { return new String Array ( j Cas , NUM ) ; } else { int size = collection . size ( ) ; String Array array = new String Array ( j Cas , size ) ; array . copy From Array ( colle...
public static StringArray toArray ( JCas jCas , Collection < String > collection ) { if ( collection == null || collection . isEmpty ( ) ) { return new StringArray ( jCas , _NUM ) ; } else { int size = collection . size ( ) ; StringArray array = new StringArray ( jCas , size ) ; array . copyFromArray ( collection . toA...
100
java-test-11665
java
In which direction are the accumulated results returned to the propagatedtimesstore ' s creator how ?
back out
public Result Envelope make Results ( Point Set point Set , boolean include Times , boolean include Histograms , boolean include Isochrones ) { Result Envelope envelope = new Result Envelope ( ) ; envelope . worst Case = new Result Set ( maxs , point Set , include Times , include Histograms , include Isochrones ) ; env...
public ResultEnvelope makeResults ( PointSet pointSet , boolean includeTimes , boolean includeHistograms , boolean includeIsochrones ) { ResultEnvelope envelope = new ResultEnvelope ( ) ; envelope . worstCase = new ResultSet ( maxs , pointSet , includeTimes , includeHistograms , includeIsochrones ) ; envelope . avgCase...
110
java-test-11666
java
What is the code make from a given sampleset directly ?
a resultenvelope
public Result Envelope make Results ( Point Set point Set , boolean include Times , boolean include Histograms , boolean include Isochrones ) { Result Envelope envelope = new Result Envelope ( ) ; envelope . worst Case = new Result Set ( maxs , point Set , include Times , include Histograms , include Isochrones ) ; env...
public ResultEnvelope makeResults ( PointSet pointSet , boolean includeTimes , boolean includeHistograms , boolean includeIsochrones ) { ResultEnvelope envelope = new ResultEnvelope ( ) ; envelope . worstCase = new ResultSet ( maxs , pointSet , includeTimes , includeHistograms , includeIsochrones ) ; envelope . avgCase...
110
java-test-11667
java
What do this be ?
how the accumulated results are returned back out to the propagatedtimesstore ' s creator
public Result Envelope make Results ( Point Set point Set , boolean include Times , boolean include Histograms , boolean include Isochrones ) { Result Envelope envelope = new Result Envelope ( ) ; envelope . worst Case = new Result Set ( maxs , point Set , include Times , include Histograms , include Isochrones ) ; env...
public ResultEnvelope makeResults ( PointSet pointSet , boolean includeTimes , boolean includeHistograms , boolean includeIsochrones ) { ResultEnvelope envelope = new ResultEnvelope ( ) ; envelope . worstCase = new ResultSet ( maxs , pointSet , includeTimes , includeHistograms , includeIsochrones ) ; envelope . avgCase...
110
java-test-11668
java
What does the code add ?
a permission to the propertypermissions
public void add ( Permission permission ) { if ( ! ( permission instanceof Property Permission ) ) throw new Illegal Argument Exception ( STRING + permission ) ; if ( is Read Only ( ) ) throw new Security Exception ( STRING ) ; Property Permission pp = ( Property Permission ) permission ; String prop Name = pp . get Na...
public void add ( Permission permission ) { if ( ! ( permission instanceof PropertyPermission ) ) throw new IllegalArgumentException ( STRING + permission ) ; if ( isReadOnly ( ) ) throw new SecurityException ( STRING ) ; PropertyPermission pp = ( PropertyPermission ) permission ; String propName = pp . getName ( ) ; s...
200
java-test-11669
java
What does the code create ?
the xml element for a font value
private void create Element ( Document doc , Element parent Element , String element Name , Font value ) { Element element = doc . create Element ( element Name ) ; element . set Attribute ( FONT SIZE , Integer . to String ( value . get Size ( ) ) ) ; element . set Attribute ( FONT STYLE , Integer . to String ( value ....
private void createElement ( Document doc , Element parentElement , String elementName , Font value ) { Element element = doc . createElement ( elementName ) ; element . setAttribute ( FONT_SIZE , Integer . toString ( value . getSize ( ) ) ) ; element . setAttribute ( FONT_STYLE , Integer . toString ( value . getStyle ...
106
java-test-11670
java
What does the code start when ?
async loading of the base layer image
private synchronized void initialise Base Layer ( Point max Tile Dimensions ) { scale = Math . min ( NUM , Math . min ( get Width ( ) / ( float ) s Width ( ) , get Height ( ) / ( float ) s Height ( ) ) ) ; default Scale = scale ; fit To Bounds ( BOOL ) ; full Image Sample Size = calculate In Sample Size ( ) ; if ( full...
private synchronized void initialiseBaseLayer ( Point maxTileDimensions ) { scale = Math . min ( _NUM , Math . min ( getWidth ( ) / ( float ) sWidth ( ) , getHeight ( ) / ( float ) sHeight ( ) ) ) ; defaultScale = scale ; fitToBounds ( _BOOL ) ; fullImageSampleSize = calculateInSampleSize ( ) ; if ( fullImageSampleSize...
166
java-test-11671
java
When did the initial sample size calculate ?
when the view has dimensions
private synchronized void initialise Base Layer ( Point max Tile Dimensions ) { scale = Math . min ( NUM , Math . min ( get Width ( ) / ( float ) s Width ( ) , get Height ( ) / ( float ) s Height ( ) ) ) ; default Scale = scale ; fit To Bounds ( BOOL ) ; full Image Sample Size = calculate In Sample Size ( ) ; if ( full...
private synchronized void initialiseBaseLayer ( Point maxTileDimensions ) { scale = Math . min ( _NUM , Math . min ( getWidth ( ) / ( float ) sWidth ( ) , getHeight ( ) / ( float ) sHeight ( ) ) ) ; defaultScale = scale ; fitToBounds ( _BOOL ) ; fullImageSampleSize = calculateInSampleSize ( ) ; if ( fullImageSampleSize...
166
java-test-11672
java
When has the code called ?
on first draw
private synchronized void initialise Base Layer ( Point max Tile Dimensions ) { scale = Math . min ( NUM , Math . min ( get Width ( ) / ( float ) s Width ( ) , get Height ( ) / ( float ) s Height ( ) ) ) ; default Scale = scale ; fit To Bounds ( BOOL ) ; full Image Sample Size = calculate In Sample Size ( ) ; if ( full...
private synchronized void initialiseBaseLayer ( Point maxTileDimensions ) { scale = Math . min ( _NUM , Math . min ( getWidth ( ) / ( float ) sWidth ( ) , getHeight ( ) / ( float ) sHeight ( ) ) ) ; defaultScale = scale ; fitToBounds ( _BOOL ) ; fullImageSampleSize = calculateInSampleSize ( ) ; if ( fullImageSampleSize...
166
java-test-11674
java
In which direction do the state machine move ?
towards an open state
public void request Open ( ) { m Lock . lock ( ) ; try { if ( m Is Shutdown ) { return ; } m Target State = Target State . OPENED ; update ( ) ; } finally { m Lock . unlock ( ) ; } }
public void requestOpen ( ) { mLock . lock ( ) ; try { if ( mIsShutdown ) { return ; } mTargetState = TargetState . OPENED ; update ( ) ; } finally { mLock . unlock ( ) ; } }
51
java-test-11675
java
What is set to enforce the creation of the folder ?
the upload
private Remote Operation Result grant Folder Existence ( String path To Grant ) { Remote Operation operation = new Existence Check Remote Operation ( path To Grant , this , BOOL ) ; Remote Operation Result result = operation . execute ( m Upload Client ) ; if ( ! result . is Success ( ) && result . get Code ( ) == Resu...
private RemoteOperationResult grantFolderExistence ( String pathToGrant ) { RemoteOperation operation = new ExistenceCheckRemoteOperation ( pathToGrant , this , _BOOL ) ; RemoteOperationResult result = operation . execute ( mUploadClient ) ; if ( ! result . isSuccess ( ) && result . getCode ( ) == ResultCode . FILE_NOT...
213
java-test-11676
java
What does the method try if the upload is set to enforce the creation of the folder ?
to create it both remote and locally
private Remote Operation Result grant Folder Existence ( String path To Grant ) { Remote Operation operation = new Existence Check Remote Operation ( path To Grant , this , BOOL ) ; Remote Operation Result result = operation . execute ( m Upload Client ) ; if ( ! result . is Success ( ) && result . get Code ( ) == Resu...
private RemoteOperationResult grantFolderExistence ( String pathToGrant ) { RemoteOperation operation = new ExistenceCheckRemoteOperation ( pathToGrant , this , _BOOL ) ; RemoteOperationResult result = operation . execute ( mUploadClient ) ; if ( ! result . isSuccess ( ) && result . getCode ( ) == ResultCode . FILE_NOT...
213
java-test-11677
java
What is the upload set ?
to enforce the creation of the folder
private Remote Operation Result grant Folder Existence ( String path To Grant ) { Remote Operation operation = new Existence Check Remote Operation ( path To Grant , this , BOOL ) ; Remote Operation Result result = operation . execute ( m Upload Client ) ; if ( ! result . is Success ( ) && result . get Code ( ) == Resu...
private RemoteOperationResult grantFolderExistence ( String pathToGrant ) { RemoteOperation operation = new ExistenceCheckRemoteOperation ( pathToGrant , this , _BOOL ) ; RemoteOperationResult result = operation . execute ( mUploadClient ) ; if ( ! result . isSuccess ( ) && result . getCode ( ) == ResultCode . FILE_NOT...
213
java-test-11678
java
How does the method create it ?
both remote and locally
private Remote Operation Result grant Folder Existence ( String path To Grant ) { Remote Operation operation = new Existence Check Remote Operation ( path To Grant , this , BOOL ) ; Remote Operation Result result = operation . execute ( m Upload Client ) ; if ( ! result . is Success ( ) && result . get Code ( ) == Resu...
private RemoteOperationResult grantFolderExistence ( String pathToGrant ) { RemoteOperation operation = new ExistenceCheckRemoteOperation ( pathToGrant , this , _BOOL ) ; RemoteOperationResult result = operation . execute ( mUploadClient ) ; if ( ! result . isSuccess ( ) && result . getCode ( ) == ResultCode . FILE_NOT...
213
java-test-11679
java
What did the enforce ?
the creation of the folder
private Remote Operation Result grant Folder Existence ( String path To Grant ) { Remote Operation operation = new Existence Check Remote Operation ( path To Grant , this , BOOL ) ; Remote Operation Result result = operation . execute ( m Upload Client ) ; if ( ! result . is Success ( ) && result . get Code ( ) == Resu...
private RemoteOperationResult grantFolderExistence ( String pathToGrant ) { RemoteOperation operation = new ExistenceCheckRemoteOperation ( pathToGrant , this , _BOOL ) ; RemoteOperationResult result = operation . execute ( mUploadClient ) ; if ( ! result . isSuccess ( ) && result . getCode ( ) == ResultCode . FILE_NOT...
213
java-test-11680
java
What did it doesn t ?
match
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11681
java
What scans for entries which were not marked as being in the roads vector finally ?
the other intersection table
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11682
java
What do each road have ?
two intersections
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11683
java
What do the other intersection table scan finally ?
for entries which were not marked as being in the roads vector
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11684
java
For what purpose do it reset its recorded other intersection ?
to be a special marker indicating that both ends of the road have been accounted for
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11685
java
What has two intersections ?
each road
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11686
java
What do it reset to be a special marker indicating that both ends of the road have been accounted for ?
its recorded other intersection
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11687
java
What is indicating that both ends of the road have been accounted for ?
a special marker
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11688
java
What do we record if the road has already been encountered then ?
its " other " intersection
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11689
java
What has the code check ?
the integrity of our data structures
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11690
java
Where were the roads not found ?
in the first scan
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11691
java
What do a special marker indicate ?
that both ends of the road have been accounted for
protected void check Integrity ( ) { Print Stream errors = System . err ; Hashtable other Intersections = new Hashtable ( ) ; Object both Intersections = new Object ( ) ; Object in Roads Vector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . has More Elements ( ) ; ) { Intersection intersect...
protected void checkIntegrity ( ) { PrintStream errors = System . err ; Hashtable otherIntersections = new Hashtable ( ) ; Object bothIntersections = new Object ( ) ; Object inRoadsVector = new Object ( ) ; for ( Enumeration e = intersections . elements ( ) ; e . hasMoreElements ( ) ; ) { Intersection intersection = ( ...
456
java-test-11695
java
What does the code convert to an fsarray ?
a collection ( of annotation )
public static FS Array to FS Array ( J Cas j Cas , Collection < ? extends Feature Structure > collection ) { if ( collection == null || collection . is Empty ( ) ) { return new FS Array ( j Cas , NUM ) ; } else { FS Array array = new FS Array ( j Cas , collection . size ( ) ) ; int i = NUM ; for ( Feature Structure fs ...
public static FSArray toFSArray ( JCas jCas , Collection < ? extends FeatureStructure > collection ) { if ( collection == null || collection . isEmpty ( ) ) { return new FSArray ( jCas , _NUM ) ; } else { FSArray array = new FSArray ( jCas , collection . size ( ) ) ; int i = _NUM ; for ( FeatureStructure fs : collectio...
101
java-test-11700
java
What documentates the data generator ?
a comment string
@ Override public String generate Start ( ) { String Buffer result ; int i ; result = new String Buffer ( ) ; result . append ( STRING ) ; result . append ( STRING ) ; for ( i = NUM ; i < get Num Centroids ( ) ; i ++ ) { result . append ( STRING + i + STRING + Utils . array To String ( m centroids [ i ] ) + STRING ) ; ...
@ Override public String generateStart ( ) { StringBuffer result ; int i ; result = new StringBuffer ( ) ; result . append ( STRING ) ; result . append ( STRING ) ; for ( i = _NUM ; i < getNumCentroids ( ) ; i ++ ) { result . append ( STRING + i + STRING + Utils . arrayToString ( m_centroids [ i ] ) + STRING ) ; } resu...
181
java-test-11701
java
When is this string added by default ?
at the beginning of the produced output
@ Override public String generate Start ( ) { String Buffer result ; int i ; result = new String Buffer ( ) ; result . append ( STRING ) ; result . append ( STRING ) ; for ( i = NUM ; i < get Num Centroids ( ) ; i ++ ) { result . append ( STRING + i + STRING + Utils . array To String ( m centroids [ i ] ) + STRING ) ; ...
@ Override public String generateStart ( ) { StringBuffer result ; int i ; result = new StringBuffer ( ) ; result . append ( STRING ) ; result . append ( STRING ) ; for ( i = _NUM ; i < getNumCentroids ( ) ; i ++ ) { result . append ( STRING + i + STRING + Utils . arrayToString ( m_centroids [ i ] ) + STRING ) ; } resu...
181
java-test-11702
java
What does a comment string documentat ?
the data generator
@ Override public String generate Start ( ) { String Buffer result ; int i ; result = new String Buffer ( ) ; result . append ( STRING ) ; result . append ( STRING ) ; for ( i = NUM ; i < get Num Centroids ( ) ; i ++ ) { result . append ( STRING + i + STRING + Utils . array To String ( m centroids [ i ] ) + STRING ) ; ...
@ Override public String generateStart ( ) { StringBuffer result ; int i ; result = new StringBuffer ( ) ; result . append ( STRING ) ; result . append ( STRING ) ; for ( i = _NUM ; i < getNumCentroids ( ) ; i ++ ) { result . append ( STRING + i + STRING + Utils . arrayToString ( m_centroids [ i ] ) + STRING ) ; } resu...
181
java-test-11703
java
What do mindist function calculate ?
the minimal distance from vector p to the border of the corresponding r - region at the given level
private double min Dist Level ( DBID id , int level ) { final Number Vector obj = relation . get ( id ) ; final double r = NUM / ( NUM << ( level - NUM ) ) ; double dist = Double . POSITIVE INFINITY ; for ( int dim = NUM ; dim < d ; dim ++ ) { final double p m r = get Dim For Object ( obj , dim ) % r ; dist = Math . mi...
private double minDistLevel ( DBID id , int level ) { final NumberVector obj = relation . get ( id ) ; final double r = _NUM / ( _NUM << ( level - _NUM ) ) ; double dist = Double . POSITIVE_INFINITY ; for ( int dim = _NUM ; dim < d ; dim ++ ) { final double p_m_r = getDimForObject ( obj , dim ) % r ; dist = Math . min ...
113
java-test-11704
java
What calculate the minimal distance from vector p to the border of the corresponding r - region at the given level ?
mindist function
private double min Dist Level ( DBID id , int level ) { final Number Vector obj = relation . get ( id ) ; final double r = NUM / ( NUM << ( level - NUM ) ) ; double dist = Double . POSITIVE INFINITY ; for ( int dim = NUM ; dim < d ; dim ++ ) { final double p m r = get Dim For Object ( obj , dim ) % r ; dist = Math . mi...
private double minDistLevel ( DBID id , int level ) { final NumberVector obj = relation . get ( id ) ; final double r = _NUM / ( _NUM << ( level - _NUM ) ) ; double dist = Double . POSITIVE_INFINITY ; for ( int dim = _NUM ; dim < d ; dim ++ ) { final double p_m_r = getDimForObject ( obj , dim ) % r ; dist = Math . min ...
113
java-test-11706
java
What does the code calculate ?
the ' utility ' of a physical action
void calculate Utility ( Physical Info physical Info ) { if ( physical Info . get Probability To Hit ( ) <= NUM ) { physical Info . set Utility ( - NUM ) ; return ; } double utility = DAMAGE UTILITY * physical Info . get Expected Damage ( ) ; utility += CRITICAL UTILITY * physical Info . get Expected Criticals ( ) ; ut...
void calculateUtility ( PhysicalInfo physicalInfo ) { if ( physicalInfo . getProbabilityToHit ( ) <= _NUM ) { physicalInfo . setUtility ( - _NUM ) ; return ; } double utility = DAMAGE_UTILITY * physicalInfo . getExpectedDamage ( ) ; utility += CRITICAL_UTILITY * physicalInfo . getExpectedCriticals ( ) ; utility += KILL...
194
java-test-11707
java
When should this method be called ?
after all of the confetto ' s state variables are configured and before the confetto gets animated
public void prepare ( Rect bound ) { this . bound = bound ; millis To Reach Target Velocity X = compute Millis To Reach Target ( target Velocity X , initial Velocity X , acceleration X ) ; millis To Reach Target Velocity Y = compute Millis To Reach Target ( target Velocity Y , initial Velocity Y , acceleration Y ) ; mi...
public void prepare ( Rect bound ) { this . bound = bound ; millisToReachTargetVelocityX = computeMillisToReachTarget ( targetVelocityX , initialVelocityX , accelerationX ) ; millisToReachTargetVelocityY = computeMillisToReachTarget ( targetVelocityY , initialVelocityY , accelerationY ) ; millisToReachTargetRotationalV...
247
java-test-11708
java
What does the code draw ?
the scene for this canvas
@ Override public void draw ( final Count Down Latch latch ) { if ( ! initialized ) { return ; } if ( is Showing ( ) ) { canvas Renderer . draw ( ) ; } if ( latch != null ) { latch . count Down ( ) ; } }
@ Override public void draw ( final CountDownLatch latch ) { if ( ! initialized ) { return ; } if ( isShowing ( ) ) { canvasRenderer . draw ( ) ; } if ( latch != null ) { latch . countDown ( ) ; } }
54
java-test-11709
java
What does the code analyze in case this holder contains a modification ?
the modifiable variable holder
public static boolean contains Modifiable Variable Modification ( Protocol Message object ) { for ( Modifiable Variable Holder holder : object . get All Modifiable Variable Holders ( ) ) { for ( Field f : holder . get All Modifiable Variable Fields ( ) ) { if ( contains Modifiable Variable Modification ( holder , f ) )...
public static boolean containsModifiableVariableModification ( ProtocolMessage object ) { for ( ModifiableVariableHolder holder : object . getAllModifiableVariableHolders ( ) ) { for ( Field f : holder . getAllModifiableVariableFields ( ) ) { if ( containsModifiableVariableModification ( holder , f ) ) { return _BOOL ;...
70
java-test-11715
java
What does the code generate ?
an explotion for this bom
public void parent Explotion ( int PP Product BOM ID ) throws Exception { Prepared Statement stmt = null ; Result Set rs = null ; String sql = STRING + STRING ; try { stmt = DB . prepare Statement ( sql , get Trx Name ( ) ) ; stmt . set Int ( NUM , PP Product BOM ID ) ; rs = stmt . execute Query ( ) ; while ( rs . next...
public void parentExplotion ( int PP_Product_BOM_ID ) throws Exception { PreparedStatement stmt = null ; ResultSet rs = null ; String sql = STRING + STRING ; try { stmt = DB . prepareStatement ( sql , get_TrxName ( ) ) ; stmt . setInt ( _NUM , PP_Product_BOM_ID ) ; rs = stmt . executeQuery ( ) ; while ( rs . next ( ) )...
313