rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
RawDataTable currentResultsTable=new RawDataTable(t,dimensions,buildIDStreamPatterns,current); RawDataTable baselineResultsTable=new RawDataTable(t,dimensions,baselinePrefix,baseline); | private void printDetails() { String outFile = null; PrintStream ps = null; for (int s = 0; s < scenarios.length; s++) { Scenario t = scenarios[s]; // don't produce result if none exists for current build if (Utils.getBuildNameIndex(t.getTimeSeriesLabels(), current) == -1) { continue; } Dim[] dimensions = filteredDimensions(t.getDimensions()); RawDataTable currentResultsTable=new RawDataTable(t,dimensions,buildIDStreamPatterns,current); //create table for baseline data RawDataTable baselineResultsTable=new RawDataTable(t,dimensions,baselinePrefix,baseline); //store cv for aggregate data Hashtable data=(Hashtable)variabilityData.get(t.getScenarioName()); if (data==null){ data=new Hashtable(); variabilityData.put(t.getScenarioName(),data); } data.put("cConfig-"+configDescriptor.name,currentResultsTable.getCV()); data.put("bConfig-"+configDescriptor.name,baselineResultsTable.getCV()); String scenarioFileName = t.getScenarioName().replace('#', '.').replace(':', '_').replace('\\', '_'); outFile = configDescriptor.outputDir + "/" + scenarioFileName + "_raw.html"; if (outFile != null) { try { new File(outFile).getParentFile().mkdirs(); ps = new PrintStream(new BufferedOutputStream(new FileOutputStream(outFile))); } catch (FileNotFoundException e) { System.err.println("can't create output file" + outFile); //$NON-NLS-1$ } } if (ps == null) ps = System.out; ps.println(Utils.HTML_OPEN); ps.println(Utils.HTML_DEFAULT_CSS); ps.println("<title>" + t.getScenarioName() + "(" + configDescriptor.description + ")" + " - Details</title></head>"); //$NON-NLS-1$ ps.println("<h4>Scenario: " + t.getScenarioName() + " (" + configDescriptor.description + ")</h4>"); //$NON-NLS-1$ ps.println("<a href=\""+scenarioFileName+".html\">VIEW GRAPH</a><br><br>"); //$NON-NLS-1$ ps.println("<table><td><b>Current Stream Test Runs</b></td><td><b>Baseline Test Runs</b></td></tr>\n"); ps.println("<tr valign=\"top\">" + "<td>"+currentResultsTable.toHtmlString()+"</td>" +"<td>"+baselineResultsTable.toHtmlString()+"</td></tr>"); ps.println("</table>"); ps.close(); } } | 14684 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14684/81d0d466ef1d5b18525150074ffd61699e6ec679/ScenarioResults.java/clean/bundles/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ScenarioResults.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1172,
3790,
1435,
288,
202,
202,
780,
21651,
273,
446,
31,
202,
202,
5108,
1228,
4250,
273,
446,
31,
202,
202,
1884,
261,
474,
272,
273,
374,
31,
272,
411,
22456,
18,
2469,
31,
272,
27245,
288,
1082,
202,
21390,
268,
273,
22456,
63,
87,
15533,
1082,
202,
759,
2727,
1404,
11402,
563,
309,
6555,
1704,
364,
783,
1361,
1082,
202,
430,
261,
1989,
18,
588,
3116,
461,
1016,
12,
88,
18,
588,
28486,
5888,
9334,
783,
13,
422,
300,
21,
13,
288,
9506,
202,
17143,
31,
1082,
202,
97,
1082,
202,
5225,
8526,
5769,
273,
5105,
10796,
12,
88,
18,
588,
10796,
10663,
1082,
202,
4809,
21237,
783,
3447,
1388,
33,
2704,
6576,
21237,
12,
88,
16,
14797,
16,
3510,
734,
1228,
11268,
16,
2972,
1769,
25083,
202,
759,
2640,
1014,
364,
14243,
501,
1082,
202,
4809,
21237,
14243,
3447,
1388,
33,
2704,
6576,
21237,
12,
88,
16,
14797,
16,
27818,
2244,
16,
27818,
1769,
25083,
202,
759,
2233,
8951,
364,
7047,
501,
1082,
202,
5582,
14544,
501,
28657,
5582,
14544,
13,
4093,
2967,
751,
18,
588,
12,
88,
18,
588,
21390,
461,
10663,
1082,
202,
430,
261,
892,
631,
2011,
15329,
9506,
202,
892,
33,
2704,
18559,
5621,
9506,
202,
4093,
2967,
751,
18,
458,
12,
88,
18,
588,
21390,
461,
9334,
892,
1769,
1082,
202,
97,
1082,
202,
892,
18,
458,
2932,
71,
809,
10951,
15,
1425,
3187,
18,
529,
16,
2972,
3447,
1388,
18,
588,
22007,
10663,
1082,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1172,
3790,
1435,
288,
202,
202,
780,
21651,
273,
446,
31,
202,
202,
5108,
1228,
4250,
273,
446,
31,
202,
202,
1884,
261,
474,
272,
273,
374,
31,
272,
411,
22456,
18,
2469,
31,
272,
27245,
288,
1082,
202,
21390,
268,
273,
22456,
63,
87,
15533,
1082,
202,
759,
2727,
1404,
11402,
563,
309,
6555,
1704,
364,
783,
1361,
1082,
202,
430,
261,
1989,
18,
588,
3116,
461,
1016,
12,
88,
18,
588,
28486,
5888,
9334,
783,
13,
422,
300,
21,
13,
288,
9506,
202,
17143,
31,
1082,
202,
97,
1082,
202,
5225,
8526,
5769,
273,
5105,
10796,
12,
88,
18,
588,
10796,
10663,
1082,
202,
4809,
21237,
783,
3447,
1388,
33,
2704,
6576,
21237,
2
] | |
debug("policy.file."+i+"="+s); | if (DEBUG) debug("policy.file."+i+"="+s); | public void refresh() { cs2pc.clear(); List policyFiles = new LinkedList(); try { policyFiles.add(new File(DEFAULT_POLICY).toURL()); policyFiles.addAll((List) AccessController.doPrivileged( new PrivilegedExceptionAction() { public Object run() throws Exception { LinkedList l = new LinkedList(); for (int i = 1; ; i++) { String s = Security.getProperty("policy.file."+i); debug("policy.file."+i+"="+s); if (s == null) break; l.add(new URL(s)); } String s = System.getProperty("java.security.policy"); debug("java.security.policy="+s); if (s != null) l.add(new URL(s)); return l; } })); } catch (PrivilegedActionException pae) { debug(pae); } catch (MalformedURLException mue) { debug(mue); } for (Iterator it = policyFiles.iterator(); it.hasNext(); ) { try { URL url = (URL) it.next(); parse(url); } catch (IOException ioe) { debug(ioe); } } } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/38f4d3071b18384f278653ac94d04752f3ceb8c0/PolicyFile.java/clean/libraries/javalib/gnu/java/security/PolicyFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4460,
1435,
225,
288,
565,
2873,
22,
2436,
18,
8507,
5621,
565,
987,
3329,
2697,
273,
394,
10688,
5621,
565,
775,
1377,
288,
3639,
3329,
2697,
18,
1289,
12,
2704,
1387,
12,
5280,
67,
26366,
2934,
869,
1785,
10663,
3639,
3329,
2697,
18,
1289,
1595,
12443,
682,
13,
25556,
18,
2896,
18845,
12,
1850,
394,
17747,
503,
1803,
1435,
1850,
288,
5411,
1071,
1033,
1086,
1435,
1216,
1185,
5411,
288,
2868,
10688,
328,
273,
394,
10688,
5621,
2868,
364,
261,
474,
277,
273,
404,
31,
274,
277,
27245,
7734,
288,
5375,
514,
272,
273,
6036,
18,
588,
1396,
2932,
5086,
18,
768,
1199,
15,
77,
1769,
5375,
309,
261,
9394,
13,
1198,
2932,
5086,
18,
768,
1199,
15,
77,
9078,
1546,
15,
87,
1769,
5375,
309,
261,
87,
422,
446,
13,
10792,
898,
31,
5375,
328,
18,
1289,
12,
2704,
1976,
12,
87,
10019,
7734,
289,
2868,
514,
272,
273,
2332,
18,
588,
1396,
2932,
6290,
18,
7462,
18,
5086,
8863,
2868,
1198,
2932,
6290,
18,
7462,
18,
5086,
1546,
15,
87,
1769,
2868,
309,
261,
87,
480,
446,
13,
7734,
328,
18,
1289,
12,
2704,
1976,
12,
87,
10019,
2868,
327,
328,
31,
5411,
289,
1850,
289,
10019,
1377,
289,
565,
1044,
261,
18845,
1803,
503,
6790,
73,
13,
1377,
288,
3639,
1198,
12,
8774,
73,
1769,
1377,
289,
565,
1044,
261,
18695,
20160,
312,
344,
13,
1377,
288,
3639,
1198,
12,
81,
344,
1769,
1377,
289,
565,
364,
261,
3198,
518,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4460,
1435,
225,
288,
565,
2873,
22,
2436,
18,
8507,
5621,
565,
987,
3329,
2697,
273,
394,
10688,
5621,
565,
775,
1377,
288,
3639,
3329,
2697,
18,
1289,
12,
2704,
1387,
12,
5280,
67,
26366,
2934,
869,
1785,
10663,
3639,
3329,
2697,
18,
1289,
1595,
12443,
682,
13,
25556,
18,
2896,
18845,
12,
1850,
394,
17747,
503,
1803,
1435,
1850,
288,
5411,
1071,
1033,
1086,
1435,
1216,
1185,
5411,
288,
2868,
10688,
328,
273,
394,
10688,
5621,
2868,
364,
261,
474,
277,
273,
404,
31,
274,
277,
27245,
7734,
288,
5375,
514,
272,
273,
6036,
18,
588,
1396,
2932,
5086,
18,
768,
1199,
15,
77,
1769,
5375,
309,
261,
9394,
13,
1198,
2932,
5086,
18,
768,
2
] |
astFactory.addASTChild(currentAST, returnAST); | if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } | public final void unaryExpressionNotPlusMinus() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST unaryExpressionNotPlusMinus_AST = null; Token lpb = null; AST lpb_AST = null; Token lp = null; AST lp_AST = null; switch ( LA(1)) { case BNOT: { AST tmp318_AST = null; tmp318_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp318_AST); match(BNOT); nls(); unaryExpression(); astFactory.addASTChild(currentAST, returnAST); unaryExpressionNotPlusMinus_AST = (AST)currentAST.root; break; } case LNOT: { AST tmp319_AST = null; tmp319_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp319_AST); match(LNOT); nls(); unaryExpression(); astFactory.addASTChild(currentAST, returnAST); unaryExpressionNotPlusMinus_AST = (AST)currentAST.root; break; } case IDENT: case LBRACK: case LPAREN: case LITERAL_super: case LCURLY: case LITERAL_this: case STRING_LITERAL: case DOLLAR: case STRING_CTOR_START: case LITERAL_new: case LITERAL_true: case LITERAL_false: case LITERAL_null: case NUM_INT: case NUM_FLOAT: case NUM_LONG: case NUM_DOUBLE: case NUM_BIG_INT: case NUM_BIG_DECIMAL: { { boolean synPredMatched429 = false; if (((LA(1)==LPAREN) && ((LA(2) >= LITERAL_void && LA(2) <= LITERAL_any)) && (LA(3)==LBRACK||LA(3)==RPAREN))) { int _m429 = mark(); synPredMatched429 = true; inputState.guessing++; try { { match(LPAREN); builtInTypeSpec(true); match(RPAREN); unaryExpression(); } } catch (RecognitionException pe) { synPredMatched429 = false; } rewind(_m429); inputState.guessing--; } if ( synPredMatched429 ) { lpb = LT(1); lpb_AST = astFactory.create(lpb); astFactory.makeASTRoot(currentAST, lpb_AST); match(LPAREN); if ( inputState.guessing==0 ) { lpb_AST.setType(TYPECAST); } builtInTypeSpec(true); astFactory.addASTChild(currentAST, returnAST); match(RPAREN); unaryExpression(); astFactory.addASTChild(currentAST, returnAST); } else { boolean synPredMatched431 = false; if (((LA(1)==LPAREN) && (LA(2)==IDENT) && (_tokenSet_113.member(LA(3))))) { int _m431 = mark(); synPredMatched431 = true; inputState.guessing++; try { { match(LPAREN); classTypeSpec(true); match(RPAREN); unaryExpressionNotPlusMinus(); } } catch (RecognitionException pe) { synPredMatched431 = false; } rewind(_m431); inputState.guessing--; } if ( synPredMatched431 ) { lp = LT(1); lp_AST = astFactory.create(lp); astFactory.makeASTRoot(currentAST, lp_AST); match(LPAREN); if ( inputState.guessing==0 ) { lp_AST.setType(TYPECAST); } classTypeSpec(true); astFactory.addASTChild(currentAST, returnAST); match(RPAREN); unaryExpressionNotPlusMinus(); astFactory.addASTChild(currentAST, returnAST); } else if ((_tokenSet_114.member(LA(1))) && (_tokenSet_16.member(LA(2))) && (_tokenSet_5.member(LA(3)))) { postfixExpression(); astFactory.addASTChild(currentAST, returnAST); } else { throw new NoViableAltException(LT(1), getFilename()); } } } unaryExpressionNotPlusMinus_AST = (AST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = unaryExpressionNotPlusMinus_AST; } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/27957314a380e54096257a6753ad9d316ee78892/GroovyRecognizer.java/buggy/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
19017,
2300,
1248,
13207,
18434,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
19017,
2300,
1248,
13207,
18434,
67,
9053,
273,
446,
31,
202,
202,
1345,
225,
328,
5733,
273,
446,
31,
202,
202,
9053,
328,
5733,
67,
9053,
273,
446,
31,
202,
202,
1345,
225,
12423,
273,
446,
31,
202,
202,
9053,
12423,
67,
9053,
273,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
605,
4400,
30,
202,
202,
95,
1082,
202,
9053,
1853,
23,
2643,
67,
9053,
273,
446,
31,
1082,
202,
5645,
23,
2643,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
689,
1733,
18,
6540,
9053,
2375,
12,
2972,
9053,
16,
1853,
23,
2643,
67,
9053,
1769,
1082,
202,
1916,
12,
38,
4400,
1769,
1082,
202,
82,
3251,
5621,
1082,
202,
318,
814,
2300,
5621,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
318,
814,
2300,
1248,
13207,
18434,
67,
9053,
273,
261,
9053,
13,
2972,
9053,
18,
3085,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
511,
4400,
30,
202,
202,
95,
1082,
202,
9053,
1853,
23,
3657,
67,
9053,
273,
446,
31,
1082,
202,
5645,
23,
3657,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
19017,
2300,
1248,
13207,
18434,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
19017,
2300,
1248,
13207,
18434,
67,
9053,
273,
446,
31,
202,
202,
1345,
225,
328,
5733,
273,
446,
31,
202,
202,
9053,
328,
5733,
67,
9053,
273,
446,
31,
202,
202,
1345,
225,
12423,
273,
446,
31,
202,
202,
9053,
12423,
67,
9053,
273,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
605,
4400,
30,
202,
202,
95,
1082,
202,
9053,
1853,
23,
2643,
67,
9053,
273,
446,
31,
1082,
202,
5645,
23,
2643,
2
] |
public org.quickfix.field.MessageEncoding getMessageEncoding() throws FieldNotFound { org.quickfix.field.MessageEncoding value = new org.quickfix.field.MessageEncoding(); | public quickfix.field.MessageEncoding getMessageEncoding() throws FieldNotFound { quickfix.field.MessageEncoding value = new quickfix.field.MessageEncoding(); | public org.quickfix.field.MessageEncoding getMessageEncoding() throws FieldNotFound { org.quickfix.field.MessageEncoding value = new org.quickfix.field.MessageEncoding(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Message.java/buggy/src/java/src/quickfix/fix43/Message.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1079,
4705,
2381,
4705,
1435,
1216,
2286,
2768,
1377,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1079,
4705,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1079,
4705,
5621,
3639,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1079,
4705,
2381,
4705,
1435,
1216,
2286,
2768,
1377,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1079,
4705,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1079,
4705,
5621,
3639,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static String getExportEncoding( HttpServletRequest request ) { String encoding = getParameter( request, PARAM_EXPORT_ENCODING ); // use UTF-8 as the default encoding if( encoding == null ) encoding = UTF_8_ENCODE; return encoding; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/2e1d15b1bc3e3f507d4fd9481d37b2edc1ac4754/ParameterAccessor.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
29566,
4705,
12,
9984,
590,
262,
202,
95,
202,
202,
780,
2688,
273,
225,
5575,
12,
590,
16,
4655,
67,
31275,
67,
14672,
11272,
9506,
202,
759,
999,
6380,
17,
28,
487,
326,
805,
2688,
202,
202,
430,
12,
2688,
422,
446,
262,
1082,
202,
5999,
273,
6380,
67,
28,
67,
1157,
5572,
31,
9506,
202,
2463,
2688,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
29566,
4705,
12,
9984,
590,
262,
202,
95,
202,
202,
780,
2688,
273,
225,
5575,
12,
590,
16,
4655,
67,
31275,
67,
14672,
11272,
9506,
202,
759,
999,
6380,
17,
28,
487,
326,
805,
2688,
202,
202,
430,
12,
2688,
422,
446,
262,
1082,
202,
5999,
273,
6380,
67,
28,
67,
1157,
5572,
31,
9506,
202,
2463,
2688,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | ||
buf.append(c); | buf.append(c); } | public void unread(char c) { offset--; if (c == '\n') { line--; column = ((Integer)lineWidths.get(line)).intValue(); nextCharIsOnANewLine = true; } else { column--; } buf.append(c); } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/67a441c8ea70c9532cdedb2001a6741b63e793ae/LexerSource.java/buggy/src/org/jruby/lexer/yacc/LexerSource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19541,
12,
3001,
276,
13,
288,
377,
202,
3348,
413,
31,
377,
202,
377,
202,
430,
261,
71,
422,
2337,
82,
6134,
288,
377,
202,
202,
1369,
413,
31,
377,
202,
202,
2827,
273,
14015,
4522,
13,
1369,
22407,
18,
588,
12,
1369,
13,
2934,
474,
620,
5621,
377,
202,
202,
4285,
2156,
2520,
1398,
1258,
359,
1670,
273,
638,
31,
377,
202,
97,
469,
288,
377,
202,
202,
2827,
413,
31,
377,
202,
97,
377,
202,
4385,
18,
6923,
12,
71,
1769,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19541,
12,
3001,
276,
13,
288,
377,
202,
3348,
413,
31,
377,
202,
377,
202,
430,
261,
71,
422,
2337,
82,
6134,
288,
377,
202,
202,
1369,
413,
31,
377,
202,
202,
2827,
273,
14015,
4522,
13,
1369,
22407,
18,
588,
12,
1369,
13,
2934,
474,
620,
5621,
377,
202,
202,
4285,
2156,
2520,
1398,
1258,
359,
1670,
273,
638,
31,
377,
202,
97,
469,
288,
377,
202,
202,
2827,
413,
31,
377,
202,
97,
377,
202,
4385,
18,
6923,
12,
71,
1769,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private static boolean isActivityEnabled(String activityId) { | private static boolean isActivityEnabled(String activityId, IWorkbench workbench) { | private static boolean isActivityEnabled(String activityId) { try { IWorkbenchActivitySupport workbenchActivitySupport = PlatformUI .getWorkbench().getActivitySupport(); IActivityManager activityManager = workbenchActivitySupport .getActivityManager(); return activityManager.getActivity(activityId).isEnabled(); } catch (Exception e) { // workbench not yet activated; nothing enabled yet } return false; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f53857f9bad8b60a045cbbc73c5046d872f485c9/ActivityPropertyTester.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/ActivityPropertyTester.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
353,
6193,
1526,
12,
780,
5728,
548,
13,
288,
202,
202,
698,
288,
1082,
202,
45,
2421,
22144,
6193,
6289,
1440,
22144,
6193,
6289,
273,
11810,
5370,
6862,
202,
18,
588,
2421,
22144,
7675,
588,
6193,
6289,
5621,
1082,
202,
45,
6193,
1318,
5728,
1318,
273,
1440,
22144,
6193,
6289,
6862,
202,
18,
588,
6193,
1318,
5621,
1082,
202,
2463,
5728,
1318,
18,
588,
6193,
12,
9653,
548,
2934,
291,
1526,
5621,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
759,
1440,
22144,
486,
4671,
14892,
31,
5083,
3696,
4671,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
353,
6193,
1526,
12,
780,
5728,
548,
13,
288,
202,
202,
698,
288,
1082,
202,
45,
2421,
22144,
6193,
6289,
1440,
22144,
6193,
6289,
273,
11810,
5370,
6862,
202,
18,
588,
2421,
22144,
7675,
588,
6193,
6289,
5621,
1082,
202,
45,
6193,
1318,
5728,
1318,
273,
1440,
22144,
6193,
6289,
6862,
202,
18,
588,
6193,
1318,
5621,
1082,
202,
2463,
5728,
1318,
18,
588,
6193,
12,
9653,
548,
2934,
291,
1526,
5621,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
759,
1440,
22144,
486,
4671,
14892,
31,
5083,
3696,
4671,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
HtmlTagFilter.TagPair tagPair = new HtmlTagFilter.TagPair(startTag1, endTag1, true); | public void testCaseInsensitive() throws IOException { HtmlTagFilter.TagPair tagPair = new HtmlTagFilter.TagPair(startTag1, endTag1, true); String content = "This <Start> is test <END>content"; String expectedContent = "This content"; HtmlTagFilter reader = new HtmlTagFilter(new StringReader(content), tagPair); assertReaderMatchesString(expectedContent, reader); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/0418a89b51dc6662e200d5915cd31ca83affc74f/TestHtmlTagFilter.java/buggy/test/src/org/lockss/filter/TestHtmlTagFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
2449,
21931,
1435,
1216,
1860,
288,
565,
27153,
1586,
18,
1805,
4154,
1047,
4154,
273,
1377,
394,
27153,
1586,
18,
1805,
4154,
12,
1937,
1805,
21,
16,
29765,
21,
16,
638,
1769,
565,
514,
913,
273,
315,
2503,
411,
1685,
34,
353,
1842,
411,
4415,
34,
1745,
14432,
565,
514,
2665,
1350,
273,
315,
2503,
913,
14432,
565,
27153,
1586,
2949,
273,
1377,
394,
27153,
1586,
12,
2704,
26227,
12,
1745,
3631,
1047,
4154,
1769,
565,
1815,
2514,
6869,
780,
12,
3825,
1350,
16,
2949,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
2449,
21931,
1435,
1216,
1860,
288,
565,
27153,
1586,
18,
1805,
4154,
1047,
4154,
273,
1377,
394,
27153,
1586,
18,
1805,
4154,
12,
1937,
1805,
21,
16,
29765,
21,
16,
638,
1769,
565,
514,
913,
273,
315,
2503,
411,
1685,
34,
353,
1842,
411,
4415,
34,
1745,
14432,
565,
514,
2665,
1350,
273,
315,
2503,
913,
14432,
565,
27153,
1586,
2949,
273,
1377,
394,
27153,
1586,
12,
2704,
26227,
12,
1745,
3631,
1047,
4154,
1769,
565,
1815,
2514,
6869,
780,
12,
3825,
1350,
16,
2949,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
if (value.trim().equals(ConversionConstants.INBOUND_NULL)) | if (value.trim().equals(ProtocolConstants.INBOUND_NULL)) | public Object convertInbound(Class paramType, InboundVariable iv, InboundContext inctx) throws MarshallException { String value = iv.getValue(); // If the text is null then the whole bean is null if (value.trim().equals(ConversionConstants.INBOUND_NULL)) { return null; } if (!value.startsWith(ConversionConstants.INBOUND_MAP_START)) { throw new IllegalArgumentException(Messages.getString("MapConverter.FormatError", ConversionConstants.INBOUND_MAP_START)); } if (!value.endsWith(ConversionConstants.INBOUND_MAP_END)) { throw new IllegalArgumentException(Messages.getString("MapConverter.FormatError", ConversionConstants.INBOUND_MAP_END)); } value = value.substring(1, value.length() - 1); try { // Maybe we ought to check that the paramType isn't expecting a more // distinct type of Map and attempt to create that? Map map; // If paramType is concrete then just use whatever we've got. if (!paramType.isInterface() && !Modifier.isAbstract(paramType.getModifiers())) { // If there is a problem creating the type then we have no way // of completing this - they asked for a specific type and we // can't create that type. I don't know of a way of finding // subclasses that might be instaniable so we accept failure. map = (Map) paramType.newInstance(); } else { map = new HashMap(); } // Get the extra type info TypeHintContext thc = inctx.getCurrentTypeHintContext(); TypeHintContext keyThc = thc.createChildContext(0); Class keyType = keyThc.getExtraTypeInfo(); TypeHintContext valThc = thc.createChildContext(1); Class valType = valThc.getExtraTypeInfo(); // We should put the new object into the working map in case it // is referenced later nested down in the conversion process. inctx.addConverted(iv, paramType, map); InboundContext incx = iv.getLookup(); // Loop through the property declarations StringTokenizer st = new StringTokenizer(value, ","); int size = st.countTokens(); for (int i = 0; i < size; i++) { String token = st.nextToken(); if (token.trim().length() == 0) { continue; } int colonpos = token.indexOf(ConversionConstants.INBOUND_MAP_ENTRY); if (colonpos == -1) { throw new MarshallException(paramType, Messages.getString("MapConverter.MissingSeparator", ConversionConstants.INBOUND_MAP_ENTRY, token)); } // Convert the value part of the token by splitting it into the // type and value (as passed in by Javascript) String valStr = token.substring(colonpos + 1).trim(); String[] splitIv = LocalUtil.splitInbound(valStr); String splitIvValue = splitIv[LocalUtil.INBOUND_INDEX_VALUE]; String splitIvType = splitIv[LocalUtil.INBOUND_INDEX_TYPE]; InboundVariable valIv = new InboundVariable(incx, null, splitIvType, splitIvValue); Object val = config.convertInbound(valType, valIv, inctx, valThc); // Keys (unlike values) do not have type info passed with them // Could we have recurrsive key? - I don't think so because keys // must be strings in Javascript String keyStr = token.substring(0, colonpos).trim(); //String[] keySplit = LocalUtil.splitInbound(keyStr); //InboundVariable keyIv = new InboundVariable(incx, splitIv[LocalUtil.INBOUND_INDEX_TYPE], splitIv[LocalUtil.INBOUND_INDEX_VALUE]); InboundVariable keyIv = new InboundVariable(incx, null, ConversionConstants.TYPE_STRING, keyStr); Object key = config.convertInbound(keyType, keyIv, inctx, keyThc); map.put(key, val); } return map; } catch (MarshallException ex) { throw ex; } catch (Exception ex) { throw new MarshallException(paramType, ex); } } | 45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/da27789f811b5d8803b95b7a6db7ddc6f02e054b/MapConverter.java/buggy/java/org/directwebremoting/convert/MapConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1765,
20571,
12,
797,
20781,
16,
657,
3653,
3092,
4674,
16,
657,
3653,
1042,
316,
5900,
13,
1216,
26026,
503,
565,
288,
3639,
514,
460,
273,
4674,
18,
24805,
5621,
3639,
368,
971,
326,
977,
353,
446,
1508,
326,
7339,
3931,
353,
446,
3639,
309,
261,
1132,
18,
5290,
7675,
14963,
12,
5752,
2918,
18,
706,
19318,
67,
8560,
3719,
3639,
288,
5411,
327,
446,
31,
3639,
289,
3639,
309,
16051,
1132,
18,
17514,
1190,
12,
6814,
2918,
18,
706,
19318,
67,
8352,
67,
7570,
3719,
3639,
288,
5411,
604,
394,
2754,
12,
5058,
18,
588,
780,
2932,
863,
5072,
18,
29874,
3113,
16401,
2918,
18,
706,
19318,
67,
8352,
67,
7570,
10019,
3639,
289,
3639,
309,
16051,
1132,
18,
5839,
1190,
12,
6814,
2918,
18,
706,
19318,
67,
8352,
67,
4415,
3719,
3639,
288,
5411,
604,
394,
2754,
12,
5058,
18,
588,
780,
2932,
863,
5072,
18,
29874,
3113,
16401,
2918,
18,
706,
19318,
67,
8352,
67,
4415,
10019,
3639,
289,
3639,
460,
273,
460,
18,
28023,
12,
21,
16,
460,
18,
2469,
1435,
300,
404,
1769,
3639,
775,
3639,
288,
5411,
368,
14024,
732,
320,
9540,
358,
866,
716,
326,
20781,
5177,
1404,
17012,
279,
1898,
5411,
368,
10217,
618,
434,
1635,
471,
4395,
358,
752,
716,
35,
5411,
1635,
852,
31,
5411,
368,
971,
20781,
353,
12220,
1508,
2537,
999,
15098,
732,
8081,
2363,
18,
5411,
309,
16051,
891,
559,
18,
291,
1358,
1435,
597,
401,
9829,
18,
291,
7469,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1765,
20571,
12,
797,
20781,
16,
657,
3653,
3092,
4674,
16,
657,
3653,
1042,
316,
5900,
13,
1216,
26026,
503,
565,
288,
3639,
514,
460,
273,
4674,
18,
24805,
5621,
3639,
368,
971,
326,
977,
353,
446,
1508,
326,
7339,
3931,
353,
446,
3639,
309,
261,
1132,
18,
5290,
7675,
14963,
12,
5752,
2918,
18,
706,
19318,
67,
8560,
3719,
3639,
288,
5411,
327,
446,
31,
3639,
289,
3639,
309,
16051,
1132,
18,
17514,
1190,
12,
6814,
2918,
18,
706,
19318,
67,
8352,
67,
7570,
3719,
3639,
288,
5411,
604,
394,
2754,
12,
5058,
18,
588,
780,
2932,
863,
5072,
18,
29874,
3113,
16401,
2918,
18,
706,
19318,
67,
8352,
67,
7570,
10019,
3639,
289,
3639,
2
] |
makeArgs.add("clean"); | protected void invokeMake(int buildType, IPath buildDir, IManagedBuildInfo info, IManagedBuilderMakefileGenerator generator, IProgressMonitor monitor) { // Get the project and make sure there's a monitor to cancel the build IProject currentProject = getProject(); if (monitor == null) { monitor = new NullProgressMonitor(); } try { // Figure out the working directory for the build and make sure there is a makefile there IPath workingDirectory = getWorkingDirectory().append(buildDir); IWorkspace workspace = currentProject.getWorkspace(); if (workspace == null) { return; } IWorkspaceRoot root = workspace.getRoot(); if (root == null) { return; } IPath makefile = workingDirectory.append(generator.getMakefileName()); if (root.getFileForLocation(makefile) == null) { return; } // Flag to the user that make is about to be called String makeCmd = info.getBuildCommand(); //try to resolve the build macros in the builder command try{ String resolved = ManagedBuildManager.getBuildMacroProvider().resolveValueToMakefileFormat( makeCmd, "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_CONFIGURATION, info.getDefaultConfiguration()); if((resolved = resolved.trim()).length() > 0) makeCmd = resolved; } catch (BuildMacroException e){ } IPath makeCommand = new Path(makeCmd); if (makeCommand != null) { String[] msgs = new String[2]; msgs[0] = makeCommand.toString(); msgs[1] = currentProject.getName(); monitor.subTask(ManagedMakeMessages.getFormattedString(MAKE, msgs)); // Get a build console for the project StringBuffer buf = new StringBuffer(); IConsole console = CCorePlugin.getDefault().getConsole(); console.start(currentProject); ConsoleOutputStream consoleOutStream = console.getOutputStream(); String[] consoleHeader = new String[3]; switch (buildType) { case FULL_BUILD: case INCREMENTAL_BUILD: consoleHeader[0] = ManagedMakeMessages.getResourceString(TYPE_INC); break; case CLEAN_BUILD: consoleHeader[0] = ManagedMakeMessages.getResourceString(TYPE_CLEAN); break; } consoleHeader[1] = info.getConfigurationName(); consoleHeader[2] = currentProject.getName(); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(ManagedMakeMessages.getFormattedString(CONSOLE_HEADER, consoleHeader)); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ IConfiguration cfg = info.getDefaultConfiguration(); if(!cfg.isSupported()){ buf.append(ManagedMakeMessages.getFormattedString(WARNING_UNSUPPORTED_CONFIGURATION,new String[] {cfg.getName(),cfg.getToolChain().getName()})); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$ //$NON-NLS-2$ } consoleOutStream.write(buf.toString().getBytes()); consoleOutStream.flush(); // Remove all markers for this project removeAllMarkers(currentProject); // Get a launcher for the make command String errMsg = null; CommandLauncher launcher = new CommandLauncher(); launcher.showCommand(true); // Set the environmennt IBuildEnvironmentVariable variables[] = ManagedBuildManager.getEnvironmentVariableProvider().getVariables(cfg,true,true); String[] env = null; ArrayList envList = new ArrayList(); if (variables != null) { for(int i = 0; i < variables.length; i++){ envList.add(variables[i].getName() + "=" + variables[i].getValue()); //$NON-NLS-1$ } env = (String[]) envList.toArray(new String[envList.size()]); } // Hook up an error parser manager String[] errorParsers = info.getDefaultConfiguration().getErrorParserList(); ErrorParserManager epm = new ErrorParserManager(getProject(), workingDirectory, this, errorParsers); epm.setOutputStream(consoleOutStream); // This variable is necessary to ensure that the EPM stream stay open // until we explicitly close it. See bug#123302. OutputStream epmOutputStream = epm.getOutputStream(); // Get the arguments to be passed to make from build model ArrayList makeArgs = new ArrayList(); String arg = info.getBuildArguments(); if (arg.length() > 0) { String[] args = arg.split("\\s"); //$NON-NLS-1$ for (int i = 0; i < args.length; ++i) { makeArgs.add(args[i]); } } String[] makeTargets; String prebuildStep = info.getPrebuildStep(); //try to resolve the build macros in the prebuildStep try{ prebuildStep = ManagedBuildManager.getBuildMacroProvider().resolveValueToMakefileFormat( prebuildStep, "", //$NON-NLS-1$ " ", //$NON-NLS-1$ IBuildMacroProvider.CONTEXT_CONFIGURATION, cfg); } catch (BuildMacroException e){ } boolean prebuildStepPresent = (prebuildStep.length() > 0); Process proc = null; boolean isuptodate = false; if (prebuildStepPresent) { ArrayList premakeArgs = (ArrayList) makeArgs.clone(); String[] premakeTargets; switch (buildType) { case INCREMENTAL_BUILD: { // For an incremental build with a prebuild step: // Check the status of the main build with "make -q main-build" // If up to date: // then: don't invoke the prebuild step, which should be run only if // something needs to be built in the main build // else: invoke the prebuild step and the main build step premakeArgs.add("-q"); //$NON-NLS-1$ premakeArgs.add("main-build"); //$NON-NLS-1$ premakeTargets = (String[]) premakeArgs.toArray(new String[premakeArgs.size()]); proc = launcher.execute(makeCommand, premakeTargets, env, workingDirectory); if (proc != null) { try { // Close the input of the process since we will never write to it proc.getOutputStream().close(); } catch (IOException e) { } if (launcher.waitAndRead(epm.getOutputStream(), epm.getOutputStream(), new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN)) != CommandLauncher.OK) { errMsg = launcher.getErrorMessage(); } } else { errMsg = launcher.getErrorMessage(); } if ((errMsg != null && errMsg.length() > 0) || proc == null) { // Can't tell if the build is needed, so assume it is, and let any errors be triggered // when the "real" build is invoked below makeArgs.add("pre-build"); //$NON-NLS-1$ makeArgs.add("main-build"); //$NON-NLS-1$ } else { // The "make -q" command launch was successful if (proc.exitValue() == 0) { // If the status value returned from "make -q" is 0, then the build state is up-to-date isuptodate = true; // Report that the build was up to date, and thus nothing needs to be built String uptodateMsg = ManagedMakeMessages .getFormattedString(NOTHING_BUILT, currentProject.getName()); buf = new StringBuffer(); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$//$NON-NLS-2$ buf.append(uptodateMsg); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$//$NON-NLS-2$ // Write message on the console consoleOutStream.write(buf.toString().getBytes()); consoleOutStream.flush(); epmOutputStream.close(); consoleOutStream.close(); } else { // The status value was other than 0, so press on with the build process makeArgs.add("pre-build"); //$NON-NLS-1$ makeArgs.add("main-build"); //$NON-NLS-1$ } } break; } case FULL_BUILD: { makeArgs.add("clean"); //$NON-NLS-1$ makeArgs.add("pre-build"); //$NON-NLS-1$ makeArgs.add("main-build"); //$NON-NLS-1$ break; } case CLEAN_BUILD: { makeArgs.add("clean"); //$NON-NLS-1$ break; } } } else { // No prebuild step // makeArgs.addAll(Arrays.asList(getMakeTargets(buildType))); } makeTargets = (String[]) makeArgs.toArray(new String[makeArgs.size()]); // Launch make - main invocation if (!isuptodate) { proc = launcher.execute(makeCommand, makeTargets, env, workingDirectory); if (proc != null) { try { // Close the input of the process since we will never write to it proc.getOutputStream().close(); } catch (IOException e) { } int state = launcher.waitAndRead(epm.getOutputStream(), epm.getOutputStream(), new SubProgressMonitor(monitor, IProgressMonitor.UNKNOWN)); if(state != CommandLauncher.OK){ errMsg = launcher.getErrorMessage(); if(state == CommandLauncher.COMMAND_CANCELED){ //TODO: the better way of handling cancel is needed //currently the rebuild state is set to true forcing the full rebuild //on the next builder invocation info.getDefaultConfiguration().setRebuildState(true); } } // Force a resync of the projects without allowing the user to cancel. // This is probably unkind, but short of this there is no way to insure // the UI is up-to-date with the build results monitor.subTask(ManagedMakeMessages .getResourceString(REFRESH)); try { currentProject.refreshLocal( IResource.DEPTH_INFINITE, null); } catch (CoreException e) { monitor.subTask(ManagedMakeMessages .getResourceString(REFRESH_ERROR)); } } else { errMsg = launcher.getErrorMessage(); } // Report either the success or failure of our mission buf = new StringBuffer(); if (errMsg != null && errMsg.length() > 0) { String errorDesc = ManagedMakeMessages .getResourceString(BUILD_ERROR); buf.append(errorDesc); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$//$NON-NLS-2$ buf.append("(").append(errMsg).append(")"); //$NON-NLS-1$ //$NON-NLS-2$ } else { // Report a successful build String successMsg = ManagedMakeMessages .getFormattedString(BUILD_FINISHED, currentProject.getName()); buf.append(successMsg); buf.append(System.getProperty("line.separator", "\n")); //$NON-NLS-1$//$NON-NLS-2$ } // Write message on the console consoleOutStream.write(buf.toString().getBytes()); consoleOutStream.flush(); epmOutputStream.close(); // Generate any error markers that the build has discovered monitor.subTask(ManagedMakeMessages .getResourceString(MARKERS)); addBuilderMarkers(epm); epm.reportProblems(); consoleOutStream.close(); } } } catch (Exception e) { forgetLastBuiltState(); } finally { getGenerationProblems().clear(); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/17e7934596c0c89abe85e049aefb2bc96b28c5c3/GeneratedMakefileBuilder.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/GeneratedMakefileBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4356,
6464,
12,
474,
1361,
559,
16,
467,
743,
1361,
1621,
16,
6246,
4184,
3116,
966,
1123,
16,
6246,
4184,
1263,
6464,
768,
3908,
4456,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
759,
968,
326,
1984,
471,
1221,
3071,
1915,
1807,
279,
6438,
358,
3755,
326,
1361,
202,
202,
45,
4109,
783,
4109,
273,
11080,
5621,
202,
202,
430,
261,
10259,
422,
446,
13,
288,
1082,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
759,
18818,
596,
326,
5960,
1867,
364,
326,
1361,
471,
1221,
3071,
1915,
353,
279,
1221,
768,
1915,
1875,
202,
45,
743,
5960,
2853,
273,
336,
14836,
2853,
7675,
6923,
12,
3510,
1621,
1769,
1082,
202,
45,
8241,
6003,
273,
783,
4109,
18,
588,
8241,
5621,
1082,
202,
430,
261,
14915,
422,
446,
13,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
45,
8241,
2375,
1365,
273,
6003,
18,
588,
2375,
5621,
1082,
202,
430,
261,
3085,
422,
446,
13,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
45,
743,
1221,
768,
273,
5960,
2853,
18,
6923,
12,
8812,
18,
588,
6464,
17812,
10663,
1082,
202,
430,
261,
3085,
18,
29925,
1290,
2735,
12,
6540,
768,
13,
422,
446,
13,
288,
9506,
202,
2463,
31,
1875,
202,
97,
1082,
202,
759,
9960,
358,
326,
729,
716,
1221,
353,
2973,
358,
506,
2566,
1082,
202,
780,
1221,
5931,
273,
1123,
18,
588,
3116,
2189,
5621,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4356,
6464,
12,
474,
1361,
559,
16,
467,
743,
1361,
1621,
16,
6246,
4184,
3116,
966,
1123,
16,
6246,
4184,
1263,
6464,
768,
3908,
4456,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
759,
968,
326,
1984,
471,
1221,
3071,
1915,
1807,
279,
6438,
358,
3755,
326,
1361,
202,
202,
45,
4109,
783,
4109,
273,
11080,
5621,
202,
202,
430,
261,
10259,
422,
446,
13,
288,
1082,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
759,
18818,
596,
326,
5960,
1867,
364,
326,
1361,
471,
1221,
3071,
1915,
353,
279,
1221,
768,
1915,
1875,
202,
45,
743,
5960,
2853,
273,
336,
14836,
2853,
7675,
6923,
2
] | |
org.quickfix.fix42.OrderCancelReplaceRequest message = new org.quickfix.fix42.OrderCancelReplaceRequest | quickfix.fix42.OrderCancelReplaceRequest message = new quickfix.fix42.OrderCancelReplaceRequest | public void replace42(Order order, Order newOrder) { org.quickfix.fix42.OrderCancelReplaceRequest message = new org.quickfix.fix42.OrderCancelReplaceRequest (new OrigClOrdID(order.getID()), new ClOrdID(newOrder.getID()), new HandlInst('1'), new Symbol(order.getSymbol()), sideToFIXSide(order.getSide()), new TransactTime(), typeToFIXType(order.getType())); orderTableModel.addID(order, newOrder.getID()); send(populateCancelReplace(order, newOrder, message), order.getSessionID()); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/9f5895d2ac7b95b564f60f90590d2406c4492034/BanzaiApplication.java/clean/examples/tradeclientgui/banzai/src/org/quickfix/banzai/BanzaiApplication.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1453,
9452,
12,
2448,
1353,
16,
4347,
394,
2448,
13,
288,
3639,
2358,
18,
19525,
904,
18,
904,
9452,
18,
2448,
6691,
5729,
691,
883,
273,
5411,
394,
2358,
18,
19525,
904,
18,
904,
9452,
18,
2448,
6691,
5729,
691,
5411,
261,
2704,
11147,
2009,
15383,
734,
12,
1019,
18,
588,
734,
1435,
3631,
2398,
394,
3905,
15383,
734,
12,
2704,
2448,
18,
588,
734,
1435,
3631,
2398,
394,
2841,
80,
10773,
2668,
21,
19899,
2398,
394,
8565,
12,
1019,
18,
588,
5335,
1435,
3631,
2398,
4889,
774,
4563,
8895,
12,
1019,
18,
588,
8895,
1435,
3631,
2398,
394,
2604,
621,
950,
9334,
2398,
618,
774,
4563,
559,
12,
1019,
18,
588,
559,
1435,
10019,
3639,
1353,
1388,
1488,
18,
1289,
734,
12,
1019,
16,
394,
2448,
18,
588,
734,
10663,
3639,
1366,
12,
19936,
6691,
5729,
12,
1019,
16,
394,
2448,
16,
4766,
282,
883,
3631,
1353,
18,
588,
2157,
734,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1453,
9452,
12,
2448,
1353,
16,
4347,
394,
2448,
13,
288,
3639,
2358,
18,
19525,
904,
18,
904,
9452,
18,
2448,
6691,
5729,
691,
883,
273,
5411,
394,
2358,
18,
19525,
904,
18,
904,
9452,
18,
2448,
6691,
5729,
691,
5411,
261,
2704,
11147,
2009,
15383,
734,
12,
1019,
18,
588,
734,
1435,
3631,
2398,
394,
3905,
15383,
734,
12,
2704,
2448,
18,
588,
734,
1435,
3631,
2398,
394,
2841,
80,
10773,
2668,
21,
19899,
2398,
394,
8565,
12,
1019,
18,
588,
5335,
1435,
3631,
2398,
4889,
774,
4563,
8895,
12,
1019,
18,
588,
8895,
1435,
3631,
2398,
394,
2604,
621,
950,
9334,
2398,
618,
774,
4563,
559,
12,
1019,
18,
588,
559,
1435,
10019,
3639,
2
] |
com.webobjects.appserver.WOApplication.application()._removeComponentDefinitionCacheContents(); | if(oldClass_ != null && !cacheEntry.className().equals(className)) { setClassForName(class_, cacheEntry.className()); } if(!didReset) { com.webobjects.appserver.WOApplication.application()._removeComponentDefinitionCacheContents(); NSKeyValueCoding.DefaultImplementation._flushCaches(); NSKeyValueCoding._ReflectionKeyBindingCreation._flushCaches(); NSKeyValueCoding.ValueAccessor._flushCaches(); didReset = true; } if(WODirectAction.class.isAssignableFrom(class_)) { WOApplication app = WOApplication.application(); WODirectActionRequestHandler handler = new WODirectActionRequestHandler(cacheEntry.className(), "default", false); boolean directActionIsDefault = app.requestHandlerForKey(app.directActionRequestHandlerKey()) == app.defaultRequestHandler(); app.registerRequestHandler(handler, app.directActionRequestHandlerKey()); if(directActionIsDefault) app.setDefaultRequestHandler(handler); cat.info("WODirectAction loaded: "+ cacheEntry.className()); } if(EOEnterpriseObject.class.isAssignableFrom(class_) && !didResetModelGroup) { EOModelGroup.setDefaultGroup(ERXModelGroup.modelGroupForLoadedBundles()); didResetModelGroup = true; } | void checkAndCompileAllClasses() { CacheEntry cacheEntry; Enumeration e = _filesToWatch.objectEnumerator(); NSMutableArray filesToCompile = new NSMutableArray(); while(e.hasMoreElements()) { cacheEntry = (CacheEntry)e.nextElement(); if(cacheEntry.needsRefresh()) { filesToCompile.addObject(cacheEntry); } } if(filesToCompile.count() > 0) { Compiler compiler = new Compiler(filesToCompile.objects(), _destinationPath); if(compiler.compile()) { CompilerClassLoader cl = null; e = filesToCompile.objectEnumerator(); while(e.hasMoreElements()) { cacheEntry = (CacheEntry)e.nextElement(); String className = cacheEntry.classNameWithPackage(); try { if(cl == null) cl = new CompilerClassLoader(_destinationPath); // Object o = Class.forName(className).newInstance(); Class class_ = cl.loadClass(className, true); // the whole magic is in these two lines setClassForName(class_, className); com.webobjects.appserver.WOApplication.application()._removeComponentDefinitionCacheContents(); cacheEntry.update(); // sparkle dust ends here NSNotificationCenter.defaultCenter().postNotification(CompilerProxyDidCompileClassesNotification, className); } catch(ClassNotFoundException ex) { throw new RuntimeException("Could not load the class "+ className + " with exception:" + ex.toString()); } } } } } | 46145 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46145/ef4e49afefe5f247b5713c9f2882238544ed005d/ERXCompilerProxy.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXCompilerProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
30970,
9937,
1595,
4818,
1435,
288,
3639,
27657,
26969,
31,
3639,
13864,
425,
273,
389,
2354,
774,
5234,
18,
1612,
3572,
7385,
5621,
3639,
423,
7303,
3050,
1076,
1390,
774,
9937,
225,
273,
394,
423,
7303,
3050,
1076,
5621,
3639,
1323,
12,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
26969,
273,
261,
27630,
13,
73,
18,
4285,
1046,
5621,
5411,
309,
12,
2493,
1622,
18,
20600,
8323,
10756,
288,
7734,
1390,
774,
9937,
18,
1289,
921,
12,
2493,
1622,
1769,
5411,
289,
3639,
289,
3639,
309,
12,
2354,
774,
9937,
18,
1883,
1435,
405,
374,
13,
288,
5411,
12972,
5274,
273,
394,
12972,
12,
2354,
774,
9937,
18,
6911,
9334,
389,
10590,
743,
1769,
5411,
309,
12,
9576,
18,
11100,
10756,
288,
7734,
12972,
7805,
927,
273,
446,
31,
7734,
425,
273,
1390,
774,
9937,
18,
1612,
3572,
7385,
5621,
7734,
1323,
12,
73,
18,
5332,
7417,
3471,
10756,
288,
10792,
26969,
273,
261,
27630,
13,
73,
18,
4285,
1046,
5621,
10792,
514,
2658,
273,
26969,
18,
12434,
1190,
2261,
5621,
10792,
775,
288,
13491,
309,
12,
830,
422,
446,
13,
9506,
565,
927,
273,
394,
12972,
7805,
24899,
10590,
743,
1769,
13491,
368,
282,
1033,
320,
273,
1659,
18,
1884,
461,
12,
12434,
2934,
2704,
1442,
5621,
13491,
1659,
667,
67,
273,
927,
18,
945,
797,
12,
12434,
16,
638,
1769,
13491,
368,
326,
7339,
8146,
353,
316,
4259,
2795,
2362,
13491,
24580,
1290,
461,
12,
1106,
67,
16,
2658,
1769,
13491,
309,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
30970,
9937,
1595,
4818,
1435,
288,
3639,
27657,
26969,
31,
3639,
13864,
425,
273,
389,
2354,
774,
5234,
18,
1612,
3572,
7385,
5621,
3639,
423,
7303,
3050,
1076,
1390,
774,
9937,
225,
273,
394,
423,
7303,
3050,
1076,
5621,
3639,
1323,
12,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
26969,
273,
261,
27630,
13,
73,
18,
4285,
1046,
5621,
5411,
309,
12,
2493,
1622,
18,
20600,
8323,
10756,
288,
7734,
1390,
774,
9937,
18,
1289,
921,
12,
2493,
1622,
1769,
5411,
289,
3639,
289,
3639,
309,
12,
2354,
774,
9937,
18,
1883,
1435,
405,
374,
13,
288,
5411,
12972,
5274,
273,
394,
12972,
12,
2354,
774,
9937,
18,
6911,
9334,
389,
10590,
743,
1769,
5411,
309,
2
] |
SimpleFieldSet fs = new SimpleFieldSet(br); | SimpleFieldSet fs = new SimpleFieldSet(br, false); | private void readNodeFile(String filename) throws IOException { // REDFLAG: Any way to share this code with NodePeer? FileInputStream fis = new FileInputStream(filename); InputStreamReader isr = new InputStreamReader(fis); BufferedReader br = new BufferedReader(isr); SimpleFieldSet fs = new SimpleFieldSet(br); br.close(); // Read contents String physical = fs.get("physical.udp"); Peer myOldPeer; try { myOldPeer = new Peer(physical); } catch (PeerParseException e) { IOException e1 = new IOException(); e1.initCause(e); throw e1; } if(myOldPeer.getPort() != portNumber) throw new IllegalArgumentException("Wrong port number "+ myOldPeer.getPort()+" should be "+portNumber); // FIXME: we ignore the IP for now, and hardcode it to localhost String identity = fs.get("identity"); if(identity == null) throw new IOException(); myIdentity = HexUtil.hexToBytes(identity); MessageDigest md; try { md = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { throw new Error(e); } identityHash = md.digest(myIdentity); identityHashHash = md.digest(identityHash); String loc = fs.get("location"); Location l; try { l = new Location(loc); } catch (FSParseException e) { IOException e1 = new IOException(); e1.initCause(e); throw e1; } lm.setLocation(l); myName = fs.get("myName"); if(myName == null) { myName = newName(); } } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/2d2b5012400f5bab60d65d3d26d67efa9cf7d1d6/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
855,
907,
812,
12,
780,
1544,
13,
1216,
1860,
288,
377,
202,
759,
14411,
9651,
30,
5502,
4031,
358,
7433,
333,
981,
598,
2029,
6813,
35,
3639,
11907,
15324,
273,
394,
11907,
12,
3459,
1769,
3639,
15322,
353,
86,
273,
394,
15322,
12,
74,
291,
1769,
3639,
10633,
5186,
273,
394,
10633,
12,
291,
86,
1769,
3639,
4477,
974,
694,
2662,
273,
394,
4477,
974,
694,
12,
2848,
16,
629,
1769,
3639,
5186,
18,
4412,
5621,
3639,
368,
2720,
2939,
3639,
514,
11640,
273,
2662,
18,
588,
2932,
20441,
18,
26029,
8863,
3639,
10669,
3399,
7617,
6813,
31,
3639,
775,
288,
5411,
3399,
7617,
6813,
273,
394,
10669,
12,
20441,
1769,
3639,
289,
1044,
261,
6813,
13047,
425,
13,
288,
5411,
1860,
425,
21,
273,
394,
1860,
5621,
5411,
425,
21,
18,
2738,
10683,
12,
73,
1769,
5411,
604,
425,
21,
31,
3639,
289,
3639,
309,
12,
4811,
7617,
6813,
18,
588,
2617,
1435,
480,
1756,
1854,
13,
5411,
604,
394,
2754,
2932,
13634,
1756,
1300,
13773,
10792,
3399,
7617,
6813,
18,
588,
2617,
1435,
9078,
1410,
506,
13773,
655,
1854,
1769,
3639,
368,
9852,
30,
732,
2305,
326,
2971,
364,
2037,
16,
471,
7877,
710,
518,
358,
17365,
3639,
514,
4215,
273,
2662,
18,
588,
2932,
10781,
8863,
3639,
309,
12,
10781,
422,
446,
13,
5411,
604,
394,
1860,
5621,
3639,
3399,
4334,
273,
15734,
1304,
18,
7118,
21033,
12,
10781,
1769,
3639,
22485,
3481,
31,
3639,
775,
288,
5411,
3481,
273,
22485,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
855,
907,
812,
12,
780,
1544,
13,
1216,
1860,
288,
377,
202,
759,
14411,
9651,
30,
5502,
4031,
358,
7433,
333,
981,
598,
2029,
6813,
35,
3639,
11907,
15324,
273,
394,
11907,
12,
3459,
1769,
3639,
15322,
353,
86,
273,
394,
15322,
12,
74,
291,
1769,
3639,
10633,
5186,
273,
394,
10633,
12,
291,
86,
1769,
3639,
4477,
974,
694,
2662,
273,
394,
4477,
974,
694,
12,
2848,
16,
629,
1769,
3639,
5186,
18,
4412,
5621,
3639,
368,
2720,
2939,
3639,
514,
11640,
273,
2662,
18,
588,
2932,
20441,
18,
26029,
8863,
3639,
10669,
3399,
7617,
6813,
31,
3639,
775,
288,
5411,
3399,
7617,
6813,
273,
394,
10669,
12,
20441,
1769,
3639,
289,
1044,
261,
6813,
2
] |
if(C(0) == '\"' || C(0) == '\n') return new Token(TOKEN_DOUBLE_QUOTE_STRING, sp, position+1, line, linePosition, text); | if(C(0) == '\"' || matchNewLine()) return new Token(TOKEN_DOUBLE_QUOTE_STRING, sp, position+1, internalPositionOffset, line, linePosition, text); | public Token matchDoubleQuoteString() { int sp = position; while(nextCharacter()) { if(C(0) == '\"' || C(0) == '\n') return new Token(TOKEN_DOUBLE_QUOTE_STRING, sp, position+1, line, linePosition, text); } return null; } | 51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/7f8549f7ce7c14aa4186cb9c323bbc530f854560/Lexer.java/clean/src/org/antlr/works/parser/Lexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3155,
845,
5265,
10257,
780,
1435,
288,
3639,
509,
1694,
273,
1754,
31,
3639,
1323,
12,
4285,
7069,
10756,
288,
5411,
309,
12,
39,
12,
20,
13,
422,
2337,
5187,
747,
385,
12,
20,
13,
422,
2337,
82,
6134,
7734,
327,
394,
3155,
12,
8412,
67,
17088,
67,
18980,
67,
5804,
16,
1694,
16,
1754,
15,
21,
16,
980,
16,
980,
2555,
16,
977,
1769,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3155,
845,
5265,
10257,
780,
1435,
288,
3639,
509,
1694,
273,
1754,
31,
3639,
1323,
12,
4285,
7069,
10756,
288,
5411,
309,
12,
39,
12,
20,
13,
422,
2337,
5187,
747,
385,
12,
20,
13,
422,
2337,
82,
6134,
7734,
327,
394,
3155,
12,
8412,
67,
17088,
67,
18980,
67,
5804,
16,
1694,
16,
1754,
15,
21,
16,
980,
16,
980,
2555,
16,
977,
1769,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); | public quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { quickfix.field.LegSymbolSfx value = new quickfix.field.LegSymbolSfx(); | public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Email.java/clean/src/java/src/quickfix/fix44/Email.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
336,
8329,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
336,
8329,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
RubyTime time = new RubyTime(ruby, (RubyClass) rubyClass.getRubyClass()); | RubyTime time = new RubyTime(ruby, (RubyClass) rubyClass); | public static RubyTime s_at(Ruby ruby, RubyObject rubyClass, RubyObject[] args) { long secs = RubyNumeric.num2long(args[0]); RubyTime time = new RubyTime(ruby, (RubyClass) rubyClass.getRubyClass()); GregorianCalendar cal = new GregorianCalendar(); cal.setTime(new Date(secs)); time.setJavaCalendar(cal); return time; } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/RubyTime.java/buggy/org/jruby/RubyTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
950,
272,
67,
270,
12,
54,
10340,
22155,
16,
19817,
921,
22155,
797,
16,
19817,
921,
8526,
833,
13,
288,
3639,
1525,
18043,
273,
19817,
9902,
18,
2107,
22,
5748,
12,
1968,
63,
20,
19226,
3639,
19817,
950,
813,
273,
394,
19817,
950,
12,
27768,
16,
261,
54,
10340,
797,
13,
22155,
797,
1769,
3639,
28033,
1443,
273,
394,
28033,
5621,
3639,
1443,
18,
542,
950,
12,
2704,
2167,
12,
21317,
10019,
3639,
813,
18,
542,
5852,
7335,
12,
771,
1769,
3639,
327,
813,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
950,
272,
67,
270,
12,
54,
10340,
22155,
16,
19817,
921,
22155,
797,
16,
19817,
921,
8526,
833,
13,
288,
3639,
1525,
18043,
273,
19817,
9902,
18,
2107,
22,
5748,
12,
1968,
63,
20,
19226,
3639,
19817,
950,
813,
273,
394,
19817,
950,
12,
27768,
16,
261,
54,
10340,
797,
13,
22155,
797,
1769,
3639,
28033,
1443,
273,
394,
28033,
5621,
3639,
1443,
18,
542,
950,
12,
2704,
2167,
12,
21317,
10019,
3639,
813,
18,
542,
5852,
7335,
12,
771,
1769,
3639,
327,
813,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Object getValue(String key); | Object getValue(String key); | public Object getValue(String key); | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2703ae3b51c371a2a79d28271cd57b4046c647d0/Action.java/buggy/core/src/classpath/javax/javax/swing/Action.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
2366,
12,
780,
498,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
2366,
12,
780,
498,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
out.writeInt(((IpAddress)src_addr).getPort()); | byte[] additional_data; out.writeInt(tmp.getPort()); if((additional_data=tmp.getAdditionalData()) != null) { out.writeByte(1); out.writeInt(additional_data.length); out.write(additional_data, 0, additional_data.length); } else { out.writeByte(0); } | public void writeTo(DataOutputStream out) throws IOException { Map.Entry entry; byte leading=0; if(dest_addr != null) { leading+=DEST_SET; if(dest_addr instanceof IpAddress) leading+=IPADDR_DEST; } if(src_addr != null) { leading+=SRC_SET; if(src_addr instanceof IpAddress) { leading+=IPADDR_SRC; if(((IpAddress)src_addr).getIpAddress() == null) { leading+=SRC_HOST_NULL; } } } if(buf != null) leading+=BUF_SET; if(headers != null && headers.size() > 0) leading+=HDRS_SET; // 1. write the leading byte first out.write(leading); // 2. dest_addr if(dest_addr != null) { if(dest_addr instanceof IpAddress) dest_addr.writeTo(out); else Util.writeAddress(dest_addr, out); } // 3. src_addr if(src_addr != null) { if(src_addr instanceof IpAddress) { if(((IpAddress)src_addr).getIpAddress() != null) src_addr.writeTo(out); else { out.writeInt(((IpAddress)src_addr).getPort()); } } else { Util.writeAddress(src_addr, out); } } // 4. buf if(buf != null) { out.writeInt(length); out.write(buf, offset, length); } // 5. headers if(headers != null && headers.size() > 0) { out.writeInt(headers.size()); for(Iterator it=headers.entrySet().iterator(); it.hasNext();) { entry=(Map.Entry)it.next(); out.writeUTF((String)entry.getKey()); writeHeader((Header)entry.getValue(), out); } } } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/c8c626436dfef4be1df7bb508ef791d65fdad692/Message.java/buggy/src/org/jgroups/Message.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12870,
12,
751,
4632,
596,
13,
1216,
1860,
288,
3639,
1635,
18,
1622,
3639,
1241,
31,
3639,
1160,
7676,
33,
20,
31,
3639,
309,
12,
10488,
67,
4793,
480,
446,
13,
288,
5411,
7676,
15,
33,
1639,
882,
67,
4043,
31,
5411,
309,
12,
10488,
67,
4793,
1276,
14709,
1887,
13,
7734,
7676,
15,
33,
2579,
14142,
67,
1639,
882,
31,
3639,
289,
3639,
309,
12,
4816,
67,
4793,
480,
446,
13,
288,
5411,
7676,
15,
33,
28413,
67,
4043,
31,
5411,
309,
12,
4816,
67,
4793,
1276,
14709,
1887,
13,
288,
7734,
7676,
15,
33,
2579,
14142,
67,
28413,
31,
7734,
309,
12443,
12,
16875,
13,
4816,
67,
4793,
2934,
588,
16875,
1435,
422,
446,
13,
288,
10792,
7676,
15,
33,
28413,
67,
8908,
67,
8560,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
309,
12,
4385,
480,
446,
13,
5411,
7676,
15,
33,
3000,
42,
67,
4043,
31,
3639,
309,
12,
2485,
480,
446,
597,
1607,
18,
1467,
1435,
405,
374,
13,
5411,
7676,
15,
33,
44,
6331,
55,
67,
4043,
31,
3639,
368,
404,
18,
1045,
326,
7676,
1160,
1122,
3639,
596,
18,
2626,
12,
27200,
1769,
3639,
368,
576,
18,
1570,
67,
4793,
3639,
309,
12,
10488,
67,
4793,
480,
446,
13,
288,
5411,
309,
12,
10488,
67,
4793,
1276,
14709,
1887,
13,
7734,
1570,
67,
4793,
18,
2626,
774,
12,
659,
1769,
5411,
469,
7734,
3564,
18,
2626,
1887,
12,
10488,
67,
4793,
16,
596,
1769,
3639,
289,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12870,
12,
751,
4632,
596,
13,
1216,
1860,
288,
3639,
1635,
18,
1622,
3639,
1241,
31,
3639,
1160,
7676,
33,
20,
31,
3639,
309,
12,
10488,
67,
4793,
480,
446,
13,
288,
5411,
7676,
15,
33,
1639,
882,
67,
4043,
31,
5411,
309,
12,
10488,
67,
4793,
1276,
14709,
1887,
13,
7734,
7676,
15,
33,
2579,
14142,
67,
1639,
882,
31,
3639,
289,
3639,
309,
12,
4816,
67,
4793,
480,
446,
13,
288,
5411,
7676,
15,
33,
28413,
67,
4043,
31,
5411,
309,
12,
4816,
67,
4793,
1276,
14709,
1887,
13,
288,
7734,
7676,
15,
33,
2579,
14142,
67,
28413,
31,
7734,
309,
12443,
12,
16875,
13,
4816,
67,
4793,
2934,
588,
16875,
1435,
422,
446,
2
] |
List list = md.getChildren(); | String childName = getUnqualifiedName(childQName); String childPrefix = getPrefix(childQName); String childNS = getNamespace(childQName, md); System.out.println("- name = " + childName); System.out.println("- prefix = " + childPrefix); System.out.println("- namespace = " + childNS); List list = md.getChildren(childName, Namespace.getNamespace(childNS)); | private void expandElement(String schemaName, MetadataSchema schema, Element md) throws Exception { String elemName = md.getQualifiedName(); // RGFIX: was: getname String elemType = schema.getElementType(elemName); System.out.println("elemName = " + elemName); // DEBUG Element elem = md.getChild(Edit.RootChild.ELEMENT, Edit.NAMESPACE);// addValues(schema, elem, elemName); // RGFIX if (schema.isSimpleElement(elemName)) return; MetadataType type = schema.getTypeInfo(elemType); if (!type.isOrType()) { for(int i=0; i<type.getElementCount(); i++) { String childName = type.getElementAt(i); System.out.println("- childName = " + childName); // DEBUG if (childName == null) continue; // schema extensions cause null types; just skip List list = md.getChildren(); if (list.size() == 0) { Element newElem = createElement(schemaName, schema, childName); if (i == 0) insertFirst(md, newElem); else insertLast(md, type.getElementAt(i-1), newElem); } else { for(int j=0; j<list.size(); j++) { Element listChild = (Element) list.get(j); Element listElem = listChild.getChild(Edit.RootChild.ELEMENT, Edit.NAMESPACE); if (j>0) listElem.setAttribute(new Attribute(Edit.Element.Attr.UP, Edit.Value.TRUE)); if (j<list.size() -1) listElem.setAttribute(new Attribute(Edit.Element.Attr.DOWN, Edit.Value.TRUE)); if (list.size() > type.getMinCardinAt(i)) listElem.setAttribute(new Attribute(Edit.Element.Attr.DEL, Edit.Value.TRUE)); } if (list.size() < type.getMaxCardinAt(i)) insertLast(md, childName, createElement(schemaName, schema, childName)); } } } addAttribs(type, md); } | 51365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51365/4777bb92bb3d62130cc5d12eb39ac86879b09162/EditLib.java/buggy/src/org/fao/geonet/kernel/EditLib.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4542,
1046,
12,
780,
21960,
16,
6912,
3078,
1963,
16,
3010,
3481,
13,
1216,
1185,
202,
95,
202,
202,
780,
3659,
461,
273,
3481,
18,
588,
12345,
5621,
368,
534,
43,
4563,
30,
1703,
30,
336,
529,
202,
202,
780,
3659,
559,
273,
1963,
18,
588,
17481,
12,
10037,
461,
1769,
202,
202,
3163,
18,
659,
18,
8222,
2932,
10037,
461,
273,
315,
397,
3659,
461,
1769,
368,
6369,
9506,
202,
1046,
3659,
273,
3481,
18,
588,
1763,
12,
4666,
18,
2375,
1763,
18,
10976,
16,
15328,
18,
11368,
1769,
759,
202,
202,
1289,
1972,
12,
4821,
16,
3659,
16,
3659,
461,
1769,
368,
534,
43,
4563,
9506,
202,
430,
261,
4821,
18,
291,
5784,
1046,
12,
10037,
461,
3719,
1082,
202,
2463,
31,
202,
202,
2277,
559,
618,
273,
1963,
18,
588,
17305,
12,
10037,
559,
1769,
9506,
202,
430,
16051,
723,
18,
291,
1162,
559,
10756,
202,
202,
95,
1082,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
32,
723,
18,
21336,
1380,
5621,
277,
27245,
1082,
202,
95,
9506,
202,
780,
27440,
273,
618,
18,
21336,
861,
12,
77,
1769,
6862,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
17,
27440,
273,
315,
397,
27440,
1769,
368,
6369,
6862,
9506,
202,
430,
261,
3624,
461,
422,
446,
13,
1324,
31,
368,
1963,
4418,
4620,
446,
1953,
31,
2537,
2488,
6862,
9506,
202,
682,
666,
273,
3481,
18,
588,
4212,
5621,
9506,
202,
430,
261,
1098,
18,
1467,
1435,
422,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4542,
1046,
12,
780,
21960,
16,
6912,
3078,
1963,
16,
3010,
3481,
13,
1216,
1185,
202,
95,
202,
202,
780,
3659,
461,
273,
3481,
18,
588,
12345,
5621,
368,
534,
43,
4563,
30,
1703,
30,
336,
529,
202,
202,
780,
3659,
559,
273,
1963,
18,
588,
17481,
12,
10037,
461,
1769,
202,
202,
3163,
18,
659,
18,
8222,
2932,
10037,
461,
273,
315,
397,
3659,
461,
1769,
368,
6369,
9506,
202,
1046,
3659,
273,
3481,
18,
588,
1763,
12,
4666,
18,
2375,
1763,
18,
10976,
16,
15328,
18,
11368,
1769,
759,
202,
202,
1289,
1972,
12,
4821,
16,
3659,
16,
3659,
461,
1769,
368,
534,
43,
4563,
9506,
202,
430,
261,
4821,
18,
291,
5784,
2
] |
return ((RubyModule)klass).m_attr((RubySymbol)argv[0], argv.length > 1 ? (RubyBoolean)argv[1] : ruby.getFalse()); | return ((RubyModule)klass).m_attr((RubySymbol)argv[0], (RubyObject[])argv); | public VALUE rb_mod_attr(VALUE[] argv, VALUE klass) { return ((RubyModule)klass).m_attr((RubySymbol)argv[0], argv.length > 1 ? (RubyBoolean)argv[1] : ruby.getFalse()); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/658d41dfe4d2bc92a7ecefae9ca04e116d2c290b/RubyOriginalMethods.java/clean/org/jruby/original/RubyOriginalMethods.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5848,
7138,
67,
1711,
67,
1747,
12,
4051,
8526,
5261,
16,
5848,
7352,
13,
288,
3639,
327,
14015,
54,
10340,
3120,
13,
22626,
2934,
81,
67,
1747,
12443,
54,
10340,
5335,
13,
19485,
63,
20,
6487,
261,
54,
10340,
921,
63,
5717,
19485,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5848,
7138,
67,
1711,
67,
1747,
12,
4051,
8526,
5261,
16,
5848,
7352,
13,
288,
3639,
327,
14015,
54,
10340,
3120,
13,
22626,
2934,
81,
67,
1747,
12443,
54,
10340,
5335,
13,
19485,
63,
20,
6487,
261,
54,
10340,
921,
63,
5717,
19485,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public HeaderCard(String card) { key = null; value = null; comment = null; isString = false; if (FitsFactory.getUseHierarch() && card.length() > 9 && card.substring(0,9).equals("HIERARCH ")) { hierarchCard(card); return; } if (card.length() < 9) { key = card; return; } key = card.substring(0, 8).trim(); if (key.length() == 0) { key = ""; comment = card.substring(8); return; } if (!card.substring(8,10).equals("= ")) { comment = card.substring(8).trim(); return; } String valueAndComment = card.substring(10).trim(); if (valueAndComment.length() == 0) { value = ""; return; } int vend = -1; boolean quote = false; if (valueAndComment.charAt(0) == '\'') { int offset = 1; while (offset < valueAndComment.length()) { vend = valueAndComment.indexOf("'", offset);; if (vend == valueAndComment.length()-1) { break; } if (vend == -1) { key = null; comment = card; return; } if (valueAndComment.charAt(vend+1) != '\'') { break; } offset = vend+2; } value = valueAndComment.substring(1, vend).trim(); if (vend+1 >= valueAndComment.length()) { comment = null; } else { comment = valueAndComment.substring(vend+1).trim(); if (comment.charAt(0) == '/') { if (comment.length() > 1) { comment = comment.substring(1); } else { comment = ""; } } if (comment.length() == 0) { comment = null; } } isString = true; } else { int slashLoc = valueAndComment.indexOf('/'); if (slashLoc != -1) { comment = valueAndComment.substring(slashLoc+1).trim(); value = valueAndComment.substring(0, slashLoc).trim(); } else { value = valueAndComment; } } | public HeaderCard(String key, double value, String comment) throws HeaderCardException { this(key, String.valueOf(value), comment); isString = false; | public HeaderCard(String card) { key = null; value = null; comment = null; isString = false; if (FitsFactory.getUseHierarch() && card.length() > 9 && card.substring(0,9).equals("HIERARCH ")) { hierarchCard(card); return; } // We are going to assume that the value has no blanks in // it unless it is enclosed in quotes. Also, we assume that // a / terminates the string (except inside quotes) // treat short lines as special keywords if (card.length() < 9) { key = card; return; } // extract the key key = card.substring(0, 8).trim(); // if it is an empty key, assume the remainder of the card is a comment if (key.length() == 0) { key = ""; comment = card.substring(8); return; } // Non-key/value pair lines are treated as keyed comments if (!card.substring(8,10).equals("= ")) { comment = card.substring(8).trim(); return; } // extract the value/comment part of the string String valueAndComment = card.substring(10).trim(); // If there is no value/comment part, we are done. if (valueAndComment.length() == 0) { value = ""; return; } int vend = -1; boolean quote = false; // If we have a ' then find the matching '. if (valueAndComment.charAt(0) == '\'') { int offset = 1; while (offset < valueAndComment.length()) { // look for next single-quote character vend = valueAndComment.indexOf("'", offset);; // if the quote character is the last character on the line... if (vend == valueAndComment.length()-1) { break; } // if we did not find a matching single-quote... if (vend == -1) { // pretend this is a comment card key = null; comment = card; return; } // if this is not an escaped single-quote, we are done if (valueAndComment.charAt(vend+1) != '\'') { break; } // skip past escaped single-quote offset = vend+2; } // break apart character string value = valueAndComment.substring(1, vend).trim(); if (vend+1 >= valueAndComment.length()) { comment = null; } else { comment = valueAndComment.substring(vend+1).trim(); if (comment.charAt(0) == '/') { if (comment.length() > 1) { comment = comment.substring(1); } else { comment = ""; } } if (comment.length() == 0) { comment = null; } } isString = true; } else { // look for a / to terminate the field. int slashLoc = valueAndComment.indexOf('/'); if (slashLoc != -1) { comment = valueAndComment.substring(slashLoc+1).trim(); value = valueAndComment.substring(0, slashLoc).trim(); } else { value = valueAndComment; } } } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/8a1cc5bb66931fdb55ebec3ef74fc0cd265445a3/HeaderCard.java/clean/tamfits/src/main/nom/tam/fits/HeaderCard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4304,
6415,
12,
780,
5270,
13,
565,
288,
3639,
498,
1377,
273,
446,
31,
3639,
460,
565,
273,
446,
31,
3639,
2879,
225,
273,
446,
31,
3639,
9962,
273,
629,
31,
202,
202,
430,
261,
42,
1282,
1733,
18,
588,
3727,
44,
5148,
1435,
3196,
4202,
597,
5270,
18,
2469,
1435,
405,
2468,
3196,
4202,
597,
5270,
18,
28023,
12,
20,
16,
29,
2934,
14963,
2932,
29994,
654,
10586,
315,
3719,
288,
202,
565,
366,
5148,
6415,
12,
3327,
1769,
202,
565,
327,
31,
202,
97,
3639,
368,
1660,
854,
8554,
358,
6750,
716,
326,
460,
711,
1158,
7052,
87,
316,
3639,
368,
518,
3308,
518,
353,
25636,
316,
10681,
18,
225,
8080,
16,
732,
6750,
716,
3639,
368,
279,
342,
30559,
326,
533,
261,
14137,
4832,
10681,
13,
3639,
368,
10116,
3025,
2362,
487,
4582,
7093,
3639,
309,
261,
3327,
18,
2469,
1435,
411,
2468,
13,
288,
5411,
498,
273,
5270,
31,
5411,
327,
31,
3639,
289,
3639,
368,
2608,
326,
498,
3639,
498,
273,
5270,
18,
28023,
12,
20,
16,
1725,
2934,
5290,
5621,
3639,
368,
309,
518,
353,
392,
1008,
498,
16,
6750,
326,
10022,
434,
326,
5270,
353,
279,
2879,
3639,
309,
261,
856,
18,
2469,
1435,
422,
374,
13,
288,
5411,
498,
273,
1408,
31,
5411,
2879,
273,
5270,
18,
28023,
12,
28,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
3858,
17,
856,
19,
1132,
3082,
2362,
854,
13974,
487,
17408,
5678,
3639,
309,
16051,
3327,
18,
28023,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4304,
6415,
12,
780,
5270,
13,
565,
288,
3639,
498,
1377,
273,
446,
31,
3639,
460,
565,
273,
446,
31,
3639,
2879,
225,
273,
446,
31,
3639,
9962,
273,
629,
31,
202,
202,
430,
261,
42,
1282,
1733,
18,
588,
3727,
44,
5148,
1435,
3196,
4202,
597,
5270,
18,
2469,
1435,
405,
2468,
3196,
4202,
597,
5270,
18,
28023,
12,
20,
16,
29,
2934,
14963,
2932,
29994,
654,
10586,
315,
3719,
288,
202,
565,
366,
5148,
6415,
12,
3327,
1769,
202,
565,
327,
31,
202,
97,
3639,
368,
1660,
854,
8554,
358,
6750,
716,
326,
460,
711,
1158,
7052,
87,
316,
3639,
368,
518,
3308,
518,
353,
25636,
316,
10681,
18,
225,
8080,
16,
732,
6750,
716,
2
] |
final CircuitEditor ce = new CircuitEditor(robot.getOutputs(), robot.getInputsGate()); | saveCircuitAction = new SaveCircuitAction(ce); loadCircuitAction = new LoadCircuitAction(ce, robot); | public void run() { if (levels.isEmpty()) { getContentPane().add(new JLabel("Oops, can't find any levels!")); } else { final PlayfieldModel pfModel = levels.get(10); final Robot robot = new Robot(pfModel, robotIcon); playfield = new Playfield(pfModel, robot); final CircuitEditor ce = new CircuitEditor(robot.getOutputs(), robot.getInputsGate()); JFrame cef = new JFrame("Curcuit Editor"); cef.getContentPane().add(ce); cef.pack(); cef.setLocation(getX()+getWidth(), getY()); cef.setVisible(true); playfield.setGoalIcon(goalIcon); playfield.setBlackIcon(blackIcon); playfield.setWhiteIcon(whiteIcon); playfield.setRedIcon(redIcon); playfield.setGreenIcon(greenIcon); playfield.setBlueIcon(blueIcon); getContentPane().setLayout(new BorderLayout()); System.out.println("Starting level "+pfModel.getName()); getContentPane().add( new JLabel(pfModel.getName(), JLabel.CENTER), BorderLayout.NORTH); getContentPane().add(playfield, BorderLayout.CENTER); final GameLoop gameLoop = new GameLoop(robot, playfield, ce); final JSpinner frameDelaySpinner = new JSpinner(); frameDelaySpinner.setValue(new Integer(50)); final JButton startButton = new JButton("Start Game"); startButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (gameLoop.isRunning()) { gameLoop.requestStop(); } else { gameLoop.setFrameDelay(((Integer) frameDelaySpinner.getValue()).intValue()); gameLoop.resetState(); new Thread(gameLoop).start(); } } }); final JButton resetButton = new JButton("Reset"); resetButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { robot.setPosition(pfModel.getStartPosition()); gameLoop.resetState(); ce.resetState(); playfield.repaint(); ce.repaint(); } }); gameLoop.addPropertyChangeListener("running", new PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { SwingUtilities.invokeLater(new Runnable() { public void run() { if (gameLoop.isRunning()) { startButton.setText("Stop Game"); } else { startButton.setText("Start Game"); } } }); } }); JPanel buttonPanel = new JPanel(new FlowLayout()); buttonPanel.add(startButton); buttonPanel.add(resetButton); buttonPanel.add(new JLabel("Delay between frames (ms):")); buttonPanel.add(frameDelaySpinner); getContentPane().add(buttonPanel, BorderLayout.SOUTH); // XXX: shouldn't be necessary, but applet shows up blank otherwise SwingUtilities.invokeLater(new Runnable() { public void run() { getContentPane().validate(); getContentPane().repaint(); } }); } } | 48742 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48742/395c302df9b8af8222ed65a2065fcaedd5685df9/RobotApplet.java/buggy/net/bluecow/robot/RobotApplet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
7734,
309,
261,
12095,
18,
291,
1921,
10756,
288,
10792,
5154,
8485,
7675,
1289,
12,
2704,
21403,
2932,
51,
4473,
16,
848,
1404,
1104,
1281,
7575,
4442,
10019,
7734,
289,
469,
288,
10792,
727,
19592,
1518,
1488,
10811,
1488,
273,
7575,
18,
588,
12,
2163,
1769,
10792,
727,
19686,
352,
14386,
273,
394,
19686,
352,
12,
14241,
1488,
16,
14386,
5554,
1769,
10792,
6599,
1518,
273,
394,
19592,
1518,
12,
14241,
1488,
16,
14386,
1769,
4766,
3639,
1923,
21719,
1803,
273,
394,
7074,
21719,
1803,
12,
311,
1769,
1262,
21719,
1803,
273,
394,
4444,
21719,
1803,
12,
311,
16,
14386,
1769,
5397,
804,
3219,
5898,
74,
273,
394,
804,
3219,
2932,
2408,
8078,
18451,
8863,
10792,
5898,
74,
18,
588,
1350,
8485,
7675,
1289,
12,
311,
1769,
10792,
5898,
74,
18,
2920,
5621,
10792,
5898,
74,
18,
542,
2735,
12,
588,
60,
1435,
15,
588,
2384,
9334,
10448,
10663,
10792,
5898,
74,
18,
542,
6207,
12,
3767,
1769,
4766,
3639,
6599,
1518,
18,
542,
27716,
5554,
12,
27354,
5554,
1769,
10792,
6599,
1518,
18,
542,
13155,
5554,
12,
11223,
5554,
1769,
10792,
6599,
1518,
18,
542,
13407,
5554,
12,
14739,
5554,
1769,
10792,
6599,
1518,
18,
542,
3715,
5554,
12,
1118,
5554,
1769,
10792,
6599,
1518,
18,
542,
21453,
5554,
12,
11571,
5554,
1769,
10792,
6599,
1518,
18,
542,
27986,
5554,
12,
14081,
5554,
1769,
4766,
3639,
5154,
8485,
7675,
542,
3744,
12,
2704,
30814,
10663,
10792,
2332,
18,
659,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
7734,
309,
261,
12095,
18,
291,
1921,
10756,
288,
10792,
5154,
8485,
7675,
1289,
12,
2704,
21403,
2932,
51,
4473,
16,
848,
1404,
1104,
1281,
7575,
4442,
10019,
7734,
289,
469,
288,
10792,
727,
19592,
1518,
1488,
10811,
1488,
273,
7575,
18,
588,
12,
2163,
1769,
10792,
727,
19686,
352,
14386,
273,
394,
19686,
352,
12,
14241,
1488,
16,
14386,
5554,
1769,
10792,
6599,
1518,
273,
394,
19592,
1518,
12,
14241,
1488,
16,
14386,
1769,
4766,
3639,
1923,
21719,
1803,
273,
394,
7074,
21719,
1803,
12,
311,
1769,
1262,
21719,
1803,
273,
394,
4444,
21719,
1803,
12,
311,
16,
14386,
1769,
5397,
804,
3219,
5898,
74,
273,
394,
804,
3219,
2932,
2408,
8078,
2
] |
else return sibling; | while (sibling != null) { node = sibling; sibling = node.getLastChild(); | protected Node getFirstNode (Node node) { if (node == null) return null; else { Node sibling = node.getPreviousSibling(); if (sibling == null) return getFirstNode(node.getParentNode()); else return sibling; } } | 5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/2237e55903828ee9efa6d7f155b85c26e408a4f4/DocumentNavigator.java/buggy/src/java/main/org/jaxen/dom/DocumentNavigator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
4750,
2029,
7521,
907,
261,
907,
756,
13,
7734,
288,
10792,
309,
261,
2159,
422,
446,
13,
13491,
327,
446,
31,
10792,
469,
288,
13491,
2029,
10841,
273,
756,
18,
588,
8351,
10291,
5621,
13491,
309,
261,
22734,
422,
446,
13,
18701,
327,
7521,
907,
12,
2159,
18,
588,
3054,
907,
10663,
13491,
469,
18701,
327,
10841,
31,
10792,
289,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
4750,
2029,
7521,
907,
261,
907,
756,
13,
7734,
288,
10792,
309,
261,
2159,
422,
446,
13,
13491,
327,
446,
31,
10792,
469,
288,
13491,
2029,
10841,
273,
756,
18,
588,
8351,
10291,
5621,
13491,
309,
261,
22734,
422,
446,
13,
18701,
327,
7521,
907,
12,
2159,
18,
588,
3054,
907,
10663,
13491,
469,
18701,
327,
10841,
31,
10792,
289,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jjmatchedKind = 86; return jjMoveStringLiteralDfa1_0(0x0L, 0x40080010000000L); | jjmatchedKind = 85; return jjMoveStringLiteralDfa1_0(0x0L, 0x20040008000000L); | private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 9: return jjStopAtPos(0, 2); case 10: return jjStopAtPos(0, 3); case 12: return jjStopAtPos(0, 5); case 13: return jjStopAtPos(0, 4); case 26: return jjStopAtPos(0, 121); case 32: return jjStopAtPos(0, 1); case 33: jjmatchedKind = 87; return jjMoveStringLiteralDfa1_0(0x0L, 0x40000000L); case 37: jjmatchedKind = 106; return jjMoveStringLiteralDfa1_0(0x0L, 0x20000000000000L); case 38: jjmatchedKind = 103; return jjMoveStringLiteralDfa1_0(0x0L, 0x4000100000000L); case 40: return jjStopAtPos(0, 75); case 41: return jjStopAtPos(0, 76); case 42: jjmatchedKind = 101; return jjMoveStringLiteralDfa1_0(0x0L, 0x1000000000000L); case 43: jjmatchedKind = 99; return jjMoveStringLiteralDfa1_0(0x0L, 0x400200000000L); case 44: return jjStopAtPos(0, 82); case 45: jjmatchedKind = 100; return jjMoveStringLiteralDfa1_0(0x0L, 0x800400000000L); case 46: return jjStartNfaWithStates_0(0, 83, 4); case 47: jjmatchedKind = 102; return jjMoveStringLiteralDfa1_0(0x100L, 0x2000000000000L); case 58: return jjStopAtPos(0, 90); case 59: return jjStopAtPos(0, 81); case 60: jjmatchedKind = 86; return jjMoveStringLiteralDfa1_0(0x0L, 0x40080010000000L); case 61: jjmatchedKind = 84; return jjMoveStringLiteralDfa1_0(0x0L, 0x8000000L); case 62: jjmatchedKind = 85; return jjMoveStringLiteralDfa1_0(0x0L, 0x180300020000000L); case 63: return jjStopAtPos(0, 89); case 91: return jjStopAtPos(0, 79); case 93: return jjStopAtPos(0, 80); case 94: jjmatchedKind = 105; return jjMoveStringLiteralDfa1_0(0x0L, 0x10000000000000L); case 97: return jjMoveStringLiteralDfa1_0(0x8000000000001000L, 0x0L); case 98: return jjMoveStringLiteralDfa1_0(0xe000L, 0x0L); case 99: return jjMoveStringLiteralDfa1_0(0x3f0000L, 0x0L); case 100: return jjMoveStringLiteralDfa1_0(0x1c00000L, 0x0L); case 101: return jjMoveStringLiteralDfa1_0(0x6000000L, 0x0L); case 102: return jjMoveStringLiteralDfa1_0(0xf8000000L, 0x0L); case 103: return jjMoveStringLiteralDfa1_0(0x100000000L, 0x0L); case 105: return jjMoveStringLiteralDfa1_0(0x7e00000000L, 0x0L); case 108: return jjMoveStringLiteralDfa1_0(0x8000000000L, 0x0L); case 110: return jjMoveStringLiteralDfa1_0(0x70000000000L, 0x0L); case 112: return jjMoveStringLiteralDfa1_0(0x780000000000L, 0x0L); case 114: return jjMoveStringLiteralDfa1_0(0x800000000000L, 0x0L); case 115: return jjMoveStringLiteralDfa1_0(0x401f000000000000L, 0x0L); case 116: return jjMoveStringLiteralDfa1_0(0x7e0000000000000L, 0x0L); case 118: return jjMoveStringLiteralDfa1_0(0x1800000000000000L, 0x0L); case 119: return jjMoveStringLiteralDfa1_0(0x2000000000000000L, 0x0L); case 123: return jjStopAtPos(0, 77); case 124: jjmatchedKind = 104; return jjMoveStringLiteralDfa1_0(0x0L, 0x8000080000000L); case 125: return jjStopAtPos(0, 78); case 126: jjmatchedKind = 88; return jjMoveStringLiteralDfa1_0(0x0L, 0x400000000000000L); default : return jjMoveNfa_0(0, 0); }} | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParserTokenManager.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
20,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
2468,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
576,
1769,
1377,
648,
1728,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
890,
1769,
1377,
648,
2593,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
1381,
1769,
1377,
648,
5958,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
1059,
1769,
1377,
648,
10659,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
2593,
21,
1769,
1377,
648,
3847,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
404,
1769,
1377,
648,
13159,
30,
540,
10684,
11073,
5677,
273,
1725,
27,
31,
540,
327,
10684,
7607,
28565,
40,
507,
21,
67,
20,
12,
20,
92,
20,
48,
16,
374,
92,
24,
17877,
48,
1769,
1377,
648,
18091,
30,
540,
10684,
11073,
5677,
273,
1728,
26,
31,
540,
327,
10684,
7607,
28565,
40,
507,
21,
67,
20,
12,
20,
92,
20,
48,
16,
374,
92,
22,
12648,
11706,
48,
1769,
1377,
648,
18012,
30,
540,
10684,
11073,
5677,
273,
1728,
23,
31,
540,
327,
10684,
7607,
28565,
40,
507,
21,
67,
20,
12,
20,
92,
20,
48,
16,
374,
92,
24,
13304,
12648,
48,
1769,
1377,
648,
8063,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
18821,
1769,
1377,
648,
20170,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
22997,
1769,
1377,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
20,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
2468,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
576,
1769,
1377,
648,
1728,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
890,
1769,
1377,
648,
2593,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
1381,
1769,
1377,
648,
5958,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
1059,
1769,
1377,
648,
10659,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
2593,
21,
1769,
1377,
648,
3847,
30,
540,
327,
10684,
4947,
861,
1616,
12,
20,
16,
404,
1769,
1377,
648,
13159,
30,
540,
10684,
11073,
2
] |
public void unparse(XmlaResponse response) { throw new UnsupportedOperationException(); | public void unparse(XmlaResponse response) throws XmlaException { throw new XmlaException( CLIENT_FAULT_FC, HSB_UNSUPPORTED_OPERATION_CODE, HSB_UNSUPPORTED_OPERATION_FAULT_FS, new UnsupportedOperationException("MDSCHEMA_ACTIONS")); | public void unparse(XmlaResponse response) { //TODO throw new UnsupportedOperationException(); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/41e43f806f666da1ff483ebb20820e61433739e2/RowsetDefinition.java/buggy/src/main/mondrian/xmla/RowsetDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
640,
2670,
12,
4432,
69,
1064,
766,
13,
288,
5411,
368,
6241,
5411,
604,
394,
13172,
5621,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
640,
2670,
12,
4432,
69,
1064,
766,
13,
288,
5411,
368,
6241,
5411,
604,
394,
13172,
5621,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ev.REMOVAL); | MutationEvent.REMOVAL); | public void fireDOMNodeRemovedFromDocumentEvent() { AbstractDocument doc = getCurrentDocument(); if (doc.getEventsEnabled()) { DocumentEvent de = (DocumentEvent)doc; MutationEvent ev = (MutationEvent)de.createEvent("MutationEvents"); ev.initMutationEvent("DOMNodeRemovedFromDocument", true, // canBubbleArg false, // cancelableArg null, // relatedNodeArg null, // prevValueArg null, // newValueArg null, // attrNameArg ev.REMOVAL); dispatchEvent(ev); } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/1738c7c3105d8c2ad8b1dd94e89bcbce7aa866f5/AbstractNode.java/buggy/sources/org/apache/batik/dom/AbstractNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4452,
8168,
907,
10026,
1265,
2519,
1133,
1435,
288,
3639,
4115,
2519,
997,
273,
5175,
2519,
5621,
3639,
309,
261,
2434,
18,
588,
3783,
1526,
10756,
288,
5411,
4319,
1133,
443,
273,
261,
2519,
1133,
13,
2434,
31,
5411,
22891,
1133,
2113,
273,
261,
20028,
1133,
13,
323,
18,
2640,
1133,
2932,
20028,
3783,
8863,
5411,
2113,
18,
2738,
20028,
1133,
2932,
8168,
907,
10026,
1265,
2519,
3113,
4766,
638,
16,
282,
368,
848,
38,
14787,
4117,
4766,
629,
16,
225,
368,
3755,
429,
4117,
4766,
446,
16,
282,
368,
3746,
907,
4117,
4766,
446,
16,
282,
368,
2807,
620,
4117,
4766,
446,
16,
282,
368,
6129,
4117,
4766,
446,
16,
282,
368,
11583,
4117,
4766,
22891,
1133,
18,
11122,
2669,
1769,
5411,
15678,
12,
14965,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4452,
8168,
907,
10026,
1265,
2519,
1133,
1435,
288,
3639,
4115,
2519,
997,
273,
5175,
2519,
5621,
3639,
309,
261,
2434,
18,
588,
3783,
1526,
10756,
288,
5411,
4319,
1133,
443,
273,
261,
2519,
1133,
13,
2434,
31,
5411,
22891,
1133,
2113,
273,
261,
20028,
1133,
13,
323,
18,
2640,
1133,
2932,
20028,
3783,
8863,
5411,
2113,
18,
2738,
20028,
1133,
2932,
8168,
907,
10026,
1265,
2519,
3113,
4766,
638,
16,
282,
368,
848,
38,
14787,
4117,
4766,
629,
16,
225,
368,
3755,
429,
4117,
4766,
446,
16,
282,
368,
3746,
907,
4117,
4766,
446,
16,
282,
368,
2807,
620,
4117,
4766,
446,
16,
282,
368,
6129,
4117,
4766,
446,
16,
282,
368,
11583,
4117,
4766,
2
] |
super(name, width, height); | super(name); createActiveObject(); init(width, height); | public CruiseControlApplet(String name, int width, int height) { super(name, width, height); } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/fa5a996c0fc1921a71bd3e973d207e138f215eb8/CruiseControlApplet.java/clean/src/org/objectweb/proactive/examples/cruisecontrol/CruiseControlApplet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
385,
8653,
784,
3367,
23696,
12,
780,
508,
16,
509,
1835,
16,
509,
2072,
13,
288,
565,
2240,
12,
529,
1769,
752,
3896,
921,
5621,
1208,
12,
2819,
16,
2072,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
385,
8653,
784,
3367,
23696,
12,
780,
508,
16,
509,
1835,
16,
509,
2072,
13,
288,
565,
2240,
12,
529,
1769,
752,
3896,
921,
5621,
1208,
12,
2819,
16,
2072,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.RedemptionDate getRedemptionDate() throws FieldNotFound { org.quickfix.field.RedemptionDate value = new org.quickfix.field.RedemptionDate(); | public quickfix.field.RedemptionDate getRedemptionDate() throws FieldNotFound { quickfix.field.RedemptionDate value = new quickfix.field.RedemptionDate(); | public org.quickfix.field.RedemptionDate getRedemptionDate() throws FieldNotFound { org.quickfix.field.RedemptionDate value = new org.quickfix.field.RedemptionDate(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatus.java/buggy/src/java/src/quickfix/fix43/SecurityStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
426,
19117,
375,
1626,
5561,
19117,
375,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
426,
19117,
375,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
426,
19117,
375,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
426,
19117,
375,
1626,
5561,
19117,
375,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
426,
19117,
375,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
426,
19117,
375,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (caa.getClub().getName().startsWith("Tree")) { | if (caa.getClub().getType().hasFlag(MiscType.F_TREE_CLUB)) { | private void resolveClubAttack(ClubAttackAction caa, int lastEntityId) { final Entity ae = game.getEntity(caa.getEntityId()); final Entity te = game.getEntity(caa.getTargetId()); // restore club attack caa.getClub().restore(); if (lastEntityId != caa.getEntityId()) { phaseReport.append("\nPhysical attacks for " + ae.getDisplayName() + "\n"); } phaseReport.append(" " + caa.getClub().getName() + " attack on " + te.getDisplayName()); // should we even bother? if (te.isDestroyed() || te.isDoomed() || te.crew.isDead()) { phaseReport.append(" but the target is already destroyed!\n"); return; } // compute to-hit ToHitData toHit = Compute.toHitClub(game, caa); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { phaseReport.append(", but the attack is impossible (" + toHit.getDesc() + ")\n"); return; } phaseReport.append("; needs " + toHit.getValue() + ", "); // roll int roll = Compute.d6(2); phaseReport.append("rolls " + roll + " : "); // do we hit? if (roll < toHit.getValue()) { phaseReport.append("misses.\n"); return; } int damage = Compute.getClubDamageFor(ae, caa.getClub()); HitData hit = te.rollHitLocation(toHit.getHitTable(), toHit.getSideTable()); phaseReport.append("hits" + toHit.getTableDesc() + " " + te.getLocationAbbr(hit)); phaseReport.append(damageEntity(te, hit, damage)); phaseReport.append("\n"); if (caa.getClub().getName().startsWith("Tree")) { phaseReport.append("The " + caa.getClub().getName() + " breaks.\n"); ae.removeMisc(caa.getClub().getName()); } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/7e09a0683d2835f1ea7a3a7a812e7652ab066c06/Server.java/buggy/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
2009,
373,
3075,
484,
12,
2009,
373,
3075,
484,
1803,
3474,
69,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
5353,
69,
18,
588,
18029,
10663,
3639,
727,
3887,
6489,
273,
7920,
18,
588,
1943,
12,
5353,
69,
18,
588,
2326,
548,
10663,
7734,
368,
5217,
927,
373,
13843,
3639,
3474,
69,
18,
588,
2009,
373,
7675,
13991,
5621,
3639,
309,
261,
2722,
18029,
480,
3474,
69,
18,
588,
18029,
10756,
288,
5411,
6855,
4820,
18,
6923,
31458,
82,
18136,
28444,
364,
315,
397,
14221,
18,
588,
20524,
1435,
397,
1548,
82,
8863,
3639,
289,
3639,
6855,
4820,
18,
6923,
2932,
565,
315,
397,
3474,
69,
18,
588,
2009,
373,
7675,
17994,
1435,
397,
315,
13843,
603,
315,
397,
6489,
18,
588,
20524,
10663,
3639,
368,
1410,
732,
5456,
23440,
35,
3639,
309,
261,
736,
18,
291,
28414,
1435,
747,
6489,
18,
291,
3244,
362,
329,
1435,
747,
6489,
18,
1793,
91,
18,
291,
11852,
10756,
288,
5411,
6855,
4820,
18,
6923,
2932,
1496,
326,
1018,
353,
1818,
17689,
24440,
82,
8863,
5411,
327,
31,
3639,
289,
3639,
368,
3671,
358,
17,
15989,
3639,
2974,
13616,
751,
358,
13616,
273,
8155,
18,
869,
13616,
2009,
373,
12,
13957,
16,
3474,
69,
1769,
3639,
309,
261,
869,
13616,
18,
24805,
1435,
422,
2974,
13616,
751,
18,
3445,
2419,
1260,
13450,
900,
13,
288,
5411,
6855,
4820,
18,
6923,
2932,
16,
1496,
326,
13843,
353,
23343,
7566,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
2009,
373,
3075,
484,
12,
2009,
373,
3075,
484,
1803,
3474,
69,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
5353,
69,
18,
588,
18029,
10663,
3639,
727,
3887,
6489,
273,
7920,
18,
588,
1943,
12,
5353,
69,
18,
588,
2326,
548,
10663,
7734,
368,
5217,
927,
373,
13843,
3639,
3474,
69,
18,
588,
2009,
373,
7675,
13991,
5621,
3639,
309,
261,
2722,
18029,
480,
3474,
69,
18,
588,
18029,
10756,
288,
5411,
6855,
4820,
18,
6923,
31458,
82,
18136,
28444,
364,
315,
397,
14221,
18,
588,
20524,
1435,
397,
1548,
82,
8863,
3639,
289,
3639,
6855,
4820,
18,
6923,
2932,
565,
315,
397,
3474,
69,
18,
2
] |
if (target.getTargetType() == Targetable.TYPE_ENTITY) { | if (target != null && target.getTargetType() == Targetable.TYPE_ENTITY) { | private void resolveChargeAttack(ChargeAttackAction caa, int lastEntityId) { final Entity ae = game.getEntity(caa.getEntityId()); final Targetable target = game.getTarget(caa.getTargetType(), caa.getTargetId()); Entity te = null; if (target.getTargetType() == Targetable.TYPE_ENTITY) { te = (Entity)target; } // Which building takes the damage? Building bldg = game.board.getBuildingAt( target.getPosition() ); // is the attacker dead? because that sure messes up the calculations if (ae == null) { return; } final int direction = ae.getFacing(); // entity isn't charging any more ae.setDisplacementAttack(null); if (lastEntityId != caa.getEntityId()) { phaseReport.append("\nPhysical attacks for " ).append( ae.getDisplayName() ).append( "\n"); } // should we even bother? if ( target.getTargetType() == Targetable.TYPE_ENTITY && ( te == null || te.isDestroyed() || te.isDoomed() || te.crew.isDead() ) ) { phaseReport.append(" Charge cancelled as the target has been destroyed.\n"); return; } // attacker fell down? if (ae.isProne()) { phaseReport.append(" Charge cancelled as the attacker has fallen.\n"); return; } // attacker immobile? if (ae.isImmobile()) { phaseReport.append(" Charge cancelled as the attacker has been immobilized.\n"); return; } phaseReport.append(" Charging " ).append( target.getDisplayName()); // target still in the same position? if (!target.getPosition().equals(caa.getTargetPos())) { phaseReport.append(" but the target has moved.\n"); return; } // compute to-hit ToHitData toHit = Compute.toHitCharge(game, caa); // if the attacker's prone, fudge the roll int roll; if (toHit.getValue() == ToHitData.IMPOSSIBLE) { roll = -12; phaseReport.append(", but the charge is impossible (" ).append( toHit.getDesc() ).append( ") : "); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { phaseReport.append(", the charge is an automatic hit (" ).append( toHit.getDesc() ).append( "), "); roll = Integer.MAX_VALUE; } else { // roll roll = Compute.d6(2); phaseReport.append("; needs " ).append( toHit.getValue() ).append( ", "); phaseReport.append("rolls " ).append( roll ).append( " : "); } // do we hit? if (roll < toHit.getValue()) { Coords src = ae.getPosition(); Coords dest = Compute.getMissedChargeDisplacement(game, ae.getId(), src, direction); // TODO: handle movement into/out of/through a building. Do it here? phaseReport.append("misses.\n"); // move attacker to side hex doEntityDisplacement(ae, src, dest, null); } // Targeting a building. else if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { // The building takes the full brunt of the attack. int damage = Compute.getChargeDamageFor(ae); phaseReport.append( "hits.\n " ) .append( damageBuilding( bldg, damage ) ); // Damage any infantry in the hex. this.damageInfantryIn( bldg, damage ); // Apply damage to the attacker. int toAttacker = Compute.getChargeDamageTakenBy( ae, bldg ); HitData hit = ae.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(target.getPosition(), ae.getPosition(), ae.getFacing(), false) ); phaseReport.append( this.damageEntity( ae, hit, toAttacker ) ) .append( "\n" ); entityUpdate( ae.getId() ); // TODO: Does the attacker enter the building? // TODO: What if the building collapses? } else { // Resolve the damage. resolveChargeDamage( ae, te, toHit, direction ); } return; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/4c21b30c0ed685e8f71ac2e96bd0cf41b4a31ae1/Server.java/buggy/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
17649,
3075,
484,
12,
17649,
3075,
484,
1803,
3474,
69,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
5353,
69,
18,
588,
18029,
10663,
3639,
727,
5916,
429,
1018,
273,
7920,
18,
588,
2326,
12,
5353,
69,
18,
588,
2326,
559,
9334,
3474,
69,
18,
588,
2326,
548,
10663,
3639,
3887,
6489,
273,
446,
31,
3639,
309,
261,
3299,
480,
446,
597,
1018,
18,
588,
2326,
559,
1435,
422,
5916,
429,
18,
2399,
67,
11101,
13,
288,
5411,
6489,
273,
261,
1943,
13,
3299,
31,
3639,
289,
3639,
368,
21918,
10504,
5530,
326,
302,
301,
410,
35,
3639,
3998,
310,
324,
1236,
75,
273,
7920,
18,
3752,
18,
588,
16713,
861,
12,
1018,
18,
588,
2555,
1435,
11272,
7734,
368,
353,
326,
13843,
264,
8363,
35,
225,
2724,
716,
3071,
12755,
281,
731,
326,
20882,
3639,
309,
261,
8906,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
7734,
727,
509,
4068,
273,
14221,
18,
588,
42,
5330,
5621,
7734,
368,
1522,
5177,
1404,
1149,
1998,
1281,
1898,
3639,
14221,
18,
542,
1669,
15917,
3075,
484,
12,
2011,
1769,
7734,
309,
261,
2722,
18029,
480,
3474,
69,
18,
588,
18029,
10756,
288,
5411,
6855,
4820,
18,
6923,
31458,
82,
18136,
28444,
364,
315,
262,
18,
6923,
12,
14221,
18,
588,
20524,
1435,
262,
18,
6923,
12,
1548,
82,
8863,
3639,
289,
7734,
368,
1410,
732,
5456,
23440,
35,
3639,
309,
261,
1018,
18,
588,
2326,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
17649,
3075,
484,
12,
17649,
3075,
484,
1803,
3474,
69,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
5353,
69,
18,
588,
18029,
10663,
3639,
727,
5916,
429,
1018,
273,
7920,
18,
588,
2326,
12,
5353,
69,
18,
588,
2326,
559,
9334,
3474,
69,
18,
588,
2326,
548,
10663,
3639,
3887,
6489,
273,
446,
31,
3639,
309,
261,
3299,
480,
446,
597,
1018,
18,
588,
2326,
559,
1435,
422,
5916,
429,
18,
2399,
67,
11101,
13,
288,
5411,
6489,
273,
261,
1943,
13,
3299,
31,
3639,
289,
3639,
368,
21918,
10504,
5530,
326,
302,
301,
410,
35,
3639,
3998,
310,
324,
1236,
75,
273,
7920,
18,
3752,
2
] |
return RubyFixnum.newFixnum(runtime, cal.get(Calendar.HOUR_OF_DAY)); | return getRuntime().newFixnum(cal.get(Calendar.HOUR_OF_DAY)); | public RubyInteger hour() { return RubyFixnum.newFixnum(runtime, cal.get(Calendar.HOUR_OF_DAY)); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyTime.java/buggy/src/org/jruby/RubyTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
6126,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
771,
18,
588,
12,
7335,
18,
21372,
67,
3932,
67,
10339,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
6126,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
771,
18,
588,
12,
7335,
18,
21372,
67,
3932,
67,
10339,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static double jsFunction_setUTCSeconds(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeTime(thisObj, args, 2, false, funObj); | private double jsFunction_setUTCSeconds(Object[] args) { return makeTime(args, 2, false); | public static double jsFunction_setUTCSeconds(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeTime(thisObj, args, 2, false, funObj); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/1f40b84b6c54487dd6f26829d1ebda36a7567a38/NativeDate.java/clean/js/rhino/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
3828,
2083,
67,
542,
11471,
6762,
12,
1042,
9494,
16,
4766,
5375,
22780,
15261,
16,
4766,
5375,
1033,
8526,
833,
16,
4766,
5375,
4284,
9831,
2675,
13,
565,
288,
3639,
327,
1221,
950,
12,
2211,
2675,
16,
833,
16,
576,
16,
629,
16,
9831,
2675,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
3828,
2083,
67,
542,
11471,
6762,
12,
1042,
9494,
16,
4766,
5375,
22780,
15261,
16,
4766,
5375,
1033,
8526,
833,
16,
4766,
5375,
4284,
9831,
2675,
13,
565,
288,
3639,
327,
1221,
950,
12,
2211,
2675,
16,
833,
16,
576,
16,
629,
16,
9831,
2675,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public BusinessMethod(Class beanClass, MethodSignature signature, boolean isBMT) { | public BusinessMethod(Class beanClass, MethodSignature signature) { | public BusinessMethod(Class beanClass, MethodSignature signature, boolean isBMT) { super(beanClass, signature); this.isBMT = isBMT; } | 47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/ba50d67b83c2294c56385b41579ff21f97e170ab/BusinessMethod.java/buggy/openejb2/modules/core/src/java/org/openejb/sfsb/BusinessMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21759,
1305,
12,
797,
22066,
16,
2985,
5374,
3372,
13,
288,
3639,
2240,
12,
14496,
797,
16,
3372,
1769,
3639,
333,
18,
291,
38,
6152,
273,
27057,
6152,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21759,
1305,
12,
797,
22066,
16,
2985,
5374,
3372,
13,
288,
3639,
2240,
12,
14496,
797,
16,
3372,
1769,
3639,
333,
18,
291,
38,
6152,
273,
27057,
6152,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public boolean isDebugEnabled(); | boolean isDebugEnabled (); | public boolean isDebugEnabled(); | 4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/62d71000b6d84642b07f67c825f685d42190715c/Log.java/buggy/src/java/org/logicalcobwebs/logging/Log.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
4228,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
4228,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void setScope(Scriptable scope) { | public void setScope(Scriptable scope) { | public void setScope(Scriptable scope) { setScopeProvider(IProxy.newScopeProvider(scope)); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/e4c74a91b5c4165a9c90cde4d7b2ddd72e81af8d/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3876,
12,
3651,
429,
2146,
13,
565,
288,
3639,
444,
3876,
2249,
12,
45,
3886,
18,
2704,
3876,
2249,
12,
4887,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3876,
12,
3651,
429,
2146,
13,
565,
288,
3639,
444,
3876,
2249,
12,
45,
3886,
18,
2704,
3876,
2249,
12,
4887,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
update(); } | update(); } | private void doubleClickedTableAssignmentsForKeySequence() { update(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/KeysPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeysPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1645,
27633,
1388,
18628,
19759,
4021,
1435,
288,
202,
202,
2725,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1645,
27633,
1388,
18628,
19759,
4021,
1435,
288,
202,
202,
2725,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
iscExplosion = new IntegerSpinControl(this, SWT.NONE, 0); | iscExplosion = new IntegerSpinControl(this, SWT.NONE, series.getExplosion()); | private void placeComponents() { // Layout for content composite GridLayout glContent = new GridLayout(); glContent.numColumns = 4; glContent.marginHeight = 2; glContent.marginWidth = 4; // Layout for content composite GridLayout glLeaderLine = new GridLayout(); glLeaderLine.numColumns = 4; glLeaderLine.marginHeight = 0; glLeaderLine.marginWidth = 2; // Main content composite this.setLayout(glContent); // Pie Slice Explosion composite Label lblExplosion = new Label(this, SWT.NONE); GridData gdLBLExplosion = new GridData(); lblExplosion.setLayoutData(gdLBLExplosion); lblExplosion.setText(Messages.getString("PieSeriesAttributeComposite.Lbl.Explosion")); //$NON-NLS-1$ iscExplosion = new IntegerSpinControl(this, SWT.NONE, 0); GridData gdISCExplosion = new GridData(GridData.FILL_HORIZONTAL); iscExplosion.setLayoutData(gdISCExplosion); iscExplosion.setMinimum(0); iscExplosion.setMaximum(100); iscExplosion.addListener(this); // Slice outline color composite Label lblSliceOutline = new Label(this, SWT.NONE); GridData gdLBLSliceOutline = new GridData(); lblSliceOutline.setLayoutData(gdLBLSliceOutline); lblSliceOutline.setText(Messages.getString("PieSeriesAttributeComposite.Lbl.SliceOutline")); //$NON-NLS-1$ fccSliceOutline = new FillChooserComposite(this, SWT.NONE, series.getSliceOutline(), false, false); GridData gdFCCSliceOutline = new GridData(GridData.FILL_HORIZONTAL); fccSliceOutline.setLayoutData(gdFCCSliceOutline); fccSliceOutline.addListener(this); // LeaderLine group grpLeaderLine = new Group(this, SWT.NONE); GridData gdGRPLeaderLine = new GridData(GridData.FILL_HORIZONTAL); gdGRPLeaderLine.horizontalSpan = 4; grpLeaderLine.setLayoutData(gdGRPLeaderLine); grpLeaderLine.setLayout(glLeaderLine); grpLeaderLine.setText(Messages.getString("PieSeriesAttributeComposite.Lbl.LeaderLine")); //$NON-NLS-1$ // LeaderLine Attributes composite liacLeaderLine = new LineAttributesComposite(grpLeaderLine, SWT.NONE, series.getLeaderLineAttributes(), true, true, true); GridData gdLIACLeaderLine = new GridData(GridData.FILL_HORIZONTAL); gdLIACLeaderLine.horizontalSpan = 2; gdLIACLeaderLine.verticalSpan = 4; liacLeaderLine.setLayoutData(gdLIACLeaderLine); liacLeaderLine.addListener(this); // Leader Line Style composite Label lblLeaderStyle = new Label(grpLeaderLine, SWT.NONE); GridData gdLBLLeaderStyle = new GridData(); lblLeaderStyle.setLayoutData(gdLBLLeaderStyle); lblLeaderStyle.setText(Messages.getString("PieSeriesAttributeComposite.Lbl.LeaderLineStyle")); //$NON-NLS-1$ cmbLeaderLine = new Combo(grpLeaderLine, SWT.DROP_DOWN | SWT.READ_ONLY); GridData gdCMBLeaderLine = new GridData(GridData.FILL_HORIZONTAL); cmbLeaderLine.setLayoutData(gdCMBLeaderLine); cmbLeaderLine.addSelectionListener(this); // Leader Line Size composite Label lblLeaderSize = new Label(grpLeaderLine, SWT.NONE); GridData gdLBLLeaderSize = new GridData(); lblLeaderSize.setLayoutData(gdLBLLeaderSize); lblLeaderSize.setText(Messages.getString("PieSeriesAttributeComposite.Lbl.LeaderLineSize")); //$NON-NLS-1$ iscLeaderLength = new IntegerSpinControl(grpLeaderLine, SWT.NONE, (int) series.getLeaderLineLength()); GridData gdISCLeaderLength = new GridData(GridData.FILL_HORIZONTAL); iscLeaderLength.setLayoutData(gdISCLeaderLength); iscLeaderLength.setMinimum(0); iscLeaderLength.setMaximum(MAX_LEADER_LENGTH); populateLists(); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4c3f1cb28dd9925df77890697e8cb172fe5ebfe8/PieSeriesAttributeComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/series/PieSeriesAttributeComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
368,
9995,
364,
913,
9635,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
2107,
3380,
273,
1059,
31,
3639,
5118,
1350,
18,
10107,
2686,
273,
576,
31,
3639,
5118,
1350,
18,
10107,
2384,
273,
1059,
31,
3639,
368,
9995,
364,
913,
9635,
3639,
7145,
3744,
5118,
15254,
1670,
273,
394,
7145,
3744,
5621,
3639,
5118,
15254,
1670,
18,
2107,
3380,
273,
1059,
31,
3639,
5118,
15254,
1670,
18,
10107,
2686,
273,
374,
31,
3639,
5118,
15254,
1670,
18,
10107,
2384,
273,
576,
31,
3639,
368,
12740,
913,
9635,
3639,
333,
18,
542,
3744,
12,
7043,
1350,
1769,
3639,
368,
453,
1385,
10506,
7784,
383,
87,
285,
9635,
3639,
5287,
14284,
2966,
383,
87,
285,
273,
394,
5287,
12,
2211,
16,
348,
8588,
18,
9826,
1769,
3639,
7145,
751,
15551,
12995,
48,
2966,
383,
87,
285,
273,
394,
7145,
751,
5621,
3639,
14284,
2966,
383,
87,
285,
18,
542,
3744,
751,
12,
19016,
12995,
48,
2966,
383,
87,
285,
1769,
3639,
14284,
2966,
383,
87,
285,
18,
542,
1528,
12,
5058,
18,
588,
780,
2932,
52,
1385,
6485,
1499,
9400,
18,
48,
3083,
18,
2966,
383,
87,
285,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
353,
71,
2966,
383,
87,
285,
273,
394,
2144,
3389,
267,
3367,
12,
2211,
16,
348,
8588,
18,
9826,
16,
4166,
18,
588,
2966,
383,
87,
285,
10663,
3639,
7145,
751,
15551,
45,
2312,
2966,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
368,
9995,
364,
913,
9635,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
2107,
3380,
273,
1059,
31,
3639,
5118,
1350,
18,
10107,
2686,
273,
576,
31,
3639,
5118,
1350,
18,
10107,
2384,
273,
1059,
31,
3639,
368,
9995,
364,
913,
9635,
3639,
7145,
3744,
5118,
15254,
1670,
273,
394,
7145,
3744,
5621,
3639,
5118,
15254,
1670,
18,
2107,
3380,
273,
1059,
31,
3639,
5118,
15254,
1670,
18,
10107,
2686,
273,
374,
31,
3639,
5118,
15254,
1670,
18,
10107,
2384,
273,
576,
31,
3639,
368,
12740,
913,
9635,
3639,
333,
18,
542,
3744,
12,
7043,
1350,
1769,
3639,
368,
453,
1385,
10506,
7784,
383,
2
] |
markFilterSource.reset(); | source.setBufferLine(buffer, bufferLine, bufferColumn); | private int parseHereDocument(int term, boolean indent) { int c; Node list = null; int linesave = ruby.getSourceLine(); newtok(); switch (term) { case '\'' : case '"' : case '`' : while ((c = nextc()) != term) { tokadd(c); } if (term == '\'') { term = 0; } break; default : c = term; term = '"'; if (!isIdentifierChar(c)) { ph.rb_warn("use of bare << to mean <<\"\" is deprecated"); break; } while (isIdentifierChar(c)) { tokadd(c); c = nextc(); } pushback(c); break; } markFilterSource.mark(); support.readLine(); String eos = tok(); StringBuffer sb = new StringBuffer(); while (true) { // test if the end of file or end of string is reached. String line = support.readLine(); if (line == null) { // error: ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } else if ((indent && line.trim().startsWith(eos)) || line.startsWith(eos)) { if (line.trim().length() == eos.length()) { source.addCurrentLine(); break; } } source.unread(line.length() + 1); while (true) { switch (parse_string(term, '\n', '\n')) { case Token.tSTRING : case Token.tXSTRING : ((RubyString) yyVal).cat("\n"); if (list == null) { sb.append(yyVal.toString()); } else { ph.list_append(list, nf.newStr((RubyObject) yyVal)); } break; case Token.tDSTRING : if (list == null) { list = nf.newDStr(RubyString.newString(ruby, sb.toString())); } /* fall through */ case Token.tDXSTRING : if (list == null) { list = nf.newDXStr(RubyString.newString(ruby, sb.toString())); } ph.list_append((Node) yyVal, nf.newStr(RubyString.newString(ruby, "\n"))); ((StrNodeConvertable) yyVal).convertToStrNode(); yyVal = nf.newList((Node) yyVal); ((Node) yyVal).setNextNode(((Node) yyVal).getHeadNode().getNextNode()); ph.list_concat(list, (Node) yyVal); break; case 0 : // goto error; ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } if (source.isEOL()) { source.addCurrentLine(); break; } } } ph.setLexState(LexState.EXPR_END); ph.setHeredocEnd(ruby.getSourceLine()); ruby.setSourceLine(linesave); markFilterSource.reset(); if (list != null) { list.setLine(linesave + 1); yyVal = list; } switch (term) { case '\0' : case '\'' : case '"' : if (list != null) { return Token.tDSTRING; } yyVal = RubyString.newString(ruby, sb.toString()); return Token.tSTRING; case '`' : if (list != null) { return Token.tDXSTRING; } yyVal = RubyString.newString(ruby, sb.toString()); return Token.tXSTRING; } return 0; } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
26715,
2519,
12,
474,
2481,
16,
1250,
3504,
13,
288,
3639,
509,
276,
31,
3639,
2029,
666,
273,
446,
31,
3639,
509,
2362,
836,
273,
22155,
18,
588,
1830,
1670,
5621,
3639,
394,
17692,
5621,
3639,
1620,
261,
6408,
13,
288,
5411,
648,
15053,
294,
5411,
648,
4754,
294,
5411,
648,
14793,
294,
7734,
1323,
14015,
71,
273,
1024,
71,
10756,
480,
2481,
13,
288,
10792,
946,
1289,
12,
71,
1769,
7734,
289,
7734,
309,
261,
6408,
422,
14118,
6134,
288,
10792,
2481,
273,
374,
31,
7734,
289,
7734,
898,
31,
5411,
805,
294,
7734,
276,
273,
2481,
31,
7734,
2481,
273,
4754,
31,
7734,
309,
16051,
291,
3004,
2156,
12,
71,
3719,
288,
10792,
1844,
18,
6731,
67,
8935,
2932,
1202,
434,
18208,
2296,
358,
3722,
2296,
2412,
2412,
353,
6849,
8863,
10792,
898,
31,
7734,
289,
7734,
1323,
261,
291,
3004,
2156,
12,
71,
3719,
288,
10792,
946,
1289,
12,
71,
1769,
10792,
276,
273,
1024,
71,
5621,
7734,
289,
7734,
1817,
823,
12,
71,
1769,
7734,
898,
31,
3639,
289,
7734,
2267,
1586,
1830,
18,
3355,
5621,
3639,
2865,
18,
896,
1670,
5621,
3639,
514,
425,
538,
273,
946,
5621,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
1323,
261,
3767,
13,
288,
5411,
368,
1842,
309,
326,
679,
434,
585,
578,
679,
434,
533,
353,
8675,
18,
5411,
514,
980,
273,
2865,
18,
896,
1670,
5621,
5411,
309,
261,
1369,
422,
446,
13,
288,
7734,
368,
555,
30,
7734,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
26715,
2519,
12,
474,
2481,
16,
1250,
3504,
13,
288,
3639,
509,
276,
31,
3639,
2029,
666,
273,
446,
31,
3639,
509,
2362,
836,
273,
22155,
18,
588,
1830,
1670,
5621,
3639,
394,
17692,
5621,
3639,
1620,
261,
6408,
13,
288,
5411,
648,
15053,
294,
5411,
648,
4754,
294,
5411,
648,
14793,
294,
7734,
1323,
14015,
71,
273,
1024,
71,
10756,
480,
2481,
13,
288,
10792,
946,
1289,
12,
71,
1769,
7734,
289,
7734,
309,
261,
6408,
422,
14118,
6134,
288,
10792,
2481,
273,
374,
31,
7734,
289,
7734,
898,
31,
5411,
805,
294,
7734,
276,
273,
2481,
31,
7734,
2481,
273,
4754,
31,
7734,
309,
16051,
291,
3004,
2156,
12,
71,
3719,
288,
10792,
2
] |
private static double TimeWithinDay(double t) { | private static double TimeWithinDay(double t) { | private static double TimeWithinDay(double t) { double result; result = t % msPerDay; if (result < 0) result += msPerDay; return result; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/ba8f69355a752cc7402f5b559a19be4d84c54e22/NativeDate.java/clean/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1645,
2647,
18949,
4245,
12,
9056,
268,
13,
288,
3639,
1645,
563,
31,
3639,
563,
273,
268,
738,
4086,
2173,
4245,
31,
3639,
309,
261,
2088,
411,
374,
13,
5411,
563,
1011,
4086,
2173,
4245,
31,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1645,
2647,
18949,
4245,
12,
9056,
268,
13,
288,
3639,
1645,
563,
31,
3639,
563,
273,
268,
738,
4086,
2173,
4245,
31,
3639,
309,
261,
2088,
411,
374,
13,
5411,
563,
1011,
4086,
2173,
4245,
31,
3639,
327,
563,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected Iterator getSetSpecs(Object nativeItem) | public Iterator getSetSpecs(Object nativeItem) | protected Iterator getSetSpecs(Object nativeItem) { HarvestedItemInfo hii = (HarvestedItemInfo) nativeItem; Iterator i = hii.collectionHandles.iterator(); List setSpecs = new LinkedList(); // Convert the DB Handle string 123.456/789 to the OAI-friendly // hdl_123.456/789 while (i.hasNext()) { String handle = "hdl_" + (String) i.next(); setSpecs.add(handle.replace('/', '_')); } return setSpecs.iterator(); } | 31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/9a9b0307b93afcc19694d4cb51db0f653b91a0be/DSpaceRecordFactory.java/clean/dspace/src/org/dspace/app/oai/DSpaceRecordFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
336,
694,
15999,
12,
921,
6448,
1180,
13,
565,
288,
3639,
670,
297,
90,
3149,
1180,
966,
366,
2835,
273,
261,
44,
297,
90,
3149,
1180,
966,
13,
6448,
1180,
31,
3639,
4498,
277,
273,
366,
2835,
18,
5548,
8788,
18,
9838,
5621,
3639,
987,
444,
15999,
273,
394,
10688,
5621,
3639,
368,
4037,
326,
2383,
5004,
533,
17335,
18,
24,
4313,
19,
27,
6675,
358,
326,
531,
18194,
17,
29111,
3639,
368,
366,
5761,
67,
12936,
18,
24,
4313,
19,
27,
6675,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
3639,
288,
5411,
514,
1640,
273,
315,
76,
5761,
9548,
397,
261,
780,
13,
277,
18,
4285,
5621,
5411,
444,
15999,
18,
1289,
12,
4110,
18,
2079,
2668,
19,
2187,
4427,
10019,
3639,
289,
3639,
327,
444,
15999,
18,
9838,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
336,
694,
15999,
12,
921,
6448,
1180,
13,
565,
288,
3639,
670,
297,
90,
3149,
1180,
966,
366,
2835,
273,
261,
44,
297,
90,
3149,
1180,
966,
13,
6448,
1180,
31,
3639,
4498,
277,
273,
366,
2835,
18,
5548,
8788,
18,
9838,
5621,
3639,
987,
444,
15999,
273,
394,
10688,
5621,
3639,
368,
4037,
326,
2383,
5004,
533,
17335,
18,
24,
4313,
19,
27,
6675,
358,
326,
531,
18194,
17,
29111,
3639,
368,
366,
5761,
67,
12936,
18,
24,
4313,
19,
27,
6675,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
3639,
288,
5411,
514,
1640,
273,
315,
76,
5761,
9548,
397,
261,
780,
13,
277,
18,
4285,
5621,
5411,
444,
15999,
18,
1289,
12,
4110,
2
] |
signals.print( chars ); | signals.write( chars, 0, chars.length ); | public void sendJavaScriptEventCmd( String contextID, String appletID, int objid, String event, int [] types, String [] args ) { Main.debug( "sendJavaScriptEventCmd, contextID = " + contextID + " event = " + event ); String objstr = new String("" + objid); int length = contextID.length() + appletID.length() + event.length() + objstr.length() + 6; String [] typestrings = null; if (types != null) { typestrings = new String[args.length]; for (int i = 0; i < types.length; i++) { typestrings[i] = new String("" + types[i]); length += 2 + typestrings[i].length() + args[i].length(); Main.debug( "sendJavaScriptEventCmd, length = " + length); } } char[] chars = new char[ length + 8 ]; //for length of message char[] tmpchar = getPaddedLength( length ); int index = 0; System.arraycopy( tmpchar, 0, chars, index, tmpchar.length ); index += tmpchar.length; chars[index++] = (char) JavaScriptEvent; chars[index++] = sep; tmpchar = contextID.toCharArray(); System.arraycopy( tmpchar, 0, chars, index, tmpchar.length ); index += tmpchar.length; chars[index++] = sep; tmpchar = appletID.toCharArray(); System.arraycopy( tmpchar, 0, chars, index, tmpchar.length ); index += tmpchar.length; chars[index++] = sep; tmpchar = objstr.toCharArray(); System.arraycopy( tmpchar, 0, chars, index, tmpchar.length ); index += tmpchar.length; chars[index++] = sep; tmpchar = event.toCharArray(); System.arraycopy( tmpchar, 0, chars, index, tmpchar.length ); index += tmpchar.length; chars[index++] = sep; if (types != null) for (int i = 0; i < types.length; i++) { tmpchar = typestrings[i].toCharArray(); System.arraycopy( tmpchar, 0, chars, index, tmpchar.length ); index += tmpchar.length; chars[index++] = sep; tmpchar = args[i].toCharArray(); System.arraycopy( tmpchar, 0, chars, index, tmpchar.length ); index += tmpchar.length; Main.debug( "sendJavaScriptEventCmd, index = " + index); chars[index++] = sep; } signals.print( chars ); } | 1818 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1818/f1b4160f1700cec17ae2e13eda4a85e3de61650b/KJASProtocolHandler.java/buggy/khtml/java/org/kde/kjas/server/KJASProtocolHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
16634,
1133,
5931,
12,
514,
819,
734,
16,
514,
21853,
734,
16,
509,
1081,
350,
16,
514,
871,
16,
509,
5378,
1953,
16,
514,
5378,
833,
262,
565,
288,
3639,
12740,
18,
4148,
12,
315,
4661,
16634,
1133,
5931,
16,
819,
734,
273,
315,
397,
819,
734,
397,
315,
871,
273,
315,
397,
871,
11272,
3639,
514,
1081,
701,
273,
394,
514,
2932,
6,
397,
1081,
350,
1769,
3639,
509,
769,
273,
819,
734,
18,
2469,
1435,
397,
21853,
734,
18,
2469,
1435,
397,
871,
18,
2469,
1435,
397,
1081,
701,
18,
2469,
1435,
397,
1666,
31,
3639,
514,
5378,
1953,
371,
87,
273,
446,
31,
3639,
309,
261,
2352,
480,
446,
13,
288,
5411,
1953,
371,
87,
273,
394,
514,
63,
1968,
18,
2469,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
7734,
1953,
371,
87,
63,
77,
65,
273,
394,
514,
2932,
6,
397,
1953,
63,
77,
19226,
7734,
769,
1011,
576,
397,
1953,
371,
87,
63,
77,
8009,
2469,
1435,
397,
833,
63,
77,
8009,
2469,
5621,
7734,
12740,
18,
4148,
12,
315,
4661,
16634,
1133,
5931,
16,
769,
273,
315,
397,
769,
1769,
5411,
289,
3639,
289,
3639,
1149,
8526,
5230,
273,
394,
1149,
63,
769,
397,
1725,
308,
31,
368,
1884,
769,
434,
883,
3639,
1149,
8526,
1853,
3001,
273,
1689,
9665,
1782,
12,
769,
11272,
3639,
509,
770,
273,
374,
31,
3639,
2332,
18,
1126,
3530,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
16634,
1133,
5931,
12,
514,
819,
734,
16,
514,
21853,
734,
16,
509,
1081,
350,
16,
514,
871,
16,
509,
5378,
1953,
16,
514,
5378,
833,
262,
565,
288,
3639,
12740,
18,
4148,
12,
315,
4661,
16634,
1133,
5931,
16,
819,
734,
273,
315,
397,
819,
734,
397,
315,
871,
273,
315,
397,
871,
11272,
3639,
514,
1081,
701,
273,
394,
514,
2932,
6,
397,
1081,
350,
1769,
3639,
509,
769,
273,
819,
734,
18,
2469,
1435,
397,
21853,
734,
18,
2469,
1435,
397,
871,
18,
2469,
1435,
397,
1081,
701,
18,
2469,
1435,
397,
1666,
31,
3639,
514,
5378,
1953,
371,
87,
273,
446,
31,
3639,
309,
261,
2352,
480,
446,
13,
288,
5411,
2
] |
Class widestClass = returningMethod.getReturnType(); | private Class returnedObjectType(Object javaResult, Method returningMethod) { Class narrowestClass = javaResult.getClass(); Class widestClass = returningMethod.getReturnType(); if (narrowestClass.isPrimitive()) { return narrowestClass; } if (widestClass.isPrimitive()) { return widestClass; } Asserts.assertExpression(widestClass.isAssignableFrom(narrowestClass)); if (Modifier.isPublic(narrowestClass.getModifiers())) { return narrowestClass; } if (widestClass.isInterface()) { return widestClass; } // If there is any interface on the narrowest that isn't on the widest, // then we should use that. The theory is that this should minimize information // loss. (This theory is open to discussion ;-) Iterator narrowestClassInterfaces = Arrays.asList(narrowestClass.getInterfaces()).iterator(); List widestClassInterfaces = Arrays.asList(widestClass.getInterfaces()); while (narrowestClassInterfaces.hasNext()) { Class iface = (Class) narrowestClassInterfaces.next(); if (! widestClassInterfaces.contains(iface)) { return iface; } } while (true) { narrowestClass = narrowestClass.getSuperclass(); Asserts.assertExpression(narrowestClass != null); if (Modifier.isPublic(narrowestClass.getModifiers())) { return narrowestClass; } } } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/092ef8d477c373203f77b7d727ecd57bebff2cb7/JavaMethod.java/buggy/org/jruby/javasupport/JavaMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1659,
2106,
17610,
12,
921,
2252,
1253,
16,
2985,
5785,
1305,
13,
288,
3639,
1659,
17383,
395,
797,
273,
2252,
1253,
18,
588,
797,
5621,
9079,
309,
261,
82,
7815,
395,
797,
18,
291,
9840,
10756,
288,
5411,
327,
17383,
395,
797,
31,
3639,
289,
3639,
309,
261,
30902,
395,
797,
18,
291,
9840,
10756,
288,
5411,
327,
15481,
395,
797,
31,
3639,
289,
3639,
5452,
87,
18,
11231,
2300,
12,
30902,
395,
797,
18,
291,
7961,
1265,
12,
82,
7815,
395,
797,
10019,
3639,
309,
261,
9829,
18,
291,
4782,
12,
82,
7815,
395,
797,
18,
588,
11948,
1435,
3719,
288,
5411,
327,
17383,
395,
797,
31,
3639,
289,
3639,
309,
261,
30902,
395,
797,
18,
291,
1358,
10756,
288,
5411,
327,
15481,
395,
797,
31,
3639,
289,
3639,
368,
971,
1915,
353,
1281,
1560,
603,
326,
17383,
395,
716,
5177,
1404,
603,
326,
15481,
395,
16,
3639,
368,
1508,
732,
1410,
999,
716,
18,
1021,
326,
630,
353,
716,
333,
1410,
18935,
1779,
3639,
368,
8324,
18,
261,
2503,
326,
630,
353,
1696,
358,
14716,
274,
17,
13,
3639,
4498,
17383,
395,
797,
10273,
273,
5647,
18,
345,
682,
12,
82,
7815,
395,
797,
18,
588,
10273,
1435,
2934,
9838,
5621,
3639,
987,
15481,
395,
797,
10273,
273,
5647,
18,
345,
682,
12,
30902,
395,
797,
18,
588,
10273,
10663,
3639,
1323,
261,
82,
7815,
395,
797,
10273,
18,
5332,
2134,
10756,
288,
5411,
1659,
9751,
273,
261,
797,
13,
17383,
395,
797,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1659,
2106,
17610,
12,
921,
2252,
1253,
16,
2985,
5785,
1305,
13,
288,
3639,
1659,
17383,
395,
797,
273,
2252,
1253,
18,
588,
797,
5621,
9079,
309,
261,
82,
7815,
395,
797,
18,
291,
9840,
10756,
288,
5411,
327,
17383,
395,
797,
31,
3639,
289,
3639,
309,
261,
30902,
395,
797,
18,
291,
9840,
10756,
288,
5411,
327,
15481,
395,
797,
31,
3639,
289,
3639,
5452,
87,
18,
11231,
2300,
12,
30902,
395,
797,
18,
291,
7961,
1265,
12,
82,
7815,
395,
797,
10019,
3639,
309,
261,
9829,
18,
291,
4782,
12,
82,
7815,
395,
797,
18,
588,
11948,
1435,
3719,
288,
5411,
327,
17383,
395,
797,
31,
3639,
289,
3639,
309,
261,
30902,
395,
797,
18,
2
] | |
if ( iType == TEXT || bCategoryScale || !la.isSetVisible( ) || ( la.isSetVisible( ) && !la.isVisible( ) ) ) | if ( iType == TEXT || bCategoryScale ) | public final boolean checkFit( IDisplayServer xs, Label la, int iLabelLocation ) throws ChartException { if ( iType == TEXT || bCategoryScale || !la.isSetVisible( ) || ( la.isSetVisible( ) && !la.isVisible( ) ) ) { return true; } final double dAngleInDegrees = la.getCaption( ) .getFont( ) .getRotation( ); double x = 0, y = 0; int iPointToCheck = 0; if ( iLabelLocation == ABOVE || iLabelLocation == BELOW ) { iPointToCheck = ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) ? 3 : 0; } else if ( iLabelLocation == LEFT || iLabelLocation == RIGHT ) { iPointToCheck = ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) ? 2 : 3; } double[] da = daTickCoordinates; RotatedRectangle rrPrev = null, rr; if ( ( iType & ( NUMERICAL | LINEAR ) ) == ( NUMERICAL | LINEAR ) ) { double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); final double dAxisStep = asDouble( getStep( ) ).doubleValue( ); String sText; DecimalFormat df = null; if ( fs == null ) // CREATE IF FORMAT SPECIFIER IS UNDEFINED { df = new DecimalFormat( getNumericPattern( ) ); } final NumberDataElement nde = NumberDataElementImpl.create( 0 ); for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = NULL_STRING; } if ( iLabelLocation == ABOVE || iLabelLocation == BELOW ) { x = da[i]; } else if ( iLabelLocation == LEFT || iLabelLocation == RIGHT ) { y = da[i]; } la.getCaption( ).setValue( sText ); try { rr = computePolygon( xs, iLabelLocation, la, x, y ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, uiex ); } Point p = rr.getPoint( iPointToCheck ); if ( rrPrev != null && ( rrPrev.contains( p ) || rrPrev.getPoint( iPointToCheck ).equals( p ) || rr.intersects( rrPrev.getBounds2D( ) ) ) ) { return false; } rrPrev = rr; dAxisValue += dAxisStep; } } else if ( ( iType & ( NUMERICAL | LOGARITHMIC ) ) == ( NUMERICAL | LOGARITHMIC ) ) { double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); final double dAxisStep = asDouble( getStep( ) ).doubleValue( ); String sText; NumberDataElement nde = NumberDataElementImpl.create( 0 ); DecimalFormat df = null; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); if ( fs == null ) { df = new DecimalFormat( getNumericPattern( dAxisValue ) ); } try { sText = ValueFormatter.format( nde, fs, rtc.getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = NULL_STRING; } if ( iLabelLocation == ABOVE || iLabelLocation == BELOW ) { x = da[i]; } else if ( iLabelLocation == LEFT || iLabelLocation == RIGHT ) { y = da[i]; } la.getCaption( ).setValue( sText ); try { rr = computePolygon( xs, iLabelLocation, la, x, y ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, uiex ); } Point p = rr.getPoint( iPointToCheck ); if ( rrPrev != null && ( rrPrev.contains( p ) || rrPrev.getPoint( iPointToCheck ) .equals( p ) ) ) { return false; } rrPrev = rr; dAxisValue *= dAxisStep; } } else if ( iType == DATE_TIME ) { CDateTime cdt, cdtAxisValue = asDateTime( oMinimum ); final int iUnit = asInteger( oUnit ); final int iStep = asInteger( oStep ); final SimpleDateFormat sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); String sText; cdt = cdtAxisValue; for ( int i = 0; i < da.length; i++ ) { sText = sdf.format( cdt.getTime( ) ); if ( iLabelLocation == ABOVE || iLabelLocation == BELOW ) x = da[i]; else if ( iLabelLocation == LEFT || iLabelLocation == RIGHT ) y = da[i]; la.getCaption( ).setValue( sText ); try { rr = computePolygon( xs, iLabelLocation, la, x, y ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, uiex ); } Point p = rr.getPoint( iPointToCheck ); if ( rrPrev != null && ( rrPrev.contains( p ) || rrPrev.getPoint( iPointToCheck ) .equals( p ) ) ) { return false; } rrPrev = rr; cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } return true; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/182fcab9c52ef8329f8a890b447af46f1182dac3/AutoScale.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
866,
14219,
12,
1599,
291,
1601,
2081,
9280,
16,
5287,
7125,
16,
1082,
202,
474,
277,
2224,
2735,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
277,
559,
422,
9204,
9506,
202,
20081,
324,
4457,
5587,
9506,
202,
20081,
401,
11821,
18,
291,
694,
6207,
12,
262,
9506,
202,
20081,
261,
7125,
18,
291,
694,
6207,
12,
262,
597,
401,
11821,
18,
291,
6207,
12,
262,
262,
262,
202,
202,
95,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
6385,
1645,
302,
8467,
382,
24400,
273,
7125,
18,
588,
21158,
12,
262,
9506,
202,
18,
588,
5711,
12,
262,
9506,
202,
18,
588,
14032,
12,
11272,
202,
202,
9056,
619,
273,
374,
16,
677,
273,
374,
31,
202,
202,
474,
277,
2148,
18126,
273,
374,
31,
202,
202,
430,
261,
277,
2224,
2735,
422,
432,
5315,
3412,
747,
277,
2224,
2735,
422,
9722,
4130,
262,
202,
202,
95,
1082,
202,
77,
2148,
18126,
273,
261,
302,
8467,
382,
24400,
411,
374,
597,
302,
8467,
382,
24400,
405,
300,
9349,
262,
692,
890,
6862,
202,
30,
374,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
277,
2224,
2735,
422,
9686,
747,
277,
2224,
2735,
422,
13135,
262,
202,
202,
95,
1082,
202,
77,
2148,
18126,
273,
261,
302,
8467,
382,
24400,
411,
374,
597,
302,
8467,
382,
24400,
405,
300,
9349,
262,
692,
576,
6862,
202,
30,
890,
31,
202,
202,
97,
202,
202,
9056,
8526,
5248,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
866,
14219,
12,
1599,
291,
1601,
2081,
9280,
16,
5287,
7125,
16,
1082,
202,
474,
277,
2224,
2735,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
277,
559,
422,
9204,
9506,
202,
20081,
324,
4457,
5587,
9506,
202,
20081,
401,
11821,
18,
291,
694,
6207,
12,
262,
9506,
202,
20081,
261,
7125,
18,
291,
694,
6207,
12,
262,
597,
401,
11821,
18,
291,
6207,
12,
262,
262,
262,
202,
202,
95,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
6385,
1645,
302,
8467,
382,
24400,
273,
7125,
18,
588,
21158,
12,
262,
9506,
202,
18,
588,
5711,
12,
262,
9506,
202,
18,
588,
14032,
12,
11272,
202,
202,
9056,
619,
2
] |
hit.setValue("LSUB (" + attributes + ") \"/\" " + ImapFolder.encodeFolder((String) hit.getKey())); | hit.setValue("LSUB (" + attributes + ") \"/\" " + ImapFolder.encodeFolder(hit.getKey())); | boolean doLSUB(String tag, List args) throws IOException { if (!checkState(tag, ImapSession.STATE_AUTHENTICATED)) return CONTINUE_PROCESSING; String referenceName = (String) args.remove(0); String mailboxName = (String) args.remove(0); String pattern = mailboxName; if (!mailboxName.startsWith("/")) { if (referenceName.endsWith("/")) pattern = referenceName + mailboxName; else pattern = referenceName + '/' + mailboxName; } if (pattern.startsWith("/")) pattern = pattern.substring(1); try { Map subs; synchronized (mMailbox) { subs = mSession.getMatchingSubscriptions(mMailbox, pattern); for (Iterator it = subs.entrySet().iterator(); it.hasNext(); ) { Map.Entry hit = (Map.Entry) it.next(); Folder folder = null; try { folder = mMailbox.getFolderByPath(getContext(), (String) hit.getKey()); } catch (MailServiceException.NoSuchItemException nsie) { } // FIXME: need to determine "name attributes" for mailbox (\Marked, \Unmarked, \Noinferiors, \Noselect) boolean visible = hit.getValue() != null && ImapFolder.isFolderVisible(folder); String attributes = visible ? getFolderAttributes(folder) : "\\Noselect"; hit.setValue("LSUB (" + attributes + ") \"/\" " + ImapFolder.encodeFolder((String) hit.getKey())); } } for (Iterator it = subs.values().iterator(); it.hasNext(); ) sendUntagged((String) it.next()); } catch (ServiceException e) { ZimbraLog.imap.warn("LSUB failed", e); sendNO(tag, "LSUB failed"); return canContinue(e); } sendNotifications(true, false); sendOK(tag, "LSUB completed"); return CONTINUE_PROCESSING; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/49ca13d426414afffeb718d2859c5e5fc0febf00/ImapHandler.java/clean/ZimbraServer/src/java/com/zimbra/cs/imap/ImapHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
741,
3045,
3457,
12,
780,
1047,
16,
987,
833,
13,
1216,
1860,
288,
3639,
309,
16051,
1893,
1119,
12,
2692,
16,
467,
1458,
2157,
18,
7998,
67,
25114,
6344,
3719,
5411,
327,
8020,
26725,
67,
16560,
1360,
31,
3639,
514,
2114,
461,
273,
261,
780,
13,
833,
18,
4479,
12,
20,
1769,
3639,
514,
14187,
461,
282,
273,
261,
780,
13,
833,
18,
4479,
12,
20,
1769,
3639,
514,
1936,
273,
14187,
461,
31,
3639,
309,
16051,
4408,
2147,
461,
18,
17514,
1190,
2932,
4898,
3719,
288,
5411,
309,
261,
6180,
461,
18,
5839,
1190,
2932,
4898,
3719,
225,
1936,
273,
2114,
461,
397,
14187,
461,
31,
5411,
469,
17311,
1936,
273,
2114,
461,
397,
2023,
397,
14187,
461,
31,
3639,
289,
3639,
309,
261,
4951,
18,
17514,
1190,
2932,
4898,
3719,
5411,
1936,
273,
1936,
18,
28023,
12,
21,
1769,
3639,
775,
288,
5411,
1635,
11630,
31,
5411,
3852,
261,
81,
30239,
13,
288,
7734,
11630,
273,
312,
2157,
18,
588,
9517,
15440,
12,
81,
30239,
16,
1936,
1769,
7734,
364,
261,
3198,
518,
273,
11630,
18,
4099,
694,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
10792,
1635,
18,
1622,
6800,
273,
261,
863,
18,
1622,
13,
518,
18,
4285,
5621,
10792,
12623,
3009,
273,
446,
31,
10792,
775,
288,
13491,
3009,
273,
312,
30239,
18,
588,
3899,
16736,
12,
29120,
9334,
261,
780,
13,
6800,
18,
588,
653,
10663,
10792,
289,
1044,
261,
6759,
15133,
18,
28341,
1180,
503,
3153,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
741,
3045,
3457,
12,
780,
1047,
16,
987,
833,
13,
1216,
1860,
288,
3639,
309,
16051,
1893,
1119,
12,
2692,
16,
467,
1458,
2157,
18,
7998,
67,
25114,
6344,
3719,
5411,
327,
8020,
26725,
67,
16560,
1360,
31,
3639,
514,
2114,
461,
273,
261,
780,
13,
833,
18,
4479,
12,
20,
1769,
3639,
514,
14187,
461,
282,
273,
261,
780,
13,
833,
18,
4479,
12,
20,
1769,
3639,
514,
1936,
273,
14187,
461,
31,
3639,
309,
16051,
4408,
2147,
461,
18,
17514,
1190,
2932,
4898,
3719,
288,
5411,
309,
261,
6180,
461,
18,
5839,
1190,
2932,
4898,
3719,
225,
1936,
273,
2114,
461,
397,
14187,
461,
31,
5411,
469,
17311,
1936,
273,
2114,
461,
397,
2023,
397,
2
] |
} | } | private int decodeRequest( Msg msg, BaseRequest req, Channel ch, Endpoint ep ) throws IOException { // Translate the HTTP method code to a String. byte methodCode = msg.getByte(); String mName=methodTransArray[(int)methodCode - 1]; req.method().setString(mName); msg.getBytes(req.protocol()); msg.getBytes(req.requestURI()); msg.getBytes(req.remoteAddr()); msg.getBytes(req.remoteHost()); msg.getBytes(req.serverName()); req.setServerPort(msg.getInt()); boolean isSSL = msg.getByte() != 0; if( isSSL ) req.setSecure( true ); decodeHeaders( ep, msg, req ); decodeAttributes( ep, msg, req ); if(req.getSecure() ) { req.setScheme(req.SCHEME_HTTPS); } // set cookies on request now that we have all headers req.cookies().setHeaders(req.headers()); // Check to see if there should be a body packet coming along // immediately after if(req.getContentLength() > 0) { Msg postMsg=(Msg)ep.getNote( postMsgNote ); if( postMsg==null ) { postMsg=new MsgAjp(); ep.setNote( postMsgNote, postMsg ); } /* Read present data */ int err = postMsg.receive(ch, ep); } if (dL > 5) { d(req.toString()); } return OK; } | 10630 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10630/96f1a6663827b85d9160ab66abf0293c89ad55a7/HandlerRequest.java/buggy/java/org/apache/jk/common/HandlerRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2495,
691,
12,
8671,
1234,
16,
3360,
691,
1111,
16,
5307,
462,
16,
1171,
9079,
6961,
5529,
262,
3639,
1216,
1860,
565,
288,
3639,
368,
16820,
326,
2239,
707,
981,
358,
279,
514,
18,
3639,
1160,
707,
1085,
273,
1234,
18,
588,
3216,
5621,
3639,
514,
312,
461,
33,
2039,
1429,
1076,
63,
12,
474,
13,
2039,
1085,
300,
404,
15533,
3639,
1111,
18,
2039,
7675,
542,
780,
12,
81,
461,
1769,
3639,
1234,
18,
588,
2160,
12,
3658,
18,
8373,
10663,
540,
1234,
18,
588,
2160,
12,
3658,
18,
2293,
3098,
10663,
3639,
1234,
18,
588,
2160,
12,
3658,
18,
7222,
3178,
10663,
3639,
1234,
18,
588,
2160,
12,
3658,
18,
7222,
2594,
10663,
3639,
1234,
18,
588,
2160,
12,
3658,
18,
3567,
461,
10663,
3639,
1111,
18,
542,
2081,
2617,
12,
3576,
18,
588,
1702,
10663,
3639,
1250,
353,
6745,
273,
1234,
18,
588,
3216,
1435,
480,
374,
31,
3639,
309,
12,
353,
6745,
262,
1111,
18,
542,
12834,
12,
638,
11272,
3639,
2495,
3121,
12,
5529,
16,
1234,
16,
1111,
11272,
3639,
2495,
2498,
12,
5529,
16,
1234,
16,
1111,
11272,
3639,
309,
12,
3658,
18,
588,
12834,
1435,
262,
288,
5411,
1111,
18,
542,
9321,
12,
3658,
18,
22870,
67,
18657,
1769,
3639,
289,
3639,
368,
444,
7237,
603,
590,
2037,
716,
732,
1240,
777,
1607,
3639,
1111,
18,
16240,
7675,
542,
3121,
12,
3658,
18,
2485,
10663,
202,
759,
2073,
358,
2621,
309,
1915,
1410,
506,
279,
1417,
4414,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2495,
691,
12,
8671,
1234,
16,
3360,
691,
1111,
16,
5307,
462,
16,
1171,
9079,
6961,
5529,
262,
3639,
1216,
1860,
565,
288,
3639,
368,
16820,
326,
2239,
707,
981,
358,
279,
514,
18,
3639,
1160,
707,
1085,
273,
1234,
18,
588,
3216,
5621,
3639,
514,
312,
461,
33,
2039,
1429,
1076,
63,
12,
474,
13,
2039,
1085,
300,
404,
15533,
3639,
1111,
18,
2039,
7675,
542,
780,
12,
81,
461,
1769,
3639,
1234,
18,
588,
2160,
12,
3658,
18,
8373,
10663,
540,
1234,
18,
588,
2160,
12,
3658,
18,
2293,
3098,
10663,
3639,
1234,
18,
588,
2160,
12,
3658,
18,
7222,
3178,
10663,
3639,
1234,
18,
588,
2160,
12,
3658,
18,
7222,
2594,
10663,
3639,
2
] |
iVisited.accept(_Payload); | _Payload.visitBlockPassNode(iVisited); | public void visitBlockPassNode(BlockPassNode iVisited) { iVisited.accept(_Payload); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/buggy/org/jruby/nodes/visitor/DefaultIteratorVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1768,
6433,
907,
12,
1768,
6433,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1768,
6433,
907,
12,
1768,
6433,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public ProgressExamplesPlugin(IPluginDescriptor descriptor) { super(descriptor); | public ProgressExamplesPlugin() { super(); | public ProgressExamplesPlugin(IPluginDescriptor descriptor) { super(descriptor); plugin = this; try { resourceBundle= ResourceBundle.getBundle("ProgressExamples.ProgressExamplesPluginResources"); } catch (MissingResourceException x) { resourceBundle = null; } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c96c4f274dd5c81e1339f85c32a8a6669c73643f/ProgressExamplesPlugin.java/clean/examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/ProgressExamplesPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10980,
23905,
3773,
12,
45,
3773,
3187,
4950,
13,
288,
202,
202,
9565,
12,
12628,
1769,
202,
202,
4094,
273,
333,
31,
202,
202,
698,
288,
1082,
202,
3146,
3405,
33,
19198,
18,
588,
3405,
2932,
5491,
23905,
18,
5491,
23905,
3773,
3805,
8863,
202,
202,
97,
1044,
261,
4841,
14785,
619,
13,
288,
1082,
202,
3146,
3405,
273,
446,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10980,
23905,
3773,
12,
45,
3773,
3187,
4950,
13,
288,
202,
202,
9565,
12,
12628,
1769,
202,
202,
4094,
273,
333,
31,
202,
202,
698,
288,
1082,
202,
3146,
3405,
33,
19198,
18,
588,
3405,
2932,
5491,
23905,
18,
5491,
23905,
3773,
3805,
8863,
202,
202,
97,
1044,
261,
4841,
14785,
619,
13,
288,
1082,
202,
3146,
3405,
273,
446,
31,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
targetMolecule=addFragments(ringAtomContainer, targetMolecule); | targetMolecule=addFragments(ringAtomContainer, targetMolecule,mainMolecule); | private IMolecule addPathFragments(IAtomContainer addAtomContainer,IMolecule targetMolecule, IMolecule mainMolecule){ IAtomContainer ringAtomContainer=null; IAtom[] atoms=null; //1. check if linker atom is member of a ring system //2. check if heteroatoms bonded to a non ring linker atom should be included //3. check if exocyclic double or triple bonded atoms to linker schould be included for (int i=0;i<addAtomContainer.getAtomCount();i++){ if (addAtomContainer.getAtomAt(i).getFlag(CDKConstants.ISINRING)&& !targetMolecule.contains(addAtomContainer.getAtomAt(i))){ //Find all Ring atoms and add them for (int j = 0; j < this.ringFragments.size(); j++) { ringAtomContainer = RingSetManipulator.getAllInOneContainer((IRingSet) this.ringFragments.get(j)); if (ringAtomContainer.contains(addAtomContainer.getAtomAt(i))){ targetMolecule=addFragments(ringAtomContainer, targetMolecule); break; } } }else if((this.sidechainHetatoms || this.exocyclicDoubleBonds) && !addAtomContainer.getAtomAt(i).getFlag(CDKConstants.ISINRING) && !targetMolecule.contains(addAtomContainer.getAtomAt(i))){ atoms=mainMolecule.getConnectedAtoms(addAtomContainer.getAtomAt(i)); targetMolecule.addAtom(addAtomContainer.getAtomAt(i)); for (int j = 0; j < atoms.length; j++) { //System.out.println("HETATOM:"+atoms[j].getSymbol()); if (this.sidechainHetatoms && !(atoms[j].getSymbol()).equals("C") && !(atoms[j].getSymbol()).equals("H") && !targetMolecule.contains(atoms[j])){ //System.out.println("HETATOM TRUE"); targetMolecule.addAtom(atoms[j]); } if (this.sidechainHetatoms && mainMolecule.getBond(atoms[j],addAtomContainer.getAtomAt(i)).getOrder()>1 && !targetMolecule.contains(atoms[j])){ targetMolecule.addAtom(atoms[j]); } } }else{ if (!targetMolecule.contains(addAtomContainer.getAtomAt(i))){ targetMolecule.addAtom(addAtomContainer.getAtomAt(i)); } } } return targetMolecule; } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/e8596183762fc081502a8f33a4339e76bf2fcd99/GenerateFragments.java/clean/src/org/openscience/cdk/tools/GenerateFragments.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6246,
10545,
25505,
27588,
12,
45,
3641,
2170,
527,
3641,
2170,
16,
3445,
10545,
1018,
29669,
16,
6246,
10545,
2774,
29669,
15329,
202,
202,
45,
3641,
2170,
9221,
3641,
2170,
33,
2011,
31,
202,
202,
45,
3641,
8526,
9006,
33,
2011,
31,
9506,
202,
759,
21,
18,
866,
309,
28058,
3179,
353,
3140,
434,
279,
9221,
2619,
202,
202,
759,
22,
18,
866,
309,
366,
847,
83,
14937,
324,
265,
785,
358,
279,
1661,
9221,
28058,
3179,
1410,
506,
5849,
202,
202,
759,
23,
18,
866,
309,
431,
504,
93,
18964,
1645,
578,
14543,
324,
265,
785,
9006,
358,
28058,
18551,
1006,
506,
5849,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
1289,
3641,
2170,
18,
588,
3641,
1380,
5621,
77,
27245,
95,
25083,
202,
430,
261,
1289,
3641,
2170,
18,
588,
3641,
861,
12,
77,
2934,
588,
4678,
12,
39,
3398,
2918,
18,
5127,
706,
54,
1360,
13,
10,
10,
401,
3299,
29669,
18,
12298,
12,
1289,
3641,
2170,
18,
588,
3641,
861,
12,
77,
3719,
15329,
9506,
202,
759,
3125,
777,
25463,
9006,
471,
527,
2182,
4697,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
333,
18,
8022,
27588,
18,
1467,
5621,
525,
27245,
288,
6862,
202,
8022,
3641,
2170,
273,
25463,
694,
27587,
18,
588,
1595,
382,
3335,
2170,
12443,
7937,
310,
694,
13,
333,
18,
8022,
27588,
18,
588,
12,
78,
10019,
6862,
202,
430,
261,
8022,
3641,
2170,
18,
12298,
12,
1289,
3641,
2170,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6246,
10545,
25505,
27588,
12,
45,
3641,
2170,
527,
3641,
2170,
16,
3445,
10545,
1018,
29669,
16,
6246,
10545,
2774,
29669,
15329,
202,
202,
45,
3641,
2170,
9221,
3641,
2170,
33,
2011,
31,
202,
202,
45,
3641,
8526,
9006,
33,
2011,
31,
9506,
202,
759,
21,
18,
866,
309,
28058,
3179,
353,
3140,
434,
279,
9221,
2619,
202,
202,
759,
22,
18,
866,
309,
366,
847,
83,
14937,
324,
265,
785,
358,
279,
1661,
9221,
28058,
3179,
1410,
506,
5849,
202,
202,
759,
23,
18,
866,
309,
431,
504,
93,
18964,
1645,
578,
14543,
324,
265,
785,
9006,
358,
28058,
18551,
1006,
506,
5849,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
1289,
2
] |
hexChars[0] = s.charAt(++i); hexChars[1] = s.charAt(++i); | hexChars[0] = s.charAt(++i); hexChars[1] = s.charAt(++i); | public static String decode(String s) throws URLEncodedFormatException { if (s.length()==0) return ""; int len = s.length(); StringBuffer buf = new StringBuffer(); for (int i = 0; i < len; i++) { char c = s.charAt(i); if (Character.isLetterOrDigit(c)) buf.append(c); else if (c == '+') buf.append(' '); else if (safeCharList.indexOf(c) != -1) buf.append(c); else if (c == '%') { if (i >= len - 2) { throw new URLEncodedFormatException(s); } else { char[] hexChars = new char[2]; hexChars[0] = s.charAt(++i); hexChars[1] = s.charAt(++i); String hexval = new String(hexChars); try { long read = Fields.hexToLong(hexval); if (read == 0) throw new URLEncodedFormatException("Can't encode" + " 00"); buf.append(new Character((char) read)); } catch (NumberFormatException nfe) { throw new URLEncodedFormatException(s); } } } else buf.append(c); // throw new URLEncodedFormatException(s); } return buf.toString(); } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/144c6fa8b4af3023cb6f0c50203b29af750a73e7/URLDecoder.java/buggy/src/freenet/support/URLDecoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2495,
12,
780,
272,
13,
1216,
1976,
10397,
9291,
288,
202,
430,
261,
87,
18,
2469,
1435,
631,
20,
13,
327,
1408,
31,
202,
474,
562,
273,
272,
18,
2469,
5621,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
202,
565,
1149,
276,
273,
272,
18,
3001,
861,
12,
77,
1769,
202,
565,
309,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
71,
3719,
202,
202,
4385,
18,
6923,
12,
71,
1769,
202,
565,
469,
309,
261,
71,
422,
15126,
6134,
202,
202,
4385,
18,
6923,
2668,
28005,
202,
565,
469,
309,
261,
4626,
2156,
682,
18,
31806,
12,
71,
13,
480,
300,
21,
13,
202,
202,
4385,
18,
6923,
12,
71,
1769,
202,
565,
469,
309,
261,
71,
422,
1995,
6134,
288,
202,
202,
430,
261,
77,
1545,
562,
300,
576,
13,
288,
377,
1082,
565,
604,
394,
1976,
10397,
9291,
12,
87,
1769,
202,
202,
97,
469,
288,
1082,
565,
1149,
8526,
3827,
7803,
273,
394,
1149,
63,
22,
15533,
1082,
565,
3827,
7803,
63,
20,
65,
273,
272,
18,
3001,
861,
12,
9904,
77,
1769,
1082,
565,
3827,
7803,
63,
21,
65,
273,
272,
18,
3001,
861,
12,
9904,
77,
1769,
1082,
565,
514,
3827,
1125,
273,
394,
514,
12,
7118,
7803,
1769,
1082,
565,
775,
288,
13491,
1525,
855,
273,
7190,
18,
7118,
30220,
12,
7118,
1125,
1769,
13491,
309,
261,
896,
422,
374,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2495,
12,
780,
272,
13,
1216,
1976,
10397,
9291,
288,
202,
430,
261,
87,
18,
2469,
1435,
631,
20,
13,
327,
1408,
31,
202,
474,
562,
273,
272,
18,
2469,
5621,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
202,
565,
1149,
276,
273,
272,
18,
3001,
861,
12,
77,
1769,
202,
565,
309,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
71,
3719,
202,
202,
4385,
18,
6923,
12,
71,
1769,
202,
565,
469,
309,
261,
71,
422,
15126,
6134,
202,
202,
4385,
18,
6923,
2668,
28005,
202,
565,
469,
309,
261,
4626,
2156,
682,
18,
31806,
12,
71,
2
] |
ariresult.resultingview.flowtoken = errorstatemanager.allocateToken(); | ariresult.resultingview.flowtoken = errorstatemanager .allocateToken(); | public ViewParameters handle() { ThreadErrorState.beginRequest(); final String actionmethod = PostDecoder.decodeAction(normalizedmap); try { // invoke all state-altering operations within the runnable wrapper. postwrapper.wrapRunnable(new Runnable() { public void run() { if (viewparams.flowtoken != null) { presmanager.restore(viewparams.flowtoken, viewparams.endflow != null); } try { rsvcapplier.applyValues(requestrsvc); // many errors possible here. if (actionmethod != null) { actionresult = rsvcapplier.invokeAction(actionmethod); } } catch (Exception exception) { RSFActionHandler.this.exception = exception; } Object newcode = actionerrorstrategy.handleError( actionresult instanceof String ? (String) actionresult : null, exception, null, viewparams.viewID); if (newcode != null) actionresult = newcode; // must interpret ARI INSIDE the wrapper, since it may need it // on closure. if (actionresult instanceof ARIResult) { ariresult = (ARIResult) actionresult; } else { ActionResultInterpreter ari = ariresolver .getActionResultInterpreter(); ariresult = ari.interpretActionResult(viewparams, actionresult); } } }).run(); if (!ariresult.propagatebeans.equals(ARIResult.FLOW_END)) { // TODO: consider whether we want to allow ARI to allocate a NEW TOKEN // for a FLOW FORK. Some call this, "continuations". if (ariresult.resultingview.flowtoken == null) { if (ariresult.propagatebeans.equals(ARIResult.FLOW_START)) { // if the ARI wanted one and hasn't allocated one, allocate flow // token. ariresult.resultingview.flowtoken = errorstatemanager.allocateToken(); } else { // else assume existing flow continues. if (viewparams.flowtoken == null) { throw new IllegalStateException("Cannot propagate flow state without active flow"); } ariresult.resultingview.flowtoken = viewparams.flowtoken; } } // On a FLOW_START, **ONLY** the flow state itself is to be saved, // since any other existing bean state will be non-flow or end-flow. presmanager.preserve(ariresult.resultingview.flowtoken, ariresult.propagatebeans.equals(ARIResult.FLOW_START)); } else { // it is a flow end. ariresult.resultingview.endflow = "1"; if (viewparams.flowtoken != null) { presmanager.flowEnd(viewparams.flowtoken); } } // moved inside since this may itself cause an error! String submitting = PostDecoder.decodeSubmittingControl(normalizedmap); errorstatemanager.globaltargetid = submitting; } catch (Exception e) { Logger.log.error("Error invoking action", e); // ThreadErrorState.addError(new TargettedMessage( // CoreMessages.GENERAL_ACTION_ERROR)); // Detect failure to fill out arires properly. if (ariresult == null || ariresult.resultingview == null || e instanceof IllegalStateException) { ariresult = new ARIResult(); ariresult.propagatebeans = ARIResult.FLOW_END; ViewParameters defaultparameters = ves.handleException(e, viewparams); ariresult.resultingview = defaultparameters; } } String errortoken = errorstatemanager.requestComplete(); ariresult.resultingview.errortoken = errortoken; return ariresult.resultingview; } | 29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/ca3eb5b8c15df69f88c6c9646f8a5db22ace7adb/RSFActionHandler.java/clean/rsf-core/core/src/uk/org/ponder/rsf/processor/RSFActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4441,
2402,
1640,
1435,
288,
565,
4884,
668,
1119,
18,
10086,
691,
5621,
565,
727,
514,
1301,
2039,
273,
5616,
7975,
18,
3922,
1803,
12,
17762,
1458,
1769,
565,
775,
288,
1377,
368,
4356,
777,
919,
17,
22628,
310,
5295,
3470,
326,
14685,
4053,
18,
1377,
1603,
8376,
18,
4113,
20013,
12,
2704,
10254,
1435,
288,
3639,
1071,
918,
1086,
1435,
288,
1850,
309,
261,
1945,
2010,
18,
2426,
2316,
480,
446,
13,
288,
5411,
4075,
4181,
18,
13991,
12,
1945,
2010,
18,
2426,
2316,
16,
7734,
1476,
2010,
18,
409,
2426,
480,
446,
1769,
1850,
289,
1850,
775,
288,
5411,
3597,
4227,
438,
5742,
18,
9010,
1972,
12,
4523,
281,
28007,
4227,
1769,
368,
4906,
1334,
3323,
2674,
18,
5411,
309,
261,
1128,
2039,
480,
446,
13,
288,
2868,
1301,
2088,
273,
3597,
4227,
438,
5742,
18,
14407,
1803,
12,
1128,
2039,
1769,
5411,
289,
1850,
289,
1850,
1044,
261,
503,
1520,
13,
288,
5411,
14746,
42,
1803,
1503,
18,
2211,
18,
4064,
273,
1520,
31,
1850,
289,
1850,
1033,
394,
710,
273,
1301,
1636,
14914,
18,
4110,
668,
12,
2868,
1301,
2088,
1276,
514,
692,
261,
780,
13,
1301,
2088,
5375,
294,
446,
16,
1520,
16,
446,
16,
1476,
2010,
18,
1945,
734,
1769,
1850,
309,
261,
2704,
710,
480,
446,
13,
1301,
2088,
273,
394,
710,
31,
1850,
368,
1297,
10634,
432,
2259,
2120,
26498,
326,
4053,
16,
3241,
518,
2026,
1608,
518,
1850,
368,
603,
7213,
18,
1850,
309,
261,
1128,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4441,
2402,
1640,
1435,
288,
565,
4884,
668,
1119,
18,
10086,
691,
5621,
565,
727,
514,
1301,
2039,
273,
5616,
7975,
18,
3922,
1803,
12,
17762,
1458,
1769,
565,
775,
288,
1377,
368,
4356,
777,
919,
17,
22628,
310,
5295,
3470,
326,
14685,
4053,
18,
1377,
1603,
8376,
18,
4113,
20013,
12,
2704,
10254,
1435,
288,
3639,
1071,
918,
1086,
1435,
288,
1850,
309,
261,
1945,
2010,
18,
2426,
2316,
480,
446,
13,
288,
5411,
4075,
4181,
18,
13991,
12,
1945,
2010,
18,
2426,
2316,
16,
7734,
1476,
2010,
18,
409,
2426,
480,
446,
1769,
1850,
289,
1850,
775,
288,
5411,
3597,
4227,
438,
5742,
18,
9010,
1972,
12,
4523,
281,
28007,
4227,
1769,
368,
4906,
1334,
2
] |
public ASTMethod() | public ASTMethod(IParameterizedSymbol symbol, List parameters, IASTAbstractDeclaration returnType, IASTExceptionSpecification exception, int startOffset, int nameOffset, IASTTemplate ownerTemplate, List references, boolean isConstructor, boolean isDestructor, boolean isPureVirtual, ASTAccessVisibility visibility ) | public ASTMethod() { super(); // TODO Auto-generated constructor stub } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/4824b20cdc8d49e986db9895b96e931ad252a409/ASTMethod.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/ASTMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9183,
1305,
12,
45,
15696,
5335,
3273,
16,
987,
1472,
16,
467,
9053,
7469,
6094,
9424,
16,
467,
9053,
503,
8615,
1520,
16,
509,
18245,
16,
509,
508,
2335,
16,
467,
9053,
2283,
3410,
2283,
16,
987,
5351,
16,
1250,
353,
6293,
16,
1250,
353,
6305,
8813,
280,
16,
1250,
353,
13645,
6466,
16,
9183,
1862,
10135,
9478,
262,
565,
288,
3639,
2240,
5621,
3639,
368,
2660,
8064,
17,
11168,
3885,
7168,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9183,
1305,
12,
45,
15696,
5335,
3273,
16,
987,
1472,
16,
467,
9053,
7469,
6094,
9424,
16,
467,
9053,
503,
8615,
1520,
16,
509,
18245,
16,
509,
508,
2335,
16,
467,
9053,
2283,
3410,
2283,
16,
987,
5351,
16,
1250,
353,
6293,
16,
1250,
353,
6305,
8813,
280,
16,
1250,
353,
13645,
6466,
16,
9183,
1862,
10135,
9478,
262,
565,
288,
3639,
2240,
5621,
3639,
368,
2660,
8064,
17,
11168,
3885,
7168,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public LicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 0, 2, 1, 1.0, 0.0); gbConstraints.insets = new Insets(5, 5, 5, 5); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(infoLabel, gbConstraints); add(infoLabel); textArea = new JTextArea(licence); textArea.setCaretPosition(0); textArea.setEditable(false); textArea.setLineWrap(true); textArea.setWrapStyleWord(true); scroller = new JScrollPane(textArea); parent.buildConstraints(gbConstraints, 0, 1, 2, 1, 1.0, 1.0); gbConstraints.anchor = GridBagConstraints.CENTER; gbConstraints.fill = GridBagConstraints.BOTH; layout.addLayoutComponent(scroller, gbConstraints); add(scroller); agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING); parent.buildConstraints(gbConstraints, 0, 2, 2, 1, 1.0, 0.0); gbConstraints.fill = GridBagConstraints.NONE; gbConstraints.anchor = GridBagConstraints.SOUTHWEST; layout.addLayoutComponent(agreeLabel, gbConstraints); add(agreeLabel); ButtonGroup group = new ButtonGroup(); yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false); group.add(yesRadio); parent.buildConstraints(gbConstraints, 0, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHWEST; layout.addLayoutComponent(yesRadio, gbConstraints); add(yesRadio); yesRadio.addActionListener(this); noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false); group.add(noRadio); parent.buildConstraints(gbConstraints, 1, 3, 1, 1, 0.5, 0.0); gbConstraints.anchor = GridBagConstraints.NORTHEAST; layout.addLayoutComponent(noRadio, gbConstraints); add(noRadio); noRadio.addActionListener(this); } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/95bf184084817e28f3314235b2783ff0239c47e0/LicencePanel.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/panels/LicencePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
511,
335,
802,
5537,
12,
18678,
3219,
982,
16,
10284,
751,
612,
396,
15329,
9565,
12,
2938,
16,
612,
396,
1769,
759,
1660,
4046,
3134,
3511,
6741,
273,
394,
7145,
5013,
3744,
5621,
4490,
4878,
273,
394,
13075,
5621,
542,
3744,
12,
6741,
1769,
759,
1660,
1262,
326,
328,
335,
1331,
292,
6189,
48,
335,
802,
5621,
759,
1660,
1378,
3134,
4085,
1376,
2224,
273,
394,
21403,
12,
2938,
18,
4936,
2920,
18,
588,
780,
2932,
48,
335,
802,
5537,
18,
1376,
6,
3631,
982,
18,
14516,
18,
588,
2040,
5554,
2932,
8189,
6,
3631,
21403,
18,
20060,
2627,
1360,
1769,
2938,
18,
3510,
4878,
12,
4490,
4878,
16,
374,
16,
374,
16,
576,
16,
404,
16,
404,
18,
20,
16,
374,
18,
20,
1769,
4490,
4878,
18,
267,
4424,
273,
394,
22300,
12,
25,
16,
1381,
16,
1381,
16,
1381,
1769,
4490,
4878,
18,
5935,
273,
13075,
18,
9826,
31,
4490,
4878,
18,
16215,
273,
13075,
18,
3584,
5844,
31285,
31,
6741,
18,
1289,
3744,
1841,
12,
1376,
2224,
16,
21649,
4878,
1769,
1289,
12,
1376,
2224,
1769,
955,
5484,
273,
394,
804,
1528,
5484,
12,
80,
335,
802,
1769,
955,
5484,
18,
542,
39,
20731,
2555,
12,
20,
1769,
955,
5484,
18,
542,
15470,
12,
5743,
1769,
955,
5484,
18,
542,
1670,
2964,
12,
3767,
1769,
955,
5484,
18,
542,
2964,
2885,
3944,
12,
3767,
1769,
1017,
1539,
273,
394,
804,
26360,
12,
955,
5484,
1769,
2938,
18,
3510,
4878,
12,
4490,
4878,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
511,
335,
802,
5537,
12,
18678,
3219,
982,
16,
10284,
751,
612,
396,
15329,
9565,
12,
2938,
16,
612,
396,
1769,
759,
1660,
4046,
3134,
3511,
6741,
273,
394,
7145,
5013,
3744,
5621,
4490,
4878,
273,
394,
13075,
5621,
542,
3744,
12,
6741,
1769,
759,
1660,
1262,
326,
328,
335,
1331,
292,
6189,
48,
335,
802,
5621,
759,
1660,
1378,
3134,
4085,
1376,
2224,
273,
394,
21403,
12,
2938,
18,
4936,
2920,
18,
588,
780,
2932,
48,
335,
802,
5537,
18,
1376,
6,
3631,
982,
18,
14516,
18,
588,
2040,
5554,
2932,
8189,
6,
3631,
21403,
18,
20060,
2627,
1360,
1769,
2938,
18,
3510,
4878,
12,
4490,
4878,
16,
374,
16,
374,
16,
576,
16,
404,
16,
404,
2
] | ||
private static HighlightInfo checkSameErasureNotSubsignature( | private static void checkSameErasureNotSubsignature( | private static HighlightInfo checkSameErasureNotSubsignature( final MethodSignatureBackedByPsiMethod signatureToCheck, final Map<MethodSignature, MethodSignatureBackedByPsiMethod> toCheckSubsignature, final HierarchicalMethodSignature superSignature, final PsiClass aClass, final PsiMethod superMethod, final List<HighlightInfo> methodHighlights, HighlightInfo classHighliht) { MethodSignatureBackedByPsiMethod toCheck = toCheckSubsignature.get(signatureToCheck); final PsiMethod checkMethod = toCheck.getMethod(); if (checkMethod.isConstructor()) { if (!superMethod.isConstructor() || !checkMethod.getContainingClass().equals(superMethod.getContainingClass())) return null; } else if (superMethod.isConstructor()) return null; if (checkMethod.hasModifierProperty(PsiModifier.STATIC)) { if (!checkMethod.getContainingClass().equals(superMethod.getContainingClass())) return null; } if (!MethodSignatureUtil.isSubsignature(superSignature, toCheck)) { PsiMethod method1 = signatureToCheck.getMethod(); if (aClass.equals(method1.getContainingClass())) { boolean sameClass = method1.getContainingClass().equals(superMethod.getContainingClass()); methodHighlights.add(getSameErasureMessage(sameClass, method1, superMethod)); } else if (classHighliht == null) { final String descr = JavaErrorMessages.message( "generics.methods.have.same.erasure.override", HighlightMethodUtil.createClashMethodMessage(method1, superMethod, true) ); TextRange textRange = com.intellij.codeInsight.ClassUtil.getClassDeclarationTextRange(aClass); classHighliht = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, textRange, descr); } } return classHighliht; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/bbd4b25ddd0535d5fd7779efbca5ff54b9d97150/GenericsHighlightUtil.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/GenericsHighlightUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
866,
8650,
29228,
3619,
1248,
1676,
8195,
12,
565,
727,
2985,
5374,
2711,
18696,
52,
7722,
1305,
3372,
18126,
16,
565,
727,
1635,
32,
1305,
5374,
16,
2985,
5374,
2711,
18696,
52,
7722,
1305,
34,
358,
1564,
1676,
8195,
16,
565,
727,
28267,
1305,
5374,
2240,
5374,
16,
565,
727,
453,
7722,
797,
20148,
16,
565,
727,
453,
7722,
1305,
2240,
1305,
16,
565,
727,
987,
32,
16205,
966,
34,
707,
16205,
87,
16,
565,
31386,
966,
667,
8573,
549,
647,
13,
288,
565,
2985,
5374,
2711,
18696,
52,
7722,
1305,
358,
1564,
273,
358,
1564,
1676,
8195,
18,
588,
12,
8195,
18126,
1769,
565,
727,
453,
7722,
1305,
866,
1305,
273,
358,
1564,
18,
588,
1305,
5621,
565,
309,
261,
1893,
1305,
18,
291,
6293,
10756,
288,
1377,
309,
16051,
9565,
1305,
18,
291,
6293,
1435,
747,
401,
1893,
1305,
18,
588,
24344,
797,
7675,
14963,
12,
9565,
1305,
18,
588,
24344,
797,
1435,
3719,
327,
446,
31,
565,
289,
469,
309,
261,
9565,
1305,
18,
291,
6293,
10756,
327,
446,
31,
565,
309,
261,
1893,
1305,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
288,
1377,
309,
16051,
1893,
1305,
18,
588,
24344,
797,
7675,
14963,
12,
9565,
1305,
18,
588,
24344,
797,
1435,
3719,
327,
446,
31,
565,
289,
565,
309,
16051,
1305,
5374,
1304,
18,
291,
1676,
8195,
12,
9565,
5374,
16,
358,
1564,
3719,
288,
1377,
453,
7722,
1305,
707,
21,
273,
3372,
18126,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
866,
8650,
29228,
3619,
1248,
1676,
8195,
12,
565,
727,
2985,
5374,
2711,
18696,
52,
7722,
1305,
3372,
18126,
16,
565,
727,
1635,
32,
1305,
5374,
16,
2985,
5374,
2711,
18696,
52,
7722,
1305,
34,
358,
1564,
1676,
8195,
16,
565,
727,
28267,
1305,
5374,
2240,
5374,
16,
565,
727,
453,
7722,
797,
20148,
16,
565,
727,
453,
7722,
1305,
2240,
1305,
16,
565,
727,
987,
32,
16205,
966,
34,
707,
16205,
87,
16,
565,
31386,
966,
667,
8573,
549,
647,
13,
288,
565,
2985,
5374,
2711,
18696,
52,
7722,
1305,
358,
1564,
273,
358,
1564,
1676,
8195,
18,
588,
12,
8195,
18126,
1769,
565,
727,
453,
7722,
1305,
866,
1305,
273,
358,
1564,
18,
2
] |
offset++; | public char read() { int length = buf.length(); char c; if (length > 0) { c = buf.charAt(length - 1); buf.deleteCharAt(length - 1); } else { c = wrappedRead(); // EOF...Do not advance column...Go straight to jail if (c == 0) { offset++; return c; } } // Reset column back to zero on first read of a line (note it will be- // come '1' by the time it leaves read(). if (nextCharIsOnANewLine) { nextCharIsOnANewLine = false; column = 0; } offset++; column++; if (c == '\n') { line++; // Since we are not reading off of unread buffer we must at the // end of a new line for the first time. Add it. if (length < 1) { lineWidths.add(new Integer(column)); } nextCharIsOnANewLine = true; } return c; } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/67a441c8ea70c9532cdedb2001a6741b63e793ae/LexerSource.java/buggy/src/org/jruby/lexer/yacc/LexerSource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1149,
855,
1435,
288,
377,
202,
474,
769,
273,
1681,
18,
2469,
5621,
377,
202,
3001,
276,
31,
377,
202,
377,
202,
430,
261,
2469,
405,
374,
13,
288,
377,
202,
202,
71,
273,
1681,
18,
3001,
861,
12,
2469,
300,
404,
1769,
377,
202,
202,
4385,
18,
3733,
2156,
861,
12,
2469,
300,
404,
1769,
377,
202,
97,
469,
288,
377,
202,
202,
71,
273,
5805,
1994,
5621,
13491,
368,
6431,
2777,
3244,
486,
8312,
1057,
2777,
5741,
21251,
358,
525,
671,
5411,
309,
261,
71,
422,
374,
13,
288,
27573,
327,
276,
31,
5411,
289,
377,
202,
97,
377,
202,
759,
7151,
1057,
1473,
358,
3634,
603,
1122,
855,
434,
279,
980,
261,
7652,
518,
903,
506,
17,
377,
202,
759,
12404,
296,
21,
11,
635,
326,
813,
518,
15559,
855,
7675,
377,
202,
430,
261,
4285,
2156,
2520,
1398,
1258,
359,
1670,
13,
288,
377,
202,
202,
4285,
2156,
2520,
1398,
1258,
359,
1670,
273,
629,
31,
377,
202,
202,
2827,
273,
374,
31,
377,
202,
97,
377,
202,
377,
202,
377,
202,
2827,
9904,
31,
377,
202,
430,
261,
71,
422,
2337,
82,
6134,
288,
377,
202,
202,
1369,
9904,
31,
377,
202,
202,
759,
7897,
732,
854,
486,
6453,
3397,
434,
19541,
1613,
732,
1297,
622,
326,
377,
202,
202,
759,
679,
434,
279,
394,
980,
364,
326,
1122,
813,
18,
225,
1436,
518,
18,
377,
202,
202,
430,
261,
2469,
411,
404,
13,
288,
377,
1082,
202,
1369,
22407,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1149,
855,
1435,
288,
377,
202,
474,
769,
273,
1681,
18,
2469,
5621,
377,
202,
3001,
276,
31,
377,
202,
377,
202,
430,
261,
2469,
405,
374,
13,
288,
377,
202,
202,
71,
273,
1681,
18,
3001,
861,
12,
2469,
300,
404,
1769,
377,
202,
202,
4385,
18,
3733,
2156,
861,
12,
2469,
300,
404,
1769,
377,
202,
97,
469,
288,
377,
202,
202,
71,
273,
5805,
1994,
5621,
13491,
368,
6431,
2777,
3244,
486,
8312,
1057,
2777,
5741,
21251,
358,
525,
671,
5411,
309,
261,
71,
422,
374,
13,
288,
27573,
327,
276,
31,
5411,
289,
377,
202,
97,
377,
202,
759,
7151,
1057,
1473,
358,
3634,
603,
1122,
855,
434,
279,
980,
261,
7652,
518,
2
] | |
WorkbenchPlugin.log(e.getMessage()); | WorkbenchPlugin.log(getClass(), "addView(String)", e); | public void addView(String viewId) { if (pageLayout.checkPartInLayout(viewId)) return; try { IViewDescriptor descriptor = viewFactory.getViewRegistry().find( viewId); if (WorkbenchActivityHelper.filterItem(descriptor)) { //create a placeholder instead. addPlaceholder(viewId); LayoutHelper.addViewActivator(pageLayout, viewId); } else { ViewPane newPart = LayoutHelper.createView(pageLayout .getViewFactory(), viewId); linkPartToPageLayout(viewId, newPart); folder.add(newPart); } } catch (PartInitException e) { // cannot safely open the dialog so log the problem WorkbenchPlugin.log(e.getMessage()); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6d5bc21a1271b84a206c6b7fb658da51015489ce/FolderLayout.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FolderLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
1767,
12,
780,
1476,
548,
13,
288,
3639,
309,
261,
2433,
3744,
18,
1893,
1988,
382,
3744,
12,
1945,
548,
3719,
5411,
327,
31,
3639,
775,
288,
5411,
467,
1767,
3187,
4950,
273,
1476,
1733,
18,
588,
1767,
4243,
7675,
4720,
12,
10792,
1476,
548,
1769,
5411,
309,
261,
2421,
22144,
6193,
2276,
18,
2188,
1180,
12,
12628,
3719,
288,
7734,
368,
2640,
279,
6695,
3560,
18,
7734,
527,
14038,
12,
1945,
548,
1769,
7734,
9995,
2276,
18,
1289,
1767,
12241,
639,
12,
2433,
3744,
16,
1476,
548,
1769,
5411,
289,
469,
288,
7734,
4441,
8485,
394,
1988,
273,
9995,
2276,
18,
2640,
1767,
12,
2433,
3744,
13491,
263,
588,
1767,
1733,
9334,
1476,
548,
1769,
7734,
1692,
1988,
774,
1964,
3744,
12,
1945,
548,
16,
394,
1988,
1769,
7734,
3009,
18,
1289,
12,
2704,
1988,
1769,
5411,
289,
3639,
289,
1044,
261,
1988,
2570,
503,
425,
13,
288,
5411,
368,
2780,
15303,
1696,
326,
6176,
1427,
613,
326,
6199,
5411,
4147,
22144,
3773,
18,
1330,
12,
588,
797,
9334,
315,
1289,
1767,
12,
780,
2225,
16,
425,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
1767,
12,
780,
1476,
548,
13,
288,
3639,
309,
261,
2433,
3744,
18,
1893,
1988,
382,
3744,
12,
1945,
548,
3719,
5411,
327,
31,
3639,
775,
288,
5411,
467,
1767,
3187,
4950,
273,
1476,
1733,
18,
588,
1767,
4243,
7675,
4720,
12,
10792,
1476,
548,
1769,
5411,
309,
261,
2421,
22144,
6193,
2276,
18,
2188,
1180,
12,
12628,
3719,
288,
7734,
368,
2640,
279,
6695,
3560,
18,
7734,
527,
14038,
12,
1945,
548,
1769,
7734,
9995,
2276,
18,
1289,
1767,
12241,
639,
12,
2433,
3744,
16,
1476,
548,
1769,
5411,
289,
469,
288,
7734,
4441,
8485,
394,
1988,
273,
9995,
2276,
18,
2640,
1767,
12,
2433,
3744,
13491,
263,
588,
1767,
1733,
9334,
1476,
548,
2
] |
while ( matcher.contains ( input, patData ) ) { | while ( dataMatcher.find() ) { | private void setFilter(Perl5Pattern patComment, Perl5Pattern patData, Vector vStrings) throws IOException, BadFilterException { MatchResult result; Perl5Matcher matcher = new Perl5Matcher(); PatternMatcherInput input; LDAPFilter tmpFilter = null; input = new PatternMatcherInput ( m_strLine ); if ( ! ( matcher.contains ( input, patComment ) ) ) { input.setCurrentOffset(input.getBeginOffset()); // System.out.println ( "\nNEW LINE: " + m_strLine ); if ( ! vStrings.isEmpty() ) { vStrings.removeAllElements(); } while ( matcher.contains ( input, patData ) ) { // Within this while loop, we're looking for // all the data tokens. Our regular // expression is setup to look for words // separated by whitespace or sets of // characters in quotataion marks. A remnant // of the regexp is that we have two // backreferences, only one will have data at // any time. result = matcher.getMatch(); for ( int i = 1; i <=2; i++ ) { if ( result.group(i) != null ) { if ( ! result.group(i).equals ( "" ) ) { //System.out.println ( "Match #" + i + // ": \"" + result.group(i) + "\"" ); vStrings.addElement ( result.group(i)); } } } } switch ( vStrings.size() ) { case 1: // If the current filter set is not null, // add it to the filter set vector. if ( m_tmpFilterSet != null ) { m_vFilterSet.addElement ( m_tmpFilterSet ); } // Now create a new filterset. m_tmpFilterSet = new LDAPIntFilterSet ( (String)vStrings.elementAt ( 0 ) ); break; // Two tokens mens we're the the second (or // higher line in a token. We need to append // the information stored in the list onto // the tmpFilter. case 2: if ( ( m_strLastMatchPattern != null ) && ( m_strLastDelimiter != null ) ) { tmpFilter = new LDAPFilter( m_strLastMatchPattern, m_strLastDelimiter, (String)vStrings.elementAt ( 0 ), (String)vStrings.elementAt ( 1 ), DEFAULT_SCOPE ); tmpFilter.setLine ( m_nLine ); if ( m_tmpFilterSet != null ) { m_tmpFilterSet.appendFilter ( tmpFilter ); } else { throw MakeException ( "Attempting to add a filter to a null filterset" ); } } else { throw MakeException ( "Attempting to create a relative filter with no preceeding full filter" ); } break; // Three tokens means we're the second (or // higher line in a filter. create a new // filter grabbing info from the last filter case 3: if ( ( m_strLastMatchPattern != null ) && ( m_strLastDelimiter != null ) ) { tmpFilter = new LDAPFilter ( m_strLastMatchPattern, m_strLastDelimiter, (String)vStrings.elementAt ( 0 ), (String)vStrings.elementAt ( 1 ), (String)vStrings.elementAt ( 2 ) ); tmpFilter.setLine ( m_nLine ); if ( m_tmpFilterSet != null ) { m_tmpFilterSet.appendFilter ( tmpFilter ); } else { throw MakeException ("Attempting to add a filter to a null filterset"); } } else { throw MakeException ("Attempting to create a relative filter with no preceeding full filter" ); } break; // 4 tokens means this is the first line in a // token. All data is new. However, we're using // the default scope. case 4: tmpFilter = new LDAPFilter ( (String)vStrings.elementAt ( 0 ), (String)vStrings.elementAt ( 1 ), (String)vStrings.elementAt ( 2 ), (String)vStrings.elementAt ( 3 ), DEFAULT_SCOPE ); tmpFilter.setLine ( m_nLine ); m_strLastMatchPattern = (String)vStrings.elementAt ( 0 ); m_strLastDelimiter = (String)vStrings.elementAt ( 1 ); if ( m_tmpFilterSet != null ) { m_tmpFilterSet.newFilter ( tmpFilter ); } else { throw MakeException ("Attempting to add a filter to a null filterset"); } break; // 5 tokens means this is the first line in a // token. All data is new. case 5: tmpFilter = new LDAPFilter ( (String)vStrings.elementAt ( 0 ), (String)vStrings.elementAt ( 1 ), (String)vStrings.elementAt ( 2 ), (String)vStrings.elementAt ( 3 ), (String)vStrings.elementAt ( 4 ) ); tmpFilter.setLine ( m_nLine ); m_strLastMatchPattern = (String)vStrings.elementAt ( 0 ); m_strLastDelimiter = (String)vStrings.elementAt ( 1 ); if ( m_tmpFilterSet != null ) { m_tmpFilterSet.newFilter ( tmpFilter ); } else { throw MakeException ("Attempting to add a filter to a null filterset"); } break; default: throw MakeException ( "Wrong number of tokens (" + vStrings.size() + ")" ); //break; } } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/2548bfaf91c01754e5221652f050a69ba2635d61/LDAPFilterDescriptor.java/buggy/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPFilterDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
22855,
12,
2173,
80,
25,
3234,
9670,
4469,
16,
5722,
80,
25,
3234,
9670,
751,
16,
1377,
5589,
331,
7957,
13,
1216,
1860,
16,
6107,
1586,
503,
288,
3639,
4639,
1253,
563,
31,
3639,
5722,
80,
25,
6286,
4546,
273,
394,
5722,
80,
25,
6286,
5621,
3639,
6830,
6286,
1210,
810,
31,
3639,
11916,
1586,
1853,
1586,
273,
446,
31,
3639,
810,
273,
394,
6830,
6286,
1210,
261,
312,
67,
701,
1670,
11272,
3639,
309,
261,
401,
261,
4546,
18,
12298,
261,
810,
16,
9670,
4469,
262,
262,
262,
288,
5411,
810,
18,
542,
3935,
2335,
12,
2630,
18,
588,
8149,
2335,
10663,
5411,
368,
2332,
18,
659,
18,
8222,
261,
1548,
82,
12917,
14340,
30,
315,
397,
312,
67,
701,
1670,
11272,
5411,
309,
261,
401,
331,
7957,
18,
291,
1921,
1435,
262,
288,
7734,
331,
7957,
18,
4479,
1595,
3471,
5621,
5411,
289,
5411,
1323,
261,
501,
6286,
18,
4720,
1435,
262,
288,
7734,
368,
3423,
267,
333,
1323,
2798,
16,
732,
4565,
7849,
364,
7734,
368,
777,
326,
501,
2430,
18,
225,
29613,
6736,
7734,
368,
2652,
353,
3875,
358,
2324,
364,
4511,
7734,
368,
8936,
635,
7983,
578,
1678,
434,
7734,
368,
3949,
316,
4914,
396,
285,
13999,
18,
225,
432,
849,
82,
970,
7734,
368,
434,
326,
7195,
353,
716,
732,
1240,
2795,
7734,
368,
1473,
14353,
16,
1338,
1245,
903,
1240,
501,
622,
7734,
368,
1281,
813,
18,
7734,
563,
273,
4546,
18,
588,
2060,
5621,
7734,
364,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
22855,
12,
2173,
80,
25,
3234,
9670,
4469,
16,
5722,
80,
25,
3234,
9670,
751,
16,
1377,
5589,
331,
7957,
13,
1216,
1860,
16,
6107,
1586,
503,
288,
3639,
4639,
1253,
563,
31,
3639,
5722,
80,
25,
6286,
4546,
273,
394,
5722,
80,
25,
6286,
5621,
3639,
6830,
6286,
1210,
810,
31,
3639,
11916,
1586,
1853,
1586,
273,
446,
31,
3639,
810,
273,
394,
6830,
6286,
1210,
261,
312,
67,
701,
1670,
11272,
3639,
309,
261,
401,
261,
4546,
18,
12298,
261,
810,
16,
9670,
4469,
262,
262,
262,
288,
5411,
810,
18,
542,
3935,
2335,
12,
2630,
18,
588,
8149,
2335,
10663,
5411,
368,
2332,
18,
659,
18,
8222,
261,
1548,
82,
12917,
14340,
30,
2
] |
public void exit(Value val) { | public void exit(Expression exp) { | public void exit(Value val) { } | 47053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47053/ead07f40c0d84df2b305344935e41b3addcd0a3d/AbstractExpressionVisitor.java/buggy/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/AbstractExpressionVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2427,
12,
2300,
1329,
13,
288,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2427,
12,
2300,
1329,
13,
288,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
long start = getStartTime(task); long end = getEndTime(task); | long start = taskUtils.getStartTime(task); long end = taskUtils.getEndTime(task); | public void addWithdrawProjection(Task task) { // Adding projections mean changed critical levels and // target levels. Set boolean to recompute critical // levels and clear targetLevelsList for CSV logging compute_critical_levels = true; targetLevelsList.clear(); long start = getStartTime(task); long end = getEndTime(task); int bucket_start = convertTimeToBucket(start); int bucket_end = convertTimeToBucket(end); if (bucket_end >= projectedDemandArray.length) { projectedDemandArray = expandArray(projectedDemandArray); } while (bucket_end >= dueOutList.size()) { dueOutList.add(new ArrayList()); }// System.out.println("Task start: "+TimeUtils.dateString(start)+" end : "+TimeUtils.dateString(end));// System.out.println("bucket start "+bucket_start+", bucket end "+bucket_end); for (int i=bucket_start; i < bucket_end; i++) { ArrayList list = (ArrayList)dueOutList.get(i); list.add(task); updateProjectedDemandList(task, i, start, end, true); } } | 11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/92bfbcbcd761bbca3253b16e83f6a0644ee42a80/LogisticsInventoryBG.java/buggy/bbn/src/org/cougaar/logistics/plugin/inventory/LogisticsInventoryBG.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
1190,
9446,
14789,
12,
2174,
1562,
13,
288,
565,
368,
21240,
8106,
87,
3722,
3550,
11239,
7575,
471,
565,
368,
1018,
7575,
18,
225,
1000,
1250,
358,
30067,
11239,
565,
368,
7575,
471,
2424,
1018,
12240,
682,
364,
10381,
2907,
565,
3671,
67,
28000,
67,
12095,
273,
638,
31,
565,
1018,
12240,
682,
18,
8507,
5621,
565,
1525,
787,
273,
31953,
12,
4146,
1769,
565,
1525,
679,
273,
9968,
950,
12,
4146,
1769,
565,
509,
2783,
67,
1937,
273,
1765,
950,
774,
4103,
12,
1937,
1769,
565,
509,
2783,
67,
409,
273,
1765,
950,
774,
4103,
12,
409,
1769,
565,
309,
261,
7242,
67,
409,
1545,
20939,
25461,
1076,
18,
2469,
13,
288,
1377,
20939,
25461,
1076,
273,
4542,
1076,
12,
685,
6059,
25461,
1076,
1769,
565,
289,
565,
1323,
261,
7242,
67,
409,
1545,
6541,
1182,
682,
18,
1467,
10756,
288,
1377,
6541,
1182,
682,
18,
1289,
12,
2704,
2407,
10663,
565,
289,
759,
1377,
2332,
18,
659,
18,
8222,
2932,
2174,
787,
30,
13773,
950,
1989,
18,
712,
780,
12,
1937,
13,
9078,
679,
225,
294,
13773,
950,
1989,
18,
712,
780,
12,
409,
10019,
759,
1377,
2332,
18,
659,
18,
8222,
2932,
7242,
787,
13773,
7242,
67,
1937,
15,
3113,
2783,
679,
13773,
7242,
67,
409,
1769,
565,
364,
261,
474,
277,
33,
7242,
67,
1937,
31,
277,
411,
2783,
67,
409,
31,
277,
27245,
288,
1377,
2407,
666,
273,
261,
19558,
13,
24334,
1182,
682,
18,
588,
12,
77,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
1190,
9446,
14789,
12,
2174,
1562,
13,
288,
565,
368,
21240,
8106,
87,
3722,
3550,
11239,
7575,
471,
565,
368,
1018,
7575,
18,
225,
1000,
1250,
358,
30067,
11239,
565,
368,
7575,
471,
2424,
1018,
12240,
682,
364,
10381,
2907,
565,
3671,
67,
28000,
67,
12095,
273,
638,
31,
565,
1018,
12240,
682,
18,
8507,
5621,
565,
1525,
787,
273,
31953,
12,
4146,
1769,
565,
1525,
679,
273,
9968,
950,
12,
4146,
1769,
565,
509,
2783,
67,
1937,
273,
1765,
950,
774,
4103,
12,
1937,
1769,
565,
509,
2783,
67,
409,
273,
1765,
950,
774,
4103,
12,
409,
1769,
565,
309,
261,
7242,
67,
409,
1545,
20939,
25461,
1076,
18,
2469,
13,
288,
1377,
20939,
2
] |
public int[] getSampleSize() { int sampleSize[] = { pixelBitStride }; return sampleSize; } | public int[] getSampleSize() { return sampleSize; } | public int[] getSampleSize() { int sampleSize[] = { pixelBitStride }; return sampleSize; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e864c0d89c996e0999ad08d1701193723aaab52a/MultiPixelPackedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/MultiPixelPackedSampleModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8526,
26078,
1225,
1435,
288,
202,
202,
474,
3296,
1225,
8526,
273,
288,
4957,
5775,
1585,
831,
289,
31,
202,
202,
2463,
3296,
1225,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
8526,
26078,
1225,
1435,
288,
202,
202,
474,
3296,
1225,
8526,
273,
288,
4957,
5775,
1585,
831,
289,
31,
202,
202,
2463,
3296,
1225,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(applyCommand != null) { | if (applyCommand != null) { | public void setPageComplete(boolean pageComplete) { if(applyCommand != null) { applyCommand.setEnabled(pageComplete); } super.setPageComplete(pageComplete); } | 55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/2a90d3e986ab1b3adee07293711cef0f9913e9e1/PreferencePage.java/buggy/sandbox/src/main/java/org/springframework/richclient/preference/PreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18663,
6322,
12,
6494,
1363,
6322,
13,
288,
202,
202,
430,
12,
9010,
2189,
480,
446,
13,
288,
1082,
202,
9010,
2189,
18,
542,
1526,
12,
2433,
6322,
1769,
202,
202,
97,
9506,
202,
9565,
18,
542,
1964,
6322,
12,
2433,
6322,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18663,
6322,
12,
6494,
1363,
6322,
13,
288,
202,
202,
430,
12,
9010,
2189,
480,
446,
13,
288,
1082,
202,
9010,
2189,
18,
542,
1526,
12,
2433,
6322,
1769,
202,
202,
97,
9506,
202,
9565,
18,
542,
1964,
6322,
12,
2433,
6322,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private final void initializeDefaultServices() { /* * Phase 1 of the initialization of commands. When this phase completes, * all the services and managers will exist, and be accessible via the * getService(Object) method. */ Command.DEBUG_COMMAND_EXECUTION = Policy.DEBUG_COMMANDS; commandManager = new CommandManager(); final CommandService commandService = new CommandService(commandManager); commandService.readRegistry(); serviceLocator.registerService(ICommandService.class, commandService); ContextManager.DEBUG = Policy.DEBUG_CONTEXTS; contextManager = new ContextManager(); final IContextService contextService = new ContextService( contextManager); contextService.readRegistry(); serviceLocator.registerService(IContextService.class, contextService); final IHandlerService handlerService = new HandlerService( commandService); handlerService.readRegistry(); serviceLocator.registerService(IHandlerService.class, handlerService); BindingManager.DEBUG = Policy.DEBUG_KEY_BINDINGS; bindingManager = new BindingManager(contextManager, commandManager); final IBindingService bindingService = new BindingService( bindingManager, commandService, this); bindingService.readRegistryAndPreferences(commandService); serviceLocator.registerService(IBindingService.class, bindingService); final CommandImageManager commandImageManager = new CommandImageManager(); final CommandImageService commandImageService = new CommandImageService( commandImageManager, commandService); commandImageService.readRegistry(); serviceLocator.registerService(ICommandImageService.class, commandImageService); final SMenuManager menuManager = new SMenuManager(); final IMenuService menuService = new WorkbenchMenuService(menuManager, commandService); menuService.readRegistry(); serviceLocator.registerService(IMenuService.class, menuService); /* * Phase 2 of the initialization of commands. The source providers that * the workbench provides are creating and registered with the above * services. These source providers notify the services when particular * pieces of workbench state change. */ final ISourceProviderService sourceProviderService = new SourceProviderService(); serviceLocator.registerService(ISourceProviderService.class, sourceProviderService); final ActiveShellSourceProvider activeShellSourceProvider = new ActiveShellSourceProvider( this); handlerService.addSourceProvider(activeShellSourceProvider); contextService.addSourceProvider(activeShellSourceProvider); menuService.addSourceProvider(activeShellSourceProvider); sourceProviderService.registerProvider(activeShellSourceProvider); final ActivePartSourceProvider activePartSourceProvider = new ActivePartSourceProvider( this); handlerService.addSourceProvider(activePartSourceProvider); contextService.addSourceProvider(activePartSourceProvider); menuService.addSourceProvider(activePartSourceProvider); sourceProviderService.registerProvider(activePartSourceProvider); final ActiveContextSourceProvider activeContextSourceProvider = new ActiveContextSourceProvider( contextService); handlerService.addSourceProvider(activeContextSourceProvider); menuService.addSourceProvider(activeContextSourceProvider); sourceProviderService.registerProvider(activeContextSourceProvider); final CurrentSelectionSourceProvider currentSelectionSourceProvider = new CurrentSelectionSourceProvider( this); handlerService.addSourceProvider(currentSelectionSourceProvider); contextService.addSourceProvider(currentSelectionSourceProvider); menuService.addSourceProvider(currentSelectionSourceProvider); sourceProviderService.registerProvider(currentSelectionSourceProvider); actionSetSourceProvider = new ActionSetSourceProvider(); handlerService.addSourceProvider(actionSetSourceProvider); contextService.addSourceProvider(actionSetSourceProvider); menuService.addSourceProvider(actionSetSourceProvider); sourceProviderService.registerProvider(actionSetSourceProvider); menuSourceProvider = new MenuSourceProvider(); handlerService.addSourceProvider(menuSourceProvider); contextService.addSourceProvider(menuSourceProvider); menuService.addSourceProvider(menuSourceProvider); sourceProviderService.registerProvider(menuSourceProvider); /* * Phase 3 of the initialization of commands. This handles the creation * of wrappers for legacy APIs. By the time this phase completes, any * code trying to access commands through legacy APIs should work. */ final LegacyActionPersistence deprecatedSupport = new LegacyActionPersistence( commandService, bindingManager, commandImageManager, menuService); serviceLocator.registerService(LegacyActionPersistence.class, deprecatedSupport); deprecatedSupport.read(); workbenchContextSupport = new WorkbenchContextSupport(this, contextManager); workbenchCommandSupport = new WorkbenchCommandSupport(bindingManager, commandManager, contextManager, handlerService); initializeCommandResolver(); addWindowListener(windowListener); bindingManager.addBindingManagerListener(bindingManagerListener); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/73333dbcd42e60f1026cd0a1b14e2ddb08c2b396/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
4046,
1868,
5676,
1435,
288,
202,
202,
20308,
1082,
380,
19459,
404,
434,
326,
10313,
434,
4364,
18,
5203,
333,
6855,
7218,
16,
1082,
380,
777,
326,
4028,
471,
21103,
903,
1005,
16,
471,
506,
12718,
3970,
326,
1082,
380,
6373,
12,
921,
13,
707,
18,
1082,
1195,
202,
202,
2189,
18,
9394,
67,
19104,
67,
15271,
13269,
273,
7436,
18,
9394,
67,
4208,
9560,
3948,
31,
202,
202,
3076,
1318,
273,
394,
3498,
1318,
5621,
202,
202,
6385,
3498,
1179,
1296,
1179,
273,
394,
3498,
1179,
12,
3076,
1318,
1769,
202,
202,
3076,
1179,
18,
896,
4243,
5621,
202,
202,
3278,
5786,
18,
4861,
1179,
12,
45,
2189,
1179,
18,
1106,
16,
1296,
1179,
1769,
9506,
202,
1042,
1318,
18,
9394,
273,
7436,
18,
9394,
67,
13181,
55,
31,
202,
202,
2472,
1318,
273,
394,
1772,
1318,
5621,
202,
202,
6385,
467,
1042,
1179,
819,
1179,
273,
394,
1772,
1179,
12,
9506,
202,
2472,
1318,
1769,
202,
202,
2472,
1179,
18,
896,
4243,
5621,
202,
202,
3278,
5786,
18,
4861,
1179,
12,
45,
1042,
1179,
18,
1106,
16,
819,
1179,
1769,
9506,
202,
6385,
467,
1503,
1179,
1838,
1179,
273,
394,
4663,
1179,
12,
9506,
202,
3076,
1179,
1769,
202,
202,
4176,
1179,
18,
896,
4243,
5621,
202,
202,
3278,
5786,
18,
4861,
1179,
12,
45,
1503,
1179,
18,
1106,
16,
1838,
1179,
1769,
9506,
202,
5250,
1318,
18,
9394,
273,
7436,
18,
9394,
67,
3297,
67,
2739,
55,
31,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
4046,
1868,
5676,
1435,
288,
202,
202,
20308,
1082,
380,
19459,
404,
434,
326,
10313,
434,
4364,
18,
5203,
333,
6855,
7218,
16,
1082,
380,
777,
326,
4028,
471,
21103,
903,
1005,
16,
471,
506,
12718,
3970,
326,
1082,
380,
6373,
12,
921,
13,
707,
18,
1082,
1195,
202,
202,
2189,
18,
9394,
67,
19104,
67,
15271,
13269,
273,
7436,
18,
9394,
67,
4208,
9560,
3948,
31,
202,
202,
3076,
1318,
273,
394,
3498,
1318,
5621,
202,
202,
6385,
3498,
1179,
1296,
1179,
273,
394,
3498,
1179,
12,
3076,
1318,
1769,
202,
202,
3076,
1179,
18,
896,
4243,
5621,
202,
202,
3278,
5786,
18,
4861,
1179,
12,
45,
2189,
1179,
18,
1106,
16,
1296,
2
] | ||
else if (elementValue.equals("dcolumn")) { String columnName = atts.getValue("name"); int tableid = get_IDWithColumn("AD_Table", "TableName", d_tablename); int id =get_IDWithMasterAndColumn ("AD_Column", "ColumnName", columnName, "AD_Table", tableid); StringBuffer sql = new StringBuffer ("SELECT IsUpdateable FROM AD_column WHERE AD_Column_ID = ?"); String isUpdateable = DB.getSQLValueString(m_trxName, sql.toString(),id); sql = new StringBuffer ("SELECT IsKey FROM AD_column WHERE AD_Column_ID = ?"); String isKey = DB.getSQLValueString(m_trxName, sql.toString(),id); if (isKey.equals("N") && isUpdateable.equals("Y") && (!atts.getValue("name").equals("CreatedBy")||!atts.getValue("name").equals("UpdatedBy"))) { if (atts.getValue("value") != null && !atts.getValue("value").equals("null")) { if (atts.getValue("class").equals("String") || atts.getValue("class").equals("Text") || atts.getValue("class").equals("List")|| atts.getValue("class").equals("Yes-No") || atts.getValue("class").equals("Table")|| atts.getValue("class").equals("Button") || atts.getValue("class").equals("Memo")|| atts.getValue("class").equals("Text Long")) { genericPO.setValue(atts.getValue("name").toString(), atts.getValue("value").toString()); } else if (atts.getValue("class").equals("Number") || atts.getValue("class").equals("Amount") || atts.getValue("class").equals("Quantity")|| atts.getValue("class").equals("Costs+Prices")){ genericPO.setValue(atts.getValue("name").toString(), new BigDecimal(atts.getValue("value"))); } else if (atts.getValue("class").equals("Integer") || atts.getValue("class").equals("ID") || atts.getValue("class").equals("Table Direct")|| atts.getValue("class").equals("Table") || atts.getValue("class").equals("Location (Address)")|| atts.getValue("class").equals("Account") || atts.getValue("class").equals("Color)")|| atts.getValue("class").equals("Search") || atts.getValue("class").equals("Locator (WH)")|| atts.getValue("class").equals("Product Attribute")) { genericPO.setValue(atts.getValue("name").toString(), Integer.valueOf(atts.getValue("value"))); } else if (atts.getValue("class").equals("Boolean")) { genericPO.setValue(atts.getValue("name"), new Boolean(atts.getValue("value").equals("true") ? true : false)); } else if (atts.getValue("class").equals("Date") || atts.getValue("class").equals("Date+Time") || atts.getValue("class").equals("Time")) { genericPO.setValue(atts.getValue("name").toString(), Timestamp.valueOf(atts.getValue("value"))); } } else { if (atts.getValue("lookupname") != null && !"".equals(atts.getValue("lookupname"))) { String m_tablename = atts.getValue("name").substring(0, atts.getValue("name").length()-3); genericPO.setValue(atts.getValue("name"), new Integer(getIDbyName(m_tablename, atts.getValue("lookupname")))); } } } } | else if (elementValue.equals("dcolumn")) { String columnName = atts.getValue("name"); int tableid = get_IDWithColumn("AD_Table", "TableName", d_tablename); int id =get_IDWithMasterAndColumn ("AD_Column", "ColumnName", columnName, "AD_Table", tableid); StringBuffer sql = new StringBuffer ("SELECT IsUpdateable FROM AD_column WHERE AD_Column_ID = ?"); String isUpdateable = DB.getSQLValueString(m_trxName, sql.toString(),id); sql = new StringBuffer ("SELECT IsKey FROM AD_column WHERE AD_Column_ID = ?"); String isKey = DB.getSQLValueString(m_trxName, sql.toString(),id); if (isKey.equals("N") && isUpdateable.equals("Y") && (!atts.getValue("name").equals("CreatedBy")||!atts.getValue("name").equals("UpdatedBy"))) { if (atts.getValue("value") != null && !atts.getValue("value").equals("null")) { if (atts.getValue("class").equals("String") || atts.getValue("class").equals("Text") || atts.getValue("class").equals("List")|| atts.getValue("class").equals("Yes-No") || atts.getValue("class").equals("Table")|| atts.getValue("class").equals("Button") || atts.getValue("class").equals("Memo")|| atts.getValue("class").equals("Text Long")) { genericPO.setValue(atts.getValue("name").toString(), atts.getValue("value").toString()); } else if (atts.getValue("class").equals("Number") || atts.getValue("class").equals("Amount") || atts.getValue("class").equals("Quantity")|| atts.getValue("class").equals("Costs+Prices")){ genericPO.setValue(atts.getValue("name").toString(), new BigDecimal(atts.getValue("value"))); } else if (atts.getValue("class").equals("Integer") || atts.getValue("class").equals("ID") || atts.getValue("class").equals("Table Direct")|| atts.getValue("class").equals("Table") || atts.getValue("class").equals("Location (Address)")|| atts.getValue("class").equals("Account") || atts.getValue("class").equals("Color)")|| atts.getValue("class").equals("Search") || atts.getValue("class").equals("Locator (WH)")|| atts.getValue("class").equals("Product Attribute")) { genericPO.setValue(atts.getValue("name").toString(), Integer.valueOf(atts.getValue("value"))); } else if (atts.getValue("class").equals("Boolean")) { genericPO.setValue(atts.getValue("name"), new Boolean(atts.getValue("value").equals("true") ? true : false)); } else if (atts.getValue("class").equals("Date") || atts.getValue("class").equals("Date+Time") || atts.getValue("class").equals("Time")) { genericPO.setValue(atts.getValue("name").toString(), Timestamp.valueOf(atts.getValue("value"))); } } else { if (atts.getValue("lookupname") != null && !"".equals(atts.getValue("lookupname"))) { String m_tablename = atts.getValue("name").substring(0, atts.getValue("name").length()-3); genericPO.setValue(atts.getValue("name"), new Integer(getIDbyName(m_tablename, atts.getValue("lookupname")))); } } } } | public void startElement (String uri, String localName, String qName, Attributes atts) throws org.xml.sax.SAXException { // Create the package log if (Start_Doc==0){ IntPackIn pack = new IntPackIn(); packageDirectory = pack.m_Package_Dir; m_UpdateMode = pack.m_UpdateMode; m_DatabaseType = pack.m_Database; File file = new File(""); fileSeperator = file.separator; SimpleDateFormat formatter_file = new SimpleDateFormat("yyMMddHHmmssZ"); SimpleDateFormat formatter_log = new SimpleDateFormat("MM/dd/yy HH:mm:ss"); Date today = new Date(); fileDate = formatter_file.format(today); logDate = formatter_log.format(today); String file_document = packageDirectory+fileSeperator+"doc"+fileSeperator+"Importlog_"+fileDate+".xml"; log.info(file_document); try { fw_document = new FileOutputStream (file_document, false); } catch (FileNotFoundException e1) { log.info ("startElement:"+e1); } streamResult_document = new StreamResult(fw_document); tf_document = (SAXTransformerFactory) SAXTransformerFactory.newInstance(); try { hd_documemt = tf_document.newTransformerHandler(); } catch (TransformerConfigurationException e2) { log.info ("startElement:"+e2); } serializer_document = hd_documemt.getTransformer(); serializer_document.setOutputProperty(OutputKeys.ENCODING,"ISO-8859-1"); serializer_document.setOutputProperty(OutputKeys.INDENT,"yes"); hd_documemt.setResult(streamResult_document); hd_documemt.startDocument(); attsOut = new AttributesImpl(); attsOut.clear(); hd_documemt.processingInstruction("xml-stylesheet","type=\"text/css\" href=\"compiereDocument.css\""); Start_Doc=1; } // Check namespace. String elementValue = null; if ("".equals (uri)) elementValue = qName; else elementValue = uri + localName; if (false) log.info("startElement: "+elementValue); // adempiereAD. if (elementValue.equals("adempiereAD")) { log.info(m_UpdateMode); adempiereAD = true; //Start package log hd_documemt.startElement("","","compiereDocument",attsOut); hd_documemt.startElement("","","header",attsOut); hd_documemt.characters((atts.getValue("PK_Name")+" Install Log").toCharArray(),0,(atts.getValue("PK_Name")+" Install Log").length()); hd_documemt.endElement("","","header"); hd_documemt.startElement("","","H3",attsOut); hd_documemt.characters(("Package Name:" ).toCharArray(),0,("Package Name:" ).length()); hd_documemt.endElement("","","H3"); hd_documemt.startElement("","","packagename4log",attsOut); hd_documemt.characters(atts.getValue("PK_Name").toCharArray(),0,atts.getValue("PK_Name").length()); hd_documemt.endElement("","","packagename4log"); hd_documemt.startElement("","","H3",attsOut); hd_documemt.characters(("Version:" ).toCharArray(),0,("Version:" ).length()); hd_documemt.endElement("","","H3"); hd_documemt.startElement("","","Version",attsOut); hd_documemt.characters(atts.getValue("Version").toCharArray(),0,atts.getValue("Version").length()); hd_documemt.endElement("","","Version"); hd_documemt.startElement("","","H3",attsOut); hd_documemt.characters(("Package Install Date:" ).toCharArray(),0,("Package Install Date:" ).length()); hd_documemt.endElement("","","H3"); hd_documemt.startElement("","","installDate",attsOut); hd_documemt.characters(logDate.toCharArray(),0,logDate.length()); hd_documemt.endElement("","","installDate"); hd_documemt.startElement("","","H3",attsOut); hd_documemt.characters(("Min. Compiere Version:" ).toCharArray(),0,("Min. Compiere Version:" ).length()); hd_documemt.endElement("","","H3"); hd_documemt.startElement("","","CompVer",attsOut); hd_documemt.characters(atts.getValue("CompVer").toCharArray(),0,atts.getValue("CompVer").length()); hd_documemt.endElement("","","CompVer"); hd_documemt.startElement("","","H3",attsOut); hd_documemt.characters(("Min. Database Date:" ).toCharArray(),0,("Min. Database Date:" ).length()); hd_documemt.endElement("","","H3"); hd_documemt.startElement("","","DataBase",attsOut); hd_documemt.characters(atts.getValue("DataBase").toCharArray(),0,atts.getValue("DataBase").length()); hd_documemt.endElement("","","DataBase"); createImp_Sum_table ("AD_Package_Imp_Backup"); createImp_Sum_table ("AD_Package_Imp"); createImp_Sum_table ("AD_Package_Imp_Inst"); createImp_Sum_table ("AD_Package_Imp_Detail"); // Update Summary Package History Table String sql2 = "SELECT AD_PACKAGE_IMP_INST_ID FROM AD_PACKAGE_IMP_INST WHERE NAME =" + "'" + atts.getValue("PK_Name") + "' AND PK_VERSION ='" + atts.getValue("Version") + "'"; int PK_preInstalled = DB.getSQLValue(null,sql2); AD_Package_Imp_ID = MSequence.getNextID (Env.getAD_Client_ID(Env.getCtx()), "AD_Package_Imp", null); sqlB = new StringBuffer ("Insert INTO AD_Package_Imp" + "(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, " + "AD_PACKAGE_IMP_ID, RELEASENO, PK_VERSION, VERSION " + ", DESCRIPTION, NAME, CREATOR" + ", CREATORCONTACT, CREATEDDATE,UPDATEDDATE,PK_STATUS)" + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_Org_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " + AD_Package_Imp_ID + ", '" + atts.getValue("CompVer") + "', '" + atts.getValue("Version") + "', '" + atts.getValue("DataBase") + "', '" + atts.getValue("Description").replaceAll("'","''").replaceAll(",","") + "', '" + atts.getValue("PK_Name") + "', '" + atts.getValue("creator") + "', '" + atts.getValue("creatorcontact") + "', '" + atts.getValue("createddate") + "', '" + atts.getValue("updateddate") + "', '" + PK_Status +"')"); Env.getAD_User_ID(Env.getCtx()); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to Package import failed"); if ( PK_preInstalled == -1){ AD_Package_Imp_Inst_ID = MSequence.getNextID (Env.getAD_Client_ID(Env.getCtx()), "AD_Package_Imp_Inst", null); //Insert Package into package install log sqlB = new StringBuffer ("Insert INTO AD_Package_Imp_Inst" + "(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, " + "AD_PACKAGE_IMP_INST_ID, RELEASENO, PK_VERSION, VERSION " + ", DESCRIPTION, NAME, CREATOR" + ", CREATORCONTACT, CREATEDDATE,UPDATEDDATE,PK_STATUS)" + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_Org_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " + AD_Package_Imp_Inst_ID + ", '" + atts.getValue("CompVer") + "', '" + atts.getValue("Version") + "', '" + atts.getValue("DataBase") + "', '" + atts.getValue("Description").replaceAll("'","''").replaceAll(",","") + "', '" + atts.getValue("PK_Name") + "', '" + atts.getValue("creator") + "', '" + atts.getValue("creatorcontact") + "', '" + atts.getValue("createddate") + "', '" + atts.getValue("updateddate") + "', '" + PK_Status +"')"); Env.getAD_User_ID(Env.getCtx()); no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to Package List import failed"); } else{ //Update package list with package status AD_Package_Imp_Inst_ID = PK_preInstalled; sqlB = new StringBuffer ("UPDATE AD_Package_Imp_Inst " + "SET PK_Status = '" + PK_Status + "' WHERE AD_Package_Imp_Inst_ID = "+AD_Package_Imp_Inst_ID); no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Update to package summary failed"); } } // adempieredata element. // some fields i.e. "table" are commons. else if (elementValue.equals("adempieredata") || elementValue.equals("data")) { adempieredata = true; if (atts.getValue("clientname") != null) { m_AD_Client_ID = get_ID("AD_Client", atts.getValue("clientname")); Env.setContext(Env.getCtx(), "AD_Client_ID", m_AD_Client_ID); } } else if (elementValue.equals("menu")) { //String entitytype = atts.getValue("EntityType"); //if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode == true ) { d_menu[menu_seq][0] = atts.getValue("ADMenuNameID"); d_menu[menu_seq][1] = atts.getValue("ADWindowNameID"); d_menu[menu_seq][2] = atts.getValue("ADProcessNameID"); d_menu[menu_seq][3] = atts.getValue("ADFormNameID"); d_menu[menu_seq][4] = atts.getValue("ADTaskNameID"); d_menu[menu_seq][5] = atts.getValue("ADWorkbenchNameID"); d_menu[menu_seq][6] = atts.getValue("ADWorkflowNameID"); d_menu[menu_seq][7] = (atts.getValue("Action") != null ? atts.getValue("Action") : " "); d_menu[menu_seq][8] = atts.getValue("Description").replaceAll("'","''").replaceAll(",",""); d_menu[menu_seq][9] = atts.getValue("EntityType"); d_menu[menu_seq][10] = atts.getValue("isReadOnly"); d_menu[menu_seq][11] = atts.getValue("isSOTrx"); d_menu[menu_seq][12] = atts.getValue("isSummary"); d_menu[menu_seq][13] = atts.getValue("ADParentMenuNameID"); d_menu[menu_seq][14] = atts.getValue("ADParentSeqno"); d_menu[menu_seq][15] = atts.getValue("isActive"); menu_seq=menu_seq+1; //} } // window element. else if (elementValue.equals("window")) { String entitytype = atts.getValue("EntityType"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { String name = atts.getValue("Name"); int id= get_ID("AD_Window", name); m_Window = new X_AD_Window(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Window",m_Window); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_Window.setName(name); name = atts.getValue("ADImageNameID"); id = get_IDWithColumn("AD_Image", "Name", name); m_Window.setAD_Image_ID(id); name = atts.getValue("ADColorNameID"); id = get_IDWithColumn("AD_Color", "Name", name); m_Window.setAD_Color_ID(id); m_Window.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Window.setEntityType(atts.getValue("EntityType")); m_Window.setHelp (atts.getValue("Help").replaceAll("'","''").replaceAll(",","")); m_Window.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Window.setIsBetaFunctionality(Boolean.valueOf(atts.getValue("isBetaFunctionality")).booleanValue()); m_Window.setIsDefault(Boolean.valueOf(atts.getValue("isDefault")).booleanValue()); m_Window.setIsSOTrx(Boolean.valueOf(atts.getValue("isSOTrx")).booleanValue()); m_Window.setName (atts.getValue("Name")); m_Window.setProcessing (false); //m_Window.setWinHeight(Integer.parseInt(atts.getValue("WinHeight"))); //m_Window.setWinWidth (Integer.parseInt(atts.getValue("WinWidth"))); m_Window.setWindowType (atts.getValue("WindowType")); m_Window.save(m_trxName); if (m_Window.save(m_trxName) == true){ record_log (1, m_Window.getName(),"Window", m_Window.get_ID(),AD_Backup_ID, Object_Status,"AD_Window",get_IDWithColumn("AD_Table", "TableName", "AD_Window")); } else{ record_log (0, m_Window.getName(),"Window", m_Window.get_ID(),AD_Backup_ID, Object_Status,"AD_Window",get_IDWithColumn("AD_Table", "TableName", "AD_Window")); } } }// preference element. else if (elementValue.equals("preference")) { //TODO Add User_ID int windowid = get_ID("AD_Window", atts.getValue("ADWindowNameID")); sqlB = new StringBuffer ("select AD_Preference_ID from AD_Preference where " + " Attribute = '"+atts.getValue("Attribute") +"'" + " and AD_Window_ID = ?"); int id = DB.getSQLValue(null, sqlB.toString (), windowid); m_Preference = new X_AD_Preference(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Preference",m_Preference); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } sqlB = null; m_Preference.setAD_Window_ID(windowid); m_Preference.setAttribute(atts.getValue("Attribute")); m_Preference.setValue(atts.getValue("Value")); if (m_Preference.save(m_trxName) == true){ record_log (1, m_Preference.getAttribute(),"Preference", m_Preference.get_ID(),AD_Backup_ID, Object_Status,"AD_Preference",get_IDWithColumn("AD_Table", "TableName", "AD_Preference")); } else{ record_log (0, m_Preference.getAttribute(),"Preference", m_Preference.get_ID(),AD_Backup_ID, Object_Status,"AD_Preference",get_IDWithColumn("AD_Table", "TableName", "AD_Preference")); } } // tab element. else if (elementValue.equals("tab")) { String entitytype = atts.getValue("EntityType"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0) { String name = atts.getValue("ADTabNameID"); int tableid = get_IDWithColumn("AD_Table", "TableName", atts.getValue("ADTableNameID")); int windowid = get_ID("AD_Window", atts.getValue("ADWindowNameID")); sqlB = new StringBuffer ("select AD_Tab_ID from AD_Tab where AD_Window_ID = " + windowid + " and Name = '"+name +"'" + " and AD_Table_ID = ?"); int id = DB.getSQLValue(null, sqlB.toString (), tableid); m_Tab = new X_AD_Tab(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Tab",m_Tab); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } sqlB = null; m_Tab.setName(name); id = 0; if (atts.getValue("ADColumnSortYesNoNameID")!= null){ name = atts.getValue("ADColumnSortYesNoNameID"); id = get_IDWithColumn("AD_Column", "Name", name); m_Tab.setAD_ColumnSortYesNo_ID(id); } if (atts.getValue("ADColumnSortOrderNameID")!= null){ name = atts.getValue("ADColumnSortOrderNameID"); id = get_IDWithColumn("AD_Column", "Name", name); m_Tab.setAD_ColumnSortOrder_ID(id); } if (atts.getValue("ADImageNameID")!= null){ name = atts.getValue("ADImageNameID"); id = get_IDWithColumn("AD_Image", "Name", name); m_Tab.setAD_Image_ID(id); } if (atts.getValue("ADProcessNameID")!= null){ name = atts.getValue("ADProcessNameID"); id = get_IDWithColumn("AD_Process", "Name", name); m_Tab.setAD_Process_ID(id); } if (atts.getValue("ADTableNameID")!= null){ name = atts.getValue("ADTableNameID"); id = get_IDWithColumn("AD_Table", "TableName", name); m_Tab.setAD_Table_ID(id); } if (atts.getValue("ADColumnNameID")!= null){ name = atts.getValue("ADColumnNameID"); id = get_IDWithMasterAndColumn ("AD_Column","Name", atts.getValue("ADColumnNameID"), "AD_Table", get_IDWithColumn("AD_Table", "TableName", atts.getValue("ADTableNameID"))); m_Tab.setAD_Column_ID(id); } if (atts.getValue("ADWindowNameID")!= null){ name = atts.getValue("ADWindowNameID"); id = get_IDWithColumn("AD_Window", "Name", name); m_Tab.setAD_Window_ID(id); } if (atts.getValue("IncludedTabNameID")!= null){ name = atts.getValue("IncludedTabNameID"); id = get_IDWithColumn("AD_Tab", "Name", name); m_Tab.setIncluded_Tab_ID(id); } m_Tab.setCommitWarning(atts.getValue("CommitWarning")); m_Tab.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Tab.setEntityType (atts.getValue("EntityType")); m_Tab.setHasTree(Boolean.valueOf(atts.getValue("isHasTree")).booleanValue()); m_Tab.setHelp (atts.getValue("Help").replaceAll("'","''").replaceAll(",","")); m_Tab.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Tab.setImportFields (atts.getValue("ImportFields")); m_Tab.setIsInfoTab (Boolean.valueOf(atts.getValue("isInfoTab")).booleanValue()); m_Tab.setIsReadOnly (Boolean.valueOf(atts.getValue("isReadOnly")).booleanValue()); m_Tab.setIsSingleRow (Boolean.valueOf(atts.getValue("isSingleRow")).booleanValue()); m_Tab.setIsSortTab (Boolean.valueOf(atts.getValue("isSortTab")).booleanValue()); m_Tab.setIsTranslationTab (Boolean.valueOf(atts.getValue("IsTranslationTab")).booleanValue()); m_Tab.setName (atts.getValue("Name")); m_Tab.setOrderByClause (atts.getValue("OrderByClause")); m_Tab.setProcessing(false); m_Tab.setSeqNo (Integer.parseInt(atts.getValue("SeqNo"))); m_Tab.setTabLevel (Integer.parseInt(atts.getValue("TabLevel"))); m_Tab.setWhereClause (atts.getValue("WhereClause")); if (m_Tab.save(m_trxName) == true){ record_log (1, m_Tab.getName(),"Tab", m_Tab.get_ID(),AD_Backup_ID, Object_Status,"AD_Tab",get_IDWithColumn("AD_Table", "TableName", "AD_Tab")); } else{ record_log (0, m_Tab.getName(),"Tab", m_Tab.get_ID(),AD_Backup_ID, Object_Status,"AD_Tab",get_IDWithColumn("AD_Table", "TableName", "AD_Tab")); } } } // field element. else if (elementValue.equals("field")) { String entitytype = atts.getValue("EntityType"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0) { String name = atts.getValue("Name"); String tabname = atts.getValue("ADTabNameID"); String colname = atts.getValue("ADColumnNameID");//log.info("Column Name ->"+colname);//log.info("Database Name ->"+m_DatabaseType);/** //Adjust for difference between Oracle and PostgreSql DataTypes if (m_DatabaseType.equals("Oracle")){ if (colname.equals("TIMESTAMP")) colname = "Date"; else if (colname.equals("TIMESTAMP+Time")) colname = "Date+Time"; else if (colname.equals("NUMERIC")) colname = "Number";} else if (m_DatabaseType.equals("Sybase")){ if (colname.equals("TIMESTAMP")) colname = "Date"; else if (colname.equals("TIMESTAMP+Time")) colname = "Date+Time"; else if (colname.equals("NUMERIC")) colname = "Number";} else if (m_DatabaseType.equals("PostgreSQL")){log.info("Before Column Name ->"+colname); if (colname.equals("Date")) colname = "TIMESTAMP"; else if (colname.equals("Date+Time")) colname = "TIMESTAMP+Time"; else if (colname.equals("Number")) colname = "NUMERIC";log.info("After Column Name ->"+colname); }**/ int tableid = get_IDWithColumn("AD_Table", "TableName", atts.getValue("ADTableNameID")); int windowid = get_ID("AD_Window", atts.getValue("ADWindowNameID"));//log.info("Column Name ->"+colname); int columnid = get_IDWithMasterAndColumn ("AD_Column","ColumnName", colname, "AD_Table", tableid);//log.info("ColumnID->"+columnid); sqlB = new StringBuffer ("select AD_Tab_ID from AD_Tab where AD_Window_ID = " + windowid + " and Name = '"+tabname +"'" + " and AD_Table_ID = ?"); int tabid = DB.getSQLValue(null, sqlB.toString (), tableid); sqlB = new StringBuffer ("select AD_Field_ID from AD_Field where AD_Column_ID = "+columnid + " and AD_Tab_ID = ?"); int id = DB.getSQLValue(null, sqlB.toString (), tabid); m_Field = new X_AD_Field(Env.getCtx(),id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Field",m_Field); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_Field.setName(atts.getValue("Name")); m_Field.setAD_Column_ID(columnid); name = atts.getValue("ADFieldGroupNameID"); id = get_IDWithColumn("AD_FieldGroup", "Name", name); m_Field.setAD_FieldGroup_ID(id); m_Field.setAD_Tab_ID(tabid); m_Field.setEntityType (atts.getValue("EntityType")); m_Field.setIsSameLine(Boolean.valueOf(atts.getValue("SameLine")).booleanValue()); m_Field.setIsCentrallyMaintained(Boolean.valueOf(atts.getValue("isCentrallyMaintained")).booleanValue()); m_Field.setIsDisplayed(Boolean.valueOf(atts.getValue("Displayed")).booleanValue()); //m_Field.setIsEncrypted(Boolean.valueOf(atts.getValue("isEncrypted")).booleanValue()); m_Field.setIsFieldOnly(Boolean.valueOf(atts.getValue("isFieldOnly")).booleanValue()); m_Field.setIsHeading(Boolean.valueOf(atts.getValue("isHeading")).booleanValue()); m_Field.setIsReadOnly(Boolean.valueOf(atts.getValue("isReadOnly")).booleanValue()); m_Field.setSeqNo(Integer.parseInt(atts.getValue("SeqNo"))); m_Field.setDisplayLength(Integer.parseInt(atts.getValue("DisplayLength"))); m_Field.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Field.setHelp(atts.getValue("Help").replaceAll("'","''").replaceAll(",","")); m_Field.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Field.setSortNo(new BigDecimal(atts.getValue("SortNo"))); m_Field.setDisplayLogic(atts.getValue("DisplayLogic")); if (m_Field.save(m_trxName) == true){ record_log (1, m_Field.getName(),"Field", m_Field.get_ID(),AD_Backup_ID, Object_Status,"AD_Field",get_IDWithColumn("AD_Table", "TableName", "AD_Field")); } else{ record_log (0, m_Field.getName(),"Field", m_Field.get_ID(),AD_Backup_ID, Object_Status,"AD_Field",get_IDWithColumn("AD_Table", "TableName", "AD_Field")); } } } // process element. else if (elementValue.equals("process")) { int id = 0; String entitytype = atts.getValue("EntityType"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { String name = atts.getValue("Name"); // Get New process. id=get_ID("AD_Process", name); if (id > 0){ m_Process = new X_AD_Process(Env.getCtx(), id,null); AD_Backup_ID = copyRecord("AD_Process",m_Process); Object_Status = "Update"; } else{ m_Process = new X_AD_Process(Env.getCtx(), id,null); id = MSequence.getNextID (Env.getAD_Client_ID(Env.getCtx()), "AD_Process", null); m_Process.setAD_Process_ID(id); Object_Status = "New"; AD_Backup_ID =0; } m_Process.setName(name); name = atts.getValue("ADWorkflowNameID"); id = get_IDWithColumn("AD_Workflow", "Name", name); m_Process.setAD_Workflow_ID(id); name = atts.getValue("ADProcessNameID"); name = atts.getValue("ADPrintFormatNameID"); id = get_IDWithColumn("AD_PrintFormat", "Name", name); m_Process.setAD_PrintFormat_ID(id); name = atts.getValue("ADReportViewNameID"); id = get_IDWithColumn("AD_ReportView", "Name", name); m_Process.setAD_ReportView_ID(id); m_Process.setAccessLevel(atts.getValue("AccessLevel")); m_Process.setClassname(atts.getValue("Classname")); m_Process.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Process.setEntityType(atts.getValue("EntityType")); m_Process.setHelp(atts.getValue("Help").replaceAll("'","''").replaceAll(",","")); m_Process.setIsBetaFunctionality(Boolean.valueOf(atts.getValue("isBetaFunctionality")).booleanValue()); m_Process.setIsDirectPrint(Boolean.valueOf(atts.getValue("isDirectPrint")).booleanValue()); m_Process.setIsReport(Boolean.valueOf(atts.getValue("isReport")).booleanValue()); m_Process.setName(atts.getValue("Name")); m_Process.setProcedureName(atts.getValue("ProcedureName")); m_Process.setStatistic_Count(0); m_Process.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Process.setStatistic_Seconds(0); m_Process.setValue(atts.getValue("Value")); m_Process.setWorkflowValue(atts.getValue("WorkflowValue")); if (m_Process.save(m_trxName) == true){ record_log (1, m_Process.getName(),"Process", m_Process.get_ID(),AD_Backup_ID, Object_Status,"AD_Process",get_IDWithColumn("AD_Table", "TableName", "AD_Process")); } else{ record_log (0, m_Process.getName(),"Process", m_Process.get_ID(),AD_Backup_ID, Object_Status,"AD_Process",get_IDWithColumn("AD_Table", "TableName", "AD_Process")); } } } // processpara element. else if (elementValue.equals("processpara")) { String entitytype = atts.getValue("EntityType"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { String name = atts.getValue("Name"); int id = get_IDWithMaster("AD_Process_Para", name, "AD_Process", atts.getValue("ADProcessNameID")); X_AD_Process_Para m_Process_para = new X_AD_Process_Para(Env.getCtx(),id ,null); if (id>0){ AD_Backup_ID = copyRecord("AD_Process_Para",m_Process_para); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_Process_para.setName(atts.getValue("Name")); name = atts.getValue("ADProcessNameID"); id = get_IDWithColumn("AD_Process", "Name", name); m_Process_para.setAD_Process_ID(id); name = atts.getValue("ADElementNameID"); id = get_IDWithColumn("AD_Element", "Name", name); m_Process_para.setAD_Element_ID(id); name = atts.getValue("ADReferenceNameID");/** //Adjust for difference between Oracle and PostgreSql DataTypes if (m_DatabaseType.equals("Oracle")){ if (name.equals("TIMESTAMP")) name = "Date"; else if (name.equals("TIMESTAMP+Time")) name = "Date+Time"; else if (name.equals("NUMERIC")) name = "Number";} else if (m_DatabaseType.equals("Sybase")){ if (name.equals("TIMESTAMP")) name = "Date"; else if (name.equals("TIMESTAMP+Time")) name = "Date+Time"; else if (name.equals("NUMERIC")) name = "Number";} else if (m_DatabaseType.equals("PostgreSQL")){ if (name.equals("Date")) name = "TIMESTAMP"; else if (name.equals("Date+Time")) name = "TIMESTAMP+Time"; else if (name.equals("Number")) name = "NUMERIC";}**/ id = get_IDWithColumn("AD_Reference", "Name", name); m_Process_para.setAD_Reference_ID(id); name = atts.getValue("ADReferenceValueNameID"); id = get_IDWithColumn("AD_Reference", "Name", name); m_Process_para.setAD_Reference_Value_ID(id); name = atts.getValue("ADValRuleNameID"); id = get_IDWithColumn("AD_Val_Rule", "Name", name); m_Process_para.setAD_Val_Rule_ID(id); m_Process_para.setColumnName(atts.getValue("ColumnName")); m_Process_para.setDefaultValue(atts.getValue("DefaultValue")); m_Process_para.setDefaultValue2(atts.getValue("DefaultValue2")); m_Process_para.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Process_para.setEntityType(atts.getValue("EntityType")); m_Process_para.setHelp(atts.getValue("Help").replaceAll("'","''").replaceAll(",","")); m_Process_para.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Process_para.setName(atts.getValue("Name")); m_Process_para.setVFormat(atts.getValue("VFormat")); m_Process_para.setValueMax(atts.getValue("ValueMax")); m_Process_para.setValueMin(atts.getValue("ValueMin")); m_Process_para.setSeqNo(Integer.parseInt(atts.getValue("SeqNo"))); m_Process_para.setFieldLength(Integer.parseInt(atts.getValue("FieldLength"))); m_Process_para.setIsCentrallyMaintained(Boolean.valueOf(atts.getValue("isCentrallyMaintained")).booleanValue()); m_Process_para.setIsMandatory(Boolean.valueOf(atts.getValue("isMandatory")).booleanValue()); m_Process_para.setIsRange(Boolean.valueOf(atts.getValue("isRange")).booleanValue()); if (m_Process_para.save(m_trxName) == true){ record_log (1, m_Process_para.getName(),"Process_para", m_Process_para.get_ID(),AD_Backup_ID, Object_Status,"AD_Process_para",get_IDWithColumn("AD_Table", "TableName", "AD_Process_para")); } else{ record_log (0, m_Process_para.getName(),"Process_para", m_Process_para.get_ID(),AD_Backup_ID, Object_Status,"AD_Process_para",get_IDWithColumn("AD_Table", "TableName", "AD_Process_para")); } } } // table element. else if (elementValue.equals("table")) { String entitytype = atts.getValue("EntityType"); if (entitytype.equals("U") || entitytype.equals("D") && m_UpdateMode.equals("true")) { String tableName = atts.getValue("ADTableNameID"); int id = get_IDWithColumn("AD_Table", "TableName", tableName); m_Table = new X_AD_Table(Env.getCtx(),id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Table",m_Table); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } createtable (tableName); m_Table.setTableName(tableName); String Name = atts.getValue("ADWindowNameID"); id = get_IDWithColumn("AD_Window", "Name", Name); m_Table.setAD_Window_ID(id); Name = atts.getValue("POWindowNameID"); if (Name != null){ id = get_IDWithColumn("AD_Window", "Name", Name); m_Table.setPO_Window_ID(id); } else Name = atts.getValue("ADValRuleNameID"); id = get_IDWithColumn("AD_Val_Rule", "Name", Name); m_Table.setAD_Val_Rule_ID(id); m_Table.setAccessLevel (atts.getValue("AccessLevel")); m_Table.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Table.setEntityType(atts.getValue("EntityType")); m_Table.setHelp(atts.getValue("Help").replaceAll("'","''").replaceAll(",","")); m_Table.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Table.setImportTable(atts.getValue("ImportTable")); m_Table.setIsChangeLog(Boolean.valueOf(atts.getValue("isChangeLog")).booleanValue()); m_Table.setIsDeleteable(Boolean.valueOf(atts.getValue("isDeleteable")).booleanValue()); m_Table.setIsHighVolume(Boolean.valueOf(atts.getValue("isHighVolume")).booleanValue()); m_Table.setIsSecurityEnabled(Boolean.valueOf(atts.getValue("isSecurityEnabled")).booleanValue()); m_Table.setIsView(Boolean.valueOf(atts.getValue("isView")).booleanValue()); //m_Table.setLoadSeq(Integer.parseInt(atts.getValue("LoadSeq"))); m_Table.setName(atts.getValue("Name")); m_Table.setReplicationType(atts.getValue("ReplicationType")); m_Table.setTableName(atts.getValue("TableName"));//log.info("in3"); attsOut.clear(); if (m_Table.save(m_trxName) == true){ record_log (1, m_Table.getName(),"Table", m_Table.get_ID(),AD_Backup_ID, Object_Status,"AD_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Table")); } else{ record_log (0, m_Table.getName(),"Table", m_Table.get_ID(),AD_Backup_ID, Object_Status,"AD_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Table")); } } } // column element. else if (elementValue.equals("column")) { int success=0; String entitytype = atts.getValue("EntityType"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { String columnName = atts.getValue("ColumnName"); int tableid = get_IDWithColumn("AD_Table", "TableName", atts.getValue("ADTableNameID")); int id =get_IDWithMasterAndColumn ("AD_Column", "ColumnName", columnName, "AD_Table", tableid); m_Column = new X_AD_Column(Env.getCtx(),id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Column",m_Column); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_Column.setColumnName(columnName); String Name = atts.getValue("ADProcessNameID"); id = get_IDWithColumn("AD_Process", "Name", Name); m_Column.setAD_Process_ID(id); Name = atts.getValue("ADReferenceNameID");//log.info("Column Name1 ->"+Name);//log.info("Database Name ->"+m_DatabaseType); /** //Adjust for difference between Oracle and PostgreSql DataTypes if (m_DatabaseType.equals("Oracle")){ if (Name.equals("TIMESTAMP")) Name = "Date"; else if (Name.equals("TIMESTAMP+Time")) Name = "Date+Time"; else if (Name.equals("NUMERIC")) Name = "Number";} else if (m_DatabaseType.equals("Sybase")){ if (Name.equals("TIMESTAMP")) Name = "Date"; else if (Name.equals("TIMESTAMP+Time")) Name = "Date+Time"; else if (Name.equals("NUMERIC")) Name = "Number";} else if (m_DatabaseType.equals("PostgreSQL")){ if (Name.equals("Date")) Name = "TIMESTAMP"; else if (Name.equals("Date+Time")) Name = "TIMESTAMP+Time"; else if (Name.equals("Number")) Name = "NUMERIC";}**///log.info("Column Name2 ->"+Name); id = get_IDWithColumn("AD_Reference", "Name", Name); m_Column.setAD_Reference_ID(id); //log.info("Column ID ->"+id); Name = atts.getValue("ADTableNameID"); id = get_IDWithColumn("AD_Table", "TableName", Name); m_Column.setAD_Table_ID(id); Name = atts.getValue("ADValRuleNameID"); id = get_IDWithColumn("AD_Val_Rule", "Name", Name); m_Column.setAD_Val_Rule_ID(id); Name = atts.getValue("ADReferenceNameValueID"); id = get_IDWithColumn("AD_Reference", "Name", Name); m_Column.setAD_Reference_Value_ID(id); m_Column.setCallout(atts.getValue("Callout")); m_Column.setColumnName(atts.getValue("ColumnName")); m_Column.setDefaultValue(atts.getValue("DefaultValue")); m_Column.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Column.setEntityType(atts.getValue("EntityType")); if (Integer.parseInt(atts.getValue("FieldLength")) >0) m_Column.setFieldLength (Integer.parseInt(atts.getValue("FieldLength"))); m_Column.setHelp(atts.getValue("Help").replaceAll("'","''").replaceAll(",","")); m_Column.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Column.setIsAlwaysUpdateable((Boolean.valueOf(atts.getValue("isAlwaysUpdateable")).booleanValue())); //m_Column.setIsEncrypted(atts.getValue("isEncrypted")); m_Column.setIsIdentifier((Boolean.valueOf(atts.getValue("isIdentifier")).booleanValue())); m_Column.setIsKey((Boolean.valueOf(atts.getValue("isKey")).booleanValue())); m_Column.setIsMandatory((Boolean.valueOf(atts.getValue("isMandatory")).booleanValue())); m_Column.setIsParent((Boolean.valueOf(atts.getValue("isParent")).booleanValue())); m_Column.setIsSelectionColumn((Boolean.valueOf(atts.getValue("isSelectionColumn")).booleanValue())); m_Column.setIsSyncDatabase (atts.getValue("getIsSyncDatabase")); m_Column.setIsTranslated((Boolean.valueOf(atts.getValue("isTranslated")).booleanValue())); m_Column.setIsUpdateable((Boolean.valueOf(atts.getValue("isUpdateable")).booleanValue())); m_Column.setName(atts.getValue("Name")); m_Column.setReadOnlyLogic(atts.getValue("ReadOnlyLogic")); if (Integer.parseInt(atts.getValue("SeqNo")) >0) m_Column.setSeqNo(Integer.parseInt(atts.getValue("SeqNo"))); m_Column.setVFormat(atts.getValue("VFormat")); if (atts.getValue("ValueMax") != null) m_Column.setValueMax(atts.getValue("ValueMax")); if (atts.getValue("ValueMin") != null) m_Column.setValueMin(atts.getValue("ValueMin")); m_Column.setVersion(new BigDecimal("0.0")); // Setup Element. id = get_IDWithColumn("AD_Element", "ColumnName", m_Column.getColumnName()); X_AD_Element element = new X_AD_Element(Env.getCtx(), id,null); String Object_Status_col = Object_Status; if (element.getAD_Element_ID() == 0) { //Object_Status = "New"; element.setColumnName(m_Column.getColumnName()); element.setEntityType(m_Column.getEntityType()); element.setPrintName(m_Column.getColumnName()); element.setName(m_Column.getColumnName()); if (element.save(m_trxName) == true){ record_log (1, m_Column.getName(),"Element", element.getAD_Element_ID(),AD_Backup_ID, "New","AD_Element",get_IDWithColumn("AD_Table", "TableName", "AD_Element")); } else{ record_log (0, m_Column.getName(),"Element", element.getAD_Element_ID(),AD_Backup_ID, "New","AD_Element",get_IDWithColumn("AD_Table", "TableName", "AD_Element")); } } Object_Status = Object_Status_col; m_Column.setAD_Element_ID(element.getAD_Element_ID()); if (m_Column.save(m_trxName) == true){ record_log (1, m_Column.getName(),"Column", m_Column.get_ID(),AD_Backup_ID, Object_Status,"AD_Column",get_IDWithColumn("AD_Table", "TableName", "AD_Column")); } else{ record_log (0, m_Column.getName(),"Column", m_Column.get_ID(),AD_Backup_ID, Object_Status,"AD_Column",get_IDWithColumn("AD_Table", "TableName", "AD_Column")); } success = createcolumn (atts.getValue("ADTableNameID").toUpperCase(), columnName.toUpperCase(), m_Column.getAD_Reference_ID(),m_Column.getFieldLength(), atts.getValue("DefaultValue"), m_Column.isMandatory()); if (success == 1){ record_log (1, m_Column.getColumnName(),"dbColumn", m_Column.get_ID(),0, Object_Status,atts.getValue("ADTableNameID").toUpperCase(),get_IDWithColumn("AD_Table", "TableName", atts.getValue("ADTableNameID").toUpperCase())); } else{ record_log (0, m_Column.getColumnName(),"dbColumn", m_Column.get_ID(),0, Object_Status,atts.getValue("ADTableNameID").toUpperCase(),get_IDWithColumn("AD_Table", "TableName", atts.getValue("ADTableNameID").toUpperCase())); } } } // Role element. else if (elementValue.equals("role")) { String name = atts.getValue("Name"); int id = get_ID("AD_Role", name); m_Role = new X_AD_Role(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Role",m_Role); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_Role.setName(name); name = atts.getValue("treemenuname"); if (name!= null){ id = get_IDWithColumn("AD_Tree", "Name", name); m_Role.setAD_Tree_Menu_ID(id); } name = null; name = atts.getValue("treeorgname"); if (name!= null){ id = get_IDWithColumn("AD_Tree", "Name", name); m_Role.setAD_Tree_Org_ID(id); } name = null; name = atts.getValue("currencycode"); if (name!= null){ id = get_IDWithColumn("C_Currency", "ISO_Code", name); m_Role.setC_Currency_ID(id); } name = null; name = atts.getValue("supervisorid"); if (name!= null){ id = get_IDWithColumn("AD_User", "Name", name); m_Role.setC_Currency_ID(id); } m_Role.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Role.setAmtApproval(new BigDecimal(atts.getValue("AmtApproval"))); m_Role.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Role.setIsAccessAllOrgs(atts.getValue("isAccessAllOrgs") != null ? Boolean.valueOf(atts.getValue("isAccessAllOrgs")).booleanValue():true); m_Role.setIsCanApproveOwnDoc(atts.getValue("isCanApproveOwnDoc") != null ? Boolean.valueOf(atts.getValue("isCanApproveOwnDoc")).booleanValue():true); m_Role.setIsCanExport(atts.getValue("isCanExport") != null ? Boolean.valueOf(atts.getValue("isCanExport")).booleanValue():true); m_Role.setIsCanReport(atts.getValue("isCanReport") != null ? Boolean.valueOf(atts.getValue("isCanReport")).booleanValue():true); m_Role.setIsChangeLog(atts.getValue("isChangeLog") != null ? Boolean.valueOf(atts.getValue("isChangeLog")).booleanValue():true); m_Role.setIsManual(atts.getValue("isManual") != null ? Boolean.valueOf(atts.getValue("isManual")).booleanValue():true); m_Role.setIsPersonalAccess(atts.getValue("isPersonalAccess") != null ? Boolean.valueOf(atts.getValue("isPersonalAccess")).booleanValue():true); m_Role.setIsPersonalLock(atts.getValue("isPersonalLock") != null ? Boolean.valueOf(atts.getValue("isPersonalLock")).booleanValue():true); m_Role.setIsShowAcct(atts.getValue("isShowAcct") != null ? Boolean.valueOf(atts.getValue("isShowAcct")).booleanValue():true); m_Role.setIsUseUserOrgAccess(atts.getValue("isUseUserOrgAccess") != null ? Boolean.valueOf(atts.getValue("isUseUserOrgAccess")).booleanValue():true); m_Role.setOverwritePriceLimit(atts.getValue("isOverwritePriceLimit") != null ? Boolean.valueOf(atts.getValue("isOverwritePriceLimit")).booleanValue():true); m_Role.setPreferenceType(atts.getValue("PreferenceType")); m_Role.setUserLevel(atts.getValue("UserLevel")); if (m_Role.save(m_trxName) == true){ record_log (1, m_Role.getName(),"Role", m_Role.get_ID(),AD_Backup_ID, Object_Status,"AD_Role",get_IDWithColumn("AD_Table", "TableName", "AD_Role")); } else{ record_log (0, m_Role.getName(),"Role", m_Role.get_ID(),AD_Backup_ID, Object_Status,"AD_Role",get_IDWithColumn("AD_Table", "TableName", "AD_Role")); } } else if (elementValue.equals("userrole")) { int roleid =0; int userid =0; int orgid =0; if (atts.getValue("username")!=null){ String name = atts.getValue("username"); sqlB = new StringBuffer ("SELECT AD_User_ID FROM AD_User WHERE Name= ?"); userid = DB.getSQLValue(null,sqlB.toString(),name); } if (atts.getValue("rolename")!=null){ String name = atts.getValue("rolename"); sqlB = new StringBuffer ("SELECT AD_Role_ID FROM AD_Role WHERE Name= ?"); roleid = DB.getSQLValue(null,sqlB.toString(),name); } if (atts.getValue("orgname")!=null){ String name = atts.getValue("orgname"); sqlB = new StringBuffer ("SELECT AD_Org_ID FROM AD_Org WHERE Name= ?"); orgid = DB.getSQLValue(null,sqlB.toString(),name); } sqlB = new StringBuffer ("SELECT count(*) FROM AD_User_Roles WHERE AD_User_ID = ? and AD_Role_ID = ? and AD_Org_ID = "+orgid); int count = DB.getSQLValue(null,sqlB.toString(),userid,roleid); if (count>0){ //AD_Backup_ID = copyRecord("AD_Role",m_Role); Object_Status = "Update"; sqlB = new StringBuffer ("UPDATE AD_User_Roles " + "SET isActive = '" + atts.getValue("isActive")+"'" + " WHERE AD_User_ID = " + userid + " and AD_Role_ID = " + roleid + " and AD_Org_ID = " + orgid ); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Update to user roles failed"); } else{ Object_Status = "New"; AD_Backup_ID =0; sqlB = new StringBuffer ("Insert INTO AD_User_Roles" + "(AD_Client_ID, CreatedBy, UpdatedBy, " + "AD_User_ID, AD_Role_ID, AD_Org_ID, isActive) " + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " +userid + ", " + roleid + ", " + orgid + ", '" + atts.getValue("isActive")+"')"); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to user roles failed"); } } else if (elementValue.equals("orgrole")) { int roleid =0; int orgid =0; if (atts.getValue("rolename")!=null){ String name = atts.getValue("rolename"); sqlB = new StringBuffer ("SELECT AD_Role_ID FROM AD_Role WHERE Name= ?"); roleid = DB.getSQLValue(null,sqlB.toString(),name); } if (atts.getValue("orgname")!=null){ String name = atts.getValue("orgname"); sqlB = new StringBuffer ("SELECT AD_Org_ID FROM AD_Org WHERE Name= ?"); orgid = DB.getSQLValue(null,sqlB.toString(),name); } sqlB = new StringBuffer ("SELECT count(*) FROM AD_Role_OrgAccess WHERE AD_Role_ID=? and AD_Org_ID=?"); int count = DB.getSQLValue(null,sqlB.toString(),roleid,orgid); if (count>0){ Object_Status = "Update"; sqlB = new StringBuffer ("UPDATE AD_Role_OrgAccess " + "SET isActive = '" + atts.getValue("isActive") + "', isReadOnly = '" + atts.getValue("isReadOnly") + "' WHERE AD_Role_ID = " + roleid + " and AD_Org_ID = " + orgid ); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Update to org access failed"); } else{ Object_Status = "New"; AD_Backup_ID =0; sqlB = new StringBuffer ("Insert INTO AD_Role_OrgAccess" + "(AD_Client_ID, CreatedBy, UpdatedBy, " + "AD_Role_ID, AD_Org_ID, isActive, isReadOnly) " + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " + roleid + ", " + orgid + ", '" + atts.getValue("isActive") + "', '" + atts.getValue("isReadOnly")+"')"); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to org access failed"); } } else if (elementValue.equals("windowaccess")) { int roleid =0; int windowid =0; if (atts.getValue("rolename")!=null){ String name = atts.getValue("rolename"); sqlB = new StringBuffer ("SELECT AD_Role_ID FROM AD_Role WHERE Name= ?"); roleid = DB.getSQLValue(null,sqlB.toString(),name); } if (atts.getValue("windowname")!=null){ String name = atts.getValue("windowname"); sqlB = new StringBuffer ("SELECT AD_Window_ID FROM AD_Window WHERE Name= ?"); windowid = DB.getSQLValue(null,sqlB.toString(),name); } sqlB = new StringBuffer ("SELECT count(*) FROM AD_Window_Access WHERE AD_Role_ID=? and AD_Window_ID=?"); int count = DB.getSQLValue(null,sqlB.toString(),roleid,windowid); if (count>0){ Object_Status = "Update"; sqlB = new StringBuffer ("UPDATE AD_Window_Access " + "SET isActive = '" + atts.getValue("isActive") + "', isReadWrite = '" + atts.getValue("isReadWrite") + "' WHERE AD_Role_ID = " + roleid + " and AD_Window_ID = " + windowid ); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Update to window access failed"); } else{ Object_Status = "New"; AD_Backup_ID =0; sqlB = new StringBuffer ("Insert INTO AD_Window_Access" + "(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, " + "AD_Role_ID, AD_Window_ID, isActive, isReadWrite) " + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_Org_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " + roleid + ", " + windowid + ", '" + atts.getValue("isActive") + "', '" + atts.getValue("isReadWrite")+"')"); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to window access failed"); } } else if (elementValue.equals("processaccess")) { int roleid =0; int processid =0; if (atts.getValue("rolename")!=null){ String name = atts.getValue("rolename"); sqlB = new StringBuffer ("SELECT AD_Role_ID FROM AD_Role WHERE Name= ?"); roleid = DB.getSQLValue(null,sqlB.toString(),name); } if (atts.getValue("processname")!=null){ String name = atts.getValue("processname"); sqlB = new StringBuffer ("SELECT AD_Process_ID FROM AD_Process WHERE Name= ?"); processid = DB.getSQLValue(null,sqlB.toString(),name); } sqlB = new StringBuffer ("SELECT count(*) FROM AD_Process_Access WHERE AD_Role_ID=? and AD_Process_ID=?"); int count = DB.getSQLValue(null,sqlB.toString(),roleid,processid); if (count>0){ Object_Status = "Update"; sqlB = new StringBuffer ("UPDATE AD_Process_Access " + "SET isActive = '" + atts.getValue("isActive") + "', isReadWrite = '" + atts.getValue("isReadWrite") + "' WHERE AD_Role_ID = " + roleid + " and AD_Process_ID = " + processid ); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Update to process access failed"); } else{ Object_Status = "New"; AD_Backup_ID =0; sqlB = new StringBuffer ("Insert INTO AD_Process_Access" + "(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, " + "AD_Role_ID, AD_Process_ID, isActive, isReadWrite) " + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_Org_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " + roleid + ", " + processid + ", '" + atts.getValue("isActive") + "', '" + atts.getValue("isReadWrite")+"')"); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to process access failed"); } } else if (elementValue.equals("formaccess")) { int roleid =0; int formid =0; if (atts.getValue("rolename")!=null){ String name = atts.getValue("rolename"); sqlB = new StringBuffer ("SELECT AD_Role_ID FROM AD_Role WHERE Name= ?"); roleid = DB.getSQLValue(null,sqlB.toString(),name); } if (atts.getValue("formname")!=null){ String name = atts.getValue("formname"); sqlB = new StringBuffer ("SELECT AD_Form_ID FROM AD_Process WHERE Name= ?"); formid = DB.getSQLValue(null,sqlB.toString(),name); } sqlB = new StringBuffer ("SELECT count(*) FROM AD_Form_Access WHERE AD_Role_ID=? and AD_Form_ID=?"); int count = DB.getSQLValue(null,sqlB.toString(),roleid,formid); if (count>0){ Object_Status = "Update"; sqlB = new StringBuffer ("UPDATE AD_Form_Access " + "SET isActive = '" + atts.getValue("isActive") + "', isReadWrite = '" + atts.getValue("isReadWrite") + "' WHERE AD_Role_ID = " + roleid + " and AD_Form_ID = " + formid ); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Update to form access failed"); } else{ Object_Status = "New"; AD_Backup_ID =0; sqlB = new StringBuffer ("Insert INTO AD_Form_Access" + "(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, " + "AD_Role_ID, AD_Form_ID, isActive, isReadWrite) " + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_Org_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " + roleid + ", " + formid + ", '" + atts.getValue("isActive") + "', '" + atts.getValue("isReadWrite")+"')"); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to form access failed"); } } else if (elementValue.equals("workflowaccess")) { int roleid =0; int workflowid =0; if (atts.getValue("rolename")!=null){ String name = atts.getValue("rolename"); sqlB = new StringBuffer ("SELECT AD_Role_ID FROM AD_Role WHERE Name= ?"); roleid = DB.getSQLValue(null,sqlB.toString(),name); } if (atts.getValue("workflowname")!=null){ String name = atts.getValue("workflowname"); sqlB = new StringBuffer ("SELECT AD_Workflow_ID FROM AD_Workflow WHERE Name= ?"); workflowid = DB.getSQLValue(null,sqlB.toString(),name); } sqlB = new StringBuffer ("SELECT count(*) FROM AD_Workflow_Access WHERE AD_Role_ID=? and AD_Workflow_ID=?"); int count = DB.getSQLValue(null,sqlB.toString(),roleid,workflowid); if (count>0){ Object_Status = "Update"; sqlB = new StringBuffer ("UPDATE AD_Workflow_Access " + "SET isActive = '" + atts.getValue("isActive") + "', isReadWrite = '" + atts.getValue("isReadWrite") + "' WHERE AD_Role_ID = " + roleid + " and AD_Workflow_ID = " + workflowid ); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Update to workflow access failed"); } else{ Object_Status = "New"; AD_Backup_ID =0; sqlB = new StringBuffer ("Insert INTO AD_Workflow_Access" + "(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, " + "AD_Role_ID, AD_Workflow_ID, isActive, isReadWrite) " + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_Org_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " + roleid + ", " + workflowid + ", '" + atts.getValue("isActive") + "', '" + atts.getValue("isReadWrite")+"')"); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to workflow access failed"); } } else if (elementValue.equals("taskaccess")) { int roleid =0; int taskid =0; if (atts.getValue("rolename")!=null){ String name = atts.getValue("rolename"); sqlB = new StringBuffer ("SELECT AD_Role_ID FROM AD_Role WHERE Name= ?"); roleid = DB.getSQLValue(null,sqlB.toString(),name); } if (atts.getValue("taskname")!=null){ String name = atts.getValue("taskname"); sqlB = new StringBuffer ("SELECT AD_Task_ID FROM AD_Task WHERE Name= ?"); taskid = DB.getSQLValue(null,sqlB.toString(),name); } sqlB = new StringBuffer ("SELECT count(*) FROM AD_Task_Access WHERE AD_Role_ID=? and AD_Task_ID=?"); int count = DB.getSQLValue(null,sqlB.toString(),roleid,taskid); if (count>0){ Object_Status = "Update"; sqlB = new StringBuffer ("UPDATE AD_Task_Access " + "SET isActive = '" + atts.getValue("isActive") + "', isReadWrite = '" + atts.getValue("isReadWrite") + "' WHERE AD_Role_ID = " + roleid + " and AD_Task_ID = " + taskid ); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Update to task access failed"); } else{ Object_Status = "New"; AD_Backup_ID =0; sqlB = new StringBuffer ("Insert INTO AD_Task_Access" + "(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, " + "AD_Role_ID, AD_Task_ID, isActive, isReadWrite) " + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_Org_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " + roleid + ", " + taskid + ", '" + atts.getValue("isActive") + "', '" + atts.getValue("isReadWrite")+"')"); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to task access failed"); } } // task element. else if (elementValue.equals("task")) { String entitytype = atts.getValue("EntityType"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { String name = atts.getValue("ADTaskNameID"); int id = get_ID("AD_Task", name); m_Task = new X_AD_Task(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Task",m_Task); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_Task.setAccessLevel(atts.getValue("AccessLevel")); m_Task.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Task.setEntityType(atts.getValue("EntityType")); m_Task.setHelp(atts.getValue("Help").replaceAll("'","''").replaceAll(",","")); m_Task.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Task.setName(name); m_Task.setOS_Command(atts.getValue("OS_Command")); if (m_Task.save(m_trxName) == true){ record_log (1, m_Task.getName(),"Task", m_Task.get_ID(),AD_Backup_ID, Object_Status,"AD_Task",get_IDWithColumn("AD_Table", "TableName", "AD_Task")); } else{ record_log (0, m_Task.getName(),"Task", m_Task.get_ID(),AD_Backup_ID, Object_Status,"AD_Task",get_IDWithColumn("AD_Table", "TableName", "AD_Task")); } } } // form element. else if (elementValue.equals("form")) { String entitytype = atts.getValue("EntityType"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { String name = atts.getValue("ADFormNameID"); int id = get_ID("AD_Form", name); m_Form = new X_AD_Form(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Form",m_Form); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_Form.setClassname (atts.getValue("Classname")); m_Form.setIsBetaFunctionality (Boolean.valueOf(atts.getValue("isBetaFunctionality")).booleanValue()); m_Form.setAccessLevel(atts.getValue("AccessLevel")); m_Form.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Form.setEntityType(atts.getValue("EntityType")); m_Form.setHelp(atts.getValue("Help").replaceAll(",","")); m_Form.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Form.setName(atts.getValue("Name")); if (m_Form.save(m_trxName) == true){ record_log (1, m_Form.getName(),"Form", m_Form.get_ID(),AD_Backup_ID, Object_Status,"AD_Form",get_IDWithColumn("AD_Table", "TableName", "AD_Form")); } else{ record_log (0, m_Form.getName(),"Form", m_Form.get_ID(),AD_Backup_ID, Object_Status,"AD_Form",get_IDWithColumn("AD_Table", "TableName", "AD_Form")); } } }// impformat element. else if (elementValue.equals("impformat")) { int id = get_ID("AD_ImpFormat", atts.getValue("Name")); m_ImpFormat = new X_AD_ImpFormat(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_ImpFormat",m_ImpFormat); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_ImpFormat.setName(atts.getValue("Name")); String Name = atts.getValue("ADTableNameID"); id = get_IDWithColumn("AD_Table", "TableName", Name); m_ImpFormat.setAD_Table_ID(id); m_ImpFormat.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_ImpFormat.setProcessing(atts.getValue("isProcessing") != null ? Boolean.valueOf(atts.getValue("isProcessing")).booleanValue():true); m_ImpFormat.setName(atts.getValue("Name")); m_ImpFormat.setDescription(atts.getValue("Description")); m_ImpFormat.setFormatType(atts.getValue("FormatType")); m_ImpFormat.save(m_trxName); if (m_ImpFormat.save(m_trxName) == true){ record_log (1, m_ImpFormat.getName(),"ImpFormat", m_ImpFormat.get_ID(),AD_Backup_ID, Object_Status,"AD_ImpFormat",get_IDWithColumn("AD_Table", "TableName", "AD_ImpFormat")); } else{ record_log (0, m_ImpFormat.getName(),"ImpFormat", m_ImpFormat.get_ID(),AD_Backup_ID, Object_Status,"AD_ImpFormat",get_IDWithColumn("AD_Table", "TableName", "AD_ImpFormat")); } } //impformatrow element else if (elementValue.equals("impformatrow")) { int impformid = get_ID("AD_ImpFormat", atts.getValue("ADImpFormatNameID")); int tableid = get_IDWithColumn("AD_Table", "TableName", atts.getValue("ADTableNameID")); int columnid = get_IDWithMasterAndColumn ("AD_Column","ColumnName", atts.getValue("ADColumnNameID"), "AD_Table", tableid); sqlB = new StringBuffer ("SELECT AD_ImpFormat_Row_ID FROM AD_ImpFormat_Row WHERE AD_Column_ID=? and AD_ImpFormat_ID=?"); int id = DB.getSQLValue(null,sqlB.toString(),columnid,impformid); m_ImpFormat_row = new X_AD_ImpFormat_Row(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_ImpFormat",m_ImpFormat_row); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_ImpFormat_row.setName(atts.getValue("Name")); m_ImpFormat_row.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_ImpFormat_row.setAD_Column_ID(columnid); m_ImpFormat_row.setAD_ImpFormat_ID(impformid); m_ImpFormat_row.setDataFormat(atts.getValue("DataFormat")); m_ImpFormat_row.setDataType(atts.getValue("DataType")); m_ImpFormat_row.setDecimalPoint(atts.getValue("DecimalPoint")); m_ImpFormat_row.setDivideBy100(atts.getValue("isDivideBy100") != null ? Boolean.valueOf(atts.getValue("isDivideBy100")).booleanValue():true); m_ImpFormat_row.setConstantValue(atts.getValue("ConstantValue")); m_ImpFormat_row.setCallout(atts.getValue("Callout")); m_ImpFormat_row.setEndNo(Integer.parseInt(atts.getValue("EndNo"))); m_ImpFormat_row.setScript(atts.getValue("Script")); m_ImpFormat_row.setSeqNo(Integer.parseInt(atts.getValue("SeqNo"))); m_ImpFormat_row.setStartNo(Integer.parseInt(atts.getValue("StartNo"))); m_ImpFormat_row.save(m_trxName); if (m_ImpFormat_row.save(m_trxName) == true){ record_log (1, m_ImpFormat_row.getName(),"ImpFormat", m_ImpFormat_row.get_ID(),AD_Backup_ID, Object_Status,"AD_ImpFormat",get_IDWithColumn("AD_Table", "TableName", "m_ImpFormat_row")); } else{ record_log (0, m_ImpFormat_row.getName(),"ImpFormat", m_ImpFormat_row.get_ID(),AD_Backup_ID, Object_Status,"AD_ImpFormat",get_IDWithColumn("AD_Table", "TableName", "m_ImpFormat_row")); } } // workbench element. else if (elementValue.equals("workbench")) { String entitytype = atts.getValue("EntityType"); String name = atts.getValue("ADWorkbenchNameID"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { int id = get_ID("AD_Workbench", name); m_Workbench = new X_AD_Workbench(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Workbench",m_Workbench); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } int tableid = get_IDWithColumn("AD_Table", "TableName", atts.getValue("ADTableNameID")); int columnid = get_IDWithMasterAndColumn ("AD_Column","ColumnName", atts.getValue("ADColumnNameID"), "AD_Table", tableid); m_Workbench.setAD_Column_ID(columnid); m_Workbench.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Workbench.setEntityType(atts.getValue("EntityType")); m_Workbench.setHelp(atts.getValue("Help").replaceAll("'","''").replaceAll(",","")); m_Workbench.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Workbench.setName(atts.getValue("Name")); //m_Workbench.setPA_Goal_ID(Integer.parseInt(atts.getValue("PAGoalID"))); if (m_Workbench.save(m_trxName) == true){ record_log (1, m_Workbench.getName(),"Workbench", m_Workbench.get_ID(),AD_Backup_ID, Object_Status,"AD_Workbench",get_IDWithColumn("AD_Table", "TableName", "AD_Workbench")); } else{ record_log (0, m_Workbench.getName(),"Workbench", m_Workbench.get_ID(),AD_Backup_ID, Object_Status,"AD_Workbench",get_IDWithColumn("AD_Table", "TableName", "AD_Workbench")); } } } // Snipit element. else if (elementValue.equals("codesnipit")) { Object_Status = "Update"; String releaseNumber = atts.getValue("ReleaseNo"); //Check Release Number if(Adempiere.MAIN_VERSION.equals(releaseNumber)||releaseNumber.equals("all")){ String sourceName = atts.getValue("filename"); String targetDirectory = atts.getValue("filedir"); String oldCode = atts.getValue("oldcode"); String newCode = atts.getValue("newcode"); int idDetail=0; InputStream source; // Stream for reading from the source file. OutputStream copy; // Stream for writing the copy. File currentDirectory = new File("."); String packagePath=null; String sourcePath=null; //get compiere-all directory try { packagePath = currentDirectory.getCanonicalPath(); File parentDirectory = new File(packagePath); while (!parentDirectory.getName().equals("packages")){ parentDirectory = parentDirectory.getParentFile(); } parentDirectory = parentDirectory.getParentFile(); sourcePath = parentDirectory.getCanonicalPath(); } catch (IOException e1) { System.out.println("Can't find compiere-all directory."); } // Create backup directory if required File backupDir = new File(packagePath+fileSeperator+"backup"+fileSeperator); if (!backupDir.exists()){ boolean success = (new File(packagePath+fileSeperator+"backup"+fileSeperator)).mkdirs(); if (!success) { log.info("Backup directory creation failed"); } } //Correct target directory for proper file seperator String fullDirectory = sourcePath+targetDirectory; String targetDirectoryModified=null; char slash1 = '\\'; char slash2 = '/'; if (fileSeperator.equals("/")) targetDirectoryModified = fullDirectory.replace(slash1,slash2); else targetDirectoryModified = fullDirectory.replace(slash2,slash1); File file = new File(targetDirectoryModified+sourceName); log.info(targetDirectoryModified+sourceName); // check to see if overwrites are allowed if (file.exists() && force == false) { System.out.println( "Output file exists. Use the -f option to replace it."); return; } //backup file to package directory else if (file.exists() && force == true) { Object_Status = "Update"; log.info("Target Backup:"+targetDirectoryModified+sourceName); source = OpenInputfile(targetDirectoryModified+sourceName); SimpleDateFormat formatter_file = new SimpleDateFormat("yyMMddHHmmssSSSSZ"); Date today = new Date(); fileDate = formatter_file.format(today); copy = OpenOutputfile(packagePath+fileSeperator+"backup"+fileSeperator+fileDate+"_"+sourceName); log.info("Source Backup:"+packagePath+fileSeperator+"backup"+fileSeperator+fileDate+"_"+sourceName); copyFile (source,copy); log.info("Backup Complete"); } int success = readReplace(targetDirectoryModified+sourceName, oldCode, newCode); // Record in log int idBackup = MSequence.getNextID (Env.getAD_Client_ID(Env.getCtx()), "AD_Package_Imp_Backup", null); if (success != -1){ try { idDetail = record_log (1, sourceName,"codesnipit", 0,0, Object_Status,sourceName,0); } catch (SAXException e) { log.info ("setfile:"+e); } } else{ try { idDetail = record_log (0, sourceName,"codesnipit", 0,0, Object_Status,sourceName,0); } catch (SAXException e) { log.info ("setfile:"+e); } } //Record in transaction file sqlB = new StringBuffer ("Insert INTO AD_Package_Imp_Backup" + "(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, " + "AD_PACKAGE_IMP_BACKUP_ID, AD_PACKAGE_IMP_DETAIL_ID, AD_PACKAGE_IMP_ID," + " AD_PACKAGE_IMP_ORG_DIR, AD_PACKAGE_IMP_BCK_DIR)" + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_Org_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " + idBackup + ", " + idDetail + ", " + AD_Package_Imp_ID + ", '" + targetDirectoryModified+sourceName + "', '" + packagePath+fileSeperator+"backup"+fileSeperator+fileDate+"_"+sourceName +"')"); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to import backup failed"); } } // Copy Code to destination else if (elementValue.equals("distfile")) { String releaseNumber = atts.getValue("ReleaseNo"); //log.info(atts.getValue("ReleaseNo")); //log.info(Compiere.MAIN_VERSION); //Check Release Number if(releaseNumber==null||Adempiere.MAIN_VERSION.equals(releaseNumber)||releaseNumber.equals("all")){ String sourceName = atts.getValue("name"); String sourceDirectory = atts.getValue("sourceDirectory"); String targetDirectory = atts.getValue("targetDirectory"); Object_Status = "New"; int idDetail=0; InputStream source; // Stream for reading from the source file. OutputStream copy; // Stream for writing the copy. String packagePath=null; String sourcePath=null; //get compiere-all directory try { packagePath = packageDirectory; File parentDirectory = new File(packagePath); while (!parentDirectory.getName().equals("packages")){ parentDirectory = parentDirectory.getParentFile(); } parentDirectory = parentDirectory.getParentFile(); sourcePath = parentDirectory.getCanonicalPath(); } catch (IOException e1) { System.out.println("Can't find compiere-all directory."); } // Create backup directory if required File backupDir = new File(packagePath+fileSeperator+"backup"+fileSeperator); if (!backupDir.exists()){ boolean success = (new File(packagePath+fileSeperator+"backup"+fileSeperator)).mkdirs(); if (!success) { log.info("Backup directory creation failed"); } } //Correct target directory for proper file seperator String fullDirectory = sourcePath+targetDirectory; String targetDirectoryModified=null; char slash1 = '\\'; char slash2 = '/'; if (fileSeperator.equals("/")) targetDirectoryModified = fullDirectory.replace(slash1,slash2); else targetDirectoryModified = fullDirectory.replace(slash2,slash1); File file = new File(targetDirectoryModified+sourceName); //check to see if overwrites are allowed if (file.exists() && force == false) { System.out.println( "Output file exists. Use the -f option to replace it."); return; } //backup file to package directory else if (file.exists() && force == true) { Object_Status = "Update"; log.info("Target Backup:"+targetDirectoryModified+sourceName); source = OpenInputfile(targetDirectoryModified+sourceName); SimpleDateFormat formatter_file = new SimpleDateFormat("yyMMddHHmmssSSSSZ"); Date today = new Date(); fileDate = formatter_file.format(today); copy = OpenOutputfile(packagePath+fileSeperator+"backup"+fileSeperator+fileDate+"_"+sourceName); log.info("Source Backup:"+packagePath+fileSeperator+"backup"+fileSeperator+fileDate+"_"+sourceName); copyFile (source,copy); log.info("Backup Complete"); } // Correct dist directory for proper file seperator String distDirectoryModified=null; if (fileSeperator.equals("/")) distDirectoryModified = sourceDirectory.replace(slash1,slash2); else distDirectoryModified = sourceDirectory.replace(slash2,slash1); source = OpenInputfile(packagePath+distDirectoryModified+sourceName); // Create Target directory if required File targetDir = new File(targetDirectoryModified); if (!targetDir.exists()){ boolean success = (new File(targetDirectoryModified)).mkdirs(); if (!success) { log.info("Target directory creation failed"); } } copy = OpenOutputfile(targetDirectoryModified+sourceName); //Copy File int success = copyFile (source,copy); //Record in log int idBackup = MSequence.getNextID (Env.getAD_Client_ID(Env.getCtx()), "AD_Package_Imp_Backup", null); if (success != -1){ try { idDetail = record_log (1, sourceName,"file", 0,0, Object_Status,sourceName,0); } catch (SAXException e) { log.info ("setfile:"+e); } } else{ try { idDetail = record_log (0, sourceName,"file", 0,0, Object_Status,sourceName,0); } catch (SAXException e) { log.info ("setfile:"+e); } } //Record in transaction file sqlB = new StringBuffer ("Insert INTO AD_Package_Imp_Backup" + "(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, " + "AD_PACKAGE_IMP_BACKUP_ID, AD_PACKAGE_IMP_DETAIL_ID, AD_PACKAGE_IMP_ID," + " AD_PACKAGE_IMP_ORG_DIR, AD_PACKAGE_IMP_BCK_DIR)" + "VALUES(" + " "+ Env.getAD_Client_ID(Env.getCtx()) + ", "+ Env.getAD_Org_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", "+ Env.getAD_User_ID(Env.getCtx()) + ", " + idBackup + ", " + idDetail + ", " + AD_Package_Imp_ID + ", '" + targetDirectoryModified+sourceName + "', '" + packagePath+fileSeperator+"backup"+fileSeperator+fileDate+"_"+sourceName +"')"); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no == -1) log.info("Insert to import backup failed"); } } // workbenchwindow element else if (elementValue.equals("workbenchwindow")) {// TODO: Solve for lack of name to identify window } else if (elementValue.equals("reportview")) { String entitytype = atts.getValue("EntityType"); String name = atts.getValue("ADReportviewnameID"); int id = get_ID("AD_ReportView", name); m_Reportview = new X_AD_ReportView(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Reportview",m_Reportview); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } String Name = atts.getValue("ADTableNameID"); id = get_IDWithColumn("AD_Table", "TableName", Name); if (id == 0 ){ createtable (name); m_Table = new X_AD_Table(Env.getCtx(), 0,null); m_Table.setAccessLevel("3"); m_Table.setName(Name); m_Table.setTableName(Name); if (m_Table.save(m_trxName) == true){ record_log (1, m_Table.getName(),"Table", m_Table.get_ID(),0, "New","AD_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Table")); } else{ record_log (0, m_Table.getName(),"Table", m_Table.get_ID(),0, "New","AD_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Table")); } id = get_IDWithColumn("AD_Table", "TableName", Name); } m_Reportview.setAD_Table_ID(id); m_Reportview.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Reportview.setEntityType(atts.getValue("EntityType")); m_Reportview.setName(atts.getValue("Name")); m_Reportview.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Reportview.setOrderByClause(atts.getValue("OrderByClause")); m_Reportview.setWhereClause(atts.getValue("WhereClause")); if (m_Reportview.save(m_trxName) == true){ record_log (1, m_Reportview.getName(),"Reportview", m_Reportview.get_ID(),AD_Backup_ID, Object_Status,"AD_Reportview",get_IDWithColumn("AD_Table", "TableName", "AD_Reportview")); } else{ record_log (0, m_Reportview.getName(),"Reportview", m_Reportview.get_ID(),AD_Backup_ID, Object_Status,"AD_Reportview",get_IDWithColumn("AD_Table", "TableName", "AD_Reportview")); } } else if (elementValue.equals("printformat")) { String name = atts.getValue("Name"); int id = get_IDWithColumn("AD_PrintFormat", "Name", name); m_PrintFormat = new X_AD_PrintFormat(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_PrintFormat",m_PrintFormat); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } name = atts.getValue("ADReportviewnameID"); id = get_IDWithColumn("AD_ReportView", "Name", name); m_PrintFormat.setAD_ReportView_ID(id); name = atts.getValue("ADTableNameID"); id = get_IDWithColumn("AD_Table", "TableName", name); if (id == 0 ){ createtable (name); m_Table = new X_AD_Table(Env.getCtx(), 0,null); m_Table.setAccessLevel("3"); m_Table.setName(name); m_Table.setTableName(name); if (m_Table.save(m_trxName) == true){ record_log (1, m_Table.getName(),"Table", m_Table.get_ID(),0, "New","AD_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Table")); } else{ record_log (0, m_Table.getName(),"Table", m_Table.get_ID(),0, "New","AD_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Table")); } id = get_IDWithColumn("AD_Table", "TableName", name); } m_PrintFormat.setAD_Table_ID(id); name = atts.getValue("ADPrintTableFormatID"); id = get_IDWithColumn("AD_PrintTableFormat", "Name", name); m_PrintFormat.setAD_PrintTableFormat_ID(id); name = atts.getValue("ADPrintColorID"); id = get_IDWithColumn("AD_PrintColor", "Name", name); m_PrintFormat.setAD_PrintColor_ID(id); name = atts.getValue("ADPrintFontID"); id = get_IDWithColumn("AD_PrintFont", "Name", name); m_PrintFormat.setAD_PrintFont_ID(id); name = atts.getValue("ADPrintPaperID"); id = get_IDWithColumn("AD_PrintPaper", "Name", name); m_PrintFormat.setAD_PrintPaper_ID(id); m_PrintFormat.setDescription (atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_PrintFormat.setName (atts.getValue("Name")); m_PrintFormat.setPrinterName(atts.getValue("PrinterName")); m_PrintFormat.setFooterMargin(Integer.parseInt(atts.getValue("FooterMargin"))); m_PrintFormat.setHeaderMargin(Integer.parseInt(atts.getValue("HeaderMargin"))); m_PrintFormat.setCreateCopy(atts.getValue("CreateCopy")); m_PrintFormat.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_PrintFormat.setIsTableBased(Boolean.valueOf(atts.getValue("isTableBased")).booleanValue()); m_PrintFormat.setIsForm(Boolean.valueOf(atts.getValue("isForm")).booleanValue()); m_PrintFormat.setIsStandardHeaderFooter(Boolean.valueOf(atts.getValue("isStandardHeader")).booleanValue()); m_PrintFormat.setIsDefault(Boolean.valueOf(atts.getValue("isDefault")).booleanValue()); if (m_PrintFormat.save(m_trxName) == true){ record_log (1, m_PrintFormat.getName(),"PrintFormat", m_PrintFormat.get_ID(),AD_Backup_ID, Object_Status,"AD_PrintFormat",get_IDWithColumn("AD_Table", "TableName", "AD_PrintFormat")); } else{ record_log (0, m_PrintFormat.getName(),"PrintFormat", m_PrintFormat.get_ID(),AD_Backup_ID, Object_Status,"AD_PrintFormat",get_IDWithColumn("AD_Table", "TableName", "AD_PrintFormat")); } } else if (elementValue.equals("printformatitem")) { String name = atts.getValue("Name"); int id = get_IDWithMaster("AD_PrintFormatItem", name,"AD_PrintFormat",atts.getValue("ADPrintFormatNameID")); m_PrintFormatItem = new X_AD_PrintFormatItem(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_PrintFormatItem",m_PrintFormatItem); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_PrintFormatItem.setName(name); name = atts.getValue("ADPrintFormatNameID"); id = get_IDWithColumn("AD_PrintFormat", "Name", name); m_PrintFormatItem.setAD_PrintFormat_ID(id); //name = atts.getValue("ADPrintFormatChildNameID"); //id = get_IDWithColumn("AD_PrintFormat", "Name", name); //m_PrintFormatItem.setAD_PrintFormatChild_ID(id); name = atts.getValue("ADTableNameID"); int tableid = get_IDWithColumn("AD_Table", "TableName", name); name = atts.getValue("ADColumnNameID"); id =get_IDWithMasterAndColumn ("AD_Column", "ColumnName", name, "AD_Table", tableid); m_PrintFormatItem.setAD_Column_ID(id); name = atts.getValue("ADPrintGraphID"); id = get_IDWithColumn("AD_PrintGraph", "Name", name); m_PrintFormatItem.setAD_PrintGraph_ID(id); name = atts.getValue("ADPrintColorID"); id = get_IDWithColumn("AD_PrintColor", "Name", name); m_PrintFormatItem.setAD_PrintColor_ID(id); name = atts.getValue("ADPrintFontID"); id = get_IDWithColumn("AD_PrintFont", "Name", name); m_PrintFormatItem.setAD_PrintFont_ID(id); m_PrintFormatItem.setPrintName(atts.getValue("PrintName")); m_PrintFormatItem.setName(atts.getValue("Name")); m_PrintFormatItem.setPrintAreaType(atts.getValue("PrintAreaType")); m_PrintFormatItem.setSeqNo(Integer.parseInt(atts.getValue("SeqNo"))); m_PrintFormatItem.setPrintFormatType(atts.getValue("PrintFormatType")); m_PrintFormatItem.setXSpace(Integer.parseInt(atts.getValue("XSpace"))); m_PrintFormatItem.setYSpace(Integer.parseInt(atts.getValue("YSpace"))); m_PrintFormatItem.setXPosition(Integer.parseInt(atts.getValue("Xposition"))); m_PrintFormatItem.setYPosition(Integer.parseInt(atts.getValue("Yposition"))); m_PrintFormatItem.setMaxWidth(Integer.parseInt(atts.getValue("MaxWidth"))); m_PrintFormatItem.setMaxHeight(Integer.parseInt(atts.getValue("MaxHieght"))); m_PrintFormatItem.setSortNo(Integer.parseInt(atts.getValue("SortNo"))); m_PrintFormatItem.setFieldAlignmentType(atts.getValue("FieldAlignmentType")); m_PrintFormatItem.setLineAlignmentType(atts.getValue("LineAlignmentType")); m_PrintFormatItem.setImageURL(atts.getValue("ImageURL")); m_PrintFormatItem.setArcDiameter(Integer.parseInt(atts.getValue("ArcDiameter"))); m_PrintFormatItem.setLineWidth(Integer.parseInt(atts.getValue("LineWidth"))); m_PrintFormatItem.setShapeType(atts.getValue("ShapeType")); m_PrintFormatItem.setBelowColumn(Integer.parseInt(atts.getValue("BelowColumn"))); m_PrintFormatItem.setPrintNameSuffix(atts.getValue("PrintNameSuffix")); m_PrintFormatItem.setRunningTotalLines(Integer.parseInt(atts.getValue("RunningTotalLines"))); m_PrintFormatItem.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_PrintFormatItem.setIsPrinted(Boolean.valueOf(atts.getValue("isPrinted")).booleanValue()); m_PrintFormatItem.setIsRelativePosition(Boolean.valueOf(atts.getValue("isRelativePosition")).booleanValue()); m_PrintFormatItem.setIsNextLine(Boolean.valueOf(atts.getValue("isNextLine")).booleanValue()); m_PrintFormatItem.setIsHeightOneLine(Boolean.valueOf(atts.getValue("isHeightOneLine")).booleanValue()); m_PrintFormatItem.setIsOrderBy(Boolean.valueOf(atts.getValue("isOrderBy")).booleanValue()); m_PrintFormatItem.setIsGroupBy(Boolean.valueOf(atts.getValue("isGroupBy")).booleanValue()); m_PrintFormatItem.setIsPageBreak(Boolean.valueOf(atts.getValue("isPageBreak")).booleanValue()); m_PrintFormatItem.setIsSummarized(Boolean.valueOf(atts.getValue("isSummarized")).booleanValue()); m_PrintFormatItem.setImageIsAttached(Boolean.valueOf(atts.getValue("isImageIsAttached")).booleanValue()); m_PrintFormatItem.setIsAveraged(Boolean.valueOf(atts.getValue("isAveraged")).booleanValue()); m_PrintFormatItem.setIsCounted(Boolean.valueOf(atts.getValue("isCounted")).booleanValue()); m_PrintFormatItem.setIsSetNLPosition(Boolean.valueOf(atts.getValue("isSetNLPosition")).booleanValue()); m_PrintFormatItem.setIsSuppressNull(Boolean.valueOf(atts.getValue("isSuppressNull")).booleanValue()); m_PrintFormatItem.setIsFixedWidth(Boolean.valueOf(atts.getValue("isFixedWidth")).booleanValue()); m_PrintFormatItem.setIsNextPage(Boolean.valueOf(atts.getValue("isNextPage")).booleanValue()); m_PrintFormatItem.setIsMaxCalc(Boolean.valueOf(atts.getValue("isMaxCalc")).booleanValue()); m_PrintFormatItem.setIsMinCalc(Boolean.valueOf(atts.getValue("isMinCalc")).booleanValue()); m_PrintFormatItem.setIsRunningTotal(Boolean.valueOf(atts.getValue("isRunningTotal")).booleanValue()); m_PrintFormatItem.setIsVarianceCalc(Boolean.valueOf(atts.getValue("isVarianceCalc")).booleanValue()); m_PrintFormatItem.setIsDeviationCalc(Boolean.valueOf(atts.getValue("isDeviationCalc")).booleanValue()); if (m_PrintFormatItem.save(m_trxName) == true){ record_log (1, m_PrintFormatItem.getName(),"PrintFormatItem", m_PrintFormatItem.get_ID(),AD_Backup_ID, Object_Status,"AD_PrintFormatItem",get_IDWithColumn("AD_Table", "TableName", "AD_PrintFormatItem")); } else{ record_log (0, m_PrintFormatItem.getName(),"PrintFormatItem", m_PrintFormatItem.get_ID(),AD_Backup_ID, Object_Status,"AD_PrintFormatItem",get_IDWithColumn("AD_Table", "TableName", "AD_PrintFormatItem")); } } else if (elementValue.equals("reportviewcol")) { String entitytype = atts.getValue("EntityType"); String name = atts.getValue("ADReportViewColID"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { int id = get_ID("AD_Reportview_Col", name); m_Reportview_Col = new X_AD_ReportView_Col(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Reportview_Col",m_Reportview_Col); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } name = atts.getValue("ADReportviewnameID"); id = get_IDWithColumn("AD_Reference", "Name", name); m_Reportview_Col.setAD_ReportView_ID(id); name = atts.getValue("ADColumnNameID"); id = get_IDWithColumn("AD_Column", "Name", name); m_Reportview_Col.setAD_Column_ID(id); m_Reportview_Col.setFunctionColumn(atts.getValue("ADColumnNameID")); m_Reportview_Col.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Reportview_Col.setIsGroupFunction(Boolean.valueOf(atts.getValue("ADColumnNameID")).booleanValue()); if (m_Reportview_Col.save(m_trxName) == true){ record_log (1, ""+m_Reportview_Col.getAD_ReportView_ID(),"Reportview_Col", m_Reportview.get_ID(),AD_Backup_ID, Object_Status,"AD_Reportview_Col",get_IDWithColumn("AD_Table", "TableName", "AD_Reportview_Col")); } else{ record_log (0, ""+m_Reportview_Col.getAD_ReportView_ID(),"Reportview_Col", m_Reportview.get_ID(),AD_Backup_ID, Object_Status,"AD_Reportview_Col",get_IDWithColumn("AD_Table", "TableName", "AD_Reportview_Col")); } } } else if (elementValue.equals("SQLStatement")) { String DBType = atts.getValue("DBType"); PreparedStatement pstmt = DB.prepareStatement(atts.getValue("statement"), m_trxName); try { if(DBType.equals("ALL")){ int n = pstmt.executeUpdate(); log.info("Exceuted SQL Statement"); } else if(DB.isOracle() == true & DBType.equals("Oracle")){ pstmt.executeUpdate(); log.info("Exceuted SQL Statement for Oracle"); }/* else if(DB.isSybase() == true & DBType.equals("Sybase")){ pstmt.executeUpdate(); log.info("Exceuted SQL Statement for Sybase"); }*/ } catch (Exception e) { log.log(Level.SEVERE,"SQLSatement", e); } } else if (elementValue.equals("reference")) { String entitytype = atts.getValue("EntityType"); String name = atts.getValue("name"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { int id = get_ID("AD_Reference", name); m_Reference = new X_AD_Reference(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Reference",m_Reference); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } m_Reference.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Reference.setEntityType(atts.getValue("EntityType")); m_Reference.setHelp(atts.getValue("Help").replaceAll("'","''").replaceAll(",","")); m_Reference.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Reference.setName(atts.getValue("name")); //m_Reference.setVFormat(atts.getValue("VFormat")); m_Reference.setValidationType(atts.getValue("ValidationType")); if (m_Reference.save(m_trxName) == true){ record_log (1, m_Reference.getName(),"Reference", m_Reference.get_ID(),AD_Backup_ID, Object_Status,"AD_Reference",get_IDWithColumn("AD_Table", "TableName", "AD_Reference")); } else{ record_log (0, m_Reference.getName(),"Reference", m_Reference.get_ID(),AD_Backup_ID, Object_Status,"AD_Reference",get_IDWithColumn("AD_Table", "TableName", "AD_Reference")); } } } else if (elementValue.equals("referencelist")) { //TODO: Solve for date issues with valuefrom valueto String entitytype = atts.getValue("EntityType"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { String name = atts.getValue("Name"); int Referenceid = get_IDWithColumn("AD_Reference", "Name", atts.getValue("ADRefenceNameID")); int id = get_IDWithMaster("AD_Ref_List", name, "AD_Reference",Referenceid); m_Ref_List = new X_AD_Ref_List(Env.getCtx(), id,null); if (id > 0){ AD_Backup_ID = copyRecord("AD_Ref_List",m_Ref_List); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } name = atts.getValue("ADRefenceNameID"); id = get_IDWithColumn("AD_Reference", "Name", name); m_Ref_List.setAD_Reference_ID(id); m_Ref_List.setDescription(atts.getValue("Description").replaceAll("'","''").replaceAll(",","")); m_Ref_List.setEntityType (atts.getValue("EntityType")); m_Ref_List.setName(atts.getValue("Name")); m_Ref_List.setIsActive(atts.getValue("isActive") != null ? Boolean.valueOf(atts.getValue("isActive")).booleanValue():true); m_Ref_List.setValue(atts.getValue("Value")); m_Ref_List.save(m_trxName); if (m_Ref_List.save(m_trxName) == true){ record_log (1, m_Ref_List.getName(),"Reference List", m_Ref_List.get_ID(),AD_Backup_ID, Object_Status,"AD_Ref_List",get_IDWithColumn("AD_Table", "TableName", "AD_Ref_List")); } else{ record_log (0, m_Ref_List.getName(),"Reference List", m_Ref_List.get_ID(),AD_Backup_ID, Object_Status,"AD_Ref_List",get_IDWithColumn("AD_Table", "TableName", "AD_Ref_List")); } } } else if (elementValue.equals("referencetable")) { String entitytype = atts.getValue("EntityType"); String name = atts.getValue("ADRefenceNameID"); if (entitytype.compareTo("U") == 0 | entitytype.compareTo("D") == 0 & m_UpdateMode.compareTo("true") == 0 ) { sqlB = new StringBuffer ("SELECT AD_Reference_ID FROM AD_Reference WHERE Name= ?"); int id = DB.getSQLValue(null,sqlB.toString(),name); sqlB = new StringBuffer ("SELECT Count(*) FROM AD_Ref_Table WHERE AD_Reference_ID= ?"); int count = DB.getSQLValue(null, sqlB.toString(),id); int tableId = get_IDWithColumn("AD_Table", "TableName", atts.getValue("ADTableNameID")); if (tableId ==0){ createtable (atts.getValue("ADTableNameID")); m_Table = new X_AD_Table(Env.getCtx(), 0,null); m_Table.setAccessLevel("3"); m_Table.setName(atts.getValue("ADTableNameID")); m_Table.setTableName(atts.getValue("ADTableNameID")); if (m_Table.save(m_trxName) == true){ record_log (1, m_Table.getName(),"Table", m_Table.get_ID(),0, "New","AD_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Table")); } else{ record_log (0, m_Table.getName(),"Table", m_Table.get_ID(),0, "New","AD_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Table")); } tableId = get_IDWithColumn("AD_Table", "TableName", atts.getValue("ADTableNameID")); } name = atts.getValue("ADDisplay"); int DisplayId =get_IDWithMasterAndColumn ("AD_Column", "ColumnName", name, "AD_Table", tableId); if (DisplayId ==0){ m_Column = new X_AD_Column(Env.getCtx(),0,null); m_Column.setAD_Table_ID(tableId); m_Column.setVersion(new BigDecimal("1")); m_Column.setColumnName(name); m_Column.setName(name); m_Column.setAD_Reference_ID(30); if (m_Column.save(m_trxName) == true){ record_log (1, m_Column.getName(),"Column", m_Column.get_ID(),0, "New","AD_Column",get_IDWithColumn("AD_Table", "TableName", "AD_Column")); } else{ record_log (0, m_Column.getName(),"Column", m_Column.get_ID(),0, "New","AD_Column",get_IDWithColumn("AD_Table", "TableName", "AD_Column")); } } name = atts.getValue("Key"); int keyId =get_IDWithMasterAndColumn ("AD_Column", "ColumnName", name, "AD_Table", tableId); if (keyId ==0){ m_Column = new X_AD_Column(Env.getCtx(),0,null); m_Column.setAD_Table_ID(tableId); m_Column.setVersion(new BigDecimal("1")); m_Column.setColumnName(name); m_Column.setName(name); m_Column.setAD_Reference_ID(30); if (m_Column.save(m_trxName) == true){ record_log (1, m_Column.getName(),"Column", m_Column.get_ID(),0, "New","AD_Column",get_IDWithColumn("AD_Table", "TableName", "AD_Column")); } else{ record_log (0, m_Column.getName(),"Column", m_Column.get_ID(),0, "New","AD_Column",get_IDWithColumn("AD_Table", "TableName", "AD_Column")); } } name = atts.getValue("ADDisplay"); DisplayId = get_IDWithMasterAndColumn ("AD_Column", "ColumnName", name, "AD_Table", tableId); name = atts.getValue("Key"); keyId = get_IDWithMasterAndColumn ("AD_Column", "ColumnName", name, "AD_Table", tableId); String entityType = atts.getValue("EntityType"); String isValueDisplayed = atts.getValue("IsValueDisplayed"); String OrderByClause= atts.getValue("OrderByClause").replaceAll("'","''").replaceAll(",",""); String WhereClause= atts.getValue("WhereClause").replaceAll("'","''").replaceAll(",",""); if (count >0 ){ sqlB = new StringBuffer ("UPDATE AD_Ref_Table " + "SET AD_Table_ID = " + tableId + ", AD_Display = " + DisplayId + ", AD_Key = " + keyId + ", isValueDisplayed = '" + isValueDisplayed + "', OrderByClause = '" + OrderByClause + "', EntityType ='" + entityType + "', WhereClause = '" + WhereClause + "' WHERE AD_Reference_ID = " + id); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no > 0){ record_log (1, atts.getValue("ADRefenceNameID"),"Reference Table", id,0, "Update","AD_Ref_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Ref_Table")); } else{ record_log (0, atts.getValue("ADRefenceNameID"),"Reference Table", id,0, "Update","AD_Ref_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Ref_Table")); } } else{ sqlB = new StringBuffer ("Insert INTO AD_Ref_Table" + "(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, " + "AD_Reference_ID, AD_Table_ID, AD_Display, AD_Key " + ",entityType, isValueDisplayed, OrderByClause, " + " WhereClause )" + "VALUES(0, 0, 0, 0, "+id + ", " + tableId + ", " + DisplayId + ", " + keyId + ", '" + entityType + "', '" + isValueDisplayed + "', '" + OrderByClause + "', '" + WhereClause +"')"); int no = DB.executeUpdate (sqlB.toString(), m_trxName); if (no > 0){ record_log (1, atts.getValue("ADRefenceNameID"),"Reference Table", id,0, "New","AD_Ref_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Ref_Table")); } else{ record_log (0, atts.getValue("ADRefenceNameID"),"Reference Table", id,0, "New","AD_Ref_Table",get_IDWithColumn("AD_Table", "TableName", "AD_Ref_Table")); } } } } else if (elementValue.equals("menuset")) { setmenu (); } /* **************************************** adempieredata Handler. **************************************** */ // table element, adempieredata else if (elementValue.equals("dtable")) { d_tablename = atts.getValue("name"); } // row element, adempieredata else if (elementValue.equals("drow")) { d_rowname = atts.getValue("name"); Properties ctx = Env.getCtx(); ctx.setProperty("adempieredataTable_ID", String.valueOf(get_IDWithColumn("AD_Table", "TableName", d_tablename))); // name can be null if there are keyXname attributes. if (!d_rowname.equals("")){ int id = get_ID(d_tablename, d_rowname); genericPO = new IntGenericPO(Env.getCtx(), id); if (id > 0){ AD_Backup_ID = copyRecord(d_tablename,genericPO); Object_Status = "Update"; } else{ Object_Status = "New"; AD_Backup_ID =0; } } // keyXname and lookupkeyXname. else { String sql = "select * from "+d_tablename; String whereand = " where"; String t_tablename = null; String CURRENT_KEY = "key1name"; if (!atts.getValue(CURRENT_KEY).equals("")) { t_tablename = atts.getValue(CURRENT_KEY).substring(0, atts.getValue(CURRENT_KEY).length()-3); sql = sql+whereand+" "+atts.getValue(CURRENT_KEY)+"="+atts.getValue("lookup"+CURRENT_KEY); whereand = " and"; } CURRENT_KEY = "key2name"; if (!atts.getValue(CURRENT_KEY).equals("")) { t_tablename = atts.getValue(CURRENT_KEY).substring(0, atts.getValue(CURRENT_KEY).length()-3); sql = sql+whereand+" "+atts.getValue(CURRENT_KEY)+"="+atts.getValue("lookup"+CURRENT_KEY); whereand = " and"; } // Load GenericPO from rs, in fact ID could not exist e.g. Attribute Value try { PreparedStatement pstmt = DB.prepareStatement(sql, m_trxName); ResultSet rs = pstmt.executeQuery(); if (rs.next()) { Object_Status = "Update"; genericPO = new IntGenericPO(Env.getCtx(), rs); rs.close(); pstmt.close(); pstmt = null; } else { genericPO = new IntGenericPO(Env.getCtx(), 0); rs.close(); pstmt.close(); pstmt = null; Object_Status = "New"; // set keyXname. CURRENT_KEY = "key1name"; if (!atts.getValue(CURRENT_KEY).equals("")) { t_tablename = atts.getValue(CURRENT_KEY).substring(0, atts.getValue(CURRENT_KEY).length()-3); genericPO.setValueNoCheck(atts.getValue(CURRENT_KEY), atts.getValue("lookup"+CURRENT_KEY)); } CURRENT_KEY = "key2name"; if (!atts.getValue(CURRENT_KEY).equals("")) { t_tablename = atts.getValue(CURRENT_KEY).substring(0, atts.getValue(CURRENT_KEY).length()-3); genericPO.setValueNoCheck(atts.getValue(CURRENT_KEY), atts.getValue("lookup"+CURRENT_KEY)); } } } catch (Exception e) { log.info ("keyXname attribute. init from rs error."+e); } } // reset Table ID for GenericPO. ctx.setProperty("adempieredataTable_ID", "0"); // for debug GenericPO. if (false) { POInfo poInfo = POInfo.getPOInfo(Env.getCtx(), get_ID("AD_Table", d_tablename)); if (poInfo == null) log.info("poInfo is null."); for (int i = 0; i < poInfo.getColumnCount(); i++) { log.info(d_tablename+" column: "+poInfo.getColumnName(i)); } } // if new. TODO: no defaults for keyXname. if (!d_rowname.equals("") && ((Integer)(genericPO.get_Value(d_tablename+"_ID"))).intValue() == 0) { log.info("new genericPO, name:"+d_rowname); genericPO.setValue("Name", d_rowname); // Set defaults. HashMap thisDefault = (HashMap)defaults.get(d_tablename); if (thisDefault != null) { Iterator iter = thisDefault.values().iterator(); ArrayList thisValue = null; while (iter.hasNext()) { thisValue = (ArrayList)iter.next(); if (((String)(thisValue.get(2))).equals("String")) genericPO.setValue((String)thisValue.get(0), (String)thisValue.get(1)); else if (((String)(thisValue.get(2))).equals("Integer")) genericPO.setValue((String)thisValue.get(0), Integer.valueOf((String)thisValue.get(1))); else if (((String)(thisValue.get(2))).equals("Boolean")) genericPO.setValue((String)thisValue.get(0), new Boolean(((String)thisValue.get(1)).equals("true") ? true : false)); } } } } // column element, adempieredata else if (elementValue.equals("dcolumn")) { String columnName = atts.getValue("name"); int tableid = get_IDWithColumn("AD_Table", "TableName", d_tablename); int id =get_IDWithMasterAndColumn ("AD_Column", "ColumnName", columnName, "AD_Table", tableid); StringBuffer sql = new StringBuffer ("SELECT IsUpdateable FROM AD_column WHERE AD_Column_ID = ?"); String isUpdateable = DB.getSQLValueString(m_trxName, sql.toString(),id); sql = new StringBuffer ("SELECT IsKey FROM AD_column WHERE AD_Column_ID = ?"); String isKey = DB.getSQLValueString(m_trxName, sql.toString(),id); if (isKey.equals("N") && isUpdateable.equals("Y") && (!atts.getValue("name").equals("CreatedBy")||!atts.getValue("name").equals("UpdatedBy"))) { if (atts.getValue("value") != null && !atts.getValue("value").equals("null")) { if (atts.getValue("class").equals("String") || atts.getValue("class").equals("Text") || atts.getValue("class").equals("List")|| atts.getValue("class").equals("Yes-No") || atts.getValue("class").equals("Table")|| atts.getValue("class").equals("Button") || atts.getValue("class").equals("Memo")|| atts.getValue("class").equals("Text Long")) { genericPO.setValue(atts.getValue("name").toString(), atts.getValue("value").toString()); } else if (atts.getValue("class").equals("Number") || atts.getValue("class").equals("Amount") || atts.getValue("class").equals("Quantity")|| atts.getValue("class").equals("Costs+Prices")){ genericPO.setValue(atts.getValue("name").toString(), new BigDecimal(atts.getValue("value"))); } else if (atts.getValue("class").equals("Integer") || atts.getValue("class").equals("ID") || atts.getValue("class").equals("Table Direct")|| atts.getValue("class").equals("Table") || atts.getValue("class").equals("Location (Address)")|| atts.getValue("class").equals("Account") || atts.getValue("class").equals("Color)")|| atts.getValue("class").equals("Search") || atts.getValue("class").equals("Locator (WH)")|| atts.getValue("class").equals("Product Attribute")) { genericPO.setValue(atts.getValue("name").toString(), Integer.valueOf(atts.getValue("value"))); } else if (atts.getValue("class").equals("Boolean")) { genericPO.setValue(atts.getValue("name"), new Boolean(atts.getValue("value").equals("true") ? true : false)); } else if (atts.getValue("class").equals("Date") || atts.getValue("class").equals("Date+Time") || atts.getValue("class").equals("Time")) { genericPO.setValue(atts.getValue("name").toString(), Timestamp.valueOf(atts.getValue("value"))); }//Binary, Radio, RowID, Image not supported } else { // value is null if (atts.getValue("lookupname") != null && !"".equals(atts.getValue("lookupname"))) { // globalqss - bring support from XML2AD to lookupname String m_tablename = atts.getValue("name").substring(0, atts.getValue("name").length()-3); genericPO.setValue(atts.getValue("name"), new Integer(getIDbyName(m_tablename, atts.getValue("lookupname")))); } } } } } // startElement | 25591 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25591/d2bfecb2d8d29703657183dcd2cb15ae52252a8f/IntPackInHandler.java/clean/dbPort/src/org/compiere/PackOut/IntPackInHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
261,
780,
2003,
16,
514,
11927,
16,
514,
22914,
16,
9055,
15687,
13,
202,
15069,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
288,
377,
202,
759,
377,
202,
1684,
326,
2181,
613,
377,
202,
377,
202,
430,
261,
1685,
67,
1759,
631,
20,
15329,
377,
202,
1702,
4420,
382,
2298,
273,
394,
3094,
4420,
382,
5621,
377,
202,
5610,
2853,
273,
2298,
18,
81,
67,
2261,
67,
1621,
31,
377,
202,
81,
67,
1891,
2309,
273,
2298,
18,
81,
67,
1891,
2309,
31,
377,
202,
81,
67,
4254,
559,
273,
2298,
18,
81,
67,
4254,
31,
377,
1082,
202,
812,
585,
273,
394,
1387,
2932,
8863,
202,
202,
768,
1761,
457,
639,
273,
585,
18,
11287,
31,
202,
377,
202,
5784,
11878,
4453,
67,
768,
273,
394,
17005,
2932,
6795,
8206,
449,
17500,
81,
959,
87,
62,
8863,
377,
202,
5784,
11878,
4453,
67,
1330,
273,
394,
17005,
2932,
8206,
19,
449,
19,
6795,
20842,
30,
7020,
30,
1049,
8863,
377,
202,
1626,
10074,
273,
394,
2167,
5621,
377,
202,
768,
1626,
273,
4453,
67,
768,
18,
2139,
12,
30064,
1769,
377,
202,
1330,
1626,
273,
4453,
67,
1330,
18,
2139,
12,
30064,
1769,
1082,
377,
202,
780,
585,
67,
5457,
273,
2181,
2853,
15,
768,
1761,
457,
639,
9078,
2434,
6,
15,
768,
1761,
457,
639,
9078,
5010,
1330,
9548,
15,
768,
1626,
9078,
18,
2902,
14432,
1082,
377,
202,
1330,
18,
1376,
12,
768,
67,
5457,
1769,
377,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
261,
780,
2003,
16,
514,
11927,
16,
514,
22914,
16,
9055,
15687,
13,
202,
15069,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
288,
377,
202,
759,
377,
202,
1684,
326,
2181,
613,
377,
202,
377,
202,
430,
261,
1685,
67,
1759,
631,
20,
15329,
377,
202,
1702,
4420,
382,
2298,
273,
394,
3094,
4420,
382,
5621,
377,
202,
5610,
2853,
273,
2298,
18,
81,
67,
2261,
67,
1621,
31,
377,
202,
81,
67,
1891,
2309,
273,
2298,
18,
81,
67,
1891,
2309,
31,
377,
202,
81,
67,
4254,
559,
273,
2298,
18,
81,
67,
4254,
31,
377,
1082,
202,
812,
585,
273,
394,
1387,
2932,
8863,
202,
202,
768,
1761,
457,
639,
2
] |
text=s; | text = s; | RtfString(RtfContainer parent, Writer w, String s) throws IOException { super(parent, w); text=s; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/549cb124e2f9301a409e0eaf1c37b7002cd2b838/RtfString.java/buggy/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
24958,
780,
12,
54,
6632,
2170,
982,
16,
5497,
341,
16,
514,
272,
13,
565,
1216,
1860,
288,
3639,
2240,
12,
2938,
16,
341,
1769,
10792,
977,
273,
272,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
24958,
780,
12,
54,
6632,
2170,
982,
16,
5497,
341,
16,
514,
272,
13,
565,
1216,
1860,
288,
3639,
2240,
12,
2938,
16,
341,
1769,
10792,
977,
273,
272,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
logger.debug("TIME: after retrieveSeismograms "+new MicroSecondDate()); logger.debug("GOT SEISMOGRAMS: The date is "+ new MicroSecondDate()); | public void processAvailableDataSubsetter(EventDbObject eventDbObject, NetworkDbObject networkDbObject, ChannelDbObject channelDbObject, DataCenter dataCenter, RequestFilter[] infilters, RequestFilter[] outfilters, WaveFormArm waveformArm) throws Exception { boolean b; EventAccessOperations eventAccess = eventDbObject.getEventAccess(); NetworkAccess networkAccess = networkDbObject.getNetworkAccess(); Channel channel = channelDbObject.getChannel(); MicroSecondDate b1 = new MicroSecondDate(); logger.debug("TIME: before availableDataSubsetter "+b1); synchronized (availableDataSubsetter) { b = availableDataSubsetter.accept(eventAccess, networkAccess, channel, infilters, outfilters, null); } MicroSecondDate a1 = new MicroSecondDate(); logger.debug("TIME: after availableDataSubsetter "+a1); if( b ) { waveformArm.setFinalStatus(eventDbObject, channelDbObject, Status.PROCESSING, "availableDataSubsetterCompleted"); logger.debug("BEFORE getting seismograms "+infilters.length); for (int i=0; i<infilters.length; i++) { logger.debug("Getting seismograms " +ChannelIdUtil.toString(infilters[i].channel_id) +" from " +infilters[i].start_time.date_time +" to " +infilters[i].end_time.date_time); } // end of for (int i=0; i<outFilters.length; i++) logger.debug("Using infilters, fix this when DMC fixes server"); MicroSecondDate before = new MicroSecondDate(); LocalSeismogram[] localSeismograms; if (outfilters.length != 0) { try { MicroSecondDate beforeOne = new MicroSecondDate(); logger.debug("NOW GET SEISMOGRAMS: The date is "+beforeOne); logger.debug("TIME: before retrieveSeismograms "+beforeOne); localSeismograms = dataCenter.retrieve_seismograms(infilters); MicroSecondDate afterOne = new MicroSecondDate(); logger.debug("TIME: after retrieveSeismograms "+afterOne); logger.debug("GOT SEISMOGRAMS: "+localSeismograms.length+": "+afterOne); //localSeismograms = new LocalSeismogram[0]; } catch (org.omg.CORBA.UNKNOWN e) { // maybe try again??? localSeismograms = dataCenter.retrieve_seismograms(infilters); } } else { logger.debug("Failed, available data returned no requestFilters "); logger.debug("TIME: after retrieveSeismograms "+new MicroSecondDate()); logger.debug("GOT SEISMOGRAMS: The date is "+ new MicroSecondDate()); localSeismograms = new LocalSeismogram[0]; } // end of else MicroSecondDate after = new MicroSecondDate(); logger.info("After getting seismograms, time taken="+after.subtract(before)); for (int i=0; i<localSeismograms.length; i++) { if (localSeismograms[i] == null) { waveformArm.setFinalStatus(eventDbObject, channelDbObject, Status.COMPLETE_REJECT, "rejected as the seismogram array Contained NULL entried"); logger.error("Got null in seismogram array "+ChannelIdUtil.toString(channel.get_id())); return; } if ( ! ChannelIdUtil.areEqual(localSeismograms[i].channel_id, channel.get_id())) { // must be server error logger.warn("Channel id in returned seismogram doesn not match channelid in request. req=" +ChannelIdUtil.toString(channel.get_id()) +" seis=" +ChannelIdUtil.toString(localSeismograms[i].channel_id)); // fix seis with original id localSeismograms[i].channel_id = channel.get_id(); } // end of if () } // end of for (int i=0; i<localSeismograms.length; i++) processLocalSeismogramSubsetter(eventDbObject, networkDbObject, channelDbObject, infilters, outfilters, localSeismograms, waveformArm); } else { logger.info("FAIL available data"); waveformArm.setFinalStatus(eventDbObject, channelDbObject, Status.COMPLETE_REJECT, "AvailableDataSubsetterFailed"); } } | 45996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45996/73785ab19e5104a2fa6963bb66efe874e4302ca3/LocalSeismogramArm.java/clean/src/edu/sc/seis/sod/subsetter/waveformArm/LocalSeismogramArm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
5268,
751,
1676,
18062,
12,
1133,
4331,
921,
871,
4331,
921,
16,
12900,
5128,
4331,
921,
2483,
4331,
921,
16,
12900,
5307,
4331,
921,
1904,
4331,
921,
16,
12900,
1910,
8449,
501,
8449,
16,
12900,
1567,
1586,
8526,
316,
6348,
16,
12900,
1567,
1586,
8526,
596,
6348,
16,
12900,
24314,
1204,
25583,
31511,
25583,
13,
565,
1216,
1185,
565,
288,
565,
1250,
324,
31,
565,
2587,
1862,
9343,
871,
1862,
273,
871,
4331,
921,
18,
588,
1133,
1862,
5621,
565,
5128,
1862,
2483,
1862,
273,
2483,
4331,
921,
18,
588,
3906,
1862,
5621,
565,
5307,
1904,
273,
1904,
4331,
921,
18,
588,
2909,
5621,
565,
18284,
8211,
1626,
324,
21,
273,
394,
18284,
8211,
1626,
5621,
565,
1194,
18,
4148,
2932,
4684,
30,
1865,
2319,
751,
1676,
18062,
13773,
70,
21,
1769,
565,
3852,
261,
5699,
751,
1676,
18062,
13,
288,
3639,
324,
273,
2319,
751,
1676,
18062,
18,
9436,
12,
2575,
1862,
16,
12900,
2483,
1862,
16,
12900,
1904,
16,
12900,
316,
6348,
16,
12900,
596,
6348,
16,
12900,
446,
1769,
565,
289,
565,
18284,
8211,
1626,
279,
21,
273,
394,
18284,
8211,
1626,
5621,
565,
1194,
18,
4148,
2932,
4684,
30,
1839,
2319,
751,
1676,
18062,
13773,
69,
21,
1769,
565,
309,
12,
324,
262,
288,
3639,
31511,
25583,
18,
542,
7951,
1482,
12,
2575,
4331,
921,
16,
15604,
1904,
4331,
921,
16,
15604,
2685,
18,
16560,
1360,
16,
15604,
315,
5699,
751,
1676,
18062,
9556,
8863,
3639,
1194,
18,
4148,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
5268,
751,
1676,
18062,
12,
1133,
4331,
921,
871,
4331,
921,
16,
12900,
5128,
4331,
921,
2483,
4331,
921,
16,
12900,
5307,
4331,
921,
1904,
4331,
921,
16,
12900,
1910,
8449,
501,
8449,
16,
12900,
1567,
1586,
8526,
316,
6348,
16,
12900,
1567,
1586,
8526,
596,
6348,
16,
12900,
24314,
1204,
25583,
31511,
25583,
13,
565,
1216,
1185,
565,
288,
565,
1250,
324,
31,
565,
2587,
1862,
9343,
871,
1862,
273,
871,
4331,
921,
18,
588,
1133,
1862,
5621,
565,
5128,
1862,
2483,
1862,
273,
2483,
4331,
921,
18,
588,
3906,
1862,
5621,
565,
5307,
1904,
273,
1904,
4331,
921,
18,
588,
2909,
5621,
565,
18284,
8211,
1626,
324,
21,
273,
394,
18284,
8211,
1626,
2
] | |
String[] ns = LiteralHelper.verticalPositionSet.getDisplayNames( ); for ( int i = 0; i < ns.length; i++ ) | if ( context.getModel( ) instanceof ChartWithAxes && isFlippedAxes( ) ) | private void populateLists( Series series ) { // Populate DataPoint Components List cmbComponentTypes.setItems( LiteralHelper.dataPointComponentTypeSet.getDisplayNames( ) ); cmbComponentTypes.select( 0 ); // Populate Current list of DataPointComponents this.lstComponents.setItems( getDataPointComponents( series.getDataPoint( ) ) ); String str = series.getDataPoint( ).getPrefix( ); this.txtPrefix.setText( ( str == null ) ? "" : str ); //$NON-NLS-1$ str = series.getDataPoint( ).getSuffix( ); this.txtSuffix.setText( ( str == null ) ? "" : str ); //$NON-NLS-1$ str = series.getDataPoint( ).getSeparator( ); this.txtSeparator.setText( ( str == null ) ? "" : str ); //$NON-NLS-1$ // Position int positionScope = ( getSeriesForProcessing( ) instanceof PieSeries || getSeriesForProcessing( ) instanceof BarSeries ) ? LabelAttributesComposite.ALLOW_INOUT_POSITION : ( LabelAttributesComposite.ALLOW_HORIZONTAL_POSITION | LabelAttributesComposite.ALLOW_VERTICAL_POSITION ); Position lpCurrent = getSeriesForProcessing( ).getLabelPosition( ); if ( positionScope == LabelAttributesComposite.ALLOW_ALL_POSITION ) { cmbPosition.setItems( LiteralHelper.fullPositionSet.getDisplayNames( ) ); if ( lpCurrent != null ) { cmbPosition.select( LiteralHelper.fullPositionSet.getSafeNameIndex( lpCurrent.getName( ) ) ); } } else { // check vertical if ( ( positionScope & LabelAttributesComposite.ALLOW_VERTICAL_POSITION ) != 0 ) { String[] ns = LiteralHelper.verticalPositionSet.getDisplayNames( ); for ( int i = 0; i < ns.length; i++ ) { cmbPosition.add( ns[i] ); } } // check horizontal if ( ( positionScope & LabelAttributesComposite.ALLOW_HORIZONTAL_POSITION ) != 0 ) { String[] ns = LiteralHelper.horizontalPositionSet.getDisplayNames( ); for ( int i = 0; i < ns.length; i++ ) { cmbPosition.add( ns[i] ); } } // check inout if ( ( positionScope & LabelAttributesComposite.ALLOW_INOUT_POSITION ) != 0 ) { if ( ( getSeriesForProcessing( ) instanceof BarSeries ) && ( getContext( ).getModel( ).getDimension( ) == ChartDimension.THREE_DIMENSIONAL_LITERAL ) ) { cmbPosition.add( LiteralHelper.inoutPositionSet.getDisplayNameByName( Position.OUTSIDE_LITERAL.getName( ) ) ); } else { String[] ns = LiteralHelper.inoutPositionSet.getDisplayNames( ); for ( int i = 0; i < ns.length; i++ ) { cmbPosition.add( ns[i] ); } } } if ( lpCurrent != null ) { for ( int i = 0; i < cmbPosition.getItemCount( ); i++ ) { if ( lpCurrent.getName( ) .equals( LiteralHelper.fullPositionSet.getNameByDisplayName( cmbPosition.getItem( i ) ) ) ) { cmbPosition.select( i ); } } } } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/30df11f77d7cd1fee86fb19865862bf8b3705771/SeriesLabelSheet.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/series/SeriesLabelSheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
7432,
12,
9225,
4166,
262,
202,
95,
202,
202,
759,
22254,
1910,
2148,
25286,
987,
202,
202,
71,
1627,
1841,
2016,
18,
542,
3126,
12,
14392,
2276,
18,
892,
2148,
28116,
694,
18,
588,
4236,
1557,
12,
262,
11272,
202,
202,
71,
1627,
1841,
2016,
18,
4025,
12,
374,
11272,
202,
202,
759,
22254,
6562,
666,
434,
1910,
2148,
7171,
202,
202,
2211,
18,
16923,
7171,
18,
542,
3126,
12,
4303,
2148,
7171,
12,
4166,
18,
588,
751,
2148,
12,
262,
262,
11272,
202,
202,
780,
609,
273,
4166,
18,
588,
751,
2148,
12,
262,
18,
588,
2244,
12,
11272,
202,
202,
2211,
18,
5830,
2244,
18,
542,
1528,
12,
261,
609,
422,
446,
262,
692,
1408,
294,
609,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
701,
273,
4166,
18,
588,
751,
2148,
12,
262,
18,
588,
5791,
12,
11272,
202,
202,
2211,
18,
5830,
5791,
18,
542,
1528,
12,
261,
609,
422,
446,
262,
692,
1408,
294,
609,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
701,
273,
4166,
18,
588,
751,
2148,
12,
262,
18,
588,
6581,
12,
11272,
202,
202,
2211,
18,
5830,
6581,
18,
542,
1528,
12,
261,
609,
422,
446,
262,
692,
1408,
294,
609,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
11010,
202,
202,
474,
1754,
3876,
273,
261,
336,
6485,
1290,
7798,
12,
262,
1276,
453,
1385,
6485,
747,
336,
6485,
1290,
7798,
12,
262,
1276,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
7432,
12,
9225,
4166,
262,
202,
95,
202,
202,
759,
22254,
1910,
2148,
25286,
987,
202,
202,
71,
1627,
1841,
2016,
18,
542,
3126,
12,
14392,
2276,
18,
892,
2148,
28116,
694,
18,
588,
4236,
1557,
12,
262,
11272,
202,
202,
71,
1627,
1841,
2016,
18,
4025,
12,
374,
11272,
202,
202,
759,
22254,
6562,
666,
434,
1910,
2148,
7171,
202,
202,
2211,
18,
16923,
7171,
18,
542,
3126,
12,
4303,
2148,
7171,
12,
4166,
18,
588,
751,
2148,
12,
262,
262,
11272,
202,
202,
780,
609,
273,
4166,
18,
588,
751,
2148,
12,
262,
18,
588,
2244,
12,
11272,
202,
202,
2211,
18,
5830,
2244,
18,
542,
1528,
12,
261,
609,
422,
446,
2
] |
protected void executeBeforeUpdate(IDOLegacyEntity entity)throws Exception{ } | protected void executeBeforeUpdate(IDOLegacyEntity entity) throws Exception { } | protected void executeBeforeUpdate(IDOLegacyEntity entity)throws Exception{ } | 52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/fea95fe089d9e21b8013a9f9292fb57cb2cd674a/DatastoreInterface.java/clean/src/java/com/idega/data/DatastoreInterface.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1836,
4649,
1891,
12,
734,
1741,
1332,
3505,
1943,
1522,
13,
15069,
1185,
95,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1836,
4649,
1891,
12,
734,
1741,
1332,
3505,
1943,
1522,
13,
15069,
1185,
95,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
results.append(" checked"); | results.append(" checked=\"true\""); | public int doEndTag() throws JspException { // Create an appropriate "input" element based on our parameters StringBuffer results = new StringBuffer("<input type=\"checkbox\""); results.append(" name=\""); results.append(this.property); results.append("\""); if (accesskey != null) { results.append(" accesskey=\""); results.append(accesskey); results.append("\""); } if (tabindex != null) { results.append(" tabindex=\""); results.append(tabindex); results.append("\""); } results.append(" value=\""); String value = this.value; if (value == null) value = this.constant; if (value == null) { JspException e = new JspException (messages.getMessage("multiboxTag.value")); pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw e; } results.append(ResponseUtils.filter(value)); results.append("\""); Object bean = pageContext.findAttribute(name); String values[] = null; if (bean == null) throw new JspException (messages.getMessage("getter.bean", name)); try { values = BeanUtils.getArrayProperty(bean, property); if (values == null) values = new String[0]; } catch (IllegalAccessException e) { throw new JspException (messages.getMessage("getter.access", property, name)); } catch (InvocationTargetException e) { Throwable t = e.getTargetException(); throw new JspException (messages.getMessage("getter.result", property, t.toString())); } catch (NoSuchMethodException e) { throw new JspException (messages.getMessage("getter.method", property, name)); } for (int i = 0; i < values.length; i++) { if (value.equals(values[i])) { results.append(" checked"); break; } } results.append(prepareEventHandlers()); results.append(prepareStyles()); results.append(">"); // Render this element to our response ResponseUtils.write(pageContext, results.toString()); // Continue evaluating this page return (EVAL_PAGE); } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/a67d8e694bbad00d59c3f0652d578b85ccd92fe2/MultiboxTag.java/buggy/src/share/org/apache/struts/taglib/html/MultiboxTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
25633,
1435,
1216,
27485,
288,
202,
759,
1788,
392,
5505,
315,
2630,
6,
930,
2511,
603,
3134,
1472,
202,
780,
1892,
1686,
273,
394,
6674,
2932,
32,
2630,
618,
5189,
12017,
8530,
1769,
202,
4717,
18,
6923,
2932,
508,
5189,
8863,
202,
4717,
18,
6923,
12,
2211,
18,
4468,
1769,
202,
4717,
18,
6923,
2932,
8530,
1769,
202,
430,
261,
3860,
856,
480,
446,
13,
288,
202,
565,
1686,
18,
6923,
2932,
2006,
856,
5189,
8863,
202,
565,
1686,
18,
6923,
12,
3860,
856,
1769,
202,
565,
1686,
18,
6923,
2932,
8530,
1769,
202,
97,
202,
430,
261,
7032,
1615,
480,
446,
13,
288,
202,
565,
1686,
18,
6923,
2932,
3246,
1615,
5189,
8863,
202,
565,
1686,
18,
6923,
12,
7032,
1615,
1769,
202,
565,
1686,
18,
6923,
2932,
8530,
1769,
202,
97,
202,
4717,
18,
6923,
2932,
460,
5189,
8863,
3639,
514,
460,
273,
333,
18,
1132,
31,
3639,
309,
261,
1132,
422,
446,
13,
5411,
460,
273,
333,
18,
14384,
31,
3639,
309,
261,
1132,
422,
446,
13,
288,
5411,
27485,
425,
273,
394,
27485,
7734,
261,
6833,
18,
24906,
2932,
5421,
495,
2409,
1805,
18,
1132,
7923,
1769,
5411,
21442,
18,
542,
1499,
12,
1803,
18,
12658,
67,
3297,
16,
425,
16,
19694,
3460,
1042,
18,
5519,
67,
19444,
1769,
5411,
604,
425,
31,
3639,
289,
3639,
1686,
18,
6923,
12,
1064,
1989,
18,
2188,
12,
1132,
10019,
202,
4717,
18,
6923,
2932,
8530,
1769,
202,
921,
3931,
273,
21442,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
25633,
1435,
1216,
27485,
288,
202,
759,
1788,
392,
5505,
315,
2630,
6,
930,
2511,
603,
3134,
1472,
202,
780,
1892,
1686,
273,
394,
6674,
2932,
32,
2630,
618,
5189,
12017,
8530,
1769,
202,
4717,
18,
6923,
2932,
508,
5189,
8863,
202,
4717,
18,
6923,
12,
2211,
18,
4468,
1769,
202,
4717,
18,
6923,
2932,
8530,
1769,
202,
430,
261,
3860,
856,
480,
446,
13,
288,
202,
565,
1686,
18,
6923,
2932,
2006,
856,
5189,
8863,
202,
565,
1686,
18,
6923,
12,
3860,
856,
1769,
202,
565,
1686,
18,
6923,
2932,
8530,
1769,
202,
97,
202,
430,
261,
7032,
1615,
480,
446,
13,
288,
202,
565,
1686,
18,
6923,
2932,
3246,
1615,
5189,
8863,
202,
2
] |
Attributes attrs = ( Attributes ) getValue(); | Attributes attrs = (Attributes) getValue(); | public String getAsText() { LdifComposer composer = new LdifComposerImpl(); MultiMap map = new MultiMap() { // FIXME Stop forking commons-collections. private final MultiHashMap map = new MultiHashMap(); public Object remove( Object arg0, Object arg1 ) { return map.remove( arg0, arg1 ); } public int size() { return map.size(); } public Object get( Object arg0 ) { return map.get( arg0 ); } public boolean containsValue( Object arg0 ) { return map.containsValue( arg0 ); } public Object put( Object arg0, Object arg1 ) { return map.put( arg0, arg1 ); } public Object remove( Object arg0 ) { return map.remove( arg0 ); } public Collection values() { return map.values(); } public boolean isEmpty() { return map.isEmpty(); } public boolean containsKey( Object key ) { return map.containsKey( key ); } public void putAll( Map arg0 ) { map.putAll( arg0 ); } public void clear() { map.clear(); } public Set keySet() { return map.keySet(); } public Set entrySet() { return map.entrySet(); } }; Attributes attrs = ( Attributes ) getValue(); try { NamingEnumeration e = attrs.getAll(); while ( e.hasMore() ) { Attribute attr = ( Attribute ) e.next(); NamingEnumeration e2 = attr.getAll(); while ( e2.hasMoreElements() ) { Object value = e2.next(); map.put( attr.getID(), value ); } } return composer.compose( map ); } catch ( Exception e ) { throw new ConfigurationException( e ); } } | 10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/685d64c45dff6e9f5c14bbe749c559238c771876/AttributesPropertyEditor.java/clean/core/src/main/java/org/apache/directory/server/core/configuration/AttributesPropertyEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
13122,
1528,
1435,
565,
288,
3639,
511,
11593,
14404,
8561,
273,
394,
511,
11593,
14404,
2828,
5621,
3639,
5991,
863,
852,
273,
394,
5991,
863,
1435,
3639,
288,
5411,
368,
9852,
5131,
12515,
310,
24021,
17,
19246,
18,
5411,
3238,
727,
5991,
8658,
852,
273,
394,
5991,
8658,
5621,
5411,
1071,
1033,
1206,
12,
1033,
1501,
20,
16,
1033,
1501,
21,
262,
5411,
288,
7734,
327,
852,
18,
4479,
12,
1501,
20,
16,
1501,
21,
11272,
5411,
289,
5411,
1071,
509,
963,
1435,
5411,
288,
7734,
327,
852,
18,
1467,
5621,
5411,
289,
5411,
1071,
1033,
336,
12,
1033,
1501,
20,
262,
5411,
288,
7734,
327,
852,
18,
588,
12,
1501,
20,
11272,
5411,
289,
5411,
1071,
1250,
1914,
620,
12,
1033,
1501,
20,
262,
5411,
288,
7734,
327,
852,
18,
12298,
620,
12,
1501,
20,
11272,
5411,
289,
5411,
1071,
1033,
1378,
12,
1033,
1501,
20,
16,
1033,
1501,
21,
262,
5411,
288,
7734,
327,
852,
18,
458,
12,
1501,
20,
16,
1501,
21,
11272,
5411,
289,
5411,
1071,
1033,
1206,
12,
1033,
1501,
20,
262,
5411,
288,
7734,
327,
852,
18,
4479,
12,
1501,
20,
11272,
5411,
289,
5411,
1071,
2200,
924,
1435,
5411,
288,
7734,
327,
852,
18,
2372,
5621,
5411,
289,
5411,
1071,
1250,
2709,
1435,
5411,
288,
7734,
327,
852,
18,
291,
1921,
5621,
5411,
289,
5411,
1071,
1250,
5724,
12,
1033,
498,
262,
5411,
288,
7734,
327,
852,
18,
12298,
653,
12,
498,
11272,
5411,
289,
5411,
1071,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
13122,
1528,
1435,
565,
288,
3639,
511,
11593,
14404,
8561,
273,
394,
511,
11593,
14404,
2828,
5621,
3639,
5991,
863,
852,
273,
394,
5991,
863,
1435,
3639,
288,
5411,
368,
9852,
5131,
12515,
310,
24021,
17,
19246,
18,
5411,
3238,
727,
5991,
8658,
852,
273,
394,
5991,
8658,
5621,
5411,
1071,
1033,
1206,
12,
1033,
1501,
20,
16,
1033,
1501,
21,
262,
5411,
288,
7734,
327,
852,
18,
4479,
12,
1501,
20,
16,
1501,
21,
11272,
5411,
289,
5411,
1071,
509,
963,
1435,
5411,
288,
7734,
327,
852,
18,
1467,
5621,
5411,
289,
5411,
1071,
1033,
336,
12,
1033,
1501,
20,
262,
5411,
288,
7734,
327,
852,
18,
588,
12,
1501,
20,
11272,
5411,
289,
5411,
2
] |
StringBuffer buffer = new StringBuffer(); buffer.append( " typedef struct S { \n" ); buffer.append( " int a; \n" ); buffer.append( " int b; \n" ); buffer.append( "} s;\n" ); buffer.append( "typedef s t;\n" ); buffer.append( "typedef t y;\n" ); buffer.append( "y x = {.a=1,.b=2};\n" ); IASTTranslationUnit tu = parse( buffer.toString(), ParserLanguage.C ); IASTSimpleDeclaration S_decl = (IASTSimpleDeclaration)tu.getDeclarations()[0]; IASTSimpleDeclaration x_decl = (IASTSimpleDeclaration)tu.getDeclarations()[3]; | StringBuffer buffer = new StringBuffer(); buffer.append(" typedef struct S { \n"); buffer.append(" int a; \n"); buffer.append(" int b; \n"); buffer.append("} s;\n"); buffer.append("typedef s t;\n"); buffer.append("typedef t y;\n"); buffer.append("y x = {.a=1,.b=2};\n"); IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.C); | public void testMoreGetDeclarations3() throws Exception { StringBuffer buffer = new StringBuffer(); //$NON-NLS-1$ buffer.append( " typedef struct S { \n" ); //$NON-NLS-1$ buffer.append( " int a; \n" ); //$NON-NLS-1$ buffer.append( " int b; \n" ); //$NON-NLS-1$ buffer.append( "} s;\n" ); //$NON-NLS-1$ buffer.append( "typedef s t;\n" ); //$NON-NLS-1$ buffer.append( "typedef t y;\n" ); //$NON-NLS-1$ buffer.append( "y x = {.a=1,.b=2};\n" ); //$NON-NLS-1$ IASTTranslationUnit tu = parse( buffer.toString(), ParserLanguage.C ); IASTSimpleDeclaration S_decl = (IASTSimpleDeclaration)tu.getDeclarations()[0]; IASTSimpleDeclaration x_decl = (IASTSimpleDeclaration)tu.getDeclarations()[3]; IASTName a1 = ((IASTSimpleDeclaration)((IASTCompositeTypeSpecifier)S_decl.getDeclSpecifier()).getMembers()[0]).getDeclarators()[0].getName(); IASTName b1 = ((IASTSimpleDeclaration)((IASTCompositeTypeSpecifier)S_decl.getDeclSpecifier()).getMembers()[1]).getDeclarators()[0].getName(); IASTName a2 = ((ICASTFieldDesignator)((ICASTDesignatedInitializer)((IASTInitializerList)x_decl.getDeclarators()[0].getInitializer()).getInitializers()[0]).getDesignators()[0]).getName(); IASTName b2 = ((ICASTFieldDesignator)((ICASTDesignatedInitializer)((IASTInitializerList)x_decl.getDeclarators()[0].getInitializer()).getInitializers()[1]).getDesignators()[0]).getName(); assertEquals( a1.resolveBinding(), a2.resolveBinding() ); assertEquals( b1.resolveBinding(), b2.resolveBinding() ); IASTName[] decls = tu.getDeclarations(a1.resolveBinding()); assertEquals( decls.length, 1 ); assertEquals( a1, decls[0] ); decls = tu.getDeclarations(b1.resolveBinding()); assertEquals( decls.length, 1 ); assertEquals( b1, decls[0] ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a1776b31512ed659229f125097f603f16a18be82/AST2Tests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7417,
967,
21408,
23,
1435,
1216,
1185,
288,
3639,
6674,
1613,
273,
394,
6674,
5621,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
315,
618,
536,
1958,
348,
288,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
315,
509,
279,
31,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
315,
509,
324,
31,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
27342,
272,
9747,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
315,
723,
536,
272,
268,
9747,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
315,
723,
536,
268,
677,
9747,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
315,
93,
619,
273,
288,
18,
69,
33,
21,
29257,
70,
33,
22,
97,
9747,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
45,
9053,
6717,
2802,
28325,
273,
1109,
12,
1613,
18,
10492,
9334,
6783,
3779,
18,
39,
11272,
377,
202,
565,
202,
202,
45,
9053,
5784,
6094,
348,
67,
8840,
273,
261,
45,
9053,
5784,
6094,
13,
88,
89,
18,
588,
21408,
1435,
63,
20,
15533,
565,
202,
202,
45,
9053,
5784,
6094,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7417,
967,
21408,
23,
1435,
1216,
1185,
288,
3639,
6674,
1613,
273,
394,
6674,
5621,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
315,
618,
536,
1958,
348,
288,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
315,
509,
279,
31,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
315,
509,
324,
31,
521,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
6923,
12,
27342,
272,
9747,
82,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
565,
202,
202,
4106,
18,
2
] |
Modification[] modifications = parse(inputStream); | Modification[] modifications = parse(reader); | static List parseAndFilter(InputStream inputStream, Date lastBuild) throws JDOMException, IOException, ParseException, UnsupportedEncodingException { Modification[] modifications = parse(inputStream); return filterModifications(modifications, lastBuild); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/1178f5b2c12566e7b56724d38dae6f504a0098cc/SVN.java/buggy/main/src/net/sourceforge/cruisecontrol/sourcecontrols/SVN.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
760,
987,
1109,
1876,
1586,
12,
4348,
10010,
16,
2167,
1142,
3116,
13,
5411,
1216,
804,
8168,
503,
16,
1860,
16,
10616,
16,
15367,
288,
5411,
3431,
1480,
8526,
17953,
273,
1109,
12,
10530,
1769,
5411,
327,
1034,
28340,
12,
1711,
6640,
16,
1142,
3116,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
760,
987,
1109,
1876,
1586,
12,
4348,
10010,
16,
2167,
1142,
3116,
13,
5411,
1216,
804,
8168,
503,
16,
1860,
16,
10616,
16,
15367,
288,
5411,
3431,
1480,
8526,
17953,
273,
1109,
12,
10530,
1769,
5411,
327,
1034,
28340,
12,
1711,
6640,
16,
1142,
3116,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ps.setInt(1, EntityTypes.getEntityTypeID(entity.getEntityType()).intValue()); | ps.setInt(1, org.jasig.portal.EntityTypes.getEntityTypeID(entity.getEntityType()).intValue()); | public String[] getPropertyNames(IBasicEntity entity) { String[] rn = new String[0]; ArrayList ar = new ArrayList(); Connection conn = null; RDBMServices.PreparedStatement ps = null; try { conn = this.getConnection(); ps = new RDBMServices.PreparedStatement(conn, selectPropertyNames); ps.clearParameters(); ps.setInt(1, EntityTypes.getEntityTypeID(entity.getEntityType()).intValue()); ps.setString(2, entity.getEntityKey()); ResultSet rs = ps.executeQuery(); while (rs.next()) { ar.add(rs.getString(NAME_COL)); } rs.close(); ps.close(); } catch (Exception e) { LogService.instance().log(LogService.ERROR, "RDBMPropertyStore.getPropertyNames: " + ps); LogService.instance().log(LogService.ERROR, e); } finally { this.releaseConnection(conn); } return (String[])ar.toArray(rn); } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/967d2309f4ed271a282e72a363e97a70f96d56b4/RDBMPropertyStore.java/clean/source/org/jasig/portal/services/entityproperties/RDBMPropertyStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
3911,
1557,
12,
45,
8252,
1943,
1522,
13,
288,
3639,
514,
8526,
20594,
273,
394,
514,
63,
20,
15533,
3639,
2407,
419,
273,
394,
2407,
5621,
3639,
4050,
1487,
273,
446,
31,
3639,
534,
2290,
49,
5676,
18,
29325,
4250,
273,
446,
31,
3639,
775,
288,
5411,
1487,
273,
333,
18,
588,
1952,
5621,
5411,
4250,
273,
394,
534,
2290,
49,
5676,
18,
29325,
12,
4646,
16,
2027,
29932,
1769,
5411,
4250,
18,
8507,
2402,
5621,
5411,
4250,
18,
542,
1702,
12,
21,
16,
2358,
18,
78,
345,
360,
18,
24386,
18,
1943,
2016,
18,
588,
22562,
734,
12,
1096,
18,
588,
22562,
1435,
2934,
474,
620,
10663,
5411,
4250,
18,
542,
780,
12,
22,
16,
1522,
18,
588,
1943,
653,
10663,
5411,
10842,
3597,
273,
4250,
18,
8837,
1138,
5621,
5411,
1323,
261,
5453,
18,
4285,
10756,
288,
7734,
419,
18,
1289,
12,
5453,
18,
588,
780,
12,
1985,
67,
4935,
10019,
5411,
289,
5411,
3597,
18,
4412,
5621,
5411,
4250,
18,
4412,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
1827,
1179,
18,
1336,
7675,
1330,
12,
1343,
1179,
18,
3589,
16,
315,
54,
2290,
49,
1396,
2257,
18,
588,
29932,
30,
315,
10792,
397,
4250,
1769,
5411,
1827,
1179,
18,
1336,
7675,
1330,
12,
1343,
1179,
18,
3589,
16,
425,
1769,
3639,
289,
3095,
288,
5411,
333,
18,
9340,
1952,
12,
4646,
1769,
3639,
289,
3639,
327,
225,
261,
780,
63,
5717,
297,
18,
31447,
12,
27639,
1769,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
3911,
1557,
12,
45,
8252,
1943,
1522,
13,
288,
3639,
514,
8526,
20594,
273,
394,
514,
63,
20,
15533,
3639,
2407,
419,
273,
394,
2407,
5621,
3639,
4050,
1487,
273,
446,
31,
3639,
534,
2290,
49,
5676,
18,
29325,
4250,
273,
446,
31,
3639,
775,
288,
5411,
1487,
273,
333,
18,
588,
1952,
5621,
5411,
4250,
273,
394,
534,
2290,
49,
5676,
18,
29325,
12,
4646,
16,
2027,
29932,
1769,
5411,
4250,
18,
8507,
2402,
5621,
5411,
4250,
18,
542,
1702,
12,
21,
16,
2358,
18,
78,
345,
360,
18,
24386,
18,
1943,
2016,
18,
588,
22562,
734,
12,
1096,
18,
588,
22562,
1435,
2934,
474,
620,
10663,
5411,
4250,
18,
542,
780,
12,
22,
2
] |
this.jobClient = (InterTrackerProtocol) RPC.getProxy(InterTrackerProtocol.class, InterTrackerProtocol.versionID, jobTrackAddr, this.fConf); | this.jobClient = (InterTrackerProtocol) RPC.waitForProxy(InterTrackerProtocol.class, InterTrackerProtocol.versionID, jobTrackAddr, this.fConf); | synchronized void initialize() throws IOException { this.localHostname = InetAddress.getLocalHost().getHostName(); //check local disk checkLocalDirs(this.fConf.getLocalDirs()); fConf.deleteLocalFiles(SUBDIR); // Clear out state tables this.tasks = new TreeMap(); this.runningTasks = new TreeMap(); this.mapTotal = 0; this.reduceTotal = 0; this.acceptNewTasks = true; this.minSpaceStart = this.fConf.getLong("mapred.local.dir.minspacestart", 0L); this.minSpaceKill = this.fConf.getLong("mapred.local.dir.minspacekill", 0L); // port numbers this.taskReportPort = this.fConf.getInt("mapred.task.tracker.report.port", 50050); // RPC initialization while (true) { try { this.taskReportServer = RPC.getServer(this, this.taskReportPort, maxCurrentTasks, false, this.fConf); this.taskReportServer.start(); break; } catch (BindException e) { LOG.info("Could not open report server at " + this.taskReportPort + ", trying new port"); this.taskReportPort++; } } this.taskTrackerName = "tracker_" + localHostname + ":" + taskReportPort; LOG.info("Starting tracker " + taskTrackerName); // Clear out temporary files that might be lying around this.mapOutputFile.cleanupStorage(); this.justStarted = true; this.jobClient = (InterTrackerProtocol) RPC.getProxy(InterTrackerProtocol.class, InterTrackerProtocol.versionID, jobTrackAddr, this.fConf); this.running = true; } | 49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/ee039b4163b10a4788ed4da43d9c13b314eb6a46/TaskTracker.java/buggy/src/java/org/apache/hadoop/mapred/TaskTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
4046,
1435,
1216,
1860,
288,
3639,
333,
18,
3729,
13769,
273,
14218,
18,
588,
2042,
2594,
7675,
588,
20946,
5621,
3639,
368,
1893,
1191,
4234,
3639,
866,
2042,
9872,
12,
2211,
18,
74,
3976,
18,
588,
2042,
9872,
10663,
3639,
284,
3976,
18,
3733,
2042,
2697,
12,
8362,
4537,
1769,
3639,
368,
10121,
596,
919,
4606,
3639,
333,
18,
9416,
273,
394,
16381,
5621,
3639,
333,
18,
8704,
6685,
273,
394,
16381,
5621,
3639,
333,
18,
1458,
5269,
273,
374,
31,
3639,
333,
18,
12498,
5269,
273,
374,
31,
3639,
333,
18,
9436,
1908,
6685,
273,
638,
31,
7734,
333,
18,
1154,
3819,
1685,
273,
333,
18,
74,
3976,
18,
588,
3708,
2932,
1458,
1118,
18,
3729,
18,
1214,
18,
1154,
1752,
1077,
27893,
3113,
374,
48,
1769,
3639,
333,
18,
1154,
3819,
19045,
273,
333,
18,
74,
3976,
18,
588,
3708,
2932,
1458,
1118,
18,
3729,
18,
1214,
18,
1154,
2981,
16418,
3113,
374,
48,
1769,
13491,
368,
1756,
5600,
3639,
333,
18,
4146,
4820,
2617,
273,
333,
18,
74,
3976,
18,
588,
1702,
2932,
1458,
1118,
18,
4146,
18,
16543,
18,
6006,
18,
655,
3113,
6604,
3361,
1769,
3639,
368,
8295,
10313,
3639,
1323,
261,
3767,
13,
288,
5411,
775,
288,
7734,
333,
18,
4146,
4820,
2081,
273,
8295,
18,
588,
2081,
12,
2211,
16,
333,
18,
4146,
4820,
2617,
16,
943,
3935,
6685,
16,
629,
16,
333,
18,
74,
3976,
1769,
7734,
333,
18,
4146,
4820,
2081,
18,
1937,
5621,
7734,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
4046,
1435,
1216,
1860,
288,
3639,
333,
18,
3729,
13769,
273,
14218,
18,
588,
2042,
2594,
7675,
588,
20946,
5621,
3639,
368,
1893,
1191,
4234,
3639,
866,
2042,
9872,
12,
2211,
18,
74,
3976,
18,
588,
2042,
9872,
10663,
3639,
284,
3976,
18,
3733,
2042,
2697,
12,
8362,
4537,
1769,
3639,
368,
10121,
596,
919,
4606,
3639,
333,
18,
9416,
273,
394,
16381,
5621,
3639,
333,
18,
8704,
6685,
273,
394,
16381,
5621,
3639,
333,
18,
1458,
5269,
273,
374,
31,
3639,
333,
18,
12498,
5269,
273,
374,
31,
3639,
333,
18,
9436,
1908,
6685,
273,
638,
31,
7734,
333,
18,
1154,
3819,
1685,
273,
333,
18,
74,
3976,
18,
588,
3708,
2932,
1458,
1118,
18,
2
] |
c.setExtents(new Rectangle(oe)); | public static Box layout(LayoutContext c, Box block, Content content) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); //block.x = c.getExtents().x; //block.y = c.getExtents().y; // save height incase fixed height int original_height = block.height; // do children's layout boolean old_sub = c.isSubBlock(); c.setSubBlock(false); List contentList = content.getChildContent(c); if (contentList != null && contentList.size() != 0) { InlineBoxing.layoutContent(c, block, content.getChildContent(c));//when this is really an anonymous, InlineLayout.layoutChildren is called } c.setSubBlock(old_sub); // restore height incase fixed height if (!block.getStyle().isAutoHeight()) { Uu.p("restoring original height"); block.height = original_height; } //restore the extents c.setExtents(oe); return block; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/64c3183c146f6b53b2057df9750f030a3b20c4b2/AnonymousBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/AnonymousBoxing.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
8549,
3511,
12,
3744,
1042,
276,
16,
8549,
1203,
16,
3697,
913,
13,
288,
3639,
368,
1610,
326,
24070,
3639,
13264,
320,
73,
273,
276,
18,
588,
2482,
4877,
5621,
6647,
368,
2629,
18,
92,
273,
276,
18,
588,
2482,
4877,
7675,
92,
31,
3639,
368,
2629,
18,
93,
273,
276,
18,
588,
2482,
4877,
7675,
93,
31,
3639,
368,
1923,
2072,
316,
3593,
5499,
2072,
3639,
509,
2282,
67,
4210,
273,
1203,
18,
4210,
31,
3639,
368,
741,
2325,
1807,
3511,
3639,
1250,
1592,
67,
1717,
273,
276,
18,
291,
1676,
1768,
5621,
3639,
276,
18,
542,
1676,
1768,
12,
5743,
1769,
3639,
987,
913,
682,
273,
913,
18,
588,
1763,
1350,
12,
71,
1769,
3639,
309,
261,
1745,
682,
480,
446,
597,
913,
682,
18,
1467,
1435,
480,
374,
13,
288,
5411,
16355,
3514,
310,
18,
6741,
1350,
12,
71,
16,
1203,
16,
913,
18,
588,
1763,
1350,
12,
71,
10019,
759,
13723,
333,
353,
8654,
392,
13236,
16,
16355,
3744,
18,
6741,
4212,
353,
2566,
3639,
289,
3639,
276,
18,
542,
1676,
1768,
12,
1673,
67,
1717,
1769,
3639,
368,
5217,
2072,
316,
3593,
5499,
2072,
3639,
309,
16051,
2629,
18,
588,
2885,
7675,
291,
4965,
2686,
10756,
288,
5411,
587,
89,
18,
84,
2932,
8792,
6053,
2282,
2072,
8863,
5411,
1203,
18,
4210,
273,
2282,
67,
4210,
31,
3639,
289,
3639,
368,
13991,
326,
24070,
3639,
276,
18,
542,
2482,
4877,
12,
15548,
1769,
3639,
327,
1203,
31,
565,
289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
8549,
3511,
12,
3744,
1042,
276,
16,
8549,
1203,
16,
3697,
913,
13,
288,
3639,
368,
1610,
326,
24070,
3639,
13264,
320,
73,
273,
276,
18,
588,
2482,
4877,
5621,
6647,
368,
2629,
18,
92,
273,
276,
18,
588,
2482,
4877,
7675,
92,
31,
3639,
368,
2629,
18,
93,
273,
276,
18,
588,
2482,
4877,
7675,
93,
31,
3639,
368,
1923,
2072,
316,
3593,
5499,
2072,
3639,
509,
2282,
67,
4210,
273,
1203,
18,
4210,
31,
3639,
368,
741,
2325,
1807,
3511,
3639,
1250,
1592,
67,
1717,
273,
276,
18,
291,
1676,
1768,
5621,
3639,
276,
18,
542,
1676,
1768,
12,
5743,
1769,
3639,
987,
913,
682,
273,
913,
18,
588,
1763,
1350,
12,
71,
1769,
2
] | |
XML xml = createEmptyXML(lib); | copyCurs.toStartDoc(); copyCurs.toFirstContentToken(); | Object copy() { XmlCursor srcCurs = newCursor(); if (srcCurs.isStartdoc()) { srcCurs.toFirstContentToken(); } XML xml = createEmptyXML(lib); XmlCursor destCurs = xml.newCursor(); destCurs.toFirstContentToken(); srcCurs.copyXml(destCurs); destCurs.dispose(); srcCurs.dispose(); return xml; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/00faaf6ab861a6de03237a069177c81877d5f73d/XML.java/buggy/js/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
1610,
1435,
565,
288,
3639,
5714,
6688,
1705,
2408,
87,
273,
394,
6688,
5621,
3639,
309,
261,
4816,
2408,
87,
18,
291,
1685,
2434,
10756,
3639,
288,
5411,
1705,
2408,
87,
18,
869,
3759,
1350,
1345,
5621,
3639,
289,
3639,
1610,
2408,
87,
18,
869,
1685,
1759,
5621,
1610,
2408,
87,
18,
869,
3759,
1350,
1345,
5621,
3639,
5714,
6688,
1570,
2408,
87,
273,
2025,
18,
2704,
6688,
5621,
3639,
1570,
2408,
87,
18,
869,
3759,
1350,
1345,
5621,
3639,
1705,
2408,
87,
18,
3530,
4432,
12,
10488,
2408,
87,
1769,
3639,
1570,
2408,
87,
18,
2251,
4150,
5621,
3639,
1705,
2408,
87,
18,
2251,
4150,
5621,
3639,
327,
2025,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
1610,
1435,
565,
288,
3639,
5714,
6688,
1705,
2408,
87,
273,
394,
6688,
5621,
3639,
309,
261,
4816,
2408,
87,
18,
291,
1685,
2434,
10756,
3639,
288,
5411,
1705,
2408,
87,
18,
869,
3759,
1350,
1345,
5621,
3639,
289,
3639,
1610,
2408,
87,
18,
869,
1685,
1759,
5621,
1610,
2408,
87,
18,
869,
3759,
1350,
1345,
5621,
3639,
5714,
6688,
1570,
2408,
87,
273,
2025,
18,
2704,
6688,
5621,
3639,
1570,
2408,
87,
18,
869,
3759,
1350,
1345,
5621,
3639,
1705,
2408,
87,
18,
3530,
4432,
12,
10488,
2408,
87,
1769,
3639,
1570,
2408,
87,
18,
2251,
4150,
5621,
3639,
1705,
2408,
87,
18,
2251,
4150,
5621,
3639,
327,
2025,
31,
565,
289,
2,
-100,
-100,
-100,
-100
] |
version2 ? "java.sql.PreparedStatement" : "java.sql.ResultSet", Modifier.PUBLIC); | vtiType, Modifier.PUBLIC); | private void generateConstructor(ActivationClassBuilder acb, MethodBuilder mb, boolean reuseablePs) throws StandardException { // this sets up the method and the static field. // generates: // java.sql.ResultSet userExprFun { } MethodBuilder userExprFun = acb.newGeneratedFun( version2 ? "java.sql.PreparedStatement" : "java.sql.ResultSet", Modifier.PUBLIC); userExprFun.addThrownException("java.lang.Exception"); // If it's a re-useable PreparedStatement then hold onto it. LocalField psHolder = reuseablePs ? acb.newFieldDeclaration(Modifier.PRIVATE, "java.sql.PreparedStatement") : null; if (reuseablePs) { userExprFun.getField(psHolder); userExprFun.conditionalIfNull(); } newInvocation.generateExpression(acb, userExprFun); if (reuseablePs) { userExprFun.putField(psHolder); userExprFun.startElseCode(); userExprFun.getField(psHolder); userExprFun.completeConditional(); } userExprFun.methodReturn(); // newInvocation knows it is returning its value; /* generates: * return <newInvocation.generate(acb)>; */ // we are done modifying userExprFun, complete it. userExprFun.complete(); // constructor is used in the final result set as an access of the new static // field holding a reference to this new method. // generates: // ActivationClass.userExprFun // which is the static field that "points" to the userExprFun // that evaluates the where clause. acb.pushMethodReference(mb, userExprFun); // now add in code to close the reusable PreparedStatement when // the activation is closed. if (reuseablePs) { MethodBuilder closeActivationMethod = acb.getCloseActivationMethod(); closeActivationMethod.getField(psHolder); closeActivationMethod.conditionalIfNull(); // do nothing closeActivationMethod.push(0); // work around for no support for real if statements closeActivationMethod.startElseCode(); closeActivationMethod.getField(psHolder); closeActivationMethod.callMethod(VMOpcode.INVOKEINTERFACE, "java.sql.Statement", "close", "void", 0); closeActivationMethod.push(0); closeActivationMethod.completeConditional(); closeActivationMethod.endStatement(); } } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/2c65d7cb1b3eddc356429409b77de604e8275bc7/FromVTI.java/clean/java/engine/org/apache/derby/impl/sql/compile/FromVTI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2103,
6293,
12,
14857,
797,
1263,
1721,
70,
16,
6862,
6862,
1082,
282,
2985,
1263,
4903,
16,
1250,
11827,
429,
18124,
13,
202,
202,
15069,
8263,
503,
202,
95,
202,
202,
759,
333,
1678,
731,
326,
707,
471,
326,
760,
652,
18,
202,
202,
759,
6026,
30,
202,
202,
759,
225,
202,
6290,
18,
4669,
18,
13198,
729,
4742,
22783,
288,
289,
202,
202,
1305,
1263,
729,
4742,
22783,
273,
1721,
70,
18,
2704,
7823,
22783,
12,
1082,
202,
1589,
22,
692,
315,
6290,
18,
4669,
18,
29325,
6,
294,
315,
6290,
18,
4669,
18,
13198,
3113,
12832,
18,
14939,
1769,
202,
202,
1355,
4742,
22783,
18,
1289,
29591,
503,
2932,
6290,
18,
4936,
18,
503,
8863,
202,
202,
759,
971,
518,
1807,
279,
283,
17,
1202,
429,
16913,
1508,
6887,
10170,
518,
18,
202,
202,
2042,
974,
4250,
6064,
273,
11827,
429,
18124,
692,
1721,
70,
18,
2704,
974,
6094,
12,
9829,
18,
20055,
16,
315,
6290,
18,
4669,
18,
29325,
7923,
294,
446,
31,
202,
202,
430,
261,
266,
1202,
429,
18124,
13,
288,
1082,
202,
1355,
4742,
22783,
18,
588,
974,
12,
1121,
6064,
1769,
1082,
202,
1355,
4742,
22783,
18,
22019,
2047,
2041,
5621,
202,
202,
97,
202,
202,
2704,
9267,
18,
7163,
2300,
12,
1077,
70,
16,
729,
4742,
22783,
1769,
202,
202,
430,
261,
266,
1202,
429,
18124,
13,
288,
1082,
202,
1355,
4742,
22783,
18,
458,
974,
12,
1121,
6064,
1769,
1082,
202,
1355,
4742,
22783,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2103,
6293,
12,
14857,
797,
1263,
1721,
70,
16,
6862,
6862,
1082,
282,
2985,
1263,
4903,
16,
1250,
11827,
429,
18124,
13,
202,
202,
15069,
8263,
503,
202,
95,
202,
202,
759,
333,
1678,
731,
326,
707,
471,
326,
760,
652,
18,
202,
202,
759,
6026,
30,
202,
202,
759,
225,
202,
6290,
18,
4669,
18,
13198,
729,
4742,
22783,
288,
289,
202,
202,
1305,
1263,
729,
4742,
22783,
273,
1721,
70,
18,
2704,
7823,
22783,
12,
1082,
202,
1589,
22,
692,
315,
6290,
18,
4669,
18,
29325,
6,
294,
315,
6290,
18,
4669,
18,
13198,
3113,
12832,
18,
14939,
1769,
202,
202,
1355,
4742,
22783,
18,
1289,
29591,
503,
2932,
6290,
18,
4936,
18,
2
] |
FtpletEntry ftpletEnt = (FtpletEntry)m_ftplets.get(i); | FtpletEntry ftpletEnt = (FtpletEntry)ftplets.get(i); | public FtpletEnum onDownloadEnd(FtpRequest request, FtpResponse response) throws FtpException, IOException { FtpletEnum retVal = FtpletEnum.RET_DEFAULT; int sz = m_ftplets.size(); for(int i=0; i<sz; ++i) { FtpletEntry ftpletEnt = (FtpletEntry)m_ftplets.get(i); retVal = ftpletEnt.ftplet.onDownloadEnd(request, response); if(retVal == null) { retVal = FtpletEnum.RET_DEFAULT; } // proceed only if the return value is FtpletEnum.RET_DEFAULT if(retVal != FtpletEnum.RET_DEFAULT) { break; } } return retVal; } | 48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/FtpletContainer.java/clean/src/java/org/apache/ftpserver/FtpletContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
478,
88,
1469,
3572,
603,
7109,
1638,
12,
42,
6834,
691,
590,
16,
478,
6834,
1064,
766,
13,
1216,
478,
6834,
503,
16,
1860,
288,
3639,
478,
88,
1469,
3572,
12197,
273,
478,
88,
1469,
3572,
18,
10238,
67,
5280,
31,
3639,
509,
11262,
273,
312,
67,
1222,
20773,
18,
1467,
5621,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
32,
24575,
31,
965,
77,
13,
288,
5411,
478,
88,
1469,
1622,
11038,
1469,
14199,
273,
261,
42,
88,
1469,
1622,
13,
1222,
20773,
18,
588,
12,
77,
1769,
5411,
12197,
273,
11038,
1469,
14199,
18,
1222,
1469,
18,
265,
7109,
1638,
12,
2293,
16,
766,
1769,
5411,
309,
12,
1349,
3053,
422,
446,
13,
288,
7734,
12197,
273,
478,
88,
1469,
3572,
18,
10238,
67,
5280,
31,
5411,
289,
13491,
368,
11247,
1338,
309,
326,
327,
460,
353,
478,
88,
1469,
3572,
18,
10238,
67,
5280,
5411,
309,
12,
1349,
3053,
480,
478,
88,
1469,
3572,
18,
10238,
67,
5280,
13,
288,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
327,
12197,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
478,
88,
1469,
3572,
603,
7109,
1638,
12,
42,
6834,
691,
590,
16,
478,
6834,
1064,
766,
13,
1216,
478,
6834,
503,
16,
1860,
288,
3639,
478,
88,
1469,
3572,
12197,
273,
478,
88,
1469,
3572,
18,
10238,
67,
5280,
31,
3639,
509,
11262,
273,
312,
67,
1222,
20773,
18,
1467,
5621,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
32,
24575,
31,
965,
77,
13,
288,
5411,
478,
88,
1469,
1622,
11038,
1469,
14199,
273,
261,
42,
88,
1469,
1622,
13,
1222,
20773,
18,
588,
12,
77,
1769,
5411,
12197,
273,
11038,
1469,
14199,
18,
1222,
1469,
18,
265,
7109,
1638,
12,
2293,
16,
766,
1769,
5411,
309,
12,
1349,
3053,
422,
446,
13,
288,
2
] |
FileOutputStream fos = new FileOutputStream(file); | GeneralFileOutputStream fos = FileFactory.newFileOutputStream(file); | public static int store(Context context, InputStream is) throws SQLException, IOException { // Create internal ID String id = Utils.generateKey(); // Create a deleted bitstream row, using a separate DB connection TableRow bitstream; Context tempContext = null; try { tempContext = new Context(); bitstream = DatabaseManager.create(tempContext, "Bitstream"); bitstream.setColumn("deleted", true); bitstream.setColumn("internal_id", id); /* * Set the store number of the new bitstream If you want to use some * other method of working out where to put a new bitstream, here's * where it should go */ bitstream.setColumn("store_number", incoming); DatabaseManager.update(tempContext, bitstream); tempContext.complete(); } catch (SQLException sqle) { if (tempContext != null) { tempContext.abort(); } throw sqle; } // Where on the file system will this new bitstream go? File file = getFile(bitstream); // Make the parent dirs if necessary File parent = file.getParentFile(); if (!parent.exists()) { parent.mkdirs(); } //Create the corresponding file and open it file.createNewFile(); FileOutputStream fos = new FileOutputStream(file); // Read through a digest input stream that will work out the MD5 DigestInputStream dis = null; try { dis = new DigestInputStream(is, MessageDigest.getInstance("MD5")); } // Should never happen catch (NoSuchAlgorithmException nsae) { log.warn("Caught NoSuchAlgorithmException", nsae); } Utils.bufferedCopy(dis, fos); fos.close(); is.close(); if ("oracle".equals(ConfigurationManager.getProperty("db.name"))) { bitstream.setColumn("size_bytes", (int) file.length()); } else { // postgres default bitstream.setColumn("size", (int) file.length()); } bitstream.setColumn("checksum", Utils.toHex(dis.getMessageDigest() .digest())); bitstream.setColumn("checksum_algorithm", "MD5"); bitstream.setColumn("deleted", false); DatabaseManager.update(context, bitstream); int bitstream_id = bitstream.getIntColumn("bitstream_id"); if (log.isDebugEnabled()) { log.debug("Stored bitstream " + bitstream_id + " in file " + file.getAbsolutePath()); } return bitstream_id; } | 25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/8f928e283b015ffda8b1f03f8899af8a09ba1ded/BitstreamStorageManager.java/buggy/dspace/src/org/dspace/storage/bitstore/BitstreamStorageManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
1707,
12,
1042,
819,
16,
5037,
353,
13,
5411,
1216,
6483,
16,
1860,
565,
288,
3639,
368,
1788,
2713,
1599,
3639,
514,
612,
273,
6091,
18,
7163,
653,
5621,
3639,
368,
1788,
279,
4282,
28640,
1027,
16,
1450,
279,
9004,
2383,
1459,
3639,
3555,
1999,
28640,
31,
3639,
1772,
1906,
1042,
273,
446,
31,
3639,
775,
3639,
288,
5411,
1906,
1042,
273,
394,
1772,
5621,
5411,
28640,
273,
5130,
1318,
18,
2640,
12,
5814,
1042,
16,
315,
5775,
3256,
8863,
5411,
28640,
18,
542,
1494,
2932,
8600,
3113,
638,
1769,
5411,
28640,
18,
542,
1494,
2932,
7236,
67,
350,
3113,
612,
1769,
5411,
1748,
2398,
380,
1000,
326,
1707,
1300,
434,
326,
394,
28640,
971,
1846,
2545,
358,
999,
2690,
2398,
380,
1308,
707,
434,
5960,
596,
1625,
358,
1378,
279,
394,
28640,
16,
2674,
1807,
2398,
380,
1625,
518,
1410,
1960,
2398,
1195,
5411,
28640,
18,
542,
1494,
2932,
2233,
67,
2696,
3113,
6935,
1769,
5411,
5130,
1318,
18,
2725,
12,
5814,
1042,
16,
28640,
1769,
5411,
1906,
1042,
18,
6226,
5621,
3639,
289,
3639,
1044,
261,
23116,
4744,
298,
13,
3639,
288,
5411,
309,
261,
5814,
1042,
480,
446,
13,
5411,
288,
7734,
1906,
1042,
18,
18623,
5621,
5411,
289,
5411,
604,
4744,
298,
31,
3639,
289,
3639,
368,
12177,
603,
326,
585,
2619,
903,
333,
394,
28640,
1960,
35,
3639,
1387,
585,
273,
6034,
12,
3682,
3256,
1769,
3639,
368,
4344,
326,
982,
7717,
309,
4573,
3639,
1387,
982,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
1707,
12,
1042,
819,
16,
5037,
353,
13,
5411,
1216,
6483,
16,
1860,
565,
288,
3639,
368,
1788,
2713,
1599,
3639,
514,
612,
273,
6091,
18,
7163,
653,
5621,
3639,
368,
1788,
279,
4282,
28640,
1027,
16,
1450,
279,
9004,
2383,
1459,
3639,
3555,
1999,
28640,
31,
3639,
1772,
1906,
1042,
273,
446,
31,
3639,
775,
3639,
288,
5411,
1906,
1042,
273,
394,
1772,
5621,
5411,
28640,
273,
5130,
1318,
18,
2640,
12,
5814,
1042,
16,
315,
5775,
3256,
8863,
5411,
28640,
18,
542,
1494,
2932,
8600,
3113,
638,
1769,
5411,
28640,
18,
542,
1494,
2932,
7236,
67,
350,
3113,
612,
1769,
5411,
1748,
2398,
380,
1000,
326,
1707,
1300,
434,
326,
394,
28640,
971,
2
] |
throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_PUBLISH_NO_FOLDER_1, resource.getRootPath())); | throw new CmsIllegalArgumentException(Messages.get().container( Messages.ERR_PUBLISH_NO_FOLDER_1, resource.getRootPath())); | protected void addFolder(CmsResource resource) throws IllegalArgumentException { // it is essential that this method is only visible within the db package! if (resource.isFile()) { throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_PUBLISH_NO_FOLDER_1, resource.getRootPath())); } if (resource.getState() == I_CmsConstants.C_STATE_UNCHANGED) { throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_PUBLISH_UNCHANGED_RESOURCE_1, resource.getRootPath())); } if (resource.getState() == I_CmsConstants.C_STATE_DELETED) { m_deletedFolderList.add(resource); } else { m_folderList.add(resource); } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/ffc41838b2d111ebeb91e9a4f240187165ad24d5/CmsPublishList.java/buggy/src/org/opencms/db/CmsPublishList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
3899,
12,
4747,
1420,
1058,
13,
1216,
2754,
288,
3639,
368,
518,
353,
18518,
2001,
716,
333,
707,
353,
1338,
6021,
3470,
326,
1319,
2181,
5,
3639,
309,
261,
3146,
18,
291,
812,
10756,
288,
5411,
604,
394,
2149,
31237,
12,
5058,
18,
588,
7675,
3782,
12,
4838,
18,
9712,
67,
22224,
67,
3417,
67,
17357,
67,
21,
16,
1058,
18,
588,
21302,
1435,
10019,
3639,
289,
3639,
309,
261,
3146,
18,
588,
1119,
1435,
422,
467,
67,
4747,
2918,
18,
39,
67,
7998,
67,
2124,
24435,
13,
288,
5411,
604,
394,
2149,
31237,
12,
5058,
18,
588,
7675,
3782,
12,
5058,
18,
9712,
67,
22224,
67,
2124,
24435,
67,
11395,
67,
21,
16,
1058,
18,
588,
21302,
1435,
10019,
3639,
289,
7734,
309,
261,
3146,
18,
588,
1119,
1435,
422,
467,
67,
4747,
2918,
18,
39,
67,
7998,
67,
27392,
13,
288,
5411,
312,
67,
8600,
3899,
682,
18,
1289,
12,
3146,
1769,
3639,
289,
469,
288,
5411,
312,
67,
5609,
682,
18,
1289,
12,
3146,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
3899,
12,
4747,
1420,
1058,
13,
1216,
2754,
288,
3639,
368,
518,
353,
18518,
2001,
716,
333,
707,
353,
1338,
6021,
3470,
326,
1319,
2181,
5,
3639,
309,
261,
3146,
18,
291,
812,
10756,
288,
5411,
604,
394,
2149,
31237,
12,
5058,
18,
588,
7675,
3782,
12,
4838,
18,
9712,
67,
22224,
67,
3417,
67,
17357,
67,
21,
16,
1058,
18,
588,
21302,
1435,
10019,
3639,
289,
3639,
309,
261,
3146,
18,
588,
1119,
1435,
422,
467,
67,
4747,
2918,
18,
39,
67,
7998,
67,
2124,
24435,
13,
288,
5411,
604,
394,
2149,
31237,
12,
5058,
18,
588,
7675,
3782,
12,
5058,
18,
9712,
67,
22224,
67,
2124,
24435,
67,
11395,
67,
21,
16,
1058,
2
] |
if (type == null) this.type = ""; else this.type = type; | this.type = type; | public void setType(String type) { if (type == null) this.type = ""; else this.type = type; } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/5002cc6805483be5a82e6da1a3854638a8b13eea/SubscriptionForm.java/buggy/src/example/org/apache/struts/example/SubscriptionForm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8811,
12,
780,
618,
13,
288,
202,
430,
261,
723,
422,
446,
13,
202,
565,
333,
18,
723,
273,
1408,
31,
202,
12107,
202,
565,
333,
18,
723,
273,
618,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8811,
12,
780,
618,
13,
288,
202,
430,
261,
723,
422,
446,
13,
202,
565,
333,
18,
723,
273,
1408,
31,
202,
12107,
202,
565,
333,
18,
723,
273,
618,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
response.append(ERXFileUtilities.stringFromInputStream(p.getInputStream())); | response.append(isr.getResult()); | public final static Result execute(String[] command, String[] envp, File dir, long timeout) throws IOException, ERXTimeoutException { File outputFile = null; Runtime rt = Runtime.getRuntime(); Process p = null; int exitValue = 0; StringBuffer response = new StringBuffer(); String input = ""; String error = ""; try { if (log.isDebugEnabled()) { log.debug("will execute command " + command); } if (dir == null && envp == null) { p = rt.exec(command); } else if (dir == null) { p = rt.exec(command, envp); } else if (envp == null) { throw new IllegalArgumentException("if dir != null then envp must also be != null"); } else { p = rt.exec(command, envp, dir); } if (timeout > 0) { final Process pp = p; TimeoutTimerTask task = new TimeoutTimerTask(p); Timer timer = new Timer(); timer.schedule(task, timeout); try { p.waitFor(); } catch (InterruptedException ex) { } timer.cancel(); if (task.hasTimeout()) { throw new ERXTimeoutException("process did't exit after " + timeout + " milliseconds"); } } else { // wait for the result of the process try { p.waitFor(); } catch (InterruptedException ex) { } } response.append(ERXFileUtilities.stringFromInputStream(p.getInputStream())); } finally { try { if (p != null && exitValue == 0) { InputStream is = p.getErrorStream(); if (is != null) error = ERXFileUtilities.stringFromInputStream(is); if (log.isDebugEnabled()) { log.debug("response = " + response); log.debug("error = " + error); } freeProcessResources(p); } } catch (NullPointerException e) { // p was null } if (outputFile != null) outputFile.delete(); } return new Result(response.toString(), error); } | 50512 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50512/5a1a3451958fd6edc90373a05765d09e7e3ae23d/ERXRuntimeUtilities.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXRuntimeUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
760,
3438,
1836,
12,
780,
8526,
1296,
16,
514,
8526,
1550,
84,
16,
1387,
1577,
16,
1525,
2021,
13,
5411,
1216,
1860,
16,
4232,
60,
22195,
288,
3639,
1387,
15047,
273,
446,
31,
3639,
2509,
8253,
273,
2509,
18,
588,
5576,
5621,
3639,
4389,
293,
273,
446,
31,
3639,
509,
2427,
620,
273,
374,
31,
3639,
6674,
766,
273,
394,
6674,
5621,
3639,
514,
810,
273,
1408,
31,
3639,
514,
555,
273,
1408,
31,
3639,
775,
288,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
7734,
613,
18,
4148,
2932,
20194,
1836,
1296,
315,
397,
1296,
1769,
5411,
289,
5411,
309,
261,
1214,
422,
446,
597,
1550,
84,
422,
446,
13,
288,
7734,
293,
273,
8253,
18,
4177,
12,
3076,
1769,
5411,
289,
469,
309,
261,
1214,
422,
446,
13,
288,
7734,
293,
273,
8253,
18,
4177,
12,
3076,
16,
1550,
84,
1769,
5411,
289,
469,
309,
261,
3074,
84,
422,
446,
13,
288,
7734,
604,
394,
2754,
2932,
430,
1577,
480,
446,
1508,
1550,
84,
1297,
2546,
506,
480,
446,
8863,
5411,
289,
469,
288,
7734,
293,
273,
8253,
18,
4177,
12,
3076,
16,
1550,
84,
16,
1577,
1769,
5411,
289,
5411,
309,
261,
4538,
405,
374,
13,
288,
7734,
727,
4389,
8228,
273,
293,
31,
7734,
7804,
6777,
2174,
1562,
273,
394,
7804,
6777,
2174,
12,
84,
1769,
7734,
12290,
5441,
273,
394,
12290,
5621,
7734,
5441,
18,
10676,
12,
4146,
16,
2021,
1769,
7734,
775,
288,
10792,
293,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
760,
3438,
1836,
12,
780,
8526,
1296,
16,
514,
8526,
1550,
84,
16,
1387,
1577,
16,
1525,
2021,
13,
5411,
1216,
1860,
16,
4232,
60,
22195,
288,
3639,
1387,
15047,
273,
446,
31,
3639,
2509,
8253,
273,
2509,
18,
588,
5576,
5621,
3639,
4389,
293,
273,
446,
31,
3639,
509,
2427,
620,
273,
374,
31,
3639,
6674,
766,
273,
394,
6674,
5621,
3639,
514,
810,
273,
1408,
31,
3639,
514,
555,
273,
1408,
31,
3639,
775,
288,
5411,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
7734,
613,
18,
4148,
2932,
20194,
1836,
1296,
315,
397,
1296,
1769,
5411,
289,
5411,
309,
261,
1214,
422,
446,
597,
1550,
84,
422,
446,
13,
288,
7734,
293,
2
] |
sf.schedule(); | private static ClientGetState uskCreate(ClientGetter parent, GetCompletionCallback cb, ClientMetadata clientMetadata, USK usk, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token, boolean isEssential, Bucket returnBucket) throws FetchException { if(usk.suggestedEdition >= 0) { // Return the latest known version but at least suggestedEdition. long edition = ctx.uskManager.lookup(usk); if(edition <= usk.suggestedEdition) { // Transition to SingleFileFetcher GetCompletionCallback myCB = new USKProxyCompletionCallback(usk, ctx.uskManager, cb); // Want to update the latest known good iff the fetch succeeds. SingleFileFetcher sf = new SingleFileFetcher(parent, myCB, clientMetadata, usk.getSSK(usk.suggestedEdition), metaStrings, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, false, returnBucket); sf.schedule(); // Background fetch ctx.uskManager.startTemporaryBackgroundFetcher(usk); return sf; } else { cb.onFailure(new FetchException(FetchException.PERMANENT_REDIRECT, usk.copy(edition).getURI().addMetaStrings(metaStrings)), null); return null; } } else { // Do a thorough, blocking search USKFetcher fetcher = ctx.uskManager.getFetcher(usk.copy(-usk.suggestedEdition), ctx, parent); if(isEssential) parent.addMustSucceedBlocks(1); fetcher.addCallback(new MyUSKFetcherCallback(parent, cb, clientMetadata, usk, metaStrings, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, returnBucket)); return fetcher; } } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/dc371e62cad5776abdd1637f55b95503b3fb3a61/SingleFileFetcher.java/buggy/src/freenet/client/async/SingleFileFetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
2445,
967,
1119,
584,
79,
1684,
12,
1227,
8461,
982,
16,
968,
11238,
2428,
2875,
16,
2445,
2277,
1004,
2277,
16,
587,
11129,
584,
79,
16,
10688,
2191,
7957,
16,
8065,
264,
1042,
1103,
16,
13124,
1042,
1328,
92,
16,
509,
30222,
16,
509,
13917,
2355,
16,
1250,
14046,
21009,
1227,
967,
16,
1033,
1147,
16,
1250,
353,
41,
1049,
2001,
16,
7408,
327,
4103,
13,
1216,
8065,
503,
288,
202,
202,
430,
12,
407,
79,
18,
87,
28892,
41,
1460,
1545,
374,
13,
288,
1082,
202,
759,
2000,
326,
4891,
4846,
1177,
1496,
622,
4520,
22168,
41,
1460,
18,
1082,
202,
5748,
28432,
273,
1103,
18,
407,
79,
1318,
18,
8664,
12,
407,
79,
1769,
1082,
202,
430,
12,
329,
608,
1648,
584,
79,
18,
87,
28892,
41,
1460,
13,
288,
9506,
202,
759,
16515,
358,
10326,
812,
16855,
9506,
202,
967,
11238,
2428,
3399,
8876,
273,
6862,
202,
2704,
587,
11129,
3886,
11238,
2428,
12,
407,
79,
16,
1103,
18,
407,
79,
1318,
16,
2875,
1769,
9506,
202,
759,
678,
970,
358,
1089,
326,
4891,
4846,
7494,
21437,
326,
2158,
21933,
18,
9506,
202,
5281,
812,
16855,
9033,
273,
4405,
202,
2704,
10326,
812,
16855,
12,
2938,
16,
3399,
8876,
16,
1004,
2277,
16,
584,
79,
18,
588,
1260,
47,
12,
407,
79,
18,
87,
28892,
41,
1460,
3631,
6862,
1082,
202,
3901,
7957,
16,
1103,
16,
1328,
92,
16,
30222,
16,
13917,
2355,
16,
14046,
21009,
1227,
967,
16,
6862,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
2445,
967,
1119,
584,
79,
1684,
12,
1227,
8461,
982,
16,
968,
11238,
2428,
2875,
16,
2445,
2277,
1004,
2277,
16,
587,
11129,
584,
79,
16,
10688,
2191,
7957,
16,
8065,
264,
1042,
1103,
16,
13124,
1042,
1328,
92,
16,
509,
30222,
16,
509,
13917,
2355,
16,
1250,
14046,
21009,
1227,
967,
16,
1033,
1147,
16,
1250,
353,
41,
1049,
2001,
16,
7408,
327,
4103,
13,
1216,
8065,
503,
288,
202,
202,
430,
12,
407,
79,
18,
87,
28892,
41,
1460,
1545,
374,
13,
288,
1082,
202,
759,
2000,
326,
4891,
4846,
1177,
1496,
622,
4520,
22168,
41,
1460,
18,
1082,
202,
5748,
28432,
273,
1103,
18,
407,
79,
1318,
18,
8664,
12,
407,
79,
2
] | |
boolean srcNav = ae0.isNavigable(); boolean destNav = ae1.isNavigable(); if (srcNav && destNav && SUPPRESS_BIDIRECTIONAL_ARROWS) srcNav = destNav = false; sourceArrowHead = chooseArrowHead(ae0.getAggregation(), srcNav); destArrowHead = chooseArrowHead(ae1.getAggregation(), destNav); setSourceArrowHead(sourceArrowHead); setDestArrowHead(destArrowHead); _srcGroup.calcBounds(); _destGroup.calcBounds(); _middleGroup.calcBounds(); this.computeRoute(); } | boolean srcNav = ae0.isNavigable(); boolean destNav = ae1.isNavigable(); if (srcNav && destNav && SUPPRESS_BIDIRECTIONAL_ARROWS) srcNav = destNav = false; sourceArrowHead = chooseArrowHead(ae0.getAggregation(), srcNav); destArrowHead = chooseArrowHead(ae1.getAggregation(), destNav); setSourceArrowHead(sourceArrowHead); setDestArrowHead(destArrowHead); _srcGroup.calcBounds(); _destGroup.calcBounds(); _middleGroup.calcBounds(); this.computeRoute(); } | protected void modelChanged(MElementEvent e) { super.modelChanged(e); MAssociation as = (MAssociation) getOwner(); if (as == null || getLayer() == null) return; MAssociationEnd ae0 = (MAssociationEnd)((Object[])(as.getConnections()).toArray())[0]; MAssociationEnd ae1 = (MAssociationEnd)((Object[])(as.getConnections()).toArray())[1]; updateEnd(_srcMult, _srcRole, _srcOrdering, ae0); updateEnd(_destMult, _destRole, _destOrdering, ae1); boolean srcNav = ae0.isNavigable(); boolean destNav = ae1.isNavigable(); if (srcNav && destNav && SUPPRESS_BIDIRECTIONAL_ARROWS) srcNav = destNav = false; sourceArrowHead = chooseArrowHead(ae0.getAggregation(), srcNav); destArrowHead = chooseArrowHead(ae1.getAggregation(), destNav); setSourceArrowHead(sourceArrowHead); setDestArrowHead(destArrowHead); _srcGroup.calcBounds(); _destGroup.calcBounds(); _middleGroup.calcBounds(); this.computeRoute(); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/FigAssociation.java/buggy/src_new/org/argouml/uml/diagram/ui/FigAssociation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
938,
5033,
12,
12310,
1133,
425,
13,
288,
565,
2240,
18,
2284,
5033,
12,
73,
1769,
565,
490,
7174,
487,
273,
261,
49,
7174,
13,
13782,
5621,
565,
309,
261,
345,
422,
446,
747,
25763,
1435,
422,
446,
13,
327,
31,
3639,
490,
7174,
1638,
14221,
20,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
20,
15533,
565,
490,
7174,
1638,
14221,
21,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
21,
15533,
565,
1089,
1638,
24899,
4816,
5049,
16,
389,
4816,
2996,
16,
389,
4816,
20493,
16,
14221,
20,
1769,
565,
1089,
1638,
24899,
10488,
5049,
16,
389,
10488,
2996,
16,
389,
10488,
20493,
16,
14221,
21,
1769,
3639,
1250,
1705,
12599,
273,
14221,
20,
18,
291,
50,
4911,
429,
5621,
565,
1250,
1570,
12599,
273,
14221,
21,
18,
291,
50,
4911,
429,
5621,
565,
309,
261,
4816,
12599,
597,
1570,
12599,
597,
16459,
22526,
67,
38,
30218,
18934,
1013,
67,
985,
28402,
13,
1377,
1705,
12599,
273,
1570,
12599,
273,
629,
31,
565,
1084,
18691,
1414,
273,
9876,
18691,
1414,
12,
8906,
20,
18,
588,
12089,
9334,
1705,
12599,
1769,
565,
1570,
18691,
1414,
273,
9876,
18691,
1414,
12,
8906,
21,
18,
588,
12089,
9334,
1570,
12599,
1769,
565,
18913,
18691,
1414,
12,
3168,
18691,
1414,
1769,
565,
444,
9378,
18691,
1414,
12,
10488,
18691,
1414,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
938,
5033,
12,
12310,
1133,
425,
13,
288,
565,
2240,
18,
2284,
5033,
12,
73,
1769,
565,
490,
7174,
487,
273,
261,
49,
7174,
13,
13782,
5621,
565,
309,
261,
345,
422,
446,
747,
25763,
1435,
422,
446,
13,
327,
31,
3639,
490,
7174,
1638,
14221,
20,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
20,
15533,
565,
490,
7174,
1638,
14221,
21,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
21,
15533,
565,
1089,
1638,
24899,
4816,
5049,
16,
389,
4816,
2996,
16,
389,
4816,
20493,
16,
14221,
20,
2
] |
assertEquals("true",m_xc.xmlText()); | assertEquals(Common.wrapInXmlFrag("true"),m_xc.xmlText()); | public void testFunctionBoolean_caseB() throws Exception { m_xc.selectPath("boolean(//foo/text())"); m_xc.toNextSelection(); assertEquals("false",m_xc.xmlText()); m_xc.clearSelections(); //number m_xc.selectPath("boolean(//price/text())"); m_xc.toNextSelection(); assertEquals("true",m_xc.xmlText()); m_xc.clearSelections(); //number m_xc.selectPath("boolean(//price/text() div 0)"); m_xc.toNextSelection(); assertEquals("false",m_xc.xmlText()); m_xc.clearSelections(); //node-set m_xc.selectPath("boolean(//price)"); m_xc.toNextSelection(); assertEquals("true",m_xc.xmlText()); m_xc.clearSelections(); m_xc.selectPath("boolean(//bar1)"); m_xc.toNextSelection(); assertEquals("false",m_xc.xmlText()); m_xc.clearSelections(); } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/8883179236b87db476131da6fa70580fac43da83/XPathFunctionAuxTest.java/clean/test/src/xmlcursor/xpath/common/XPathFunctionAuxTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
2083,
5507,
67,
3593,
38,
1435,
1216,
1185,
288,
202,
81,
67,
6511,
18,
4025,
743,
2932,
6494,
12,
759,
11351,
19,
955,
1435,
2225,
1769,
202,
81,
67,
6511,
18,
869,
2134,
6233,
5621,
202,
11231,
8867,
2932,
5743,
3113,
81,
67,
6511,
18,
2902,
1528,
10663,
202,
81,
67,
6511,
18,
8507,
29913,
5621,
4202,
368,
2696,
4202,
312,
67,
6511,
18,
4025,
743,
2932,
6494,
12,
759,
8694,
19,
955,
1435,
2225,
1769,
4202,
312,
67,
6511,
18,
869,
2134,
6233,
5621,
4202,
1815,
8867,
12,
6517,
18,
4113,
382,
4432,
19509,
2932,
3767,
6,
3631,
81,
67,
6511,
18,
2902,
1528,
10663,
4202,
312,
67,
6511,
18,
8507,
29913,
5621,
4202,
368,
2696,
4202,
312,
67,
6511,
18,
4025,
743,
2932,
6494,
12,
759,
8694,
19,
955,
1435,
3739,
374,
2225,
1769,
4202,
312,
67,
6511,
18,
869,
2134,
6233,
5621,
4202,
1815,
8867,
2932,
5743,
3113,
81,
67,
6511,
18,
2902,
1528,
10663,
4202,
312,
67,
6511,
18,
8507,
29913,
5621,
4202,
368,
2159,
17,
542,
4202,
312,
67,
6511,
18,
4025,
743,
2932,
6494,
12,
759,
8694,
2225,
1769,
4202,
312,
67,
6511,
18,
869,
2134,
6233,
5621,
4202,
1815,
8867,
12,
6517,
18,
4113,
382,
4432,
19509,
2932,
3767,
6,
3631,
81,
67,
6511,
18,
2902,
1528,
10663,
4202,
312,
67,
6511,
18,
8507,
29913,
5621,
4202,
312,
67,
6511,
18,
4025,
743,
2932,
6494,
12,
759,
3215,
21,
2225,
1769,
4202,
312,
67,
6511,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
2083,
5507,
67,
3593,
38,
1435,
1216,
1185,
288,
202,
81,
67,
6511,
18,
4025,
743,
2932,
6494,
12,
759,
11351,
19,
955,
1435,
2225,
1769,
202,
81,
67,
6511,
18,
869,
2134,
6233,
5621,
202,
11231,
8867,
2932,
5743,
3113,
81,
67,
6511,
18,
2902,
1528,
10663,
202,
81,
67,
6511,
18,
8507,
29913,
5621,
4202,
368,
2696,
4202,
312,
67,
6511,
18,
4025,
743,
2932,
6494,
12,
759,
8694,
19,
955,
1435,
2225,
1769,
4202,
312,
67,
6511,
18,
869,
2134,
6233,
5621,
4202,
1815,
8867,
12,
6517,
18,
4113,
382,
4432,
19509,
2932,
3767,
6,
3631,
81,
67,
6511,
18,
2902,
1528,
10663,
4202,
312,
67,
6511,
18,
8507,
29913,
5621,
4202,
2
] |
public org.quickfix.field.LegInstrRegistry getLegInstrRegistry() throws FieldNotFound { org.quickfix.field.LegInstrRegistry value = new org.quickfix.field.LegInstrRegistry(); | public quickfix.field.LegInstrRegistry getLegInstrRegistry() throws FieldNotFound { quickfix.field.LegInstrRegistry value = new quickfix.field.LegInstrRegistry(); | public org.quickfix.field.LegInstrRegistry getLegInstrRegistry() throws FieldNotFound { org.quickfix.field.LegInstrRegistry value = new org.quickfix.field.LegInstrRegistry(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/RFQRequest.java/clean/src/java/src/quickfix/fix44/RFQRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
336,
8329,
382,
701,
4243,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
336,
8329,
382,
701,
4243,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.out.println("****** going through timedAG in queue, timedAG"+timedAG); | log.debug("****** going through timedAG in queue, timedAG"+timedAG); | public void run(){ // get the queue, go through the queue till it is empty TimedAssessmentQueue queue = TimedAssessmentQueue.getInstance(); Iterator iter = queue.iterator(); while (iter.hasNext()){ TimedAssessmentGradingModel timedAG = (TimedAssessmentGradingModel)iter.next(); System.out.println("****** going through timedAG in queue, timedAG"+timedAG); boolean submitted = timedAG.getSubmittedForGrade(); long bufferedExpirationTime = timedAG.getBufferedExpirationDate().getTime(); // in millesec long currentTime = (new Date()).getTime(); // in millisec System.out.println("****** submitted="+submitted); System.out.println("****** currentTime="+currentTime); System.out.println("****** bufferedExpirationTime="+bufferedExpirationTime); System.out.println("****** expired="+(currentTime > bufferedExpirationTime)); if (!submitted){ if (currentTime > bufferedExpirationTime){ // time's up, i.e. timeLeft + latency buffer reached timedAG.setSubmittedForGrade(true); // set all the properties right and persist status to DB GradingService service = new GradingService(); AssessmentGradingData ag = service.load(timedAG.getAssessmentGradingId().toString()); ag.setForGrade(Boolean.TRUE); ag.setTimeElapsed(new Integer(timedAG.getTimeLimit())); ag.setSubmittedDate(new Date()); service.saveOrUpdateAssessmentGrading(ag); System.out.println("**** 4a. time's up, timeLeft+latency buffer reached, saved to DB"); } } else{ //submitted, remove from queue if transaction buffer is also reached if (currentTime > (bufferedExpirationTime + timedAG.getTransactionBuffer()*1000)){ queue.remove(timedAG); System.out.println("**** 4b. transaction buffer reached"); } } } } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/c1de10b0d9cf7f8a86f55549996b6dcd16315568/SubmitTimedAssessmentThread.java/buggy/samigo/tool/src/java/org/sakaiproject/tool/assessment/ui/queue/delivery/SubmitTimedAssessmentThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
95,
565,
368,
336,
326,
2389,
16,
1960,
3059,
326,
2389,
21364,
518,
353,
1008,
540,
23925,
15209,
3183,
2389,
273,
23925,
15209,
3183,
18,
588,
1442,
5621,
565,
4498,
1400,
273,
2389,
18,
9838,
5621,
565,
1323,
261,
2165,
18,
5332,
2134,
10756,
95,
1377,
23925,
15209,
30420,
310,
1488,
7491,
1781,
273,
261,
19336,
15209,
30420,
310,
1488,
13,
2165,
18,
4285,
5621,
1377,
613,
18,
4148,
2932,
11345,
8554,
3059,
7491,
1781,
316,
2389,
16,
7491,
1781,
6,
15,
20905,
1781,
1769,
1377,
1250,
9638,
273,
7491,
1781,
18,
588,
28882,
1290,
14571,
323,
5621,
1377,
1525,
11445,
12028,
950,
273,
7491,
1781,
18,
588,
17947,
12028,
1626,
7675,
588,
950,
5621,
368,
316,
312,
737,
281,
557,
1377,
1525,
6680,
273,
261,
2704,
2167,
1435,
2934,
588,
950,
5621,
368,
316,
9817,
1377,
2332,
18,
659,
18,
8222,
2932,
11345,
9638,
1546,
15,
31575,
1769,
1377,
2332,
18,
659,
18,
8222,
2932,
11345,
6680,
1546,
15,
2972,
950,
1769,
1377,
2332,
18,
659,
18,
8222,
2932,
11345,
11445,
12028,
950,
1546,
15,
26385,
12028,
950,
1769,
1377,
2332,
18,
659,
18,
8222,
2932,
11345,
7708,
1546,
15,
12,
2972,
950,
405,
11445,
12028,
950,
10019,
1377,
309,
16051,
31575,
15329,
3639,
309,
261,
2972,
950,
405,
11445,
12028,
950,
15329,
368,
813,
1807,
731,
16,
277,
18,
73,
18,
813,
3910,
397,
19518,
1613,
8675,
1850,
7491,
1781,
18,
542,
28882,
1290,
14571,
323,
12,
3767,
1769,
1850,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
95,
565,
368,
336,
326,
2389,
16,
1960,
3059,
326,
2389,
21364,
518,
353,
1008,
540,
23925,
15209,
3183,
2389,
273,
23925,
15209,
3183,
18,
588,
1442,
5621,
565,
4498,
1400,
273,
2389,
18,
9838,
5621,
565,
1323,
261,
2165,
18,
5332,
2134,
10756,
95,
1377,
23925,
15209,
30420,
310,
1488,
7491,
1781,
273,
261,
19336,
15209,
30420,
310,
1488,
13,
2165,
18,
4285,
5621,
1377,
613,
18,
4148,
2932,
11345,
8554,
3059,
7491,
1781,
316,
2389,
16,
7491,
1781,
6,
15,
20905,
1781,
1769,
1377,
1250,
9638,
273,
7491,
1781,
18,
588,
28882,
1290,
14571,
323,
5621,
1377,
1525,
11445,
12028,
950,
273,
7491,
1781,
18,
588,
17947,
12028,
1626,
7675,
588,
950,
2
] |
{ curStart = "start: "+xReal; /* limit control b/c the method can be called via the histogram Dialog widget */ boolean b = true; /* control to synchronize the display of real value using the Histogram widget the user can still size the inputWindow but for graphics reasons the cursor in the curvePanel cannot be repainted (cf. limit control below.). */ int limit; if (reverseIntensity) limit = (int) startPt.getX()-triangleW; else limit = (int) endPt.getX()-triangleW; if (x <= limit) { xStartMax = x; b = false; setKnobStart(x); if (reverseIntensity) endPt.setLocation(x, endPt.getY()); else startPt.setLocation(x, startPt.getY()); if (type == QuantumFactory.EXPONENTIAL) repaintCurve(); else setControlLocation(coefficient); } if (b) repaint(0, tS+bottomBorder, width, bottomBorderSupp); } | { curStart = "start: "+xReal; /* limit control b/c the method can be called via the histogram Dialog widget */ boolean b = true; /* control to synchronize the display of real value using the Histogram widget the user can still size the inputWindow but for graphics reasons the cursor in the curvePanel cannot be repainted (cf. limit control below.). */ int limit; if (reverseIntensity) limit = (int) startPt.getX()-triangleW; else limit = (int) endPt.getX()-triangleW; if (x <= limit) { xStartMax = x; b = false; setKnobStart(x); if (reverseIntensity) endPt.setLocation(x, endPt.getY()); else startPt.setLocation(x, startPt.getY()); if (type == QuantumFactory.EXPONENTIAL) repaintCurve(); else setControlLocation(coefficient); } if (b) repaint(0, tS+bottomBorder, width, bottomBorderSupp); } | void updateInputStart(int x, int xReal) { curStart = "start: "+xReal; /* limit control b/c the method can be called via the histogram Dialog widget */ boolean b = true; /* control to synchronize the display of real value using the Histogram widget the user can still size the inputWindow but for graphics reasons the cursor in the curvePanel cannot be repainted (cf. limit control below.). */ int limit; if (reverseIntensity) limit = (int) startPt.getX()-triangleW; else limit = (int) endPt.getX()-triangleW; if (x <= limit) { xStartMax = x; b = false; setKnobStart(x); if (reverseIntensity) endPt.setLocation(x, endPt.getY()); else startPt.setLocation(x, startPt.getY()); if (type == QuantumFactory.EXPONENTIAL) repaintCurve(); else setControlLocation(coefficient); } if (b) repaint(0, tS+bottomBorder, width, bottomBorderSupp); } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/GraphicsRepresentation.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1089,
1210,
1685,
12,
474,
619,
16,
509,
619,
6955,
13,
202,
95,
202,
202,
1397,
1685,
273,
315,
1937,
30,
13773,
92,
6955,
31,
202,
202,
20308,
1800,
3325,
324,
19,
71,
326,
707,
848,
506,
2566,
1082,
282,
3970,
326,
8892,
17242,
3604,
1082,
202,
5549,
202,
202,
6494,
324,
273,
638,
31,
202,
202,
20308,
3325,
358,
16978,
326,
2562,
434,
2863,
460,
1082,
1450,
326,
18218,
3604,
326,
729,
848,
4859,
963,
326,
810,
3829,
1082,
1496,
364,
17313,
14000,
326,
3347,
316,
326,
8882,
5537,
2780,
506,
1875,
24962,
329,
261,
8522,
18,
1800,
3325,
5712,
18,
2934,
202,
202,
5549,
202,
202,
474,
1800,
31,
202,
202,
430,
261,
9845,
27786,
13,
1800,
273,
261,
474,
13,
787,
16484,
18,
588,
60,
1435,
17,
16857,
4341,
59,
31,
202,
202,
12107,
1800,
273,
261,
474,
13,
679,
16484,
18,
588,
60,
1435,
17,
16857,
4341,
59,
31,
202,
202,
430,
261,
92,
1648,
1800,
13,
288,
1875,
202,
92,
1685,
2747,
273,
619,
31,
1082,
202,
70,
273,
629,
31,
1082,
202,
542,
47,
82,
947,
1685,
12,
92,
1769,
1082,
202,
430,
261,
9845,
27786,
13,
679,
16484,
18,
542,
2735,
12,
92,
16,
679,
16484,
18,
588,
61,
10663,
1082,
202,
12107,
787,
16484,
18,
542,
2735,
12,
92,
16,
787,
16484,
18,
588,
61,
10663,
1082,
202,
430,
261,
723,
422,
4783,
970,
379,
1733,
18,
16109,
15624,
6365,
13,
24962,
9423,
5621,
1082,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1089,
1210,
1685,
12,
474,
619,
16,
509,
619,
6955,
13,
202,
95,
202,
202,
1397,
1685,
273,
315,
1937,
30,
13773,
92,
6955,
31,
202,
202,
20308,
1800,
3325,
324,
19,
71,
326,
707,
848,
506,
2566,
1082,
282,
3970,
326,
8892,
17242,
3604,
1082,
202,
5549,
202,
202,
6494,
324,
273,
638,
31,
202,
202,
20308,
3325,
358,
16978,
326,
2562,
434,
2863,
460,
1082,
1450,
326,
18218,
3604,
326,
729,
848,
4859,
963,
326,
810,
3829,
1082,
1496,
364,
17313,
14000,
326,
3347,
316,
326,
8882,
5537,
2780,
506,
1875,
24962,
329,
261,
8522,
18,
1800,
3325,
5712,
18,
2934,
202,
202,
5549,
202,
202,
474,
1800,
31,
202,
202,
430,
261,
9845,
2
] |
if ( NONE.equals( currentDataSetName ) | if ( currentDataSetName == null | private int canChangeDataSet( String newName ) { String currentDataSetName = getDataSetName( ); if ( NONE.equals( currentDataSetName ) && !inputElement.columnBindingsIterator( ).hasNext( ) ) { return 0; } else if ( currentDataSetName.equals( newName ) ) { return 2; } MessageDialog prefDialog = new MessageDialog( UIUtil.getDefaultShell( ), Messages.getString( "dataBinding.title.changeDataSet" ),//$NON-NLS-1$ null, Messages.getString( "dataBinding.message.changeDataSet" ),//$NON-NLS-1$ MessageDialog.INFORMATION, new String[]{ IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL, }, 0 ); return prefDialog.open( ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4a4bb70b0839e47bd10454d7eff3a69c006e37d4/ColumnBindingDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
848,
3043,
13676,
12,
514,
13253,
262,
202,
95,
202,
202,
780,
30685,
11924,
273,
4303,
11924,
12,
11272,
202,
202,
430,
261,
11829,
18,
14963,
12,
30685,
11924,
262,
9506,
202,
10,
10,
401,
2630,
1046,
18,
2827,
10497,
3198,
12,
262,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
30685,
11924,
18,
14963,
12,
13253,
262,
262,
202,
202,
95,
1082,
202,
2463,
576,
31,
202,
202,
97,
202,
202,
1079,
6353,
11307,
6353,
273,
394,
2350,
6353,
12,
6484,
1304,
18,
588,
1868,
13220,
12,
262,
16,
9506,
202,
5058,
18,
588,
780,
12,
315,
892,
5250,
18,
2649,
18,
3427,
13676,
6,
262,
16,
759,
8,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2011,
16,
9506,
202,
5058,
18,
588,
780,
12,
315,
892,
5250,
18,
2150,
18,
3427,
13676,
6,
262,
16,
759,
8,
3993,
17,
5106,
17,
21,
8,
9506,
202,
1079,
6353,
18,
706,
23805,
16,
9506,
202,
2704,
514,
63,
7073,
25083,
202,
734,
3529,
2918,
18,
29081,
67,
13545,
16,
25083,
202,
734,
3529,
2918,
18,
3417,
67,
13545,
16,
25083,
202,
734,
3529,
2918,
18,
25268,
67,
13545,
16,
9506,
202,
5779,
9506,
202,
20,
11272,
202,
202,
2463,
11307,
6353,
18,
3190,
12,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
848,
3043,
13676,
12,
514,
13253,
262,
202,
95,
202,
202,
780,
30685,
11924,
273,
4303,
11924,
12,
11272,
202,
202,
430,
261,
11829,
18,
14963,
12,
30685,
11924,
262,
9506,
202,
10,
10,
401,
2630,
1046,
18,
2827,
10497,
3198,
12,
262,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
30685,
11924,
18,
14963,
12,
13253,
262,
262,
202,
202,
95,
1082,
202,
2463,
576,
31,
202,
202,
97,
202,
202,
1079,
6353,
11307,
6353,
273,
394,
2350,
6353,
12,
6484,
1304,
18,
588,
1868,
13220,
12,
262,
16,
9506,
202,
5058,
18,
588,
780,
12,
315,
892,
5250,
18,
2
] |
public boolean skipTo (int i) throws IOException { return scorer.skipTo(i); } | public boolean skipTo(int i) throws IOException { if (! scorer.skipTo(i)) { return false; } while (! bitset.get(scorer.doc())) { int nextFiltered = bitset.nextSetBit(scorer.doc() + 1); if (nextFiltered == -1) { return false; } else if (! scorer.skipTo(nextFiltered)) { return false; } } return true; } | public boolean skipTo (int i) throws IOException { return scorer.skipTo(i); } | 50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/d07f7eea12d6ab5068b07dd884d8202460beaef4/FilteredQuery.java/clean/src/java/org/apache/lucene/search/FilteredQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
1250,
2488,
774,
261,
474,
277,
13,
1216,
1860,
288,
327,
888,
8922,
18,
7457,
774,
12,
77,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
1250,
2488,
774,
261,
474,
277,
13,
1216,
1860,
288,
327,
888,
8922,
18,
7457,
774,
12,
77,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
wlTransformation=new Label(shell, SWT.RIGHT); wlTransformation.setText(Messages.getString("MappingDialog.Transformation.Label")); props.setLook(wlTransformation); fdlTransformation=new FormData(); fdlTransformation.left = new FormAttachment(0, 0); fdlTransformation.right= new FormAttachment(middle, -margin); fdlTransformation.top = new FormAttachment(wStepname, margin); wlTransformation.setLayoutData(fdlTransformation); weTransformation=new Button(shell, SWT.PUSH ); weTransformation.setText(Messages.getString("MappingDialog.Edit.Button")); props.setLook(weTransformation); fdeTransformation=new FormData(); fdeTransformation.right= new FormAttachment(100, 0); fdeTransformation.top = new FormAttachment(wStepname, margin); weTransformation.setLayoutData(fdeTransformation); wbTransformation=new Button(shell, SWT.PUSH ); wbTransformation.setText(Messages.getString("MappingDialog.Select.Button")); props.setLook(wbTransformation); fdbTransformation=new FormData(); fdbTransformation.right= new FormAttachment(weTransformation, 0); fdbTransformation.top = new FormAttachment(wStepname, margin); wbTransformation.setLayoutData(fdbTransformation); wTransformation=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wTransformation.setEditable(true); props.setLook(wTransformation); wTransformation.addModifyListener(lsMod); fdTransformation=new FormData(); fdTransformation.left = new FormAttachment(middle, 0); fdTransformation.right= new FormAttachment(wbTransformation, -margin); fdTransformation.top = new FormAttachment(wStepname, margin); wTransformation.setLayoutData(fdTransformation); wTransformation.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { transModified = true; } } ); wbTransformation.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selectTrans(); } } ); weTransformation.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { editTrans(); } } ); | gTransGroup = new Group(shell, SWT.SHADOW_ETCHED_IN); gTransGroup.setText(Messages.getString("MappingDialog.TransGroup.Label")); gTransGroup.setBackground(shell.getBackground()); FormLayout transGroupLayout = new FormLayout(); transGroupLayout.marginLeft=margin*2; transGroupLayout.marginTop=margin*2; transGroupLayout.marginRight=margin*2; transGroupLayout.marginBottom=margin*2; gTransGroup.setLayout(transGroupLayout); wFileRadio=new Button(gTransGroup, SWT.RADIO); props.setLook(wFileRadio); wFileRadio.setSelection(false); wFileRadio.setText(Messages.getString("MappingDialog.RadioFile.Label")); wFileRadio.setToolTipText(Messages.getString("MappingDialog.RadioFile.Tooltip",Const.CR)); fdFileRadio=new FormData(); fdFileRadio.left = new FormAttachment(0, 0); fdFileRadio.right = new FormAttachment(100, 0); fdFileRadio.top = new FormAttachment(0, 0); wFileRadio.setLayoutData(fdFileRadio); wbbFilename=new Button(gTransGroup, SWT.PUSH| SWT.CENTER); props.setLook(wbbFilename); wbbFilename.setText(Messages.getString("System.Button.Browse")); wbbFilename.setToolTipText(Messages.getString("System.Tooltip.BrowseForFileOrDirAndAdd")); fdbFilename=new FormData(); fdbFilename.right= new FormAttachment(100, 0); fdbFilename.top = new FormAttachment(wFileRadio, margin); wbbFilename.setLayoutData(fdbFilename); wbbFilename.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selectFileTrans(); }}); wbvFilename=new Button(gTransGroup, SWT.PUSH| SWT.CENTER); props.setLook(wbvFilename); wbvFilename.setText(Messages.getString("System.Button.Variable")); wbvFilename.setToolTipText(Messages.getString("System.Tooltip.VariableToFileOrDir")); fdbvFilename=new FormData(); fdbvFilename.right= new FormAttachment(wbbFilename, -margin); fdbvFilename.top = new FormAttachment(wFileRadio, margin); wbvFilename.setLayoutData(fdbvFilename); wFilename=new Text(gTransGroup, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wFilename); wFilename.addModifyListener(lsMod); fdFilename=new FormData(); fdFilename.left = new FormAttachment(0, 25); fdFilename.right= new FormAttachment(wbvFilename, -margin); fdFilename.top = new FormAttachment(wbvFilename, 0, SWT.CENTER); wFilename.setLayoutData(fdFilename); wbvFilename.addSelectionListener(VariableButtonListenerFactory.getSelectionAdapter(shell, wFilename)); wFilename.addModifyListener(getModifyListenerTooltipText(wFilename)); wRepRadio=new Button(gTransGroup, SWT.RADIO); props.setLook(wRepRadio); wRepRadio.setSelection(false); wRepRadio.setText(Messages.getString("MappingDialog.RadioRep.Label")); wRepRadio.setToolTipText(Messages.getString("MappingDialog.RadioRep.Tooltip",Const.CR)); fdRepRadio=new FormData(); fdRepRadio.left = new FormAttachment(0, 0); fdRepRadio.right = new FormAttachment(100, 0); fdRepRadio.top = new FormAttachment(wbvFilename, 2*margin); wRepRadio.setLayoutData(fdRepRadio); wbTrans=new Button(gTransGroup, SWT.PUSH| SWT.CENTER); props.setLook(wbTrans); wbTrans.setText(Messages.getString("MappingDialog.Select.Button")); wbTrans.setToolTipText(Messages.getString("System.Tooltip.BrowseForFileOrDirAndAdd")); fdbTrans=new FormData(); fdbTrans.right= new FormAttachment(100, 0); fdbTrans.top = new FormAttachment(wRepRadio, 2*margin); wbTrans.setLayoutData(fdbTrans); wbTrans.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selectRepositoryTrans(); }}); wvTrans=new Button(gTransGroup, SWT.PUSH| SWT.CENTER); props.setLook(wvTrans); wvTrans.setText(Messages.getString("System.Button.Variable")); wvTrans.setToolTipText(Messages.getString("System.Tooltip.VariableToFileOrDir")); fdvTrans=new FormData(); fdvTrans.right= new FormAttachment(wbTrans, -margin); fdvTrans.top = new FormAttachment(wRepRadio, 2*margin); wvTrans.setLayoutData(fdvTrans); wTransDir=new Text(gTransGroup, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTransDir); wTransDir.addModifyListener(lsMod); fdTransDir=new FormData(); fdTransDir.left = new FormAttachment(middle+(100-middle)/2, 0); fdTransDir.right= new FormAttachment(wvTrans, -margin); fdTransDir.top = new FormAttachment(wvTrans, 0, SWT.CENTER); wTransDir.setLayoutData(fdTransDir); wTransName=new Text(gTransGroup, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTransName); wTransName.addModifyListener(lsMod); fdTransName=new FormData(); fdTransName.left = new FormAttachment(0, 25); fdTransName.right= new FormAttachment(wTransDir, -margin); fdTransName.top = new FormAttachment(wvTrans, 0, SWT.CENTER); wTransName.setLayoutData(fdTransName); wvTrans.addSelectionListener(VariableButtonListenerFactory.getSelectionAdapter(shell, wTransName)); wTransName.addModifyListener(getModifyListenerTooltipText(wTransName)); wTransDir.addModifyListener(getModifyListenerTooltipText(wTransDir)); wEditTrans=new Button(gTransGroup, SWT.PUSH| SWT.CENTER); props.setLook(wEditTrans); wEditTrans.setText(Messages.getString("MappingDialog.Edit.Button")); wEditTrans.setToolTipText(Messages.getString("System.Tooltip.BrowseForFileOrDirAndAdd")); fdEditTrans=new FormData(); fdEditTrans.left = new FormAttachment(0, 0); fdEditTrans.right= new FormAttachment(100, 0); fdEditTrans.top = new FormAttachment(wTransName, 3*margin); wEditTrans.setLayoutData(fdEditTrans); wEditTrans.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { editTrans(); }}); fdTransGroup=new FormData(); fdTransGroup.left = new FormAttachment(0, 0); fdTransGroup.top = new FormAttachment(wStepname, 2*margin); fdTransGroup.right = new FormAttachment(100, 0); gTransGroup.setLayoutData(fdTransGroup); /* | public String open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MIN | SWT.MAX); props.setLook(shell); ModifyListener lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { input.setChanged(); } }; changed = input.hasChanged(); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText(Messages.getString("MappingDialog.Shell.Title")); //$NON-NLS-1$ int middle = props.getMiddlePct(); int margin = Const.MARGIN; // Stepname line wlStepname=new Label(shell, SWT.RIGHT); wlStepname.setText(Messages.getString("MappingDialog.Stepname.Label")); //$NON-NLS-1$ props.setLook(wlStepname); fdlStepname=new FormData(); fdlStepname.left = new FormAttachment(0, 0); fdlStepname.right= new FormAttachment(middle, -margin); fdlStepname.top = new FormAttachment(0, margin); wlStepname.setLayoutData(fdlStepname); wStepname=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wStepname.setText(stepname); props.setLook(wStepname); wStepname.addModifyListener(lsMod); fdStepname=new FormData(); fdStepname.left = new FormAttachment(middle, 0); fdStepname.top = new FormAttachment(0, margin); fdStepname.right= new FormAttachment(100, 0); wStepname.setLayoutData(fdStepname); // Transformation line wlTransformation=new Label(shell, SWT.RIGHT); wlTransformation.setText(Messages.getString("MappingDialog.Transformation.Label")); //$NON-NLS-1$ props.setLook(wlTransformation); fdlTransformation=new FormData(); fdlTransformation.left = new FormAttachment(0, 0); fdlTransformation.right= new FormAttachment(middle, -margin); fdlTransformation.top = new FormAttachment(wStepname, margin); wlTransformation.setLayoutData(fdlTransformation); weTransformation=new Button(shell, SWT.PUSH ); weTransformation.setText(Messages.getString("MappingDialog.Edit.Button")); //$NON-NLS-1$ props.setLook(weTransformation); fdeTransformation=new FormData(); fdeTransformation.right= new FormAttachment(100, 0); fdeTransformation.top = new FormAttachment(wStepname, margin); weTransformation.setLayoutData(fdeTransformation); wbTransformation=new Button(shell, SWT.PUSH ); wbTransformation.setText(Messages.getString("MappingDialog.Select.Button")); //$NON-NLS-1$ props.setLook(wbTransformation); fdbTransformation=new FormData(); fdbTransformation.right= new FormAttachment(weTransformation, 0); fdbTransformation.top = new FormAttachment(wStepname, margin); wbTransformation.setLayoutData(fdbTransformation); wTransformation=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wTransformation.setEditable(true); props.setLook(wTransformation); wTransformation.addModifyListener(lsMod); fdTransformation=new FormData(); fdTransformation.left = new FormAttachment(middle, 0); fdTransformation.right= new FormAttachment(wbTransformation, -margin); fdTransformation.top = new FormAttachment(wStepname, margin); wTransformation.setLayoutData(fdTransformation); wTransformation.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { transModified = true; } } ); wbTransformation.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selectTrans(); } } ); weTransformation.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { editTrans(); } } ); /* * INPUT MAPPING CONNECTORS */ ColumnInfo[] colinfo=new ColumnInfo[] { new ColumnInfo(Messages.getString("MappingDialog.ColumnInfo.InputField"), ColumnInfo.COLUMN_TYPE_TEXT, false ), //$NON-NLS-1$ new ColumnInfo(Messages.getString("MappingDialog.ColumnInfo.InputMapping"), ColumnInfo.COLUMN_TYPE_TEXT, false ) //$NON-NLS-1$ }; colinfo[ 1].setToolTip(Messages.getString("MappingDialog.InputMapping.ToolTip")); //$NON-NLS-1$ wInputFields = new TableView(shell, SWT.FULL_SELECTION | SWT.SINGLE | SWT.BORDER, colinfo, input.getInputField()!=null?input.getInputField().length:1, lsMod, props ); props.setLook(wInputFields); fdInputFields=new FormData(); fdInputFields.left = new FormAttachment(0, 0); fdInputFields.right = new FormAttachment(50, -margin); fdInputFields.top = new FormAttachment(wbTransformation, margin); fdInputFields.bottom = new FormAttachment(100, -75); wInputFields.setLayoutData(fdInputFields); wbInput = new Button(shell, SWT.PUSH); wbInput.setText(Messages.getString("MappingDialog.GetFromMapping.Button")); //$NON-NLS-1$ fdbInput=new FormData(); fdbInput.left = new FormAttachment(0, 0); fdbInput.right = new FormAttachment(50, -margin); fdbInput.top = new FormAttachment(wInputFields, margin); wbInput.setLayoutData(fdbInput); wbInput.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { getInput(); } } ); /* * OUTPUT MAPPING CONNECTORS */ ColumnInfo[] colinfoOutput = new ColumnInfo[] { new ColumnInfo(Messages.getString("MappingDialog.ColumnInfo.OutputMapping"), ColumnInfo.COLUMN_TYPE_TEXT, false), //$NON-NLS-1$ new ColumnInfo(Messages.getString("MappingDialog.ColumnInfo.OutputField"), ColumnInfo.COLUMN_TYPE_TEXT, false) //$NON-NLS-1$ }; wOutputFields = new TableView(shell, SWT.FULL_SELECTION | SWT.SINGLE | SWT.BORDER, colinfoOutput, input.getOutputField() != null ? input .getOutputField().length : 1, lsMod, props); props.setLook(wOutputFields); fdOutputFields = new FormData(); fdOutputFields.left = new FormAttachment(50, 0); fdOutputFields.right = new FormAttachment(100, 0); fdOutputFields.top = new FormAttachment(wbTransformation, margin); fdOutputFields.bottom = new FormAttachment(100, -75); wOutputFields.setLayoutData(fdOutputFields); wbOutput = new Button(shell, SWT.PUSH); wbOutput.setText(Messages.getString("MappingDialog.GetFromMapping.Button")); //$NON-NLS-1$ fdbOutput=new FormData(); fdbOutput.left = new FormAttachment(50, 0); fdbOutput.right = new FormAttachment(100, 0); fdbOutput.top = new FormAttachment(wOutputFields, margin); wbOutput.setLayoutData(fdbOutput); wbOutput.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { getOutput(); } } ); // Some buttons wOK=new Button(shell, SWT.PUSH); wOK.setText(Messages.getString("System.Button.OK")); //$NON-NLS-1$ wCancel=new Button(shell, SWT.PUSH); wCancel.setText(Messages.getString("System.Button.Cancel")); //$NON-NLS-1$ setButtonPositions(new Button[] { wOK, wCancel }, margin, wbInput); // Add listeners lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } }; lsOK = new Listener() { public void handleEvent(Event e) { ok(); } }; wCancel.addListener(SWT.Selection, lsCancel); wOK.addListener (SWT.Selection, lsOK ); lsDef=new SelectionAdapter() { public void widgetDefaultSelected(SelectionEvent e) { ok(); } }; wStepname.addSelectionListener( lsDef ); // Detect X or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } ); // Set the shell size, based upon previous time... setSize(); getData(); input.setChanged(changed); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return stepname; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/71a9bdb4b8dc0c8f042243703389f84ad31040ab/MappingDialog.java/clean/kettle/src/be/ibridge/kettle/trans/step/mapping/MappingDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1696,
1435,
202,
95,
202,
202,
13220,
982,
273,
5089,
5621,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
5621,
202,
202,
10304,
273,
394,
19433,
12,
2938,
16,
348,
8588,
18,
2565,
18683,
67,
6566,
49,
571,
348,
8588,
18,
862,
4574,
571,
348,
8588,
18,
6236,
571,
348,
8588,
18,
6694,
1769,
3196,
202,
9693,
18,
542,
9794,
12,
10304,
1769,
202,
202,
11047,
2223,
7180,
1739,
273,
394,
9518,
2223,
1435,
3196,
202,
95,
1082,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
1875,
202,
95,
9506,
202,
2630,
18,
542,
5033,
5621,
1082,
202,
97,
202,
202,
20451,
202,
202,
6703,
273,
810,
18,
5332,
5033,
5621,
202,
202,
1204,
3744,
646,
3744,
273,
394,
2748,
3744,
261,
1769,
202,
202,
687,
3744,
18,
10107,
2384,
225,
273,
9333,
18,
4983,
67,
19772,
7702,
31,
202,
202,
687,
3744,
18,
10107,
2686,
273,
9333,
18,
4983,
67,
19772,
7702,
31,
202,
202,
10304,
18,
542,
3744,
12,
687,
3744,
1769,
202,
202,
10304,
18,
542,
1528,
12,
5058,
18,
588,
780,
2932,
3233,
6353,
18,
13220,
18,
4247,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
474,
7689,
273,
3458,
18,
588,
21924,
52,
299,
5621,
202,
202,
474,
7333,
273,
9333,
18,
19772,
7702,
31,
202,
202,
759,
8693,
529,
980,
202,
202,
21504,
4160,
529,
33,
2704,
5287,
12,
10304,
16,
348,
8588,
18,
11847,
1769,
202,
202,
21504,
4160,
529,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1696,
1435,
202,
95,
202,
202,
13220,
982,
273,
5089,
5621,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
5621,
202,
202,
10304,
273,
394,
19433,
12,
2938,
16,
348,
8588,
18,
2565,
18683,
67,
6566,
49,
571,
348,
8588,
18,
862,
4574,
571,
348,
8588,
18,
6236,
571,
348,
8588,
18,
6694,
1769,
3196,
202,
9693,
18,
542,
9794,
12,
10304,
1769,
202,
202,
11047,
2223,
7180,
1739,
273,
394,
9518,
2223,
1435,
3196,
202,
95,
1082,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
1875,
202,
95,
9506,
202,
2630,
18,
542,
5033,
5621,
1082,
202,
97,
202,
202,
20451,
202,
202,
6703,
273,
810,
18,
5332,
5033,
5621,
202,
2
] |
public boolean setPropertyHook(String ns, String name, Object value, boolean inherited, boolean user, boolean isNew) { if (getNext() != null) { boolean subst = getNext().setPropertyHook(ns, name, value, inherited, user, isNew); // If next has handled the property if (subst) { return true; } } return false; } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/be81ab1e74cfe7fe5c920101a3d32921f9f39020/PropertyHelper.java/buggy/src/main/org/apache/tools/ant/PropertyHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6494,
542,
1396,
5394,
12,
780,
2387,
16,
780,
529,
16,
921,
1132,
16,
6494,
6018,
329,
16,
6494,
1355,
16,
6494,
291,
1908,
15329,
430,
12,
588,
2134,
1435,
5,
33,
2011,
15329,
1075,
29510,
373,
334,
33,
588,
2134,
7675,
542,
1396,
5394,
12,
2387,
16,
529,
16,
1132,
16,
6018,
329,
16,
1355,
16,
291,
1908,
1769,
759,
2047,
4285,
2816,
464,
1259,
5787,
4468,
430,
12,
1717,
334,
15329,
2463,
3767,
31,
9090,
2463,
5743,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6494,
542,
1396,
5394,
12,
780,
2387,
16,
780,
529,
16,
921,
1132,
16,
6494,
6018,
329,
16,
6494,
1355,
16,
6494,
291,
1908,
15329,
430,
12,
588,
2134,
1435,
5,
33,
2011,
15329,
1075,
29510,
373,
334,
33,
588,
2134,
7675,
542,
1396,
5394,
12,
2387,
16,
529,
16,
1132,
16,
6018,
329,
16,
1355,
16,
291,
1908,
1769,
759,
2047,
4285,
2816,
464,
1259,
5787,
4468,
430,
12,
1717,
334,
15329,
2463,
3767,
31,
9090,
2463,
5743,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | ||
{ warnings = null; } | { warnings = null; } | public void clearWarnings() throws SQLException { warnings = null; } | 45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSet.java/buggy/src/interfaces/jdbc/postgresql/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2424,
4312,
1435,
1216,
6483,
202,
95,
202,
202,
12103,
273,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2424,
4312,
1435,
1216,
6483,
202,
95,
202,
202,
12103,
273,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getRolapHierarchy().memberReader.getMemberChildren(this, list); | getRolapHierarchy().getMemberReader().getMemberChildren(this, list); | public Object getPropertyValue(String name) { Property property = Property.lookup(name); if (property != null) { Schema schema; Member parentMember; List list; switch (property.ordinal) { case Property.NAME_ORDINAL: // Do NOT call getName() here. This property is internal, // and must fall through to look in the property list. break; case Property.CAPTION_ORDINAL: return getCaption(); case Property.CONTRIBUTING_CHILDREN_ORDINAL: list = new ArrayList(); getRolapHierarchy().memberReader.getMemberChildren(this, list); return list; case Property.CATALOG_NAME_ORDINAL: // TODO: can't go from member to connection thence to // Connection.getCatalogName() break; case Property.SCHEMA_NAME_ORDINAL: schema = getHierarchy().getDimension().getSchema(); return schema.getName(); case Property.CUBE_NAME_ORDINAL: // TODO: can't go from member to cube cube yet break; case Property.DIMENSION_UNIQUE_NAME_ORDINAL: return getHierarchy().getDimension().getUniqueName(); case Property.HIERARCHY_UNIQUE_NAME_ORDINAL: return getHierarchy().getUniqueName(); case Property.LEVEL_UNIQUE_NAME_ORDINAL: return getLevel().getUniqueName(); case Property.LEVEL_NUMBER_ORDINAL: return new Integer(getLevel().getDepth()); case Property.MEMBER_UNIQUE_NAME_ORDINAL: return getUniqueName(); case Property.MEMBER_NAME_ORDINAL: return getName(); case Property.MEMBER_TYPE_ORDINAL: return new Integer(getMemberType()); case Property.MEMBER_GUID_ORDINAL: return null; case Property.MEMBER_CAPTION_ORDINAL: return getCaption(); case Property.MEMBER_ORDINAL_ORDINAL: return new Integer(getOrdinal()); case Property.CHILDREN_CARDINALITY_ORDINAL: list = new ArrayList(); getRolapHierarchy().memberReader.getMemberChildren(this, list); return new Integer(list.size()); case Property.PARENT_LEVEL_ORDINAL: parentMember = getParentMember(); return new Integer( parentMember == null ? -1 : parentMember.getLevel().getDepth()); case Property.PARENT_UNIQUE_NAME_ORDINAL: parentMember = getParentMember(); return parentMember == null ? null : parentMember.getUniqueName(); case Property.PARENT_COUNT_ORDINAL: parentMember = getParentMember(); return new Integer(parentMember == null ? 0 : 1); case Property.DESCRIPTION_ORDINAL: return getDescription(); case Property.VISIBLE_ORDINAL: break; default: break; // fall through } } synchronized (this) { return mapPropertyNameToValue.get(name); } } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/024a2b8ba2050da16f282e60ea7abf8437a5381b/RolapMember.java/buggy/src/main/mondrian/rolap/RolapMember.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
21694,
12,
780,
508,
13,
288,
3639,
4276,
1272,
273,
4276,
18,
8664,
12,
529,
1769,
3639,
309,
261,
4468,
480,
446,
13,
288,
5411,
4611,
1963,
31,
5411,
8596,
982,
4419,
31,
5411,
987,
666,
31,
5411,
1620,
261,
4468,
18,
517,
1490,
13,
288,
5411,
648,
4276,
18,
1985,
67,
916,
21329,
1013,
30,
7734,
368,
2256,
4269,
745,
1723,
1435,
2674,
18,
1220,
1272,
353,
2713,
16,
7734,
368,
471,
1297,
4159,
3059,
358,
2324,
316,
326,
1272,
666,
18,
7734,
898,
31,
5411,
648,
4276,
18,
3587,
3725,
67,
916,
21329,
1013,
30,
7734,
327,
1927,
13507,
5621,
5411,
648,
4276,
18,
6067,
2259,
38,
1693,
1360,
67,
27043,
24296,
67,
916,
21329,
1013,
30,
7734,
666,
273,
394,
2407,
5621,
7734,
4170,
355,
438,
12074,
7675,
588,
4419,
2514,
7675,
588,
4419,
4212,
12,
2211,
16,
666,
1769,
7734,
327,
666,
31,
5411,
648,
4276,
18,
14130,
18683,
67,
1985,
67,
916,
21329,
1013,
30,
7734,
368,
2660,
30,
848,
1404,
1960,
628,
3140,
358,
1459,
286,
802,
358,
7734,
368,
4050,
18,
588,
9769,
461,
1435,
7734,
898,
31,
5411,
648,
4276,
18,
14233,
67,
1985,
67,
916,
21329,
1013,
30,
7734,
1963,
273,
7628,
6000,
7675,
588,
8611,
7675,
588,
3078,
5621,
7734,
327,
1963,
18,
17994,
5621,
5411,
648,
4276,
18,
39,
3457,
41,
67,
1985,
67,
916,
21329,
1013,
30,
7734,
368,
2660,
30,
848,
1404,
1960,
628,
3140,
358,
18324,
18324,
4671,
7734,
898,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
21694,
12,
780,
508,
13,
288,
3639,
4276,
1272,
273,
4276,
18,
8664,
12,
529,
1769,
3639,
309,
261,
4468,
480,
446,
13,
288,
5411,
4611,
1963,
31,
5411,
8596,
982,
4419,
31,
5411,
987,
666,
31,
5411,
1620,
261,
4468,
18,
517,
1490,
13,
288,
5411,
648,
4276,
18,
1985,
67,
916,
21329,
1013,
30,
7734,
368,
2256,
4269,
745,
1723,
1435,
2674,
18,
1220,
1272,
353,
2713,
16,
7734,
368,
471,
1297,
4159,
3059,
358,
2324,
316,
326,
1272,
666,
18,
7734,
898,
31,
5411,
648,
4276,
18,
3587,
3725,
67,
916,
21329,
1013,
30,
7734,
327,
1927,
13507,
5621,
5411,
648,
4276,
18,
6067,
2259,
38,
1693,
1360,
67,
27043,
24296,
67,
916,
2
] |
return first.subtract(second); | return arg == NIL ? T : NIL; | public LispObject execute(LispObject first, LispObject second) throws ConditionThrowable { return first.subtract(second); } | 8279 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8279/7a80a234ed70e008775e13a37b7ac5f337cc7fb2/Primitives.java/buggy/j/src/org/armedbear/lisp/Primitives.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
511,
23831,
921,
1836,
12,
48,
23831,
921,
1122,
16,
511,
23831,
921,
2205,
13,
5411,
1216,
7949,
15155,
3639,
288,
5411,
327,
1501,
422,
423,
2627,
692,
399,
294,
423,
2627,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
511,
23831,
921,
1836,
12,
48,
23831,
921,
1122,
16,
511,
23831,
921,
2205,
13,
5411,
1216,
7949,
15155,
3639,
288,
5411,
327,
1501,
422,
423,
2627,
692,
399,
294,
423,
2627,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String ks = uri.getPath(); | HTTPRequest request = new HTTPRequest(uri); String path = request.getPath(); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { //String basepath = "/plugins/"; String ks = uri.getPath(); if(ks.startsWith("/")) ks = ks.substring(1); ks = ks.substring("plugins/".length()); Logger.minor(this, "Pproxy fetching "+ks); try { if (ks.equals("")) { StringBuffer out = new StringBuffer(); ctx.getPageMaker().makeHead(out, "Plugin List"); out.append("<table style=\"border: 1pt solid #c0c0c0;\">"); out.append(" <tr>\n"); out.append(" <th>Name</th>\n"); out.append(" <th>ID</th>\n"); out.append(" <th>Started</th>\n"); out.append(" <th></th>\n"); out.append(" </tr>\n"); Iterator it = pm.getPlugins().iterator(); while (it.hasNext()) { PluginInfoWrapper pi = (PluginInfoWrapper) it.next(); out.append(" <tr>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">" + pi.getPluginClassName() + "</td>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">" + pi.getThreadName() + "</td>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">" + (new Date(pi.getStarted())) + "</td>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">"); if (pi.isPproxyPlugin()) out.append(" <a href=\""+pi.getPluginClassName()+"/\">[VISIT]</a> "); out.append(" <a href=\"?remove="+pi.getThreadName()+"\">[UNLOAD]</a> "); out.append(" <a href=\"?reload="+pi.getThreadName()+"\">[RELOAD]</a> "); out.append("</td>\n"); out.append(" </tr>\n"); } if (pm.getPlugins().isEmpty()) { out.append("<tr>\n"); out.append("<td colspan=\"4\"\n"); out.append("<i>No plugins loaded</i>\n"); out.append("</td>\n"); out.append("</tr>\n"); } out.append("</table>"); //String ret = "<hr/>" + out.toString(); //ret = pm.dumpPlugins().replaceAll(",", "\n ").replaceAll("\"", " \" "); /*if (ret.length() < 6) ret += "<i>No plugins loaded</i>\n"; ret += "<hr/>";*/ // Obsolete //out.append("<form method=\"get\"><div>Remove plugin: (enter ID) <input type=\"text\" name=\"remove\" size=40/><input type=\"submit\" value=\"Remove\"/></div></form>\n"); out.append("<form method=\"get\" action=\".\"><div>Load plugin: <input type=\"text\" name=\"load\" size=\"40\"/><input type=\"submit\" value=\"Load\" /></div></form>\n"); ctx.getPageMaker().makeTail(out); writeReply(ctx, 200, "text/html", "OK", out.toString()); } else if (ks.startsWith("?remove=")) { pm.killPlugin(ks.substring("?remove=".length())); MultiValueTable headers = new MultiValueTable(); headers.put("Location", "."); ctx.sendReplyHeaders(302, "Found", headers, null, 0); //writeReply(ctx, 200, "text/html", "OK", mkForwardPage("Removing plugin", "Removing plugin...", ".", 5)); } else if (ks.startsWith("?load=")) { pm.startPlugin(ks.substring("?load=".length())); //writeReply(ctx, 200, "text/html", "OK", mkForwardPage("Loading plugin", "Loading plugin...", ".", 5)); MultiValueTable headers = new MultiValueTable(); headers.put("Location", "."); ctx.sendReplyHeaders(302, "Found", headers, null, 0); } else if (ks.startsWith("?reload=")) { String fn = null; Iterator it = pm.getPlugins().iterator(); while (it.hasNext()) { PluginInfoWrapper pi = (PluginInfoWrapper) it.next(); if (pi.getThreadName().equals(ks.substring("?reload=".length()))) { fn = pi.getFilename(); break; } } if (fn == null) { writeReply(ctx, 200, "text/html", "OK", mkForwardPage("Error", "Plugin not found...", ".", 5)); } else { pm.killPlugin(ks.substring("?reload=".length())); pm.startPlugin(fn); MultiValueTable headers = new MultiValueTable(); headers.put("Location", "."); ctx.sendReplyHeaders(302, "Found", headers, null, 0); } } else { int to = ks.indexOf("/"); String plugin, data; if (to == -1) { plugin = ks; data = ""; } else { plugin = ks.substring(0, to); data = ks.substring(to + 1); } //pm.handleHTTPGet(plugin, data); HTTPRequest request = new HTTPRequest(data, uri.getRawQuery()); //writeReply(ctx, 200, "text/html", "OK", mkPage("plugin", pm.handleHTTPGet(plugin, data))); writeReply(ctx, 200, "text/html", "OK", pm.handleHTTPGet(plugin, request)); } //FetchResult result = fetch(key); //writeReply(ctx, 200, result.getMimeType(), "OK", result.asBucket()); } catch (PluginHTTPException ex) { // TODO: make it into html writeReply(ctx, ex.getCode(), ex.getMimeType(), ex.getDesc(), ex.getReply()); } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + sw.toString() + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/b1b9fcf2f7a24a776052951252d7f304b96e9495/PproxyToadlet.java/buggy/src/freenet/pluginmanager/PproxyToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1082,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
759,
780,
23853,
273,
2206,
8057,
4898,
31,
202,
202,
780,
11654,
273,
2003,
18,
588,
743,
5621,
9506,
202,
430,
12,
7904,
18,
17514,
1190,
2932,
4898,
3719,
1082,
202,
7904,
273,
11654,
18,
28023,
12,
21,
1769,
202,
202,
7904,
273,
11654,
18,
28023,
2932,
8057,
4898,
18,
2469,
10663,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
52,
5656,
16191,
13773,
7904,
1769,
202,
202,
698,
288,
1082,
202,
430,
261,
7904,
18,
14963,
2932,
6,
3719,
288,
9506,
202,
780,
1892,
596,
273,
394,
6674,
5621,
9506,
202,
5900,
18,
588,
1964,
12373,
7675,
6540,
1414,
12,
659,
16,
315,
3773,
987,
8863,
9506,
202,
659,
18,
6923,
2932,
32,
2121,
2154,
5189,
8815,
30,
404,
337,
18035,
468,
71,
20,
71,
20,
71,
20,
31,
21121,
1769,
9506,
202,
659,
18,
6923,
2932,
225,
411,
313,
5333,
82,
8863,
9506,
202,
659,
18,
6923,
2932,
565,
411,
451,
34,
461,
1757,
451,
5333,
82,
8863,
9506,
202,
659,
18,
6923,
2932,
565,
411,
451,
34,
734,
1757,
451,
5333,
82,
8863,
9506,
202,
659,
18,
6923,
2932,
565,
411,
451,
34,
9217,
1757,
451,
5333,
82,
8863,
9506,
202,
659,
18,
6923,
2932,
565,
411,
451,
4695,
451,
5333,
82,
8863,
9506,
202,
659,
18,
6923,
2932,
225,
7765,
313,
5333,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1082,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
759,
780,
23853,
273,
2206,
8057,
4898,
31,
202,
202,
780,
11654,
273,
2003,
18,
588,
743,
5621,
9506,
202,
430,
12,
7904,
18,
17514,
1190,
2932,
4898,
3719,
1082,
202,
7904,
273,
11654,
18,
28023,
12,
21,
1769,
202,
202,
7904,
273,
11654,
18,
28023,
2932,
8057,
4898,
18,
2469,
10663,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
52,
5656,
16191,
13773,
7904,
1769,
202,
202,
698,
288,
1082,
202,
430,
261,
7904,
18,
14963,
2932,
6,
3719,
288,
9506,
202,
780,
1892,
596,
273,
394,
2
] |
for ( ; i < len; i++) { final char c = ca[i]; | for (; i < len; i++) { final char c = ca[i]; | private String toUtf8(String str) { final char[] ca = str.toCharArray(); final int len = ca.length; // Avoid object creation, if str is already fits UTF8. int i; for (i = 0; i < len; i++) if (ca[i] == 0 || ca[i] > '\u007f') break; if (i == len) return str; final StringBuffer sb = new StringBuffer(str); sb.setLength(i); for ( ; i < len; i++) { final char c = ca[i]; if (c > 0 && c <= '\u007f') sb.append(c); else if (c <= '\u07ff') // includes '\0' { sb.append((char) (0xc0 | (c >> 6))); sb.append((char) (0x80 | (c & 0x6f))); } else { sb.append((char) (0xe0 | (c >> 12))); sb.append((char) (0x80 | ((c >> 6) & 0x6f))); sb.append((char) (0x80 | (c & 0x6f))); } } return sb.toString(); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4912e36e2c7c8022f56aa40cb456494925b6065d/Proxy.java/buggy/core/src/classpath/java/java/lang/reflect/Proxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
358,
15230,
28,
12,
780,
609,
13,
565,
288,
5411,
727,
1149,
8526,
3474,
273,
609,
18,
869,
15936,
5621,
5411,
727,
509,
562,
273,
3474,
18,
2469,
31,
5411,
368,
17843,
733,
6710,
16,
309,
609,
353,
1818,
13351,
6380,
28,
18,
5411,
509,
277,
31,
5411,
364,
261,
77,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
3639,
309,
261,
5353,
63,
77,
65,
422,
374,
747,
3474,
63,
77,
65,
405,
2337,
89,
713,
27,
74,
6134,
1850,
898,
31,
1377,
309,
261,
77,
422,
562,
13,
3639,
327,
609,
31,
5411,
727,
6674,
2393,
273,
394,
6674,
12,
701,
1769,
5411,
2393,
18,
542,
1782,
12,
77,
1769,
1377,
364,
261,
274,
277,
411,
562,
31,
277,
27245,
3639,
288,
1850,
727,
1149,
276,
273,
3474,
63,
77,
15533,
7734,
309,
261,
71,
405,
374,
597,
276,
1648,
2337,
89,
713,
27,
74,
6134,
10792,
2393,
18,
6923,
12,
71,
1769,
7734,
469,
309,
261,
71,
1648,
2337,
89,
8642,
1403,
6134,
368,
6104,
2337,
20,
11,
7734,
288,
10792,
2393,
18,
6923,
12443,
3001,
13,
261,
20,
6511,
20,
571,
261,
71,
1671,
1666,
3719,
1769,
10792,
2393,
18,
6923,
12443,
3001,
13,
261,
20,
92,
3672,
571,
261,
71,
473,
374,
92,
26,
74,
3719,
1769,
5411,
289,
1850,
469,
5411,
288,
10792,
2393,
18,
6923,
12443,
3001,
13,
261,
20,
6554,
20,
571,
261,
71,
1671,
2593,
3719,
1769,
10792,
2393,
18,
6923,
12443,
3001,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
358,
15230,
28,
12,
780,
609,
13,
565,
288,
5411,
727,
1149,
8526,
3474,
273,
609,
18,
869,
15936,
5621,
5411,
727,
509,
562,
273,
3474,
18,
2469,
31,
5411,
368,
17843,
733,
6710,
16,
309,
609,
353,
1818,
13351,
6380,
28,
18,
5411,
509,
277,
31,
5411,
364,
261,
77,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
3639,
309,
261,
5353,
63,
77,
65,
422,
374,
747,
3474,
63,
77,
65,
405,
2337,
89,
713,
27,
74,
6134,
1850,
898,
31,
1377,
309,
261,
77,
422,
562,
13,
3639,
327,
609,
31,
5411,
727,
6674,
2393,
273,
394,
6674,
12,
701,
1769,
5411,
2393,
18,
542,
1782,
12,
77,
1769,
1377,
364,
261,
2
] |
if (index == forks.length) return frame.getValue(slot); | if (log.isDebugEnabled()) log.debug("Walking path " +name+ " index=" +index+ " frame=" +frame+ " length=" +forks.length); if (index == forks.length) { Object value = frame.getValue(slot); if (log.isDebugEnabled()) log.debug("End of path at " +frame+ " value of " +slot+ " = " +value); return value; } | private Object getNextValue(Frame frame, int index) { if (index == forks.length) return frame.getValue(slot); Fork entry = forks[index]; Set frames = frame.findRelations(entry.role, entry.relation); if (frames == null) return null; Iterator itr = frames.iterator(); while (itr.hasNext()) { Frame next = (Frame) itr.next(); Object result = getNextValue(next, ++index); if (result != null) return result; } return null; } | 7173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7173/28e4b20d750d7284f34d164c002e1a9556c0f6c8/Path.java/clean/qos/src/org/cougaar/core/qos/frame/Path.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
6927,
620,
12,
3219,
2623,
16,
509,
770,
13,
565,
288,
202,
430,
261,
1615,
422,
364,
7904,
18,
2469,
13,
327,
2623,
18,
24805,
12,
14194,
1769,
202,
22662,
1241,
273,
364,
7904,
63,
1615,
15533,
202,
694,
7793,
273,
2623,
18,
4720,
10666,
12,
4099,
18,
4615,
16,
1241,
18,
5488,
1769,
202,
430,
261,
10278,
422,
446,
13,
327,
446,
31,
202,
3198,
11176,
273,
7793,
18,
9838,
5621,
202,
17523,
261,
305,
86,
18,
5332,
2134,
10756,
288,
202,
565,
8058,
1024,
273,
261,
3219,
13,
11176,
18,
4285,
5621,
202,
565,
1033,
563,
273,
6927,
620,
12,
4285,
16,
965,
1615,
1769,
202,
565,
309,
261,
2088,
480,
446,
13,
327,
563,
31,
202,
97,
202,
2463,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
6927,
620,
12,
3219,
2623,
16,
509,
770,
13,
565,
288,
202,
430,
261,
1615,
422,
364,
7904,
18,
2469,
13,
327,
2623,
18,
24805,
12,
14194,
1769,
202,
22662,
1241,
273,
364,
7904,
63,
1615,
15533,
202,
694,
7793,
273,
2623,
18,
4720,
10666,
12,
4099,
18,
4615,
16,
1241,
18,
5488,
1769,
202,
430,
261,
10278,
422,
446,
13,
327,
446,
31,
202,
3198,
11176,
273,
7793,
18,
9838,
5621,
202,
17523,
261,
305,
86,
18,
5332,
2134,
10756,
288,
202,
565,
8058,
1024,
273,
261,
3219,
13,
11176,
18,
4285,
5621,
202,
565,
1033,
563,
273,
6927,
620,
12,
4285,
16,
965,
1615,
1769,
202,
565,
309,
261,
2088,
480,
446,
13,
327,
2
] |
public void update(int i, Object x) { xs[i] = x; } | public void update(int i, Object x) { value[i] = x; } | public void update(int i, Object x) { xs[i] = x; } | 5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/27b51e096e467f35a33e37e0191031477ea9ba8b/RunTime.java/clean/sources/scala/runtime/RunTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
12,
474,
277,
16,
1033,
619,
13,
288,
9280,
63,
77,
65,
273,
619,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
12,
474,
277,
16,
1033,
619,
13,
288,
9280,
63,
77,
65,
273,
619,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Object[][] getContents() { return m_errorMessages; | public Object[][] getContents() { return new Object[][] { {ErrorMsg.MULTIPLE_STYLESHEET_ERR, "Pi\u00f9 fogli di stile definiti nello stesso file. "}, /* * Note to translators: The substitution text is the name of a * template. The same name was used on two different templates in the * same stylesheet. */ {ErrorMsg.TEMPLATE_REDEF_ERR, "Maschera ''{0}'' gi\u00e0 definita in questo foglio di stile. "}, /* * Note to translators: The substitution text is the name of a * template. A reference to the template name was encountered, but the * template is undefined. */ {ErrorMsg.TEMPLATE_UNDEF_ERR, "Maschera ''{0}'' non definita in questo foglio di stile. "}, /* * Note to translators: The substitution text is the name of a variable * that was defined more than once. */ {ErrorMsg.VARIABLE_REDEF_ERR, "Variabile ''{0}'' definita pi\u00f9 volte nello stesso ambito. "}, /* * Note to translators: The substitution text is the name of a variable * or parameter. A reference to the variable or parameter was found, * but it was never defined. */ {ErrorMsg.VARIABLE_UNDEF_ERR, "Variabile o parametro ''{0}'' non definito. "}, /* * Note to translators: The word "class" here refers to a Java class. * Processing the stylesheet required a class to be loaded, but it could * not be found. The substitution text is the name of the class. */ {ErrorMsg.CLASS_NOT_FOUND_ERR, "Impossibile trovare la classe ''{0}''."}, /* * Note to translators: The word "method" here refers to a Java method. * Processing the stylesheet required a reference to the method named by * the substitution text, but it could not be found. "public" is the * Java keyword. */ {ErrorMsg.METHOD_NOT_FOUND_ERR, "Impossibile trovare il metodo esterno ''{0}'' (deve essere public)."}, /* * Note to translators: The word "method" here refers to a Java method. * Processing the stylesheet required a reference to the method named by * the substitution text, but no method with the required types of * arguments or return type could be found. */ {ErrorMsg.ARGUMENT_CONVERSION_ERR, "Impossibile convertire il tipo di argomento/ritorno nella chiamata nel metodo ''{0}''"}, /* * Note to translators: The file or URI named in the substitution text * is missing. */ {ErrorMsg.FILE_NOT_FOUND_ERR, "File o URI ''{0}'' non trovato. "}, /* * Note to translators: This message is displayed when the URI * mentioned in the substitution text is not well-formed syntactically. */ {ErrorMsg.INVALID_URI_ERR, "URI ''{0}'' non valido. "}, /* * Note to translators: The file or URI named in the substitution text * exists but could not be opened. */ {ErrorMsg.FILE_ACCESS_ERR, "Impossibile aprire il file o l''URI ''{0}''."}, /* * Note to translators: <xsl:stylesheet> and <xsl:transform> are * keywords that should not be translated. */ {ErrorMsg.MISSING_ROOT_ERR, "Era previsto l'elemento <xsl:stylesheet> o <xsl:transform>. "}, /* * Note to translators: The stylesheet contained a reference to a * namespace prefix that was undefined. The value of the substitution * text is the name of the prefix. */ {ErrorMsg.NAMESPACE_UNDEF_ERR, "Il prefisso dello spazio nome ''{0}'' non \u00e8 dichiarato. "}, /* * Note to translators: The Java function named in the stylesheet could * not be found. */ {ErrorMsg.FUNCTION_RESOLVE_ERR, "Impossibile risolvere la chiamata alla funzione ''{0}''."}, /* * Note to translators: The substitution text is the name of a * function. A literal string here means a constant string value. */ {ErrorMsg.NEED_LITERAL_ERR, "L''argomento di ''{0}'' deve essere una stringa letterale. "}, /* * Note to translators: This message indicates there was a syntactic * error in the form of an XPath expression. The substitution text is * the expression. */ {ErrorMsg.XPATH_PARSER_ERR, "Errore durante l''analisi dell''espressione XPath ''{0}''."}, /* * Note to translators: An element in the stylesheet requires a * particular attribute named by the substitution text, but that * attribute was not specified in the stylesheet. */ {ErrorMsg.REQUIRED_ATTR_ERR, "Attributo ''{0}'' richiesto mancante. "}, /* * Note to translators: This message indicates that a character not * permitted in an XPath expression was encountered. The substitution * text is the offending character. */ {ErrorMsg.ILLEGAL_CHAR_ERR, "Carattere non valido ''{0}'' nell''espressione XPath. "}, /* * Note to translators: A processing instruction is a mark-up item in * an XML document that request some behaviour of an XML processor. The * form of the name of was invalid in this case, and the substitution * text is the name. */ {ErrorMsg.ILLEGAL_PI_ERR, "Nome ''{0}'' non valido per l''istruzione di elaborazione. "}, /* * Note to translators: This message is reported if the stylesheet * being processed attempted to construct an XML document with an * attribute in a place other than on an element. The substitution text * specifies the name of the attribute. */ {ErrorMsg.STRAY_ATTRIBUTE_ERR, "Attributo ''{0}'' al di fuori dell''elemento. "}, /* * Note to translators: An attribute that wasn't recognized was * specified on an element in the stylesheet. The attribute is named * by the substitution * text. */ {ErrorMsg.ILLEGAL_ATTRIBUTE_ERR, "Attributo ''{0}'' non valido. "}, /* * Note to translators: "import" and "include" are keywords that should * not be translated. This messages indicates that the stylesheet * named in the substitution text imported or included itself either * directly or indirectly. */ {ErrorMsg.CIRCULAR_INCLUDE_ERR, "Import/include circolare. Foglio di lavoro ''{0}'' gi\u00e0 caricato. "}, /* * Note to translators: A result-tree fragment is a portion of a * resulting XML document represented as a tree. "<xsl:sort>" is a * keyword and should not be translated. */ {ErrorMsg.RESULT_TREE_SORT_ERR, "Impossibile ordinare i frammenti della struttura ad albero dei risultati (elementi <xsl:sort> ignorati). E' necessario ordinare i nodi quando si crea la struttura ad albero dei risultati. "}, /* * Note to translators: A name can be given to a particular style to be * used to format decimal values. The substitution text gives the name * of such a style for which more than one declaration was encountered. */ {ErrorMsg.SYMBOLS_REDEF_ERR, "Formattazione decimale ''{0}'' gi\u00e0 definita. "}, /* * Note to translators: The stylesheet version named in the * substitution text is not supported. */ {ErrorMsg.XSL_VERSION_ERR, "Versione XSL ''{0}'' non supportata da XSLTC."}, /* * Note to translators: The definitions of one or more variables or * parameters depend on one another. */ {ErrorMsg.CIRCULAR_VARIABLE_ERR, "Riferimento variabile/parametro circolare in ''{0}''."}, /* * Note to translators: The operator in an expresion with two operands was * not recognized. */ {ErrorMsg.ILLEGAL_BINARY_OP_ERR, "Operatore sconosciuto per l'espressione binaria. "}, /* * Note to translators: This message is produced if a reference to a * function has too many or too few arguments. */ {ErrorMsg.ILLEGAL_ARG_ERR, "Argomento(i) non valido(i) per la chiamata alla funzione. "}, /* * Note to translators: "document()" is the name of function and must * not be translated. A node-set is a set of the nodes in the tree * representation of an XML document. */ {ErrorMsg.DOCUMENT_ARG_ERR, "Il secondo argomento di una funzione document() deve essere una serie di nodi. "}, /* * Note to translators: "<xsl:when>" and "<xsl:choose>" are keywords * and should not be translated. This message describes a syntax error * in the stylesheet. */ {ErrorMsg.MISSING_WHEN_ERR, "E' necessario almeno un elemento <xsl:when> in <xsl:choose>."}, /* * Note to translators: "<xsl:otherwise>" and "<xsl:choose>" are * keywords and should not be translated. This message describes a * syntax error in the stylesheet. */ {ErrorMsg.MULTIPLE_OTHERWISE_ERR, "Solo un elemento <xsl:otherwise> consentito in <xsl:choose>."}, /* * Note to translators: "<xsl:otherwise>" and "<xsl:choose>" are * keywords and should not be translated. This message describes a * syntax error in the stylesheet. */ {ErrorMsg.STRAY_OTHERWISE_ERR, "<xsl:otherwise> pu\u00f2 essere utilizzato solo all'interno di <xsl:choose>."}, /* * Note to translators: "<xsl:when>" and "<xsl:choose>" are keywords * and should not be translated. This message describes a syntax error * in the stylesheet. */ {ErrorMsg.STRAY_WHEN_ERR, "<xsl:when> pu\u00f2 essere utilizzato solo all'interno di <xsl:choose>."}, /* * Note to translators: "<xsl:when>", "<xsl:otherwise>" and * "<xsl:choose>" are keywords and should not be translated. This * message describes a syntax error in the stylesheet. */ {ErrorMsg.WHEN_ELEMENT_ERR, "Solo gli elementi <xsl:when> e <xsl:otherwise> sono consentiti in <xsl:choose>."}, /* * Note to translators: "<xsl:attribute-set>" and "name" are keywords * that should not be translated. */ {ErrorMsg.UNNAMED_ATTRIBSET_ERR, "<xsl:attribute-set> non contiene l'attributo 'name'. "}, /* * Note to translators: An element in the stylesheet contained an * element of a type that it was not permitted to contain. */ {ErrorMsg.ILLEGAL_CHILD_ERR, "Elemento secondario non valido. "}, /* * Note to translators: The stylesheet tried to create an element with * a name that was not a valid XML name. The substitution text contains * the name. */ {ErrorMsg.ILLEGAL_ELEM_NAME_ERR, "Impossibile assegnare il nome ''{0}'' ad un elemento "}, /* * Note to translators: The stylesheet tried to create an attribute * with a name that was not a valid XML name. The substitution text * contains the name. */ {ErrorMsg.ILLEGAL_ATTR_NAME_ERR, "Impossibile assegnare il nome ''{0}'' ad un attributo "}, /* * Note to translators: The children of the outermost element of a * stylesheet are referred to as top-level elements. No text should * occur within that outermost element unless it is within a top-level * element. This message indicates that that constraint was violated. * "<xsl:stylesheet>" is a keyword that should not be translated. */ {ErrorMsg.ILLEGAL_TEXT_NODE_ERR, "Dati di testo al di fuori dell'elemento <xsl:stylesheet> di livello superiore. "}, /* * Note to translators: JAXP is an acronym for the Java API for XML * Processing. This message indicates that the XML parser provided to * XSLTC to process the XML input document had a configuration problem. */ {ErrorMsg.SAX_PARSER_CONFIG_ERR, "Parser JAXP non configurato correttamente "}, /* * Note to translators: The substitution text names the internal error * encountered. */ {ErrorMsg.INTERNAL_ERR, "Errore XSLTC interno non recuperabile: ''{0}''"}, /* * Note to translators: The stylesheet contained an element that was * not recognized as part of the XSL syntax. The substitution text * gives the element name. */ {ErrorMsg.UNSUPPORTED_XSL_ERR, "Elemento XSL ''{0}'' non supportato."}, /* * Note to translators: The stylesheet referred to an extension to the * XSL syntax and indicated that it was defined by XSLTC, but XSTLC does * not recognized the particular extension named. The substitution text * gives the extension name. */ {ErrorMsg.UNSUPPORTED_EXT_ERR, "Estensione XSLTC ''{0}'' non riconosciuta."}, /* * Note to translators: The XML document given to XSLTC as a stylesheet * was not, in fact, a stylesheet. XSLTC is able to detect that in this * case because the outermost element in the stylesheet has to be * declared with respect to the XSL namespace URI, but no declaration * for that namespace was seen. */ {ErrorMsg.MISSING_XSLT_URI_ERR, "Il documento di immissione non \u00e8 un foglio di stile (lo spazio nomi XSL non \u00e8 dichiarato nell'elemento root). "}, /* * Note to translators: XSLTC could not find the stylesheet document * with the name specified by the substitution text. */ {ErrorMsg.MISSING_XSLT_TARGET_ERR, "Impossibile trovare la destinazione del foglio di stile ''{0}''."}, /* * Note to translators: This message represents an internal error in * condition in XSLTC. The substitution text is the class name in XSLTC * that is missing some functionality. */ {ErrorMsg.NOT_IMPLEMENTED_ERR, "Non implementato: ''{0}''."}, /* * Note to translators: The XML document given to XSLTC as a stylesheet * was not, in fact, a stylesheet. */ {ErrorMsg.NOT_STYLESHEET_ERR, "Il documento di immissione non contiene un foglio di stile XSL. "}, /* * Note to translators: The element named in the substitution text was * encountered in the stylesheet but is not recognized. */ {ErrorMsg.ELEMENT_PARSE_ERR, "Impossibile analizzare l''elemento ''{0}''"}, /* * Note to translators: "use", "<key>", "node", "node-set", "string" * and "number" are keywords in this context and should not be * translated. This message indicates that the value of the "use" * attribute was not one of the permitted values. */ {ErrorMsg.KEY_USE_ATTR_ERR, "L'attributo use di <key> deve essere node, node-set, string o number."}, /* * Note to translators: An XML document can specify the version of the * XML specification to which it adheres. This message indicates that * the version specified for the output document was not valid. */ {ErrorMsg.OUTPUT_VERSION_ERR, "La versione del documento XML di emissione deve essere 1.0"}, /* * Note to translators: The operator in a comparison operation was * not recognized. */ {ErrorMsg.ILLEGAL_RELAT_OP_ERR, "Operatore sconosciuto per l'espressione relazionale "}, /* * Note to translators: An attribute set defines as a set of XML * attributes that can be added to an element in the output XML document * as a group. This message is reported if the name specified was not * used to declare an attribute set. The substitution text is the name * that is in error. */ {ErrorMsg.ATTRIBSET_UNDEF_ERR, "Tentativo di utilizzare una serie di attributi ''{0}'' non esistente."}, /* * Note to translators: The term "attribute value template" is a term * defined by XSLT which describes the value of an attribute that is * determined by an XPath expression. The message indicates that the * expression was syntactically incorrect; the substitution text * contains the expression that was in error. */ {ErrorMsg.ATTR_VAL_TEMPLATE_ERR, "Impossibile analizzare la maschera del valore dell''attributo ''{0}''."}, /* * Note to translators: ??? */ {ErrorMsg.UNKNOWN_SIG_TYPE_ERR, "Tipo di dati sconosciuto nella firma per la classe ''{0}''."}, /* * Note to translators: The substitution text refers to data types. * The message is displayed if a value in a particular context needs to * be converted to type {1}, but that's not possible for a value of * type {0}. */ {ErrorMsg.DATA_CONVERSION_ERR, "Impossibile convertire il tipo di dati ''{0}'' in ''{1}''."}, /* * Note to translators: "Templates" is a Java class name that should * not be translated. */ {ErrorMsg.NO_TRANSLET_CLASS_ERR, "Questa Templates non contiene una definizione di classe translet valida. "}, /* * Note to translators: "Templates" is a Java class name that should * not be translated. */ {ErrorMsg.NO_MAIN_TRANSLET_ERR, "Questa Templates non contiene una classe con il nome ''{0}''."}, /* * Note to translators: The substitution text is the name of a class. */ {ErrorMsg.TRANSLET_CLASS_ERR, "Impossibile caricare la classe translet ''{0}''."}, {ErrorMsg.TRANSLET_OBJECT_ERR, "Classe translet caricata, ma non \u00e8 possibile creare l'istanza translet. "}, /* * Note to translators: "ErrorListener" is a Java interface name that * should not be translated. The message indicates that the user tried * to set an ErrorListener object on object of the class named in the * substitution text with "null" Java value. */ {ErrorMsg.ERROR_LISTENER_NULL_ERR, "Tentativo di impostazione di ErrorListener per ''{0}'' su null"}, /* * Note to translators: StreamSource, SAXSource and DOMSource are Java * interface names that should not be translated. */ {ErrorMsg.JAXP_UNKNOWN_SOURCE_ERR, "Solo StreamSource, SAXSource e DOMSource sono supportati da XSLTC"}, /* * Note to translators: "Source" is a Java class name that should not * be translated. The substitution text is the name of Java method. */ {ErrorMsg.JAXP_NO_SOURCE_ERR, "L''oggetto Source passato a ''{0}'' non ha contenuto. "}, /* * Note to translators: The message indicates that XSLTC failed to * compile the stylesheet into a translet (class file). */ {ErrorMsg.JAXP_COMPILE_ERR, "Impossibile compilare il foglio di stile "}, /* * Note to translators: "TransformerFactory" is a class name. In this * context, an attribute is a property or setting of the * TransformerFactory object. The substitution text is the name of the * unrecognised attribute. The method used to retrieve the attribute is * "getAttribute", so it's not clear whether it would be best to * translate the term "attribute". */ {ErrorMsg.JAXP_INVALID_ATTR_ERR, "TransformerFactory non riconosce l''attributo ''{0}''."}, /* * Note to translators: "setResult()" and "startDocument()" are Java * method names that should not be translated. */ {ErrorMsg.JAXP_SET_RESULT_ERR, "setResult() deve essere richiamato prima di startDocument()."}, /* * Note to translators: "Transformer" is a Java interface name that * should not be translated. A Transformer object should contained a * reference to a translet object in order to be used for * transformations; this message is produced if that requirement is not * met. */ {ErrorMsg.JAXP_NO_TRANSLET_ERR, "Transformer non dispone di un oggetto translet incapsulato. "}, /* * Note to translators: The XML document that results from a * transformation needs to be sent to an output handler object; this * message is produced if that requirement is not met. */ {ErrorMsg.JAXP_NO_HANDLER_ERR, "Nessun programma di gestione dell'emissione definito per il risultato della trasformazione. "}, /* * Note to translators: "Result" is a Java interface name in this * context. The substitution text is a method name. */ {ErrorMsg.JAXP_NO_RESULT_ERR, "Oggetto Result passato a ''{0}'' non valido. "}, /* * Note to translators: "Transformer" is a Java interface name. The * user's program attempted to access an unrecognized property with the * name specified in the substitution text. The method used to retrieve * the property is "getOutputProperty", so it's not clear whether it * would be best to translate the term "property". */ {ErrorMsg.JAXP_UNKNOWN_PROP_ERR, "Tentativo di accesso ad una propriet\u00e0 Transformer non valida ''{0}''."}, /* * Note to translators: SAX2DOM is the name of a Java class that should * not be translated. This is an adapter in the sense that it takes a * DOM object and converts it to something that uses the SAX API. */ {ErrorMsg.SAX2DOM_ADAPTER_ERR, "Impossibile creare l''adattatore SAX2DOM: ''{0}''."}, /* * Note to translators: "XSLTCSource.build()" is a Java method name. * "systemId" is an XML term that is short for "system identification". */ {ErrorMsg.XSLTC_SOURCE_ERR, "XSLTCSource.build() richiamato senza che sia impostato un systemId (identificativo di sistema). "}, {ErrorMsg.COMPILE_STDIN_ERR, "L'opzione -i deve essere utilizzata con l'opzione -o. "}, /* * Note to translators: This message contains usage information for a * means of invoking XSLTC from the command-line. The message is * formatted for presentation in English. The strings <output>, * <directory>, etc. indicate user-specified argument values, and can * be translated - the argument <package> refers to a Java package, so * it should be handled in the same way the term is handled for JDK * documentation. */ {ErrorMsg.COMPILE_USAGE_STR, "SINTESI\n java org.apache.xalan.xsltc.cmdline.Compile [-o <output>]\n [-d <directory>] [-j <jarfile>] [-p <package>]\n [-n] [-x] [-s] [-u] [-v] [-h] { <stylesheet> | -i }\n\nOPZIONI\n -o <output> assegna il nome <output> al translet\n generato. Per impostazione predefinita, il nome translet\n viene preso dal nome <stylesheet>. Questa opzione\n viene ignorata se vengono compilati pi\u00f9 fogli di stile.\n -d <directory> specifica una directory di destinazione per il translet\n -j <jarfile> raggruppa le classi translet in un file jar del\n nome specificato come <jarfile>\n -p <package> specifica un prefisso del nome pacchetto per tutte le classi\n translet generate.\n -n abilita l'allineamento della maschera (funzionamento predefinito migliore\n in media).\n -x attiva ulteriori emissioni dei messaggi di debug\n -s disabilita la chiamata a System.exit\n -u interpreta gli argomenti <stylesheet> come URL\n -i impone al programma di compilazione di leggere il foglio di stile da stdin\n -v stampa la versione del programma di compilazione\n -h stampa queste istruzioni sull'utilizzo\n"}, /* * Note to translators: This message contains usage information for a * means of invoking XSLTC from the command-line. The message is * formatted for presentation in English. The strings <jarfile>, * <document>, etc. indicate user-specified argument values, and can * be translated - the argument <class> refers to a Java class, so it * should be handled in the same way the term is handled for JDK * documentation. */ {ErrorMsg.TRANSFORM_USAGE_STR, "SINTASSI\n java org.apache.xalan.xsltc.cmdline.Transform [-j <jarfile>]\n [-x] [-s] [-n <iterazioni>] {-u <document_url> | <document>}\n <classe> [<param1>=<valore1> ...]\n\n utilizza il translet <classe> per convertire un documento XML \n specificato come <documento>. Il translet <classe> si trova \n nella istruzione CLASSPATH dell'utente o nel <jarfile> eventualmente specificato.\nOPZIONI\n -j <jarfile> specifica un jarfile da cui caricare il translet\n -x attiva ulteriori emissioni dei messaggi di debug\n -s disabilita la chiamata a System.exit\n -n <iterazioni> esegue la trasformazione <iterazioni> volte e\n visualizza informazioni relative al profilo\n -u <document_url> specifica il documento di immissione XML come URL\n"}, /* * Note to translators: "<xsl:sort>", "<xsl:for-each>" and * "<xsl:apply-templates>" are keywords that should not be translated. * The message indicates that an xsl:sort element must be a child of * one of the other kinds of elements mentioned. */ {ErrorMsg.STRAY_SORT_ERR, "<xsl:sort> pu\u00f2 essere utilizzato solo all'interno di <xsl:for-each> o <xsl:apply-templates>."}, /* * Note to translators: The message indicates that the encoding * requested for the output document was on that requires support that * is not available from the Java Virtual Machine being used to execute * the program. */ {ErrorMsg.UNSUPPORTED_ENCODING, "Codifica di emissione ''{0}'' non supportata in questa JVM."}, /* * Note to translators: The message indicates that the XPath expression * named in the substitution text was not well formed syntactically. */ {ErrorMsg.SYNTAX_ERR, "Errore di sintassi in ''{0}''."}, /* * Note to translators: The substitution text is the name of a Java * class. The term "constructor" here is the Java term. The message is * displayed if XSLTC could not find a constructor for the specified * class. */ {ErrorMsg.CONSTRUCTOR_NOT_FOUND, "Impossibile trovare il costruttore esterno ''{0}''."}, /* * Note to translators: "static" is the Java keyword. The substitution * text is the name of a function. The first argument of that function * is not of the required type. */ {ErrorMsg.NO_JAVA_FUNCT_THIS_REF, "Il primo argomento della funzione Java non statica ''{0}'' non \u00e8 un riferimento ad un oggetto valido. "}, /* * Note to translators: An XPath expression was not of the type * required in a particular context. The substitution text is the * expression that was in error. */ {ErrorMsg.TYPE_CHECK_ERR, "Errore durante la verifica del tipo di espressione ''{0}''."}, /* * Note to translators: An XPath expression was not of the type * required in a particular context. However, the location of the * problematic expression is unknown. */ {ErrorMsg.TYPE_CHECK_UNK_LOC_ERR, "Errore durante la verifica del tipo di espressione in una posizione sconosciuta. "}, /* * Note to translators: The substitution text is the name of a command- * line option that was not recognized. */ {ErrorMsg.ILLEGAL_CMDLINE_OPTION_ERR, "Opzione della riga comandi ''{0}'' non valida. "}, /* * Note to translators: The substitution text is the name of a command- * line option. */ {ErrorMsg.CMDLINE_OPT_MISSING_ARG_ERR, "Manca un argomento obbligatorio per l''opzione della riga comandi ''{0}''. "}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text contains two error * messages. The spacing before the second substitution text indents * it the same amount as the first in English. */ {ErrorMsg.WARNING_PLUS_WRAPPED_MSG, "ATTENZIONE: ''{0}''\n :{1}"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text is an error message. */ {ErrorMsg.WARNING_MSG, "ATTENZIONE: ''{0}''"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text contains two error * messages. The spacing before the second substitution text indents * it the same amount as the first in English. */ {ErrorMsg.FATAL_ERR_PLUS_WRAPPED_MSG, "ERRORE GRAVE: ''{0}''\n :{1}"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text is an error message. */ {ErrorMsg.FATAL_ERR_MSG, "ERRORE GRAVE: ''{0}''"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text contains two error * messages. The spacing before the second substitution text indents * it the same amount as the first in English. */ {ErrorMsg.ERROR_PLUS_WRAPPED_MSG, "ERRORE: ''{0}''\n :{1}"}, /* * Note to translators: This message is used to indicate the severity * of another message. The substitution text is an error message. */ {ErrorMsg.ERROR_MSG, "ERRORE: ''{0}''"}, /* * Note to translators: The substitution text is the name of a class. */ {ErrorMsg.TRANSFORM_WITH_TRANSLET_STR, "Trasformazione utilizzando il translet ''{0}'' "}, /* * Note to translators: The first substitution is the name of a class, * while the second substitution is the name of a jar file. */ {ErrorMsg.TRANSFORM_WITH_JAR_STR, "Trasformazione utilizzando il translet ''{0}'' dal file jar ''{1}''"}, /* * Note to translators: "TransformerFactory" is the name of a Java * interface and must not be translated. The substitution text is * the name of the class that could not be instantiated. */ {ErrorMsg.COULD_NOT_CREATE_TRANS_FACT, "Impossibile creare un''istanza della classe TransformerFactory ''{0}''."}, /* * Note to translators: The following message is used as a header. * All the error messages are collected together and displayed beneath * this message. */ {ErrorMsg.COMPILER_ERROR_KEY, "Errori del programma di compilazione: "}, /* * Note to translators: The following message is used as a header. * All the warning messages are collected together and displayed * beneath this message. */ {ErrorMsg.COMPILER_WARNING_KEY, "Messaggi di avvertenza del programma di compilazione:"}, /* * Note to translators: The following message is used as a header. * All the error messages that are produced when the stylesheet is * applied to an input document are collected together and displayed * beneath this message. A 'translet' is the compiled form of a * stylesheet (see above). */ {ErrorMsg.RUNTIME_ERROR_KEY, "Errori del translet:"} }; | public Object[][] getContents() { return m_errorMessages; } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/2d07c253b814672a82d969836d58577bfa628b88/ErrorMessages_it.java/buggy/src/org/apache/xalan/xsltc/compiler/util/ErrorMessages_it.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
63,
6362,
65,
15015,
1435,
288,
3639,
327,
312,
67,
1636,
5058,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
63,
6362,
65,
15015,
1435,
288,
3639,
327,
312,
67,
1636,
5058,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (firstChild instanceof SmartTodoItemPointer) { return (SmartTodoItemPointer)firstChild; | if (firstChild instanceof TodoItemNode) { return ((TodoItemNode)firstChild); | SmartTodoItemPointer getFirstPointerForElement(Object element) { if (element instanceof SmartTodoItemPointer) { return (SmartTodoItemPointer)element; } else { Object[] children = myTreeStructure.getChildElements(element); if (children.length == 0) { return null; } Object firstChild = children[0]; if (firstChild instanceof SmartTodoItemPointer) { return (SmartTodoItemPointer)firstChild; } else { return getFirstPointerForElement(firstChild); } } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/c960e2c5d7f048a2889777d44d40aecf931eadc7/TodoTreeBuilder.java/clean/source/com/intellij/ide/todo/TodoTreeBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
19656,
56,
7370,
1180,
4926,
7521,
4926,
1290,
1046,
12,
921,
930,
13,
288,
565,
309,
261,
2956,
1276,
19656,
56,
7370,
1180,
4926,
13,
288,
1377,
327,
261,
23824,
56,
7370,
1180,
4926,
13,
2956,
31,
565,
289,
565,
469,
288,
1377,
1033,
8526,
2325,
273,
3399,
2471,
6999,
18,
588,
1763,
3471,
12,
2956,
1769,
1377,
309,
261,
5906,
18,
2469,
422,
374,
13,
288,
3639,
327,
446,
31,
1377,
289,
1377,
1033,
15070,
273,
2325,
63,
20,
15533,
1377,
309,
261,
3645,
1763,
1276,
19656,
56,
7370,
1180,
4926,
13,
288,
3639,
327,
261,
23824,
56,
7370,
1180,
4926,
13,
3645,
1763,
31,
1377,
289,
1377,
469,
288,
3639,
327,
7521,
4926,
1290,
1046,
12,
3645,
1763,
1769,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
19656,
56,
7370,
1180,
4926,
7521,
4926,
1290,
1046,
12,
921,
930,
13,
288,
565,
309,
261,
2956,
1276,
19656,
56,
7370,
1180,
4926,
13,
288,
1377,
327,
261,
23824,
56,
7370,
1180,
4926,
13,
2956,
31,
565,
289,
565,
469,
288,
1377,
1033,
8526,
2325,
273,
3399,
2471,
6999,
18,
588,
1763,
3471,
12,
2956,
1769,
1377,
309,
261,
5906,
18,
2469,
422,
374,
13,
288,
3639,
327,
446,
31,
1377,
289,
1377,
1033,
15070,
273,
2325,
63,
20,
15533,
1377,
309,
261,
3645,
1763,
1276,
19656,
56,
7370,
1180,
4926,
13,
288,
3639,
327,
261,
23824,
56,
7370,
1180,
4926,
13,
3645,
1763,
31,
1377,
289,
1377,
469,
288,
3639,
327,
7521,
4926,
1290,
1046,
12,
2
] |
this.P2Ptimeout = Long.parseLong(System.getProperty( P2PConstants.PROPERTY_NODES_ACQUISITION_T0)); | ((VirtualNodeImpl) vn).addP2PNodesLookup(p2pNodesLookup); | public void run() { ProActiveRuntime[] part = null; try { part = service.startService(); nodeCount = nodeCount + ((part != null) ? part.length : 0); if (part != null) { notifyVirtualNode(part); } if (service.getServiceName().equals(P2PConstants.P2P_NODE_NAME)) { // Start asking nodes P2PService p2pService = ((P2PDescriptorService) service).getP2PService(); P2PNodesLookup p2pNodesLookup = p2pService.getNodes(((P2PDescriptorService) service).getNodeNumber(), this.vn.getName(), this.vn.getJobID()); this.P2Ptimeout = Long.parseLong(System.getProperty( P2PConstants.PROPERTY_NODES_ACQUISITION_T0)); this.nodeRequested = ((P2PDescriptorService) service).getNodeNumber(); // if the timeout of the service is longer than the vn's one // then adjust the vn's timeout. long vnTimeout = vn.getTimeout(); if (vnTimeout < P2Ptimeout) { ((VirtualNodeImpl) vn).setTimeout(P2Ptimeout, false); } while (!timeoutExpired() && askForNodes()) { Vector future = p2pNodesLookup.getAndRemoveNodes(); Vector nodes = (Vector) ProActive.getFutureValue(future); for (int i = 0; i < nodes.size(); i++) { Node node = (Node) nodes.get(i); nodeCount++; ((VirtualNodeImpl) vn).nodeCreated(new NodeCreationEvent( vn, NodeCreationEvent.NODE_CREATED, node, nodeCount)); } if (askForNodes() && (nodeCount != 0)) { Thread.sleep(LOOK_UP_FREQ); } else if (askForNodes()) { Thread.sleep(100); } } } } catch (ProActiveException e) { loggerDeployment.error( "An exception occured while starting the service " + service.getServiceName() + " for the VirtualNode " + vn.getName() + " \n" + e.getMessage()); } catch (InterruptedException e) { e.printStackTrace(); } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/1279458d52679339839158611daec34b4baf800a/ServiceThread.java/clean/src/org/objectweb/proactive/core/descriptor/services/ServiceThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
1186,
3896,
5576,
8526,
1087,
273,
446,
31,
3639,
775,
288,
5411,
1087,
273,
1156,
18,
1937,
1179,
5621,
5411,
756,
1380,
273,
756,
1380,
397,
14015,
2680,
480,
446,
13,
692,
1087,
18,
2469,
294,
374,
1769,
5411,
309,
261,
2680,
480,
446,
13,
288,
7734,
5066,
6466,
907,
12,
2680,
1769,
5411,
289,
5411,
309,
261,
3278,
18,
588,
16789,
7675,
14963,
12,
52,
22,
52,
2918,
18,
52,
22,
52,
67,
8744,
67,
1985,
3719,
288,
7734,
368,
3603,
29288,
2199,
7734,
453,
22,
52,
1179,
293,
22,
84,
1179,
273,
14015,
52,
22,
52,
3187,
1179,
13,
1156,
2934,
588,
52,
22,
52,
1179,
5621,
7734,
453,
22,
52,
3205,
6609,
293,
22,
84,
3205,
6609,
273,
293,
22,
84,
1179,
18,
588,
3205,
12443,
12,
52,
22,
52,
3187,
1179,
13,
1156,
2934,
588,
907,
1854,
9334,
13491,
333,
18,
25031,
18,
17994,
9334,
333,
18,
25031,
18,
588,
2278,
734,
10663,
7734,
333,
18,
52,
22,
52,
4538,
273,
3407,
18,
2670,
3708,
12,
3163,
18,
588,
1396,
12,
18701,
453,
22,
52,
2918,
18,
9900,
67,
8744,
55,
67,
2226,
3500,
5127,
7022,
67,
56,
20,
10019,
7734,
333,
18,
2159,
11244,
273,
14015,
52,
22,
52,
3187,
1179,
13,
1156,
2934,
588,
907,
1854,
5621,
7734,
368,
309,
326,
2021,
434,
326,
1156,
353,
7144,
2353,
326,
21732,
1807,
1245,
7734,
368,
1508,
5765,
326,
21732,
1807,
2021,
18,
7734,
1525,
21732,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
1186,
3896,
5576,
8526,
1087,
273,
446,
31,
3639,
775,
288,
5411,
1087,
273,
1156,
18,
1937,
1179,
5621,
5411,
756,
1380,
273,
756,
1380,
397,
14015,
2680,
480,
446,
13,
692,
1087,
18,
2469,
294,
374,
1769,
5411,
309,
261,
2680,
480,
446,
13,
288,
7734,
5066,
6466,
907,
12,
2680,
1769,
5411,
289,
5411,
309,
261,
3278,
18,
588,
16789,
7675,
14963,
12,
52,
22,
52,
2918,
18,
52,
22,
52,
67,
8744,
67,
1985,
3719,
288,
7734,
368,
3603,
29288,
2199,
7734,
453,
22,
52,
1179,
293,
22,
84,
1179,
273,
14015,
52,
22,
52,
3187,
1179,
13,
1156,
2934,
588,
52,
22,
52,
1179,
5621,
7734,
453,
22,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.