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 |
|---|---|---|---|---|---|---|
void lookup( MessageAddress clientAddr, long clientTime, Map m); | void lookup(MessageAddress clientAddr, long clientTime, Map m); | void lookup( MessageAddress clientAddr, long clientTime, Map m); | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/5354808ad0f03d28fe7c9ad0a594809aeb06c26d/LookupServerService.java/clean/core/src/org/cougaar/core/wp/server/LookupServerService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3689,
12,
3639,
2350,
1887,
1004,
3178,
16,
3639,
1525,
1004,
950,
16,
3639,
1635,
312,
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
] | [
1,
1,
1,
1,
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,
377,
918,
3689,
12,
3639,
2350,
1887,
1004,
3178,
16,
3639,
1525,
1004,
950,
16,
3639,
1635,
312,
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
] |
public void testOther() { assertEquals( "optional init match in definition", findMatchesCount(s73,s74), 4 ); assertEquals( "null match", findMatchesCount(s77,s78), 0 ); assertEquals( "body of method by block search", findMatchesCount(s79,s80), 2 ); assertEquals( "first matches, next not", findMatchesCount(s95,s96), 2 ); final String s97 = "class A { int c; void b() { C d; } } class C { C() { A a; a.b(); a.c=1; } }"; final String s98 = "'_.'_:[ref('T)] ()"; final String s98_2 = "'_.'_:[ref('T)]"; final String s98_3 = "'_:[ref('T)].'_ ();"; final String s98_4 = "'_:[ref('T)] '_;"; assertEquals( "method predicate match", findMatchesCount(s97,s98), 1 ); assertEquals( "field predicate match", findMatchesCount(s97,s98_2), 1 ); assertEquals( "dcl predicate match", findMatchesCount(s97,s98_3), 1 ); final String s99 = " char s = '\\u1111'; char s1 = '\\n'; "; final String s100 = " char 'var = '\\u1111'; "; final String s100_2 = " char 'var = '\\n'; "; assertEquals( "char constants in pattern", findMatchesCount(s99,s100), 1 ); assertEquals( "char constants in pattern 2", findMatchesCount(s99,s100_2), 1 ); assertEquals( "class predicate match (from definition)", findMatchesCount(s97,s98_4), 3 ); final String s125 = "a=1;"; final String s126 = "'t:[regex(a)]"; try { findMatchesCount(s125,s126); assertFalse("spaces around reg exp check",false); } catch(MalformedPatternException ex) {} options.setDistinct(true); final String s101 = "class A { void b() { String d; String e; String[] f; f.length=1; f.length=1; } }"; final String s102 = "'_:[ref('T)] '_;"; assertEquals( "distinct match", findMatchesCount(s101,s102), 1 ); options.setDistinct(false); final String s103 = " a=1; "; final String s104 = "'T:{ ;"; try { findMatchesCount(s103,s104); assertFalse("incorrect reg exp",false); } catch(MalformedPatternException ex) { } final String s106 = "$_ReturnType$ $MethodName$($_ParameterType$ $_Parameter$);"; final String s105 = " aaa; "; try { findMatchesCount(s105,s106); assertFalse("incorrect reg exp 2",false); } catch(UnsupportedPatternException ex) { } String s107 = "class A {\n" + " /* */\n" + " void a() {\n" + " }" + " /* */\n" + " int b = 1;\n" + " /*" + " *" + " */\n" + " class C {}" + "}"; String s108 = " /*" + " *" + " */"; assertEquals("finding comments without typed var", 1, findMatchesCount(s107,s108)); // a) custom modifiers // b) hierarchy navigation support // c) or search support // d) contains support // e) xml search (down-up, nested query), navigation from xml representation <-> java code // f) impl data conversion (jdk 1.5 style) <-> other from (replace support) // false, null, true symbols of no ineterest! // @todo move all special code (declaration statement processing, absence of match) into handlers // and put them into compiler // Directions: // @todo proper node filtering // @todo different navigation on sub/supertyping relation (fixed depth), methods implementing interface, // g. contains, like predicates // i. performance // more context for top level classes, difference with interface, etc // global issues: // @todo matches out of context // @todo proper regexp support // @todo define strict equality of the matches // @todo proper results based on typed vars! // @todo search for field selection retrieves packages also } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/b54adb8422900a14e3e599de05227095b018ad4f/StructuralSearchTest.java/buggy/plugins/structuralsearch/testSource/com/intellij/structuralsearch/StructuralSearchTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
8290,
1435,
288,
565,
1815,
8867,
12,
315,
10444,
1208,
845,
316,
2379,
3113,
1104,
6869,
1380,
12,
87,
9036,
16,
87,
5608,
3631,
1059,
565,
11272,
565,
1815,
8867,
12,
315,
2011,
845,
3113,
1104,
6869,
1380,
12,
87,
4700,
16,
87,
8285,
3631,
374,
565,
11272,
565,
1815,
8867,
12,
315,
3432,
434,
707,
635,
1203,
1623,
3113,
1104,
6869,
1380,
12,
87,
7235,
16,
87,
3672,
3631,
576,
565,
11272,
565,
1815,
8867,
12,
315,
3645,
1885,
16,
1024,
486,
3113,
1104,
6869,
1380,
12,
87,
8778,
16,
87,
10525,
3631,
576,
565,
11272,
565,
727,
514,
272,
10580,
273,
315,
1106,
432,
288,
509,
276,
31,
918,
324,
1435,
288,
385,
302,
31,
289,
289,
667,
385,
288,
385,
1435,
288,
432,
279,
31,
279,
18,
70,
5621,
279,
18,
71,
33,
21,
31,
289,
289,
14432,
565,
727,
514,
272,
10689,
273,
2491,
67,
1093,
67,
30,
63,
1734,
2668,
56,
25887,
1832,
14432,
565,
727,
514,
272,
10689,
67,
22,
273,
2491,
67,
1093,
67,
30,
63,
1734,
2668,
56,
13,
4279,
31,
565,
727,
514,
272,
10689,
67,
23,
273,
2491,
67,
30,
63,
1734,
2668,
56,
25887,
1093,
67,
261,
12171,
31,
565,
727,
514,
272,
10689,
67,
24,
273,
2491,
67,
30,
63,
1734,
2668,
56,
25887,
2070,
4868,
31,
565,
1815,
8867,
12,
315,
2039,
5641,
845,
3113,
1104,
6869,
1380,
12,
87,
10580,
16,
87,
10689,
3631,
404,
565,
11272,
565,
1815,
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,
8290,
1435,
288,
565,
1815,
8867,
12,
315,
10444,
1208,
845,
316,
2379,
3113,
1104,
6869,
1380,
12,
87,
9036,
16,
87,
5608,
3631,
1059,
565,
11272,
565,
1815,
8867,
12,
315,
2011,
845,
3113,
1104,
6869,
1380,
12,
87,
4700,
16,
87,
8285,
3631,
374,
565,
11272,
565,
1815,
8867,
12,
315,
3432,
434,
707,
635,
1203,
1623,
3113,
1104,
6869,
1380,
12,
87,
7235,
16,
87,
3672,
3631,
576,
565,
11272,
565,
1815,
8867,
12,
315,
3645,
1885,
16,
1024,
486,
3113,
1104,
6869,
1380,
12,
87,
8778,
16,
87,
10525,
3631,
576,
565,
11272,
565,
727,
514,
272,
10580,
273,
315,
1106,
432,
288,
509,
276,
31,
918,
324,
1435,
288,
385,
2
] | ||
public List<Item> getItemList() { | public List<Item> getItemList () { | public List<Item> getItemList() { if (itemList == null) itemList = new ArrayList<Item>(); return itemList; } | 9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/cd8ff9d62a253810263b2585b6b8133ba1c87c73/ShipmentNotice.java/buggy/jaxws-ri/samples/supplychain/src/supplychain/server/ShipmentNotice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
1180,
34,
8143,
682,
1832,
288,
3639,
309,
261,
1726,
682,
422,
446,
13,
5411,
761,
682,
273,
394,
2407,
32,
1180,
34,
5621,
10792,
327,
761,
682,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
987,
32,
1180,
34,
8143,
682,
1832,
288,
3639,
309,
261,
1726,
682,
422,
446,
13,
5411,
761,
682,
273,
394,
2407,
32,
1180,
34,
5621,
10792,
327,
761,
682,
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
] |
test.assertEquals("2237.0", cell.getFormattedValue()); | test.assertEquals("2,237", cell.getFormattedValue()); | protected void defineFunctions() { // first char: p=Property, m=Method, i=Infix, P=Prefix // 2nd: // ARRAY FUNCTIONS if (false) define(new FunDefBase("SetToArray", "SetToArray(<Set>[, <Set>]...[, <Numeric Expression>])", "Converts one or more sets to an array for use in a user-if (false) defined function.", "fa*")); // // DIMENSION FUNCTIONS define(new FunDefBase("Dimension", "<Hierarchy>.Dimension", "Returns the dimension that contains a specified hierarchy.", "pdh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getDimension(); } }); //??Had to add this to get <Hierarchy>.Dimension to work? define(new FunDefBase("Dimension", "<Dimension>.Dimension", "Returns the dimension that contains a specified hierarchy.", "pdd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension; } public void testDimensionHierarchy(FoodMartTestCase test) { String s = test.executeExpr("[Time].Dimension.Name"); test.assertEquals("Time", s); } }); define(new FunDefBase("Dimension", "<Level>.Dimension", "Returns the dimension that contains a specified level.", "pdl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getDimension(); } public void testLevelDimension(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[Year].Dimension"); test.assertEquals("[Time]", s); } }); define(new FunDefBase("Dimension", "<Member>.Dimension", "Returns the dimension that contains a specified member.", "pdm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getDimension(); } public void testMemberDimension(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].[Q2].Dimension"); test.assertEquals("[Time]", s); } }); define(new FunDefBase("Dimensions", "Dimensions(<Numeric Expression>)", "Returns the dimension whose zero-based position within the cube is specified by a numeric expression.", "fdn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Cube cube = evaluator.getCube(); Dimension[] dimensions = cube.getDimensions(); int n = getIntArg(evaluator, args, 0); if ((n > dimensions.length) || (n < 1)) { throw newEvalException( this, "Index '" + n + "' out of bounds"); } return dimensions[n - 1]; } public void testDimensionsNumeric(FoodMartTestCase test) { String s = test.executeExpr( "Dimensions(2).Name"); test.assertEquals("Store", s); } }); define(new FunDefBase("Dimensions", "Dimensions(<String Expression>)", "Returns the dimension whose name is specified by a string.", "fdS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String defValue = "Default Value"; String s = getStringArg(evaluator, args, 0, defValue); if (s.indexOf("[") == -1) { s = Util.quoteMdxIdentifier(s); } Cube cube = evaluator.getCube(); boolean fail = false; OlapElement o = Util.lookupCompound(cube, s, cube, fail); if (o == null) { throw newEvalException( this, "Dimensions '" + s + "' not found"); } else if (o instanceof Dimension) { return (Dimension) o; } else { throw newEvalException( this, "Dimensions(" + s + ") found " + o); } } public void testDimensionsString(FoodMartTestCase test) { String s = test.executeExpr( "Dimensions(\"Store\").UniqueName"); test.assertEquals("[Store]", s); } }); // // HIERARCHY FUNCTIONS define(new FunDefBase("Hierarchy", "<Level>.Hierarchy", "Returns a level's hierarchy.", "phl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getHierarchy(); } }); define(new FunDefBase("Hierarchy", "<Member>.Hierarchy", "Returns a member's hierarchy.", "phm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getHierarchy(); } public void testTime(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].[Q1].[1].Hierarchy"); test.assertEquals("[Time]", s); } public void testBasic9(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].[All Genders].[F].Hierarchy"); test.assertEquals("[Gender]", s); } public void testFirstInLevel9(FoodMartTestCase test) { String s = test.executeExpr( "[Education Level].[All Education Levels].[Bachelors Degree].Hierarchy"); test.assertEquals("[Education Level]", s); } public void testHierarchyAll(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].[All Genders].Hierarchy"); test.assertEquals("[Gender]", s); } public void testHierarchyNull(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].[All Genders].Parent.Hierarchy"); test.assertEquals("[Gender]", s); // MSOLAP gives "#ERR" } }); // // LEVEL FUNCTIONS define(new FunDefBase("Level", "<Member>.Level", "Returns a member's level.", "plm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getLevel(); } public void testMemberLevel(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].[Q1].[1].Level.UniqueName"); test.assertEquals("[Time].[Month]", s); } }); define(new FunDefBase("Levels", "<Hierarchy>.Levels(<Numeric Expression>)", "Returns the level whose position in a hierarchy is specified by a numeric expression.", "mlhn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); Level[] levels = hierarchy.getLevels(); int n = getIntArg(evaluator, args, 1); if ((n > levels.length) || (n < 1)) { throw newEvalException( this, "Index '" + n + "' out of bounds"); } return levels[n - 1]; } public void testLevelsNumeric(FoodMartTestCase test) { String s = test.executeExpr("[Time].Levels(2).Name"); test.assertEquals("Quarter", s); } public void testLevelsTooSmall(FoodMartTestCase test) { test.assertExprThrows( "[Time].Levels(0).Name", "Index '0' out of bounds"); } public void testLevelsTooLarge(FoodMartTestCase test) { test.assertExprThrows( "[Time].Levels(8).Name", "Index '8' out of bounds"); } }); define(new FunDefBase("Levels", "Levels(<String Expression>)", "Returns the level whose name is specified by a string expression.", "flS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String s = getStringArg(evaluator, args, 0, null); Cube cube = evaluator.getCube(); boolean fail = false; OlapElement o = null; if (s.startsWith("[")) { o = Util.lookupCompound(cube, s, cube, fail); } else { // lookupCompound barfs if "s" doesn't have matching // brackets, so don't even try o = null; } if (o == null) { throw newEvalException( this, "could not find level '" + s + "'"); } else if (o instanceof Level) { return (Level) o; } else { throw newEvalException( this, "found '" + o.getDescription() + "', not a level"); } } public void testLevelsString(FoodMartTestCase test) { String s = test.executeExpr( "Levels(\"[Time].[Year]\").UniqueName"); test.assertEquals("[Time].[Year]", s); } public void testLevelsStringFail(FoodMartTestCase test) { test.assertExprThrows( "Levels(\"nonexistent\").UniqueName", "could not find level 'nonexistent'"); } }); // // LOGICAL FUNCTIONS define(new FunDefBase("IsEmpty", "IsEmpty(<Value Expression>)", "Determines if an expression evaluates to the empty cell value.", "fbS")); define(new FunDefBase("IsEmpty", "IsEmpty(<Value Expression>)", "Determines if an expression evaluates to the empty cell value.", "fbn")); // // MEMBER FUNCTIONS // if (false) define(new FunDefBase("Ancestor", "Ancestor(<Member>, <Level>)", "Returns the ancestor of a member at a specified level.", "fm*"); define(new FunDefBase("Ancestor", "Ancestor(<Member>, <Level>)", "Returns the ancestor of a member at a specified level.", "fmml") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, false); Level level = getLevelArg(evaluator, args, 1, false); if (member.getHierarchy() != level.getHierarchy()) { throw newEvalException( this, "member '" + member + "' is not in the same hierarchy as level '" + level + "'"); } if (member.getLevel().equals(level)) { return member; } Member[] members = member.getAncestorMembers(); for (int i = 0; i < members.length; i++) { if (members[i].getLevel().equals(level)) return members[i]; } return member.getHierarchy().getNullMember(); // not found } public void testAncestor(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[USA].[CA].[Los Angeles],[Store Country])"); test.assertEquals("USA", member.getName()); } public void testAncestorHigher(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[USA],[Store].[Store City])"); test.assertNull(member); // MSOLAP returns null } public void testAncestorSameLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[Canada],[Store].[Store Country])"); test.assertEquals("Canada", member.getName()); } public void testAncestorWrongHierarchy(FoodMartTestCase test) { // MSOLAP gives error "Formula error - dimensions are not // valid (they do not match) - in the Ancestor function" test.assertAxisThrows( "Ancestor([Gender].[M],[Store].[Store Country])", "member '[Gender].[All Genders].[M]' is not in the same hierarchy as level '[Store].[Store Country]'"); } public void testAncestorAllLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[USA].[CA],[Store].Levels(1))"); test.assertTrue(member.isAll()); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Cube cube = evaluator.getCube(); Dimension timeDimension = cube.getYearLevel().getDimension(); Member member = evaluator.getContext(timeDimension); Level level = member.getLevel().getChildLevel(); return openClosingPeriod(this, member, level); } public void testClosingPeriodNoArgs(FoodMartTestCase test) { // MSOLAP returns [1997].[Q4], because [Time].CurrentMember = // [1997]. Member member = test.executeAxis("ClosingPeriod()"); test.assertEquals("[Time].[1997].[Q4]", member.getUniqueName()); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fml") { public Object evaluate(Evaluator evaluator, Exp[] args) { Cube cube = evaluator.getCube(); Dimension timeDimension = cube.getYearLevel().getDimension(); Member member = evaluator.getContext(timeDimension); Level level = getLevelArg(evaluator, args, 0, true); return openClosingPeriod(this, member, level); } public void testClosingPeriodLevel(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([Month])"); test.assertEquals("[Time].[1997].[Q4].[12]", member.getUniqueName()); } public void testClosingPeriodLevelNotInTimeFails(FoodMartTestCase test) { test.assertAxisThrows( "ClosingPeriod([Store].[Store City])", "member '[Time].[1997]' must be in same hierarchy as level '[Store].[Store City]'"); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Level level = member.getLevel().getChildLevel(); return openClosingPeriod(this, member, level); } public void testClosingPeriodMember(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([USA])"); test.assertEquals("WA", member.getName()); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fmlm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); Member member = getMemberArg(evaluator, args, 1, true); return openClosingPeriod(this, member, level); } public void testClosingPeriod(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([Month],[1997])"); test.assertEquals("[Time].[1997].[Q4].[12]", member.getUniqueName()); } public void testClosingPeriodBelow(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([Quarter],[1997].[Q3].[8])"); test.assertNull(member); } }); define(new FunDefBase("Cousin", "Cousin(<Member1>, <Member2>)", "Returns the member with the same relative position under a member as the member specified.", "fmmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member1 = getMemberArg(evaluator, args, 0, true); Member member2 = getMemberArg(evaluator, args, 1, true); Member cousin = cousin(member1, member2); if (cousin == null) { cousin = member1.getHierarchy().getNullMember(); } return cousin; } private Member cousin(Member member1, Member member2) { if (member1.getHierarchy() != member2.getHierarchy()) { throw newEvalException( this, "Members '" + member1 + "' and '" + member2 + "' are not compatible as cousins"); } if (member1.getLevel().getDepth() < member2.getLevel().getDepth()) { return null; } return cousin2(member1, member2); } private Member cousin2(Member member1, Member member2) { if (member1.getLevel() == member2.getLevel()) { return member2; } Member uncle = cousin2(member1.getParentMember(), member2); if (uncle == null) { return null; } int ordinal = getOrdinalInParent(member1); Member[] cousins = uncle.getMemberChildren(); if (cousins.length < ordinal) { return null; } return cousins[ordinal]; } private int getOrdinalInParent(Member member) { Member parent = member.getParentMember(); Member[] siblings; if (parent == null) { siblings = member.getHierarchy().getRootMembers(); } else { siblings = parent.getMemberChildren(); } for (int i = 0; i < siblings.length; i++) { if (siblings[i] == member) { return i; } } throw Util.newInternal( "could not find member " + member + " amongst its siblings"); } public void testCousin1(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([1997].[Q4],[1998])"); test.assertEquals("[Time].[1998].[Q4]", member.getUniqueName()); } public void testCousin2(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([1997].[Q4].[12],[1998].[Q1])"); test.assertEquals("[Time].[1998].[Q1].[3]", member.getUniqueName()); } public void testCousinOverrun(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Customers].[USA].[CA].[San Jose], [Customers].[USA].[OR])"); // CA has more cities than OR test.assertNull(member); } public void testCousinThreeDown(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Customers].[USA].[CA].[Berkeley].[Alma Shelton], [Customers].[Mexico])"); // Alma Shelton is the 3rd child // of the 4th child (Berkeley) // of the 1st child (CA) // of USA test.assertEquals("[Customers].[All Customers].[Mexico].[DF].[Tixapan].[Albert Clouse]", member.getUniqueName()); } public void testCousinSameLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Gender].[M], [Gender].[F])"); test.assertEquals("F", member.getName()); } public void testCousinHigherLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Time].[1997], [Time].[1998].[Q1])"); test.assertNull(member); } public void testCousinWrongHierarchy(FoodMartTestCase test) { test.assertAxisThrows( "Cousin([Time].[1997], [Gender].[M])", "Members '[Time].[1997]' and '[Gender].[All Genders].[M]' are not compatible as cousins"); } }); define(new FunDefBase("CurrentMember", "<Dimension>.CurrentMember", "Returns the current member along a dimension during an iteration.", "pmd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return evaluator.getContext(dimension); } public void testCurrentMemberFromSlicer(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Gender].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales where ([Gender].[F])"); test.assertEquals("F", result.getCell(new int[] {0}).getValue()); } public void testCurrentMemberFromDefaultMember(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Time].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales"); test.assertEquals("1997", result.getCell(new int[] {0}).getValue()); } public void testCurrentMemberFromAxis(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Gender].CurrentMember.Name || [Marital Status].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns," + nl + " CrossJoin({[Gender].children}, {[Marital Status].children}) on rows" + nl + "from Sales"); test.assertEquals("FM", result.getCell(new int[] {0,0}).getValue()); } /** * When evaluating a calculated member, MSOLAP regards that * calculated member as the current member of that dimension, so it * cycles in this case. But I disagree; it is the previous current * member, before the calculated member was expanded. */ public void testCurrentMemberInCalcMember(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Measures].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales"); test.assertEquals("Unit Sales", result.getCell(new int[] {0}).getValue()); } }); define(new FunDefBase("DefaultMember", "<Dimension>.DefaultMember", "Returns the default member of a dimension.", "pmd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getHierarchy().getDefaultMember(); } public void testDimensionDefaultMember(FoodMartTestCase test) { Member member = test.executeAxis( "[Measures].DefaultMember"); test.assertEquals("Unit Sales", member.getName()); } }); define(new FunDefBase("FirstChild", "<Member>.FirstChild", "Returns the first child of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = member.getMemberChildren(); if (children.length == 0) { return member.getHierarchy().getNullMember(); } else { return children[0]; } } public void testFirstChildFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].FirstChild"); test.assertEquals("10", member.getName()); } public void testFirstChildAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Genders].FirstChild"); test.assertEquals("F", member.getName()); } public void testFirstChildOfChildless(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Genders].[F].FirstChild"); test.assertNull(member); } }); define(new FunDefBase("FirstSibling", "<Member>.FirstSibling", "Returns the first child of the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); Member[] children; if (parent == null) { if (member.isNull()) { return member; } children = member.getHierarchy().getRootMembers(); } else { children = parent.getMemberChildren(); } return children[0]; } public void testFirstSiblingFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].FirstSibling"); test.assertEquals("F", member.getName()); } public void testFirstSiblingLastInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].FirstSibling"); test.assertEquals("Q1", member.getName()); } public void testFirstSiblingAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Genders].FirstSibling"); test.assertTrue(member.isAll()); } public void testFirstSiblingRoot(FoodMartTestCase test) { // The [Measures] hierarchy does not have an 'all' member, so // [Unit Sales] does not have a parent. Member member = test.executeAxis( "[Measures].[Store Sales].FirstSibling"); test.assertEquals("Unit Sales", member.getName()); } public void testFirstSiblingNull(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].FirstChild.FirstSibling"); test.assertNull(member); } }); if (false) define(new FunDefBase("Item", "<Tuple>.Item(<Numeric Expression>)", "Returns a member from a tuple.", "mm*")); define(new MultiResolver( "Lag", "<Member>.Lag(<Numeric Expression>)", "Returns a member further along the specified member's dimension.", new String[]{"mmmn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); int n = getIntArg(evaluator, args, 1); return member.getLeadMember(-n); } public void testLag(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].[12].Lag(4)"); test.assertEquals("8", member.getName()); } public void testLagFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].Lag(1)"); test.assertNull(member); } public void testLagAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].DefaultMember.Lag(2)"); test.assertNull(member); } public void testLagRoot(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1998].Lag(1)"); test.assertEquals("1997", member.getName()); } public void testLagRootTooFar(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1998].Lag(2)"); test.assertNull(null); } })); define(new FunDefBase("LastChild", "<Member>.LastChild", "Returns the last child of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = member.getMemberChildren(); if (children.length == 0) { return member.getHierarchy().getNullMember(); } else { return children[children.length - 1]; } } public void testLastChild(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].LastChild"); test.assertEquals("M", member.getName()); } public void testLastChildLastInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].LastChild"); test.assertEquals("12", member.getName()); } public void testLastChildAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Genders].LastChild"); test.assertEquals("M", member.getName()); } public void testLastChildOfChildless(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[M].LastChild"); test.assertNull(member); } }); define(new FunDefBase("LastSibling", "<Member>.LastSibling", "Returns the last child of the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); Member[] children; if (parent == null) { if (member.isNull()) { return member; } children = member.getHierarchy().getRootMembers(); } else { children = parent.getMemberChildren(); } return children[children.length - 1]; } public void testLastSibling(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].LastSibling"); test.assertEquals("M", member.getName()); } public void testLastSiblingFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q1].LastSibling"); test.assertEquals("Q4", member.getName()); } public void testLastSiblingAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Genders].LastSibling"); test.assertTrue(member.isAll()); } public void testLastSiblingRoot(FoodMartTestCase test) { // The [Time] hierarchy does not have an 'all' member, so // [1997], [1998] do not have parents. Member member = test.executeAxis( "[Time].[1998].LastSibling"); test.assertEquals("1998", member.getName()); } public void testLastSiblingNull(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].FirstChild.LastSibling"); test.assertNull(member); } }); define(new MultiResolver( "Lead", "<Member>.Lead(<Numeric Expression>)", "Returns a member further along the specified member's dimension.", new String[]{"mmmn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); int n = getIntArg(evaluator, args, 1); return member.getLeadMember(n); } public void testLead(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q2].[4].Lead(4)"); test.assertEquals("8", member.getName()); } public void testLeadNegative(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[M].Lead(-1)"); test.assertEquals("F", member.getName()); } public void testLeadLastInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[M].Lead(3)"); test.assertNull(member); } })); define(new FunDefBase("Members", "Members(<String Expression>)", "Returns the member whose name is specified by a string expression.", "fmS")); define(new FunDefBase( "NextMember", "<Member>.NextMember", "Returns the next member in the level that contains a specified member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getLeadMember(+1); } public void testBasic2(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[F].NextMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("M")); } public void testFirstInLevel2(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[M].NextMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions.length == 0); } public void testAll2(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].PrevMember} ON COLUMNS from Sales"); // previous to [Gender].[All] is null, so no members are returned test.assertTrue(result.getAxes()[0].positions.length == 0); } }); if (false) define(new FunDefBase("OpeningPeriod", "OpeningPeriod([<Level>[, <Member>]])", "Returns the first sibling among the descendants of a member at a level.", "fm*")); if (false) define(new FunDefBase("ParallelPeriod", "ParallelPeriod([<Level>[, <Numeric Expression>[, <Member>]]])", "Returns a member from a prior period in the same relative position as a specified member.", "fm*")); define(new FunDefBase("Parent", "<Member>.Parent", "Returns the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); if (parent == null) { parent = member.getHierarchy().getNullMember(); } return parent; } public void testBasic5(FoodMartTestCase test) { Result result = test.runQuery( "select{ [Product].[All Products].[Drink].Parent} on columns from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("All Products")); } public void testFirstInLevel5(FoodMartTestCase test) { Result result = test.runQuery( "select {[Time].[1997].[Q2].[4].Parent} on columns,{[Gender].[M]} on rows from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("Q2")); } public void testAll5(FoodMartTestCase test) { Result result = test.runQuery( "select {[Time].[1997].[Q2].Parent} on columns,{[Gender].[M]} on rows from Sales"); // previous to [Gender].[All] is null, so no members are returned test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("1997")); } }); define(new FunDefBase("PrevMember", "<Member>.PrevMember", "Returns the previous member in the level that contains a specified member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getLeadMember(-1); } public void testBasic(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[M].PrevMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("F")); } public void testFirstInLevel(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[F].PrevMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions.length == 0); } public void testAll(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].PrevMember} ON COLUMNS from Sales"); // previous to [Gender].[All] is null, so no members are returned test.assertTrue(result.getAxes()[0].positions.length == 0); } }); if (false) define(new FunDefBase("ValidMeasure", "ValidMeasure(<Tuple>)", "Returns a valid measure in a virtual cube by forcing inapplicable dimensions to their top level.", "fm*")); // // NUMERIC FUNCTIONS if (false) define(new FunDefBase("Aggregate", "Aggregate(<Set>[, <Numeric Expression>])", "Returns a calculated value using the appropriate aggregate function, based on the context of the query.", "fn*")); define(new MultiResolver( "Avg", "Avg(<Set>[, <Numeric Expression>])", "Returns the average value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return avg(evaluator.push(), members, exp); } public void testAvg(FoodMartTestCase test) { String result = test.executeExpr( "AVG({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("188412.71", result); } //todo: testAvgWithNulls })); if (false) define(new FunDefBase("Correlation", "Correlation(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the correlation of two series evaluated over a set.", "fn*")); define(new MultiResolver( "Count", "Count(<Set>[, EXCLUDEEMPTY | INCLUDEEMPTY])", "Returns the number of tuples in a set, empty cells included unless the optional EXCLUDEEMPTY flag is used.", new String[]{"fnx", "fnxy"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); String empties = (String) getArg(evaluator, args, 1, "INCLUDEEMPTY"); if (empties.equals("INCLUDEEMPTY")) { return new Double(members.size()); } else { int retval = 0; for (int i = 0; i < members.size(); i++) { if ((members.elementAt(i) != Util.nullValue) && (members.elementAt(i) != null)) { retval++; } } return new Double(retval); } } public void testCount(FoodMartTestCase test) { String result = test.executeExpr( "count({[Promotion Media].[Media Type].members})"); test.assertEquals("14.0", result); } //todo: testCountNull, testCountNoExp })); if (false) define(new FunDefBase("Covariance", "Covariance(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the covariance of two series evaluated over a set (biased).", "fn*")); if (false) define(new FunDefBase("CovarianceN", "CovarianceN(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the covariance of two series evaluated over a set (unbiased).", "fn*")); define(new FunDefBase("IIf", "IIf(<Logical Expression>, <Numeric Expression1>, <Numeric Expression2>)", "Returns one of two numeric values determined by a logical test.", "fnbnn")); if (false) define(new FunDefBase("LinRegIntercept", "LinRegIntercept(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of b in the regression line y = ax + b.", "fn*")); if (false) define(new FunDefBase("LinRegPoint", "LinRegPoint(<Numeric Expression>, <Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of y in the regression line y = ax + b.", "fn*")); if (false) define(new FunDefBase("LinRegR2", "LinRegR2(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns R2 (the coefficient of determination).", "fn*")); if (false) define(new FunDefBase("LinRegSlope", "LinRegSlope(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of a in the regression line y = ax + b.", "fn*")); if (false) define(new FunDefBase("LinRegVariance", "LinRegVariance(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the variance associated with the regression line y = ax + b.", "fn*")); define(new MultiResolver( "Max", "Max(<Set>[, <Numeric Expression>])", "Returns the maximum value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return max(evaluator.push(), members, exp); } public void testMax(FoodMartTestCase test) { String result = test.executeExpr( "MAX({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("263793.22", result); } })); define(new MultiResolver( "Median", "Median(<Set>[, <Numeric Expression>])", "Returns the median value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); //todo: ignore nulls, do we need to ignore the vector? return median(evaluator.push(), members, exp); } public void testMedian(FoodMartTestCase test) { String result = test.executeExpr( "MEDIAN({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("159167.84", result); } })); define(new MultiResolver( "Min", "Min(<Set>[, <Numeric Expression>])", "Returns the minimum value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return min(evaluator.push(), members, exp); } public void testMin(FoodMartTestCase test) { String result = test.executeExpr( "MIN({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("142277.07", result); } })); define(new FunDefBase("Ordinal", "<Level>.Ordinal", "Returns the zero-based ordinal value associated with a level.", "pnl")); if (false) define(new FunDefBase("Rank", "Rank(<Tuple>, <Set>)", "Returns the one-based rank of a tuple in a set.", "fn*")); if (false) define(new FunDefBase("Stddev", "Stddev(<Set>[, <Numeric Expression>])", "Alias for Stdev.", "fn*")); if (false) define(new FunDefBase("StddevP", "StddevP(<Set>[, <Numeric Expression>])", "Alias for StdevP.", "fn*")); if (false) define(new FunDefBase("Stdev", "Stdev(<Set>[, <Numeric Expression>])", "Returns the standard deviation of a numeric expression evaluated over a set (unbiased).", "fn*")); if (false) define(new FunDefBase("StdevP", "StdevP(<Set>[, <Numeric Expression>])", "Returns the standard deviation of a numeric expression evaluated over a set (biased).", "fn*")); define(new MultiResolver( "Sum", "Sum(<Set>[, <Numeric Expression>])", "Returns the sum of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return sum(evaluator.push(), members, exp); } public void testSumNoExp(FoodMartTestCase test) { String result = test.executeExpr( "SUM({[Promotion Media].[Media Type].members})"); test.assertEquals("266773.0", result); } })); define(new FunDefBase("Value", "<Measure>.Value", "Returns the value of a measure.", "pnm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.evaluateScalar(evaluator); } }); define(new FunDefBase("_Value", "_Value(<Tuple>)", "Returns the value of the current measure within the context of a tuple.", "fvt") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member[] members = getTupleArg(evaluator, args, 0); Evaluator evaluator2 = evaluator.push(members); return evaluator2.evaluateCurrent(); } }); // _Value is a pseudo-function which evaluates a tuple to a number. // It needs a custom resolver. if (false) define(new ResolverBase("_Value", null, null, FunDef.TypeParentheses) { public FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length == 1 && args[0].getType() == FunCall.CatTuple) { return new ValueFunDef(new int[] {FunCall.CatTuple}); } for (int i = 0; i < args.length; i++) { Exp arg = args[i]; if (!canConvert(arg, FunCall.CatMember, conversionCount)) { return null; } } int[] argTypes = new int[args.length]; for (int i = 0; i < argTypes.length; i++) { argTypes[i] = FunCall.CatMember; } return new ValueFunDef(argTypes); } }); if (false) define(new FunDefBase("Var", "Var(<Set>[, <Numeric Expression>])", "Returns the variance of a numeric expression evaluated over a set (unbiased).", "fn*")); if (false) define(new FunDefBase("Variance", "Variance(<Set>[, <Numeric Expression>])", "Alias for Var.", "fn*")); if (false) define(new FunDefBase("VarianceP", "VarianceP(<Set>[, <Numeric Expression>])", "Alias for VarP.", "fn*")); if (false) define(new FunDefBase("VarP", "VarP(<Set>[, <Numeric Expression>])", "Returns the variance of a numeric expression evaluated over a set (biased).", "fn*")); // // SET FUNCTIONS if (false) define(new FunDefBase("AddCalculatedMembers", "AddCalculatedMembers(<Set>)", "Adds calculated members to a set.", "fx*")); define(new MultiResolver( "BottomCount", "BottomCount(<Set>, <Count>[, <Numeric Expression>])", "Returns a specified number of items from the bottom of a set, optionally ordering the set first.", new String[]{"fxxnN", "fxxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector set = (Vector) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArg(evaluator, args, 2, null); if (exp != null) { boolean desc = false, brk = true; sort(evaluator, set, exp, desc, brk); } if (n < set.size()) { set.setSize(n); } return set; } public void testBottomCount(FoodMartTestCase test) { Axis axis = test.executeAxis2( "BottomCount({[Promotion Media].[Media Type].members}, 2, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[Radio]" + nl + "[Promotion Media].[All Promotion Media].[Sunday Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } //todo: test unordered })); define(new MultiResolver( "BottomPercent", "BottomPercent(<Set>, <Percentage>, <Numeric Expression>)", "Sorts a set and returns the bottom N elements whose cumulative total is at least a specified percentage.", new String[]{"fxxnN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, false, true, n.doubleValue()); } public void testBottomPercent(FoodMartTestCase test) { Axis axis = test.executeAxis2( "BottomPercent({[Promotion Media].[Media Type].members}, 1, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[Radio]" + nl + "[Promotion Media].[All Promotion Media].[Sunday Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } //todo: test precision })); define(new MultiResolver( "BottomSum", "BottomSum(<Set>, <Value>, <Numeric Expression>)", "Sorts a set and returns the bottom N elements whose cumulative total is at least a specified value.", new String[]{"fxxnN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, false, false, n.doubleValue()); } public void testBottomSum(FoodMartTestCase test) { Axis axis = test.executeAxis2( "BottomSum({[Promotion Media].[Media Type].members}, 5000, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[Radio]" + nl + "[Promotion Media].[All Promotion Media].[Sunday Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } })); define(new FunDefBase("Children", "<Member>.Children", "Returns the children of a member.", "pxm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = member.getMemberChildren(); return toVector(children); } }); define(new FunDefBase("Crossjoin", "Crossjoin(<Set1>, <Set2>)", "Returns the cross product of two sets.", "fxxx") { public Hierarchy getHierarchy(Exp[] args) { // CROSSJOIN(<Set1>,<Set2>) has Hierarchy [Hie1] x [Hie2], which we // can't represent, so we return null. return null; } public Object evaluate(Evaluator evaluator, Exp[] args) { Vector set0 = (Vector) getArg(evaluator, args, 0), set1 = (Vector) getArg(evaluator, args, 1), result = new Vector(); for (int i = 0, m = set0.size(); i < m; i++) { Member o0 = (Member) set0.elementAt(i); for (int j = 0, n = set1.size(); j < n; j++) { Member o1 = (Member) set1.elementAt(j); result.addElement(new Member[]{o0, o1}); } } return result; } }); define(new MultiResolver( "Descendants", "Descendants(<Member>, <Level>[, <Desc_flag>])", "Returns the set of descendants of a member at a specified level, optionally including or excluding descendants in other levels.", new String[]{"fxml", "fxmls"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Level level = getLevelArg(evaluator, args, 1, true);// String descFlag = getStringArg(evaluator, args, 2, ??); if (member.getLevel().getDepth() > level.getDepth()) { return new Member[0]; } // Expand member to its children, until we get to the right // level. We assume that all children are in the same // level. final Hierarchy hierarchy = member.getHierarchy(); Member[] children = {member}; while (children.length > 0 && children[0].getLevel().getDepth() < level.getDepth()) { children = hierarchy.getChildMembers(children); } return toVector(children); } })); if (false) define(new FunDefBase("Distinct", "Distinct(<Set>)", "Eliminates duplicate tuples from a set.", "fxx")); define(new MultiResolver("DrilldownLevel", "DrilldownLevel(<Set>[, <Level>]) or DrilldownLevel(<Set>, , <Index>)", "Drills down the members of a set, at a specified level, to one level below. Alternatively, drills down on a specified dimension in the set.", new String[]{"fxx", "fxxl"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { //todo add fssl functionality Vector set0 = (Vector) getArg(evaluator, args, 0); int[] depthArray = new int[set0.size()]; Vector drilledSet = new Vector(); for (int i = 0, m = set0.size(); i < m; i++) { Member member = (Member) set0.elementAt(i); depthArray[i] = member.getDepth(); // Object o0 = set0.elementAt(i); // depthVector.addElement(new Object[] {o0}); } Arrays.sort(depthArray); int maxDepth = depthArray[depthArray.length - 1]; for (int i = 0, m = set0.size(); i < m; i++) { Member member = (Member) set0.elementAt(i); drilledSet.addElement(member); if (member.getDepth() == maxDepth) { Member[] childMembers = member.getMemberChildren(); for (int j = 0; j < childMembers.length; j++) { drilledSet.addElement(childMembers[j]); } } } return drilledSet; } } )); if (false) define(new FunDefBase("DrilldownLevelBottom", "DrilldownLevelBottom(<Set>, <Count>[, [<Level>][, <Numeric Expression>]])", "Drills down the bottom N members of a set, at a specified level, to one level below.", "fx*")); if (false) define(new FunDefBase("DrilldownLevelTop", "DrilldownLevelTop(<Set>, <Count>[, [<Level>][, <Numeric Expression>]])", "Drills down the top N members of a set, at a specified level, to one level below.", "fx*")); if (false) define(new FunDefBase("DrilldownMember", "DrilldownMember(<Set1>, <Set2>[, RECURSIVE])", "Drills down the members in a set that are present in a second specified set.", "fx*")); if (false) define(new FunDefBase("DrilldownMemberBottom", "DrilldownMemberBottom(<Set1>, <Set2>, <Count>[, [<Numeric Expression>][, RECURSIVE]])", "Like DrilldownMember except that it includes only the bottom N children.", "fx*")); if (false) define(new FunDefBase("DrilldownMemberTop", "DrilldownMemberTop(<Set1>, <Set2>, <Count>[, [<Numeric Expression>][, RECURSIVE]])", "Like DrilldownMember except that it includes only the top N children.", "fx*")); if (false) define(new FunDefBase("DrillupLevel", "DrillupLevel(<Set>[, <Level>])", "Drills up the members of a set that are below a specified level.", "fx*")); if (false) define(new FunDefBase("DrillupMember", "DrillupMember(<Set1>, <Set2>)", "Drills up the members in a set that are present in a second specified set.", "fx*")); define(new MultiResolver( "Except", "Except(<Set1>, <Set2>[, ALL])", "Finds the difference between two sets, optionally retaining duplicates.", new String[]{"fxxx", "fxxxs"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { // todo: implement ALL HashSet set2 = toHashSet((Vector) getArg(evaluator, args, 1)); Vector set1 = (Vector) getArg(evaluator, args, 0); Vector result = new Vector(); for (int i = 0, count = set1.size(); i < count; i++) { Object o = set1.elementAt(i); if (!set2.contains(o)) { result.addElement(o); } } return result; } })); if (false) define(new FunDefBase("Extract", "Extract(<Set>, <Dimension>[, <Dimension>...])", "Returns a set of tuples from extracted dimension elements. The opposite of Crossjoin.", "fx*")); define(new FunDefBase("Filter", "Filter(<Set>, <Search Condition>)", "Returns the set resulting from filtering a set based on a search condition.", "fxxb") { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); Exp exp = args[1]; Vector result = new Vector(); Evaluator evaluator2 = evaluator.push(); for (int i = 0, count = members.size(); i < count; i++) { Object o = members.elementAt(i); if (o instanceof Member) { evaluator2.setContext((Member) o); } else if (o instanceof Member[]) { evaluator2.setContext((Member[]) o); } else { throw Util.newInternal( "unexpected type in set: " + o.getClass()); } Boolean b = (Boolean) exp.evaluateScalar(evaluator2); if (b.booleanValue()) { result.add(o); } } return result; } /** * Make sure that slicer is in force when expression is applied * on axis, E.g. select filter([Customers].members, [Unit Sales] > 100) * from sales where ([Time].[1998]) **/ public void testFilterWithSilcer(FoodMartTestCase test) { Result result = test.execute( "select {[Measures].[Unit Sales]} on columns," + nl + " filter([Customers].[USA].children," + nl + " [Measures].[Unit Sales] > 20000) on rows" + nl + "from Sales" + nl + "where ([Time].[1997].[Q1])"); Axis rows = result.getAxes()[1]; // if slicer were ignored, there would be 3 rows test.assertEquals(1, rows.positions.length); Cell cell = result.getCell(new int[] {0,0}); test.assertEquals("30,114.00", cell.getFormattedValue()); } public void testFilterCompound(FoodMartTestCase test) { Result result = test.execute( "select {[Measures].[Unit Sales]} on columns," + nl + " Filter(" + nl + " CrossJoin(" + nl + " [Gender].Children," + nl + " [Customers].[USA].Children)," + nl + " [Measures].[Unit Sales] > 9500) on rows" + nl + "from Sales" + nl + "where ([Time].[1997].[Q1])"); Position[] rows = result.getAxes()[1].positions; test.assertTrue(rows.length == 3); test.assertEquals("F", rows[0].members[0].getName()); test.assertEquals("WA", rows[0].members[1].getName()); test.assertEquals("M", rows[1].members[0].getName()); test.assertEquals("OR", rows[1].members[1].getName()); test.assertEquals("M", rows[2].members[0].getName()); test.assertEquals("WA", rows[2].members[1].getName()); } }); if (false) define(new FunDefBase("Generate", "Generate(<Set1>, <Set2>[, ALL])", "Applies a set to each member of another set and joins the resulting sets by union.", "fx*")); if (false) define(new FunDefBase("Head", "Head(<Set>[, < Numeric Expression >])", "Returns the first specified number of elements in a set.", "fx*")); if (false) define(new FunDefBase("Hierarchize", "Hierarchize(<Set>)", "Orders the members of a set in a hierarchy.", "fx*")); if (false) define(new FunDefBase("Intersect", "Intersect(<Set1>, <Set2>[, ALL])", "Returns the intersection of two input sets, optionally retaining duplicates.", "fx*")); if (false) define(new FunDefBase("LastPeriods", "LastPeriods(<Index>[, <Member>])", "Returns a set of members prior to and including a specified member.", "fx*")); define(new FunDefBase("Members", "<Dimension>.Members", "Returns the set of all members in a dimension.", "pxd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = (Dimension) getArg(evaluator, args, 0); Hierarchy hierarchy = dimension.getHierarchy(); return addMembers(new Vector(), hierarchy); } }); define(new FunDefBase("Members", "<Hierarchy>.Members", "Returns the set of all members in a hierarchy.", "pxh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = (Hierarchy) getArg(evaluator, args, 0); return addMembers(new Vector(), hierarchy); } }); define(new FunDefBase("Members", "<Level>.Members", "Returns the set of all members in a level.", "pxl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = (Level) getArg(evaluator, args, 0); return toVector(level.getMembers()); } }); define(new MultiResolver( "Mtd", "Mtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Month.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getMonthLevel(), getMemberArg(evaluator, args, 0, false)); } })); define(new MultiResolver( "Order", "Order(<Set>, <Value Expression>[, ASC | DESC | BASC | BDESC])", "Arranges members of a set, optionally preserving or breaking the hierarchy.", new String[]{"fxxvy", "fxxv"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); String order = (String) getArg(evaluator, args, 2, "ASC"); sort( evaluator, members, exp, order.equals("DESC") || order.equals("BDESC"), order.equals("BASC") || order.equals("BDESC")); return members; } })); define(new MultiResolver( "PeriodsToDate", "PeriodsToDate([<Level>[, <Member>]])", "Returns a set of periods (members) from a specified level starting with the first period and ending with a specified member.", new String[]{"fx", "fxl", "fxlm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, false); Member member = getMemberArg(evaluator, args, 1, false); return periodsToDate(evaluator, level, member); } })); define(new MultiResolver( "Qtd", "Qtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Quarter.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getQuarterLevel(), getMemberArg(evaluator, args, 0, false)); } })); if (false) define(new FunDefBase("StripCalculatedMembers", "StripCalculatedMembers(<Set>)", "Removes calculated members from a set.", "fx*")); define(new FunDefBase("StrToSet", "StrToSet(<String Expression>)", "Constructs a set from a string expression.", "fxS") { public void unparse(Exp[] args, PrintWriter pw, ElementCallback callback) { if (callback.isPlatoMdx()) { // omit extra args (they're for us, not Plato) super.unparse(new Exp[]{args[0]}, pw, callback); } else { super.unparse(args, pw, callback); } } public Hierarchy getHierarchy(Exp[] args) { // StrToSet(s, <Hie1>, ... <HieN>) is of type [Hie1] x ... x [HieN]; // so, for example, So StrToTuple("[Time].[1997]", [Time]) is of type // [Time]. But if n > 1, we cannot represent the compound type, and we // return null. return (args.length == 2) ? (Hierarchy) args[1] : null; } }); if (false) define(new FunDefBase("Subset", "Subset(<Set>, <Start>[, <Count>])", "Returns a subset of elements from a set.", "fx*")); if (false) define(new FunDefBase("Tail", "Tail(<Set>[, <Count>])", "Returns a subset from the end of a set.", "fx*")); define(new MultiResolver( "ToggleDrillState", "ToggleDrillState(<Set1>, <Set2>[, RECURSIVE])", "Toggles the drill state of members. This function is a combination of DrillupMember and DrilldownMember.", new String[]{"fxxx", "fxxx#"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector v0 = (Vector) getArg(evaluator, args, 0), v1 = (Vector) getArg(evaluator, args, 1); if (args.length > 2) { throw Util.newInternal( "ToggleDrillState(RECURSIVE) not supported"); } if (v1.isEmpty()) { return v0; } HashSet set1 = toHashSet(v1); Vector result = new Vector(); int i = 0, n = v0.size(); while (i < n) { Member m = (Member) v0.elementAt(i++); result.addElement(m); if (!set1.contains(m)) { continue; } boolean isDrilledDown = false; if (i < n) { Member next = (Member) v0.elementAt(i); boolean strict = true; if (isAncestorOf(m, next, strict)) { isDrilledDown = true; } } if (isDrilledDown) { // skip descendants of this member do { Member next = (Member) v0.elementAt(i); boolean strict = true; if (isAncestorOf(m, next, strict)) { i++; } else { break; } } while (i < n); } else { Member[] children = m.getMemberChildren(); for (int j = 0; j < children.length; j++) { result.addElement(children[j]); } } } return result; } public void testToggleDrillState(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState({[Customers].[USA],[Customers].[Canada]},{[Customers].[USA],[Customers].[USA].[CA]})"); String expected = "[Customers].[All Customers].[USA]" + nl + "[Customers].[All Customers].[USA].[CA]" + nl + "[Customers].[All Customers].[USA].[OR]" + nl + "[Customers].[All Customers].[USA].[WA]" + nl + "[Customers].[All Customers].[Canada]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testToggleDrillState2(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState([Product].[Product Department].members, {[Product].[All Products].[Food].[Snack Foods]})"); String expected = "[Product].[All Products].[Drink].[Alcoholic Beverages]" + nl + "[Product].[All Products].[Drink].[Beverages]" + nl + "[Product].[All Products].[Drink].[Dairy]" + nl + "[Product].[All Products].[Food].[Baked Goods]" + nl + "[Product].[All Products].[Food].[Baking Goods]" + nl + "[Product].[All Products].[Food].[Breakfast Foods]" + nl + "[Product].[All Products].[Food].[Canned Foods]" + nl + "[Product].[All Products].[Food].[Canned Products]" + nl + "[Product].[All Products].[Food].[Dairy]" + nl + "[Product].[All Products].[Food].[Deli]" + nl + "[Product].[All Products].[Food].[Eggs]" + nl + "[Product].[All Products].[Food].[Frozen Foods]" + nl + "[Product].[All Products].[Food].[Meat]" + nl + "[Product].[All Products].[Food].[Produce]" + nl + "[Product].[All Products].[Food].[Seafood]" + nl + "[Product].[All Products].[Food].[Snack Foods]" + nl + "[Product].[All Products].[Food].[Snack Foods].[Snack Foods]" + nl + "[Product].[All Products].[Food].[Snacks]" + nl + "[Product].[All Products].[Food].[Starchy Foods]" + nl + "[Product].[All Products].[Non-Consumable].[Carousel]" + nl + "[Product].[All Products].[Non-Consumable].[Checkout]" + nl + "[Product].[All Products].[Non-Consumable].[Health and Hygiene]" + nl + "[Product].[All Products].[Non-Consumable].[Household]" + nl + "[Product].[All Products].[Non-Consumable].[Periodicals]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testToggleDrillState3(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState(" + "{[Time].[1997].[Q1]," + " [Time].[1997].[Q2]," + " [Time].[1997].[Q2].[4]," + " [Time].[1997].[Q2].[6]," + " [Time].[1997].[Q3]}," + "{[Time].[1997].[Q2]})"); String expected = "[Time].[1997].[Q1]" + nl + "[Time].[1997].[Q2]" + nl + "[Time].[1997].[Q3]"; test.assertEquals(expected, test.toString(axis.positions)); } })); define(new MultiResolver( "TopCount", "TopCount(<Set>, <Count>[, <Numeric Expression>])", "Returns a specified number of items from the top of a set, optionally ordering the set first.", new String[]{"fxxnN", "fxxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector set = (Vector) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArg(evaluator, args, 2, null); if (exp != null) { boolean desc = true, brk = true; sort(evaluator, set, exp, desc, brk); } if (n < set.size()) { set.setSize(n); } return set; } public void testTopCount(FoodMartTestCase test) { Axis axis = test.executeAxis2( "TopCount({[Promotion Media].[Media Type].members}, 2, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[No Media]" + nl + "[Promotion Media].[All Promotion Media].[Daily Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } })); define(new MultiResolver( "TopPercent", "TopPercent(<Set>, <Percentage>, <Numeric Expression>)", "Sorts a set and returns the top N elements whose cumulative total is at least a specified percentage.", new String[]{"fxxnN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, true, n.doubleValue()); } public void testTopPercent(FoodMartTestCase test) { Axis axis = test.executeAxis2( "TopPercent({[Promotion Media].[Media Type].members}, 70, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[No Media]"; test.assertEquals(expected, test.toString(axis.positions)); } //todo: test precision })); define(new MultiResolver( "TopSum", "TopSum(<Set>, <Value>, <Numeric Expression>)", "Sorts a set and returns the top N elements whose cumulative total is at least a specified value.", new String[]{"fxxnN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, false, n.doubleValue()); } public void testTopSum(FoodMartTestCase test) { Axis axis = test.executeAxis2( "TopSum({[Promotion Media].[Media Type].members}, 200000, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[No Media]" + nl + "[Promotion Media].[All Promotion Media].[Daily Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } })); if (false) define(new FunDefBase("Union", "Union(<Set1>, <Set2>[, ALL])", "Returns the union of two sets, optionally retaining duplicates.", "fx*")); if (false) define(new FunDefBase("VisualTotals", "VisualTotals(<Set>, <Pattern>)", "Dynamically totals child members specified in a set using a pattern for the total label in the result set.", "fx*")); define(new MultiResolver( "Wtd", "Wtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Week.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getWeekLevel(), getMemberArg(evaluator, args, 0, false)); } })); define(new MultiResolver( "Ytd", "Ytd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Year.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getYearLevel(), getMemberArg(evaluator, args, 0, false)); } })); define(new FunDefBase(":", "<Member>:<Member>", "Infix colon operator returns the set of members between a given pair of members.", "ixmm")); // special resolver for the "{...}" operator define(new ResolverBase( "{}", "{<Member> [, <Member>]...}", "Brace operator constructs a set.", FunDef.TypeBraces) { protected FunDef resolve(Exp[] args, int[] conversionCount) { int[] parameterTypes = new int[args.length]; for (int i = 0; i < args.length; i++) { if (canConvert( args[i], Exp.CatMember, conversionCount)) { parameterTypes[i] = Exp.CatMember; continue; } if (canConvert( args[i], Exp.CatSet, conversionCount)) { parameterTypes[i] = Exp.CatSet; continue; } if (canConvert( args[i], Exp.CatTuple, conversionCount)) { parameterTypes[i] = Exp.CatTuple; continue; } return null; } return new SetFunDef(this, syntacticType, parameterTypes); } public void testSetContainingLevelFails(FoodMartTestCase test) { test.assertAxisThrows( "[Store].[Store City]", "no function matches signature '{<Level>}'"); } }); // // STRING FUNCTIONS define(new FunDefBase("IIf", "IIf(<Logical Expression>, <String Expression1>, <String Expression2>)", "Returns one of two string values determined by a logical test.", "f#b##") { public Object evaluate(Evaluator evaluator, Exp[] args) { boolean logical = getBooleanArg(evaluator, args, 0); return getStringArg(evaluator, args, logical ? 1 : 2, null); } public void testIIf(FoodMartTestCase test) { String s = test.executeExpr( "IIf(([Measures].[Unit Sales],[Product].[Drink].[Alcoholic Beverages].[Beer and Wine]) > 100, \"Yes\",\"No\")"); test.assertEquals("Yes", s); } }); define(new FunDefBase("Name", "<Dimension>.Name", "Returns the name of a dimension.", "pSd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getName(); } public void testDimensionName(FoodMartTestCase test) { String s = test.executeExpr("[Time].[1997].Dimension.Name"); test.assertEquals("Time", s); } }); define(new FunDefBase("Name", "<Hierarchy>.Name", "Returns the name of a hierarchy.", "pSh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getName(); } public void testHierarchyName(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].Hierarchy.Name"); test.assertEquals("Time", s); } }); define(new FunDefBase("Name", "<Level>.Name", "Returns the name of a level.", "pSl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getName(); } public void testLevelName(FoodMartTestCase test) { String s = test.executeExpr("[Time].[1997].Level.Name"); test.assertEquals("Year", s); } }); define(new FunDefBase("Name", "<Member>.Name", "Returns the name of a member.", "pSm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getName(); } public void testMemberName(FoodMartTestCase test) { String s = test.executeExpr("[Time].[1997].Name"); test.assertEquals("1997", s); } }); define(new FunDefBase("SetToStr", "SetToStr(<Set>)", "Constructs a string from a set.", "fSx")); define(new FunDefBase("TupleToStr", "TupleToStr(<Tuple>)", "Constructs a string from a tuple.", "fSt")); define(new FunDefBase("UniqueName", "<Dimension>.UniqueName", "Returns the unique name of a dimension.", "pSd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getUniqueName(); } public void testDimensionUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.Dimension.UniqueName"); test.assertEquals("[Gender]", s); } }); define(new FunDefBase("UniqueName", "<Hierarchy>.UniqueName", "Returns the unique name of a hierarchy.", "pSh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getUniqueName(); } public void testHierarchyUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.Hierarchy.UniqueName"); test.assertEquals("[Gender]", s); } }); define(new FunDefBase("UniqueName", "<Level>.UniqueName", "Returns the unique name of a level.", "pSl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getUniqueName(); } public void testLevelUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.Level.UniqueName"); test.assertEquals("[Gender].[(All)]", s); } }); define(new FunDefBase("UniqueName", "<Member>.UniqueName", "Returns the unique name of a member.", "pSm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getUniqueName(); } public void testMemberUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.UniqueName"); test.assertEquals("[Gender].[All Genders]", s); } public void testMemberUniqueNameOfNull(FoodMartTestCase test) { String s = test.executeExpr( "[Measures].[Unit Sales].FirstChild.UniqueName"); test.assertEquals("[Measures].[#Null]", s); // MSOLAP gives "" here } }); // // TUPLE FUNCTIONS define(new FunDefBase("Current", "<Set>.Current", "Returns the current tuple from a set during an iteration.", "ptx")); if (false) define(new FunDefBase("Item", "<Set>.Item(<String Expression>[, <String Expression>...] | <Index>)", "Returns a tuple from a set.", "mt*")); define(new FunDefBase("StrToTuple", "StrToTuple(<String Expression>)", "Constructs a tuple from a string.", "ftS") { public void unparse(Exp[] args, PrintWriter pw, ElementCallback callback) { if (callback.isPlatoMdx()) { // omit extra args (they're for us, not Plato) super.unparse(new Exp[]{args[0]}, pw, callback); } else { super.unparse(args, pw, callback); } } public Hierarchy getHierarchy(Exp[] args) { // StrToTuple(s, <Hie1>, ... <HieN>) is of type [Hie1] x // ... x [HieN]; so, for example, So // StrToTuple("[Time].[1997]", [Time]) is of type [Time]. // But if n > 1, we cannot represent the compound type, and // we return null. return (args.length == 2) ? (Hierarchy) args[1] : null; } }); // special resolver for "()" define(new ResolverBase("()", null, null, FunDef.TypeParentheses) { public FunDef resolve(Exp[] args, int[] conversionCount) { // Compare with TupleFunDef.getReturnType(). For example, // ([Gender].members) is a set, // ([Gender].[M]) is a member, // (1 + 2) is a numeric, // but // ([Gender].[M], [Marital Status].[S]) is a tuple. if (args.length == 1) { return new ParenthesesFunDef(args[0].getType()); } else { return new TupleFunDef(ExpBase.getTypes(args)); } } }); // // GENERIC VALUE FUNCTIONS define(new ResolverBase( "CoalesceEmpty", "CoalesceEmpty(<Value Expression>[, <Value Expression>]...)", "Coalesces an empty cell value to a different value. All of the expressions must be of the same type (number or string).", FunDef.TypeFunction) { protected FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 1) { return null; } final int[] types = {Exp.CatNumeric, Exp.CatString}; for (int j = 0; j < types.length; j++) { int type = types[j]; int matchingArgs = 0; conversionCount[0] = 0; for (int i = 0; i < args.length; i++) { if (canConvert(args[i], type, conversionCount)) { matchingArgs++; } } if (matchingArgs == args.length) { return new FunDefBase( this, FunDef.TypeFunction, type, ExpBase.getTypes(args)); } } return null; } }); define(new ResolverBase( "_CaseTest", "Case When <Logical Expression> Then <Expression> [...] [Else <Expression>] End", "Evaluates various conditions, and returns the corresponding expression for the first which evaluates to true.", FunDef.TypeCase) { protected FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 1) { return null; } int j = 0, clauseCount = args.length / 2, mismatchingArgs = 0; int returnType = args[1].getType(); for (int i = 0; i < clauseCount; i++) { if (!canConvert(args[j++], Exp.CatLogical, conversionCount)) { mismatchingArgs++; } if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } if (j < args.length) { if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } Util.assertTrue(j == args.length); if (mismatchingArgs == 0) { return new FunDefBase( this, FunDef.TypeFunction, returnType, ExpBase.getTypes(args)) { // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { return evaluateCaseTest(evaluator, args); } }; } else { return null; } } Object evaluateCaseTest(Evaluator evaluator, Exp[] args) { int clauseCount = args.length / 2, j = 0; for (int i = 0; i < clauseCount; i++) { boolean logical = getBooleanArg(evaluator, args, j++); if (logical) { return getArg(evaluator, args, j); } else { j++; } } if (j < args.length) { return getArg(evaluator, args, j); // ELSE } else { return null; } } public void testCaseTestMatch(FoodMartTestCase test) { String s = test.executeExpr( "CASE WHEN 1=0 THEN \"first\" WHEN 1=1 THEN \"second\" WHEN 1=2 THEN \"third\" ELSE \"fourth\" END"); test.assertEquals("second", s); } public void testCaseTestMatchElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE WHEN 1=0 THEN \"first\" ELSE \"fourth\" END"); test.assertEquals("fourth", s); } public void testCaseTestMatchNoElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE WHEN 1=0 THEN \"first\" END"); test.assertEquals("(null)", s); } }); define(new ResolverBase( "_CaseMatch", "Case <Expression> When <Expression> Then <Expression> [...] [Else <Expression>] End", "Evaluates various expressions, and returns the corresponding expression for the first which matches a particular value.", FunDef.TypeCase) { protected FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 3) { return null; } int valueType = args[0].getType(); int returnType = args[2].getType(); int j = 0, clauseCount = (args.length - 1) / 2, mismatchingArgs = 0; if (!canConvert(args[j++], valueType, conversionCount)) { mismatchingArgs++; } for (int i = 0; i < clauseCount; i++) { if (!canConvert(args[j++], valueType, conversionCount)) { mismatchingArgs++; } if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } if (j < args.length) { if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } Util.assertTrue(j == args.length); if (mismatchingArgs == 0) { return new FunDefBase( this, FunDef.TypeFunction, returnType, ExpBase.getTypes(args)) { // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { return evaluateCaseMatch(evaluator, args); } }; } else { return null; } } Object evaluateCaseMatch(Evaluator evaluator, Exp[] args) { int clauseCount = (args.length - 1)/ 2, j = 0; Object value = getArg(evaluator, args, j++); for (int i = 0; i < clauseCount; i++) { Object match = getArg(evaluator, args, j++); if (match.equals(value)) { return getArg(evaluator, args, j); } else { j++; } } if (j < args.length) { return getArg(evaluator, args, j); // ELSE } else { return null; } } public void testCaseMatch(FoodMartTestCase test) { String s = test.executeExpr( "CASE 2 WHEN 1 THEN \"first\" WHEN 2 THEN \"second\" WHEN 3 THEN \"third\" ELSE \"fourth\" END"); test.assertEquals("second", s); } public void testCaseMatchElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE 7 WHEN 1 THEN \"first\" ELSE \"fourth\" END"); test.assertEquals("fourth", s); } public void testCaseMatchNoElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE 8 WHEN 0 THEN \"first\" END"); test.assertEquals("(null)", s); } }); define(new ResolverBase( "Properties", "<Member>.Properties(<String Expression>)", "Returns the value of a member property.", FunDef.TypeMethod) { public FunDef resolve(Exp[] args, int[] conversionCount) { final int[] argTypes = new int[]{Exp.CatMember, Exp.CatString | Exp.CatExpression}; if (args.length != 2 || args[0].getType() != Exp.CatMember || args[1].getType() != Exp.CatString) { return null; } int returnType; if (args[1] instanceof Literal) { String propertyName = (String) ((Literal) args[1]).getValue(); Hierarchy hierarchy = args[0].getHierarchy(); Level[] levels = hierarchy.getLevels(); Property property = lookupProperty( levels[levels.length - 1], propertyName); if (property == null) { // we'll likely get a runtime error returnType = Exp.CatValue; } else { switch (property.getType()) { case Property.TYPE_BOOLEAN: returnType = Exp.CatLogical; break; case Property.TYPE_NUMERIC: returnType = Exp.CatNumeric; break; case Property.TYPE_STRING: returnType = Exp.CatString; break; default: throw Util.newInternal("Unknown property type " + property.getType()); } } } else { returnType = Exp.CatValue; } return new PropertiesFunDef(name, signature, description, syntacticType, returnType, argTypes); } public void testPropertiesExpr(FoodMartTestCase test) { String s = test.executeExpr( "[Store].[USA].[CA].[Beverly Hills].[Store 6].Properties(\"Store Type\")"); test.assertEquals("Gourmet Supermarket", s); } /** Tests that non-existent property throws an error. **/ public void testPropertiesNonExistent(FoodMartTestCase test) { test.assertExprThrows( "[Store].[USA].[CA].[Beverly Hills].[Store 6].Properties(\"Foo\")", "Property 'Foo' is not valid for"); } public void testPropertiesFilter(FoodMartTestCase test) { Result result = test.execute( "SELECT { [Store Sales] } ON COLUMNS," + nl + " TOPCOUNT( Filter( [Store].[Store Name].Members," + nl + " [Store].CurrentMember.Properties(\"Store Type\") = \"Supermarket\" )," + nl + " 10, [Store Sales]) ON ROWS" + nl + "FROM [Sales]"); test.assertEquals(8, result.getAxes()[1].positions.length); } public void testPropertyInCalculatedMember(FoodMartTestCase test) { Result result = test.execute( "WITH MEMBER [Measures].[Store Sales per Sqft]" + nl + "AS '[Measures].[Store Sales] / " + " [Store].CurrentMember.Properties(\"Store Sqft\")'" + nl + "SELECT " + nl + " {[Measures].[Unit Sales], [Measures].[Store Sales per Sqft]} ON COLUMNS," + nl + " {[Store].[Store Name].members} ON ROWS" + nl + "FROM Sales"); Member member; Cell cell; member = result.getAxes()[1].positions[17].members[0]; test.assertEquals("[Store].[All Stores].[USA].[WA].[Bellingham].[Store 2]", member.getUniqueName()); cell = result.getCell(new int[] {0,17}); test.assertEquals("2237.0", cell.getFormattedValue()); cell = result.getCell(new int[] {1,17}); test.assertEquals("0.16802205204566403", cell.getFormattedValue()); member = result.getAxes()[1].positions[3].members[0]; test.assertEquals("[Store].[All Stores].[Mexico].[DF].[San Andres].[Store 21]", member.getUniqueName()); cell = result.getCell(new int[] {0,3}); test.assertEquals("(null)", cell.getFormattedValue()); cell = result.getCell(new int[] {1,3}); test.assertEquals("NaN", cell.getFormattedValue()); } }); // // PARAMETER FUNCTIONS if (false) define(new FunDefBase("Parameter", "Parameter(<Name>, <Type>, <DefaultValue>, <Description>)", "Returns default value of parameter.", "f*")); if (false) define(new FunDefBase("ParamRef", "ParamRef(<Name>)", "Returns current value of parameter. If it's null, returns default.", "f*")); // // OPERATORS define(new FunDefBase("+", "<Numeric Expression> + <Numeric Expression>", "Adds two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return new Double(o0.doubleValue() + o1.doubleValue()); } public void testPlus(FoodMartTestCase test) { String s = test.executeExpr("1+2"); test.assertEquals("3.0", s); } }); define(new FunDefBase("-", "<Numeric Expression> - <Numeric Expression>", "Subtracts two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return new Double(o0.doubleValue() - o1.doubleValue()); } public void testMinus(FoodMartTestCase test) { String s = test.executeExpr("1-3"); test.assertEquals("-2.0", s); } public void testMinusAssociativity(FoodMartTestCase test) { String s = test.executeExpr("11-7-5"); // right-associative would give 11-(7-5) = 9, which is wrong test.assertEquals("-1.0", s); } }); define(new FunDefBase("*", "<Numeric Expression> * <Numeric Expression>", "Multiplies two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return new Double(o0.doubleValue() * o1.doubleValue()); } public void testMultiply(FoodMartTestCase test) { String s = test.executeExpr("4*7"); test.assertEquals("28.0", s); } public void testMultiplyPrecedence(FoodMartTestCase test) { String s = test.executeExpr("3 + 4 * 5 + 6"); test.assertEquals("29.0", s); } }); define(new FunDefBase("/", "<Numeric Expression> / <Numeric Expression>", "Divides two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); Double result = new Double(o0.doubleValue() / o1.doubleValue()); return result; } // todo: use this, via reflection public double evaluate(double d1, double d2) { return d1 / d2; } public void testDivide(FoodMartTestCase test) { String s = test.executeExpr("10 / 5"); test.assertEquals("2.0", s); } public void testDivideByZero(FoodMartTestCase test) { String s = test.executeExpr("-3 / (2 - 2)"); test.assertEquals("-Infinity", s); } public void testDividePrecedence(FoodMartTestCase test) { String s = test.executeExpr("24 / 4 / 2 * 10 - -1"); test.assertEquals("31.0", s); } }); define(new FunDefBase("-", "- <Numeric Expression>", "Returns the negative of a number.", "Pnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0); return new Double(- o0.doubleValue()); } public void testUnaryMinus(FoodMartTestCase test) { String s = test.executeExpr("-3"); test.assertEquals("-3.0", s); } public void testUnaryMinusMember(FoodMartTestCase test) { String s = test.executeExpr("- ([Measures].[Unit Sales],[Gender].[F])"); test.assertEquals("-131558.0", s); } public void testUnaryMinusPrecedence(FoodMartTestCase test) { String s = test.executeExpr("1 - -10.5 * 2 -3"); test.assertEquals("19.0", s); } }); define(new FunDefBase("||", "<String Expression> || <String Expression>", "Concatenates two strings.", "iSSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); return o0 + o1; } public void testStringConcat(FoodMartTestCase test) { String s = test.executeExpr(" \"foo\" || \"bar\" "); test.assertEquals("foobar", s); } public void testStringConcat2(FoodMartTestCase test) { String s = test.executeExpr(" \"foo\" || [Gender].[M].Name || \"\" "); test.assertEquals("fooM", s); } }); define(new FunDefBase("AND", "<Logical Expression> AND <Logical Expression>", "Returns the conjunction of two conditions.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { return toBoolean( getBooleanArg(evaluator, args, 0) && getBooleanArg(evaluator, args, 1)); } public void testAnd(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND 2=2 "); test.assertEquals("true", s); } public void testAnd2(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND 2=0 "); test.assertEquals("false", s); } }); define(new FunDefBase("OR", "<Logical Expression> OR <Logical Expression>", "Returns the disjunction of two conditions.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { // Only evaluate 2nd if first is false. return toBoolean( getBooleanArg(evaluator, args, 0) || getBooleanArg(evaluator, args, 1)); } public void testOr(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=0 OR 2=0 "); test.assertEquals("false", s); } public void testOr2(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=0 OR 0=0 "); test.assertEquals("true", s); } public void testOrAssociativity1(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND 1=0 OR 1=1 "); // Would give 'false' if OR were stronger than AND (wrong!) test.assertEquals("true", s); } public void testOrAssociativity2(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 OR 1=0 AND 1=1 "); // Would give 'false' if OR were stronger than AND (wrong!) test.assertEquals("true", s); } public void testOrAssociativity3(FoodMartTestCase test) { String s = test.executeBooleanExpr(" (1=0 OR 1=1) AND 1=1 "); test.assertEquals("true", s); } }); define(new FunDefBase("XOR", "<Logical Expression> XOR <Logical Expression>", "Returns whether two conditions are mutually exclusive.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { final boolean b0 = getBooleanArg(evaluator, args, 0); final boolean b1 = getBooleanArg(evaluator, args, 1); return toBoolean(b0 != b1); } public void testXor(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 XOR 2=2 "); test.assertEquals("false", s); } public void testXorAssociativity(FoodMartTestCase test) { // Would give 'false' if XOR were stronger than AND (wrong!) String s = test.executeBooleanExpr(" 1 = 1 AND 1 = 1 XOR 1 = 0 "); test.assertEquals("true", s); } }); define(new FunDefBase("NOT", "NOT <Logical Expression>", "Returns the negation of a condition.", "Pbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { return toBoolean(!getBooleanArg(evaluator, args, 0)); } public void testNot(FoodMartTestCase test) { String s = test.executeBooleanExpr(" NOT 1=1 "); test.assertEquals("false", s); } public void testNotNot(FoodMartTestCase test) { String s = test.executeBooleanExpr(" NOT NOT 1=1 "); test.assertEquals("true", s); } public void testNotAssociativity(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND NOT 1=1 OR NOT 1=1 AND 1=1 "); test.assertEquals("false", s); } }); define(new FunDefBase("=", "<String Expression> = <String Expression>", "Returns whether two expressions are equal.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); return toBoolean(o0.equals(o1)); } public void testStringEquals(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"foo\" = \"bar\" "); test.assertEquals("false", s); } public void testStringEqualsAssociativity(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"foo\" = \"fo\" || \"o\" "); test.assertEquals("true", s); } public void testStringEqualsEmpty(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"\" = \"\" "); test.assertEquals("true", s); } }); define(new FunDefBase("=", "<Numeric Expression> = <Numeric Expression>", "Returns whether two expressions are equal.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.equals(o1)); } public void testEq(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1.0 = 1 "); test.assertEquals("true", s); } }); define(new FunDefBase("<>", "<String Expression> <> <String Expression>", "Returns whether two expressions are not equal.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); return toBoolean(!o0.equals(o1)); } public void testStringNe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"foo\" <> \"bar\" "); test.assertEquals("true", s); } }); define(new FunDefBase("<>", "<Numeric Expression> <> <Numeric Expression>", "Returns whether two expressions are not equal.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(!o0.equals(o1)); } public void testNe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 <> 1.0 + 1.0 "); test.assertEquals("false", s); } public void testNeInfinity(FoodMartTestCase test) { String s = test.executeBooleanExpr("(1 / 0) <> (1 / 0)"); // Infinity does not equal itself test.assertEquals("false", s); } }); define(new FunDefBase("<", "<Numeric Expression> < <Numeric Expression>", "Returns whether an expression is less than another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) < 0); } public void testLt(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 < 1.0 + 1.0 "); test.assertEquals("false", s); } }); define(new FunDefBase("<=", "<Numeric Expression> <= <Numeric Expression>", "Returns whether an expression is less than or equal to another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) <= 0); } public void testLe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 <= 1.0 + 1.0 "); test.assertEquals("true", s); } }); define(new FunDefBase(">", "<Numeric Expression> > <Numeric Expression>", "Returns whether an expression is greater than another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) > 0); } public void testGt(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 > 1.0 + 1.0 "); test.assertEquals("false", s); } }); define(new FunDefBase(">=", "<Numeric Expression> >= <Numeric Expression>", "Returns whether an expression is greater than or equal to another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) >= 0); } public void testGe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 > 1.0 + 1.0 "); test.assertEquals("false", s); } }); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/a99d355f461b0b321c9fb36c2ea44764ce9dfb05/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4426,
7503,
1435,
288,
202,
202,
759,
1122,
1149,
30,
293,
33,
1396,
16,
312,
33,
1305,
16,
277,
33,
382,
904,
16,
453,
33,
2244,
202,
202,
759,
576,
4880,
30,
202,
202,
759,
14884,
13690,
55,
202,
202,
430,
261,
5743,
13,
4426,
12,
2704,
478,
318,
3262,
2171,
2932,
694,
11698,
3113,
315,
694,
11698,
12,
32,
694,
23224,
16,
411,
694,
34,
65,
2777,
63,
16,
411,
9902,
5371,
34,
65,
2225,
16,
315,
5692,
1245,
578,
1898,
1678,
358,
392,
526,
364,
999,
316,
279,
729,
17,
430,
261,
5743,
13,
2553,
445,
1199,
16,
315,
507,
7388,
10019,
202,
202,
759,
202,
202,
759,
463,
3114,
3156,
1146,
13690,
55,
202,
202,
11255,
12,
2704,
478,
318,
3262,
2171,
2932,
8611,
3113,
3532,
12074,
18652,
8611,
3113,
315,
1356,
326,
4968,
716,
1914,
279,
1269,
9360,
1199,
16,
315,
84,
19153,
7923,
288,
1082,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
12074,
9360,
273,
7628,
6000,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
638,
1769,
9506,
202,
2463,
9360,
18,
588,
8611,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
759,
14646,
44,
361,
358,
527,
333,
358,
336,
411,
12074,
18652,
8611,
358,
1440,
35,
202,
202,
11255,
12,
2704,
478,
318,
3262,
2171,
2932,
8611,
3113,
3532,
8611,
18652,
8611,
3113,
315,
1356,
326,
4968,
716,
1914,
279,
1269,
9360,
1199,
16,
315,
84,
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,
4426,
7503,
1435,
288,
202,
202,
759,
1122,
1149,
30,
293,
33,
1396,
16,
312,
33,
1305,
16,
277,
33,
382,
904,
16,
453,
33,
2244,
202,
202,
759,
576,
4880,
30,
202,
202,
759,
14884,
13690,
55,
202,
202,
430,
261,
5743,
13,
4426,
12,
2704,
478,
318,
3262,
2171,
2932,
694,
11698,
3113,
315,
694,
11698,
12,
32,
694,
23224,
16,
411,
694,
34,
65,
2777,
63,
16,
411,
9902,
5371,
34,
65,
2225,
16,
315,
5692,
1245,
578,
1898,
1678,
358,
392,
526,
364,
999,
316,
279,
729,
17,
430,
261,
5743,
13,
2553,
445,
1199,
16,
315,
507,
7388,
10019,
202,
202,
759,
202,
202,
759,
463,
3114,
3156,
1146,
13690,
2
] |
char ch; | char ch; | DERUTF8String( byte[] string) { int i = 0; int length = 0; while (i < string.length) { length++; if ((string[i] & 0xe0) == 0xe0) { i += 3; } else if ((string[i] & 0xc0) == 0xc0) { i += 2; } else { i += 1; } } char[] cs = new char[length]; i = 0; length = 0; while (i < string.length) { char ch; if ((string[i] & 0xe0) == 0xe0) { ch = (char)(((string[i] & 0x1f) << 12) | ((string[i + 1] & 0x3f) << 6) | (string[i + 2] & 0x3f)); i += 3; } else if ((string[i] & 0xc0) == 0xc0) { ch = (char)(((string[i] & 0x3f) << 6) | (string[i + 1] & 0x3f)); i += 2; } else { ch = (char)(string[i] & 0xff); i += 1; } cs[length++] = ch; } this.string = new String(cs); } | 53000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53000/b112da6f2b9bc0b03599d0c4f87783cab94c1bf3/DERUTF8String.java/buggy/crypto/src/org/bouncycastle/asn1/DERUTF8String.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
21801,
5159,
28,
780,
12,
3639,
1160,
8526,
282,
533,
13,
565,
288,
3639,
509,
277,
273,
374,
31,
3639,
509,
769,
273,
374,
31,
3639,
1323,
261,
77,
411,
533,
18,
2469,
13,
3639,
288,
5411,
769,
9904,
31,
5411,
309,
14015,
1080,
63,
77,
65,
473,
374,
6554,
20,
13,
422,
374,
6554,
20,
13,
5411,
288,
7734,
277,
1011,
890,
31,
5411,
289,
5411,
469,
309,
14015,
1080,
63,
77,
65,
473,
374,
6511,
20,
13,
422,
374,
6511,
20,
13,
5411,
288,
7734,
277,
1011,
576,
31,
5411,
289,
5411,
469,
5411,
288,
7734,
277,
1011,
404,
31,
5411,
289,
3639,
289,
3639,
1149,
8526,
225,
2873,
273,
394,
1149,
63,
2469,
15533,
3639,
277,
273,
374,
31,
3639,
769,
273,
374,
31,
3639,
1323,
261,
77,
411,
533,
18,
2469,
13,
3639,
288,
5411,
1149,
462,
31,
5411,
309,
14015,
1080,
63,
77,
65,
473,
374,
6554,
20,
13,
422,
374,
6554,
20,
13,
5411,
288,
7734,
462,
273,
261,
3001,
13,
12443,
12,
1080,
63,
77,
65,
473,
374,
92,
21,
74,
13,
2296,
2593,
13,
8227,
571,
14015,
1080,
63,
77,
397,
404,
65,
473,
374,
92,
23,
74,
13,
2296,
1666,
13,
571,
261,
1080,
63,
77,
397,
576,
65,
473,
374,
92,
23,
74,
10019,
7734,
277,
1011,
890,
31,
5411,
289,
5411,
469,
309,
14015,
1080,
63,
77,
65,
473,
374,
6511,
20,
13,
422,
374,
6511,
20,
13,
5411,
288,
7734,
462,
273,
261,
3001,
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,
21801,
5159,
28,
780,
12,
3639,
1160,
8526,
282,
533,
13,
565,
288,
3639,
509,
277,
273,
374,
31,
3639,
509,
769,
273,
374,
31,
3639,
1323,
261,
77,
411,
533,
18,
2469,
13,
3639,
288,
5411,
769,
9904,
31,
5411,
309,
14015,
1080,
63,
77,
65,
473,
374,
6554,
20,
13,
422,
374,
6554,
20,
13,
5411,
288,
7734,
277,
1011,
890,
31,
5411,
289,
5411,
469,
309,
14015,
1080,
63,
77,
65,
473,
374,
6511,
20,
13,
422,
374,
6511,
20,
13,
5411,
288,
7734,
277,
1011,
576,
31,
5411,
289,
5411,
469,
5411,
288,
7734,
277,
1011,
404,
31,
5411,
289,
3639,
289,
3639,
1149,
8526,
225,
2873,
273,
394,
1149,
63,
2469,
15533,
3639,
2
] |
AST tmp2304_AST_in = (AST)_t; | AST tmp2308_AST_in = (AST)_t; | public final void function_param_arg(AST _t) throws RecognitionException { AST function_param_arg_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TABLE: { AST tmp2298_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST tmp2299_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); break; } case RECORD_NAME: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2300_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp2301_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case 3: case BIND: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BIND: { AST tmp2302_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } break; } case TABLEHANDLE: { AST tmp2303_AST_in = (AST)_t; match(_t,TABLEHANDLE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST tmp2304_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2305_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp2306_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case 3: case BIND: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BIND: { AST tmp2307_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } break; } case DATASET: case DATASETHANDLE: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DATASET: { AST tmp2308_AST_in = (AST)_t; match(_t,DATASET); _t = _t.getNextSibling(); break; } case DATASETHANDLE: { AST tmp2309_AST_in = (AST)_t; match(_t,DATASETHANDLE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } AST tmp2310_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp2311_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case 3: case BIND: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BIND: { AST tmp2312_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case ID: case DATETIME: case DATETIMETZ: case LONGCHAR: case CLASS: case TYPE_NAME: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ID: { AST tmp2313_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); AST tmp2314_AST_in = (AST)_t; match(_t,AS); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case DATETIME: case DATETIMETZ: case LONGCHAR: case CLASS: case TYPE_NAME: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CLASS: { AST tmp2315_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getNextSibling(); AST tmp2316_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case DATETIME: case DATETIMETZ: case LONGCHAR: case TYPE_NAME: { datatype_var(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXTENT: { extentphrase(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
445,
67,
891,
67,
3175,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
445,
67,
891,
67,
3175,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
7567,
30,
202,
202,
95,
1082,
202,
9053,
1853,
3787,
10689,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
7775,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
95,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
12108,
30,
1082,
202,
95,
9506,
202,
9053,
1853,
3787,
2733,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
7473,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
3593,
24346,
67,
1985,
30,
1082,
202,
95,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
1886,
30,
1082,
202,
95,
9506,
202,
12849,
394,
17114,
24899,
88,
1769,
1082,
202,
97,
1082,
202,
97,
1082,
202,
97,
1082,
202,
9053,
1853,
4366,
713,
67,
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,
445,
67,
891,
67,
3175,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
445,
67,
891,
67,
3175,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
7567,
30,
202,
202,
95,
1082,
202,
9053,
1853,
3787,
10689,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
7775,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
2
] |
.getVariable(ISources.ACTIVE_EDITOR_ID_NAME); | .getVariable(ISources.ACTIVE_PART_ID_NAME); | public final EvaluationResult evaluate(final IEvaluationContext context) { final Object variable = context .getVariable(ISources.ACTIVE_EDITOR_ID_NAME); if (equals(activeEditorId, variable)) { return EvaluationResult.TRUE; } return EvaluationResult.FALSE; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d132108e69466607a0398e6a591928187ac79730/LegacyEditorActionBarExpression.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/expressions/LegacyEditorActionBarExpression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
17340,
1253,
5956,
12,
6385,
467,
13468,
1042,
819,
13,
288,
202,
202,
6385,
1033,
2190,
273,
819,
9506,
202,
18,
588,
3092,
12,
5127,
1418,
18,
13301,
67,
13208,
67,
734,
67,
1985,
1769,
202,
202,
430,
261,
14963,
12,
3535,
6946,
548,
16,
2190,
3719,
288,
1082,
202,
2463,
17340,
1253,
18,
18724,
31,
202,
202,
97,
202,
202,
2463,
17340,
1253,
18,
21053,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
17340,
1253,
5956,
12,
6385,
467,
13468,
1042,
819,
13,
288,
202,
202,
6385,
1033,
2190,
273,
819,
9506,
202,
18,
588,
3092,
12,
5127,
1418,
18,
13301,
67,
13208,
67,
734,
67,
1985,
1769,
202,
202,
430,
261,
14963,
12,
3535,
6946,
548,
16,
2190,
3719,
288,
1082,
202,
2463,
17340,
1253,
18,
18724,
31,
202,
202,
97,
202,
202,
2463,
17340,
1253,
18,
21053,
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
] |
forceInsertText(_document.getDocLength(), _prompt, DEFAULT_STYLE); _promptPos = _document.getDocLength(); | forceInsertText(_document.getLength(), _prompt, DEFAULT_STYLE); _promptPos = _document.getLength(); | public void insertPrompt() { acquireWriteLock(); try {// append(_prompt, DEFAULT_STYLE); // need forceAppend!// _promptPos = _document.getDocLength();// _hasPrompt = true; forceInsertText(_document.getDocLength(), _prompt, DEFAULT_STYLE); _promptPos = _document.getDocLength(); _hasPrompt = true; } catch (DocumentAdapterException e) { throw new UnexpectedException(e); } finally { releaseWriteLock(); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9ee7f82d7f7234787f3748460b46ad8c5d1fc967/ConsoleDocument.java/buggy/drjava/src/edu/rice/cs/drjava/model/repl/ConsoleDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2243,
15967,
1435,
288,
565,
10533,
3067,
2531,
5621,
565,
775,
288,
759,
1377,
714,
24899,
13325,
16,
3331,
67,
15066,
1769,
225,
368,
1608,
2944,
5736,
5,
759,
1377,
389,
13325,
1616,
273,
389,
5457,
18,
588,
1759,
1782,
5621,
759,
1377,
389,
5332,
15967,
273,
638,
31,
1377,
2944,
4600,
1528,
24899,
5457,
18,
588,
1759,
1782,
9334,
389,
13325,
16,
3331,
67,
15066,
1769,
1377,
389,
13325,
1616,
273,
389,
5457,
18,
588,
1759,
1782,
5621,
1377,
389,
5332,
15967,
273,
638,
31,
6647,
289,
565,
1044,
261,
2519,
4216,
503,
425,
13,
288,
604,
394,
9649,
503,
12,
73,
1769,
225,
289,
565,
3095,
288,
3992,
3067,
2531,
5621,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2243,
15967,
1435,
288,
565,
10533,
3067,
2531,
5621,
565,
775,
288,
759,
1377,
714,
24899,
13325,
16,
3331,
67,
15066,
1769,
225,
368,
1608,
2944,
5736,
5,
759,
1377,
389,
13325,
1616,
273,
389,
5457,
18,
588,
1759,
1782,
5621,
759,
1377,
389,
5332,
15967,
273,
638,
31,
1377,
2944,
4600,
1528,
24899,
5457,
18,
588,
1759,
1782,
9334,
389,
13325,
16,
3331,
67,
15066,
1769,
1377,
389,
13325,
1616,
273,
389,
5457,
18,
588,
1759,
1782,
5621,
1377,
389,
5332,
15967,
273,
638,
31,
6647,
289,
565,
1044,
261,
2519,
4216,
503,
425,
13,
288,
604,
394,
9649,
503,
12,
73,
1769,
225,
289,
565,
3095,
288,
3992,
3067,
2531,
5621,
289,
225,
289,
2
] |
final Map partitioners= TextUtilities.removeDocumentPartitioners(document); | public void format() { super.format(); Assert.isLegal(fPartitions.size() > 0); final IDocument document= getViewer().getDocument(); final TypedPosition position= (TypedPosition)fPartitions.removeFirst(); try { final ITypedRegion partition= TextUtilities.getPartition(document, fFormatter.getDocumentPartitioning(), position.getOffset()); final String type= partition.getType(); position.offset= partition.getOffset(); position.length= partition.getLength(); final Map preferences= getPreferences(); final boolean format= preferences.get(PreferenceConstants.FORMATTER_COMMENT_FORMAT) == IPreferenceStore.TRUE; final boolean header= preferences.get(PreferenceConstants.FORMATTER_COMMENT_FORMATHEADER) == IPreferenceStore.TRUE; if (format && (header || position.getOffset() != 0 || !type.equals(IJavaPartitions.JAVA_DOC))) { final CommentRegion region= CommentObjectFactory.createRegion(this, position, TextUtilities.getDefaultLineDelimiter(document)); final String indentation= getLineIndentation(document, region, position.getOffset()); final Map partitioners= TextUtilities.removeDocumentPartitioners(document); region.format(indentation); TextUtilities.addDocumentPartitioners(document, partitioners); } } catch (BadLocationException exception) { // Should not happen } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/d038e84d98301bf45fde1532d757c5749135b675/CommentFormattingStrategy.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/comment/CommentFormattingStrategy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
740,
1435,
288,
202,
202,
9565,
18,
2139,
5621,
202,
202,
8213,
18,
291,
30697,
12,
74,
13738,
18,
1467,
1435,
405,
374,
1769,
202,
202,
6385,
1599,
504,
650,
1668,
33,
8893,
264,
7675,
588,
2519,
5621,
202,
202,
6385,
13833,
2555,
1754,
33,
261,
11985,
2555,
13,
74,
13738,
18,
4479,
3759,
5621,
202,
202,
698,
288,
1082,
202,
6385,
467,
11985,
5165,
3590,
33,
3867,
11864,
18,
588,
7003,
12,
5457,
16,
284,
5074,
18,
588,
2519,
7003,
310,
9334,
1754,
18,
588,
2335,
10663,
1082,
202,
6385,
514,
618,
33,
3590,
18,
588,
559,
5621,
1082,
202,
3276,
18,
3348,
33,
3590,
18,
588,
2335,
5621,
1082,
202,
3276,
18,
2469,
33,
3590,
18,
588,
1782,
5621,
1082,
202,
6385,
1635,
12750,
33,
336,
12377,
5621,
1082,
202,
6385,
1250,
740,
33,
12750,
18,
588,
12,
9624,
2918,
18,
7254,
2560,
67,
12200,
67,
7254,
13,
422,
467,
9624,
2257,
18,
18724,
31,
1082,
202,
6385,
1250,
1446,
33,
12750,
18,
588,
12,
9624,
2918,
18,
7254,
2560,
67,
12200,
67,
4983,
3275,
41,
5483,
13,
422,
467,
9624,
2257,
18,
18724,
31,
1082,
202,
430,
261,
2139,
597,
261,
3374,
747,
1754,
18,
588,
2335,
1435,
480,
374,
747,
401,
723,
18,
14963,
12,
45,
5852,
13738,
18,
27264,
67,
19693,
20349,
288,
9506,
202,
6385,
9821,
5165,
3020,
33,
9821,
921,
1733,
18,
2640,
5165,
12,
2211,
16,
1754,
16,
3867,
11864,
18,
588,
1868,
1670,
12007,
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,
740,
1435,
288,
202,
202,
9565,
18,
2139,
5621,
202,
202,
8213,
18,
291,
30697,
12,
74,
13738,
18,
1467,
1435,
405,
374,
1769,
202,
202,
6385,
1599,
504,
650,
1668,
33,
8893,
264,
7675,
588,
2519,
5621,
202,
202,
6385,
13833,
2555,
1754,
33,
261,
11985,
2555,
13,
74,
13738,
18,
4479,
3759,
5621,
202,
202,
698,
288,
1082,
202,
6385,
467,
11985,
5165,
3590,
33,
3867,
11864,
18,
588,
7003,
12,
5457,
16,
284,
5074,
18,
588,
2519,
7003,
310,
9334,
1754,
18,
588,
2335,
10663,
1082,
202,
6385,
514,
618,
33,
3590,
18,
588,
559,
5621,
1082,
202,
3276,
18,
3348,
33,
3590,
18,
588,
2335,
5621,
1082,
202,
3276,
18,
2469,
2
] | |
for( i = 0; i < 16; i++ ) if( inUse16[ i ] ) for( j = 0; j < 16; j++ ) if( inUse[ i * 16 + j ] ) | } } for( i = 0; i < 16; i++ ) { if( inUse16[ i ] ) { for( j = 0; j < 16; j++ ) { if( inUse[ i * 16 + j ] ) { | private void sendMTFValues() throws IOException { char len[][] = new char[ N_GROUPS ][ MAX_ALPHA_SIZE ]; int v; int t; int i; int j; int gs; int ge; int totc; int bt; int bc; int iter; int nSelectors = 0; int alphaSize; int minLen; int maxLen; int selCtr; int nGroups; int nBytes; alphaSize = nInUse + 2; for( t = 0; t < N_GROUPS; t++ ) for( v = 0; v < alphaSize; v++ ) len[ t ][ v ] = (char)GREATER_ICOST; /* * Decide how many coding tables to use */ if( nMTF <= 0 ) panic(); if( nMTF < 200 ) nGroups = 2; else if( nMTF < 600 ) nGroups = 3; else if( nMTF < 1200 ) nGroups = 4; else if( nMTF < 2400 ) nGroups = 5; else nGroups = 6; { /* * Generate an initial set of coding tables */ int nPart; int remF; int tFreq; int aFreq; nPart = nGroups; remF = nMTF; gs = 0; while( nPart > 0 ) { tFreq = remF / nPart; ge = gs - 1; aFreq = 0; while( aFreq < tFreq && ge < alphaSize - 1 ) { ge++; aFreq += mtfFreq[ ge ]; } if( ge > gs && nPart != nGroups && nPart != 1 && ( ( nGroups - nPart ) % 2 == 1 ) ) { aFreq -= mtfFreq[ ge ]; ge--; } for( v = 0; v < alphaSize; v++ ) if( v >= gs && v <= ge ) len[ nPart - 1 ][ v ] = (char)LESSER_ICOST; else len[ nPart - 1 ][ v ] = (char)GREATER_ICOST; nPart--; gs = ge + 1; remF -= aFreq; } } int rfreq[][] = new int[ N_GROUPS ][ MAX_ALPHA_SIZE ]; int fave[] = new int[ N_GROUPS ]; short cost[] = new short[ N_GROUPS ]; /* * Iterate up to N_ITERS times to improve the tables. */ for( iter = 0; iter < N_ITERS; iter++ ) { for( t = 0; t < nGroups; t++ ) fave[ t ] = 0; for( t = 0; t < nGroups; t++ ) for( v = 0; v < alphaSize; v++ ) rfreq[ t ][ v ] = 0; nSelectors = 0; totc = 0; gs = 0; while( true ) { /* * Set group start & end marks. */ if( gs >= nMTF ) break; ge = gs + G_SIZE - 1; if( ge >= nMTF ) ge = nMTF - 1; /* * Calculate the cost of this group as coded * by each of the coding tables. */ for( t = 0; t < nGroups; t++ ) cost[ t ] = 0; if( nGroups == 6 ) { short cost0; short cost1; short cost2; short cost3; short cost4; short cost5; cost0 = cost1 = cost2 = cost3 = cost4 = cost5 = 0; for( i = gs; i <= ge; i++ ) { short icv = szptr[ i ]; cost0 += len[ 0 ][ icv ]; cost1 += len[ 1 ][ icv ]; cost2 += len[ 2 ][ icv ]; cost3 += len[ 3 ][ icv ]; cost4 += len[ 4 ][ icv ]; cost5 += len[ 5 ][ icv ]; } cost[ 0 ] = cost0; cost[ 1 ] = cost1; cost[ 2 ] = cost2; cost[ 3 ] = cost3; cost[ 4 ] = cost4; cost[ 5 ] = cost5; } else { for( i = gs; i <= ge; i++ ) { short icv = szptr[ i ]; for( t = 0; t < nGroups; t++ ) cost[ t ] += len[ t ][ icv ]; } } /* * Find the coding table which is best for this group, * and record its identity in the selector table. */ bc = 999999999; bt = -1; for( t = 0; t < nGroups; t++ ) if( cost[ t ] < bc ) { bc = cost[ t ]; bt = t; } ; totc += bc; fave[ bt ]++; selector[ nSelectors ] = (char)bt; nSelectors++; /* * Increment the symbol frequencies for the selected table. */ for( i = gs; i <= ge; i++ ) rfreq[ bt ][ szptr[ i ] ]++; gs = ge + 1; } /* * Recompute the tables based on the accumulated frequencies. */ for( t = 0; t < nGroups; t++ ) hbMakeCodeLengths( len[ t ], rfreq[ t ], alphaSize, 20 ); } rfreq = null; fave = null; cost = null; if( !( nGroups < 8 ) ) panic(); if( !( nSelectors < 32768 && nSelectors <= ( 2 + ( 900000 / G_SIZE ) ) ) ) panic(); { /* * Compute MTF values for the selectors. */ char pos[] = new char[ N_GROUPS ]; char ll_i; char tmp2; char tmp; for( i = 0; i < nGroups; i++ ) pos[ i ] = (char)i; for( i = 0; i < nSelectors; i++ ) { ll_i = selector[ i ]; j = 0; tmp = pos[ j ]; while( ll_i != tmp ) { j++; tmp2 = tmp; tmp = pos[ j ]; pos[ j ] = tmp2; } pos[ 0 ] = tmp; selectorMtf[ i ] = (char)j; } } int code[][] = new int[ N_GROUPS ][ MAX_ALPHA_SIZE ]; /* * Assign actual codes for the tables. */ for( t = 0; t < nGroups; t++ ) { minLen = 32; maxLen = 0; for( i = 0; i < alphaSize; i++ ) { if( len[ t ][ i ] > maxLen ) maxLen = len[ t ][ i ]; if( len[ t ][ i ] < minLen ) minLen = len[ t ][ i ]; } if( maxLen > 20 ) panic(); if( minLen < 1 ) panic(); hbAssignCodes( code[ t ], len[ t ], minLen, maxLen, alphaSize ); } { /* * Transmit the mapping table. */ boolean inUse16[] = new boolean[ 16 ]; for( i = 0; i < 16; i++ ) { inUse16[ i ] = false; for( j = 0; j < 16; j++ ) if( inUse[ i * 16 + j ] ) inUse16[ i ] = true; } nBytes = bytesOut; for( i = 0; i < 16; i++ ) if( inUse16[ i ] ) bsW( 1, 1 ); else bsW( 1, 0 ); for( i = 0; i < 16; i++ ) if( inUse16[ i ] ) for( j = 0; j < 16; j++ ) if( inUse[ i * 16 + j ] ) bsW( 1, 1 ); else bsW( 1, 0 ); } /* * Now the selectors. */ nBytes = bytesOut; bsW( 3, nGroups ); bsW( 15, nSelectors ); for( i = 0; i < nSelectors; i++ ) { for( j = 0; j < selectorMtf[ i ]; j++ ) bsW( 1, 1 ); bsW( 1, 0 ); } /* * Now the coding tables. */ nBytes = bytesOut; for( t = 0; t < nGroups; t++ ) { int curr = len[ t ][ 0 ]; bsW( 5, curr ); for( i = 0; i < alphaSize; i++ ) { while( curr < len[ t ][ i ] ) { bsW( 2, 2 ); curr++; /* * 10 */ } while( curr > len[ t ][ i ] ) { bsW( 2, 3 ); curr--; /* * 11 */ } bsW( 1, 0 ); } } /* * And finally, the block data proper */ nBytes = bytesOut; selCtr = 0; gs = 0; while( true ) { if( gs >= nMTF ) break; ge = gs + G_SIZE - 1; if( ge >= nMTF ) ge = nMTF - 1; for( i = gs; i <= ge; i++ ) { bsW( len[ selector[ selCtr ] ][ szptr[ i ] ], code[ selector[ selCtr ] ][ szptr[ i ] ] ); } gs = ge + 1; selCtr++; } if( !( selCtr == nSelectors ) ) panic(); } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/8ce1de2178a0422105fa437c327b49fb5637ff28/CBZip2OutputStream.java/buggy/proposal/myrmidon/src/java/org/apache/aut/bzip2/CBZip2OutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
6152,
42,
1972,
1435,
3639,
1216,
1860,
565,
288,
3639,
1149,
562,
63,
6362,
65,
273,
394,
1149,
63,
423,
67,
28977,
308,
63,
4552,
67,
26313,
67,
4574,
308,
31,
3639,
509,
331,
31,
3639,
509,
268,
31,
3639,
509,
277,
31,
3639,
509,
525,
31,
3639,
509,
10763,
31,
3639,
509,
8244,
31,
3639,
509,
9997,
71,
31,
3639,
509,
10921,
31,
3639,
509,
6533,
31,
3639,
509,
1400,
31,
3639,
509,
290,
19277,
273,
374,
31,
3639,
509,
4190,
1225,
31,
3639,
509,
1131,
2891,
31,
3639,
509,
29618,
31,
3639,
509,
357,
39,
313,
31,
3639,
509,
290,
3621,
31,
3639,
509,
290,
2160,
31,
3639,
4190,
1225,
273,
290,
15435,
397,
576,
31,
3639,
364,
12,
268,
273,
374,
31,
268,
411,
423,
67,
28977,
31,
268,
9904,
262,
5411,
364,
12,
331,
273,
374,
31,
331,
411,
4190,
1225,
31,
331,
9904,
262,
7734,
562,
63,
268,
308,
63,
331,
308,
273,
261,
3001,
13,
43,
18857,
67,
2871,
4005,
31,
3639,
1748,
540,
380,
3416,
831,
3661,
4906,
14848,
4606,
358,
999,
540,
1195,
3639,
309,
12,
290,
6152,
42,
1648,
374,
262,
5411,
3933,
5621,
3639,
309,
12,
290,
6152,
42,
411,
4044,
262,
5411,
290,
3621,
273,
576,
31,
3639,
469,
309,
12,
290,
6152,
42,
411,
14707,
262,
5411,
290,
3621,
273,
890,
31,
3639,
469,
309,
12,
290,
6152,
42,
411,
2593,
713,
262,
5411,
290,
3621,
273,
1059,
31,
3639,
469,
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,
1366,
6152,
42,
1972,
1435,
3639,
1216,
1860,
565,
288,
3639,
1149,
562,
63,
6362,
65,
273,
394,
1149,
63,
423,
67,
28977,
308,
63,
4552,
67,
26313,
67,
4574,
308,
31,
3639,
509,
331,
31,
3639,
509,
268,
31,
3639,
509,
277,
31,
3639,
509,
525,
31,
3639,
509,
10763,
31,
3639,
509,
8244,
31,
3639,
509,
9997,
71,
31,
3639,
509,
10921,
31,
3639,
509,
6533,
31,
3639,
509,
1400,
31,
3639,
509,
290,
19277,
273,
374,
31,
3639,
509,
4190,
1225,
31,
3639,
509,
1131,
2891,
31,
3639,
509,
29618,
31,
3639,
509,
357,
39,
313,
31,
3639,
509,
290,
3621,
31,
3639,
509,
290,
2160,
31,
3639,
4190,
1225,
273,
290,
15435,
2
] |
public org.quickfix.field.NoTrdRegTimestamps getNoTrdRegTimestamps() throws FieldNotFound { org.quickfix.field.NoTrdRegTimestamps value = new org.quickfix.field.NoTrdRegTimestamps(); | public quickfix.field.NoTrdRegTimestamps getNoTrdRegTimestamps() throws FieldNotFound { quickfix.field.NoTrdRegTimestamps value = new quickfix.field.NoTrdRegTimestamps(); | public org.quickfix.field.NoTrdRegTimestamps getNoTrdRegTimestamps() throws FieldNotFound { org.quickfix.field.NoTrdRegTimestamps value = new org.quickfix.field.NoTrdRegTimestamps(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportAck.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReportAck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
1070,
72,
1617,
23761,
336,
2279,
1070,
72,
1617,
23761,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
1070,
72,
1617,
23761,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
1070,
72,
1617,
23761,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
1070,
72,
1617,
23761,
336,
2279,
1070,
72,
1617,
23761,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
1070,
72,
1617,
23761,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
1070,
72,
1617,
23761,
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
] |
PluginVersionIdentifier version = descriptor.getVersionIdentifier(); if (version.isGreaterThan(buildInfoVersion)) { | if (!isVersionCompatible(descriptor)) { | private static void loadExtensions() throws BuildException { if (extensionTargetsLoaded) return; // Get those extensions IPluginDescriptor descriptor = ManagedBuilderCorePlugin.getDefault().getDescriptor(); // Get the version of the manifest PluginVersionIdentifier version = descriptor.getVersionIdentifier(); if (version.isGreaterThan(buildInfoVersion)) { //The version of the Plug-in is greater than what the manager thinks it understands throw new BuildException(ManagedBuilderCorePlugin.getResourceString("ManagedBuildManager.error.version.higher")); //$NON-NLS-1$ } // We can read the manifest IExtensionPoint extensionPoint = descriptor.getExtensionPoint(EXTENSION_POINT_ID); IExtension[] extensions = extensionPoint.getExtensions(); // First call the constructors for (int i = 0; i < extensions.length; ++i) { IExtension extension = extensions[i]; IConfigurationElement[] elements = extension.getConfigurationElements(); loadConfigElements(DefaultManagedConfigElement.convertArray(elements)); } // Then call resolve. Iterator toolIter = getExtensionToolMap().values().iterator(); while (toolIter.hasNext()) { try { Tool tool = (Tool)toolIter.next(); tool.resolveReferences(); } catch (Exception ex) { // TODO: log ex.printStackTrace(); } } Iterator targetIter = getExtensionTargetMap().values().iterator(); while (targetIter.hasNext()) { try { Target target = (Target)targetIter.next(); target.resolveReferences(); } catch (Exception ex) { // TODO: log ex.printStackTrace(); } } // Let's never do that again extensionTargetsLoaded = true; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ecdbf0cd6e722adddf5f9906c55b0b0d61654bf9/ManagedBuildManager.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1262,
7513,
1435,
1216,
18463,
288,
202,
202,
430,
261,
6447,
9432,
8835,
13,
1082,
202,
2463,
31,
9506,
202,
759,
968,
5348,
4418,
202,
202,
45,
3773,
3187,
4950,
273,
10024,
1263,
4670,
3773,
18,
588,
1868,
7675,
588,
3187,
5621,
9506,
202,
759,
968,
326,
1177,
434,
326,
5643,
202,
202,
3773,
1444,
3004,
1177,
273,
4950,
18,
588,
1444,
3004,
5621,
202,
202,
430,
261,
1589,
18,
291,
28130,
12,
3510,
966,
1444,
3719,
288,
1082,
202,
759,
1986,
1177,
434,
326,
3008,
637,
17,
267,
353,
6802,
2353,
4121,
326,
3301,
15507,
87,
518,
31727,
5708,
1082,
202,
12849,
394,
18463,
12,
10055,
1263,
4670,
3773,
18,
588,
1420,
780,
2932,
10055,
3116,
1318,
18,
1636,
18,
1589,
18,
76,
9421,
7923,
1769,
202,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
9506,
202,
759,
1660,
848,
855,
326,
5643,
202,
202,
45,
3625,
2148,
2710,
2148,
273,
4950,
18,
588,
3625,
2148,
12,
12796,
67,
8941,
67,
734,
1769,
202,
202,
45,
3625,
8526,
4418,
273,
2710,
2148,
18,
588,
7513,
5621,
202,
202,
759,
5783,
745,
326,
19874,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4418,
18,
2469,
31,
965,
77,
13,
288,
1082,
202,
45,
3625,
2710,
273,
4418,
63,
77,
15533,
1082,
202,
45,
1750,
1046,
8526,
2186,
273,
2710,
18,
588,
1750,
3471,
5621,
1082,
202,
945,
809,
3471,
12,
1868,
10055,
809,
1046,
18,
6283,
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,
918,
1262,
7513,
1435,
1216,
18463,
288,
202,
202,
430,
261,
6447,
9432,
8835,
13,
1082,
202,
2463,
31,
9506,
202,
759,
968,
5348,
4418,
202,
202,
45,
3773,
3187,
4950,
273,
10024,
1263,
4670,
3773,
18,
588,
1868,
7675,
588,
3187,
5621,
9506,
202,
759,
968,
326,
1177,
434,
326,
5643,
202,
202,
3773,
1444,
3004,
1177,
273,
4950,
18,
588,
1444,
3004,
5621,
202,
202,
430,
261,
1589,
18,
291,
28130,
12,
3510,
966,
1444,
3719,
288,
1082,
202,
759,
1986,
1177,
434,
326,
3008,
637,
17,
267,
353,
6802,
2353,
4121,
326,
3301,
15507,
87,
518,
31727,
5708,
1082,
202,
12849,
394,
18463,
12,
10055,
1263,
4670,
3773,
18,
588,
1420,
780,
2
] |
PowerPointExtractor pptExtractor = new PowerPointExtractor( contentResource.streamContent()); | contentStream = contentResource.streamContent(); PowerPointExtractor pptExtractor = new PowerPointExtractor(contentStream); | public String getContent(ContentResource contentResource) { try { PowerPointExtractor pptExtractor = new PowerPointExtractor( contentResource.streamContent()); StringBuffer sb = new StringBuffer(); sb.append(pptExtractor.getText()).append(" ").append( pptExtractor.getNotes()); return sb.toString(); } catch (Exception e) { throw new RuntimeException("Failed to read content for indexing ",e); } } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/eda279bb1a62c9f63ca9d053c4d6a4fcf94463bd/PPTContentDigester.java/clean/search/search-impl/impl/src/java/org/sakaiproject/search/component/adapter/contenthosting/PPTContentDigester.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
5154,
12,
1350,
1420,
913,
1420,
13,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
13788,
2148,
10958,
293,
337,
10958,
273,
394,
23783,
2148,
10958,
12,
6862,
202,
1745,
1420,
18,
3256,
1350,
10663,
1082,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
1082,
202,
18366,
18,
6923,
12,
84,
337,
10958,
18,
588,
1528,
1435,
2934,
6923,
2932,
315,
2934,
6923,
12,
6862,
202,
84,
337,
10958,
18,
588,
18063,
10663,
1082,
202,
2463,
2393,
18,
10492,
5621,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
202,
202,
95,
1082,
202,
12849,
394,
3235,
2932,
2925,
358,
855,
913,
364,
14403,
3104,
73,
1769,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
5154,
12,
1350,
1420,
913,
1420,
13,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
13788,
2148,
10958,
293,
337,
10958,
273,
394,
23783,
2148,
10958,
12,
6862,
202,
1745,
1420,
18,
3256,
1350,
10663,
1082,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
1082,
202,
18366,
18,
6923,
12,
84,
337,
10958,
18,
588,
1528,
1435,
2934,
6923,
2932,
315,
2934,
6923,
12,
6862,
202,
84,
337,
10958,
18,
588,
18063,
10663,
1082,
202,
2463,
2393,
18,
10492,
5621,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
202,
202,
95,
1082,
202,
12849,
394,
3235,
2932,
2925,
358,
855,
913,
364,
14403,
3104,
73,
1769,
202,
202,
97,
202,
97,
2
] |
setEnabled(true); setToolTipText(null); | setEnabled(true); setToolTipText(null); | protected void configurePropertiesFromAction(Action action) { if (action != null) { setEnabled(action.isEnabled()); setToolTipText((String) action.getValue(Action.SHORT_DESCRIPTION)); } else { setEnabled(true); setToolTipText(null); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextField.java/clean/core/src/classpath/javax/javax/swing/JTextField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
5068,
2297,
1265,
1803,
12,
1803,
1301,
13,
225,
288,
565,
309,
261,
1128,
480,
446,
13,
1377,
288,
202,
542,
1526,
12,
1128,
18,
291,
1526,
10663,
202,
542,
29250,
1528,
12443,
780,
13,
1301,
18,
24805,
12,
1803,
18,
15993,
67,
15911,
10019,
1377,
289,
565,
469,
1377,
288,
202,
542,
1526,
12,
3767,
1769,
4202,
202,
542,
29250,
1528,
12,
2011,
1769,
1377,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5068,
2297,
1265,
1803,
12,
1803,
1301,
13,
225,
288,
565,
309,
261,
1128,
480,
446,
13,
1377,
288,
202,
542,
1526,
12,
1128,
18,
291,
1526,
10663,
202,
542,
29250,
1528,
12443,
780,
13,
1301,
18,
24805,
12,
1803,
18,
15993,
67,
15911,
10019,
1377,
289,
565,
469,
1377,
288,
202,
542,
1526,
12,
3767,
1769,
4202,
202,
542,
29250,
1528,
12,
2011,
1769,
1377,
289,
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
] |
/* Set table to point to this room */ table.set_room(this); | /* Set table to point to this room */ table.set_room(this); | void add_table(Table table) { log.fine("Adding table " + table.get_id()); /* Set table to point to this room */ table.set_room(this); /* Create the list if it doesn't exist yet */ if (this.tables == null) { this.tables = new ArrayList(); } this.tables.add(table); event(RoomEvent.GGZ_TABLE_UPDATE, null); } | 45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/23297b98c08218eabfb0ce50651df65538ee0abb/Room.java/buggy/java/src/ggz/client/core/Room.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
527,
67,
2121,
12,
1388,
1014,
13,
288,
202,
202,
1330,
18,
74,
558,
2932,
13962,
1014,
315,
397,
1014,
18,
588,
67,
350,
10663,
202,
202,
20308,
1000,
1014,
358,
1634,
358,
333,
7725,
1195,
202,
202,
2121,
18,
542,
67,
13924,
12,
2211,
1769,
202,
202,
20308,
1788,
326,
666,
309,
518,
3302,
1404,
1005,
4671,
1195,
202,
202,
430,
261,
2211,
18,
9373,
422,
446,
13,
288,
1082,
202,
2211,
18,
9373,
273,
394,
2407,
5621,
202,
202,
97,
202,
202,
2211,
18,
9373,
18,
1289,
12,
2121,
1769,
202,
202,
2575,
12,
13646,
1133,
18,
19491,
62,
67,
7775,
67,
8217,
16,
446,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
527,
67,
2121,
12,
1388,
1014,
13,
288,
202,
202,
1330,
18,
74,
558,
2932,
13962,
1014,
315,
397,
1014,
18,
588,
67,
350,
10663,
202,
202,
20308,
1000,
1014,
358,
1634,
358,
333,
7725,
1195,
202,
202,
2121,
18,
542,
67,
13924,
12,
2211,
1769,
202,
202,
20308,
1788,
326,
666,
309,
518,
3302,
1404,
1005,
4671,
1195,
202,
202,
430,
261,
2211,
18,
9373,
422,
446,
13,
288,
1082,
202,
2211,
18,
9373,
273,
394,
2407,
5621,
202,
202,
97,
202,
202,
2211,
18,
9373,
18,
1289,
12,
2121,
1769,
202,
202,
2575,
12,
13646,
1133,
18,
19491,
62,
67,
7775,
67,
8217,
16,
446,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
return BirtResources.getString( ResourceConstants.PARAMETER_DIALOG_TITLE ); | return BirtResources .getString( ResourceConstants.PARAMETER_DIALOG_TITLE ); | public String getTitle( ) { return BirtResources.getString( ResourceConstants.PARAMETER_DIALOG_TITLE ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/6f200516dd6e313325dd2c5637ad596549bf99c5/ParameterDialogFragment.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/dialog/ParameterDialogFragment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10786,
12,
262,
202,
95,
202,
202,
2463,
605,
2714,
3805,
18,
588,
780,
12,
2591,
2918,
18,
9819,
67,
2565,
18683,
67,
14123,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
514,
10786,
12,
262,
202,
95,
202,
202,
2463,
605,
2714,
3805,
18,
588,
780,
12,
2591,
2918,
18,
9819,
67,
2565,
18683,
67,
14123,
11272,
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 (extension != null) { | if ( extension != null && uri.indexOf( "." + extension + '?') == -1 ) { | public String getUriFromActionMapping(ActionMapping mapping) { StringBuffer uri = new StringBuffer(); uri.append(mapping.getNamespace()); if(!"/".equals(mapping.getNamespace())) { uri.append("/"); } uri.append(mapping.getName()); if (null != mapping.getMethod() && !"".equals(mapping.getMethod())) { uri.append("!").append(mapping.getMethod()); } String extension = getDefaultExtension(); if (extension != null) { uri.append(".").append(extension); } return uri.toString(); } | 22725 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22725/3eb8df091004f081e71592ce3b01549611859d31/DefaultActionMapper.java/buggy/src/java/com/opensymphony/webwork/dispatcher/mapper/DefaultActionMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
9713,
1265,
1803,
3233,
12,
1803,
3233,
2874,
13,
288,
3639,
6674,
2003,
273,
394,
6674,
5621,
3639,
2003,
18,
6923,
12,
6770,
18,
588,
3402,
10663,
3639,
309,
12,
4442,
4898,
18,
14963,
12,
6770,
18,
588,
3402,
1435,
3719,
288,
5411,
2003,
18,
6923,
2932,
4898,
1769,
3639,
289,
3639,
2003,
18,
6923,
12,
6770,
18,
17994,
10663,
7734,
309,
261,
2011,
480,
2874,
18,
588,
1305,
1435,
597,
401,
3660,
18,
14963,
12,
6770,
18,
588,
1305,
1435,
3719,
288,
5411,
2003,
18,
6923,
2932,
4442,
2934,
6923,
12,
6770,
18,
588,
1305,
10663,
3639,
289,
3639,
514,
2710,
273,
4829,
3625,
5621,
3639,
309,
261,
2710,
480,
446,
597,
2003,
18,
31806,
12,
4585,
397,
2710,
397,
6787,
13,
422,
300,
21,
225,
262,
288,
5411,
2003,
18,
6923,
2932,
1199,
2934,
6923,
12,
6447,
1769,
3639,
289,
3639,
327,
2003,
18,
10492,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
9713,
1265,
1803,
3233,
12,
1803,
3233,
2874,
13,
288,
3639,
6674,
2003,
273,
394,
6674,
5621,
3639,
2003,
18,
6923,
12,
6770,
18,
588,
3402,
10663,
3639,
309,
12,
4442,
4898,
18,
14963,
12,
6770,
18,
588,
3402,
1435,
3719,
288,
5411,
2003,
18,
6923,
2932,
4898,
1769,
3639,
289,
3639,
2003,
18,
6923,
12,
6770,
18,
17994,
10663,
7734,
309,
261,
2011,
480,
2874,
18,
588,
1305,
1435,
597,
401,
3660,
18,
14963,
12,
6770,
18,
588,
1305,
1435,
3719,
288,
5411,
2003,
18,
6923,
2932,
4442,
2934,
6923,
12,
6770,
18,
588,
1305,
10663,
3639,
289,
3639,
514,
2710,
273,
4829,
3625,
5621,
3639,
309,
261,
2710,
480,
446,
597,
2003,
18,
31806,
2
] |
MessageDialog.openError(Display.getDefault().getActiveShell(), "Report Download Failed", "Ensure proper repository configuration in " + TaskRepositoriesView.NAME + "."); } | ((ApplicationWindow) PlatformUI.getWorkbench().getActiveWorkbenchWindow()) .setStatus("Download of bug: " + bugzillaTask + " failed due to I/O exception"); } | public void run() { MessageDialog.openError(Display.getDefault().getActiveShell(), "Report Download Failed", "Ensure proper repository configuration in " + TaskRepositoriesView.NAME + "."); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3bf6adb12db8a09df2fa26add6a4af4dda9ac003/BugzillaRepositoryConnector.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
1079,
6353,
18,
3190,
668,
12,
4236,
18,
588,
1868,
7675,
588,
3896,
13220,
9334,
315,
4820,
13059,
11175,
3113,
6862,
1082,
202,
6,
12512,
5338,
3352,
1664,
316,
315,
397,
3837,
18429,
1767,
18,
1985,
397,
4585,
1769,
9506,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
1079,
6353,
18,
3190,
668,
12,
4236,
18,
588,
1868,
7675,
588,
3896,
13220,
9334,
315,
4820,
13059,
11175,
3113,
6862,
1082,
202,
6,
12512,
5338,
3352,
1664,
316,
315,
397,
3837,
18429,
1767,
18,
1985,
397,
4585,
1769,
9506,
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
] |
new JarOptionsDialog(MainFrame.this, MainFrame.this.getModel()).setVisible(true); | initJarOptionsDialog(); _jarOptionsDialog.setVisible(true); | public void actionPerformed(ActionEvent ae) { new SwingWorker() { public Object construct() { new JarOptionsDialog(MainFrame.this, MainFrame.this.getModel()).setVisible(true); return null; } }.start(); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/7fcdc5820c7f1c50a17a282e38bc904783e87e7f/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
1377,
394,
26145,
6671,
1435,
288,
3639,
1071,
1033,
4872,
1435,
288,
1850,
1208,
10813,
1320,
6353,
5621,
389,
11930,
1320,
6353,
18,
542,
6207,
12,
3767,
1769,
1850,
327,
446,
31,
3639,
289,
1377,
289,
18,
1937,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26100,
12,
1803,
1133,
14221,
13,
288,
1377,
394,
26145,
6671,
1435,
288,
3639,
1071,
1033,
4872,
1435,
288,
1850,
1208,
10813,
1320,
6353,
5621,
389,
11930,
1320,
6353,
18,
542,
6207,
12,
3767,
1769,
1850,
327,
446,
31,
3639,
289,
1377,
289,
18,
1937,
5621,
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
] |
VALUE rb_str_new(String s, int len) { | RubyObject rb_str_new(String s, int len) { | VALUE rb_str_new(String s, int len) { return new RubyString(ruby, s.substring(0, len)); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
19817,
921,
7138,
67,
701,
67,
2704,
12,
780,
272,
16,
509,
562,
13,
288,
3639,
327,
394,
19817,
780,
12,
27768,
16,
272,
18,
28023,
12,
20,
16,
562,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
19817,
921,
7138,
67,
701,
67,
2704,
12,
780,
272,
16,
509,
562,
13,
288,
3639,
327,
394,
19817,
780,
12,
27768,
16,
272,
18,
28023,
12,
20,
16,
562,
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
] |
public ExprVec checkGuardedVec(FieldDecl fd) { ExprVec g = ExprVec.make(); guardDecoration.set(fd, g); TypeSig s = TypeSig.getSig(fd.parent); Assert.precondition(s.state >= TypeSig.PREPPED); // Set up variables for entire traversal sig = s; rootSEnv = makeEnvForTypeSig(s, true); //@ nowarn Invariant rootIEnv = makeEnvForTypeSig(s, false); //@ nowarn Invariant boolean staticContext = Modifiers.isStatic(fd.modifiers); // 10/28 Env env = addGhosts(sig, staticContext ? rootSEnv : rootIEnv); TypeDecl d = s.getTypeDecl(); // Process ModifierPragmas checkModifierPragmaVec( d.pmodifiers, d, env ); super.checkModifierPragmaVec( fd.pmodifiers, fd, env ); if (rcc.Main.prg) { if (checkDuplicateExpressions(g)) { ErrorMsg.print(sig, "Modifiers", fd.getStartLoc(),"field '"+fd.id+"' has redundant guard annotations. Guards are: '" + PrettyPrint.inst.toString(g)+"'", Location.NULL); } } return g; } | 46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/da3049db1eb4330268b3c4bcabb61e7ecd42804f/FlowInsensitiveChecks.java/buggy/src/escjava/trunk/ESCTools/Rcc/java/rcc/tc/FlowInsensitiveChecks.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8074,
12991,
225,
866,
6099,
17212,
12991,
12,
974,
3456,
5194,
13,
288,
3639,
8074,
12991,
314,
273,
8074,
12991,
18,
6540,
5621,
3639,
11026,
7859,
367,
18,
542,
12,
8313,
16,
314,
1769,
3639,
1412,
8267,
272,
273,
1412,
8267,
18,
588,
8267,
12,
8313,
18,
2938,
1769,
7734,
5452,
18,
1484,
4175,
12,
87,
18,
2019,
1545,
1412,
8267,
18,
3670,
52,
12120,
1769,
4766,
3639,
368,
1000,
731,
3152,
364,
7278,
15940,
3639,
3553,
273,
272,
31,
3639,
1365,
55,
3491,
273,
1221,
3491,
22405,
8267,
12,
87,
16,
638,
1769,
3639,
23834,
2037,
1303,
657,
8688,
3639,
1365,
45,
3491,
273,
1221,
3491,
22405,
8267,
12,
87,
16,
629,
1769,
3639,
23834,
2037,
1303,
657,
8688,
3639,
1250,
760,
1042,
273,
3431,
3383,
18,
291,
5788,
12,
8313,
18,
15432,
1769,
368,
1728,
19,
6030,
3639,
5266,
1550,
273,
527,
43,
11588,
12,
7340,
16,
760,
1042,
692,
1365,
55,
3491,
294,
1365,
45,
3491,
1769,
3639,
1412,
3456,
302,
273,
272,
18,
588,
559,
3456,
5621,
3639,
368,
4389,
12832,
2050,
346,
15260,
3639,
866,
9829,
2050,
9454,
12991,
12,
302,
18,
84,
15432,
16,
302,
16,
1550,
11272,
3639,
2240,
18,
1893,
9829,
2050,
9454,
12991,
12,
5194,
18,
84,
15432,
16,
5194,
16,
1550,
11272,
7734,
309,
261,
86,
952,
18,
6376,
18,
683,
75,
13,
288,
5411,
309,
261,
1893,
11826,
8927,
12,
75,
3719,
288,
7734,
1068,
3332,
18,
1188,
12,
7340,
16,
315,
11948,
3113,
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,
8074,
12991,
225,
866,
6099,
17212,
12991,
12,
974,
3456,
5194,
13,
288,
3639,
8074,
12991,
314,
273,
8074,
12991,
18,
6540,
5621,
3639,
11026,
7859,
367,
18,
542,
12,
8313,
16,
314,
1769,
3639,
1412,
8267,
272,
273,
1412,
8267,
18,
588,
8267,
12,
8313,
18,
2938,
1769,
7734,
5452,
18,
1484,
4175,
12,
87,
18,
2019,
1545,
1412,
8267,
18,
3670,
52,
12120,
1769,
4766,
3639,
368,
1000,
731,
3152,
364,
7278,
15940,
3639,
3553,
273,
272,
31,
3639,
1365,
55,
3491,
273,
1221,
3491,
22405,
8267,
12,
87,
16,
638,
1769,
3639,
23834,
2037,
1303,
657,
8688,
3639,
1365,
45,
3491,
273,
1221,
3491,
22405,
8267,
12,
87,
16,
629,
1769,
3639,
23834,
2037,
2
] | ||
name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; | String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/052726b68e684efc593535d50a73767571084837/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2146,
16,
15261,
16,
833,
16,
2295,
1162,
3651,
16,
326,
751,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
18701,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
6148,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
3639,
727,
509,
15234,
67,
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,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2
] |
String identifier = HTMLDecoder.decode(request.getParam("identifier")); | String identifier = request.getParam("identifier"); | public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { HTTPRequest request = new HTTPRequest(uri, data, ctx); try { if ((data.size() > 1024 * 1024) && (request.getPartAsString("insert", 128).length() == 0)) { this.writeReply(ctx, 400, "text/plain", "Too big", "Data exceeds 1MB limit"); return; } String pass = request.getParam("formPassword"); if (pass.length() == 0) { pass = request.getPartAsString("formPassword", 128); } if ((pass.length() == 0) || !pass.equals(node.formPassword)) { MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/queue/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } if(request.isParameterSet("remove_request") && (request.getParam("remove_request").length() > 0)) { String identifier = HTMLDecoder.decode(request.getParam("identifier")); Logger.minor(this, "Removing "+identifier); try { fcp.removeGlobalRequest(identifier); } catch (MessageInvalidException e) { this.sendErrorPage(ctx, 200, "Failed to remove request", "Failed to remove "+HTMLEncoder.encode(identifier)+" : "+HTMLEncoder.encode(e.getMessage())); } writePermanentRedirect(ctx, "Done", "/queue/"); return; }else if(request.isParameterSet("remove_AllRequests") && (request.getParam("remove_AllRequests").length() > 0)) { ClientRequest[] reqs = fcp.getGlobalRequests(); Logger.minor(this, "Request count: "+reqs.length); for(int i=0; i<reqs.length ; i++){ String identifier = HTMLDecoder.decode(reqs[i].getIdentifier()); Logger.minor(this, "Removing "+identifier); try { fcp.removeGlobalRequest(identifier); } catch (MessageInvalidException e) { this.sendErrorPage(ctx, 200, "Failed to remove request", "Failed to remove "+HTMLEncoder.encode(identifier)+" : "+HTMLEncoder.encode(e.getMessage())); } } writePermanentRedirect(ctx, "Done", "/queue/"); return; }else if(request.isParameterSet("download")) { // Queue a download if(!request.isParameterSet("key")) { writeError("No key specified to download", "You did not specify a key to download.", ctx); return; } String expectedMIMEType = null; if(request.isParameterSet("type")) { expectedMIMEType = request.getParam("type"); } FreenetURI fetchURI; try { fetchURI = new FreenetURI(HTMLDecoder.decode(request.getParam("key"))); } catch (MalformedURLException e) { writeError("Invalid URI to download", "The URI is invalid and can not be downloaded.", ctx); return; } String persistence = request.getParam("persistence"); String returnType = request.getParam("return-type"); fcp.makePersistentGlobalRequest(fetchURI, expectedMIMEType, persistence, returnType); writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.isParameterSet("change_priority")) { String identifier = HTMLDecoder.decode(request.getParam("identifier")); short newPriority = Short.parseShort(request.getParam("priority")); ClientRequest[] clientRequests = fcp.getGlobalRequests(); for (int requestIndex = 0, requestCount = clientRequests.length; requestIndex < requestCount; requestIndex++) { ClientRequest clientRequest = clientRequests[requestIndex]; if (clientRequest.getIdentifier().equals(identifier)) { clientRequest.setPriorityClass(newPriority); } } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.getPartAsString("insert", 128).length() > 0) { FreenetURI insertURI; String keyType = request.getPartAsString("keytype", 3); if ("chk".equals(keyType)) { insertURI = new FreenetURI("CHK@"); } else if ("ksk".equals(keyType)) { try { insertURI = new FreenetURI(HTMLDecoder.decode(request.getPartAsString("key", 128))); } catch (MalformedURLException mue1) { writeError("Invalid URI to insert", "You did not specify a valid URI to insert the file to.", ctx); return; } } else { writeError("Invalid URI to insert", "You fooled around with the POST request. Shame on you.", ctx); return; } HTTPRequest.File file = request.getUploadedFile("filename"); if (file.getFilename().trim().length() == 0) { writeError("No file selected", "You did not select a file to upload.", ctx); return; } boolean dontCompress = request.getPartAsString("dontCompress", 128).length() > 0; String identifier = file.getFilename() + "-fred-" + System.currentTimeMillis(); /* copy bucket data */ Bucket copiedBucket = node.persistentEncryptedTempBucketFactory.makeBucket(file.getData().size()); BucketTools.copy(file.getData(), copiedBucket); try { ClientPut clientPut = new ClientPut(fcp.getGlobalClient(), insertURI, identifier, Integer.MAX_VALUE, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, ClientRequest.PERSIST_FOREVER, null, false, dontCompress, -1, ClientPutMessage.UPLOAD_FROM_DIRECT, new File(file.getFilename()), file.getContentType(), copiedBucket, null); clientPut.start(); fcp.forceStorePersistentRequests(); } catch (IdentifierCollisionException e) { e.printStackTrace(); } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.isParameterSet("insert-local")) { String filename = request.getParam("filename"); try { filename = new String(filename.getBytes("ISO-8859-1"), "UTF-8"); } catch (Throwable t) { } File file = new File(filename); String identifier = file.getName() + "-fred-" + System.currentTimeMillis(); String contentType = DefaultMIMETypes.guessMIMEType(filename); try { ClientPut clientPut = new ClientPut(fcp.getGlobalClient(), new FreenetURI("CHK@"), identifier, Integer.MAX_VALUE, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, ClientRequest.PERSIST_FOREVER, null, false, false, -1, ClientPutMessage.UPLOAD_FROM_DISK, file, contentType, new FileBucket(file, true, false, false, false), null); clientPut.start(); fcp.forceStorePersistentRequests(); } catch (IdentifierCollisionException e) { e.printStackTrace(); } writePermanentRedirect(ctx, "Done", "/queue/"); return; } } finally { request.freeParts(); } this.handleGet(uri, ctx); } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/144c6fa8b4af3023cb6f0c50203b29af750a73e7/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
501,
16,
1103,
1769,
202,
202,
698,
288,
1082,
202,
430,
14015,
892,
18,
1467,
1435,
405,
6250,
380,
6250,
13,
597,
261,
2293,
18,
588,
1988,
8092,
2932,
6387,
3113,
8038,
2934,
2469,
1435,
422,
374,
3719,
288,
9506,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
751,
14399,
404,
7969,
1800,
8863,
9506,
202,
2463,
31,
1082,
202,
97,
9506,
202,
780,
1342,
273,
590,
18,
588,
786,
2932,
687,
3913,
8863,
1082,
202,
430,
261,
5466,
18,
2469,
1435,
422,
374,
13,
288,
9506,
202,
5466,
273,
590,
18,
588,
1988,
8092,
2932,
687,
3913,
3113,
8038,
1769,
1082,
202,
97,
1082,
202,
430,
14015,
5466,
18,
2469,
1435,
422,
374,
13,
747,
401,
5466,
18,
14963,
12,
2159,
18,
687,
3913,
3719,
288,
9506,
202,
5002,
620,
1388,
1607,
273,
394,
5991,
620,
1388,
5621,
9506,
202,
2485,
18,
458,
2932,
2735,
3113,
2206,
4000,
4898,
1769,
9506,
202,
5900,
18,
4661,
7817,
3121,
12,
23,
3103,
16,
315,
2043,
3113,
1607,
16,
446,
16,
374,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
12,
2293,
18,
291,
1662,
694,
2932,
4479,
67,
2293,
7923,
597,
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,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
501,
16,
1103,
1769,
202,
202,
698,
288,
1082,
202,
430,
14015,
892,
18,
1467,
1435,
405,
6250,
380,
6250,
13,
597,
261,
2293,
18,
588,
1988,
8092,
2932,
6387,
3113,
8038,
2934,
2469,
1435,
422,
374,
3719,
288,
9506,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
751,
14399,
404,
7969,
1800,
8863,
9506,
202,
2463,
31,
1082,
202,
97,
9506,
202,
780,
1342,
2
] |
final boolean isSubUnit= rewrite.getCu().equals(unit.getPrimary()); if (isSubUnit) currentRewrite= rewrite; | final CompilationUnitRewrite existingRewrite= (CompilationUnitRewrite) fCompilationUnitRewrites.get(unit.getPrimary()); final boolean isTouched= existingRewrite != null; if (isTouched) currentRewrite= existingRewrite; | protected void rewriteTypeOccurrences(final TextChangeManager manager, final ASTRequestor requestor, final CompilationUnitRewrite rewrite, final ICompilationUnit unit, final CompilationUnit node, final Set replacements) throws CoreException { CompilationUnitRewrite currentRewrite= null; // TODO: Is this check valid? final boolean isSubUnit= rewrite.getCu().equals(unit.getPrimary()); if (isSubUnit) currentRewrite= rewrite; else currentRewrite= new CompilationUnitRewrite(fOwner, unit, node); final Collection collection= (Collection) fTypeOccurrences.get(unit); if (collection != null && !collection.isEmpty()) { TType estimate= null; ISourceConstraintVariable variable= null; ITypeConstraintVariable constraint= null; for (final Iterator iterator= collection.iterator(); iterator.hasNext();) { variable= (ISourceConstraintVariable) iterator.next(); if (variable instanceof ITypeConstraintVariable) { constraint= (ITypeConstraintVariable) variable; estimate= (TType) constraint.getData(SuperTypeConstraintsSolver.DATA_TYPE_ESTIMATE); if (estimate != null) { final CompilationUnitRange range= constraint.getRange(); if (isSubUnit) rewriteTypeOccurrence(range, estimate, requestor, currentRewrite, node, replacements, currentRewrite.createCategorizedGroupDescription(RefactoringCoreMessages.SuperTypeRefactoringProcessor_update_type_occurrence, SET_SUPER_TYPE)); else { final ASTNode result= NodeFinder.perform(node, range.getSourceRange()); if (result != null) rewriteTypeOccurrence(estimate, currentRewrite, result, currentRewrite.createCategorizedGroupDescription(RefactoringCoreMessages.SuperTypeRefactoringProcessor_update_type_occurrence, SET_SUPER_TYPE)); } } } } } if (!isSubUnit) { final TextChange change= currentRewrite.createChange(); if (change != null) manager.manage(unit, change); } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/02a4b41f40b2ec9c37f185ccfe5cfa3af140ac61/PullUpRefactoringProcessor.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
10738,
559,
12397,
12228,
12,
6385,
3867,
3043,
1318,
3301,
16,
727,
9183,
691,
280,
590,
280,
16,
727,
22416,
2802,
19618,
10738,
16,
727,
467,
19184,
2802,
2836,
16,
727,
22416,
2802,
756,
16,
727,
1000,
11413,
13,
1216,
30015,
288,
202,
202,
19184,
2802,
19618,
783,
19618,
33,
446,
31,
202,
202,
759,
2660,
30,
2585,
333,
866,
923,
35,
202,
202,
6385,
1250,
16523,
2802,
33,
10738,
18,
588,
39,
89,
7675,
14963,
12,
4873,
18,
588,
6793,
10663,
202,
202,
430,
261,
291,
1676,
2802,
13,
1082,
202,
2972,
19618,
33,
10738,
31,
202,
202,
12107,
1082,
202,
2972,
19618,
33,
394,
22416,
2802,
19618,
12,
74,
5541,
16,
2836,
16,
756,
1769,
202,
202,
6385,
2200,
1849,
33,
261,
2532,
13,
284,
559,
12397,
12228,
18,
588,
12,
4873,
1769,
202,
202,
430,
261,
5548,
480,
446,
597,
401,
5548,
18,
291,
1921,
10756,
288,
1082,
202,
56,
559,
11108,
33,
446,
31,
1082,
202,
45,
1830,
5806,
3092,
2190,
33,
446,
31,
1082,
202,
45,
559,
5806,
3092,
4954,
33,
446,
31,
1082,
202,
1884,
261,
6385,
4498,
2775,
33,
1849,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
9506,
202,
6105,
33,
261,
45,
1830,
5806,
3092,
13,
2775,
18,
4285,
5621,
9506,
202,
430,
261,
6105,
1276,
467,
559,
5806,
3092,
13,
288,
6862,
202,
13364,
33,
261,
45,
559,
5806,
3092,
13,
2190,
31,
6862,
202,
23562,
33,
261,
56,
559,
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,
225,
202,
1117,
918,
10738,
559,
12397,
12228,
12,
6385,
3867,
3043,
1318,
3301,
16,
727,
9183,
691,
280,
590,
280,
16,
727,
22416,
2802,
19618,
10738,
16,
727,
467,
19184,
2802,
2836,
16,
727,
22416,
2802,
756,
16,
727,
1000,
11413,
13,
1216,
30015,
288,
202,
202,
19184,
2802,
19618,
783,
19618,
33,
446,
31,
202,
202,
759,
2660,
30,
2585,
333,
866,
923,
35,
202,
202,
6385,
1250,
16523,
2802,
33,
10738,
18,
588,
39,
89,
7675,
14963,
12,
4873,
18,
588,
6793,
10663,
202,
202,
430,
261,
291,
1676,
2802,
13,
1082,
202,
2972,
19618,
33,
10738,
31,
202,
202,
12107,
1082,
202,
2972,
19618,
33,
394,
22416,
2802,
19618,
12,
74,
5541,
16,
2836,
16,
2
] |
reportSchemaError("s4s-elt-must-match", new Object[]{"identity constraint", "(annotation?, selector, field+)"}, sElem); | reportSchemaError("s4s-elt-must-match.2", new Object[]{"identity constraint", "(annotation?, selector, field+)"}, sElem); | void traverseIdentityConstraint(IdentityConstraint ic, Element icElem, XSDocumentInfo schemaDoc, Object [] icElemAttrs) { // General Attribute Checking will have been done on icElem by caller // check for <annotation> and get selector Element sElem = DOMUtil.getFirstChildElement(icElem); if(sElem == null) { reportSchemaError("s4s-elt-must-match", new Object[]{"identity constraint", "(annotation?, selector, field+)"}, icElem); return; } // General Attribute Checking on sElem // first child could be an annotation if (DOMUtil.getLocalName(sElem).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(sElem, icElemAttrs, false, schemaDoc); sElem = DOMUtil.getNextSiblingElement(sElem); } // if no more children report an error if(sElem == null) { reportSchemaError("s4s-elt-must-match", new Object[]{"identity constraint", "(annotation?, selector, field+)"}, icElem); return; } Object [] attrValues = fAttrChecker.checkAttributes(sElem, false, schemaDoc); // if more than one annotation report an error if(!DOMUtil.getLocalName(sElem).equals(SchemaSymbols.ELT_SELECTOR)) { reportSchemaError("s4s-elt-must-match", new Object[]{"identity constraint", "(annotation?, selector, field+)"}, sElem); } // and make sure <selector>'s content is fine: Element selChild = DOMUtil.getFirstChildElement(sElem); if (selChild !=null) { // traverse annotation if any if (DOMUtil.getLocalName(selChild).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(selChild, attrValues, false, schemaDoc); selChild = DOMUtil.getNextSiblingElement(selChild); } else { reportSchemaError("s4s-elt-must-match", new Object[]{"identity constraint", "(annotation?, selector, field+)"}, selChild); } if (selChild != null) { reportSchemaError("src-identity-constraint.1", new Object [] {icElemAttrs[XSAttributeChecker.ATTIDX_NAME]}, selChild); } } String sText = ((String)attrValues[XSAttributeChecker.ATTIDX_XPATH]); if(sText == null) { reportSchemaError("s4s-att-must-appear", new Object [] {SchemaSymbols.ELT_SELECTOR, SchemaSymbols.ATT_XPATH}, sElem); return; } sText = sText.trim(); Selector.XPath sXpath = null; try { sXpath = new Selector.XPath(sText, fSymbolTable, schemaDoc.fNamespaceSupport); Selector selector = new Selector(sXpath, ic); ic.setSelector(selector); } catch (XPathException e) { reportSchemaError(e.getKey(), new Object[]{sText}, sElem); // put back attr values... fAttrChecker.returnAttrArray(attrValues, schemaDoc); return; } // put back attr values... fAttrChecker.returnAttrArray(attrValues, schemaDoc); // get fields Element fElem = DOMUtil.getNextSiblingElement(sElem); if(fElem == null) { reportSchemaError("s4s-elt-must-match", new Object[]{"identity constraint", "(annotation?, selector, field+)"}, sElem); } while (fElem != null) { // General Attribute Checking attrValues = fAttrChecker.checkAttributes(fElem, false, schemaDoc); if(!DOMUtil.getLocalName(fElem).equals(SchemaSymbols.ELT_FIELD)) reportSchemaError("s4s-elt-must-match", new Object[]{"identity constraint", "(annotation?, selector, field+)"}, fElem); // and make sure <field>'s content is fine: Element fieldChild = DOMUtil.getFirstChildElement(fElem); if (fieldChild != null) { // traverse annotation if (DOMUtil.getLocalName(fieldChild).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(fieldChild, attrValues, false, schemaDoc); fieldChild = DOMUtil.getNextSiblingElement(fieldChild); } } if (fieldChild != null) { reportSchemaError("src-identity-constraint.1", new Object [] {icElemAttrs[XSAttributeChecker.ATTIDX_NAME]}, fieldChild); } String fText = ((String)attrValues[XSAttributeChecker.ATTIDX_XPATH]); if(fText == null) { reportSchemaError("s4s-att-must-appear", new Object [] {SchemaSymbols.ELT_FIELD, SchemaSymbols.ATT_XPATH}, fElem); return; } fText = fText.trim(); try { Field.XPath fXpath = new Field.XPath(fText, fSymbolTable, schemaDoc.fNamespaceSupport); Field field = new Field(fXpath, ic); ic.addField(field); } catch (XPathException e) { reportSchemaError(e.getKey(), new Object[]{fText}, fElem); // put back attr values... fAttrChecker.returnAttrArray(attrValues, schemaDoc); return; } fElem = DOMUtil.getNextSiblingElement(fElem); // put back attr values... fAttrChecker.returnAttrArray(attrValues, schemaDoc); } } // traverseIdentityConstraint(IdentityConstraint,Element, XSDocumentInfo) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/08452497d5ddc107ce0c88dafa4af418a8162487/XSDAbstractIDConstraintTraverser.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDAbstractIDConstraintTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
10080,
4334,
5806,
12,
4334,
5806,
13579,
16,
5411,
3010,
13579,
7498,
16,
1139,
55,
2519,
966,
1963,
1759,
16,
1033,
5378,
13579,
7498,
8262,
13,
288,
3639,
368,
9544,
3601,
24471,
903,
1240,
2118,
2731,
603,
13579,
7498,
635,
4894,
3639,
368,
866,
364,
411,
11495,
34,
471,
336,
3451,
3639,
3010,
272,
7498,
273,
4703,
1304,
18,
588,
3759,
1763,
1046,
12,
335,
7498,
1769,
3639,
309,
12,
87,
7498,
422,
446,
13,
288,
5411,
2605,
3078,
668,
2932,
87,
24,
87,
17,
20224,
17,
11926,
17,
1916,
3113,
17311,
394,
1033,
63,
7073,
6,
10781,
4954,
3113,
7751,
11495,
35,
16,
3451,
16,
652,
15,
2225,
5779,
17311,
13579,
7498,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
9544,
3601,
24471,
603,
272,
7498,
3639,
368,
1122,
1151,
3377,
506,
392,
3204,
3639,
309,
261,
8168,
1304,
18,
588,
29583,
12,
87,
7498,
2934,
14963,
12,
3078,
14821,
18,
2247,
56,
67,
24922,
3719,
288,
5411,
10080,
3257,
3456,
12,
87,
7498,
16,
13579,
7498,
8262,
16,
629,
16,
1963,
1759,
1769,
5411,
272,
7498,
273,
4703,
1304,
18,
588,
2134,
10291,
1046,
12,
87,
7498,
1769,
3639,
289,
3639,
368,
309,
1158,
1898,
2325,
2605,
392,
555,
3639,
309,
12,
87,
7498,
422,
446,
13,
288,
5411,
2605,
3078,
668,
2932,
87,
24,
87,
17,
20224,
17,
11926,
17,
1916,
3113,
394,
1033,
63,
7073,
6,
10781,
4954,
3113,
7751,
11495,
35,
16,
3451,
16,
652,
15,
2225,
5779,
13579,
7498,
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,
10080,
4334,
5806,
12,
4334,
5806,
13579,
16,
5411,
3010,
13579,
7498,
16,
1139,
55,
2519,
966,
1963,
1759,
16,
1033,
5378,
13579,
7498,
8262,
13,
288,
3639,
368,
9544,
3601,
24471,
903,
1240,
2118,
2731,
603,
13579,
7498,
635,
4894,
3639,
368,
866,
364,
411,
11495,
34,
471,
336,
3451,
3639,
3010,
272,
7498,
273,
4703,
1304,
18,
588,
3759,
1763,
1046,
12,
335,
7498,
1769,
3639,
309,
12,
87,
7498,
422,
446,
13,
288,
5411,
2605,
3078,
668,
2932,
87,
24,
87,
17,
20224,
17,
11926,
17,
1916,
3113,
17311,
394,
1033,
63,
7073,
6,
10781,
4954,
3113,
7751,
11495,
35,
16,
3451,
16,
652,
15,
2225,
5779,
17311,
13579,
7498,
1769,
5411,
327,
31,
2
] |
void moveToNoCheck ( Xobj x, int p ) { if (_state == EMBEDDED && x != _xobj) { _xobj._embedded = listRemove( _xobj._embedded ); _locale._registered = listInsert( _locale._registered ); _state = REGISTERED; } _xobj = x; _pos = p; } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/1be242f8d9d59b11549779cf24462c628e5a0f51/Cur.java/clean/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cur.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
13863,
2279,
1564,
261,
1139,
2603,
619,
16,
509,
293,
262,
565,
288,
3639,
309,
261,
67,
2019,
422,
7141,
22235,
7660,
597,
619,
480,
389,
92,
2603,
13,
3639,
288,
5411,
389,
92,
2603,
6315,
20722,
273,
666,
3288,
12,
389,
92,
2603,
6315,
20722,
11272,
5411,
389,
6339,
6315,
14327,
273,
666,
4600,
12,
389,
6339,
6315,
14327,
11272,
5411,
389,
2019,
273,
11980,
19957,
2056,
31,
3639,
289,
7734,
389,
92,
2603,
273,
619,
31,
3639,
389,
917,
273,
293,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
13863,
2279,
1564,
261,
1139,
2603,
619,
16,
509,
293,
262,
565,
288,
3639,
309,
261,
67,
2019,
422,
7141,
22235,
7660,
597,
619,
480,
389,
92,
2603,
13,
3639,
288,
5411,
389,
92,
2603,
6315,
20722,
273,
666,
3288,
12,
389,
92,
2603,
6315,
20722,
11272,
5411,
389,
6339,
6315,
14327,
273,
666,
4600,
12,
389,
6339,
6315,
14327,
11272,
5411,
389,
2019,
273,
11980,
19957,
2056,
31,
3639,
289,
7734,
389,
92,
2603,
273,
619,
31,
3639,
389,
917,
273,
293,
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
] | ||
System.arraycopy(this.withoutUnicodeBuffer, 1, this.completionIdentifier = new char[this.withoutUnicodePtr], 0, this.withoutUnicodePtr); | int length = this.cursorLocation + 1 - this.startPosition - this.unicodeCharSize; System.arraycopy(this.withoutUnicodeBuffer, 1, this.completionIdentifier = new char[length], 0, length); | public char[] getCurrentIdentifierSource() { if (this.completionIdentifier == null){ if (this.cursorLocation < this.startPosition && this.currentPosition == this.startPosition){ // fake empty identifier got issued // remember actual identifier positions this.completedIdentifierStart = this.startPosition; this.completedIdentifierEnd = this.completedIdentifierStart - 1; return this.completionIdentifier = EmptyCompletionIdentifier; } if (this.cursorLocation+1 >= this.startPosition && this.cursorLocation < this.currentPosition){ // remember actual identifier positions this.completedIdentifierStart = this.startPosition; this.completedIdentifierEnd = this.currentPosition - 1; if (this.withoutUnicodePtr != 0){ // check unicode scenario System.arraycopy(this.withoutUnicodeBuffer, 1, this.completionIdentifier = new char[this.withoutUnicodePtr], 0, this.withoutUnicodePtr); } else { int length = this.cursorLocation + 1 - this.startPosition; // no char[] sharing around completionIdentifier, we want it to be unique so as to use identity checks System.arraycopy(this.source, this.startPosition, (this.completionIdentifier = new char[length]), 0, length); } return this.completionIdentifier; } } return super.getCurrentIdentifierSource();} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/6ac711ffe783cf5d3cc0858a241df9f5f87b2270/CompletionScanner.java/buggy/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1149,
8526,
5175,
3004,
1830,
1435,
288,
202,
430,
261,
2211,
18,
11469,
3004,
422,
446,
15329,
202,
202,
430,
261,
2211,
18,
9216,
2735,
411,
333,
18,
1937,
2555,
597,
333,
18,
2972,
2555,
422,
333,
18,
1937,
2555,
15329,
368,
10517,
1008,
2756,
2363,
16865,
1082,
202,
759,
11586,
3214,
2756,
6865,
1082,
202,
2211,
18,
13615,
3004,
1685,
273,
333,
18,
1937,
2555,
31,
1082,
202,
2211,
18,
13615,
3004,
1638,
273,
333,
18,
13615,
3004,
1685,
300,
404,
31,
25083,
202,
2463,
333,
18,
11469,
3004,
273,
8953,
11238,
3004,
31,
6862,
1082,
202,
97,
202,
202,
430,
261,
2211,
18,
9216,
2735,
15,
21,
1545,
333,
18,
1937,
2555,
597,
333,
18,
9216,
2735,
411,
333,
18,
2972,
2555,
15329,
1082,
202,
759,
11586,
3214,
2756,
6865,
1082,
202,
2211,
18,
13615,
3004,
1685,
273,
333,
18,
1937,
2555,
31,
1082,
202,
2211,
18,
13615,
3004,
1638,
273,
333,
18,
2972,
2555,
300,
404,
31,
1082,
202,
430,
261,
2211,
18,
13299,
16532,
5263,
480,
374,
15329,
1082,
202,
759,
866,
5252,
10766,
9506,
202,
3163,
18,
1126,
3530,
12,
2211,
18,
13299,
16532,
1892,
16,
404,
16,
333,
18,
11469,
3004,
273,
394,
1149,
63,
2211,
18,
13299,
16532,
5263,
6487,
374,
16,
333,
18,
13299,
16532,
5263,
1769,
1082,
202,
97,
469,
288,
9506,
202,
474,
769,
273,
333,
18,
9216,
2735,
397,
404,
300,
333,
18,
1937,
2555,
31,
9506,
202,
759,
1158,
1149,
8526,
21001,
6740,
8364,
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,
1149,
8526,
5175,
3004,
1830,
1435,
288,
202,
430,
261,
2211,
18,
11469,
3004,
422,
446,
15329,
202,
202,
430,
261,
2211,
18,
9216,
2735,
411,
333,
18,
1937,
2555,
597,
333,
18,
2972,
2555,
422,
333,
18,
1937,
2555,
15329,
368,
10517,
1008,
2756,
2363,
16865,
1082,
202,
759,
11586,
3214,
2756,
6865,
1082,
202,
2211,
18,
13615,
3004,
1685,
273,
333,
18,
1937,
2555,
31,
1082,
202,
2211,
18,
13615,
3004,
1638,
273,
333,
18,
13615,
3004,
1685,
300,
404,
31,
25083,
202,
2463,
333,
18,
11469,
3004,
273,
8953,
11238,
3004,
31,
6862,
1082,
202,
97,
202,
202,
430,
261,
2211,
18,
9216,
2735,
15,
21,
1545,
333,
18,
1937,
2555,
597,
333,
18,
9216,
2
] |
boolean retValue = canContainInRom( slotId, defn ); if ( !retValue ) | if ( !canContainTemplateElement( module, slotId, element ) ) | public final boolean canContain( Module module, int slotId, IElementDefn defn ) { assert defn != null; boolean retValue = canContainInRom( slotId, defn ); if ( !retValue ) return false; // if the root of element is included by report/library. Do not allow // drop. if ( isRootIncludedByModule( ) ) return false; if ( !canContainTemplateElement( module, slotId, defn ) ) return false; // Can not change structure of child element or a virtual element( // inside the child ). if ( isVirtualElement( ) || getExtendsName( ) != null ) return false; // special cases check table header containment. DesignElement tmpContainer = this; while ( tmpContainer != null ) { if ( tmpContainer instanceof ListingElement || tmpContainer instanceof MasterPage ) { List errors = tmpContainer.checkContent( module, this, slotId, defn ); return errors.isEmpty( ); } tmpContainer = tmpContainer.getContainer( ); } return retValue; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/13807447c2b92e5c2c0d1067fa8f2de960030f4b/DesignElement.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
848,
22928,
12,
5924,
1605,
16,
509,
4694,
548,
16,
1082,
202,
45,
1046,
3262,
82,
1652,
82,
262,
202,
95,
202,
202,
11231,
1652,
82,
480,
446,
31,
202,
202,
6494,
21236,
273,
848,
22928,
382,
54,
362,
12,
4694,
548,
16,
1652,
82,
11272,
202,
202,
430,
261,
401,
1349,
620,
262,
1082,
202,
2463,
629,
31,
202,
202,
759,
309,
326,
1365,
434,
930,
353,
5849,
635,
2605,
19,
12083,
18,
2256,
486,
1699,
202,
202,
759,
3640,
18,
202,
202,
430,
261,
19371,
19323,
858,
3120,
12,
262,
262,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
401,
4169,
22928,
2283,
1046,
12,
1605,
16,
4694,
548,
16,
1652,
82,
262,
262,
1082,
202,
2463,
629,
31,
202,
202,
759,
4480,
486,
2549,
3695,
434,
1151,
930,
578,
279,
5024,
930,
12,
202,
202,
759,
4832,
326,
1151,
262,
18,
202,
202,
430,
261,
353,
6466,
1046,
12,
262,
747,
336,
19581,
461,
12,
262,
480,
446,
262,
1082,
202,
2463,
629,
31,
202,
202,
759,
4582,
6088,
866,
1014,
1446,
912,
475,
18,
202,
202,
15478,
1046,
1853,
2170,
273,
333,
31,
202,
202,
17523,
261,
1853,
2170,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
1853,
2170,
1276,
987,
310,
1046,
6862,
202,
20081,
1853,
2170,
1276,
13453,
1964,
262,
1082,
202,
95,
9506,
202,
682,
1334,
273,
1853,
2170,
18,
1893,
1350,
12,
1605,
16,
333,
16,
4694,
548,
16,
25083,
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,
1250,
848,
22928,
12,
5924,
1605,
16,
509,
4694,
548,
16,
1082,
202,
45,
1046,
3262,
82,
1652,
82,
262,
202,
95,
202,
202,
11231,
1652,
82,
480,
446,
31,
202,
202,
6494,
21236,
273,
848,
22928,
382,
54,
362,
12,
4694,
548,
16,
1652,
82,
11272,
202,
202,
430,
261,
401,
1349,
620,
262,
1082,
202,
2463,
629,
31,
202,
202,
759,
309,
326,
1365,
434,
930,
353,
5849,
635,
2605,
19,
12083,
18,
2256,
486,
1699,
202,
202,
759,
3640,
18,
202,
202,
430,
261,
19371,
19323,
858,
3120,
12,
262,
262,
1082,
202,
2463,
629,
31,
202,
202,
430,
261,
401,
4169,
22928,
2283,
1046,
12,
1605,
16,
4694,
548,
16,
1652,
2
] |
return instanceValue == null ? null : instanceValue.toString( ); | return convertDateFormatDetailToString( eDataType, instanceValue ); | public String convertToString( EDataType eDataType, Object instanceValue ) { switch ( eDataType.getClassifierID( ) ) { case AttributePackage.ACTION_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.ANCHOR : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.ANGLE_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.AXIS_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.CHART_DIMENSION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.CHART_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.DATA_POINT_COMPONENT_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.DATA_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.DATE_FORMAT_DETAIL : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.DATE_FORMAT_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.DIRECTION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.GROUPING_UNIT_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.HORIZONTAL_ALIGNMENT : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.INTERSECTION_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.LEADER_LINE_STYLE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.LEGEND_BEHAVIOR_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.LEGEND_ITEM_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.LINE_DECORATOR : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.LINE_STYLE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.MARKER_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.ORIENTATION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.POSITION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.RISER_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.RULE_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.SCALE_UNIT_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.SORT_OPTION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.STRETCH : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.STYLED_COMPONENT : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.TICK_STYLE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.TRIGGER_CONDITION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.TRIGGER_FLOW : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.UNITS_OF_MEASUREMENT : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.VERTICAL_ALIGNMENT : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.ACTION_TYPE_OBJECT : return convertActionTypeObjectToString( eDataType, instanceValue ); case AttributePackage.ANCHOR_OBJECT : return convertAnchorObjectToString( eDataType, instanceValue ); case AttributePackage.ANGLE_TYPE_OBJECT : return convertAngleTypeObjectToString( eDataType, instanceValue ); case AttributePackage.AXIS_TYPE_OBJECT : return convertAxisTypeObjectToString( eDataType, instanceValue ); case AttributePackage.CHART_DIMENSION_OBJECT : return convertChartDimensionObjectToString( eDataType, instanceValue ); case AttributePackage.CHART_TYPE_OBJECT : return convertChartTypeObjectToString( eDataType, instanceValue ); case AttributePackage.DATA_POINT_COMPONENT_TYPE_OBJECT : return convertDataPointComponentTypeObjectToString( eDataType, instanceValue ); case AttributePackage.DATA_TYPE_OBJECT : return convertDataTypeObjectToString( eDataType, instanceValue ); case AttributePackage.DATE_FORMAT_DETAIL_OBJECT : return convertDateFormatDetailObjectToString( eDataType, instanceValue ); case AttributePackage.DATE_FORMAT_TYPE_OBJECT : return convertDateFormatTypeObjectToString( eDataType, instanceValue ); case AttributePackage.DIRECTION_OBJECT : return convertDirectionObjectToString( eDataType, instanceValue ); case AttributePackage.GROUPING_UNIT_TYPE_OBJECT : return convertGroupingUnitTypeObjectToString( eDataType, instanceValue ); case AttributePackage.HORIZONTAL_ALIGNMENT_OBJECT : return convertHorizontalAlignmentObjectToString( eDataType, instanceValue ); case AttributePackage.ID : return convertIDToString( eDataType, instanceValue ); case AttributePackage.INTERSECTION_TYPE_OBJECT : return convertIntersectionTypeObjectToString( eDataType, instanceValue ); case AttributePackage.LEADER_LINE_STYLE_OBJECT : return convertLeaderLineStyleObjectToString( eDataType, instanceValue ); case AttributePackage.LEGEND_BEHAVIOR_TYPE_OBJECT : return convertLegendBehaviorTypeObjectToString( eDataType, instanceValue ); case AttributePackage.LEGEND_ITEM_TYPE_OBJECT : return convertLegendItemTypeObjectToString( eDataType, instanceValue ); case AttributePackage.LINE_DECORATOR_OBJECT : return convertLineDecoratorObjectToString( eDataType, instanceValue ); case AttributePackage.LINE_STYLE_OBJECT : return convertLineStyleObjectToString( eDataType, instanceValue ); case AttributePackage.MARKER_TYPE_OBJECT : return convertMarkerTypeObjectToString( eDataType, instanceValue ); case AttributePackage.ORIENTATION_OBJECT : return convertOrientationObjectToString( eDataType, instanceValue ); case AttributePackage.PERCENTAGE : return convertPercentageToString( eDataType, instanceValue ); case AttributePackage.PERCENTAGE_OBJECT : return convertPercentageObjectToString( eDataType, instanceValue ); case AttributePackage.POSITION_OBJECT : return convertPositionObjectToString( eDataType, instanceValue ); case AttributePackage.RGB_VALUE : return convertRGBValueToString( eDataType, instanceValue ); case AttributePackage.RGB_VALUE_OBJECT : return convertRGBValueObjectToString( eDataType, instanceValue ); case AttributePackage.RISER_TYPE_OBJECT : return convertRiserTypeObjectToString( eDataType, instanceValue ); case AttributePackage.RULE_TYPE_OBJECT : return convertRuleTypeObjectToString( eDataType, instanceValue ); case AttributePackage.SCALE_UNIT_TYPE_OBJECT : return convertScaleUnitTypeObjectToString( eDataType, instanceValue ); case AttributePackage.SORT_OPTION_OBJECT : return convertSortOptionObjectToString( eDataType, instanceValue ); case AttributePackage.STRETCH_OBJECT : return convertStretchObjectToString( eDataType, instanceValue ); case AttributePackage.STYLED_COMPONENT_OBJECT : return convertStyledComponentObjectToString( eDataType, instanceValue ); case AttributePackage.TICK_STYLE_OBJECT : return convertTickStyleObjectToString( eDataType, instanceValue ); case AttributePackage.TRIGGER_CONDITION_OBJECT : return convertTriggerConditionObjectToString( eDataType, instanceValue ); case AttributePackage.TRIGGER_FLOW_OBJECT : return convertTriggerFlowObjectToString( eDataType, instanceValue ); case AttributePackage.UNITS_OF_MEASUREMENT_OBJECT : return convertUnitsOfMeasurementObjectToString( eDataType, instanceValue ); case AttributePackage.VERTICAL_ALIGNMENT_OBJECT : return convertVerticalAlignmentObjectToString( eDataType, instanceValue ); default : throw new IllegalArgumentException( "The datatype '" + eDataType.getName( ) + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$ } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/AttributeFactoryImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/AttributeFactoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1765,
5808,
12,
20807,
11479,
16,
1033,
13523,
262,
202,
95,
202,
202,
9610,
261,
11479,
18,
588,
13860,
734,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
12249,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
20360,
916,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
30978,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
25614,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
1792,
4928,
67,
2565,
958,
3156,
1146,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
1792,
4928,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
4883,
67,
8941,
67,
22922,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
4883,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
4594,
67,
7254,
67,
40,
19810,
294,
9506,
202,
2463,
13523,
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,
1765,
5808,
12,
20807,
11479,
16,
1033,
13523,
262,
202,
95,
202,
202,
9610,
261,
11479,
18,
588,
13860,
734,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
12249,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
20360,
916,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
30978,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
25614,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
2
] |
boolean isStructureOK(IMolecule molecule) { | public boolean isStructureOK(IMolecule molecule) { | boolean isStructureOK(IMolecule molecule) { for (int i = 0; i <= molecule.getAtomCount() - 1; i++) { //System.out.println(mj.getBondOrderSum(mj.getAtomAt(i))); try { // Note: valencyHybridChecker.couldMatchAtomType shouldnt check Hybridization to get it to work for non carbon atoms valencyChecker.isSaturated(molecule.getAtom(i), molecule); //valencyChecker.allSaturated didnt seem to work so did it this way } catch (Exception e) { logger.debug(i + "\t" + "atom " + (i + 1) + " is not saturated"); return false; } } try { AllRingsFinder arf = new AllRingsFinder(); IRingSet ringSet = arf.findAllRings(molecule);// IRingSet rs=this.RemoveExtraRings(m); for (int i = 0; i <= molecule.getAtomCount() - 1; i++) { molecule.getAtom(i).setFlag(CDKConstants.ISAROMATIC, false); } for (int i = 0; i <= ringSet.getAtomContainerCount() - 1; i++) { Ring r = (Ring) ringSet.getAtomContainer(i); r.setFlag(CDKConstants.ISAROMATIC, false); } //System.out.println("Rs size= "+rs.size()); // do it multiple times to catch all the aromatic rings // this problem is that the aromaticity detector relies on // the aromaticity of the individual atoms in the ring // these wont be picked up until you do it multiple times // for example pyrene 129-00-0 for (int i = 0; i <= ringSet.getAtomContainerCount() - 1; i++) { HueckelAromaticityDetector.detectAromaticity(molecule, ringSet, false); }// Figure out which rings we want to make sure are aromatic: boolean [] Check = this.findRingsToCheck(molecule, ringSet);// for (int i=0;i<=Check.length-1;i++) {// System.out.println(i+"\t"+rs.getAtomContainer(i).getAtomCount()+"\t"+Check[i]);// } for (int i = 0; i <= ringSet.getAtomContainerCount() - 1; i++) { Ring ring = (Ring) ringSet.getAtomContainer(i); //System.out.println(k+"\t"+r.getAtomCount()+"\t"+r.getFlag(CDKConstants.ISAROMATIC)); if (Check[i]) { if (!ring.getFlag(CDKConstants.ISAROMATIC)) {// System.out.println(counter+"\t"+"ring not aromatic"+"\t"+r.getAtomCount()); return false; } } } return true; } catch (Exception e) { logger.debug(e.toString()); return false; } } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/2b36ab3de769d925ab5e01751e878f653a1b942a/DeduceBondSystemTool.java/buggy/src/org/openscience/cdk/smiles/DeduceBondSystemTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
6999,
3141,
12,
3445,
10545,
13661,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
1648,
13661,
18,
588,
3641,
1380,
1435,
300,
404,
31,
277,
27245,
288,
5411,
368,
3163,
18,
659,
18,
8222,
12,
81,
78,
18,
588,
9807,
2448,
3495,
12,
81,
78,
18,
588,
3641,
861,
12,
77,
3719,
1769,
5411,
775,
288,
7734,
368,
3609,
30,
1244,
2075,
17507,
14400,
8847,
18,
15195,
2060,
3641,
559,
1410,
496,
866,
14881,
14400,
1588,
358,
336,
518,
358,
1440,
364,
1661,
28755,
9006,
7734,
1244,
2075,
8847,
18,
291,
15163,
28480,
12,
81,
10545,
18,
588,
3641,
12,
77,
3631,
13661,
1769,
7734,
368,
1125,
2075,
8847,
18,
454,
15163,
28480,
5061,
496,
19264,
358,
1440,
1427,
5061,
518,
333,
4031,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
1194,
18,
4148,
12,
77,
397,
1548,
88,
6,
397,
315,
7466,
315,
397,
261,
77,
397,
404,
13,
397,
315,
353,
486,
5942,
28480,
8863,
7734,
327,
629,
31,
5411,
289,
3639,
289,
3639,
775,
288,
5411,
4826,
54,
899,
8441,
419,
74,
273,
394,
4826,
54,
899,
8441,
5621,
5411,
467,
10369,
694,
9221,
694,
273,
419,
74,
18,
4720,
1595,
54,
899,
12,
81,
10545,
1769,
759,
1082,
202,
7937,
310,
694,
3597,
33,
2211,
18,
3288,
7800,
54,
899,
12,
81,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
1648,
13661,
18,
588,
3641,
1380,
1435,
300,
404,
31,
277,
27245,
288,
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,
1250,
353,
6999,
3141,
12,
3445,
10545,
13661,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
1648,
13661,
18,
588,
3641,
1380,
1435,
300,
404,
31,
277,
27245,
288,
5411,
368,
3163,
18,
659,
18,
8222,
12,
81,
78,
18,
588,
9807,
2448,
3495,
12,
81,
78,
18,
588,
3641,
861,
12,
77,
3719,
1769,
5411,
775,
288,
7734,
368,
3609,
30,
1244,
2075,
17507,
14400,
8847,
18,
15195,
2060,
3641,
559,
1410,
496,
866,
14881,
14400,
1588,
358,
336,
518,
358,
1440,
364,
1661,
28755,
9006,
7734,
1244,
2075,
8847,
18,
291,
15163,
28480,
12,
81,
10545,
18,
588,
3641,
12,
77,
3631,
13661,
1769,
7734,
368,
1125,
2075,
8847,
18,
454,
15163,
2
] |
req.setContentLength(-1); | public void action(ActionCode actionCode, Object param) { if( actionCode==ActionCode.ACTION_COMMIT ) { if( log.isDebugEnabled() ) log.debug("COMMIT " ); Response res=(Response)param; if( res.isCommitted() ) { if( log.isDebugEnabled() ) log.debug("Response already committed " ); } else { try { jkIS.appendHead( res ); } catch(IOException iex) { log.warn("Unable to send headers",iex); setStatus(JK_STATUS_ERROR); } } } else if( actionCode==ActionCode.ACTION_RESET ) { if( log.isDebugEnabled() ) log.debug("RESET " ); } else if( actionCode==ActionCode.ACTION_CLIENT_FLUSH ) { if( log.isDebugEnabled() ) log.debug("CLIENT_FLUSH " ); try { source.flush( null, this ); } catch(IOException iex) { // This is logged elsewhere, so debug only here log.debug("Error during flush",iex); Response res = (Response)param; res.setErrorException(iex); setStatus(JK_STATUS_ERROR); } } else if( actionCode==ActionCode.ACTION_CLOSE ) { if( log.isDebugEnabled() ) log.debug("CLOSE " ); Response res=(Response)param; if( getStatus()== JK_STATUS_CLOSED || getStatus() == JK_STATUS_ERROR) { // Double close - it may happen with forward if( log.isDebugEnabled() ) log.debug("Double CLOSE - forward ? " + res.getRequest().requestURI() ); return; } if( !res.isCommitted() ) this.action( ActionCode.ACTION_COMMIT, param ); try { jkIS.endMessage(); } catch(IOException iex) { log.warn("Error sending end packet",iex); setStatus(JK_STATUS_ERROR); } if(getStatus() != JK_STATUS_ERROR) { setStatus(JK_STATUS_CLOSED ); } if( logTime.isDebugEnabled() ) logTime(res.getRequest(), res); } else if( actionCode==ActionCode.ACTION_REQ_SSL_ATTRIBUTE ) { Request req=(Request)param; // Extract SSL certificate information (if requested) MessageBytes certString = (MessageBytes)req.getNote(WorkerEnv.SSL_CERT_NOTE); if( certString != null && !certString.isNull() ) { ByteChunk certData = certString.getByteChunk(); ByteArrayInputStream bais = new ByteArrayInputStream(certData.getBytes(), certData.getStart(), certData.getLength()); // Fill the first element. X509Certificate jsseCerts[] = null; try { CertificateFactory cf = CertificateFactory.getInstance("X.509"); X509Certificate cert = (X509Certificate) cf.generateCertificate(bais); jsseCerts = new X509Certificate[1]; jsseCerts[0] = cert; } catch(java.security.cert.CertificateException e) { log.error("Certificate convertion failed" , e ); return; } req.setAttribute(SSLSupport.CERTIFICATE_KEY, jsseCerts); } } else if( actionCode==ActionCode.ACTION_REQ_HOST_ATTRIBUTE ) { Request req=(Request)param; // If remoteHost not set by JK, get it's name from it's remoteAddr if( req.remoteHost().isNull()) { try { req.remoteHost().setString(InetAddress.getByName( req.remoteAddr().toString()). getHostName()); } catch(IOException iex) { if(log.isDebugEnabled()) log.debug("Unable to resolve "+req.remoteAddr()); } } } else if( actionCode==ActionCode.ACTION_ACK ) { if( log.isTraceEnabled() ) log.trace("ACK " ); } else if ( actionCode == ActionCode.ACTION_REQ_SET_BODY_REPLAY ) { if( log.isTraceEnabled() ) log.trace("Replay "); req.setContentLength(-1); // reset content length ByteChunk bc = (ByteChunk)param; jkIS.setReplay(bc); } } | 48155 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48155/648e2d5e178f9384b3e99ba56c637731fe0155ee/MsgContext.java/buggy/java/org/apache/jk/core/MsgContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1301,
12,
1803,
1085,
1301,
1085,
16,
1033,
579,
13,
288,
3639,
309,
12,
1301,
1085,
631,
1803,
1085,
18,
12249,
67,
18658,
262,
288,
5411,
309,
12,
613,
18,
291,
2829,
1526,
1435,
262,
613,
18,
4148,
2932,
18658,
315,
11272,
5411,
2306,
400,
28657,
1064,
13,
891,
31,
5411,
309,
12,
225,
400,
18,
291,
27813,
1435,
262,
288,
7734,
309,
12,
613,
18,
291,
2829,
1526,
1435,
262,
10792,
613,
18,
4148,
2932,
1064,
1818,
16015,
315,
11272,
5411,
289,
469,
288,
7734,
775,
288,
10792,
525,
79,
5127,
18,
6923,
1414,
12,
400,
11272,
7734,
289,
1044,
12,
14106,
277,
338,
13,
288,
10792,
613,
18,
8935,
2932,
3370,
358,
1366,
1607,
3113,
77,
338,
1769,
10792,
9433,
12,
19474,
67,
8608,
67,
3589,
1769,
7734,
289,
5411,
289,
3639,
289,
469,
309,
12,
1301,
1085,
631,
1803,
1085,
18,
12249,
67,
26665,
262,
288,
5411,
309,
12,
613,
18,
291,
2829,
1526,
1435,
262,
7734,
613,
18,
4148,
2932,
26665,
315,
11272,
10792,
289,
469,
309,
12,
1301,
1085,
631,
1803,
1085,
18,
12249,
67,
11935,
67,
42,
31959,
262,
288,
5411,
309,
12,
613,
18,
291,
2829,
1526,
1435,
262,
613,
18,
4148,
2932,
11935,
67,
42,
31959,
315,
11272,
5411,
775,
288,
7734,
1084,
18,
11330,
12,
446,
16,
333,
11272,
5411,
289,
1044,
12,
14106,
277,
338,
13,
288,
7734,
368,
1220,
353,
7545,
25795,
16,
1427,
1198,
1338,
2674,
7734,
613,
18,
4148,
2932,
668,
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,
1301,
12,
1803,
1085,
1301,
1085,
16,
1033,
579,
13,
288,
3639,
309,
12,
1301,
1085,
631,
1803,
1085,
18,
12249,
67,
18658,
262,
288,
5411,
309,
12,
613,
18,
291,
2829,
1526,
1435,
262,
613,
18,
4148,
2932,
18658,
315,
11272,
5411,
2306,
400,
28657,
1064,
13,
891,
31,
5411,
309,
12,
225,
400,
18,
291,
27813,
1435,
262,
288,
7734,
309,
12,
613,
18,
291,
2829,
1526,
1435,
262,
10792,
613,
18,
4148,
2932,
1064,
1818,
16015,
315,
11272,
5411,
289,
469,
288,
7734,
775,
288,
10792,
525,
79,
5127,
18,
6923,
1414,
12,
400,
11272,
7734,
289,
1044,
12,
14106,
277,
338,
13,
288,
10792,
613,
18,
8935,
2932,
3370,
358,
1366,
1607,
2
] | |
private void transportConfigurationPOST( MessageContext msgContext, OMElement dataout, URL url, String soapActionString) throws MalformedURLException, AxisFault, IOException { //execuite the HtttpMethodBase - a connection manager can be given for handle multiple httpClient = new HttpClient(); //hostConfig handles the socket functions.. HostConfiguration hostConfig = getHostConfiguration(msgContext, url); PostMethod postMethod = new PostMethod(); postMethod.setPath(url.getFile()); msgContext.setProperty(HTTP_METHOD, postMethod); String charEncoding = (String) msgContext.getProperty( MessageContext.CHARACTER_SET_ENCODING); if(charEncoding == null){ charEncoding = MessageContext.DEFAULT_CHAR_SET_ENCODING; } postMethod.setRequestEntity( new AxisRequestEntity( dataout, chuncked, msgContext.isDoingMTOM(), charEncoding)); if (!httpVersion.equals(HTTPConstants.HEADER_PROTOCOL_10) && chuncked) { postMethod.setContentChunked(true); } postMethod.setRequestHeader( HTTPConstants.HEADER_USER_AGENT, "Axis/2.0"); if (!msgContext.isDoingREST()) { postMethod.setRequestHeader( HTTPConstants.HEADER_SOAP_ACTION, soapActionString); } postMethod.setRequestHeader(HTTPConstants.HEADER_HOST, url.getHost()); if (httpVersion != null) { if (httpVersion.equals(HTTPConstants.HEADER_PROTOCOL_10)) { //postMethod.setHttp11(false); todo method to findout the transport version... //allowing keep-alive for 1.0 postMethod.setRequestHeader( HTTPConstants.HEADER_CONNECTION, HTTPConstants.HEADER_CONNECTION_KEEPALIVE); } else { // allowing keep-alive for 1.1 postMethod.setRequestHeader( HTTPConstants.HEADER_CONNECTION, HTTPConstants.HEADER_CONNECTION_KEEPALIVE); postMethod.setRequestHeader( HTTPConstants.HEADER_EXPECT, HTTPConstants.HEADER_EXPECT_100_Continue); } } this.httpClient.executeMethod(hostConfig, postMethod); if (postMethod.getStatusCode() == HttpStatus.SC_OK) { obatainHTTPHeaderInformation(postMethod, msgContext); InputStream in = postMethod.getResponseBodyAsStream(); if (in == null) { throw new AxisFault( Messages.getMessage("canNotBeNull", "InputStream")); } msgContext.getOperationContext().setProperty( MessageContext.TRANSPORT_IN, in); } else if (postMethod.getStatusCode() == HttpStatus.SC_ACCEPTED) { return; } else { throw new AxisFault( Messages.getMessage( "transportError", String.valueOf(postMethod.getStatusCode()), postMethod.getResponseBodyAsString())); } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/8db68d050e68b9e6daecbb5fd07885046c23eb02/CommonsHTTPTransportSender.java/buggy/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4736,
1750,
3798,
12,
3639,
2350,
1042,
1234,
1042,
16,
3639,
531,
12310,
501,
659,
16,
3639,
1976,
880,
16,
3639,
514,
9930,
1803,
780,
13,
3639,
1216,
20710,
16,
15509,
7083,
16,
1860,
288,
3639,
368,
4177,
9519,
326,
670,
748,
6834,
1305,
2171,
300,
279,
1459,
3301,
848,
506,
864,
364,
1640,
3229,
3639,
10898,
273,
394,
16308,
5621,
3639,
368,
2564,
809,
7372,
326,
2987,
4186,
838,
3639,
4893,
1750,
31368,
273,
8580,
1750,
12,
3576,
1042,
16,
880,
1769,
3639,
5616,
1305,
1603,
1305,
273,
394,
5616,
1305,
5621,
3639,
1603,
1305,
18,
542,
743,
12,
718,
18,
29925,
10663,
7734,
1234,
1042,
18,
542,
1396,
12,
3693,
67,
5327,
16,
1603,
1305,
1769,
3639,
514,
1149,
4705,
273,
5411,
261,
780,
13,
1234,
1042,
18,
588,
1396,
12,
7734,
2350,
1042,
18,
27858,
67,
4043,
67,
14672,
1769,
3639,
309,
12,
3001,
4705,
422,
446,
15329,
5411,
1149,
4705,
273,
2350,
1042,
18,
5280,
67,
7305,
67,
4043,
67,
14672,
31,
3639,
289,
13491,
1603,
1305,
18,
542,
691,
1943,
12,
5411,
394,
15509,
691,
1943,
12,
7734,
501,
659,
16,
7734,
462,
318,
363,
329,
16,
7734,
1234,
1042,
18,
291,
3244,
310,
6152,
1872,
9334,
7734,
1149,
4705,
10019,
3639,
309,
16051,
2505,
1444,
18,
14963,
12,
3693,
2918,
18,
7557,
67,
16850,
67,
2163,
13,
5411,
597,
462,
318,
363,
329,
13,
288,
5411,
1603,
1305,
18,
542,
1350,
5579,
329,
12,
3767,
1769,
3639,
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,
3238,
918,
4736,
1750,
3798,
12,
3639,
2350,
1042,
1234,
1042,
16,
3639,
531,
12310,
501,
659,
16,
3639,
1976,
880,
16,
3639,
514,
9930,
1803,
780,
13,
3639,
1216,
20710,
16,
15509,
7083,
16,
1860,
288,
3639,
368,
4177,
9519,
326,
670,
748,
6834,
1305,
2171,
300,
279,
1459,
3301,
848,
506,
864,
364,
1640,
3229,
3639,
10898,
273,
394,
16308,
5621,
3639,
368,
2564,
809,
7372,
326,
2987,
4186,
838,
3639,
4893,
1750,
31368,
273,
8580,
1750,
12,
3576,
1042,
16,
880,
1769,
3639,
5616,
1305,
1603,
1305,
273,
394,
5616,
1305,
5621,
3639,
1603,
1305,
18,
542,
743,
12,
718,
18,
29925,
10663,
7734,
1234,
1042,
18,
542,
1396,
12,
3693,
67,
5327,
16,
1603,
2
] | ||
public JParameter getParameter(int index) { | public JParameter getParameter(final int index) { | public JParameter getParameter(int index) { return _signature.getParameter(index); } //-- getParameter | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/34c708e3c0e8dd4b42534f5834f9a280e0c9968b/JMethod.java/buggy/castor/trunk/src/main/java/org/exolab/javasource/JMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
804,
1662,
5575,
12,
6385,
509,
770,
13,
288,
3639,
327,
389,
8195,
18,
588,
1662,
12,
1615,
1769,
565,
289,
368,
413,
5575,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
804,
1662,
5575,
12,
6385,
509,
770,
13,
288,
3639,
327,
389,
8195,
18,
588,
1662,
12,
1615,
1769,
565,
289,
368,
413,
5575,
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
] |
return (ProtocolData[])mProtocolStack.toArray(new ProtocolData[mProtocolStack.size()]); | return mProtocolStack.toArray(new ProtocolData[mProtocolStack.size()]); | public ProtocolData[] getProtocolStack() { return (ProtocolData[])mProtocolStack.toArray(new ProtocolData[mProtocolStack.size()]); } | 49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/ed68b47fb250ec26b74431c8f7bbad36be301668/XmlConfigurator.java/clean/src/org/jgroups/conf/XmlConfigurator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4547,
751,
8526,
18648,
2624,
1435,
288,
3639,
327,
312,
5752,
2624,
18,
31447,
12,
2704,
4547,
751,
63,
81,
5752,
2624,
18,
1467,
1435,
19226,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4547,
751,
8526,
18648,
2624,
1435,
288,
3639,
327,
312,
5752,
2624,
18,
31447,
12,
2704,
4547,
751,
63,
81,
5752,
2624,
18,
1467,
1435,
19226,
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
] |
public RubyObject execute(RubyObject recv, RubyObject args[], Ruby ruby) { return recv.m_to_s(); } | public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return ruby.getNil(); } | public RubyObject execute(RubyObject recv, RubyObject args[], Ruby ruby) { return recv.m_to_s(); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RBKernel.java/clean/org/jruby/core/RBKernel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
19817,
921,
1836,
12,
54,
10340,
921,
10665,
16,
19817,
921,
833,
63,
6487,
19817,
22155,
13,
288,
10792,
327,
10665,
18,
81,
67,
869,
67,
87,
5621,
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,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
19817,
921,
1836,
12,
54,
10340,
921,
10665,
16,
19817,
921,
833,
63,
6487,
19817,
22155,
13,
288,
10792,
327,
10665,
18,
81,
67,
869,
67,
87,
5621,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 void resize() { | private final void resize() { | private void resize() { // length must be power of two for fast "&" hashing, // otherwise we would use "%" InstanceStats[] oldTable = objs; if (oldTable == null) { objs = new InstanceStats[8]; objs_threshold = objs.length * 7; return; } int oldCapacity = oldTable.length; int newCapacity = (oldCapacity << 1); InstanceStats[] newTable = new InstanceStats[newCapacity]; for (int i = 0; i < oldCapacity; i++) { InstanceStats next = null; for (InstanceStats is = oldTable[i]; is != null; is = next) { next = is.next; is.next = null; Object o = is.get(); if (o == null) { gc(is); objs_size--; continue; } int h = hash(o, newCapacity); InstanceStats new_is = newTable[h]; if (new_is != null) { is.next = new_is; } newTable[h] = is; } } objs = newTable; objs_threshold = newCapacity * 7; } | 10688 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10688/1d14349b46f4d57f1262d289891f1194920c84c0/InstancesTable.java/buggy/profiler_impl/src/org/cougaar/profiler/InstancesTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
918,
7041,
1435,
288,
565,
368,
769,
1297,
506,
7212,
434,
2795,
364,
4797,
16347,
24641,
16,
565,
368,
3541,
732,
4102,
999,
20880,
565,
5180,
4195,
8526,
1592,
1388,
273,
12721,
31,
565,
309,
261,
1673,
1388,
422,
446,
13,
288,
1377,
12721,
273,
394,
5180,
4195,
63,
28,
15533,
1377,
12721,
67,
8699,
273,
12721,
18,
2469,
380,
2371,
31,
1377,
327,
31,
565,
289,
565,
509,
1592,
7437,
273,
1592,
1388,
18,
2469,
31,
565,
509,
30787,
273,
261,
1673,
7437,
2296,
404,
1769,
565,
5180,
4195,
8526,
394,
1388,
273,
394,
5180,
4195,
63,
2704,
7437,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1592,
7437,
31,
277,
27245,
288,
1377,
5180,
4195,
1024,
273,
446,
31,
1377,
364,
261,
1442,
4195,
353,
273,
1592,
1388,
63,
77,
15533,
1850,
353,
480,
446,
31,
1850,
353,
273,
1024,
13,
288,
3639,
1024,
273,
353,
18,
4285,
31,
3639,
353,
18,
4285,
273,
446,
31,
3639,
1033,
320,
273,
353,
18,
588,
5621,
3639,
309,
261,
83,
422,
446,
13,
288,
1850,
8859,
12,
291,
1769,
1850,
12721,
67,
1467,
413,
31,
1850,
1324,
31,
3639,
289,
3639,
509,
366,
273,
1651,
12,
83,
16,
30787,
1769,
3639,
5180,
4195,
394,
67,
291,
273,
394,
1388,
63,
76,
15533,
3639,
309,
261,
2704,
67,
291,
480,
446,
13,
288,
1850,
353,
18,
4285,
273,
394,
67,
291,
31,
3639,
289,
3639,
394,
1388,
63,
76,
65,
273,
353,
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,
727,
918,
7041,
1435,
288,
565,
368,
769,
1297,
506,
7212,
434,
2795,
364,
4797,
16347,
24641,
16,
565,
368,
3541,
732,
4102,
999,
20880,
565,
5180,
4195,
8526,
1592,
1388,
273,
12721,
31,
565,
309,
261,
1673,
1388,
422,
446,
13,
288,
1377,
12721,
273,
394,
5180,
4195,
63,
28,
15533,
1377,
12721,
67,
8699,
273,
12721,
18,
2469,
380,
2371,
31,
1377,
327,
31,
565,
289,
565,
509,
1592,
7437,
273,
1592,
1388,
18,
2469,
31,
565,
509,
30787,
273,
261,
1673,
7437,
2296,
404,
1769,
565,
5180,
4195,
8526,
394,
1388,
273,
394,
5180,
4195,
63,
2704,
7437,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1592,
7437,
31,
277,
27245,
2
] |
alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case '=': switch ( input.LA(2) ) { case '+': alt1=31; break; case '-': alt1=33; break; case '=': alt1=29; break; case '/': alt1=37; break; case '*': alt1=35; break; default: alt1=17;} break; case '/': int LA1_18 = input.LA(2); if ( LA1_18=='=' ) { alt1=36; } else { alt1=18;} | alt1=19;} | public void mMISC() throws RecognitionException { int MISC_StartIndex = input.index(); try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 48) ) { return ; } // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' | '>>=' ) int alt1=38; switch ( input.LA(1) ) { case '!': alt1=1; break; case '@': alt1=2; break; case '$': alt1=3; break; case '%': alt1=4; break; case '^': alt1=5; break; case '&': int LA1_6 = input.LA(2); if ( LA1_6=='&' ) { alt1=24; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=34; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '-': alt1=27; break; case '=': alt1=32; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '+': alt1=26; break; case '=': alt1=30; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=23; } else { alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case '=': switch ( input.LA(2) ) { case '+': alt1=31; break; case '-': alt1=33; break; case '=': alt1=29; break; case '/': alt1=37; break; case '*': alt1=35; break; default: alt1=17;} break; case '/': int LA1_18 = input.LA(2); if ( LA1_18=='=' ) { alt1=36; } else { alt1=18;} break; case '(': alt1=19; break; case ')': alt1=20; break; case '\'': alt1=21; break; case '\\': alt1=22; break; case '<': alt1=25; break; case '>': int LA1_24 = input.LA(2); if ( LA1_24=='>' ) { int LA1_45 = input.LA(3); if ( LA1_45=='=' ) { alt1=38; } else if ( LA1_45=='>' ) { alt1=28; } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1011:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' | \'>>=\' );", 1, 45, input); throw nvae; } } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1011:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' | \'>>=\' );", 1, 24, input); throw nvae; } break; default: if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1011:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' | \'>>=\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:17: '!' { match('!'); if (failed) return ; } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:23: '@' { match('@'); if (failed) return ; } break; case 3 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:29: '$' { match('$'); if (failed) return ; } break; case 4 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:35: '%' { match('%'); if (failed) return ; } break; case 5 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:41: '^' { match('^'); if (failed) return ; } break; case 6 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:47: '&' { match('&'); if (failed) return ; } break; case 7 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:53: '*' { match('*'); if (failed) return ; } break; case 8 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:59: '_' { match('_'); if (failed) return ; } break; case 9 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:65: '-' { match('-'); if (failed) return ; } break; case 10 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:71: '+' { match('+'); if (failed) return ; } break; case 11 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:19: '|' { match('|'); if (failed) return ; } break; case 12 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:25: ',' { match(','); if (failed) return ; } break; case 13 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:31: '{' { match('{'); if (failed) return ; } break; case 14 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:37: '}' { match('}'); if (failed) return ; } break; case 15 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:43: '[' { match('['); if (failed) return ; } break; case 16 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:49: ']' { match(']'); if (failed) return ; } break; case 17 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:55: '=' { match('='); if (failed) return ; } break; case 18 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:61: '/' { match('/'); if (failed) return ; } break; case 19 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:67: '(' { match('('); if (failed) return ; } break; case 20 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:73: ')' { match(')'); if (failed) return ; } break; case 21 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:79: '\'' { match('\''); if (failed) return ; } break; case 22 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:86: '\\' { match('\\'); if (failed) return ; } break; case 23 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:19: '||' { match("||"); if (failed) return ; } break; case 24 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:26: '&&' { match("&&"); if (failed) return ; } break; case 25 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:33: '<<<' { match("<<<"); if (failed) return ; } break; case 26 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:41: '++' { match("++"); if (failed) return ; } break; case 27 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:48: '--' { match("--"); if (failed) return ; } break; case 28 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:55: '>>>' { match(">>>"); if (failed) return ; } break; case 29 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:63: '==' { match("=="); if (failed) return ; } break; case 30 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:70: '+=' { match("+="); if (failed) return ; } break; case 31 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:77: '=+' { match("=+"); if (failed) return ; } break; case 32 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:84: '-=' { match("-="); if (failed) return ; } break; case 33 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:91: '=-' { match("=-"); if (failed) return ; } break; case 34 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:97: '*=' { match("*="); if (failed) return ; } break; case 35 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:104: '=*' { match("=*"); if (failed) return ; } break; case 36 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1015:19: '/=' { match("/="); if (failed) return ; } break; case 37 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1015:26: '=/' { match("=/"); if (failed) return ; } break; case 38 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1015:33: '>>=' { match(">>="); if (failed) return ; } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 48, MISC_StartIndex); } } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/cb210a30853642e270a3bba6ce570409f6046852/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
7492,
2312,
1435,
1216,
9539,
288,
3639,
509,
20806,
2312,
67,
16792,
273,
810,
18,
1615,
5621,
3639,
775,
288,
5411,
509,
618,
273,
20806,
2312,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
309,
261,
6888,
34,
20,
597,
1818,
11257,
2175,
12,
2630,
16,
9934,
13,
262,
288,
327,
274,
289,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
15168,
22,
30,
4033,
30,
261,
15502,
571,
9175,
571,
11874,
571,
9089,
571,
19161,
571,
9824,
571,
5306,
571,
4427,
571,
4014,
571,
10058,
571,
8030,
571,
3316,
571,
9790,
571,
9571,
571,
8375,
571,
8641,
571,
5214,
571,
2023,
571,
7321,
571,
5777,
571,
15053,
571,
5282,
571,
6699,
16637,
571,
5183,
26045,
571,
2368,
17685,
11,
571,
15126,
6797,
571,
16979,
571,
296,
9778,
1870,
571,
22853,
571,
15126,
2218,
571,
15196,
6797,
571,
2400,
2218,
571,
15196,
6627,
571,
14609,
2218,
571,
15196,
4035,
571,
1173,
2218,
571,
15196,
2473,
571,
296,
9778,
2218,
262,
5411,
509,
3770,
21,
33,
7414,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
11817,
4278,
7734,
3770,
21,
33,
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,
312,
7492,
2312,
1435,
1216,
9539,
288,
3639,
509,
20806,
2312,
67,
16792,
273,
810,
18,
1615,
5621,
3639,
775,
288,
5411,
509,
618,
273,
20806,
2312,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
309,
261,
6888,
34,
20,
597,
1818,
11257,
2175,
12,
2630,
16,
9934,
13,
262,
288,
327,
274,
289,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
2
] |
Method m = null; | private Object processResolution(Object obj, int handle) throws IOException { if (obj instanceof Serializable) { Method m = null; try { Class classArgs[] = {}; m = getMethod(obj.getClass(), "readResolve", classArgs); obj = m.invoke(obj, new Object[] {}); } catch (NoSuchMethodException ignore) { } catch (IllegalAccessException ignore) { } catch (InvocationTargetException ignore) { } } if (this.resolveEnabled) obj = resolveObject(obj); this.objectLookupTable.put(new Integer(handle), new ObjectIdentityWrapper(obj)); return obj; } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/287ecb3eab399e579158e4cbd037261f67ffbc1b/ObjectInputStream.java/clean/libjava/java/io/ObjectInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
1207,
11098,
12,
921,
1081,
16,
509,
1640,
13,
565,
1216,
1860,
225,
288,
565,
309,
261,
2603,
1276,
13687,
13,
1377,
288,
540,
202,
698,
202,
225,
288,
202,
565,
1659,
667,
2615,
8526,
273,
2618,
31,
202,
565,
312,
273,
6272,
12,
2603,
18,
588,
797,
9334,
315,
896,
8460,
3113,
667,
2615,
1769,
202,
565,
1081,
273,
312,
18,
14407,
12,
2603,
16,
394,
1033,
8526,
2618,
1769,
1082,
225,
289,
202,
14683,
261,
28341,
14513,
2305,
13,
202,
225,
288,
202,
225,
289,
202,
14683,
261,
12195,
9773,
2305,
13,
202,
225,
288,
202,
225,
289,
202,
14683,
261,
9267,
14950,
2305,
13,
202,
225,
288,
202,
225,
289,
1377,
289,
565,
309,
261,
2211,
18,
10828,
1526,
13,
1377,
1081,
273,
2245,
921,
12,
2603,
1769,
565,
333,
18,
1612,
6609,
1388,
18,
458,
12,
2704,
2144,
12,
4110,
3631,
9506,
4202,
394,
1033,
4334,
3611,
12,
2603,
10019,
565,
327,
1081,
31,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
1207,
11098,
12,
921,
1081,
16,
509,
1640,
13,
565,
1216,
1860,
225,
288,
565,
309,
261,
2603,
1276,
13687,
13,
1377,
288,
540,
202,
698,
202,
225,
288,
202,
565,
1659,
667,
2615,
8526,
273,
2618,
31,
202,
565,
312,
273,
6272,
12,
2603,
18,
588,
797,
9334,
315,
896,
8460,
3113,
667,
2615,
1769,
202,
565,
1081,
273,
312,
18,
14407,
12,
2603,
16,
394,
1033,
8526,
2618,
1769,
1082,
225,
289,
202,
14683,
261,
28341,
14513,
2305,
13,
202,
225,
288,
202,
225,
289,
202,
14683,
261,
12195,
9773,
2305,
13,
202,
225,
288,
202,
225,
289,
202,
14683,
261,
9267,
14950,
2305,
13,
202,
225,
288,
202,
225,
289,
1377,
289,
565,
2
] | |
if (changeSupport != null) changeSupport.firePropertyChange(propertyName, new Boolean(oldValue), new Boolean(newValue)); | public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { //Reports a bound property change. } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/0788b89b7368770a1157f825d60dd8c5a9df183e/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
620,
3631,
394,
3411,
12,
2704,
620,
10019,
918,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
620,
3631,
394,
3411,
12,
2704,
620,
10019,
4452,
1396,
3043,
12,
780,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
620,
3631,
394,
3411,
12,
2704,
620,
10019,
5470,
16,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
620,
3631,
394,
3411,
12,
2704,
620,
10019,
1250,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
620,
3631,
394,
3411,
12,
2704,
620,
10019,
11144,
16,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
620,
3631,
394,
3411,
12,
2704,
620,
10019,
1250,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
620,
3631,
394,
3411,
12,
2704,
620,
10019,
6129,
13,
202,
95,
202,
202,
759,
18631,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
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,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
620,
3631,
394,
3411,
12,
2704,
620,
10019,
918,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
620,
3631,
394,
3411,
12,
2704,
620,
10019,
4452,
1396,
3043,
12,
780,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
620,
3631,
394,
3411,
12,
2704,
620,
10019,
5470,
16,
430,
261,
3427,
6289,
480,
446,
13,
2549,
6289,
18,
12179,
1396,
3043,
12,
4468,
461,
16,
394,
3411,
12,
1673,
2
] | |
return (String) getAttributes().get("Dbxref"); | if (getAttributes().containsKey("Dbxref")) { return (String) ((List) getAttributes().get("Dbxref")).get(0); } else { return null; } | public String getDbxref () { return (String) getAttributes().get("Dbxref"); } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/53585784207cc13f317ffd109ae7ac6ccf818d8c/GFF3Record.java/buggy/flymine/src/java/org/flymine/io/gff3/GFF3Record.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11188,
22044,
1832,
288,
3639,
309,
261,
588,
2498,
7675,
12298,
653,
2932,
4331,
22044,
6,
3719,
288,
327,
261,
780,
13,
14015,
682,
13,
10183,
7675,
588,
2932,
4331,
22044,
7923,
2934,
588,
12,
20,
1769,
289,
469,
288,
327,
446,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
514,
11188,
22044,
1832,
288,
3639,
309,
261,
588,
2498,
7675,
12298,
653,
2932,
4331,
22044,
6,
3719,
288,
327,
261,
780,
13,
14015,
682,
13,
10183,
7675,
588,
2932,
4331,
22044,
7923,
2934,
588,
12,
20,
1769,
289,
469,
288,
327,
446,
31,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
slot = slotAvailableDueToAlignment; slotAvailableDueToAlignment = 0; } else | slot = slotAvailableDueToAlignment; slotAvailableDueToAlignment = 0; } else | public static synchronized int allocateSlot(byte description) { int slot = nextSlot; if (slot > slots.length - 2) { // !!TODO: enlarge slots[] and descriptions[], and modify jtoc register to // point to newly enlarged slots[] // NOTE: very tricky on IA32 because opt uses 32 bit literal address to access jtoc. VM.sysFail("VM_Statics.allocateSlot: jtoc is full"); } // allocate two slots for long or double ////-#if RVM_FOR_64_ADDR if ((description & WIDE_TAG) == 0 && slotAvailableDueToAlignment != 0) { slot = slotAvailableDueToAlignment; slotAvailableDueToAlignment = 0; } else //-#endif if ((description & WIDE_TAG) != 0) { nextSlot += 2; } else {//-#if RVM_FOR_64_ADDR slotAvailableDueToAlignment = nextSlot + 1; descriptions[slotAvailableDueToAlignment] = EMPTY; nextSlot += 2;//-#else nextSlot += 1;//-#endif } descriptions[slot] = description; if (VM.TraceStatics) VM.sysWrite("VM_Statics: allocated jtoc slot " + slot + " for " + getSlotDescriptionAsString(slot) + "\n"); return slot; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/4d43d71de6946e911af26443f095a3da8c15700a/VM_Statics.java/buggy/rvm/src/vm/runtime/VM_Statics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3852,
509,
10101,
8764,
12,
7229,
2477,
13,
288,
565,
509,
4694,
273,
1024,
8764,
31,
565,
309,
261,
14194,
405,
12169,
18,
2469,
300,
576,
13,
288,
1377,
368,
401,
5,
6241,
30,
570,
14095,
12169,
8526,
471,
15550,
63,
6487,
471,
5612,
525,
1391,
1744,
358,
1377,
368,
1634,
358,
10894,
570,
7901,
2423,
12169,
8526,
1377,
368,
5219,
30,
8572,
433,
13055,
603,
467,
37,
1578,
2724,
2153,
4692,
3847,
2831,
7158,
1758,
358,
2006,
525,
1391,
18,
1377,
8251,
18,
9499,
3754,
2932,
7397,
67,
5000,
2102,
18,
16247,
8764,
30,
525,
1391,
353,
1983,
8863,
565,
289,
565,
368,
10101,
2795,
12169,
364,
1525,
578,
1645,
565,
368,
759,
17,
7,
430,
534,
7397,
67,
7473,
67,
1105,
67,
14142,
565,
309,
14015,
3384,
473,
678,
10385,
67,
7927,
13,
422,
374,
597,
4694,
5268,
30023,
774,
11535,
480,
374,
13,
288,
1082,
202,
14194,
273,
4694,
5268,
30023,
774,
11535,
31,
1082,
202,
14194,
5268,
30023,
774,
11535,
273,
374,
31,
202,
289,
469,
368,
17,
7,
409,
430,
565,
309,
14015,
3384,
473,
678,
10385,
67,
7927,
13,
480,
374,
13,
288,
4202,
202,
4285,
8764,
1011,
576,
31,
565,
289,
469,
288,
759,
17,
7,
430,
534,
7397,
67,
7473,
67,
1105,
67,
14142,
1082,
202,
14194,
5268,
30023,
774,
11535,
273,
1024,
8764,
397,
404,
31,
202,
3196,
202,
30288,
63,
14194,
5268,
30023,
774,
11535,
65,
273,
8984,
31,
1082,
202,
4285,
8764,
1011,
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,
760,
3852,
509,
10101,
8764,
12,
7229,
2477,
13,
288,
565,
509,
4694,
273,
1024,
8764,
31,
565,
309,
261,
14194,
405,
12169,
18,
2469,
300,
576,
13,
288,
1377,
368,
401,
5,
6241,
30,
570,
14095,
12169,
8526,
471,
15550,
63,
6487,
471,
5612,
525,
1391,
1744,
358,
1377,
368,
1634,
358,
10894,
570,
7901,
2423,
12169,
8526,
1377,
368,
5219,
30,
8572,
433,
13055,
603,
467,
37,
1578,
2724,
2153,
4692,
3847,
2831,
7158,
1758,
358,
2006,
525,
1391,
18,
1377,
8251,
18,
9499,
3754,
2932,
7397,
67,
5000,
2102,
18,
16247,
8764,
30,
525,
1391,
353,
1983,
8863,
565,
289,
565,
368,
10101,
2795,
12169,
364,
1525,
578,
1645,
565,
368,
759,
17,
7,
2
] |
createSite(componentEditor, desc, input); | private IEditorReference openEditorFromInput(IEditorReference ref,IFileEditorInput input, boolean setVisible) throws PartInitException { IFile file = input.getFile(); // If there is a registered editor for the file use it. EditorDescriptor desc = (EditorDescriptor) getEditorRegistry().getDefaultEditor(file); if (desc != null) { return openEditorFromDescriptor(ref,desc, input); } // Try to open an OLE editor. IEditorPart componentEditor = ComponentSupport.getComponentEditor(file); if (componentEditor != null) { ((Editor)ref).setPart(componentEditor); createSite(componentEditor, desc, input); createEditorTab(ref, null, input, setVisible); Workbench wb = (Workbench) window.getWorkbench(); wb.getEditorHistory().add(input, desc); return ref; } // Try to open a system editor. if (testForSystemEditor(file)) { openSystemEditor(file); Workbench wb = (Workbench) window.getWorkbench(); wb.getEditorHistory().add(input, desc); return null; } // There is no registered editor. // Use the default text editor. desc = (EditorDescriptor) getEditorRegistry().getDefaultEditor(); return openEditorFromDescriptor(ref,desc, input); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4dbfd3e0d6618a684db4fe66cd6486ba3c39862f/EditorManager.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/EditorManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
6946,
2404,
1696,
6946,
1265,
1210,
12,
45,
6946,
2404,
1278,
16,
45,
812,
6946,
1210,
810,
16,
1250,
16697,
13,
1216,
6393,
2570,
503,
288,
202,
202,
45,
812,
585,
273,
810,
18,
29925,
5621,
202,
202,
759,
971,
1915,
353,
279,
4104,
4858,
364,
326,
585,
999,
518,
18,
202,
202,
6946,
3187,
3044,
273,
261,
6946,
3187,
13,
336,
6946,
4243,
7675,
588,
1868,
6946,
12,
768,
1769,
202,
202,
430,
261,
5569,
480,
446,
13,
288,
1082,
202,
2463,
1696,
6946,
1265,
3187,
12,
1734,
16,
5569,
16,
810,
1769,
202,
202,
97,
202,
202,
759,
6161,
358,
1696,
392,
531,
900,
4858,
18,
202,
202,
45,
6946,
1988,
1794,
6946,
273,
5435,
6289,
18,
588,
1841,
6946,
12,
768,
1769,
202,
202,
430,
261,
4652,
6946,
480,
446,
13,
288,
1082,
202,
12443,
6946,
13,
1734,
2934,
542,
1988,
12,
4652,
6946,
1769,
1082,
202,
2640,
4956,
12,
4652,
6946,
16,
3044,
16,
810,
1769,
1082,
202,
2640,
6946,
5661,
12,
1734,
16,
446,
16,
810,
16,
16697,
1769,
1082,
202,
2421,
22144,
17298,
273,
261,
2421,
22144,
13,
2742,
18,
588,
2421,
22144,
5621,
1082,
202,
9464,
18,
588,
6946,
5623,
7675,
1289,
12,
2630,
16,
3044,
1769,
1082,
202,
2463,
1278,
31,
202,
202,
97,
202,
202,
759,
6161,
358,
1696,
279,
2619,
4858,
18,
202,
202,
430,
261,
3813,
1290,
3163,
6946,
12,
768,
3719,
288,
1082,
202,
3190,
3163,
6946,
12,
768,
1769,
1082,
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,
467,
6946,
2404,
1696,
6946,
1265,
1210,
12,
45,
6946,
2404,
1278,
16,
45,
812,
6946,
1210,
810,
16,
1250,
16697,
13,
1216,
6393,
2570,
503,
288,
202,
202,
45,
812,
585,
273,
810,
18,
29925,
5621,
202,
202,
759,
971,
1915,
353,
279,
4104,
4858,
364,
326,
585,
999,
518,
18,
202,
202,
6946,
3187,
3044,
273,
261,
6946,
3187,
13,
336,
6946,
4243,
7675,
588,
1868,
6946,
12,
768,
1769,
202,
202,
430,
261,
5569,
480,
446,
13,
288,
1082,
202,
2463,
1696,
6946,
1265,
3187,
12,
1734,
16,
5569,
16,
810,
1769,
202,
202,
97,
202,
202,
759,
6161,
358,
1696,
392,
531,
900,
4858,
18,
202,
202,
45,
6946,
1988,
1794,
6946,
2
] | |
myEnv.alwaysHasNativeFrame = true; myEnv.JNITopJavaFP = VM_Address.fromInt(VM_Constants.STACKFRAME_SENTINAL_FP); myEnv.savedPRreg = nativeVP; myEnv.savedTIreg = VM_Magic.getThreadId(); | myEnv.setFromNative( VM_Address.fromInt(VM_Constants.STACKFRAME_SENTINAL_FP), nativeVP, VM_Magic.getThreadId()); | public void run() //- overrides VM_Thread { if (VM.TraceThreads) VM_Scheduler.trace("VM_JNIStartUp", "run"); if (trace) { System.out.println("VM_JNIStartUp: Java thread " + VM.intAsHexString(VM_Magic.objectAsAddress(VM_Thread.getCurrentThread()).toInt()) + " attaching external pthread " + pthreadID + "\n"); System.out.println("JNIEnv to be placed at " + VM.intAsHexString(externalJNIEnvAddress.toInt())); } // before executing the following code, bind ourselves to the current processor VM_Processor currentVP = VM_Processor.getCurrentProcessor(); VM_Thread.getCurrentThread().processorAffinity = currentVP; // Set up the JNICleanUpThread that will signal the external pthread // it will also be bound to the same processor VM_JNICreateVMFinishThread cleanupThread = new VM_JNICreateVMFinishThread(VM_Thread.getCurrentThread(), externalJNIEnvAddress, currentVP); // get it going cleanupThread.start(currentVP.readyQueue); // wait for it to come up if (trace) { System.out.println("VM_JNIStartUp: AttachCurrentThread waiting for clean up thread"); } while (!cleanupThread.ready) { VM_Thread.getCurrentThread().yield(); } /*************************************************************************** * Now we prepare the data structure to create the appearance that the Java main * thread has made a native method call and is executing in the native pthread */ // Set up the native VM_Processor to associate with the external pthread VM_Processor nativeVP = VM_Processor.createNativeProcessorForExistingOSThread(VM_Thread.getCurrentThread()); VM_Thread.getCurrentThread().nativeAffinity = nativeVP; // register the vpStatusAddress for this thread in the VM_JNIEnvironment.JNIFunctionPointers // this is normally done in the prolog of the native method on the Java to C transition VM_JNIEnvironment.JNIFunctionPointers[(VM_Thread.getCurrentThread().getIndex() * 2) + 1] = nativeVP.vpStatusAddress.toInt(); // normally done by StartupThread nativeVP.pthread_id = pthreadID; ++nativeVP.threadSwitchingEnabledCount; // Set up the JNI environment for this thread for the external pthread // to make JNI calls VM_JNIEnvironment myEnv = VM_Thread.getCurrentThread().getJNIEnv(); myEnv.alwaysHasNativeFrame = true; // indicate that no stack resize should occur myEnv.JNITopJavaFP = VM_Address.fromInt(VM_Constants.STACKFRAME_SENTINAL_FP); // indicate to GC that no Java stack frame below this point myEnv.savedPRreg = nativeVP; // make sure no locking is done after this point or lock info may be lost myEnv.savedTIreg = VM_Magic.getThreadId(); // set affinity so JNI calls will get scheduled on this VM_Processor VM_Thread.getCurrentThread().returnAffinity = VM_Processor.getCurrentProcessor(); if (trace) { System.out.println("VM_JNIStartUp: attach done, moving thread to native VM_Processor ... "); } // take this main thread off the current VM_Processor // from this point, it exists on the native VM_Processor and will // only resume execution when the associated pthread make a JNI call VM_Thread.getCurrentThread().beingDispatched = true; cleanupThread.proceedToFinish = true; VM_Thread.morph(); // Resume execution here when the associated pthread attempts to detach // The thread state is restored here by JNIServiceThread // We are now running on the original Java stack instead of the pthread stack if (trace) { System.out.println("VM_JNIStartUp: attached thread terminated, " + Thread.currentThread().getName() + ", " + VM.intAsHexString(VM_Magic.objectAsAddress(VM_Thread.getCurrentThread()).toInt())); } // remove the VP data structure from the list maintained for GC if (VM_Processor.unregisterAttachedProcessor(nativeVP)==0) VM.sysWrite("ERROR: VM_Processor for JNI_CreateJavaVM was not registered\n"); VM_Thread.terminate(); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/66bf0388b8c9d935e76afce0f4f488ab54ce6b40/VM_JNIStartUp.java/buggy/rvm/src/vm/scheduler/VM_JNIStartUp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
368,
17,
9515,
8251,
67,
3830,
225,
288,
565,
309,
261,
7397,
18,
3448,
13233,
13,
8251,
67,
11870,
18,
5129,
2932,
7397,
67,
46,
50,
45,
1685,
1211,
3113,
315,
2681,
8863,
565,
309,
261,
5129,
13,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
7397,
67,
46,
50,
45,
1685,
1211,
30,
5110,
2650,
315,
397,
4697,
8251,
18,
474,
1463,
14866,
12,
7397,
67,
19289,
18,
1612,
1463,
1887,
12,
7397,
67,
3830,
18,
588,
3935,
3830,
1435,
2934,
869,
1702,
10756,
397,
9506,
315,
3306,
310,
3903,
293,
5930,
315,
397,
293,
5930,
734,
397,
1548,
82,
8863,
1377,
2332,
18,
659,
18,
8222,
2932,
46,
50,
45,
3491,
358,
506,
15235,
622,
315,
397,
8251,
18,
474,
1463,
14866,
12,
9375,
46,
50,
45,
3491,
1887,
18,
869,
1702,
1435,
10019,
1850,
289,
565,
368,
1865,
11274,
326,
3751,
981,
16,
1993,
19801,
358,
326,
783,
6659,
565,
8251,
67,
5164,
783,
26152,
273,
8251,
67,
5164,
18,
588,
3935,
5164,
5621,
565,
8251,
67,
3830,
18,
588,
3935,
3830,
7675,
8700,
16310,
273,
783,
26152,
31,
565,
368,
1000,
731,
326,
804,
31883,
298,
304,
1211,
3830,
716,
903,
4277,
326,
3903,
293,
5930,
565,
368,
518,
903,
2546,
506,
2489,
358,
326,
1967,
6659,
565,
8251,
67,
46,
50,
45,
1684,
7397,
11641,
3830,
6686,
3830,
273,
4202,
394,
8251,
67,
46,
50,
45,
1684,
7397,
11641,
3830,
12,
7397,
67,
3830,
18,
588,
3935,
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,
368,
17,
9515,
8251,
67,
3830,
225,
288,
565,
309,
261,
7397,
18,
3448,
13233,
13,
8251,
67,
11870,
18,
5129,
2932,
7397,
67,
46,
50,
45,
1685,
1211,
3113,
315,
2681,
8863,
565,
309,
261,
5129,
13,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
7397,
67,
46,
50,
45,
1685,
1211,
30,
5110,
2650,
315,
397,
4697,
8251,
18,
474,
1463,
14866,
12,
7397,
67,
19289,
18,
1612,
1463,
1887,
12,
7397,
67,
3830,
18,
588,
3935,
3830,
1435,
2934,
869,
1702,
10756,
397,
9506,
315,
3306,
310,
3903,
293,
5930,
315,
397,
293,
5930,
734,
397,
1548,
82,
8863,
1377,
2332,
18,
659,
18,
8222,
2932,
46,
50,
45,
3491,
358,
2
] |
public Method getIndexedReadMethod() { | public Method getIndexedReadMethod() { | public Method getIndexedReadMethod() { return getIndex; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/cfc66449c23ffe38c77e15d3ba7c3a3a19b7ff5c/IndexedPropertyDescriptor.java/buggy/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2985,
8088,
329,
1994,
1305,
1435,
288,
202,
202,
2463,
8088,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2985,
8088,
329,
1994,
1305,
1435,
288,
202,
202,
2463,
8088,
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,
-100,
-100
] |
this.constant = new Float(constantSource); | constant = new Float(constantSource); | public Object getConstant() throws JavaModelException { if (this.constant != null) { return this.constant; } SourceFieldElementInfo info = (SourceFieldElementInfo) getElementInfo(); if (info.initializationSource == null) { return null; } String constantSource = new String(info.initializationSource); String signature = info.getTypeSignature(); if (signature.equals(Signature.SIG_INT)) { this.constant = new Integer(constantSource); } else if (signature.equals(Signature.SIG_SHORT)) { this.constant = new Short(constantSource); } else if (signature.equals(Signature.SIG_BYTE)) { this.constant = new Byte(constantSource); } else if (signature.equals(Signature.SIG_BOOLEAN)) { this.constant = new Boolean(constantSource); } else if (signature.equals(Signature.SIG_CHAR)) { this.constant = new Character(constantSource.charAt(0)); } else if (signature.equals(Signature.SIG_DOUBLE)) { this.constant = new Double(constantSource); } else if (signature.equals(Signature.SIG_FLOAT)) { this.constant = new Float(constantSource); } else if (signature.equals(Signature.SIG_LONG)) { this.constant = new Long(constantSource); } else if (signature.equals("QString;")) {//$NON-NLS-1$ this.constant = constantSource; } return this.constant;} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/7acc82a1aa09d7f270cc2a9bb108a01a76d98132/SourceField.java/buggy/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1033,
24337,
1435,
1216,
5110,
1488,
503,
288,
202,
430,
261,
2211,
18,
14384,
480,
446,
13,
288,
202,
202,
2463,
333,
18,
14384,
31,
202,
97,
202,
1830,
974,
1046,
966,
1123,
273,
261,
1830,
974,
1046,
966,
13,
7426,
966,
5621,
202,
430,
261,
1376,
18,
6769,
1588,
1830,
422,
446,
13,
288,
202,
202,
2463,
446,
31,
202,
97,
9506,
202,
780,
5381,
1830,
273,
394,
514,
12,
1376,
18,
6769,
1588,
1830,
1769,
202,
780,
3372,
273,
1123,
18,
588,
559,
5374,
5621,
202,
430,
261,
8195,
18,
14963,
12,
5374,
18,
18513,
67,
3217,
3719,
288,
202,
202,
2211,
18,
14384,
273,
394,
2144,
12,
14384,
1830,
1769,
202,
97,
469,
309,
261,
8195,
18,
14963,
12,
5374,
18,
18513,
67,
15993,
3719,
288,
202,
202,
2211,
18,
14384,
273,
394,
7925,
12,
14384,
1830,
1769,
202,
97,
469,
309,
261,
8195,
18,
14963,
12,
5374,
18,
18513,
67,
15377,
3719,
288,
202,
202,
2211,
18,
14384,
273,
394,
3506,
12,
14384,
1830,
1769,
202,
97,
469,
309,
261,
8195,
18,
14963,
12,
5374,
18,
18513,
67,
17900,
3719,
288,
202,
202,
2211,
18,
14384,
273,
394,
3411,
12,
14384,
1830,
1769,
202,
97,
469,
309,
261,
8195,
18,
14963,
12,
5374,
18,
18513,
67,
7305,
3719,
288,
202,
202,
2211,
18,
14384,
273,
394,
6577,
12,
14384,
1830,
18,
3001,
861,
12,
20,
10019,
202,
97,
469,
309,
261,
8195,
18,
14963,
12,
5374,
18,
18513,
67,
17088,
3719,
288,
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,
1033,
24337,
1435,
1216,
5110,
1488,
503,
288,
202,
430,
261,
2211,
18,
14384,
480,
446,
13,
288,
202,
202,
2463,
333,
18,
14384,
31,
202,
97,
202,
1830,
974,
1046,
966,
1123,
273,
261,
1830,
974,
1046,
966,
13,
7426,
966,
5621,
202,
430,
261,
1376,
18,
6769,
1588,
1830,
422,
446,
13,
288,
202,
202,
2463,
446,
31,
202,
97,
9506,
202,
780,
5381,
1830,
273,
394,
514,
12,
1376,
18,
6769,
1588,
1830,
1769,
202,
780,
3372,
273,
1123,
18,
588,
559,
5374,
5621,
202,
430,
261,
8195,
18,
14963,
12,
5374,
18,
18513,
67,
3217,
3719,
288,
202,
202,
2211,
18,
14384,
273,
394,
2144,
12,
14384,
1830,
1769,
202,
97,
469,
309,
261,
2
] |
z0 = z0 << 9 | z0 >>> -9; | z0 = z0 << 9 | z0 >>> (32 - 9); | private void block(final int p, final int x0, final int x1) { if (DEBUG) { debug("block ("+block+") x0="+x0+" x1="+x1+" p="+p); } z0 += z3; z3 = z3 << 15 | z3 >>> -15; z1 += z4; z4 = z4 << 25 | z4 >>> -25; z2 ^= z0; z0 = z0 << 9 | z0 >>> -9; z3 ^= z1; z1 = z1 << 10 | z1 >>> -10; z4 += z2; z2 = z2 << 17 | z2 >>> -17; z0 ^= z3 + x0; z3 = z3 << 30 | z3 >>> -30; z1 ^= z4; z4 = z4 << 13 | z4 >>> -13; z2 += z0; z0 = z0 << 20 | z0 >>> -20; z3 += z1; z1 = z1 << 11 | z1 >>> -11; z4 ^= z2; z2 = z2 << 5 | z2 >>> -5; z0 += z3 ^ p; z3 = z3 << 15 | z3 >>> -15; z1 += z4; z4 = z4 << 25 | z4 >>> -25; z2 ^= z0; z0 = z0 << 9 | z0 >>> -9; z3 ^= z1; z1 = z1 << 10 | z1 >>> -10; z4 += z2; z2 = z2 << 17 | z2 >>> -17; z0 ^= z3 + x1; z3 = z3 << 30 | z3 >>> -30; z1 ^= z4; z4 = z4 << 13 | z4 >>> -13; z2 += z0; z0 = z0 << 20 | z0 >>> -20; z3 += z1; z1 = z1 << 11 | z1 >>> -11; z4 ^= z2; z2 = z2 << 5 | z2 >>> -5; } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/fc02ca698d90e3be595a4ac315bc39890c8510f1/Helix.java/buggy/libraries/javalib/gnu/crypto/exp/Helix.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1203,
12,
6385,
509,
293,
16,
727,
509,
619,
20,
16,
727,
509,
619,
21,
13,
288,
1377,
309,
261,
9394,
13,
288,
540,
1198,
2932,
2629,
7566,
15,
2629,
15,
7923,
619,
20,
1546,
15,
92,
20,
9078,
619,
21,
1546,
15,
92,
21,
9078,
293,
1546,
15,
84,
1769,
1377,
289,
1377,
998,
20,
1011,
998,
23,
31,
1377,
998,
23,
273,
998,
23,
2296,
4711,
571,
998,
23,
4080,
300,
3600,
31,
1377,
998,
21,
1011,
998,
24,
31,
1377,
998,
24,
273,
998,
24,
2296,
6969,
571,
998,
24,
4080,
300,
2947,
31,
1377,
998,
22,
10352,
998,
20,
31,
1377,
998,
20,
273,
998,
20,
2296,
225,
2468,
571,
998,
20,
4080,
261,
1578,
300,
2468,
1769,
1377,
998,
23,
10352,
998,
21,
31,
1377,
998,
21,
273,
998,
21,
2296,
1728,
571,
998,
21,
4080,
300,
2163,
31,
1377,
998,
24,
1011,
998,
22,
31,
1377,
998,
22,
273,
998,
22,
2296,
8043,
571,
998,
22,
4080,
300,
4033,
31,
1377,
998,
20,
10352,
998,
23,
397,
619,
20,
31,
1377,
998,
23,
273,
998,
23,
2296,
5196,
571,
998,
23,
4080,
300,
5082,
31,
1377,
998,
21,
10352,
998,
24,
31,
1377,
998,
24,
273,
998,
24,
2296,
5958,
571,
998,
24,
4080,
300,
3437,
31,
1377,
998,
22,
1011,
998,
20,
31,
1377,
998,
20,
273,
998,
20,
2296,
4200,
571,
998,
20,
4080,
300,
3462,
31,
1377,
998,
23,
1011,
998,
21,
31,
1377,
998,
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,
565,
3238,
918,
1203,
12,
6385,
509,
293,
16,
727,
509,
619,
20,
16,
727,
509,
619,
21,
13,
288,
1377,
309,
261,
9394,
13,
288,
540,
1198,
2932,
2629,
7566,
15,
2629,
15,
7923,
619,
20,
1546,
15,
92,
20,
9078,
619,
21,
1546,
15,
92,
21,
9078,
293,
1546,
15,
84,
1769,
1377,
289,
1377,
998,
20,
1011,
998,
23,
31,
1377,
998,
23,
273,
998,
23,
2296,
4711,
571,
998,
23,
4080,
300,
3600,
31,
1377,
998,
21,
1011,
998,
24,
31,
1377,
998,
24,
273,
998,
24,
2296,
6969,
571,
998,
24,
4080,
300,
2947,
31,
1377,
998,
22,
10352,
998,
20,
31,
1377,
998,
20,
273,
998,
20,
2296,
225,
2468,
571,
998,
20,
2
] |
int iStyle = ( fdCurrent.isSetBold( ) && fdCurrent.isBold( ) ) ? SWT.BOLD : SWT.NORMAL; iStyle |= ( fdCurrent.isSetItalic( ) && fdCurrent.isItalic( ) ) ? SWT.ITALIC : iStyle; | int iStyle = ( fdCurrent.isSetBold( ) && fdCurrent.isBold( ) ) ? SWT.BOLD : SWT.NORMAL; iStyle |= ( fdCurrent.isSetItalic( ) && fdCurrent.isItalic( ) ) ? SWT.ITALIC : iStyle; | public void paintControl( PaintEvent pe ) { Font fSize = null; Font fCurrent = null; Color cFore = null; Color cBack = null; GC gc = pe.gc; Font fOld = gc.getFont( ); if ( !this.isEnabled( ) ) { cFore = Display.getCurrent( ).getSystemColor( SWT.COLOR_DARK_GRAY ); cBack = Display.getCurrent( ) .getSystemColor( SWT.COLOR_WIDGET_BACKGROUND ); } else { cBack = Display.getCurrent( ) .getSystemColor( SWT.COLOR_LIST_BACKGROUND ); if ( cdCurrent != null && bUseColor && cdCurrent.getTransparency( ) > 0 ) { cFore = new Color( this.getDisplay( ), cdCurrent.getRed( ), cdCurrent.getGreen( ), cdCurrent.getBlue( ) ); } else { cFore = new Color( this.getDisplay( ), 0, 0, 0 ); } } gc.setForeground( cFore ); gc.setBackground( cBack ); gc.fillRectangle( 0, 0, this.getSize( ).x, this.getSize( ).y ); if ( fdCurrent != null ) { // Handle styles int iStyle = ( fdCurrent.isSetBold( ) && fdCurrent.isBold( ) ) ? SWT.BOLD : SWT.NORMAL; iStyle |= ( fdCurrent.isSetItalic( ) && fdCurrent.isItalic( ) ) ? SWT.ITALIC : iStyle; String sFontName = ChartUIUtil.getFontName( fdCurrent ); if ( !bUseSize ) { gc.setClipping( 2, 2, this.getSize( ).x - 40, 26 ); fCurrent = new Font( this.getDisplay( ), ChartUIUtil.getFontName( fdCurrent ), fOld.getFontData( )[0].getHeight( ), iStyle ); } else { fCurrent = new Font( this.getDisplay( ), ChartUIUtil.getFontName( fdCurrent ), fdCurrent.isSetSize( ) ? (int) fdCurrent.getSize( ) : 9, iStyle ); } gc.setFont( fCurrent ); // Calculate the location to render text int iStartX = 5; int iStartY = 3; if ( bUseAlignment ) { if ( ChartUIUtil.getFontTextAlignment( fdCurrent ) .getHorizontalAlignment( ) .equals( HorizontalAlignment.LEFT_LITERAL ) ) { iStartX = 5; } else if ( ChartUIUtil.getFontTextAlignment( fdCurrent ) .getHorizontalAlignment( ) .equals( HorizontalAlignment.CENTER_LITERAL ) ) { iStartX = this.getSize( ).x / 2 - ( getStringWidth( gc, sFontName ).x / 2 ); } else if ( ChartUIUtil.getFontTextAlignment( fdCurrent ) .getHorizontalAlignment( ) .equals( HorizontalAlignment.RIGHT_LITERAL ) ) { iStartX = this.getSize( ).x - getStringWidth( gc, sFontName ).x - 5; } if ( ChartUIUtil.getFontTextAlignment( fdCurrent ) .getVerticalAlignment( ) .equals( VerticalAlignment.TOP_LITERAL ) ) { iStartY = 3; } else if ( ChartUIUtil.getFontTextAlignment( fdCurrent ) .getVerticalAlignment( ) .equals( VerticalAlignment.CENTER_LITERAL ) ) { iStartY = ( this.getSize( ).y / 2 ); if ( bUseSize ) { iStartY -= ( getStringWidth( gc, sFontName ).y / 2 ); } else { iStartY -= 15; } } else if ( ChartUIUtil.getFontTextAlignment( fdCurrent ) .getVerticalAlignment( ) .equals( VerticalAlignment.BOTTOM_LITERAL ) ) { iStartY = this.getSize( ).y; if ( bUseSize ) { iStartY -= ( getStringWidth( gc, sFontName ).y ) + 5; } else { iStartY -= 30; } } } gc.drawText( sFontName, iStartX, iStartY ); if ( fdCurrent.isUnderline( ) ) { gc.drawLine( iStartX, iStartY + getStringWidth( gc, sFontName ).y - gc.getFontMetrics( ).getDescent( ), iStartX + getStringWidth( gc, sFontName ).x - gc.getFontMetrics( ).getDescent( ), iStartY + getStringWidth( gc, sFontName ).y - gc.getFontMetrics( ).getDescent( ) ); } if ( fdCurrent.isStrikethrough( ) ) { gc.drawLine( iStartX, iStartY + ( getStringWidth( gc, sFontName ).y / 2 ) + 1, iStartX + getStringWidth( gc, sFontName ).x, iStartY + ( getStringWidth( gc, sFontName ).y / 2 ) + 1 ); } if ( !bUseSize ) { gc.setClipping( 1, 1, this.getSize( ).x, this.getSize( ).y ); fSize = new Font( this.getDisplay( ), "Sans-Serif", fOld.getFontData( )[0].getHeight( ), SWT.NORMAL ); //$NON-NLS-1$ gc.setFont( fSize ); String sizeString = "(" + ( fdCurrent.isSetSize( ) ? String.valueOf( (int) fdCurrent.getSize( ) ) : "Auto" ) + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ Point pt = gc.textExtent( sizeString ); gc.drawText( sizeString, this.getSize( ).x - pt.x - this.getBorderWidth( ) - 2, ( this.getSize( ).y - pt.y ) / 2 - 1 ); fSize.dispose( ); } fCurrent.dispose( ); } if ( this.isEnabled( ) ) { cFore.dispose( ); } gc.setFont( fOld ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/cd5c8813518e43fa93c7914cef141f1d45fc4d06/FontCanvas.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontCanvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
3367,
12,
30001,
1133,
2804,
262,
202,
95,
202,
202,
5711,
284,
1225,
273,
446,
31,
202,
202,
5711,
284,
3935,
273,
446,
31,
202,
202,
2957,
276,
13573,
273,
446,
31,
202,
202,
2957,
276,
2711,
273,
446,
31,
202,
202,
15396,
8859,
273,
2804,
18,
13241,
31,
202,
202,
5711,
284,
7617,
273,
8859,
18,
588,
5711,
12,
11272,
202,
202,
430,
261,
401,
2211,
18,
291,
1526,
12,
262,
262,
202,
202,
95,
1082,
202,
71,
13573,
273,
9311,
18,
588,
3935,
12,
262,
18,
588,
3163,
2957,
12,
348,
8588,
18,
10989,
67,
40,
9584,
67,
43,
6722,
11272,
1082,
202,
71,
2711,
273,
9311,
18,
588,
3935,
12,
262,
6862,
202,
18,
588,
3163,
2957,
12,
348,
8588,
18,
10989,
67,
59,
734,
3264,
67,
8720,
20166,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
71,
2711,
273,
9311,
18,
588,
3935,
12,
262,
6862,
202,
18,
588,
3163,
2957,
12,
348,
8588,
18,
10989,
67,
7085,
67,
8720,
20166,
11272,
1082,
202,
430,
261,
7976,
3935,
480,
446,
6862,
202,
10,
10,
324,
3727,
2957,
597,
7976,
3935,
18,
588,
1429,
18258,
12,
262,
405,
374,
262,
1082,
202,
95,
9506,
202,
71,
13573,
273,
394,
5563,
12,
333,
18,
588,
4236,
12,
262,
16,
25083,
202,
4315,
3935,
18,
588,
3715,
12,
262,
16,
25083,
202,
4315,
3935,
18,
588,
21453,
12,
262,
16,
25083,
202,
4315,
3935,
18,
588,
27986,
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,
12574,
3367,
12,
30001,
1133,
2804,
262,
202,
95,
202,
202,
5711,
284,
1225,
273,
446,
31,
202,
202,
5711,
284,
3935,
273,
446,
31,
202,
202,
2957,
276,
13573,
273,
446,
31,
202,
202,
2957,
276,
2711,
273,
446,
31,
202,
202,
15396,
8859,
273,
2804,
18,
13241,
31,
202,
202,
5711,
284,
7617,
273,
8859,
18,
588,
5711,
12,
11272,
202,
202,
430,
261,
401,
2211,
18,
291,
1526,
12,
262,
262,
202,
202,
95,
1082,
202,
71,
13573,
273,
9311,
18,
588,
3935,
12,
262,
18,
588,
3163,
2957,
12,
348,
8588,
18,
10989,
67,
40,
9584,
67,
43,
6722,
11272,
1082,
202,
71,
2711,
273,
9311,
18,
588,
3935,
12,
262,
2
] |
for (Iterator it=issues.iterator(); it.hasNext();) { | for (Iterator it = issues.iterator(); it.hasNext();) { | public void evaluate(Set issues) { for (Iterator it=issues.iterator(); it.hasNext();) { Issue issue = (Issue)it.next(); Resolution resolution = issue.getResolutionObject(); // If at least one issue is resolved. if (resolution != null) { throw new AcceptanceException(issue.getKey() + " issue must be in UNRESOLVED."); } } } | 58796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58796/3a12b316e4266ecc9fb2b36be6a7239a85be389a/AreIssuesUnresolvedPredicate.java/buggy/src/java/com/atlassian/jira/ext/commitacceptance/server/evaluator/predicate/AreIssuesUnresolvedPredicate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5956,
12,
694,
8296,
13,
288,
202,
202,
1884,
261,
3198,
518,
33,
9618,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
12956,
5672,
273,
261,
12956,
13,
305,
18,
4285,
5621,
1082,
202,
11098,
7861,
273,
5672,
18,
588,
11098,
921,
5621,
1082,
202,
759,
971,
622,
4520,
1245,
5672,
353,
4640,
18,
1082,
202,
430,
261,
19182,
480,
446,
13,
202,
95,
9506,
202,
12849,
394,
8662,
1359,
503,
12,
13882,
18,
588,
653,
1435,
397,
315,
5672,
1297,
506,
316,
5019,
17978,
12135,
1199,
1769,
1082,
202,
97,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5956,
12,
694,
8296,
13,
288,
202,
202,
1884,
261,
3198,
518,
33,
9618,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
12956,
5672,
273,
261,
12956,
13,
305,
18,
4285,
5621,
1082,
202,
11098,
7861,
273,
5672,
18,
588,
11098,
921,
5621,
1082,
202,
759,
971,
622,
4520,
1245,
5672,
353,
4640,
18,
1082,
202,
430,
261,
19182,
480,
446,
13,
202,
95,
9506,
202,
12849,
394,
8662,
1359,
503,
12,
13882,
18,
588,
653,
1435,
397,
315,
5672,
1297,
506,
316,
5019,
17978,
12135,
1199,
1769,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jsFunction_setMonth(args)); | makeDate(args, 2, true)); | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { switch (methodId) { case ConstructorId_UTC: return wrap_double(jsStaticFunction_UTC(args)); case ConstructorId_parse: return wrap_double(jsStaticFunction_parse (ScriptRuntime.toString(args, 0))); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f, true). jsFunction_toString(); case Id_toTimeString: return realThis(thisObj, f, true). jsFunction_toTimeString(); case Id_toDateString: return realThis(thisObj, f, true). jsFunction_toDateString(); case Id_toLocaleString: return realThis(thisObj, f, true). jsFunction_toLocaleString(); case Id_toLocaleTimeString: return realThis(thisObj, f, true). jsFunction_toLocaleTimeString(); case Id_toLocaleDateString: return realThis(thisObj, f, true). jsFunction_toLocaleDateString(); case Id_toGMTString: case Id_toUTCString: return realThis(thisObj, f, true). jsFunction_toUTCString(); case Id_valueOf: return wrap_double(realThis(thisObj, f, true). jsFunction_valueOf()); case Id_getTime: return wrap_double(realThis(thisObj, f, true). jsFunction_getTime()); case Id_getYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getYear(cx)); case Id_getFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getFullYear()); case Id_getUTCFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCFullYear()); case Id_getMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getMonth()); case Id_getUTCMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMonth()); case Id_getDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getDate()); case Id_getUTCDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDate()); case Id_getDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getDay()); case Id_getUTCDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDay()); case Id_getHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getHours()); case Id_getUTCHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCHours()); case Id_getMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getMinutes()); case Id_getUTCMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMinutes()); case Id_getSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getSeconds()); case Id_getUTCSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCSeconds()); case Id_getMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getMilliseconds()); case Id_getUTCMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMilliseconds()); case Id_getTimezoneOffset: return wrap_double(realThis(thisObj, f, true). jsFunction_getTimezoneOffset()); case Id_setTime: return wrap_double(realThis(thisObj, f, true). jsFunction_setTime(ScriptRuntime.toNumber(args, 0))); case Id_setMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setMilliseconds(args)); case Id_setUTCMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMilliseconds(args)); case Id_setSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setSeconds(args)); case Id_setUTCSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCSeconds(args)); case Id_setMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setMinutes(args)); case Id_setUTCMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMinutes(args)); case Id_setHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setHours(args)); case Id_setUTCHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCHours(args)); case Id_setDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setDate(args)); case Id_setUTCDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCDate(args)); case Id_setMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setMonth(args)); case Id_setUTCMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMonth(args)); case Id_setFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setFullYear(args)); case Id_setUTCFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCFullYear(args)); case Id_setYear: return wrap_double(realThis(thisObj, f, true). jsFunction_setYear(ScriptRuntime.toNumber(args, 0))); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/fb69c14ae4e860dfb5b5df7d866e510acca73ed9/NativeDate.java/clean/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
11471,
30,
5397,
327,
2193,
67,
9056,
12,
2924,
5788,
2083,
67,
11471,
12,
1968,
10019,
7734,
648,
11417,
548,
67,
2670,
30,
5397,
327,
2193,
67,
9056,
12,
2924,
5788,
2083,
67,
2670,
13491,
261,
3651,
5576,
18,
10492,
12,
1968,
16,
374,
3719,
1769,
7734,
648,
3124,
67,
12316,
30,
10792,
327,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
7734,
648,
3124,
67,
10492,
30,
5397,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
13491,
3828,
2083,
67,
10492,
5621,
7734,
648,
3124,
67,
869,
950,
780,
30,
5397,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
13491,
3828,
2083,
67,
869,
950,
780,
5621,
7734,
648,
3124,
67,
869,
1626,
780,
30,
10792,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
13491,
3828,
2083,
67,
869,
1626,
780,
5621,
7734,
648,
3124,
67,
869,
3916,
780,
30,
5397,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
13491,
3828,
2083,
67,
869,
3916,
780,
5621,
7734,
648,
3124,
67,
869,
3916,
950,
780,
30,
5397,
327,
2863,
2503,
12,
2211,
2675,
16,
284,
16,
638,
2934,
13491,
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,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
11471,
30,
5397,
327,
2193,
67,
9056,
12,
2924,
5788,
2083,
67,
11471,
12,
1968,
10019,
7734,
648,
11417,
548,
67,
2670,
30,
5397,
327,
2193,
67,
9056,
12,
2924,
5788,
2083,
67,
2670,
13491,
261,
3651,
5576,
18,
10492,
12,
1968,
16,
374,
3719,
1769,
7734,
648,
3124,
67,
12316,
30,
10792,
327,
3828,
6293,
12,
1968,
16,
15261,
422,
446,
1769,
7734,
648,
2
] |
values[i] = runtime.getNil(); | values[i] = getRuntime().getNil(); | public IRubyObject initialize(IRubyObject[] args) { modify(); int size = RubyNumeric.fix2int(getInstanceVariable(getMetaClass(), "__size__")); if (args.length > size) { throw new ArgumentError(runtime, "struct size differs (" + args.length +" for " + size + ")"); } for (int i = 0; i < args.length; i++) { values[i] = args[i]; } for (int i = args.length; i < size; i++) { values[i] = runtime.getNil(); } return runtime.getNil(); } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
4046,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
5612,
5621,
3639,
509,
963,
273,
19817,
9902,
18,
904,
22,
474,
12,
588,
1442,
3092,
12,
588,
2781,
797,
9334,
10425,
1467,
972,
7923,
1769,
3639,
309,
261,
1968,
18,
2469,
405,
963,
13,
288,
5411,
604,
394,
9236,
12,
9448,
16,
315,
1697,
963,
21944,
7566,
397,
833,
18,
2469,
397,
6,
364,
315,
397,
963,
397,
7310,
1769,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
924,
63,
77,
65,
273,
833,
63,
77,
15533,
3639,
289,
3639,
364,
261,
474,
277,
273,
833,
18,
2469,
31,
277,
411,
963,
31,
277,
27245,
288,
5411,
924,
63,
77,
65,
273,
18814,
7675,
588,
12616,
5621,
3639,
289,
3639,
327,
3099,
18,
588,
12616,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
4046,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
5612,
5621,
3639,
509,
963,
273,
19817,
9902,
18,
904,
22,
474,
12,
588,
1442,
3092,
12,
588,
2781,
797,
9334,
10425,
1467,
972,
7923,
1769,
3639,
309,
261,
1968,
18,
2469,
405,
963,
13,
288,
5411,
604,
394,
9236,
12,
9448,
16,
315,
1697,
963,
21944,
7566,
397,
833,
18,
2469,
397,
6,
364,
315,
397,
963,
397,
7310,
1769,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
924,
63,
77,
65,
273,
833,
63,
77,
15533,
3639,
289,
3639,
364,
261,
474,
277,
273,
833,
18,
2469,
31,
277,
411,
2
] |
if (log.isTraceEnabled()) { log.trace("creating new non-durable subscription on " + coreDestination); } subscription = new Subscription(topic, selector, ms); } else { | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, boolean isCC) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if ("".equals(selector)) { selector = null; } JBossDestination d = (JBossDestination)jmsDestination; if (log.isTraceEnabled()) { log.trace("creating consumer endpoint for " + d + ", selector " + selector + ", " + (noLocal ? "noLocal, " : "") + "subscription " + subscriptionName); } if (d.isTemporary()) { // Can only create a consumer for a temporary destination on the same connection // that created it if (!this.connectionEndpoint.temporaryDestinations.contains(d)) { String msg = "Cannot create a message consumer on a different connection " + "to that which created the temporary destination"; throw new IllegalStateException(msg); } } // look-up destination DestinationManagerImpl dm = serverPeer.getDestinationManager(); Distributor destination = dm.getCoreDestination(jmsDestination); if (destination == null) { throw new InvalidDestinationException("No such destination: " + jmsDestination); } String consumerID = new GUID().toString(); if (callbackHandler == null) { throw new JMSException("null callback handler"); } Subscription subscription = null; if (d.isTopic()) { MessageStore ms = connectionEndpoint.getServerPeer().getMessageStore(); Topic topic = (Topic)destination; if (subscriptionName != null) { // look-up the durable subscription String clientID = connectionEndpoint.getClientID(); if (clientID == null) { throw new JMSException("Cannot create durable subscriber without having set client ID"); } // it's a durable subscription - have we already got one with that name? DurableSubscriptionStoreDelegate dsd = serverPeer.getDurableSubscriptionStoreDelegate(); subscription = dsd.getDurableSubscription(clientID, subscriptionName); if (subscription == null) { if (log.isTraceEnabled()) { log.trace("creating new durable subscription on " + destination); } subscription = dsd. createDurableSubscription(d.getName(), clientID, subscriptionName, selector); } else { if (log.isTraceEnabled()) { log.trace("subscription " + subscriptionName + " already exists"); } // From javax.jms.Session Javadoc: // A client can change an existing durable subscription by creating a durable // TopicSubscriber with the same name and a new topic and/or message selector. // Changing a durable subscriber is equivalent to unsubscribing (deleting) the old // one and creating a new one. // has the selector changed? boolean selectorChanged = (selector == null && subscription.getSelector() != null) || (subscription.getSelector() == null && selector != null) || (subscription.getSelector() != null && selector != null && !subscription.getSelector().equals(selector)); if (log.isTraceEnabled()) { log.trace("selector " + (selectorChanged ? "has" : "has NOT") + " changed"); } // has the Topic changed? boolean topicChanged = subscription.getTopic() != destination; if (log.isTraceEnabled()) { log.trace("topic " + (topicChanged ? "has" : "has NOT") + " changed"); } if (selectorChanged || topicChanged) { if (log.isTraceEnabled()) { log.trace("topic or selector changed so deleting old subscription"); } boolean removed = dsd. removeDurableSubscription(this.connectionEndpoint.clientID, subscriptionName); if (!removed) { throw new InvalidDestinationException("Cannot find durable subscription " + subscriptionName + " to unsubscribe"); } subscription.unsubscribe(); subscription = null; } } } else { // Non durable subscription if (log.isTraceEnabled()) { log.trace("creating new non-durable subscription on " + destination); } subscription = new Subscription(topic, selector, ms); } } ServerConsumerEndpoint ep = new ServerConsumerEndpoint(consumerID, subscription == null ? (Channel)destination : subscription, callbackHandler, this, selector, noLocal); Dispatcher.singleton.registerTarget(consumerID, new ConsumerAdvised(ep)); ClientConsumerDelegate stub = new ClientConsumerDelegate(consumerID); if (subscription != null) { subscription.subscribe(); } putConsumerDelegate(consumerID, ep); connectionEndpoint.consumers.put(consumerID, ep); log.debug("created and registered " + ep); return stub; } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/0dc5c61313332fb885ca364ec8475d5fc9c37d61/ServerSessionEndpoint.java/clean/src/main/org/jboss/jms/server/endpoint/ServerSessionEndpoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9326,
9586,
752,
5869,
9586,
12,
5683,
23007,
5683,
16,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
23799,
394,
1661,
17,
72,
7463,
4915,
603,
315,
397,
2922,
5683,
1769,
289,
4915,
273,
394,
12132,
12,
10476,
16,
3451,
16,
4086,
1769,
289,
469,
288,
282,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
23799,
394,
1661,
17,
72,
7463,
4915,
603,
315,
397,
2922,
5683,
1769,
289,
4915,
273,
394,
12132,
12,
10476,
16,
3451,
16,
4086,
1769,
289,
469,
288,
282,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
23799,
394,
1661,
17,
72,
7463,
4915,
603,
315,
397,
2922,
5683,
1769,
289,
4915,
273,
394,
12132,
12,
10476,
16,
3451,
16,
4086,
1769,
289,
469,
288,
282,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
23799,
394,
1661,
17,
72,
7463,
4915,
603,
315,
397,
2922,
5683,
1769,
289,
4915,
273,
394,
12132,
12,
10476,
16,
3451,
16,
4086,
1769,
289,
469,
288,
282,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
23799,
394,
1661,
17,
72,
7463,
4915,
603,
315,
397,
2922,
5683,
1769,
289,
4915,
273,
394,
12132,
12,
10476,
16,
3451,
16,
4086,
1769,
289,
469,
288,
282,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
23799,
394,
1661,
17,
72,
7463,
4915,
603,
315,
397,
2922,
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,
9326,
9586,
752,
5869,
9586,
12,
5683,
23007,
5683,
16,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
23799,
394,
1661,
17,
72,
7463,
4915,
603,
315,
397,
2922,
5683,
1769,
289,
4915,
273,
394,
12132,
12,
10476,
16,
3451,
16,
4086,
1769,
289,
469,
288,
282,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
23799,
394,
1661,
17,
72,
7463,
4915,
603,
315,
397,
2922,
5683,
1769,
289,
4915,
273,
394,
12132,
12,
10476,
16,
3451,
16,
4086,
1769,
289,
469,
288,
282,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
288,
613,
18,
5129,
2932,
23799,
394,
1661,
17,
72,
7463,
4915,
603,
315,
2
] | |
criteriaList.add("@f:" + getName() + "!='" + value + "'"); | criteriaList.add("@xp:" + getName() + "!='" + value + "'"); | public void makeQuery(Map map, String prefix, XWikiCriteria query, List criteriaList) { String value = (String)map.get(prefix); if ((value!=null)&&(!value.equals(""))) { String startsWith = (String)map.get(prefix + "startswith"); String endsWith = (String)map.get(prefix + "endswith"); if( "1".equals(startsWith)) criteriaList.add("jcr:like(@f:" + getName() + ", '" + value + "%')"); else if("1".equals(endsWith)) criteriaList.add("jcr:like(@f:" + getName() + ", '%" + value + "')"); else criteriaList.add("jcr:like(@f:" + getName() + ", '%" + value + "%')"); return; } value = (String)map.get(prefix + "exact"); if ((value!=null)&&(!value.equals(""))) { criteriaList.add("@f:" + getName() + "='" + value + "'"); return; } value = (String)map.get(prefix + "not"); if ((value!=null)&&(!value.equals(""))) { criteriaList.add("@f:" + getName() + "!='" + value + "'"); return; } } | 52380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52380/7062e0263efe566c07676c37ba0c25f530967372/StringClass.java/clean/src/main/java/com/xpn/xwiki/objects/classes/StringClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1221,
1138,
12,
863,
852,
16,
514,
1633,
16,
1139,
25438,
7231,
843,
16,
987,
3582,
682,
13,
288,
3639,
514,
460,
273,
261,
780,
13,
1458,
18,
588,
12,
3239,
1769,
3639,
309,
14015,
1132,
5,
33,
2011,
13,
10,
10,
12,
5,
1132,
18,
14963,
2932,
6,
20349,
288,
540,
514,
4969,
273,
261,
780,
13,
1458,
18,
588,
12,
3239,
397,
315,
17514,
1918,
8863,
540,
514,
7633,
273,
261,
780,
13,
1458,
18,
588,
12,
3239,
397,
315,
5839,
1918,
8863,
5411,
309,
12,
315,
21,
9654,
14963,
12,
17514,
1190,
3719,
7734,
3582,
682,
18,
1289,
2932,
78,
3353,
30,
5625,
26964,
74,
2773,
397,
1723,
1435,
397,
3104,
2119,
397,
460,
397,
2213,
23291,
1769,
5411,
469,
309,
2932,
21,
9654,
14963,
12,
5839,
1190,
3719,
7734,
3582,
682,
18,
1289,
2932,
78,
3353,
30,
5625,
26964,
74,
2773,
397,
1723,
1435,
397,
3104,
1995,
6,
397,
460,
397,
2491,
2225,
1769,
5411,
469,
7734,
3582,
682,
18,
1289,
2932,
78,
3353,
30,
5625,
26964,
74,
2773,
397,
1723,
1435,
397,
3104,
1995,
6,
397,
460,
397,
2213,
23291,
1769,
5411,
327,
31,
3639,
289,
3639,
460,
273,
261,
780,
13,
1458,
18,
588,
12,
3239,
397,
315,
17165,
8863,
3639,
309,
14015,
1132,
5,
33,
2011,
13,
10,
10,
12,
5,
1132,
18,
14963,
2932,
6,
20349,
288,
540,
3582,
682,
18,
1289,
2932,
36,
74,
2773,
397,
1723,
1435,
397,
315,
13396,
397,
460,
397,
5862,
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,
1221,
1138,
12,
863,
852,
16,
514,
1633,
16,
1139,
25438,
7231,
843,
16,
987,
3582,
682,
13,
288,
3639,
514,
460,
273,
261,
780,
13,
1458,
18,
588,
12,
3239,
1769,
3639,
309,
14015,
1132,
5,
33,
2011,
13,
10,
10,
12,
5,
1132,
18,
14963,
2932,
6,
20349,
288,
540,
514,
4969,
273,
261,
780,
13,
1458,
18,
588,
12,
3239,
397,
315,
17514,
1918,
8863,
540,
514,
7633,
273,
261,
780,
13,
1458,
18,
588,
12,
3239,
397,
315,
5839,
1918,
8863,
5411,
309,
12,
315,
21,
9654,
14963,
12,
17514,
1190,
3719,
7734,
3582,
682,
18,
1289,
2932,
78,
3353,
30,
5625,
26964,
74,
2773,
397,
1723,
1435,
397,
3104,
2119,
397,
2
] |
public Ruleset( org.w3c.dom.css.CSSStyleRule rule, int orig ) { this( orig ); pullPropertiesFromDOMRule( rule ); pullSelectorsFromDOMRule( rule ); | public Ruleset(org.w3c.dom.css.CSSStyleRule rule, int orig) { this(orig); pullPropertiesFromDOMRule(rule); pullSelectorsFromDOMRule(rule); | public Ruleset( org.w3c.dom.css.CSSStyleRule rule, int orig ) { this( orig ); pullPropertiesFromDOMRule( rule ); pullSelectorsFromDOMRule( rule ); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/Ruleset.java/buggy/src/java/org/xhtmlrenderer/css/sheet/Ruleset.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15718,
278,
12,
2358,
18,
91,
23,
71,
18,
9859,
18,
5212,
18,
10276,
2885,
2175,
1720,
16,
509,
1647,
262,
288,
3639,
333,
12,
1647,
11272,
3639,
6892,
2297,
1265,
8168,
2175,
12,
1720,
11272,
3639,
6892,
19277,
1265,
8168,
2175,
12,
1720,
11272,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
15718,
278,
12,
2358,
18,
91,
23,
71,
18,
9859,
18,
5212,
18,
10276,
2885,
2175,
1720,
16,
509,
1647,
262,
288,
3639,
333,
12,
1647,
11272,
3639,
6892,
2297,
1265,
8168,
2175,
12,
1720,
11272,
3639,
6892,
19277,
1265,
8168,
2175,
12,
1720,
11272,
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
] |
if (obj instanceof Replaceable) obj = ((Replaceable)obj).writeReplace (); | if (obj instanceof Serializable) { Method m = null; try { Class classArgs[] = {}; m = obj.getClass ().getDeclaredMethod ("writeReplace", classArgs); obj = m.invoke (obj, new Object[] {}); } catch (NoSuchMethodException ignore) { } catch (IllegalAccessException ignore) { } catch (InvocationTargetException ignore) { } } | public final void writeObject (Object obj) throws IOException { if (useSubclassMethod) { writeObjectOverride (obj); return; } boolean was_serializing = isSerializing; if (! was_serializing) setBlockDataMode (false); try { isSerializing = true; boolean replaceDone = false; drain (); while (true) { if (obj == null) { realOutput.writeByte (TC_NULL); break; } Integer handle = findHandle (obj); if (handle != null) { realOutput.writeByte (TC_REFERENCE); realOutput.writeInt (handle.intValue ()); break; } if (obj instanceof Class) { realOutput.writeByte (TC_CLASS); writeObject (ObjectStreamClass.lookup ((Class)obj)); assignNewHandle (obj); break; } if (obj instanceof ObjectStreamClass) { ObjectStreamClass osc = (ObjectStreamClass)obj; realOutput.writeByte (TC_CLASSDESC); realOutput.writeUTF (osc.getName ()); realOutput.writeLong (osc.getSerialVersionUID ()); assignNewHandle (obj); int flags = osc.getFlags (); if (protocolVersion == PROTOCOL_VERSION_2 && osc.isExternalizable ()) flags |= SC_BLOCK_DATA; realOutput.writeByte (flags); ObjectStreamField[] fields = osc.fields; realOutput.writeShort (fields.length); ObjectStreamField field; for (int i=0; i < fields.length; i++) { field = fields[i]; realOutput.writeByte (field.getTypeCode ()); realOutput.writeUTF (field.getName ()); if (! field.isPrimitive ()) writeObject (field.getTypeString ()); } setBlockDataMode (true); annotateClass (osc.forClass ()); setBlockDataMode (false); realOutput.writeByte (TC_ENDBLOCKDATA); if (osc.isSerializable ()) writeObject (osc.getSuper ()); else writeObject (null); break; } Object replacedObject = null; if ((replacementEnabled || obj instanceof Replaceable) && ! replaceDone) { replacedObject = obj; if (obj instanceof Replaceable) obj = ((Replaceable)obj).writeReplace (); if (replacementEnabled) obj = replaceObject (obj); replaceDone = true; continue; } if (obj instanceof String) { realOutput.writeByte (TC_STRING); assignNewHandle (obj); realOutput.writeUTF ((String)obj); break; } Class clazz = obj.getClass (); ObjectStreamClass osc = ObjectStreamClass.lookup (clazz); if (osc == null) throw new NotSerializableException (clazz.getName ()); if (clazz.isArray ()) { realOutput.writeByte (TC_ARRAY); writeObject (osc); assignNewHandle (obj); writeArraySizeAndElements (obj, clazz.getComponentType ()); break; } realOutput.writeByte (TC_OBJECT); writeObject (osc); if (replaceDone) assignNewHandle (replacedObject); else assignNewHandle (obj); if (obj instanceof Externalizable) { if (protocolVersion == PROTOCOL_VERSION_2) setBlockDataMode (true); ((Externalizable)obj).writeExternal (this); if (protocolVersion == PROTOCOL_VERSION_2) { setBlockDataMode (false); drain (); } break; } if (obj instanceof Serializable) { currentObject = obj; ObjectStreamClass[] hierarchy = ObjectStreamClass.getObjectStreamClasses (clazz); boolean has_write; for (int i=0; i < hierarchy.length; i++) { currentObjectStreamClass = hierarchy[i]; fieldsAlreadyWritten = false; has_write = currentObjectStreamClass.hasWriteMethod (); writeFields (obj, currentObjectStreamClass.fields, has_write); if (has_write) { drain (); realOutput.writeByte (TC_ENDBLOCKDATA); } } currentObject = null; currentObjectStreamClass = null; currentPutField = null; break; } throw new NotSerializableException (clazz.getName ()); } // end pseudo-loop } catch (IOException e) { realOutput.writeByte (TC_EXCEPTION); reset (true); try { writeObject (e); } catch (IOException ioe) { throw new StreamCorruptedException ("Exception " + ioe + " thrown while exception was being written to stream."); } reset (true); } finally { isSerializing = was_serializing; if (! was_serializing) setBlockDataMode (true); } } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/f7ce7e1e7ea220277a849d860fa470f665b84a9c/ObjectOutputStream.java/clean/libjava/java/io/ObjectOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
16306,
261,
921,
1081,
13,
1216,
1860,
225,
288,
565,
309,
261,
1202,
1676,
1106,
1305,
13,
565,
288,
1377,
16306,
6618,
261,
2603,
1769,
1377,
327,
31,
565,
289,
565,
1250,
1703,
67,
8818,
6894,
273,
353,
6342,
6894,
31,
565,
309,
16051,
1703,
67,
8818,
6894,
13,
1377,
444,
1768,
751,
2309,
261,
5743,
1769,
565,
775,
565,
288,
1377,
353,
6342,
6894,
273,
638,
31,
1377,
1250,
1453,
7387,
273,
629,
31,
1377,
15427,
261,
1769,
1377,
1323,
261,
3767,
13,
1377,
288,
202,
430,
261,
2603,
422,
446,
13,
202,
95,
202,
225,
2863,
1447,
18,
2626,
3216,
261,
15988,
67,
8560,
1769,
202,
225,
898,
31,
202,
97,
202,
4522,
1640,
273,
1104,
3259,
261,
2603,
1769,
202,
430,
261,
4110,
480,
446,
13,
202,
95,
202,
225,
2863,
1447,
18,
2626,
3216,
261,
15988,
67,
14617,
1769,
202,
225,
2863,
1447,
18,
2626,
1702,
261,
4110,
18,
474,
620,
1832,
1769,
202,
225,
898,
31,
202,
97,
202,
430,
261,
2603,
1276,
1659,
13,
202,
95,
202,
225,
2863,
1447,
18,
2626,
3216,
261,
15988,
67,
5237,
1769,
202,
225,
16306,
261,
921,
1228,
797,
18,
8664,
14015,
797,
13,
2603,
10019,
202,
225,
2683,
1908,
3259,
261,
2603,
1769,
202,
225,
898,
31,
202,
97,
202,
430,
261,
2603,
1276,
1033,
1228,
797,
13,
202,
95,
202,
225,
1033,
1228,
797,
31476,
273,
261,
921,
1228,
797,
13,
2603,
31,
202,
225,
2863,
1447,
18,
2626,
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,
727,
918,
16306,
261,
921,
1081,
13,
1216,
1860,
225,
288,
565,
309,
261,
1202,
1676,
1106,
1305,
13,
565,
288,
1377,
16306,
6618,
261,
2603,
1769,
1377,
327,
31,
565,
289,
565,
1250,
1703,
67,
8818,
6894,
273,
353,
6342,
6894,
31,
565,
309,
16051,
1703,
67,
8818,
6894,
13,
1377,
444,
1768,
751,
2309,
261,
5743,
1769,
565,
775,
565,
288,
1377,
353,
6342,
6894,
273,
638,
31,
1377,
1250,
1453,
7387,
273,
629,
31,
1377,
15427,
261,
1769,
1377,
1323,
261,
3767,
13,
1377,
288,
202,
430,
261,
2603,
422,
446,
13,
202,
95,
202,
225,
2863,
1447,
18,
2626,
3216,
261,
15988,
67,
8560,
1769,
202,
225,
898,
31,
202,
97,
202,
4522,
2
] |
GroovyClassLoader gcl = new GroovyClassLoader(); Class dc = gcl.parseClass("class Test { Long id; Long version; }"); GrailsApplication app = new DefaultGrailsApplication(new Class[0], gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); ctx.registerSingleton("Test", dc); GroovyObject testInstance = (GroovyObject)ctx.getBean("Test"); assertNotNull(testInstance); gcl = new GroovyClassLoader(); dc = gcl.parseClass("class Test { Long id; Long version;String updatedProp = 'hello'; }"); ctx.registerSingleton("Test",dc); testInstance = (GroovyObject)ctx.getBean("Test"); assertNotNull(testInstance); assertEquals("hello",testInstance.getProperty("updatedProp")); } | GroovyClassLoader gcl = new GroovyClassLoader(); Class dc = gcl.parseClass("class Test { Long id; Long version; }"); GrailsApplication app = new DefaultGrailsApplication(new Class[0], gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); ctx.registerSingleton("Test", dc); GroovyObject testInstance = (GroovyObject)ctx.getBean("Test"); assertNotNull(testInstance); gcl = new GroovyClassLoader(); dc = gcl.parseClass("class Test { Long id; Long version;String updatedProp = 'hello'; }"); ctx.registerSingleton("Test",dc); testInstance = (GroovyObject)ctx.getBean("Test"); assertNotNull(testInstance); assertEquals("hello",testInstance.getProperty("updatedProp")); } | public void testRegisterAdditionalBean() throws Exception { GroovyClassLoader gcl = new GroovyClassLoader(); Class dc = gcl.parseClass("class Test { Long id; Long version; }"); GrailsApplication app = new DefaultGrailsApplication(new Class[0], gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); ctx.registerSingleton("Test", dc); GroovyObject testInstance = (GroovyObject)ctx.getBean("Test"); assertNotNull(testInstance); // now test override bean gcl = new GroovyClassLoader(); dc = gcl.parseClass("class Test { Long id; Long version;String updatedProp = 'hello'; }"); ctx.registerSingleton("Test",dc); testInstance = (GroovyObject)ctx.getBean("Test"); assertNotNull(testInstance); assertEquals("hello",testInstance.getProperty("updatedProp")); } | 50831 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50831/075145e116446e23fd77adcfc25dab01feb4a27e/GrailsRuntimeConfiguratorTests.java/clean/test/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfiguratorTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3996,
10552,
3381,
1435,
1216,
1185,
288,
202,
202,
43,
12859,
7805,
314,
830,
273,
394,
20841,
7805,
5621,
202,
202,
797,
6744,
273,
314,
830,
18,
2670,
797,
2932,
1106,
7766,
288,
3407,
612,
31,
3407,
1177,
31,
289,
8863,
9506,
202,
14571,
14573,
3208,
595,
273,
394,
2989,
14571,
14573,
3208,
12,
2704,
1659,
63,
20,
6487,
314,
830,
11272,
202,
202,
9865,
28278,
982,
273,
394,
7867,
28278,
5621,
202,
202,
2938,
18,
4861,
9865,
3381,
12,
14571,
14573,
3208,
18,
25039,
67,
734,
16,
595,
1769,
9506,
202,
14571,
14573,
5576,
17182,
2195,
273,
394,
10812,
14573,
5576,
17182,
12,
2910,
16,
2938,
1769,
202,
202,
14571,
14573,
4079,
28278,
1103,
273,
261,
14571,
14573,
4079,
28278,
13,
3923,
18,
14895,
12,
2704,
7867,
4745,
1042,
10663,
202,
202,
11231,
5962,
12,
5900,
1769,
1082,
202,
5900,
18,
4861,
19571,
2932,
4709,
3113,
6744,
1769,
9506,
202,
43,
12859,
921,
1842,
1442,
273,
261,
43,
12859,
921,
13,
5900,
18,
588,
3381,
2932,
4709,
8863,
202,
202,
11231,
5962,
12,
3813,
1442,
1769,
9506,
202,
759,
2037,
1842,
3849,
3931,
202,
202,
75,
830,
273,
394,
20841,
7805,
5621,
202,
202,
7201,
273,
314,
830,
18,
2670,
797,
2932,
1106,
7766,
288,
3407,
612,
31,
3407,
1177,
31,
780,
3526,
4658,
273,
296,
23711,
13506,
289,
8863,
202,
202,
5900,
18,
4861,
19571,
2932,
4709,
3113,
7201,
1769,
9506,
202,
3813,
1442,
273,
261,
43,
12859,
921,
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,
225,
202,
482,
918,
1842,
3996,
10552,
3381,
1435,
1216,
1185,
288,
202,
202,
43,
12859,
7805,
314,
830,
273,
394,
20841,
7805,
5621,
202,
202,
797,
6744,
273,
314,
830,
18,
2670,
797,
2932,
1106,
7766,
288,
3407,
612,
31,
3407,
1177,
31,
289,
8863,
9506,
202,
14571,
14573,
3208,
595,
273,
394,
2989,
14571,
14573,
3208,
12,
2704,
1659,
63,
20,
6487,
314,
830,
11272,
202,
202,
9865,
28278,
982,
273,
394,
7867,
28278,
5621,
202,
202,
2938,
18,
4861,
9865,
3381,
12,
14571,
14573,
3208,
18,
25039,
67,
734,
16,
595,
1769,
9506,
202,
14571,
14573,
5576,
17182,
2195,
273,
394,
10812,
14573,
5576,
17182,
12,
2910,
16,
2938,
1769,
202,
202,
14571,
14573,
4079,
28278,
2
] |
for (int i = 0; i < bufferLength; i++) { | for (int i = 0, max = bufferLength>>2; i < max; i++) { | public void updateColorBuffer() { if (color == null) { return; } int bufferLength = vertex.length * 4; if (colorBuf == null) { colorBuf = ByteBuffer.allocateDirect(4 * bufferLength).order( ByteOrder.nativeOrder()).asFloatBuffer(); } colorBuf.clear(); ColorRGBA tempColor; for (int i = 0; i < bufferLength; i++) { tempColor = color[i]; if (tempColor != null) { colorBuf.put(tempColor.r).put(tempColor.g) .put(tempColor.b).put(tempColor.a); } } colorBuf.flip(); } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/1778dd87c7e1608ef68190a2b6ac1e1f6d15ff09/Geometry.java/buggy/src/com/jme/scene/Geometry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
2957,
1892,
1435,
288,
3639,
309,
261,
3266,
422,
446,
13,
288,
327,
31,
289,
3639,
509,
1613,
1782,
273,
5253,
18,
2469,
380,
1059,
31,
3639,
309,
261,
3266,
5503,
422,
446,
13,
288,
5411,
2036,
5503,
273,
7400,
18,
16247,
5368,
12,
24,
380,
1613,
1782,
2934,
1019,
12,
10792,
30845,
18,
13635,
2448,
1435,
2934,
345,
4723,
1892,
5621,
3639,
289,
3639,
2036,
5503,
18,
8507,
5621,
3639,
5563,
23263,
1906,
2957,
31,
3639,
364,
261,
474,
277,
273,
374,
16,
943,
273,
1613,
1782,
9778,
22,
31,
277,
411,
943,
31,
277,
27245,
288,
1850,
1906,
2957,
273,
2036,
63,
77,
15533,
1850,
309,
261,
5814,
2957,
480,
446,
13,
288,
5411,
2036,
5503,
18,
458,
12,
5814,
2957,
18,
86,
2934,
458,
12,
5814,
2957,
18,
75,
13,
10792,
263,
458,
12,
5814,
2957,
18,
70,
2934,
458,
12,
5814,
2957,
18,
69,
1769,
1850,
289,
3639,
289,
3639,
2036,
5503,
18,
12357,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
2957,
1892,
1435,
288,
3639,
309,
261,
3266,
422,
446,
13,
288,
327,
31,
289,
3639,
509,
1613,
1782,
273,
5253,
18,
2469,
380,
1059,
31,
3639,
309,
261,
3266,
5503,
422,
446,
13,
288,
5411,
2036,
5503,
273,
7400,
18,
16247,
5368,
12,
24,
380,
1613,
1782,
2934,
1019,
12,
10792,
30845,
18,
13635,
2448,
1435,
2934,
345,
4723,
1892,
5621,
3639,
289,
3639,
2036,
5503,
18,
8507,
5621,
3639,
5563,
23263,
1906,
2957,
31,
3639,
364,
261,
474,
277,
273,
374,
16,
943,
273,
1613,
1782,
9778,
22,
31,
277,
411,
943,
31,
277,
27245,
288,
1850,
1906,
2957,
273,
2036,
63,
77,
15533,
1850,
309,
261,
5814,
2957,
480,
446,
13,
288,
2
] |
createType(types, elements[j]); | createType(newTypes, elements[j]); | protected synchronized void refreshFileSystemTypes() { types.clear(); final Extension[] extensions = typesEP.getExtensions(); for (int i = 0; i < extensions.length; i++) { final Extension ext = extensions[i]; final ConfigurationElement[] elements = ext.getConfigurationElements(); for (int j = 0; j < elements.length; j++) { createType(types, elements[j]); } } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/db375ff26e46c7f1767dc5d096c5f8866c265859/FileSystemTypeManager.java/clean/fs/src/fs/org/jnode/fs/service/def/FileSystemTypeManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3852,
918,
4460,
11785,
2016,
1435,
288,
202,
202,
2352,
18,
8507,
5621,
9506,
202,
6385,
10021,
8526,
4418,
273,
1953,
10541,
18,
588,
7513,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4418,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6385,
10021,
1110,
273,
4418,
63,
77,
15533,
1082,
202,
6385,
4659,
1046,
8526,
2186,
273,
1110,
18,
588,
1750,
3471,
5621,
1082,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
2186,
18,
2469,
31,
525,
27245,
288,
9506,
202,
2640,
559,
12,
2352,
16,
2186,
63,
78,
19226,
1082,
202,
97,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1117,
3852,
918,
4460,
11785,
2016,
1435,
288,
202,
202,
2352,
18,
8507,
5621,
9506,
202,
6385,
10021,
8526,
4418,
273,
1953,
10541,
18,
588,
7513,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4418,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6385,
10021,
1110,
273,
4418,
63,
77,
15533,
1082,
202,
6385,
4659,
1046,
8526,
2186,
273,
1110,
18,
588,
1750,
3471,
5621,
1082,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
2186,
18,
2469,
31,
525,
27245,
288,
9506,
202,
2640,
559,
12,
2352,
16,
2186,
63,
78,
19226,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected void handleFailedPushOperation(PushOperation operation, Exception error) { logger_.warn("handle failed pushoperation", error); if (isDestroyed()) { operation.dispose(); return; } StringWriter out = new StringWriter(); error.printStackTrace(new PrintWriter(out)); sendNotification(NOTIFY_PUSH_FAILED, "Push Operation failed", out.toString()); pushErrors_.getAndIncrement(); incErrorCounter(); if (AbstractRetryStrategy.isFatalException(error)) { // push operation caused a fatal exception // destroy the ProxySupplier if (logger_.isWarnEnabled()) { logger_.warn("push raised " + error + ": will destroy ProxySupplier, " + "disconnect Consumer", error); } operation.dispose(); destroy(); } else if (!isRetryAllowed()) { operation.dispose(); destroy(); } else if (!isDestroyed()) { final RetryStrategy _retry = newRetryStrategy(this, operation); try { _retry.retry(); } catch (RetryException e) { logger_.error("retry failed", e); _retry.dispose(); destroy(); } } else { // retry allowed && isDestroyed throw new IllegalStateException("should not happen"); } } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b3247913ea78985fecd1d4233c7be300876c3290/AbstractProxyPushSupplier.java/buggy/src/org/jacorb/notification/servant/AbstractProxyPushSupplier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
2925,
7621,
2988,
12,
7621,
2988,
1674,
16,
1185,
555,
13,
565,
288,
3639,
1194,
27799,
8935,
2932,
4110,
2535,
1817,
7624,
3113,
555,
1769,
7734,
309,
261,
291,
28414,
10756,
3639,
288,
5411,
1674,
18,
2251,
4150,
5621,
5411,
327,
31,
3639,
289,
3639,
17436,
596,
273,
394,
17436,
5621,
3639,
555,
18,
1188,
6332,
12,
2704,
14071,
12,
659,
10019,
3639,
1366,
4386,
12,
4400,
12096,
67,
30348,
67,
11965,
16,
315,
7621,
4189,
2535,
3113,
596,
18,
10492,
10663,
3639,
1817,
4229,
27799,
588,
1876,
10798,
5621,
3639,
7290,
668,
4789,
5621,
3639,
309,
261,
7469,
7539,
4525,
18,
291,
19593,
503,
12,
1636,
3719,
3639,
288,
5411,
368,
1817,
1674,
15848,
279,
10081,
1520,
5411,
368,
5546,
326,
7659,
13254,
5411,
309,
261,
4901,
27799,
291,
3160,
1526,
10756,
5411,
288,
7734,
1194,
27799,
8935,
2932,
6206,
11531,
315,
397,
555,
397,
6398,
903,
5546,
7659,
13254,
16,
315,
13491,
397,
315,
20177,
9326,
3113,
555,
1769,
5411,
289,
5411,
1674,
18,
2251,
4150,
5621,
5411,
5546,
5621,
3639,
289,
3639,
469,
309,
16051,
291,
7539,
5042,
10756,
3639,
288,
5411,
1674,
18,
2251,
4150,
5621,
5411,
5546,
5621,
3639,
289,
3639,
469,
309,
16051,
291,
28414,
10756,
3639,
288,
5411,
727,
9954,
4525,
389,
9620,
273,
394,
7539,
4525,
12,
2211,
16,
1674,
1769,
5411,
775,
5411,
288,
7734,
389,
9620,
18,
9620,
5621,
5411,
289,
1044,
261,
7539,
503,
425,
13,
5411,
288,
7734,
1194,
27799,
1636,
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,
4750,
918,
1640,
2925,
7621,
2988,
12,
7621,
2988,
1674,
16,
1185,
555,
13,
565,
288,
3639,
1194,
27799,
8935,
2932,
4110,
2535,
1817,
7624,
3113,
555,
1769,
7734,
309,
261,
291,
28414,
10756,
3639,
288,
5411,
1674,
18,
2251,
4150,
5621,
5411,
327,
31,
3639,
289,
3639,
17436,
596,
273,
394,
17436,
5621,
3639,
555,
18,
1188,
6332,
12,
2704,
14071,
12,
659,
10019,
3639,
1366,
4386,
12,
4400,
12096,
67,
30348,
67,
11965,
16,
315,
7621,
4189,
2535,
3113,
596,
18,
10492,
10663,
3639,
1817,
4229,
27799,
588,
1876,
10798,
5621,
3639,
7290,
668,
4789,
5621,
3639,
309,
261,
7469,
7539,
4525,
18,
291,
19593,
503,
12,
1636,
3719,
3639,
288,
5411,
368,
1817,
1674,
15848,
2
] | ||
{ final boolean previousRequiredState = inheritedInstanceData.getPreviousRequiredState(); final boolean newRequiredState = inheritedInstanceData.getRequired().get(); if ((valueChanged || previousRequiredState) && !newRequiredState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsOptionalEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousRequiredState) && newRequiredState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsRequiredEvent((XFormsEventTarget) i.next())); } } { final boolean previousRelevantState = inheritedInstanceData.getPreviousRelevantState(); final boolean newRelevantState = inheritedInstanceData.getRelevant().get(); if ((valueChanged || previousRelevantState) && !newRelevantState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsDisabledEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousRelevantState) && newRelevantState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsEnabledEvent((XFormsEventTarget) i.next())); } } { final boolean previousReadonlyState = inheritedInstanceData.getPreviousReadonlyState(); final boolean newReadonlyState = inheritedInstanceData.getReadonly().get(); if ((valueChanged || previousReadonlyState) && !newReadonlyState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsReadwriteEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousReadonlyState) && newReadonlyState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsReadonlyEvent((XFormsEventTarget) i.next())); } } { final boolean previousValidState = inheritedInstanceData.getPreviousValidState(); final boolean newValidState = inheritedInstanceData.getValid().get(); if ((valueChanged || previousValidState) && !newValidState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsInvalidEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousValidState) && newValidState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsValidEvent((XFormsEventTarget) i.next())); } } | public void performDefaultAction(final PipelineContext pipelineContext, XFormsEvent event) { final String eventName = event.getEventName(); if (XFormsEvents.XXFORMS_INITIALIZE_STATE.equals(eventName)) { // Internal event to restore state loadSchemasIfNeeded(pipelineContext); applyComputedExpressionBinds(pipelineContext, false); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(this, false)); clearInstanceDataEventState(); } else if (XFormsEvents.XFORMS_MODEL_CONSTRUCT.equals(eventName)) { // 4.2.1 The xforms-model-construct Event // Bubbles: Yes / Cancelable: No / Context Info: None final Element modelElement = modelDocument.getRootElement(); // 1. All XML Schemas loaded (throws xforms-link-exception) // TODO: support multiple schemas // Get schema URI loadSchemasIfNeeded(pipelineContext); // TODO: throw exception event // 2. Create XPath data model from instance (inline or external) (throws xforms-link-exception) // Instance may not be specified. if (instances == null) { // Build initial instance document List instanceContainers = modelElement.elements(new QName("instance", XFormsConstants.XFORMS_NAMESPACE)); if (instanceContainers.size() > 0) { // Support multiple instances int instancePosition = 0; for (Iterator i = instanceContainers.iterator(); i.hasNext(); instancePosition++) { final Element instanceContainer = (Element) i.next(); final String srcAttribute = instanceContainer.attributeValue("src"); final Document instanceDocument; //= ProcessorUtils.createDocumentFromEmbeddedOrHref(Element element, String urlString) { if (srcAttribute == null) { // Inline instance final List children = instanceContainer.elements(); if (children == null || children.size() == 0) throw new OXFException("xforms:instance element must contain exactly one child element");// TODO: Throw XForms event? instanceDocument = Dom4jUtils.createDocumentCopyParentNamespaces((Element) children.get(0)); } else { // External instance // TODO: Handle relative URLs// if (serverSideRelative) {//// } else {//// }////// xxx final LocationData locationData = (LocationData) instanceContainer.getData(); final URL srcURL = ProcessorUtils.createRelativeURL(locationData, srcAttribute); final URLGenerator urlGenerator = new URLGenerator(srcURL); final DOMSerializer domSerializer = new DOMSerializer(); PipelineUtils.connect(urlGenerator, ProcessorImpl.OUTPUT_DATA, domSerializer, ProcessorImpl.INPUT_DATA); domSerializer.start(pipelineContext); instanceDocument = domSerializer.getDocument(pipelineContext); } setInstanceDocument(pipelineContext, instancePosition, instanceDocument); } } } // TODO: throw exception event // Call special listener to update instance if (instanceConstructListener != null) { for (Iterator i = getInstances().iterator(); i.hasNext();) { instanceConstructListener.updateInstance((XFormsInstance) i.next()); } } // 3. P3P (N/A) // 4. Instance data is constructed. Evaluate binds: // a. Evaluate nodeset // b. Apply model item properties on nodes // c. Throws xforms-binding-exception if the node has already model item property with same name // TODO: a, b, c xxx // 5. xforms-rebuild, xforms-recalculate, xforms-revalidate containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(this)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(this, false)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(this, false));// clearInstanceDataEventState(); } else if (XFormsEvents.XFORMS_MODEL_CONSTRUCT_DONE.equals(eventName)) { // 4.2.2 The xforms-model-construct-done Event // Bubbles: Yes / Cancelable: No / Context Info: None // TODO: if instance exists (for now it does!), check that controls can bind, otherwise control must be "irrelevant" // TODO: implicit lazy instance construction } else if (XFormsEvents.XFORMS_REBUILD.equals(eventName)) { // 4.3.7 The xforms-rebuild Event // Bubbles: Yes / Cancelable: Yes / Context Info: None // TODO: rebuild computational dependency data structures } else if (XFormsEvents.XFORMS_RECALCULATE.equals(eventName)) { // 4.3.6 The xforms-recalculate Event // Bubbles: Yes / Cancelable: Yes / Context Info: None if (instances != null) { // Update computed expression binds applyComputedExpressionBinds(pipelineContext, true); } } else if (XFormsEvents.XFORMS_REVALIDATE.equals(eventName)) { // 4.3.5 The xforms-revalidate Event // Bubbles: Yes / Cancelable: Yes / Context Info: None if (instances != null) { // Clear validation state for (Iterator i = instances.iterator(); i.hasNext();) { XFormsUtils.iterateInstanceData(((XFormsInstance) i.next()).getDocument(), new XFormsUtils.InstanceWalker() { public void walk(Node node, InstanceData localInstanceData, InstanceData inheritedInstanceData) { if (localInstanceData != null) { localInstanceData.clearValidationState(); } } }); } // Run validation applySchemasIfNeeded(); applyBinds(new BindRunner() { public void applyBind(ModelBind modelBind, DocumentWrapper documentWrapper) { handleValidationBind(pipelineContext, modelBind, documentWrapper, this); } }); } } else if (XFormsEvents.XFORMS_REFRESH.equals(eventName)) { // 4.3.4 The xforms-refresh Event // Bubbles: Yes / Cancelable: Yes / Context Info: None // "1. All UI bindings should be reevaluated as necessary." // "2. A node can be changed by confirmed user input to a form control, by // xforms-recalculate (section 4.3.6) or by the setvalue (section 10.1.9) action. If the // value of an instance data node was changed, then the node must be marked for // dispatching the xforms-value-changed event." // "3. If the xforms-value-changed event is marked for dispatching, then all of the // appropriate model item property notification events must also be marked for // dispatching (xforms-optional or xforms-required, xforms-readwrite or xforms-readonly, // and xforms-enabled or xforms-disabled)." // "4. For each form control, each notification event that is marked for dispatching on // the bound node must be dispatched (xforms-value-changed, xforms-valid, // xforms-invalid, xforms-optional, xforms-required, xforms-readwrite, xforms-readonly, // and xforms-enabled, xforms-disabled). The notification events xforms-out-of-range or // xforms-in-range must also be dispatched as appropriate. This specification does not // specify an ordering for the events." final XFormsControls xformsControls = containingDocument.getXFormsControls(); if (xformsControls != null) { // Build list of events to send final List eventsToDispatch = new ArrayList(); for (Iterator i = instances.iterator(); i.hasNext();) { XFormsUtils.iterateInstanceData(((XFormsInstance) i.next()).getDocument(), new BoundNodeInstanceWalker(pipelineContext, xformsControls) { public void walk(Node node, InstanceData localInstanceData, InstanceData inheritedInstanceData) { setNode(node); // Check if value has changed final boolean valueChanged = inheritedInstanceData.isValueChanged(); // Dispatch xforms-optional/xforms-required { final boolean previousRequiredState = inheritedInstanceData.getPreviousRequiredState(); final boolean newRequiredState = inheritedInstanceData.getRequired().get(); if ((valueChanged || previousRequiredState) && !newRequiredState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsOptionalEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousRequiredState) && newRequiredState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsRequiredEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-enabled/xforms-disabled { final boolean previousRelevantState = inheritedInstanceData.getPreviousRelevantState(); final boolean newRelevantState = inheritedInstanceData.getRelevant().get(); if ((valueChanged || previousRelevantState) && !newRelevantState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsDisabledEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousRelevantState) && newRelevantState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsEnabledEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-readonly/xforms-readwrite { final boolean previousReadonlyState = inheritedInstanceData.getPreviousReadonlyState(); final boolean newReadonlyState = inheritedInstanceData.getReadonly().get(); if ((valueChanged || previousReadonlyState) && !newReadonlyState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsReadwriteEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousReadonlyState) && newReadonlyState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsReadonlyEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-valid/xforms-invalid // NOTE: There is no mention in the spec that these events should be // displatched automatically when the value has changed, contrary to the // other events above. { final boolean previousValidState = inheritedInstanceData.getPreviousValidState(); final boolean newValidState = inheritedInstanceData.getValid().get(); if ((valueChanged || previousValidState) && !newValidState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsInvalidEvent((XFormsEventTarget) i.next())); } else if ((valueChanged || !previousValidState) && newValidState) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsValidEvent((XFormsEventTarget) i.next())); } } // Dispatch xforms-value-changed // NOTE: deferred behavior is broken in XForms 1.0; 1.1 should // introduce better behavior; howver, with the 1.0 behavior, it works // better for us for now to send xforms-value-changed last if (valueChanged) { for (Iterator i = getBoundControlsIterator(); i.hasNext();) eventsToDispatch.add(new XFormsValueChangeEvent((XFormsEventTarget) i.next())); } } }); } // Clear InstanceData event state clearInstanceDataEventState(); // Send events for (Iterator i = eventsToDispatch.iterator(); i.hasNext();) { containingDocument.dispatchEvent(pipelineContext, (XFormsEvent) i.next()); } // "5. The user interface reflects the state of the model, which means that all forms // controls reflect for their corresponding bound instance data:" if (xformsControls != null) { containingDocument.getXFormsControls().refreshForModel(pipelineContext, this); } } } else if (XFormsEvents.XFORMS_RESET.equals(eventName)) { // 4.3.8 The xforms-reset Event // Bubbles: Yes / Cancelable: Yes / Context Info: None // TODO // "The instance data is reset to the tree structure and values it had immediately // after having processed the xforms-ready event." // "Then, the events xforms-rebuild, xforms-recalculate, xforms-revalidate and // xforms-refresh are dispatched to the model element in sequence." containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(XFormsModel.this)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(XFormsModel.this, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(XFormsModel.this, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(XFormsModel.this)); } else if (XFormsEvents.XFORMS_COMPUTE_EXCEPTION.equals(eventName)) { // 4.5.4 The xforms-compute-exception Event // Bubbles: Yes / Cancelable: No / Context Info: Implementation-specific error string. // The default action for this event results in the following: Fatal error. // TODO } } | 54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/08765f5dfa47c92ad95accd37caf0de0bfbf351e/XFormsModel.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3073,
1868,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
1139,
18529,
1133,
871,
13,
288,
3639,
727,
514,
7933,
273,
871,
18,
588,
24320,
5621,
3639,
309,
261,
60,
18529,
3783,
18,
5619,
4983,
55,
67,
28497,
15641,
67,
7998,
18,
14963,
12,
2575,
461,
3719,
288,
5411,
368,
3186,
871,
358,
5217,
919,
5411,
1262,
16749,
18299,
12,
14511,
1042,
1769,
5411,
2230,
17934,
2300,
17856,
12,
14511,
1042,
16,
629,
1769,
5411,
4191,
2519,
18,
10739,
1133,
12,
14511,
1042,
16,
394,
1139,
18529,
426,
5662,
1133,
12,
2211,
16,
629,
10019,
5411,
2424,
1442,
751,
1133,
1119,
5621,
3639,
289,
469,
309,
261,
60,
18529,
3783,
18,
60,
4983,
55,
67,
17391,
67,
26935,
18,
14963,
12,
2575,
461,
3719,
288,
5411,
368,
1059,
18,
22,
18,
21,
1021,
619,
9741,
17,
2284,
17,
10062,
2587,
5411,
368,
605,
22298,
1040,
30,
19925,
342,
10347,
429,
30,
2631,
342,
1772,
3807,
30,
599,
5411,
727,
3010,
938,
1046,
273,
938,
2519,
18,
588,
2375,
1046,
5621,
5411,
368,
404,
18,
4826,
3167,
348,
7753,
4203,
261,
15069,
619,
9741,
17,
1232,
17,
4064,
13,
5411,
368,
2660,
30,
2865,
3229,
12783,
5411,
368,
968,
1963,
3699,
5411,
1262,
16749,
18299,
12,
14511,
1042,
1769,
5411,
368,
2660,
30,
604,
1520,
871,
5411,
368,
576,
18,
1788,
10172,
501,
938,
628,
791,
261,
10047,
578,
3903,
13,
261,
15069,
619,
9741,
17,
1232,
17,
4064,
13,
5411,
368,
565,
5180,
2026,
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,
3073,
1868,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
1139,
18529,
1133,
871,
13,
288,
3639,
727,
514,
7933,
273,
871,
18,
588,
24320,
5621,
3639,
309,
261,
60,
18529,
3783,
18,
5619,
4983,
55,
67,
28497,
15641,
67,
7998,
18,
14963,
12,
2575,
461,
3719,
288,
5411,
368,
3186,
871,
358,
5217,
919,
5411,
1262,
16749,
18299,
12,
14511,
1042,
1769,
5411,
2230,
17934,
2300,
17856,
12,
14511,
1042,
16,
629,
1769,
5411,
4191,
2519,
18,
10739,
1133,
12,
14511,
1042,
16,
394,
1139,
18529,
426,
5662,
1133,
12,
2211,
16,
629,
10019,
5411,
2424,
1442,
751,
1133,
1119,
5621,
3639,
289,
469,
309,
261,
60,
18529,
3783,
18,
60,
4983,
55,
67,
17391,
2
] | |
BlockBox block = (BlockBox) box; | Box block = box; | public Box layoutChildren(Context c, Box box) { /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.content.getChildContent(c); if (contentList.size() == 0) return box;//we can do this if there is no content, right? BlockBox block = (BlockBox) box;//I think this should work - tobe 2004-12-11 if (ContentUtil.isBlockContent(contentList)) {//this should be block layed out //BoxLayout.layoutContent(c, box, contentList, block); super.layoutChildren(c, box); } else { layoutContent(c, box, contentList, block); } return block; } | 8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/5ae86d99f9d4c15ae44feb4a759289dfb63751cc/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8549,
3511,
4212,
12,
1042,
276,
16,
8549,
3919,
13,
288,
3639,
1748,
4640,
635,
3697,
1304,
309,
261,
3744,
1304,
18,
291,
9345,
907,
12,
2147,
18,
21336,
9334,
276,
3719,
288,
5411,
327,
3919,
31,
3639,
289,
5549,
3639,
987,
913,
682,
273,
3919,
18,
1745,
18,
588,
1763,
1350,
12,
71,
1769,
3639,
309,
261,
1745,
682,
18,
1467,
1435,
422,
374,
13,
327,
3919,
31,
759,
1814,
848,
741,
333,
309,
1915,
353,
1158,
913,
16,
2145,
35,
3639,
3914,
3514,
1203,
273,
261,
1768,
3514,
13,
3919,
31,
759,
45,
15507,
333,
1410,
1440,
300,
358,
2196,
4044,
24,
17,
2138,
17,
2499,
3639,
309,
261,
1350,
1304,
18,
291,
1768,
1350,
12,
1745,
682,
3719,
288,
759,
2211,
1410,
506,
1203,
328,
528,
329,
596,
5411,
368,
3514,
3744,
18,
6741,
1350,
12,
71,
16,
3919,
16,
913,
682,
16,
1203,
1769,
5411,
2240,
18,
6741,
4212,
12,
71,
16,
3919,
1769,
3639,
289,
469,
288,
5411,
3511,
1350,
12,
71,
16,
3919,
16,
913,
682,
16,
1203,
1769,
3639,
289,
3639,
327,
1203,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8549,
3511,
4212,
12,
1042,
276,
16,
8549,
3919,
13,
288,
3639,
1748,
4640,
635,
3697,
1304,
309,
261,
3744,
1304,
18,
291,
9345,
907,
12,
2147,
18,
21336,
9334,
276,
3719,
288,
5411,
327,
3919,
31,
3639,
289,
5549,
3639,
987,
913,
682,
273,
3919,
18,
1745,
18,
588,
1763,
1350,
12,
71,
1769,
3639,
309,
261,
1745,
682,
18,
1467,
1435,
422,
374,
13,
327,
3919,
31,
759,
1814,
848,
741,
333,
309,
1915,
353,
1158,
913,
16,
2145,
35,
3639,
3914,
3514,
1203,
273,
261,
1768,
3514,
13,
3919,
31,
759,
45,
15507,
333,
1410,
1440,
300,
358,
2196,
4044,
24,
17,
2138,
17,
2499,
3639,
309,
261,
1350,
1304,
18,
291,
1768,
1350,
2
] |
public void update(long time) { | public void update() { | public void update(long time) { // TODO: alles ganz haesslich: this.statusBar.updateTime(time); this.update(); } | 49082 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49082/4e53e83e3f23adc1a2250ea87a518daf9600e1f3/CtSimFrame.java/buggy/ctSim/view/CtSimFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
5748,
813,
13,
288,
9506,
202,
759,
2660,
30,
777,
281,
314,
304,
94,
10677,
403,
80,
1354,
30,
202,
202,
2211,
18,
2327,
5190,
18,
2725,
950,
12,
957,
1769,
202,
202,
2211,
18,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
1089,
12,
5748,
813,
13,
288,
9506,
202,
759,
2660,
30,
777,
281,
314,
304,
94,
10677,
403,
80,
1354,
30,
202,
202,
2211,
18,
2327,
5190,
18,
2725,
950,
12,
957,
1769,
202,
202,
2211,
18,
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
] |
return createLoop(LOOP_DO_WHILE, body, cond, null, null, lineno); | return createLoop((Node.Jump)loop, LOOP_DO_WHILE, body, cond, null, null); | Node createDoWhile(Node body, Node cond, int lineno) { return createLoop(LOOP_DO_WHILE, body, cond, null, null, lineno); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/78e835470e0a90ae1ee62618c62f364ed850bede/IRFactory.java/clean/src/org/mozilla/javascript/IRFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2029,
752,
3244,
15151,
12,
907,
1417,
16,
2029,
6941,
16,
509,
7586,
13,
565,
288,
3639,
327,
752,
6452,
12443,
907,
18,
26743,
13,
6498,
16,
1806,
3665,
67,
3191,
67,
12557,
13578,
16,
1417,
16,
6941,
16,
446,
16,
446,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2029,
752,
3244,
15151,
12,
907,
1417,
16,
2029,
6941,
16,
509,
7586,
13,
565,
288,
3639,
327,
752,
6452,
12443,
907,
18,
26743,
13,
6498,
16,
1806,
3665,
67,
3191,
67,
12557,
13578,
16,
1417,
16,
6941,
16,
446,
16,
446,
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,
-100,
-100
] |
return 0; } | return 0; } | public int getType() throws SQLException { return 0; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/cb88ccf91092199f5dd4fc4fd03d021643a6e0ec/SCR20557.java/clean/testData/refactoring/inheritanceToDelegation/scr20557/after/xxx/SCR20557.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
3130,
1435,
1216,
6483,
288,
1377,
327,
374,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
3130,
1435,
1216,
6483,
288,
1377,
327,
374,
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,
-100,
-100,
-100,
-100
] |
if (result == null && policy != null) result = policy.doBuddyResourcesLoading(name); | if (policy != null) { Enumeration buddyResult = policy.doBuddyResourcesLoading(name); if (buddyResult == null) return result; if (result == null) return buddyResult; Vector compoundResults = new Vector(); while (result.hasMoreElements()) compoundResults.add(result.nextElement()); while (buddyResult.hasMoreElements()) { Object url = buddyResult.nextElement(); if (!compoundResults.contains(url)) compoundResults.add(url); } result = compoundResults.elements(); } | public Enumeration findResources(String name) throws IOException { // do not delegate to parent because ClassLoader#getResources already did and it is final!! if ((name.length() > 1) && (name.charAt(0) == '/')) /* if name has a leading slash */ name = name.substring(1); /* remove leading slash before search */ String pkgName = getResourcePackageName(name); Enumeration result = null; // start at step 3 because of the comment above about ClassLoader#getResources // 3) search the imported packages PackageSource source = findImportedSource(pkgName); if (source != null) // 3) found import source terminate search at the source return source.getResources(name); // 4) search the required bundles source = findRequiredSource(pkgName); if (source != null) // 4) attempt to load from source but continue on failure result = source.getResources(name); // 5) search the local bundle if (result == null) result = findLocalResources(name); else { //compound the required source results with the local ones Enumeration localResults = findLocalResources(name); if (localResults != null) { Vector compoundResults = new Vector(); while (result.hasMoreElements()) compoundResults.add(result.nextElement()); while (localResults.hasMoreElements()) compoundResults.add(localResults.nextElement()); result = compoundResults.elements(); } } if (result != null) return result; // 6) attempt to find a dynamic import source; only do this if a required source was not found if (source == null) { source = findDynamicSource(pkgName); if (source != null) result = source.getResources(name); } if (result == null && policy != null) result = policy.doBuddyResourcesLoading(name); return result; } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/435ca9a3b533f7147a1ed5d8fc94fccae01c4556/BundleLoader.java/clean/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/BundleLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13864,
1104,
3805,
12,
780,
508,
13,
1216,
1860,
288,
202,
202,
759,
741,
486,
7152,
358,
982,
2724,
9403,
7,
588,
3805,
1818,
5061,
471,
518,
353,
727,
8548,
202,
202,
430,
14015,
529,
18,
2469,
1435,
405,
404,
13,
597,
261,
529,
18,
3001,
861,
12,
20,
13,
422,
2023,
3719,
1748,
309,
508,
711,
279,
7676,
9026,
1195,
1082,
202,
529,
273,
508,
18,
28023,
12,
21,
1769,
1748,
1206,
7676,
9026,
1865,
1623,
1195,
202,
202,
780,
27288,
273,
5070,
18308,
12,
529,
1769,
202,
202,
21847,
563,
273,
446,
31,
202,
202,
759,
787,
622,
2235,
890,
2724,
434,
326,
2879,
5721,
2973,
9403,
7,
588,
3805,
202,
202,
759,
890,
13,
1623,
326,
9101,
5907,
202,
202,
2261,
1830,
1084,
273,
1104,
24934,
1830,
12,
10657,
461,
1769,
202,
202,
430,
261,
3168,
480,
446,
13,
1082,
202,
759,
890,
13,
1392,
1930,
1084,
10850,
1623,
622,
326,
1084,
1082,
202,
2463,
1084,
18,
588,
3805,
12,
529,
1769,
202,
202,
759,
1059,
13,
1623,
326,
1931,
11408,
202,
202,
3168,
273,
1104,
3705,
1830,
12,
10657,
461,
1769,
202,
202,
430,
261,
3168,
480,
446,
13,
1082,
202,
759,
1059,
13,
4395,
358,
1262,
628,
1084,
1496,
1324,
603,
5166,
1082,
202,
2088,
273,
1084,
18,
588,
3805,
12,
529,
1769,
202,
202,
759,
1381,
13,
1623,
326,
1191,
3440,
202,
202,
430,
261,
2088,
422,
446,
13,
1082,
202,
2088,
273,
1104,
2042,
3805,
12,
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,
13864,
1104,
3805,
12,
780,
508,
13,
1216,
1860,
288,
202,
202,
759,
741,
486,
7152,
358,
982,
2724,
9403,
7,
588,
3805,
1818,
5061,
471,
518,
353,
727,
8548,
202,
202,
430,
14015,
529,
18,
2469,
1435,
405,
404,
13,
597,
261,
529,
18,
3001,
861,
12,
20,
13,
422,
2023,
3719,
1748,
309,
508,
711,
279,
7676,
9026,
1195,
1082,
202,
529,
273,
508,
18,
28023,
12,
21,
1769,
1748,
1206,
7676,
9026,
1865,
1623,
1195,
202,
202,
780,
27288,
273,
5070,
18308,
12,
529,
1769,
202,
202,
21847,
563,
273,
446,
31,
202,
202,
759,
787,
622,
2235,
890,
2724,
434,
326,
2879,
5721,
2973,
9403,
7,
588,
3805,
202,
202,
759,
890,
2
] |
public String generateCode(Node tree, Hashtable results, | public String generateCode(Node tree, Vector names, Vector classFiles, | public String generateCode(Node tree, Hashtable results, ClassNameHelper nameHelper) { this.itsNameHelper = (OptClassNameHelper) nameHelper; this.results = results; Context cx = Context.getCurrentContext(); itsSourceFile = null; if (cx.isGeneratingDebug()) itsSourceFile = (String) tree.getProp(Node.SOURCENAME_PROP); version = cx.getLanguageVersion(); optLevel = cx.getOptimizationLevel(); debugLevel = cx.getDebugLevel(); inFunction = tree.getType() == TokenStream.FUNCTION; if (debugLevel >= 3) { superClassName = inFunction ? debugFunctionSuperClassName : debugScriptSuperClassName; } else { superClassName = inFunction ? normalFunctionSuperClassName : normalScriptSuperClassName; } superClassSlashName = superClassName.replace('.', '/'); Node codegenBase; if (inFunction) { OptFunctionNode fnNode = (OptFunctionNode) tree; inDirectCallFunction = fnNode.isTargetOfDirectCall(); vars = (OptVariableTable) fnNode.getVariableTable(); this.name = fnNode.getClassName(); classFile = new ClassFileWriter(name, superClassName, itsSourceFile); Node args = tree.getFirstChild(); String name = fnNode.getFunctionName(); generateInit(cx, "<init>", tree, name, args); if (fnNode.isTargetOfDirectCall()) { classFile.startMethod("call", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC + ClassFileWriter.ACC_FINAL)); addByteCode(ByteCode.ALOAD_0); addByteCode(ByteCode.ALOAD_1); addByteCode(ByteCode.ALOAD_2); addByteCode(ByteCode.ALOAD_3); for (int i = 0; i < vars.getParameterCount(); i++) { push(i); addByteCode(ByteCode.ALOAD, 4); addByteCode(ByteCode.ARRAYLENGTH); int undefArg = acquireLabel(); int beyond = acquireLabel(); addByteCode(ByteCode.IF_ICMPGE, undefArg); addByteCode(ByteCode.ALOAD, 4); push(i); addByteCode(ByteCode.AALOAD); push(0.0); addByteCode(ByteCode.GOTO, beyond); markLabel(undefArg); pushUndefined(); push(0.0); markLabel(beyond); } addByteCode(ByteCode.ALOAD, 4); addVirtualInvoke(this.name, "callDirect", fnNode.getDirectCallParameterSignature(), "Ljava/lang/Object;"); addByteCode(ByteCode.ARETURN); classFile.stopMethod((short)5, null); // 1 for this, 1 for js this, 1 for args[] emitDirectConstructor(fnNode); startNewMethod("callDirect", fnNode.getDirectCallParameterSignature() + "Ljava/lang/Object;", 1, false, true); vars.assignParameterJRegs(); if (!fnNode.getParameterNumberContext()) { // make sure that all parameters are objects itsForcedObjectParameters = true; for (int i = 0; i < vars.getParameterCount(); i++) { OptLocalVariable lVar = (OptLocalVariable) vars.get(i); aload(lVar.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int isObjectLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, isObjectLabel); addByteCode(ByteCode.NEW,"java/lang/Double"); addByteCode(ByteCode.DUP); dload((short)(lVar.getJRegister() + 1)); addDoubleConstructor(); astore(lVar.getJRegister()); markLabel(isObjectLabel); } } generatePrologue(cx, tree, true, vars.getParameterCount()); } else { startNewMethod("call", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)Ljava/lang/Object;", 1, false, true); generatePrologue(cx, tree, true, -1); } codegenBase = tree.getLastChild(); } else { // better be a script if (tree.getType() != TokenStream.SCRIPT) badTree(); vars = (OptVariableTable) tree.getProp(Node.VARS_PROP); boolean isPrimary = itsNameHelper.getTargetExtends() == null && itsNameHelper.getTargetImplements() == null; this.name = itsNameHelper.getJavaScriptClassName(null, isPrimary); classFile = new ClassFileWriter(name, superClassName, itsSourceFile); classFile.addInterface("org/mozilla/javascript/Script"); generateScriptCtor(cx, tree); generateMain(cx); generateInit(cx, "initScript", tree, "", null); generateExecute(cx); startNewMethod("call", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)Ljava/lang/Object;", 1, false, true); generatePrologue(cx, tree, false, -1); tree.addChildToBack(new Node(TokenStream.RETURN)); codegenBase = tree; } generateCodeFromNode(codegenBase, null, -1, -1); generateEpilogue(); finishMethod(cx, debugVars); emitConstantDudeInitializers(); // this needs to be done after the primary code generation is done if (debugLevel >= 1) generateDebugInit(cx, tree); ByteArrayOutputStream out = new ByteArrayOutputStream(512); try { classFile.write(out); } catch (IOException ioe) { throw new RuntimeException("unexpected IOException"); } byte[] bytes = out.toByteArray(); results.put(name, bytes); classFile = null; return name; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/aec69cc2f4416d8d6975ff766d0f4f330d8b7696/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2103,
1085,
12,
907,
2151,
16,
5589,
1257,
16,
5589,
667,
2697,
16,
27573,
19811,
2276,
508,
2276,
13,
377,
288,
3639,
333,
18,
1282,
461,
2276,
273,
261,
6179,
3834,
2276,
13,
508,
2276,
31,
3639,
333,
18,
4717,
273,
1686,
31,
3639,
1772,
9494,
273,
1772,
18,
588,
3935,
1042,
5621,
3639,
2097,
31150,
273,
446,
31,
3639,
309,
261,
71,
92,
18,
291,
21755,
2829,
10756,
5411,
2097,
31150,
273,
261,
780,
13,
2151,
18,
588,
4658,
12,
907,
18,
3584,
1099,
39,
21150,
67,
15811,
1769,
3639,
1177,
273,
9494,
18,
588,
3779,
1444,
5621,
3639,
2153,
2355,
273,
9494,
18,
588,
13930,
1588,
2355,
5621,
3639,
1198,
2355,
273,
9494,
18,
588,
2829,
2355,
5621,
3639,
316,
2083,
273,
2151,
18,
588,
559,
1435,
422,
3155,
1228,
18,
7788,
31,
3639,
309,
261,
4148,
2355,
1545,
890,
13,
288,
5411,
2240,
3834,
273,
316,
2083,
11794,
692,
1198,
2083,
8051,
3834,
11794,
294,
1198,
3651,
8051,
3834,
31,
3639,
289,
469,
288,
5411,
2240,
3834,
273,
316,
2083,
11794,
692,
2212,
2083,
8051,
3834,
11794,
294,
2212,
3651,
8051,
3834,
31,
3639,
289,
3639,
18846,
11033,
461,
273,
2240,
3834,
18,
2079,
2668,
1093,
16,
2023,
1769,
3639,
2029,
23198,
2171,
31,
3639,
309,
261,
267,
2083,
13,
288,
5411,
12056,
2083,
907,
2295,
907,
273,
261,
6179,
2083,
907,
13,
2151,
31,
5411,
316,
5368,
1477,
2083,
273,
2295,
907,
18,
291,
2326,
951,
5368,
1477,
5621,
5411,
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,
2103,
1085,
12,
907,
2151,
16,
5589,
1257,
16,
5589,
667,
2697,
16,
27573,
19811,
2276,
508,
2276,
13,
377,
288,
3639,
333,
18,
1282,
461,
2276,
273,
261,
6179,
3834,
2276,
13,
508,
2276,
31,
3639,
333,
18,
4717,
273,
1686,
31,
3639,
1772,
9494,
273,
1772,
18,
588,
3935,
1042,
5621,
3639,
2097,
31150,
273,
446,
31,
3639,
309,
261,
71,
92,
18,
291,
21755,
2829,
10756,
5411,
2097,
31150,
273,
261,
780,
13,
2151,
18,
588,
4658,
12,
907,
18,
3584,
1099,
39,
21150,
67,
15811,
1769,
3639,
1177,
273,
9494,
18,
588,
3779,
1444,
5621,
3639,
2153,
2355,
273,
9494,
18,
588,
13930,
1588,
2355,
5621,
3639,
1198,
2355,
273,
9494,
18,
2
] |
Wizard wizard = new Wizard(getIdManager().createId(), agent, siteId, | Wizard wizard = new Wizard(getIdManager().createId(), agent, siteId, toolId, | public Wizard createNew(String owner, String siteId, Id securityQualifier, String securityViewFunction, String securityEditFunction) { Agent agent = getAgentManager().getAgent(owner); Wizard wizard = new Wizard(getIdManager().createId(), agent, siteId, securityQualifier, securityViewFunction, securityEditFunction);// (Agent owner, String siteId, Id securityQualifier,// String securityViewFunction, String securityEditFunction) { return wizard; } | 48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/f4f624d804b1543b04decdc26c1a774cfbbe49b9/WizardManagerImpl.java/clean/wizard/api-impl/src/java/org/theospi/portfolio/wizard/mgt/impl/WizardManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
678,
13412,
15291,
12,
780,
3410,
16,
514,
17749,
16,
3124,
4373,
16185,
16,
514,
4373,
1767,
2083,
16,
514,
4373,
4666,
2083,
13,
288,
1377,
8669,
4040,
273,
336,
3630,
1318,
7675,
588,
3630,
12,
8443,
1769,
1377,
678,
13412,
24204,
273,
394,
678,
13412,
12,
26321,
1318,
7675,
2640,
548,
9334,
4040,
16,
17749,
16,
5226,
548,
16,
2398,
4373,
16185,
16,
4373,
1767,
2083,
16,
4373,
4666,
2083,
1769,
759,
1377,
261,
3630,
3410,
16,
514,
17749,
16,
3124,
4373,
16185,
16,
759,
5411,
514,
4373,
1767,
2083,
16,
514,
4373,
4666,
2083,
13,
288,
1377,
327,
24204,
31,
282,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
678,
13412,
15291,
12,
780,
3410,
16,
514,
17749,
16,
3124,
4373,
16185,
16,
514,
4373,
1767,
2083,
16,
514,
4373,
4666,
2083,
13,
288,
1377,
8669,
4040,
273,
336,
3630,
1318,
7675,
588,
3630,
12,
8443,
1769,
1377,
678,
13412,
24204,
273,
394,
678,
13412,
12,
26321,
1318,
7675,
2640,
548,
9334,
4040,
16,
17749,
16,
5226,
548,
16,
2398,
4373,
16185,
16,
4373,
1767,
2083,
16,
4373,
4666,
2083,
1769,
759,
1377,
261,
3630,
3410,
16,
514,
17749,
16,
3124,
4373,
16185,
16,
759,
5411,
514,
4373,
1767,
2083,
16,
514,
4373,
4666,
2083,
13,
288,
1377,
327,
24204,
31,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this( path, conf.getLong( "dfs.df.interval", DF.DF_INTERVAL_DEFAULT )); | this( new File(path), conf ); | public DF(String path, Configuration conf ) throws IOException { this( path, conf.getLong( "dfs.df.interval", DF.DF_INTERVAL_DEFAULT )); } | 55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/2855c1a1d7fad0c6f71a62a2135df2c6dece1f03/DF.java/buggy/src/java/org/apache/hadoop/fs/DF.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
463,
42,
12,
780,
589,
16,
4659,
2195,
262,
1216,
1860,
288,
565,
333,
12,
394,
1387,
12,
803,
3631,
2195,
11272,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
463,
42,
12,
780,
589,
16,
4659,
2195,
262,
1216,
1860,
288,
565,
333,
12,
394,
1387,
12,
803,
3631,
2195,
11272,
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
] |
Element clauseElem=(Element) nl.item(i); BooleanClause.Occur occurs=getOccursValue(clauseElem); Element clauseQuery=DOMUtils.getFirstChildOrFail(clauseElem); Query q=factory.getQuery(clauseQuery); bq.add(new BooleanClause(q,occurs)); | Node node = nl.item(i); if(node.getNodeName().equals("Clause")) { Element clauseElem=(Element) node; BooleanClause.Occur occurs=getOccursValue(clauseElem); Element clauseQuery=DOMUtils.getFirstChildOrFail(clauseElem); Query q=factory.getQuery(clauseQuery); bq.add(new BooleanClause(q,occurs)); } | public Query getQuery(Element e) throws ParserException { BooleanQuery bq=new BooleanQuery(DOMUtils.getAttribute(e,"disableCoord",false)); bq.setMinimumNumberShouldMatch(DOMUtils.getAttribute(e,"minimumNumberShouldMatch",0)); bq.setBoost(DOMUtils.getAttribute(e,"boost",1.0f)); NodeList nl = e.getElementsByTagName("Clause"); for(int i=0;i<nl.getLength();i++) { Element clauseElem=(Element) nl.item(i); BooleanClause.Occur occurs=getOccursValue(clauseElem); Element clauseQuery=DOMUtils.getFirstChildOrFail(clauseElem); Query q=factory.getQuery(clauseQuery); bq.add(new BooleanClause(q,occurs)); } return bq; } | 50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/6c53bc3c4977c1e48099e15cfa7346fc40682f71/BooleanQueryBuilder.java/buggy/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BooleanQueryBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2770,
6041,
12,
1046,
425,
13,
1216,
27990,
288,
202,
202,
5507,
1138,
324,
85,
33,
2704,
3411,
1138,
12,
8168,
1989,
18,
588,
1499,
12,
73,
10837,
8394,
5401,
3113,
5743,
10019,
202,
202,
70,
85,
18,
542,
13042,
1854,
14309,
2060,
12,
8168,
1989,
18,
588,
1499,
12,
73,
10837,
15903,
1854,
14309,
2060,
3113,
20,
10019,
202,
202,
70,
85,
18,
542,
26653,
12,
8168,
1989,
18,
588,
1499,
12,
73,
10837,
25018,
3113,
21,
18,
20,
74,
10019,
202,
202,
19914,
7741,
273,
425,
18,
588,
3471,
10401,
2932,
7044,
8863,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
14039,
18,
588,
1782,
5621,
77,
27245,
202,
202,
95,
1082,
202,
1046,
6591,
7498,
28657,
1046,
13,
7741,
18,
1726,
12,
77,
1769,
1082,
202,
5507,
7044,
18,
12397,
9938,
33,
588,
31084,
620,
12,
18128,
7498,
1769,
9506,
1875,
202,
1046,
6591,
1138,
33,
8168,
1989,
18,
588,
3759,
1763,
18492,
12,
18128,
7498,
1769,
1875,
202,
1138,
1043,
33,
6848,
18,
588,
1138,
12,
18128,
1138,
1769,
1875,
202,
70,
85,
18,
1289,
12,
2704,
3411,
7044,
12,
85,
16,
504,
2789,
10019,
6862,
202,
97,
9506,
202,
2463,
324,
85,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2770,
6041,
12,
1046,
425,
13,
1216,
27990,
288,
202,
202,
5507,
1138,
324,
85,
33,
2704,
3411,
1138,
12,
8168,
1989,
18,
588,
1499,
12,
73,
10837,
8394,
5401,
3113,
5743,
10019,
202,
202,
70,
85,
18,
542,
13042,
1854,
14309,
2060,
12,
8168,
1989,
18,
588,
1499,
12,
73,
10837,
15903,
1854,
14309,
2060,
3113,
20,
10019,
202,
202,
70,
85,
18,
542,
26653,
12,
8168,
1989,
18,
588,
1499,
12,
73,
10837,
25018,
3113,
21,
18,
20,
74,
10019,
202,
202,
19914,
7741,
273,
425,
18,
588,
3471,
10401,
2932,
7044,
8863,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
14039,
18,
588,
1782,
5621,
77,
27245,
202,
202,
95,
2
] |
tiProp.setBackground( color ); | tiProp.setBackground( getSelectionColor( ) ); | private void populateTable( ) { Iterator keys = propMap.keySet( ).iterator( ); while ( keys.hasNext( ) ) { Object oKey = keys.next( ); Object oValue = propMap.get( oKey ); String[] sProperty = new String[2]; sProperty[0] = oKey.toString( ); sProperty[1] = oValue.toString( ); TableItem tiProp = new TableItem( table, SWT.NONE ); tiProp.setBackground( color ); tiProp.setText( sProperty ); } if ( table.getItemCount( ) > 0 ) { table.select( 0 ); } else { txtNewKey.forceFocus( ); } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/fbee4c942a7bbe1ba8902e111f37d31fb3ee622a/ExtendedPropertyEditorComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/ExtendedPropertyEditorComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
1388,
12,
262,
202,
95,
202,
202,
3198,
1311,
273,
2270,
863,
18,
856,
694,
12,
262,
18,
9838,
12,
11272,
202,
202,
17523,
261,
1311,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
921,
320,
653,
273,
1311,
18,
4285,
12,
11272,
1082,
202,
921,
320,
620,
273,
2270,
863,
18,
588,
12,
320,
653,
11272,
1082,
202,
780,
8526,
272,
1396,
273,
394,
514,
63,
22,
15533,
1082,
202,
87,
1396,
63,
20,
65,
273,
320,
653,
18,
10492,
12,
11272,
1082,
202,
87,
1396,
63,
21,
65,
273,
320,
620,
18,
10492,
12,
11272,
1082,
202,
1388,
1180,
11374,
4658,
273,
394,
3555,
1180,
12,
1014,
16,
348,
8588,
18,
9826,
11272,
1082,
202,
9096,
4658,
18,
542,
8199,
12,
2036,
11272,
1082,
202,
9096,
4658,
18,
542,
1528,
12,
272,
1396,
11272,
202,
202,
97,
202,
202,
430,
261,
1014,
18,
588,
30687,
12,
262,
405,
374,
262,
202,
202,
95,
1082,
202,
2121,
18,
4025,
12,
374,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
5830,
1908,
653,
18,
5734,
9233,
12,
11272,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
1388,
12,
262,
202,
95,
202,
202,
3198,
1311,
273,
2270,
863,
18,
856,
694,
12,
262,
18,
9838,
12,
11272,
202,
202,
17523,
261,
1311,
18,
5332,
2134,
12,
262,
262,
202,
202,
95,
1082,
202,
921,
320,
653,
273,
1311,
18,
4285,
12,
11272,
1082,
202,
921,
320,
620,
273,
2270,
863,
18,
588,
12,
320,
653,
11272,
1082,
202,
780,
8526,
272,
1396,
273,
394,
514,
63,
22,
15533,
1082,
202,
87,
1396,
63,
20,
65,
273,
320,
653,
18,
10492,
12,
11272,
1082,
202,
87,
1396,
63,
21,
65,
273,
320,
620,
18,
10492,
12,
11272,
1082,
202,
1388,
1180,
11374,
4658,
273,
394,
3555,
1180,
12,
1014,
16,
348,
2
] |
MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.SELECTED_PRIORITY, Task.PriorityLevel.P1.toString()); | MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.SELECTED_PRIORITY, Task.PriorityLevel.P1.toString()); | public void addActionsToMenu() { Action P1 = new Action("", AS_CHECK_BOX) { @Override public void run() { MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.SELECTED_PRIORITY, Task.PriorityLevel.P1.toString());// MylarTaskListPlugin.setCurrentPriorityLevel(Task.PriorityLevel.P1); FILTER_PRIORITY.displayPrioritiesAbove(PRIORITY_LEVELS[0]); getViewer().refresh(); } }; P1.setEnabled(true); P1.setText(Task.PriorityLevel.P1.getDescription()); P1.setImageDescriptor(TaskListImages.PRIORITY_1); ActionContributionItem item = new ActionContributionItem(P1); item.fill(dropDownMenu, -1); Action P2 = new Action("", AS_CHECK_BOX) { @Override public void run() { MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.SELECTED_PRIORITY, Task.PriorityLevel.P2.toString());// MylarTaskListPlugin.setCurrentPriorityLevel(Task.PriorityLevel.P2); FILTER_PRIORITY.displayPrioritiesAbove(PRIORITY_LEVELS[1]); getViewer().refresh(); } }; P2.setEnabled(true); P2.setText(Task.PriorityLevel.P2.getDescription()); P2.setImageDescriptor(TaskListImages.PRIORITY_2); item = new ActionContributionItem(P2); item.fill(dropDownMenu, -1); Action P3 = new Action("", AS_CHECK_BOX) { @Override public void run() { MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.SELECTED_PRIORITY, Task.PriorityLevel.P3.toString());// MylarTaskListPlugin.setCurrentPriorityLevel(Task.PriorityLevel.P3); FILTER_PRIORITY.displayPrioritiesAbove(PRIORITY_LEVELS[2]); getViewer().refresh(); } }; P3.setEnabled(true); P3.setText(Task.PriorityLevel.P3.getDescription()); P3.setImageDescriptor(TaskListImages.PRIORITY_3); item = new ActionContributionItem(P3); item.fill(dropDownMenu, -1); Action P4 = new Action("", AS_CHECK_BOX) { @Override public void run() { MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.SELECTED_PRIORITY, Task.PriorityLevel.P4.toString());// MylarTaskListPlugin.setCurrentPriorityLevel(Task.PriorityLevel.P4); FILTER_PRIORITY.displayPrioritiesAbove(PRIORITY_LEVELS[3]); getViewer().refresh(); } }; P4.setEnabled(true); P4.setText(Task.PriorityLevel.P4.getDescription()); P4.setImageDescriptor(TaskListImages.PRIORITY_4); item = new ActionContributionItem(P4); item.fill(dropDownMenu, -1); Action P5 = new Action("", AS_CHECK_BOX) { @Override public void run() { MylarTaskListPlugin.getMylarCorePrefs().setValue(TaskListPreferenceConstants.SELECTED_PRIORITY, Task.PriorityLevel.P5.toString());// MylarTaskListPlugin.setCurrentPriorityLevel(Task.PriorityLevel.P5); FILTER_PRIORITY.displayPrioritiesAbove(PRIORITY_LEVELS[4]); getViewer().refresh(); } }; P5.setEnabled(true); P5.setImageDescriptor(TaskListImages.PRIORITY_5); P5.setText(Task.PriorityLevel.P5.getDescription()); item = new ActionContributionItem(P5); item.fill(dropDownMenu, -1); String priority = getCurrentPriorityLevel(); if (priority.equals(PRIORITY_LEVELS[0])) { P1.setChecked(true); } else if (priority.equals(PRIORITY_LEVELS[1])) { P1.setChecked(true); P2.setChecked(true); } else if (priority.equals(PRIORITY_LEVELS[2])) { P1.setChecked(true); P2.setChecked(true); P3.setChecked(true); } else if (priority.equals(PRIORITY_LEVELS[3])) { P1.setChecked(true); P2.setChecked(true); P3.setChecked(true); P4.setChecked(true); } else if (priority.equals(PRIORITY_LEVELS[4])) { P1.setChecked(true); P2.setChecked(true); P3.setChecked(true); P4.setChecked(true); P5.setChecked(true); } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/ce7a489ec9613c6185f89fe8f8b92d62803284f9/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
527,
6100,
774,
4599,
1435,
288,
1082,
202,
1803,
453,
21,
273,
394,
4382,
2932,
3113,
5355,
67,
10687,
67,
16876,
13,
288,
9506,
202,
36,
6618,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
12062,
7901,
4670,
1386,
2556,
7675,
542,
620,
12,
2174,
682,
9624,
2918,
18,
4803,
2056,
67,
19804,
16,
3837,
18,
8183,
2355,
18,
52,
21,
18,
10492,
10663,
759,
6862,
202,
12062,
7901,
2174,
682,
3773,
18,
542,
3935,
8183,
2355,
12,
2174,
18,
8183,
2355,
18,
52,
21,
1769,
6862,
202,
11126,
67,
19804,
18,
5417,
25355,
1961,
25477,
12,
19804,
67,
10398,
55,
63,
20,
19226,
6862,
202,
588,
18415,
7675,
9144,
5621,
9506,
202,
97,
1082,
202,
20451,
1082,
202,
52,
21,
18,
542,
1526,
12,
3767,
1769,
1082,
202,
52,
21,
18,
542,
1528,
12,
2174,
18,
8183,
2355,
18,
52,
21,
18,
588,
3291,
10663,
1082,
202,
52,
21,
18,
542,
2040,
3187,
12,
2174,
682,
8946,
18,
19804,
67,
21,
1769,
1082,
202,
1803,
442,
4027,
1180,
761,
273,
394,
4382,
442,
4027,
1180,
12,
52,
21,
1769,
1082,
202,
1726,
18,
5935,
12,
7285,
4164,
4599,
16,
300,
21,
1769,
1082,
202,
1803,
453,
22,
273,
394,
4382,
2932,
3113,
5355,
67,
10687,
67,
16876,
13,
288,
9506,
202,
36,
6618,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
12062,
7901,
4670,
1386,
2556,
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,
3196,
202,
482,
918,
527,
6100,
774,
4599,
1435,
288,
1082,
202,
1803,
453,
21,
273,
394,
4382,
2932,
3113,
5355,
67,
10687,
67,
16876,
13,
288,
9506,
202,
36,
6618,
9506,
202,
482,
918,
1086,
1435,
288,
6862,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
12062,
7901,
4670,
1386,
2556,
7675,
542,
620,
12,
2174,
682,
9624,
2918,
18,
4803,
2056,
67,
19804,
16,
3837,
18,
8183,
2355,
18,
52,
21,
18,
10492,
10663,
759,
6862,
202,
12062,
7901,
2174,
682,
3773,
18,
542,
3935,
8183,
2355,
12,
2174,
18,
8183,
2355,
18,
52,
21,
1769,
6862,
202,
11126,
67,
19804,
18,
5417,
25355,
1961,
25477,
12,
19804,
67,
10398,
55,
63,
20,
19226,
6862,
202,
588,
2
] |
isUndoableChange = false; | isUndoableChange = false; | public void mousePressed(MouseEvent event) { isUndoableChange = false; int[] screenCoords = {event.getX(), event.getY()}; int[] mouseCoords = getWorldCoordinates(screenCoords); int mouseX = mouseCoords[0]; int mouseY = mouseCoords[1]; logger.debug("MousePressed Event Props: mode=", c2dm.getDrawModeString()); if (logger.isDebugEnabled()) { logger.debug(" trigger=" + event.isPopupTrigger() + /* ", Button number: " + event.getButton() + */ ", Click count: " + event.getClickCount()); } int startX = 0; int startY = 0; r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); Atom atomInRange = getAtomInRange(mouseX, mouseY); Bond bondInRange = getBondInRange(mouseX, mouseY); if (atomInRange != null) { startX = (int) atomInRange.getX2d(); startY = (int) atomInRange.getY2d(); r2dm.setPointerVectorStart(new Point(startX, startY)); } else { r2dm.setPointerVectorStart(new Point(mouseX, mouseY)); } if (c2dm.getDrawMode() == c2dm.MOVE) { selectNearestChemObjectIfNoneSelected(mouseX, mouseY); dragMode = DRAG_MOVING_SELECTED; } else if (c2dm.getDrawMode() == c2dm.DRAWBOND) { if (bondInRange != null && atomInRange == null) { // make sure we are not dragging a bond } else { dragMode = DRAG_DRAWING_PROPOSED_BOND; } } else if (c2dm.getDrawMode() == c2dm.MAPATOMATOM ) { dragMode = DRAG_DRAWING_PROPOSED_ATOMATOMMAP; } else if (c2dm.getDrawMode() == c2dm.SELECT) { dragMode = DRAG_MAKING_SQUARE_SELECTION; } else if (c2dm.getDrawMode() == c2dm.LASSO) { dragMode = DRAG_MAKING_LASSO_SELECTION; } else if (c2dm.getDrawMode() == c2dm.RING || c2dm.getDrawMode() == c2dm.BENZENERING) { dragMode = DRAG_DRAWING_PROPOSED_RING; } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/81f64c41697e064b62e064b62677261a78168623/Controller2D.java/clean/src/org/openscience/cdk/controller/Controller2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7644,
24624,
12,
9186,
1133,
871,
13,
202,
95,
565,
20488,
2896,
429,
3043,
273,
629,
31,
202,
202,
474,
8526,
5518,
13089,
273,
288,
2575,
18,
588,
60,
9334,
871,
18,
588,
61,
17767,
31,
202,
202,
474,
8526,
7644,
13089,
273,
13876,
6245,
13431,
12,
9252,
13089,
1769,
202,
202,
474,
7644,
60,
273,
7644,
13089,
63,
20,
15533,
202,
202,
474,
7644,
61,
273,
7644,
13089,
63,
21,
15533,
202,
202,
4901,
18,
4148,
2932,
9186,
24624,
2587,
1186,
1121,
30,
1965,
1546,
16,
276,
22,
10956,
18,
588,
6493,
2309,
780,
10663,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
282,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
1435,
397,
9506,
202,
20308,
3104,
12569,
1300,
30,
315,
397,
871,
18,
588,
3616,
1435,
397,
1195,
9506,
202,
3113,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
3639,
289,
3639,
509,
787,
60,
273,
374,
31,
3639,
509,
787,
61,
273,
374,
31,
3639,
436,
22,
10956,
18,
542,
4926,
5018,
1685,
12,
2011,
1769,
3639,
436,
22,
10956,
18,
542,
4926,
5018,
1638,
12,
2011,
1769,
3639,
7149,
3179,
25277,
273,
12358,
25277,
12,
11697,
60,
16,
7644,
61,
1769,
3639,
605,
1434,
8427,
25277,
273,
29585,
25277,
12,
11697,
60,
16,
7644,
61,
1769,
3639,
309,
261,
7466,
25277,
480,
446,
13,
288,
5411,
787,
60,
273,
261,
474,
13,
3179,
25277,
18,
588,
60,
22,
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,
7644,
24624,
12,
9186,
1133,
871,
13,
202,
95,
565,
20488,
2896,
429,
3043,
273,
629,
31,
202,
202,
474,
8526,
5518,
13089,
273,
288,
2575,
18,
588,
60,
9334,
871,
18,
588,
61,
17767,
31,
202,
202,
474,
8526,
7644,
13089,
273,
13876,
6245,
13431,
12,
9252,
13089,
1769,
202,
202,
474,
7644,
60,
273,
7644,
13089,
63,
20,
15533,
202,
202,
474,
7644,
61,
273,
7644,
13089,
63,
21,
15533,
202,
202,
4901,
18,
4148,
2932,
9186,
24624,
2587,
1186,
1121,
30,
1965,
1546,
16,
276,
22,
10956,
18,
588,
6493,
2309,
780,
10663,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
282,
3080,
1546,
397,
2
] |
if (element1.hasCorrespondingActivatableTask() && element2.hasCorrespondingActivatableTask()) { ITask task1 = element1.getOrCreateCorrespondingTask(); ITask task2 = element2.getOrCreateCorrespondingTask(); if (task1.isCompleted()) return 1; if (task2.isCompleted()) return -1; } | if (element1.isCompleted() && element2.isCompleted()) { return element1.getPriority().compareTo(element2.getPriority()); } if (element1.isCompleted()) return 1; if (element2.isCompleted()) return -1; | public int compare(Viewer compareViewer, Object o1, Object o2) { if (o1 instanceof AbstractCategory) { if (o2 instanceof AbstractCategory) { return ((AbstractCategory)o1).getDescription(false).compareTo( ((AbstractCategory)o2).getDescription(false)); } else { return -1; } } else if(o1 instanceof ITaskListElement){ if (o2 instanceof AbstractCategory) { return -1; } else if(o2 instanceof ITaskListElement) { ITaskListElement element1 = (ITaskListElement) o1; ITaskListElement element2 = (ITaskListElement) o2; if (element1.hasCorrespondingActivatableTask() && element2.hasCorrespondingActivatableTask()) { ITask task1 = element1.getOrCreateCorrespondingTask(); ITask task2 = element2.getOrCreateCorrespondingTask(); if (task1.isCompleted()) return 1; if (task2.isCompleted()) return -1; } if (column == columnNames[1]) { return 0; } else if (column == columnNames[2]) { return element1.getPriority().compareTo(element2.getPriority()); } else if (column == columnNames[3]) { return element1.getDescription(true).compareTo(element2.getDescription(true)); } else { return 0; } } } else{ return 0; } return 0; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/ecf292179e351767b769b55486300acee935084c/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
3400,
12,
18415,
3400,
18415,
16,
1033,
320,
21,
16,
1033,
320,
22,
13,
288,
540,
202,
430,
261,
83,
21,
1276,
4115,
4457,
13,
288,
540,
202,
202,
430,
261,
83,
22,
1276,
4115,
4457,
13,
288,
540,
1082,
202,
2463,
14015,
7469,
4457,
13,
83,
21,
2934,
588,
3291,
12,
5743,
2934,
9877,
774,
12,
540,
6862,
202,
12443,
7469,
4457,
13,
83,
22,
2934,
588,
3291,
12,
5743,
10019,
540,
202,
202,
97,
469,
288,
540,
1082,
202,
2463,
300,
21,
31,
540,
202,
202,
97,
540,
202,
97,
469,
309,
12,
83,
21,
1276,
467,
2174,
682,
1046,
15329,
540,
202,
202,
430,
261,
83,
22,
1276,
4115,
4457,
13,
288,
540,
1082,
202,
2463,
300,
21,
31,
540,
202,
202,
97,
469,
309,
12,
83,
22,
1276,
467,
2174,
682,
1046,
13,
288,
540,
1082,
202,
1285,
835,
682,
1046,
930,
21,
273,
261,
1285,
835,
682,
1046,
13,
320,
21,
31,
540,
1082,
202,
1285,
835,
682,
1046,
930,
22,
273,
261,
1285,
835,
682,
1046,
13,
320,
22,
31,
540,
1082,
540,
1082,
202,
430,
261,
2956,
21,
18,
5332,
6217,
17863,
310,
12241,
8163,
2174,
1435,
597,
930,
22,
18,
5332,
6217,
17863,
310,
12241,
8163,
2174,
10756,
288,
540,
9506,
202,
1285,
835,
1562,
21,
273,
930,
21,
18,
588,
17717,
6217,
17863,
310,
2174,
5621,
540,
9506,
202,
1285,
835,
1562,
22,
273,
930,
22,
18,
588,
17717,
6217,
17863,
310,
2174,
5621,
540,
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,
540,
1071,
509,
3400,
12,
18415,
3400,
18415,
16,
1033,
320,
21,
16,
1033,
320,
22,
13,
288,
540,
202,
430,
261,
83,
21,
1276,
4115,
4457,
13,
288,
540,
202,
202,
430,
261,
83,
22,
1276,
4115,
4457,
13,
288,
540,
1082,
202,
2463,
14015,
7469,
4457,
13,
83,
21,
2934,
588,
3291,
12,
5743,
2934,
9877,
774,
12,
540,
6862,
202,
12443,
7469,
4457,
13,
83,
22,
2934,
588,
3291,
12,
5743,
10019,
540,
202,
202,
97,
469,
288,
540,
1082,
202,
2463,
300,
21,
31,
540,
202,
202,
97,
540,
202,
97,
469,
309,
12,
83,
21,
1276,
467,
2174,
682,
1046,
15329,
540,
202,
202,
430,
261,
83,
22,
1276,
4115,
4457,
13,
288,
540,
2
] |
private static boolean isLargeType(int type) { | private static boolean isLargeType(int type) { | private static boolean isLargeType(int type) { return type == SYBNCHAR || type > 128; } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/36d7d34eb620f32e386322a293eaf58cf253a3a6/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
20020,
559,
12,
474,
618,
13,
565,
288,
3639,
327,
618,
422,
7068,
15388,
7305,
747,
618,
405,
8038,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
760,
1250,
353,
20020,
559,
12,
474,
618,
13,
565,
288,
3639,
327,
618,
422,
7068,
15388,
7305,
747,
618,
405,
8038,
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
] |
return 0; } | return verticalScrollBarPolicy; } | public int getVerticalScrollBarPolicy() { return 0; // TODO } // getVerticalScrollBarPolicy() | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/0788b89b7368770a1157f825d60dd8c5a9df183e/ScrollPaneLayout.java/buggy/core/src/classpath/javax/javax/swing/ScrollPaneLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
336,
15704,
6806,
5190,
2582,
1435,
288,
202,
202,
2463,
374,
31,
368,
2660,
202,
97,
368,
336,
15704,
6806,
5190,
2582,
1435,
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,
509,
336,
15704,
6806,
5190,
2582,
1435,
288,
202,
202,
2463,
374,
31,
368,
2660,
202,
97,
368,
336,
15704,
6806,
5190,
2582,
1435,
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
] |
&& level.fSecondPosition.offset == level.fFirstPosition.offset) { | && level.fSecondPosition.offset == level.fFirstPosition.offset) { | public void perform(IDocument d, IDocumentListener owner) { if ((level.fFirstPosition.isDeleted || level.fFirstPosition.length == 0) && !level.fSecondPosition.isDeleted && level.fSecondPosition.offset == level.fFirstPosition.offset) { try { document.replace(level.fSecondPosition.offset, level.fSecondPosition.length, null); } catch (BadLocationException e) { //JavaPlugin.log(e); } } if (fBracketLevelStack.size() == 0) { document.removePositionUpdater(fUpdater); try { document.removePositionCategory(CATEGORY); } catch (BadPositionCategoryException e) { //JavaPlugin.log(e); } } } | 50059 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50059/c6ce0d2ef70b0da6aec0b63e50eb94c476831d9c/BracketInserter.java/buggy/sub/source/net/sourceforge/texlipse/editor/BracketInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
3073,
12,
734,
504,
650,
302,
16,
1599,
504,
650,
2223,
3410,
13,
288,
6862,
202,
430,
14015,
2815,
18,
74,
3759,
2555,
18,
291,
7977,
747,
1801,
18,
74,
3759,
2555,
18,
2469,
422,
374,
13,
6862,
1082,
202,
10,
10,
401,
2815,
18,
74,
8211,
2555,
18,
291,
7977,
6862,
1082,
202,
10,
10,
1801,
18,
74,
8211,
2555,
18,
3348,
422,
1801,
18,
74,
3759,
2555,
18,
3348,
13,
6862,
202,
95,
25083,
202,
698,
288,
6862,
1082,
202,
5457,
18,
2079,
12,
2815,
18,
74,
8211,
2555,
18,
3348,
16,
6862,
6862,
9506,
1801,
18,
74,
8211,
2555,
18,
2469,
16,
6862,
6862,
9506,
446,
1769,
25083,
202,
97,
1044,
261,
6434,
2735,
503,
425,
13,
288,
6862,
1082,
202,
759,
5852,
3773,
18,
1330,
12,
73,
1769,
25083,
202,
97,
6862,
202,
97,
6862,
202,
430,
261,
74,
11450,
2355,
2624,
18,
1467,
1435,
422,
374,
13,
288,
25083,
202,
5457,
18,
4479,
2555,
15305,
12,
74,
15305,
1769,
25083,
202,
698,
288,
6862,
1082,
202,
5457,
18,
4479,
2555,
4457,
12,
24847,
1769,
25083,
202,
97,
1044,
261,
6434,
2555,
4457,
503,
425,
13,
288,
6862,
1082,
202,
759,
5852,
3773,
18,
1330,
12,
73,
1769,
25083,
202,
97,
6862,
202,
97,
9506,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
3073,
12,
734,
504,
650,
302,
16,
1599,
504,
650,
2223,
3410,
13,
288,
6862,
202,
430,
14015,
2815,
18,
74,
3759,
2555,
18,
291,
7977,
747,
1801,
18,
74,
3759,
2555,
18,
2469,
422,
374,
13,
6862,
1082,
202,
10,
10,
401,
2815,
18,
74,
8211,
2555,
18,
291,
7977,
6862,
1082,
202,
10,
10,
1801,
18,
74,
8211,
2555,
18,
3348,
422,
1801,
18,
74,
3759,
2555,
18,
3348,
13,
6862,
202,
95,
25083,
202,
698,
288,
6862,
1082,
202,
5457,
18,
2079,
12,
2815,
18,
74,
8211,
2555,
18,
3348,
16,
6862,
6862,
9506,
1801,
18,
74,
8211,
2555,
18,
2469,
16,
6862,
6862,
9506,
446,
1769,
25083,
202,
97,
1044,
261,
2
] |
public void tearDown() { } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/dd6282cd73f50a476093653aab3a8de52fc1c5c4/InterruptTest.java/buggy/tests/junit/org/jgroups/tests/InterruptTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
268,
2091,
4164,
1435,
288,
202,
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,
268,
2091,
4164,
1435,
288,
202,
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
] | ||
this(namenodePort, conf, 1, dataNodeFirst); | this(namenodePort, conf, 1, dataNodeFirst, true); | public MiniDFSCluster(int namenodePort, Configuration conf, boolean dataNodeFirst) throws IOException { this(namenodePort, conf, 1, dataNodeFirst); } | 51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/deb847a38bd76eb53616a3aec840d49fd5694131/MiniDFSCluster.java/buggy/src/test/org/apache/hadoop/dfs/MiniDFSCluster.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
27987,
31999,
3629,
12,
474,
15135,
20680,
2617,
16,
7682,
4659,
2195,
16,
13491,
1250,
501,
907,
3759,
13,
1216,
1860,
288,
565,
333,
12,
17808,
20680,
2617,
16,
2195,
16,
404,
16,
501,
907,
3759,
16,
638,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
27987,
31999,
3629,
12,
474,
15135,
20680,
2617,
16,
7682,
4659,
2195,
16,
13491,
1250,
501,
907,
3759,
13,
1216,
1860,
288,
565,
333,
12,
17808,
20680,
2617,
16,
2195,
16,
404,
16,
501,
907,
3759,
16,
638,
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
] |
public static FileLoggerHook setupStdoutLogging(int level, String detail) { | public static FileLoggerHook setupStdoutLogging(int level, String detail) throws InvalidThresholdException { | public static FileLoggerHook setupStdoutLogging(int level, String detail) { setupChain(); logger.setThreshold(level); logger.setDetailedThresholds(detail); FileLoggerHook fh; fh = new FileLoggerHook(System.out, "d (c, t, p): m", "MMM dd, yyyy HH:mm:ss:SSS", level); if(detail != null) fh.setDetailedThresholds(detail); ((LoggerHookChain) logger).addHook(fh); fh.start(); return fh; } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/01c14cd48d872bfb5d34b94395d44bb4bf44316e/Logger.java/buggy/src/freenet/support/Logger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1387,
3328,
5394,
3875,
27334,
7735,
12,
474,
1801,
16,
514,
7664,
13,
288,
202,
565,
3875,
3893,
5621,
202,
565,
1194,
18,
542,
7614,
12,
2815,
1769,
202,
565,
1194,
18,
542,
40,
6372,
7614,
87,
12,
8992,
1769,
202,
565,
1387,
3328,
5394,
7625,
31,
202,
565,
7625,
273,
394,
1387,
3328,
5394,
12,
3163,
18,
659,
16,
315,
72,
261,
71,
16,
268,
16,
293,
4672,
312,
3113,
315,
8206,
49,
6957,
16,
24025,
20842,
30,
7020,
30,
1049,
30,
1260,
55,
3113,
1801,
1769,
202,
565,
309,
12,
8992,
480,
446,
13,
202,
3639,
7625,
18,
542,
40,
6372,
7614,
87,
12,
8992,
1769,
202,
565,
14015,
3328,
5394,
3893,
13,
1194,
2934,
1289,
5394,
12,
19260,
1769,
202,
565,
7625,
18,
1937,
5621,
202,
565,
327,
7625,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1387,
3328,
5394,
3875,
27334,
7735,
12,
474,
1801,
16,
514,
7664,
13,
288,
202,
565,
3875,
3893,
5621,
202,
565,
1194,
18,
542,
7614,
12,
2815,
1769,
202,
565,
1194,
18,
542,
40,
6372,
7614,
87,
12,
8992,
1769,
202,
565,
1387,
3328,
5394,
7625,
31,
202,
565,
7625,
273,
394,
1387,
3328,
5394,
12,
3163,
18,
659,
16,
315,
72,
261,
71,
16,
268,
16,
293,
4672,
312,
3113,
315,
8206,
49,
6957,
16,
24025,
20842,
30,
7020,
30,
1049,
30,
1260,
55,
3113,
1801,
1769,
202,
565,
309,
12,
8992,
480,
446,
13,
202,
3639,
7625,
18,
542,
40,
6372,
7614,
87,
12,
8992,
1769,
202,
565,
14015,
3328,
5394,
3893,
13,
2
] |
drawable.setGL(new DebugGL(drawable.getGL())); | if (!(drawable.getGL() instanceof DebugGL)) { drawable.setGL(new DebugGL(drawable.getGL())); } | public void init(GLDrawable drawable) { System.out.println("Listener.init()"); drawable.setGL(new DebugGL(drawable.getGL())); GL gl = drawable.getGL(); float pos[] = { 5.0f, 5.0f, 10.0f, 0.0f }; gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, pos); gl.glEnable(GL.GL_CULL_FACE); gl.glEnable(GL.GL_LIGHTING); gl.glEnable(GL.GL_LIGHT0); gl.glEnable(GL.GL_DEPTH_TEST); initializeDisplayList(gl); gl.glEnable(GL.GL_NORMALIZE); Dimension d = drawable.getSize(); reshape(drawable, 0, 0, d.width, d.height); } | 49209 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49209/e9d9b9561c05ab8819ffff7c4b32ed9b1f8a2333/TestContextDestruction.java/buggy/src/demos/testContextDestruction/TestContextDestruction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
11261,
16149,
19021,
13,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
2223,
18,
2738,
1435,
8863,
540,
309,
16051,
12,
9446,
429,
18,
588,
11261,
1435,
1276,
4015,
11261,
3719,
288,
19021,
18,
542,
11261,
12,
2704,
4015,
11261,
12,
9446,
429,
18,
588,
11261,
1435,
10019,
289,
1377,
10252,
5118,
273,
19021,
18,
588,
11261,
5621,
1377,
1431,
949,
8526,
273,
288,
1381,
18,
20,
74,
16,
1381,
18,
20,
74,
16,
1728,
18,
20,
74,
16,
374,
18,
20,
74,
289,
31,
1377,
5118,
18,
7043,
12128,
17679,
12,
11261,
18,
11261,
67,
23516,
20,
16,
10252,
18,
11261,
67,
15258,
16,
949,
1769,
1377,
5118,
18,
7043,
8317,
12,
11261,
18,
11261,
67,
39,
2705,
67,
11300,
1769,
1377,
5118,
18,
7043,
8317,
12,
11261,
18,
11261,
67,
23516,
1360,
1769,
1377,
5118,
18,
7043,
8317,
12,
11261,
18,
11261,
67,
23516,
20,
1769,
1377,
5118,
18,
7043,
8317,
12,
11261,
18,
11261,
67,
27479,
67,
16961,
1769,
1377,
4046,
4236,
682,
12,
7043,
1769,
1377,
5118,
18,
7043,
8317,
12,
11261,
18,
11261,
67,
15480,
15641,
1769,
1377,
13037,
302,
273,
19021,
18,
588,
1225,
5621,
1377,
6985,
12,
9446,
429,
16,
374,
16,
374,
16,
302,
18,
2819,
16,
302,
18,
4210,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
11261,
16149,
19021,
13,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
2223,
18,
2738,
1435,
8863,
540,
309,
16051,
12,
9446,
429,
18,
588,
11261,
1435,
1276,
4015,
11261,
3719,
288,
19021,
18,
542,
11261,
12,
2704,
4015,
11261,
12,
9446,
429,
18,
588,
11261,
1435,
10019,
289,
1377,
10252,
5118,
273,
19021,
18,
588,
11261,
5621,
1377,
1431,
949,
8526,
273,
288,
1381,
18,
20,
74,
16,
1381,
18,
20,
74,
16,
1728,
18,
20,
74,
16,
374,
18,
20,
74,
289,
31,
1377,
5118,
18,
7043,
12128,
17679,
12,
11261,
18,
11261,
67,
23516,
20,
16,
10252,
18,
11261,
67,
15258,
16,
949,
1769,
1377,
5118,
18,
7043,
8317,
12,
11261,
2
] |
plugin.stopPlugin(); plugin.startPlugin(); | pluginManager.removePlugin(plugin); pluginManager.addPlugin(plugin.getClass().getName()); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { HTTPRequest httpRequest = new HTTPRequest(uri, null, ctx); String uriPath = uri.getPath(); String pluginName = uriPath.substring(uriPath.lastIndexOf('/') + 1); if (pluginName.length() > 0) { Plugin plugin = findPlugin(pluginName); if (plugin != null) { if (plugin instanceof HttpPlugin) { ((HttpPlugin) plugin).handleGet(httpRequest, ctx); } else { writeReply(ctx, 220, "text/html; charset=utf-8", "OK", createBox(ctx, "Plugin has no web interface", "The plugin does not have a web interface, so there is nothing to show.").toString()); } return; } writeReply(ctx, 220, "text/html; charset=utf-8", "OK", createBox(ctx, "Plugin not found", "The requested plugin could not be found.").toString()); } String action = httpRequest.getParam("action"); if (action.length() == 0) { writePermanentRedirect(ctx, "Plugin list", "?action=list"); return; } StringBuffer replyBuffer = new StringBuffer(); if ("list".equals(action)) { replyBuffer.append(listPlugins(ctx)); } else if ("add".equals(action)) { pluginName = httpRequest.getParam("pluginName"); boolean added = false; try { pluginManager.addPlugin(pluginName); added = true; } catch (IllegalArgumentException iae1) { } if (added) { writePermanentRedirect(ctx, "Plugin list", "?action=list"); return; } replyBuffer.append(createBox(ctx, "Plugin was not loaded", "The plugin you requested could not be loaded. Please verify the name of the plugin’s class and the URL, if you gave one.")); } else if ("reload".equals(action)) { pluginName = httpRequest.getParam("pluginName"); Plugin plugin = findPlugin(pluginName); plugin.stopPlugin(); plugin.startPlugin(); writePermanentRedirect(ctx, "Plugin list", "?action=list"); } else if ("unload".equals(action)) { pluginName = httpRequest.getParam("pluginName"); Plugin plugin = findPlugin(pluginName); pluginManager.removePlugin(plugin); writePermanentRedirect(ctx, "Plugin list", "?action=list"); } writeReply(ctx, 220, "text/html; charset=utf-8", "OK", replyBuffer.toString()); } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/cb61d3f2edc46ce1d7aab1eff60a457b2c6a4434/PluginToadlet.java/clean/src/freenet/clients/http/PluginToadlet.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,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
23891,
12189,
273,
394,
25238,
12,
1650,
16,
446,
16,
1103,
1769,
202,
202,
780,
2003,
743,
273,
2003,
18,
588,
743,
5621,
202,
202,
780,
15909,
273,
2003,
743,
18,
28023,
12,
1650,
743,
18,
2722,
31985,
2668,
2473,
13,
397,
404,
1769,
202,
202,
430,
261,
4094,
461,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
3773,
1909,
273,
1104,
3773,
12,
4094,
461,
1769,
1082,
202,
430,
261,
4094,
480,
446,
13,
288,
9506,
202,
430,
261,
4094,
1276,
2541,
3773,
13,
288,
6862,
202,
12443,
2940,
3773,
13,
1909,
2934,
4110,
967,
12,
2505,
691,
16,
1103,
1769,
9506,
202,
97,
469,
288,
6862,
202,
2626,
7817,
12,
5900,
16,
576,
3462,
16,
315,
955,
19,
2620,
31,
4856,
33,
3158,
17,
28,
3113,
315,
3141,
3113,
752,
3514,
12,
5900,
16,
315,
3773,
711,
1158,
3311,
1560,
3113,
315,
1986,
1909,
1552,
486,
1240,
279,
3311,
1560,
16,
1427,
1915,
353,
5083,
358,
2405,
1199,
2934,
10492,
10663,
9506,
202,
97,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
2626,
7817,
12,
5900,
16,
576,
3462,
16,
315,
955,
19,
2620,
31,
4856,
33,
3158,
17,
28,
3113,
315,
3141,
3113,
752,
3514,
12,
5900,
16,
315,
3773,
486,
1392,
3113,
315,
1986,
3764,
1909,
3377,
486,
506,
1392,
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,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
23891,
12189,
273,
394,
25238,
12,
1650,
16,
446,
16,
1103,
1769,
202,
202,
780,
2003,
743,
273,
2003,
18,
588,
743,
5621,
202,
202,
780,
15909,
273,
2003,
743,
18,
28023,
12,
1650,
743,
18,
2722,
31985,
2668,
2473,
13,
397,
404,
1769,
202,
202,
430,
261,
4094,
461,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
3773,
1909,
273,
1104,
3773,
12,
4094,
461,
1769,
1082,
202,
430,
261,
4094,
480,
446,
13,
288,
9506,
202,
430,
261,
4094,
1276,
2541,
3773,
13,
288,
6862,
2
] |
if ((FEATURE + "namespaces").equals (featureId)) return namespaces; | if ((FEATURE + "lexical-handler/parameter-entities").equals(featureId)) { return true; } | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((FEATURE + "validation").equals (featureId)) return false; // external entities (both types) are optionally included if ((FEATURE + "external-general-entities").equals (featureId)) return extGE; if ((FEATURE + "external-parameter-entities") .equals (featureId)) return extPE; // element/attribute names are as written in document; no mangling if ((FEATURE + "namespace-prefixes").equals (featureId)) return xmlNames; // report element/attribute namespaces? if ((FEATURE + "namespaces").equals (featureId)) return namespaces; // all PEs and GEs are reported if ((FEATURE + "lexical-handler/parameter-entities").equals (featureId)) return true; // default is true if ((FEATURE + "string-interning").equals (featureId)) return stringInterning; // EXTENSIONS 1.1 // always returns isSpecified info if ((FEATURE + "use-attributes2").equals (featureId)) return true; // meaningful between startDocument/endDocument if ((FEATURE + "is-standalone").equals (featureId)) { if (parser == null) throw new SAXNotSupportedException (featureId); return parser.isStandalone (); } // optionally don't absolutize URIs in declarations if ((FEATURE + "resolve-dtd-uris").equals (featureId)) return resolveAll; // optionally use resolver2 interface methods, if possible if ((FEATURE + "use-entity-resolver2").equals (featureId)) return useResolver2; throw new SAXNotRecognizedException (featureId); } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/7fb7568e63c3fe14af521de4699cb37898923ca7/SAXDriver.java/buggy/libjava/gnu/xml/aelfred2/SAXDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
17961,
261,
780,
2572,
548,
13,
565,
1216,
10168,
1248,
5650,
9367,
503,
16,
10168,
25482,
565,
288,
202,
430,
14015,
18257,
397,
315,
8685,
20387,
14963,
261,
7238,
548,
3719,
202,
565,
327,
629,
31,
202,
759,
3903,
5140,
261,
18237,
1953,
13,
854,
8771,
5849,
202,
430,
14015,
18257,
397,
315,
9375,
17,
12259,
17,
9996,
20387,
14963,
261,
7238,
548,
3719,
202,
565,
327,
1110,
7113,
31,
202,
430,
14015,
18257,
397,
315,
9375,
17,
6775,
17,
9996,
7923,
263,
14963,
261,
7238,
548,
3719,
202,
565,
327,
1110,
1423,
31,
202,
759,
930,
19,
4589,
1257,
854,
487,
5941,
316,
1668,
31,
1158,
29674,
2456,
202,
430,
14015,
18257,
397,
315,
4937,
17,
17777,
20387,
14963,
261,
7238,
548,
3719,
202,
565,
327,
2025,
1557,
31,
202,
759,
2605,
930,
19,
4589,
7728,
35,
202,
430,
14015,
18257,
397,
315,
16078,
20387,
14963,
261,
7238,
548,
3719,
202,
565,
327,
7728,
31,
202,
759,
777,
453,
6705,
471,
611,
6705,
854,
14010,
202,
430,
14015,
18257,
397,
315,
4149,
1706,
17,
4176,
19,
6775,
17,
9996,
20387,
14963,
261,
7238,
548,
3719,
202,
565,
327,
638,
31,
202,
759,
805,
353,
638,
202,
430,
14015,
18257,
397,
315,
1080,
17,
267,
798,
310,
20387,
14963,
261,
7238,
548,
3719,
202,
565,
327,
533,
21843,
310,
31,
202,
202,
759,
25518,
55,
404,
18,
21,
202,
759,
3712,
1135,
353,
17068,
1123,
202,
430,
14015,
18257,
397,
315,
1202,
17,
4350,
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,
1250,
17961,
261,
780,
2572,
548,
13,
565,
1216,
10168,
1248,
5650,
9367,
503,
16,
10168,
25482,
565,
288,
202,
430,
14015,
18257,
397,
315,
8685,
20387,
14963,
261,
7238,
548,
3719,
202,
565,
327,
629,
31,
202,
759,
3903,
5140,
261,
18237,
1953,
13,
854,
8771,
5849,
202,
430,
14015,
18257,
397,
315,
9375,
17,
12259,
17,
9996,
20387,
14963,
261,
7238,
548,
3719,
202,
565,
327,
1110,
7113,
31,
202,
430,
14015,
18257,
397,
315,
9375,
17,
6775,
17,
9996,
7923,
263,
14963,
261,
7238,
548,
3719,
202,
565,
327,
1110,
1423,
31,
202,
759,
930,
19,
4589,
1257,
854,
487,
5941,
316,
1668,
31,
1158,
29674,
2456,
202,
430,
14015,
18257,
397,
315,
4937,
2
] |
currentRow = (ColData[])rowData.get(rowNum-1); | currentRow = (Object[])rowData.get(rowNum-1); | private boolean cursorFetch(int rowNum) throws SQLException { savedRow = null; rowUpdated = false; if (rowsInResult == 0) { pos = POS_BEFORE_FIRST; currentRow = null; return false; } if (rowNum == pos) { // On current row if (resultSetType == ResultSet.TYPE_SCROLL_SENSITIVE) { refreshRow(); } return true; } if (rowNum < 1) { currentRow = null; pos = POS_BEFORE_FIRST; return false; } if (rowNum > rowsInResult) { currentRow = null; pos = POS_AFTER_LAST; return false; } pos = rowNum; currentRow = (ColData[])rowData.get(rowNum-1); rowDeleted = currentRow == null; if (resultSetType == ResultSet.TYPE_SCROLL_SENSITIVE && currentRow != null) { refreshRow(); } return true; } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/280391932d64190b4ee42f49e5f8b60382f2fa03/CachedResultSet.java/buggy/src/main/net/sourceforge/jtds/jdbc/CachedResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3347,
5005,
12,
474,
1027,
2578,
13,
5411,
1216,
6483,
288,
3639,
5198,
1999,
273,
446,
31,
3639,
1027,
7381,
273,
629,
31,
3639,
309,
261,
3870,
382,
1253,
422,
374,
13,
288,
5411,
949,
273,
12511,
67,
19152,
67,
15354,
31,
5411,
31185,
273,
446,
31,
5411,
327,
629,
31,
3639,
289,
3639,
309,
261,
492,
2578,
422,
949,
13,
288,
5411,
368,
2755,
783,
1027,
5411,
309,
261,
2088,
25181,
422,
10842,
18,
2399,
67,
2312,
14555,
67,
26753,
16325,
13,
288,
7734,
4460,
1999,
5621,
5411,
289,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
492,
2578,
411,
404,
13,
288,
5411,
31185,
273,
446,
31,
5411,
949,
273,
12511,
67,
19152,
67,
15354,
31,
5411,
327,
629,
31,
3639,
289,
3639,
309,
261,
492,
2578,
405,
2595,
382,
1253,
13,
288,
5411,
31185,
273,
446,
31,
5411,
949,
273,
12511,
67,
18249,
67,
14378,
31,
5411,
327,
629,
31,
3639,
289,
3639,
949,
273,
1027,
2578,
31,
3639,
31185,
273,
261,
921,
63,
5717,
492,
751,
18,
588,
12,
492,
2578,
17,
21,
1769,
3639,
1027,
7977,
273,
31185,
422,
446,
31,
3639,
309,
261,
2088,
25181,
422,
10842,
18,
2399,
67,
2312,
14555,
67,
26753,
16325,
597,
31185,
480,
446,
13,
288,
5411,
4460,
1999,
5621,
3639,
289,
3639,
327,
638,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3347,
5005,
12,
474,
1027,
2578,
13,
5411,
1216,
6483,
288,
3639,
5198,
1999,
273,
446,
31,
3639,
1027,
7381,
273,
629,
31,
3639,
309,
261,
3870,
382,
1253,
422,
374,
13,
288,
5411,
949,
273,
12511,
67,
19152,
67,
15354,
31,
5411,
31185,
273,
446,
31,
5411,
327,
629,
31,
3639,
289,
3639,
309,
261,
492,
2578,
422,
949,
13,
288,
5411,
368,
2755,
783,
1027,
5411,
309,
261,
2088,
25181,
422,
10842,
18,
2399,
67,
2312,
14555,
67,
26753,
16325,
13,
288,
7734,
4460,
1999,
5621,
5411,
289,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
492,
2578,
411,
404,
13,
288,
5411,
31185,
273,
446,
31,
5411,
949,
273,
12511,
67,
19152,
2
] |
int len = dst.capacity() - dst.position(); | int len = dst.remaining(); | public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.capacity() - dst.position(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), dst.arrayOffset() + dst.position(), len); } else { packet = new DatagramPacket (new byte [len], len); } boolean completed = false; try { begin(); setInChannelOperation(true); socket.receive (packet); completed = true; } finally { end (completed); setInChannelOperation(false); } if (!dst.hasArray()) { dst.put (packet.getData(), packet.getOffset(), packet.getLength()); } else { dst.position (dst.position() + packet.getLength()); } return packet.getSocketAddress(); } catch (SocketTimeoutException e) { return null; } } | 27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/7e4c56ed992fe3bf715b82b1e3e8fda2e6772688/DatagramChannelImpl.java/buggy/libjava/gnu/java/nio/DatagramChannelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8758,
1887,
6798,
261,
12242,
3046,
13,
565,
1216,
1860,
225,
288,
565,
309,
16051,
291,
3678,
10756,
1377,
604,
394,
25582,
2909,
503,
5621,
3639,
775,
1377,
288,
3639,
6168,
17049,
6667,
4414,
31,
3639,
509,
562,
273,
3046,
18,
17956,
5621,
7734,
309,
261,
11057,
18,
5332,
1076,
10756,
1850,
288,
5411,
4414,
273,
394,
6168,
17049,
6667,
261,
11057,
18,
1126,
9334,
29159,
3046,
18,
1126,
2335,
1435,
397,
3046,
18,
3276,
9334,
29159,
562,
1769,
1850,
289,
3639,
469,
1850,
288,
5411,
4414,
273,
394,
6168,
17049,
6667,
261,
2704,
1160,
306,
1897,
6487,
562,
1769,
1850,
289,
3639,
1250,
5951,
273,
629,
31,
3639,
775,
1850,
288,
5411,
2376,
5621,
5411,
444,
382,
2909,
2988,
12,
3767,
1769,
5411,
2987,
18,
18149,
261,
11482,
1769,
5411,
5951,
273,
638,
31,
1850,
289,
3639,
3095,
1850,
288,
5411,
679,
261,
13615,
1769,
5411,
444,
382,
2909,
2988,
12,
5743,
1769,
1850,
289,
3639,
309,
16051,
11057,
18,
5332,
1076,
10756,
1850,
288,
5411,
3046,
18,
458,
261,
11482,
18,
588,
751,
9334,
4414,
18,
588,
2335,
9334,
4414,
18,
588,
1782,
10663,
1850,
289,
3639,
469,
1850,
288,
5411,
3046,
18,
3276,
261,
11057,
18,
3276,
1435,
397,
4414,
18,
588,
1782,
10663,
1850,
289,
3639,
327,
4414,
18,
588,
15520,
5621,
1377,
289,
565,
1044,
261,
4534,
22195,
425,
13,
1377,
288,
3639,
327,
446,
31,
1377,
289,
225,
289,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8758,
1887,
6798,
261,
12242,
3046,
13,
565,
1216,
1860,
225,
288,
565,
309,
16051,
291,
3678,
10756,
1377,
604,
394,
25582,
2909,
503,
5621,
3639,
775,
1377,
288,
3639,
6168,
17049,
6667,
4414,
31,
3639,
509,
562,
273,
3046,
18,
17956,
5621,
7734,
309,
261,
11057,
18,
5332,
1076,
10756,
1850,
288,
5411,
4414,
273,
394,
6168,
17049,
6667,
261,
11057,
18,
1126,
9334,
29159,
3046,
18,
1126,
2335,
1435,
397,
3046,
18,
3276,
9334,
29159,
562,
1769,
1850,
289,
3639,
469,
1850,
288,
5411,
4414,
273,
394,
6168,
17049,
6667,
261,
2704,
1160,
306,
1897,
6487,
562,
1769,
1850,
289,
3639,
1250,
5951,
273,
629,
31,
3639,
775,
1850,
288,
5411,
2376,
5621,
5411,
444,
2
] |
public void testCallableStatementExec4() throws Exception { CallableStatement cstmt = con.prepareCall("EXECUTE sp_who"); makeTestTables(cstmt); makeObjects(cstmt, 8); ResultSet rs = cstmt.executeQuery(); dump(rs); cstmt.close(); rs.close(); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/31239e9062bef524a204bbd17ef75857ed26f1f9/CallableStatementTest.java/buggy/src/test/net/sourceforge/jtds/test/CallableStatementTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
11452,
3406,
1905,
24,
1435,
15069,
503,
95,
11452,
3406,
71,
10589,
33,
591,
18,
9366,
1477,
2932,
15271,
9099,
1752,
67,
3350,
83,
8863,
6540,
4709,
6905,
12,
71,
10589,
1769,
6540,
4710,
12,
71,
10589,
16,
28,
1769,
13198,
5453,
33,
71,
10589,
18,
8837,
1138,
5621,
8481,
12,
5453,
1769,
71,
10589,
18,
4412,
5621,
5453,
18,
4412,
5621,
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,
1071,
6459,
3813,
11452,
3406,
1905,
24,
1435,
15069,
503,
95,
11452,
3406,
71,
10589,
33,
591,
18,
9366,
1477,
2932,
15271,
9099,
1752,
67,
3350,
83,
8863,
6540,
4709,
6905,
12,
71,
10589,
1769,
6540,
4710,
12,
71,
10589,
16,
28,
1769,
13198,
5453,
33,
71,
10589,
18,
8837,
1138,
5621,
8481,
12,
5453,
1769,
71,
10589,
18,
4412,
5621,
5453,
18,
4412,
5621,
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
] | ||
set(children, position, cat); | this.set(children, position, cat); | public void loadChildCategories(Vector children) { ResultSet result; String query; query = "SELECT id, name, positionInTree, modifiableIndexes FROM indexCategories"; if(id < 0) query = query + " WHERE parent IS NULL"; else query = query + " WHERE parent = "+Integer.toString(id); if(modifiables) { query = query + " AND modifiableIndexes = TRUE"; } else { query = query + " AND modifiableIndexes = FALSE"; } query = query + " ORDER BY positionInTree DESC"; try { result = db.executeQuery(query); if(result == null) { Logger.error(this, "Unable to get child categories for '"+toString()+"'"); return; } while(result.next()) { int id = result.getInt("id"); int position = result.getInt("positionInTree"); String name = result.getString("name"); IndexCategory cat = new IndexCategory(db, queueManager, id, this, name, modifiables); cat.loadChildren(); set(children, position, cat); } } catch (java.sql.SQLException e) { Logger.error(this, "SQLException while getting child of index category '"+name+"': "+e.toString()); } } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/IndexCategory.java/clean/src/thaw/plugins/index/IndexCategory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1262,
1763,
10487,
12,
5018,
2325,
13,
288,
9506,
202,
13198,
563,
31,
9506,
202,
780,
843,
31,
202,
202,
2271,
273,
315,
4803,
612,
16,
508,
16,
1754,
382,
2471,
16,
681,
8424,
8639,
4571,
770,
10487,
14432,
202,
202,
430,
12,
350,
411,
374,
13,
1082,
202,
2271,
273,
843,
397,
315,
4852,
982,
4437,
3206,
14432,
202,
202,
12107,
1082,
202,
2271,
273,
843,
397,
315,
4852,
982,
273,
13773,
4522,
18,
10492,
12,
350,
1769,
202,
202,
430,
12,
1711,
704,
1538,
13,
288,
1082,
202,
2271,
273,
843,
397,
315,
4116,
681,
8424,
8639,
273,
5383,
14432,
202,
202,
97,
469,
288,
1082,
202,
2271,
273,
843,
397,
315,
4116,
681,
8424,
8639,
273,
4934,
14432,
202,
202,
97,
202,
202,
2271,
273,
843,
397,
315,
10205,
6953,
1754,
382,
2471,
14326,
14432,
202,
202,
698,
288,
1082,
202,
2088,
273,
1319,
18,
8837,
1138,
12,
2271,
1769,
25083,
202,
430,
12,
2088,
422,
446,
13,
288,
9506,
202,
3328,
18,
1636,
12,
2211,
16,
315,
3370,
358,
336,
1151,
6477,
364,
2119,
15,
10492,
1435,
9078,
4970,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
17523,
12,
2088,
18,
4285,
10756,
288,
9506,
202,
474,
612,
273,
563,
18,
588,
1702,
2932,
350,
8863,
9506,
202,
474,
1754,
273,
563,
18,
588,
1702,
2932,
3276,
382,
2471,
8863,
9506,
202,
780,
508,
273,
563,
18,
588,
780,
2932,
529,
8863,
6862,
9506,
202,
1016,
4457,
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,
1262,
1763,
10487,
12,
5018,
2325,
13,
288,
9506,
202,
13198,
563,
31,
9506,
202,
780,
843,
31,
202,
202,
2271,
273,
315,
4803,
612,
16,
508,
16,
1754,
382,
2471,
16,
681,
8424,
8639,
4571,
770,
10487,
14432,
202,
202,
430,
12,
350,
411,
374,
13,
1082,
202,
2271,
273,
843,
397,
315,
4852,
982,
4437,
3206,
14432,
202,
202,
12107,
1082,
202,
2271,
273,
843,
397,
315,
4852,
982,
273,
13773,
4522,
18,
10492,
12,
350,
1769,
202,
202,
430,
12,
1711,
704,
1538,
13,
288,
1082,
202,
2271,
273,
843,
397,
315,
4116,
681,
8424,
8639,
273,
5383,
14432,
202,
202,
97,
469,
288,
1082,
202,
2271,
273,
843,
397,
315,
4116,
2
] |
throw Kit.badTypeJS(val); | warnAboutNonJSObject(val); return true; | public static boolean toBoolean(Object val) { if (val == null) return false; if (val instanceof Boolean) return ((Boolean) val).booleanValue(); if (val instanceof Scriptable) { if (Context.getContext().isVersionECMA1()) { // pure ECMA return val != Undefined.instance; } // ECMA extension val = ((Scriptable) val).getDefaultValue(BooleanClass); if (val instanceof Scriptable) throw errorWithClassName("msg.primitive.expected", val); if (val instanceof Boolean) return ((Boolean) val).booleanValue(); // fall through } if (val instanceof String) return ((String) val).length() != 0; if (val instanceof Number) { double d = ((Number) val).doubleValue(); return (d == d && d != 0.0); } throw Kit.badTypeJS(val); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/0689482587578830da02b53dc2c9f2d2db4fa0b3/ScriptRuntime.java/buggy/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
358,
5507,
12,
921,
1244,
13,
288,
3639,
309,
261,
1125,
422,
446,
13,
5411,
327,
629,
31,
3639,
309,
261,
1125,
1276,
3411,
13,
5411,
327,
14015,
5507,
13,
1244,
2934,
6494,
620,
5621,
3639,
309,
261,
1125,
1276,
22780,
13,
288,
5411,
309,
261,
1042,
18,
29120,
7675,
291,
1444,
7228,
5535,
21,
10756,
288,
7734,
368,
16618,
7773,
5535,
7734,
327,
1244,
480,
22243,
18,
1336,
31,
5411,
289,
5411,
368,
7773,
5535,
2710,
5411,
1244,
273,
14015,
3651,
429,
13,
1244,
2934,
588,
15646,
12,
5507,
797,
1769,
5411,
309,
261,
1125,
1276,
22780,
13,
7734,
604,
555,
1190,
3834,
2932,
3576,
18,
683,
5025,
18,
3825,
3113,
1244,
1769,
5411,
309,
261,
1125,
1276,
3411,
13,
7734,
327,
14015,
5507,
13,
1244,
2934,
6494,
620,
5621,
5411,
368,
4159,
3059,
3639,
289,
3639,
309,
261,
1125,
1276,
514,
13,
5411,
327,
14015,
780,
13,
1244,
2934,
2469,
1435,
480,
374,
31,
3639,
309,
261,
1125,
1276,
3588,
13,
288,
5411,
1645,
302,
273,
14015,
1854,
13,
1244,
2934,
9056,
620,
5621,
5411,
327,
261,
72,
422,
302,
597,
302,
480,
374,
18,
20,
1769,
3639,
289,
540,
1894,
24813,
3989,
6479,
921,
12,
1125,
1769,
327,
638,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
358,
5507,
12,
921,
1244,
13,
288,
3639,
309,
261,
1125,
422,
446,
13,
5411,
327,
629,
31,
3639,
309,
261,
1125,
1276,
3411,
13,
5411,
327,
14015,
5507,
13,
1244,
2934,
6494,
620,
5621,
3639,
309,
261,
1125,
1276,
22780,
13,
288,
5411,
309,
261,
1042,
18,
29120,
7675,
291,
1444,
7228,
5535,
21,
10756,
288,
7734,
368,
16618,
7773,
5535,
7734,
327,
1244,
480,
22243,
18,
1336,
31,
5411,
289,
5411,
368,
7773,
5535,
2710,
5411,
1244,
273,
14015,
3651,
429,
13,
1244,
2934,
588,
15646,
12,
5507,
797,
1769,
5411,
309,
261,
1125,
1276,
22780,
13,
7734,
604,
555,
1190,
3834,
2932,
3576,
18,
683,
5025,
18,
3825,
3113,
1244,
1769,
5411,
2
] |
return pruned; } | return pruned; } | private boolean pruneStaleJobs() { Object[] jobsToCheck = jobs.keySet().toArray(); boolean pruned = false; for (int i = 0; i < jobsToCheck.length; i++) { Job job = (Job) jobsToCheck[i]; if(checkForStaleness(job)){ if (Policy.DEBUG_STALE_JOBS) { WorkbenchPlugin.log("Stale Job " + job.getName()); //$NON-NLS-1$ } pruned = true; } } return pruned; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0e7fbc26f7d1b7769a0721c71fd17572c8432fd5/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
13293,
19155,
7276,
1435,
288,
3639,
1033,
8526,
6550,
18126,
273,
6550,
18,
856,
694,
7675,
31447,
5621,
3639,
1250,
27843,
273,
629,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6550,
18126,
18,
2469,
31,
277,
27245,
288,
5411,
3956,
1719,
273,
261,
2278,
13,
6550,
18126,
63,
77,
15533,
5411,
309,
12,
1893,
1290,
510,
287,
15681,
12,
4688,
3719,
95,
2398,
202,
430,
261,
2582,
18,
9394,
67,
882,
37,
900,
67,
18321,
55,
13,
288,
6862,
202,
2421,
22144,
3773,
18,
1330,
2932,
19155,
3956,
315,
397,
1719,
18,
17994,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
2398,
202,
683,
20630,
273,
638,
31,
5411,
289,
3639,
289,
3639,
327,
27843,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
1250,
13293,
19155,
7276,
1435,
288,
3639,
1033,
8526,
6550,
18126,
273,
6550,
18,
856,
694,
7675,
31447,
5621,
3639,
1250,
27843,
273,
629,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6550,
18126,
18,
2469,
31,
277,
27245,
288,
5411,
3956,
1719,
273,
261,
2278,
13,
6550,
18126,
63,
77,
15533,
5411,
309,
12,
1893,
1290,
510,
287,
15681,
12,
4688,
3719,
95,
2398,
202,
430,
261,
2582,
18,
9394,
67,
882,
37,
900,
67,
18321,
55,
13,
288,
6862,
202,
2421,
22144,
3773,
18,
1330,
2932,
19155,
3956,
315,
397,
1719,
18,
17994,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
2398,
202,
683,
20630,
273,
638,
31,
5411,
2
] |
actionBar.setCursor(normalCursor); | actionBar.setCursor(getDisplay().getSystemCursor( SWT.CURSOR_ARROW)); | protected void createChildren() { normalCursor = new Cursor(getDisplay(), SWT.CURSOR_ARROW); FormLayout layout = new FormLayout(); setLayout(layout); jobImageLabel = new Label(this, SWT.NONE); jobImageLabel.setImage(getInfoImage()); FormData imageData = new FormData(); imageData.top = new FormAttachment(IDialogConstants.VERTICAL_SPACING); imageData.left = new FormAttachment( IDialogConstants.HORIZONTAL_SPACING / 2); jobImageLabel.setLayoutData(imageData); progressLabel = new Label(this, SWT.NONE); progressLabel.setFont(JFaceResources.getFontRegistry().getBold( JFaceResources.DEFAULT_FONT)); progressLabel.setText(getMainTitle()); actionBar = new ToolBar(this, SWT.FLAT); actionBar.setCursor(normalCursor); // set cursor to overwrite any busy // cursor we might have actionButton = new ToolItem(actionBar, SWT.NONE); actionButton .setToolTipText(ProgressMessages.NewProgressView_CancelJobToolTip); actionButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { actionButton.setEnabled(false); cancelOrRemove(); } }); actionBar.addListener(SWT.Traverse, new Listener() { /* * (non-Javadoc) * * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event) */ public void handleEvent(Event event) { if (indexListener == null) return; int detail = event.detail; if (detail == SWT.TRAVERSE_ARROW_NEXT) indexListener.selectNext(); if (detail == SWT.TRAVERSE_ARROW_PREVIOUS) indexListener.selectPrevious(); } }); setToolBarImages(); FormData progressData = new FormData(); progressData.top = new FormAttachment(IDialogConstants.VERTICAL_SPACING); progressData.left = new FormAttachment(jobImageLabel, IDialogConstants.HORIZONTAL_SPACING / 2); progressData.right = new FormAttachment(actionBar, IDialogConstants.HORIZONTAL_SPACING); progressLabel.setLayoutData(progressData); mouseListener = new MouseAdapter(){ /* (non-Javadoc) * @see org.eclipse.swt.events.MouseListener#mouseDown(org.eclipse.swt.events.MouseEvent) */ public void mouseDown(MouseEvent e){ if(indexListener != null) indexListener.select(); } }; addMouseListener(mouseListener); jobImageLabel.addMouseListener(mouseListener); progressLabel.addMouseListener(mouseListener); setLayoutsForNoProgress(); refresh(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/2d4042b70069b0517c760095b3fa69546ade5458/ProgressInfoItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
4212,
1435,
288,
202,
202,
6130,
6688,
273,
394,
13949,
12,
588,
4236,
9334,
348,
8588,
18,
7509,
55,
916,
67,
985,
11226,
1769,
202,
202,
1204,
3744,
3511,
273,
394,
2748,
3744,
5621,
202,
202,
542,
3744,
12,
6741,
1769,
202,
202,
4688,
2040,
2224,
273,
394,
5287,
12,
2211,
16,
348,
8588,
18,
9826,
1769,
202,
202,
4688,
2040,
2224,
18,
542,
2040,
12,
588,
966,
2040,
10663,
202,
202,
30079,
26229,
273,
394,
2748,
751,
5621,
202,
202,
2730,
751,
18,
3669,
273,
394,
2748,
6803,
12,
734,
3529,
2918,
18,
21654,
10109,
67,
3118,
2226,
1360,
1769,
202,
202,
2730,
751,
18,
4482,
273,
394,
2748,
6803,
12,
9506,
202,
734,
3529,
2918,
18,
44,
20344,
67,
3118,
2226,
1360,
342,
576,
1769,
202,
202,
4688,
2040,
2224,
18,
542,
3744,
751,
12,
2730,
751,
1769,
202,
202,
8298,
2224,
273,
394,
5287,
12,
2211,
16,
348,
8588,
18,
9826,
1769,
202,
202,
8298,
2224,
18,
542,
5711,
12,
46,
11824,
3805,
18,
588,
5711,
4243,
7675,
588,
38,
1673,
12,
9506,
202,
46,
11824,
3805,
18,
5280,
67,
25221,
10019,
202,
202,
8298,
2224,
18,
542,
1528,
12,
588,
6376,
4247,
10663,
202,
202,
1128,
5190,
273,
394,
13288,
5190,
12,
2211,
16,
348,
8588,
18,
42,
12190,
1769,
202,
202,
1128,
5190,
18,
542,
6688,
12,
588,
4236,
7675,
588,
3163,
6688,
12,
348,
8588,
18,
7509,
55,
916,
67,
985,
11226,
10019,
225,
368,
444,
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,
752,
4212,
1435,
288,
202,
202,
6130,
6688,
273,
394,
13949,
12,
588,
4236,
9334,
348,
8588,
18,
7509,
55,
916,
67,
985,
11226,
1769,
202,
202,
1204,
3744,
3511,
273,
394,
2748,
3744,
5621,
202,
202,
542,
3744,
12,
6741,
1769,
202,
202,
4688,
2040,
2224,
273,
394,
5287,
12,
2211,
16,
348,
8588,
18,
9826,
1769,
202,
202,
4688,
2040,
2224,
18,
542,
2040,
12,
588,
966,
2040,
10663,
202,
202,
30079,
26229,
273,
394,
2748,
751,
5621,
202,
202,
2730,
751,
18,
3669,
273,
394,
2748,
6803,
12,
734,
3529,
2918,
18,
21654,
10109,
67,
3118,
2226,
1360,
1769,
202,
202,
2730,
751,
18,
4482,
273,
394,
2748,
6803,
12,
9506,
202,
2
] |
MondrianJolapDimension dimension = (MondrianJolapDimension) getDimensionStepManager().getDimensionView().getDimension(); return new FunCall( getFunName(getOp()), | MondrianJolapDimension dimension = (MondrianJolapDimension) getDimensionStepManager().getDimensionView().getDimension(); return new FunCall( getFunName(getOp()), | Exp getCondition() throws OLAPException { MondrianJolapDimension dimension = (MondrianJolapDimension) getDimensionStepManager().getDimensionView().getDimension(); return new FunCall( getFunName(getOp()), getFunSyntacticType(getOp()), new Exp[] { new FunCall("CurrentMember", Syntax.Property, new Exp[] {dimension.dimension} ), getExp(rhs)} ); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/MondrianAttributeFilter.java/buggy/src/main/mondrian/jolap/MondrianAttributeFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
2966,
26659,
1435,
1216,
531,
48,
2203,
503,
288,
202,
202,
49,
1434,
566,
304,
46,
355,
438,
8611,
4968,
273,
261,
49,
1434,
566,
304,
46,
355,
438,
8611,
13,
9506,
202,
588,
8611,
4160,
1318,
7675,
588,
8611,
1767,
7675,
588,
8611,
5621,
202,
202,
2463,
394,
478,
318,
1477,
12,
9506,
202,
588,
22783,
461,
12,
588,
3817,
1435,
3631,
7734,
2812,
318,
10876,
21844,
559,
12,
588,
3817,
1435,
3631,
394,
7784,
8526,
288,
6862,
202,
2704,
478,
318,
1477,
2932,
3935,
4419,
3113,
18701,
11517,
18,
1396,
16,
394,
7784,
8526,
288,
11808,
18,
11808,
97,
10792,
262,
16,
6862,
202,
588,
2966,
12,
86,
4487,
16869,
3639,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2966,
26659,
1435,
1216,
531,
48,
2203,
503,
288,
202,
202,
49,
1434,
566,
304,
46,
355,
438,
8611,
4968,
273,
261,
49,
1434,
566,
304,
46,
355,
438,
8611,
13,
9506,
202,
588,
8611,
4160,
1318,
7675,
588,
8611,
1767,
7675,
588,
8611,
5621,
202,
202,
2463,
394,
478,
318,
1477,
12,
9506,
202,
588,
22783,
461,
12,
588,
3817,
1435,
3631,
7734,
2812,
318,
10876,
21844,
559,
12,
588,
3817,
1435,
3631,
394,
7784,
8526,
288,
6862,
202,
2704,
478,
318,
1477,
2932,
3935,
4419,
3113,
18701,
11517,
18,
1396,
16,
394,
7784,
8526,
288,
11808,
18,
11808,
97,
10792,
262,
16,
6862,
202,
588,
2966,
12,
86,
4487,
16869,
3639,
11272,
202,
97,
2,
-100
] |
return portletPrefences; | return portletPreferences; | public PortletPreferences updatePreferences( PortletPreferencesPK pk, PortletPreferencesImpl prefs) throws PortalException, SystemException { PortletPreferences portletPrefences = PortletPreferencesUtil.findByPrimaryKey(pk); String xml = PortletPreferencesSerializer.toXML(prefs); portletPrefences.setPreferences(xml); PortletPreferencesUtil.update(portletPrefences); PortletPreferencesLocalUtil.clearPreferencesPool(pk.ownerId); return portletPrefences; } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/b3f0f43276fb70ce2b136b81f254c16dfb379c96/PortletPreferencesLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/PortletPreferencesLocalServiceImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21305,
12377,
1089,
12377,
12,
1082,
202,
18566,
12377,
8784,
2365,
16,
21305,
12377,
2828,
15503,
13,
202,
202,
15069,
25478,
503,
16,
26731,
288,
202,
202,
18566,
12377,
13114,
23218,
2369,
273,
1082,
202,
18566,
12377,
1304,
18,
4720,
858,
11575,
12,
5465,
1769,
202,
202,
780,
2025,
273,
21305,
12377,
6306,
18,
869,
4201,
12,
1484,
2556,
1769,
202,
202,
655,
1810,
23218,
2369,
18,
542,
12377,
12,
2902,
1769,
202,
202,
18566,
12377,
1304,
18,
2725,
12,
655,
1810,
23218,
2369,
1769,
202,
202,
18566,
12377,
2042,
1304,
18,
8507,
12377,
2864,
12,
5465,
18,
8443,
548,
1769,
202,
202,
2463,
13114,
23218,
2369,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21305,
12377,
1089,
12377,
12,
1082,
202,
18566,
12377,
8784,
2365,
16,
21305,
12377,
2828,
15503,
13,
202,
202,
15069,
25478,
503,
16,
26731,
288,
202,
202,
18566,
12377,
13114,
23218,
2369,
273,
1082,
202,
18566,
12377,
1304,
18,
4720,
858,
11575,
12,
5465,
1769,
202,
202,
780,
2025,
273,
21305,
12377,
6306,
18,
869,
4201,
12,
1484,
2556,
1769,
202,
202,
655,
1810,
23218,
2369,
18,
542,
12377,
12,
2902,
1769,
202,
202,
18566,
12377,
1304,
18,
2725,
12,
655,
1810,
23218,
2369,
1769,
202,
202,
18566,
12377,
2042,
1304,
18,
8507,
12377,
2864,
12,
5465,
18,
8443,
548,
1769,
202,
202,
2463,
13114,
23218,
2369,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
SVNLocationEntry sEntry = FSReader.copiedFrom(myReposRootDir, croot, cpath, myRevNodesPool); | SVNLocationEntry sEntry = FSReader.copiedFrom(myReposRootDir, FSRoot.createRevisionRoot(croot.getId().getRevision(), croot), cpath, myRevNodesPool); | public int getLocations(String path, long pegRevision, long[] revisions, ISVNLocationEntryHandler handler) throws SVNException { assertValidRevision(pegRevision); for (int i = 0; i < revisions.length; i++) { assertValidRevision(revisions[i]); } try{ openRepository(); path = getRepositoryPath(path); ArrayList locationEntries = new ArrayList(0); long[] locationRevs = new long[revisions.length]; long revision; FSRevisionNode root = null; //Sort revisions from greatest downward Arrays.sort(revisions); for(int i = 0; i < revisions.length; ++i){ locationRevs[i] = revisions[revisions.length - (i + 1)]; } //Ignore revisions R that are younger than the pegRevisions where //path@pegRevision is not an ancestor of path@R. int count = 0; boolean isAncestor = false; for(count = 0; count < locationRevs.length && locationRevs[count] > pegRevision; ++count){ isAncestor = FSNodeHistory.checkAncestryOfPegPath(myReposRootDir, path, pegRevision, locationRevs[count], myRevNodesPool); if(isAncestor){ break; } } if(count >= locationRevs.length){ return 0; } revision = isAncestor ? locationRevs[count] : pegRevision; while(count < revisions.length){ //Find the target of the innermost copy relevant to path@revision. //The copy may be of path itself, or of a parent directory. root = FSReader.getRootRevNode(myReposRootDir, revision); FSClosestCopy tempClCopy = closestCopy(FSRoot.createRevisionRoot(revision, root), path); if(tempClCopy == null){ break; } FSRevisionNode croot = tempClCopy.getRevisionNode(); if(croot == null){ break; } String cpath = tempClCopy.getPath(); //Assign the current path to all younger revisions until we reach //the copy target rev long crev = croot.getId().isTxn() ? FSConstants.SVN_INVALID_REVNUM : croot.getId().getRevision(); while((count < revisions.length) && (locationRevs[count] >= crev)){ locationEntries.add(new SVNLocationEntry(locationRevs[count], path)); ++count; } // Follow the copy to its source. Ignore all revs between the // copy target rev and the copy source rev (non-inclusive). SVNLocationEntry sEntry = FSReader.copiedFrom(myReposRootDir, croot, cpath, myRevNodesPool); /*!!here is inconsitance with code of svn: they write locationRevs[count] > sEntry.getRevision()*/ while((count < revisions.length) && locationRevs[count] > sEntry.getRevision()){ ++count; } /* Ultimately, it's not the path of the closest copy's source * that we care about -- it's our own path's location in the * copy source revision. So we'll tack the relative path that * expresses the difference between the copy destination and our * path in the copy revision onto the copy source path to * determine this information. * In other words, if our path is "/branches/my-branch/foo/bar", * and we know that the closest relevant copy was a copy of * "/trunk" to "/branches/my-branch", then that relative path * under the copy destination is "/foo/bar". Tacking that onto * the copy source path tells us that our path was located at * "/trunk/foo/bar" before the copy. */ String remainder = path.equals(cpath) ? "" : SVNPathUtil.pathIsChild(cpath, path); path = SVNPathUtil.concatToAbs(sEntry.getPath(), remainder); revision = sEntry.getRevision(); } /* There are no copies relevant to path@revision. So any remaining * revisions either predate the creation of path@revision or have * the node existing at the same path. We will look up path@lrev * for each remaining location-revision and make sure it is related * to path@revision. */ root = myRevNodesPool.getRootRevisionNode(revision, myReposRootDir);//FSReader.getRootRevNode(myReposRootDir, revision); FSRevisionNode curNode = myRevNodesPool.getRevisionNode(root, path, myReposRootDir);//FSReader.getRevisionNode(myReposRootDir, path, root, 0); while(count < revisions.length){ root = myRevNodesPool.getRootRevisionNode(locationRevs[count], myReposRootDir);//FSReader.getRootRevNode(myReposRootDir, locationRevs[count]); SVNNodeKind kind = checkNodeKind(path, FSRoot.createRevisionRoot(locationRevs[count], root)); if(kind == SVNNodeKind.NONE){ break; } FSRevisionNode currentNode = myRevNodesPool.getRevisionNode(root, path, myReposRootDir);//FSReader.getRevisionNode(myReposRootDir, path, root, 0); if(!FSID.checkIdsRelated(curNode.getId(), currentNode.getId())){ break; } /* The node exists at the same path; record that and advance. */ locationEntries.add(new SVNLocationEntry(locationRevs[count], path)); ++count; } for(count = 0; count < locationEntries.size(); count++){ /* make sure we have a handler */ if(handler != null){ handler.handleLocationEntry((SVNLocationEntry)locationEntries.get(count)); } } return count; }finally{ closeRepository(); } } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/e7ad048caa889ec811131785dd8fbd2c7886af28/FSRepository.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/io/fs/FSRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
10985,
12,
780,
589,
16,
1525,
29231,
7939,
16,
1525,
8526,
18325,
16,
4437,
58,
50,
2735,
1622,
1503,
1838,
13,
1216,
29537,
50,
503,
288,
3639,
1815,
1556,
7939,
12,
9001,
7939,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
18325,
18,
2469,
31,
277,
27245,
288,
5411,
1815,
1556,
7939,
12,
29892,
63,
77,
19226,
3639,
289,
3639,
775,
95,
377,
202,
202,
3190,
3305,
5621,
5411,
589,
273,
8261,
743,
12,
803,
1769,
5411,
2407,
2117,
5400,
273,
394,
2407,
12,
20,
1769,
13491,
1525,
8526,
2117,
426,
6904,
273,
394,
1525,
63,
29892,
18,
2469,
15533,
5411,
1525,
6350,
31,
5411,
9247,
7939,
907,
1365,
273,
446,
31,
5411,
368,
4416,
18325,
628,
18825,
395,
2588,
2913,
5411,
5647,
18,
3804,
12,
29892,
1769,
5411,
364,
12,
474,
277,
273,
374,
31,
277,
411,
18325,
18,
2469,
31,
965,
77,
15329,
2398,
202,
3562,
426,
6904,
63,
77,
65,
273,
18325,
63,
29892,
18,
2469,
300,
261,
77,
397,
404,
13,
15533,
5411,
289,
4766,
565,
202,
759,
3777,
18325,
534,
716,
854,
677,
465,
693,
2353,
326,
29231,
21208,
1625,
5411,
368,
803,
36,
9001,
7939,
353,
486,
392,
9731,
434,
589,
36,
54,
18,
5411,
509,
1056,
273,
374,
31,
5411,
1250,
353,
15637,
273,
629,
31,
5411,
364,
12,
1883,
273,
374,
31,
1056,
411,
2117,
426,
6904,
18,
2469,
597,
2117,
426,
6904,
63,
1883,
65,
405,
29231,
7939,
31,
965,
1883,
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,
336,
10985,
12,
780,
589,
16,
1525,
29231,
7939,
16,
1525,
8526,
18325,
16,
4437,
58,
50,
2735,
1622,
1503,
1838,
13,
1216,
29537,
50,
503,
288,
3639,
1815,
1556,
7939,
12,
9001,
7939,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
18325,
18,
2469,
31,
277,
27245,
288,
5411,
1815,
1556,
7939,
12,
29892,
63,
77,
19226,
3639,
289,
3639,
775,
95,
377,
202,
202,
3190,
3305,
5621,
5411,
589,
273,
8261,
743,
12,
803,
1769,
5411,
2407,
2117,
5400,
273,
394,
2407,
12,
20,
1769,
13491,
1525,
8526,
2117,
426,
6904,
273,
394,
1525,
63,
29892,
18,
2469,
15533,
5411,
1525,
6350,
31,
5411,
9247,
7939,
907,
1365,
273,
446,
31,
2
] |
try{ callback.templateDeclarationEnd( templateDeclaration ); } catch( Exception e ) {} | try{ callback.templateDeclarationEnd( templateDeclaration, lastToken ); } catch( Exception e ) {} | protected void templateDeclaration( Object container ) throws Backtrack { boolean export = false; if( LT(1) == Token.t_export ) { consume( Token.t_export ); export = true; } consume( Token.t_template ); if( LT(1) != Token.tLT ) { // explicit-instantiation Object instantiation = null; try { instantiation = callback.explicitInstantiationBegin( container ); } catch( Exception e ) { } declaration( instantiation ); try { callback.explicitInstantiationEnd( instantiation ); } catch( Exception e ) { } return; } else { consume( Token.tLT ); if( LT(1) == Token.tGT ) { consume( Token.tGT ); // explicit-specialization Object specialization = null; try{ specialization = callback.explicitSpecializationBegin( container ); } catch( Exception e ) { } declaration( specialization ); try{ callback.explicitSpecializationEnd( specialization ); } catch( Exception e ) { } return; } } Object templateDeclaration = null; try { try{ templateDeclaration = callback.templateDeclarationBegin( container, export ); } catch ( Exception e ) {} templateParameterList( templateDeclaration ); consume( Token.tGT ); declaration( templateDeclaration ); try{ callback.templateDeclarationEnd( templateDeclaration ); } catch( Exception e ) {} } catch( Backtrack bt ) { try { callback.templateDeclarationAbort( templateDeclaration ); } catch( Exception e ) {} } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/938a074dd8962c326220efab64196bd8a4dcef54/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1542,
6094,
12,
1033,
1478,
262,
1216,
4297,
4101,
202,
95,
202,
202,
6494,
3359,
273,
629,
31,
3196,
202,
430,
12,
11807,
12,
21,
13,
422,
3155,
18,
88,
67,
6530,
262,
202,
202,
95,
1082,
202,
21224,
12,
3155,
18,
88,
67,
6530,
11272,
1875,
202,
6530,
273,
638,
31,
3196,
202,
97,
9506,
202,
21224,
12,
3155,
18,
88,
67,
3202,
11272,
202,
202,
430,
12,
11807,
12,
21,
13,
480,
3155,
18,
88,
12050,
262,
202,
202,
95,
1082,
202,
759,
5515,
17,
24628,
7072,
1082,
202,
921,
28380,
273,
446,
31,
1875,
202,
698,
288,
28380,
273,
1348,
18,
16511,
10675,
7072,
8149,
12,
1478,
11272,
289,
1044,
12,
1185,
425,
262,
288,
289,
1082,
202,
22448,
12,
28380,
11272,
1082,
202,
698,
288,
1348,
18,
16511,
10675,
7072,
1638,
12,
28380,
11272,
289,
1044,
12,
1185,
425,
262,
288,
289,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
21224,
12,
3155,
18,
88,
12050,
11272,
1082,
202,
430,
12,
11807,
12,
21,
13,
422,
3155,
18,
88,
16506,
262,
1082,
202,
95,
9506,
202,
21224,
12,
3155,
18,
88,
16506,
11272,
4697,
202,
759,
5515,
17,
9371,
1588,
9506,
202,
921,
4582,
1588,
273,
446,
31,
9506,
202,
698,
95,
4582,
1588,
273,
1348,
18,
16511,
12193,
1588,
8149,
12,
1478,
11272,
289,
1044,
12,
1185,
425,
262,
288,
289,
9506,
202,
22448,
12,
4582,
1588,
11272,
4697,
202,
698,
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,
1542,
6094,
12,
1033,
1478,
262,
1216,
4297,
4101,
202,
95,
202,
202,
6494,
3359,
273,
629,
31,
3196,
202,
430,
12,
11807,
12,
21,
13,
422,
3155,
18,
88,
67,
6530,
262,
202,
202,
95,
1082,
202,
21224,
12,
3155,
18,
88,
67,
6530,
11272,
1875,
202,
6530,
273,
638,
31,
3196,
202,
97,
9506,
202,
21224,
12,
3155,
18,
88,
67,
3202,
11272,
202,
202,
430,
12,
11807,
12,
21,
13,
480,
3155,
18,
88,
12050,
262,
202,
202,
95,
1082,
202,
759,
5515,
17,
24628,
7072,
1082,
202,
921,
28380,
273,
446,
31,
1875,
202,
698,
288,
28380,
273,
1348,
18,
16511,
10675,
7072,
8149,
12,
1478,
11272,
289,
1044,
12,
1185,
2
] |
public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen(); | public quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { quickfix.field.EncodedTextLen value = new quickfix.field.EncodedTextLen(); | public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Email.java/buggy/src/java/src/quickfix/fix44/Email.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
28799,
1528,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10397,
1528,
2891,
28799,
1528,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
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,
-100,
-100,
-100,
-100
] |
URI uri = baseURI.resolve("4.1.1.1/empty-title.xml"); | IRI uri = baseURI.resolve("4.1.1.1/empty-title.xml"); | public static void testSection4111EmptyTitle() throws Exception { //http://feedvalidator.org/testcases/atom/4.1.1.1/empty-title.xml URI uri = baseURI.resolve("4.1.1.1/empty-title.xml"); Document<Feed> doc = get(uri); assertNotNull(doc); assertEquals(doc.getRoot().getEntries().get(0).getTitle(),""); } | 46425 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46425/a7724f57b1ed9f7e36f7b511e06e7dbc231182d4/FeedValidatorTest.java/clean/parser/src/test/java/org/apache/abdera/test/parser/stax/FeedValidatorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1842,
5285,
24,
20227,
1921,
4247,
1435,
1216,
1185,
288,
565,
368,
2505,
2207,
7848,
7357,
18,
3341,
19,
3813,
22186,
19,
7466,
19,
24,
18,
21,
18,
21,
18,
21,
19,
5531,
17,
2649,
18,
2902,
565,
24143,
2003,
273,
1026,
3098,
18,
10828,
2932,
24,
18,
21,
18,
21,
18,
21,
19,
5531,
17,
2649,
18,
2902,
8863,
565,
4319,
32,
8141,
34,
997,
273,
336,
12,
1650,
1769,
565,
25395,
12,
2434,
1769,
565,
1815,
8867,
12,
2434,
18,
588,
2375,
7675,
588,
5400,
7675,
588,
12,
20,
2934,
588,
4247,
9334,
3660,
1769,
225,
289,
282,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1842,
5285,
24,
20227,
1921,
4247,
1435,
1216,
1185,
288,
565,
368,
2505,
2207,
7848,
7357,
18,
3341,
19,
3813,
22186,
19,
7466,
19,
24,
18,
21,
18,
21,
18,
21,
19,
5531,
17,
2649,
18,
2902,
565,
24143,
2003,
273,
1026,
3098,
18,
10828,
2932,
24,
18,
21,
18,
21,
18,
21,
19,
5531,
17,
2649,
18,
2902,
8863,
565,
4319,
32,
8141,
34,
997,
273,
336,
12,
1650,
1769,
565,
25395,
12,
2434,
1769,
565,
1815,
8867,
12,
2434,
18,
588,
2375,
7675,
588,
5400,
7675,
588,
12,
20,
2934,
588,
4247,
9334,
3660,
1769,
225,
289,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
true, true, true, true); InitLibraryFrame(); | true, true, true, true); initLibraryFrame(); | public SceneFrame(File file) { super(file.getName(), true, //resizable true, //closable true, //maximizable true);//iconifiable InitLibraryFrame(); } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/c8c2f2d41919d6587858edc131d215f4eebaeb4b/SceneFrame.java/buggy/JSynthLib/core/SceneFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29347,
3219,
12,
812,
585,
13,
288,
3639,
2240,
12,
768,
18,
17994,
9334,
3639,
638,
16,
368,
455,
6934,
3639,
638,
16,
368,
7550,
87,
429,
3639,
638,
16,
368,
1896,
381,
6934,
3639,
638,
1769,
759,
3950,
8424,
3639,
4378,
9313,
3219,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
29347,
3219,
12,
812,
585,
13,
288,
3639,
2240,
12,
768,
18,
17994,
9334,
3639,
638,
16,
368,
455,
6934,
3639,
638,
16,
368,
7550,
87,
429,
3639,
638,
16,
368,
1896,
381,
6934,
3639,
638,
1769,
759,
3950,
8424,
3639,
4378,
9313,
3219,
5621,
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
] |
.append(" and iu."); | .append(" and "); | public Integer ejbFindUserFromEmail(String emailAddress) throws FinderException, RemoteException { StringBuffer sql = new StringBuffer("select iu.* "); sql.append(" from ").append(this.getTableName()).append(" iu ,"); sql.append(EmailBMPBean.SQL_TABLE_NAME).append(" ie ,"); sql.append(SQL_RELATION_EMAIL).append(" iue "); sql.append(" where ie.").append(EmailBMPBean.SQL_TABLE_NAME).append("_ID = "); sql.append("iue.").append(EmailBMPBean.SQL_TABLE_NAME).append("_ID and "); sql.append("iue.").append(getIDColumnName()).append(" = iu.").append(getIDColumnName()); sql.append(" and ie.").append(EmailBMPBean.SQL_COLUMN_EMAIL).append(" = '"); sql.append(emailAddress).append("'"); // append is not deleted sql .append(" and iu."); appendIsNotDeleted(sql); return (Integer) super.idoFindOnePKBySQL(sql.toString()); } | 52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/bf912f8c226096d6d6bdaae2b7d648826f3cc8c0/UserBMPBean.java/buggy/src/java/com/idega/user/data/UserBMPBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2144,
18024,
3125,
1299,
1265,
4134,
12,
780,
28748,
13,
1216,
19307,
503,
16,
18361,
288,
202,
202,
780,
1892,
1847,
273,
394,
6674,
2932,
4025,
277,
89,
4509,
315,
1769,
202,
202,
4669,
18,
6923,
2932,
628,
315,
2934,
6923,
12,
2211,
18,
588,
7147,
1435,
2934,
6923,
2932,
277,
89,
269,
8863,
202,
202,
4669,
18,
6923,
12,
4134,
38,
4566,
3381,
18,
3997,
67,
7775,
67,
1985,
2934,
6923,
2932,
9228,
269,
8863,
202,
202,
4669,
18,
6923,
12,
3997,
67,
27822,
67,
14686,
2934,
6923,
2932,
277,
344,
315,
1769,
202,
202,
4669,
18,
6923,
2932,
1625,
9228,
1199,
2934,
6923,
12,
4134,
38,
4566,
3381,
18,
3997,
67,
7775,
67,
1985,
2934,
6923,
2932,
67,
734,
273,
315,
1769,
202,
202,
4669,
18,
6923,
2932,
77,
344,
1199,
2934,
6923,
12,
4134,
38,
4566,
3381,
18,
3997,
67,
7775,
67,
1985,
2934,
6923,
2932,
67,
734,
225,
471,
315,
1769,
202,
202,
4669,
18,
6923,
2932,
77,
344,
1199,
2934,
6923,
12,
588,
734,
8516,
1435,
2934,
6923,
2932,
273,
277,
89,
1199,
2934,
6923,
12,
588,
734,
8516,
10663,
202,
202,
4669,
18,
6923,
2932,
471,
9228,
1199,
2934,
6923,
12,
4134,
38,
4566,
3381,
18,
3997,
67,
11009,
67,
14686,
2934,
6923,
2932,
273,
2119,
1769,
202,
202,
4669,
18,
6923,
12,
3652,
1887,
2934,
6923,
2932,
4970,
1769,
565,
368,
714,
353,
486,
4282,
565,
1847,
1377,
263,
6923,
2932,
471,
315,
1769,
565,
714,
28041,
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,
2144,
18024,
3125,
1299,
1265,
4134,
12,
780,
28748,
13,
1216,
19307,
503,
16,
18361,
288,
202,
202,
780,
1892,
1847,
273,
394,
6674,
2932,
4025,
277,
89,
4509,
315,
1769,
202,
202,
4669,
18,
6923,
2932,
628,
315,
2934,
6923,
12,
2211,
18,
588,
7147,
1435,
2934,
6923,
2932,
277,
89,
269,
8863,
202,
202,
4669,
18,
6923,
12,
4134,
38,
4566,
3381,
18,
3997,
67,
7775,
67,
1985,
2934,
6923,
2932,
9228,
269,
8863,
202,
202,
4669,
18,
6923,
12,
3997,
67,
27822,
67,
14686,
2934,
6923,
2932,
277,
344,
315,
1769,
202,
202,
4669,
18,
6923,
2932,
1625,
9228,
1199,
2934,
6923,
12,
4134,
38,
4566,
3381,
18,
3997,
67,
7775,
67,
1985,
2
] |
java.sql.ResultSet rs = connection.ExecSQL("SELECT c.relname,c2.relname," + "t.tgconstrname,ic.relname," + "t.tgdeferrable,t.tginitdeferred," + "t.tgnargs,t.tgargs,p.proname " + "FROM pg_trigger t,pg_class c,pg_class c2," + "pg_class ic,pg_proc p, pg_index i " + "WHERE t.tgrelid=c.oid AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p.oid AND tgisconstraint " + ((primaryTable != null) ? "AND c.relname='" + primaryTable + "' " : "") + ((foreignTable != null) ? "AND c2.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid AND i.indisprimary " + "ORDER BY c.relname,c2.relname" ); | java.sql.ResultSet rs = connection.ExecSQL( "SELECT " + "c.relname as prelname, " + "c2.relname as frelname, " + "t.tgconstrname, " + "a.attnum as keyseq, " + "ic.relname as fkeyname, " + "t.tgdeferrable, " + "t.tginitdeferred, " + "t.tgnargs,t.tgargs, " + "p1.proname as updaterule, " + "p2.proname as deleterule " + "FROM " + "pg_trigger t, " + "pg_trigger t1, " + "pg_class c, " + "pg_class c2, " + "pg_class ic, " + "pg_proc p1, " + "pg_proc p2, " + "pg_index i, " + "pg_attribute a " + "WHERE " + "(t.tgrelid=c.oid " + "AND t.tgisconstraint " + "AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p1.oid " + "and p1.proname like '%%upd') " + "and " + "(t1.tgrelid=c.oid " + "and t1.tgisconstraint " + "and t1.tgconstrrelid=c2.oid " + "AND t1.tgfoid=p2.oid " + "and p2.proname like '%%del') " + ((primaryTable != null) ? "AND c.relname='" + primaryTable + "' " : "") + ((foreignTable != null) ? "AND c2.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid " + "AND ic.oid=a.attrelid " + "AND i.indisprimary " + "ORDER BY " + (primaryTable != null ? "frelname" : "prelname") + ",keyseq"); | private java.sql.ResultSet getImportedExportedKeys(String catalog, String schema, String primaryTable, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, 32); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, 32); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, 32); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, 32); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, 32); f[12] = new Field(connection, "PK_NAME", iVarcharOid, 32); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL("SELECT c.relname,c2.relname," + "t.tgconstrname,ic.relname," + "t.tgdeferrable,t.tginitdeferred," + "t.tgnargs,t.tgargs,p.proname " + "FROM pg_trigger t,pg_class c,pg_class c2," + "pg_class ic,pg_proc p, pg_index i " + "WHERE t.tgrelid=c.oid AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p.oid AND tgisconstraint " + ((primaryTable != null) ? "AND c.relname='" + primaryTable + "' " : "") + ((foreignTable != null) ? "AND c2.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid AND i.indisprimary " + "ORDER BY c.relname,c2.relname" ); Vector tuples = new Vector(); short seq = 0; if (rs.next()) { boolean hasMore; do { byte tuple[][] = new byte[14][0]; for (int k = 0;k < 14;k++) tuple[k] = null; String fKeyName = rs.getString(3); boolean foundRule = false; do { String proname = rs.getString(9); if (proname != null && proname.startsWith("RI_FKey_")) { int col = -1; if (proname.endsWith("_upd")) col = 9; // UPDATE_RULE else if (proname.endsWith("_del")) col = 10; // DELETE_RULE if (col > -1) { String rule = proname.substring(8, proname.length() - 4); int action = importedKeyNoAction; if ("cascade".equals(rule)) action = importedKeyCascade; else if ("setnull".equals(rule)) action = importedKeySetNull; else if ("setdefault".equals(rule)) action = importedKeySetDefault; tuple[col] = Integer.toString(action).getBytes(); if (!foundRule) { tuple[2] = rs.getBytes(1); //PKTABLE_NAME tuple[6] = rs.getBytes(2); //FKTABLE_NAME // Parse the tgargs data StringBuffer fkeyColumns = new StringBuffer(); StringBuffer pkeyColumns = new StringBuffer(); int numColumns = (rs.getInt(7) >> 1) - 2; String s = rs.getString(8); int pos = s.lastIndexOf("\\000"); for (int c = 0;c < numColumns;c++) { if (pos > -1) { int pos2 = s.lastIndexOf("\\000", pos - 1); if (pos2 > -1) { if (pkeyColumns.length() > 0) pkeyColumns.insert(0, ','); pkeyColumns.insert(0, s.substring(pos2 + 4, pos)); //PKCOLUMN_NAME pos = s.lastIndexOf("\\000", pos2 - 1); if (pos > -1) { if (fkeyColumns.length() > 0) fkeyColumns.insert(0, ','); fkeyColumns.insert(0, s.substring(pos + 4, pos2)); //FKCOLUMN_NAME } } } } tuple[3] = pkeyColumns.toString().getBytes(); //PKCOLUMN_NAME tuple[7] = fkeyColumns.toString().getBytes(); //FKCOLUMN_NAME tuple[8] = Integer.toString(seq++).getBytes(); //KEY_SEQ tuple[11] = fKeyName.getBytes(); //FK_NAME tuple[12] = rs.getBytes(4); //PK_NAME // DEFERRABILITY int deferrability = importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(5); boolean initiallyDeferred = rs.getBoolean(6); if (deferrable) { if (initiallyDeferred) deferrability = importedKeyInitiallyDeferred; else deferrability = importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); foundRule = true; } } } } while ((hasMore = rs.next()) && fKeyName.equals(rs.getString(3))); if(foundRule) tuples.addElement(tuple); } while (hasMore); } return new ResultSet(connection, f, tuples, "OK", 1); } | 52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/520695701ca6ef6ad5e5a984a98f89b3ede31e3c/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2252,
18,
4669,
18,
13198,
336,
24934,
31140,
2396,
12,
780,
6222,
16,
514,
1963,
16,
514,
3354,
1388,
16,
514,
5523,
1388,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
3461,
15533,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
26,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
27,
65,
273,
394,
2286,
12,
4071,
16,
315,
13121,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
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,
2252,
18,
4669,
18,
13198,
336,
24934,
31140,
2396,
12,
780,
6222,
16,
514,
1963,
16,
514,
3354,
1388,
16,
514,
5523,
1388,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
3461,
15533,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
8784,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
202,
2
] |
dumpFillerDictFile(); | public boolean compute() throws Exception{ System.out.println("Preparing voice database for labelling"); /* get the directories of sphinxtrain and edinburgh speech tools */ sphinxtraindir = System.getProperty("SPHINXTRAINDIR"); if ( sphinxtraindir == null ) { System.out.println( "Warning: The environment variable SPHINXTRAINDIR was not found on your system." ); System.out.println( " Defaulting SPHINXTRAINDIR to [ /project/mary/anna/sphinx/SphinxTrain/ ]." ); sphinxtraindir = "/project/mary/anna/sphinx/SphinxTrain/"; } estdir = System.getProperty("ESTDIR"); if ( estdir == null ) { System.out.println( "Warning: The environment variable ESTDIR was not found on your system." ); System.out.println( " Defaulting ESTDIR to [ /project/mary/Festival/speech_tools/ ]." ); estdir = "/project/mary/Festival/speech_tools/"; } //get the root dir and the voicename rootDir = new File(dbLayout.rootDirName()); voicename = rootDir.getName(); //make new directories st and lab st = new File(rootDir.getAbsolutePath()+"/st"); // get the output directory of files used by sphinxtrain outputDir = st.getAbsolutePath()+"/etc"; //get the filenames filenames = baseNames.getListAsArray(); /* setup the Sphinx directory */ System.out.println("Setting up sphinx directory ..."); setup(); System.out.println(" ... done."); /* dump the filenames */ System.out.println("Dumping the filenames ..."); dumpFilenames(); System.out.println(" ... done."); /* read in the transcriptions, * build up dictionary and phone set; * dump the transcriptions */ //dictionary Map dictionary = new HashMap(); //set of phones Set phones = new HashSet(); //fill dictionary and phone set, dump transcriptions System.out.println("Building dictionary, phone set and dumping transcriptions ..."); //buildDictAndDumpTrans(dictionary,phones); System.out.println(" ... done."); /* dump phone file */ System.out.println("Dumping phone set ..."); //dumpPhoneFile(phones); System.out.println(" ... done."); /* dump dictionary file */ System.out.println("Dumping dictionary ..."); //dumpDictFile(dictionary); System.out.println(" ... done."); /* dump filler dictionary file */ System.out.println("Dumping filler dictionary ..."); //dumpFillerDictFile(); System.out.println(" ... done."); /* Convert MFCCs for Sphinxtrain */ System.out.println("Converting MFCCs ..."); convertMFCCs(); System.out.println(" ... done."); /* rewrite the config file */ System.out.println("Rewriting config file ..."); rewriteConfigFile(); System.out.println(" ... done."); //exit System.out.println("All done!"); return true; } | 18648 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18648/08cf95f8cfb2a58fcbed670081c984325c57d384/SphinxLabelingPreparator.java/buggy/java/de/dfki/lt/mary/unitselection/voiceimport/SphinxLabelingPreparator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
1071,
8481,
8026,
264,
5014,
812,
5621,
800,
790,
464,
2801,
8026,
264,
5014,
812,
5621,
3671,
1435,
8481,
8026,
264,
5014,
812,
5621,
1216,
8481,
8026,
264,
5014,
812,
5621,
1185,
95,
8481,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
2332,
18,
659,
18,
8222,
2932,
1386,
12583,
8481,
8026,
264,
5014,
812,
5621,
15063,
8481,
8026,
264,
5014,
812,
5621,
2063,
8481,
8026,
264,
5014,
812,
5621,
364,
8481,
8026,
264,
5014,
812,
5621,
1433,
2456,
8863,
8481,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
1748,
8481,
8026,
264,
5014,
812,
5621,
336,
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,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
1071,
8481,
8026,
264,
5014,
812,
5621,
800,
790,
464,
2801,
8026,
264,
5014,
812,
5621,
3671,
1435,
8481,
8026,
264,
5014,
812,
5621,
1216,
8481,
8026,
264,
5014,
812,
5621,
1185,
95,
8481,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
264,
5014,
812,
5621,
4657,
8026,
2
] | |
WorkbenchMessages.getString("CreateLinkedResourceGroup.linkTargetNotFile")); | NewWizardMessages.getString("CreateLinkedResourceGroup.linkTargetNotFile")); | private IStatus validateFileType(File linkTargetFile) { if (type == IResource.FILE && linkTargetFile.isFile() == false) { return createStatus( IStatus.ERROR, WorkbenchMessages.getString("CreateLinkedResourceGroup.linkTargetNotFile")); //$NON-NLS-1$ } else if (type == IResource.FOLDER && linkTargetFile.isDirectory() == false) { return createStatus( IStatus.ERROR, WorkbenchMessages.getString("CreateLinkedResourceGroup.linkTargetNotFolder")); //$NON-NLS-1$ } return createStatus(IStatus.OK, ""); //$NON-NLS-1$ } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/727981016342909a60563ab3a2643b578ab380e3/LinkToFileGroup.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/dialogfields/LinkToFileGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
1954,
28941,
12,
812,
1692,
2326,
812,
13,
288,
202,
202,
430,
261,
723,
422,
467,
1420,
18,
3776,
597,
1692,
2326,
812,
18,
291,
812,
1435,
422,
629,
13,
288,
1082,
202,
2463,
752,
1482,
12,
9506,
202,
45,
1482,
18,
3589,
16,
9506,
202,
2421,
22144,
5058,
18,
588,
780,
2932,
1684,
13174,
18860,
18,
1232,
2326,
1248,
812,
7923,
1769,
202,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
469,
309,
261,
723,
422,
467,
1420,
18,
17357,
597,
1692,
2326,
812,
18,
291,
2853,
1435,
422,
629,
13,
288,
1082,
202,
2463,
752,
1482,
12,
9506,
202,
45,
1482,
18,
3589,
16,
9506,
202,
2421,
22144,
5058,
18,
588,
780,
2932,
1684,
13174,
18860,
18,
1232,
2326,
1248,
3899,
7923,
1769,
202,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
2463,
752,
1482,
12,
45,
1482,
18,
3141,
16,
1408,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
1954,
28941,
12,
812,
1692,
2326,
812,
13,
288,
202,
202,
430,
261,
723,
422,
467,
1420,
18,
3776,
597,
1692,
2326,
812,
18,
291,
812,
1435,
422,
629,
13,
288,
1082,
202,
2463,
752,
1482,
12,
9506,
202,
45,
1482,
18,
3589,
16,
9506,
202,
2421,
22144,
5058,
18,
588,
780,
2932,
1684,
13174,
18860,
18,
1232,
2326,
1248,
812,
7923,
1769,
202,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
469,
309,
261,
723,
422,
467,
1420,
18,
17357,
597,
1692,
2326,
812,
18,
291,
2853,
1435,
422,
629,
13,
288,
1082,
202,
2463,
752,
1482,
12,
9506,
202,
45,
1482,
18,
3589,
16,
9506,
202,
2421,
22144,
5058,
2
] |
try { Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.openscience.cdk.test.qsar.model.QSARRModelTests"); suite.addTest(new TestSuite(testClass)); } catch (Exception exception) { System.out.println("Could not load QSAR R based model tests:" + exception.getMessage()); } | suite.addTest(QSARRModelTests.suite()); | public static Test suite( ) { TestSuite suite= new TestSuite("All CDK Tests"); // Package Test Suites suite.addTest(ConfigTests.suite()); suite.addTest(DataClassesTests.suite()); suite.addTest(CoreClassesTests.suite()); suite.addTest(IOTests.suite()); suite.addTest(ToolsTests.suite()); // Individual Tests // from cdk.test.applications suite.addTest(APIVersionTesterTest.suite()); // from cdk.test.aromaticity suite.addTest(HueckelAromaticityDetectorTest.suite()); // from cdk.test.atomtype suite.addTest(HybridizationStateATMatcherTest.suite()); // from cdk.test.charges suite.addTest(GasteigerMarsiliPartialChargesTest.suite()); // from cdk.test.charges suite.addTest(MMFF94PartialChargesTest.suite()); // from cdk.test.charges suite.addTest(InductivePartialChargesTest.suite()); // from cdk.test.modeling suite.addTest(ModelBuilder3dTest.suite()); // from cdk.test.fingerprint suite.addTest(FingerprinterTest.suite()); // from cdk.test.geometry suite.addTest(GeometryToolsTest.suite()); suite.addTest(CrystalGeometryToolsTest.suite()); suite.addTest(RDFCalculatorTest.suite()); // from cdk.test.geometry.align suite.addTest(KabschAlignmentTest.suite()); // from cdk.test.graph suite.addTest(GraphTests.suite()); // from cdk.test.index suite.addTest(CASNumberTest.suite()); // from cdk.test.isomorphism suite.addTest(IsomorphismTests.suite()); // from cdk.test.layout suite.addTest(StructureDiagramGeneratorTest.suite()); suite.addTest(HydrogenPlacerTest.suite()); suite.addTest(OverlapResolverTest.suite()); suite.addTest(TemplateHandlerTest.suite()); // from cdk.test.math suite.addTest(MathToolsTest.suite()); // from cdk.test.qsar suite.addTest(QSARDescriptorTests.suite()); // from cdk.test.reaction suite.addTest(ReactionBalancerTest.suite()); // from cdk.test.ringsearch suite.addTest(AllRingsFinderTest.suite()); suite.addTest(RingSearchTest.suite()); // from cdk.test.smiles suite.addTest(SmilesGeneratorTest.suite()); suite.addTest(SmilesParserTest.suite()); // from cdk.test.structgen suite.addTest(RandomStructureGeneratorTest.suite()); // from cdk.test.modeling.forcefield suite.addTest(ForceFieldTests.suite()); // Below are the tests that are not always possible to execute, because // the class might not be compiled (depeding on Ant and Java VM versions). // from cdk.test.iupac try { Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.openscience.cdk.test.iupac.ParserTest"); suite.addTest(new TestSuite(testClass)); } catch (Exception exception) { // ok, do without. Probably compiled with Ant < 1.6 System.out.println("Could not load the IUPAC Parser test: " + exception.getMessage()); } // from cdk.test.qsar.model try { Class testClass = ClassLoader.getSystemClassLoader().loadClass("org.openscience.cdk.test.qsar.model.QSARRModelTests"); suite.addTest(new TestSuite(testClass)); } catch (Exception exception) { System.out.println("Could not load QSAR R based model tests:" + exception.getMessage()); } return suite; } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/d0898c55e3f751c3edeb7ed1426d69c69a748bdb/CDKTests.java/buggy/src/org/openscience/cdk/test/CDKTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
12,
262,
565,
288,
3639,
7766,
13587,
11371,
33,
394,
7766,
13587,
2932,
1595,
15257,
7766,
87,
8863,
7734,
368,
7508,
7766,
348,
89,
2997,
3639,
11371,
18,
1289,
4709,
12,
809,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
751,
4818,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
4670,
4818,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
45,
1974,
25563,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
10348,
14650,
18,
30676,
10663,
7734,
368,
24147,
7766,
87,
3639,
368,
628,
276,
2883,
18,
3813,
18,
3685,
87,
3639,
11371,
18,
1289,
4709,
12,
2557,
1444,
56,
7654,
4709,
18,
30676,
10663,
3639,
368,
628,
276,
2883,
18,
3813,
18,
297,
4941,
560,
3639,
11371,
18,
1289,
4709,
12,
44,
344,
363,
292,
37,
27468,
560,
12594,
4709,
18,
30676,
10663,
202,
759,
628,
276,
2883,
18,
3813,
18,
7466,
723,
3639,
11371,
18,
1289,
4709,
12,
17507,
14400,
1588,
1119,
789,
6286,
4709,
18,
30676,
10663,
3639,
368,
628,
276,
2883,
18,
3813,
18,
3001,
2852,
3639,
11371,
18,
1289,
4709,
12,
43,
14725,
360,
264,
49,
5913,
15700,
9447,
2156,
2852,
4709,
18,
30676,
10663,
202,
759,
628,
276,
2883,
18,
3813,
18,
3001,
2852,
3639,
11371,
18,
1289,
4709,
12,
8206,
2246,
11290,
9447,
2156,
2852,
4709,
18,
30676,
10663,
202,
759,
628,
276,
2883,
18,
3813,
18,
3001,
2852,
3639,
11371,
18,
1289,
4709,
12,
382,
1828,
688,
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,
7766,
11371,
12,
262,
565,
288,
3639,
7766,
13587,
11371,
33,
394,
7766,
13587,
2932,
1595,
15257,
7766,
87,
8863,
7734,
368,
7508,
7766,
348,
89,
2997,
3639,
11371,
18,
1289,
4709,
12,
809,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
751,
4818,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
4670,
4818,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
45,
1974,
25563,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
10348,
14650,
18,
30676,
10663,
7734,
368,
24147,
7766,
87,
3639,
368,
628,
276,
2883,
18,
3813,
18,
3685,
87,
3639,
11371,
18,
1289,
4709,
12,
2557,
1444,
56,
7654,
4709,
18,
30676,
10663,
3639,
368,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.