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-10244 | java | For what purpose do confidence threshold set ? | for pruning | @ Override public Enumeration < Option > list Options ( ) { Vector < Option > new Vector = new Vector < Option > ( NUM ) ; new Vector . add Element ( new Option ( STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add Element ( new Option ( STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add Element ... | @ Override public Enumeration < Option > listOptions ( ) { Vector < Option > newVector = new Vector < Option > ( _NUM ) ; newVector . addElement ( new Option ( STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . addElement ( new Option ( STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . addElement ( new... | 235 |
java-test-10245 | java | What do u generate ? | unpruned decision list | @ Override public Enumeration < Option > list Options ( ) { Vector < Option > new Vector = new Vector < Option > ( NUM ) ; new Vector . add Element ( new Option ( STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add Element ( new Option ( STRING + STRING , STRING , NUM , STRING ) ) ; new Vector . add Element ... | @ Override public Enumeration < Option > listOptions ( ) { Vector < Option > newVector = new Vector < Option > ( _NUM ) ; newVector . addElement ( new Option ( STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . addElement ( new Option ( STRING + STRING , STRING , _NUM , STRING ) ) ; newVector . addElement ( new... | 235 |
java-test-10246 | java | What does the code find ? | the end of the line for the next operation | protected void decode Line Suffix ( Pushback Input Stream in Stream , Output Stream out Stream ) throws IO Exception { int c ; while ( BOOL ) { c = in Stream . read ( ) ; if ( c == - NUM ) { throw new CE Stream Exhausted ( ) ; } if ( c == STRING ) { break ; } if ( c == STRING ) { c = in Stream . read ( ) ; if ( ( c != ... | protected void decodeLineSuffix ( PushbackInputStream inStream , OutputStream outStream ) throws IOException { int c ; while ( _BOOL ) { c = inStream . read ( ) ; if ( c == - _NUM ) { throw new CEStreamExhausted ( ) ; } if ( c == STRING ) { break ; } if ( c == STRING ) { c = inStream . read ( ) ; if ( ( c != STRING ) &... | 111 |
java-test-10248 | java | Where do methods marked with the " synthetic " attribute not appear ? | in the source code | private boolean is Synthetic ( Method m ) { if ( ( m . get Access Flags ( ) & Constants . ACC SYNTHETIC ) != NUM ) { return BOOL ; } Attribute [ ] attrs = m . get Attributes ( ) ; for ( Attribute attr : attrs ) { if ( attr instanceof Synthetic ) { return BOOL ; } } return BOOL ; } | private boolean isSynthetic ( Method m ) { if ( ( m . getAccessFlags ( ) & Constants . ACC_SYNTHETIC ) != _NUM ) { return _BOOL ; } Attribute [ ] attrs = m . getAttributes ( ) ; for ( Attribute attr : attrs ) { if ( attr instanceof Synthetic ) { return _BOOL ; } } return _BOOL ; } | 69 |
java-test-10249 | java | What do not appear in the source code ? | methods marked with the " synthetic " attribute | private boolean is Synthetic ( Method m ) { if ( ( m . get Access Flags ( ) & Constants . ACC SYNTHETIC ) != NUM ) { return BOOL ; } Attribute [ ] attrs = m . get Attributes ( ) ; for ( Attribute attr : attrs ) { if ( attr instanceof Synthetic ) { return BOOL ; } } return BOOL ; } | private boolean isSynthetic ( Method m ) { if ( ( m . getAccessFlags ( ) & Constants . ACC_SYNTHETIC ) != _NUM ) { return _BOOL ; } Attribute [ ] attrs = m . getAttributes ( ) ; for ( Attribute attr : attrs ) { if ( attr instanceof Synthetic ) { return _BOOL ; } } return _BOOL ; } | 69 |
java-test-10250 | java | Where would they appear individually ? | in a source file | public static List < String > diagnostics To String ( List < Test Diagnostic > diagnostics ) { final List < String > strings = new Array List < String > ( diagnostics . size ( ) ) ; for ( Test Diagnostic diagnostic : diagnostics ) { strings . add ( diagnostic . to String ( ) ) ; } return strings ; } | public static List < String > diagnosticsToString ( List < TestDiagnostic > diagnostics ) { final List < String > strings = new ArrayList < String > ( diagnostics . size ( ) ) ; for ( TestDiagnostic diagnostic : diagnostics ) { strings . add ( diagnostic . toString ( ) ) ; } return strings ; } | 65 |
java-test-10258 | java | When do tests fix for bug # 30550 - executebatch ( ) on an empty batch when there are no elements in the batch cause a divide - by - zero error ? | when rewriting is enabled | public void test Bug 30550 ( ) throws Exception { create Table ( STRING , STRING ) ; Connection rewrite Conn = get Connection With Props ( STRING ) ; Prepared Statement batch P Stmt = null ; Statement batch Stmt = null ; try { batch Stmt = rewrite Conn . create Statement ( ) ; assert Equals ( NUM , batch Stmt . execute... | public void testBug30550 ( ) throws Exception { createTable ( STRING , STRING ) ; Connection rewriteConn = getConnectionWithProps ( STRING ) ; PreparedStatement batchPStmt = null ; Statement batchStmt = null ; try { batchStmt = rewriteConn . createStatement ( ) ; assertEquals ( _NUM , batchStmt . executeBatch ( ) . len... | 287 |
java-test-10259 | java | What do tests fix for bug # 30550 - executebatch ( ) on an empty batch when there are no elements in the batch cause when rewriting is enabled ? | a divide - by - zero error | public void test Bug 30550 ( ) throws Exception { create Table ( STRING , STRING ) ; Connection rewrite Conn = get Connection With Props ( STRING ) ; Prepared Statement batch P Stmt = null ; Statement batch Stmt = null ; try { batch Stmt = rewrite Conn . create Statement ( ) ; assert Equals ( NUM , batch Stmt . execute... | public void testBug30550 ( ) throws Exception { createTable ( STRING , STRING ) ; Connection rewriteConn = getConnectionWithProps ( STRING ) ; PreparedStatement batchPStmt = null ; Statement batchStmt = null ; try { batchStmt = rewriteConn . createStatement ( ) ; assertEquals ( _NUM , batchStmt . executeBatch ( ) . len... | 287 |
java-test-10260 | java | When are for bug # 30550 - executebatch ( ) on an empty batch fix ? | when there are no elements in the batch | public void test Bug 30550 ( ) throws Exception { create Table ( STRING , STRING ) ; Connection rewrite Conn = get Connection With Props ( STRING ) ; Prepared Statement batch P Stmt = null ; Statement batch Stmt = null ; try { batch Stmt = rewrite Conn . create Statement ( ) ; assert Equals ( NUM , batch Stmt . execute... | public void testBug30550 ( ) throws Exception { createTable ( STRING , STRING ) ; Connection rewriteConn = getConnectionWithProps ( STRING ) ; PreparedStatement batchPStmt = null ; Statement batchStmt = null ; try { batchStmt = rewriteConn . createStatement ( ) ; assertEquals ( _NUM , batchStmt . executeBatch ( ) . len... | 287 |
java-test-10261 | java | What causes a divide - by - zero error when rewriting is enabled ? | tests fix for bug # 30550 - executebatch ( ) on an empty batch when there are no elements in the batch | public void test Bug 30550 ( ) throws Exception { create Table ( STRING , STRING ) ; Connection rewrite Conn = get Connection With Props ( STRING ) ; Prepared Statement batch P Stmt = null ; Statement batch Stmt = null ; try { batch Stmt = rewrite Conn . create Statement ( ) ; assert Equals ( NUM , batch Stmt . execute... | public void testBug30550 ( ) throws Exception { createTable ( STRING , STRING ) ; Connection rewriteConn = getConnectionWithProps ( STRING ) ; PreparedStatement batchPStmt = null ; Statement batchStmt = null ; try { batchStmt = rewriteConn . createStatement ( ) ; assertEquals ( _NUM , batchStmt . executeBatch ( ) . len... | 287 |
java-test-10263 | java | What writes to outputstream ? | time parameter | public void write To ( final Packet Output Stream os ) { os . write ( Parameter Writer . QUOTE ) ; os . write ( date To Bytes ( ) ) ; Parameter Writer . format Microseconds ( os , ( int ) ( time . get Time ( ) % NUM ) * NUM , fractional Seconds ) ; os . write ( Parameter Writer . QUOTE ) ; } | public void writeTo ( final PacketOutputStream os ) { os . write ( ParameterWriter . QUOTE ) ; os . write ( dateToBytes ( ) ) ; ParameterWriter . formatMicroseconds ( os , ( int ) ( time . getTime ( ) % _NUM ) * _NUM , fractionalSeconds ) ; os . write ( ParameterWriter . QUOTE ) ; } | 72 |
java-test-10264 | java | What do time parameter write ? | to outputstream | public void write To ( final Packet Output Stream os ) { os . write ( Parameter Writer . QUOTE ) ; os . write ( date To Bytes ( ) ) ; Parameter Writer . format Microseconds ( os , ( int ) ( time . get Time ( ) % NUM ) * NUM , fractional Seconds ) ; os . write ( Parameter Writer . QUOTE ) ; } | public void writeTo ( final PacketOutputStream os ) { os . write ( ParameterWriter . QUOTE ) ; os . write ( dateToBytes ( ) ) ; ParameterWriter . formatMicroseconds ( os , ( int ) ( time . getTime ( ) % _NUM ) * _NUM , fractionalSeconds ) ; os . write ( ParameterWriter . QUOTE ) ; } | 72 |
java-test-10265 | java | What does the code add ? | the miter limit stroke | public static Rect add Miter Limit Stroke To Bounds ( Shape Record segment 1 , Shape Record segment 2 , double miter Limit , double half Weight , Rect path B Box , int x Prev , int y Prev , int x , int y ) { Point joint Point = new Point ( x , y ) ; if ( is Inner Joint ( joint Point , path B Box , miter Limit , half We... | public static Rect addMiterLimitStrokeToBounds ( ShapeRecord segment1 , ShapeRecord segment2 , double miterLimit , double halfWeight , Rect pathBBox , int xPrev , int yPrev , int x , int y ) { Point jointPoint = new Point ( x , y ) ; if ( isInnerJoint ( jointPoint , pathBBox , miterLimit , halfWeight ) ) { return pathB... | 745 |
java-test-10268 | java | What performs on a vm ? | a power state operation | @ Rpc Method public void power Vm Op ( String vm Id , Power Vm Op op , Async Method Callback < Host . Async Client . power vm op call > handler ) throws Rpc Exception { ensure Client ( ) ; Power Vm Op Request power Vm Op Request = new Power Vm Op Request ( vm Id , op ) ; client Proxy . set Timeout ( POWER VM OP TIMEOUT... | @ RpcMethod public void powerVmOp ( String vmId , PowerVmOp op , AsyncMethodCallback < Host . AsyncClient . power_vm_op_call > handler ) throws RpcException { ensureClient ( ) ; PowerVmOpRequest powerVmOpRequest = new PowerVmOpRequest ( vmId , op ) ; clientProxy . setTimeout ( POWER_VM_OP_TIMEOUT_MS ) ; logger . info (... | 138 |
java-test-10269 | java | For what purpose does this method perform an asynchronous thrift call on completion ? | to perform a power state operation on a vm | @ Rpc Method public void power Vm Op ( String vm Id , Power Vm Op op , Async Method Callback < Host . Async Client . power vm op call > handler ) throws Rpc Exception { ensure Client ( ) ; Power Vm Op Request power Vm Op Request = new Power Vm Op Request ( vm Id , op ) ; client Proxy . set Timeout ( POWER VM OP TIMEOUT... | @ RpcMethod public void powerVmOp ( String vmId , PowerVmOp op , AsyncMethodCallback < Host . AsyncClient . power_vm_op_call > handler ) throws RpcException { ensureClient ( ) ; PowerVmOpRequest powerVmOpRequest = new PowerVmOpRequest ( vmId , op ) ; clientProxy . setTimeout ( POWER_VM_OP_TIMEOUT_MS ) ; logger . info (... | 138 |
java-test-10270 | java | Where do a power state operation perform ? | on a vm | @ Rpc Method public void power Vm Op ( String vm Id , Power Vm Op op , Async Method Callback < Host . Async Client . power vm op call > handler ) throws Rpc Exception { ensure Client ( ) ; Power Vm Op Request power Vm Op Request = new Power Vm Op Request ( vm Id , op ) ; client Proxy . set Timeout ( POWER VM OP TIMEOUT... | @ RpcMethod public void powerVmOp ( String vmId , PowerVmOp op , AsyncMethodCallback < Host . AsyncClient . power_vm_op_call > handler ) throws RpcException { ensureClient ( ) ; PowerVmOpRequest powerVmOpRequest = new PowerVmOpRequest ( vmId , op ) ; clientProxy . setTimeout ( POWER_VM_OP_TIMEOUT_MS ) ; logger . info (... | 138 |
java-test-10271 | java | How did the lines of the file enrich ? | with annotations | private static List < String > lines To Write ( String path , Global global , List < Attribute > attributes , Class < ? > a Class ) throws No Such Field Exception , IO Exception { String [ ] class Identifier = new String [ ] { STRING , STRING , a Class . get Simple Name ( ) } ; boolean class Found = BOOL ; verify Attri... | private static List < String > linesToWrite ( String path , Global global , List < Attribute > attributes , Class < ? > aClass ) throws NoSuchFieldException , IOException { String [ ] classIdentifier = new String [ ] { STRING , STRING , aClass . getSimpleName ( ) } ; boolean classFound = _BOOL ; verifyAttributes ( aCla... | 406 |
java-test-10272 | java | What does this method return ? | the lines of the file enriched with annotations | private static List < String > lines To Write ( String path , Global global , List < Attribute > attributes , Class < ? > a Class ) throws No Such Field Exception , IO Exception { String [ ] class Identifier = new String [ ] { STRING , STRING , a Class . get Simple Name ( ) } ; boolean class Found = BOOL ; verify Attri... | private static List < String > linesToWrite ( String path , Global global , List < Attribute > attributes , Class < ? > aClass ) throws NoSuchFieldException , IOException { String [ ] classIdentifier = new String [ ] { STRING , STRING , aClass . getSimpleName ( ) } ; boolean classFound = _BOOL ; verifyAttributes ( aCla... | 406 |
java-test-10273 | java | What does the code create ? | a new lint quickfix which can replace string contents at the given psi element | Replace String Quick Fix ( @ Nullable String name , @ Nullable String regexp , @ Not Null String new Value ) { my Name = name ; my New Value = new Value ; if ( regexp != null && regexp . index Of ( STRING ) == - NUM ) { regexp = STRING + Pattern . quote ( regexp ) + STRING ; } my Regexp = regexp ; } | ReplaceStringQuickFix ( @ Nullable String name , @ Nullable String regexp , @ NotNull String newValue ) { myName = name ; myNewValue = newValue ; if ( regexp != null && regexp . indexOf ( STRING ) == - _NUM ) { regexp = STRING + Pattern . quote ( regexp ) + STRING ; } myRegexp = regexp ; } | 73 |
java-test-10274 | java | What can replace a new lint quickfix at the given psi element ? | string contents | Replace String Quick Fix ( @ Nullable String name , @ Nullable String regexp , @ Not Null String new Value ) { my Name = name ; my New Value = new Value ; if ( regexp != null && regexp . index Of ( STRING ) == - NUM ) { regexp = STRING + Pattern . quote ( regexp ) + STRING ; } my Regexp = regexp ; } | ReplaceStringQuickFix ( @ Nullable String name , @ Nullable String regexp , @ NotNull String newValue ) { myName = name ; myNewValue = newValue ; if ( regexp != null && regexp . indexOf ( STRING ) == - _NUM ) { regexp = STRING + Pattern . quote ( regexp ) + STRING ; } myRegexp = regexp ; } | 73 |
java-test-10275 | java | Where can string contents replace a new lint quickfix ? | at the given psi element | Replace String Quick Fix ( @ Nullable String name , @ Nullable String regexp , @ Not Null String new Value ) { my Name = name ; my New Value = new Value ; if ( regexp != null && regexp . index Of ( STRING ) == - NUM ) { regexp = STRING + Pattern . quote ( regexp ) + STRING ; } my Regexp = regexp ; } | ReplaceStringQuickFix ( @ Nullable String name , @ Nullable String regexp , @ NotNull String newValue ) { myName = name ; myNewValue = newValue ; if ( regexp != null && regexp . indexOf ( STRING ) == - _NUM ) { regexp = STRING + Pattern . quote ( regexp ) + STRING ; } myRegexp = regexp ; } | 73 |
java-test-10276 | java | What does the code write ? | the contents of a journal message | @ Override public void write ( byte [ ] buffer , int offset , int length ) { try { Output Stream os = os ; if ( os != null ) { os . write ( buffer , offset , length ) ; } } catch ( Exception e ) { log . log ( Level . FINER , e . to String ( ) , e ) ; } } | @ Override public void write ( byte [ ] buffer , int offset , int length ) { try { OutputStream os = _os ; if ( os != null ) { os . write ( buffer , offset , length ) ; } } catch ( Exception e ) { log . log ( Level . FINER , e . toString ( ) , e ) ; } } | 72 |
java-test-10277 | java | What does the code calculate ? | a doubly exponential weighted moving average | public < T extends Number > double [ ] next ( Collection < T > values , int num Forecasts ) { if ( values . size ( ) < period * NUM ) { throw new Aggregation Execution Exception ( STRING + period + STRING + ( NUM * period ) + STRING + values . size ( ) + STRING ) ; } double s = NUM ; double last s ; double b = NUM ; do... | public < T extends Number > double [ ] next ( Collection < T > values , int numForecasts ) { if ( values . size ( ) < period * _NUM ) { throw new AggregationExecutionException ( STRING + period + STRING + ( _NUM * period ) + STRING + values . size ( ) + STRING ) ; } double s = _NUM ; double last_s ; double b = _NUM ; d... | 610 |
java-test-10281 | java | How d an dataobject finds in a collection ? | by matching it by i d | public static < T extends Data Object > T find In Collection ( Collection < T > col , T obj ) { if ( col != null && obj != null ) { return find In Collection ( col , obj . get Id ( ) ) ; } return null ; } | public static < T extends DataObject > T findInCollection ( Collection < T > col , T obj ) { if ( col != null && obj != null ) { return findInCollection ( col , obj . getId ( ) ) ; } return null ; } | 54 |
java-test-10282 | java | What d finds in a collection ? | an dataobject | public static < T extends Data Object > T find In Collection ( Collection < T > col , T obj ) { if ( col != null && obj != null ) { return find In Collection ( col , obj . get Id ( ) ) ; } return null ; } | public static < T extends DataObject > T findInCollection ( Collection < T > col , T obj ) { if ( col != null && obj != null ) { return findInCollection ( col , obj . getId ( ) ) ; } return null ; } | 54 |
java-test-10284 | java | What does the code create ? | a new instance of codeviewer | public Code Viewer ( ) { set Highlight Color ( DEFAULT HIGHLIGHT COLOR ) ; init Actions ( ) ; set Layout ( new Border Layout ( ) ) ; code Highlight Bar = create Code Highlight Bar ( ) ; code Highlight Bar . set Visible ( BOOL ) ; add ( code Highlight Bar , Border Layout . NORTH ) ; code Panel = create Code Panel ( ) ; ... | public CodeViewer ( ) { setHighlightColor ( DEFAULT_HIGHLIGHT_COLOR ) ; initActions ( ) ; setLayout ( new BorderLayout ( ) ) ; codeHighlightBar = createCodeHighlightBar ( ) ; codeHighlightBar . setVisible ( _BOOL ) ; add ( codeHighlightBar , BorderLayout . NORTH ) ; codePanel = createCodePanel ( ) ; add ( codePanel , B... | 89 |
java-test-10287 | java | Where do this work ? | only on a windows machine | public static String create User Folder If Not Exist ( final String Path , final String user Id ) throws DAST Proxy Exception { final File user Folder = new File ( Path + STRING + user Id ) ; if ( ! user Folder . exists ( ) ) { final boolean result Of Operation = user Folder . mkdir ( ) ; if ( ! result Of Operation ) {... | public static String createUserFolderIfNotExist ( final String Path , final String userId ) throws DASTProxyException { final File userFolder = new File ( Path + STRING + userId ) ; if ( ! userFolder . exists ( ) ) { final boolean resultOfOperation = userFolder . mkdir ( ) ; if ( ! resultOfOperation ) { throw new DASTP... | 94 |
java-test-10291 | java | What does the code migrate ? | the local device used by the passed virtual volume | private V Plex Migration Info migrate Local Virtual Volume ( String migration Name , V Plex Virtual Volume Info virtual Volume Info , Map < Volume Info , V Plex Storage Volume Info > storage Volume Info Map , boolean start Now , boolean is Remote , boolean use Device Migration , String transfer Size ) throws V Plex Api... | private VPlexMigrationInfo migrateLocalVirtualVolume ( String migrationName , VPlexVirtualVolumeInfo virtualVolumeInfo , Map < VolumeInfo , VPlexStorageVolumeInfo > storageVolumeInfoMap , boolean startNow , boolean isRemote , boolean useDeviceMigration , String transferSize ) throws VPlexApiException { if ( isRemote ||... | 129 |
java-test-10298 | java | What is this branch tracking ? | a remote branch | private boolean check Tracked Branches Configured ( ) { LOG . info ( STRING ) ; for ( Git Repository repository : my Repositories ) { Virtual File root = repository . get Root ( ) ; final Git Local Branch branch = repository . get Current Branch ( ) ; if ( branch == null ) { LOG . info ( STRING + repository ) ; notify ... | private boolean checkTrackedBranchesConfigured ( ) { LOG . info ( STRING ) ; for ( GitRepository repository : myRepositories ) { VirtualFile root = repository . getRoot ( ) ; final GitLocalBranch branch = repository . getCurrentBranch ( ) ; if ( branch == null ) { LOG . info ( STRING + repository ) ; notifyImportantErr... | 226 |
java-test-10299 | java | What is tracking a remote branch ? | this branch | private boolean check Tracked Branches Configured ( ) { LOG . info ( STRING ) ; for ( Git Repository repository : my Repositories ) { Virtual File root = repository . get Root ( ) ; final Git Local Branch branch = repository . get Current Branch ( ) ; if ( branch == null ) { LOG . info ( STRING + repository ) ; notify ... | private boolean checkTrackedBranchesConfigured ( ) { LOG . info ( STRING ) ; for ( GitRepository repository : myRepositories ) { VirtualFile root = repository . getRoot ( ) ; final GitLocalBranch branch = repository . getCurrentBranch ( ) ; if ( branch == null ) { LOG . info ( STRING + repository ) ; notifyImportantErr... | 226 |
java-test-10300 | java | What does the code create ? | a issueralternativenameextension with the passed criticality and generalnames | public Issuer Alternative Name Extension ( Boolean critical , General Names names ) throws IO Exception { this . names = names ; this . extension Id = PKIX Extensions . Issuer Alternative Name Id ; this . critical = critical . boolean Value ( ) ; encode This ( ) ; } | public IssuerAlternativeNameExtension ( Boolean critical , GeneralNames names ) throws IOException { this . names = names ; this . extensionId = PKIXExtensions . IssuerAlternativeName_Id ; this . critical = critical . booleanValue ( ) ; encodeThis ( ) ; } | 53 |
java-test-10301 | java | Where did the source define ? | in the provided source anchor | public static Configuration Directory download Configuration ( final String path , final String source Anchor ) throws Exception { Process Builder pb = new Process Builder ( Conf Proxy Properties . get Download Script Path ( ) , source Anchor , path ) ; pb . redirect Error Stream ( BOOL ) ; pb . redirect Output ( Proce... | public static ConfigurationDirectory downloadConfiguration ( final String path , final String sourceAnchor ) throws Exception { ProcessBuilder pb = new ProcessBuilder ( ConfProxyProperties . getDownloadScriptPath ( ) , sourceAnchor , path ) ; pb . redirectErrorStream ( _BOOL ) ; pb . redirectOutput ( ProcessBuilder . R... | 105 |
java-test-10302 | java | What does the code invoke the configuration client script ? | to download the global configuration from the source defined in the provided source anchor | public static Configuration Directory download Configuration ( final String path , final String source Anchor ) throws Exception { Process Builder pb = new Process Builder ( Conf Proxy Properties . get Download Script Path ( ) , source Anchor , path ) ; pb . redirect Error Stream ( BOOL ) ; pb . redirect Output ( Proce... | public static ConfigurationDirectory downloadConfiguration ( final String path , final String sourceAnchor ) throws Exception { ProcessBuilder pb = new ProcessBuilder ( ConfProxyProperties . getDownloadScriptPath ( ) , sourceAnchor , path ) ; pb . redirectErrorStream ( _BOOL ) ; pb . redirectOutput ( ProcessBuilder . R... | 105 |
java-test-10303 | java | What does the code create from a list of layers ? | a new instance of layerstructure | public Dsn Layer Structure ( Collection < Dsn Layer > p layer list ) { arr = new Dsn Layer [ p layer list . size ( ) ] ; Iterator < Dsn Layer > it = p layer list . iterator ( ) ; for ( int i = NUM ; i < arr . length ; ++ i ) { arr [ i ] = it . next ( ) ; } } | public DsnLayerStructure ( Collection < DsnLayer > p_layer_list ) { arr = new DsnLayer [ p_layer_list . size ( ) ] ; Iterator < DsnLayer > it = p_layer_list . iterator ( ) ; for ( int i = _NUM ; i < arr . length ; ++ i ) { arr [ i ] = it . next ( ) ; } } | 75 |
java-test-10305 | java | Why are tests with zero and one symbols have done separately ? | since both cases have errors | public void test huffman Codec Stress ( ) { final int ntrials = NUM ; final Random r = new Random ( ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { final int [ ] frequency = new int [ r . next Int ( NUM ) + NUM ] ; for ( int i = NUM ; i < frequency . length ; i ++ ) { if ( r . next Float ( ) < NUM ) { freque... | public void test_huffmanCodecStress ( ) { final int ntrials = _NUM ; final Random r = new Random ( ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { final int [ ] frequency = new int [ r . nextInt ( _NUM ) + _NUM ] ; for ( int i = _NUM ; i < frequency . length ; i ++ ) { if ( r . nextFloat ( ) < _NUM ) { freq... | 123 |
java-test-10308 | java | What does the code convert to an array of values that corresponds to the fields referenced by the support vectors in the vector dictionary ? | an incoming instance | public double [ ] incoming Instance To Vector Field Vals ( double [ ] incoming ) throws Exception { double [ ] new Inst = new double [ m vector Fields . size ( ) ] ; for ( int i = NUM ; i < m vector Fields . size ( ) ; i ++ ) { Field Ref fr = m vector Fields . get ( i ) ; new Inst [ i ] = fr . get Result ( incoming ) ;... | public double [ ] incomingInstanceToVectorFieldVals ( double [ ] incoming ) throws Exception { double [ ] newInst = new double [ m_vectorFields . size ( ) ] ; for ( int i = _NUM ; i < m_vectorFields . size ( ) ; i ++ ) { FieldRef fr = m_vectorFields . get ( i ) ; newInst [ i ] = fr . getResult ( incoming ) ; } return n... | 91 |
java-test-10310 | java | What is this function calculates ? | the cartesian product of two string lists ( treated as set ) | static List < String > cartesian Product ( List < String > x List , List < String > y List , boolean is Suffix ) { List < String > product = new Array List < String > ( ) ; for ( String x : x List ) { for ( String y : y List ) { product . add ( x + y ) ; } } remove Duplicate Affix ( product , is Suffix ) ; return produ... | static List < String > cartesianProduct ( List < String > xList , List < String > yList , boolean isSuffix ) { List < String > product = new ArrayList < String > ( ) ; for ( String x : xList ) { for ( String y : yList ) { product . add ( x + y ) ; } } removeDuplicateAffix ( product , isSuffix ) ; return product ; } | 85 |
java-test-10311 | java | How do the vmax2 volume size calculate as a workaround ? | based on the vmax3 cylinder size | private void compute Capacityfor SRDFV 3 To V 2 ( Volume target Volume , final Virtual Pool vpool ) { if ( target Volume == null ) { return ; } Storage System target System = db Client . query Object ( Storage System . class , target Volume . get Storage Controller ( ) ) ; Storage Pool target Pool = db Client . query O... | private void computeCapacityforSRDFV3ToV2 ( Volume targetVolume , final VirtualPool vpool ) { if ( targetVolume == null ) { return ; } StorageSystem targetSystem = _dbClient . queryObject ( StorageSystem . class , targetVolume . getStorageController ( ) ) ; StoragePool targetPool = _dbClient . queryObject ( StoragePool... | 412 |
java-test-10312 | java | For what purpose do the vmax2 volume size calculate based on the vmax3 cylinder size ? | as a workaround | private void compute Capacityfor SRDFV 3 To V 2 ( Volume target Volume , final Virtual Pool vpool ) { if ( target Volume == null ) { return ; } Storage System target System = db Client . query Object ( Storage System . class , target Volume . get Storage Controller ( ) ) ; Storage Pool target Pool = db Client . query O... | private void computeCapacityforSRDFV3ToV2 ( Volume targetVolume , final VirtualPool vpool ) { if ( targetVolume == null ) { return ; } StorageSystem targetSystem = _dbClient . queryObject ( StorageSystem . class , targetVolume . getStorageController ( ) ) ; StoragePool targetPool = _dbClient . queryObject ( StoragePool... | 412 |
java-test-10313 | java | Why is between vmax3 to vmax2 failing ? | due to configuration mismatch | private void compute Capacityfor SRDFV 3 To V 2 ( Volume target Volume , final Virtual Pool vpool ) { if ( target Volume == null ) { return ; } Storage System target System = db Client . query Object ( Storage System . class , target Volume . get Storage Controller ( ) ) ; Storage Pool target Pool = db Client . query O... | private void computeCapacityforSRDFV3ToV2 ( Volume targetVolume , final VirtualPool vpool ) { if ( targetVolume == null ) { return ; } StorageSystem targetSystem = _dbClient . queryObject ( StorageSystem . class , targetVolume . getStorageController ( ) ) ; StoragePool targetPool = _dbClient . queryObject ( StoragePool... | 412 |
java-test-10314 | java | What do a directory exceed ? | the specified size | public static boolean exceeds Size ( Configuration conf , Path path , long max Size ) throws IO Exception { long total Size = NUM ; File System fs = File System . get ( path . to Uri ( ) , conf ) ; Queue < Path > paths To Check = new Linked List < > ( ) ; paths To Check . add ( path ) ; while ( paths To Check . size ( ... | public static boolean exceedsSize ( Configuration conf , Path path , long maxSize ) throws IOException { long totalSize = _NUM ; FileSystem fs = FileSystem . get ( path . toUri ( ) , conf ) ; Queue < Path > pathsToCheck = new LinkedList < > ( ) ; pathsToCheck . add ( path ) ; while ( pathsToCheck . size ( ) > _NUM ) { ... | 178 |
java-test-10316 | java | For what purpose is this method called from native code ? | in order to write encoder output to the destination | private void write Output Data ( byte [ ] data , int offset , int len ) throws IO Exception { cb Lock . lock ( ) ; try { ios . write ( data , offset , len ) ; } finally { cb Lock . unlock ( ) ; } } | private void writeOutputData ( byte [ ] data , int offset , int len ) throws IOException { cbLock . lock ( ) ; try { ios . write ( data , offset , len ) ; } finally { cbLock . unlock ( ) ; } } | 53 |
java-test-10317 | java | Where did encoder output write ? | to the destination | private void write Output Data ( byte [ ] data , int offset , int len ) throws IO Exception { cb Lock . lock ( ) ; try { ios . write ( data , offset , len ) ; } finally { cb Lock . unlock ( ) ; } } | private void writeOutputData ( byte [ ] data , int offset , int len ) throws IOException { cbLock . lock ( ) ; try { ios . write ( data , offset , len ) ; } finally { cbLock . unlock ( ) ; } } | 53 |
java-test-10318 | java | What writes to the destination ? | encoder output | private void write Output Data ( byte [ ] data , int offset , int len ) throws IO Exception { cb Lock . lock ( ) ; try { ios . write ( data , offset , len ) ; } finally { cb Lock . unlock ( ) ; } } | private void writeOutputData ( byte [ ] data , int offset , int len ) throws IOException { cbLock . lock ( ) ; try { ios . write ( data , offset , len ) ; } finally { cbLock . unlock ( ) ; } } | 53 |
java-test-10319 | java | What did we block in order to prevent a corruption of the native encoder state ? | any attempt to change the writer state during this method | private void write Output Data ( byte [ ] data , int offset , int len ) throws IO Exception { cb Lock . lock ( ) ; try { ios . write ( data , offset , len ) ; } finally { cb Lock . unlock ( ) ; } } | private void writeOutputData ( byte [ ] data , int offset , int len ) throws IOException { cbLock . lock ( ) ; try { ios . write ( data , offset , len ) ; } finally { cbLock . unlock ( ) ; } } | 53 |
java-test-10320 | java | What does the code replace with original char ? | entity ref | private String replace Entity Ref ( String data , String ref , char ch ) { int idx = NUM ; String Builder buffer = new String Builder ( data . length ( ) ) ; while ( ( idx = data . index Of ( ref ) ) != - NUM ) { buffer . append ( data . substring ( NUM , idx ) ) ; buffer . append ( ch ) ; data = data . substring ( idx... | private String replaceEntityRef ( String data , String ref , char ch ) { int idx = _NUM ; StringBuilder buffer = new StringBuilder ( data . length ( ) ) ; while ( ( idx = data . indexOf ( ref ) ) != - _NUM ) { buffer . append ( data . substring ( _NUM , idx ) ) ; buffer . append ( ch ) ; data = data . substring ( idx +... | 127 |
java-test-10321 | java | What does the code create ? | a new instance of serveroptions | public Server Options ( final Component owner , final String default Name , final int default Port , final boolean show Comment ) { super ( owner == null ? null : J Option Pane . get Frame For Component ( owner ) , STRING , BOOL ) ; m show Comment = show Comment ; init Components ( ) ; layout Components ( ) ; setup Act... | public ServerOptions ( final Component owner , final String defaultName , final int defaultPort , final boolean showComment ) { super ( owner == null ? null : JOptionPane . getFrameForComponent ( owner ) , STRING , _BOOL ) ; m_showComment = showComment ; initComponents ( ) ; layoutComponents ( ) ; setupActions ( ) ; m_... | 104 |
java-test-10322 | java | When is the code called ? | whenever the native wrapper code traps a system control signal against the java process | @ Override public void control Event ( int event ) { if ( ( event == Wrapper Manager . WRAPPER CTRL LOGOFF EVENT ) && Wrapper Manager . is Launched As Service ( ) ) { if ( logger . is Info Enabled ( ) ) { logger . info ( STRING + event + STRING ) ; } } else { if ( logger . is Info Enabled ( ) ) { logger . info ( STRING... | @ Override public void controlEvent ( int event ) { if ( ( event == WrapperManager . WRAPPER_CTRL_LOGOFF_EVENT ) && WrapperManager . isLaunchedAsService ( ) ) { if ( logger . isInfoEnabled ( ) ) { logger . info ( STRING + event + STRING ) ; } } else { if ( logger . isInfoEnabled ( ) ) { logger . info ( STRING + event +... | 95 |
java-test-10324 | java | In which direction can items be not moved ? | past the left or top edges of the panel | public void move Item ( Positionable p , int delta X , int delta Y ) { if ( get Flag ( OPTION POSITION , p . is Positionable ( ) ) ) { int x Obj = get Item X ( p , delta X ) ; int y Obj = get Item Y ( p , delta Y ) ; if ( x Obj < NUM ) { x Obj = NUM ; } if ( y Obj < NUM ) { y Obj = NUM ; } p . set Location ( x Obj , y ... | public void moveItem ( Positionable p , int deltaX , int deltaY ) { if ( getFlag ( OPTION_POSITION , p . isPositionable ( ) ) ) { int xObj = getItemX ( p , deltaX ) ; int yObj = getItemY ( p , deltaY ) ; if ( xObj < _NUM ) { xObj = _NUM ; } if ( yObj < _NUM ) { yObj = _NUM ; } p . setLocation ( xObj , yObj ) ; p . repa... | 110 |
java-test-10326 | java | What does the code initialize ? | the basic variable / row mapping | private void initialize Basic Variables ( final int start Column ) { basic Variables = new int [ get Width ( ) - NUM ] ; basic Rows = new int [ get Height ( ) ] ; Arrays . fill ( basic Variables , - NUM ) ; for ( int i = start Column ; i < get Width ( ) - NUM ; i ++ ) { Integer row = find Basic Row ( i ) ; if ( row != ... | private void initializeBasicVariables ( final int startColumn ) { basicVariables = new int [ getWidth ( ) - _NUM ] ; basicRows = new int [ getHeight ( ) ] ; Arrays . fill ( basicVariables , - _NUM ) ; for ( int i = startColumn ; i < getWidth ( ) - _NUM ; i ++ ) { Integer row = findBasicRow ( i ) ; if ( row != null ) { ... | 106 |
java-test-10327 | java | How do multiple paths choose ? | farthest | public static void calculate Distance To Farthest Input ( Gate g ) { if ( g . is unvisited ( ) ) { g . set distance to input ( NUM ) ; g . set unvisited ( BOOL ) ; if ( g . Type != Gate . Gate Type . INPUT ) { for ( Gate child : g . get Children ( ) ) { calculate Distance To Farthest Input ( child ) ; g . set distance ... | public static void calculateDistanceToFarthestInput ( Gate g ) { if ( g . is_unvisited ( ) ) { g . set_distance_to_input ( _NUM ) ; g . set_unvisited ( _BOOL ) ; if ( g . Type != Gate . GateType . INPUT ) { for ( Gate child : g . getChildren ( ) ) { calculateDistanceToFarthestInput ( child ) ; g . set_distance_to_input... | 162 |
java-test-10328 | java | Till when do depth of gate recurse compute ? | until reaching inputs set gates connected to inputs = = 1 when recursing back up from inputs | public static void calculate Distance To Farthest Input ( Gate g ) { if ( g . is unvisited ( ) ) { g . set distance to input ( NUM ) ; g . set unvisited ( BOOL ) ; if ( g . Type != Gate . Gate Type . INPUT ) { for ( Gate child : g . get Children ( ) ) { calculate Distance To Farthest Input ( child ) ; g . set distance ... | public static void calculateDistanceToFarthestInput ( Gate g ) { if ( g . is_unvisited ( ) ) { g . set_distance_to_input ( _NUM ) ; g . set_unvisited ( _BOOL ) ; if ( g . Type != Gate . GateType . INPUT ) { for ( Gate child : g . getChildren ( ) ) { calculateDistanceToFarthestInput ( child ) ; g . set_distance_to_input... | 162 |
java-test-10334 | java | What does the code compute ? | a regular expression string where each instance of the old name can be fulfilled by either the old name or new name | private static String compute Regex String ( String original String , String old Name , String new Name ) { String Builder builder = new String Builder ( original String . length ( ) ) ; String old Name Or New Name Reg Ex = String . format ( STRING , Pattern . quote ( old Name ) , Pattern . quote ( new Name ) ) ; int i... | private static String computeRegexString ( String originalString , String oldName , String newName ) { StringBuilder builder = new StringBuilder ( originalString . length ( ) ) ; String oldNameOrNewNameRegEx = String . format ( STRING , Pattern . quote ( oldName ) , Pattern . quote ( newName ) ) ; int i = originalStrin... | 205 |
java-test-10335 | java | What can be fulfilled each instance of the old name a regular expression string ? | by either the old name or new name | private static String compute Regex String ( String original String , String old Name , String new Name ) { String Builder builder = new String Builder ( original String . length ( ) ) ; String old Name Or New Name Reg Ex = String . format ( STRING , Pattern . quote ( old Name ) , Pattern . quote ( new Name ) ) ; int i... | private static String computeRegexString ( String originalString , String oldName , String newName ) { StringBuilder builder = new StringBuilder ( originalString . length ( ) ) ; String oldNameOrNewNameRegEx = String . format ( STRING , Pattern . quote ( oldName ) , Pattern . quote ( newName ) ) ; int i = originalStrin... | 205 |
java-test-10336 | java | Where can by either the old name or new name be fulfilled each instance of the old name ? | a regular expression string | private static String compute Regex String ( String original String , String old Name , String new Name ) { String Builder builder = new String Builder ( original String . length ( ) ) ; String old Name Or New Name Reg Ex = String . format ( STRING , Pattern . quote ( old Name ) , Pattern . quote ( new Name ) ) ; int i... | private static String computeRegexString ( String originalString , String oldName , String newName ) { StringBuilder builder = new StringBuilder ( originalString . length ( ) ) ; String oldNameOrNewNameRegEx = String . format ( STRING , Pattern . quote ( oldName ) , Pattern . quote ( newName ) ) ; int i = originalStrin... | 205 |
java-test-10337 | java | What do the dialog contain ? | the given urls | private static int show Urls Prompt ( Component parent , List < String > urls ) { String text = STRING ; for ( String url : urls ) { url = split Url ( url ) ; text += url + STRING ; } String ok Option = STRING ; if ( urls . size ( ) > NUM ) { ok Option = STRING + urls . size ( ) + STRING ; } String [ ] options = { ok O... | private static int showUrlsPrompt ( Component parent , List < String > urls ) { String text = STRING ; for ( String url : urls ) { url = splitUrl ( url ) ; text += url + STRING ; } String okOption = STRING ; if ( urls . size ( ) > _NUM ) { okOption = STRING + urls . size ( ) + STRING ; } String [ ] options = { okOption... | 160 |
java-test-10339 | java | What does the code validate ? | the provided template | public static boolean is Valid Template ( String template ) { template = template . trim ( ) ; if ( template . index Of ( STRING ) == - NUM ) { return BOOL ; } String s = template . trim ( ) ; if ( s . last Index Of ( STRING ) != s . length ( ) - NUM ) { return BOOL ; } if ( get Method Signature ( template ) == null ) ... | public static boolean isValidTemplate ( String template ) { template = template . trim ( ) ; if ( template . indexOf ( STRING ) == - _NUM ) { return _BOOL ; } String s = template . trim ( ) ; if ( s . lastIndexOf ( STRING ) != s . length ( ) - _NUM ) { return _BOOL ; } if ( getMethodSignature ( template ) == null ) { r... | 106 |
java-test-10340 | java | For what purpose does mantissa and exponent char arrays fill ? | for compatible format | private void fill Compatible ( int precision , char [ ] digits , int n Digits , int exp , boolean is Negative ) { int start Index = is Negative ? NUM : NUM ; if ( exp > NUM && exp < NUM ) { if ( n Digits < exp ) { int extra Zeros = exp - n Digits ; mantissa = create ( is Negative , n Digits + extra Zeros + NUM ) ; Syst... | private void fillCompatible ( int precision , char [ ] digits , int nDigits , int exp , boolean isNegative ) { int startIndex = isNegative ? _NUM : _NUM ; if ( exp > _NUM && exp < _NUM ) { if ( nDigits < exp ) { int extraZeros = exp - nDigits ; mantissa = create ( isNegative , nDigits + extraZeros + _NUM ) ; System . a... | 859 |
java-test-10341 | java | What calculates at descendants from node ? | probability of data | private double [ ] prune ( Tree tree , Node Ref node , Colour Change Matrix mm ) { double [ ] p = new double [ colour Count ] ; if ( tree . is External ( node ) ) { p [ get Colour ( node ) ] = NUM ; } else { Node Ref left Child = tree . get Child ( node , NUM ) ; Node Ref right Child = tree . get Child ( node , NUM ) ;... | private double [ ] prune ( Tree tree , NodeRef node , ColourChangeMatrix mm ) { double [ ] p = new double [ colourCount ] ; if ( tree . isExternal ( node ) ) { p [ getColour ( node ) ] = _NUM ; } else { NodeRef leftChild = tree . getChild ( node , _NUM ) ; NodeRef rightChild = tree . getChild ( node , _NUM ) ; double [... | 388 |
java-test-10342 | java | Where do probability of data calculate by a felsenstein - like pruning algorithm ? | at descendants from node | private double [ ] prune ( Tree tree , Node Ref node , Colour Change Matrix mm ) { double [ ] p = new double [ colour Count ] ; if ( tree . is External ( node ) ) { p [ get Colour ( node ) ] = NUM ; } else { Node Ref left Child = tree . get Child ( node , NUM ) ; Node Ref right Child = tree . get Child ( node , NUM ) ;... | private double [ ] prune ( Tree tree , NodeRef node , ColourChangeMatrix mm ) { double [ ] p = new double [ colourCount ] ; if ( tree . isExternal ( node ) ) { p [ getColour ( node ) ] = _NUM ; } else { NodeRef leftChild = tree . getChild ( node , _NUM ) ; NodeRef rightChild = tree . getChild ( node , _NUM ) ; double [... | 388 |
java-test-10343 | java | What create sqlite column expression to convert any sorttokens prefixes to suffixes eg . column = " title " , commontokens = { " the " , " an " , " a " } ; ( case when title like ' the % ' then substr ( title , 5 ) | | ' , the ' when title like ' an % ' then substr ( title , 4 ) | | ' , an ' when title like ' a % ' the... | the code given column | public static String sort Common Tokens ( String column ) { String Builder order = new String Builder ( ) ; order . append ( STRING ) ; for ( String token : common Tokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . value Of ( token . length ( ) + NUM ) + STRING +... | public static String sortCommonTokens ( String column ) { StringBuilder order = new StringBuilder ( ) ; order . append ( STRING ) ; for ( String token : commonTokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . valueOf ( token . length ( ) + _NUM ) + STRING + STRI... | 101 |
java-test-10344 | java | Where be it used ? | in sql where a column expression is expected ( select , order by ) | public static String sort Common Tokens ( String column ) { String Builder order = new String Builder ( ) ; order . append ( STRING ) ; for ( String token : common Tokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . value Of ( token . length ( ) + NUM ) + STRING +... | public static String sortCommonTokens ( String column ) { StringBuilder order = new StringBuilder ( ) ; order . append ( STRING ) ; for ( String token : commonTokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . valueOf ( token . length ( ) + _NUM ) + STRING + STRI... | 101 |
java-test-10345 | java | What does the code given column create to convert any sorttokens prefixes to suffixes eg . column = " title " , commontokens = { " the " , " an " , " a " } ; ( case when title like ' the % ' then substr ( title , 5 ) | | ' , the ' when title like ' an % ' then substr ( title , 4 ) | | ' , an ' when title like ' a % ' t... | sqlite column expression | public static String sort Common Tokens ( String column ) { String Builder order = new String Builder ( ) ; order . append ( STRING ) ; for ( String token : common Tokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . value Of ( token . length ( ) + NUM ) + STRING +... | public static String sortCommonTokens ( String column ) { StringBuilder order = new StringBuilder ( ) ; order . append ( STRING ) ; for ( String token : commonTokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . valueOf ( token . length ( ) + _NUM ) + STRING + STRI... | 101 |
java-test-10346 | java | What do this allow when title like ' a % ' then substr ( title , 3 ) | | ' , a ' else title end ? | it to be used in sql where a column expression is expected ( select , order by ) | public static String sort Common Tokens ( String column ) { String Builder order = new String Builder ( ) ; order . append ( STRING ) ; for ( String token : common Tokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . value Of ( token . length ( ) + NUM ) + STRING +... | public static String sortCommonTokens ( String column ) { StringBuilder order = new StringBuilder ( ) ; order . append ( STRING ) ; for ( String token : commonTokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . valueOf ( token . length ( ) + _NUM ) + STRING + STRI... | 101 |
java-test-10347 | java | When do this allow it to be used in sql where a column expression is expected ( select , order by ) ? | when title like ' a % ' then substr ( title , 3 ) | | ' , a ' else title end | public static String sort Common Tokens ( String column ) { String Builder order = new String Builder ( ) ; order . append ( STRING ) ; for ( String token : common Tokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . value Of ( token . length ( ) + NUM ) + STRING +... | public static String sortCommonTokens ( String column ) { StringBuilder order = new StringBuilder ( ) ; order . append ( STRING ) ; for ( String token : commonTokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . valueOf ( token . length ( ) + _NUM ) + STRING + STRI... | 101 |
java-test-10348 | java | For what purpose does the code given column create sqlite column expression ? | to convert any sorttokens prefixes to suffixes eg . column = " title " , commontokens = { " the " , " an " , " a " } ; ( case when title like ' the % ' then substr ( title , 5 ) | | ' , the ' when title like ' an % ' then substr ( title , 4 ) | | ' , an ' when title like ' a % ' then substr ( title , 3 ) | | ' , a ' el... | public static String sort Common Tokens ( String column ) { String Builder order = new String Builder ( ) ; order . append ( STRING ) ; for ( String token : common Tokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . value Of ( token . length ( ) + NUM ) + STRING +... | public static String sortCommonTokens ( String column ) { StringBuilder order = new StringBuilder ( ) ; order . append ( STRING ) ; for ( String token : commonTokens ) { order . append ( STRING + column + STRING + token + STRING + STRING + column + STRING + String . valueOf ( token . length ( ) + _NUM ) + STRING + STRI... | 101 |
java-test-10350 | java | What does the code get ? | a list of user requests | @ Override public Enumeration < String > enumerate Requests ( ) { Vector < String > new Vector = new Vector < String > ( NUM ) ; new Vector . add Element ( STRING ) ; new Vector . add Element ( STRING ) ; return new Vector . elements ( ) ; } | @ Override public Enumeration < String > enumerateRequests ( ) { Vector < String > newVector = new Vector < String > ( _NUM ) ; newVector . addElement ( STRING ) ; newVector . addElement ( STRING ) ; return newVector . elements ( ) ; } | 55 |
java-test-10353 | java | What does the code generate ? | the _ jspdestroy ( ) method which is responsible for calling the release ( ) method on every tag handler in any of the tag handler pools | private void generate Tag Handler Destroy ( ) { if ( ! is Pooling Enabled || tag Handler Pool Names . is Empty ( ) ) { return ; } out . printil ( STRING ) ; out . push Indent ( ) ; for ( String tag Handler Pool Name : tag Handler Pool Names ) { out . printin ( tag Handler Pool Name ) ; out . println ( STRING ) ; } out ... | private void generateTagHandlerDestroy ( ) { if ( ! isPoolingEnabled || tagHandlerPoolNames . isEmpty ( ) ) { return ; } out . printil ( STRING ) ; out . pushIndent ( ) ; for ( String tagHandlerPoolName : tagHandlerPoolNames ) { out . printin ( tagHandlerPoolName ) ; out . println ( STRING ) ; } out . popIndent ( ) ; o... | 97 |
java-test-10354 | java | Where do the release ( ) method call ? | on every tag handler | private void generate Tag Handler Destroy ( ) { if ( ! is Pooling Enabled || tag Handler Pool Names . is Empty ( ) ) { return ; } out . printil ( STRING ) ; out . push Indent ( ) ; for ( String tag Handler Pool Name : tag Handler Pool Names ) { out . printin ( tag Handler Pool Name ) ; out . println ( STRING ) ; } out ... | private void generateTagHandlerDestroy ( ) { if ( ! isPoolingEnabled || tagHandlerPoolNames . isEmpty ( ) ) { return ; } out . printil ( STRING ) ; out . pushIndent ( ) ; for ( String tagHandlerPoolName : tagHandlerPoolNames ) { out . printin ( tagHandlerPoolName ) ; out . println ( STRING ) ; } out . popIndent ( ) ; o... | 97 |
java-test-10355 | java | What is calling on every tag handler ? | the release ( ) method | private void generate Tag Handler Destroy ( ) { if ( ! is Pooling Enabled || tag Handler Pool Names . is Empty ( ) ) { return ; } out . printil ( STRING ) ; out . push Indent ( ) ; for ( String tag Handler Pool Name : tag Handler Pool Names ) { out . printin ( tag Handler Pool Name ) ; out . println ( STRING ) ; } out ... | private void generateTagHandlerDestroy ( ) { if ( ! isPoolingEnabled || tagHandlerPoolNames . isEmpty ( ) ) { return ; } out . printil ( STRING ) ; out . pushIndent ( ) ; for ( String tagHandlerPoolName : tagHandlerPoolNames ) { out . printin ( tagHandlerPoolName ) ; out . println ( STRING ) ; } out . popIndent ( ) ; o... | 97 |
java-test-10357 | java | What does the code get example : if user fullfilled ? | the final ip we want to ping ( | private String parse Ip To Ping From Ping ( String ping ) { String ip = STRING ; if ( ping . contains ( PING ) ) { int index Open = ping . index Of ( PARENTHESE OPEN PING ) ; int index Close = ping . index Of ( PARENTHESE CLOSE PING ) ; ip = ping . substring ( index Open + NUM , index Close ) ; } return ip ; } | private String parseIpToPingFromPing ( String ping ) { String ip = STRING ; if ( ping . contains ( PING ) ) { int indexOpen = ping . indexOf ( PARENTHESE_OPEN_PING ) ; int indexClose = ping . indexOf ( PARENTHESE_CLOSE_PING ) ; ip = ping . substring ( indexOpen + _NUM , indexClose ) ; } return ip ; } | 76 |
java-test-10358 | java | What did user fullfill ? | google | private String parse Ip To Ping From Ping ( String ping ) { String ip = STRING ; if ( ping . contains ( PING ) ) { int index Open = ping . index Of ( PARENTHESE OPEN PING ) ; int index Close = ping . index Of ( PARENTHESE CLOSE PING ) ; ip = ping . substring ( index Open + NUM , index Close ) ; } return ip ; } | private String parseIpToPingFromPing ( String ping ) { String ip = STRING ; if ( ping . contains ( PING ) ) { int indexOpen = ping . indexOf ( PARENTHESE_OPEN_PING ) ; int indexClose = ping . indexOf ( PARENTHESE_CLOSE_PING ) ; ip = ping . substring ( indexOpen + _NUM , indexClose ) ; } return ip ; } | 76 |
java-test-10359 | java | When must vcard_param_separator be appended ? | before this method being called | private void append Type Parameters ( final List < String > types ) { boolean first = BOOL ; for ( final String type Value : types ) { if ( V Card Config . is Version 30 ( mV Card Type ) || V Card Config . is Version 40 ( mV Card Type ) ) { final String encoded = ( V Card Config . is Version 40 ( mV Card Type ) ? V Car... | private void appendTypeParameters ( final List < String > types ) { boolean first = _BOOL ; for ( final String typeValue : types ) { if ( VCardConfig . isVersion30 ( mVCardType ) || VCardConfig . isVersion40 ( mVCardType ) ) { final String encoded = ( VCardConfig . isVersion40 ( mVCardType ) ? VCardUtils . toStringAsV4... | 211 |
java-test-10360 | java | When does the currently displayed command line change ? | when certain keys are pressed | public void do History ( Key Event e ) { if ( e . get Source ( ) == m Input ) { switch ( e . get Key Code ( ) ) { case Key Event . VK UP : if ( m History Pos > NUM ) { m History Pos -- ; String command = m Command History . element At ( m History Pos ) ; m Input . set Text ( command ) ; } break ; case Key Event . VK DO... | public void doHistory ( KeyEvent e ) { if ( e . getSource ( ) == m_Input ) { switch ( e . getKeyCode ( ) ) { case KeyEvent . VK_UP : if ( m_HistoryPos > _NUM ) { m_HistoryPos -- ; String command = m_CommandHistory . elementAt ( m_HistoryPos ) ; m_Input . setText ( command ) ; } break ; case KeyEvent . VK_DOWN : if ( m_... | 163 |
java-test-10361 | java | Where do an escape code start ? | at index i of s | private static int java Script Unescape Helper ( String s , int i , String Builder sb ) { if ( i >= s . length ( ) ) { throw new Illegal Argument Exception ( STRING + s + STRING ) ; } char c = s . char At ( i ++ ) ; switch ( c ) { case STRING : sb . append ( STRING ) ; break ; case STRING : sb . append ( STRING ) ; bre... | private static int javaScriptUnescapeHelper ( String s , int i , StringBuilder sb ) { if ( i >= s . length ( ) ) { throw new IllegalArgumentException ( STRING + s + STRING ) ; } char c = s . charAt ( i ++ ) ; switch ( c ) { case STRING : sb . append ( STRING ) ; break ; case STRING : sb . append ( STRING ) ; break ; ca... | 276 |
java-test-10362 | java | What is starting at index i of s ? | an escape code | private static int java Script Unescape Helper ( String s , int i , String Builder sb ) { if ( i >= s . length ( ) ) { throw new Illegal Argument Exception ( STRING + s + STRING ) ; } char c = s . char At ( i ++ ) ; switch ( c ) { case STRING : sb . append ( STRING ) ; break ; case STRING : sb . append ( STRING ) ; bre... | private static int javaScriptUnescapeHelper ( String s , int i , StringBuilder sb ) { if ( i >= s . length ( ) ) { throw new IllegalArgumentException ( STRING + s + STRING ) ; } char c = s . charAt ( i ++ ) ; switch ( c ) { case STRING : sb . append ( STRING ) ; break ; case STRING : sb . append ( STRING ) ; break ; ca... | 276 |
java-test-10363 | java | For what purpose do this method be call when adding a new preparestatement in cache ? | so the packet can be send to server without problem | public boolean force Release Prepare Statement ( int statement Id ) throws Query Exception { if ( lock . try Lock ( ) ) { try { check Close ( ) ; try { writer . close Prepare ( statement Id ) ; return BOOL ; } catch ( IO Exception e ) { throw new Query Exception ( STRING + e . get Message ( ) , - NUM , CONNECTION EXCEP... | public boolean forceReleasePrepareStatement ( int statementId ) throws QueryException { if ( lock . tryLock ( ) ) { try { checkClose ( ) ; try { writer . closePrepare ( statementId ) ; return _BOOL ; } catch ( IOException e ) { throw new QueryException ( STRING + e . getMessage ( ) , - _NUM , CONNECTION_EXCEPTION . get... | 110 |
java-test-10364 | java | When do this method be call so the packet can be send to server without problem ? | when adding a new preparestatement in cache | public boolean force Release Prepare Statement ( int statement Id ) throws Query Exception { if ( lock . try Lock ( ) ) { try { check Close ( ) ; try { writer . close Prepare ( statement Id ) ; return BOOL ; } catch ( IO Exception e ) { throw new Query Exception ( STRING + e . get Message ( ) , - NUM , CONNECTION EXCEP... | public boolean forceReleasePrepareStatement ( int statementId ) throws QueryException { if ( lock . tryLock ( ) ) { try { checkClose ( ) ; try { writer . closePrepare ( statementId ) ; return _BOOL ; } catch ( IOException e ) { throw new QueryException ( STRING + e . getMessage ( ) , - _NUM , CONNECTION_EXCEPTION . get... | 110 |
java-test-10365 | java | How can the packet be send to server ? | without problem | public boolean force Release Prepare Statement ( int statement Id ) throws Query Exception { if ( lock . try Lock ( ) ) { try { check Close ( ) ; try { writer . close Prepare ( statement Id ) ; return BOOL ; } catch ( IO Exception e ) { throw new Query Exception ( STRING + e . get Message ( ) , - NUM , CONNECTION EXCEP... | public boolean forceReleasePrepareStatement ( int statementId ) throws QueryException { if ( lock . tryLock ( ) ) { try { checkClose ( ) ; try { writer . closePrepare ( statementId ) ; return _BOOL ; } catch ( IOException e ) { throw new QueryException ( STRING + e . getMessage ( ) , - _NUM , CONNECTION_EXCEPTION . get... | 110 |
java-test-10366 | java | What do interpolator use ? | to getdefaultconfig t | private float interpolate ( ) { long curr Time = System . current Time Millis ( ) ; float elapsed = ( curr Time - start Time ) / ZOOM TIME ; elapsed = Math . min ( NUM , elapsed ) ; return interpolator . get Interpolation ( elapsed ) ; } | private float interpolate ( ) { long currTime = System . currentTimeMillis ( ) ; float elapsed = ( currTime - startTime ) / ZOOM_TIME ; elapsed = Math . min ( _NUM , elapsed ) ; return interpolator . getInterpolation ( elapsed ) ; } | 53 |
java-test-10367 | java | What may all transports have ? | channels to remote endpoints | private static Collection < TCP Transport > all Known Transports ( ) { Set < TCP Transport > s ; synchronized ( local Endpoints ) { s = new Hash Set < TCP Transport > ( local Endpoints . size ( ) ) ; for ( Linked List < TCP Endpoint > ep List : local Endpoints . values ( ) ) { TCP Endpoint ep = ep List . get First ( ) ... | private static Collection < TCPTransport > allKnownTransports ( ) { Set < TCPTransport > s ; synchronized ( localEndpoints ) { s = new HashSet < TCPTransport > ( localEndpoints . size ( ) ) ; for ( LinkedList < TCPEndpoint > epList : localEndpoints . values ( ) ) { TCPEndpoint ep = epList . getFirst ( ) ; s . add ( ep ... | 90 |
java-test-10368 | java | What may have channels to remote endpoints ? | all transports | private static Collection < TCP Transport > all Known Transports ( ) { Set < TCP Transport > s ; synchronized ( local Endpoints ) { s = new Hash Set < TCP Transport > ( local Endpoints . size ( ) ) ; for ( Linked List < TCP Endpoint > ep List : local Endpoints . values ( ) ) { TCP Endpoint ep = ep List . get First ( ) ... | private static Collection < TCPTransport > allKnownTransports ( ) { Set < TCPTransport > s ; synchronized ( localEndpoints ) { s = new HashSet < TCPTransport > ( localEndpoints . size ( ) ) ; for ( LinkedList < TCPEndpoint > epList : localEndpoints . values ( ) ) { TCPEndpoint ep = epList . getFirst ( ) ; s . add ( ep ... | 90 |
java-test-10369 | java | What draws on it ? | black shadow | @ Override protected void on Draw ( Canvas canvas ) { super . on Draw ( canvas ) ; if ( m Bitmap Shader == null ) return ; canvas . draw Circle ( m Center X , m Center Y , m Cover Radius , m Cover Paint ) ; canvas . draw Circle ( m Center X , m Center Y , m Cover Radius , m Cover Front Paint ) ; m Duration Text = secon... | @ Override protected void onDraw ( Canvas canvas ) { super . onDraw ( canvas ) ; if ( mBitmapShader == null ) return ; canvas . drawCircle ( mCenterX , mCenterY , mCoverRadius , mCoverPaint ) ; canvas . drawCircle ( mCenterX , mCenterY , mCoverRadius , mCoverFrontPaint ) ; mDurationText = secondsToTime ( mDurationSecon... | 557 |
java-test-10370 | java | What does the code draw ? | the internalframeborder ' s top border | protected boolean draw Top Border ( Component c , Graphics g , int x , int y , int width , int height ) { if ( super . draw Top Border ( c , g , x , y , width , height ) && frame . is Resizable ( ) ) { g . set Color ( get Frame Shadow ( ) ) ; g . draw Line ( CORNER SIZE - NUM , y + NUM , CORNER SIZE - NUM , y + NUM ) ;... | protected boolean drawTopBorder ( Component c , Graphics g , int x , int y , int width , int height ) { if ( super . drawTopBorder ( c , g , x , y , width , height ) && frame . isResizable ( ) ) { g . setColor ( getFrameShadow ( ) ) ; g . drawLine ( CORNER_SIZE - _NUM , y + _NUM , CORNER_SIZE - _NUM , y + _NUM ) ; g . ... | 178 |
java-test-10371 | java | What did the code read ? | a 32 bit signed number | public int read SI 32 ( ) throws IO Exception { synch Bits ( ) ; int b0 = in . read ( ) ; if ( b0 < NUM ) { throw new IO Exception ( STRING ) ; } int b1 = in . read ( ) ; if ( b1 < NUM ) { throw new IO Exception ( STRING ) ; } int b2 = in . read ( ) ; if ( b2 < NUM ) { throw new IO Exception ( STRING ) ; } byte [ ] a B... | public int readSI32 ( ) throws IOException { synchBits ( ) ; int b0 = in . read ( ) ; if ( b0 < _NUM ) { throw new IOException ( STRING ) ; } int b1 = in . read ( ) ; if ( b1 < _NUM ) { throw new IOException ( STRING ) ; } int b2 = in . read ( ) ; if ( b2 < _NUM ) { throw new IOException ( STRING ) ; } byte [ ] aByte =... | 172 |
java-test-10373 | java | What does the code update ? | the member client address | Server Member update ( Address client Address , Instant time ) { if ( client Address != null ) { this . client Address = client Address ; if ( time . is After ( updated ) ) { this . updated = Assert . not Null ( time , STRING ) ; } } return this ; } | ServerMember update ( Address clientAddress , Instant time ) { if ( clientAddress != null ) { this . clientAddress = clientAddress ; if ( time . isAfter ( updated ) ) { this . updated = Assert . notNull ( time , STRING ) ; } } return this ; } | 59 |
java-test-10375 | java | Where are all components of the test geometry contained ? | in the interior of the target geometry | protected boolean is All Test Components In Target Interior ( Geometry test Geom ) { List coords = Component Coordinate Extracter . get Coordinates ( test Geom ) ; for ( Iterator i = coords . iterator ( ) ; i . has Next ( ) ; ) { Coordinate p = ( Coordinate ) i . next ( ) ; int loc = target Point Locator . locate ( p )... | protected boolean isAllTestComponentsInTargetInterior ( Geometry testGeom ) { List coords = ComponentCoordinateExtracter . getCoordinates ( testGeom ) ; for ( Iterator i = coords . iterator ( ) ; i . hasNext ( ) ; ) { Coordinate p = ( Coordinate ) i . next ( ) ; int loc = targetPointLocator . locate ( p ) ; if ( loc !=... | 89 |
java-test-10376 | java | What are contained in the interior of the target geometry ? | all components of the test geometry | protected boolean is All Test Components In Target Interior ( Geometry test Geom ) { List coords = Component Coordinate Extracter . get Coordinates ( test Geom ) ; for ( Iterator i = coords . iterator ( ) ; i . has Next ( ) ; ) { Coordinate p = ( Coordinate ) i . next ( ) ; int loc = target Point Locator . locate ( p )... | protected boolean isAllTestComponentsInTargetInterior ( Geometry testGeom ) { List coords = ComponentCoordinateExtracter . getCoordinates ( testGeom ) ; for ( Iterator i = coords . iterator ( ) ; i . hasNext ( ) ; ) { Coordinate p = ( Coordinate ) i . next ( ) ; int loc = targetPointLocator . locate ( p ) ; if ( loc !=... | 89 |
java-test-10378 | java | What impacts the fitness value negatively ? | a better string | private void replace With Language Model ( Constant Value constant Value ) { assert ( constant Value . get Value ( ) instanceof String ) ; String old String = ( String ) constant Value . get Value ( ) ; String LM Optimizer slmo = new String LM Optimizer ( constant Value , objective ) ; String new String = slmo . optimi... | private void replaceWithLanguageModel ( ConstantValue constantValue ) { assert ( constantValue . getValue ( ) instanceof String ) ; String oldString = ( String ) constantValue . getValue ( ) ; StringLMOptimizer slmo = new StringLMOptimizer ( constantValue , objective ) ; String newString = slmo . optimize ( ) ; constan... | 101 |
java-test-10379 | java | How did a better string impact the fitness value ? | negatively | private void replace With Language Model ( Constant Value constant Value ) { assert ( constant Value . get Value ( ) instanceof String ) ; String old String = ( String ) constant Value . get Value ( ) ; String LM Optimizer slmo = new String LM Optimizer ( constant Value , objective ) ; String new String = slmo . optimi... | private void replaceWithLanguageModel ( ConstantValue constantValue ) { assert ( constantValue . getValue ( ) instanceof String ) ; String oldString = ( String ) constantValue . getValue ( ) ; StringLMOptimizer slmo = new StringLMOptimizer ( constantValue , objective ) ; String newString = slmo . optimize ( ) ; constan... | 101 |
java-test-10380 | java | What do the language model use ? | to improve the string constant | private void replace With Language Model ( Constant Value constant Value ) { assert ( constant Value . get Value ( ) instanceof String ) ; String old String = ( String ) constant Value . get Value ( ) ; String LM Optimizer slmo = new String LM Optimizer ( constant Value , objective ) ; String new String = slmo . optimi... | private void replaceWithLanguageModel ( ConstantValue constantValue ) { assert ( constantValue . getValue ( ) instanceof String ) ; String oldString = ( String ) constantValue . getValue ( ) ; StringLMOptimizer slmo = new StringLMOptimizer ( constantValue , objective ) ; String newString = slmo . optimize ( ) ; constan... | 101 |
java-test-10381 | java | What did a better string impact negatively ? | the fitness value | private void replace With Language Model ( Constant Value constant Value ) { assert ( constant Value . get Value ( ) instanceof String ) ; String old String = ( String ) constant Value . get Value ( ) ; String LM Optimizer slmo = new String LM Optimizer ( constant Value , objective ) ; String new String = slmo . optimi... | private void replaceWithLanguageModel ( ConstantValue constantValue ) { assert ( constantValue . getValue ( ) instanceof String ) ; String oldString = ( String ) constantValue . getValue ( ) ; StringLMOptimizer slmo = new StringLMOptimizer ( constantValue , objective ) ; String newString = slmo . optimize ( ) ; constan... | 101 |
java-test-10382 | java | When did the code call ? | when item has been moved | void on Item Moved ( ) { if ( m Swapped Item != null && m Stop Drag Pos != INVALID DRAG POS ) { if ( m Data Change Listener != null ) { m Data Change Listener . on Item Reorder ( m Swapped Item , m Start Drag Pos , m Stop Drag Pos ) ; } final Adapter Transaction revert Reorder Transaction = new Revert Reorder Transacti... | void onItemMoved ( ) { if ( mSwappedItem != null && mStopDragPos != INVALID_DRAG_POS ) { if ( mDataChangeListener != null ) { mDataChangeListener . onItemReorder ( mSwappedItem , mStartDragPos , mStopDragPos ) ; } final AdapterTransaction revertReorderTransaction = new RevertReorderTransaction < > ( this , mStartDragPo... | 114 |
java-test-10383 | java | What did the code use ? | to parse double - valued system properties that are version numbers | private static boolean is Version Below ( String prop , double max Ver ) { try { String v = System . get Property ( prop ) ; if ( v != null ) { double d = Double . parse Double ( v ) ; if ( d < max Ver ) { return BOOL ; } } } catch ( Exception ignore ) { } return BOOL ; } | private static boolean isVersionBelow ( String prop , double maxVer ) { try { String v = System . getProperty ( prop ) ; if ( v != null ) { double d = Double . parseDouble ( v ) ; if ( d < maxVer ) { return _BOOL ; } } } catch ( Exception ignore ) { } return _BOOL ; } | 71 |
java-test-10384 | java | What does the code parse resolving constant references in the specified constant pool at the current position in the specified byte buffer ? | the class member value | private static Object parse Class Value ( Byte Buffer buf , Constant Pool const Pool , Class < ? > container ) { int class Index = buf . get Short ( ) & NUM ; try { try { String sig = const Pool . get UTF 8 At ( class Index ) ; return parse Sig ( sig , container ) ; } catch ( Illegal Argument Exception ex ) { return co... | private static Object parseClassValue ( ByteBuffer buf , ConstantPool constPool , Class < ? > container ) { int classIndex = buf . getShort ( ) & _NUM ; try { try { String sig = constPool . getUTF8At ( classIndex ) ; return parseSig ( sig , container ) ; } catch ( IllegalArgumentException ex ) { return constPool . getC... | 145 |
java-test-10386 | java | When does an issue log ? | while parsing xml | protected static void log Parsing Issue ( final String prefix , final SAX Parse Exception e ) { final String Builder buffer = new String Builder ( ) ; buffer . append ( prefix ) ; buffer . append ( STRING ) ; buffer . append ( e . get Message ( ) ) ; buffer . append ( STRING ) ; buffer . append ( e . get Line Number ( ... | protected static void logParsingIssue ( final String prefix , final SAXParseException e ) { final StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( prefix ) ; buffer . append ( STRING ) ; buffer . append ( e . getMessage ( ) ) ; buffer . append ( STRING ) ; buffer . append ( e . getLineNumber ( ) ) ; if ... | 129 |
java-test-10390 | java | Where do inverse dct perform ? | on the n x n matrix | public void inv Dct Nx N ( double [ ] [ ] dcts , int [ ] [ ] pixels ) { int u = NUM ; int v = NUM ; double two over sqrtncolsnrows = NUM / Math . sqrt ( ( double ) this . N * this . M ) ; double [ ] [ ] tmp = null ; tmp = new double [ this . N ] [ this . N ] ; for ( u = NUM ; u < this . N ; u ++ ) { for ( v = NUM ; v <... | public void invDctNxN ( double [ ] [ ] dcts , int [ ] [ ] pixels ) { int u = _NUM ; int v = _NUM ; double two_over_sqrtncolsnrows = _NUM / Math . sqrt ( ( double ) this . N * this . M ) ; double [ ] [ ] tmp = null ; tmp = new double [ this . N ] [ this . N ] ; for ( u = _NUM ; u < this . N ; u ++ ) { for ( v = _NUM ; v... | 332 |
java-test-10391 | java | How did any additional warnings link ? | via the getnextwarning method | private void collect Warnings ( SQL Warning warning , List < Warning > messages ) { while ( warning != null ) { messages . add ( new Warning ( warning . get SQL State ( ) , warning . get Message ( ) ) ) ; warning = warning . get Next Warning ( ) ; } } | private void collectWarnings ( SQLWarning warning , List < Warning > messages ) { while ( warning != null ) { messages . add ( new Warning ( warning . getSQLState ( ) , warning . getMessage ( ) ) ) ; warning = warning . getNextWarning ( ) ; } } | 59 |
java-test-10392 | java | What does the code add to the list of messages ? | the warning message | private void collect Warnings ( SQL Warning warning , List < Warning > messages ) { while ( warning != null ) { messages . add ( new Warning ( warning . get SQL State ( ) , warning . get Message ( ) ) ) ; warning = warning . get Next Warning ( ) ; } } | private void collectWarnings ( SQLWarning warning , List < Warning > messages ) { while ( warning != null ) { messages . add ( new Warning ( warning . getSQLState ( ) , warning . getMessage ( ) ) ) ; warning = warning . getNextWarning ( ) ; } } | 59 |
java-test-10394 | java | What does the code remove from panel ? | marker icons | protected void remove Markers ( ) { for ( int i = marker Image . size ( ) ; i > NUM ; i -- ) { Loco Icon il = marker Image . get ( i - NUM ) ; if ( ( il != null ) && ( il . is Active ( ) ) ) { marker Image . remove ( i - NUM ) ; il . remove ( ) ; il . dispose ( ) ; set Dirty ( BOOL ) ; } } super . remove Markers ( ) ; ... | protected void removeMarkers ( ) { for ( int i = markerImage . size ( ) ; i > _NUM ; i -- ) { LocoIcon il = markerImage . get ( i - _NUM ) ; if ( ( il != null ) && ( il . isActive ( ) ) ) { markerImage . remove ( i - _NUM ) ; il . remove ( ) ; il . dispose ( ) ; setDirty ( _BOOL ) ; } } super . removeMarkers ( ) ; repa... | 101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.