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 |
|---|---|---|---|---|---|---|
MockMatchBuilder builder1 = new MockMatchBuilder(); MockMatchBuilder builder2 = new MockMatchBuilder(); | MockMatchBuilder builder1 = new MockMatchBuilder(); MockMatchBuilder builder2 = new MockMatchBuilder(); | public void testDuplicateMethodNameOverridesPreviousMapping() { MockMatchBuilder builder1 = new MockMatchBuilder(); MockMatchBuilder builder2 = new MockMatchBuilder(); mock.registerMethodName(BUILDER_ID, builder1); mock.registerMethodName(BUILDER_ID, builder2); assertSame("builder2", builder2, mock.lookupID(BUILDER_ID)); } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/MockTest.java/clean/jmock/core/src/test/jmock/MockTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11826,
11666,
13084,
8351,
3233,
1435,
288,
202,
202,
9865,
2060,
1263,
2089,
21,
273,
394,
7867,
2060,
1263,
5621,
202,
202,
9865,
2060,
1263,
2089,
22,
273,
394,
7867,
2060,
1263,
5621,
202,
202,
22851,
18,
4861,
11666,
12,
3000,
2627,
4179,
67,
734,
16,
2089,
21,
1769,
202,
202,
22851,
18,
4861,
11666,
12,
3000,
2627,
4179,
67,
734,
16,
2089,
22,
1769,
202,
202,
11231,
8650,
2932,
9574,
22,
3113,
2089,
22,
16,
5416,
18,
8664,
734,
12,
3000,
2627,
4179,
67,
734,
10019,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11826,
11666,
13084,
8351,
3233,
1435,
288,
202,
202,
9865,
2060,
1263,
2089,
21,
273,
394,
7867,
2060,
1263,
5621,
202,
202,
9865,
2060,
1263,
2089,
22,
273,
394,
7867,
2060,
1263,
5621,
202,
202,
22851,
18,
4861,
11666,
12,
3000,
2627,
4179,
67,
734,
16,
2089,
21,
1769,
202,
202,
22851,
18,
4861,
11666,
12,
3000,
2627,
4179,
67,
734,
16,
2089,
22,
1769,
202,
202,
11231,
8650,
2932,
9574,
22,
3113,
2089,
22,
16,
5416,
18,
8664,
734,
12,
3000,
2627,
4179,
67,
734,
10019,
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
] |
public LWJGLPropertiesDialog(PropertiesIO source, URL imageFile) { if (null == source) throw new JmeException("PropertyIO source cannot be null"); this.source = source; this.imageFile = imageFile; try { this.modes = Display.getAvailableDisplayModes(); } catch (LWJGLException e) { e.printStackTrace(); } Arrays.sort(modes, new DisplayModeSorter()); createUI(); | public LWJGLPropertiesDialog(PropertiesIO source, String imageFile) { this(source, getURL(imageFile)); | public LWJGLPropertiesDialog(PropertiesIO source, URL imageFile) { if (null == source) throw new JmeException("PropertyIO source cannot be null"); this.source = source; this.imageFile = imageFile; try { this.modes = Display.getAvailableDisplayModes(); } catch (LWJGLException e) { e.printStackTrace(); } Arrays.sort(modes, new DisplayModeSorter()); createUI(); } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/522ff72ab4b31ed8dcda10ce5032f38da0fed0e7/LWJGLPropertiesDialog.java/buggy/src/com/jme/system/lwjgl/LWJGLPropertiesDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
511,
59,
46,
11261,
2297,
6353,
12,
2297,
4294,
1084,
16,
1976,
31146,
13,
288,
3639,
309,
261,
2011,
422,
1084,
13,
5411,
604,
394,
804,
3501,
503,
2932,
1396,
4294,
1084,
2780,
506,
446,
8863,
3639,
333,
18,
3168,
273,
1084,
31,
3639,
333,
18,
2730,
812,
273,
31146,
31,
3639,
775,
288,
5411,
333,
18,
19282,
273,
9311,
18,
588,
5268,
4236,
18868,
5621,
3639,
289,
1044,
261,
48,
59,
46,
11261,
503,
425,
13,
288,
5411,
425,
18,
1188,
6332,
5621,
3639,
289,
3639,
5647,
18,
3804,
12,
19282,
16,
394,
9311,
2309,
24952,
10663,
3639,
752,
5370,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
511,
59,
46,
11261,
2297,
6353,
12,
2297,
4294,
1084,
16,
1976,
31146,
13,
288,
3639,
309,
261,
2011,
422,
1084,
13,
5411,
604,
394,
804,
3501,
503,
2932,
1396,
4294,
1084,
2780,
506,
446,
8863,
3639,
333,
18,
3168,
273,
1084,
31,
3639,
333,
18,
2730,
812,
273,
31146,
31,
3639,
775,
288,
5411,
333,
18,
19282,
273,
9311,
18,
588,
5268,
4236,
18868,
5621,
3639,
289,
1044,
261,
48,
59,
46,
11261,
503,
425,
13,
288,
5411,
425,
18,
1188,
6332,
5621,
3639,
289,
3639,
5647,
18,
3804,
12,
19282,
16,
394,
9311,
2309,
24952,
10663,
3639,
752,
5370,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new OtherLockCountAnalysis(methodGen, vnaDataflow, dfs); | MethodGen methodGen = classContext.getMethodGen(method); CFG cfg = classContext.getCFG(method); DepthFirstSearch dfs = classContext.getDepthFirstSearch(method); ValueNumberDataflow vnaDataflow = classContext.getValueNumberDataflow(method); LockCountAnalysis analysis = new OtherLockCountAnalysis(methodGen, vnaDataflow, dfs); Dataflow<LockCount, LockCountAnalysis> dataflow = new Dataflow<LockCount, LockCountAnalysis>(cfg, analysis); dataflow.execute(); return dataflow; | public static void main(String[] argv) { try { if (argv.length != 1) { System.out.println("edu.umd.cs.daveho.ba.OtherLockCountAnalysis <filename>"); System.exit(1); } DataflowTestDriver<LockCount, LockCountAnalysis> driver = new DataflowTestDriver<LockCount, LockCountAnalysis>() { public LockCountAnalysis createAnalysis(MethodGen methodGen, CFG cfg) throws DataflowAnalysisException { DepthFirstSearch dfs = new DepthFirstSearch(cfg).search(); ValueNumberDataflow vnaDataflow = new ValueNumberDataflow(cfg, new ValueNumberAnalysis(methodGen, dfs)); vnaDataflow.execute(); return new OtherLockCountAnalysis(methodGen, vnaDataflow, dfs); } }; driver.execute(argv[0]); } catch (Exception e) { e.printStackTrace(); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/0cb8b5532a501fb30117ec4a7118ae06a10c5f62/OtherLockCountAnalysis.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/OtherLockCountAnalysis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
19485,
18,
2469,
480,
404,
13,
288,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
28049,
18,
379,
72,
18,
2143,
18,
72,
836,
15008,
18,
12124,
18,
8290,
2531,
1380,
9418,
411,
3459,
2984,
1769,
9506,
202,
3163,
18,
8593,
12,
21,
1769,
1082,
202,
97,
1082,
202,
751,
2426,
4709,
4668,
32,
2531,
1380,
16,
3488,
1380,
9418,
34,
3419,
273,
394,
1910,
2426,
4709,
4668,
32,
2531,
1380,
16,
3488,
1380,
9418,
34,
1435,
288,
9506,
202,
482,
3488,
1380,
9418,
752,
9418,
12,
1305,
7642,
707,
7642,
16,
7577,
2776,
13,
1216,
1910,
2426,
9418,
503,
288,
6862,
202,
6148,
3759,
2979,
13868,
273,
394,
25210,
3759,
2979,
12,
7066,
2934,
3072,
5621,
6862,
202,
620,
1854,
751,
2426,
331,
6582,
751,
2426,
273,
394,
1445,
1854,
751,
2426,
12,
7066,
16,
394,
1445,
1854,
9418,
12,
2039,
7642,
16,
13868,
10019,
6862,
202,
90,
6582,
751,
2426,
18,
8837,
5621,
6862,
202,
2463,
394,
4673,
2531,
1380,
9418,
12,
2039,
7642,
16,
331,
6582,
751,
2426,
16,
13868,
1769,
9506,
202,
97,
1082,
202,
20451,
1082,
202,
7407,
18,
8837,
12,
19485,
63,
20,
19226,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
73,
18,
1188,
6332,
5621,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2774,
12,
780,
8526,
5261,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
19485,
18,
2469,
480,
404,
13,
288,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
28049,
18,
379,
72,
18,
2143,
18,
72,
836,
15008,
18,
12124,
18,
8290,
2531,
1380,
9418,
411,
3459,
2984,
1769,
9506,
202,
3163,
18,
8593,
12,
21,
1769,
1082,
202,
97,
1082,
202,
751,
2426,
4709,
4668,
32,
2531,
1380,
16,
3488,
1380,
9418,
34,
3419,
273,
394,
1910,
2426,
4709,
4668,
32,
2531,
1380,
16,
3488,
1380,
9418,
34,
1435,
288,
9506,
202,
482,
3488,
1380,
9418,
752,
9418,
12,
1305,
7642,
707,
7642,
16,
7577,
2776,
13,
1216,
1910,
2426,
9418,
2
] |
public void endElement(String name) | public void endElement(String name) | public void endElement(String name) throws org.xml.sax.SAXException { //-- Do delagation if necessary if ((unmarshaller != null) && (depth > 0)) { unmarshaller.endElement(name); --depth; return; } //-- check for name mismatches if ((unmarshaller != null) && (charUnmarshaller != unmarshaller)) { if (!name.equals(unmarshaller.elementName())) { String err = "missing end element for "; err += unmarshaller.elementName(); throw new SAXException(err); } } //-- call finish for any necessary cleanup unmarshaller.finish(); if (SchemaNames.ANNOTATION.equals(name)) { Annotation ann = (Annotation)unmarshaller.getObject(); _element.addAnnotation(ann); } else if (SchemaNames.COMPLEX_TYPE.equals(name)) { XMLType xmlType = ((ComplexTypeUnmarshaller)unmarshaller).getComplexType(); _element.setType(xmlType); } else if (SchemaNames.SIMPLE_TYPE.equals(name)) { XMLType xmlType = ((SimpleTypeUnmarshaller)unmarshaller).getSimpleType(); _element.setType(xmlType); } unmarshaller = null; } //-- endElement | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/f77be9c7ad750520fffe9b9e71c99998033c7a9f/ElementUnmarshaller.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/xml/schema/reader/ElementUnmarshaller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14840,
12,
780,
508,
13,
540,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
565,
288,
7734,
368,
413,
2256,
1464,
346,
367,
309,
4573,
3639,
309,
14015,
318,
27296,
480,
446,
13,
597,
261,
5979,
405,
374,
3719,
288,
5411,
17606,
264,
18,
409,
1046,
12,
529,
1769,
5411,
1493,
5979,
31,
5411,
327,
31,
3639,
289,
7734,
368,
413,
866,
364,
508,
7524,
8436,
3639,
309,
14015,
318,
27296,
480,
446,
13,
597,
261,
3001,
984,
27296,
480,
17606,
264,
3719,
288,
5411,
309,
16051,
529,
18,
14963,
12,
318,
27296,
18,
2956,
461,
1435,
3719,
288,
7734,
514,
393,
273,
315,
7337,
679,
930,
364,
13636,
7734,
393,
1011,
17606,
264,
18,
2956,
461,
5621,
7734,
604,
394,
14366,
12,
370,
1769,
5411,
289,
3639,
289,
7734,
368,
413,
745,
4076,
364,
1281,
4573,
6686,
3639,
17606,
264,
18,
13749,
5621,
7734,
309,
261,
3078,
1557,
18,
24922,
18,
14963,
12,
529,
3719,
288,
5411,
6090,
8226,
273,
261,
3257,
13,
318,
27296,
18,
588,
921,
5621,
5411,
389,
2956,
18,
1289,
3257,
12,
1072,
1769,
3639,
289,
3639,
469,
309,
261,
3078,
1557,
18,
10057,
21130,
67,
2399,
18,
14963,
12,
529,
3719,
288,
13491,
3167,
559,
2025,
559,
1171,
273,
14015,
12795,
559,
984,
27296,
13,
318,
27296,
2934,
588,
12795,
559,
5621,
18701,
389,
2956,
18,
542,
559,
12,
2902,
559,
1769,
10792,
289,
540,
469,
309,
261,
3078,
1557,
18,
31669,
900,
67,
2399,
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,
14840,
12,
780,
508,
13,
540,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
565,
288,
7734,
368,
413,
2256,
1464,
346,
367,
309,
4573,
3639,
309,
14015,
318,
27296,
480,
446,
13,
597,
261,
5979,
405,
374,
3719,
288,
5411,
17606,
264,
18,
409,
1046,
12,
529,
1769,
5411,
1493,
5979,
31,
5411,
327,
31,
3639,
289,
7734,
368,
413,
866,
364,
508,
7524,
8436,
3639,
309,
14015,
318,
27296,
480,
446,
13,
597,
261,
3001,
984,
27296,
480,
17606,
264,
3719,
288,
5411,
309,
16051,
529,
18,
14963,
12,
318,
27296,
18,
2956,
461,
1435,
3719,
288,
7734,
514,
393,
273,
315,
7337,
679,
930,
364,
13636,
7734,
393,
1011,
17606,
2
] |
if (! (pair.car instanceof Symbol)) | if (! (pair.car instanceof String)) | public Expression rewrite (Object obj, Translator tr) { int obj_length = List.list_length (obj); if (obj_length != 2) return tr.syntaxError ("invalid define-syntax syntax"); Pair pair = (Pair) obj; if (! (pair.car instanceof Symbol)) return tr.syntaxError ("define-syntax: keyword is not a symbol"); Symbol keyword = (Symbol) pair.car; pair = (Pair) pair.cdr; Object transformer_spec = pair.car; obj_length = List.list_length (transformer_spec); if (obj_length < 2) return tr.syntaxError ("define-syntax: transformer spec missing or too short"); pair = (Pair) transformer_spec; if (pair.car != SyntaxRules.syntaxRulesSymbol) return tr.syntaxError ("define-syntax: no syntax-rules"); pair = (Pair) pair.cdr; Object literals_list = pair.car; int num_literals = List.length (literals_list); if (num_literals < 0) return tr.syntaxError ("define-syntax: invalid literals list"); Symbol[] literal_identifiers = new Symbol [num_literals + 1]; literal_identifiers[0] = keyword; for (int i = 0; i < num_literals; i++) { Pair lit_pair = (Pair) literals_list; if (! (lit_pair.car instanceof Symbol)) return tr.syntaxError ("define-syntax: non-symbol in literals list"); literal_identifiers[i+1] = (Symbol) lit_pair.car; literals_list = lit_pair.cdr; } SyntaxRules rules = new SyntaxRules (literal_identifiers, pair.cdr, tr); // Add rules to translation environment. tr.addGlobal(keyword, rules); // Add rules to execution environment. SetExp result = new SetExp (keyword, new QuoteExp (rules)); result.setDefining (true); return result; } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/c80f2d32e77aa3a0fd0f9a4942f076d39f20d415/define_syntax.java/clean/kawa/standard/define_syntax.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5371,
10738,
261,
921,
1081,
16,
18669,
433,
13,
225,
288,
565,
509,
1081,
67,
2469,
273,
987,
18,
1098,
67,
2469,
261,
2603,
1769,
565,
309,
261,
2603,
67,
2469,
480,
576,
13,
1377,
327,
433,
18,
14308,
668,
7566,
5387,
4426,
17,
14308,
6279,
8863,
565,
8599,
3082,
273,
261,
4154,
13,
1081,
31,
565,
309,
16051,
261,
6017,
18,
9815,
1276,
514,
3719,
1377,
327,
433,
18,
14308,
668,
7566,
11255,
17,
14308,
30,
225,
4932,
353,
486,
279,
3273,
8863,
565,
8565,
4932,
273,
261,
5335,
13,
3082,
18,
9815,
31,
565,
3082,
273,
261,
4154,
13,
3082,
18,
71,
3069,
31,
565,
1033,
8360,
67,
2793,
273,
3082,
18,
9815,
31,
565,
1081,
67,
2469,
273,
987,
18,
1098,
67,
2469,
261,
21523,
67,
2793,
1769,
565,
309,
261,
2603,
67,
2469,
411,
576,
13,
1377,
327,
433,
18,
14308,
668,
7566,
11255,
17,
14308,
30,
225,
8360,
857,
3315,
578,
4885,
3025,
8863,
565,
3082,
273,
261,
4154,
13,
8360,
67,
2793,
31,
565,
309,
261,
6017,
18,
9815,
480,
11517,
4478,
18,
14308,
4478,
5335,
13,
1377,
327,
433,
18,
14308,
668,
7566,
11255,
17,
14308,
30,
225,
1158,
6279,
17,
7482,
8863,
565,
3082,
273,
261,
4154,
13,
3082,
18,
71,
3069,
31,
565,
1033,
18228,
67,
1098,
273,
3082,
18,
9815,
31,
565,
509,
818,
67,
80,
11235,
273,
987,
18,
2469,
261,
80,
11235,
67,
1098,
1769,
565,
309,
261,
2107,
67,
80,
11235,
411,
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,
5371,
10738,
261,
921,
1081,
16,
18669,
433,
13,
225,
288,
565,
509,
1081,
67,
2469,
273,
987,
18,
1098,
67,
2469,
261,
2603,
1769,
565,
309,
261,
2603,
67,
2469,
480,
576,
13,
1377,
327,
433,
18,
14308,
668,
7566,
5387,
4426,
17,
14308,
6279,
8863,
565,
8599,
3082,
273,
261,
4154,
13,
1081,
31,
565,
309,
16051,
261,
6017,
18,
9815,
1276,
514,
3719,
1377,
327,
433,
18,
14308,
668,
7566,
11255,
17,
14308,
30,
225,
4932,
353,
486,
279,
3273,
8863,
565,
8565,
4932,
273,
261,
5335,
13,
3082,
18,
9815,
31,
565,
3082,
273,
261,
4154,
13,
3082,
18,
71,
3069,
31,
565,
1033,
8360,
67,
2793,
273,
3082,
18,
9815,
31,
565,
2
] |
debug("File too small by: " + (TestFile.length() - savedFile.length()) ); | LOG.debug("File too small by: " + (TestFile.length() - savedFile.length()) ); | private static boolean isComplete() { if ( savedFile.length() < TestFile.length() ) { debug("File too small by: " + (TestFile.length() - savedFile.length()) ); return false; } else if ( savedFile.length() > TestFile.length() ) { debug("File too large by: " + (savedFile.length() - TestFile.length()) ); return false; } FileInputStream stream=null; try { stream = new FileInputStream(savedFile); for (int i=0 ; ; i++) { int c=stream.read(); if (c==-1)//eof break; if ((byte)c!=TestFile.getByte(i)) { debug("Bad byte at "+i+"\n"); return false; } } } catch (IOException ioe) { //ioe.printStackTrace(); return false; } finally { if (stream!=null) { try { stream.close(); } catch (IOException ignored) { } } } return true; } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/db8ed6265339c2c6d071408d0ff15b2e0b579cad/DownloadTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/downloader/DownloadTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
6322,
1435,
288,
3639,
309,
261,
5198,
812,
18,
2469,
1435,
411,
7766,
812,
18,
2469,
1435,
262,
288,
5411,
2018,
18,
4148,
2932,
812,
4885,
5264,
635,
30,
315,
397,
261,
4709,
812,
18,
2469,
1435,
300,
5198,
812,
18,
2469,
10756,
11272,
5411,
327,
629,
31,
3639,
289,
469,
309,
261,
5198,
812,
18,
2469,
1435,
405,
7766,
812,
18,
2469,
1435,
262,
288,
5411,
1198,
2932,
812,
4885,
7876,
635,
30,
315,
397,
261,
14077,
812,
18,
2469,
1435,
300,
7766,
812,
18,
2469,
10756,
11272,
5411,
327,
629,
31,
3639,
289,
3639,
11907,
1407,
33,
2011,
31,
3639,
775,
288,
5411,
1407,
273,
394,
11907,
12,
14077,
812,
1769,
5411,
364,
261,
474,
277,
33,
20,
274,
274,
277,
27245,
288,
7734,
509,
276,
33,
3256,
18,
896,
5621,
7734,
309,
261,
71,
631,
17,
21,
13,
759,
9339,
10792,
898,
31,
7734,
309,
14015,
7229,
13,
71,
5,
33,
4709,
812,
18,
588,
3216,
12,
77,
3719,
288,
10792,
1198,
2932,
6434,
1160,
622,
13773,
77,
9078,
64,
82,
8863,
10792,
327,
629,
31,
7734,
289,
5411,
289,
3639,
289,
1044,
261,
14106,
10847,
13,
288,
5411,
368,
1594,
73,
18,
1188,
6332,
5621,
5411,
327,
629,
31,
3639,
289,
3095,
288,
5411,
309,
261,
3256,
5,
33,
2011,
13,
288,
7734,
775,
288,
10792,
1407,
18,
4412,
5621,
7734,
289,
1044,
261,
14106,
5455,
13,
288,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
638,
31,
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,
760,
1250,
353,
6322,
1435,
288,
3639,
309,
261,
5198,
812,
18,
2469,
1435,
411,
7766,
812,
18,
2469,
1435,
262,
288,
5411,
2018,
18,
4148,
2932,
812,
4885,
5264,
635,
30,
315,
397,
261,
4709,
812,
18,
2469,
1435,
300,
5198,
812,
18,
2469,
10756,
11272,
5411,
327,
629,
31,
3639,
289,
469,
309,
261,
5198,
812,
18,
2469,
1435,
405,
7766,
812,
18,
2469,
1435,
262,
288,
5411,
1198,
2932,
812,
4885,
7876,
635,
30,
315,
397,
261,
14077,
812,
18,
2469,
1435,
300,
7766,
812,
18,
2469,
10756,
11272,
5411,
327,
629,
31,
3639,
289,
3639,
11907,
1407,
33,
2011,
31,
3639,
775,
288,
5411,
1407,
273,
394,
11907,
12,
14077,
812,
1769,
5411,
2
] |
return new Object[][] { {"Class", name}, {"ID", activeObject.getID()} }; | return new Object[][] { { "Class", name }, { "ID", activeObject.getID() } }; | protected Object[][] getDataObjectInfo() { return new Object[][] { {"Class", name}, {"ID", activeObject.getID()} }; } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/a2cd9b6d05be6ee9dc798dfafe5692ec64040fb8/ActiveObjectPanel.java/buggy/src/org/objectweb/proactive/ic2d/gui/data/ActiveObjectPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1033,
63,
6362,
65,
4303,
921,
966,
1435,
288,
565,
327,
394,
1033,
63,
6362,
65,
288,
3639,
12528,
797,
3113,
508,
5779,
3639,
12528,
734,
3113,
2695,
921,
18,
588,
734,
17767,
1377,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
63,
6362,
65,
4303,
921,
966,
1435,
288,
565,
327,
394,
1033,
63,
6362,
65,
288,
3639,
12528,
797,
3113,
508,
5779,
3639,
12528,
734,
3113,
2695,
921,
18,
588,
734,
17767,
1377,
289,
31,
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
] |
return new ForEachNode(parse(children), parse(next), select, sortKeys); | ForEachNode ret = new ForEachNode(select, sortKeys); ret.children = parse(children); return ret; | final TemplateNode parseForEach(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); List sortKeys = parseSortKeys(children); Expr select = (Expr) xpath.compile(s); return new ForEachNode(parse(children), parse(next), select, sortKeys); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
5035,
907,
1109,
1290,
3442,
12,
907,
756,
16,
2029,
2325,
16,
2029,
1024,
13,
565,
1216,
11519,
10737,
16,
10172,
2300,
503,
225,
288,
565,
9796,
907,
863,
3422,
273,
756,
18,
588,
2498,
5621,
565,
514,
272,
273,
19881,
1499,
12,
7039,
16,
315,
4025,
3113,
756,
1769,
565,
987,
1524,
2396,
273,
1109,
4416,
2396,
12,
5906,
1769,
565,
8074,
2027,
273,
261,
4742,
13,
6748,
18,
11100,
12,
87,
1769,
565,
2457,
3442,
907,
325,
273,
394,
2457,
3442,
907,
12,
4025,
16,
1524,
2396,
1769,
325,
18,
5906,
273,
1109,
12,
5906,
1769,
327,
325,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
5035,
907,
1109,
1290,
3442,
12,
907,
756,
16,
2029,
2325,
16,
2029,
1024,
13,
565,
1216,
11519,
10737,
16,
10172,
2300,
503,
225,
288,
565,
9796,
907,
863,
3422,
273,
756,
18,
588,
2498,
5621,
565,
514,
272,
273,
19881,
1499,
12,
7039,
16,
315,
4025,
3113,
756,
1769,
565,
987,
1524,
2396,
273,
1109,
4416,
2396,
12,
5906,
1769,
565,
8074,
2027,
273,
261,
4742,
13,
6748,
18,
11100,
12,
87,
1769,
565,
2457,
3442,
907,
325,
273,
394,
2457,
3442,
907,
12,
4025,
16,
1524,
2396,
1769,
325,
18,
5906,
273,
1109,
12,
5906,
1769,
327,
325,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AST __t771 = _t; | AST __t776 = _t; | public final void for_record_spec(AST _t, int contextQualifier ) throws RecognitionException { AST for_record_spec_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST rp1 = null; AST rp2 = null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CURRENT: case EACH: case FIRST: case LAST: case NEXT: case PREV: { findwhich(_t); _t = _retTree; break; } case RECORD_NAME: { break; } default: { throw new NoViableAltException(_t); } } } AST __t768 = _t; rp1 = _t==ASTNULL ? null :(AST)_t; match(_t,RECORD_NAME); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.recordNameNode(rp1, contextQualifier); } recordphrase(_t); _t = _retTree; _t = __t768; _t = _t.getNextSibling(); { _loop772: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp214_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CURRENT: case EACH: case FIRST: case LAST: case NEXT: case PREV: { findwhich(_t); _t = _retTree; break; } case RECORD_NAME: { break; } default: { throw new NoViableAltException(_t); } } } AST __t771 = _t; rp2 = _t==ASTNULL ? null :(AST)_t; match(_t,RECORD_NAME); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.recordNameNode(rp2, contextQualifier); } recordphrase(_t); _t = _retTree; _t = __t771; _t = _t.getNextSibling(); } else { break _loop772; } } while (true); } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
364,
67,
3366,
67,
2793,
12,
9053,
389,
88,
16,
202,
202,
474,
819,
16185,
202,
13,
1216,
9539,
288,
9506,
202,
9053,
364,
67,
3366,
67,
2793,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
8715,
21,
273,
446,
31,
202,
202,
9053,
8715,
22,
273,
446,
31,
9506,
202,
95,
202,
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,
18484,
30,
202,
202,
3593,
512,
18133,
30,
202,
202,
3593,
21786,
30,
202,
202,
3593,
15612,
30,
202,
202,
3593,
19252,
30,
202,
202,
3593,
7071,
58,
30,
202,
202,
95,
1082,
202,
4720,
12784,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
24346,
67,
1985,
30,
202,
202,
95,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
202,
202,
95,
1082,
202,
12849,
394,
17114,
24899,
88,
1769,
202,
202,
97,
202,
202,
97,
202,
202,
97,
202,
202,
9053,
1001,
88,
6669,
28,
273,
389,
88,
31,
202,
202,
13832,
21,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
22261,
67,
1985,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
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,
364,
67,
3366,
67,
2793,
12,
9053,
389,
88,
16,
202,
202,
474,
819,
16185,
202,
13,
1216,
9539,
288,
9506,
202,
9053,
364,
67,
3366,
67,
2793,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
8715,
21,
273,
446,
31,
202,
202,
9053,
8715,
22,
273,
446,
31,
9506,
202,
95,
202,
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,
18484,
30,
202,
202,
3593,
512,
18133,
30,
202,
202,
3593,
21786,
30,
202,
202,
3593,
15612,
2
] |
boolean namedAccess = (!matchesAnyName && getIterableAxis().supportsNamedAccess(support)); | IterableAxis iterableAxis = getIterableAxis(); boolean namedAccess = (!matchesAnyName && iterableAxis.supportsNamedAccess(support)); | public List evaluate(Context context) throws JaxenException { List contextNodeSet = context.getNodeSet(); int contextSize = contextNodeSet.size(); // optimize for context size 0 if (contextSize == 0) { return Collections.EMPTY_LIST; } ContextSupport support = context.getContextSupport(); boolean namedAccess = (!matchesAnyName && getIterableAxis().supportsNamedAccess(support)); // optimize for context size 1 (common case, avoids lots of object creation) if (contextSize == 1) { Object contextNode = contextNodeSet.get(0); if (namedAccess) { // get the iterator over the nodes and check it String uri = support.translateNamespacePrefixToUri(prefix); Iterator axisNodeIter = getIterableAxis().namedAccessIterator( contextNode, support, localName, prefix, uri); if (axisNodeIter == null || axisNodeIter.hasNext() == false) { return Collections.EMPTY_LIST; } // convert iterator to list for predicate test // no need to filter as named access guarantees this List newNodeSet = new ArrayList(); while (axisNodeIter.hasNext()) { newNodeSet.add(axisNodeIter.next()); } // evaluate the predicates return getPredicateSet().evaluatePredicates(newNodeSet, support); } else { // get the iterator over the nodes and check it Iterator axisNodeIter = axisIterator(contextNode, support); if (axisNodeIter == null || axisNodeIter.hasNext() == false) { return Collections.EMPTY_LIST; } // run through iterator, filtering using matches() // adding to list for predicate test List newNodeSet = new ArrayList(); while (axisNodeIter.hasNext()) { Object eachAxisNode = axisNodeIter.next(); if (matches(eachAxisNode, support)) { newNodeSet.add(eachAxisNode); } } // evaluate the predicates return getPredicateSet().evaluatePredicates(newNodeSet, support); } } // full case IdentitySet unique = new IdentitySet(); List interimSet = new ArrayList(contextSize); List newNodeSet = new ArrayList(contextSize); if (namedAccess) { String uri = support.translateNamespacePrefixToUri(prefix); for (int i = 0; i < contextSize; ++i) { Object eachContextNode = contextNodeSet.get(i); Iterator axisNodeIter = getIterableAxis().namedAccessIterator( eachContextNode, support, localName, prefix, uri); if (axisNodeIter == null || axisNodeIter.hasNext() == false) { continue; } // ensure only one of each node in the result while (axisNodeIter.hasNext()) { Object eachAxisNode = axisNodeIter.next(); if (! unique.contains(eachAxisNode)) { unique.add(eachAxisNode); interimSet.add(eachAxisNode); } } // evaluate the predicates newNodeSet.addAll(getPredicateSet().evaluatePredicates(interimSet, support)); interimSet.clear(); } } else { for (int i = 0; i < contextSize; ++i) { Object eachContextNode = contextNodeSet.get(i); Iterator axisNodeIter = axisIterator(eachContextNode, support); if (axisNodeIter == null || axisNodeIter.hasNext() == false) { continue; } // ensure only unique matching nodes in the result while (axisNodeIter.hasNext()) { Object eachAxisNode = axisNodeIter.next(); if (matches(eachAxisNode, support)) { if (! unique.contains(eachAxisNode)) { unique.add(eachAxisNode); interimSet.add(eachAxisNode); } } } // evaluate the predicates newNodeSet.addAll(getPredicateSet().evaluatePredicates(interimSet, support)); interimSet.clear(); } } return newNodeSet; } | 47970 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47970/cb350c5322207c89afc7f21eb95e0fe157aebf0f/DefaultNameStep.java/clean/src/java/main/org/jaxen/expr/DefaultNameStep.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
5956,
12,
1042,
819,
13,
1216,
25824,
275,
503,
288,
3639,
987,
819,
907,
694,
225,
273,
819,
18,
588,
907,
694,
5621,
3639,
509,
819,
1225,
273,
819,
907,
694,
18,
1467,
5621,
3639,
368,
10979,
364,
819,
963,
374,
3639,
309,
261,
2472,
1225,
422,
374,
13,
288,
5411,
327,
5737,
18,
13625,
67,
7085,
31,
3639,
289,
3639,
1772,
6289,
2865,
273,
819,
18,
29120,
6289,
5621,
3639,
6725,
6558,
6087,
6558,
273,
336,
13668,
6558,
5621,
1250,
4141,
1862,
273,
16051,
8436,
2961,
461,
597,
6087,
6558,
18,
28064,
7604,
1862,
12,
13261,
10019,
7734,
368,
10979,
364,
819,
963,
404,
261,
6054,
648,
16,
24192,
328,
6968,
434,
733,
6710,
13,
3639,
309,
261,
2472,
1225,
422,
404,
13,
288,
5411,
1033,
819,
907,
273,
819,
907,
694,
18,
588,
12,
20,
1769,
5411,
309,
261,
13188,
1862,
13,
288,
7734,
368,
336,
326,
2775,
1879,
326,
2199,
471,
866,
518,
7734,
514,
2003,
273,
2865,
18,
13929,
3402,
2244,
774,
3006,
12,
3239,
1769,
7734,
4498,
2654,
907,
2360,
273,
336,
13668,
6558,
7675,
13188,
1862,
3198,
12,
27573,
819,
907,
16,
2865,
16,
11927,
16,
1633,
16,
2003,
1769,
7734,
309,
261,
4890,
907,
2360,
422,
446,
747,
2654,
907,
2360,
18,
5332,
2134,
1435,
422,
629,
13,
288,
10792,
327,
5737,
18,
13625,
67,
7085,
31,
7734,
289,
7734,
368,
1765,
2775,
358,
666,
364,
5641,
1842,
7734,
368,
1158,
1608,
358,
1034,
487,
4141,
2006,
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,
987,
5956,
12,
1042,
819,
13,
1216,
25824,
275,
503,
288,
3639,
987,
819,
907,
694,
225,
273,
819,
18,
588,
907,
694,
5621,
3639,
509,
819,
1225,
273,
819,
907,
694,
18,
1467,
5621,
3639,
368,
10979,
364,
819,
963,
374,
3639,
309,
261,
2472,
1225,
422,
374,
13,
288,
5411,
327,
5737,
18,
13625,
67,
7085,
31,
3639,
289,
3639,
1772,
6289,
2865,
273,
819,
18,
29120,
6289,
5621,
3639,
6725,
6558,
6087,
6558,
273,
336,
13668,
6558,
5621,
1250,
4141,
1862,
273,
16051,
8436,
2961,
461,
597,
6087,
6558,
18,
28064,
7604,
1862,
12,
13261,
10019,
7734,
368,
10979,
364,
819,
963,
404,
261,
6054,
648,
16,
24192,
328,
6968,
434,
733,
6710,
13,
2
] |
this.savable = flag; | this.savableFlag = flag; | public void setSavable(boolean flag) { this.savable = flag; } | 48076 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48076/bc23b41efb133ec280631d587aeb0f036378beb1/WaveApplet.java/buggy/src/web/onClient/hr/fer/zemris/vhdllab/applets/simulations/WaveApplet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13928,
842,
429,
12,
6494,
2982,
13,
288,
202,
202,
2211,
18,
87,
842,
429,
273,
2982,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13928,
842,
429,
12,
6494,
2982,
13,
288,
202,
202,
2211,
18,
87,
842,
429,
273,
2982,
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
] |
final int numberToTest = 5; for (int i = 0; i < numberToTest; i++) { String table = "#t0036_do_not_create_" + i; try { stmt.executeUpdate("drop table " + table); | final int numberToTest = 5; for (int i = 0; i < numberToTest; i++) { String table = "#t0036_do_not_create_" + i; try { stmt.executeUpdate("drop table " + table); | public void testErrors0036() throws Exception { Connection cx = getConnection(); Statement stmt = cx.createStatement(); final int numberToTest = 5; for (int i = 0; i < numberToTest; i++) { String table = "#t0036_do_not_create_" + i; try { stmt.executeUpdate("drop table " + table); assertTrue("Did not expect to reach here", false); } catch (SQLException e) { assertTrue(e.getMessage().startsWith("Cannot drop the table '" + table+"', because it does")); } } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/7df6dc0065b654cd4e2b156461e0394d01dd13aa/TimestampTest.java/buggy/src.old/test/freetds/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4229,
713,
5718,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
3406,
225,
3480,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
6385,
509,
1300,
774,
4709,
273,
1381,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1300,
774,
4709,
31,
277,
27245,
202,
202,
95,
1082,
202,
780,
1014,
273,
6619,
88,
713,
5718,
67,
2896,
67,
902,
67,
2640,
9548,
397,
277,
31,
1082,
202,
698,
1082,
202,
95,
9506,
202,
10589,
18,
8837,
1891,
2932,
7285,
1014,
315,
397,
1014,
1769,
9506,
202,
11231,
5510,
2932,
18250,
486,
4489,
358,
9287,
2674,
3113,
629,
1769,
1082,
202,
97,
1082,
202,
14683,
261,
23116,
425,
13,
1082,
202,
95,
9506,
202,
11231,
5510,
12,
73,
18,
24906,
7675,
17514,
1190,
2932,
4515,
3640,
326,
1014,
2119,
397,
1014,
9078,
2187,
2724,
518,
1552,
7923,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4229,
713,
5718,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
3406,
225,
3480,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
6385,
509,
1300,
774,
4709,
273,
1381,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1300,
774,
4709,
31,
277,
27245,
202,
202,
95,
1082,
202,
780,
1014,
273,
6619,
88,
713,
5718,
67,
2896,
67,
902,
67,
2640,
9548,
397,
277,
31,
1082,
202,
698,
1082,
202,
95,
9506,
202,
10589,
18,
8837,
1891,
2932,
7285,
1014,
315,
397,
1014,
1769,
9506,
202,
11231,
5510,
2932,
18250,
486,
4489,
358,
9287,
2674,
3113,
629,
1769,
1082,
202,
97,
1082,
202,
14683,
2
] |
String reportContents = readReportFile( repoReporter.getReportFile() ); | logger.info( "Sending error report to " + configuration.getErrorReportToName() + " via email." ); | public void cleanRepository( RepositoryCleanerConfiguration configuration ) throws Exception { File reportsBase = formatReportsBase( configuration.getReportsPath() ); File sourceRepositoryBase = normalizeSourceRepositoryBase( configuration.getSourceRepositoryPath() ); File targetRepositoryBase = normalizeTargetRepositoryBase( configuration.getTargetRepositoryPath() ); boolean mailReport = false; // do not proceed if we cannot produce reports, or if the repository is // invalid. if ( reportsBase != null && sourceRepositoryBase != null && targetRepositoryBase != null ) { Logger logger = getLogger(); FileReporter repoReporter = null; try { repoReporter = new FileReporter( reportsBase, "repository.report.txt" ); ArtifactDiscoverer artifactDiscoverer = null; List artifacts = null; PathLister kickoutLister = null; PathLister excludeLister = null; try { artifactDiscoverer = (ArtifactDiscoverer) container.lookup( ArtifactDiscoverer.ROLE, configuration .getSourceRepositoryLayout() ); if ( logger.isInfoEnabled() ) { logger.info( "Discovering artifacts." ); } try { File kickoutsList = new File(reportsBase, "kickouts.txt"); File excludesList = new File(reportsBase, "excludes.txt"); kickoutLister = new PathLister(kickoutsList); excludeLister = new PathLister(excludesList); artifacts = artifactDiscoverer.discoverArtifacts( sourceRepositoryBase, repoReporter, configuration.getBlacklistedPatterns(), excludeLister, kickoutLister ); } catch ( Exception e ) { repoReporter.error( "Error discovering artifacts in source repository.", e ); } } finally { if ( artifactDiscoverer != null ) { container.release( artifactDiscoverer ); } excludeLister.close(); kickoutLister.close(); } if ( artifacts != null ) { ArtifactRepositoryLayout sourceLayout = null; ArtifactRepositoryLayout targetLayout = null; try { sourceLayout = (ArtifactRepositoryLayout) container.lookup( ArtifactRepositoryLayout.ROLE, configuration .getSourceRepositoryLayout() ); ArtifactRepository sourceRepo = new ArtifactRepository( "source", "file://" + sourceRepositoryBase.getAbsolutePath(), sourceLayout ); targetLayout = (ArtifactRepositoryLayout) container.lookup( ArtifactRepositoryLayout.ROLE, configuration .getTargetRepositoryLayout() ); ArtifactRepository targetRepo = new ArtifactRepository( "target", "file://" + targetRepositoryBase.getAbsolutePath(), targetLayout ); if ( logger.isInfoEnabled() ) { logger.info( "Rewriting POMs and artifact files." ); } artifactIndexer.writeAritfactIndex( artifacts, targetRepositoryBase ); rewriteArtifactsAndPoms( artifacts, sourceRepo, targetRepo, configuration, reportsBase, sourceRepositoryBase, targetRepositoryBase, repoReporter ); } finally { if ( sourceLayout != null ) { container.release( sourceLayout ); } if ( targetLayout != null ) { container.release( targetLayout ); } } } if ( repoReporter.hasError() && logger.isErrorEnabled() ) { logger.error( "Error encountered while converting source repository to target repository." ); } if ( repoReporter.hasWarning() && logger.isWarnEnabled() ) { logger .warn( "Warning encountered while rewriting one or more artifacts from source repository to target repository." ); } if ( repoReporter.hasError() ) { mailReport = true; } } finally { if ( repoReporter != null ) { repoReporter.close(); } } if ( mailReport && configuration.mailErrorReport() ) { String reportContents = readReportFile( repoReporter.getReportFile() ); MailMessage message = new MailMessage(); message.setContent( reportContents ); message.setSubject( configuration.getErrorReportSubject() ); message.setFrom( configuration.getErrorReportFromName(), configuration.getErrorReportFromAddress() ); message.setSendDate( new Date() ); message.addTo( configuration.getErrorReportToName(), configuration.getErrorReportToAddress() ); mailSender.send( message ); } } } | 47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/6e51d420ed174d20446e7387dab144f9c1a9eed0/RepositoryCleaner.java/buggy/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/RepositoryCleaner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2721,
3305,
12,
6281,
7605,
264,
1750,
1664,
262,
3639,
1216,
1185,
565,
288,
3639,
1387,
10557,
2171,
273,
740,
18631,
2171,
12,
1664,
18,
588,
18631,
743,
1435,
11272,
3639,
1387,
1084,
3305,
2171,
273,
3883,
1830,
3305,
2171,
12,
1664,
18,
588,
1830,
3305,
743,
1435,
11272,
3639,
1387,
1018,
3305,
2171,
273,
3883,
2326,
3305,
2171,
12,
1664,
18,
588,
2326,
3305,
743,
1435,
11272,
3639,
1250,
4791,
4820,
273,
629,
31,
3639,
368,
741,
486,
11247,
309,
732,
2780,
11402,
10557,
16,
578,
309,
326,
3352,
353,
3639,
368,
2057,
18,
3639,
309,
261,
10557,
2171,
480,
446,
597,
1084,
3305,
2171,
480,
446,
597,
1018,
3305,
2171,
480,
446,
262,
3639,
288,
5411,
4242,
1194,
273,
7156,
5621,
5411,
1387,
13289,
3538,
13289,
273,
446,
31,
5411,
775,
5411,
288,
7734,
3538,
13289,
273,
394,
1387,
13289,
12,
10557,
2171,
16,
315,
9071,
18,
6006,
18,
5830,
6,
11272,
7734,
14022,
26082,
264,
6462,
26082,
264,
273,
446,
31,
7734,
987,
16259,
273,
446,
31,
27573,
2666,
18391,
23228,
659,
18391,
273,
446,
31,
7734,
2666,
18391,
4433,
18391,
273,
446,
31,
27573,
775,
7734,
288,
10792,
6462,
26082,
264,
273,
261,
7581,
26082,
264,
13,
1478,
18,
8664,
12,
14022,
26082,
264,
18,
16256,
16,
1664,
13491,
263,
588,
1830,
3305,
3744,
1435,
11272,
10792,
309,
261,
1194,
18,
291,
966,
1526,
1435,
262,
10792,
288,
13491,
1194,
18,
1376,
12,
315,
26082,
310,
16259,
1199,
11272,
10792,
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,
2721,
3305,
12,
6281,
7605,
264,
1750,
1664,
262,
3639,
1216,
1185,
565,
288,
3639,
1387,
10557,
2171,
273,
740,
18631,
2171,
12,
1664,
18,
588,
18631,
743,
1435,
11272,
3639,
1387,
1084,
3305,
2171,
273,
3883,
1830,
3305,
2171,
12,
1664,
18,
588,
1830,
3305,
743,
1435,
11272,
3639,
1387,
1018,
3305,
2171,
273,
3883,
2326,
3305,
2171,
12,
1664,
18,
588,
2326,
3305,
743,
1435,
11272,
3639,
1250,
4791,
4820,
273,
629,
31,
3639,
368,
741,
486,
11247,
309,
732,
2780,
11402,
10557,
16,
578,
309,
326,
3352,
353,
3639,
368,
2057,
18,
3639,
309,
261,
10557,
2171,
480,
446,
597,
1084,
3305,
2171,
480,
446,
597,
1018,
3305,
2171,
480,
446,
262,
3639,
2
] |
int fPixel = fData[(k*scan)+j]; | int fPixel = fData[offsetLine+j]; | final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetrics(); int charsCount = str.length(); if ((bdfFont != null) && (charsCount > 0)) { int offset = 0; char[] chars = str.toCharArray(); for(int i=0;i<charsCount;i++) { int base = fm.getDescent(); BDFGlyph glyph = bdfFont.getGlyph(chars[i]); if(glyph==null) { continue; } int fHeight= glyph.getBbx().height; int[] fData = glyph.getData(); int scan = fData.length/fHeight; for(int k=0;k<fHeight;k++) { for(int j=0;j<scan;j++) { int fPixel = fData[(k*scan)+j]; if(fPixel!=0) { int r = color.getRed(); //(color & 0x00FF0000) >> 16; int g = color.getGreen(); //(color & 0x0000FF00) >> 8; int b = color.getBlue(); //(color & 0x000000FF); r = ((r * fPixel)>>bdfFont.getDepth()) & 0xFF; g = ((g * fPixel)>>bdfFont.getDepth()) & 0xFF; b = ((b * fPixel)>>bdfFont.getDepth()) & 0xFF; fPixel = (((r << 16)+ (g << 8) + b )| 0xFF000000); int px = x+offset+j; int py = y+(bdfFont.getBoundingBox().height+base-fHeight)+k-glyph.getBbx().y; surface.setRGBPixel(px, py, fPixel); } } } offset+=glyph.getDWidth().width-glyph.getBbx().x; } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27da370c3e05f80083e8c618351850b1d1d108b6/BDFTextRenderer.java/clean/gui/src/awt/org/jnode/awt/font/bdf/BDFTextRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
1071,
918,
1743,
12,
11508,
9034,
16,
12383,
6807,
16,
23906,
558,
4059,
2229,
16,
5411,
514,
609,
16,
509,
619,
16,
509,
677,
16,
5563,
2036,
13,
288,
6647,
309,
261,
701,
422,
446,
747,
609,
18,
2469,
1435,
422,
374,
13,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
5531,
533,
4442,
1769,
5411,
327,
31,
3639,
289,
7734,
605,
4577,
5653,
10940,
273,
261,
38,
4577,
5653,
13,
70,
2180,
5711,
18,
588,
5711,
5653,
5621,
3639,
509,
5230,
1380,
273,
609,
18,
2469,
5621,
3639,
309,
14015,
70,
2180,
5711,
480,
446,
13,
597,
261,
7549,
1380,
405,
374,
3719,
288,
5411,
509,
1384,
273,
374,
31,
5411,
1149,
8526,
5230,
273,
609,
18,
869,
15936,
5621,
5411,
364,
12,
474,
277,
33,
20,
31,
77,
32,
7549,
1380,
31,
77,
27245,
288,
7734,
509,
1026,
273,
10940,
18,
588,
4217,
319,
5621,
7734,
605,
4577,
15141,
9440,
273,
324,
2180,
5711,
18,
588,
15141,
12,
7549,
63,
77,
19226,
7734,
309,
12,
19426,
631,
2011,
13,
288,
10792,
1324,
31,
7734,
289,
27573,
509,
284,
2686,
33,
9440,
18,
588,
38,
70,
92,
7675,
4210,
31,
7734,
509,
8526,
284,
751,
273,
9440,
18,
588,
751,
5621,
7734,
509,
4135,
273,
284,
751,
18,
2469,
19,
74,
2686,
31,
27573,
364,
12,
474,
417,
33,
20,
31,
79,
32,
74,
2686,
31,
79,
27245,
288,
10792,
364,
12,
474,
525,
33,
20,
31,
78,
32,
9871,
31,
78,
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,
727,
1071,
918,
1743,
12,
11508,
9034,
16,
12383,
6807,
16,
23906,
558,
4059,
2229,
16,
5411,
514,
609,
16,
509,
619,
16,
509,
677,
16,
5563,
2036,
13,
288,
6647,
309,
261,
701,
422,
446,
747,
609,
18,
2469,
1435,
422,
374,
13,
288,
5411,
2332,
18,
370,
18,
8222,
2932,
5531,
533,
4442,
1769,
5411,
327,
31,
3639,
289,
7734,
605,
4577,
5653,
10940,
273,
261,
38,
4577,
5653,
13,
70,
2180,
5711,
18,
588,
5711,
5653,
5621,
3639,
509,
5230,
1380,
273,
609,
18,
2469,
5621,
3639,
309,
14015,
70,
2180,
5711,
480,
446,
13,
597,
261,
7549,
1380,
405,
374,
3719,
288,
5411,
509,
1384,
273,
374,
31,
5411,
1149,
8526,
5230,
273,
609,
2
] |
&& getDimensionFor( sNewDimension ) != oldDimension ) | && ChartUIUtil.getDimensionType( sNewDimension ) != oldDimension ) | private Chart getConvertedChart( Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); ChartDimension oldDimension = currentChart.getDimension( ); // Cache series to keep attributes during conversion ChartCacheManager.getInstance( ) .cacheSeries( ChartUIUtil.getAllOrthogonalSeriesDefinitions( helperModel ) ); if ( ( currentChart instanceof ChartWithAxes ) ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) // Original // chart is // of this type // (LineChart) { if ( !currentChart.getSubType( ).equals( sNewSubType ) ) // Original // chart // is // of // the // required // subtype { currentChart.setSubType( sNewSubType ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } } } } } else if ( currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) || currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) || currentChart.getType( ).equals( StockChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( ScatterChart.TYPE_LITERAL ) ) { if ( !currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ) ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).setType( AxisType.TEXT_LITERAL ); } currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0, seriesIndex = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series, seriesIndex++ ); ( (LineSeries) series ).setPaletteLineColor( true ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } } else { return null; } ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getInteractivity( ) != null ) { currentChart.getInteractivity( ) .setEnable( helperModel.getInteractivity( ).isEnable( ) ); currentChart.getInteractivity( ) .setLegendBehavior( helperModel.getInteractivity( ) .getLegendBehavior( ) ); } if ( helperModel.getType( ).equals( PieChart.TYPE_LITERAL ) || helperModel.getType( ).equals( MeterChart.TYPE_LITERAL ) ) { // Clear existing series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy base series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Clear existing series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy orthogonal series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .addAll( ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeriesDefinitions( ) ); // Update the base series Series series = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); // series = getConvertedSeries( series ); // Clear existing series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .clear( ); // Add converted series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .add( series ); // Update the orthogonal series EList seriesdefinitions = ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series, j ); ( (LineSeries) series ).setPaletteLineColor( true ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } else { return null; } currentChart.getLegend( ) .setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); } if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } if ( sNewDimension.equals( THREE_DIMENSION_TYPE ) && getDimensionFor( sNewDimension ) != oldDimension ) { ( (ChartWithAxes) currentChart ).setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); ( (ChartWithAxes) currentChart ).setUnitSpacing( 50 ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); if ( currentChart.getSampleData( ) .getAncillarySampleData( ) .isEmpty( ) ) { BaseSampleData sdAncillary = DataFactory.eINSTANCE.createBaseSampleData( ); sdAncillary.setDataSetRepresentation( "Series 1" ); //$NON-NLS-1$ currentChart.getSampleData( ) .getAncillarySampleData( ) .add( sdAncillary ); } } return currentChart; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/b6d51e391b8fcc3131fb813900f1292fdd6cc1d3/LineChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
14097,
394,
14097,
16,
514,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
783,
7984,
11272,
202,
202,
7984,
8611,
1592,
8611,
273,
783,
7984,
18,
588,
8611,
12,
11272,
202,
202,
759,
4379,
4166,
358,
3455,
1677,
4982,
4105,
202,
202,
7984,
27706,
18,
588,
1442,
12,
262,
9506,
202,
18,
2493,
6485,
12,
14804,
5370,
1304,
18,
588,
1595,
1162,
451,
28396,
6485,
7130,
12,
4222,
1488,
262,
11272,
202,
202,
430,
261,
261,
783,
7984,
1276,
14804,
1190,
26494,
262,
262,
202,
202,
95,
1082,
202,
430,
261,
783,
7984,
18,
588,
559,
12,
262,
18,
14963,
12,
3463,
67,
23225,
262,
262,
368,
19225,
1082,
202,
759,
4980,
353,
1082,
202,
759,
434,
333,
618,
1082,
202,
759,
261,
1670,
7984,
13,
1082,
202,
95,
9506,
202,
430,
261,
401,
2972,
7984,
18,
588,
30511,
12,
262,
18,
14963,
12,
272,
1908,
30511,
262,
262,
368,
19225,
9506,
202,
759,
4980,
9506,
202,
759,
353,
9506,
202,
759,
434,
9506,
202,
759,
326,
9506,
202,
759,
1931,
9506,
202,
759,
12308,
9506,
202,
95,
6862,
202,
2972,
7984,
18,
542,
30511,
12,
272,
1908,
30511,
11272,
6862,
202,
41,
682,
6515,
273,
261,
261,
6558,
13,
261,
261,
7984,
1190,
26494,
13,
783,
7984,
262,
18,
588,
26494,
12,
262,
6862,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
14097,
394,
14097,
16,
514,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
783,
7984,
11272,
202,
202,
7984,
8611,
1592,
8611,
273,
783,
7984,
18,
588,
8611,
12,
11272,
202,
202,
759,
4379,
4166,
358,
3455,
1677,
4982,
4105,
202,
202,
7984,
27706,
18,
588,
1442,
12,
262,
9506,
202,
18,
2493,
6485,
12,
14804,
5370,
1304,
18,
588,
1595,
1162,
451,
28396,
6485,
7130,
12,
4222,
1488,
262,
11272,
202,
202,
430,
261,
261,
783,
7984,
1276,
14804,
1190,
26494,
262,
262,
202,
202,
95,
2
] |
try { ClassUtils.forName("org.hibernate.event.SessionEventListenerConfig"); registerEventsForHibernate30(actualSessionFactory); } catch (ClassNotFoundException e) { registerEventsForHibernate31(actualSessionFactory); } | try { ClassUtils.forName("org.hibernate.event.SessionEventListenerConfig"); registerEventsForHibernate30(actualSessionFactory); } catch (ClassNotFoundException e) { registerEventsForHibernate31(actualSessionFactory); | protected void doStart() throws CompassGpsException { super.doStart(); if (sessionFactory == null) { if (configuration == null) { throw new HibernateGpsDeviceException(buildMessage("Must set configuration or sessionFactory")); } try { sessionFactory = configuration.buildSessionFactory(); } catch (HibernateException e) { throw new HibernateGpsDeviceException(buildMessage("Failed to create session factory"), e); } } if (isMirrorDataChanges()) { SessionFactory actualSessionFactory = doGetActualSessionFactory(); try { ClassUtils.forName("org.hibernate.event.SessionEventListenerConfig"); registerEventsForHibernate30(actualSessionFactory); } catch (ClassNotFoundException e) { registerEventsForHibernate31(actualSessionFactory); } } } | 47300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47300/1e0ee76d2799b36291fda4b6ac3c176cb4204d50/Hibernate3GpsDevice.java/buggy/src/main/src/org/compass/gps/device/hibernate/Hibernate3GpsDevice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
1685,
1435,
1216,
5427,
428,
43,
1121,
503,
288,
3639,
2240,
18,
2896,
1685,
5621,
3639,
309,
261,
3184,
1733,
422,
446,
13,
288,
5411,
309,
261,
7025,
422,
446,
13,
288,
7734,
604,
394,
670,
24360,
43,
1121,
3654,
503,
12,
3510,
1079,
2932,
10136,
444,
1664,
578,
1339,
1733,
7923,
1769,
5411,
289,
5411,
775,
288,
7734,
1339,
1733,
273,
1664,
18,
3510,
2157,
1733,
5621,
5411,
289,
1044,
261,
44,
24360,
503,
425,
13,
288,
7734,
604,
394,
670,
24360,
43,
1121,
3654,
503,
12,
3510,
1079,
2932,
2925,
358,
752,
1339,
3272,
6,
3631,
425,
1769,
5411,
289,
3639,
289,
5411,
309,
261,
291,
13035,
751,
7173,
10756,
288,
7734,
3877,
1733,
3214,
2157,
1733,
273,
23611,
11266,
2157,
1733,
5621,
7734,
775,
288,
10792,
26382,
18,
1884,
461,
2932,
3341,
18,
15769,
22828,
18,
2575,
18,
2157,
7375,
809,
8863,
10792,
1744,
3783,
1290,
44,
24360,
5082,
12,
18672,
2157,
1733,
1769,
7734,
289,
1044,
261,
797,
3990,
425,
13,
288,
10792,
1744,
3783,
1290,
44,
24360,
6938,
12,
18672,
2157,
1733,
1769,
7734,
289,
5411,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
1685,
1435,
1216,
5427,
428,
43,
1121,
503,
288,
3639,
2240,
18,
2896,
1685,
5621,
3639,
309,
261,
3184,
1733,
422,
446,
13,
288,
5411,
309,
261,
7025,
422,
446,
13,
288,
7734,
604,
394,
670,
24360,
43,
1121,
3654,
503,
12,
3510,
1079,
2932,
10136,
444,
1664,
578,
1339,
1733,
7923,
1769,
5411,
289,
5411,
775,
288,
7734,
1339,
1733,
273,
1664,
18,
3510,
2157,
1733,
5621,
5411,
289,
1044,
261,
44,
24360,
503,
425,
13,
288,
7734,
604,
394,
670,
24360,
43,
1121,
3654,
503,
12,
3510,
1079,
2932,
2925,
358,
752,
1339,
3272,
6,
3631,
425,
1769,
5411,
289,
3639,
289,
5411,
309,
261,
291,
13035,
751,
7173,
10756,
288,
7734,
3877,
2
] |
public LineSeriesUIProvider() { super(); } | public LineSeriesUIProvider( ) { super( ); } | public LineSeriesUIProvider() { super(); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ac26365eb54b9a10e69498a213cb6f605f15760b/LineSeriesUIProvider.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/series/LineSeriesUIProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5377,
6485,
5370,
2249,
1435,
565,
288,
3639,
2240,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5377,
6485,
5370,
2249,
1435,
565,
288,
3639,
2240,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AST __t240 = _t; AST tmp815_AST_in = (AST)_t; | AST __t245 = _t; AST tmp825_AST_in = (AST)_t; | public final void colorstate(AST _t) throws RecognitionException { AST colorstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST head = null; AST fi = null; AST __t236 = _t; head = _t==ASTNULL ? null :(AST)_t; match(_t,COLOR); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.frameInitializingStatement(head); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISPLAY: case PROMPT: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISPLAY: { AST __t239 = _t; AST tmp814_AST_in = (AST)_t; match(_t,DISPLAY); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t239; _t = _t.getNextSibling(); break; } case PROMPT: { AST __t240 = _t; AST tmp815_AST_in = (AST)_t; match(_t,PROMPT); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t240; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISPLAY: { AST __t242 = _t; AST tmp816_AST_in = (AST)_t; match(_t,DISPLAY); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t242; _t = _t.getNextSibling(); break; } case PROMPT: { AST __t243 = _t; AST tmp817_AST_in = (AST)_t; match(_t,PROMPT); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t243; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case WITH: case Form_item: { break; } default: { throw new NoViableAltException(_t); } } } break; } case EOF: case PERIOD: case WITH: case Form_item: { break; } default: { throw new NoViableAltException(_t); } } } { _loop247: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { AST __t245 = _t; fi = _t==ASTNULL ? null :(AST)_t; match(_t,Form_item); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; if ( inputState.guessing==0 ) { action.formItem(fi); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { formatphrase(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t245; _t = _t.getNextSibling(); } else { break _loop247; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t236; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2036,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2036,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
910,
273,
446,
31,
202,
202,
9053,
7314,
273,
446,
31,
9506,
202,
9053,
1001,
88,
29941,
273,
389,
88,
31,
202,
202,
1978,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
10989,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
1082,
202,
1128,
18,
3789,
29782,
3406,
12,
1978,
1769,
202,
202,
97,
202,
202,
95,
202,
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,
25214,
30,
202,
202,
3593,
453,
3942,
1856,
30,
202,
202,
95,
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,
25214,
30,
1082,
202,
95,
9506,
202,
9053,
1001,
88,
4366,
29,
273,
389,
88,
31,
9506,
202,
9053,
1853,
28,
3461,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
17463,
1769,
9506,
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,
2036,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2036,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
910,
273,
446,
31,
202,
202,
9053,
7314,
273,
446,
31,
9506,
202,
9053,
1001,
88,
29941,
273,
389,
88,
31,
202,
202,
1978,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
10989,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
1082,
202,
1128,
2
] |
System.out.println(" ---------------------------------------- "); System.out.println("WF just got an update reply from a client"); System.out.println("WF -> client was: " + ppd); | currentClient.addDistClient2WF(ppd); currentClient.addDistWF2Client(e.getAttribute(SienaConstants.PREV_PROP_DELAY).longValue()); | private void handleNotification(Notification e){ ClientDesc currentClient; logger.debug("received " + e); // get the propagation delay AttributeValue absAttrib = e.getAttribute(SienaConstants.ABS_TIME_SENT); long absTimeSent = -1; long ppd = -1; // ppd: previous propagation delay if (absAttrib != null){ // here we calculate the difference between when the request was // sent and when it was received/handled . Note that this // difference includes some overhead of some attrib checking so // it is not entirely accurate absTimeSent = absAttrib.longValue(); ppd = System.currentTimeMillis() - absTimeSent; } String id = String.valueOf(e.getAttribute(SienaConstants.CLIENT_ID).longValue()); Hashtable ht = myGauge.getGroupClients(); currentClient = (ClientDesc)ht.get(id); // this basically registers the client into the hash table, so we don't have to // check for it later if (currentClient == null) { logger.debug("adding new client " + id); ht.put(id, currentClient = new ClientDesc(id)); myGauge.getBucket().update(id, currentClient); } if (e.getAttribute(SienaConstants.AI2TV_WF_REG) != null){ // don't do anything as we register above. I catch // this here so that I don't get an error later. } else if (e.getAttribute(SienaConstants.AI2TV_FRAME) != null){ long currentTime = myGauge.clock.currentTime(); currentClient.setFrame(e.getAttribute(SienaConstants.LEFTBOUND).intValue(), e.getAttribute(SienaConstants.MOMENT).intValue(), e.getAttribute(SienaConstants.RIGHTBOUND).intValue(), currentTime, e.getAttribute(SienaConstants.LEVEL).intValue(), e.getAttribute(SienaConstants.SIZE).intValue()); // dp2041: need to implement } else if (e.getAttribute(SienaConstants.AI2TV_WF_UPDATE_REPLY) != null){ System.out.println(" ---------------------------------------- "); System.out.println("WF just got an update reply from a client"); System.out.println("WF -> client was: " + ppd); ppd = System.currentTimeMillis() - e.getAttribute(SienaConstants.ABS_TIME_SENT).longValue(); e.getAttribute(SienaConstants.ABS_TIME_SENT).longValue(); System.out.println("client -> WF was: " + ppd); System.out.println(" ---------------------------------------- "); } else if (e.getAttribute(SienaConstants.AI2TV_VIDEO_ACTION) != null){ String action = e.getAttribute(SienaConstants.AI2TV_VIDEO_ACTION).stringValue(); if (action.equals(SienaConstants.PLAY)) { //check if clients are already running if (! myGauge.isRunning()) { /* // nominal start time = 1st client start time long st = myGauge.clock.currentTime(); // System.currentTimeMillis(); myGauge.setStartTime(st); currentClient.setStartTime(st); */ logger.debug("starting nominal"); myGauge.startNominal(); } WFGauge.clock.startTime(absTimeSent); } else if (action.equals(SienaConstants.PAUSE)) { WFGauge.clock.pauseTime(absTimeSent); } else if (action.equals(SienaConstants.STOP)) { WFGauge.clock.stopTime(); } else if (action.equals(SienaConstants.GOTO)) { long clientid = e.getAttribute(SienaConstants.AI2TV_VIDEO_ACTION).longValue(); // id of -1 is reserved for the WF if (clientid != _id){ WFGauge.clock.gotoTime(absTimeSent, e.getAttribute(SienaConstants.NEWTIME).intValue()); } } else { // event that we don't know what action this is // should throw an unknown error, or something logger.debug("Received AI2TV VIDEO ACTION event: " + e); } } else { // event that we don't know what EVENT this is // should throw an unknown error, or something logger.debug("Received unknown event: " + e); } } | 14573 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14573/6bd8c2084f57686d9134c0462943cc7a40c93eef/WFSubscriber.java/clean/workflow/WFSubscriber.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1640,
4386,
12,
4386,
425,
15329,
565,
2445,
4217,
783,
1227,
31,
565,
1194,
18,
4148,
2932,
15213,
315,
397,
425,
1769,
565,
368,
336,
326,
25686,
4624,
565,
18876,
2417,
12399,
273,
425,
18,
588,
1499,
12,
55,
77,
24457,
2918,
18,
2090,
55,
67,
4684,
67,
17418,
1769,
565,
1525,
2417,
950,
7828,
273,
300,
21,
31,
565,
1525,
8228,
72,
273,
300,
21,
31,
368,
8228,
72,
30,
2416,
25686,
4624,
565,
309,
261,
5113,
12399,
480,
446,
15329,
1377,
368,
2674,
732,
4604,
326,
7114,
3086,
1347,
326,
590,
1703,
1377,
368,
3271,
471,
1347,
518,
1703,
5079,
19,
14387,
263,
225,
3609,
716,
333,
1377,
368,
7114,
6104,
2690,
23188,
434,
2690,
5885,
6728,
1427,
1377,
368,
518,
353,
486,
21658,
22380,
1377,
2417,
950,
7828,
273,
2417,
12399,
18,
5748,
620,
5621,
1377,
8228,
72,
273,
2332,
18,
2972,
28512,
1435,
300,
2417,
950,
7828,
31,
565,
289,
565,
514,
612,
273,
514,
18,
1132,
951,
12,
73,
18,
588,
1499,
12,
55,
77,
24457,
2918,
18,
11935,
67,
734,
2934,
5748,
620,
10663,
565,
18559,
14049,
273,
3399,
18941,
18,
588,
1114,
12300,
5621,
565,
783,
1227,
273,
261,
1227,
4217,
13,
647,
18,
588,
12,
350,
1769,
565,
368,
333,
23772,
10285,
326,
1004,
1368,
326,
1651,
1014,
16,
1427,
732,
2727,
1404,
1240,
358,
377,
368,
866,
364,
518,
5137,
565,
309,
261,
2972,
1227,
422,
446,
13,
288,
1377,
1194,
18,
4148,
2932,
3439,
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,
918,
1640,
4386,
12,
4386,
425,
15329,
565,
2445,
4217,
783,
1227,
31,
565,
1194,
18,
4148,
2932,
15213,
315,
397,
425,
1769,
565,
368,
336,
326,
25686,
4624,
565,
18876,
2417,
12399,
273,
425,
18,
588,
1499,
12,
55,
77,
24457,
2918,
18,
2090,
55,
67,
4684,
67,
17418,
1769,
565,
1525,
2417,
950,
7828,
273,
300,
21,
31,
565,
1525,
8228,
72,
273,
300,
21,
31,
368,
8228,
72,
30,
2416,
25686,
4624,
565,
309,
261,
5113,
12399,
480,
446,
15329,
1377,
368,
2674,
732,
4604,
326,
7114,
3086,
1347,
326,
590,
1703,
1377,
368,
3271,
471,
1347,
518,
1703,
5079,
19,
14387,
263,
225,
3609,
716,
333,
1377,
368,
7114,
6104,
2690,
23188,
434,
2
] |
targetElement = null; if (!targetStack.isEmpty()) { targetStartTime = ((Long) targetTimeStack.pop()).longValue(); targetElement = (Element) targetStack.pop(); | TimedElement parentElement = null; Stack threadStack = getStack(); if (!threadStack.empty()) { TimedElement poppedStack = (TimedElement)threadStack.pop(); if (poppedStack != targetElement) { throw new RuntimeException("Mismatch - popped element = " + poppedStack.element + " finished task element = " + targetElement.element); } if (!threadStack.empty()) { parentElement = (TimedElement)threadStack.peek(); } } if (parentElement == null) { buildElement.element.appendChild(targetElement.element); } else { parentElement.element.appendChild(targetElement.element); } | public void targetFinished(BuildEvent event) { long totalTime = System.currentTimeMillis() - targetStartTime; targetElement.setAttribute(TIME_ATTR, DefaultLogger.formatTime(totalTime)); if (taskElement == null) { buildElement.appendChild(targetElement); } else { taskElement.appendChild(targetElement); } targetElement = null; if (!targetStack.isEmpty()) { targetStartTime = ((Long) targetTimeStack.pop()).longValue(); targetElement = (Element) targetStack.pop(); } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/bdd7cc0e9751c1a7378bc59a9825e6fb5b169c71/XmlLogger.java/clean/src/main/org/apache/tools/ant/XmlLogger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1018,
10577,
12,
3116,
1133,
871,
13,
288,
3639,
1525,
2078,
950,
273,
2332,
18,
2972,
28512,
1435,
300,
1018,
13649,
31,
3639,
1018,
1046,
18,
542,
1499,
12,
4684,
67,
12043,
16,
2989,
3328,
18,
2139,
950,
12,
4963,
950,
10019,
3639,
309,
261,
4146,
1046,
422,
446,
13,
288,
5411,
1361,
1046,
18,
6923,
1763,
12,
3299,
1046,
1769,
3639,
289,
469,
288,
5411,
1562,
1046,
18,
6923,
1763,
12,
3299,
1046,
1769,
3639,
289,
3639,
1018,
1046,
273,
446,
31,
3639,
309,
16051,
3299,
2624,
18,
291,
1921,
10756,
288,
5411,
1018,
13649,
273,
14015,
3708,
13,
1018,
950,
2624,
18,
5120,
1435,
2934,
5748,
620,
5621,
5411,
1018,
1046,
273,
261,
1046,
13,
1018,
2624,
18,
5120,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1018,
10577,
12,
3116,
1133,
871,
13,
288,
3639,
1525,
2078,
950,
273,
2332,
18,
2972,
28512,
1435,
300,
1018,
13649,
31,
3639,
1018,
1046,
18,
542,
1499,
12,
4684,
67,
12043,
16,
2989,
3328,
18,
2139,
950,
12,
4963,
950,
10019,
3639,
309,
261,
4146,
1046,
422,
446,
13,
288,
5411,
1361,
1046,
18,
6923,
1763,
12,
3299,
1046,
1769,
3639,
289,
469,
288,
5411,
1562,
1046,
18,
6923,
1763,
12,
3299,
1046,
1769,
3639,
289,
3639,
1018,
1046,
273,
446,
31,
3639,
309,
16051,
3299,
2624,
18,
291,
1921,
10756,
288,
5411,
1018,
13649,
273,
14015,
3708,
13,
1018,
950,
2624,
18,
5120,
1435,
2934,
5748,
620,
5621,
5411,
1018,
1046,
273,
261,
1046,
2
] |
double numDays = ((double)numSecs) / (60d * 60d * 24d); | public String getSummaryHtml(Connection conn, Timestamp startDate, Timestamp endDate) { long succeededCount = 0; long failedCount = 0; long c2pOut = 0; long p2sOut = 0; long s2pOut = 0; long p2cOut = 0; long numOut = 0; long c2pIn = 0; long p2sIn = 0; long s2pIn = 0; long p2cIn = 0; long numIn = 0; try { String sql = "SELECT sum(c2p_bytes), sum(p2s_bytes), sum(s2p_bytes), sum(p2c_bytes), count(*) FROM pl_endp JOIN pl_stats USING (session_id) WHERE client_intf = 1 AND raze_date >= ? AND create_date < ?"; PreparedStatement ps = conn.prepareStatement(sql); ps.setTimestamp(1, startDate); ps.setTimestamp(2, endDate); ResultSet rs = ps.executeQuery(); rs.first(); c2pOut = rs.getLong(1); p2sOut = rs.getLong(2); s2pOut = rs.getLong(3); p2cOut = rs.getLong(4); numOut = rs.getLong(5); rs.close(); ps.close(); sql = "SELECT sum(c2p_bytes), sum(p2s_bytes), sum(s2p_bytes), sum(p2c_bytes), count(*) FROM pl_endp JOIN pl_stats USING (session_id) WHERE client_intf = 0 AND raze_date >= ? AND create_date < ?"; ps = conn.prepareStatement(sql); ps.setTimestamp(1, startDate); ps.setTimestamp(2, endDate); rs = ps.executeQuery(); rs.first(); c2pIn = rs.getLong(1); p2sIn = rs.getLong(2); s2pIn = rs.getLong(3); p2cIn = rs.getLong(4); numIn = rs.getLong(5); rs.close(); ps.close(); sql = "select count(*) from mvvm_login_evt where time_stamp >= ? and time_stamp < ? and not local and succeeded"; ps = conn.prepareStatement(sql); ps.setTimestamp(1, startDate); ps.setTimestamp(2, endDate); rs = ps.executeQuery(); rs.first(); succeededCount = rs.getLong(1); rs.close(); ps.close(); sql = "select count(*) from mvvm_login_evt where time_stamp >= ? and time_stamp < ? and not local and not succeeded"; ps = conn.prepareStatement(sql); ps.setTimestamp(1, startDate); ps.setTimestamp(2, endDate); rs = ps.executeQuery(); rs.first(); failedCount = rs.getLong(1); rs.close(); ps.close(); } catch (SQLException exn) { logger.warn("could not summarize", exn); } long bytesReceivedFromOutside = s2pOut + c2pIn; long bytesSentToOutside = p2sOut + p2cIn; long bytesTotalByDirection = bytesReceivedFromOutside + bytesSentToOutside; long totalOutboundBytes = p2sOut + p2cOut; long totalInboundBytes = c2pIn + s2pIn; double numSecs = (endDate.getTime() - startDate.getTime()) / 1000d; double numDays = ((double)numSecs) / (60d * 60d * 24d); addEntry("Data transferred", Util.trimNumber("Bytes",bytesTotalByDirection)); addEntry(" Sent to outside", Util.trimNumber("Bytes",bytesSentToOutside) + " (" + Util.percentNumber(bytesSentToOutside,bytesTotalByDirection) + ")"); addEntry(" Received from outside", Util.trimNumber("Bytes",bytesReceivedFromOutside) + " (" + Util.percentNumber(bytesReceivedFromOutside,bytesTotalByDirection) + ")"); addEntry(" ", " "); addEntry("Sessions created", Util.trimNumber("",numOut + numIn)); addEntry(" Outbound", Util.trimNumber("",numOut) + " (" + Util.percentNumber(numOut,numIn+numOut) + ")"); addEntry(" Inbound", Util.trimNumber("",numIn) + " (" + Util.percentNumber(numIn,numIn+numOut) + ")"); /* addEntry(" ", " "); addEntry("Data sent", " "); addEntry(" During outbound sessions", Util.trimNumber("Bytes",totalOutboundBytes)); addEntry(" During inbound sessions", Util.trimNumber("Bytes",totalInboundBytes)); */ addEntry(" ", " "); addEntry("Average data transfer rates", " "); addEntry(" Per second", Util.trimNumber("Bytes/sec",(long) (((double)bytesTotalByDirection) / numSecs))); addEntry(" Per day", Util.trimNumber( "Bytes/day",(long) (((double)bytesTotalByDirection) / numDays))); addEntry(" ", " "); addEntry("Administrative logins", succeededCount+failedCount); addEntry(" Successful", Util.trimNumber("",succeededCount) + " (" + Util.percentNumber(succeededCount,succeededCount+failedCount) + ")"); addEntry(" Failed", Util.trimNumber("",failedCount) + " (" + Util.percentNumber(failedCount,succeededCount+failedCount) + ")"); return summarizeEntries("Traffic Flow Rates"); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/d8722fe57a80add38fa269dde275c46a23855354/ReportingSummarizer.java/clean/tran/reporting/main/com/metavize/tran/reporting/reports/ReportingSummarizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1322,
27804,
4353,
12,
1952,
1487,
16,
8159,
12572,
16,
8159,
13202,
13,
565,
288,
3639,
1525,
15784,
1380,
273,
374,
31,
3639,
1525,
2535,
1380,
273,
374,
31,
3639,
1525,
276,
22,
84,
1182,
273,
374,
31,
3639,
1525,
293,
22,
87,
1182,
273,
374,
31,
3639,
1525,
272,
22,
84,
1182,
273,
374,
31,
3639,
1525,
293,
22,
71,
1182,
273,
374,
31,
202,
5748,
818,
1182,
273,
374,
31,
202,
3639,
1525,
276,
22,
84,
382,
273,
374,
31,
3639,
1525,
293,
22,
87,
382,
273,
374,
31,
3639,
1525,
272,
22,
84,
382,
273,
374,
31,
3639,
1525,
293,
22,
71,
382,
273,
374,
31,
202,
5748,
818,
382,
273,
374,
31,
202,
3639,
775,
288,
5411,
514,
1847,
273,
315,
4803,
2142,
12,
71,
22,
84,
67,
3890,
3631,
2142,
12,
84,
22,
87,
67,
3890,
3631,
2142,
12,
87,
22,
84,
67,
3890,
3631,
2142,
12,
84,
22,
71,
67,
3890,
3631,
1056,
24099,
4571,
886,
67,
409,
84,
7645,
886,
67,
5296,
11836,
1360,
261,
3184,
67,
350,
13,
4852,
1004,
67,
17655,
273,
404,
4116,
767,
8489,
67,
712,
1545,
692,
4116,
752,
67,
712,
411,
692,
14432,
5411,
16913,
4250,
273,
1487,
18,
9366,
3406,
12,
4669,
1769,
5411,
4250,
18,
542,
4921,
12,
21,
16,
12572,
1769,
5411,
4250,
18,
542,
4921,
12,
22,
16,
13202,
1769,
5411,
10842,
3597,
273,
4250,
18,
8837,
1138,
5621,
5411,
3597,
18,
3645,
5621,
5411,
276,
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,
377,
1071,
514,
1322,
27804,
4353,
12,
1952,
1487,
16,
8159,
12572,
16,
8159,
13202,
13,
565,
288,
3639,
1525,
15784,
1380,
273,
374,
31,
3639,
1525,
2535,
1380,
273,
374,
31,
3639,
1525,
276,
22,
84,
1182,
273,
374,
31,
3639,
1525,
293,
22,
87,
1182,
273,
374,
31,
3639,
1525,
272,
22,
84,
1182,
273,
374,
31,
3639,
1525,
293,
22,
71,
1182,
273,
374,
31,
202,
5748,
818,
1182,
273,
374,
31,
202,
3639,
1525,
276,
22,
84,
382,
273,
374,
31,
3639,
1525,
293,
22,
87,
382,
273,
374,
31,
3639,
1525,
272,
22,
84,
382,
273,
374,
31,
3639,
1525,
293,
22,
71,
382,
273,
374,
31,
202,
5748,
818,
382,
273,
374,
31,
2
] | |
if ((attrib = propertyElement .attribute(CmsImportExportManager.N_PROPERTY_ATTRIB_TYPE)) != null && attrib.getValue() .equals(CmsImportExportManager.N_PROPERTY_ATTRIB_TYPE_SHARED)) { | if ((attrib = propertyElement.attribute(CmsImportExportManager.N_PROPERTY_ATTRIB_TYPE)) != null && attrib.getValue().equals(CmsImportExportManager.N_PROPERTY_ATTRIB_TYPE_SHARED)) { | protected List readPropertiesFromManifest( Element parentElement, String propertyKey, String propertyValue, List ignoredPropertyKeys) { // all imported Cms property objects are collected in map first forfaster access Map properties = new HashMap(); CmsProperty property = null; List propertyElements = parentElement.selectNodes("./" + CmsImportExportManager.N_PROPERTIES + "/" + CmsImportExportManager.N_PROPERTY); Element propertyElement = null; String key = null, value = null; Attribute attrib = null; if (propertyKey != null && propertyValue != null && !"".equals(propertyKey)) { properties.put(propertyKey, propertyValue); } // iterate over all property elements for (int i = 0, n = propertyElements.size(); i < n; i++) { propertyElement = (Element)propertyElements.get(i); key = CmsImport.getChildElementTextValue( propertyElement, CmsImportExportManager.N_NAME); if (key == null || ignoredPropertyKeys.contains(key)) { // continue if the current property (key) should be ignored or is null continue; } // all Cms properties are collected in a map keyed by their property keys if ((property = (CmsProperty)properties.get(key)) == null) { property = new CmsProperty(); property.setName(key); property.setAutoCreatePropertyDefinition(true); properties.put(key, property); } if ((value = CmsImport.getChildElementTextValue( propertyElement, CmsImportExportManager.N_VALUE)) == null) { value = ""; } if ((attrib = propertyElement .attribute(CmsImportExportManager.N_PROPERTY_ATTRIB_TYPE)) != null && attrib.getValue() .equals(CmsImportExportManager.N_PROPERTY_ATTRIB_TYPE_SHARED)) { // it is a shared/resource property value property.setResourceValue(value); } else { // it is an individual/structure value property.setStructureValue(value); } } return new ArrayList(properties.values()); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/c7083871cfaaede3aa187a175b34be606d8431f2/A_CmsImport.java/buggy/src/org/opencms/importexport/A_CmsImport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
987,
855,
2297,
1265,
9121,
12,
3639,
3010,
30363,
16,
3639,
514,
30299,
16,
3639,
514,
12337,
16,
3639,
987,
5455,
1396,
2396,
13,
288,
3639,
368,
777,
9101,
2149,
1272,
2184,
854,
12230,
316,
852,
1122,
364,
8076,
264,
2006,
3639,
1635,
1790,
273,
394,
4317,
5621,
3639,
18505,
1272,
273,
446,
31,
3639,
987,
1272,
3471,
273,
30363,
18,
4025,
3205,
2932,
18,
4898,
5411,
397,
2149,
5010,
6144,
1318,
18,
50,
67,
17421,
5411,
397,
4016,
5411,
397,
2149,
5010,
6144,
1318,
18,
50,
67,
9900,
1769,
3639,
3010,
1272,
1046,
273,
446,
31,
3639,
514,
498,
273,
446,
16,
460,
273,
446,
31,
3639,
3601,
5885,
273,
446,
31,
3639,
309,
261,
4468,
653,
480,
446,
597,
12337,
480,
446,
597,
401,
3660,
18,
14963,
12,
4468,
653,
3719,
288,
5411,
1790,
18,
458,
12,
4468,
653,
16,
12337,
1769,
3639,
289,
3639,
368,
7401,
1879,
777,
1272,
2186,
3639,
364,
261,
474,
277,
273,
374,
16,
290,
273,
1272,
3471,
18,
1467,
5621,
277,
411,
290,
31,
277,
27245,
288,
5411,
1272,
1046,
273,
261,
1046,
13,
4468,
3471,
18,
588,
12,
77,
1769,
5411,
498,
273,
2149,
5010,
18,
588,
1763,
1046,
1528,
620,
12,
7734,
1272,
1046,
16,
7734,
2149,
5010,
6144,
1318,
18,
50,
67,
1985,
1769,
5411,
309,
261,
856,
422,
446,
747,
5455,
1396,
2396,
18,
12298,
12,
856,
3719,
288,
7734,
368,
1324,
309,
326,
783,
1272,
261,
856,
13,
1410,
506,
5455,
578,
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,
987,
855,
2297,
1265,
9121,
12,
3639,
3010,
30363,
16,
3639,
514,
30299,
16,
3639,
514,
12337,
16,
3639,
987,
5455,
1396,
2396,
13,
288,
3639,
368,
777,
9101,
2149,
1272,
2184,
854,
12230,
316,
852,
1122,
364,
8076,
264,
2006,
3639,
1635,
1790,
273,
394,
4317,
5621,
3639,
18505,
1272,
273,
446,
31,
3639,
987,
1272,
3471,
273,
30363,
18,
4025,
3205,
2932,
18,
4898,
5411,
397,
2149,
5010,
6144,
1318,
18,
50,
67,
17421,
5411,
397,
4016,
5411,
397,
2149,
5010,
6144,
1318,
18,
50,
67,
9900,
1769,
3639,
3010,
1272,
1046,
273,
446,
31,
3639,
514,
498,
273,
446,
16,
460,
273,
446,
31,
3639,
3601,
5885,
273,
446,
31,
3639,
309,
261,
4468,
2
] |
public void addMethod(MethodInfo minfo) throws CannotCompileException { | public void addMethod(MethodInfo minfo) throws DuplicateMemberException { | public void addMethod(MethodInfo minfo) throws CannotCompileException { testExistingMethod(minfo); methods.add(minfo); } | 11369 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11369/1a24a3971de663bd7c7e303eab5bbaafe03b327e/ClassFile.java/buggy/src/main/javassist/bytecode/ClassFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18223,
12,
1305,
966,
1131,
617,
13,
1216,
19072,
4419,
503,
288,
3639,
1842,
9895,
1305,
12,
1154,
617,
1769,
3639,
2590,
18,
1289,
12,
1154,
617,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18223,
12,
1305,
966,
1131,
617,
13,
1216,
19072,
4419,
503,
288,
3639,
1842,
9895,
1305,
12,
1154,
617,
1769,
3639,
2590,
18,
1289,
12,
1154,
617,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
List objectList = null; if (objectLookup != null) { objectList = (List) objectLookup.get(objectClass); | List objectList = null; if (objectLookup != null) { objectList = (List) objectLookup.get(objectClass); } if (objectList == null) { objectList = addContributorsFor(objectClass); if (objectList.size() == 0) objectList = EMPTY_LIST; cacheObjectLookup(objectClass, objectList); } return objectList; | protected List getContributors(Class objectClass) { List objectList = null; // Lookup the results in the cache first if (objectLookup != null) { objectList = (List) objectLookup.get(objectClass); } // If not in cache, build it if (objectList == null) { objectList = addContributorsFor(objectClass); if (objectList.size() == 0) objectList = EMPTY_LIST; // Store the contribution list into the cache. cacheObjectLookup(objectClass, objectList); } return objectList;} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f8685b0522e26c22b4270aa9a9be3499a2547f89/ObjectContributorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ObjectContributorManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
987,
336,
442,
665,
13595,
12,
797,
23992,
13,
288,
202,
682,
733,
682,
273,
446,
31,
202,
202,
759,
8834,
326,
1686,
316,
326,
1247,
1122,
202,
430,
261,
1612,
6609,
480,
446,
13,
288,
202,
202,
1612,
682,
273,
261,
682,
13,
733,
6609,
18,
588,
12,
1612,
797,
1769,
202,
97,
202,
202,
759,
971,
486,
316,
1247,
16,
1361,
518,
202,
430,
261,
1612,
682,
422,
446,
13,
288,
202,
202,
1612,
682,
273,
527,
442,
665,
13595,
1290,
12,
1612,
797,
1769,
202,
202,
430,
261,
1612,
682,
18,
1467,
1435,
422,
374,
13,
1082,
202,
1612,
682,
273,
8984,
67,
7085,
31,
6862,
202,
759,
4994,
326,
24880,
666,
1368,
326,
1247,
18,
202,
202,
2493,
921,
6609,
12,
1612,
797,
16,
733,
682,
1769,
202,
97,
202,
2463,
733,
682,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
987,
336,
442,
665,
13595,
12,
797,
23992,
13,
288,
202,
682,
733,
682,
273,
446,
31,
202,
202,
759,
8834,
326,
1686,
316,
326,
1247,
1122,
202,
430,
261,
1612,
6609,
480,
446,
13,
288,
202,
202,
1612,
682,
273,
261,
682,
13,
733,
6609,
18,
588,
12,
1612,
797,
1769,
202,
97,
202,
202,
759,
971,
486,
316,
1247,
16,
1361,
518,
202,
430,
261,
1612,
682,
422,
446,
13,
288,
202,
202,
1612,
682,
273,
527,
442,
665,
13595,
1290,
12,
1612,
797,
1769,
202,
202,
430,
261,
1612,
682,
18,
1467,
1435,
422,
374,
13,
1082,
202,
1612,
682,
273,
8984,
67,
7085,
31,
6862,
202,
759,
4994,
326,
24880,
666,
1368,
326,
1247,
2
] |
seq[i] = getArgument(i).eval(docs, contextSequence, contextItem); | seq[i] = getArgument(i).eval(contextSequence, contextItem); | public Sequence eval( DocumentSet docs, Sequence contextSequence, Item contextItem) throws XPathException { Sequence[] seq = new Sequence[getArgumentCount()]; for(int i = 0; i < getArgumentCount(); i++) { seq[i] = getArgument(i).eval(docs, contextSequence, contextItem); } functionDef.setArguments(seq); context.pushLocalContext(true); Sequence returnSeq = expression.eval(docs, contextSequence, contextItem); context.popLocalContext(); return returnSeq; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/78bd70965f202738e2ca56dacfd71f5d58c0db69/FunctionCall.java/buggy/src/org/exist/xpath/FunctionCall.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8370,
5302,
12,
202,
202,
2519,
694,
3270,
16,
202,
202,
4021,
819,
4021,
16,
202,
202,
1180,
819,
1180,
13,
202,
202,
15069,
10172,
503,
288,
202,
202,
4021,
8526,
3833,
273,
394,
8370,
63,
588,
1379,
1380,
1435,
15533,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
11950,
1380,
5621,
277,
27245,
288,
1082,
202,
5436,
63,
77,
65,
273,
11950,
12,
77,
2934,
8622,
12,
8532,
16,
819,
4021,
16,
819,
1180,
1769,
202,
202,
97,
202,
202,
915,
3262,
18,
542,
4628,
12,
5436,
1769,
9506,
202,
2472,
18,
6206,
2042,
1042,
12,
3767,
1769,
202,
202,
4021,
327,
6926,
273,
2652,
18,
8622,
12,
8532,
16,
819,
4021,
16,
819,
1180,
1769,
202,
202,
2472,
18,
5120,
2042,
1042,
5621,
202,
202,
2463,
327,
6926,
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,
8370,
5302,
12,
202,
202,
2519,
694,
3270,
16,
202,
202,
4021,
819,
4021,
16,
202,
202,
1180,
819,
1180,
13,
202,
202,
15069,
10172,
503,
288,
202,
202,
4021,
8526,
3833,
273,
394,
8370,
63,
588,
1379,
1380,
1435,
15533,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
11950,
1380,
5621,
277,
27245,
288,
1082,
202,
5436,
63,
77,
65,
273,
11950,
12,
77,
2934,
8622,
12,
8532,
16,
819,
4021,
16,
819,
1180,
1769,
202,
202,
97,
202,
202,
915,
3262,
18,
542,
4628,
12,
5436,
1769,
9506,
202,
2472,
18,
6206,
2042,
1042,
12,
3767,
1769,
202,
202,
4021,
327,
6926,
273,
2652,
18,
8622,
12,
8532,
16,
819,
4021,
2
] |
/* * 'true' if the syntax (XML or standard) of the file is given * from external information: either via a JSP configuration element, * the ".jspx" suffix, or the enclosing file (for included resources) */ boolean isExternal = false; | /* * 'true' if the syntax (XML or standard) of the file is given * from external information: either via a JSP configuration element, * the ".jspx" suffix, or the enclosing file (for included resources) */ boolean isExternal = false; | private void determineSyntaxAndEncoding(String absFileName, JarFile jarFile, String jspConfigPageEnc) throws JasperException, IOException { isXml = false; /* * 'true' if the syntax (XML or standard) of the file is given * from external information: either via a JSP configuration element, * the ".jspx" suffix, or the enclosing file (for included resources) */ boolean isExternal = false; /* * Indicates whether we need to revert from temporary usage of * "ISO-8859-1" back to "UTF-8" */ boolean revert = false; JspConfig jspConfig = ctxt.getOptions().getJspConfig(); JspConfig.JspProperty jspProperty = jspConfig.findJspProperty( absFileName); if (jspProperty.isXml() != null) { // If <is-xml> is specified in a <jsp-property-group>, it is used. isXml = JspUtil.booleanValue(jspProperty.isXml()); isExternal = true; } else if (absFileName.endsWith(".jspx") || absFileName.endsWith(".tagx")) { isXml = true; isExternal = true; } if (isExternal && !isXml) { // JSP (standard) syntax. Use encoding specified in jsp-config // if provided. sourceEnc = jspConfigPageEnc; if (sourceEnc != null) { return; } // We don't know the encoding, so use BOM to determine it sourceEnc = "ISO-8859-1"; } else { // XML syntax or unknown, (auto)detect encoding ... Object[] ret = XMLEncodingDetector.getEncoding(absFileName, jarFile, ctxt, err); sourceEnc = (String) ret[0]; if (((Boolean) ret[1]).booleanValue()) { isEncodingSpecifiedInProlog = true; } if (((Boolean) ret[2]).booleanValue()) { isBomPresent = true; } if (!isXml && sourceEnc.equals("UTF-8")) { /* * We don't know if we're dealing with XML or standard syntax. * Therefore, we need to check to see if the page contains * a <jsp:root> element. * * We need to be careful, because the page may be encoded in * ISO-8859-1 (or something entirely different), and may * contain byte sequences that will cause a UTF-8 converter to * throw exceptions. * * It is safe to use a source encoding of ISO-8859-1 in this * case, as there are no invalid byte sequences in ISO-8859-1, * and the byte/character sequences we're looking for (i.e., * <jsp:root>) are identical in either encoding (both UTF-8 * and ISO-8859-1 are extensions of ASCII). */ sourceEnc = "ISO-8859-1"; revert = true; } } if (isXml) { // (This implies 'isExternal' is TRUE.) // We know we're dealing with a JSP document (via JSP config or // ".jspx" suffix), so we're done. return; } /* * At this point, 'isExternal' or 'isXml' is FALSE. * Search for jsp:root action, in order to determine if we're dealing * with XML or standard syntax (unless we already know what we're * dealing with, i.e., when 'isExternal' is TRUE and 'isXml' is FALSE). * No check for XML prolog, since nothing prevents a page from * outputting XML and still using JSP syntax (in this case, the * XML prolog is treated as template text). */ JspReader jspReader = null; try { jspReader = new JspReader(ctxt, absFileName, sourceEnc, jarFile, err); } catch (FileNotFoundException ex) { throw new JasperException(ex); } jspReader.setSingleFile(true); Mark startMark = jspReader.mark(); if (!isExternal) { jspReader.reset(startMark); if (hasJspRoot(jspReader)) { if (revert) sourceEnc = "UTF-8"; isXml = true; return; } else { if (revert && isBomPresent) sourceEnc = "UTF-8"; isXml = false; } } /* * At this point, we know we're dealing with JSP syntax. * If an XML prolog is provided, it's treated as template text. * Determine the page encoding from the page directive, unless it's * specified via JSP config. */ if (sourceEnc == null) { sourceEnc = jspConfigPageEnc; if (sourceEnc == null) { sourceEnc = getPageEncodingForJspSyntax(jspReader, startMark); if (sourceEnc == null) { // Default to "ISO-8859-1" per JSP spec sourceEnc = "ISO-8859-1"; isDefaultPageEncoding = true; } } } } | 26330 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26330/6742cb8e2facefed0a144762d397571cc17eb04d/ParserController.java/clean/java/org/apache/jasper/compiler/ParserController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4199,
8070,
1876,
4705,
12,
780,
2417,
4771,
16,
25083,
565,
15644,
812,
22588,
16,
25083,
565,
514,
22535,
809,
1964,
4280,
13,
202,
3639,
1216,
804,
345,
457,
503,
16,
1860,
288,
202,
291,
4432,
273,
629,
31,
202,
20308,
202,
380,
296,
3767,
11,
309,
326,
6279,
261,
4201,
578,
4529,
13,
434,
326,
585,
353,
864,
202,
380,
628,
3903,
1779,
30,
3344,
3970,
279,
804,
3118,
1664,
930,
16,
202,
380,
326,
3552,
24926,
92,
6,
3758,
16,
578,
326,
16307,
585,
261,
1884,
5849,
2703,
13,
202,
1195,
202,
6494,
353,
6841,
273,
629,
31,
202,
20308,
202,
380,
18336,
2856,
732,
1608,
358,
15226,
628,
6269,
4084,
434,
202,
380,
315,
12609,
17,
17258,
17,
21,
6,
1473,
358,
315,
5159,
17,
28,
6,
202,
1195,
202,
6494,
15226,
273,
629,
31,
3639,
19300,
809,
22535,
809,
273,
14286,
18,
588,
1320,
7675,
588,
21796,
809,
5621,
3639,
19300,
809,
18,
21796,
1396,
22535,
1396,
273,
22535,
809,
18,
4720,
21796,
1396,
12,
4766,
27573,
2417,
4771,
1769,
3639,
309,
261,
24926,
1396,
18,
291,
4432,
1435,
480,
446,
13,
288,
5411,
368,
971,
411,
291,
17,
2902,
34,
353,
1269,
316,
279,
411,
24926,
17,
4468,
17,
1655,
20401,
518,
353,
1399,
18,
5411,
353,
4432,
273,
19300,
1304,
18,
6494,
620,
12,
24926,
1396,
18,
291,
4432,
10663,
202,
565,
353,
6841,
273,
638,
31,
202,
97,
469,
309,
261,
5113,
4771,
18,
5839,
1190,
2932,
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,
4199,
8070,
1876,
4705,
12,
780,
2417,
4771,
16,
25083,
565,
15644,
812,
22588,
16,
25083,
565,
514,
22535,
809,
1964,
4280,
13,
202,
3639,
1216,
804,
345,
457,
503,
16,
1860,
288,
202,
291,
4432,
273,
629,
31,
202,
20308,
202,
380,
296,
3767,
11,
309,
326,
6279,
261,
4201,
578,
4529,
13,
434,
326,
585,
353,
864,
202,
380,
628,
3903,
1779,
30,
3344,
3970,
279,
804,
3118,
1664,
930,
16,
202,
380,
326,
3552,
24926,
92,
6,
3758,
16,
578,
326,
16307,
585,
261,
1884,
5849,
2703,
13,
202,
1195,
202,
6494,
353,
6841,
273,
629,
31,
202,
20308,
202,
380,
18336,
2856,
732,
1608,
358,
15226,
628,
6269,
4084,
434,
202,
380,
2
] |
pcTry = idata.itsExceptionTable[handlerOffset]; | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { return execWithNewDomain(cx, scope, thisObj, args, argsDbl, argShift, argCount, fnOrScript, idata); } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!f.itsUseDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Context.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; 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; Loop: for (;;) { try { switch (iCode[pc] & 0xff) { // Back indent to ease imlementation reading case TokenStream.TRY : // Skip starting pc of catch/finally blocks and with depth pc += 6; break; case TokenStream.CATCH: { // See comments in generateICodeFromTree: the following code should // be executed inside try/catch inside main loop, not in the loop catch // block itself if (javaException == null) Context.codeBug(); int pcTry = -1; int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof WrappedException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script pcTry = idata.itsExceptionTable[handlerOffset]; if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError int catch_offset = getShort(iCode, pcTry + 1); if (catch_offset != 0) { // Has catch block doCatch = true; pcNew = pcTry + catch_offset; } } if (pcNew < 0) { int finally_offset = getShort(iCode, pcTry + 3); if (finally_offset != 0) { // has finally block pcNew = pcTry + finally_offset; } } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = getIndex(iCode, pcTry + 5); while (tryWithDepth != withDepth) { if (scope == null) Context.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } // make stack to contain single exception object stackTop = STACK_SHFT; if (doCatch) { stack[stackTop] = ScriptRuntime.getCatchObject(cx, scope, javaException); } else { // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and 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 = pcNew; continue Loop; } case TokenStream.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; javaException = new JavaScriptException(value); exceptionPC = pc; if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case TokenStream.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double 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; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double 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; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double 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; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double 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 : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double 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 Loop; } pc += 2; break; } case TokenStream.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double 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 Loop; } 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 Loop; case GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; 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 Loop; case RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case TokenStream.POP : stack[stackTop] = null; 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]); stack[stackTop] = null; --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case RETURN_UNDEF_ICODE : result = undefined; break Loop; case END_ICODE: break Loop; case TokenStream.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case TokenStream.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case TokenStream.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case TokenStream.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case TokenStream.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case TokenStream.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case TokenStream.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double 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 : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case TokenStream.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case TokenStream.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case TokenStream.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case TokenStream.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double 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 : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case TokenStream.BINDNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case TokenStream.GETBASE : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case TokenStream.SETNAME : { String name = strings[getIndex(iCode, pc + 1)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; // what about class cast exception here for lhs? Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case TokenStream.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case TokenStream.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case TokenStream.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object 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 : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case TokenStream.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case TokenStream.ELEMINC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; } case TokenStream.ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; } case TokenStream.GETTHIS : { Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis(lhs); break; } case TokenStream.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.USETEMP : { int 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 callType = iCode[pc + 1] & 0xFF; boolean isNew = (iCode[pc + 2] != 0); int sourceLine = getShort(iCode, pc + 3); String sourceName = strings[getIndex(iCode, pc + 5)]; int count = getIndex(iCode, pc + 7); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, sourceName, sourceLine); pc += 8; instructionCount = cx.instructionCount; break; } case TokenStream.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), calleeScope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 3); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc + 1)]; if (lhs == null) lhs = undefined; } throw NativeGlobal.typeError1 ("msg.isnt.function", ScriptRuntime.toString(lhs), scope); } pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case TokenStream.TYPEOFNAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case TokenStream.STRING : stack[++stackTop] = strings[getIndex(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] = idata.itsDoubleTable[getIndex(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case TokenStream.NAMEINC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postIncrement(scope, name); pc += 2; break; } case TokenStream.NAMEDEC : { String name = strings[getIndex(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.postDecrement(scope, name); pc += 2; break; } case TokenStream.SETVAR : { int slot = (iCode[++pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.GETVAR : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } break; } case TokenStream.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { 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; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) + 1.0); activationPut(fnOrScript, scope, slot, val); } break; } case TokenStream.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; if (!useActivationVars) { 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; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; val = doubleWrap(ScriptRuntime.toNumber(val) - 1.0); activationPut(fnOrScript, scope, slot, val); } 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.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case TokenStream.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime.nextEnum(val); break; } case TokenStream.GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case TokenStream.GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case TokenStream.GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case TokenStream.SETPROTO : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; } case TokenStream.SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object 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 : { int i = getIndex(iCode, pc + 1); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case TokenStream.REGEXP : { int i = getIndex(iCode, pc + 1); stack[++stackTop] = idata.itsRegExpLiterals[i]; pc += 2; break; } case SOURCEFILE_ICODE : cx.interpreterSourceFile = idata.itsSourceFile; break; case LINE_ICODE : { int line = getShort(iCode, pc + 1); cx.interpreterLine = line; if (debuggerFrame != null) { debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException ("Unknown icode : "+(iCode[pc] & 0xff)+" @ pc : "+pc); } // end of interpreter switch } 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; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/38ae6b7b28f58f41fe9946ef4ee10d7bad328673/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
327,
1196,
1190,
1908,
3748,
12,
71,
92,
16,
2146,
16,
15261,
16,
19694,
833,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
16,
19694,
2295,
1162,
3651,
16,
612,
396,
1769,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
31,
3639,
727,
509,
11464,
67,
2664,
4464,
273,
15234,
67,
2664,
4464,
397,
612,
396,
18,
1282,
2747,
1333,
1031,
31,
759,
2110,
63,
7716,
67,
2664,
4464,
1648,
277,
411,
15234,
67,
2664,
4464,
14542,
3152,
759,
2110,
63,
14922,
67,
2664,
4464,
1648,
277,
411,
4235,
61,
67,
21971,
67,
2664,
4464,
14542,
1399,
364,
394,
5814,
19,
407,
278,
30752,
759,
2110,
63,
21971,
67,
2664,
4464,
1648,
277,
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,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
327,
1196,
1190,
1908,
3748,
12,
71,
92,
16,
2146,
16,
15261,
16,
19694,
833,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
16,
19694,
2295,
1162,
3651,
16,
612,
396,
1769,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
2
] | |
String returnType = TypeGenerator.qualifiedClassName(params, type); String methodName = TypeGenerator.className(type) + "FromTerm"; | String returnType = TypeGenerator.qualifiedClassName(params, type); String methodName = TypeGenerator.className(type) + "FromTerm"; | private void genTypeFromTermMethod(Type type) { JavaGenerationParameters params = getJavaGenerationParameters(); String returnType = TypeGenerator.qualifiedClassName(params, type); String methodName = TypeGenerator.className(type) + "FromTerm"; println(" public " + returnType + " " + methodName + "(aterm.ATerm trm) {"); println(" " + returnType + " tmp;"); genAltFromTermCalls(type); println( " throw new IllegalArgumentException(\"This is not a " + TypeGenerator.className(type) + ": \" + trm);"); println(" }"); println(); } | 3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/8a7f5eefd6d08ce575d82dee6d963fc83f20a5c0/FactoryGenerator.java/clean/apigen/src/apigen/gen/java/FactoryGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
559,
1265,
4065,
1305,
12,
559,
618,
13,
288,
202,
202,
5852,
13842,
2402,
859,
273,
18911,
13842,
2402,
5621,
202,
202,
780,
9424,
273,
1412,
3908,
18,
19724,
3834,
12,
2010,
16,
618,
1769,
202,
202,
780,
4918,
273,
1412,
3908,
18,
12434,
12,
723,
13,
397,
315,
1265,
4065,
14432,
202,
202,
8222,
2932,
225,
1071,
315,
397,
9424,
397,
315,
315,
397,
4918,
397,
7751,
270,
1035,
18,
789,
1035,
433,
81,
13,
288,
8863,
202,
202,
8222,
2932,
565,
315,
397,
9424,
397,
315,
1853,
4868,
1769,
202,
202,
4507,
10655,
1265,
4065,
10125,
12,
723,
1769,
202,
202,
8222,
12,
1082,
202,
6,
565,
604,
394,
2754,
23031,
2503,
353,
486,
279,
315,
397,
1412,
3908,
18,
12434,
12,
723,
13,
397,
6398,
1239,
397,
433,
81,
1769,
8863,
202,
202,
8222,
2932,
225,
289,
8863,
202,
202,
8222,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
559,
1265,
4065,
1305,
12,
559,
618,
13,
288,
202,
202,
5852,
13842,
2402,
859,
273,
18911,
13842,
2402,
5621,
202,
202,
780,
9424,
273,
1412,
3908,
18,
19724,
3834,
12,
2010,
16,
618,
1769,
202,
202,
780,
4918,
273,
1412,
3908,
18,
12434,
12,
723,
13,
397,
315,
1265,
4065,
14432,
202,
202,
8222,
2932,
225,
1071,
315,
397,
9424,
397,
315,
315,
397,
4918,
397,
7751,
270,
1035,
18,
789,
1035,
433,
81,
13,
288,
8863,
202,
202,
8222,
2932,
565,
315,
397,
9424,
397,
315,
1853,
4868,
1769,
202,
202,
4507,
10655,
1265,
4065,
10125,
12,
723,
1769,
202,
202,
8222,
12,
1082,
202,
6,
565,
604,
394,
2754,
23031,
2503,
2
] |
public boolean eIsSet( EStructuralFeature eFeature ) | public boolean eIsSet( int featureID ) | public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.EMBEDDED_IMAGE__TYPE : return isSetType( ); case AttributePackage.EMBEDDED_IMAGE__URL : return URL_EDEFAULT == null ? uRL != null : !URL_EDEFAULT.equals( uRL ); case AttributePackage.EMBEDDED_IMAGE__DATA : return DATA_EDEFAULT == null ? data != null : !DATA_EDEFAULT.equals( data ); } return eDynamicIsSet( eFeature ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/EmbeddedImageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/EmbeddedImageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
2399,
294,
9506,
202,
2463,
13532,
559,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
1785,
294,
9506,
202,
2463,
1976,
67,
11236,
422,
446,
692,
582,
54,
48,
480,
446,
25083,
202,
30,
401,
1785,
67,
11236,
18,
14963,
12,
582,
54,
48,
11272,
1082,
202,
3593,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
4883,
294,
9506,
202,
2463,
8730,
67,
11236,
422,
446,
692,
501,
480,
446,
25083,
202,
30,
401,
4883,
67,
11236,
18,
14963,
12,
501,
11272,
202,
202,
97,
202,
202,
2463,
425,
9791,
15737,
12,
425,
4595,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
2399,
294,
9506,
202,
2463,
13532,
559,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
1785,
294,
9506,
202,
2463,
1976,
67,
11236,
422,
446,
692,
582,
54,
48,
480,
446,
25083,
202,
30,
401,
1785,
67,
11236,
18,
14963,
12,
582,
54,
48,
11272,
1082,
202,
3593,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
4883,
294,
9506,
202,
2463,
8730,
67,
11236,
422,
446,
692,
501,
480,
2
] |
remove(obj.getOID()); | m_pssn.remove(m_data, m_pprop, obj); | public void remove(DataObject obj) { remove(obj.getOID()); } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/aa917d9730b075c22b50c9c9b74ff04fb373d38b/DataAssociationImpl.java/clean/archive/proto/src/com/arsdigita/persistence/DataAssociationImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
12,
21881,
1081,
13,
288,
3639,
312,
67,
84,
1049,
82,
18,
4479,
12,
81,
67,
892,
16,
312,
67,
84,
5986,
16,
1081,
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,
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,
377,
1071,
918,
1206,
12,
21881,
1081,
13,
288,
3639,
312,
67,
84,
1049,
82,
18,
4479,
12,
81,
67,
892,
16,
312,
67,
84,
5986,
16,
1081,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public XHtmlLexer() { this(new XmlLexer()); | protected XHtmlLexer(Lexer baseLexer) { super(baseLexer,false); | public XHtmlLexer() { this(new XmlLexer()); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/a63526f49b61ea0513bbc54301db43ed306c4182/XHtmlLexer.java/buggy/source/com/intellij/lexer/XHtmlLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1139,
4353,
13356,
1435,
288,
565,
333,
12,
2704,
5714,
13356,
10663,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1139,
4353,
13356,
1435,
288,
565,
333,
12,
2704,
5714,
13356,
10663,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ruby.getRuntime().callSuper(args); | return ruby.getRuntime().callSuper(args); | public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iterator(); while (iter.hasNext()) { Method method = (Method)iter.next(); if (method.getParameterTypes().length != argsLength) { iter.remove(); } } // remove mehods with wrong parameter types. iter = executeMethods.iterator(); while (iter.hasNext()) { Method method = (Method)iter.next(); for (int i = 0; i < method.getParameterTypes().length; i++) { if (!JavaUtil.isCompatible(args[i], method.getParameterTypes()[i])) { iter.remove(); break; } } } if (executeMethods.isEmpty()) { if (callSuper) { ruby.getRuntime().callSuper(args); } else { throw new ArgumentError(ruby, "wrong argument count or types."); } } // take the first method. Method method = (Method)executeMethods.getFirst(); Object[] newArgs = new Object[argsLength]; for (int i = 0; i < argsLength; i++) { newArgs[i] = JavaUtil.convertRubyToJava(ruby, args[i], method.getParameterTypes()[i]); } try { Object receiver = !singleton ? ((RubyJavaObject)recv).getValue() : null; return JavaUtil.convertJavaToRuby(ruby, method.invoke(receiver, newArgs)); } catch (Exception excptn) { throw new RaiseException(ruby, "RuntimeError", excptn.getMessage()); } } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/802cbe506d8eeeb71320b3dc7c472bddfcdb98ba/JavaMethod.java/buggy/org/jruby/javasupport/JavaMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
1836,
12,
54,
10340,
921,
10665,
16,
19817,
921,
8526,
833,
16,
19817,
22155,
13,
288,
3639,
10688,
1836,
4712,
273,
394,
10688,
12,
12726,
18,
345,
682,
12,
5163,
10019,
7734,
509,
833,
1782,
273,
833,
480,
446,
692,
833,
18,
2469,
294,
374,
31,
7734,
368,
1206,
1791,
76,
369,
87,
598,
7194,
1569,
1056,
18,
3639,
4498,
1400,
273,
1836,
4712,
18,
9838,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
5411,
2985,
707,
273,
261,
1305,
13,
2165,
18,
4285,
5621,
5411,
309,
261,
2039,
18,
588,
1662,
2016,
7675,
2469,
480,
833,
1782,
13,
288,
7734,
1400,
18,
4479,
5621,
5411,
289,
3639,
289,
7734,
368,
1206,
1791,
76,
369,
87,
598,
7194,
1569,
1953,
18,
3639,
1400,
273,
1836,
4712,
18,
9838,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
5411,
2985,
707,
273,
261,
1305,
13,
2165,
18,
4285,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
707,
18,
588,
1662,
2016,
7675,
2469,
31,
277,
27245,
288,
7734,
309,
16051,
5852,
1304,
18,
291,
14599,
12,
1968,
63,
77,
6487,
707,
18,
588,
1662,
2016,
1435,
63,
77,
22643,
288,
10792,
1400,
18,
4479,
5621,
10792,
898,
31,
7734,
289,
5411,
289,
3639,
289,
7734,
309,
261,
8837,
4712,
18,
291,
1921,
10756,
288,
5411,
309,
261,
1991,
8051,
13,
288,
2398,
202,
2463,
22155,
18,
588,
5576,
7675,
1991,
8051,
12,
1968,
1769,
5411,
289,
469,
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,
19817,
921,
1836,
12,
54,
10340,
921,
10665,
16,
19817,
921,
8526,
833,
16,
19817,
22155,
13,
288,
3639,
10688,
1836,
4712,
273,
394,
10688,
12,
12726,
18,
345,
682,
12,
5163,
10019,
7734,
509,
833,
1782,
273,
833,
480,
446,
692,
833,
18,
2469,
294,
374,
31,
7734,
368,
1206,
1791,
76,
369,
87,
598,
7194,
1569,
1056,
18,
3639,
4498,
1400,
273,
1836,
4712,
18,
9838,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
5411,
2985,
707,
273,
261,
1305,
13,
2165,
18,
4285,
5621,
5411,
309,
261,
2039,
18,
588,
1662,
2016,
7675,
2469,
480,
833,
1782,
13,
288,
7734,
1400,
18,
4479,
5621,
5411,
289,
3639,
289,
7734,
368,
1206,
1791,
2
] |
public void createExtensionPoint(long contributorId, String extensionPointId, String extensionPointLabel, String schemaLocation) { | public void createExtensionPoint(String contributorId, String extensionPointId, String extensionPointLabel, String schemaLocation) { | public void createExtensionPoint(long contributorId, String extensionPointId, String extensionPointLabel, String schemaLocation) { // Extension point Id might not be null if (extensionPointId == null) { String message = NLS.bind(RegistryMessages.create_failedExtensionPoint, extensionPointLabel); log(new Status(IStatus.ERROR, RegistryMessages.OWNER_NAME, 0, message, null)); } // prepare namespace information String namespaceName = getNamespace(contributorId); long namespaceOwnerId = getNamespaceOwnerId(contributorId); // addition wraps in a contribution Contribution contribution = getElementFactory().createContribution(contributorId, true); ExtensionPoint currentExtPoint = getElementFactory().createExtensionPoint(true); String uniqueId = namespaceName + '.' + extensionPointId; currentExtPoint.setUniqueIdentifier(uniqueId); String labelNLS = translate(extensionPointLabel, null); currentExtPoint.setLabel(labelNLS); currentExtPoint.setSchema(schemaLocation); getObjectManager().addExtensionPoint(currentExtPoint, true); currentExtPoint.setNamespace(namespaceName); currentExtPoint.setNamespaceOwnerId(namespaceOwnerId); // array format: {Number of extension points, Number of extensions, Extension Id} int[] contributionChildren = new int[3]; // Put the extension points into this namespace contributionChildren[Contribution.EXTENSION_POINT] = 1; contributionChildren[Contribution.EXTENSION] = 0; contributionChildren[Contribution.EXTENSION + 1] = currentExtPoint.getObjectId(); contribution.setRawChildren(contributionChildren); add(contribution); } | 13530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13530/227ba024e2ac043be212c22a719fae92a7b2b445/ExtensionRegistry.java/clean/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3625,
2148,
12,
5748,
31123,
548,
16,
514,
2710,
2148,
548,
16,
514,
2710,
2148,
2224,
16,
514,
1963,
2735,
13,
288,
202,
202,
759,
10021,
1634,
3124,
4825,
486,
506,
446,
202,
202,
430,
261,
6447,
2148,
548,
422,
446,
13,
288,
1082,
202,
780,
883,
273,
29117,
18,
4376,
12,
4243,
5058,
18,
2640,
67,
7307,
3625,
2148,
16,
2710,
2148,
2224,
1769,
1082,
202,
1330,
12,
2704,
2685,
12,
45,
1482,
18,
3589,
16,
5438,
5058,
18,
29602,
67,
1985,
16,
374,
16,
883,
16,
446,
10019,
202,
202,
97,
202,
202,
759,
2911,
1981,
1779,
202,
202,
780,
1981,
461,
273,
11153,
12,
591,
19293,
548,
1769,
202,
202,
5748,
1981,
5541,
548,
273,
11153,
5541,
548,
12,
591,
19293,
548,
1769,
202,
202,
759,
2719,
9059,
316,
279,
24880,
202,
202,
442,
4027,
24880,
273,
7426,
1733,
7675,
2640,
442,
4027,
12,
591,
19293,
548,
16,
638,
1769,
202,
202,
3625,
2148,
783,
2482,
2148,
273,
7426,
1733,
7675,
2640,
3625,
2148,
12,
3767,
1769,
202,
202,
780,
22345,
273,
1981,
461,
397,
2611,
397,
2710,
2148,
548,
31,
202,
202,
2972,
2482,
2148,
18,
542,
6303,
3004,
12,
6270,
548,
1769,
202,
202,
780,
1433,
5106,
273,
4204,
12,
6447,
2148,
2224,
16,
446,
1769,
202,
202,
2972,
2482,
2148,
18,
542,
2224,
12,
1925,
5106,
1769,
202,
202,
2972,
2482,
2148,
18,
542,
3078,
12,
4821,
2735,
1769,
202,
202,
588,
921,
1318,
7675,
1289,
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,
752,
3625,
2148,
12,
5748,
31123,
548,
16,
514,
2710,
2148,
548,
16,
514,
2710,
2148,
2224,
16,
514,
1963,
2735,
13,
288,
202,
202,
759,
10021,
1634,
3124,
4825,
486,
506,
446,
202,
202,
430,
261,
6447,
2148,
548,
422,
446,
13,
288,
1082,
202,
780,
883,
273,
29117,
18,
4376,
12,
4243,
5058,
18,
2640,
67,
7307,
3625,
2148,
16,
2710,
2148,
2224,
1769,
1082,
202,
1330,
12,
2704,
2685,
12,
45,
1482,
18,
3589,
16,
5438,
5058,
18,
29602,
67,
1985,
16,
374,
16,
883,
16,
446,
10019,
202,
202,
97,
202,
202,
759,
2911,
1981,
1779,
202,
202,
780,
1981,
461,
273,
11153,
12,
591,
19293,
548,
1769,
202,
202,
5748,
2
] |
public synchronized FocusListener[] getFocusListeners() { return (FocusListener[]) AWTEventMulticaster.getListeners(focusListener, FocusListener.class); | public synchronized FocusListener[] getFocusListeners() { return (FocusListener[]) AWTEventMulticaster.getListeners(focusListener, FocusListener.class); | public synchronized FocusListener[] getFocusListeners() { return (FocusListener[]) AWTEventMulticaster.getListeners(focusListener, FocusListener.class); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Component.java/clean/core/src/classpath/java/java/awt/Component.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
478,
4560,
2223,
8526,
2812,
4560,
5583,
1435,
288,
202,
202,
2463,
261,
9233,
2223,
63,
5717,
432,
8588,
1133,
5049,
335,
2440,
18,
588,
5583,
12,
13923,
2223,
16,
478,
4560,
2223,
18,
1106,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
478,
4560,
2223,
8526,
2812,
4560,
5583,
1435,
288,
202,
202,
2463,
261,
9233,
2223,
63,
5717,
432,
8588,
1133,
5049,
335,
2440,
18,
588,
5583,
12,
13923,
2223,
16,
478,
4560,
2223,
18,
1106,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
soldItem = new AdventureResult( soldItem.getItemID(), quantity ); | soldItem = new AdventureResult( soldItem.getItemId(), quantity ); | public void mouseReleased( MouseEvent e ) { if ( !finalizeTable( addTable ) ) return; AdventureResult soldItem = (AdventureResult) sellingList.getSelectedItem(); if ( soldItem == null ) return; int price = ((Integer) getValueAt( 0, 1 )).intValue(); int quantity = ((Integer) getValueAt( 0, 3 )).intValue(); if ( quantity <= 0 ) quantity = soldItem.getCount() - quantity; int limit = ((Boolean) getValueAt( 0, 4 )).booleanValue() ? 1 : 0; soldItem = new AdventureResult( soldItem.getItemID(), quantity ); setValueAt( new AdventureResult( "-select an item-", 1, false ), 0, 0 ); setValueAt( new Integer(0), 0, 1 ); setValueAt( new Integer(0), 0, 3 ); setValueAt( new Boolean(false), 0, 1 ); (new RequestThread( new AutoSellRequest( soldItem, price, limit ) )).start(); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/db652071b06715a4456f702f081fbe5b47aa5a70/StoreManageFrame.java/clean/src/net/sourceforge/kolmafia/StoreManageFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
7644,
26363,
12,
17013,
1133,
425,
262,
1082,
202,
95,
9506,
202,
430,
261,
401,
30343,
1388,
12,
527,
1388,
262,
262,
6862,
202,
2463,
31,
9506,
202,
1871,
616,
594,
1253,
272,
1673,
1180,
273,
261,
1871,
616,
594,
1253,
13,
357,
2456,
682,
18,
588,
7416,
1180,
5621,
9506,
202,
430,
261,
272,
1673,
1180,
422,
446,
262,
6862,
202,
2463,
31,
9506,
202,
474,
6205,
273,
14015,
4522,
13,
2366,
861,
12,
374,
16,
404,
262,
2934,
474,
620,
5621,
9506,
202,
474,
10457,
273,
14015,
4522,
13,
2366,
861,
12,
374,
16,
890,
262,
2934,
474,
620,
5621,
9506,
202,
430,
261,
10457,
1648,
374,
262,
6862,
202,
16172,
273,
272,
1673,
1180,
18,
588,
1380,
1435,
300,
10457,
31,
9506,
202,
474,
1800,
273,
14015,
5507,
13,
2366,
861,
12,
374,
16,
1059,
262,
2934,
6494,
620,
1435,
692,
404,
294,
374,
31,
9506,
202,
87,
1673,
1180,
273,
394,
4052,
616,
594,
1253,
12,
272,
1673,
1180,
18,
588,
1180,
734,
9334,
10457,
11272,
9506,
202,
542,
620,
861,
12,
394,
4052,
616,
594,
1253,
12,
3701,
4025,
392,
761,
17,
3113,
404,
16,
629,
262,
16,
374,
16,
374,
11272,
9506,
202,
542,
620,
861,
12,
394,
2144,
12,
20,
3631,
374,
16,
404,
11272,
9506,
202,
542,
620,
861,
12,
394,
2144,
12,
20,
3631,
374,
16,
890,
11272,
9506,
202,
542,
620,
861,
12,
394,
3411,
12,
5743,
3631,
374,
16,
404,
11272,
9506,
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,
1875,
202,
482,
918,
7644,
26363,
12,
17013,
1133,
425,
262,
1082,
202,
95,
9506,
202,
430,
261,
401,
30343,
1388,
12,
527,
1388,
262,
262,
6862,
202,
2463,
31,
9506,
202,
1871,
616,
594,
1253,
272,
1673,
1180,
273,
261,
1871,
616,
594,
1253,
13,
357,
2456,
682,
18,
588,
7416,
1180,
5621,
9506,
202,
430,
261,
272,
1673,
1180,
422,
446,
262,
6862,
202,
2463,
31,
9506,
202,
474,
6205,
273,
14015,
4522,
13,
2366,
861,
12,
374,
16,
404,
262,
2934,
474,
620,
5621,
9506,
202,
474,
10457,
273,
14015,
4522,
13,
2366,
861,
12,
374,
16,
890,
262,
2934,
474,
620,
5621,
9506,
202,
430,
261,
10457,
1648,
374,
262,
6862,
202,
16172,
273,
272,
2
] |
IResource[] resources = getSelectedResources(typeMask, shell); | IResource[] resources = getSelectedResources(typeMask); DragSource dragSource = (DragSource) event.widget; Control control = dragSource.getControl(); Shell shell = control.getShell(); ReadOnlyStateChecker checker; | public void dragFinished(DragSourceEvent event) { if (event.doit == false) { return; } final int typeMask = IResource.FOLDER | IResource.FILE; DragSource dragSource = (DragSource) event.widget; Control control = dragSource.getControl(); Shell shell = control.getShell(); if (event.detail == DND.DROP_MOVE) { IResource[] resources = getSelectedResources(typeMask, shell); //delete the old elements if (resources == null) return; for (int i = 0; i < resources.length; i++) { try { resources[i].delete(IResource.KEEP_HISTORY | IResource.FORCE, null); } catch (CoreException e) { e.printStackTrace(); } } } else if (event.detail == DND.DROP_TARGET_MOVE) { IResource[] resources = getSelectedResources(typeMask, shell); // file moved for us by OS, no need to delete the resources, just // update the view if (resources == null) return; for (int i = 0; i < resources.length; i++) { try { resources[i].refreshLocal(IResource.DEPTH_INFINITE, null); } catch (CoreException e) { e.printStackTrace(); } } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/439bcba9d48b36afc2a4337355874cd6619d5232/NavigatorDragAdapter.java/buggy/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/NavigatorDragAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8823,
10577,
12,
11728,
1830,
1133,
871,
13,
288,
202,
202,
430,
261,
2575,
18,
2896,
305,
422,
629,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
6385,
509,
618,
5796,
273,
467,
1420,
18,
17357,
571,
467,
1420,
18,
3776,
31,
202,
202,
11728,
1830,
8823,
1830,
273,
261,
11728,
1830,
13,
871,
18,
6587,
31,
202,
202,
3367,
3325,
273,
8823,
1830,
18,
588,
3367,
5621,
202,
202,
13220,
5972,
273,
3325,
18,
588,
13220,
5621,
9506,
202,
430,
261,
2575,
18,
8992,
422,
463,
2908,
18,
18768,
67,
16537,
13,
288,
1082,
202,
45,
1420,
8526,
2703,
273,
16625,
3805,
12,
723,
5796,
16,
5972,
1769,
25083,
202,
759,
3733,
326,
1592,
2186,
1082,
202,
430,
261,
4683,
422,
446,
13,
9506,
202,
2463,
31,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2703,
18,
2469,
31,
277,
27245,
288,
9506,
202,
698,
288,
6862,
202,
4683,
63,
77,
8009,
3733,
12,
45,
1420,
18,
6859,
10541,
67,
31746,
571,
467,
1420,
18,
27817,
16,
446,
1769,
9506,
202,
97,
1044,
261,
25341,
425,
13,
288,
6862,
202,
73,
18,
1188,
6332,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
2575,
18,
8992,
422,
463,
2908,
18,
18768,
67,
16374,
67,
16537,
13,
288,
1082,
202,
45,
1420,
8526,
2703,
273,
16625,
3805,
12,
723,
5796,
16,
5972,
1769,
1082,
202,
759,
585,
10456,
364,
584,
635,
5932,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8823,
10577,
12,
11728,
1830,
1133,
871,
13,
288,
202,
202,
430,
261,
2575,
18,
2896,
305,
422,
629,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
6385,
509,
618,
5796,
273,
467,
1420,
18,
17357,
571,
467,
1420,
18,
3776,
31,
202,
202,
11728,
1830,
8823,
1830,
273,
261,
11728,
1830,
13,
871,
18,
6587,
31,
202,
202,
3367,
3325,
273,
8823,
1830,
18,
588,
3367,
5621,
202,
202,
13220,
5972,
273,
3325,
18,
588,
13220,
5621,
9506,
202,
430,
261,
2575,
18,
8992,
422,
463,
2908,
18,
18768,
67,
16537,
13,
288,
1082,
202,
45,
1420,
8526,
2703,
273,
16625,
3805,
12,
723,
5796,
16,
5972,
1769,
25083,
202,
759,
2
] |
parentValue = readPropertyObjects(context, resourceName, siteRoot, false); parentValue.addAll(value); value.clear(); value.addAll(parentValue); resourceName = CmsResource.getParentFolder(resourceName); cont = (!"/".equals(resourceName)); } catch (CmsSecurityException se) { | parentProperties = readPropertyObjects(context, resourceName, siteRoot, false); parentProperties.removeAll(properties); parentProperties.addAll(properties); properties.clear(); properties.addAll(parentProperties); resourceName = CmsResource.getParentFolder(resourceName); cont = (!I_CmsConstants.C_FOLDER_SEPARATOR.equals(resourceName)); } catch (CmsSecurityException e) { | public List readPropertyObjects(CmsRequestContext context, String resourceName, String siteRoot, boolean search) throws CmsException { // read the file header CmsResource resource = readFileHeader(context, resourceName); // check the permissions checkPermissions(context, resource, I_CmsConstants.C_READ_OR_VIEW_ACCESS); // check if search mode is enabled search = search && (siteRoot != null); // check if we have the result already cached String cacheKey = getCacheKey(C_CACHE_ALL_PROPERTIES + search, context.currentProject().getId(), resource.getRootPath()); List value = (List)m_propertyCache.get(cacheKey); if (value == null) { // result not cached, let's look it up in the DB if (search) { boolean cont; siteRoot += "/"; value = (List)new ArrayList(); List parentValue; do { try { parentValue = readPropertyObjects(context, resourceName, siteRoot, false); parentValue.addAll(value); value.clear(); value.addAll(parentValue); resourceName = CmsResource.getParentFolder(resourceName); cont = (!"/".equals(resourceName)); } catch (CmsSecurityException se) { // a security exception (probably no read permission) we return the current result cont = false; } } while (cont); } else { value = m_vfsDriver.readPropertyObjects(context.currentProject(), resource); } // store the result in the cache m_propertyCache.put(cacheKey, value); } return (List) new ArrayList(value); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/59718c41db15c15a3d435b6e4a622d399c087a2a/CmsDriverManager.java/buggy/src/org/opencms/db/CmsDriverManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
1396,
4710,
12,
4747,
21426,
819,
16,
514,
9546,
16,
514,
25512,
16,
1250,
1623,
13,
1216,
11228,
288,
3639,
368,
855,
326,
585,
1446,
3639,
7630,
1058,
273,
10413,
1864,
12,
2472,
16,
9546,
1769,
7734,
368,
866,
326,
4371,
3639,
866,
6521,
12,
2472,
16,
1058,
16,
467,
67,
4747,
2918,
18,
39,
67,
6949,
67,
916,
67,
12145,
67,
13204,
1769,
3639,
368,
866,
309,
1623,
1965,
353,
3696,
3639,
1623,
273,
1623,
597,
261,
4256,
2375,
480,
446,
1769,
7734,
368,
866,
309,
732,
1240,
326,
563,
1818,
3472,
3639,
514,
9097,
273,
26528,
12,
39,
67,
8495,
67,
4685,
67,
17421,
397,
1623,
16,
819,
18,
2972,
4109,
7675,
26321,
9334,
1058,
18,
588,
21302,
10663,
3639,
987,
460,
273,
261,
682,
13,
81,
67,
4468,
1649,
18,
588,
12,
2493,
653,
1769,
3639,
309,
261,
1132,
422,
446,
13,
288,
5411,
368,
563,
486,
3472,
16,
2231,
1807,
2324,
518,
731,
316,
326,
2383,
5411,
309,
261,
3072,
13,
288,
7734,
1250,
466,
31,
7734,
25512,
1011,
4016,
31,
7734,
460,
273,
261,
682,
13,
2704,
2407,
5621,
7734,
987,
982,
620,
31,
7734,
741,
288,
10792,
775,
288,
13491,
982,
620,
273,
855,
1396,
4710,
12,
2472,
16,
9546,
16,
25512,
16,
629,
1769,
13491,
982,
620,
18,
1289,
1595,
12,
1132,
1769,
13491,
460,
18,
8507,
5621,
13491,
460,
18,
1289,
1595,
12,
2938,
620,
1769,
13491,
9546,
273,
7630,
18,
588,
3054,
3899,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
1396,
4710,
12,
4747,
21426,
819,
16,
514,
9546,
16,
514,
25512,
16,
1250,
1623,
13,
1216,
11228,
288,
3639,
368,
855,
326,
585,
1446,
3639,
7630,
1058,
273,
10413,
1864,
12,
2472,
16,
9546,
1769,
7734,
368,
866,
326,
4371,
3639,
866,
6521,
12,
2472,
16,
1058,
16,
467,
67,
4747,
2918,
18,
39,
67,
6949,
67,
916,
67,
12145,
67,
13204,
1769,
3639,
368,
866,
309,
1623,
1965,
353,
3696,
3639,
1623,
273,
1623,
597,
261,
4256,
2375,
480,
446,
1769,
7734,
368,
866,
309,
732,
1240,
326,
563,
1818,
3472,
3639,
514,
9097,
273,
26528,
12,
39,
67,
8495,
67,
4685,
67,
17421,
397,
1623,
16,
819,
18,
2972,
4109,
7675,
26321,
2
] |
" on " + now + " (GMT)"; | " on " + now + " (GMT) "; | private static void recordApproval(Context c,WorkflowItem wi, EPerson e) throws SQLException, AuthorizeException { Item item = wi.getItem(); // Get user's name + email address String usersName = getEPersonName( e ); // Get current date String now = DCDate.getCurrent().toString(); // Here's what happened String provDescription = "Approved for entry into archive by " + usersName + " on " + now + " (GMT)"; // add bitstream descriptions (name, size, checksums) provDescription += InstallItem.getBitstreamProvenanceMessage(item); // Add to item as a DC field item.addDC("description", "provenance", null, provDescription); item.update(); } | 31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/fd403dfe7904f27b1621876ef0d32faefc6175ab/WorkflowManager.java/buggy/dspace/src/org/dspace/workflow/WorkflowManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1409,
23461,
12,
1042,
276,
16,
8484,
1180,
16138,
16,
512,
8346,
425,
13,
3639,
1216,
6483,
16,
23859,
503,
565,
288,
3639,
4342,
761,
273,
16138,
18,
588,
1180,
5621,
3639,
368,
968,
729,
1807,
508,
397,
2699,
1758,
3639,
514,
3677,
461,
273,
4774,
8346,
461,
12,
425,
11272,
3639,
368,
968,
783,
1509,
3639,
514,
2037,
273,
21533,
1626,
18,
588,
3935,
7675,
10492,
5621,
3639,
368,
13743,
1807,
4121,
17497,
3639,
514,
17197,
3291,
273,
315,
31639,
364,
1241,
1368,
5052,
635,
315,
397,
3677,
461,
397,
5411,
315,
603,
315,
397,
2037,
397,
315,
261,
25315,
13,
13636,
10792,
368,
527,
28640,
15550,
261,
529,
16,
963,
16,
26829,
13,
3639,
17197,
3291,
1011,
10284,
1180,
18,
588,
5775,
3256,
626,
15856,
1079,
12,
1726,
1769,
5411,
368,
1436,
358,
761,
487,
279,
21533,
652,
3639,
761,
18,
1289,
5528,
2932,
3384,
3113,
315,
25630,
3113,
446,
16,
17197,
3291,
1769,
3639,
761,
18,
2725,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
760,
918,
1409,
23461,
12,
1042,
276,
16,
8484,
1180,
16138,
16,
512,
8346,
425,
13,
3639,
1216,
6483,
16,
23859,
503,
565,
288,
3639,
4342,
761,
273,
16138,
18,
588,
1180,
5621,
3639,
368,
968,
729,
1807,
508,
397,
2699,
1758,
3639,
514,
3677,
461,
273,
4774,
8346,
461,
12,
425,
11272,
3639,
368,
968,
783,
1509,
3639,
514,
2037,
273,
21533,
1626,
18,
588,
3935,
7675,
10492,
5621,
3639,
368,
13743,
1807,
4121,
17497,
3639,
514,
17197,
3291,
273,
315,
31639,
364,
1241,
1368,
5052,
635,
315,
397,
3677,
461,
397,
5411,
315,
603,
315,
397,
2037,
397,
315,
261,
25315,
13,
13636,
10792,
368,
527,
28640,
15550,
261,
529,
16,
963,
16,
26829,
13,
2
] |
println(" ATermList result;"); println(); println(" if (ATisEmpty(list) || ATgetLength(list) == 1) {"); println(" return arg;"); println(" }"); println(); println(" result = ATmakeList1(ATgetFirst(list));"); println(listNext); for (int i = 0; i < sepCount; i++) { println(" sep" + i + " = ATgetFirst(list);"); println(" list = ATgetNext(list);"); } println(); println(" while (!ATisEmpty(list)) {"); for (int i = sepCount - 1; i >= 0; i--) { println(" result = ATinsert(result, sep" + i + ");"); } println(); println(" head = ATgetFirst(list);"); println(" result = ATinsert(result, head);"); println(" list = ATgetNext(list);"); println(); println(" if (!ATisEmpty(list)) {"); for (int i = 0; i < sepCount; i++) { println(" sep" + i + " = ATgetFirst(list);"); println(" list = ATgetNext(list);"); } println(" }"); println(" }"); println(); println(" return (" + typeName + ") result;"); println("}"); | println(" ATermList result;"); println(); println(" if (ATisEmpty(list) || ATgetLength(list) == 1) {"); println(" return arg;"); println(" }"); println(); println(" result = ATmakeList1(ATgetFirst(list));"); println(listNext); for (int i = 0; i < sepCount; i++) { println(" sep" + i + " = ATgetFirst(list);"); println(" list = ATgetNext(list);"); } println(); println(" while (!ATisEmpty(list)) {"); for (int i = sepCount - 1; i >= 0; i--) { println(" result = ATinsert(result, sep" + i + ");"); } println(); println(" head = ATgetFirst(list);"); println(" result = ATinsert(result, head);"); println(" list = ATgetNext(list);"); println(); println(" if (!ATisEmpty(list)) {"); for (int i = 0; i < sepCount; i++) { println(" sep" + i + " = ATgetFirst(list);"); println(" list = ATgetNext(list);"); } println(" }"); println(" }"); println(); println(" return (" + typeName + ") result;"); println("}"); | private void genSeparatedReverse( SeparatedListType type, String typeId, String typeName) { String decl = typeName + " reverse" + typeId + "(" + typeName + " arg)"; String listNext = " list = ATgetNext(list);"; int sepCount = type.getSeparators().getLength(); hprintln(decl + ";"); println(decl + " {"); println(" ATermList list = (ATermList) arg;"); println(" ATerm head;"); for (int i = 0; i < sepCount; i++) { println(" ATerm sep" + i + ";"); } println(" ATermList result;"); println(); println(" if (ATisEmpty(list) || ATgetLength(list) == 1) {"); println(" return arg;"); println(" }"); println(); println(" result = ATmakeList1(ATgetFirst(list));"); println(listNext); for (int i = 0; i < sepCount; i++) { println(" sep" + i + " = ATgetFirst(list);"); println(" list = ATgetNext(list);"); } println(); println(" while (!ATisEmpty(list)) {"); for (int i = sepCount - 1; i >= 0; i--) { println(" result = ATinsert(result, sep" + i + ");"); } println(); println(" head = ATgetFirst(list);"); println(" result = ATinsert(result, head);"); println(" list = ATgetNext(list);"); println(); println(" if (!ATisEmpty(list)) {"); for (int i = 0; i < sepCount; i++) { println(" sep" + i + " = ATgetFirst(list);"); println(" list = ATgetNext(list);"); } println(" }"); println(" }"); println(); println(" return (" + typeName + ") result;"); println("}"); } | 3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/dfc73e34bff6e386ff1bb2959e83fe3849358bb0/APIGenerator.java/buggy/apigen/src/apigen/gen/c/APIGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3157,
28174,
12650,
12,
3639,
18032,
297,
690,
19366,
618,
16,
3639,
514,
24361,
16,
3639,
514,
8173,
13,
288,
3639,
514,
3496,
273,
8173,
397,
315,
4219,
6,
397,
24361,
397,
12452,
397,
8173,
397,
315,
1501,
2225,
31,
3639,
514,
666,
2134,
273,
315,
1377,
666,
273,
14464,
588,
2134,
12,
1098,
12171,
31,
3639,
509,
5478,
1380,
273,
618,
18,
588,
16842,
3062,
7675,
588,
1782,
5621,
3639,
366,
8222,
12,
8840,
397,
11430,
1769,
3639,
3785,
12,
8840,
397,
315,
288,
8863,
3639,
3785,
2932,
225,
432,
4065,
682,
666,
273,
261,
789,
1035,
682,
13,
1501,
4868,
1769,
3639,
3785,
2932,
225,
432,
4065,
910,
4868,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5478,
1380,
31,
277,
27245,
288,
5411,
3785,
2932,
225,
432,
4065,
5478,
6,
397,
277,
397,
11430,
1769,
3639,
289,
3639,
3785,
2932,
225,
432,
4065,
682,
563,
4868,
1769,
3639,
3785,
5621,
3639,
3785,
2932,
309,
261,
789,
291,
1921,
12,
1098,
13,
747,
14464,
588,
1782,
12,
1098,
13,
422,
404,
13,
288,
8863,
3639,
3785,
2932,
565,
327,
1501,
4868,
1769,
3639,
3785,
2932,
225,
289,
8863,
3639,
3785,
5621,
3639,
3785,
2932,
225,
563,
273,
14464,
6540,
682,
21,
12,
789,
588,
3759,
12,
1098,
10019,
8863,
3639,
3785,
12,
1098,
2134,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5478,
1380,
31,
277,
27245,
288,
5411,
3785,
2932,
225,
5478,
6,
397,
277,
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,
3157,
28174,
12650,
12,
3639,
18032,
297,
690,
19366,
618,
16,
3639,
514,
24361,
16,
3639,
514,
8173,
13,
288,
3639,
514,
3496,
273,
8173,
397,
315,
4219,
6,
397,
24361,
397,
12452,
397,
8173,
397,
315,
1501,
2225,
31,
3639,
514,
666,
2134,
273,
315,
1377,
666,
273,
14464,
588,
2134,
12,
1098,
12171,
31,
3639,
509,
5478,
1380,
273,
618,
18,
588,
16842,
3062,
7675,
588,
1782,
5621,
3639,
366,
8222,
12,
8840,
397,
11430,
1769,
3639,
3785,
12,
8840,
397,
315,
288,
8863,
3639,
3785,
2932,
225,
432,
4065,
682,
666,
273,
261,
789,
1035,
682,
13,
1501,
4868,
1769,
3639,
3785,
2932,
225,
432,
4065,
910,
4868,
1769,
3639,
364,
261,
474,
2
] |
eventId = Integer.parseInt((String)params.get(EVENT)); | eventId = Long.parseLong((String)params.get(EVENT)); | public void init(Map params) { if (params.containsKey(ACTION)){ actionId = Integer.parseInt((String)params.get(ACTION)); }; if (params.containsKey(EVENT)){ eventId = Integer.parseInt((String)params.get(EVENT)); }; if (params.containsKey(STATUS)){ statusId = Integer.parseInt((String)params.get(STATUS)); }; if (params.containsKey(PROJECT)){ projectKey = (String)params.get(PROJECT); }; if (params.containsKey(ASSIGNEE)){ currentIsAssignee = (new Boolean((String)params.get(ASSIGNEE))).booleanValue(); }; if (params.containsKey(REPORTER)){ currentIsReporter = (new Boolean((String)params.get(REPORTER))).booleanValue(); }; } | 15553 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15553/0226e3155a77199cb8d9a1bbf1711ef4fe857cc4/AutoTransitionListener.java/buggy/src/java/com/atlassian/jira/toolkit/listener/AutoTransitionListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1208,
12,
863,
859,
13,
3639,
288,
5411,
309,
261,
2010,
18,
12298,
653,
12,
12249,
3719,
95,
7734,
1301,
548,
273,
2144,
18,
2670,
1702,
12443,
780,
13,
2010,
18,
588,
12,
12249,
10019,
5411,
289,
31,
5411,
309,
261,
2010,
18,
12298,
653,
12,
10454,
3719,
95,
7734,
26004,
273,
3407,
18,
2670,
3708,
12443,
780,
13,
2010,
18,
588,
12,
10454,
10019,
5411,
289,
31,
5411,
309,
261,
2010,
18,
12298,
653,
12,
8608,
3719,
95,
7734,
1267,
548,
273,
2144,
18,
2670,
1702,
12443,
780,
13,
2010,
18,
588,
12,
8608,
10019,
5411,
289,
31,
5411,
309,
261,
2010,
18,
12298,
653,
12,
17147,
3719,
95,
7734,
1984,
653,
273,
261,
780,
13,
2010,
18,
588,
12,
17147,
1769,
5411,
289,
31,
5411,
309,
261,
2010,
18,
12298,
653,
12,
8423,
3047,
5407,
41,
3719,
95,
7734,
783,
2520,
4910,
1340,
273,
261,
2704,
3411,
12443,
780,
13,
2010,
18,
588,
12,
8423,
3047,
5407,
41,
3719,
2934,
6494,
620,
5621,
5411,
289,
31,
5411,
309,
261,
2010,
18,
12298,
653,
12,
28879,
916,
2560,
3719,
95,
7734,
783,
2520,
13289,
273,
261,
2704,
3411,
12443,
780,
13,
2010,
18,
588,
12,
28879,
916,
2560,
3719,
2934,
6494,
620,
5621,
5411,
289,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1208,
12,
863,
859,
13,
3639,
288,
5411,
309,
261,
2010,
18,
12298,
653,
12,
12249,
3719,
95,
7734,
1301,
548,
273,
2144,
18,
2670,
1702,
12443,
780,
13,
2010,
18,
588,
12,
12249,
10019,
5411,
289,
31,
5411,
309,
261,
2010,
18,
12298,
653,
12,
10454,
3719,
95,
7734,
26004,
273,
3407,
18,
2670,
3708,
12443,
780,
13,
2010,
18,
588,
12,
10454,
10019,
5411,
289,
31,
5411,
309,
261,
2010,
18,
12298,
653,
12,
8608,
3719,
95,
7734,
1267,
548,
273,
2144,
18,
2670,
1702,
12443,
780,
13,
2010,
18,
588,
12,
8608,
10019,
5411,
289,
31,
5411,
309,
261,
2010,
18,
12298,
653,
12,
17147,
3719,
95,
7734,
1984,
653,
273,
261,
780,
2
] |
subcol.getPath() + "\" as \"subquery_id\" from (" + | col + "\" as \"subquery_id\" from (" + | public String getConditions() { SQLBlock block = getBlock(m_query); Path subProp; if (m_subProp == null) { Iterator paths = block.getPaths().iterator(); if (paths.hasNext()) { subProp = (Path) paths.next(); } else { return m_prop + " in (" + m_query + ")"; } if (paths.hasNext()) { throw new PersistenceException ("subquery has more than one mapping"); } } else { subProp = Path.get(m_subProp); } Path subcol = block.getMapping(subProp); if (subcol == null) { throw new MetadataException(block, "no such path: " + subProp); } return "exists ( select \"subquery_id\" from (select \"" + subcol.getPath() + "\" as \"subquery_id\" from (" + m_query + ") \"insub1\" ) \"insub2\" where " + "\"insub2\".\"subquery_id\" = " + m_prop + ")"; } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/54d1109c8784ed28fb1853ab9cc41b75b00c5168/InFilter.java/buggy/archive/proto/src/com/arsdigita/persistence/InFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
8545,
1435,
288,
202,
3997,
1768,
1203,
273,
11902,
12,
81,
67,
2271,
1769,
202,
743,
720,
4658,
31,
202,
430,
261,
81,
67,
1717,
4658,
422,
446,
13,
288,
202,
565,
4498,
2953,
273,
1203,
18,
588,
4466,
7675,
9838,
5621,
202,
565,
309,
261,
4481,
18,
5332,
2134,
10756,
288,
202,
202,
1717,
4658,
273,
261,
743,
13,
2953,
18,
4285,
5621,
202,
565,
289,
469,
288,
202,
202,
2463,
312,
67,
5986,
397,
315,
316,
7566,
397,
312,
67,
2271,
397,
7310,
31,
202,
565,
289,
202,
565,
309,
261,
4481,
18,
5332,
2134,
10756,
288,
202,
202,
12849,
394,
13381,
503,
1082,
565,
7566,
1717,
2271,
711,
1898,
2353,
1245,
2874,
8863,
202,
565,
289,
202,
97,
469,
288,
202,
565,
720,
4658,
273,
2666,
18,
588,
12,
81,
67,
1717,
4658,
1769,
202,
97,
202,
743,
720,
1293,
273,
1203,
18,
588,
3233,
12,
1717,
4658,
1769,
202,
430,
261,
1717,
1293,
422,
446,
13,
288,
202,
565,
604,
394,
6912,
503,
12,
2629,
16,
315,
2135,
4123,
589,
30,
315,
397,
720,
4658,
1769,
202,
97,
202,
2463,
315,
1808,
261,
2027,
1239,
1717,
2271,
67,
350,
2412,
628,
261,
4025,
11843,
397,
5411,
645,
397,
7023,
487,
1239,
1717,
2271,
67,
350,
2412,
628,
7566,
397,
5411,
312,
67,
2271,
397,
9369,
1239,
267,
1717,
21,
2412,
262,
1239,
267,
1717,
22,
2412,
1625,
315,
397,
5411,
7023,
267,
1717,
22,
2412,
18,
2412,
1717,
2271,
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,
336,
8545,
1435,
288,
202,
3997,
1768,
1203,
273,
11902,
12,
81,
67,
2271,
1769,
202,
743,
720,
4658,
31,
202,
430,
261,
81,
67,
1717,
4658,
422,
446,
13,
288,
202,
565,
4498,
2953,
273,
1203,
18,
588,
4466,
7675,
9838,
5621,
202,
565,
309,
261,
4481,
18,
5332,
2134,
10756,
288,
202,
202,
1717,
4658,
273,
261,
743,
13,
2953,
18,
4285,
5621,
202,
565,
289,
469,
288,
202,
202,
2463,
312,
67,
5986,
397,
315,
316,
7566,
397,
312,
67,
2271,
397,
7310,
31,
202,
565,
289,
202,
565,
309,
261,
4481,
18,
5332,
2134,
10756,
288,
202,
202,
12849,
394,
13381,
503,
1082,
565,
7566,
1717,
2271,
711,
1898,
2353,
1245,
2874,
2
] |
URL url = module.findResource( path, IResourceLocator.LIBRARY ); if ( url == null ) { DesignParserException ex = new DesignParserException( new String[]{path}, DesignParserException.DESIGN_EXCEPTION_FILE_NOT_FOUND ); List exceptionList = new ArrayList( ); exceptionList.add( ex ); throw new DesignFileException( path, exceptionList ); } | public void reloadLibrary( String location ) throws DesignFileException, SemanticException { Library library = module.getLibraryByLocation( location, IAccessControl.ARBITARY_LEVEL ); if ( library == null ) throw new LibraryException( library, null, LibraryException.DESIGN_EXCEPTION_LIBRARY_NOT_FOUND ); // find the right library to reload. while ( library != null ) { if ( library.getHost( ) == module ) break; library = (Library) library.getHost( ); } String namespace = library.getNamespace( ); IncludedLibrary includedItem = module.findIncludedLibrary( namespace ); String path = includedItem.getFileName( ); URL url = module.findResource( path, IResourceLocator.LIBRARY ); if ( url == null ) { DesignParserException ex = new DesignParserException( new String[]{path}, DesignParserException.DESIGN_EXCEPTION_FILE_NOT_FOUND ); List exceptionList = new ArrayList( ); exceptionList.add( ex ); throw new DesignFileException( path, exceptionList ); } Map overriddenValues = null; ActivityStack activityStack = getActivityStack( ); activityStack.startSilentTrans( true ); try { // must use content command to remove all virtual elements if // required. This can solve unresolving issues like DataSet, Style // references, as well as removing names from name space. overriddenValues = dealAllElementDecendents( library, RELOAD_ACTION ); doDropLibrary( library ); doAddLibrary( path, namespace, RELOAD_ACTION, overriddenValues ); } catch ( SemanticException e ) { activityStack.rollback( ); throw e; } catch ( DesignFileException e ) { activityStack.rollback( ); throw e; } // send the libraryreloadedevent first, and then commit transaction LibraryReloadedEvent event = new LibraryReloadedEvent( module .getLibraryByLocation( url.toExternalForm( ) ) ); module.broadcast( event ); // clear save state mark. activityStack.commit( ); // clear all common stack. activityStack.flush( ); module.setSaveState( 0 ); activityStack.sendNotifcations( new ActivityStackEvent( activityStack, ActivityStackEvent.DONE ) ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/504b26cb6762d96a040054da8742874243099103/LibraryCommand.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/LibraryCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7749,
9313,
12,
514,
2117,
262,
1216,
29703,
812,
503,
16,
1082,
202,
13185,
9941,
503,
202,
95,
202,
202,
9313,
5313,
273,
1605,
18,
588,
9313,
858,
2735,
12,
2117,
16,
9506,
202,
45,
16541,
18,
985,
15650,
6043,
67,
10398,
11272,
202,
202,
430,
261,
5313,
422,
446,
262,
1082,
202,
12849,
394,
18694,
503,
12,
5313,
16,
446,
16,
6862,
202,
9313,
503,
18,
1639,
11260,
67,
12658,
67,
2053,
28254,
67,
4400,
67,
9294,
11272,
202,
202,
759,
1104,
326,
2145,
5313,
358,
7749,
18,
202,
202,
17523,
261,
5313,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
5313,
18,
588,
2594,
12,
262,
422,
1605,
262,
9506,
202,
8820,
31,
1082,
202,
12083,
273,
261,
9313,
13,
5313,
18,
588,
2594,
12,
11272,
202,
202,
97,
202,
202,
780,
1981,
273,
5313,
18,
588,
3402,
12,
11272,
202,
202,
19323,
9313,
5849,
1180,
273,
1605,
18,
4720,
19323,
9313,
12,
1981,
11272,
202,
202,
780,
589,
273,
5849,
1180,
18,
588,
4771,
12,
11272,
202,
202,
1785,
880,
273,
1605,
18,
4720,
1420,
12,
589,
16,
467,
1420,
5786,
18,
2053,
28254,
11272,
202,
202,
430,
261,
880,
422,
446,
262,
202,
202,
95,
1082,
202,
15478,
25746,
431,
273,
394,
29703,
25746,
12,
6862,
202,
2704,
514,
63,
7073,
803,
5779,
6862,
202,
15478,
25746,
18,
1639,
11260,
67,
12658,
67,
3776,
67,
4400,
67,
9294,
11272,
1082,
202,
682,
1520,
682,
273,
394,
2407,
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,
7749,
9313,
12,
514,
2117,
262,
1216,
29703,
812,
503,
16,
1082,
202,
13185,
9941,
503,
202,
95,
202,
202,
9313,
5313,
273,
1605,
18,
588,
9313,
858,
2735,
12,
2117,
16,
9506,
202,
45,
16541,
18,
985,
15650,
6043,
67,
10398,
11272,
202,
202,
430,
261,
5313,
422,
446,
262,
1082,
202,
12849,
394,
18694,
503,
12,
5313,
16,
446,
16,
6862,
202,
9313,
503,
18,
1639,
11260,
67,
12658,
67,
2053,
28254,
67,
4400,
67,
9294,
11272,
202,
202,
759,
1104,
326,
2145,
5313,
358,
7749,
18,
202,
202,
17523,
261,
5313,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
5313,
18,
588,
2594,
12,
262,
422,
1605,
262,
9506,
202,
2
] | |
public Object getProperty (String propertyId) | public Object getProperty(String propertyId) | public Object getProperty (String propertyId) throws SAXNotRecognizedException { if ((PROPERTY + "declaration-handler").equals (propertyId)) return declHandler == base ? null : declHandler; if ((PROPERTY + "lexical-handler").equals (propertyId)) return lexicalHandler == base ? null : lexicalHandler; // unknown properties throw new SAXNotRecognizedException (propertyId); } | 25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/7fb7568e63c3fe14af521de4699cb37898923ca7/SAXDriver.java/clean/libjava/gnu/xml/aelfred2/SAXDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3911,
12,
780,
31894,
13,
565,
1216,
10168,
1248,
5650,
9367,
503,
565,
288,
202,
430,
14015,
9900,
397,
315,
22448,
17,
4176,
20387,
14963,
261,
4468,
548,
3719,
202,
565,
327,
3496,
1503,
422,
1026,
692,
446,
294,
3496,
1503,
31,
202,
430,
14015,
9900,
397,
315,
4149,
1706,
17,
4176,
20387,
14963,
261,
4468,
548,
3719,
202,
565,
327,
5275,
1706,
1503,
422,
1026,
692,
446,
294,
5275,
1706,
1503,
31,
202,
202,
759,
5917,
1790,
202,
12849,
394,
10168,
1248,
5650,
9367,
503,
261,
4468,
548,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3911,
12,
780,
31894,
13,
565,
1216,
10168,
1248,
5650,
9367,
503,
565,
288,
202,
430,
14015,
9900,
397,
315,
22448,
17,
4176,
20387,
14963,
261,
4468,
548,
3719,
202,
565,
327,
3496,
1503,
422,
1026,
692,
446,
294,
3496,
1503,
31,
202,
430,
14015,
9900,
397,
315,
4149,
1706,
17,
4176,
20387,
14963,
261,
4468,
548,
3719,
202,
565,
327,
5275,
1706,
1503,
422,
1026,
692,
446,
294,
5275,
1706,
1503,
31,
202,
202,
759,
5917,
1790,
202,
12849,
394,
10168,
1248,
5650,
9367,
503,
261,
4468,
548,
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
] |
p.print(Util.networkSendPrefix(dynamicOutput, Util.getBaseType(tapeType))); | p.print(Util.networkSendPrefix(dynamicOutput, CommonUtils.getBaseType(tapeType))); | private void pushArray(SIRPushExpression self, CType tapeType, JExpression val) { assert !dynamicOutput : "pushing of non-scalars at SSG boundary not supported yet"; CType baseType = ((CArrayType)tapeType).getBaseType(); String dims[] = Util.makeString(((CArrayType)tapeType).getDims()); String ARRAY_INDEX = "ARRAY_PUSH_INDEX"; //start a new block p.print("{\n"); //print the decls of the loop indices p.print (" int "); for (int i = 0; i < dims.length; i++) { p.print(ARRAY_INDEX + i); if (i < dims.length - 1) p.print(", "); } p.print(";\n"); //print the for loops for (int i = 0; i < dims.length; i++) { p.print("for (" + ARRAY_INDEX + i + " = 0; " + ARRAY_INDEX + i + " < " + dims[i] + " ; " + ARRAY_INDEX + i + "++)\n"); }// if(KjcOptions.altcodegen || KjcOptions.decoupled) { p.print("{\n"); p.print(Util.networkSendPrefix(dynamicOutput, Util.getBaseType(tapeType))); val.accept(this); for (int i = 0; i < dims.length; i++) { p.print("[" + ARRAY_INDEX + i + "]"); } p.print(Util.networkSendSuffix(dynamicOutput)); p.print(";\n}\n");// } else {// p.print("{");// p.print("static_send((" + baseType + ") ");// val.accept(this);// for (int i = 0; i < dims.length; i++) {// p.print("[" + ARRAY_INDEX + i + "]");// }// p.print(");\n}\n");// } p.print("}\n"); } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/8069637e7370bc8834fe0405b82a874da1817ee0/FlatIRToC.java/buggy/streams/src/at/dms/kjc/spacedynamic/FlatIRToC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1817,
1076,
12,
2320,
54,
7621,
2300,
365,
16,
18701,
385,
559,
268,
1273,
559,
16,
21821,
804,
2300,
1244,
13,
377,
288,
3639,
1815,
401,
14507,
1447,
294,
315,
6206,
310,
434,
1661,
17,
8748,
87,
622,
12867,
43,
7679,
486,
3260,
4671,
14432,
3639,
385,
559,
23937,
273,
14015,
39,
27182,
13,
88,
1273,
559,
2934,
588,
2171,
559,
5621,
3639,
514,
9914,
8526,
273,
3564,
18,
6540,
780,
12443,
12,
39,
27182,
13,
88,
1273,
559,
2934,
588,
25006,
10663,
3639,
514,
14884,
67,
9199,
273,
315,
8552,
67,
30348,
67,
9199,
14432,
3639,
368,
1937,
279,
394,
1203,
3639,
293,
18,
1188,
2932,
23241,
82,
8863,
3639,
368,
1188,
326,
3496,
87,
434,
326,
2798,
4295,
3639,
293,
18,
1188,
7566,
225,
509,
315,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9914,
18,
2469,
31,
277,
27245,
288,
5411,
293,
18,
1188,
12,
8552,
67,
9199,
397,
277,
1769,
5411,
309,
261,
77,
411,
9914,
18,
2469,
300,
404,
13,
7734,
293,
18,
1188,
2932,
16,
315,
1769,
3639,
289,
3639,
293,
18,
1188,
2932,
9747,
82,
8863,
3639,
368,
1188,
326,
364,
14075,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9914,
18,
2469,
31,
277,
27245,
288,
5411,
293,
18,
1188,
2932,
1884,
7566,
397,
14884,
67,
9199,
397,
277,
397,
315,
273,
374,
31,
315,
397,
10792,
14884,
67,
9199,
397,
277,
397,
315,
411,
315,
397,
9914,
63,
77,
65,
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,
1817,
1076,
12,
2320,
54,
7621,
2300,
365,
16,
18701,
385,
559,
268,
1273,
559,
16,
21821,
804,
2300,
1244,
13,
377,
288,
3639,
1815,
401,
14507,
1447,
294,
315,
6206,
310,
434,
1661,
17,
8748,
87,
622,
12867,
43,
7679,
486,
3260,
4671,
14432,
3639,
385,
559,
23937,
273,
14015,
39,
27182,
13,
88,
1273,
559,
2934,
588,
2171,
559,
5621,
3639,
514,
9914,
8526,
273,
3564,
18,
6540,
780,
12443,
12,
39,
27182,
13,
88,
1273,
559,
2934,
588,
25006,
10663,
3639,
514,
14884,
67,
9199,
273,
315,
8552,
67,
30348,
67,
9199,
14432,
3639,
368,
1937,
279,
394,
1203,
3639,
293,
18,
1188,
2932,
23241,
82,
8863,
3639,
368,
1188,
326,
3496,
87,
2
] |
metadataArray = items[i].getDC(element, qualifier, Item.ANY); | metadataArray = items[i].getMetadata(schema, element, qualifier, Item.ANY); | public int doStartTag() throws JspException { JspWriter out = pageContext.getOut(); HttpServletRequest hrq = (HttpServletRequest) pageContext.getRequest(); boolean emphasiseDate = false; boolean emphasiseTitle = false; if (emphColumn != null) { emphasiseDate = emphColumn.equalsIgnoreCase("date"); emphasiseTitle = emphColumn.equalsIgnoreCase("title"); } // get the elements to display String configLine = ConfigurationManager.getProperty("webui.itemlist.columns"); if (configLine != null) { listFields = configLine; } // get the date and title fields String dateLine = ConfigurationManager.getProperty("webui.browse.index.date"); if (dateLine != null) { dateField = dateLine; } String titleLine = ConfigurationManager.getProperty("webui.browse.index.title"); if (titleLine != null) { titleField = titleLine; } StringTokenizer st = new StringTokenizer(listFields, ","); // make an array to hold all the frags that we will use int columns = st.countTokens(); String[] frags = new String[columns * items.length]; try { out.println("<table align=\"center\" class=\"miscTable\" summary=\"This table browse all dspace content\">"); out.println("<tr>"); // Write the column headings int colCount = 1; boolean isDate = false; boolean emph = false; while (st.hasMoreTokens()) { String field = st.nextToken().toLowerCase().trim(); String cOddOrEven = ((colCount % 2) == 0 ? "Odd" : "Even"); // find out if the field is a date if (field.indexOf("(date)") > 0) { field = field.replaceAll("\\(date\\)", ""); isDate = true; } // get the schema and the element qualifier pair // (Note, the schema is not used for anything yet) // (second note, I hate this bit of code. There must be // a much more elegant way of doing this. Tomcat has // some weird problems with variations on this code that // I tried, which is why it has ended up the way it is) StringTokenizer eq = new StringTokenizer(field, "."); String[] tokens = { "", "", "" }; int k = 0; while(eq.hasMoreTokens()) { tokens[k] = eq.nextToken().toLowerCase().trim(); k++; } String schema = tokens[0]; String element = tokens[1]; String qualifier = tokens[2]; // find out if we are emphasising this field if ((field.equals(dateField) && emphasiseDate) || (field.equals(titleField) && emphasiseTitle)) { emph = true; } // prepare the strings for the header String id = "t" + Integer.toString(colCount); String css = "oddRow" + cOddOrEven + "Col"; String message = "itemlist." + field; // output the header out.print("<th id=\"" + id + "\" class=\"" + css + "\">" + (emph ? "<strong>" : "") + LocaleSupport.getLocalizedMessage(pageContext, message) + (emph ? "</strong>" : "") + "</th>"); // now prepare the frags for each of the table elements for (int i = 0; i < items.length; i++) { // first get hold of the relevant metadata for this column DCValue[] metadataArray; if (qualifier.equals("*")) { metadataArray = items[i].getDC(element, Item.ANY, Item.ANY); } else if (qualifier.equals("")) { metadataArray = items[i].getDC(element, null, Item.ANY); } else { metadataArray = items[i].getDC(element, qualifier, Item.ANY); } // now prepare the content of the table division String metadata = "-"; if (metadataArray.length > 0) { // format the date field correctly if (isDate) { // this is to be consistent with the existing setup. // seems like an odd place to put it though (FIXME) String thumbs = ""; if (showThumbs) { thumbs = getThumbMarkup(hrq, items[i]); } DCDate dd = new DCDate(metadataArray[0].value); metadata = UIUtil.displayDate(dd, false, false) + thumbs; } // format the title field correctly else if (field.equals(titleField)) { metadata = "<a href=\"" + hrq.getContextPath() + "/handle/" + items[i].getHandle() + "\">" + Utils.addEntities(metadataArray[0].value) + "</a>"; } // format all other fields else { StringBuffer sb = new StringBuffer(); for (int j = 0; j < metadataArray.length; j++) { sb.append(Utils.addEntities(metadataArray[j].value)); if (j < (metadataArray.length - 1)) { sb.append("; "); } } metadata = "<em>" + sb.toString() + "</em>"; } } // now prepare the XHTML frag for this division String rOddOrEven; if (i == highlightRow) { rOddOrEven = "highlight"; } else { rOddOrEven = ((i % 2) == 1 ? "odd" : "even"); } // prepare extra special layout requirements for dates String extras = ""; if (isDate) { extras = "nowrap=\"nowrap\" align=\"right\""; } int idx = ((i + 1) * columns) - columns + colCount - 1; frags[idx] = "<td headers=\"" + id + "\" class=\"" + rOddOrEven + "Row" + cOddOrEven + "Col\" " + extras + ">" + (emph ? "<strong>" : "") + metadata + (emph ? "</strong>" : "") + "</td>"; } colCount++; isDate = false; emph = false; } out.println("</tr>"); // now output all the frags in the right order for the page for (int i = 0; i < frags.length; i++) { if ((i + 1) % columns == 1) { out.println("<tr>"); } out.println(frags[i]); if ((i + 1) % columns == 0) { out.println("</tr>"); } } // close the table out.println("</table>"); } catch (IOException ie) { throw new JspException(ie); } return SKIP_BODY; } | 1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/792e695713d23ebb03ffcf677f053bfcf20eb96e/ItemListTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/ItemListTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
15407,
85,
273,
261,
2940,
18572,
13,
21442,
18,
588,
691,
5621,
7734,
1250,
801,
26377,
784,
1626,
273,
629,
31,
3639,
1250,
801,
26377,
784,
4247,
273,
629,
31,
3639,
309,
261,
351,
844,
1494,
480,
446,
13,
3639,
288,
5411,
801,
26377,
784,
1626,
273,
801,
844,
1494,
18,
14963,
5556,
2932,
712,
8863,
5411,
801,
26377,
784,
4247,
273,
801,
844,
1494,
18,
14963,
5556,
2932,
2649,
8863,
3639,
289,
7734,
368,
336,
326,
2186,
358,
2562,
3639,
514,
642,
1670,
273,
4659,
1318,
18,
588,
1396,
2932,
4875,
4881,
18,
1726,
1098,
18,
5112,
8863,
3639,
309,
261,
1425,
1670,
480,
446,
13,
3639,
288,
5411,
666,
2314,
273,
642,
1670,
31,
3639,
289,
7734,
368,
336,
326,
1509,
471,
2077,
1466,
3639,
514,
1509,
1670,
273,
4659,
1318,
18,
588,
1396,
2932,
4875,
4881,
18,
25731,
18,
1615,
18,
712,
8863,
3639,
309,
261,
712,
1670,
480,
446,
13,
3639,
288,
5411,
1509,
974,
273,
1509,
1670,
31,
3639,
289,
7734,
514,
2077,
1670,
273,
4659,
1318,
18,
588,
1396,
2932,
4875,
4881,
18,
25731,
18,
1615,
18,
2649,
8863,
3639,
309,
261,
2649,
1670,
480,
446,
13,
3639,
288,
5411,
2077,
974,
273,
2077,
1670,
31,
3639,
289,
7734,
16370,
384,
273,
394,
16370,
12,
1098,
2314,
16,
5753,
1769,
3639,
368,
1377,
1221,
392,
526,
358,
6887,
777,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
15407,
85,
273,
261,
2940,
18572,
13,
21442,
18,
588,
691,
5621,
7734,
1250,
801,
26377,
784,
1626,
273,
629,
31,
3639,
1250,
801,
26377,
784,
4247,
273,
629,
31,
3639,
309,
261,
351,
844,
1494,
480,
446,
13,
3639,
288,
5411,
801,
26377,
784,
1626,
273,
801,
844,
1494,
18,
14963,
5556,
2932,
712,
8863,
5411,
801,
26377,
784,
4247,
273,
801,
844,
1494,
18,
14963,
5556,
2932,
2649,
8863,
3639,
289,
7734,
368,
336,
326,
2186,
358,
2562,
3639,
514,
642,
1670,
273,
4659,
1318,
18,
588,
1396,
2932,
4875,
4881,
18,
1726,
1098,
18,
2
] |
this.treeViewer.getControl().setRedraw(false); | public void refresh() { if (!this.treeViewer.getControl().isDisposed()) { this.treeViewer.getControl().setRedraw(false); this.treeViewer.refresh(); this.menuManager.createDropDownMenu(getViewSite().getActionBars().getMenuManager()); this.treeViewer.getControl().setRedraw(true); } } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/816e04b905216b42a5420b6789f4646cb8c502c5/ViolationOverview.java/buggy/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/views/ViolationOverview.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4460,
1435,
288,
3639,
309,
16051,
2211,
18,
3413,
18415,
18,
588,
3367,
7675,
291,
1669,
7423,
10756,
288,
13491,
333,
18,
3413,
18415,
18,
9144,
5621,
5411,
333,
18,
5414,
1318,
18,
2640,
7544,
4164,
4599,
12,
588,
1767,
4956,
7675,
588,
1803,
5190,
87,
7675,
588,
4599,
1318,
10663,
5411,
333,
18,
3413,
18415,
18,
588,
3367,
7675,
542,
3715,
1899,
12,
3767,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
918,
4460,
1435,
288,
3639,
309,
16051,
2211,
18,
3413,
18415,
18,
588,
3367,
7675,
291,
1669,
7423,
10756,
288,
13491,
333,
18,
3413,
18415,
18,
9144,
5621,
5411,
333,
18,
5414,
1318,
18,
2640,
7544,
4164,
4599,
12,
588,
1767,
4956,
7675,
588,
1803,
5190,
87,
7675,
588,
4599,
1318,
10663,
5411,
333,
18,
3413,
18415,
18,
588,
3367,
7675,
542,
3715,
1899,
12,
3767,
1769,
3639,
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
] | |
bundleFile = BundleFile.createBundleFile(osgiBase, this); | bundleFile = adaptor.createBundleFile(osgiBase, this); | public SystemBundleData(FrameworkAdaptor adaptor) throws BundleException { osgiBase = getOsgiBase(); this.manifest = createManifest(adaptor); String sVersion = (String) manifest.get(Constants.BUNDLE_VERSION); if (sVersion != null) { version = new Version(sVersion); } if (osgiBase != null) try { bundleFile = BundleFile.createBundleFile(osgiBase, this); } catch (IOException e) { // should not happen } } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/a15b292e50025baa0edd19f8863b0da9de386d91/SystemBundleData.java/clean/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/SystemBundleData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2332,
3405,
751,
12,
13701,
29888,
9087,
13,
1216,
8539,
503,
288,
202,
202,
538,
10052,
2171,
273,
17971,
17537,
2171,
5621,
202,
202,
2211,
18,
14357,
273,
752,
9121,
12,
19195,
280,
1769,
202,
202,
780,
272,
1444,
273,
261,
780,
13,
5643,
18,
588,
12,
2918,
18,
30245,
67,
5757,
1769,
202,
202,
430,
261,
87,
1444,
480,
446,
13,
288,
1082,
202,
1589,
273,
394,
4049,
12,
87,
1444,
1769,
202,
202,
97,
202,
202,
430,
261,
538,
10052,
2171,
480,
446,
13,
1082,
202,
698,
288,
9506,
202,
9991,
812,
273,
8539,
812,
18,
2640,
3405,
812,
12,
538,
10052,
2171,
16,
333,
1769,
1082,
202,
97,
1044,
261,
14106,
425,
13,
288,
9506,
202,
759,
1410,
486,
5865,
1082,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2332,
3405,
751,
12,
13701,
29888,
9087,
13,
1216,
8539,
503,
288,
202,
202,
538,
10052,
2171,
273,
17971,
17537,
2171,
5621,
202,
202,
2211,
18,
14357,
273,
752,
9121,
12,
19195,
280,
1769,
202,
202,
780,
272,
1444,
273,
261,
780,
13,
5643,
18,
588,
12,
2918,
18,
30245,
67,
5757,
1769,
202,
202,
430,
261,
87,
1444,
480,
446,
13,
288,
1082,
202,
1589,
273,
394,
4049,
12,
87,
1444,
1769,
202,
202,
97,
202,
202,
430,
261,
538,
10052,
2171,
480,
446,
13,
1082,
202,
698,
288,
9506,
202,
9991,
812,
273,
8539,
812,
18,
2640,
3405,
812,
12,
538,
10052,
2171,
16,
333,
1769,
1082,
202,
97,
1044,
261,
14106,
425,
13,
2
] |
return RubyBoolean.newBoolean(getRuntime(), handler.isSync()); | return getRuntime().newBoolean(handler.isSync()); | public RubyBoolean sync() { return RubyBoolean.newBoolean(getRuntime(), handler.isSync()); } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/buggy/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
3792,
1435,
288,
3639,
327,
18814,
7675,
2704,
5507,
12,
4176,
18,
291,
4047,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
3792,
1435,
288,
3639,
327,
18814,
7675,
2704,
5507,
12,
4176,
18,
291,
4047,
10663,
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
] |
relevance += computeRelevanceForQualification(true); | if(!this.resolvingImports) { relevance += computeRelevanceForQualification(true); } | public void acceptPackage(char[] packageName) { if (this.knownPkgs.containsKey(packageName)) return; this.knownPkgs.put(packageName, this); int relevance = computeBaseRelevance(); relevance += computeRelevanceForInterestingProposal(); relevance += computeRelevanceForCaseMatching(this.qualifiedCompletionToken == null ? this.completionToken : this.qualifiedCompletionToken, packageName); relevance += computeRelevanceForQualification(true); relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE); this.noProposal = false; if(!this.requestor.isIgnored(CompletionProposal.PACKAGE_REF)) { CompletionProposal proposal = this.createProposal(CompletionProposal.PACKAGE_REF, this.actualCompletionPosition); proposal.setDeclarationSignature(packageName); proposal.setPackageName(packageName); proposal.setCompletion( this.resolvingImports ? CharOperation.concat(packageName, new char[] { '.', '*', ';' }) : packageName); proposal.setReplaceRange(this.startPosition - this.offset, this.endPosition - this.offset); proposal.setRelevance(relevance); this.requestor.accept(proposal); if(DEBUG) { this.printDebug(proposal); } } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/46f57536ed8e2bfbe5a9484e153647c7c5b9cb5d/CompletionEngine.java/buggy/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2791,
2261,
12,
3001,
8526,
9929,
13,
288,
202,
202,
430,
261,
2211,
18,
2994,
7789,
564,
18,
12298,
653,
12,
5610,
461,
3719,
327,
31,
202,
202,
2211,
18,
2994,
7789,
564,
18,
458,
12,
5610,
461,
16,
333,
1769,
9506,
202,
474,
6707,
5882,
273,
3671,
2171,
17018,
5882,
5621,
202,
202,
16599,
5882,
1011,
3671,
17018,
5882,
1290,
2465,
10100,
14592,
5621,
202,
202,
16599,
5882,
1011,
3671,
17018,
5882,
1290,
2449,
9517,
12,
2211,
18,
19724,
11238,
1345,
422,
446,
692,
333,
18,
11469,
1345,
294,
333,
18,
19724,
11238,
1345,
16,
9929,
1769,
202,
202,
16599,
5882,
1011,
3671,
17018,
5882,
1290,
21740,
12,
3767,
1769,
202,
202,
16599,
5882,
1011,
3671,
17018,
5882,
1290,
26175,
12,
45,
1862,
2175,
18,
47,
67,
13204,
13450,
900,
1769,
9506,
202,
2211,
18,
2135,
14592,
273,
629,
31,
202,
202,
430,
12,
5,
2211,
18,
2293,
280,
18,
291,
15596,
12,
11238,
14592,
18,
19077,
67,
10771,
3719,
288,
1082,
202,
11238,
14592,
14708,
273,
333,
18,
2640,
14592,
12,
11238,
14592,
18,
19077,
67,
10771,
16,
333,
18,
18672,
11238,
2555,
1769,
1082,
202,
685,
8016,
18,
542,
6094,
5374,
12,
5610,
461,
1769,
1082,
202,
685,
8016,
18,
542,
18308,
12,
5610,
461,
1769,
1082,
202,
685,
8016,
18,
542,
11238,
12,
6862,
202,
2211,
18,
7818,
6282,
13347,
6862,
202,
35,
3703,
2988,
18,
16426,
12,
5610,
461,
16,
394,
1149,
8526,
288,
2611,
16,
14609,
2187,
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,
2791,
2261,
12,
3001,
8526,
9929,
13,
288,
202,
202,
430,
261,
2211,
18,
2994,
7789,
564,
18,
12298,
653,
12,
5610,
461,
3719,
327,
31,
202,
202,
2211,
18,
2994,
7789,
564,
18,
458,
12,
5610,
461,
16,
333,
1769,
9506,
202,
474,
6707,
5882,
273,
3671,
2171,
17018,
5882,
5621,
202,
202,
16599,
5882,
1011,
3671,
17018,
5882,
1290,
2465,
10100,
14592,
5621,
202,
202,
16599,
5882,
1011,
3671,
17018,
5882,
1290,
2449,
9517,
12,
2211,
18,
19724,
11238,
1345,
422,
446,
692,
333,
18,
11469,
1345,
294,
333,
18,
19724,
11238,
1345,
16,
9929,
1769,
202,
202,
16599,
5882,
1011,
3671,
17018,
5882,
1290,
21740,
12,
3767,
1769,
202,
202,
16599,
5882,
2
] |
public void paintFixed(Context c, BlockBox block) { int xoff = 0; int yoff = 0; xoff = c.canvas.getWidth(); yoff = c.canvas.getHeight(); if (block.right_set) { xoff = xoff - block.width; } if (block.bottom_set) { //joshy: this should really be block.height instead of bnds.y // need to fix the setting of block.height //joshy: need to do horizontal calcs too, inc scrolling //joshy: need to make the body paint the whole canvas. // start at the bottom of the viewport yoff = c.viewport.getHeight(); // account for the width of the box yoff = yoff - block.height; // - bnds.y // account for the current y offset of the box yoff = yoff - c.getExtents().y; //orig.y; // account for the scrolling of the viewport yoff = yoff - c.canvas.getLocation().y; } c.translate(xoff, yoff); paintNormal(c,block); c.translate(-xoff, -yoff); } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/07ab625b03cad242caa27ac48e830592130b24a1/BoxLayout.java/buggy/src/java/org/joshy/html/BoxLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
12574,
7505,
12,
1042,
276,
16,
3914,
3514,
1203,
13,
288,
474,
619,
3674,
273,
374,
31,
474,
677,
3674,
273,
374,
31,
92,
3674,
273,
276,
18,
15424,
18,
588,
2384,
5621,
93,
3674,
273,
276,
18,
15424,
18,
588,
2686,
5621,
430,
261,
2629,
18,
4083,
67,
542,
13,
288,
92,
3674,
273,
619,
3674,
300,
1203,
18,
2819,
31,
97,
430,
261,
2629,
18,
9176,
67,
542,
13,
288,
759,
78,
17636,
93,
30,
333,
1410,
8654,
506,
1203,
18,
4210,
3560,
434,
18254,
2377,
18,
93,
759,
1608,
358,
2917,
326,
3637,
434,
1203,
18,
4210,
759,
78,
17636,
93,
30,
1608,
358,
741,
10300,
1443,
2143,
4885,
16,
7290,
22504,
759,
78,
17636,
93,
30,
1608,
358,
1221,
326,
1417,
12574,
326,
7339,
5953,
18,
759,
787,
622,
326,
5469,
434,
326,
10482,
93,
3674,
273,
276,
18,
28852,
18,
588,
2686,
5621,
759,
2236,
364,
326,
1835,
434,
326,
800,
1698,
3674,
273,
677,
3674,
300,
1203,
18,
4210,
31,
759,
300,
18254,
2377,
18,
93,
759,
2236,
364,
326,
783,
677,
1384,
434,
326,
800,
1698,
3674,
273,
677,
3674,
300,
276,
18,
588,
2482,
4877,
7675,
93,
31,
759,
4949,
18,
93,
31,
759,
2236,
364,
326,
22504,
434,
326,
10482,
93,
3674,
273,
677,
3674,
300,
276,
18,
15424,
18,
588,
2735,
7675,
93,
31,
97,
71,
18,
13929,
12,
92,
3674,
16,
677,
3674,
1769,
84,
1598,
5506,
12,
71,
16,
2629,
1769,
71,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
12574,
7505,
12,
1042,
276,
16,
3914,
3514,
1203,
13,
288,
474,
619,
3674,
273,
374,
31,
474,
677,
3674,
273,
374,
31,
92,
3674,
273,
276,
18,
15424,
18,
588,
2384,
5621,
93,
3674,
273,
276,
18,
15424,
18,
588,
2686,
5621,
430,
261,
2629,
18,
4083,
67,
542,
13,
288,
92,
3674,
273,
619,
3674,
300,
1203,
18,
2819,
31,
97,
430,
261,
2629,
18,
9176,
67,
542,
13,
288,
759,
78,
17636,
93,
30,
333,
1410,
8654,
506,
1203,
18,
4210,
3560,
434,
18254,
2377,
18,
93,
759,
1608,
358,
2917,
326,
3637,
434,
1203,
18,
4210,
759,
78,
17636,
93,
30,
1608,
358,
741,
10300,
1443,
2143,
4885,
16,
7290,
22504,
759,
78,
2
] | ||
protected void applyForegroundColor(Color color, Control control) { applyForegroundColor(color, control, getForegroundColorExclusions()); | private void applyForegroundColor(Color color, Control control, List exclusions) { if (!exclusions.contains(control)) { control.setForeground(color); } if (control instanceof Composite) { Control[] children = ((Composite) control).getChildren(); for (int i = 0; i < children.length; i++) applyForegroundColor(color, children[i], exclusions); } | protected void applyForegroundColor(Color color, Control control) { applyForegroundColor(color, control, getForegroundColorExclusions()); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/705919acc372ddcf189efef7cc31fef381465fda/PopupDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/PopupDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2230,
23206,
2957,
12,
2957,
2036,
16,
8888,
3325,
13,
288,
202,
202,
9010,
23206,
2957,
12,
3266,
16,
3325,
16,
2812,
479,
2915,
2957,
424,
25364,
10663,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1117,
918,
2230,
23206,
2957,
12,
2957,
2036,
16,
8888,
3325,
13,
288,
202,
202,
9010,
23206,
2957,
12,
3266,
16,
3325,
16,
2812,
479,
2915,
2957,
424,
25364,
10663,
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
] |
if (length > wavail) length = wavail; System.arraycopy(work, wpos, buf, offset, length); wpos += length; return length; | if (! refill ()) return -1; wavail = wcount - wpos; | public int read(char buf[], int offset, int length) throws IOException { synchronized (lock) { if (in == null) throw new IOException("Stream closed"); int wavail = wcount - wpos; if (wavail > 0) { if (length > wavail) length = wavail; System.arraycopy(work, wpos, buf, offset, length); wpos += length; return length; } else { if (length == 0) return 0; for (;;) { in.mark(1); int b = in.read(); if (b < 0) return -1; in.reset(); converter.setInput(in.buf, in.pos, in.count); int count = converter.read (buf, offset, length); in.skip(converter.inpos - in.pos); if (count > 0) return count; } } } } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/eedb76d3bdbf92cbadbbd11160701058449ceb26/InputStreamReader.java/clean/libjava/java/io/InputStreamReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
855,
12,
3001,
1681,
63,
6487,
509,
1384,
16,
509,
769,
13,
1216,
1860,
225,
288,
565,
3852,
261,
739,
13,
1377,
288,
202,
430,
261,
267,
422,
446,
13,
202,
225,
604,
394,
1860,
2932,
1228,
4375,
8863,
202,
474,
19342,
671,
273,
341,
1883,
300,
341,
917,
31,
202,
430,
261,
24801,
671,
405,
374,
13,
202,
225,
288,
202,
565,
309,
261,
2469,
405,
19342,
671,
13,
202,
1377,
769,
273,
19342,
671,
31,
202,
565,
2332,
18,
1126,
3530,
12,
1252,
16,
341,
917,
16,
1681,
16,
1384,
16,
769,
1769,
202,
565,
341,
917,
1011,
769,
31,
202,
565,
327,
769,
31,
202,
225,
289,
202,
12107,
202,
225,
288,
202,
565,
309,
261,
2469,
422,
374,
13,
202,
1377,
327,
374,
31,
202,
565,
364,
261,
25708,
13,
202,
1377,
288,
202,
202,
267,
18,
3355,
12,
21,
1769,
202,
202,
474,
324,
273,
316,
18,
896,
5621,
202,
202,
430,
261,
70,
411,
374,
13,
1082,
225,
327,
300,
21,
31,
202,
202,
267,
18,
6208,
5621,
202,
202,
15747,
18,
542,
1210,
12,
267,
18,
4385,
16,
316,
18,
917,
16,
316,
18,
1883,
1769,
202,
202,
474,
1056,
273,
6027,
18,
896,
261,
4385,
16,
1384,
16,
769,
1769,
202,
202,
267,
18,
7457,
12,
15747,
18,
267,
917,
300,
316,
18,
917,
1769,
202,
202,
430,
261,
1883,
405,
374,
13,
1082,
225,
327,
1056,
31,
202,
1377,
289,
202,
225,
289,
1377,
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,
282,
1071,
509,
855,
12,
3001,
1681,
63,
6487,
509,
1384,
16,
509,
769,
13,
1216,
1860,
225,
288,
565,
3852,
261,
739,
13,
1377,
288,
202,
430,
261,
267,
422,
446,
13,
202,
225,
604,
394,
1860,
2932,
1228,
4375,
8863,
202,
474,
19342,
671,
273,
341,
1883,
300,
341,
917,
31,
202,
430,
261,
24801,
671,
405,
374,
13,
202,
225,
288,
202,
565,
309,
261,
2469,
405,
19342,
671,
13,
202,
1377,
769,
273,
19342,
671,
31,
202,
565,
2332,
18,
1126,
3530,
12,
1252,
16,
341,
917,
16,
1681,
16,
1384,
16,
769,
1769,
202,
565,
341,
917,
1011,
769,
31,
202,
565,
327,
769,
31,
202,
225,
289,
202,
12107,
202,
225,
288,
202,
2
] |
isEqual = (id == ((IDManagerPK)other).id); | isEqual = (id == ((IDManagerPK) other).id); | public boolean equals(Object other) { boolean isEqual = false; if (other instanceof IDManagerPK) { if (id == null) isEqual = (id == ((IDManagerPK)other).id); else isEqual = (id.intValue() == ((IDManagerPK)other).id.intValue()); } return isEqual; } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/IDManagerPK.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/IDManagerPK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1606,
12,
921,
1308,
13,
282,
288,
565,
1250,
21614,
273,
629,
31,
565,
309,
261,
3011,
1276,
1599,
1318,
8784,
13,
565,
288,
1377,
309,
261,
350,
422,
446,
13,
3639,
21614,
273,
261,
350,
422,
14015,
734,
1318,
8784,
13,
1308,
2934,
350,
1769,
1377,
469,
3639,
21614,
273,
261,
350,
18,
474,
620,
1435,
422,
14015,
734,
1318,
8784,
13,
3011,
2934,
350,
18,
474,
620,
10663,
565,
289,
565,
327,
21614,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
1606,
12,
921,
1308,
13,
282,
288,
565,
1250,
21614,
273,
629,
31,
565,
309,
261,
3011,
1276,
1599,
1318,
8784,
13,
565,
288,
1377,
309,
261,
350,
422,
446,
13,
3639,
21614,
273,
261,
350,
422,
14015,
734,
1318,
8784,
13,
1308,
2934,
350,
1769,
1377,
469,
3639,
21614,
273,
261,
350,
18,
474,
620,
1435,
422,
14015,
734,
1318,
8784,
13,
3011,
2934,
350,
18,
474,
620,
10663,
565,
289,
565,
327,
21614,
31,
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
] |
final XSLTC xsltc = getParser().getXSLTC(); final Vector ni = xsltc.getNamesIndex(); String name = null; int star = 0; if (_nodeType >= DTM.NTYPES) { name = (String)ni.elementAt(_nodeType-DTM.NTYPES); star = name.lastIndexOf('*'); } | public void translate(ClassGenerator classGen, MethodGenerator methodGen) { final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); if (hasPredicates()) { translatePredicates(classGen, methodGen); } else { // If it is an attribute but not '@*', '@attr' or '@node()' and // has no parent if (_axis == Axis.ATTRIBUTE && _nodeType != NodeTest.ATTRIBUTE && _nodeType != NodeTest.ANODE && !hasParentPattern()) { int iter = cpg.addInterfaceMethodref(DOM_INTF, "getTypedAxisIterator", "(II)"+NODE_ITERATOR_SIG); il.append(methodGen.loadDOM()); il.append(new PUSH(cpg, Axis.ATTRIBUTE)); il.append(new PUSH(cpg, _nodeType)); il.append(new INVOKEINTERFACE(iter, 3)); return; } // Special case for '.' if (isAbbreviatedDot()) { if (_type == Type.Node) { // Put context node on stack if using Type.Node il.append(methodGen.loadContextNode()); } else { // Wrap the context node in a singleton iterator if not. int init = cpg.addMethodref(SINGLETON_ITERATOR, "<init>", "("+NODE_SIG+")V"); il.append(new NEW(cpg.addClass(SINGLETON_ITERATOR))); il.append(DUP); il.append(methodGen.loadContextNode()); il.append(new INVOKESPECIAL(init)); } return; } // Special case for /foo/*/bar SyntaxTreeNode parent = getParent(); if ((parent instanceof ParentLocationPath) && (parent.getParent() instanceof ParentLocationPath)) { if ((_nodeType == NodeTest.ELEMENT) && (!_hadPredicates)) { _nodeType = NodeTest.ANODE; } } // "ELEMENT" or "*" or "@*" or ".." or "@attr" with a parent. switch (_nodeType) { case NodeTest.ATTRIBUTE: _axis = Axis.ATTRIBUTE; case NodeTest.ANODE: // DOM.getAxisIterator(int axis); int git = cpg.addInterfaceMethodref(DOM_INTF, "getAxisIterator", "(I)"+NODE_ITERATOR_SIG); il.append(methodGen.loadDOM()); il.append(new PUSH(cpg, _axis)); il.append(new INVOKEINTERFACE(git, 2)); break; default: final XSLTC xsltc = getParser().getXSLTC(); final Vector ni = xsltc.getNamesIndex(); String name = null; int star = 0; if (_nodeType >= DTM.NTYPES) { name = (String)ni.elementAt(_nodeType-DTM.NTYPES); star = name.lastIndexOf('*'); } if (star > 1) { final String namespace; if (_axis == Axis.ATTRIBUTE) namespace = name.substring(0,star-2); else namespace = name.substring(0,star-1); final int nsType = xsltc.registerNamespace(namespace); final int ns = cpg.addInterfaceMethodref(DOM_INTF, "getNamespaceAxisIterator", "(II)"+NODE_ITERATOR_SIG); il.append(methodGen.loadDOM()); il.append(new PUSH(cpg, _axis)); il.append(new PUSH(cpg, nsType)); il.append(new INVOKEINTERFACE(ns, 3)); break; } case NodeTest.ELEMENT: // DOM.getTypedAxisIterator(int axis, int type); final int ty = cpg.addInterfaceMethodref(DOM_INTF, "getTypedAxisIterator", "(II)"+NODE_ITERATOR_SIG); // Get the typed iterator we're after il.append(methodGen.loadDOM()); il.append(new PUSH(cpg, _axis)); il.append(new PUSH(cpg, _nodeType)); il.append(new INVOKEINTERFACE(ty, 3)); break; } } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/7fd5ff8186c6d7b44ab4602771ea1717c32aa980/Step.java/buggy/src/org/apache/xalan/xsltc/compiler/Step.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4204,
12,
797,
3908,
667,
7642,
16,
2985,
3908,
707,
7642,
13,
288,
202,
6385,
10551,
2864,
7642,
3283,
75,
273,
667,
7642,
18,
588,
6902,
2864,
5621,
202,
6385,
24605,
682,
14254,
273,
707,
7642,
18,
588,
11983,
682,
5621,
202,
430,
261,
5332,
26916,
10756,
288,
202,
565,
4204,
26916,
12,
1106,
7642,
16,
707,
7642,
1769,
202,
97,
202,
12107,
288,
202,
565,
368,
971,
518,
353,
392,
1566,
1496,
486,
4622,
14,
2187,
4622,
1747,
11,
578,
4622,
2159,
11866,
471,
202,
565,
368,
711,
1158,
982,
202,
565,
309,
261,
67,
4890,
422,
15509,
18,
11616,
597,
389,
2159,
559,
480,
2029,
4709,
18,
11616,
597,
202,
202,
67,
2159,
559,
480,
2029,
4709,
18,
1258,
2712,
597,
401,
5332,
3054,
3234,
10756,
3196,
565,
288,
202,
202,
474,
1400,
273,
3283,
75,
18,
1289,
1358,
1305,
1734,
12,
8168,
67,
3217,
42,
16,
6862,
1082,
377,
315,
588,
11985,
6558,
3198,
3113,
6862,
1082,
377,
7751,
6954,
2225,
15,
8744,
67,
11844,
3575,
67,
18513,
1769,
202,
202,
330,
18,
6923,
12,
2039,
7642,
18,
945,
8168,
10663,
202,
202,
330,
18,
6923,
12,
2704,
28591,
12,
4057,
75,
16,
15509,
18,
11616,
10019,
202,
202,
330,
18,
6923,
12,
2704,
28591,
12,
4057,
75,
16,
389,
2159,
559,
10019,
202,
202,
330,
18,
6923,
12,
2704,
29666,
18865,
12,
2165,
16,
890,
10019,
202,
202,
2463,
31,
202,
565,
289,
202,
565,
368,
13409,
648,
364,
2611,
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,
4204,
12,
797,
3908,
667,
7642,
16,
2985,
3908,
707,
7642,
13,
288,
202,
6385,
10551,
2864,
7642,
3283,
75,
273,
667,
7642,
18,
588,
6902,
2864,
5621,
202,
6385,
24605,
682,
14254,
273,
707,
7642,
18,
588,
11983,
682,
5621,
202,
430,
261,
5332,
26916,
10756,
288,
202,
565,
4204,
26916,
12,
1106,
7642,
16,
707,
7642,
1769,
202,
97,
202,
12107,
288,
202,
565,
368,
971,
518,
353,
392,
1566,
1496,
486,
4622,
14,
2187,
4622,
1747,
11,
578,
4622,
2159,
11866,
471,
202,
565,
368,
711,
1158,
982,
202,
565,
309,
261,
67,
4890,
422,
15509,
18,
11616,
597,
389,
2159,
559,
480,
2029,
4709,
18,
11616,
597,
202,
202,
67,
2159,
559,
2
] | |
double skillModifier = 0D; | speedSkillModifier = 0D; | private double getSpeed(Direction direction) { // Determine the terrain grade in the vehicle's current direction. TerrainElevation terrain = mars.getSurfaceFeatures().getSurfaceTerrain(); double terrainGrade = terrain.determineTerrainDifficulty(startingLocation, direction); vehicle.setTerrainGrade(terrainGrade); // Get the driver's driving skill. int skillLevel = person.getSkillManager().getSkillLevel("Driving"); // Get vehicle's terrain handling capability. double handling = vehicle.getTerrainHandlingCapability(); // Determine temp angle. double angleModifier = handling + skillLevel - 10D; if (angleModifier < 0D) angleModifier = Math.abs(1D / angleModifier); double tempAngle = terrainGrade / angleModifier; if (tempAngle > (Math.PI / 2D)) tempAngle = Math.PI / 2D; // Modify base speed by driver's skill level. double skillModifier = 0D; double baseSpeed = vehicle.getBaseSpeed(); if (skillLevel <= 5) skillModifier = 0D - ((baseSpeed / 2D) * ((5D - skillLevel) / 5D)); else if (skillLevel > 5) { double tempSpeed = baseSpeed; for (int x=0; x < skillLevel - 5; x++) { tempSpeed /= 2D; skillModifier += tempSpeed; } } double speed = (vehicle.getBaseSpeed() + skillModifier) * Math.cos(tempAngle); if (speed < 0D) speed = 0D; return speed; } | 49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/498cb8ad0db321b7562983996fe57d8733428b9a/DriveGroundVehicle.java/clean/org/mars_sim/msp/simulation/task/DriveGroundVehicle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1645,
1322,
5868,
12,
8212,
4068,
13,
288,
7734,
368,
10229,
326,
19272,
7596,
7324,
316,
326,
24815,
1807,
783,
4068,
18,
3639,
28991,
7596,
17274,
7112,
19272,
7596,
273,
312,
5913,
18,
588,
11508,
8696,
7675,
588,
11508,
56,
264,
7596,
5621,
3639,
1645,
19272,
7596,
14571,
323,
273,
19272,
7596,
18,
24661,
56,
264,
7596,
5938,
21934,
12,
18526,
2735,
16,
4068,
1769,
3639,
24815,
18,
542,
56,
264,
7596,
14571,
323,
12,
387,
7596,
14571,
323,
1769,
3639,
368,
968,
326,
3419,
1807,
5081,
9288,
15667,
18,
3639,
509,
15667,
2355,
273,
6175,
18,
588,
9030,
1318,
7675,
588,
9030,
2355,
2932,
8956,
9288,
8863,
3639,
368,
968,
24815,
1807,
19272,
7596,
5057,
12593,
18,
3639,
1645,
5057,
273,
24815,
18,
588,
56,
264,
7596,
14701,
17035,
5621,
3639,
368,
10229,
1906,
5291,
18,
3639,
1645,
5291,
9829,
273,
5057,
397,
15667,
2355,
300,
1728,
40,
31,
3639,
309,
261,
4341,
9829,
411,
374,
40,
13,
5291,
9829,
273,
2361,
18,
5113,
12,
21,
40,
342,
5291,
9829,
1769,
3639,
1645,
1906,
8467,
273,
19272,
7596,
14571,
323,
342,
5291,
9829,
31,
3639,
309,
261,
5814,
8467,
405,
261,
10477,
18,
1102,
342,
576,
40,
3719,
1906,
8467,
273,
2361,
18,
1102,
342,
576,
40,
31,
3639,
368,
9518,
1026,
8632,
635,
3419,
1807,
15667,
1801,
18,
3639,
8632,
9030,
9829,
273,
374,
40,
31,
3639,
1645,
1026,
16562,
273,
24815,
18,
588,
2171,
16562,
5621,
3639,
309,
261,
7771,
737,
2355,
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,
1645,
1322,
5868,
12,
8212,
4068,
13,
288,
7734,
368,
10229,
326,
19272,
7596,
7324,
316,
326,
24815,
1807,
783,
4068,
18,
3639,
28991,
7596,
17274,
7112,
19272,
7596,
273,
312,
5913,
18,
588,
11508,
8696,
7675,
588,
11508,
56,
264,
7596,
5621,
3639,
1645,
19272,
7596,
14571,
323,
273,
19272,
7596,
18,
24661,
56,
264,
7596,
5938,
21934,
12,
18526,
2735,
16,
4068,
1769,
3639,
24815,
18,
542,
56,
264,
7596,
14571,
323,
12,
387,
7596,
14571,
323,
1769,
3639,
368,
968,
326,
3419,
1807,
5081,
9288,
15667,
18,
3639,
509,
15667,
2355,
273,
6175,
18,
588,
9030,
1318,
7675,
588,
9030,
2355,
2932,
8956,
9288,
8863,
3639,
368,
968,
24815,
1807,
19272,
7596,
5057,
12593,
2
] |
assertEquals( NonEmptyException.class, | this.assertEquals( NonEmptyException.class, | public void test_either_exception_2() { ReplyHandler handler = new ReplyHandler() { public void ex_3_excep( ExceptionHolder excep_holder ) { assertEquals( NonEmptyException.class, getException( excep_holder ).getClass() ); pass(); } }; ( ( _CallbackServerStub ) server ) .sendc_ex_3( ref( handler ), true, 100 ); handler.wait_for_reply( 500 ); } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/3de75c0ddd185ba64a45a33976f541145137b0be/CallbackTest.java/clean/test/regression/src/org/jacorb/test/orb/CallbackTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
73,
2927,
67,
4064,
67,
22,
1435,
565,
288,
3639,
16202,
1503,
1838,
273,
394,
16202,
1503,
1435,
3639,
288,
5411,
1071,
918,
431,
67,
23,
67,
338,
311,
84,
12,
1185,
6064,
431,
311,
84,
67,
4505,
262,
5411,
288,
7734,
333,
18,
11231,
8867,
12,
3858,
1921,
503,
18,
1106,
16,
17311,
17669,
12,
431,
311,
84,
67,
4505,
262,
18,
588,
797,
1435,
11272,
7734,
1342,
5621,
5411,
289,
3639,
289,
31,
3639,
261,
261,
389,
2428,
2081,
11974,
262,
1438,
262,
5411,
263,
4661,
71,
67,
338,
67,
23,
12,
1278,
12,
1838,
262,
16,
638,
16,
2130,
11272,
3639,
1838,
18,
7048,
67,
1884,
67,
10629,
12,
6604,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
73,
2927,
67,
4064,
67,
22,
1435,
565,
288,
3639,
16202,
1503,
1838,
273,
394,
16202,
1503,
1435,
3639,
288,
5411,
1071,
918,
431,
67,
23,
67,
338,
311,
84,
12,
1185,
6064,
431,
311,
84,
67,
4505,
262,
5411,
288,
7734,
333,
18,
11231,
8867,
12,
3858,
1921,
503,
18,
1106,
16,
17311,
17669,
12,
431,
311,
84,
67,
4505,
262,
18,
588,
797,
1435,
11272,
7734,
1342,
5621,
5411,
289,
3639,
289,
31,
3639,
261,
261,
389,
2428,
2081,
11974,
262,
1438,
262,
5411,
263,
4661,
71,
67,
338,
67,
23,
12,
1278,
12,
1838,
262,
16,
638,
16,
2130,
11272,
3639,
1838,
18,
7048,
67,
1884,
67,
10629,
12,
6604,
11272,
2
] |
setTitlePosition((Position)newValue); | setTitlePosition((Position) newValue); | public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case TypePackage.PIE_SERIES__VISIBLE: setVisible(((Boolean)newValue).booleanValue()); return; case TypePackage.PIE_SERIES__LABEL: setLabel((Label)newValue); return; case TypePackage.PIE_SERIES__DATA_DEFINITION: getDataDefinition().clear(); getDataDefinition().addAll((Collection)newValue); return; case TypePackage.PIE_SERIES__SERIES_IDENTIFIER: setSeriesIdentifier((Object)newValue); return; case TypePackage.PIE_SERIES__DATA_POINT: setDataPoint((DataPoint)newValue); return; case TypePackage.PIE_SERIES__DATA_SET: setDataSet((DataSet)newValue); return; case TypePackage.PIE_SERIES__FORMAT_SPECIFIER: setFormatSpecifier((FormatSpecifier)newValue); return; case TypePackage.PIE_SERIES__LABEL_POSITION: setLabelPosition((Position)newValue); return; case TypePackage.PIE_SERIES__STACKED: setStacked(((Boolean)newValue).booleanValue()); return; case TypePackage.PIE_SERIES__TRIGGERS: getTriggers().clear(); getTriggers().addAll((Collection)newValue); return; case TypePackage.PIE_SERIES__TRANSLUCENT: setTranslucent(((Boolean)newValue).booleanValue()); return; case TypePackage.PIE_SERIES__EXPLOSION: setExplosion(((Integer)newValue).intValue()); return; case TypePackage.PIE_SERIES__TITLE: setTitle((Label)newValue); return; case TypePackage.PIE_SERIES__TITLE_POSITION: setTitlePosition((Position)newValue); return; case TypePackage.PIE_SERIES__LEADER_LINE_ATTRIBUTES: setLeaderLineAttributes((LineAttributes)newValue); return; case TypePackage.PIE_SERIES__LEADER_LINE_STYLE: setLeaderLineStyle((LeaderLineStyle)newValue); return; case TypePackage.PIE_SERIES__LEADER_LINE_LENGTH: setLeaderLineLength(((Double)newValue).doubleValue()); return; case TypePackage.PIE_SERIES__SLICE_OUTLINE: setSliceOutline((ColorDefinition)newValue); return; } eDynamicSet(eFeature, newValue); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/PieSeriesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/PieSeriesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
29588,
30,
7734,
16697,
12443,
12,
5507,
13,
2704,
620,
2934,
6494,
620,
10663,
7734,
327,
31,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
13545,
30,
7734,
16558,
12443,
2224,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
4883,
67,
25312,
30,
7734,
4303,
1852,
7675,
8507,
5621,
7734,
4303,
1852,
7675,
1289,
1595,
12443,
2532,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
2123,
8805,
67,
16606,
30,
7734,
444,
6485,
3004,
12443,
921,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
4883,
67,
8941,
30,
7734,
7929,
2148,
12443,
751,
2148,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
4883,
67,
4043,
30,
7734,
7929,
694,
12443,
13676,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
7254,
67,
13847,
10591,
30,
7734,
26251,
21416,
12443,
1630,
21416,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
13545,
67,
15258,
30,
7734,
16558,
2555,
12443,
2555,
13,
2704,
620,
1769,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
29588,
30,
7734,
16697,
12443,
12,
5507,
13,
2704,
620,
2934,
6494,
620,
10663,
7734,
327,
31,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
13545,
30,
7734,
16558,
12443,
2224,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
1412,
2261,
18,
24414,
67,
2123,
8805,
972,
4883,
67,
25312,
30,
7734,
4303,
1852,
7675,
8507,
5621,
7734,
4303,
1852,
7675,
1289,
1595,
12443,
2532,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
1412,
2261,
2
] |
lineSeparator = null; | lineSeparator = jEdit.getProperty( "buffer.lineSeparator", System.getProperty("line.separator")); | private SegmentBuffer read(Reader in, long length, boolean insert) throws IOException { /* we guess an initial size for the array */ IntegerArray endOffsets = new IntegerArray( Math.max(1,(int)(length / 50))); // only true if the file size is known boolean trackProgress = (!buffer.isTemporary() && length != 0); if(trackProgress) { setProgressValue(0); setProgressMaximum((int)length); } // if the file size is not known, start with a resonable // default buffer size if(length == 0) length = IOBUFSIZE; SegmentBuffer seg = new SegmentBuffer((int)length + 1); char[] buf = new char[IOBUFSIZE]; // Number of characters in 'buf' array. // InputStream.read() doesn't always fill the // array (eg, the file size is not a multiple of // IOBUFSIZE, or it is a GZipped file, etc) int len; // True if a \n was read after a \r. Usually // means this is a DOS/Windows file boolean CRLF = false; // A \r was read, hence a MacOS file boolean CROnly = false; // Was the previous read character a \r? // If we read a \n and this is true, we assume // we have a DOS/Windows file boolean lastWasCR = false; // Number of lines read. Every 100 lines, we update the // progress bar int lineCount = 0; while((len = in.read(buf,0,buf.length)) != -1) { // Offset of previous line, relative to // the start of the I/O buffer (NOT // relative to the start of the document) int lastLine = 0; for(int i = 0; i < len; i++) { // Look for line endings. switch(buf[i]) { case '\r': // If we read a \r and // lastWasCR is also true, // it is probably a Mac file // (\r\r in stream) if(lastWasCR) { CROnly = true; CRLF = false; } // Otherwise set a flag, // so that \n knows that last // was a \r else { lastWasCR = true; } // Insert a line seg.append(buf,lastLine,i - lastLine); seg.append('\n'); endOffsets.add(seg.count); if(trackProgress && lineCount++ % PROGRESS_INTERVAL == 0) setProgressValue(seg.count); // This is i+1 to take the // trailing \n into account lastLine = i + 1; break; case '\n': // If lastWasCR is true, // we just read a \r followed // by a \n. We specify that // this is a Windows file, // but take no further // action and just ignore // the \r. if(lastWasCR) { CROnly = false; CRLF = true; lastWasCR = false; // Bump lastLine so // that the next line // doesn't erronously // pick up the \r lastLine = i + 1; } // Otherwise, we found a \n // that follows some other // character, hence we have // a Unix file else { CROnly = false; CRLF = false; seg.append(buf,lastLine, i - lastLine); seg.append('\n'); endOffsets.add(seg.count); if(trackProgress && lineCount++ % PROGRESS_INTERVAL == 0) setProgressValue(seg.count); lastLine = i + 1; } break; default: // If we find some other // character that follows // a \r, so it is not a // Windows file, and probably // a Mac file if(lastWasCR) { CROnly = true; CRLF = false; lastWasCR = false; } break; } } if(trackProgress) setProgressValue(seg.count); // Add remaining stuff from buffer seg.append(buf,lastLine,len - lastLine); } setAbortable(false); String lineSeparator; if(length == 0) { // fix for "[ 865589 ] 0-byte files should open using // the default line seperator" lineSeparator = null; } else if(CRLF) lineSeparator = "\r\n"; else if(CROnly) lineSeparator = "\r"; else lineSeparator = "\n"; in.close(); // Chop trailing newline and/or ^Z (if any) int bufferLength = seg.count; if(bufferLength != 0) { char ch = seg.array[bufferLength - 1]; if(ch == 0x1a /* DOS ^Z */) seg.count--; } buffer.setBooleanProperty(Buffer.TRAILING_EOL,false); if(bufferLength != 0 && jEdit.getBooleanProperty("stripTrailingEOL")) { char ch = seg.array[bufferLength - 1]; if(ch == '\n') { buffer.setBooleanProperty(Buffer.TRAILING_EOL,true); seg.count--; endOffsets.setSize(endOffsets.getSize() - 1); } } // add a line marker at the end for proper offset manager // operation endOffsets.add(seg.count + 1); // to avoid having to deal with read/write locks and such, // we insert the loaded data into the buffer in the // post-load cleanup runnable, which runs in the AWT thread. if(!insert) { buffer.setProperty(LOAD_DATA,seg); buffer.setProperty(END_OFFSETS,endOffsets); buffer.setProperty(NEW_PATH,path); if(lineSeparator != null) buffer.setProperty(Buffer.LINESEP,lineSeparator); } // used in insert() return seg; } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/68ded6789be40f3745fc7fab4ef4bf28b2afc4b4/BufferIORequest.java/buggy/org/gjt/sp/jedit/buffer/BufferIORequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
10807,
1892,
855,
12,
2514,
316,
16,
1525,
769,
16,
202,
202,
6494,
2243,
13,
1216,
1860,
202,
95,
202,
202,
20308,
732,
7274,
392,
2172,
963,
364,
326,
526,
1195,
202,
202,
4522,
1076,
679,
13830,
273,
394,
2144,
1076,
12,
1082,
202,
10477,
18,
1896,
12,
21,
16,
12,
474,
21433,
2469,
342,
6437,
3719,
1769,
202,
202,
759,
1338,
638,
309,
326,
585,
963,
353,
4846,
202,
202,
6494,
3298,
5491,
273,
16051,
4106,
18,
291,
11685,
1435,
597,
769,
480,
374,
1769,
202,
202,
430,
12,
4101,
5491,
13,
202,
202,
95,
1082,
202,
542,
5491,
620,
12,
20,
1769,
1082,
202,
542,
5491,
13528,
12443,
474,
13,
2469,
1769,
202,
202,
97,
202,
202,
759,
309,
326,
585,
963,
353,
486,
4846,
16,
787,
598,
279,
400,
265,
429,
202,
202,
759,
805,
1613,
963,
202,
202,
430,
12,
2469,
422,
374,
13,
1082,
202,
2469,
273,
1665,
3000,
42,
4574,
31,
202,
202,
4131,
1892,
2291,
273,
394,
10807,
1892,
12443,
474,
13,
2469,
397,
404,
1769,
202,
202,
3001,
8526,
1681,
273,
394,
1149,
63,
4294,
3000,
42,
4574,
15533,
202,
202,
759,
3588,
434,
3949,
316,
296,
4385,
11,
526,
18,
202,
202,
759,
5037,
18,
896,
1435,
3302,
1404,
3712,
3636,
326,
202,
202,
759,
526,
261,
1332,
16,
326,
585,
963,
353,
486,
279,
3229,
434,
202,
202,
759,
1665,
3000,
42,
4574,
16,
578,
518,
353,
279,
611,
9141,
1845,
585,
16,
5527,
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,
10807,
1892,
855,
12,
2514,
316,
16,
1525,
769,
16,
202,
202,
6494,
2243,
13,
1216,
1860,
202,
95,
202,
202,
20308,
732,
7274,
392,
2172,
963,
364,
326,
526,
1195,
202,
202,
4522,
1076,
679,
13830,
273,
394,
2144,
1076,
12,
1082,
202,
10477,
18,
1896,
12,
21,
16,
12,
474,
21433,
2469,
342,
6437,
3719,
1769,
202,
202,
759,
1338,
638,
309,
326,
585,
963,
353,
4846,
202,
202,
6494,
3298,
5491,
273,
16051,
4106,
18,
291,
11685,
1435,
597,
769,
480,
374,
1769,
202,
202,
430,
12,
4101,
5491,
13,
202,
202,
95,
1082,
202,
542,
5491,
620,
12,
20,
1769,
1082,
202,
542,
5491,
13528,
12443,
474,
13,
2469,
1769,
202,
202,
2
] |
final int indexOfClosingParen = javadoc.indexOf(')', indexOfOpenParen); | final int indexOfClosingParen = javadocContents.indexOf(')', indexOfOpenParen); | public String[] getParameterNames() throws JavaModelException { if (this.parameterNames != null) return this.parameterNames; // force source mapping if not already done IType type = (IType) getParent(); SourceMapper mapper = getSourceMapper(); if (mapper != null) { char[][] paramNames = mapper.getMethodParameterNames(this); // map source and try to find parameter names if(paramNames == null) { char[] source = mapper.findSource(type); if (source != null){ mapper.mapSource(type, source); } paramNames = mapper.getMethodParameterNames(this); } // if parameter names exist, convert parameter names to String array if(paramNames != null) { this.parameterNames = new String[paramNames.length]; for (int i = 0; i < paramNames.length; i++) { this.parameterNames[i] = new String(paramNames[i]); } return this.parameterNames; } } // try to see if we can retrieve the names from the attached javadoc IBinaryMethod info = (IBinaryMethod) getElementInfo(); final int paramCount = Signature.getParameterCount(new String(info.getMethodDescriptor())); // TODO (olivier) disable for now See https://bugs.eclipse.org/bugs/show_bug.cgi?id=117740 if (true) { // produce fake ones return this.parameterNames = getRawParameterNames(paramCount); } if (paramCount != 0) { String javadoc = null; try { javadoc = this.getAttachedJavadoc(null, "UTF-8"); //$NON-NLS-1$ } catch (JavaModelException e) { // ignore } if (javadoc != null) { final int indexOfOpenParen = javadoc.indexOf('('); if (indexOfOpenParen != -1) { final int indexOfClosingParen = javadoc.indexOf(')', indexOfOpenParen); if (indexOfClosingParen != -1) { final char[] paramsSource = CharOperation.replace( javadoc.substring(indexOfOpenParen + 1, indexOfClosingParen).toCharArray(), " ".toCharArray(), //$NON-NLS-1$ new char[] {' '}); final char[][] params = CharOperation.splitOn(',', paramsSource); final int paramsLength = params.length; this.parameterNames = new String[paramsLength]; for (int i = 0; i < paramsLength; i++) { final char[] param = params[i]; int indexOfSpace = CharOperation.lastIndexOf(' ', param); if (indexOfSpace != -1) { this.parameterNames[i] = String.valueOf(param, indexOfSpace + 1, param.length - indexOfSpace -1); } else { this.parameterNames[i] = "arg" + i; //$NON-NLS-1$ } } return this.parameterNames; } } } } // if still no parameter names, produce fake ones return this.parameterNames = getRawParameterNames(paramCount);} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/a6002c5b8e946e1be020c41b3eb8e042f8637f31/BinaryMethod.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
514,
8526,
5575,
1557,
1435,
1216,
5110,
1488,
503,
288,
202,
430,
261,
2211,
18,
6775,
1557,
480,
446,
13,
3196,
202,
2463,
333,
18,
6775,
1557,
31,
202,
759,
2944,
1084,
2874,
309,
486,
1818,
2731,
202,
45,
559,
618,
273,
261,
45,
559,
13,
5089,
5621,
202,
1830,
4597,
5815,
273,
7889,
4597,
5621,
202,
430,
261,
13919,
480,
446,
13,
288,
202,
202,
3001,
63,
6362,
65,
579,
1557,
273,
5815,
18,
588,
1305,
1662,
1557,
12,
2211,
1769,
9506,
202,
759,
852,
1084,
471,
775,
358,
1104,
1569,
1257,
202,
202,
430,
12,
891,
1557,
422,
446,
13,
288,
1082,
202,
3001,
8526,
1084,
273,
5815,
18,
4720,
1830,
12,
723,
1769,
1082,
202,
430,
261,
3168,
480,
446,
15329,
9506,
202,
13919,
18,
1458,
1830,
12,
723,
16,
1084,
1769,
1082,
202,
97,
1082,
202,
891,
1557,
273,
5815,
18,
588,
1305,
1662,
1557,
12,
2211,
1769,
202,
202,
97,
9506,
202,
759,
309,
1569,
1257,
1005,
16,
1765,
1569,
1257,
358,
514,
526,
202,
202,
430,
12,
891,
1557,
480,
446,
13,
288,
1082,
202,
2211,
18,
6775,
1557,
273,
394,
514,
63,
891,
1557,
18,
2469,
15533,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
579,
1557,
18,
2469,
31,
277,
27245,
288,
9506,
202,
2211,
18,
6775,
1557,
63,
77,
65,
273,
394,
514,
12,
891,
1557,
63,
77,
19226,
1082,
202,
97,
1082,
202,
2463,
333,
18,
6775,
1557,
31,
202,
202,
97,
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,
1071,
514,
8526,
5575,
1557,
1435,
1216,
5110,
1488,
503,
288,
202,
430,
261,
2211,
18,
6775,
1557,
480,
446,
13,
3196,
202,
2463,
333,
18,
6775,
1557,
31,
202,
759,
2944,
1084,
2874,
309,
486,
1818,
2731,
202,
45,
559,
618,
273,
261,
45,
559,
13,
5089,
5621,
202,
1830,
4597,
5815,
273,
7889,
4597,
5621,
202,
430,
261,
13919,
480,
446,
13,
288,
202,
202,
3001,
63,
6362,
65,
579,
1557,
273,
5815,
18,
588,
1305,
1662,
1557,
12,
2211,
1769,
9506,
202,
759,
852,
1084,
471,
775,
358,
1104,
1569,
1257,
202,
202,
430,
12,
891,
1557,
422,
446,
13,
288,
1082,
202,
3001,
8526,
1084,
273,
5815,
18,
4720,
1830,
12,
723,
1769,
1082,
202,
2
] |
Level l = makeLevel(block.getRetryCount()); if(l == null) throw new IllegalArgumentException(); int levelNumber = l.level; l.remove(block); | int levelNumber = block.getRetryCount(); | public synchronized void nonfatalError(SplitfileBlock block, int reasonCode) { nonfatalErrors.inc(reasonCode); runningBlocks.remove(block); Level l = makeLevel(block.getRetryCount()); if(l == null) throw new IllegalArgumentException(); int levelNumber = l.level; l.remove(block); levelNumber++; if(levelNumber > maxLevel) { failedBlocksTooManyRetries.add(block); Logger.minor(this, "Finished with "+block); } else { Level newLevel = makeLevel(levelNumber); newLevel.add(block); } maybeStart(false); } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/b7133fb27d8a7d18085bd1d9ba428adcdbe21b69/RetryTracker.java/clean/src/freenet/client/RetryTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1661,
30709,
668,
12,
5521,
768,
1768,
1203,
16,
509,
3971,
1085,
13,
288,
202,
202,
5836,
30709,
4229,
18,
9523,
12,
10579,
1085,
1769,
202,
202,
8704,
6450,
18,
4479,
12,
2629,
1769,
202,
202,
2355,
328,
273,
1221,
2355,
12,
2629,
18,
588,
7539,
1380,
10663,
202,
202,
430,
12,
80,
422,
446,
13,
604,
394,
2754,
5621,
202,
202,
474,
1801,
1854,
273,
328,
18,
2815,
31,
202,
202,
80,
18,
4479,
12,
2629,
1769,
202,
202,
2815,
1854,
9904,
31,
202,
202,
430,
12,
2815,
1854,
405,
943,
2355,
13,
288,
1082,
202,
7307,
6450,
10703,
5594,
13656,
18,
1289,
12,
2629,
1769,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
10577,
598,
13773,
2629,
1769,
202,
202,
97,
469,
288,
1082,
202,
2355,
394,
2355,
273,
1221,
2355,
12,
2815,
1854,
1769,
1082,
202,
2704,
2355,
18,
1289,
12,
2629,
1769,
202,
202,
97,
202,
202,
19133,
1685,
12,
5743,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1661,
30709,
668,
12,
5521,
768,
1768,
1203,
16,
509,
3971,
1085,
13,
288,
202,
202,
5836,
30709,
4229,
18,
9523,
12,
10579,
1085,
1769,
202,
202,
8704,
6450,
18,
4479,
12,
2629,
1769,
202,
202,
2355,
328,
273,
1221,
2355,
12,
2629,
18,
588,
7539,
1380,
10663,
202,
202,
430,
12,
80,
422,
446,
13,
604,
394,
2754,
5621,
202,
202,
474,
1801,
1854,
273,
328,
18,
2815,
31,
202,
202,
80,
18,
4479,
12,
2629,
1769,
202,
202,
2815,
1854,
9904,
31,
202,
202,
430,
12,
2815,
1854,
405,
943,
2355,
13,
288,
1082,
202,
7307,
6450,
10703,
5594,
13656,
18,
1289,
12,
2629,
1769,
1082,
202,
3328,
18,
17364,
12,
2211,
2
] |
if ( dummyProvider.getPropertyTypeCode( propName ) == PropertyType.SCRIPT_TYPE || dummyProvider.getPropertyTypeCode( propName ) == PropertyType.XML_TYPE ) | if ( dummyProvider.getPropertyTypeCode( propName ) == IPropertyType.SCRIPT_TYPE || dummyProvider.getPropertyTypeCode( propName ) == IPropertyType.XML_TYPE ) | private void writeOdaDummyProperties( DesignElement obj, ODAProvider provider ) { assert provider instanceof OdaDummyProvider; OdaDummyProvider dummyProvider = (OdaDummyProvider) provider; List propNames = dummyProvider.getPropertyNames( ); for ( int i = 0; i < propNames.size( ); i++ ) { String propName = (String) propNames.get( i ); String tagName = dummyProvider.getTagName( propName ); String value = dummyProvider.getValue( propName ); boolean cdata = false; if ( dummyProvider.getPropertyTypeCode( propName ) == PropertyType.SCRIPT_TYPE || dummyProvider.getPropertyTypeCode( propName ) == PropertyType.XML_TYPE ) cdata = true; writeEntry( tagName, propName, value, cdata ); } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/ModuleWriter.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
51,
2414,
20094,
2297,
12,
29703,
1046,
1081,
16,
1082,
202,
1212,
37,
2249,
2893,
262,
202,
95,
202,
202,
11231,
2893,
1276,
531,
2414,
20094,
2249,
31,
202,
202,
51,
2414,
20094,
2249,
9609,
2249,
273,
261,
51,
2414,
20094,
2249,
13,
2893,
31,
202,
202,
682,
2270,
1557,
273,
9609,
2249,
18,
588,
29932,
12,
11272,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
2270,
1557,
18,
1467,
12,
11272,
277,
9904,
262,
202,
202,
95,
1082,
202,
780,
9994,
273,
261,
780,
13,
2270,
1557,
18,
588,
12,
277,
11272,
1082,
202,
780,
7196,
273,
9609,
2249,
18,
588,
8520,
12,
9994,
11272,
1082,
202,
780,
460,
273,
9609,
2249,
18,
24805,
12,
9994,
11272,
1082,
202,
6494,
20712,
273,
629,
31,
1082,
202,
430,
261,
9609,
2249,
18,
588,
1396,
15460,
12,
9994,
262,
422,
22983,
18,
10885,
67,
2399,
6862,
202,
20081,
9609,
2249,
18,
588,
1396,
15460,
12,
9994,
262,
422,
22983,
18,
4201,
67,
2399,
262,
9506,
202,
71,
892,
273,
638,
31,
1082,
202,
2626,
1622,
12,
7196,
16,
9994,
16,
460,
16,
20712,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
51,
2414,
20094,
2297,
12,
29703,
1046,
1081,
16,
1082,
202,
1212,
37,
2249,
2893,
262,
202,
95,
202,
202,
11231,
2893,
1276,
531,
2414,
20094,
2249,
31,
202,
202,
51,
2414,
20094,
2249,
9609,
2249,
273,
261,
51,
2414,
20094,
2249,
13,
2893,
31,
202,
202,
682,
2270,
1557,
273,
9609,
2249,
18,
588,
29932,
12,
11272,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
2270,
1557,
18,
1467,
12,
11272,
277,
9904,
262,
202,
202,
95,
1082,
202,
780,
9994,
273,
261,
780,
13,
2270,
1557,
18,
588,
12,
277,
11272,
1082,
202,
780,
7196,
273,
9609,
2249,
18,
588,
8520,
12,
9994,
11272,
1082,
202,
780,
460,
273,
2
] |
String m = map.toString(); int mlen = m.length(); | if (mlen==0) return sv; | public static Object translate (Object str, Object map, Object trans) { if (str == Values.empty || map == Values.empty || trans == Values.empty) return Values.empty; String m = map.toString(); int mlen = m.length(); if (mlen==0) return str.toString(); String t = trans.toString(); StringBuffer s = new StringBuffer(str.toString()); int slen = s.length(); int tlen = t.length(); for (int i=0;i < slen;i++) { for (int j=0;j<mlen;j++) { if (s.charAt(i)==m.charAt(j)) { if (j<tlen) { s.setCharAt(i,t.charAt(j)); } else { s.deleteCharAt(i--); slen--; } continue; } } } return s.toString(); } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/92d18dec25b6c6719796a034d502322bf830c93c/StringValue.java/clean/gnu/xquery/util/StringValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1033,
4204,
261,
921,
609,
16,
1033,
852,
16,
1033,
906,
13,
225,
288,
565,
309,
261,
701,
422,
6876,
18,
5531,
747,
852,
422,
6876,
18,
5531,
747,
906,
422,
6876,
18,
5531,
13,
1377,
327,
6876,
18,
5531,
31,
565,
514,
312,
273,
852,
18,
10492,
5621,
565,
509,
312,
1897,
273,
312,
18,
2469,
5621,
565,
309,
261,
781,
275,
631,
20,
13,
327,
609,
18,
10492,
5621,
565,
514,
268,
273,
906,
18,
10492,
5621,
565,
6674,
272,
273,
394,
6674,
12,
701,
18,
10492,
10663,
565,
509,
272,
1897,
273,
272,
18,
2469,
5621,
565,
509,
268,
1897,
273,
268,
18,
2469,
5621,
565,
364,
261,
474,
277,
33,
20,
31,
77,
411,
272,
1897,
31,
77,
27245,
1377,
288,
202,
1884,
261,
474,
525,
33,
20,
31,
78,
32,
781,
275,
31,
78,
27245,
202,
225,
288,
202,
565,
309,
261,
87,
18,
3001,
861,
12,
77,
13,
631,
81,
18,
3001,
861,
12,
78,
3719,
202,
1377,
288,
202,
202,
430,
261,
78,
32,
27560,
13,
288,
272,
18,
542,
2156,
861,
12,
77,
16,
88,
18,
3001,
861,
12,
78,
10019,
289,
202,
202,
12107,
288,
272,
18,
3733,
2156,
861,
12,
77,
413,
1769,
272,
1897,
413,
31,
289,
202,
202,
17143,
31,
202,
1377,
289,
202,
225,
289,
1377,
289,
565,
327,
272,
18,
10492,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
4204,
261,
921,
609,
16,
1033,
852,
16,
1033,
906,
13,
225,
288,
565,
309,
261,
701,
422,
6876,
18,
5531,
747,
852,
422,
6876,
18,
5531,
747,
906,
422,
6876,
18,
5531,
13,
1377,
327,
6876,
18,
5531,
31,
565,
514,
312,
273,
852,
18,
10492,
5621,
565,
509,
312,
1897,
273,
312,
18,
2469,
5621,
565,
309,
261,
781,
275,
631,
20,
13,
327,
609,
18,
10492,
5621,
565,
514,
268,
273,
906,
18,
10492,
5621,
565,
6674,
272,
273,
394,
6674,
12,
701,
18,
10492,
10663,
565,
509,
272,
1897,
273,
272,
18,
2469,
5621,
565,
509,
268,
1897,
273,
268,
18,
2469,
5621,
565,
364,
261,
474,
277,
33,
20,
31,
2
] |
return (Integer)cell; | return new Integer(((BigDecimal)cell).intValue()); | Object databaseToCache(final Object cell) { if(cell==null) return null; else return (Integer)cell; } | 50290 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50290/812a19aa291f82ae6cba38784878cefd69a3610c/IntegerAttribute.java/clean/lib/src/com/exedio/cope/lib/IntegerAttribute.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
921,
2063,
774,
1649,
12,
6385,
1033,
2484,
13,
202,
95,
202,
202,
430,
12,
3855,
631,
2011,
13,
1082,
202,
2463,
446,
31,
202,
202,
12107,
1082,
202,
2463,
261,
4522,
13,
3855,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
921,
2063,
774,
1649,
12,
6385,
1033,
2484,
13,
202,
95,
202,
202,
430,
12,
3855,
631,
2011,
13,
1082,
202,
2463,
446,
31,
202,
202,
12107,
1082,
202,
2463,
261,
4522,
13,
3855,
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
] |
throw new GroupsException("Problem removing group member " + gm.getKey() + " from cache: " + ce.getMessage()); | throw new GroupsException("Problem removing group member " + gm.getKey() + " from cache", ce); | protected void ifinishedSession(IPerson person) throws GroupsException { IGroupMember gm = getGroupMember(person.getEntityIdentifier()); try { EntityCachingService.instance().remove(gm.getEntityIdentifier()); } catch (CachingException ce) { throw new GroupsException("Problem removing group member " + gm.getKey() + " from cache: " + ce.getMessage()); } } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/948a50c00c52659556ab3183d5ea2e316077d789/GroupService.java/buggy/source/org/jasig/portal/services/GroupService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
309,
267,
5992,
2157,
12,
2579,
3565,
6175,
13,
1216,
14712,
503,
565,
288,
3639,
467,
1114,
4419,
14125,
273,
11751,
4419,
12,
12479,
18,
588,
1943,
3004,
10663,
540,
775,
3639,
288,
2398,
3887,
17712,
1179,
18,
1336,
7675,
4479,
12,
23336,
18,
588,
1943,
3004,
10663,
540,
289,
3639,
1044,
261,
17712,
503,
5898,
13,
3639,
288,
5411,
604,
394,
14712,
503,
2932,
13719,
9427,
1041,
3140,
315,
397,
14125,
18,
588,
653,
1435,
397,
315,
628,
1247,
3113,
5898,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
309,
267,
5992,
2157,
12,
2579,
3565,
6175,
13,
1216,
14712,
503,
565,
288,
3639,
467,
1114,
4419,
14125,
273,
11751,
4419,
12,
12479,
18,
588,
1943,
3004,
10663,
540,
775,
3639,
288,
2398,
3887,
17712,
1179,
18,
1336,
7675,
4479,
12,
23336,
18,
588,
1943,
3004,
10663,
540,
289,
3639,
1044,
261,
17712,
503,
5898,
13,
3639,
288,
5411,
604,
394,
14712,
503,
2932,
13719,
9427,
1041,
3140,
315,
397,
14125,
18,
588,
653,
1435,
397,
315,
628,
1247,
3113,
5898,
1769,
3639,
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
] |
Logger.trace("StendhalRPRuleProcessor::addBuddy","<"); | Log4J.finishMethod(logger,"addBuddy"); | private void addBuddy(Player player, RPAction action) { Logger.trace("StendhalRPRuleProcessor::addBuddy",">"); try { if(action.has("who")) { String who=action.get("who"); RPSlot slot=player.getSlot("!buddy"); RPObject listBuddies=null; if(slot.size()>0) { listBuddies=slot.iterator().next(); } else { listBuddies=new RPObject(); listBuddies.put("zoneid",player.get("zoneid")); //Fixme: fix this at marauroa. slot.assignValidID(listBuddies); slot.add(listBuddies); } int online=0; for(Player p : getPlayers()) { if(p.getName().equals(who)) { online=1; } } listBuddies.put("_"+who,online); world.modify(player); } } finally { Logger.trace("StendhalRPRuleProcessor::addBuddy","<"); } } | 4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/2f5a2a4a5b59a172e667611127a4c633125829e5/StendhalRPRuleProcessor.java/clean/src/games/stendhal/server/StendhalRPRuleProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
527,
38,
29017,
12,
12148,
7291,
16,
534,
52,
1803,
1301,
13,
565,
288,
565,
4242,
18,
5129,
2932,
510,
409,
22314,
54,
52,
2175,
5164,
2866,
1289,
38,
29017,
15937,
2984,
1769,
565,
775,
1377,
288,
1377,
309,
12,
1128,
18,
5332,
2932,
3350,
83,
6,
3719,
3639,
288,
3639,
514,
10354,
33,
1128,
18,
588,
2932,
3350,
83,
8863,
3639,
534,
52,
8764,
4694,
33,
14872,
18,
588,
8764,
2932,
5,
70,
29017,
8863,
7734,
534,
52,
921,
666,
38,
20567,
606,
33,
2011,
31,
7734,
309,
12,
14194,
18,
1467,
1435,
34,
20,
13,
1850,
288,
1850,
666,
38,
20567,
606,
33,
14194,
18,
9838,
7675,
4285,
5621,
1850,
289,
3639,
469,
1850,
288,
1850,
666,
38,
20567,
606,
33,
2704,
534,
52,
921,
5621,
1850,
666,
38,
20567,
606,
18,
458,
2932,
3486,
350,
3113,
14872,
18,
588,
2932,
3486,
350,
7923,
1769,
6647,
368,
8585,
3501,
30,
2917,
333,
622,
21282,
28659,
11867,
18,
1850,
4694,
18,
6145,
14710,
12,
1098,
38,
20567,
606,
1769,
1850,
4694,
18,
1289,
12,
1098,
38,
20567,
606,
1769,
1850,
289,
7734,
509,
12365,
33,
20,
31,
3639,
364,
12,
12148,
293,
294,
9774,
3907,
10756,
1850,
288,
1850,
309,
12,
84,
18,
17994,
7675,
14963,
12,
3350,
83,
3719,
5411,
288,
5411,
12365,
33,
21,
31,
13491,
289,
1850,
289,
5375,
666,
38,
20567,
606,
18,
458,
2932,
9548,
15,
3350,
83,
16,
21026,
1769,
3639,
9117,
18,
17042,
12,
14872,
1769,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
527,
38,
29017,
12,
12148,
7291,
16,
534,
52,
1803,
1301,
13,
565,
288,
565,
4242,
18,
5129,
2932,
510,
409,
22314,
54,
52,
2175,
5164,
2866,
1289,
38,
29017,
15937,
2984,
1769,
565,
775,
1377,
288,
1377,
309,
12,
1128,
18,
5332,
2932,
3350,
83,
6,
3719,
3639,
288,
3639,
514,
10354,
33,
1128,
18,
588,
2932,
3350,
83,
8863,
3639,
534,
52,
8764,
4694,
33,
14872,
18,
588,
8764,
2932,
5,
70,
29017,
8863,
7734,
534,
52,
921,
666,
38,
20567,
606,
33,
2011,
31,
7734,
309,
12,
14194,
18,
1467,
1435,
34,
20,
13,
1850,
288,
1850,
666,
38,
20567,
606,
33,
14194,
18,
9838,
7675,
4285,
5621,
1850,
289,
3639,
469,
1850,
2
] |
public List prune(List stateTokenList) { | public ActiveList prune(ActiveList stateTokenList) { | public List prune(List stateTokenList) { int startSize = stateTokenList.size(); for (Iterator i = stateTokenList.listIterator(); i.hasNext();) { Token token = (Token) i.next(); if (token.getScore() < minScore) { i.remove(); } } System.out.println("Pruner: " + stateTokenList.size() + " tokens remaining after pruning " + (startSize - stateTokenList.size())); return stateTokenList; } | 8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/b23b1e1ac3f8835d3ff09166cb4096c7e66dce15/SimpleSearchTest.java/clean/sphinx4/tests/search/SimpleSearchTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
13293,
12,
682,
919,
1345,
682,
13,
288,
202,
474,
787,
1225,
273,
919,
1345,
682,
18,
1467,
5621,
202,
1884,
261,
3198,
277,
273,
919,
1345,
682,
18,
1098,
3198,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
202,
565,
3155,
1147,
273,
261,
1345,
13,
277,
18,
4285,
5621,
202,
565,
309,
261,
2316,
18,
588,
7295,
1435,
411,
1131,
7295,
13,
288,
202,
202,
77,
18,
4479,
5621,
202,
565,
289,
202,
97,
202,
3163,
18,
659,
18,
8222,
2932,
2050,
29640,
30,
315,
397,
919,
1345,
682,
18,
1467,
1435,
3196,
202,
15,
315,
2430,
4463,
1839,
846,
13036,
315,
397,
261,
1937,
1225,
300,
202,
202,
2019,
1345,
682,
18,
1467,
1435,
10019,
202,
2463,
919,
1345,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
13293,
12,
682,
919,
1345,
682,
13,
288,
202,
474,
787,
1225,
273,
919,
1345,
682,
18,
1467,
5621,
202,
1884,
261,
3198,
277,
273,
919,
1345,
682,
18,
1098,
3198,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
202,
565,
3155,
1147,
273,
261,
1345,
13,
277,
18,
4285,
5621,
202,
565,
309,
261,
2316,
18,
588,
7295,
1435,
411,
1131,
7295,
13,
288,
202,
202,
77,
18,
4479,
5621,
202,
565,
289,
202,
97,
202,
3163,
18,
659,
18,
8222,
2932,
2050,
29640,
30,
315,
397,
919,
1345,
682,
18,
1467,
1435,
3196,
202,
15,
315,
2430,
4463,
1839,
846,
13036,
315,
397,
261,
1937,
1225,
300,
202,
202,
2019,
1345,
682,
18,
1467,
2
] |
if (pruning) | if (pruning) { | public void run(IProgressMonitor pm) throws InvocationTargetException { try { runCommand(pm); } catch (ExecutionException e) { if (pruning) flush(); throw new InvocationTargetException(e); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/OperationHistoryActionHandler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/OperationHistoryActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
45,
5491,
7187,
7430,
13,
6862,
202,
15069,
15342,
288,
9506,
202,
698,
288,
6862,
202,
2681,
2189,
12,
7755,
1769,
9506,
202,
97,
1044,
261,
14576,
425,
13,
288,
6862,
202,
430,
261,
683,
13036,
13,
25083,
202,
11330,
5621,
6862,
202,
12849,
394,
15342,
12,
73,
1769,
9506,
202,
97,
1082,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
45,
5491,
7187,
7430,
13,
6862,
202,
15069,
15342,
288,
9506,
202,
698,
288,
6862,
202,
2681,
2189,
12,
7755,
1769,
9506,
202,
97,
1044,
261,
14576,
425,
13,
288,
6862,
202,
430,
261,
683,
13036,
13,
25083,
202,
11330,
5621,
6862,
202,
12849,
394,
15342,
12,
73,
1769,
9506,
202,
97,
1082,
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
] |
registerJavaXPCOMMethods(aLibXULDirectory); | public void initEmbedding(File aLibXULDirectory, File aAppDirectory, IAppFileLocProvider aAppDirProvider) { registerJavaXPCOMMethods(aLibXULDirectory); initEmbeddingNative(aLibXULDirectory, aAppDirectory, aAppDirProvider); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/516a62368bdaf59161279ef3d389eed185fe4883/GREImpl.java/clean/extensions/java/xpcom/src/org/mozilla/xpcom/internal/GREImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1208,
9538,
7459,
12,
812,
279,
5664,
60,
1506,
2853,
16,
1387,
279,
3371,
2853,
16,
1850,
467,
3371,
812,
1333,
2249,
279,
3371,
1621,
2249,
13,
288,
4202,
1208,
9538,
7459,
9220,
12,
69,
5664,
60,
1506,
2853,
16,
279,
3371,
2853,
16,
279,
3371,
1621,
2249,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1208,
9538,
7459,
12,
812,
279,
5664,
60,
1506,
2853,
16,
1387,
279,
3371,
2853,
16,
1850,
467,
3371,
812,
1333,
2249,
279,
3371,
1621,
2249,
13,
288,
4202,
1208,
9538,
7459,
9220,
12,
69,
5664,
60,
1506,
2853,
16,
279,
3371,
2853,
16,
279,
3371,
1621,
2249,
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
] | |
protected Control createContents(Composite parent) { // create the top level composite for the dialog Composite composite = new Composite(parent, 0); GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.verticalSpacing = 0; composite.setLayout(layout); composite.setLayoutData(new GridData(GridData.FILL_BOTH)); applyDialogFont(composite); // initialize the dialog units initializeDialogUnits(composite); // create the dialog area and button bar dialogArea = createDialogArea(composite); buttonBar = createButtonBar(composite); return composite; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b55db1f8df03ebade4e59f55f97c8c3917057362/Dialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3367,
2640,
6323,
12,
799,
1724,
881,
817,
15329,
202,
202,
759,
27350,
546,
278,
556,
2815,
27676,
1884,
451,
329,
3529,
202,
202,
799,
1724,
30433,
4974,
33,
2704,
9400,
12,
2938,
16,
20,
1769,
202,
202,
6313,
3744,
6741,
33,
2704,
6313,
3744,
5621,
202,
202,
6741,
18,
10107,
2686,
33,
20,
31,
202,
202,
6741,
18,
10107,
2384,
33,
20,
31,
202,
202,
6741,
18,
17824,
18006,
33,
20,
31,
202,
202,
27676,
18,
542,
3744,
12,
6741,
1769,
202,
202,
27676,
18,
542,
3744,
751,
12,
2704,
6313,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
9010,
6353,
5711,
12,
27676,
1769,
202,
202,
759,
6769,
452,
546,
329,
3529,
7705,
202,
202,
11160,
6353,
7537,
12,
27676,
1769,
202,
202,
759,
27350,
546,
329,
3529,
5036,
464,
5391,
3215,
202,
202,
12730,
5484,
33,
2640,
6353,
5484,
12,
27676,
1769,
202,
202,
5391,
5190,
33,
2640,
3616,
5190,
12,
27676,
1769,
202,
202,
2463,
27676,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3367,
2640,
6323,
12,
799,
1724,
881,
817,
15329,
202,
202,
759,
27350,
546,
278,
556,
2815,
27676,
1884,
451,
329,
3529,
202,
202,
799,
1724,
30433,
4974,
33,
2704,
9400,
12,
2938,
16,
20,
1769,
202,
202,
6313,
3744,
6741,
33,
2704,
6313,
3744,
5621,
202,
202,
6741,
18,
10107,
2686,
33,
20,
31,
202,
202,
6741,
18,
10107,
2384,
33,
20,
31,
202,
202,
6741,
18,
17824,
18006,
33,
20,
31,
202,
202,
27676,
18,
542,
3744,
12,
6741,
1769,
202,
202,
27676,
18,
542,
3744,
751,
12,
2704,
6313,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
9010,
6353,
5711,
12,
27676,
1769,
202,
202,
759,
6769,
452,
546,
2
] | ||
str=props.getProperty("down_thread"); if(str != null) { down_thread=new Boolean(str).booleanValue(); props.remove("down_thread"); } | str = props.getProperty("down_thread"); if (str != null) { down_thread = new Boolean(str).booleanValue(); props.remove("down_thread"); } | public boolean setPropertiesInternal(Properties props) { String str; this.props=(Properties)props.clone(); str=props.getProperty("down_thread"); if(str != null) { down_thread=new Boolean(str).booleanValue(); props.remove("down_thread"); } str=props.getProperty("down_thread_prio"); if(str != null) { down_thread_prio=Integer.parseInt(str); props.remove("down_thread_prio"); } str=props.getProperty("up_thread"); if(str != null) { up_thread=new Boolean(str).booleanValue(); props.remove("up_thread"); } str=props.getProperty("up_thread_prio"); if(str != null) { up_thread_prio=Integer.parseInt(str); props.remove("up_thread_prio"); } return setProperties(props); } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/cc88a4a6b162f10af320cb7c96196119710527e8/Protocol.java/clean/src/org/jgroups/stack/Protocol.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
23126,
3061,
12,
2297,
3458,
13,
288,
3639,
514,
609,
31,
3639,
333,
18,
9693,
28657,
2297,
13,
9693,
18,
14056,
5621,
3639,
609,
33,
9693,
18,
588,
1396,
2932,
2378,
67,
5930,
8863,
3639,
309,
12,
701,
480,
446,
13,
288,
5411,
2588,
67,
5930,
33,
2704,
3411,
12,
701,
2934,
6494,
620,
5621,
5411,
3458,
18,
4479,
2932,
2378,
67,
5930,
8863,
3639,
289,
3639,
609,
33,
9693,
18,
588,
1396,
2932,
2378,
67,
5930,
67,
29112,
83,
8863,
3639,
309,
12,
701,
480,
446,
13,
288,
5411,
2588,
67,
5930,
67,
29112,
83,
33,
4522,
18,
2670,
1702,
12,
701,
1769,
5411,
3458,
18,
4479,
2932,
2378,
67,
5930,
67,
29112,
83,
8863,
3639,
289,
3639,
609,
33,
9693,
18,
588,
1396,
2932,
416,
67,
5930,
8863,
3639,
309,
12,
701,
480,
446,
13,
288,
5411,
731,
67,
5930,
33,
2704,
3411,
12,
701,
2934,
6494,
620,
5621,
5411,
3458,
18,
4479,
2932,
416,
67,
5930,
8863,
3639,
289,
3639,
609,
33,
9693,
18,
588,
1396,
2932,
416,
67,
5930,
67,
29112,
83,
8863,
3639,
309,
12,
701,
480,
446,
13,
288,
5411,
731,
67,
5930,
67,
29112,
83,
33,
4522,
18,
2670,
1702,
12,
701,
1769,
5411,
3458,
18,
4479,
2932,
416,
67,
5930,
67,
29112,
83,
8863,
3639,
289,
3639,
327,
23126,
12,
9693,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
23126,
3061,
12,
2297,
3458,
13,
288,
3639,
514,
609,
31,
3639,
333,
18,
9693,
28657,
2297,
13,
9693,
18,
14056,
5621,
3639,
609,
33,
9693,
18,
588,
1396,
2932,
2378,
67,
5930,
8863,
3639,
309,
12,
701,
480,
446,
13,
288,
5411,
2588,
67,
5930,
33,
2704,
3411,
12,
701,
2934,
6494,
620,
5621,
5411,
3458,
18,
4479,
2932,
2378,
67,
5930,
8863,
3639,
289,
3639,
609,
33,
9693,
18,
588,
1396,
2932,
2378,
67,
5930,
67,
29112,
83,
8863,
3639,
309,
12,
701,
480,
446,
13,
288,
5411,
2588,
67,
5930,
67,
29112,
83,
33,
4522,
18,
2670,
1702,
12,
701,
1769,
5411,
3458,
18,
4479,
2932,
2378,
67,
5930,
67,
29112,
83,
8863,
2
] |
iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsData.itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsData.itsVariableTable. getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { Number num = (Number)node.getDatum(); if (num.doubleValue() == 0.0) iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); else if (num.doubleValue() == 1.0) iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ while (child != null) { if (lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/32feff141e5ccc7b1b5e5423d181b6baf24616a0/Interpreter.java/buggy/js/rhino/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
13491,
648,
3155,
1228,
18,
7788,
294,
288,
4766,
18701,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
13,
3155,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
7925,
770,
273,
261,
4897,
13,
2295,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
21433,
1615,
18,
6620,
620,
1435,
1671,
1725,
3631,
277,
1085,
3401,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
21433,
1615,
18,
6620,
620,
1435,
473,
374,
5297,
3631,
277,
1085,
3401,
1769,
4766,
3639,
2097,
2624,
6148,
9904,
31,
10792,
309,
261,
1282,
2624,
6148,
405,
2097,
751,
18,
1282,
2747,
2624,
13,
13491,
2097,
751,
18,
1282,
2747,
2624,
273,
2097,
2624,
6148,
31,
7734,
289,
7734,
898,
31,
5411,
648,
3155,
1228,
18,
10885,
294,
7734,
277,
1085,
3401,
273,
1089,
31063,
12,
2159,
16,
277,
1085,
3401,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
309,
261,
3624,
18,
588,
559,
1435,
480,
3155,
1228,
18,
7788,
13,
7682,
277,
1085,
3401,
273,
2103,
45,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
13491,
648,
3155,
1228,
18,
7788,
294,
288,
4766,
18701,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
13,
3155,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
7925,
770,
273,
261,
4897,
13,
2295,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
2
] | |
public org.quickfix.field.MarginRatio getMarginRatio() throws FieldNotFound { org.quickfix.field.MarginRatio value = new org.quickfix.field.MarginRatio(); | public quickfix.field.MarginRatio getMarginRatio() throws FieldNotFound { quickfix.field.MarginRatio value = new quickfix.field.MarginRatio(); | public org.quickfix.field.MarginRatio getMarginRatio() throws FieldNotFound { org.quickfix.field.MarginRatio value = new org.quickfix.field.MarginRatio(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteResponse.java/buggy/src/java/src/quickfix/fix44/QuoteResponse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
9524,
8541,
2108,
5243,
8541,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
9524,
8541,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
9524,
8541,
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,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
9524,
8541,
2108,
5243,
8541,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
9524,
8541,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
9524,
8541,
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,
-100,
-100,
-100
] |
if (smartHiddenEditor != null) smartHiddenEditor.setVisible(true); | persp.showEditorArea(); | private void smartZoomIn(LayoutPart part, Perspective persp) { // HACK!! since we aren't changing the 'state' maximize always // get called; 'unzoom' if necessary if (smartZoomed) { // Restore the editor area if necessary if (smartHiddenEditor != null) smartHiddenEditor.setVisible(true); // Restore (close) and groups created during a zoom persp.restoreZoomGroups(); // we're 'unzoomed' smartZoomed = false; // Remember that we need to trigger a layout layoutDirty = true; return; } // 'Smart'(?) zoom...'minimize' all view stacks except the // one we're zooming. If we're zooming the editor then -all- // view stacks get minimized LayoutPart[] children = getChildren(); for (int i = 0; i < children.length; i++) { LayoutPart child = children[i]; // Close the editor stack unless it's the 'zooming' part if (child instanceof EditorSashContainer && child != part) { child.setVisible(false); // Remember it so we can restore it smartHiddenEditor = (EditorSashContainer) child; } else if (child instanceof ViewStack) { if (child != part) { persp.moveToTrim((ViewStack) child, FastViewBar.GROUP_FVB | FastViewBar.ZOOM_GROUP); } } } // We're -not- really zoomed, don't lie zoomedPart = null; // ...but we're 'zoomed' smartZoomed = true; // Remember that we need to trigger a layout layoutDirty = true; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/14ff4c11ee4735038f89d4e70153748cdfff9446/PartSashContainer.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartSashContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13706,
11497,
382,
12,
3744,
1988,
1087,
16,
453,
414,
16772,
13508,
84,
13,
288,
377,
202,
759,
670,
3649,
8548,
3241,
732,
11526,
1404,
12770,
326,
296,
2019,
11,
943,
10153,
3712,
377,
202,
759,
336,
2566,
31,
296,
318,
14932,
11,
309,
4573,
377,
202,
430,
261,
26416,
11497,
329,
13,
288,
377,
202,
202,
759,
11197,
326,
4858,
5091,
309,
4573,
377,
202,
202,
430,
261,
26416,
9345,
6946,
480,
446,
13,
377,
1082,
202,
26416,
9345,
6946,
18,
542,
6207,
12,
3767,
1769,
377,
1082,
377,
202,
202,
759,
11197,
261,
4412,
13,
471,
3252,
2522,
4982,
279,
7182,
5411,
13508,
84,
18,
13991,
11497,
3621,
5621,
13491,
368,
732,
4565,
296,
318,
14932,
329,
11,
5411,
13706,
11497,
329,
273,
629,
31,
13491,
368,
23133,
716,
732,
1608,
358,
3080,
279,
3511,
5411,
3511,
10785,
273,
638,
31,
5411,
327,
31,
377,
202,
97,
377,
202,
377,
202,
759,
296,
23824,
11,
3680,
13,
7182,
7821,
1154,
10153,
11,
777,
1476,
19838,
1335,
326,
377,
202,
759,
1245,
732,
4565,
7182,
310,
18,
971,
732,
4565,
7182,
310,
326,
4858,
1508,
300,
454,
17,
377,
202,
759,
1476,
19838,
336,
18172,
1235,
3639,
9995,
1988,
8526,
2325,
273,
10268,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2325,
18,
2469,
31,
277,
27245,
288,
5411,
9995,
1988,
1151,
273,
2325,
63,
77,
15533,
377,
202,
202,
759,
3527,
326,
4858,
2110,
3308,
518,
1807,
326,
296,
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,
13706,
11497,
382,
12,
3744,
1988,
1087,
16,
453,
414,
16772,
13508,
84,
13,
288,
377,
202,
759,
670,
3649,
8548,
3241,
732,
11526,
1404,
12770,
326,
296,
2019,
11,
943,
10153,
3712,
377,
202,
759,
336,
2566,
31,
296,
318,
14932,
11,
309,
4573,
377,
202,
430,
261,
26416,
11497,
329,
13,
288,
377,
202,
202,
759,
11197,
326,
4858,
5091,
309,
4573,
377,
202,
202,
430,
261,
26416,
9345,
6946,
480,
446,
13,
377,
1082,
202,
26416,
9345,
6946,
18,
542,
6207,
12,
3767,
1769,
377,
1082,
377,
202,
202,
759,
11197,
261,
4412,
13,
471,
3252,
2522,
4982,
279,
7182,
5411,
13508,
84,
18,
13991,
11497,
3621,
5621,
13491,
368,
732,
4565,
296,
2
] |
framework.publishBundleEvent(BundleEvent.UNRESOLVED, this); | protected boolean unresolve() { if (Debug.DEBUG && Debug.DEBUG_GENERAL) { if ((state & (INSTALLED | RESOLVED)) == 0) { Debug.println("Bundle.reload called when state != INSTALLED | RESOLVED: " + this); //$NON-NLS-1$ Debug.printStackTrace(new Exception("Stack trace")); //$NON-NLS-1$ } } if (framework.isActive()) { if (host != null) { if (state == RESOLVED) { state = INSTALLED; // publish UNRESOLVED event here. framework.publishBundleEvent(BundleEvent.UNRESOLVED, this); host = null; } } } else { /* close the outgoing jarfile */ try { this.bundledata.close(); } catch (IOException e) { // Do Nothing } } return (false); } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/3871aaa329b773915c21dbdb5930bbef76b30a09/BundleFragment.java/buggy/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/BundleFragment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
640,
10828,
1435,
288,
202,
202,
430,
261,
2829,
18,
9394,
597,
4015,
18,
9394,
67,
13990,
1013,
13,
288,
1082,
202,
430,
14015,
2019,
473,
261,
19784,
27751,
571,
12915,
1741,
12135,
3719,
422,
374,
13,
288,
9506,
202,
2829,
18,
8222,
2932,
3405,
18,
17517,
2566,
1347,
919,
480,
22880,
27751,
571,
12915,
1741,
12135,
30,
315,
397,
333,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2829,
18,
1188,
6332,
12,
2704,
1185,
2932,
2624,
2606,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
12303,
18,
291,
3896,
10756,
288,
1082,
202,
430,
261,
2564,
480,
446,
13,
288,
9506,
202,
430,
261,
2019,
422,
12915,
1741,
12135,
13,
288,
6862,
202,
2019,
273,
22880,
27751,
31,
6862,
202,
759,
3808,
5019,
17978,
12135,
871,
2674,
18,
6862,
202,
12303,
18,
6543,
3405,
1133,
12,
3405,
1133,
18,
2124,
17978,
12135,
16,
333,
1769,
6862,
202,
2564,
273,
446,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
469,
288,
1082,
202,
20308,
1746,
326,
12902,
7334,
768,
1195,
1082,
202,
698,
288,
9506,
202,
2211,
18,
9991,
892,
18,
4412,
5621,
1082,
202,
97,
1044,
261,
14106,
425,
13,
288,
9506,
202,
759,
2256,
13389,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
261,
5743,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
640,
10828,
1435,
288,
202,
202,
430,
261,
2829,
18,
9394,
597,
4015,
18,
9394,
67,
13990,
1013,
13,
288,
1082,
202,
430,
14015,
2019,
473,
261,
19784,
27751,
571,
12915,
1741,
12135,
3719,
422,
374,
13,
288,
9506,
202,
2829,
18,
8222,
2932,
3405,
18,
17517,
2566,
1347,
919,
480,
22880,
27751,
571,
12915,
1741,
12135,
30,
315,
397,
333,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2829,
18,
1188,
6332,
12,
2704,
1185,
2932,
2624,
2606,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
12303,
18,
291,
3896,
10756,
288,
1082,
202,
430,
261,
2564,
480,
446,
13,
288,
2
] | |
return new XMLSchema(new ReadOnlyGrammarPool(pool), false); | schema = new XMLSchema(new ReadOnlyGrammarPool(pool), false); | public Schema newSchema( Source[] schemas ) throws SAXException { // this will let the loader store parsed Grammars into the pool. XMLGrammarPoolImplExtension pool = new XMLGrammarPoolImplExtension(); fXMLGrammarPoolWrapper.setGrammarPool(pool); XMLInputSource[] xmlInputSources = new XMLInputSource[schemas.length]; InputStream inputStream; Reader reader; for( int i=0; i<schemas.length; i++ ) { Source source = schemas[i]; if (source instanceof StreamSource) { StreamSource streamSource = (StreamSource) source; String publicId = streamSource.getPublicId(); String systemId = streamSource.getSystemId(); inputStream = streamSource.getInputStream(); reader = streamSource.getReader(); xmlInputSources[i] = new XMLInputSource(publicId, systemId, null); xmlInputSources[i].setByteStream(inputStream); xmlInputSources[i].setCharacterStream(reader); } else if (source instanceof SAXSource) { SAXSource saxSource = (SAXSource) source; InputSource inputSource = saxSource.getInputSource(); if (inputSource == null) { throw new SAXException(JAXPValidationMessageFormatter.formatMessage(Locale.getDefault(), "SAXSourceNullInputSource", null)); } xmlInputSources[i] = new SAXInputSource(saxSource.getXMLReader(), inputSource); } else if (source instanceof DOMSource) { DOMSource domSource = (DOMSource) source; Node node = domSource.getNode(); String systemID = domSource.getSystemId(); xmlInputSources[i] = new DOMInputSource(node, systemID); } else if (source == null) { throw new NullPointerException(JAXPValidationMessageFormatter.formatMessage(Locale.getDefault(), "SchemaSourceArrayMemberNull", null)); } else { throw new IllegalArgumentException(JAXPValidationMessageFormatter.formatMessage(Locale.getDefault(), "SchemaFactorySourceUnrecognized", new Object [] {source.getClass().getName()})); } } try { fXMLSchemaLoader.loadGrammar(xmlInputSources); } catch (XNIException e) { // this should have been reported to users already. throw Util.toSAXException(e); } catch (IOException e) { // this hasn't been reported, so do so now. SAXParseException se = new SAXParseException(e.getMessage(),null,e); fErrorHandler.error(se); throw se; // and we must throw it. } // Clear reference to grammar pool. fXMLGrammarPoolWrapper.setGrammarPool(null); // Select Schema implementation based on grammar count. final int grammarCount = pool.getGrammarCount(); if (fUseGrammarPoolOnly) { if (grammarCount > 1) { return new XMLSchema(new ReadOnlyGrammarPool(pool)); } else if (grammarCount == 1) { Grammar[] grammars = pool.retrieveInitialGrammarSet(XMLGrammarDescription.XML_SCHEMA); return new SimpleXMLSchema(grammars[0]); } else { return EmptyXMLSchema.getInstance(); } } else { return new XMLSchema(new ReadOnlyGrammarPool(pool), false); } } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/2e29289aad8a962190c18907fdfacbc4b1ac0bce/XMLSchemaFactory.java/clean/src/org/apache/xerces/jaxp/validation/XMLSchemaFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4611,
394,
3078,
12,
4998,
8526,
12783,
262,
1216,
14366,
288,
7734,
368,
333,
903,
2231,
326,
4088,
1707,
2707,
27809,
87,
1368,
326,
2845,
18,
3639,
3167,
18576,
2864,
2828,
3625,
2845,
273,
394,
3167,
18576,
2864,
2828,
3625,
5621,
3639,
284,
4201,
18576,
2864,
3611,
18,
542,
18576,
2864,
12,
6011,
1769,
7734,
3167,
1210,
1830,
8526,
2025,
1210,
8628,
273,
394,
3167,
1210,
1830,
63,
17928,
18,
2469,
15533,
3639,
5037,
10010,
31,
3639,
5393,
2949,
31,
3639,
364,
12,
509,
277,
33,
20,
31,
277,
32,
17928,
18,
2469,
31,
277,
9904,
262,
288,
5411,
4998,
1084,
273,
12783,
63,
77,
15533,
5411,
309,
261,
3168,
1276,
3961,
1830,
13,
288,
7734,
3961,
1830,
1407,
1830,
273,
261,
1228,
1830,
13,
1084,
31,
7734,
514,
1071,
548,
273,
1407,
1830,
18,
588,
4782,
548,
5621,
7734,
514,
30083,
273,
1407,
1830,
18,
588,
3163,
548,
5621,
7734,
10010,
273,
1407,
1830,
18,
588,
4348,
5621,
7734,
2949,
273,
1407,
1830,
18,
588,
2514,
5621,
7734,
2025,
1210,
8628,
63,
77,
65,
273,
394,
3167,
1210,
1830,
12,
482,
548,
16,
30083,
16,
446,
1769,
7734,
2025,
1210,
8628,
63,
77,
8009,
542,
3216,
1228,
12,
2630,
1228,
1769,
7734,
2025,
1210,
8628,
63,
77,
8009,
542,
7069,
1228,
12,
10530,
1769,
5411,
289,
5411,
469,
309,
261,
3168,
1276,
10168,
1830,
13,
288,
7734,
10168,
1830,
20319,
1830,
273,
261,
55,
2501,
1830,
13,
1084,
31,
7734,
23699,
810,
1830,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4611,
394,
3078,
12,
4998,
8526,
12783,
262,
1216,
14366,
288,
7734,
368,
333,
903,
2231,
326,
4088,
1707,
2707,
27809,
87,
1368,
326,
2845,
18,
3639,
3167,
18576,
2864,
2828,
3625,
2845,
273,
394,
3167,
18576,
2864,
2828,
3625,
5621,
3639,
284,
4201,
18576,
2864,
3611,
18,
542,
18576,
2864,
12,
6011,
1769,
7734,
3167,
1210,
1830,
8526,
2025,
1210,
8628,
273,
394,
3167,
1210,
1830,
63,
17928,
18,
2469,
15533,
3639,
5037,
10010,
31,
3639,
5393,
2949,
31,
3639,
364,
12,
509,
277,
33,
20,
31,
277,
32,
17928,
18,
2469,
31,
277,
9904,
262,
288,
5411,
4998,
1084,
273,
12783,
63,
77,
15533,
5411,
309,
261,
3168,
1276,
3961,
1830,
13,
288,
7734,
3961,
2
] |
evtTarget.addEventListener ("DOMNodeRemoved", childNodeRemovedEventListener, true); ctx.storeEventListener (evtTarget, "DOMNodeRemoved", childNodeRemovedEventListener, true); | evtTarget.addEventListenerNS (XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMNodeRemoved", childNodeRemovedEventListener, true, null); ctx.storeEventListenerNS (evtTarget, XMLConstants.XML_EVENTS_NAMESPACE_URI, "DOMNodeRemoved", childNodeRemovedEventListener, true); | protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node) { super.initializeDynamicSupport(ctx,e,node); if (!ctx.isDynamic()) return; // Only add the listeners if we are dynamic EventTarget evtTarget = (EventTarget)e; //to be notified when a child is removed from the //<text> element. evtTarget.addEventListener ("DOMNodeRemoved", childNodeRemovedEventListener, true); ctx.storeEventListener (evtTarget, "DOMNodeRemoved", childNodeRemovedEventListener, true); //to be notified when the modification of the subtree //of the <text> element is done evtTarget.addEventListener ("DOMSubtreeModified", subtreeModifiedEventListener, false); ctx.storeEventListener (evtTarget, "DOMSubtreeModified", subtreeModifiedEventListener, false); // traverse the children to add context on // <tspan>, <tref> and <textPath> Node child = e.getFirstChild(); while (child != null) { if (child.getNodeType() == Node.ELEMENT_NODE) { addContextToChild(ctx,(Element)child); } child = child.getNextSibling(); } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/e0f764dff72dfeed9e7f33e5d48e195946accb74/SVGTextElementBridge.java/clean/sources/org/apache/batik/bridge/SVGTextElementBridge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4046,
9791,
6289,
12,
13691,
1042,
1103,
16,
4766,
5411,
3010,
425,
16,
4766,
5411,
16830,
907,
756,
13,
288,
3639,
2240,
18,
11160,
9791,
6289,
12,
5900,
16,
73,
16,
2159,
1769,
3639,
309,
16051,
5900,
18,
291,
9791,
10756,
5411,
327,
31,
2398,
368,
5098,
527,
326,
4679,
309,
732,
854,
5976,
3639,
2587,
2326,
6324,
2326,
273,
261,
1133,
2326,
13,
73,
31,
3639,
368,
869,
506,
18791,
1347,
279,
1151,
353,
3723,
628,
326,
540,
368,
32,
955,
34,
930,
18,
3639,
6324,
2326,
18,
1289,
7375,
5411,
7566,
8168,
907,
10026,
3113,
9465,
10026,
7375,
16,
638,
1769,
3639,
1103,
18,
2233,
7375,
5411,
261,
73,
11734,
2326,
16,
315,
8168,
907,
10026,
3113,
9465,
10026,
7375,
16,
638,
1769,
7734,
368,
869,
506,
18791,
1347,
326,
11544,
434,
326,
12773,
3639,
368,
792,
326,
411,
955,
34,
930,
353,
2731,
3639,
6324,
2326,
18,
1289,
7375,
5411,
7566,
8168,
18615,
4575,
3113,
12773,
4575,
7375,
16,
629,
1769,
3639,
1103,
18,
2233,
7375,
5411,
261,
73,
11734,
2326,
16,
315,
8168,
18615,
4575,
3113,
12773,
4575,
7375,
16,
629,
1769,
3639,
368,
10080,
326,
2325,
358,
527,
819,
603,
540,
368,
411,
88,
3969,
20401,
411,
88,
1734,
34,
471,
411,
955,
743,
34,
3639,
2029,
1151,
225,
273,
425,
18,
588,
3759,
1763,
5621,
3639,
1323,
261,
3624,
480,
446,
13,
288,
5411,
309,
261,
3624,
18,
588,
15101,
1435,
422,
2029,
18,
10976,
67,
8744,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4046,
9791,
6289,
12,
13691,
1042,
1103,
16,
4766,
5411,
3010,
425,
16,
4766,
5411,
16830,
907,
756,
13,
288,
3639,
2240,
18,
11160,
9791,
6289,
12,
5900,
16,
73,
16,
2159,
1769,
3639,
309,
16051,
5900,
18,
291,
9791,
10756,
5411,
327,
31,
2398,
368,
5098,
527,
326,
4679,
309,
732,
854,
5976,
3639,
2587,
2326,
6324,
2326,
273,
261,
1133,
2326,
13,
73,
31,
3639,
368,
869,
506,
18791,
1347,
279,
1151,
353,
3723,
628,
326,
540,
368,
32,
955,
34,
930,
18,
3639,
6324,
2326,
18,
1289,
7375,
5411,
7566,
8168,
907,
10026,
3113,
9465,
10026,
7375,
16,
638,
1769,
3639,
1103,
18,
2233,
7375,
5411,
261,
73,
11734,
2326,
16,
315,
8168,
2
] |
public abstract SIPMessageStack getSIPStack(); | public abstract SIPTransactionStack getSIPStack(); | public abstract SIPMessageStack getSIPStack(); | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/MessageChannel.java/clean/trunk/src/gov/nist/javax/sip/stack/MessageChannel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8770,
348,
2579,
1079,
2624,
1322,
2579,
2624,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
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,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8770,
348,
2579,
1079,
2624,
1322,
2579,
2624,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setTitle(input.getName()); | setPartName(input.getName()); | public void init(IEditorSite site, IEditorInput input) throws PartInitException { // Check input. IFile file = ResourceUtil.getFile(input); if (file == null) throw new PartInitException(OleMessages.format( "OleEditor.invalidInput", new Object[] { input })); //$NON-NLS-1$ //Cannot create this with a file and no physical location if (file.getLocation() == null || !(new File(file.getLocation().toOSString()).exists())) throw new PartInitException( OleMessages .format( "OleEditor.noFileInput", new Object[] { file.getLocation() })); //$NON-NLS-1$ // Save input. setSite(site); setInput(input); // Update titles. setTitle(input.getName()); setTitleToolTip(input.getToolTipText()); ImageDescriptor desc = input.getImageDescriptor(); if (desc != null) { oleTitleImage = desc.createImage(); setTitleImage(oleTitleImage); } // Listen for part activation. site.getPage().addPartListener(partListener); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/28c6acb1fb03130eae51828f63abdb28b5348c3d/OleEditor.java/buggy/bundles/org.eclipse.ui.win32/src/org/eclipse/ui/internal/editorsupport/win32/OleEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
45,
6946,
4956,
2834,
16,
467,
6946,
1210,
810,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
368,
2073,
810,
18,
3639,
467,
812,
585,
273,
2591,
1304,
18,
29925,
12,
2630,
1769,
3639,
309,
261,
768,
422,
446,
13,
5411,
604,
394,
6393,
2570,
503,
12,
51,
298,
5058,
18,
2139,
12,
10792,
315,
51,
298,
6946,
18,
5387,
1210,
3113,
394,
1033,
8526,
288,
810,
289,
10019,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
368,
4515,
752,
333,
598,
279,
585,
471,
1158,
11640,
2117,
3639,
309,
261,
768,
18,
588,
2735,
1435,
422,
446,
7734,
747,
401,
12,
2704,
1387,
12,
768,
18,
588,
2735,
7675,
869,
4618,
780,
1435,
2934,
1808,
1435,
3719,
5411,
604,
394,
6393,
2570,
503,
12,
10792,
531,
298,
5058,
18701,
263,
2139,
12,
4766,
565,
315,
51,
298,
6946,
18,
2135,
812,
1210,
3113,
394,
1033,
8526,
288,
585,
18,
588,
2735,
1435,
289,
10019,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
368,
7074,
810,
18,
3639,
444,
4956,
12,
4256,
1769,
3639,
21687,
12,
2630,
1769,
3639,
368,
2315,
14693,
18,
3639,
444,
1988,
461,
12,
2630,
18,
17994,
10663,
3639,
14109,
29250,
12,
2630,
18,
588,
29250,
1528,
10663,
3639,
3421,
3187,
3044,
273,
810,
18,
588,
2040,
3187,
5621,
3639,
309,
261,
5569,
480,
446,
13,
288,
5411,
320,
298,
4247,
2040,
273,
3044,
18,
2640,
2040,
5621,
5411,
14109,
2040,
12,
790,
4247,
2040,
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,
1071,
918,
1208,
12,
45,
6946,
4956,
2834,
16,
467,
6946,
1210,
810,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
368,
2073,
810,
18,
3639,
467,
812,
585,
273,
2591,
1304,
18,
29925,
12,
2630,
1769,
3639,
309,
261,
768,
422,
446,
13,
5411,
604,
394,
6393,
2570,
503,
12,
51,
298,
5058,
18,
2139,
12,
10792,
315,
51,
298,
6946,
18,
5387,
1210,
3113,
394,
1033,
8526,
288,
810,
289,
10019,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
368,
4515,
752,
333,
598,
279,
585,
471,
1158,
11640,
2117,
3639,
309,
261,
768,
18,
588,
2735,
1435,
422,
446,
7734,
747,
401,
12,
2704,
1387,
12,
768,
18,
588,
2735,
7675,
869,
4618,
780,
1435,
2
] |
private void addModelToTransitionMatricesPool(Pool pool, int stid, int numStates, float floor, boolean skip) | private void addModelToTransitionMatricesPool(Pool pool, int hmmId, int numEmittingStates, float floor, boolean skip) | private void addModelToTransitionMatricesPool(Pool pool, int stid, int numStates, float floor, boolean skip) throws IOException { assert pool != null; float[][] tmat = new float[numStates][numStates]; for (int j = 0; j < numStates ; j++) { for (int k = 0; k < numStates ; k++) { // Just to be sure... tmat[j][k] = 0.0f; // the last row is just zeros, so we just do // the first (numStates - 1) rows // The value assigned could be anything, provided // we normalize it. if (j < numStates - 1) { // Usual case: state can transition to itself // or the next state. if (k == j || k == j + 1) { tmat[j][k] = floor; } // If we can skip, we can also transition to // the next state if (skip) { if (k == j + 2) { tmat[j][k] = floor; } } } } normalize(tmat[j]); convertToLogMath(tmat[j]); } pool.put(stid, tmat); } | 7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/e2f9cc46614d7bad2835a37c26184cb529bad39a/ModelInitializerLoader.java/clean/edu/cmu/sphinx/knowledge/acoustic/ModelInitializerLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
1488,
774,
8850,
15947,
12660,
2864,
12,
2864,
2845,
16,
509,
384,
350,
16,
4405,
509,
818,
7629,
16,
1431,
6346,
16,
1250,
2488,
13,
3639,
1216,
1860,
288,
202,
11231,
2845,
480,
446,
31,
202,
5659,
63,
6362,
65,
6118,
270,
273,
394,
1431,
63,
2107,
7629,
6362,
2107,
7629,
15533,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
818,
7629,
274,
525,
27245,
288,
202,
565,
364,
261,
474,
417,
273,
374,
31,
417,
411,
818,
7629,
274,
417,
27245,
288,
202,
202,
759,
12526,
358,
506,
3071,
2777,
202,
202,
88,
7373,
63,
78,
6362,
79,
65,
273,
374,
18,
20,
74,
31,
202,
202,
759,
326,
1142,
1027,
353,
2537,
4922,
16,
1427,
732,
2537,
741,
202,
202,
759,
326,
1122,
261,
2107,
7629,
300,
404,
13,
2595,
202,
202,
759,
1021,
460,
6958,
3377,
506,
6967,
16,
2112,
202,
202,
759,
732,
3883,
518,
18,
202,
202,
430,
261,
78,
411,
818,
7629,
300,
404,
13,
288,
1082,
565,
368,
9376,
1462,
648,
30,
919,
848,
6007,
358,
6174,
1082,
565,
368,
578,
326,
1024,
919,
18,
1082,
565,
309,
261,
79,
422,
525,
225,
747,
417,
225,
422,
525,
397,
404,
13,
288,
1082,
202,
88,
7373,
63,
78,
6362,
79,
65,
273,
6346,
31,
1082,
565,
289,
1082,
565,
368,
971,
732,
848,
2488,
16,
732,
848,
2546,
6007,
358,
1082,
565,
368,
326,
1024,
919,
1082,
565,
309,
261,
7457,
13,
288,
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,
377,
3238,
918,
527,
1488,
774,
8850,
15947,
12660,
2864,
12,
2864,
2845,
16,
509,
384,
350,
16,
4405,
509,
818,
7629,
16,
1431,
6346,
16,
1250,
2488,
13,
3639,
1216,
1860,
288,
202,
11231,
2845,
480,
446,
31,
202,
5659,
63,
6362,
65,
6118,
270,
273,
394,
1431,
63,
2107,
7629,
6362,
2107,
7629,
15533,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
818,
7629,
274,
525,
27245,
288,
202,
565,
364,
261,
474,
417,
273,
374,
31,
417,
411,
818,
7629,
274,
417,
27245,
288,
202,
202,
759,
12526,
358,
506,
3071,
2777,
202,
202,
88,
7373,
63,
78,
6362,
79,
65,
273,
374,
18,
20,
74,
31,
202,
202,
759,
326,
1142,
1027,
353,
2
] |
try { | try { | public void setExtra(byte[] extra) { if (extra == null) { this.extra = null; return; } if (extra.length > 0xffff) throw new IllegalArgumentException(); this.extra = extra; try { int pos = 0; while (pos < extra.length) { int sig = (extra[pos++] & 0xff) | (extra[pos++] & 0xff) << 8; int len = (extra[pos++] & 0xff) | (extra[pos++] & 0xff) << 8; if (sig == 0x5455) { /* extended time stamp */ int flags = extra[pos]; if ((flags & 1) != 0) { long time = ((extra[pos + 1] & 0xff) | (extra[pos + 2] & 0xff) << 8 | (extra[pos + 3] & 0xff) << 16 | (extra[pos + 4] & 0xff) << 24); setTime(time); } } pos += len; } } catch (ArrayIndexOutOfBoundsException ex) { /* be lenient */ return; } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e3f7218be7244f0de74b2230a33469c2bf32546b/ZipEntry.java/clean/core/src/classpath/java/java/util/zip/ZipEntry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
7800,
12,
7229,
8526,
2870,
13,
288,
202,
202,
430,
261,
7763,
422,
446,
13,
288,
1082,
202,
2211,
18,
7763,
273,
446,
31,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
7763,
18,
2469,
405,
374,
20431,
13,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
2211,
18,
7763,
273,
2870,
31,
202,
202,
698,
288,
1082,
202,
474,
949,
273,
374,
31,
1082,
202,
17523,
261,
917,
411,
2870,
18,
2469,
13,
288,
9506,
202,
474,
3553,
273,
261,
7763,
63,
917,
9904,
65,
473,
374,
5297,
13,
571,
261,
7763,
63,
917,
9904,
65,
473,
374,
5297,
13,
2296,
1725,
31,
9506,
202,
474,
562,
273,
261,
7763,
63,
917,
9904,
65,
473,
374,
5297,
13,
571,
261,
7763,
63,
917,
9904,
65,
473,
374,
5297,
13,
2296,
1725,
31,
9506,
202,
430,
261,
7340,
422,
374,
92,
6564,
2539,
13,
288,
6862,
202,
20308,
7021,
813,
14429,
1195,
6862,
202,
474,
2943,
273,
2870,
63,
917,
15533,
6862,
202,
430,
14015,
7133,
473,
404,
13,
480,
374,
13,
288,
25083,
202,
5748,
813,
273,
14015,
7763,
63,
917,
397,
404,
65,
473,
374,
5297,
13,
571,
261,
7763,
63,
917,
397,
576,
65,
473,
374,
5297,
13,
2296,
1725,
571,
261,
7763,
63,
917,
397,
890,
65,
473,
374,
5297,
13,
2296,
2872,
571,
261,
7763,
63,
917,
397,
1059,
65,
473,
374,
5297,
13,
2296,
4248,
1769,
25083,
202,
542,
950,
12,
957,
1769,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
7800,
12,
7229,
8526,
2870,
13,
288,
202,
202,
430,
261,
7763,
422,
446,
13,
288,
1082,
202,
2211,
18,
7763,
273,
446,
31,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
7763,
18,
2469,
405,
374,
20431,
13,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
2211,
18,
7763,
273,
2870,
31,
202,
202,
698,
288,
1082,
202,
474,
949,
273,
374,
31,
1082,
202,
17523,
261,
917,
411,
2870,
18,
2469,
13,
288,
9506,
202,
474,
3553,
273,
261,
7763,
63,
917,
9904,
65,
473,
374,
5297,
13,
571,
261,
7763,
63,
917,
9904,
65,
473,
374,
5297,
13,
2296,
1725,
31,
9506,
202,
474,
562,
273,
261,
7763,
2
] |
public Object eval (String source, int lineNo, int columnNo, Object script) throws BSFException { | public Object eval (Object script) throws BSFException { | public Object eval (String source, int lineNo, int columnNo, Object script) throws BSFException { try { Object result = interp.eval (script.toString ()); if (result != null && result instanceof PyJavaInstance) result = ((PyJavaInstance)result).__tojava__(Object.class); return result; } catch (PyException e) { throw new BSFException (BSFException.REASON_EXECUTION_ERROR, "exception from JPython: " + e, e); } } | 50120 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50120/0e0a92725e39ed3115b66601c360ede7b4c6fa5c/JPythonEngine.java/buggy/src/org/apache/bsf/engines/jpython/JPythonEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
5302,
261,
780,
1084,
16,
509,
980,
2279,
16,
509,
1057,
2279,
16,
1875,
1377,
1033,
2728,
13,
1216,
605,
22395,
503,
288,
202,
698,
288,
202,
225,
1033,
563,
273,
8174,
18,
8622,
261,
4263,
18,
10492,
1832,
1769,
202,
225,
309,
261,
2088,
480,
446,
597,
563,
1276,
4707,
5852,
1442,
13,
202,
202,
2088,
273,
14015,
9413,
5852,
1442,
13,
2088,
2934,
972,
869,
6290,
972,
12,
921,
18,
1106,
1769,
202,
225,
327,
563,
31,
202,
97,
1044,
261,
9413,
503,
425,
13,
288,
202,
225,
604,
394,
605,
22395,
503,
261,
12692,
42,
503,
18,
29416,
1413,
67,
15271,
13269,
67,
3589,
16,
9506,
1377,
315,
4064,
628,
804,
15774,
30,
315,
397,
425,
16,
425,
1769,
202,
97,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
5302,
261,
780,
1084,
16,
509,
980,
2279,
16,
509,
1057,
2279,
16,
1875,
1377,
1033,
2728,
13,
1216,
605,
22395,
503,
288,
202,
698,
288,
202,
225,
1033,
563,
273,
8174,
18,
8622,
261,
4263,
18,
10492,
1832,
1769,
202,
225,
309,
261,
2088,
480,
446,
597,
563,
1276,
4707,
5852,
1442,
13,
202,
202,
2088,
273,
14015,
9413,
5852,
1442,
13,
2088,
2934,
972,
869,
6290,
972,
12,
921,
18,
1106,
1769,
202,
225,
327,
563,
31,
202,
97,
1044,
261,
9413,
503,
425,
13,
288,
202,
225,
604,
394,
605,
22395,
503,
261,
12692,
42,
503,
18,
29416,
1413,
67,
15271,
13269,
67,
3589,
16,
9506,
1377,
315,
4064,
628,
804,
15774,
30,
2
] |
if (resourceBundle != null && key != null) | if (resourceBundle != null && key != null) { | public static final String translateString( final ResourceBundle resourceBundle, final String key, final String defaultString) { if (resourceBundle != null && key != null) try { final String translatedString = resourceBundle.getString(key); if (translatedString != null) return translatedString; } catch (MissingResourceException eMissingResource) { // Such is life. We'll return the key } return defaultString; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/391f2606b4ea2c1fb5052d938ca90877ee7631f6/Util.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Util.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
4204,
780,
12,
1082,
202,
6385,
19198,
1058,
3405,
16,
727,
514,
498,
16,
1082,
202,
6385,
514,
805,
780,
13,
288,
202,
202,
430,
261,
3146,
3405,
480,
446,
597,
498,
480,
446,
13,
1082,
202,
698,
288,
9506,
202,
6385,
514,
9955,
780,
273,
1058,
3405,
18,
588,
780,
12,
856,
1769,
9506,
202,
430,
261,
22899,
780,
480,
446,
13,
6862,
202,
2463,
9955,
780,
31,
1082,
202,
97,
1044,
261,
4841,
14785,
425,
4841,
1420,
13,
288,
9506,
202,
759,
8002,
353,
17140,
18,
1660,
5614,
327,
326,
498,
1082,
202,
97,
202,
202,
2463,
805,
780,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
4204,
780,
12,
1082,
202,
6385,
19198,
1058,
3405,
16,
727,
514,
498,
16,
1082,
202,
6385,
514,
805,
780,
13,
288,
202,
202,
430,
261,
3146,
3405,
480,
446,
597,
498,
480,
446,
13,
1082,
202,
698,
288,
9506,
202,
6385,
514,
9955,
780,
273,
1058,
3405,
18,
588,
780,
12,
856,
1769,
9506,
202,
430,
261,
22899,
780,
480,
446,
13,
6862,
202,
2463,
9955,
780,
31,
1082,
202,
97,
1044,
261,
4841,
14785,
425,
4841,
1420,
13,
288,
9506,
202,
759,
8002,
353,
17140,
18,
1660,
5614,
327,
326,
498,
1082,
202,
97,
202,
202,
2463,
805,
780,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (this.enctype); | return (this.enctype); | public String getEnctype() { return (this.enctype); } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/75dbcd0b077c69b0f9ec51c98e6552a114bc07ea/FormTag.java/clean/src/share/org/apache/struts/taglib/html/FormTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
664,
12387,
1435,
288,
565,
327,
261,
2211,
18,
275,
12387,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
664,
12387,
1435,
288,
565,
327,
261,
2211,
18,
275,
12387,
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,
-100,
-100,
-100,
-100,
-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(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } | private void establishRelationshipForSet(DefaultGrailsDomainClassProperty property) { // is it a relationship Class relatedClassType = getRelatedClassType( property.getName() ); if(relatedClassType != null) { // set the referenced type in the property property.setReferencedPropertyType(relatedClassType); // if the related class is the same as this class // its a circular one-to-many if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } // if the related type is a domain class // then figure out what kind of relationship it is else if(GrailsClassUtils.isDomainClass( relatedClassType )) { // check the relationship defined in the referenced type // if it is also a Set/domain class etc. Map relatedClassRelationships = GrailsDomainConfigurationUtil.getAssociationMap(relatedClassType); Class relatedClassPropertyType = null; // if the related type has a relationships map it may be a many-to-many // figure out if there is a many-to-many relationship defined if( relatedClassRelationships != null && !relatedClassRelationships.isEmpty() ) { String relatedClassPropertyName = null; // retrieve the relationship property for(Iterator i = relatedClassRelationships.keySet().iterator();i.hasNext();) { String currentKey = (String)i.next(); Class currentClass = (Class) relatedClassRelationships.get( currentKey ); if(currentClass.getName().equals( getClazz().getName() )) { relatedClassPropertyName = currentKey; break; } } // if there is one defined get the type if(relatedClassPropertyName != null) { relatedClassPropertyType = GrailsClassUtils.getProperyType( relatedClassType, relatedClassPropertyName); } } // otherwise figure out if there is a one-to-many relationship by retrieving any properties that are of the related type // if there is more than one property then (for the moment) ignore the relationship if(relatedClassPropertyType == null) { PropertyDescriptor[] descriptors = GrailsClassUtils.getPropertiesOfType(relatedClassType, getClazz()); if(descriptors.length == 1) { relatedClassPropertyType = descriptors[0].getPropertyType(); } } establishRelationshipForSetToType(property,relatedClassPropertyType); // if its a many-to-many figure out the owning side of the relationship if(property.isManyToMany()) { establishOwnerOfManyToMany(property, relatedClassType); } } // otherwise set it to not persistent as you can't persist // relationships to non-domain classes else { property.setPersistant(false); } } else { // no relationship defined for set. // set not persistent property.setPersistant(false); } } | 50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/fe351f9f0f376d45dd59d502c6d56321bf14f907/DefaultGrailsDomainClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
18312,
8180,
1290,
694,
12,
1868,
14571,
14573,
3748,
797,
1396,
1272,
13,
288,
3639,
368,
353,
518,
279,
5232,
3639,
1659,
3746,
18328,
273,
21531,
18328,
12,
1272,
18,
17994,
1435,
11272,
3639,
309,
12,
9243,
18328,
480,
446,
13,
288,
5411,
368,
444,
326,
8042,
618,
316,
326,
1272,
5411,
1272,
18,
542,
22344,
22802,
12,
9243,
18328,
1769,
5411,
368,
309,
326,
3746,
667,
353,
326,
1967,
487,
333,
667,
5411,
368,
2097,
279,
15302,
1245,
17,
869,
17,
9353,
5411,
309,
12,
9243,
18328,
18,
17994,
7675,
14963,
12,
588,
19223,
1435,
3719,
95,
7734,
1272,
18,
542,
3335,
12601,
12,
3767,
1769,
7734,
1272,
18,
542,
17763,
24699,
12,
3767,
1769,
5411,
289,
5411,
368,
309,
326,
3746,
618,
353,
279,
2461,
667,
5411,
368,
1508,
7837,
596,
4121,
3846,
434,
5232,
518,
353,
5411,
469,
309,
12,
14571,
14573,
797,
1989,
18,
291,
3748,
797,
12,
3746,
18328,
8623,
288,
7734,
368,
866,
326,
5232,
2553,
316,
326,
8042,
618,
7734,
368,
309,
518,
353,
2546,
279,
1000,
19,
4308,
667,
5527,
18,
7734,
1635,
3746,
797,
17185,
273,
10812,
14573,
3748,
1750,
1304,
18,
588,
7174,
863,
12,
9243,
18328,
1769,
7734,
1659,
3746,
797,
22802,
273,
446,
31,
7734,
368,
309,
326,
3746,
618,
711,
279,
11499,
852,
518,
2026,
506,
279,
4906,
17,
869,
17,
9353,
7734,
368,
7837,
596,
309,
1915,
353,
279,
4906,
17,
869,
17,
9353,
5232,
2553,
7734,
309,
12,
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,
377,
3238,
918,
18312,
8180,
1290,
694,
12,
1868,
14571,
14573,
3748,
797,
1396,
1272,
13,
288,
3639,
368,
353,
518,
279,
5232,
3639,
1659,
3746,
18328,
273,
21531,
18328,
12,
1272,
18,
17994,
1435,
11272,
3639,
309,
12,
9243,
18328,
480,
446,
13,
288,
5411,
368,
444,
326,
8042,
618,
316,
326,
1272,
5411,
1272,
18,
542,
22344,
22802,
12,
9243,
18328,
1769,
5411,
368,
309,
326,
3746,
667,
353,
326,
1967,
487,
333,
667,
5411,
368,
2097,
279,
15302,
1245,
17,
869,
17,
9353,
5411,
309,
12,
9243,
18328,
18,
17994,
7675,
14963,
12,
588,
19223,
1435,
3719,
95,
7734,
1272,
18,
542,
3335,
12601,
12,
3767,
1769,
7734,
1272,
18,
542,
17763,
24699,
12,
3767,
1769,
2
] | |
suite.addTest(IsProtonInAromaticSystemDescriptorTest.suite()); suite.addTest(SigmaElectronegativityDescriptorTest.suite()); suite.addTest(AromaticAtomsCountDescriptorTest.suite()); suite.addTest(AromaticBondsCountDescriptorTest.suite()); suite.addTest(IsProtonInConjugatedPiSystemDescriptorTest.suite()); suite.addTest(ProtonTotalPartialChargeDescriptorTest.suite()); suite.addTest(EffectivePolarizabilityDescriptorTest.suite()); suite.addTest(HBondAcceptorCountDescriptorTest.suite()); suite.addTest(HBondDonorCountDescriptorTest.suite()); suite.addTest(ValenceConnectivityOrderZeroDescriptorTest.suite()); suite.addTest(ValenceConnectivityOrderOneDescriptorTest.suite()); suite.addTest(ConnectivityOrderZeroDescriptorTest.suite()); suite.addTest(ConnectivityOrderOneDescriptorTest.suite()); | suite.addTest(IsProtonInAromaticSystemDescriptorTest.suite()); suite.addTest(SigmaElectronegativityDescriptorTest.suite()); suite.addTest(AromaticAtomsCountDescriptorTest.suite()); suite.addTest(AromaticBondsCountDescriptorTest.suite()); suite.addTest(IsProtonInConjugatedPiSystemDescriptorTest.suite()); suite.addTest(ProtonTotalPartialChargeDescriptorTest.suite()); suite.addTest(EffectivePolarizabilityDescriptorTest.suite()); suite.addTest(HBondAcceptorCountDescriptorTest.suite()); suite.addTest(HBondDonorCountDescriptorTest.suite()); suite.addTest(ValenceConnectivityOrderZeroDescriptorTest.suite()); suite.addTest(ValenceConnectivityOrderOneDescriptorTest.suite()); suite.addTest(ConnectivityOrderZeroDescriptorTest.suite()); suite.addTest(ConnectivityOrderOneDescriptorTest.suite()); | public static Test suite() { TestSuite suite = new TestSuite("All QSAR Descriptor Tests"); suite.addTest(AtomCountDescriptorTest.suite()); suite.addTest(BondCountDescriptorTest.suite()); suite.addTest(RotatableBondsCountDescriptorTest.suite()); suite.addTest(IsProtonInAromaticSystemDescriptorTest.suite()); suite.addTest(SigmaElectronegativityDescriptorTest.suite()); suite.addTest(AromaticAtomsCountDescriptorTest.suite()); suite.addTest(AromaticBondsCountDescriptorTest.suite()); suite.addTest(IsProtonInConjugatedPiSystemDescriptorTest.suite()); suite.addTest(ProtonTotalPartialChargeDescriptorTest.suite()); suite.addTest(EffectivePolarizabilityDescriptorTest.suite()); suite.addTest(HBondAcceptorCountDescriptorTest.suite()); suite.addTest(HBondDonorCountDescriptorTest.suite()); suite.addTest(ValenceConnectivityOrderZeroDescriptorTest.suite()); suite.addTest(ValenceConnectivityOrderOneDescriptorTest.suite()); suite.addTest(ConnectivityOrderZeroDescriptorTest.suite()); suite.addTest(ConnectivityOrderOneDescriptorTest.suite()); suite.addTest(ZagrebIndexDescriptorTest.suite()); suite.addTest(GravitationalIndexDescriptorTest.suite()); suite.addTest(BCUTDescriptorTest.suite()); suite.addTest(WHIMDescriptorTest.suite()); suite.addTest(KappaShapeIndicesDescriptorTest.suite()); suite.addTest(WienerNumbersDescriptorTest.suite()); suite.addTest(PetitjeanNumberDescriptorTest.suite()); suite.addTest(APolDescriptorTest.suite()); suite.addTest(BPolDescriptorTest.suite()); suite.addTest(TPSADescriptorTest.suite()); suite.addTest(XLogPDescriptorTest.suite()); suite.addTest(DescriptorEngineTest.suite()); suite.addTest(RuleOfFiveDescriptorTest.suite()); suite.addTest(RDFProtonDescriptorTest.suite()); suite.addTest(MomentOfInertiaDescriptorTest.suite()); suite.addTest(VdWRadiusDescriptorTest.suite()); suite.addTest(BondsToAtomDescriptorTest.suite()); suite.addTest(DistanceToAtomDescriptorTest.suite()); suite.addTest(AtomDegreeDescriptorTest.suite()); suite.addTest(AtomValenceDescriptorTest.suite()); suite.addTest(PiContactDetectionDescriptorTest.suite()); suite.addTest(PeriodicTablePositionDescriptorTest.suite()); return suite; } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/49684d277abeae1d1ea89e5685eaf2f6b42b820f/QSARDescriptorTests.java/buggy/src/org/openscience/cdk/test/qsar/QSARDescriptorTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
3639,
7766,
13587,
11371,
273,
394,
7766,
13587,
2932,
1595,
2238,
55,
985,
12823,
7766,
87,
8863,
3639,
11371,
18,
1289,
4709,
12,
3641,
1380,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
9807,
1380,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
8570,
8163,
26090,
1380,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
2520,
626,
1917,
382,
37,
27468,
3163,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
24491,
17817,
86,
476,
75,
270,
2818,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
37,
27468,
14280,
1380,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
37,
27468,
26090,
1380,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
2520,
626,
1917,
382,
442,
78,
637,
690,
16539,
3163,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
626,
1917,
5269,
9447,
17649,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
28531,
5850,
297,
452,
2967,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
44,
9807,
5933,
280,
1380,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
44,
9807,
22293,
280,
1380,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
3053,
802,
5215,
2818,
2448,
7170,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
3053,
802,
5215,
2818,
2448,
3335,
3187,
4709,
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,
1435,
288,
3639,
7766,
13587,
11371,
273,
394,
7766,
13587,
2932,
1595,
2238,
55,
985,
12823,
7766,
87,
8863,
3639,
11371,
18,
1289,
4709,
12,
3641,
1380,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
9807,
1380,
3187,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
8570,
8163,
26090,
1380,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
2520,
626,
1917,
382,
37,
27468,
3163,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
24491,
17817,
86,
476,
75,
270,
2818,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
1289,
4709,
12,
37,
27468,
14280,
1380,
3187,
4709,
18,
30676,
10663,
202,
30676,
18,
2
] |
public TreeNode (TreeNode parent, String tag){ | public TreeNode (TreeNode parent, String tag, String text){ | public TreeNode (TreeNode parent, String tag){ _parent = parent; _tag = Tags.encode (tag); _text = ""; _children = new Vector(); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/e5d20862b749626ce60c2d85dc8c8db7d72d997f/TreeNode.java/buggy/js/jsdj/classes/com/netscape/jsdebugging/apitests/analyzing/tree/TreeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
20270,
261,
12513,
982,
16,
514,
1047,
16,
514,
977,
15329,
3639,
389,
2938,
273,
982,
31,
3639,
389,
2692,
273,
8750,
18,
3015,
261,
2692,
1769,
3639,
389,
955,
273,
1408,
31,
3639,
389,
5906,
273,
394,
5589,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20270,
261,
12513,
982,
16,
514,
1047,
16,
514,
977,
15329,
3639,
389,
2938,
273,
982,
31,
3639,
389,
2692,
273,
8750,
18,
3015,
261,
2692,
1769,
3639,
389,
955,
273,
1408,
31,
3639,
389,
5906,
273,
394,
5589,
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,
-100,
-100,
-100,
-100,
-100
] |
Debug.output(Debug.SECURITY | Debug.IMPORTANT, e); | Debug.output(1, e); | public void post_init(org.omg.PortableInterceptor.ORBInitInfo info) { try { Current current = (Current) info.resolve_initial_references("SecurityCurrent"); info.add_server_request_interceptor (new ServerAccessDecisionInterceptor(current)); }catch (Exception e) { Debug.output(Debug.SECURITY | Debug.IMPORTANT, e); } } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/ddfa45ed7d8acbe9988fd22f0b5417ccaf5ce8fc/ServerInitializer.java/clean/src/org/jacorb/security/level2/ServerInitializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1603,
67,
2738,
12,
3341,
18,
362,
75,
18,
2617,
429,
10281,
18,
916,
38,
2570,
966,
1123,
13,
377,
288,
3639,
775,
3639,
288,
5411,
6562,
783,
273,
1171,
261,
3935,
13,
1123,
18,
10828,
67,
6769,
67,
14353,
2932,
4368,
3935,
8863,
5411,
1123,
18,
1289,
67,
3567,
67,
2293,
67,
2761,
6757,
7734,
261,
2704,
3224,
1862,
15861,
10281,
12,
2972,
10019,
3639,
289,
14683,
261,
503,
425,
13,
3639,
288,
5411,
4015,
18,
2844,
12,
21,
16,
425,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1603,
67,
2738,
12,
3341,
18,
362,
75,
18,
2617,
429,
10281,
18,
916,
38,
2570,
966,
1123,
13,
377,
288,
3639,
775,
3639,
288,
5411,
6562,
783,
273,
1171,
261,
3935,
13,
1123,
18,
10828,
67,
6769,
67,
14353,
2932,
4368,
3935,
8863,
5411,
1123,
18,
1289,
67,
3567,
67,
2293,
67,
2761,
6757,
7734,
261,
2704,
3224,
1862,
15861,
10281,
12,
2972,
10019,
3639,
289,
14683,
261,
503,
425,
13,
3639,
288,
5411,
4015,
18,
2844,
12,
21,
16,
425,
1769,
3639,
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
] |
byte buffer[] = Base64.decode(base64str.getBytes("UTF-8")); | byte buffer[] = Base64.decodeBase64(base64str.getBytes("UTF-8")); | private InputStream getImageStream(String base64str) throws Exception { byte buffer[] = Base64.decode(base64str.getBytes("UTF-8")); return new ByteArrayInputStream(buffer); } | 6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/b6c2287f5b3ca967208eed57480d56a7a852ba57/ThemeImageServlet.java/buggy/src/org/snipsnap/net/admin/ThemeImageServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
5037,
10567,
1228,
12,
780,
1026,
1105,
701,
13,
1216,
1185,
288,
565,
1160,
1613,
8526,
273,
3360,
1105,
18,
3922,
2171,
1105,
12,
1969,
1105,
701,
18,
588,
2160,
2932,
5159,
17,
28,
7923,
1769,
565,
327,
394,
16180,
12,
4106,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
5037,
10567,
1228,
12,
780,
1026,
1105,
701,
13,
1216,
1185,
288,
565,
1160,
1613,
8526,
273,
3360,
1105,
18,
3922,
2171,
1105,
12,
1969,
1105,
701,
18,
588,
2160,
2932,
5159,
17,
28,
7923,
1769,
565,
327,
394,
16180,
12,
4106,
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
] |
private void badTree(Node node) { | private void badTree(Node node) { | private void badTree(Node node) { try { out = new PrintWriter(new FileOutputStream("icode.txt", true)); out.println("Un-handled node : " + node.toString()); out.close(); } catch (IOException x) {} throw new RuntimeException("Un-handled node : " + node.toString()); } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/e7e3848925d289272caa163d4d470f03f2eebac5/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5570,
2471,
12,
907,
756,
13,
288,
3639,
775,
288,
5411,
596,
273,
394,
14071,
12,
2704,
12942,
2932,
3487,
18,
5830,
3113,
638,
10019,
5411,
596,
18,
8222,
2932,
984,
17,
14387,
756,
294,
315,
397,
756,
18,
10492,
10663,
5411,
596,
18,
4412,
5621,
3639,
289,
3639,
1044,
261,
14106,
619,
13,
2618,
3639,
604,
394,
3235,
2932,
984,
17,
14387,
756,
294,
315,
4766,
3639,
397,
756,
18,
10492,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
5570,
2471,
12,
907,
756,
13,
288,
3639,
775,
288,
5411,
596,
273,
394,
14071,
12,
2704,
12942,
2932,
3487,
18,
5830,
3113,
638,
10019,
5411,
596,
18,
8222,
2932,
984,
17,
14387,
756,
294,
315,
397,
756,
18,
10492,
10663,
5411,
596,
18,
4412,
5621,
3639,
289,
3639,
1044,
261,
14106,
619,
13,
2618,
3639,
604,
394,
3235,
2932,
984,
17,
14387,
756,
294,
315,
4766,
3639,
397,
756,
18,
10492,
10663,
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
] |
double[] acfVals = acf(maxlag); double[] conf = acf95conf(maxlag); double[] out = new double[acfVals.length]; for (int i=0; i<acfVals.length; i++) { out[i] = 1.96* Math.abs(acfVals[i]) / conf[i]; | double[] acfVals = acf(maxlag); double[] conf = acf95conf(maxlag); double[] out = new double[acfVals.length]; for (int i=0; i<acfVals.length; i++) { out[i] = 1.96* Math.abs(acfVals[i]) / conf[i]; } return out; | public double[] acfTRatio(int maxlag) { double[] acfVals = acf(maxlag); double[] conf = acf95conf(maxlag); double[] out = new double[acfVals.length]; for (int i=0; i<acfVals.length; i++) { out[i] = 1.96* Math.abs(acfVals[i]) / conf[i]; } return out; } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/05e078356cbf684ec12612d15c6a53faa346f073/Statistics.java/buggy/src/edu/sc/seis/fissuresUtil/bag/Statistics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
8526,
1721,
74,
4349,
4197,
12,
474,
943,
22532,
13,
288,
565,
1645,
8526,
1721,
74,
13169,
273,
1721,
74,
12,
1896,
22532,
1769,
565,
1645,
8526,
2195,
273,
1721,
74,
8778,
3923,
12,
1896,
22532,
1769,
565,
1645,
8526,
596,
273,
394,
1645,
63,
21441,
13169,
18,
2469,
15533,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
21441,
13169,
18,
2469,
31,
277,
27245,
288,
3639,
596,
63,
77,
65,
273,
404,
18,
10525,
14,
2361,
18,
5113,
12,
21441,
13169,
63,
77,
5717,
342,
3639,
2195,
63,
77,
15533,
565,
289,
565,
327,
596,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
1645,
8526,
1721,
74,
4349,
4197,
12,
474,
943,
22532,
13,
288,
565,
1645,
8526,
1721,
74,
13169,
273,
1721,
74,
12,
1896,
22532,
1769,
565,
1645,
8526,
2195,
273,
1721,
74,
8778,
3923,
12,
1896,
22532,
1769,
565,
1645,
8526,
596,
273,
394,
1645,
63,
21441,
13169,
18,
2469,
15533,
565,
364,
261,
474,
277,
33,
20,
31,
277,
32,
21441,
13169,
18,
2469,
31,
277,
27245,
288,
3639,
596,
63,
77,
65,
273,
404,
18,
10525,
14,
2361,
18,
5113,
12,
21441,
13169,
63,
77,
5717,
342,
3639,
2195,
63,
77,
15533,
565,
289,
565,
327,
596,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
List pList = new LinkedList(); | List<Pronunciation> pList = new LinkedList<Pronunciation>(); | private Word processEntry(String word) { List pList = new LinkedList(); String line = null; int count = 0; boolean isFiller = false; do { count++; String lookupWord = word; if (count > 1) { lookupWord = lookupWord + "(" + count + ")"; } line = (String) dictionary.get(lookupWord); if (line != null) { StringTokenizer st = new StringTokenizer(line); String tag = st.nextToken(); isFiller = tag.startsWith(FILLER_TAG); int unitCount = st.countTokens(); dictionary.remove(lookupWord); Unit[] units = new Unit[unitCount]; for (int i = 0; i < units.length; i++) { String unitName = st.nextToken(); units[i] = getCIUnit(unitName, isFiller); } if (!isFiller && addSilEndingPronunciation) { Unit[] silUnits = new Unit[unitCount + 1]; System.arraycopy(units, 0, silUnits, 0, unitCount); silUnits[unitCount] = UnitManager.SILENCE; units = silUnits; } pList.add(new Pronunciation(units, null, null, 1.f)); } } while (line != null); Pronunciation[] pronunciations = new Pronunciation[pList.size()]; pList.toArray(pronunciations); Word wordObject = createWord(word, pronunciations, isFiller); for (int i = 0; i < pronunciations.length; i++) { pronunciations[i].setWord(wordObject); } return wordObject; } | 8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/ab1fd6a6b23442eea9417cee12bf892b256ae220/FastDictionary.java/clean/sphinx4/src/sphinx4/edu/cmu/sphinx/linguist/dictionary/FastDictionary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
9926,
1207,
1622,
12,
780,
2076,
13,
288,
3639,
987,
32,
52,
1949,
551,
7072,
34,
293,
682,
273,
394,
10688,
32,
52,
1949,
551,
7072,
34,
5621,
3639,
514,
980,
273,
446,
31,
3639,
509,
1056,
273,
374,
31,
3639,
1250,
353,
8026,
264,
273,
629,
31,
3639,
741,
288,
5411,
1056,
9904,
31,
5411,
514,
3689,
3944,
273,
2076,
31,
5411,
309,
261,
1883,
405,
404,
13,
288,
7734,
3689,
3944,
273,
3689,
3944,
397,
12452,
397,
1056,
397,
7310,
31,
5411,
289,
5411,
980,
273,
261,
780,
13,
3880,
18,
588,
12,
8664,
3944,
1769,
5411,
309,
261,
1369,
480,
446,
13,
288,
7734,
16370,
384,
273,
394,
16370,
12,
1369,
1769,
7734,
514,
1047,
273,
384,
18,
4285,
1345,
5621,
7734,
353,
8026,
264,
273,
1047,
18,
17514,
1190,
12,
29818,
654,
67,
7927,
1769,
7734,
509,
2836,
1380,
273,
384,
18,
1883,
5157,
5621,
7734,
3880,
18,
4479,
12,
8664,
3944,
1769,
7734,
8380,
8526,
4971,
273,
394,
8380,
63,
4873,
1380,
15533,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4971,
18,
2469,
31,
277,
27245,
288,
10792,
514,
2836,
461,
273,
384,
18,
4285,
1345,
5621,
10792,
4971,
63,
77,
65,
273,
1927,
45,
2802,
12,
4873,
461,
16,
353,
8026,
264,
1769,
7734,
289,
7734,
309,
16051,
291,
8026,
264,
597,
527,
19740,
25674,
52,
1949,
551,
7072,
13,
288,
10792,
8380,
8526,
17714,
7537,
273,
394,
8380,
63,
4873,
1380,
397,
404,
15533,
10792,
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,
9926,
1207,
1622,
12,
780,
2076,
13,
288,
3639,
987,
32,
52,
1949,
551,
7072,
34,
293,
682,
273,
394,
10688,
32,
52,
1949,
551,
7072,
34,
5621,
3639,
514,
980,
273,
446,
31,
3639,
509,
1056,
273,
374,
31,
3639,
1250,
353,
8026,
264,
273,
629,
31,
3639,
741,
288,
5411,
1056,
9904,
31,
5411,
514,
3689,
3944,
273,
2076,
31,
5411,
309,
261,
1883,
405,
404,
13,
288,
7734,
3689,
3944,
273,
3689,
3944,
397,
12452,
397,
1056,
397,
7310,
31,
5411,
289,
5411,
980,
273,
261,
780,
13,
3880,
18,
588,
12,
8664,
3944,
1769,
5411,
309,
261,
1369,
480,
446,
13,
288,
7734,
16370,
384,
273,
394,
16370,
12,
1369,
1769,
7734,
514,
2
] |
void filesActivated() | void filesActivated(boolean newView) | void filesActivated() { VFS.DirectoryEntry[] selectedFiles = browserView.getSelectedFiles(); for(int i = 0; i < selectedFiles.length; i++) { VFS.DirectoryEntry file = selectedFiles[i]; if(file.type == VFS.DirectoryEntry.DIRECTORY || file.type == VFS.DirectoryEntry.FILESYSTEM) setDirectory(file.path); else if(mode == BROWSER) { Buffer buffer = jEdit.getBuffer(file.path); if(buffer == null) buffer = jEdit.openFile(null,file.path); else if(doubleClickClose) { jEdit.closeBuffer(view,buffer); break; } if(buffer != null) { if(view == null) view = jEdit.newView(null,buffer); else view.setBuffer(buffer); } } else { // if a file is selected in OPEN_DIALOG or // SAVE_DIALOG mode, just let the listener(s) // handle it } } Object[] listeners = listenerList.getListenerList(); for(int i = 0; i < listeners.length; i++) { if(listeners[i] == BrowserListener.class) { BrowserListener l = (BrowserListener)listeners[i+1]; l.filesActivated(this,selectedFiles); } } } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/b29522a8dff345e27e2735f77ed9fafc5e1078da/VFSBrowser.java/clean/org/gjt/sp/jedit/browser/VFSBrowser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1390,
28724,
1435,
202,
95,
202,
202,
58,
4931,
18,
2853,
1622,
8526,
3170,
2697,
273,
4748,
1767,
18,
588,
7416,
2697,
5621,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
3170,
2697,
18,
2469,
31,
277,
27245,
202,
202,
95,
1082,
202,
58,
4931,
18,
2853,
1622,
585,
273,
3170,
2697,
63,
77,
15533,
1082,
202,
430,
12,
768,
18,
723,
422,
23567,
18,
2853,
1622,
18,
17229,
9506,
202,
20081,
585,
18,
723,
422,
23567,
18,
2853,
1622,
18,
3776,
14318,
13,
9506,
202,
542,
2853,
12,
768,
18,
803,
1769,
1082,
202,
12107,
309,
12,
3188,
422,
605,
24846,
13,
1082,
202,
95,
9506,
202,
1892,
1613,
273,
525,
4666,
18,
588,
1892,
12,
768,
18,
803,
1769,
9506,
202,
430,
12,
4106,
422,
446,
13,
6862,
202,
4106,
273,
525,
4666,
18,
3190,
812,
12,
2011,
16,
768,
18,
803,
1769,
9506,
202,
12107,
309,
12,
9056,
6563,
4605,
13,
9506,
202,
95,
6862,
202,
78,
4666,
18,
4412,
1892,
12,
1945,
16,
4106,
1769,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
430,
12,
4106,
480,
446,
13,
9506,
202,
95,
6862,
202,
430,
12,
1945,
422,
446,
13,
25083,
202,
1945,
273,
525,
4666,
18,
2704,
1767,
12,
2011,
16,
4106,
1769,
6862,
202,
12107,
25083,
202,
1945,
18,
542,
1892,
12,
4106,
1769,
9506,
202,
97,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
759,
309,
279,
585,
353,
3170,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1390,
28724,
1435,
202,
95,
202,
202,
58,
4931,
18,
2853,
1622,
8526,
3170,
2697,
273,
4748,
1767,
18,
588,
7416,
2697,
5621,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
3170,
2697,
18,
2469,
31,
277,
27245,
202,
202,
95,
1082,
202,
58,
4931,
18,
2853,
1622,
585,
273,
3170,
2697,
63,
77,
15533,
1082,
202,
430,
12,
768,
18,
723,
422,
23567,
18,
2853,
1622,
18,
17229,
9506,
202,
20081,
585,
18,
723,
422,
23567,
18,
2853,
1622,
18,
3776,
14318,
13,
9506,
202,
542,
2853,
12,
768,
18,
803,
1769,
1082,
202,
12107,
309,
12,
3188,
422,
605,
24846,
13,
1082,
202,
95,
9506,
202,
1892,
1613,
273,
525,
4666,
2
] |
String fname = fontInfo.fontLookup("sans-serif", "normal", Font.NORMAL); FontMetrics metrics = fontInfo.getMetricsFor(fname); | String fname = document.getFontInfo().fontLookup("sans-serif", "normal", Font.NORMAL); FontMetrics metrics = document.getFontInfo().getMetricsFor(fname); | List getInlineAreas(Element root) { List list = new java.util.ArrayList(); NodeList childs = root.getChildNodes(); for (int i = 0; i < childs.getLength(); i++) { Node obj = childs.item(i); if (obj.getNodeName().equals("char")) { Character ch = new Character(getString((Element) obj).charAt(0)); addTraits((Element) obj, ch); String fname = fontInfo.fontLookup("sans-serif", "normal", Font.NORMAL); FontMetrics metrics = fontInfo.getMetricsFor(fname); currentFontState = new Font(fname, metrics, 12000); ch.setWidth(currentFontState.getWidth(ch.getChar())); ch.setOffset(currentFontState.getCapHeight()); list.add(ch); } else if (obj.getNodeName().equals("space")) { Space space = new Space(); String width = ((Element) obj).getAttribute("width"); int w = Integer.parseInt(width); space.setWidth(w); list.add(space); } else if (obj.getNodeName().equals("viewport")) { Viewport viewport = getViewport((Element) obj); if (viewport != null) { list.add(viewport); } } else if (obj.getNodeName().equals("leader")) { Leader leader = getLeader((Element) obj); if (leader != null) { list.add(leader); } } else if (obj.getNodeName().equals("word")) { String fname = fontInfo.fontLookup("sans-serif", "normal", Font.NORMAL); FontMetrics metrics = fontInfo.getMetricsFor(fname); currentFontState = new Font(fname, metrics, 12000); TextArea text = getText((Element) obj); text.addTrait(Trait.FONT_NAME, fname); text.addTrait(Trait.FONT_SIZE, new Integer(12000)); if (text != null) { list.add(text); } } else { } } return list; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/e0c6bb98bff4b94131c82eb8c5be82ee2a1f43a0/AreaTreeBuilder.java/buggy/src/java/org/apache/fop/tools/AreaTreeBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
987,
7854,
1369,
28377,
12,
1046,
1365,
13,
288,
3639,
987,
666,
273,
394,
2252,
18,
1367,
18,
19558,
5621,
3639,
16781,
21619,
273,
1365,
18,
588,
22460,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
21619,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
2029,
1081,
273,
21619,
18,
1726,
12,
77,
1769,
5411,
309,
261,
2603,
18,
588,
18948,
7675,
14963,
2932,
3001,
6,
3719,
288,
7734,
6577,
462,
273,
5375,
394,
6577,
12,
588,
780,
12443,
1046,
13,
1081,
2934,
3001,
861,
12,
20,
10019,
7734,
527,
30370,
12443,
1046,
13,
1081,
16,
462,
1769,
7734,
514,
5299,
273,
3512,
966,
18,
5776,
6609,
2932,
87,
634,
17,
550,
430,
3113,
315,
6130,
3113,
10063,
18,
15480,
1769,
7734,
10063,
5653,
4309,
273,
3512,
966,
18,
588,
5653,
1290,
12,
12749,
1769,
7734,
783,
5711,
1119,
273,
10792,
394,
10063,
12,
12749,
16,
4309,
16,
2593,
3784,
1769,
7734,
462,
18,
542,
2384,
12,
2972,
5711,
1119,
18,
588,
2384,
12,
343,
18,
588,
2156,
1435,
10019,
7734,
462,
18,
542,
2335,
12,
2972,
5711,
1119,
18,
588,
4664,
2686,
10663,
7734,
666,
18,
1289,
12,
343,
1769,
5411,
289,
469,
309,
261,
2603,
18,
588,
18948,
7675,
14963,
2932,
2981,
6,
3719,
288,
7734,
14059,
3476,
273,
394,
14059,
5621,
7734,
514,
1835,
273,
14015,
1046,
13,
1081,
2934,
588,
1499,
2932,
2819,
8863,
7734,
509,
341,
273,
2144,
18,
2670,
1702,
12,
2819,
1769,
7734,
3476,
18,
542,
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,
987,
7854,
1369,
28377,
12,
1046,
1365,
13,
288,
3639,
987,
666,
273,
394,
2252,
18,
1367,
18,
19558,
5621,
3639,
16781,
21619,
273,
1365,
18,
588,
22460,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
21619,
18,
588,
1782,
5621,
277,
27245,
288,
5411,
2029,
1081,
273,
21619,
18,
1726,
12,
77,
1769,
5411,
309,
261,
2603,
18,
588,
18948,
7675,
14963,
2932,
3001,
6,
3719,
288,
7734,
6577,
462,
273,
5375,
394,
6577,
12,
588,
780,
12443,
1046,
13,
1081,
2934,
3001,
861,
12,
20,
10019,
7734,
527,
30370,
12443,
1046,
13,
1081,
16,
462,
1769,
7734,
514,
5299,
273,
3512,
966,
18,
5776,
6609,
2932,
87,
634,
17,
550,
430,
3113,
315,
2
] |
public String getAuthorName() { // TODO: Currently we don't get the real name from the xml. // Need retrieve these names somehow return getAuthor(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/d8246dd7ee077547396e25d64d6ab962efeb824e/Comment.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/Comment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
3594,
461,
1435,
288,
202,
202,
759,
2660,
30,
15212,
732,
2727,
1404,
336,
326,
2863,
508,
628,
326,
2025,
18,
202,
202,
759,
4202,
12324,
4614,
4259,
1257,
28578,
202,
202,
2463,
336,
3594,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
514,
336,
3594,
461,
1435,
288,
202,
202,
759,
2660,
30,
15212,
732,
2727,
1404,
336,
326,
2863,
508,
628,
326,
2025,
18,
202,
202,
759,
4202,
12324,
4614,
4259,
1257,
28578,
202,
202,
2463,
336,
3594,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | ||
super(position); | super(position, NodeTypes.CONSTNODE); | public ConstNode(ISourcePosition position, String name) { super(position); this.name = name.intern(); } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/6e15491217631472c05c6928672f9c7064a978b3/ConstNode.java/clean/src/org/jruby/ast/ConstNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9333,
907,
12,
45,
1830,
2555,
1754,
16,
514,
508,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
26411,
8744,
1769,
3639,
333,
18,
529,
273,
508,
18,
267,
798,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9333,
907,
12,
45,
1830,
2555,
1754,
16,
514,
508,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
26411,
8744,
1769,
3639,
333,
18,
529,
273,
508,
18,
267,
798,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protected void setUp() { | protected void setUp() throws CruiseControlException { | protected void setUp() { dir.mkdirs(); ccController = new CruiseControlController(); } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/c683ed78c6d4cb9c2cd81b8ad2f9a4d344b39fe4/CruiseControlControllerTest.java/clean/main/test/net/sourceforge/cruisecontrol/CruiseControlControllerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
1577,
18,
24816,
8291,
5621,
3639,
4946,
2933,
273,
394,
385,
8653,
784,
3367,
2933,
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,
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,
377,
4750,
918,
24292,
1435,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
1577,
18,
24816,
8291,
5621,
3639,
4946,
2933,
273,
394,
385,
8653,
784,
3367,
2933,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
EventListener [] listeners = getListeners(TableColumnModelListener.class); | EventListener[] listeners = getListeners(TableColumnModelListener.class); if (changeEvent == null && listeners.length > 0) changeEvent = new ChangeEvent(this); | protected void fireColumnMarginChanged() { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener) listeners[i]).columnMarginChanged(changeEvent); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultTableColumnModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableColumnModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4452,
1494,
9524,
5033,
1435,
225,
288,
565,
22090,
8526,
4679,
273,
336,
5583,
12,
1388,
1494,
1488,
2223,
18,
1106,
1769,
309,
261,
3427,
1133,
422,
446,
597,
4679,
18,
2469,
405,
374,
13,
2549,
1133,
273,
394,
7576,
1133,
12,
2211,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
965,
77,
13,
1377,
14015,
1388,
1494,
1488,
2223,
13,
4679,
63,
77,
65,
2934,
2827,
9524,
5033,
12,
3427,
1133,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
4452,
1494,
9524,
5033,
1435,
225,
288,
565,
22090,
8526,
4679,
273,
336,
5583,
12,
1388,
1494,
1488,
2223,
18,
1106,
1769,
309,
261,
3427,
1133,
422,
446,
597,
4679,
18,
2469,
405,
374,
13,
2549,
1133,
273,
394,
7576,
1133,
12,
2211,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
965,
77,
13,
1377,
14015,
1388,
1494,
1488,
2223,
13,
4679,
63,
77,
65,
2934,
2827,
9524,
5033,
12,
3427,
1133,
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
] |
result.append(", "); | result.append("; "); | private static String showSet(Set nativeCountries, boolean transliterate, boolean isLanguage) { UnicodeSet BIDI_R = new UnicodeSet( "[[:Bidi_Class=R:][:Bidi_Class=AL:]]"); StringBuffer result = new StringBuffer(); Map sb = new TreeMap(LanguageList.col); // collect multiples by English name for (Iterator it = nativeCountries.iterator(); it.hasNext();) { LanguageList llist = (LanguageList) it.next(); Set s = (Set) sb.get(llist.getEnglishName()); if (s == null) sb.put(llist.getEnglishName(), s = new TreeSet()); s.add(llist); } for (Iterator it = sb.keySet().iterator(); it.hasNext();) { String englishName = (String) it.next(); Set s = (Set) sb.get(englishName); if (result.length() != 0) { result.append(", "); } String qualifiers = "", title = ""; int count = 0; boolean needQualifier = s.size() != 1; for (Iterator it2 = s.iterator(); it2.hasNext();) { count += 1; LanguageList llist = (LanguageList) it2.next(); String localName = llist.getLocalName(); String locale = llist.getLocale(); // see if we need qualifier String lang = locale, country = ""; if (locale.length() > 3 && locale.charAt(locale.length() - 3) == '_') { lang = locale.substring(0, locale.length() - 3); country = locale.substring(locale.length() - 2); } // fix if (BIDI_R.containsSome(localName)) localName = '\u200E' + localName + '\u200E'; if (qualifiers.length() != 0) qualifiers += "; "; qualifiers += lang; if (title.length() != 0) title += "; ";/* if (isLanguage) { title += lang; } else { title += country; }*/ if (!localName.equalsIgnoreCase(englishName)) { needQualifier = true; qualifiers += ", " + localName; if (transliterate && NON_LATIN.containsSome(localName) && !lang.equals("ja")) { String transName = fixedTitleCase(ULocale.ENGLISH, toLatin.transliterate(localName)); if (NON_LATIN.containsSome(transName)) { Log.logln("Can't transliterate " + localName + ": " + transName); } else { title += ", " + transName; } } } } String before = "", after = ""; if (title.length() != 0) { before = "<span title=\'" + BagFormatter.toHTML.transliterate(title) + "'>"; after = "</span>"; } if (!needQualifier) qualifiers = ""; else qualifiers = " (" + qualifiers + ")"; // fix if (englishName.endsWith(", China")) { englishName = englishName.substring(0, englishName.length() - ", China".length()) + " China"; } result.append(before) .append( BagFormatter.toHTML.transliterate(englishName + qualifiers)).append(after); } return result.toString(); } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/d320952c0a8b7f7684167c50d5798bfccc18b724/GenerateStatistics.java/clean/tools/java/org/unicode/cldr/tool/GenerateStatistics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
2405,
694,
12,
694,
6448,
30945,
16,
1250,
2162,
18793,
16,
1082,
202,
6494,
353,
3779,
13,
288,
202,
202,
16532,
694,
605,
30218,
67,
54,
273,
394,
9633,
694,
12,
9506,
202,
6,
63,
10531,
17763,
77,
67,
797,
33,
54,
30,
6362,
30,
17763,
77,
67,
797,
33,
1013,
26894,
4279,
1769,
202,
202,
780,
1892,
563,
273,
394,
6674,
5621,
202,
202,
863,
2393,
273,
394,
16381,
12,
3779,
682,
18,
1293,
1769,
202,
202,
759,
3274,
3309,
6089,
635,
24151,
508,
202,
202,
1884,
261,
3198,
518,
273,
6448,
30945,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
3779,
682,
328,
1098,
273,
261,
3779,
682,
13,
518,
18,
4285,
5621,
1082,
202,
694,
272,
273,
261,
694,
13,
2393,
18,
588,
12,
80,
1098,
18,
588,
664,
13740,
461,
10663,
1082,
202,
430,
261,
87,
422,
446,
13,
9506,
202,
18366,
18,
458,
12,
80,
1098,
18,
588,
664,
13740,
461,
9334,
272,
273,
394,
19461,
10663,
1082,
202,
87,
18,
1289,
12,
80,
1098,
1769,
202,
202,
97,
202,
202,
1884,
261,
3198,
518,
273,
2393,
18,
856,
694,
7675,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
780,
26858,
461,
273,
261,
780,
13,
518,
18,
4285,
5621,
1082,
202,
694,
272,
273,
261,
694,
13,
2393,
18,
588,
12,
275,
13740,
461,
1769,
1082,
202,
430,
261,
2088,
18,
2469,
1435,
480,
374,
13,
288,
9506,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
2405,
694,
12,
694,
6448,
30945,
16,
1250,
2162,
18793,
16,
1082,
202,
6494,
353,
3779,
13,
288,
202,
202,
16532,
694,
605,
30218,
67,
54,
273,
394,
9633,
694,
12,
9506,
202,
6,
63,
10531,
17763,
77,
67,
797,
33,
54,
30,
6362,
30,
17763,
77,
67,
797,
33,
1013,
26894,
4279,
1769,
202,
202,
780,
1892,
563,
273,
394,
6674,
5621,
202,
202,
863,
2393,
273,
394,
16381,
12,
3779,
682,
18,
1293,
1769,
202,
202,
759,
3274,
3309,
6089,
635,
24151,
508,
202,
202,
1884,
261,
3198,
518,
273,
6448,
30945,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
3779,
682,
328,
1098,
273,
261,
3779,
682,
2
] |
public int CMO_Lookback( int optInTimePeriod ){ int retValue; retValue = optInTimePeriod + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_CMO.ordinal()]) ; if( (this.compatibility) == TA_Compatibility. TA_COMPATIBILITY_METASTOCK ) retValue--; return retValue;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
474,
39,
5980,
67,
9794,
823,
12,
474,
3838,
382,
26540,
15329,
474,
1349,
620,
31,
1349,
620,
33,
3838,
382,
26540,
15,
12,
2211,
18,
318,
15021,
5027,
63,
9833,
67,
2622,
984,
334,
548,
18,
9833,
67,
42,
21163,
67,
2124,
882,
67,
39,
5980,
18,
517,
1490,
1435,
19226,
430,
12443,
2211,
18,
27303,
13,
631,
9833,
67,
21633,
18,
9833,
67,
28249,
13450,
14674,
67,
18315,
9053,
51,
3507,
13,
1349,
620,
413,
31,
2463,
1349,
620,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
474,
39,
5980,
67,
9794,
823,
12,
474,
3838,
382,
26540,
15329,
474,
1349,
620,
31,
1349,
620,
33,
3838,
382,
26540,
15,
12,
2211,
18,
318,
15021,
5027,
63,
9833,
67,
2622,
984,
334,
548,
18,
9833,
67,
42,
21163,
67,
2124,
882,
67,
39,
5980,
18,
517,
1490,
1435,
19226,
430,
12443,
2211,
18,
27303,
13,
631,
9833,
67,
21633,
18,
9833,
67,
28249,
13450,
14674,
67,
18315,
9053,
51,
3507,
13,
1349,
620,
413,
31,
2463,
1349,
620,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | ||
assertTrue("group should be satisfied", !group.needsMoreInvocations()); | assertTrue(group.isSatisfied()); | public void testIsSatisfiedIfAllUninvokedMatchersAreSatisfied() { expectation1.needsMoreInvocations = false; expectation2.needsMoreInvocations = false; expectation3.needsMoreInvocations = false; expectation4.needsMoreInvocations = false; assertTrue("group should be satisfied", !group.needsMoreInvocations()); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/010013813a0e057e0715a4d31490eefcfa353062/OrderedExpectationGroupTests.java/clean/jmock2/test/org/jmock/test/unit/lib/OrderedExpectationGroupTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2520,
15163,
21501,
2047,
1595,
984,
5768,
14276,
28061,
4704,
15163,
21501,
1435,
288,
3639,
17733,
21,
18,
20600,
7417,
3605,
17448,
273,
629,
31,
3639,
17733,
22,
18,
20600,
7417,
3605,
17448,
273,
629,
31,
3639,
17733,
23,
18,
20600,
7417,
3605,
17448,
273,
629,
31,
3639,
17733,
24,
18,
20600,
7417,
3605,
17448,
273,
629,
31,
7734,
1815,
5510,
12,
1655,
18,
291,
15163,
21501,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1842,
2520,
15163,
21501,
2047,
1595,
984,
5768,
14276,
28061,
4704,
15163,
21501,
1435,
288,
3639,
17733,
21,
18,
20600,
7417,
3605,
17448,
273,
629,
31,
3639,
17733,
22,
18,
20600,
7417,
3605,
17448,
273,
629,
31,
3639,
17733,
23,
18,
20600,
7417,
3605,
17448,
273,
629,
31,
3639,
17733,
24,
18,
20600,
7417,
3605,
17448,
273,
629,
31,
7734,
1815,
5510,
12,
1655,
18,
291,
15163,
21501,
10663,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.