rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
sequence | attention_mask
sequence | labels
sequence |
---|---|---|---|---|---|---|
componentSpecification = defaultPicoContainer.getComponentSpecification(componentKey); | componentSpecification = componentRegistry.getComponentSpec(componentKey); | public Object resolve(PicoContainer picoContainer, ComponentSpecification compSpec, Class requestedType) throws PicoInitializationException { // TODO figure out a way to remove this ugly cast? DefaultPicoContainer defaultPicoContainer = (DefaultPicoContainer) picoContainer; Object componentInstance; ComponentSpecification componentSpecification = null; if (componentKey != null) { // is specified dependency already instantiated? componentInstance = picoContainer.getComponent(componentKey); if (componentInstance == null) { // try to find the component based on the key componentSpecification = defaultPicoContainer.getComponentSpecification(componentKey); } } else { // try to find it directly using the requestType as the key componentInstance = picoContainer.getComponent(requestedType); if (componentInstance == null) { // is there already an instantiated instance that satisfies the dependency? componentInstance = defaultPicoContainer.findImplementingComponent(requestedType); if (componentInstance == null) { // try to find components that satisfy the interface (implements the component service asked for) componentSpecification = defaultPicoContainer.findImplementingComponentSpecification(requestedType); } } } if (componentSpecification != null) { // if the component does not exist yet, instantiate it componentInstance = defaultPicoContainer.createComponent(componentSpecification); } if (componentInstance == null) { throw new UnsatisfiedDependencyInstantiationException(compSpec.getComponentImplementation(), componentKey, requestedType); } return componentInstance; } | 14040 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14040/47b2a79a3e2bb19b97ea7736273df40b79ab5472/ComponentParameter.java/buggy/java/picocontainer/src/java/org/picocontainer/defaults/ComponentParameter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2245,
12,
52,
10764,
2170,
293,
10764,
2170,
16,
5435,
8615,
1161,
1990,
16,
1659,
3764,
559,
13,
5411,
1216,
453,
10764,
17701,
503,
288,
3639,
368,
2660,
7837,
596,
279,
4031,
358,
1206,
333,
26920,
4812,
35,
3639,
2989,
52,
10764,
2170,
805,
52,
10764,
2170,
273,
261,
1868,
52,
10764,
2170,
13,
293,
10764,
2170,
31,
3639,
1033,
1794,
1442,
31,
3639,
5435,
8615,
1794,
8615,
273,
446,
31,
3639,
309,
261,
4652,
653,
480,
446,
13,
288,
5411,
368,
353,
1269,
4904,
1818,
17651,
35,
5411,
1794,
1442,
273,
293,
10764,
2170,
18,
588,
1841,
12,
4652,
653,
1769,
5411,
309,
261,
4652,
1442,
422,
446,
13,
288,
7734,
368,
775,
358,
1104,
326,
1794,
2511,
603,
326,
498,
7734,
1794,
8615,
273,
1794,
4243,
18,
588,
1841,
1990,
12,
4652,
653,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
368,
775,
358,
1104,
518,
5122,
1450,
326,
27179,
487,
326,
498,
5411,
1794,
1442,
273,
293,
10764,
2170,
18,
588,
1841,
12,
19065,
559,
1769,
5411,
309,
261,
4652,
1442,
422,
446,
13,
288,
7734,
368,
353,
1915,
1818,
392,
17651,
791,
716,
17917,
326,
4904,
35,
7734,
1794,
1442,
273,
805,
52,
10764,
2170,
18,
4720,
5726,
310,
1841,
12,
19065,
559,
1769,
7734,
309,
261,
4652,
1442,
422,
446,
13,
288,
10792,
368,
775,
358,
1104,
4085,
716,
18866,
326,
1560,
261,
17061,
326,
1794,
1156,
19279,
364,
13,
10792,
1794,
8615,
273,
805,
52,
10764,
2170,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2245,
12,
52,
10764,
2170,
293,
10764,
2170,
16,
5435,
8615,
1161,
1990,
16,
1659,
3764,
559,
13,
5411,
1216,
453,
10764,
17701,
503,
288,
3639,
368,
2660,
7837,
596,
279,
4031,
358,
1206,
333,
26920,
4812,
35,
3639,
2989,
52,
10764,
2170,
805,
52,
10764,
2170,
273,
261,
1868,
52,
10764,
2170,
13,
293,
10764,
2170,
31,
3639,
1033,
1794,
1442,
31,
3639,
5435,
8615,
1794,
8615,
273,
446,
31,
3639,
309,
261,
4652,
653,
480,
446,
13,
288,
5411,
368,
353,
1269,
4904,
1818,
17651,
35,
5411,
1794,
1442,
273,
293,
10764,
2170,
18,
588,
1841,
12,
4652,
653,
1769,
5411,
309,
261,
4652,
1442,
422,
446,
13,
288,
7734,
368,
775,
358,
1104,
2
] |
return RubyFixnum.newFixnum(getRuntime(), length()); | return getRuntime().newFixnum(length()); | public RubyFixnum size() { return RubyFixnum.newFixnum(getRuntime(), length()); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyHash.java/clean/src/org/jruby/RubyHash.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
963,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
2469,
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,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
963,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
2469,
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,
-100
] |
throws IllegalResidueException, IOException; | throws SeqException, IllegalResidueException, IOException; | Sequence readSequence(StreamReader.Context context, ResidueParser resParser, SequenceFactory sf) throws IllegalResidueException, IOException; | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/168290afa5c9ea48df9499ba45c2d66d69197f4a/SequenceFormat.java/buggy/src/org/biojava/bio/seq/io/SequenceFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
8370,
855,
4021,
12,
31495,
18,
1042,
819,
16,
13491,
1124,
23965,
2678,
400,
2678,
16,
13491,
8370,
1733,
9033,
13,
540,
1216,
2141,
607,
23965,
503,
16,
1860,
31,
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,
282,
8370,
855,
4021,
12,
31495,
18,
1042,
819,
16,
13491,
1124,
23965,
2678,
400,
2678,
16,
13491,
8370,
1733,
9033,
13,
540,
1216,
2141,
607,
23965,
503,
16,
1860,
31,
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
] |
return (MemberSignature[]) nonPrivateMethods.toArray(new MemberSignature[nonPrivateMethods.size()]); | return nonPrivateMethods.toArray(new MemberSignature[nonPrivateMethods.size()]); | public MemberSignature[] getNonPrivateMethodSignatures() { init(); return (MemberSignature[]) nonPrivateMethods.toArray(new MemberSignature[nonPrivateMethods.size()]); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/2d46d291193579a7564649b4881c7ea8e02eda5b/SerialVersionUIDBuilder.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/SerialVersionUIDBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8596,
5374,
8526,
28207,
6014,
1305,
23918,
1435,
565,
288,
3639,
1208,
5621,
3639,
327,
261,
4419,
5374,
63,
5717,
3639,
1661,
6014,
4712,
18,
31447,
12,
2704,
8596,
5374,
63,
5836,
6014,
4712,
18,
1467,
1435,
19226,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
8596,
5374,
8526,
28207,
6014,
1305,
23918,
1435,
565,
288,
3639,
1208,
5621,
3639,
327,
261,
4419,
5374,
63,
5717,
3639,
1661,
6014,
4712,
18,
31447,
12,
2704,
8596,
5374,
63,
5836,
6014,
4712,
18,
1467,
1435,
19226,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
new DefaultHighlighter.DefaultHighlightPainter(sourceTextArea.getSelectionColor()) { public Shape paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view) { try { Shape extent = view.modelToView(offs0, Position.Bias.Forward, offs1, Position.Bias.Backward, bounds); Rectangle rect = extent.getBounds(); rect.x = 0; rect.width = bounds.getBounds().width; g.setColor(getColor()); g.fillRect(rect.x, rect.y, rect.width, rect.height); return rect; } catch (BadLocationException e) { return null; } | new DefaultHighlighter.DefaultHighlightPainter(sourceTextArea.getSelectionColor()) { public Shape paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view) { try { Shape extent = view.modelToView(offs0, Position.Bias.Forward, offs1, Position.Bias.Backward, bounds); Rectangle rect = extent.getBounds(); rect.x = 0; rect.width = bounds.getBounds().width; g.setColor(getColor()); g.fillRect(rect.x, rect.y, rect.width, rect.height); return rect; } catch (BadLocationException e) { return null; | private void postInitComponents() { logger = new ConsoleLogger(this); viewPanelLayout = (CardLayout) viewPanel.getLayout(); // Console starts out disabled consoleSplitter.setDividerLocation(1.0); // List of bug group tabs. // This must be in the same order as GROUP_BY_ORDER_LIST! bugTreeList = new JTree[]{byClassBugTree, byPackageBugTree, byBugTypeBugTree}; // Configure bug trees for (int i = 0; i < bugTreeList.length; ++i) { JTree bugTree = bugTreeList[i]; bugTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); bugTree.setCellRenderer(bugCellRenderer); bugTree.setRootVisible(false); bugTree.setShowsRootHandles(true); bugTree.addTreeSelectionListener(new TreeSelectionListener() { public void valueChanged(TreeSelectionEvent e) { bugTreeSelectionChanged(e); } }); } jarFileList.setModel(new DefaultListModel()); sourceDirList.setModel(new DefaultListModel()); classpathEntryList.setModel(new DefaultListModel()); // We use a special highlight painter to ensure that the highlights cover // complete source lines, even though the source text doesn't // fill the lines completely. final Highlighter.HighlightPainter painter = new DefaultHighlighter.DefaultHighlightPainter(sourceTextArea.getSelectionColor()) { public Shape paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view) { try { Shape extent = view.modelToView(offs0, Position.Bias.Forward, offs1, Position.Bias.Backward, bounds); Rectangle rect = extent.getBounds(); rect.x = 0; rect.width = bounds.getBounds().width; g.setColor(getColor()); g.fillRect(rect.x, rect.y, rect.width, rect.height); return rect; } catch (BadLocationException e) { return null; } } }; Highlighter sourceHighlighter = new DefaultHighlighter() { public Object addHighlight(int p0, int p1, Highlighter.HighlightPainter p) throws BadLocationException { return super.addHighlight(p0, p1, painter); } }; sourceTextArea.setHighlighter(sourceHighlighter); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/a6faccf1f33035b730d9878d13d0da9fa199f1f8/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1603,
2570,
7171,
1435,
288,
202,
4901,
273,
394,
9657,
3328,
12,
2211,
1769,
202,
202,
1945,
5537,
3744,
273,
261,
6415,
3744,
13,
1476,
5537,
18,
588,
3744,
5621,
3639,
368,
9657,
2542,
596,
5673,
3639,
2983,
26738,
18,
542,
25558,
2735,
12,
21,
18,
20,
1769,
3639,
368,
987,
434,
7934,
1041,
10920,
18,
3639,
368,
1220,
1297,
506,
316,
326,
1967,
1353,
487,
13839,
67,
6486,
67,
7954,
67,
7085,
5,
3639,
7934,
2471,
682,
273,
394,
804,
2471,
63,
7073,
1637,
797,
19865,
2471,
16,
635,
2261,
19865,
2471,
16,
635,
19865,
559,
19865,
2471,
20451,
3639,
368,
11758,
7934,
11491,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7934,
2471,
682,
18,
2469,
31,
965,
77,
13,
288,
5411,
804,
2471,
7934,
2471,
273,
7934,
2471,
682,
63,
77,
15533,
5411,
7934,
2471,
18,
588,
6233,
1488,
7675,
542,
6233,
2309,
12,
2471,
6233,
1488,
18,
20184,
67,
26557,
67,
1090,
15445,
1769,
5411,
7934,
2471,
18,
542,
4020,
6747,
12,
925,
4020,
6747,
1769,
5411,
7934,
2471,
18,
542,
2375,
6207,
12,
5743,
1769,
5411,
7934,
2471,
18,
542,
24548,
2375,
8788,
12,
3767,
1769,
5411,
7934,
2471,
18,
1289,
2471,
6233,
2223,
12,
2704,
4902,
6233,
2223,
1435,
288,
7734,
1071,
918,
460,
5033,
12,
2471,
6233,
1133,
425,
13,
288,
10792,
7934,
2471,
6233,
5033,
12,
73,
1769,
7734,
289,
5411,
15549,
3639,
289,
202,
202,
11930,
26098,
18,
542,
1488,
12,
2704,
2989,
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,
1603,
2570,
7171,
1435,
288,
202,
4901,
273,
394,
9657,
3328,
12,
2211,
1769,
202,
202,
1945,
5537,
3744,
273,
261,
6415,
3744,
13,
1476,
5537,
18,
588,
3744,
5621,
3639,
368,
9657,
2542,
596,
5673,
3639,
2983,
26738,
18,
542,
25558,
2735,
12,
21,
18,
20,
1769,
3639,
368,
987,
434,
7934,
1041,
10920,
18,
3639,
368,
1220,
1297,
506,
316,
326,
1967,
1353,
487,
13839,
67,
6486,
67,
7954,
67,
7085,
5,
3639,
7934,
2471,
682,
273,
394,
804,
2471,
63,
7073,
1637,
797,
19865,
2471,
16,
635,
2261,
19865,
2471,
16,
635,
19865,
559,
19865,
2471,
20451,
3639,
368,
11758,
7934,
11491,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7934,
2
] |
preferenceTransfers = new ArrayList(); IExtensionRegistry registry = Platform.getExtensionRegistry(); readRegistry(registry, WorkbenchPlugin.PI_WORKBENCH, pluginPoint); } | preferenceTransfers = new ArrayList(); IExtensionRegistry registry = Platform.getExtensionRegistry(); readRegistry(registry, WorkbenchPlugin.PI_WORKBENCH, pluginPoint); } | protected void readPreferenceTransfers() { preferenceTransfers = new ArrayList(); IExtensionRegistry registry = Platform.getExtensionRegistry(); readRegistry(registry, WorkbenchPlugin.PI_WORKBENCH, pluginPoint); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0c824a572640b8871fefdcfaf3031b6370d525a6/PreferenceTransferRegistryReader.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PreferenceTransferRegistryReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
855,
9624,
1429,
18881,
1435,
288,
3639,
11555,
1429,
18881,
273,
394,
2407,
5621,
3639,
467,
3625,
4243,
4023,
273,
11810,
18,
588,
3625,
4243,
5621,
3639,
855,
4243,
12,
9893,
16,
4147,
22144,
3773,
18,
1102,
67,
10566,
38,
1157,
1792,
16,
1909,
2148,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
855,
9624,
1429,
18881,
1435,
288,
3639,
11555,
1429,
18881,
273,
394,
2407,
5621,
3639,
467,
3625,
4243,
4023,
273,
11810,
18,
588,
3625,
4243,
5621,
3639,
855,
4243,
12,
9893,
16,
4147,
22144,
3773,
18,
1102,
67,
10566,
38,
1157,
1792,
16,
1909,
2148,
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
] |
} else if (type.typeParams().length > 0 && !isPrimitive(symbol)) { | } else if (type.typeParams().length > 0 && !monoPrimitive(symbol)) { | public Type transformInfo(Symbol symbol, Type type) { if (symbol.isClass()) { NewMember[] toAdd = membersToAdd(symbol); if (toAdd.length == 0) return type; else { Scope newMembers = new Scope(symbol.members()); for (int i = 0; i < toAdd.length; ++i) newMembers.enterOrOverload(toAdd[i].symbolToAdd()); return Type.compoundType(type.parents(), newMembers, symbol); } } else if (type.typeParams().length > 0 && !isPrimitive(symbol)) { // Polymorphic method/constructor: // - add a value parameter for every type parameter. switch (type) { case PolyType(Symbol[] tparams, // : Type.MethodType(Symbol[] vparams, Type result)): List newVParams = new LinkedList(Arrays.asList(paramsToAdd(symbol))); newVParams.addAll(Arrays.asList(vparams)); Symbol[] newVParamsA = (Symbol[]) newVParams.toArray(new Symbol[newVParams.size()]); return new Type.PolyType(tparams, new Type.MethodType(newVParamsA, result)); default: throw Debug.abort("unexpected type: ", type); } } else return type; } | 10130 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10130/272ebd92493d51a38ef9068a7201d6f8abc3a1a1/TypesAsValuesPhase.java/buggy/sources/scalac/transformer/TypesAsValuesPhase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1412,
2510,
966,
12,
5335,
3273,
16,
1412,
618,
13,
288,
3639,
309,
261,
7175,
18,
291,
797,
10756,
288,
5411,
1166,
4419,
8526,
25607,
273,
4833,
13786,
12,
7175,
1769,
5411,
309,
261,
869,
986,
18,
2469,
422,
374,
13,
7734,
327,
618,
31,
5411,
469,
288,
7734,
5468,
394,
6918,
273,
394,
5468,
12,
7175,
18,
7640,
10663,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
25607,
18,
2469,
31,
965,
77,
13,
10792,
394,
6918,
18,
2328,
1162,
4851,
945,
12,
869,
986,
63,
77,
8009,
7175,
13786,
10663,
7734,
327,
1412,
18,
22585,
559,
12,
723,
18,
12606,
9334,
394,
6918,
16,
3273,
1769,
5411,
289,
3639,
289,
469,
309,
261,
723,
18,
723,
1370,
7675,
2469,
405,
374,
597,
401,
2586,
83,
9840,
12,
7175,
3719,
288,
5411,
368,
6730,
21976,
707,
19,
12316,
30,
5411,
368,
300,
527,
279,
460,
1569,
364,
3614,
618,
1569,
18,
5411,
1620,
261,
723,
13,
288,
5411,
648,
18394,
559,
12,
5335,
8526,
268,
2010,
16,
368,
294,
12900,
1412,
18,
21988,
12,
5335,
8526,
331,
2010,
16,
1412,
563,
3719,
30,
7734,
987,
394,
58,
1370,
273,
10792,
394,
10688,
12,
12726,
18,
345,
682,
12,
2010,
13786,
12,
7175,
3719,
1769,
7734,
394,
58,
1370,
18,
1289,
1595,
12,
12726,
18,
345,
682,
12,
90,
2010,
10019,
7734,
8565,
8526,
394,
58,
1370,
37,
273,
261,
5335,
63,
5717,
10792,
394,
58,
1370,
18,
31447,
12,
2704,
8565,
63,
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,
1412,
2510,
966,
12,
5335,
3273,
16,
1412,
618,
13,
288,
3639,
309,
261,
7175,
18,
291,
797,
10756,
288,
5411,
1166,
4419,
8526,
25607,
273,
4833,
13786,
12,
7175,
1769,
5411,
309,
261,
869,
986,
18,
2469,
422,
374,
13,
7734,
327,
618,
31,
5411,
469,
288,
7734,
5468,
394,
6918,
273,
394,
5468,
12,
7175,
18,
7640,
10663,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
25607,
18,
2469,
31,
965,
77,
13,
10792,
394,
6918,
18,
2328,
1162,
4851,
945,
12,
869,
986,
63,
77,
8009,
7175,
13786,
10663,
7734,
327,
1412,
18,
22585,
559,
12,
723,
18,
12606,
9334,
394,
6918,
16,
3273,
1769,
5411,
289,
3639,
289,
469,
309,
261,
2
] |
AST __t992 = _t; AST tmp2187_AST_in = (AST)_t; | AST __t996 = _t; AST tmp2191_AST_in = (AST)_t; | public final void menu_opt(AST _t) throws RecognitionException { AST menu_opt_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case FONT: { AST __t989 = _t; AST tmp2184_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t989; _t = _t.getNextSibling(); break; } case LIKE: { AST __t990 = _t; AST tmp2185_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALIDATE: { AST tmp2186_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t990; _t = _t.getNextSibling(); break; } case TITLE: { AST __t992 = _t; AST tmp2187_AST_in = (AST)_t; match(_t,TITLE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t992; _t = _t.getNextSibling(); break; } case MENUBAR: { AST tmp2188_AST_in = (AST)_t; match(_t,MENUBAR); _t = _t.getNextSibling(); break; } case PINNABLE: { AST tmp2189_AST_in = (AST)_t; match(_t,PINNABLE); _t = _t.getNextSibling(); break; } case SUBMENUHELP: { AST tmp2190_AST_in = (AST)_t; match(_t,SUBMENUHELP); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3824,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3824,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
30609,
10989,
30,
202,
202,
3593,
463,
10989,
30,
202,
202,
3593,
29086,
10989,
30,
202,
202,
3593,
453,
4488,
1741,
916,
30,
202,
202,
95,
1082,
202,
3266,
67,
8638,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
27104,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
29,
6675,
273,
389,
88,
31,
1082,
202,
9053,
1853,
22,
29242,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
25221,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
8692,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
29,
6675,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
13161,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
2733,
20,
273,
389,
88,
31,
1082,
202,
9053,
1853,
22,
30489,
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,
3824,
67,
3838,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3824,
67,
3838,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
30609,
10989,
30,
202,
202,
3593,
463,
10989,
30,
202,
202,
3593,
29086,
10989,
30,
202,
202,
3593,
453,
4488,
1741,
916,
30,
202,
202,
95,
1082,
202,
3266,
67,
8638,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
8820,
31,
2
] |
if ( LogWriter.needsLogging && this instanceof SIPClientTransaction) { sipStack.getLogWriter().logMessage("fireTimer " + this + " retransmissionTicks " + retransmissionTimerTicksLeft); } | /* * if (sipStack.isLoggingEnabled()) { sipStack.getLogWriter().logDebug( * "fireTimer " + this + " retransmissionTicks " + * retransmissionTimerTicksLeft); } */ | final void fireTimer() { // If the timeout timer is enabled, if ( LogWriter.needsLogging && this instanceof SIPClientTransaction) { sipStack.getLogWriter().logMessage("fireTimer " + this + " retransmissionTicks " + retransmissionTimerTicksLeft); } if (timeoutTimerTicksLeft != -1) { // Count down the timer, and if it has run out, if (--timeoutTimerTicksLeft == 0) { // Fire the timeout timer fireTimeoutTimer(); } } // If the retransmission timer is enabled, if (retransmissionTimerTicksLeft != -1) { // Count down the timer, and if it has run out, if (--retransmissionTimerTicksLeft == 0) { // Enable this timer to fire again after // twice the original time enableRetransmissionTimer(retransmissionTimerLastTickCount * 2); // Fire the timeout timer fireRetransmissionTimer(); } } } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/SIPTransaction.java/clean/src/gov/nist/javax/sip/stack/SIPTransaction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6385,
918,
4452,
6777,
1435,
288,
202,
202,
759,
971,
326,
2021,
5441,
353,
3696,
16,
202,
565,
309,
261,
1827,
2289,
18,
20600,
7735,
597,
333,
1276,
348,
2579,
1227,
3342,
13,
288,
202,
3639,
10341,
2624,
18,
588,
1343,
2289,
7675,
1330,
1079,
2932,
12179,
6777,
315,
397,
333,
3196,
7734,
397,
315,
283,
2338,
3951,
16610,
315,
397,
283,
2338,
3951,
6777,
16610,
3910,
1769,
202,
565,
289,
202,
540,
202,
202,
430,
261,
4538,
6777,
16610,
3910,
480,
300,
21,
13,
288,
1082,
202,
759,
6974,
2588,
326,
5441,
16,
471,
309,
518,
711,
1086,
596,
16,
1082,
202,
430,
261,
413,
4538,
6777,
16610,
3910,
422,
374,
13,
288,
9506,
202,
759,
10151,
326,
2021,
5441,
9506,
202,
12179,
2694,
6777,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
971,
326,
283,
2338,
3951,
5441,
353,
3696,
16,
202,
202,
430,
261,
266,
2338,
3951,
6777,
16610,
3910,
480,
300,
21,
13,
288,
1082,
202,
759,
6974,
2588,
326,
5441,
16,
471,
309,
518,
711,
1086,
596,
16,
1082,
202,
430,
261,
413,
266,
2338,
3951,
6777,
16610,
3910,
422,
374,
13,
288,
9506,
202,
759,
9677,
333,
5441,
358,
4452,
3382,
1839,
4697,
202,
759,
13605,
326,
2282,
813,
9506,
202,
7589,
7055,
28001,
3951,
6777,
12,
266,
2338,
3951,
6777,
3024,
6264,
1380,
380,
576,
1769,
9506,
202,
759,
10151,
326,
2021,
5441,
9506,
202,
12179,
7055,
28001,
3951,
6777,
5621,
1082,
202,
97,
202,
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,
6385,
918,
4452,
6777,
1435,
288,
202,
202,
759,
971,
326,
2021,
5441,
353,
3696,
16,
202,
565,
309,
261,
1827,
2289,
18,
20600,
7735,
597,
333,
1276,
348,
2579,
1227,
3342,
13,
288,
202,
3639,
10341,
2624,
18,
588,
1343,
2289,
7675,
1330,
1079,
2932,
12179,
6777,
315,
397,
333,
3196,
7734,
397,
315,
283,
2338,
3951,
16610,
315,
397,
283,
2338,
3951,
6777,
16610,
3910,
1769,
202,
565,
289,
202,
540,
202,
202,
430,
261,
4538,
6777,
16610,
3910,
480,
300,
21,
13,
288,
1082,
202,
759,
6974,
2588,
326,
5441,
16,
471,
309,
518,
711,
1086,
596,
16,
1082,
202,
430,
261,
413,
4538,
6777,
16610,
3910,
422,
374,
13,
288,
9506,
202,
759,
2
] |
System.out.println (" " + info.getName() + " [" + clientMap.get(cNum) +"]"); | String cName = (String)clientMap.get(cNum); System.out.println (" " + info.getName() + " [" + cName +"]"); if (cName.indexOf("UM-1") != -1) selectedInfo = info; | public static void main(String[] args) { MidiDevice.Info[] infos = MidiSystem.getMidiDeviceInfo(); if (infos.length == 0) { System.out.println( "No MIDI devices found. Exiting." ); System.exit(1); } /* Find ALSA MIDI ports */ List midiports = new ArrayList(); for(int i = 0; i<infos.length; i++) { if (infos[i].getName().startsWith("ALSA MIDI")) { midiports.add(infos[i]); } } if (midiports.size() == 0) { System.out.println("No (ALSA) MIDI ports found. Exiting." ); System.exit(1); } Map clientMap = Qualm.parseALSAClients(); System.out.println("ALSA MIDI ports:"); Iterator i = midiports.iterator(); while (i.hasNext()) { MidiDevice.Info info = (MidiDevice.Info)i.next(); String dev = info.getName(); dev = dev.substring(dev.indexOf('(')+1); dev = dev.substring(0, dev.lastIndexOf( ':' )); Integer cNum = new Integer(dev); System.out.println (" " + info.getName() + " [" + clientMap.get(cNum) +"]"); } System.exit(0); } | 48962 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48962/cfc37b1ed16aaed9b1f0a7a66c786506fba602cb/Qualm.java/clean/Qualm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
565,
490,
350,
77,
3654,
18,
966,
8526,
10626,
273,
490,
350,
77,
3163,
18,
588,
20711,
77,
3654,
966,
5621,
565,
309,
261,
18227,
18,
2469,
422,
374,
13,
288,
1377,
2332,
18,
659,
18,
8222,
12,
315,
2279,
490,
30218,
7166,
1392,
18,
225,
9500,
310,
1199,
11272,
1377,
2332,
18,
8593,
12,
21,
1769,
565,
289,
565,
1748,
4163,
432,
3045,
37,
490,
30218,
9048,
1195,
565,
987,
7501,
625,
499,
87,
273,
394,
2407,
5621,
565,
364,
12,
474,
277,
273,
374,
31,
277,
32,
18227,
18,
2469,
31,
277,
27245,
288,
1377,
309,
261,
18227,
63,
77,
8009,
17994,
7675,
17514,
1190,
2932,
1013,
5233,
490,
30218,
6,
3719,
288,
202,
13138,
625,
499,
87,
18,
1289,
12,
18227,
63,
77,
19226,
1377,
289,
565,
289,
565,
309,
261,
13138,
625,
499,
87,
18,
1467,
1435,
422,
374,
13,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
2279,
261,
1013,
5233,
13,
490,
30218,
9048,
1392,
18,
225,
9500,
310,
1199,
11272,
1377,
2332,
18,
8593,
12,
21,
1769,
565,
289,
565,
1635,
1004,
863,
273,
15029,
81,
18,
2670,
1013,
5233,
12300,
5621,
565,
2332,
18,
659,
18,
8222,
2932,
1013,
5233,
490,
30218,
9048,
2773,
1769,
565,
4498,
277,
273,
7501,
625,
499,
87,
18,
9838,
5621,
565,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
1377,
490,
350,
77,
3654,
18,
966,
1123,
273,
261,
20711,
77,
3654,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
565,
490,
350,
77,
3654,
18,
966,
8526,
10626,
273,
490,
350,
77,
3163,
18,
588,
20711,
77,
3654,
966,
5621,
565,
309,
261,
18227,
18,
2469,
422,
374,
13,
288,
1377,
2332,
18,
659,
18,
8222,
12,
315,
2279,
490,
30218,
7166,
1392,
18,
225,
9500,
310,
1199,
11272,
1377,
2332,
18,
8593,
12,
21,
1769,
565,
289,
565,
1748,
4163,
432,
3045,
37,
490,
30218,
9048,
1195,
565,
987,
7501,
625,
499,
87,
273,
394,
2407,
5621,
565,
364,
12,
474,
277,
273,
374,
31,
277,
32,
18227,
18,
2469,
31,
277,
27245,
288,
1377,
309,
261,
18227,
63,
77,
8009,
17994,
7675,
17514,
1190,
2932,
2
] |
return _asString.hashCode(); | return _calendar.hashCode(); | public int hashCode() { return _asString.hashCode(); } | 45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/112ea299458389f727394c555992fbb42954ddee/Date.java/buggy/src/java-common/org/xins/common/types/standard/Date.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
509,
13374,
1435,
288,
540,
327,
389,
11650,
18,
2816,
1085,
5621,
1377,
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,
4202,
1071,
509,
13374,
1435,
288,
540,
327,
389,
11650,
18,
2816,
1085,
5621,
1377,
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
] |
Assertions.assertTrue( variableContract.getValue("user.home").equals("/home/userprogram")); | Assertions.assertTrue( variableContract.getValue("user.home").equals(System.getProperty("user.home"))); | public void action() throws Exception { VariableContract variableContract= new VariableContract(); //Setting from Program HashMap map = new HashMap(); map.put("user.home", "/home/userprogram"); variableContract.setVariableFromProgram(map, VariableContractType.getType(ProActiveDescriptorConstants.VARIABLES_JAVAPROPERTY_PROGRAM_TAG)); Assertions.assertTrue( variableContract.getValue("user.home").equals("/home/userprogram")); boolean bogus=false; try{ variableContract.setVariableFromProgram("bogus.property", "", VariableContractType.getType(ProActiveDescriptorConstants.VARIABLES_JAVAPROPERTY_PROGRAM_TAG)); bogus=true; //shouldn't reach this line }catch(Exception e){} Assertions.assertTrue(!bogus); variableContract.setVariableFromProgram("bogus.property", "bogus_value", VariableContractType.getType(ProActiveDescriptorConstants.VARIABLES_JAVAPROPERTY_PROGRAM_TAG)); Assertions.assertTrue( variableContract.getValue("bogus.property").equals("bogus_value")); //Setting from Descriptor variableContract.setDescriptorVariable("user.home", "/home/userdesc", VariableContractType.getType(ProActiveDescriptorConstants.VARIABLES_JAVAPROPERTY_PROGRAM_TAG)); Assertions.assertTrue( variableContract.getValue("user.home").equals("/home/userprogram")); try{ bogus=false; variableContract.setDescriptorVariable("${ilegal.var.name}", "ilegalvariablename", VariableContractType.getType(ProActiveDescriptorConstants.VARIABLES_JAVAPROPERTY_PROGRAM_TAG)); bogus=true; //shouldn't reach this line }catch(Exception e){} Assertions.assertTrue(!bogus); //Setting bogus from program variableContract.setDescriptorVariable("bogus.property", "", VariableContractType.getType(ProActiveDescriptorConstants.VARIABLES_JAVAPROPERTY_PROGRAM_TAG)); Assertions.assertTrue( variableContract.getValue("bogus.property").equals("bogus_value")); pad = ProActive.getProactiveDescriptor(XML_LOCATION, variableContract); variableContract = pad.getVariableContract(); variableContract.getValue("user.home").equals(System.getProperty("user.home")); //Empty value in descriptor should have less priority, and not set to empty Assertions.assertTrue(variableContract.isClosed()); } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/91fcb54dcad7ac2c8c4cc89a2761dbf8a4a96ee2/Test.java/clean/src/nonregressiontest/descriptor/variablecontract/javapropertiesProgram/Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1301,
1435,
1216,
1185,
288,
9506,
202,
3092,
8924,
2190,
8924,
33,
394,
7110,
8924,
5621,
9506,
202,
759,
5568,
628,
13586,
202,
202,
8658,
852,
273,
394,
4317,
5621,
202,
202,
1458,
18,
458,
2932,
1355,
18,
8712,
3113,
2206,
8712,
19,
1355,
12890,
8863,
202,
202,
6105,
8924,
18,
542,
3092,
1265,
9459,
12,
1458,
16,
7110,
8924,
559,
18,
588,
559,
12,
626,
3896,
3187,
2918,
18,
16444,
55,
67,
46,
5856,
2203,
1457,
6502,
67,
21418,
67,
7927,
10019,
202,
202,
8213,
1115,
18,
11231,
5510,
12,
2190,
8924,
18,
24805,
2932,
1355,
18,
8712,
20387,
14963,
2932,
19,
8712,
19,
1355,
12890,
7923,
1769,
9506,
202,
6494,
324,
28774,
33,
5743,
31,
202,
202,
698,
95,
1082,
202,
6105,
8924,
18,
542,
3092,
1265,
9459,
2932,
70,
28774,
18,
4468,
3113,
23453,
7110,
8924,
559,
18,
588,
559,
12,
626,
3896,
3187,
2918,
18,
16444,
55,
67,
46,
5856,
2203,
1457,
6502,
67,
21418,
67,
7927,
10019,
1082,
202,
70,
28774,
33,
3767,
31,
368,
13139,
82,
1404,
9287,
333,
980,
202,
202,
97,
14683,
12,
503,
425,
13,
2916,
202,
202,
8213,
1115,
18,
11231,
5510,
12,
5,
70,
28774,
1769,
9506,
202,
6105,
8924,
18,
542,
3092,
1265,
9459,
2932,
70,
28774,
18,
4468,
3113,
315,
70,
28774,
67,
1132,
3113,
7110,
8924,
559,
18,
588,
559,
12,
626,
3896,
3187,
2918,
18,
16444,
55,
67,
46,
5856,
2203,
1457,
6502,
67,
21418,
67,
7927,
10019,
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,
1301,
1435,
1216,
1185,
288,
9506,
202,
3092,
8924,
2190,
8924,
33,
394,
7110,
8924,
5621,
9506,
202,
759,
5568,
628,
13586,
202,
202,
8658,
852,
273,
394,
4317,
5621,
202,
202,
1458,
18,
458,
2932,
1355,
18,
8712,
3113,
2206,
8712,
19,
1355,
12890,
8863,
202,
202,
6105,
8924,
18,
542,
3092,
1265,
9459,
12,
1458,
16,
7110,
8924,
559,
18,
588,
559,
12,
626,
3896,
3187,
2918,
18,
16444,
55,
67,
46,
5856,
2203,
1457,
6502,
67,
21418,
67,
7927,
10019,
202,
202,
8213,
1115,
18,
11231,
5510,
12,
2190,
8924,
18,
24805,
2932,
1355,
18,
8712,
20387,
14963,
2932,
19,
8712,
19,
1355,
12890,
7923,
1769,
9506,
202,
6494,
324,
28774,
33,
2
] |
Iterator i = parse( "A anA; int x = c; class A {}; A * anotherA = &anA; int b;", false ).getDeclarations(); | Iterator i = parse( "A anA; int x = c; class A {}; A * anotherA = &anA; int b;", false ).getDeclarations(); | public void testErrorHandling_1() throws Exception { Iterator i = parse( "A anA; int x = c; class A {}; A * anotherA = &anA; int b;", false ).getDeclarations(); IASTVariable x = (IASTVariable)i.next(); assertEquals( x.getName(), "x"); IASTClassSpecifier A = (IASTClassSpecifier)((IASTAbstractTypeSpecifierDeclaration)i.next()).getTypeSpecifier(); assertEquals( A.getName(), "A"); IASTVariable anotherA = (IASTVariable)i.next(); assertEquals( anotherA.getName(), "b"); assertFalse(i.hasNext()); // should be true } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/3a6ffef8f855652606f74a14d4b15478c81e5db4/CompleteParseASTTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
668,
14701,
67,
21,
1435,
1216,
1185,
202,
95,
202,
202,
3198,
277,
273,
1109,
12,
315,
37,
392,
37,
31,
509,
619,
273,
276,
31,
667,
432,
2618,
31,
432,
380,
4042,
37,
273,
473,
304,
37,
31,
509,
324,
31,
3113,
629,
262,
18,
588,
21408,
5621,
202,
202,
45,
9053,
3092,
619,
273,
261,
45,
9053,
3092,
13,
77,
18,
4285,
5621,
202,
202,
11231,
8867,
12,
619,
18,
17994,
9334,
315,
92,
8863,
202,
202,
45,
9053,
797,
21416,
432,
273,
261,
45,
9053,
797,
21416,
13,
12443,
45,
9053,
7469,
559,
21416,
6094,
13,
77,
18,
4285,
1435,
2934,
588,
559,
21416,
5621,
202,
202,
11231,
8867,
12,
432,
18,
17994,
9334,
315,
37,
8863,
202,
202,
45,
9053,
3092,
4042,
37,
273,
261,
45,
9053,
3092,
13,
77,
18,
4285,
5621,
202,
202,
11231,
8867,
12,
4042,
37,
18,
17994,
9334,
315,
70,
8863,
202,
202,
11231,
8381,
12,
77,
18,
5332,
2134,
10663,
368,
1410,
506,
638,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
668,
14701,
67,
21,
1435,
1216,
1185,
202,
95,
202,
202,
3198,
277,
273,
1109,
12,
315,
37,
392,
37,
31,
509,
619,
273,
276,
31,
667,
432,
2618,
31,
432,
380,
4042,
37,
273,
473,
304,
37,
31,
509,
324,
31,
3113,
629,
262,
18,
588,
21408,
5621,
202,
202,
45,
9053,
3092,
619,
273,
261,
45,
9053,
3092,
13,
77,
18,
4285,
5621,
202,
202,
11231,
8867,
12,
619,
18,
17994,
9334,
315,
92,
8863,
202,
202,
45,
9053,
797,
21416,
432,
273,
261,
45,
9053,
797,
21416,
13,
12443,
45,
9053,
7469,
559,
21416,
6094,
13,
77,
18,
4285,
1435,
2934,
588,
559,
21416,
5621,
202,
202,
11231,
8867,
12,
432,
2
] |
if(!WellFormednessUtils.isWellFormed(expression)){ | if(!(expression.getROperand() != null)){ | public void visitBinaryExpression(@NotNull PsiBinaryExpression expression){ super.visitBinaryExpression(expression); if(!WellFormednessUtils.isWellFormed(expression)){ return; } if(!ComparisonUtils.isEqualityComparison(expression)){ return; } final PsiType expressionType = expression.getType(); if(expressionType == null){ return; } final PsiExpression rhs = expression.getROperand(); final PsiExpression strippedRhs = stripExpression(rhs); if(strippedRhs == null){ return; } final PsiExpression lhs = expression.getLOperand(); final PsiExpression strippedLhs = stripExpression(lhs); if(strippedLhs == null){ return; } if(isConstantMask(strippedLhs) && PsiUtil.isConstantExpression(strippedRhs)){ if(isIncompatibleMask((PsiBinaryExpression) strippedLhs, strippedRhs)){ registerError(expression); } } else if(isConstantMask(strippedRhs) && PsiUtil.isConstantExpression(strippedLhs)){ if(isIncompatibleMask((PsiBinaryExpression) strippedRhs, strippedLhs)){ registerError(expression); } } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/10dfc0821a579a6a0ff949a64d378572f57a4625/IncompatibleMaskInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/bitwise/IncompatibleMaskInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
5905,
2300,
26964,
5962,
453,
7722,
5905,
2300,
2652,
15329,
5411,
2240,
18,
11658,
5905,
2300,
12,
8692,
1769,
5411,
309,
12,
5,
12,
8692,
18,
588,
1457,
457,
464,
1435,
480,
446,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
309,
12,
5,
16059,
1989,
18,
291,
20273,
16059,
12,
8692,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
2652,
559,
273,
2652,
18,
588,
559,
5621,
5411,
309,
12,
8692,
559,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
7711,
273,
2652,
18,
588,
1457,
457,
464,
5621,
5411,
727,
453,
7722,
2300,
13300,
54,
4487,
273,
2569,
2300,
12,
86,
4487,
1769,
5411,
309,
12,
6406,
1845,
54,
4487,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
8499,
273,
2652,
18,
588,
1502,
457,
464,
5621,
5411,
727,
453,
7722,
2300,
13300,
48,
4487,
273,
2569,
2300,
12,
80,
4487,
1769,
5411,
309,
12,
6406,
1845,
48,
4487,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
309,
12,
291,
6902,
5796,
12,
6406,
1845,
48,
4487,
13,
597,
15604,
453,
7722,
1304,
18,
291,
6902,
2300,
12,
6406,
1845,
54,
4487,
3719,
95,
7734,
309,
12,
291,
24272,
5796,
12443,
52,
7722,
5905,
2300,
13,
13300,
48,
4487,
16,
4766,
1377,
13300,
54,
4487,
3719,
95,
10792,
1744,
668,
12,
8692,
1769,
7734,
289,
5411,
289,
469,
309,
12,
291,
6902,
5796,
12,
6406,
1845,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
5905,
2300,
26964,
5962,
453,
7722,
5905,
2300,
2652,
15329,
5411,
2240,
18,
11658,
5905,
2300,
12,
8692,
1769,
5411,
309,
12,
5,
12,
8692,
18,
588,
1457,
457,
464,
1435,
480,
446,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
309,
12,
5,
16059,
1989,
18,
291,
20273,
16059,
12,
8692,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
2652,
559,
273,
2652,
18,
588,
559,
5621,
5411,
309,
12,
8692,
559,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
7711,
273,
2652,
18,
588,
1457,
457,
464,
5621,
5411,
727,
453,
7722,
2300,
13300,
54,
4487,
273,
2569,
2300,
12,
86,
4487,
1769,
5411,
2
] |
stub._put(WSSHandlerConstants.INFLOW_SECURITY, inflowConfig.getProperty()); | stub._getClientOptions().setProperty(WSSHandlerConstants.INFLOW_SECURITY, inflowConfig.getProperty()); | public void invokeWithGivenConfig(String clientRepo, String url, OutflowConfiguration outflowConfig, InflowConfiguration inflowConfig) throws Exception { TicketType ticket = TicketType.Factory.newInstance(); ticket.setId("My ticket Id"); Ping ping = Ping.Factory.newInstance(); ping.setText("Testing axis2-wss4j module"); ping.setTicket(ticket); PingDocument pingDoc = PingDocument.Factory.newInstance(); pingDoc.setPing(ping); PingPortStub stub = new PingPortStub(clientRepo,url); //Enable MTOM to those scenarios where they are configured using: //<optimizeParts>xpathExpression</optimizeParts> stub._put(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); //Engage the security module stub.engageModule("security"); if(outflowConfig !=null){ stub._put(WSSHandlerConstants.OUTFLOW_SECURITY, outflowConfig.getProperty()); } if(inflowConfig != null) { stub._put(WSSHandlerConstants.INFLOW_SECURITY, inflowConfig.getProperty()); } PingResponseDocument pingResDoc = stub.Ping(pingDoc); PingResponse pingRes = pingResDoc.getPingResponse(); System.out.println(pingRes.getText()); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/e2e08d1472bc0bded7bc6bf6d30dcb53fa25bf5e/InteropScenarioClient.java/buggy/modules/security/interop/org/apache/axis2/security/InteropScenarioClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4356,
1190,
6083,
809,
12,
780,
1004,
8791,
16,
514,
880,
16,
2976,
2426,
1750,
596,
2426,
809,
16,
657,
2426,
1750,
316,
2426,
809,
13,
1216,
1185,
288,
3639,
22023,
559,
9322,
273,
22023,
559,
18,
1733,
18,
2704,
1442,
5621,
3639,
9322,
18,
542,
548,
2932,
12062,
9322,
3124,
8863,
3639,
18214,
10087,
273,
18214,
18,
1733,
18,
2704,
1442,
5621,
3639,
10087,
18,
542,
1528,
2932,
22218,
2654,
22,
17,
91,
1049,
24,
78,
1605,
8863,
3639,
10087,
18,
542,
13614,
12,
16282,
1769,
3639,
18214,
2519,
10087,
1759,
273,
18214,
2519,
18,
1733,
18,
2704,
1442,
5621,
3639,
10087,
1759,
18,
542,
17223,
12,
1382,
1769,
3639,
18214,
2617,
11974,
7168,
273,
394,
18214,
2617,
11974,
12,
2625,
8791,
16,
718,
1769,
3639,
368,
8317,
22068,
1872,
358,
5348,
22456,
1625,
2898,
854,
4351,
1450,
30,
3639,
368,
32,
29155,
4305,
34,
18644,
2300,
1757,
29155,
4305,
34,
3639,
7168,
6315,
458,
12,
2918,
18,
1750,
18,
29377,
67,
6152,
1872,
16,
5245,
18,
4051,
67,
18724,
1769,
7734,
368,
28429,
410,
326,
4373,
1605,
3639,
7168,
18,
24688,
410,
3120,
2932,
7462,
8863,
7734,
309,
12,
659,
2426,
809,
480,
2011,
15329,
540,
202,
12847,
6315,
458,
12,
59,
1260,
1503,
2918,
18,
5069,
17430,
67,
29209,
16,
596,
2426,
809,
18,
588,
1396,
10663,
3639,
289,
3639,
309,
12,
267,
2426,
809,
480,
446,
13,
288,
540,
202,
12847,
6315,
588,
1227,
1320,
7675,
542,
1396,
12,
59,
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,
4356,
1190,
6083,
809,
12,
780,
1004,
8791,
16,
514,
880,
16,
2976,
2426,
1750,
596,
2426,
809,
16,
657,
2426,
1750,
316,
2426,
809,
13,
1216,
1185,
288,
3639,
22023,
559,
9322,
273,
22023,
559,
18,
1733,
18,
2704,
1442,
5621,
3639,
9322,
18,
542,
548,
2932,
12062,
9322,
3124,
8863,
3639,
18214,
10087,
273,
18214,
18,
1733,
18,
2704,
1442,
5621,
3639,
10087,
18,
542,
1528,
2932,
22218,
2654,
22,
17,
91,
1049,
24,
78,
1605,
8863,
3639,
10087,
18,
542,
13614,
12,
16282,
1769,
3639,
18214,
2519,
10087,
1759,
273,
18214,
2519,
18,
1733,
18,
2704,
1442,
5621,
3639,
10087,
1759,
18,
542,
17223,
12,
1382,
1769,
3639,
18214,
2617,
11974,
7168,
273,
2
] |
public static final JobEntryLoader getInstance() | public static final JobEntryLoader getInstance(String pluginDirectory[]) | public static final JobEntryLoader getInstance() { if (jobEntryLoader!=null) return jobEntryLoader; jobEntryLoader = new JobEntryLoader( new String[] { Const.PLUGIN_JOBENTRIES_DIRECTORY_PUBLIC, Const.PLUGIN_JOBENTRIES_DIRECTORY_PRIVATE } ); return jobEntryLoader; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/90d1bb3006f4994f15681525054baace2e7e4d8b/JobEntryLoader.java/buggy/kettle/src/be/ibridge/kettle/job/JobEntryLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
3956,
1622,
2886,
3694,
1435,
202,
95,
202,
202,
430,
261,
4688,
1622,
2886,
5,
33,
2011,
13,
327,
1719,
1622,
2886,
31,
9506,
202,
4688,
1622,
2886,
273,
394,
3956,
1622,
2886,
12,
394,
514,
8526,
288,
9333,
18,
19415,
67,
18321,
2222,
2259,
3991,
67,
17229,
67,
14939,
16,
9333,
18,
19415,
67,
18321,
2222,
2259,
3991,
67,
17229,
67,
20055,
289,
11272,
9506,
202,
2463,
1719,
1622,
2886,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
3956,
1622,
2886,
3694,
1435,
202,
95,
202,
202,
430,
261,
4688,
1622,
2886,
5,
33,
2011,
13,
327,
1719,
1622,
2886,
31,
9506,
202,
4688,
1622,
2886,
273,
394,
3956,
1622,
2886,
12,
394,
514,
8526,
288,
9333,
18,
19415,
67,
18321,
2222,
2259,
3991,
67,
17229,
67,
14939,
16,
9333,
18,
19415,
67,
18321,
2222,
2259,
3991,
67,
17229,
67,
20055,
289,
11272,
9506,
202,
2463,
1719,
1622,
2886,
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
] |
time += cal.get(Calendar.MILLISECOND) * 300 / 1000; | time += Math.round(cal.get(Calendar.MILLISECOND) * 300f / 1000); | private static void putDateTimeValue(RequestStream out, Object value) throws IOException { int daysSince1900; int time; if (value == null) { out.write((byte) 0); return; } synchronized (cal) { out.write((byte) 8); cal.setTime((java.util.Date) value); if (!Driver.JDBC3) { // Not Running under 1.4 so need to add milliseconds cal.set(Calendar.MILLISECOND, ((java.sql.Timestamp)value).getNanos() / 1000000); } if (value instanceof java.sql.Time) { daysSince1900 = 0; } else { daysSince1900 = calendarToSybase(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH)+1, cal.get(Calendar.DAY_OF_MONTH)); } time = cal.get(Calendar.HOUR_OF_DAY) * 1080000; time += cal.get(Calendar.MINUTE) * 18000; time += cal.get(Calendar.SECOND) * 300; if (value instanceof java.sql.Timestamp) { time += cal.get(Calendar.MILLISECOND) * 300 / 1000; } out.write((int) daysSince1900); out.write((int) time); } } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/934d3f73f62b99f71d8f48ffbb2d02bb406aa576/TdsData.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1378,
5096,
620,
12,
691,
1228,
596,
16,
1033,
460,
13,
565,
1216,
1860,
288,
3639,
509,
4681,
9673,
3657,
713,
31,
3639,
509,
813,
31,
3639,
309,
261,
1132,
422,
446,
13,
288,
5411,
596,
18,
2626,
12443,
7229,
13,
374,
1769,
5411,
327,
31,
3639,
289,
3639,
3852,
261,
771,
13,
288,
5411,
596,
18,
2626,
12443,
7229,
13,
1725,
1769,
5411,
1443,
18,
542,
950,
12443,
6290,
18,
1367,
18,
1626,
13,
460,
1769,
5411,
309,
16051,
4668,
18,
30499,
23,
13,
288,
7734,
368,
2288,
20480,
3613,
404,
18,
24,
1427,
1608,
358,
527,
10993,
7734,
1443,
18,
542,
12,
7335,
18,
25437,
16328,
16,
13491,
14015,
6290,
18,
4669,
18,
4921,
13,
1132,
2934,
588,
15739,
1435,
342,
15088,
1769,
5411,
289,
5411,
309,
261,
1132,
1276,
2252,
18,
4669,
18,
950,
13,
288,
7734,
4681,
9673,
3657,
713,
273,
374,
31,
5411,
289,
469,
288,
7734,
4681,
9673,
3657,
713,
273,
5686,
774,
10876,
1969,
12,
771,
18,
588,
12,
7335,
18,
15137,
3631,
4766,
1171,
1443,
18,
588,
12,
7335,
18,
13942,
27921,
21,
16,
4766,
1171,
1443,
18,
588,
12,
7335,
18,
10339,
67,
3932,
67,
13942,
10019,
5411,
289,
5411,
813,
225,
273,
1443,
18,
588,
12,
7335,
18,
21372,
67,
3932,
67,
10339,
13,
380,
23515,
2787,
31,
5411,
813,
1011,
1443,
18,
588,
12,
7335,
18,
30090,
13,
380,
6549,
3784,
31,
5411,
813,
1011,
1443,
18,
588,
12,
7335,
18,
16328,
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,
918,
1378,
5096,
620,
12,
691,
1228,
596,
16,
1033,
460,
13,
565,
1216,
1860,
288,
3639,
509,
4681,
9673,
3657,
713,
31,
3639,
509,
813,
31,
3639,
309,
261,
1132,
422,
446,
13,
288,
5411,
596,
18,
2626,
12443,
7229,
13,
374,
1769,
5411,
327,
31,
3639,
289,
3639,
3852,
261,
771,
13,
288,
5411,
596,
18,
2626,
12443,
7229,
13,
1725,
1769,
5411,
1443,
18,
542,
950,
12443,
6290,
18,
1367,
18,
1626,
13,
460,
1769,
5411,
309,
16051,
4668,
18,
30499,
23,
13,
288,
7734,
368,
2288,
20480,
3613,
404,
18,
24,
1427,
1608,
358,
527,
10993,
7734,
1443,
18,
542,
12,
7335,
18,
25437,
16328,
16,
13491,
14015,
6290,
18,
4669,
18,
2
] |
public static void resolve(final SReference reference){ if (reference instanceof ExternalReference) return; CommandProcessor.instance().executeCommand(new Runnable() { public void run() { String role = reference.getRole(); SNode sourceNode = reference.getSourceNode(); SModel model = sourceNode.getModel(); String packageName = sourceNode.getClass().getPackage().getName(); Class cls = sourceNode.getClass(); SNode oldTarget = reference.getTargetNode(); //reference.setBad(); while (cls != SNode.class) { try { String className = cls.getName(); className = className.substring(className.lastIndexOf('.') + 1); //if method exists but can't resolve we'll mark our reference as a bad one Class resolveClass = Class.forName(packageName+".resolve.Resolver", true, ClassLoaderManager.getInstance().getClassLoader()); Method m = resolveClass.getMethod("resolveForRole"+role+"In"+className, SReference.class, Class.class); // model.setLoading(true); boolean success = (Boolean)m.invoke(null, reference, cls); // model.setLoading(false); if (success) { sourceNode.removeReference(reference); /* reference.setGood(); reference.setResolveInfo(null); reference.setTargetClassResolveInfo((String)null);*/ } else { reference.setBad(); } return; } catch (NullPointerException e) { // model.setLoading(false); return; } catch (Exception e) { // model.setLoading(false); } cls = cls.getSuperclass(); } reference.setGood(); reference.setResolveInfo(null); } } , "resolve" ); } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/7e92e11639cb34b47146f9c91e74e4a0dea2eb0c/Resolver.java/buggy/source/jetbrains/mps/resolve/Resolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2245,
12,
6385,
348,
2404,
2114,
15329,
565,
309,
261,
6180,
1276,
11352,
2404,
13,
327,
31,
565,
3498,
5164,
18,
1336,
7675,
8837,
2189,
12,
2704,
10254,
1435,
288,
1377,
1071,
918,
1086,
1435,
288,
3639,
514,
2478,
225,
273,
2114,
18,
588,
2996,
5621,
3639,
348,
907,
26799,
273,
2114,
18,
588,
1830,
907,
5621,
3639,
348,
1488,
938,
273,
26799,
18,
588,
1488,
5621,
3639,
514,
9929,
273,
26799,
18,
588,
797,
7675,
588,
2261,
7675,
17994,
5621,
3639,
1659,
2028,
273,
26799,
18,
588,
797,
5621,
3639,
348,
907,
1592,
2326,
273,
2114,
18,
588,
2326,
907,
5621,
3639,
368,
6180,
18,
542,
6434,
5621,
3639,
1323,
261,
6429,
480,
348,
907,
18,
1106,
13,
288,
1850,
775,
288,
5411,
514,
2658,
273,
2028,
18,
17994,
5621,
5411,
2658,
273,
2658,
18,
28023,
12,
12434,
18,
2722,
31985,
2668,
1093,
13,
397,
404,
1769,
5411,
368,
430,
707,
1704,
1496,
848,
1404,
2245,
732,
5614,
2267,
3134,
2114,
487,
279,
5570,
1245,
5411,
1659,
2245,
797,
273,
1659,
18,
1884,
461,
12,
5610,
461,
9078,
18,
10828,
18,
4301,
3113,
638,
16,
9403,
1318,
18,
588,
1442,
7675,
588,
7805,
10663,
5411,
2985,
312,
273,
2245,
797,
18,
588,
1305,
2932,
10828,
1290,
2996,
6,
15,
4615,
9078,
382,
6,
15,
12434,
16,
348,
2404,
18,
1106,
16,
1659,
18,
1106,
1769,
5411,
368,
938,
18,
542,
10515,
12,
3767,
1769,
5411,
1250,
2216,
273,
261,
5507,
13,
81,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2245,
12,
6385,
348,
2404,
2114,
15329,
565,
309,
261,
6180,
1276,
11352,
2404,
13,
327,
31,
565,
3498,
5164,
18,
1336,
7675,
8837,
2189,
12,
2704,
10254,
1435,
288,
1377,
1071,
918,
1086,
1435,
288,
3639,
514,
2478,
225,
273,
2114,
18,
588,
2996,
5621,
3639,
348,
907,
26799,
273,
2114,
18,
588,
1830,
907,
5621,
3639,
348,
1488,
938,
273,
26799,
18,
588,
1488,
5621,
3639,
514,
9929,
273,
26799,
18,
588,
797,
7675,
588,
2261,
7675,
17994,
5621,
3639,
1659,
2028,
273,
26799,
18,
588,
797,
5621,
3639,
348,
907,
1592,
2326,
273,
2114,
18,
588,
2326,
907,
5621,
3639,
368,
6180,
18,
542,
6434,
5621,
3639,
1323,
261,
6429,
480,
348,
2
] |
||
throw (Throwable)t; | throw (Throwable) t; | public PyObject _jcallexc(Object[] args) throws Throwable { PyObject[] pargs = new PyObject[args.length]; try { int n = args.length; for (int i=0; i<n; i++) pargs[i] = Py.java2py(args[i]); return __call__(pargs); } catch (PyException e) { if (e.value instanceof PyJavaInstance) { Object t = e.value.__tojava__(Throwable.class); if (t != null && t != Py.NoConversion) { throw (Throwable)t; } } else { ThreadState ts = Py.getThreadState(); if (ts.frame == null) { Py.maybeSystemExit(e); } if (Options.showPythonProxyExceptions) { Py.stderr.println( "Exception in Python proxy returning to Java:"); Py.printException(e); } } throw e; } } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/f1a14fc2e5b8633379ef5db31fa9e36925099543/PyObject.java/clean/org/python/core/PyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4707,
921,
389,
78,
771,
4149,
71,
12,
921,
8526,
833,
13,
1216,
4206,
288,
3639,
4707,
921,
8526,
779,
564,
273,
394,
4707,
921,
63,
1968,
18,
2469,
15533,
3639,
775,
288,
5411,
509,
290,
273,
833,
18,
2469,
31,
5411,
364,
261,
474,
277,
33,
20,
31,
277,
32,
82,
31,
277,
27245,
7734,
779,
564,
63,
77,
65,
273,
4707,
18,
6290,
22,
2074,
12,
1968,
63,
77,
19226,
5411,
327,
1001,
1991,
972,
12,
1065,
564,
1769,
3639,
289,
1044,
261,
9413,
503,
425,
13,
288,
5411,
309,
261,
73,
18,
1132,
1276,
4707,
5852,
1442,
13,
288,
7734,
1033,
268,
273,
425,
18,
1132,
16186,
869,
6290,
972,
12,
15155,
18,
1106,
1769,
7734,
309,
261,
88,
480,
446,
597,
268,
480,
4707,
18,
2279,
6814,
13,
288,
10792,
604,
261,
15155,
13,
268,
31,
7734,
289,
5411,
289,
469,
288,
7734,
4884,
1119,
3742,
273,
4707,
18,
588,
3830,
1119,
5621,
7734,
309,
261,
3428,
18,
3789,
422,
446,
13,
288,
10792,
4707,
18,
19133,
22729,
12,
73,
1769,
7734,
289,
7734,
309,
261,
1320,
18,
4500,
15774,
3886,
11416,
13,
288,
10792,
4707,
18,
11241,
18,
8222,
12,
13491,
315,
503,
316,
6600,
2889,
5785,
358,
5110,
2773,
1769,
10792,
4707,
18,
1188,
503,
12,
73,
1769,
7734,
289,
5411,
289,
5411,
604,
425,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4707,
921,
389,
78,
771,
4149,
71,
12,
921,
8526,
833,
13,
1216,
4206,
288,
3639,
4707,
921,
8526,
779,
564,
273,
394,
4707,
921,
63,
1968,
18,
2469,
15533,
3639,
775,
288,
5411,
509,
290,
273,
833,
18,
2469,
31,
5411,
364,
261,
474,
277,
33,
20,
31,
277,
32,
82,
31,
277,
27245,
7734,
779,
564,
63,
77,
65,
273,
4707,
18,
6290,
22,
2074,
12,
1968,
63,
77,
19226,
5411,
327,
1001,
1991,
972,
12,
1065,
564,
1769,
3639,
289,
1044,
261,
9413,
503,
425,
13,
288,
5411,
309,
261,
73,
18,
1132,
1276,
4707,
5852,
1442,
13,
288,
7734,
1033,
268,
273,
425,
18,
1132,
16186,
869,
6290,
972,
12,
15155,
18,
1106,
2
] |
public boolean eIsSet( EStructuralFeature eFeature ) | public boolean eIsSet( int featureID ) | public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case ModelPackage.DIAL_CHART__VERSION : return isSetVersion( ); case ModelPackage.DIAL_CHART__TYPE : return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals( type ); case ModelPackage.DIAL_CHART__SUB_TYPE : return SUB_TYPE_EDEFAULT == null ? subType != null : !SUB_TYPE_EDEFAULT.equals( subType ); case ModelPackage.DIAL_CHART__DESCRIPTION : return description != null; case ModelPackage.DIAL_CHART__BLOCK : return block != null; case ModelPackage.DIAL_CHART__DIMENSION : return isSetDimension( ); case ModelPackage.DIAL_CHART__SCRIPT : return SCRIPT_EDEFAULT == null ? script != null : !SCRIPT_EDEFAULT.equals( script ); case ModelPackage.DIAL_CHART__UNITS : return UNITS_EDEFAULT == null ? units != null : !UNITS_EDEFAULT.equals( units ); case ModelPackage.DIAL_CHART__SERIES_THICKNESS : return isSetSeriesThickness( ); case ModelPackage.DIAL_CHART__GRID_COLUMN_COUNT : return isSetGridColumnCount( ); case ModelPackage.DIAL_CHART__EXTENDED_PROPERTIES : return extendedProperties != null && !extendedProperties.isEmpty( ); case ModelPackage.DIAL_CHART__SAMPLE_DATA : return sampleData != null; case ModelPackage.DIAL_CHART__STYLES : return styles != null && !styles.isEmpty( ); case ModelPackage.DIAL_CHART__INTERACTIVITY : return interactivity != null; case ModelPackage.DIAL_CHART__SERIES_DEFINITIONS : return seriesDefinitions != null && !seriesDefinitions.isEmpty( ); case ModelPackage.DIAL_CHART__MIN_SLICE : return isSetMinSlice( ); case ModelPackage.DIAL_CHART__MIN_SLICE_PERCENT : return isSetMinSlicePercent( ); case ModelPackage.DIAL_CHART__MIN_SLICE_LABEL : return MIN_SLICE_LABEL_EDEFAULT == null ? minSliceLabel != null : !MIN_SLICE_LABEL_EDEFAULT.equals( minSliceLabel ); case ModelPackage.DIAL_CHART__DIAL_SUPERIMPOSITION : return isSetDialSuperimposition( ); } return eDynamicIsSet( eFeature ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/DialChartImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/DialChartImpl.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,
3164,
2261,
18,
2565,
1013,
67,
1792,
4928,
972,
5757,
294,
9506,
202,
2463,
13532,
1444,
12,
11272,
1082,
202,
3593,
3164,
2261,
18,
2565,
1013,
67,
1792,
4928,
972,
2399,
294,
9506,
202,
2463,
3463,
67,
11236,
422,
446,
692,
618,
480,
446,
25083,
202,
30,
401,
2399,
67,
11236,
18,
14963,
12,
618,
11272,
1082,
202,
3593,
3164,
2261,
18,
2565,
1013,
67,
1792,
4928,
972,
8362,
67,
2399,
294,
9506,
202,
2463,
10025,
67,
2399,
67,
11236,
422,
446,
692,
27084,
480,
446,
25083,
202,
30,
401,
8362,
67,
2399,
67,
11236,
18,
14963,
12,
27084,
11272,
1082,
202,
3593,
3164,
2261,
18,
2565,
1013,
67,
1792,
4928,
972,
15911,
294,
9506,
202,
2463,
2477,
480,
446,
31,
1082,
202,
3593,
3164,
2261,
18,
2565,
1013,
67,
1792,
4928,
972,
11403,
294,
9506,
202,
2463,
1203,
480,
446,
31,
1082,
202,
3593,
3164,
2261,
18,
2565,
1013,
67,
1792,
4928,
972,
2565,
958,
3156,
1146,
294,
9506,
202,
2463,
13532,
8611,
12,
11272,
1082,
202,
3593,
3164,
2261,
18,
2565,
1013,
67,
1792,
4928,
972,
10885,
294,
9506,
202,
2463,
22812,
67,
11236,
422,
446,
692,
2728,
480,
446,
25083,
202,
30,
401,
10885,
67,
11236,
18,
14963,
12,
2728,
11272,
1082,
202,
3593,
3164,
2261,
18,
2565,
1013,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
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,
3164,
2261,
18,
2565,
1013,
67,
1792,
4928,
972,
5757,
294,
9506,
202,
2463,
13532,
1444,
12,
11272,
1082,
202,
3593,
3164,
2261,
18,
2565,
1013,
67,
1792,
4928,
972,
2399,
294,
9506,
202,
2463,
3463,
67,
11236,
422,
446,
692,
618,
480,
446,
25083,
202,
30,
401,
2399,
67,
11236,
18,
14963,
12,
618,
11272,
1082,
202,
3593,
3164,
2261,
18,
2565,
1013,
67,
1792,
4928,
972,
8362,
67,
2399,
294,
9506,
202,
2463,
10025,
67,
2399,
67,
11236,
422,
446,
692,
27084,
480,
2
] |
assertNull( sink ); | assertNotNull( sink ); | public void testAttach() throws Exception { final MockObjectSource source = new MockObjectSource( 15 ); final LeftInputAdapterNode liaNode = new LeftInputAdapterNode( 1, source ); final Field field = ObjectSource.class.getDeclaredField( "sink" ); field.setAccessible( true ); ObjectSinkPropagator sink = (ObjectSinkPropagator) field.get( source ); assertEquals( 1, liaNode.getId() ); assertNull( sink ); liaNode.attach(); sink = (ObjectSinkPropagator) field.get( source ); assertEquals( 1, sink.getSinks().length ); assertSame( liaNode, sink.getSinks()[0] ); } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/bb3b37a32ee8885caf989363d622839eccaf39d1/LeftInputAdapterNodeTest.java/buggy/drools-core/src/test/java/org/drools/reteoo/LeftInputAdapterNodeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4761,
1435,
1216,
1185,
288,
3639,
727,
7867,
921,
1830,
1084,
273,
394,
7867,
921,
1830,
12,
4711,
11272,
3639,
727,
13338,
1210,
4216,
907,
328,
1155,
907,
273,
394,
13338,
1210,
4216,
907,
12,
404,
16,
28524,
4202,
1084,
11272,
3639,
727,
2286,
652,
273,
1033,
1830,
18,
1106,
18,
588,
18888,
974,
12,
315,
17074,
6,
11272,
3639,
652,
18,
542,
10451,
12,
638,
11272,
3639,
1033,
11326,
11953,
639,
9049,
273,
261,
921,
11326,
11953,
639,
13,
652,
18,
588,
12,
1084,
11272,
3639,
1815,
8867,
12,
404,
16,
8227,
328,
1155,
907,
18,
26321,
1435,
11272,
3639,
25395,
12,
9049,
11272,
3639,
328,
1155,
907,
18,
7331,
5621,
3639,
9049,
273,
261,
921,
11326,
11953,
639,
13,
652,
18,
588,
12,
1084,
11272,
3639,
1815,
8867,
12,
404,
16,
8227,
9049,
18,
588,
11326,
87,
7675,
2469,
11272,
3639,
1815,
8650,
12,
328,
1155,
907,
16,
10792,
9049,
18,
588,
11326,
87,
1435,
63,
20,
65,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
918,
1842,
4761,
1435,
1216,
1185,
288,
3639,
727,
7867,
921,
1830,
1084,
273,
394,
7867,
921,
1830,
12,
4711,
11272,
3639,
727,
13338,
1210,
4216,
907,
328,
1155,
907,
273,
394,
13338,
1210,
4216,
907,
12,
404,
16,
28524,
4202,
1084,
11272,
3639,
727,
2286,
652,
273,
1033,
1830,
18,
1106,
18,
588,
18888,
974,
12,
315,
17074,
6,
11272,
3639,
652,
18,
542,
10451,
12,
638,
11272,
3639,
1033,
11326,
11953,
639,
9049,
273,
261,
921,
11326,
11953,
639,
13,
652,
18,
588,
12,
1084,
11272,
3639,
1815,
8867,
12,
404,
16,
8227,
328,
1155,
907,
18,
26321,
1435,
11272,
3639,
25395,
12,
9049,
11272,
3639,
328,
1155,
907,
18,
7331,
5621,
3639,
9049,
273,
2
] |
public void write_octet_array(byte[] value, int offset, int length) { | public void write_octet_array(byte[] value, int offset, int length) { | public void write_octet_array(byte[] value, int offset, int length) { write_align(1, length); System.arraycopy(value, offset, _buffer, _offset, length); _offset += length; } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/CdrOutputStream.java/buggy/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/CdrOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
67,
17909,
67,
1126,
12,
7229,
8526,
460,
16,
509,
1384,
16,
509,
769,
13,
288,
3639,
1045,
67,
7989,
12,
21,
16,
769,
1769,
3639,
2332,
18,
1126,
3530,
12,
1132,
16,
1384,
16,
389,
4106,
16,
389,
3348,
16,
769,
1769,
3639,
389,
3348,
1011,
769,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
67,
17909,
67,
1126,
12,
7229,
8526,
460,
16,
509,
1384,
16,
509,
769,
13,
288,
3639,
1045,
67,
7989,
12,
21,
16,
769,
1769,
3639,
2332,
18,
1126,
3530,
12,
1132,
16,
1384,
16,
389,
4106,
16,
389,
3348,
16,
769,
1769,
3639,
389,
3348,
1011,
769,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Dimension d = getImageBounds(base).getSize(); d.width *= scale; d.height *= scale; | MediaTracker tracker = new MediaTracker(this); if(base.getWidth(null) == -1 || base.getHeight(null) == -1) { tracker.addImage(base,0); try { tracker.waitForID(0); } catch (InterruptedException e) { e.printStackTrace(); } tracker.removeImage(base); } int width = (int)(base.getWidth( null ) * scale); int height = (int)(base.getHeight( null ) * scale); | private Image getScaledImage(Image base) { if (base == null) { return null; } if ( zoomIndex == BASE_ZOOM_INDEX ) { return base; } Image scaled = scaledImageCache.get(base); if (scaled == null) { Dimension d = getImageBounds(base).getSize(); d.width *= scale; d.height *= scale; // This causes errors. // I don't know why. // Happens with zoomed main maps, and seems to relate to morphing terrain and roads //FIXME if ((d.width != 0) && (d.height != 0)) scaled = scale(base, d.width, d.height); else scaled = base; MediaTracker tracker = new MediaTracker(this); tracker.addImage( scaled, 1 ); // Wait for image to load try{ tracker.waitForID( 1 ); } catch (InterruptedException e) { e.printStackTrace(); } tracker.removeImage(scaled); scaledImageCache.put(base, scaled); } return scaled; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/05380d6b223ff7ae7763b7dc01ea128a53f559a2/BoardView1.java/buggy/megamek/src/megamek/client/ui/AWT/BoardView1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3421,
1322,
12825,
2040,
12,
2040,
1026,
13,
288,
3639,
309,
261,
1969,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
7182,
1016,
422,
10250,
67,
62,
51,
1872,
67,
9199,
262,
288,
5411,
327,
1026,
31,
3639,
289,
7734,
3421,
12304,
273,
12304,
2040,
1649,
18,
588,
12,
1969,
1769,
3639,
309,
261,
20665,
422,
446,
13,
288,
5411,
13037,
302,
273,
10567,
5694,
12,
1969,
2934,
588,
1225,
5621,
5411,
302,
18,
2819,
6413,
3159,
31,
5411,
302,
18,
4210,
6413,
3159,
31,
5411,
368,
1220,
14119,
1334,
18,
5411,
368,
467,
2727,
1404,
5055,
11598,
18,
5411,
368,
670,
10345,
598,
7182,
329,
2774,
7565,
16,
471,
12001,
358,
1279,
340,
358,
14354,
310,
19272,
7596,
471,
721,
17318,
5411,
368,
25810,
5411,
309,
14015,
72,
18,
2819,
480,
374,
13,
597,
261,
72,
18,
4210,
480,
374,
3719,
7734,
12304,
273,
3159,
12,
1969,
16,
302,
18,
2819,
16,
302,
18,
4210,
1769,
5411,
469,
7734,
12304,
273,
1026,
31,
5411,
6128,
8135,
9745,
273,
394,
6128,
8135,
12,
2211,
1769,
5411,
9745,
18,
1289,
2040,
12,
12304,
16,
404,
11272,
5411,
368,
5838,
364,
1316,
358,
1262,
5411,
775,
95,
7734,
9745,
18,
7048,
1290,
734,
12,
404,
11272,
5411,
289,
1044,
261,
24485,
503,
425,
13,
288,
7734,
425,
18,
1188,
6332,
5621,
5411,
289,
5411,
9745,
18,
4479,
2040,
12,
20665,
1769,
12900,
12304,
2040,
1649,
18,
458,
12,
1969,
16,
12304,
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,
3238,
3421,
1322,
12825,
2040,
12,
2040,
1026,
13,
288,
3639,
309,
261,
1969,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
7182,
1016,
422,
10250,
67,
62,
51,
1872,
67,
9199,
262,
288,
5411,
327,
1026,
31,
3639,
289,
7734,
3421,
12304,
273,
12304,
2040,
1649,
18,
588,
12,
1969,
1769,
3639,
309,
261,
20665,
422,
446,
13,
288,
5411,
13037,
302,
273,
10567,
5694,
12,
1969,
2934,
588,
1225,
5621,
5411,
302,
18,
2819,
6413,
3159,
31,
5411,
302,
18,
4210,
6413,
3159,
31,
5411,
368,
1220,
14119,
1334,
18,
5411,
368,
467,
2727,
1404,
5055,
11598,
18,
5411,
368,
670,
10345,
598,
7182,
329,
2774,
7565,
16,
471,
12001,
358,
2
] |
initRecent(); | initRecent(); GUIUtilities.advanceProgress(); | public static void main(String[] args) { // Parse command line boolean endOpts = false; boolean readOnly = false; boolean reuseView = false; settingsDirectory = MiscUtilities.constructPath( System.getProperty("user.home"),".jedit"); String portFile = "server"; boolean defaultSession = true; session = "default"; boolean showSplash = true; for(int i = 0; i < args.length; i++) { String arg = args[i]; if(arg.startsWith("-") && !endOpts) { if(arg.equals("--")) endOpts = true; else if(arg.equals("-usage")) { version(); System.err.println(); usage(); System.exit(1); } else if(arg.equals("-version")) { version(); System.exit(1); } else if(arg.equals("-nosettings")) settingsDirectory = null; else if(arg.startsWith("-settings=")) settingsDirectory = arg.substring(10); else if(arg.startsWith("-noserver")) portFile = null; else if(arg.startsWith("-server=")) portFile = arg.substring(8); else if(arg.equals("-nosession")) session = null; else if(arg.startsWith("-session=")) { session = arg.substring(9); defaultSession = false; } else if(arg.equals("-nosplash")) showSplash = false; else if(arg.equals("-readonly")) readOnly = true; else if(arg.equals("-reuseview")) reuseView = true; else { System.err.println("Unknown option: " + arg); usage(); System.exit(1); } args[i] = null; } } if(settingsDirectory != null && portFile != null) portFile = MiscUtilities.constructPath(settingsDirectory,portFile); else portFile = null; if(session != null) session = Sessions.createSessionFileName(session); // Connect to server String userDir = System.getProperty("user.dir"); if(portFile != null && new File(portFile).exists()) { int port, key; try { BufferedReader in = new BufferedReader(new FileReader(portFile)); port = Integer.parseInt(in.readLine()); key = Integer.parseInt(in.readLine()); in.close(); Socket socket = new Socket(InetAddress.getLocalHost(),port); Writer out = new OutputStreamWriter(socket.getOutputStream()); out.write(String.valueOf(key)); out.write('\n'); if(!defaultSession && session != null) out.write("session=" + session + "\n"); if(readOnly) out.write("readonly\n"); if(reuseView) out.write("reuseview\n"); out.write("parent=" + userDir + "\n"); out.write("--\n"); for(int i = 0; i < args.length; i++) { if(args[i] != null) { out.write(args[i]); out.write('\n'); } } out.close(); System.exit(0); } catch(Exception e) { System.err.println("Error connecting to server:"); e.printStackTrace(); } } // GUIUtilities.static() adds a listener to our list, // so it must be available before GUIUtilities is first used listenerList = new EventListenerList(); // Show the kool splash screen if(showSplash) GUIUtilities.showSplashScreen(); // Get things rolling initMisc(); initSystemProperties(); initPlugins(); initUserProperties(); initActions(); initModes(); initPLAF(); initKeyBindings(); propertiesChanged(); initRecent(); if(settingsDirectory != null) { HistoryModel.loadHistory(MiscUtilities.constructPath( settingsDirectory,"history")); } SearchAndReplace.load(); // Start plugins JARClassLoader.initPlugins(); // Start server if(portFile != null) server = new EditServer(portFile); // Load files specified on the command line Buffer buffer = null; for(int i = 0; i < args.length; i++) { if(args[i] == null) continue; buffer = openFile(null,userDir,args[i],readOnly,false); } if(buffer == null) { if(defaultSession) { if("on".equals(getProperty("saveDesktop"))) buffer = Sessions.loadSession(session,true); } else buffer = Sessions.loadSession(session,false); } if(buffer == null) buffer = newFile(null); // Create the view and hide the splash screen. // Paranoid thread safety courtesy of Sun. final Buffer _buffer = buffer; SwingUtilities.invokeLater(new Runnable() { public void run() { newView(null,_buffer); GUIUtilities.hideSplashScreen(); } }); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/f069d2ff351bbe01259f5df8f7a594a981c218e6/jEdit.java/clean/org/gjt/sp/jedit/jEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
759,
2884,
1296,
980,
202,
202,
6494,
679,
5476,
273,
629,
31,
202,
202,
6494,
15075,
273,
629,
31,
202,
202,
6494,
11827,
1767,
273,
629,
31,
202,
202,
4272,
2853,
273,
16584,
71,
11864,
18,
10062,
743,
12,
1082,
202,
3163,
18,
588,
1396,
2932,
1355,
18,
8712,
6,
3631,
9654,
78,
4619,
8863,
202,
202,
780,
1756,
812,
273,
315,
3567,
14432,
202,
202,
6494,
805,
2157,
273,
638,
31,
202,
202,
3184,
273,
315,
1886,
14432,
202,
202,
6494,
2405,
16881,
961,
273,
638,
31,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
202,
202,
95,
1082,
202,
780,
1501,
273,
833,
63,
77,
15533,
1082,
202,
430,
12,
3175,
18,
17514,
1190,
2932,
17,
7923,
597,
401,
409,
5476,
13,
1082,
202,
95,
9506,
202,
430,
12,
3175,
18,
14963,
2932,
413,
6,
3719,
6862,
202,
409,
5476,
273,
638,
31,
9506,
202,
12107,
309,
12,
3175,
18,
14963,
2932,
17,
9167,
6,
3719,
9506,
202,
95,
6862,
202,
1589,
5621,
6862,
202,
3163,
18,
370,
18,
8222,
5621,
6862,
202,
9167,
5621,
6862,
202,
3163,
18,
8593,
12,
21,
1769,
9506,
202,
97,
9506,
202,
12107,
309,
12,
3175,
18,
14963,
2932,
17,
1589,
6,
3719,
9506,
202,
95,
6862,
202,
1589,
5621,
6862,
202,
3163,
18,
8593,
12,
21,
1769,
9506,
202,
97,
9506,
202,
12107,
309,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
759,
2884,
1296,
980,
202,
202,
6494,
679,
5476,
273,
629,
31,
202,
202,
6494,
15075,
273,
629,
31,
202,
202,
6494,
11827,
1767,
273,
629,
31,
202,
202,
4272,
2853,
273,
16584,
71,
11864,
18,
10062,
743,
12,
1082,
202,
3163,
18,
588,
1396,
2932,
1355,
18,
8712,
6,
3631,
9654,
78,
4619,
8863,
202,
202,
780,
1756,
812,
273,
315,
3567,
14432,
202,
202,
6494,
805,
2157,
273,
638,
31,
202,
202,
3184,
273,
315,
1886,
14432,
202,
202,
6494,
2405,
16881,
961,
273,
638,
31,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
2
] |
cookie.setMaxAge(validDays * 24 * 60 * 60); | cookie.setMaxAge(validHours * 60 * 60); | public static Cookie createCookie(final String cookieName, final String cookieValue, final int validDays) { /* Validate parameters. */ if (cookieName == null || cookieName.equals("")) { throw new IllegalArgumentException("cookieName must be a non-empty string."); } if (cookieValue == null || cookieValue.equals("")) { throw new IllegalArgumentException("cookieValue must be a non-empty string."); } if (validDays < 0) { throw new IllegalArgumentException("validDays must be a >= 0."); } Cookie cookie = new Cookie(cookieName, cookieValue); cookie.setMaxAge(validDays * 24 * 60 * 60); // Days to seconds cookie.setVersion(0); return cookie; } | 1637 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1637/ddac9d650f74ce3b6836f2052872fd989387bbdc/RequestUtil.java/clean/moria2/modules/moria-web/src/java/no/feide/moria/servlet/RequestUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
10201,
752,
6151,
12,
6385,
514,
25960,
16,
727,
514,
3878,
620,
16,
727,
509,
923,
9384,
13,
288,
3639,
1748,
3554,
1472,
18,
1195,
3639,
309,
261,
8417,
461,
422,
446,
747,
25960,
18,
14963,
2932,
6,
3719,
288,
5411,
604,
394,
2754,
2932,
8417,
461,
1297,
506,
279,
1661,
17,
5531,
533,
1199,
1769,
3639,
289,
3639,
309,
261,
8417,
620,
422,
446,
747,
3878,
620,
18,
14963,
2932,
6,
3719,
288,
5411,
604,
394,
2754,
2932,
8417,
620,
1297,
506,
279,
1661,
17,
5531,
533,
1199,
1769,
3639,
289,
3639,
309,
261,
877,
9384,
411,
374,
13,
288,
5411,
604,
394,
2754,
2932,
877,
9384,
1297,
506,
279,
1545,
374,
1199,
1769,
3639,
289,
3639,
10201,
3878,
273,
394,
10201,
12,
8417,
461,
16,
3878,
620,
1769,
3639,
3878,
18,
542,
2747,
9692,
12,
877,
14910,
380,
4752,
380,
4752,
1769,
368,
463,
8271,
358,
3974,
3639,
3878,
18,
542,
1444,
12,
20,
1769,
3639,
327,
3878,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
10201,
752,
6151,
12,
6385,
514,
25960,
16,
727,
514,
3878,
620,
16,
727,
509,
923,
9384,
13,
288,
3639,
1748,
3554,
1472,
18,
1195,
3639,
309,
261,
8417,
461,
422,
446,
747,
25960,
18,
14963,
2932,
6,
3719,
288,
5411,
604,
394,
2754,
2932,
8417,
461,
1297,
506,
279,
1661,
17,
5531,
533,
1199,
1769,
3639,
289,
3639,
309,
261,
8417,
620,
422,
446,
747,
3878,
620,
18,
14963,
2932,
6,
3719,
288,
5411,
604,
394,
2754,
2932,
8417,
620,
1297,
506,
279,
1661,
17,
5531,
533,
1199,
1769,
3639,
289,
3639,
309,
261,
877,
9384,
411,
374,
13,
288,
5411,
604,
394,
2754,
2932,
877,
9384,
1297,
506,
279,
1545,
374,
1199,
1769,
3639,
2
] |
public void insertAttribute ( String localName ) { if (preCheck()) { _cur._locale.enter(); try { _insertAttribute( localName ); } finally { _cur._locale.exit(); } } else synchronized ( _cur._locale ) { _cur._locale.enter(); try { _insertAttribute( localName ); } finally { _cur._locale.exit(); } } } | public void insertAttribute(String localName) { if (preCheck()) { _cur._locale.enter(); try { _insertAttribute(localName); } finally { _cur._locale.exit(); } } else synchronized (_cur._locale) { _cur._locale.enter(); try { _insertAttribute(localName); } finally { _cur._locale.exit(); } } } | public void insertAttribute ( String localName ) { if (preCheck()) { _cur._locale.enter(); try { _insertAttribute( localName ); } finally { _cur._locale.exit(); } } else synchronized ( _cur._locale ) { _cur._locale.enter(); try { _insertAttribute( localName ); } finally { _cur._locale.exit(); } } } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/8883179236b87db476131da6fa70580fac43da83/Cursor.java/clean/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cursor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2243,
1499,
261,
514,
11927,
262,
288,
309,
261,
1484,
1564,
10756,
288,
389,
1397,
6315,
6339,
18,
2328,
5621,
775,
288,
389,
6387,
1499,
12,
11927,
11272,
289,
3095,
288,
389,
1397,
6315,
6339,
18,
8593,
5621,
289,
289,
469,
3852,
261,
389,
1397,
6315,
6339,
262,
288,
389,
1397,
6315,
6339,
18,
2328,
5621,
775,
288,
389,
6387,
1499,
12,
11927,
11272,
289,
3095,
288,
389,
1397,
6315,
6339,
18,
8593,
5621,
289,
289,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2243,
1499,
261,
514,
11927,
262,
288,
309,
261,
1484,
1564,
10756,
288,
389,
1397,
6315,
6339,
18,
2328,
5621,
775,
288,
389,
6387,
1499,
12,
11927,
11272,
289,
3095,
288,
389,
1397,
6315,
6339,
18,
8593,
5621,
289,
289,
469,
3852,
261,
389,
1397,
6315,
6339,
262,
288,
389,
1397,
6315,
6339,
18,
2328,
5621,
775,
288,
389,
6387,
1499,
12,
11927,
11272,
289,
3095,
288,
389,
1397,
6315,
6339,
18,
8593,
5621,
289,
289,
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
] |
System.arraycopy((new ZipShort(getUserId())).getBytes(), 0, data, 6, 2); System.arraycopy((new ZipShort(getGroupId())).getBytes(), 0, data, 8, 2); | System.arraycopy( ( new ZipShort( getUserId() ) ).getBytes(), 0, data, 6, 2 ); System.arraycopy( ( new ZipShort( getGroupId() ) ).getBytes(), 0, data, 8, 2 ); | public byte[] getLocalFileDataData() { // CRC will be added later byte[] data = new byte[getLocalFileDataLength().getValue() - 4]; System.arraycopy((new ZipShort(getMode())).getBytes(), 0, data, 0, 2); byte[] linkArray = getLinkedFile().getBytes(); System.arraycopy((new ZipLong(linkArray.length)).getBytes(), 0, data, 2, 4); System.arraycopy((new ZipShort(getUserId())).getBytes(), 0, data, 6, 2); System.arraycopy((new ZipShort(getGroupId())).getBytes(), 0, data, 8, 2); System.arraycopy(linkArray, 0, data, 10, linkArray.length); crc.reset(); crc.update(data); long checksum = crc.getValue(); byte[] result = new byte[data.length + 4]; System.arraycopy((new ZipLong(checksum)).getBytes(), 0, result, 0, 4); System.arraycopy(data, 0, result, 4, data.length); return result; } | 10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/AsiExtraField.java/buggy/src/main/java/org/codehaus/plexus/archiver/zip/AsiExtraField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
6993,
812,
751,
751,
1435,
288,
3639,
368,
21773,
903,
506,
3096,
5137,
3639,
1160,
8526,
501,
273,
394,
1160,
63,
588,
2042,
812,
751,
1782,
7675,
24805,
1435,
300,
1059,
15533,
3639,
2332,
18,
1126,
3530,
12443,
2704,
8603,
4897,
12,
588,
2309,
10756,
2934,
588,
2160,
9334,
374,
16,
501,
16,
374,
16,
576,
1769,
3639,
1160,
8526,
1692,
1076,
273,
336,
13174,
812,
7675,
588,
2160,
5621,
3639,
2332,
18,
1126,
3530,
12443,
2704,
8603,
3708,
12,
1232,
1076,
18,
2469,
13,
2934,
588,
2160,
9334,
7682,
374,
16,
501,
16,
576,
16,
1059,
1769,
3639,
2332,
18,
1126,
3530,
12443,
2704,
8603,
4897,
12,
588,
10502,
10756,
2934,
588,
2160,
9334,
7682,
374,
16,
501,
16,
1666,
16,
576,
1769,
3639,
2332,
18,
1126,
3530,
12443,
2704,
8603,
4897,
12,
588,
8722,
10756,
2934,
588,
2160,
9334,
7682,
374,
16,
501,
16,
1725,
16,
576,
1769,
3639,
2332,
18,
1126,
3530,
12,
1232,
1076,
16,
374,
16,
501,
16,
1728,
16,
1692,
1076,
18,
2469,
1769,
3639,
10619,
18,
6208,
5621,
3639,
10619,
18,
2725,
12,
892,
1769,
3639,
1525,
6697,
273,
10619,
18,
24805,
5621,
3639,
1160,
8526,
563,
273,
394,
1160,
63,
892,
18,
2469,
397,
1059,
15533,
3639,
2332,
18,
1126,
3530,
12443,
2704,
8603,
3708,
12,
15149,
13,
2934,
588,
2160,
9334,
374,
16,
563,
16,
374,
16,
1059,
1769,
3639,
2332,
18,
1126,
3530,
12,
892,
16,
374,
16,
563,
16,
1059,
16,
501,
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,
1160,
8526,
6993,
812,
751,
751,
1435,
288,
3639,
368,
21773,
903,
506,
3096,
5137,
3639,
1160,
8526,
501,
273,
394,
1160,
63,
588,
2042,
812,
751,
1782,
7675,
24805,
1435,
300,
1059,
15533,
3639,
2332,
18,
1126,
3530,
12443,
2704,
8603,
4897,
12,
588,
2309,
10756,
2934,
588,
2160,
9334,
374,
16,
501,
16,
374,
16,
576,
1769,
3639,
1160,
8526,
1692,
1076,
273,
336,
13174,
812,
7675,
588,
2160,
5621,
3639,
2332,
18,
1126,
3530,
12443,
2704,
8603,
3708,
12,
1232,
1076,
18,
2469,
13,
2934,
588,
2160,
9334,
7682,
374,
16,
501,
16,
576,
16,
1059,
1769,
3639,
2332,
18,
1126,
3530,
12443,
2704,
8603,
4897,
12,
588,
10502,
10756,
2934,
588,
2160,
9334,
2
] |
throw new PSQLException("postgresql.con.misc", pgStream.ReceiveString(encoding)); | throw new PSQLException("postgresql.con.misc", PSQLState.CONNECTION_REJECTED, pgStream.ReceiveString(encoding)); | private void openConnectionV3(String p_host, int p_port, Properties p_info, String p_database, String p_url, Driver p_d, String p_password) throws SQLException { PGProtocolVersionMajor = 3; if (Driver.logDebug) Driver.debug("Using Protocol Version3"); // Now we need to construct and send an ssl startup packet try { if (useSSL) { if (Driver.logDebug) Driver.debug("Asking server if it supports ssl"); pgStream.SendInteger(8,4); pgStream.SendInteger(80877103,4); // now flush the ssl packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int beresp = pgStream.ReceiveChar(); if (Driver.logDebug) Driver.debug("Server response was (S=Yes,N=No): "+(char)beresp); switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new PSQLException("postgresql.con.misc", pgStream.ReceiveString(encoding)); case 'N': // Server does not support ssl throw new PSQLException("postgresql.con.sslnotsupported"); case 'S': // Server supports ssl if (Driver.logDebug) Driver.debug("server does support ssl"); Driver.makeSSL(pgStream); break; default: throw new PSQLException("postgresql.con.sslfail"); } } } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } // Now we need to construct and send a startup packet try { new StartupPacket(PGProtocolVersionMajor, PGProtocolVersionMinor, PG_USER, p_database).writeTo(pgStream); // now flush the startup packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pgStream.ReceiveChar(); String salt = null; byte [] md5Salt = new byte[4]; switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // int l_elen = pgStream.ReceiveIntegerR(4); if (l_elen > 30000) { //if the error length is > than 30000 we assume this is really a v2 protocol //server so try again with a v2 connection //need to create a new connection and try again try { pgStream = new PGStream(p_host, p_port); } catch (ConnectException cex) { // Added by Peter Mount <[email protected]> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed", e); } openConnectionV2(p_host, p_port, p_info, p_database, p_url, p_d, p_password); return; } throw new PSQLException("postgresql.con.misc",encoding.decode(pgStream.Receive(l_elen-4))); case 'R': // Get the message length int l_msgLen = pgStream.ReceiveIntegerR(4); // Get the type of request areq = pgStream.ReceiveIntegerR(4); // Get the crypt password salt if there is one if (areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pgStream.ReceiveChar(); rst[1] = (byte)pgStream.ReceiveChar(); salt = new String(rst, 0, 2); if (Driver.logDebug) Driver.debug("Crypt salt=" + salt); } // Or get the md5 password salt if there is one if (areq == AUTH_REQ_MD5) { md5Salt[0] = (byte)pgStream.ReceiveChar(); md5Salt[1] = (byte)pgStream.ReceiveChar(); md5Salt[2] = (byte)pgStream.ReceiveChar(); md5Salt[3] = (byte)pgStream.ReceiveChar(); salt = new String(md5Salt, 0, 4); if (Driver.logDebug) Driver.debug("MD5 salt=" + salt); } // now send the auth packet switch (areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: if (Driver.logDebug) Driver.debug("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: if (Driver.logDebug) Driver.debug("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_SCM: if (Driver.logDebug) Driver.debug("postgresql: SCM"); throw new PSQLException("postgresql.con.scm"); case AUTH_REQ_PASSWORD: if (Driver.logDebug) Driver.debug("postgresql: PASSWORD"); pgStream.SendChar('p'); pgStream.SendInteger(5 + p_password.length(), 4); pgStream.Send(p_password.getBytes()); pgStream.SendChar(0); pgStream.flush(); break; case AUTH_REQ_CRYPT: if (Driver.logDebug) Driver.debug("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt, p_password); pgStream.SendChar('p'); pgStream.SendInteger(5 + crypted.length(), 4); pgStream.Send(crypted.getBytes()); pgStream.SendChar(0); pgStream.flush(); break; case AUTH_REQ_MD5: if (Driver.logDebug) Driver.debug("postgresql: MD5"); byte[] digest = MD5Digest.encode(PG_USER, p_password, md5Salt); pgStream.SendChar('p'); pgStream.SendInteger(5 + digest.length, 4); pgStream.Send(digest); pgStream.SendChar(0); pgStream.flush(); break; default: throw new PSQLException("postgresql.con.auth", new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while (areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } int beresp; do { beresp = pgStream.ReceiveChar(); switch (beresp) { case 'Z': //ready for query break; case 'K': int l_msgLen = pgStream.ReceiveIntegerR(4); if (l_msgLen != 12) throw new PSQLException("postgresql.con.setup"); pid = pgStream.ReceiveIntegerR(4); ckey = pgStream.ReceiveIntegerR(4); break; case 'E': int l_elen = pgStream.ReceiveIntegerR(4); throw new PSQLException("postgresql.con.backend",encoding.decode(pgStream.Receive(l_elen-4))); case 'N': int l_nlen = pgStream.ReceiveIntegerR(4); addWarning(encoding.decode(pgStream.Receive(l_nlen-4))); break; case 'S': //TODO: handle parameter status messages int l_len = pgStream.ReceiveIntegerR(4); String l_pStatus = encoding.decode(pgStream.Receive(l_len-4)); if (Driver.logDebug) Driver.debug("ParameterStatus="+ l_pStatus); break; default: if (Driver.logDebug) Driver.debug("invalid state="+ (char)beresp); throw new PSQLException("postgresql.con.setup"); } } while (beresp != 'Z'); // read ReadyForQuery if (pgStream.ReceiveIntegerR(4) != 5) throw new PSQLException("postgresql.con.setup"); //TODO: handle transaction status char l_tStatus = (char)pgStream.ReceiveChar(); // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. //Note: begining with 7.2 we should be using pg_client_encoding() which //is new in 7.2. However it isn't easy to conditionally call this new //function, since we don't yet have the information as to what server //version we are talking to. Thus we will continue to call //getdatabaseencoding() until we drop support for 7.1 and older versions //or until someone comes up with a conditional way to run one or //the other function depending on server version that doesn't require //two round trips to the server per connection final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. BaseResultSet resultSet = execSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, p_info.getProperty("charSet")); //In 7.3 we are forced to do a second roundtrip to handle the case //where a database may not be running in autocommit mode //jdbc by default assumes autocommit is on until setAutoCommit(false) //is called. Therefore we need to ensure a new connection is //initialized to autocommit on. //We also set the client encoding so that the driver only needs //to deal with utf8. We can only do this in 7.3 because multibyte //support is now always included if (haveMinimumServerVersion("7.3")) { BaseResultSet acRset = //TODO: if protocol V3 we can set the client encoding in startup execSQL("set client_encoding = 'UNICODE'"); //set encoding to be unicode encoding = Encoding.getEncoding("UNICODE", null); } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup PG_STATUS = CONNECTION_OK; } | 46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/0378a269f3ab3c44e67b14f96414b6ca95263263/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
24982,
58,
23,
12,
780,
293,
67,
2564,
16,
509,
293,
67,
655,
16,
6183,
293,
67,
1376,
16,
514,
293,
67,
6231,
16,
514,
293,
67,
718,
16,
9396,
293,
67,
72,
16,
514,
293,
67,
3664,
13,
1216,
6483,
202,
225,
288,
202,
202,
18679,
28252,
17581,
273,
890,
31,
202,
202,
430,
261,
4668,
18,
1330,
2829,
13,
1082,
202,
4668,
18,
4148,
2932,
7736,
4547,
4049,
23,
8863,
202,
202,
759,
4494,
732,
1608,
358,
4872,
471,
1366,
392,
5832,
11850,
4414,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
261,
1202,
6745,
13,
288,
9506,
202,
430,
261,
4668,
18,
1330,
2829,
13,
6862,
202,
4668,
18,
4148,
2932,
23663,
310,
1438,
309,
518,
6146,
5832,
8863,
9506,
202,
8365,
1228,
18,
3826,
4522,
12,
28,
16,
24,
1769,
9506,
202,
8365,
1228,
18,
3826,
4522,
12,
3672,
28,
4700,
23494,
16,
24,
1769,
9506,
202,
759,
2037,
3663,
326,
5832,
12640,
358,
326,
4221,
9506,
202,
8365,
1228,
18,
11330,
5621,
9506,
202,
759,
4494,
336,
326,
766,
628,
326,
4221,
16,
3344,
392,
555,
883,
9506,
202,
759,
578,
392,
5107,
590,
9506,
202,
474,
324,
11737,
84,
273,
7184,
1228,
18,
11323,
2156,
5621,
9506,
202,
430,
261,
4668,
18,
1330,
2829,
13,
6862,
202,
4668,
18,
4148,
2932,
2081,
766,
1703,
261,
55,
33,
22352,
16,
50,
33,
2279,
4672,
13773,
12,
3001,
13,
744,
281,
84,
1769,
9506,
202,
9610,
261,
744,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
24982,
58,
23,
12,
780,
293,
67,
2564,
16,
509,
293,
67,
655,
16,
6183,
293,
67,
1376,
16,
514,
293,
67,
6231,
16,
514,
293,
67,
718,
16,
9396,
293,
67,
72,
16,
514,
293,
67,
3664,
13,
1216,
6483,
202,
225,
288,
202,
202,
18679,
28252,
17581,
273,
890,
31,
202,
202,
430,
261,
4668,
18,
1330,
2829,
13,
1082,
202,
4668,
18,
4148,
2932,
7736,
4547,
4049,
23,
8863,
202,
202,
759,
4494,
732,
1608,
358,
4872,
471,
1366,
392,
5832,
11850,
4414,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
261,
1202,
6745,
13,
288,
9506,
202,
430,
261,
4668,
18,
1330,
2829,
13,
6862,
202,
4668,
18,
4148,
2932,
2
] |
if (fContentType == null || fRules == null) | if (fContentType == null || fRules == null) { if (resume) fOffset= fPartitionOffset; | public IToken nextToken() { if (fContentType == null || fRules == null) return super.nextToken(); fTokenOffset= fOffset; fColumn= UNDEFINED; boolean resume= (fPartitionOffset < fOffset); IPredicateRule rule; IToken token; for (int i= 0; i < fRules.length; i++) { rule= (IPredicateRule) fRules[i]; token= rule.getSuccessToken(); if (fContentType.equals(token.getData())) { if (resume) fTokenOffset= fPartitionOffset; token= rule.evaluate(this, resume); if (!token.isUndefined()) { fContentType= null; return token; } } } fContentType= null; return super.nextToken(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/dae691b2264e050f5207c17f85c0984110c69f33/RuleBasedPartitionScanner.java/buggy/bundles/org.eclipse.ui/Eclipse JFace Text/org/eclipse/jface/text/rules/RuleBasedPartitionScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1345,
9617,
1435,
288,
9506,
202,
430,
261,
74,
8046,
422,
446,
747,
284,
4478,
422,
446,
13,
1082,
202,
2463,
2240,
18,
4285,
1345,
5621,
9506,
202,
74,
1345,
2335,
33,
284,
2335,
31,
202,
202,
74,
1494,
33,
21919,
31,
202,
202,
6494,
10774,
33,
261,
74,
7003,
2335,
411,
284,
2335,
1769,
25083,
202,
2579,
5543,
2175,
1720,
31,
202,
202,
1285,
969,
1147,
31,
9506,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
284,
4478,
18,
2469,
31,
277,
27245,
288,
1082,
202,
5345,
33,
261,
2579,
5543,
2175,
13,
284,
4478,
63,
77,
15533,
1082,
202,
2316,
33,
1720,
18,
588,
4510,
1345,
5621,
1082,
202,
430,
261,
74,
8046,
18,
14963,
12,
2316,
18,
588,
751,
1435,
3719,
288,
9506,
202,
430,
261,
25158,
13,
6862,
202,
74,
1345,
2335,
33,
284,
7003,
2335,
31,
9506,
202,
2316,
33,
1720,
18,
21024,
12,
2211,
16,
10774,
1769,
9506,
202,
430,
16051,
2316,
18,
291,
10317,
10756,
288,
6862,
202,
74,
8046,
33,
446,
31,
6862,
202,
2463,
1147,
31,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
9506,
202,
74,
8046,
33,
446,
31,
202,
202,
2463,
2240,
18,
4285,
1345,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1345,
9617,
1435,
288,
9506,
202,
430,
261,
74,
8046,
422,
446,
747,
284,
4478,
422,
446,
13,
1082,
202,
2463,
2240,
18,
4285,
1345,
5621,
9506,
202,
74,
1345,
2335,
33,
284,
2335,
31,
202,
202,
74,
1494,
33,
21919,
31,
202,
202,
6494,
10774,
33,
261,
74,
7003,
2335,
411,
284,
2335,
1769,
25083,
202,
2579,
5543,
2175,
1720,
31,
202,
202,
1285,
969,
1147,
31,
9506,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
284,
4478,
18,
2469,
31,
277,
27245,
288,
1082,
202,
5345,
33,
261,
2579,
5543,
2175,
13,
284,
4478,
63,
77,
15533,
1082,
202,
2316,
33,
1720,
18,
588,
4510,
1345,
5621,
1082,
202,
430,
261,
2
] |
dropTable("#t0017"); | dropTable("#t0017"); | public void testDatatypes0017() throws Exception { Connection cx = getConnection(); Statement stmt = cx.createStatement(); dropTable("#t0017"); /* remove ( ), convert , to _ myXXXX, mynullXXXX // Insert a row without nulls via a Statement // Insert a row with nulls via a Statement // Insert a row without nulls via a PreparedStatement // Insert a row with nulls via a PreparedStatement // Now verify that the database has the same data as we put in. */ } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/d456535dc5bca0bbf54c0b9c6730e782aa275787/TimestampTest.java/clean/src.old/test/freetds/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5139,
13373,
713,
4033,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
3406,
3480,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
7285,
1388,
2932,
7,
88,
713,
4033,
8863,
202,
202,
20308,
202,
202,
4479,
261,
262,
16,
1765,
269,
358,
389,
202,
202,
4811,
24303,
16,
312,
878,
420,
24303,
202,
202,
759,
8040,
279,
1027,
2887,
27778,
3970,
279,
8056,
202,
202,
759,
8040,
279,
1027,
598,
27778,
3970,
279,
8056,
202,
202,
759,
8040,
279,
1027,
2887,
27778,
3970,
279,
16913,
202,
202,
759,
8040,
279,
1027,
598,
27778,
3970,
279,
16913,
202,
202,
759,
4494,
3929,
716,
326,
2063,
711,
326,
1967,
501,
487,
732,
1378,
316,
18,
202,
5549,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5139,
13373,
713,
4033,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
3406,
3480,
273,
9494,
18,
2640,
3406,
5621,
202,
202,
7285,
1388,
2932,
7,
88,
713,
4033,
8863,
202,
202,
20308,
202,
202,
4479,
261,
262,
16,
1765,
269,
358,
389,
202,
202,
4811,
24303,
16,
312,
878,
420,
24303,
202,
202,
759,
8040,
279,
1027,
2887,
27778,
3970,
279,
8056,
202,
202,
759,
8040,
279,
1027,
598,
27778,
3970,
279,
8056,
202,
202,
759,
8040,
279,
1027,
2887,
27778,
3970,
279,
16913,
202,
202,
759,
8040,
279,
1027,
598,
27778,
3970,
279,
16913,
202,
202,
759,
4494,
3929,
716,
326,
2063,
711,
326,
1967,
501,
2
] |
java.util.TreeMap ent = (TreeMap) itr.next(); | SnmpTableEntry ent = (SnmpTableEntry) itr.next(); | public static void main(String[] a) throws UnknownHostException { //String localhost = "127.0.0.1"; String localhost = "10.3.2.216"; InetAddress ip = InetAddress.getByName(localhost); SnmpAgentConfig peer = new SnmpAgentConfig(ip); SnmpCollection snmpCollector = new SnmpCollection(peer); snmpCollector.run(); java.util.Iterator itr = snmpCollector.getVlanTable().iterator(); System.out.println("number of vlan entities = " + snmpCollector.m_vlanTable.getEntries().size()); while (itr.hasNext()) { java.util.TreeMap ent = (TreeMap) itr.next(); System.out.println("Vlan found: Vlan Index = " + ent.get(VlanCollectorEntry.VLAN_INDEX).toString() + " Vlan name = " + ent.get(VlanCollectorEntry.VLAN_NAME).toString()); } } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/f3e13aa5f29f79fb74c5975bb7cf59814d4d4cb1/SnmpCollection.java/clean/opennms-services/src/main/java/org/opennms/netmgt/linkd/SnmpCollection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
279,
13,
1216,
30592,
288,
202,
202,
759,
780,
17365,
273,
315,
14260,
18,
20,
18,
20,
18,
21,
14432,
202,
202,
780,
17365,
273,
315,
2163,
18,
23,
18,
22,
18,
22,
2313,
14432,
202,
202,
382,
278,
1887,
2359,
273,
14218,
18,
588,
5911,
12,
13014,
1769,
202,
202,
10461,
1291,
3630,
809,
4261,
273,
394,
18961,
1291,
3630,
809,
12,
625,
1769,
202,
202,
10461,
1291,
2532,
15366,
7134,
273,
394,
18961,
1291,
2532,
12,
12210,
1769,
202,
202,
26527,
7134,
18,
2681,
5621,
202,
202,
6290,
18,
1367,
18,
3198,
11176,
273,
15366,
7134,
18,
588,
31788,
1388,
7675,
9838,
5621,
202,
202,
3163,
18,
659,
18,
8222,
2932,
2696,
434,
11954,
5140,
273,
315,
9506,
202,
15,
15366,
7134,
18,
81,
67,
11969,
1388,
18,
588,
5400,
7675,
1467,
10663,
202,
202,
17523,
261,
305,
86,
18,
5332,
2134,
10756,
288,
1082,
202,
6290,
18,
1367,
18,
2471,
863,
3281,
273,
261,
2471,
863,
13,
11176,
18,
4285,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
31788,
1392,
30,
776,
6115,
3340,
273,
315,
6862,
202,
15,
3281,
18,
588,
12,
31788,
7134,
1622,
18,
58,
11074,
67,
9199,
2934,
10492,
1435,
6862,
202,
15,
315,
776,
6115,
508,
273,
315,
6862,
202,
15,
3281,
18,
588,
12,
31788,
7134,
1622,
18,
58,
11074,
67,
1985,
2934,
10492,
10663,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
13,
1216,
30592,
288,
202,
202,
759,
780,
17365,
273,
315,
14260,
18,
20,
18,
20,
18,
21,
14432,
202,
202,
780,
17365,
273,
315,
2163,
18,
23,
18,
22,
18,
22,
2313,
14432,
202,
202,
382,
278,
1887,
2359,
273,
14218,
18,
588,
5911,
12,
13014,
1769,
202,
202,
10461,
1291,
3630,
809,
4261,
273,
394,
18961,
1291,
3630,
809,
12,
625,
1769,
202,
202,
10461,
1291,
2532,
15366,
7134,
273,
394,
18961,
1291,
2532,
12,
12210,
1769,
202,
202,
26527,
7134,
18,
2681,
5621,
202,
202,
6290,
18,
1367,
18,
3198,
11176,
273,
15366,
7134,
18,
588,
31788,
1388,
7675,
9838,
5621,
202,
202,
3163,
18,
659,
2
] |
if (scope.equals(ON_SELECTED_ONLY)) | } if (scope.equals(ON_SELECTED_ONLY)) { | private int getScopeValue(IConfigurationElement element) { String scope = element.getAttribute(SCOPE); if (scope == null) return -1; if (scope.equals(ON_ANY)) return MarkerFilter.ON_ANY; if (scope.equals(ON_SELECTED_ONLY)) return MarkerFilter.ON_SELECTED_ONLY; if (scope.equals(ON_SELECTED_AND_CHILDREN)) return MarkerFilter.ON_SELECTED_AND_CHILDREN; if (scope.equals(ON_ANY_IN_SAME_CONTAINER)) return MarkerFilter.ON_ANY_IN_SAME_CONTAINER; return -1; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/MarkerSupportRegistry.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSupportRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
19203,
620,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
780,
2146,
273,
930,
18,
588,
1499,
12,
19444,
1769,
202,
202,
430,
261,
4887,
422,
446,
13,
1082,
202,
2463,
300,
21,
31,
202,
202,
430,
261,
4887,
18,
14963,
12,
673,
67,
15409,
3719,
1082,
202,
2463,
14742,
1586,
18,
673,
67,
15409,
31,
202,
202,
430,
261,
4887,
18,
14963,
12,
673,
67,
4803,
2056,
67,
10857,
3719,
1082,
202,
2463,
14742,
1586,
18,
673,
67,
4803,
2056,
67,
10857,
31,
202,
202,
430,
261,
4887,
18,
14963,
12,
673,
67,
4803,
2056,
67,
4307,
67,
27043,
24296,
3719,
1082,
202,
2463,
14742,
1586,
18,
673,
67,
4803,
2056,
67,
4307,
67,
27043,
24296,
31,
202,
202,
430,
261,
4887,
18,
14963,
12,
673,
67,
15409,
67,
706,
67,
29080,
67,
21395,
3719,
1082,
202,
2463,
14742,
1586,
18,
673,
67,
15409,
67,
706,
67,
29080,
67,
21395,
31,
202,
202,
2463,
300,
21,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
19203,
620,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
780,
2146,
273,
930,
18,
588,
1499,
12,
19444,
1769,
202,
202,
430,
261,
4887,
422,
446,
13,
1082,
202,
2463,
300,
21,
31,
202,
202,
430,
261,
4887,
18,
14963,
12,
673,
67,
15409,
3719,
1082,
202,
2463,
14742,
1586,
18,
673,
67,
15409,
31,
202,
202,
430,
261,
4887,
18,
14963,
12,
673,
67,
4803,
2056,
67,
10857,
3719,
1082,
202,
2463,
14742,
1586,
18,
673,
67,
4803,
2056,
67,
10857,
31,
202,
202,
430,
261,
4887,
18,
14963,
12,
673,
67,
4803,
2056,
67,
4307,
67,
27043,
24296,
3719,
1082,
202,
2463,
14742,
1586,
18,
673,
67,
4803,
2056,
67,
4307,
2
] |
case BOND : if (!stereoGiven) bondStereo.addElement(""); break; case MOLECULE : storeData(); cdo.endObject("Frame"); cdo.endObject("Molecule"); break; | case BOND : if (!stereoGiven) bondStereo.addElement(""); break; case MOLECULE : storeData(); cdo.endObject("Frame"); cdo.endObject("Molecule"); break; case COORDINATE3: if (BUILTIN.equals("xyz3")) { logger.debug("New coord3 xyz3 found: " + currentChars); try { StringTokenizer st = new StringTokenizer(currentChars); x3.addElement(st.nextToken()); y3.addElement(st.nextToken()); z3.addElement(st.nextToken()); logger.debug("coord3 x3.length: " + x3.size()); logger.debug("coord3 y3.length: " + y3.size()); logger.debug("coord3 z3.length: " + z3.size()); } catch (Exception e) { logger.error("CMLParsing error while setting coordinate3!"); } } else { logger.warn("Unknown coordinate3 BUILTIN: " + BUILTIN); } break; | public void endElement(String uri, String local, String raw) { String name = raw; logger.debug("EndElement"); setCurrentElement(name); BUILTIN = ""; switch (CurrentElement) { case BOND : if (!stereoGiven) bondStereo.addElement(""); break; case MOLECULE : storeData(); cdo.endObject("Frame"); cdo.endObject("Molecule"); break; } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/8f9b8d4786fbeb6ba3b5913f1e5c5a9ebf157701/Convention.java/clean/org/openscience/cdk/io/cml/Convention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14840,
12,
780,
2003,
16,
514,
1191,
16,
514,
1831,
13,
288,
202,
780,
508,
273,
1831,
31,
202,
4901,
18,
4148,
2932,
1638,
1046,
8863,
202,
542,
3935,
1046,
12,
529,
1769,
202,
3000,
2627,
56,
706,
273,
1408,
31,
202,
9610,
261,
3935,
1046,
13,
288,
202,
3593,
605,
673,
40,
294,
202,
565,
309,
16051,
334,
822,
83,
6083,
13,
8427,
55,
22854,
18,
1289,
1046,
2932,
8863,
202,
565,
898,
31,
202,
3593,
16070,
900,
39,
5595,
294,
202,
565,
1707,
751,
5621,
202,
565,
276,
2896,
18,
409,
921,
2932,
3219,
8863,
202,
565,
276,
2896,
18,
409,
921,
2932,
29669,
8863,
202,
565,
898,
31,
202,
97,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14840,
12,
780,
2003,
16,
514,
1191,
16,
514,
1831,
13,
288,
202,
780,
508,
273,
1831,
31,
202,
4901,
18,
4148,
2932,
1638,
1046,
8863,
202,
542,
3935,
1046,
12,
529,
1769,
202,
3000,
2627,
56,
706,
273,
1408,
31,
202,
9610,
261,
3935,
1046,
13,
288,
202,
3593,
605,
673,
40,
294,
202,
565,
309,
16051,
334,
822,
83,
6083,
13,
8427,
55,
22854,
18,
1289,
1046,
2932,
8863,
202,
565,
898,
31,
202,
3593,
16070,
900,
39,
5595,
294,
202,
565,
1707,
751,
5621,
202,
565,
276,
2896,
18,
409,
921,
2932,
3219,
8863,
202,
565,
276,
2896,
18,
409,
921,
2932,
29669,
8863,
202,
565,
898,
31,
202,
97,
565,
289,
2,
-100
] |
public BrowserMenuBar(final Browser browser) { | public BrowserMenuBar(final Browser browser, final Boolean maximized) { | public BrowserMenuBar(final Browser browser) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeEdges.TOP); // Create JMenus final JMenu newMenu = MenuFactory.create(localization.getString("New"), new Integer(localization.getString("NewMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(6,0))); this.add(newMenu); final JMenu profileMenu = MenuFactory.create(localization.getString("Profile"), new Integer(localization.getString("ProfileMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(profileMenu); final JMenu helpMenu = MenuFactory.create(localization.getString("Help"), new Integer(localization.getString("HelpMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(helpMenu); // Create the New popup menu newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTAINER_CREATE, Data.emptyData())); newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTACT_CREATE_INCOMING_INVITATION, Data.emptyData())); // Create the Profile menu final Data updateProfileData = new Data(1); updateProfileData.set(Update.DataKey.DISPLAY_AVATAR, Boolean.TRUE); profileMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PROFILE_UPDATE, updateProfileData)); // Create the OpenHelp menu helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_OPEN_HELP, Data.emptyData())); helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_DISPLAY_INFO, Data.emptyData())); // Create the Sign-Up button this.add(Box.createRigidArea(new Dimension(5,0))); final JLabel label = new JLabel("Sign-Up"); label.setForeground(new Color(249, 162, 94, 255)); final String orig = label.getText(); label.setFont(Fonts.DefaultFontBold); label.addMouseListener(new MouseAdapter() { @Override public void mouseEntered(MouseEvent e) { final String text = label.getText(); label.setText(MessageFormat.format("<html><u>{0}</u></html>", text)); } @Override public void mouseExited(final MouseEvent e) { label.setText(MessageFormat.format("<html>{0}</html>", orig)); } }); this.add(label); //this.add(ButtonFactory.create(ActionId.PROFILE_SIGN_UP, Data.emptyData())); this.add(Box.createHorizontalGlue()); // Add minimize, maximize and close buttons this.add(getMinimizeButton()); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getMaximizeButton()); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getCloseButton()); this.add(Box.createRigidArea(new Dimension(4,0))); } | 53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/5df2e6a8f48a4687ecb1808669030ad1f9cc6e45/BrowserMenuBar.java/buggy/client-ui/src/main/java/com/thinkparity/ophelia/browser/application/browser/BrowserMenuBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15408,
4599,
5190,
12,
6385,
15408,
4748,
16,
727,
3411,
30547,
1235,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
11213,
273,
4748,
31,
3639,
333,
18,
3729,
1588,
273,
394,
804,
3219,
19157,
2932,
9132,
3829,
18,
4599,
8863,
7734,
333,
18,
16086,
1180,
1733,
273,
10264,
416,
1180,
1733,
18,
588,
1442,
5621,
3639,
333,
18,
455,
1824,
273,
394,
1124,
1824,
12,
11213,
16,
333,
16,
3411,
18,
18724,
16,
1124,
1824,
18,
12182,
10697,
18,
10462,
1769,
3639,
368,
1788,
804,
29755,
3639,
727,
804,
4599,
394,
4599,
273,
9809,
1733,
18,
2640,
12,
3729,
1588,
18,
588,
780,
2932,
1908,
6,
3631,
7734,
394,
2144,
12,
3729,
1588,
18,
588,
780,
2932,
1908,
29668,
20918,
20387,
3001,
861,
12,
20,
3719,
1769,
3639,
333,
18,
1289,
12,
3514,
18,
2640,
54,
28542,
5484,
12,
2704,
13037,
12,
26,
16,
20,
3719,
1769,
6647,
333,
18,
1289,
12,
2704,
4599,
1769,
3639,
727,
804,
4599,
3042,
4599,
273,
9809,
1733,
18,
2640,
12,
3729,
1588,
18,
588,
780,
2932,
4029,
6,
3631,
7734,
394,
2144,
12,
3729,
1588,
18,
588,
780,
2932,
4029,
29668,
20918,
20387,
3001,
861,
12,
20,
3719,
1769,
3639,
333,
18,
1289,
12,
3514,
18,
2640,
54,
28542,
5484,
12,
2704,
13037,
12,
22,
16,
20,
3719,
1769,
1850,
333,
18,
1289,
12,
5040,
4599,
1769,
3639,
727,
804,
4599,
2809,
4599,
273,
9809,
1733,
18,
2640,
12,
3729,
1588,
18,
588,
780,
2932,
6696,
6,
3631,
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,
15408,
4599,
5190,
12,
6385,
15408,
4748,
16,
727,
3411,
30547,
1235,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
11213,
273,
4748,
31,
3639,
333,
18,
3729,
1588,
273,
394,
804,
3219,
19157,
2932,
9132,
3829,
18,
4599,
8863,
7734,
333,
18,
16086,
1180,
1733,
273,
10264,
416,
1180,
1733,
18,
588,
1442,
5621,
3639,
333,
18,
455,
1824,
273,
394,
1124,
1824,
12,
11213,
16,
333,
16,
3411,
18,
18724,
16,
1124,
1824,
18,
12182,
10697,
18,
10462,
1769,
3639,
368,
1788,
804,
29755,
3639,
727,
804,
4599,
394,
4599,
273,
9809,
1733,
18,
2640,
12,
3729,
1588,
18,
588,
780,
2932,
1908,
6,
3631,
7734,
394,
2144,
12,
3729,
1588,
18,
588,
780,
2932,
2
] |
public IStatus run(IProgressMonitor monitor) { try { monitor.beginTask(LABEL_SYNCHRONIZE_TASK, repositoryTasks.size()); setProperty(IProgressConstants.ICON_PROPERTY, TaskListImages.REPOSITORY_SYNCHRONIZE); for (AbstractRepositoryTask repositoryTask : repositoryTasks) { if (monitor.isCanceled()) throw new OperationCanceledException(); if(isDirty(repositoryTask)) { MylarStatusHandler.log(repositoryTask.getDescription()+" editor dirty. Skipping synchronization.", this); continue; } // TODO: refactor conditions boolean canNotSynch = repositoryTask.isDirty() || repositoryTask.isSynchronizing(); boolean hasLocalChanges = repositoryTask.getSyncState() == RepositoryTaskSyncState.OUTGOING || repositoryTask.getSyncState() == RepositoryTaskSyncState.CONFLICT; if (forceSync || (!canNotSynch && !hasLocalChanges) || !repositoryTask.isDownloaded()) { monitor.setTaskName(LABEL_SYNCHRONIZING+repositoryTask.getDescription()); repositoryTask.setCurrentlyDownloading(true); MylarTaskListPlugin.getTaskListManager().getTaskList().notifyRepositoryInfoChanged(repositoryTask); this.connector.updateOfflineState(repositoryTask, forceSync); repositoryTask.setCurrentlyDownloading(false);// if (repositoryTask.getSyncState() == RepositoryTaskSyncState.INCOMING) {// repositoryTask.setSyncState(RepositoryTaskSyncState.SYNCHRONIZED);// } else if (repositoryTask.getSyncState() == RepositoryTaskSyncState.CONFLICT) {// repositoryTask.setSyncState(RepositoryTaskSyncState.OUTGOING);// } MylarTaskListPlugin.getTaskListManager().getTaskList().notifyRepositoryInfoChanged(repositoryTask); } monitor.worked(1); } } catch (Exception e) { MylarStatusHandler.fail(e, "Could not download report", false); } finally { monitor.done(); } // this.connector.removeRefreshingTask(repositoryTask); return new Status(IStatus.OK, MylarPlugin.PLUGIN_ID, IStatus.OK, "", null); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/d5ac49cfa9b03216cd984a4823cace7a63fded8b/SynchronizeTaskJob.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/SynchronizeTaskJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
202,
202,
698,
288,
1082,
202,
10259,
18,
10086,
2174,
12,
13545,
67,
7474,
50,
1792,
19359,
15641,
67,
15580,
16,
3352,
6685,
18,
1467,
10663,
1082,
202,
542,
1396,
12,
45,
5491,
2918,
18,
21745,
67,
9900,
16,
3837,
682,
8946,
18,
862,
30986,
67,
7474,
50,
1792,
19359,
15641,
1769,
1082,
202,
1884,
261,
7469,
3305,
2174,
3352,
2174,
294,
3352,
6685,
13,
288,
9506,
202,
430,
261,
10259,
18,
291,
23163,
10756,
6862,
202,
12849,
394,
4189,
23163,
503,
5621,
6862,
9506,
202,
430,
12,
291,
10785,
12,
9071,
2174,
3719,
288,
6862,
202,
12062,
7901,
1482,
1503,
18,
1330,
12,
9071,
2174,
18,
588,
3291,
1435,
9078,
4858,
9603,
18,
27455,
24488,
1199,
16,
333,
1769,
6862,
202,
17143,
31,
9506,
202,
97,
6862,
9506,
202,
759,
2660,
30,
26627,
4636,
9506,
202,
6494,
848,
1248,
55,
2515,
273,
3352,
2174,
18,
291,
10785,
1435,
747,
3352,
2174,
18,
291,
19298,
6894,
5621,
9506,
202,
6494,
711,
2042,
7173,
273,
3352,
2174,
18,
588,
4047,
1119,
1435,
422,
6281,
2174,
4047,
1119,
18,
5069,
16387,
1360,
25083,
202,
20081,
3352,
2174,
18,
588,
4047,
1119,
1435,
422,
6281,
2174,
4047,
1119,
18,
14497,
29280,
31,
9506,
202,
430,
261,
5734,
4047,
747,
16051,
4169,
1248,
55,
2515,
597,
401,
5332,
2042,
7173,
13,
747,
401,
9071,
2174,
18,
291,
4164,
4230,
10756,
288,
6862,
202,
10259,
18,
542,
2174,
461,
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,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
202,
202,
698,
288,
1082,
202,
10259,
18,
10086,
2174,
12,
13545,
67,
7474,
50,
1792,
19359,
15641,
67,
15580,
16,
3352,
6685,
18,
1467,
10663,
1082,
202,
542,
1396,
12,
45,
5491,
2918,
18,
21745,
67,
9900,
16,
3837,
682,
8946,
18,
862,
30986,
67,
7474,
50,
1792,
19359,
15641,
1769,
1082,
202,
1884,
261,
7469,
3305,
2174,
3352,
2174,
294,
3352,
6685,
13,
288,
9506,
202,
430,
261,
10259,
18,
291,
23163,
10756,
6862,
202,
12849,
394,
4189,
23163,
503,
5621,
6862,
9506,
202,
430,
12,
291,
10785,
12,
9071,
2174,
3719,
288,
6862,
202,
12062,
7901,
1482,
1503,
18,
1330,
12,
9071,
2174,
2
] |
||
unsetCRef(); | popCRef(); | public void postExecuteUnder() { popFrame(); popRubyClass(); unsetCRef(); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/805d73b7462174e9e5c095eed22a09140bb79b5e/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1603,
5289,
14655,
1435,
288,
3639,
1843,
3219,
5621,
3639,
1843,
54,
10340,
797,
5621,
3639,
1843,
39,
1957,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1603,
5289,
14655,
1435,
288,
3639,
1843,
3219,
5621,
3639,
1843,
54,
10340,
797,
5621,
3639,
1843,
39,
1957,
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
] |
Modifier result = targetAst.newModifier(Modifier.ModifierKeyword.PUBLIC_KEYWORD); if (parented) { TypeDeclaration pd = targetAst.newTypeDeclaration(); pd.modifiers().add(result); } return result; | Type result = targetAst.newSimpleType(targetAst.newSimpleName("foo")); if (parented) { targetAst.newArrayType(result); | public ASTNode sample(AST targetAst, boolean parented) { Modifier result = targetAst.newModifier(Modifier.ModifierKeyword.PUBLIC_KEYWORD); if (parented) { TypeDeclaration pd = targetAst.newTypeDeclaration(); pd.modifiers().add(result); } return result; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/0e6d4fe5469565f21baa2fd0ec88d178818c619b/ASTTest.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
9183,
907,
3296,
12,
9053,
1018,
21385,
16,
1250,
982,
329,
13,
288,
6862,
202,
9829,
563,
273,
1018,
21385,
18,
2704,
9829,
12,
9829,
18,
9829,
8736,
18,
14939,
67,
28813,
1769,
6862,
202,
430,
261,
2938,
329,
13,
288,
25083,
202,
559,
6094,
4863,
273,
1018,
21385,
18,
2704,
559,
6094,
5621,
25083,
202,
22353,
18,
15432,
7675,
1289,
12,
2088,
1769,
6862,
202,
97,
6862,
202,
2463,
563,
31,
9506,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4697,
202,
482,
9183,
907,
3296,
12,
9053,
1018,
21385,
16,
1250,
982,
329,
13,
288,
6862,
202,
9829,
563,
273,
1018,
21385,
18,
2704,
9829,
12,
9829,
18,
9829,
8736,
18,
14939,
67,
28813,
1769,
6862,
202,
430,
261,
2938,
329,
13,
288,
25083,
202,
559,
6094,
4863,
273,
1018,
21385,
18,
2704,
559,
6094,
5621,
25083,
202,
22353,
18,
15432,
7675,
1289,
12,
2088,
1769,
6862,
202,
97,
6862,
202,
2463,
563,
31,
9506,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print("int i, count = -1;\n"); | print("int i;\n"); | private void printCircularWorkHeader() { print("{\n"); if (filter.getPeekInt() > 0) { print("int i, count = -1;\n"); if (filter instanceof SIRTwoStageFilter) printCircularTwoStageInitWork(); else { int buffersize = nextPow2(filter.getPeekInt()); print ("#define BUFFERSIZE " + buffersize + "\n"); print ("#define BITS " + (buffersize - 1) + "\n"); print(filter.getInputType() + " buffer[BUFFERSIZE];\n"); print(" for (i = 0; i < " + filter.getPeekInt() + "; i++)\n"); print(" buffer[i] = "); if (filter.getInputType().equals(CStdType.Float)) print("static_receive_f();\n"); else print("static_receive();\n"); } } print(" while (1) {\n"); if (debug) print(" print_int("+ Layout.getTileNumber(filter) + ");\n"); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/f3a49ff86c6e264213cc9a62388ec04976e6414e/FlatIRToC.java/buggy/streams/src/at/dms/kjc/raw/FlatIRToC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1172,
25858,
2421,
1864,
1435,
377,
288,
202,
1188,
2932,
23241,
82,
8863,
202,
430,
261,
2188,
18,
588,
30950,
1702,
1435,
405,
374,
13,
288,
202,
565,
1172,
2932,
474,
277,
16,
1056,
273,
300,
21,
9747,
82,
8863,
202,
565,
309,
261,
2188,
1276,
5705,
54,
11710,
8755,
1586,
13,
3196,
202,
1188,
25858,
11710,
8755,
2570,
2421,
5621,
202,
565,
469,
288,
202,
202,
474,
9664,
554,
273,
1024,
28289,
22,
12,
2188,
18,
588,
30950,
1702,
10663,
202,
202,
1188,
7566,
7,
11255,
25859,
4574,
315,
397,
9664,
554,
397,
1548,
82,
8863,
202,
202,
1188,
7566,
7,
11255,
605,
10158,
315,
397,
261,
28101,
554,
300,
404,
13,
397,
1548,
82,
8863,
202,
202,
1188,
12,
2188,
18,
588,
1210,
559,
1435,
397,
1875,
4202,
315,
1613,
63,
11302,
4574,
65,
9747,
82,
8863,
202,
202,
1188,
2932,
364,
261,
77,
273,
374,
31,
277,
411,
315,
397,
1034,
18,
588,
30950,
1702,
1435,
397,
13636,
277,
9904,
5153,
82,
8863,
202,
202,
1188,
2932,
282,
1613,
63,
77,
65,
273,
315,
1769,
202,
202,
430,
261,
2188,
18,
588,
1210,
559,
7675,
14963,
12,
39,
10436,
559,
18,
4723,
3719,
1082,
565,
1172,
2932,
3845,
67,
18149,
67,
74,
5621,
64,
82,
8863,
202,
202,
12107,
1875,
565,
1172,
2932,
3845,
67,
18149,
5621,
64,
82,
8863,
202,
565,
289,
202,
97,
202,
1188,
2932,
1323,
261,
21,
13,
18890,
82,
8863,
202,
430,
261,
4148,
13,
1172,
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,
1172,
25858,
2421,
1864,
1435,
377,
288,
202,
1188,
2932,
23241,
82,
8863,
202,
430,
261,
2188,
18,
588,
30950,
1702,
1435,
405,
374,
13,
288,
202,
565,
1172,
2932,
474,
277,
16,
1056,
273,
300,
21,
9747,
82,
8863,
202,
565,
309,
261,
2188,
1276,
5705,
54,
11710,
8755,
1586,
13,
3196,
202,
1188,
25858,
11710,
8755,
2570,
2421,
5621,
202,
565,
469,
288,
202,
202,
474,
9664,
554,
273,
1024,
28289,
22,
12,
2188,
18,
588,
30950,
1702,
10663,
202,
202,
1188,
7566,
7,
11255,
25859,
4574,
315,
397,
9664,
554,
397,
1548,
82,
8863,
202,
202,
1188,
7566,
7,
11255,
605,
10158,
315,
397,
261,
28101,
554,
300,
404,
13,
397,
1548,
82,
2
] |
configuration = new Configuration("localhost", 7856); configurationContents = configuration.getConfiguration(); | protected void setUp() throws Exception { super.setUp(); getTestContext().setBaseUrl("http://localhost:7854"); configuration = new Configuration("localhost", 7856); configurationContents = configuration.getConfiguration(); } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/3fa7363651b69ef3895466771838fa22a79e4de5/ProjectConfigurationPageWebTest.java/buggy/webtest/net/sourceforge/cruisecontrol/ProjectConfigurationPageWebTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
29384,
1042,
7675,
542,
14074,
2932,
2505,
2207,
13014,
30,
8285,
6564,
8863,
7734,
1664,
273,
394,
4659,
2932,
13014,
3113,
22860,
4313,
1769,
3639,
1664,
6323,
273,
1664,
18,
588,
1750,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
29384,
1042,
7675,
542,
14074,
2932,
2505,
2207,
13014,
30,
8285,
6564,
8863,
7734,
1664,
273,
394,
4659,
2932,
13014,
3113,
22860,
4313,
1769,
3639,
1664,
6323,
273,
1664,
18,
588,
1750,
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
] |
|
complexContentChild, PROCESSING_ALL); | complexContentChild, PROCESSING_ALL_GP); | private void processComplexContent(int typeNameIndex, Element complexContentChild, ComplexTypeInfo typeInfo, QName baseName, boolean isMixed) throws Exception { Element attrNode = null; int index=-2; String typeName = fStringPool.toString(typeNameIndex); if (complexContentChild != null) { // ------------------------------------------------------------- // GROUP, ALL, SEQUENCE or CHOICE, followed by attributes, if specified. // Note that it's possible that only attributes are specified. // ------------------------------------------------------------- String childName = complexContentChild.getLocalName(); if (childName.equals(SchemaSymbols.ELT_GROUP)) { GroupInfo grpInfo = traverseGroupDecl(complexContentChild); int groupIndex = (grpInfo != null) ? grpInfo.contentSpecIndex:-2; index = handleOccurrences(groupIndex, complexContentChild, hasAllContent(groupIndex) ? GROUP_REF_WITH_ALL : NOT_ALL_CONTEXT); attrNode = XUtil.getNextSiblingElement(complexContentChild); } else if (childName.equals(SchemaSymbols.ELT_SEQUENCE)) { index = handleOccurrences(traverseSequence(complexContentChild), complexContentChild); attrNode = XUtil.getNextSiblingElement(complexContentChild); } else if (childName.equals(SchemaSymbols.ELT_CHOICE)) { index = handleOccurrences(traverseChoice(complexContentChild), complexContentChild); attrNode = XUtil.getNextSiblingElement(complexContentChild); } else if (childName.equals(SchemaSymbols.ELT_ALL)) { index = handleOccurrences(traverseAll(complexContentChild), complexContentChild, PROCESSING_ALL); attrNode = XUtil.getNextSiblingElement(complexContentChild); } else if (isAttrOrAttrGroup(complexContentChild)) { // reset the contentType typeInfo.contentType = XMLElementDecl.TYPE_ANY; attrNode = complexContentChild; } else { throw new ComplexTypeRecoverableError( "Invalid child '"+ childName +"' in the complex type"); } } typeInfo.contentSpecHandle = index; // ----------------------------------------------------------------------- // Merge in information from base, if it exists // ----------------------------------------------------------------------- if (typeInfo.baseComplexTypeInfo != null) { int baseContentSpecHandle = typeInfo.baseComplexTypeInfo.contentSpecHandle; //------------------------------------------------------------- // RESTRICTION //------------------------------------------------------------- if (typeInfo.derivedBy == SchemaSymbols.RESTRICTION) { // check to see if the baseType permits derivation by restriction if((typeInfo.baseComplexTypeInfo.finalSet & SchemaSymbols.RESTRICTION) != 0) throw new ComplexTypeRecoverableError("Derivation by restriction is forbidden by either the base type " + fStringPool.toString(baseName.localpart) + " or the schema"); // if the content is EMPTY, check that the base is correct // according to derivation-ok-restriction 5.2 if (typeInfo.contentSpecHandle==-2) { if (!(typeInfo.baseComplexTypeInfo.contentType==XMLElementDecl.TYPE_EMPTY || particleEmptiable(baseContentSpecHandle))) { throw new ComplexTypeRecoverableError("derivation-ok-restrictoin.5.2 Content type of complexType is EMPTY but base is not EMPTY or does not have a particle which is emptiable"); } } // // The hairy derivation by restriction particle constraints // derivation-ok-restriction 5.3 // else { try { checkParticleDerivationOK(typeInfo.contentSpecHandle,fCurrentScope, baseContentSpecHandle,typeInfo.baseComplexTypeInfo.scopeDefined, typeInfo.baseComplexTypeInfo); } catch (ParticleRecoverableError e) { String message = e.getMessage(); throw new ComplexTypeRecoverableError(message); } } } //------------------------------------------------------------- // EXTENSION //------------------------------------------------------------- else { // check to see if the baseType permits derivation by extension if((typeInfo.baseComplexTypeInfo.finalSet & SchemaSymbols.EXTENSION) != 0) throw new ComplexTypeRecoverableError("cos-ct-extends.1.1: Derivation by extension is forbidden by either the base type " + fStringPool.toString(baseName.localpart) + " or the schema"); // // Check if the contentType of the base is consistent with the new type // cos-ct-extends.1.4.2.2 if (typeInfo.baseComplexTypeInfo.contentType != XMLElementDecl.TYPE_EMPTY) { if (((typeInfo.baseComplexTypeInfo.contentType == XMLElementDecl.TYPE_CHILDREN) && isMixed) || ((typeInfo.baseComplexTypeInfo.contentType == XMLElementDecl.TYPE_MIXED_COMPLEX) && !isMixed)) { throw new ComplexTypeRecoverableError("cos-ct-extends.1.4.2.2.2.1: The content type of the base type " + fStringPool.toString(baseName.localpart) + " and derived type " + typeName + " must both be mixed or element-only"); } } // // Compose the final content model by concatenating the base and the // current in sequence // if (baseFromAnotherSchema(baseName)) { String baseSchemaURI = fStringPool.toString(baseName.uri); SchemaGrammar aGrammar= (SchemaGrammar) fGrammarResolver.getGrammar( baseSchemaURI); baseContentSpecHandle = importContentSpec(aGrammar, baseContentSpecHandle); } if (typeInfo.contentSpecHandle == -2) { typeInfo.contentSpecHandle = baseContentSpecHandle; } else if (baseContentSpecHandle > -1) { if (typeInfo.contentSpecHandle > -1 && (hasAllContent(typeInfo.contentSpecHandle) || hasAllContent(baseContentSpecHandle))) { throw new ComplexTypeRecoverableError("cos-all-limited: An \"all\" model group that is part of a complex type definition must constitute the entire {content type} of the definition."); } typeInfo.contentSpecHandle = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_SEQ, baseContentSpecHandle, typeInfo.contentSpecHandle, false); } // // Check that there is a particle in the final content // cos-ct-extends.1.4.2.1 // LM - commented out until I get a clarification from HT // if (typeInfo.contentSpecHandle <0) { throw new ComplexTypeRecoverableError("cos-ct-extends.1.4.2.1: The content of a type derived by EXTENSION must contain a particle"); } } } else { typeInfo.derivedBy = 0; } // ------------------------------------------------------------- // Set the content type // ------------------------------------------------------------- if (isMixed) { // if there are no children, detect an error // See the definition of content type in Structures 3.4.1 // This is commented out for now, until I get a clarification from schema WG // LM. if (typeInfo.contentSpecHandle == -2) { //throw new ComplexTypeRecoverableError("Type '" + typeName + "': The content of a mixed complexType must not be empty"); typeInfo.contentType = XMLElementDecl.TYPE_MIXED_SIMPLE; } else typeInfo.contentType = XMLElementDecl.TYPE_MIXED_COMPLEX; } else if (typeInfo.contentSpecHandle == -2) typeInfo.contentType = XMLElementDecl.TYPE_EMPTY; else typeInfo.contentType = XMLElementDecl.TYPE_CHILDREN; // ------------------------------------------------------------- // add a template element to the grammar element decl pool. // ------------------------------------------------------------- int templateElementNameIndex = fStringPool.addSymbol("$"+typeName); typeInfo.templateElementIndex = fSchemaGrammar.addElementDecl( new QName(-1, templateElementNameIndex,typeNameIndex,fTargetNSURI), (fTargetNSURI==StringPool.EMPTY_STRING) ? StringPool.EMPTY_STRING : fCurrentScope, typeInfo.scopeDefined, typeInfo.contentType, typeInfo.contentSpecHandle, -1, typeInfo.datatypeValidator); typeInfo.attlistHead = fSchemaGrammar.getFirstAttributeDeclIndex( typeInfo.templateElementIndex); // ------------------------------------------------------------- // Now, check attributes and handle // ------------------------------------------------------------- if (attrNode !=null) { if (!isAttrOrAttrGroup(attrNode)) { throw new ComplexTypeRecoverableError( "Invalid child "+ attrNode.getLocalName() + " in the complexType or complexContent"); } else processAttributes(attrNode,baseName,typeInfo); } else if (typeInfo.baseComplexTypeInfo != null) processAttributes(null,baseName,typeInfo); } // end processComplexContent | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/1813e417969028dc870714c567e13675903bd993/TraverseSchema.java/clean/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
12795,
1350,
12,
474,
8173,
1016,
16,
9079,
3010,
7233,
1350,
1763,
16,
16060,
17305,
23112,
16,
16723,
16162,
16,
9079,
1250,
15707,
3960,
13,
1216,
1185,
288,
4202,
3010,
1604,
907,
273,
446,
31,
4202,
509,
770,
29711,
22,
31,
4202,
514,
8173,
273,
284,
780,
2864,
18,
10492,
12,
723,
461,
1016,
1769,
4202,
309,
261,
14259,
1350,
1763,
480,
446,
13,
288,
6647,
368,
13420,
7620,
6647,
368,
13839,
16,
8061,
16,
27118,
578,
6469,
51,
11774,
16,
10860,
635,
1677,
16,
309,
1269,
18,
6647,
368,
3609,
716,
518,
1807,
3323,
716,
1338,
1677,
854,
1269,
18,
6647,
368,
13420,
7620,
1850,
514,
27440,
273,
7233,
1350,
1763,
18,
588,
29583,
5621,
1850,
309,
261,
3624,
461,
18,
14963,
12,
3078,
14821,
18,
2247,
56,
67,
8468,
3719,
288,
9079,
3756,
966,
14295,
966,
273,
10080,
1114,
3456,
12,
14259,
1350,
1763,
1769,
9079,
509,
1041,
1016,
273,
261,
17532,
966,
480,
446,
13,
692,
14295,
966,
18,
1745,
1990,
1016,
30,
17,
22,
31,
9079,
770,
273,
1640,
12397,
12228,
12,
1655,
1016,
16,
27573,
7233,
1350,
1763,
16,
27573,
711,
1595,
1350,
12,
1655,
1016,
13,
692,
13839,
67,
10771,
67,
9147,
67,
4685,
294,
4766,
18701,
4269,
67,
4685,
67,
13181,
1769,
9079,
1604,
907,
273,
1139,
1304,
18,
588,
2134,
10291,
1046,
12,
14259,
1350,
1763,
1769,
6647,
289,
6647,
469,
309,
261,
3624,
461,
18,
14963,
12,
3078,
14821,
18,
2247,
56,
67,
25330,
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,
1207,
12795,
1350,
12,
474,
8173,
1016,
16,
9079,
3010,
7233,
1350,
1763,
16,
16060,
17305,
23112,
16,
16723,
16162,
16,
9079,
1250,
15707,
3960,
13,
1216,
1185,
288,
4202,
3010,
1604,
907,
273,
446,
31,
4202,
509,
770,
29711,
22,
31,
4202,
514,
8173,
273,
284,
780,
2864,
18,
10492,
12,
723,
461,
1016,
1769,
4202,
309,
261,
14259,
1350,
1763,
480,
446,
13,
288,
6647,
368,
13420,
7620,
6647,
368,
13839,
16,
8061,
16,
27118,
578,
6469,
51,
11774,
16,
10860,
635,
1677,
16,
309,
1269,
18,
6647,
368,
3609,
716,
518,
1807,
3323,
716,
1338,
1677,
854,
1269,
18,
6647,
368,
13420,
7620,
1850,
514,
27440,
273,
7233,
1350,
1763,
18,
588,
29583,
2
] |
return new Vector(periodsToDate( evaluator, evaluator.getCube().getQuarterLevel(), getMemberArg(evaluator, args, 0, false))); | Level level = getLevelArg(evaluator, args, 0, false); Member member = getMemberArg(evaluator, args, 1, false); return new Vector(periodsToDate(evaluator, level, member)); | public Object evaluate(Evaluator evaluator, Exp[] args) { return new Vector(periodsToDate( evaluator, evaluator.getCube().getQuarterLevel(), getMemberArg(evaluator, args, 0, false))); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b51b7f4f6bfd44a884afd7801c1f0f8b9351674c/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
25083,
202,
2463,
394,
5589,
12,
6908,
11634,
1626,
12,
6862,
9506,
202,
14168,
639,
16,
6862,
9506,
202,
14168,
639,
18,
588,
39,
4895,
7675,
588,
928,
14153,
2355,
9334,
6862,
9506,
202,
588,
4419,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
629,
3719,
1769,
6862,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
25083,
202,
2463,
394,
5589,
12,
6908,
11634,
1626,
12,
6862,
9506,
202,
14168,
639,
16,
6862,
9506,
202,
14168,
639,
18,
588,
39,
4895,
7675,
588,
928,
14153,
2355,
9334,
6862,
9506,
202,
588,
4419,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
629,
3719,
1769,
6862,
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
] |
char last = pattern.charAt(length - 1); if (pattern.indexOf('*') != -1 || pattern.indexOf('?') != -1) { matchKind = R_PATTERN_MATCH; switch (last) { case END_SYMBOL: fPattern = pattern.substring(0, length - 1); break; case BLANK: fPattern = pattern.trim(); break; case ANY_STRING: fPattern = pattern; break; default: fPattern = pattern + ANY_STRING; } return; } if (last == END_SYMBOL) { matchKind = R_EXACT_MATCH; fPattern = pattern.substring(0, length - 1); return; } if (last == BLANK) { matchKind = R_EXACT_MATCH; fPattern = pattern.trim(); return; } if (validateMatchRule(pattern, R_CAMELCASE_MATCH) == R_CAMELCASE_MATCH) { matchKind = R_CAMELCASE_MATCH; fPattern = pattern; return; } matchKind = R_PREFIX_MATCH; fPattern = pattern; } | private void initializePatternAndMatchKind(String pattern) { int length = pattern.length(); if (length == 0) { matchKind = R_EXACT_MATCH; fPattern = pattern; return; } char last = pattern.charAt(length - 1); if (pattern.indexOf('*') != -1 || pattern.indexOf('?') != -1) { matchKind = R_PATTERN_MATCH; switch (last) { case END_SYMBOL: fPattern = pattern.substring(0, length - 1); break; case BLANK: fPattern = pattern.trim(); break; case ANY_STRING: fPattern = pattern; break; default: fPattern = pattern + ANY_STRING; } return; } if (last == END_SYMBOL) { matchKind = R_EXACT_MATCH; fPattern = pattern.substring(0, length - 1); return; } if (last == BLANK) { matchKind = R_EXACT_MATCH; fPattern = pattern.trim(); return; } if (validateMatchRule(pattern, R_CAMELCASE_MATCH) == R_CAMELCASE_MATCH) { matchKind = R_CAMELCASE_MATCH; fPattern = pattern; return; } matchKind = R_PREFIX_MATCH; fPattern = pattern;} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ea0718e0ea8d8a7b8c1c9d464be2b2219d8be426/SearchPattern.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/SearchPattern.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
4046,
3234,
1876,
2060,
5677,
12,
780,
1936,
13,
288,
202,
474,
769,
273,
1936,
18,
2469,
5621,
202,
430,
261,
2469,
422,
374,
13,
288,
202,
202,
1916,
5677,
273,
534,
67,
2294,
6526,
67,
11793,
31,
202,
202,
74,
3234,
273,
1936,
31,
202,
202,
2463,
31,
202,
97,
202,
3001,
1142,
273,
1936,
18,
3001,
861,
12,
2469,
300,
404,
1769,
202,
430,
261,
4951,
18,
31806,
2668,
4035,
13,
480,
300,
21,
747,
1936,
18,
31806,
2668,
4899,
13,
480,
300,
21,
13,
288,
202,
202,
1916,
5677,
273,
534,
67,
10831,
67,
11793,
31,
202,
202,
9610,
261,
2722,
13,
288,
202,
202,
3593,
7273,
67,
22093,
30,
1082,
202,
74,
3234,
273,
1936,
18,
28023,
12,
20,
16,
769,
300,
404,
1769,
1082,
202,
8820,
31,
202,
202,
3593,
29727,
30,
1082,
202,
74,
3234,
273,
1936,
18,
5290,
5621,
1082,
202,
8820,
31,
202,
202,
3593,
16743,
67,
5804,
30,
1082,
202,
74,
3234,
273,
1936,
31,
1082,
202,
8820,
31,
202,
202,
1886,
30,
1082,
202,
74,
3234,
273,
1936,
397,
16743,
67,
5804,
31,
202,
202,
97,
202,
202,
2463,
31,
202,
97,
202,
430,
261,
2722,
422,
7273,
67,
22093,
13,
288,
202,
202,
1916,
5677,
273,
534,
67,
2294,
6526,
67,
11793,
31,
202,
202,
74,
3234,
273,
1936,
18,
28023,
12,
20,
16,
769,
300,
404,
1769,
202,
202,
2463,
31,
202,
97,
202,
430,
261,
2722,
422,
29727,
13,
288,
202,
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,
3238,
918,
4046,
3234,
1876,
2060,
5677,
12,
780,
1936,
13,
288,
202,
474,
769,
273,
1936,
18,
2469,
5621,
202,
430,
261,
2469,
422,
374,
13,
288,
202,
202,
1916,
5677,
273,
534,
67,
2294,
6526,
67,
11793,
31,
202,
202,
74,
3234,
273,
1936,
31,
202,
202,
2463,
31,
202,
97,
202,
3001,
1142,
273,
1936,
18,
3001,
861,
12,
2469,
300,
404,
1769,
202,
430,
261,
4951,
18,
31806,
2668,
4035,
13,
480,
300,
21,
747,
1936,
18,
31806,
2668,
4899,
13,
480,
300,
21,
13,
288,
202,
202,
1916,
5677,
273,
534,
67,
10831,
67,
11793,
31,
202,
202,
9610,
261,
2722,
13,
288,
202,
202,
3593,
7273,
67,
22093,
30,
1082,
202,
74,
3234,
2
] |
|
if (selections.size() == 0) | if (selections.size() == 0) { | public void run() { Iterator keyIterator = items.keySet().iterator(); //Update the store before the hierarchy to prevent updating parents before all of the children are done while (keyIterator.hasNext()) { Object key = keyIterator.next(); //Replace the items in the checked state store with those from the supplied items List selections = (List) items.get(key); if (selections.size() == 0) //If it is empty remove it from the list checkedStateStore.remove(key); else { checkedStateStore.put(key, selections); // proceed up the tree element hierarchy Object parent = treeContentProvider .getParent(key); if (parent != null) { addToHierarchyToCheckedStore(parent); } } } //Now update hierarchies keyIterator = items.keySet().iterator(); while (keyIterator.hasNext()) { Object key = keyIterator.next(); updateHierarchy(key); if (currentTreeSelection != null && currentTreeSelection.equals(key)) { listViewer.setAllChecked(false); listViewer.setCheckedElements(((List) items .get(key)).toArray()); } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CheckboxTreeAndListGroup.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/CheckboxTreeAndListGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
918,
1086,
1435,
288,
13491,
4498,
498,
3198,
273,
1516,
18,
856,
694,
7675,
9838,
5621,
13491,
368,
1891,
326,
1707,
1865,
326,
9360,
358,
5309,
9702,
6298,
1865,
777,
434,
326,
2325,
854,
2731,
13491,
1323,
261,
856,
3198,
18,
5332,
2134,
10756,
288,
18701,
1033,
498,
273,
498,
3198,
18,
4285,
5621,
18701,
368,
5729,
326,
1516,
316,
326,
5950,
919,
1707,
598,
5348,
628,
326,
4580,
1516,
18701,
987,
21738,
273,
261,
682,
13,
1516,
18,
588,
12,
856,
1769,
18701,
309,
261,
10705,
87,
18,
1467,
1435,
422,
374,
13,
288,
27573,
368,
2047,
518,
353,
1008,
1206,
518,
628,
326,
666,
27573,
5950,
1119,
2257,
18,
4479,
12,
856,
1769,
18701,
469,
288,
27573,
5950,
1119,
2257,
18,
458,
12,
856,
16,
21738,
1769,
27573,
368,
11247,
731,
326,
2151,
930,
9360,
27573,
1033,
982,
273,
2151,
1350,
2249,
4766,
3639,
263,
588,
3054,
12,
856,
1769,
27573,
309,
261,
2938,
480,
446,
13,
288,
4766,
565,
9604,
12074,
774,
11454,
2257,
12,
2938,
1769,
27573,
289,
18701,
289,
13491,
289,
13491,
368,
8674,
1089,
366,
5148,
606,
13491,
498,
3198,
273,
1516,
18,
856,
694,
7675,
9838,
5621,
13491,
1323,
261,
856,
3198,
18,
5332,
2134,
10756,
288,
18701,
1033,
498,
273,
498,
3198,
18,
4285,
5621,
18701,
1089,
12074,
12,
856,
1769,
18701,
309,
261,
2972,
2471,
6233,
480,
446,
4766,
565,
597,
783,
2471,
6233,
18,
14963,
12,
856,
3719,
288,
27573,
666,
18415,
18,
542,
1595,
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,
5397,
1071,
918,
1086,
1435,
288,
13491,
4498,
498,
3198,
273,
1516,
18,
856,
694,
7675,
9838,
5621,
13491,
368,
1891,
326,
1707,
1865,
326,
9360,
358,
5309,
9702,
6298,
1865,
777,
434,
326,
2325,
854,
2731,
13491,
1323,
261,
856,
3198,
18,
5332,
2134,
10756,
288,
18701,
1033,
498,
273,
498,
3198,
18,
4285,
5621,
18701,
368,
5729,
326,
1516,
316,
326,
5950,
919,
1707,
598,
5348,
628,
326,
4580,
1516,
18701,
987,
21738,
273,
261,
682,
13,
1516,
18,
588,
12,
856,
1769,
18701,
309,
261,
10705,
87,
18,
1467,
1435,
422,
374,
13,
288,
27573,
368,
2047,
518,
353,
1008,
1206,
518,
628,
326,
666,
27573,
5950,
1119,
2257,
18,
4479,
12,
856,
1769,
18701,
469,
2
] |
if (count == Short.MAX_VALUE) { | if (nextCount == Short.MAX_VALUE) { | public UID() { synchronized (lock) { if (count == Short.MAX_VALUE) { long newtime; for (;;) { newtime = System.currentTimeMillis(); if (newtime - baseTime > 1000) { break; } try { Thread.sleep(1000); } catch (InterruptedException _) { } } baseTime = newtime; nextCount = Short.MIN_VALUE; } count = nextCount++; unique = uniqueNr; time = baseTime; }} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/UID.java/clean/core/src/classpath/java/java/rmi/server/UID.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
10034,
1435,
288,
202,
22043,
261,
739,
13,
288,
202,
202,
430,
261,
1883,
422,
7925,
18,
6694,
67,
4051,
13,
288,
1082,
202,
5748,
394,
957,
31,
1082,
202,
1884,
261,
25708,
13,
288,
9506,
202,
2704,
957,
273,
2332,
18,
2972,
28512,
5621,
9506,
202,
430,
261,
2704,
957,
300,
1026,
950,
405,
4336,
13,
288,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
698,
288,
6862,
202,
3830,
18,
19607,
12,
18088,
1769,
9506,
202,
97,
9506,
202,
14683,
261,
24485,
503,
389,
13,
288,
9506,
202,
97,
1082,
202,
97,
1082,
202,
1969,
950,
273,
394,
957,
31,
1082,
202,
4285,
1380,
273,
7925,
18,
6236,
67,
4051,
31,
202,
202,
97,
202,
202,
1883,
273,
1024,
1380,
9904,
31,
202,
202,
6270,
273,
3089,
18726,
31,
202,
202,
957,
273,
1026,
950,
31,
202,
9090,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
10034,
1435,
288,
202,
22043,
261,
739,
13,
288,
202,
202,
430,
261,
1883,
422,
7925,
18,
6694,
67,
4051,
13,
288,
1082,
202,
5748,
394,
957,
31,
1082,
202,
1884,
261,
25708,
13,
288,
9506,
202,
2704,
957,
273,
2332,
18,
2972,
28512,
5621,
9506,
202,
430,
261,
2704,
957,
300,
1026,
950,
405,
4336,
13,
288,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
698,
288,
6862,
202,
3830,
18,
19607,
12,
18088,
1769,
9506,
202,
97,
9506,
202,
14683,
261,
24485,
503,
389,
13,
288,
9506,
202,
97,
1082,
202,
97,
1082,
202,
1969,
950,
273,
394,
957,
31,
1082,
202,
4285,
1380,
273,
7925,
18,
6236,
67,
4051,
31,
202,
202,
97,
202,
2
] |
new NoViableAltException("900:2: fact_expression[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact );", 28, 0, input); | new NoViableAltException("900:2: fact_expression[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact );", 27, 0, input); | public BaseDescr fact_expression(String id) throws RecognitionException { BaseDescr pd = null; BaseDescr fe = null; BaseDescr f = null; pd = null; boolean multi = false; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:905:5: ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact ) int alt28=2; int LA28_0 = input.LA(1); if ( (LA28_0==LEFT_PAREN) ) { alt28=1; } else if ( (LA28_0==ID) ) { alt28=2; } else { if (backtracking>0) {failed=true; return pd;} NoViableAltException nvae = new NoViableAltException("900:2: fact_expression[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact );", 28, 0, input); throw nvae; } switch (alt28) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:905:5: ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' { match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact_expression1771); if (failed) return pd; pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression1775); fe=fact_expression_in_paren(id); _fsp--; if (failed) return pd; match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact_expression1778); if (failed) return pd; if ( backtracking==0 ) { pd=fe; } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:906:6: f= fact { pushFollow(FOLLOW_fact_in_fact_expression1789); f=fact(); _fsp--; if (failed) return pd; if ( backtracking==0 ) { ((ColumnDescr)f).setIdentifier( id ); pd = f; } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return pd; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/afea9f80e7c11e7b76df18f232d3b5ca5ad21e72/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3360,
16198,
5410,
67,
8692,
12,
780,
612,
13,
1216,
9539,
288,
6647,
3360,
16198,
4863,
273,
446,
31,
3639,
3360,
16198,
1656,
273,
446,
31,
3639,
3360,
16198,
284,
273,
446,
31,
1171,
3196,
202,
22353,
273,
446,
31,
1850,
202,
202,
6494,
3309,
273,
629,
31,
1850,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
29,
6260,
30,
25,
30,
261,
261,
7321,
5410,
67,
8692,
67,
267,
67,
13012,
63,
350,
65,
5777,
13216,
7321,
1656,
33,
5410,
67,
8692,
67,
267,
67,
13012,
63,
350,
65,
5777,
571,
284,
33,
5410,
262,
5411,
509,
3770,
6030,
33,
22,
31,
5411,
509,
2928,
6030,
67,
20,
273,
810,
18,
2534,
12,
21,
1769,
5411,
309,
261,
261,
2534,
6030,
67,
20,
631,
10066,
67,
15111,
13,
262,
288,
7734,
3770,
6030,
33,
21,
31,
5411,
289,
5411,
469,
309,
261,
261,
2534,
6030,
67,
20,
631,
734,
13,
262,
288,
7734,
3770,
6030,
33,
22,
31,
5411,
289,
5411,
469,
288,
7734,
309,
261,
823,
6440,
34,
20,
13,
288,
7307,
33,
3767,
31,
327,
4863,
31,
97,
7734,
17114,
15077,
273,
10792,
394,
17114,
2932,
29,
713,
30,
22,
30,
5410,
67,
8692,
63,
780,
612,
65,
1135,
306,
2171,
16198,
4863,
65,
294,
261,
261,
7321,
5410,
67,
8692,
67,
267,
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,
3360,
16198,
5410,
67,
8692,
12,
780,
612,
13,
1216,
9539,
288,
6647,
3360,
16198,
4863,
273,
446,
31,
3639,
3360,
16198,
1656,
273,
446,
31,
3639,
3360,
16198,
284,
273,
446,
31,
1171,
3196,
202,
22353,
273,
446,
31,
1850,
202,
202,
6494,
3309,
273,
629,
31,
1850,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
29,
6260,
30,
25,
30,
261,
261,
7321,
5410,
67,
8692,
67,
267,
67,
13012,
63,
350,
65,
5777,
13216,
7321,
1656,
33,
5410,
67,
8692,
67,
267,
67,
13012,
63,
2
] |
{ if (active) throw new IllegalStateException ("already parsing"); if (getProperty (propertyId) != value) filter.setProperty (propertyId, value); } | { if (active) { throw new IllegalStateException("already parsing"); } if (getProperty(propertyId) != value) { filter.setProperty(propertyId, value); } } | public void setProperty (String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (active) throw new IllegalStateException ("already parsing"); if (getProperty (propertyId) != value) filter.setProperty (propertyId, value); } | 27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlReader.java/buggy/libjava/gnu/xml/aelfred2/XmlReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7486,
261,
780,
31894,
16,
1033,
460,
13,
565,
1216,
10168,
1248,
5650,
9367,
503,
16,
10168,
25482,
565,
288,
202,
430,
261,
3535,
13,
202,
565,
604,
394,
5477,
7566,
17583,
5811,
8863,
202,
430,
261,
588,
1396,
261,
4468,
548,
13,
480,
460,
13,
202,
565,
1034,
18,
542,
1396,
261,
4468,
548,
16,
460,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7486,
261,
780,
31894,
16,
1033,
460,
13,
565,
1216,
10168,
1248,
5650,
9367,
503,
16,
10168,
25482,
565,
288,
202,
430,
261,
3535,
13,
202,
565,
604,
394,
5477,
7566,
17583,
5811,
8863,
202,
430,
261,
588,
1396,
261,
4468,
548,
13,
480,
460,
13,
202,
565,
1034,
18,
542,
1396,
261,
4468,
548,
16,
460,
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
] |
public EntityResolver2Wrapper(EntityResolver2 entityResolver) { setEntityResolver(entityResolver); } | public EntityResolver2Wrapper() {} | public EntityResolver2Wrapper(EntityResolver2 entityResolver) { setEntityResolver(entityResolver); } // <init>(EntityResolver2) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/c7c7140fbc0baf115a90871a337515ebc33c7265/EntityResolver2Wrapper.java/buggy/src/org/apache/xerces/util/EntityResolver2Wrapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3887,
4301,
22,
3611,
12,
1943,
4301,
22,
1522,
4301,
13,
288,
3639,
20739,
4301,
12,
1096,
4301,
1769,
565,
289,
368,
411,
2738,
34,
12,
1943,
4301,
22,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3887,
4301,
22,
3611,
12,
1943,
4301,
22,
1522,
4301,
13,
288,
3639,
20739,
4301,
12,
1096,
4301,
1769,
565,
289,
368,
411,
2738,
34,
12,
1943,
4301,
22,
13,
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
] |
return getWorksiteManager().getUserSites(); | return getWorksiteManager().getUserSites(null, siteTypes); | public List getObjects() { return getWorksiteManager().getUserSites(); } | 48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/54d36f1be956f33b2e355a545b0bfddc7871ea55/WorksiteListGenerator.java/buggy/common/api-impl/src/java/org/theospi/portfolio/worksite/mgt/impl/WorksiteListGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
987,
336,
4710,
1435,
288,
1377,
327,
29026,
4256,
1318,
7675,
588,
1299,
17055,
12,
2011,
16,
2834,
2016,
1769,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
565,
1071,
987,
336,
4710,
1435,
288,
1377,
327,
29026,
4256,
1318,
7675,
588,
1299,
17055,
12,
2011,
16,
2834,
2016,
1769,
282,
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
] |
jPanel1.add(jUploading, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0 | jContentPanel.add(jUploading, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0 | private void jbInit() { this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); this.getContentPane().add(jPanel1, BorderLayout.CENTER); jPanel1.setLayout(new GridBagLayout()); jComputer1.setIcon(GalleryRemote.iComputer); jComputer2.setIcon(GalleryRemote.iComputer); jUploading.setIcon(GalleryRemote.iUploading); jLabelGlobal.setText(GRI18n.getString(MODULE, "upImgNM")); jLabelDetail.setText(GRI18n.getString(MODULE, "upImgGif")); jCancel.setText(GRI18n.getString("Common", "Cancel")); jCancel.addActionListener(this); jCancel.setActionCommand("Cancel"); jShutdown.setToolTipText(GRI18n.getString(MODULE, "shutDownTip")); jShutdown.setText(GRI18n.getString(MODULE, "shutDown")); jPanel1.add(jComputer1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 , GridBagConstraints.EAST, GridBagConstraints.HORIZONTAL, new Insets(10, 10, 0, 0), 0, 0)); jPanel1.add(jUploading, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(10, 0, 0, 0), 0, 0)); jPanel1.add(jComputer2, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0 , GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(10, 0, 0, 10), 0, 0)); jPanel1.add(jLabelGlobal, new GridBagConstraints(0, 1, 3, 1, 1.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(10, 10, 0, 0), 0, 0)); jPanel1.add(jProgressGlobal, new GridBagConstraints(0, 2, 3, 1, 1.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 15, 0, 15), 0, 0)); jPanel1.add(jLabelDetail, new GridBagConstraints(0, 3, 3, 1, 1.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 10, 0, 0), 0, 0)); jPanel1.add(jProgressDetail, new GridBagConstraints(0, 4, 3, 1, 1.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 15, 0, 15), 0, 0)); jPanel1.add(jPanel2, new GridBagConstraints(0, 5, 3, 1, 0.0, 0.0 , GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); try { Class osShutdown = Class.forName("com.gallery.GalleryRemote.util.OsShutdown"); Method canShutdown = osShutdown.getMethod("canShutdown", null); if (((Boolean) canShutdown.invoke(null, null)).booleanValue()) { jPanel2.add(jShutdown, null); } } catch (Exception e) { Log.log(Log.LEVEL_TRACE, MODULE, "OsShutdown not supported, hiding checkbox"); } jPanel2.add(jCancel, null); } | 9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/85fcb80ab7b07a38400646288f4ba103a8ec961b/UploadProgress.java/clean/com/gallery/GalleryRemote/UploadProgress.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
20515,
2570,
1435,
288,
202,
202,
2211,
18,
542,
1868,
4605,
2988,
12,
3829,
2918,
18,
3191,
67,
4400,
44,
1360,
67,
673,
67,
13384,
1769,
202,
202,
2211,
18,
588,
1350,
8485,
7675,
1289,
12,
78,
5537,
21,
16,
30814,
18,
19835,
1769,
202,
202,
78,
5537,
21,
18,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
202,
202,
78,
7703,
264,
21,
18,
542,
5554,
12,
18511,
5169,
18,
77,
7703,
264,
1769,
202,
202,
78,
7703,
264,
22,
18,
542,
5554,
12,
18511,
5169,
18,
77,
7703,
264,
1769,
202,
202,
78,
4777,
310,
18,
542,
5554,
12,
18511,
5169,
18,
77,
4777,
310,
1769,
202,
202,
78,
2224,
5160,
18,
542,
1528,
12,
43,
2259,
2643,
82,
18,
588,
780,
12,
12194,
16,
315,
416,
12804,
50,
49,
7923,
1769,
202,
202,
78,
2224,
6109,
18,
542,
1528,
12,
43,
2259,
2643,
82,
18,
588,
780,
12,
12194,
16,
315,
416,
12804,
43,
430,
7923,
1769,
202,
202,
78,
6691,
18,
542,
1528,
12,
43,
2259,
2643,
82,
18,
588,
780,
2932,
6517,
3113,
315,
6691,
7923,
1769,
202,
202,
78,
6691,
18,
1289,
1803,
2223,
12,
2211,
1769,
202,
202,
78,
6691,
18,
542,
1803,
2189,
2932,
6691,
8863,
202,
202,
78,
10961,
18,
542,
29250,
1528,
12,
43,
2259,
2643,
82,
18,
588,
780,
12,
12194,
16,
315,
674,
322,
4164,
14189,
7923,
1769,
202,
202,
78,
10961,
18,
542,
1528,
12,
43,
2259,
2643,
82,
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,
225,
202,
1152,
918,
20515,
2570,
1435,
288,
202,
202,
2211,
18,
542,
1868,
4605,
2988,
12,
3829,
2918,
18,
3191,
67,
4400,
44,
1360,
67,
673,
67,
13384,
1769,
202,
202,
2211,
18,
588,
1350,
8485,
7675,
1289,
12,
78,
5537,
21,
16,
30814,
18,
19835,
1769,
202,
202,
78,
5537,
21,
18,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
202,
202,
78,
7703,
264,
21,
18,
542,
5554,
12,
18511,
5169,
18,
77,
7703,
264,
1769,
202,
202,
78,
7703,
264,
22,
18,
542,
5554,
12,
18511,
5169,
18,
77,
7703,
264,
1769,
202,
202,
78,
4777,
310,
18,
542,
5554,
12,
18511,
5169,
18,
77,
4777,
310,
1769,
202,
202,
78,
2224,
5160,
18,
542,
2
] |
logger.info("Filter " + thisFilter.getInternalName() + " returned for " + lastWord + " has field " + thisField + "\n"); | logger.info( "Filter " + thisFilter.getInternalName() + " returned for " + lastWord + " has field " + thisField + "\n"); | public void SetModeForLine(String currentCommand) { if (lastLine == null || !(lastLine.equals(currentCommand))) { if (currentCommand.indexOf(DESCRIBE) >= 0) SetDescribeMode(); else if (currentCommand.indexOf(HELP) >= 0) SetHelpMode(); else if (currentCommand.indexOf(USE) >= 0) SetDatasetMode(); else { int usingInd = currentCommand.lastIndexOf(MartShellLib.USINGQSTART); if (usingInd >= 0) { usingLocalDataset = true; //set currentDataset String testString = currentCommand.substring(usingInd); Matcher qModeMatcher = qModePattern.matcher(testString); if (qModeMatcher.matches()) { String datasetName = qModeMatcher.group(1); if (martconf.containsDataset(datasetName)) currentDataset = martconf.getDatasetByName(datasetName); else currentDataset = null; // if not contained, no dataset should be set } } String[] lineWords = currentCommand.split(" "); // split on single space // determine which mode to be in during a query int getInd = currentCommand.lastIndexOf(MartShellLib.GETQSTART); int seqInd = currentCommand.lastIndexOf(MartShellLib.QSEQUENCE); int whereInd = currentCommand.lastIndexOf(MartShellLib.QWHERE); int limitInd = currentCommand.lastIndexOf(MartShellLib.QLIMIT); if ((usingInd > seqInd) && (usingInd > getInd) && (usingInd > whereInd) && (usingInd > limitInd)) SetDatasetMode(); if ((seqInd > usingInd) && (seqInd > getInd) && (seqInd > whereInd) && (seqInd > limitInd)) SetSequenceMode(); if ((getInd > usingInd) && (getInd > seqInd) && (getInd > whereInd) && (getInd > limitInd)) attributeMode = true; if ((whereInd > usingInd) && (whereInd > seqInd) && (whereInd > getInd) && (whereInd > limitInd)) { attributeMode = false; whereMode = true; } if ((limitInd > usingInd) && (limitInd > getInd) && (limitInd > seqInd) && (limitInd > whereInd)) { attributeMode = false; whereMode = false; SetEmptyMode(); } // if none of the key placeholders are present, may still need to further refine the mode if (attributeMode) { if (lineWords.length > 0) { String lastWord = lineWords[lineWords.length - 1]; if (!(lastWord.equals(MartShellLib.GETQSTART))) { if (lastWord.endsWith(",")) { lastAttributeName = lastWord.substring(0, lastWord.length() - 1); pruneAttributePages(); } } SetAttributeNames(); } } if (whereMode) { if (! (whereNamesMode || whereQualifiersMode || whereValuesMode) ) { //first time in whereNamesMode = true; whereQualifiersMode = false; whereValuesMode = true; SetWhereNames(); } if (lineWords.length > 0) { String lastWord = lineWords[lineWords.length - 1]; if (lastWord.equals(MartShellLib.QWHERE)) { lastFilterName = null; whereNamesMode = true; whereQualifiersMode = false; whereValuesMode = true; SetWhereNames(); } if (whereNamesMode) { logger.info("Still in whereNamesMode\n"); if (currentDataset != null) { if (currentDataset.containsFilterDescription(lastWord)) { String thisField = currentDataset.getFilterDescriptionByInternalName(lastWord).getField(lastWord); if (thisField != null && thisField.length() > 0) { lastFilterName = lastWord; pruneFilterPages(); logger.info(lastWord + " appears to be a filter, going to whereQualifiersMode\n"); whereNamesMode = false; whereQualifiersMode = true; whereValuesMode = false; SetWhereQualifiers(); } } } else if (!usingLocalDataset && envDataset != null) { if (envDataset.containsFilterDescription(lastWord)) { logger.info(lastWord + " is part of dataset, but is it a real filter?\n"); FilterDescription thisFilter = envDataset.getFilterDescriptionByInternalName(lastWord); String thisField = thisFilter.getField(lastWord); logger.info("Filter " + thisFilter.getInternalName() + " returned for " + lastWord + " has field " + thisField + "\n"); if (thisField != null && thisField.length() > 0) { lastFilterName = lastWord; pruneFilterPages(); logger.info(lastWord + " appears to be a filter, going to whereQualifiersMode\n"); whereNamesMode = false; whereQualifiersMode = true; whereValuesMode = false; SetWhereQualifiers(); } } } else SetNoDatasetMode(); } else if (whereQualifiersMode) { logger.info("Still in whereQualifiersMode\n"); if (MartShellLib.ALLQUALIFIERS.contains(lastWord)) { logger.info(lastWord + " appears to be a qualifier"); if (lineWords.length > 1) { lastFilterName = lineWords[lineWords.length - 2]; pruneFilterPages(); } if (MartShellLib.BOOLEANQUALIFIERS.contains(lastWord)) { logger.info(" staying in whereQualifiers Mode after boolean qualifier\n"); SetEmptyMode(); } else { logger.info(" going to whereValuesMode\n"); whereQualifiersMode = false; whereValuesMode = true; SetWhereValues(); } } else if (lastWord.equalsIgnoreCase(MartShellLib.FILTERDELIMITER)) { whereNamesMode = true; whereQualifiersMode = false; whereValuesMode = false; logger.info("and encountered after boolean qualifier, going to whereNamesMode\n"); pruneFilterPages(); SetWhereNames(); } } else if (whereValuesMode) { logger.info("Still in whereValuesMode\n"); if (lastWord.equalsIgnoreCase(MartShellLib.FILTERDELIMITER)) { whereNamesMode = true; whereQualifiersMode = false; whereValuesMode = false; logger.info("and encountered after value, going to whereNamesMode\n"); pruneFilterPages(); SetWhereNames(); } } } } } lastLine = currentCommand; } } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/a7fdb0c76c1e35ce769ae06a1fa50dbd342639d8/MartCompleter.java/clean/src/java/org/ensembl/mart/shell/MartCompleter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1000,
2309,
1290,
1670,
12,
780,
783,
2189,
13,
288,
202,
202,
430,
261,
2722,
1670,
422,
446,
747,
401,
12,
2722,
1670,
18,
14963,
12,
2972,
2189,
20349,
288,
1082,
202,
430,
261,
2972,
2189,
18,
31806,
12,
1639,
26469,
13,
1545,
374,
13,
9506,
202,
694,
8782,
2309,
5621,
1082,
202,
12107,
309,
261,
2972,
2189,
18,
31806,
12,
27396,
13,
1545,
374,
13,
9506,
202,
694,
6696,
2309,
5621,
1082,
202,
12107,
309,
261,
2972,
2189,
18,
31806,
12,
8001,
13,
1545,
374,
13,
9506,
202,
694,
10656,
2309,
5621,
1082,
202,
12107,
288,
9506,
202,
474,
1450,
3866,
273,
783,
2189,
18,
2722,
31985,
12,
49,
485,
13220,
5664,
18,
3378,
1360,
53,
7570,
1769,
9506,
202,
430,
261,
9940,
3866,
1545,
374,
13,
288,
6862,
202,
9940,
2042,
10656,
273,
638,
31,
6862,
202,
759,
542,
783,
10656,
6862,
202,
780,
1842,
780,
273,
783,
2189,
18,
28023,
12,
9940,
3866,
1769,
6862,
202,
6286,
1043,
2309,
6286,
273,
1043,
2309,
3234,
18,
22761,
12,
3813,
780,
1769,
6862,
202,
430,
261,
85,
2309,
6286,
18,
8436,
10756,
288,
25083,
202,
780,
3709,
461,
273,
1043,
2309,
6286,
18,
1655,
12,
21,
1769,
25083,
202,
430,
261,
81,
485,
3923,
18,
12298,
10656,
12,
8682,
461,
3719,
6862,
1082,
202,
2972,
10656,
273,
312,
485,
3923,
18,
588,
10656,
5911,
12,
8682,
461,
1769,
25083,
202,
12107,
6862,
1082,
202,
2972,
10656,
273,
446,
31,
368,
309,
486,
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,
1000,
2309,
1290,
1670,
12,
780,
783,
2189,
13,
288,
202,
202,
430,
261,
2722,
1670,
422,
446,
747,
401,
12,
2722,
1670,
18,
14963,
12,
2972,
2189,
20349,
288,
1082,
202,
430,
261,
2972,
2189,
18,
31806,
12,
1639,
26469,
13,
1545,
374,
13,
9506,
202,
694,
8782,
2309,
5621,
1082,
202,
12107,
309,
261,
2972,
2189,
18,
31806,
12,
27396,
13,
1545,
374,
13,
9506,
202,
694,
6696,
2309,
5621,
1082,
202,
12107,
309,
261,
2972,
2189,
18,
31806,
12,
8001,
13,
1545,
374,
13,
9506,
202,
694,
10656,
2309,
5621,
1082,
202,
12107,
288,
9506,
202,
474,
1450,
3866,
273,
783,
2189,
18,
2722,
31985,
12,
49,
485,
13220,
5664,
18,
3378,
2
] |
RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); | RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); | public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
745,
20,
12,
202,
202,
54,
10340,
921,
10665,
16,
202,
202,
54,
10340,
548,
612,
16,
202,
202,
54,
10340,
4926,
833,
16,
202,
202,
907,
1417,
16,
202,
202,
6494,
1158,
8051,
13,
288,
202,
202,
759,
1372,
202,
202,
430,
261,
588,
54,
10340,
7675,
588,
2360,
7675,
588,
2360,
1435,
422,
19817,
2360,
18,
11844,
67,
3670,
13,
288,
1082,
202,
588,
54,
10340,
7675,
588,
2360,
7675,
6206,
12,
54,
10340,
2360,
18,
11844,
67,
7509,
1769,
202,
202,
97,
469,
288,
1082,
202,
588,
54,
10340,
7675,
588,
2360,
7675,
6206,
12,
54,
10340,
2360,
18,
11844,
67,
4400,
1769,
202,
202,
97,
202,
202,
54,
10340,
3219,
2623,
273,
4170,
10340,
7675,
588,
54,
10340,
3219,
5621,
202,
202,
3789,
18,
6206,
5621,
202,
202,
3789,
18,
542,
3024,
2622,
12,
350,
1769,
202,
202,
3789,
18,
542,
3024,
797,
12,
2135,
8051,
692,
446,
294,
333,
1769,
202,
202,
3789,
18,
542,
10084,
12,
18334,
1769,
202,
202,
3789,
18,
542,
2615,
12,
1968,
1769,
202,
202,
54,
10340,
921,
563,
273,
1082,
202,
12443,
11452,
907,
13,
1417,
2934,
1991,
12,
588,
54,
10340,
9334,
10665,
16,
612,
16,
833,
16,
1158,
8051,
1769,
202,
202,
588,
54,
10340,
7675,
588,
54,
10340,
3219,
7675,
5120,
5621,
202,
202,
588,
54,
10340,
7675,
588,
2360,
7675,
5120,
5621,
202,
202,
2463,
563,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
745,
20,
12,
202,
202,
54,
10340,
921,
10665,
16,
202,
202,
54,
10340,
548,
612,
16,
202,
202,
54,
10340,
4926,
833,
16,
202,
202,
907,
1417,
16,
202,
202,
6494,
1158,
8051,
13,
288,
202,
202,
759,
1372,
202,
202,
430,
261,
588,
54,
10340,
7675,
588,
2360,
7675,
588,
2360,
1435,
422,
19817,
2360,
18,
11844,
67,
3670,
13,
288,
1082,
202,
588,
54,
10340,
7675,
588,
2360,
7675,
6206,
12,
54,
10340,
2360,
18,
11844,
67,
7509,
1769,
202,
202,
97,
469,
288,
1082,
202,
588,
54,
10340,
7675,
588,
2360,
7675,
6206,
12,
54,
10340,
2360,
18,
11844,
67,
4400,
1769,
202,
202,
97,
202,
202,
54,
10340,
3219,
2
] |
if (resourcesToExport == null) totalWork = countChildrenOf(resource); else totalWork = countSelectedResources(); | if (resourcesToExport == null) { totalWork = countChildrenOf(resource); } else { totalWork = countSelectedResources(); } | public void run(IProgressMonitor progressMonitor) throws InvocationTargetException, InterruptedException { this.monitor = progressMonitor; try { initialize(); } catch (IOException e) { throw new InvocationTargetException(e, NLS.bind(DataTransferMessages.ZipExport_cannotOpen, e.getMessage())); } try { // ie.- a single resource for recursive export was specified int totalWork = IProgressMonitor.UNKNOWN; try { if (resourcesToExport == null) totalWork = countChildrenOf(resource); else totalWork = countSelectedResources(); } catch (CoreException e) { // Should not happen } monitor.beginTask(DataTransferMessages.DataTransfer_exportingTitle, totalWork); if (resourcesToExport == null) { exportResource(resource); } else { // ie.- a list of specific resources to export was specified exportSpecifiedResources(); } try { exporter.finished(); } catch (IOException e) { throw new InvocationTargetException( e, NLS.bind(DataTransferMessages.ZipExport_cannotClose, e.getMessage())); } } finally { monitor.done(); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/ArchiveFileExportOperation.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/ArchiveFileExportOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
45,
5491,
7187,
4007,
7187,
13,
5411,
1216,
15342,
16,
7558,
288,
3639,
333,
18,
10259,
273,
4007,
7187,
31,
3639,
775,
288,
5411,
4046,
5621,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
604,
394,
15342,
12,
73,
16,
29117,
18,
4376,
12,
751,
5912,
5058,
18,
9141,
6144,
67,
12892,
3678,
16,
425,
18,
24906,
1435,
10019,
3639,
289,
3639,
775,
288,
5411,
368,
9228,
18,
17,
279,
2202,
1058,
364,
5904,
3359,
1703,
1269,
5411,
509,
2078,
2421,
273,
467,
5491,
7187,
18,
14737,
31,
5411,
775,
288,
7734,
309,
261,
4683,
774,
6144,
422,
446,
13,
10792,
2078,
2421,
273,
1056,
4212,
951,
12,
3146,
1769,
7734,
469,
10792,
2078,
2421,
273,
1056,
7416,
3805,
5621,
5411,
289,
1044,
261,
25341,
425,
13,
288,
7734,
368,
9363,
486,
5865,
5411,
289,
5411,
6438,
18,
10086,
2174,
12,
751,
5912,
5058,
18,
751,
5912,
67,
6530,
310,
4247,
16,
2078,
2421,
1769,
5411,
309,
261,
4683,
774,
6144,
422,
446,
13,
288,
7734,
3359,
1420,
12,
3146,
1769,
5411,
289,
469,
288,
7734,
368,
9228,
18,
17,
279,
666,
434,
2923,
2703,
358,
3359,
1703,
1269,
7734,
3359,
17068,
3805,
5621,
5411,
289,
5411,
775,
288,
7734,
16204,
18,
13527,
5621,
5411,
289,
1044,
261,
14106,
425,
13,
288,
7734,
604,
394,
15342,
12,
13491,
425,
16,
13491,
29117,
18,
4376,
12,
751,
5912,
5058,
18,
9141,
6144,
67,
12892,
4605,
16,
425,
18,
24906,
1435,
10019,
5411,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
45,
5491,
7187,
4007,
7187,
13,
5411,
1216,
15342,
16,
7558,
288,
3639,
333,
18,
10259,
273,
4007,
7187,
31,
3639,
775,
288,
5411,
4046,
5621,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
604,
394,
15342,
12,
73,
16,
29117,
18,
4376,
12,
751,
5912,
5058,
18,
9141,
6144,
67,
12892,
3678,
16,
425,
18,
24906,
1435,
10019,
3639,
289,
3639,
775,
288,
5411,
368,
9228,
18,
17,
279,
2202,
1058,
364,
5904,
3359,
1703,
1269,
5411,
509,
2078,
2421,
273,
467,
5491,
7187,
18,
14737,
31,
5411,
775,
288,
7734,
309,
261,
4683,
774,
6144,
422,
446,
13,
10792,
2078,
2421,
273,
1056,
4212,
951,
12,
3146,
1769,
7734,
469,
10792,
2
] |
private void parse_gAMA_chunk(PNGChunk chunk) { // If an sRGB chunk exists, ignore gAMA chunks if (sRGBRenderingIntent != -1) { return; } fileGamma = chunk.getInt4(0)/100000.0F; float exp = performGammaCorrection ? displayExponent/userExponent : 1.0F; if (encodeParam != null) { encodeParam.setGamma(fileGamma*exp); } if (emitProperties) { properties.put("gamma", new Float(fileGamma*exp)); } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/4d3a99ba25df78f76a0cd7a624ef8aca67e45c6d/PNGRed.java/clean/sources/org/apache/batik/ext/awt/image/codec/PNGRed.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
67,
75,
2192,
37,
67,
6551,
12,
23092,
5579,
2441,
13,
288,
3639,
368,
971,
392,
272,
11343,
2441,
1704,
16,
2305,
314,
2192,
37,
6055,
3639,
309,
261,
87,
11343,
14261,
12105,
480,
300,
21,
13,
288,
5411,
327,
31,
3639,
289,
3639,
585,
31300,
273,
2441,
18,
588,
1702,
24,
12,
20,
13176,
21,
11706,
18,
20,
42,
31,
3639,
1431,
1329,
273,
5411,
3073,
31300,
20884,
692,
2562,
17972,
19,
1355,
17972,
294,
404,
18,
20,
42,
31,
3639,
309,
261,
3015,
786,
480,
446,
13,
288,
5411,
2017,
786,
18,
542,
31300,
12,
768,
31300,
14,
2749,
1769,
3639,
289,
3639,
309,
261,
18356,
2297,
13,
288,
5411,
1790,
18,
458,
2932,
20589,
3113,
394,
5450,
12,
768,
31300,
14,
2749,
10019,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
67,
75,
2192,
37,
67,
6551,
12,
23092,
5579,
2441,
13,
288,
3639,
368,
971,
392,
272,
11343,
2441,
1704,
16,
2305,
314,
2192,
37,
6055,
3639,
309,
261,
87,
11343,
14261,
12105,
480,
300,
21,
13,
288,
5411,
327,
31,
3639,
289,
3639,
585,
31300,
273,
2441,
18,
588,
1702,
24,
12,
20,
13176,
21,
11706,
18,
20,
42,
31,
3639,
1431,
1329,
273,
5411,
3073,
31300,
20884,
692,
2562,
17972,
19,
1355,
17972,
294,
404,
18,
20,
42,
31,
3639,
309,
261,
3015,
786,
480,
446,
13,
288,
5411,
2017,
786,
18,
542,
31300,
12,
768,
31300,
14,
2749,
1769,
3639,
289,
3639,
309,
261,
18356,
2297,
13,
288,
5411,
1790,
18,
458,
2
] |
||
return new CommandCvsHandler(com.intellij.CvsBundle.message("operation.name.import"), new ImportOperation(details), FileSetToBeUpdated.EMTPY); | return new CommandCvsHandler(CvsBundle.message("operation.name.import"), new ImportOperation(details), FileSetToBeUpdated.EMTPY); | public static CvsHandler createImportHandler(ImportDetails details) { return new CommandCvsHandler(com.intellij.CvsBundle.message("operation.name.import"), new ImportOperation(details), FileSetToBeUpdated.EMTPY); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/056c036c52b28c619268f3abf50617cf57f28824/CommandCvsHandler.java/clean/plugins/cvs2/source/com/intellij/cvsSupport2/cvshandlers/CommandCvsHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
385,
6904,
1503,
752,
5010,
1503,
12,
5010,
3790,
3189,
13,
288,
565,
327,
394,
3498,
39,
6904,
1503,
12,
39,
6904,
3405,
18,
2150,
2932,
7624,
18,
529,
18,
5666,
6,
3631,
394,
6164,
2988,
12,
6395,
3631,
1387,
694,
15360,
7381,
18,
3375,
11130,
61,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
385,
6904,
1503,
752,
5010,
1503,
12,
5010,
3790,
3189,
13,
288,
565,
327,
394,
3498,
39,
6904,
1503,
12,
39,
6904,
3405,
18,
2150,
2932,
7624,
18,
529,
18,
5666,
6,
3631,
394,
6164,
2988,
12,
6395,
3631,
1387,
694,
15360,
7381,
18,
3375,
11130,
61,
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
] |
warn("Bond: order " + s.trim()); | logger.debug("Bond: order " + s.trim()); | public void characterData (char ch[], int start, int length) { // warn("CD"); String s = toString(ch, start, length).trim(); switch (CurrentElement) { case STRING : warn("Builtin: " + BUILTIN); if (BUILTIN.equals("elementType")) { warn("Element: " + s.trim()); elsym.addElement(s); } else if (BUILTIN.equals("atomRef")) { curRef++; warn("Bond: ref #" + curRef); if (curRef == 1) { bondARef1.addElement(s.trim()); } else if (curRef == 2) { bondARef2.addElement(s.trim()); } } else if (BUILTIN.equals("order")) { warn("Bond: order " + s.trim()); order.addElement(s.trim()); } else if (BUILTIN.equals("formalCharge")) { warn("Charge: " + s.trim()); elcharge.addElement(s.trim()); } break; case FLOAT : if (BUILTIN.equals("x3")) { x3.addElement(s.trim()); } else if (BUILTIN.equals("y3")) { y3.addElement(s.trim()); } else if (BUILTIN.equals("z3")) { z3.addElement(s.trim()); } else if (BUILTIN.equals("x2")) { x2.addElement(s.trim()); } else if (BUILTIN.equals("y2")) { y2.addElement(s.trim()); } break; case COORDINATE2 : if (BUILTIN.equals("xy2")) { warn("New coord found." + s); try { StringTokenizer st = new StringTokenizer(s); x2.addElement(st.nextToken()); y2.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 175,1); } } break; case COORDINATE3 : if (BUILTIN.equals("xyz3")) { warn("New coord found." + s); try { StringTokenizer st = new StringTokenizer(s); x3.addElement(st.nextToken()); y3.addElement(st.nextToken()); z3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 175,1); } } break; case STRINGARRAY : if (BUILTIN.equals("id")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); warn("StringArray (Token): " + token); elid.addElement(token); } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 186,1); } } else if (BUILTIN.equals("elementType")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) elsym.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 194,1); } } else if (BUILTIN.equals("atomRefs")) { curRef++; warn("New atomRefs found: " + curRef); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); warn("Token: " + token); if (curRef == 1) { bondARef1.addElement(token); } else if (curRef == 2) { bondARef2.addElement(token); } } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 194,1); } } else if (BUILTIN.equals("order")) { warn("New bond order found."); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); warn("Token: " + token); order.addElement(token); } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 194,1); } } break; case INTEGERARRAY : System.out.println("IntegerArray: builtin = " + BUILTIN); if (BUILTIN.equals("formalCharge")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) { String token = st.nextToken(); System.out.println("Charge added: " + token); elcharge.addElement(token); } } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 205,1); } } case FLOATARRAY : if (BUILTIN.equals("x3")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) x3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 205,1); } } else if (BUILTIN.equals("y3")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) y3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 213,1); } } else if (BUILTIN.equals("z3")) { try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) z3.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 221,1); } } else if (BUILTIN.equals("x2")) { warn("New floatArray found."); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) x2.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 205,1); } } else if (BUILTIN.equals("y2")) { warn("New floatArray found."); try { StringTokenizer st = new StringTokenizer(s); while (st.hasMoreTokens()) y2.addElement(st.nextToken()); } catch (Exception e) { notify("CMLParsing error: " + e, SYSTEMID, 213,1); } } break; } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/e04a2bbd6afdac34488441c1ce22ad5f73d254ff/Convention.java/clean/org/openscience/cdk/io/cml/Convention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3351,
751,
261,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
288,
202,
759,
1894,
2932,
10160,
8863,
202,
780,
272,
273,
1762,
12,
343,
16,
787,
16,
769,
2934,
5290,
5621,
202,
9610,
261,
3935,
1046,
13,
288,
202,
3593,
9469,
294,
202,
565,
1894,
2932,
28032,
30,
315,
397,
10937,
2627,
56,
706,
1769,
202,
565,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
2956,
559,
6,
3719,
288,
202,
202,
8935,
2932,
1046,
30,
315,
397,
272,
18,
5290,
10663,
202,
202,
292,
8117,
18,
1289,
1046,
12,
87,
1769,
1082,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
7466,
1957,
6,
3719,
288,
202,
202,
1397,
1957,
9904,
31,
202,
202,
8935,
2932,
9807,
30,
1278,
31526,
397,
662,
1957,
1769,
202,
202,
430,
261,
1397,
1957,
422,
404,
13,
288,
1082,
565,
8427,
37,
1957,
21,
18,
1289,
1046,
12,
87,
18,
5290,
10663,
202,
202,
97,
469,
309,
261,
1397,
1957,
422,
576,
13,
288,
1082,
565,
8427,
37,
1957,
22,
18,
1289,
1046,
12,
87,
18,
5290,
10663,
202,
202,
97,
202,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
1019,
6,
3719,
288,
202,
202,
8935,
2932,
9807,
30,
1353,
315,
397,
272,
18,
5290,
10663,
202,
202,
1019,
18,
1289,
1046,
12,
87,
18,
5290,
10663,
202,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
687,
287,
17649,
6,
3719,
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,
3351,
751,
261,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
288,
202,
759,
1894,
2932,
10160,
8863,
202,
780,
272,
273,
1762,
12,
343,
16,
787,
16,
769,
2934,
5290,
5621,
202,
9610,
261,
3935,
1046,
13,
288,
202,
3593,
9469,
294,
202,
565,
1894,
2932,
28032,
30,
315,
397,
10937,
2627,
56,
706,
1769,
202,
565,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
2956,
559,
6,
3719,
288,
202,
202,
8935,
2932,
1046,
30,
315,
397,
272,
18,
5290,
10663,
202,
202,
292,
8117,
18,
1289,
1046,
12,
87,
1769,
1082,
565,
289,
469,
309,
261,
3000,
2627,
56,
706,
18,
14963,
2932,
7466,
1957,
6,
3719,
288,
202,
202,
2
] |
Upgrader upgrader = new Upgrader(); XMLOutputter outputter = new XMLOutputter(); try { assertEquals(modset, outputter.outputString(upgrader.findModificationSet(buildFileElement))); assertEquals(modset, outputter.outputString(upgrader.findModificationSet(buildFileElement2))); } catch (CruiseControlException e) { e.printStackTrace(); assertTrue(false); } | SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser"); buildFileElement = builder.build(new StringReader(xml)).getRootElement(); buildFileElement2 = builder.build(new StringReader(xml2)).getRootElement(); buildFileElement3 = builder.build(new StringReader(xml3)).getRootElement(); | public void testFindModificationSet() { String xml = "<project><taskdef name=\"modset\" classname=\"net.sourceforge.cruisecontrol.ModificationSet\"/><target><modset quietperiod=\"15\"><element att1=\"value1\" /></modset></target></project>"; String xml2 = "<project><target><taskdef name=\"modset\" classname=\"net.sourceforge.cruisecontrol.ModificationSet\"/><modset quietperiod=\"15\"><element att1=\"value1\" /></modset></target></project>"; String xml3 = "<project><target></target></project>"; String modset = "<modset quietperiod=\"15\"><element att1=\"value1\" /></modset>"; //get xml string to element Element buildFileElement = null; Element buildFileElement2 = null; Element buildFileElement3 = null; try { SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser"); buildFileElement = builder.build(new StringReader(xml)).getRootElement(); buildFileElement2 = builder.build(new StringReader(xml2)).getRootElement(); buildFileElement3 = builder.build(new StringReader(xml3)).getRootElement(); } catch (JDOMException e) { e.printStackTrace(); } Upgrader upgrader = new Upgrader(); XMLOutputter outputter = new XMLOutputter(); try { assertEquals(modset, outputter.outputString(upgrader.findModificationSet(buildFileElement))); assertEquals(modset, outputter.outputString(upgrader.findModificationSet(buildFileElement2))); } catch (CruiseControlException e) { e.printStackTrace(); assertTrue(false); } try { assertEquals(modset, outputter.outputString(upgrader.findModificationSet(buildFileElement3))); assertTrue(false); } catch (CruiseControlException e) { assertEquals("Could not find a modification set.", e.getMessage()); } } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/e6d55c9fadaa09c2852e7534c83941d93ecaf05b/UpgraderTest.java/clean/main/test/net/sourceforge/cruisecontrol/util/UpgraderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3125,
13467,
694,
1435,
288,
3639,
514,
2025,
225,
273,
3532,
4406,
4438,
4146,
536,
508,
5189,
1711,
542,
2412,
7479,
5189,
2758,
18,
3168,
1884,
908,
18,
3353,
89,
291,
31313,
922,
18,
13467,
694,
2412,
19,
4438,
3299,
4438,
1711,
542,
10902,
6908,
5189,
3600,
2412,
4438,
2956,
2403,
21,
5189,
1132,
21,
2412,
342,
4695,
1711,
542,
4695,
3299,
4695,
4406,
2984,
31,
3639,
514,
2025,
22,
273,
3532,
4406,
4438,
3299,
4438,
4146,
536,
508,
5189,
1711,
542,
2412,
7479,
5189,
2758,
18,
3168,
1884,
908,
18,
3353,
89,
291,
31313,
922,
18,
13467,
694,
2412,
19,
4438,
1711,
542,
10902,
6908,
5189,
3600,
2412,
4438,
2956,
2403,
21,
5189,
1132,
21,
2412,
342,
4695,
1711,
542,
4695,
3299,
4695,
4406,
2984,
31,
3639,
514,
2025,
23,
273,
3532,
4406,
4438,
3299,
4695,
3299,
4695,
4406,
2984,
31,
3639,
514,
681,
542,
273,
3532,
1711,
542,
10902,
6908,
5189,
3600,
2412,
4438,
2956,
2403,
21,
5189,
1132,
21,
2412,
342,
4695,
1711,
542,
2984,
31,
3639,
368,
588,
2025,
533,
358,
930,
3639,
3010,
1361,
812,
1046,
273,
446,
31,
3639,
3010,
1361,
812,
1046,
22,
273,
446,
31,
3639,
3010,
1361,
812,
1046,
23,
273,
446,
31,
3639,
775,
288,
5411,
10168,
1263,
2089,
273,
394,
10168,
1263,
2932,
3341,
18,
19211,
18,
92,
264,
764,
18,
11104,
18,
55,
2501,
2678,
8863,
5411,
1361,
812,
1046,
273,
2089,
18,
3510,
12,
2704,
26227,
12,
2902,
13,
2934,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3125,
13467,
694,
1435,
288,
3639,
514,
2025,
225,
273,
3532,
4406,
4438,
4146,
536,
508,
5189,
1711,
542,
2412,
7479,
5189,
2758,
18,
3168,
1884,
908,
18,
3353,
89,
291,
31313,
922,
18,
13467,
694,
2412,
19,
4438,
3299,
4438,
1711,
542,
10902,
6908,
5189,
3600,
2412,
4438,
2956,
2403,
21,
5189,
1132,
21,
2412,
342,
4695,
1711,
542,
4695,
3299,
4695,
4406,
2984,
31,
3639,
514,
2025,
22,
273,
3532,
4406,
4438,
3299,
4438,
4146,
536,
508,
5189,
1711,
542,
2412,
7479,
5189,
2758,
18,
3168,
1884,
908,
18,
3353,
89,
291,
31313,
922,
18,
13467,
694,
2412,
19,
4438,
1711,
542,
10902,
6908,
5189,
3600,
2412,
4438,
2956,
2403,
21,
5189,
1132,
2
] |
for (closeWin = false ; !closeWin ; ) { | for (this.closeWin = false ; !this.closeWin ; ) { | public String askForAnIndexURI(Hsqldb db) { frame = new JFrame(I18n.getMessage("thaw.plugin.index.selectIndex")); frame.setVisible(false); upPanel = new JPanel(); Logger.info(this, "indexes"); localIndexes = new IndexTree(I18n.getMessage("thaw.plugin.index.yourIndexes"), true, true, null, db); otherIndexes = new IndexTree(I18n.getMessage("thaw.plugin.index.indexes"), false, true, null, db); Logger.info(this, "plus indexes"); fieldPanel = new JPanel(); keyField = new JTextField(""); downPanel = new JPanel(); cancelButton = new JButton(I18n.getMessage("thaw.common.cancel")); okButton = new JButton(I18n.getMessage("thaw.common.ok")); upPanel.setLayout(new BorderLayout()); downPanel.setLayout(new GridLayout(1, 2)); fieldPanel.setLayout(new BorderLayout()); indexPanel = new JPanel(); indexPanel.setLayout(new GridLayout(1, 2)); indexPanel.add(new JScrollPane(localIndexes.getPanel())); indexPanel.add(new JScrollPane(otherIndexes.getPanel())); upPanel.add(indexPanel, BorderLayout.CENTER); fieldPanel.add(new JLabel(I18n.getMessage("thaw.plugin.index.indexKey")), BorderLayout.WEST); fieldPanel.add(keyField, BorderLayout.CENTER); upPanel.add(fieldPanel, BorderLayout.SOUTH); downPanel.add(okButton); downPanel.add(cancelButton); frame.getContentPane().setLayout(new BorderLayout(10, 10)); frame.getContentPane().add(upPanel, BorderLayout.CENTER); frame.getContentPane().add(downPanel, BorderLayout.SOUTH); frame.setSize(500, 400); cancelButton.addActionListener(this); okButton.addActionListener(this); localIndexes.addObserver(this); otherIndexes.addObserver(this); frame.setVisible(true); for (closeWin = false ; !closeWin ; ) { try { Thread.sleep(500); } catch(java.lang.InterruptedException e) { /* \_o< \_o< \_o< */ } } frame.setVisible(false); frame = null; upPanel = null; localIndexes = null; otherIndexes = null; fieldPanel = null; keyField = null; downPanel = null; cancelButton = null; okButton = null; return selectedIndexKey; } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/IndexSelecter.java/buggy/src/thaw/plugins/index/IndexSelecter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6827,
1290,
979,
1016,
3098,
12,
44,
4669,
1966,
1319,
13,
288,
202,
202,
3789,
273,
394,
804,
3219,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
4094,
18,
1615,
18,
4025,
1016,
7923,
1769,
202,
202,
3789,
18,
542,
6207,
12,
5743,
1769,
202,
202,
416,
5537,
273,
394,
24048,
5621,
202,
202,
3328,
18,
1376,
12,
2211,
16,
315,
11265,
8863,
202,
202,
3729,
8639,
273,
394,
3340,
2471,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
4094,
18,
1615,
18,
93,
477,
8639,
6,
3631,
638,
16,
638,
16,
446,
16,
1319,
1769,
202,
202,
3011,
8639,
273,
394,
3340,
2471,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
4094,
18,
1615,
18,
11265,
6,
3631,
629,
16,
638,
16,
446,
16,
1319,
1769,
202,
202,
3328,
18,
1376,
12,
2211,
16,
315,
10103,
5596,
8863,
202,
202,
1518,
5537,
273,
394,
24048,
5621,
202,
202,
856,
974,
273,
394,
804,
16157,
2932,
8863,
202,
202,
2378,
5537,
273,
394,
24048,
5621,
202,
202,
10996,
3616,
273,
394,
28804,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
10996,
7923,
1769,
202,
202,
601,
3616,
273,
394,
28804,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
6054,
18,
601,
7923,
1769,
202,
202,
416,
5537,
18,
542,
3744,
12,
2704,
30814,
10663,
202,
202,
2378,
5537,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
21,
16,
576,
10019,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6827,
1290,
979,
1016,
3098,
12,
44,
4669,
1966,
1319,
13,
288,
202,
202,
3789,
273,
394,
804,
3219,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
4094,
18,
1615,
18,
4025,
1016,
7923,
1769,
202,
202,
3789,
18,
542,
6207,
12,
5743,
1769,
202,
202,
416,
5537,
273,
394,
24048,
5621,
202,
202,
3328,
18,
1376,
12,
2211,
16,
315,
11265,
8863,
202,
202,
3729,
8639,
273,
394,
3340,
2471,
12,
45,
2643,
82,
18,
24906,
2932,
451,
2219,
18,
4094,
18,
1615,
18,
93,
477,
8639,
6,
3631,
638,
16,
638,
16,
446,
16,
1319,
1769,
202,
202,
3011,
8639,
273,
394,
3340,
2471,
12,
45,
2643,
82,
18,
24906,
2932,
2
] |
getUniLoc(uniformVar.name), | getUniLoc(uniformVar), | public void apply() { if (isSupported()) { if (isEnabled()) { if (programID != -1) { // Apply the shader... ARBShaderObjects.glUseProgramObjectARB(programID); // Assign uniforms... if (!uniforms.isEmpty()) { for (Iterator iterator = uniforms.keySet().iterator(); iterator .hasNext();) { ShaderUniform uniformVar = (ShaderUniform) uniforms .get((String) iterator.next()); switch (uniformVar.type) { case ShaderUniform.SU_INT: ARBShaderObjects.glUniform1iARB( getUniLoc(uniformVar.name), uniformVar.vint[0]); break; case ShaderUniform.SU_INT2: ARBShaderObjects.glUniform2iARB( getUniLoc(uniformVar.name), uniformVar.vint[0], uniformVar.vint[1]); break; case ShaderUniform.SU_INT3: ARBShaderObjects.glUniform3iARB( getUniLoc(uniformVar.name), uniformVar.vint[0], uniformVar.vint[1], uniformVar.vint[2]); break; case ShaderUniform.SU_INT4: ARBShaderObjects.glUniform4iARB( getUniLoc(uniformVar.name), uniformVar.vint[0], uniformVar.vint[1], uniformVar.vint[2], uniformVar.vint[3]); break; case ShaderUniform.SU_FLOAT: ARBShaderObjects.glUniform1fARB( getUniLoc(uniformVar.name), uniformVar.vfloat[0]); break; case ShaderUniform.SU_FLOAT2: ARBShaderObjects.glUniform2fARB( getUniLoc(uniformVar.name), uniformVar.vfloat[0], uniformVar.vfloat[1]); break; case ShaderUniform.SU_FLOAT3: ARBShaderObjects.glUniform3fARB( getUniLoc(uniformVar.name), uniformVar.vfloat[0], uniformVar.vfloat[1], uniformVar.vfloat[2]); break; case ShaderUniform.SU_FLOAT4: ARBShaderObjects.glUniform4fARB( getUniLoc(uniformVar.name), uniformVar.vfloat[0], uniformVar.vfloat[1], uniformVar.vfloat[2], uniformVar.vfloat[3]); break; case ShaderUniform.SU_MATRIX2: final java.nio.FloatBuffer matrix2f = org.lwjgl.BufferUtils .createFloatBuffer(4); matrix2f.clear(); matrix2f.put(uniformVar.matrix2f); matrix2f.rewind(); ARBShaderObjects.glUniformMatrix2ARB( getUniLoc(uniformVar.name), uniformVar.transpose, matrix2f); break; case ShaderUniform.SU_MATRIX3: ARBShaderObjects.glUniformMatrix3ARB( getUniLoc(uniformVar.name), uniformVar.transpose, uniformVar.matrix3f.toFloatBuffer()); break; case ShaderUniform.SU_MATRIX4: ARBShaderObjects.glUniformMatrix4ARB( getUniLoc(uniformVar.name), uniformVar.transpose, uniformVar.matrix4f.toFloatBuffer()); break; default: // Sould never happen. break; } } } } } else { ARBShaderObjects.glUseProgramObjectARB(0); } } } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/659e52f5de42957aa9f2bf22a2d6fac9a3f6dc0b/LWJGLShaderObjectsState.java/clean/src/com/jme/scene/state/lwjgl/LWJGLShaderObjectsState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
1435,
288,
3639,
309,
261,
291,
7223,
10756,
288,
5411,
309,
261,
291,
1526,
10756,
288,
7734,
309,
261,
12890,
734,
480,
300,
21,
13,
288,
10792,
368,
5534,
326,
16700,
2777,
10792,
6052,
38,
19396,
4710,
18,
7043,
3727,
9459,
921,
20926,
12,
12890,
734,
1769,
10792,
368,
12093,
31742,
2777,
10792,
309,
16051,
24120,
87,
18,
291,
1921,
10756,
288,
13491,
364,
261,
3198,
2775,
273,
31742,
18,
856,
694,
7675,
9838,
5621,
2775,
27573,
263,
5332,
2134,
5621,
13,
288,
18701,
2638,
1143,
13004,
10823,
1537,
273,
261,
19396,
13004,
13,
31742,
4766,
565,
263,
588,
12443,
780,
13,
2775,
18,
4285,
10663,
18701,
1620,
261,
24120,
1537,
18,
723,
13,
288,
18701,
648,
2638,
1143,
13004,
18,
6639,
67,
3217,
30,
27573,
6052,
38,
19396,
4710,
18,
7043,
13004,
21,
77,
20926,
12,
4766,
3639,
10833,
77,
1333,
12,
24120,
1537,
3631,
4766,
3639,
10823,
1537,
18,
90,
474,
63,
20,
19226,
27573,
898,
31,
18701,
648,
2638,
1143,
13004,
18,
6639,
67,
3217,
22,
30,
27573,
6052,
38,
19396,
4710,
18,
7043,
13004,
22,
77,
20926,
12,
4766,
3639,
10833,
77,
1333,
12,
24120,
1537,
3631,
4766,
3639,
10823,
1537,
18,
90,
474,
63,
20,
6487,
10823,
1537,
18,
90,
474,
63,
21,
19226,
27573,
898,
31,
18701,
648,
2638,
1143,
13004,
18,
6639,
67,
3217,
23,
30,
27573,
6052,
38,
19396,
4710,
18,
7043,
13004,
23,
77,
20926,
12,
4766,
3639,
10833,
77,
1333,
12,
24120,
1537,
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,
2230,
1435,
288,
3639,
309,
261,
291,
7223,
10756,
288,
5411,
309,
261,
291,
1526,
10756,
288,
7734,
309,
261,
12890,
734,
480,
300,
21,
13,
288,
10792,
368,
5534,
326,
16700,
2777,
10792,
6052,
38,
19396,
4710,
18,
7043,
3727,
9459,
921,
20926,
12,
12890,
734,
1769,
10792,
368,
12093,
31742,
2777,
10792,
309,
16051,
24120,
87,
18,
291,
1921,
10756,
288,
13491,
364,
261,
3198,
2775,
273,
31742,
18,
856,
694,
7675,
9838,
5621,
2775,
27573,
263,
5332,
2134,
5621,
13,
288,
18701,
2638,
1143,
13004,
10823,
1537,
273,
261,
19396,
13004,
13,
31742,
4766,
565,
263,
588,
12443,
780,
13,
2775,
18,
4285,
10663,
18701,
1620,
261,
24120,
1537,
18,
723,
13,
288,
2
] |
public SkeletonMismatchException(String s) { super(s); } | public SkeletonMismatchException(String s) { super(s); } | public SkeletonMismatchException(String s) { super(s);} | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/a3f60f71365174676e1302f0b201f5772849ffd3/SkeletonMismatchException.java/clean/java/rmi/server/SkeletonMismatchException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
10362,
12143,
16901,
503,
12,
780,
272,
13,
288,
202,
9565,
12,
87,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
10362,
12143,
16901,
503,
12,
780,
272,
13,
288,
202,
9565,
12,
87,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jj_la1_1 = new int[] {0x0,0x0,0x0,0x2e1c00,0x2e1c00,0x2e1c00,0x0,0x10,0xf,0x20,0x80000,0x7fc00,0x600000,0x80000,0x61c00,0x0,0xf8000000,0x0,0x0,0x600000,0x600000,0x0,0x8,0x7,0x40000,0x3fc00,0x40000,0x21c00,0x0,0xf8000000,}; | jj_la1_1 = new int[] {0x0,0x0,0x0,0x2e1c00,0x2e1c00,0x2e1c00,0x0,0xf,0x20,0x7fc00,0x600000,0x61c00,0xf8000000,0x0,0x0,0x600000,0x600000,0x0,0x8,0x40000,0x0,0x8,0x7,0x40000,0x3fc00,0x40000,0x21c00,0x0,0xf8000000,}; | private static void jj_la1_1() { jj_la1_1 = new int[] {0x0,0x0,0x0,0x2e1c00,0x2e1c00,0x2e1c00,0x0,0x10,0xf,0x20,0x80000,0x7fc00,0x600000,0x80000,0x61c00,0x0,0xf8000000,0x0,0x0,0x600000,0x600000,0x0,0x8,0x7,0x40000,0x3fc00,0x40000,0x21c00,0x0,0xf8000000,}; } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/726c24ef410f918a103c7ce911931e76cc280894/ExpressionParser.java/clean/aspectwerkz4/src/main/org/codehaus/aspectwerkz/expression/ast/ExpressionParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
918,
10684,
67,
11821,
21,
67,
21,
1435,
288,
1377,
10684,
67,
11821,
21,
67,
21,
273,
394,
509,
8526,
288,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
22,
73,
21,
71,
713,
16,
20,
92,
22,
73,
21,
71,
713,
16,
20,
92,
22,
73,
21,
71,
713,
16,
20,
92,
20,
16,
20,
5841,
16,
20,
92,
3462,
16,
20,
92,
27,
7142,
713,
16,
20,
92,
26,
11706,
16,
20,
92,
9498,
71,
713,
16,
20,
5841,
28,
9449,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
26,
11706,
16,
20,
92,
26,
11706,
16,
20,
92,
20,
16,
20,
92,
28,
16,
20,
92,
24,
2787,
16,
20,
92,
20,
16,
20,
92,
28,
16,
20,
92,
27,
16,
20,
92,
24,
2787,
16,
20,
92,
23,
7142,
713,
16,
20,
92,
24,
2787,
16,
20,
92,
5340,
71,
713,
16,
20,
92,
20,
16,
20,
5841,
28,
9449,
16,
20451,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
3238,
760,
918,
10684,
67,
11821,
21,
67,
21,
1435,
288,
1377,
10684,
67,
11821,
21,
67,
21,
273,
394,
509,
8526,
288,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
22,
73,
21,
71,
713,
16,
20,
92,
22,
73,
21,
71,
713,
16,
20,
92,
22,
73,
21,
71,
713,
16,
20,
92,
20,
16,
20,
5841,
16,
20,
92,
3462,
16,
20,
92,
27,
7142,
713,
16,
20,
92,
26,
11706,
16,
20,
92,
9498,
71,
713,
16,
20,
5841,
28,
9449,
16,
20,
92,
20,
16,
20,
92,
20,
16,
20,
92,
26,
11706,
16,
20,
92,
26,
11706,
16,
20,
92,
20,
16,
20,
92,
28,
16,
2
] |
s.defaultReadObject(); String key = (String) s.readObject(); | s.defaultReadObject(); String key = (String) s.readObject(); | private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException { s.defaultReadObject(); String key = (String) s.readObject(); while (key != null) { Object listener = s.readObject(); if ("componentL".equals(key)) addComponentListener((ComponentListener) listener); else if ("focusL".equals(key)) addFocusListener((FocusListener) listener); else if ("keyL".equals(key)) addKeyListener((KeyListener) listener); else if ("mouseL".equals(key)) addMouseListener((MouseListener) listener); else if ("mouseMotionL".equals(key)) addMouseMotionListener((MouseMotionListener) listener); else if ("inputMethodL".equals(key)) addInputMethodListener((InputMethodListener) listener); else if ("hierarchyL".equals(key)) addHierarchyListener((HierarchyListener) listener); else if ("hierarchyBoundsL".equals(key)) addHierarchyBoundsListener((HierarchyBoundsListener) listener); else if ("mouseWheelL".equals(key)) addMouseWheelListener((MouseWheelListener) listener); key = (String) s.readObject(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/566e4ab93ebc97794094572536829e581d565b11/Component.java/buggy/core/src/classpath/java/java/awt/Component.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
17362,
12,
921,
4348,
272,
13,
565,
1216,
10403,
16,
1860,
225,
288,
202,
202,
87,
18,
1886,
1994,
921,
5621,
202,
202,
780,
498,
273,
261,
780,
13,
272,
18,
896,
921,
5621,
565,
1323,
261,
856,
480,
446,
13,
1377,
288,
1082,
202,
921,
2991,
273,
272,
18,
896,
921,
5621,
1082,
202,
430,
7566,
4652,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
1841,
2223,
12443,
1841,
2223,
13,
2991,
1769,
1082,
202,
12107,
309,
7566,
13923,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
9233,
2223,
12443,
9233,
2223,
13,
2991,
1769,
1082,
202,
12107,
309,
7566,
856,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
653,
2223,
12443,
653,
2223,
13,
2991,
1769,
1082,
202,
12107,
309,
7566,
11697,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
9186,
2223,
12443,
9186,
2223,
13,
2991,
1769,
1082,
202,
12107,
309,
7566,
11697,
29360,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
9186,
29360,
2223,
12443,
9186,
29360,
2223,
13,
2991,
1769,
1082,
202,
12107,
309,
7566,
2630,
1305,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
1210,
1305,
2223,
12443,
1210,
1305,
2223,
13,
2991,
1769,
1082,
202,
12107,
309,
7566,
17937,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
12074,
2223,
12443,
12074,
2223,
13,
2991,
1769,
1082,
202,
12107,
309,
7566,
17937,
5694,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
12074,
5694,
2223,
12443,
12074,
5694,
2223,
13,
2991,
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,
17362,
12,
921,
4348,
272,
13,
565,
1216,
10403,
16,
1860,
225,
288,
202,
202,
87,
18,
1886,
1994,
921,
5621,
202,
202,
780,
498,
273,
261,
780,
13,
272,
18,
896,
921,
5621,
565,
1323,
261,
856,
480,
446,
13,
1377,
288,
1082,
202,
921,
2991,
273,
272,
18,
896,
921,
5621,
1082,
202,
430,
7566,
4652,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
1841,
2223,
12443,
1841,
2223,
13,
2991,
1769,
1082,
202,
12107,
309,
7566,
13923,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
9233,
2223,
12443,
9233,
2223,
13,
2991,
1769,
1082,
202,
12107,
309,
7566,
856,
48,
9654,
14963,
12,
856,
3719,
9506,
202,
1289,
653,
2223,
12443,
2
] |
return scalar ? convertToScalar(exp) : exp; | return scalar ? convertToScalar(resolved) : resolved; | public Exp validate(Exp exp, boolean scalar) { if (!resolvedNodes.add(exp)) { // Expression has already been resolved. return scalar ? convertToScalar(exp) : exp; } stack.push(exp); try { Exp resolved = exp.accept(this); if (scalar) { resolved = convertToScalar(resolved); } resolvedNodes.add(resolved); return resolved; } finally { stack.pop(); } } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/741b8f38514a4115aaffc6385b4687db63fe334b/Query.java/buggy/src/main/mondrian/olap/Query.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7784,
1954,
12,
2966,
1329,
16,
1250,
4981,
13,
288,
5411,
309,
16051,
11792,
3205,
18,
1289,
12,
2749,
3719,
288,
7734,
368,
5371,
711,
1818,
2118,
4640,
18,
7734,
327,
4981,
692,
8137,
13639,
12,
11792,
13,
294,
4640,
31,
5411,
289,
5411,
2110,
18,
6206,
12,
2749,
1769,
5411,
775,
288,
7734,
7784,
4640,
273,
1329,
18,
9436,
12,
2211,
1769,
7734,
309,
261,
8748,
13,
288,
10792,
4640,
273,
8137,
13639,
12,
11792,
1769,
7734,
289,
7734,
4640,
3205,
18,
1289,
12,
11792,
1769,
7734,
327,
4640,
31,
5411,
289,
3095,
288,
7734,
2110,
18,
5120,
5621,
5411,
289,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
1071,
7784,
1954,
12,
2966,
1329,
16,
1250,
4981,
13,
288,
5411,
309,
16051,
11792,
3205,
18,
1289,
12,
2749,
3719,
288,
7734,
368,
5371,
711,
1818,
2118,
4640,
18,
7734,
327,
4981,
692,
8137,
13639,
12,
11792,
13,
294,
4640,
31,
5411,
289,
5411,
2110,
18,
6206,
12,
2749,
1769,
5411,
775,
288,
7734,
7784,
4640,
273,
1329,
18,
9436,
12,
2211,
1769,
7734,
309,
261,
8748,
13,
288,
10792,
4640,
273,
8137,
13639,
12,
11792,
1769,
7734,
289,
7734,
4640,
3205,
18,
1289,
12,
11792,
1769,
7734,
327,
4640,
31,
5411,
289,
3095,
288,
7734,
2110,
18,
5120,
5621,
5411,
289,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return StateMachinesHelper.getHelper().getSource((MTransition) edge); | return StateMachinesHelper.getHelper() .getSource((MTransition) edge); | public Object getSourcePort(Object edge) { if (edge instanceof MTransition) { return StateMachinesHelper.getHelper().getSource((MTransition) edge); } cat.debug("TODO getSourcePort of MTransition"); return null; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/23464f9cbc3169e9d2f1919998cae2c59b514985/StateDiagramGraphModel.java/buggy/src_new/org/argouml/uml/diagram/state/StateDiagramGraphModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
7889,
2617,
12,
921,
3591,
13,
288,
202,
430,
261,
7126,
1276,
490,
8850,
13,
288,
202,
565,
327,
3287,
25222,
2276,
18,
588,
2276,
7675,
588,
1830,
12443,
49,
8850,
13,
3591,
1769,
202,
97,
202,
2574,
18,
4148,
2932,
6241,
7889,
2617,
434,
490,
8850,
8863,
202,
2463,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7889,
2617,
12,
921,
3591,
13,
288,
202,
430,
261,
7126,
1276,
490,
8850,
13,
288,
202,
565,
327,
3287,
25222,
2276,
18,
588,
2276,
7675,
588,
1830,
12443,
49,
8850,
13,
3591,
1769,
202,
97,
202,
2574,
18,
4148,
2932,
6241,
7889,
2617,
434,
490,
8850,
8863,
202,
2463,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String ref = (String)ctx.getHeaders().get("Referer"); if(ref!=null) buf.append("<br><a href=\""+ref+"\" title=\"Back\" Back</a>\n"); else buf.append("<br><a href=\"javascript:back()\" title=\"Back\">Back</a>\n"); | ctx.getPageMaker().makeBackLink(buf,ctx); | public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException { if(data.size() > 1024*1024) { this.writeReply(ctx, 400, "text/plain", "Too big", "Data exceeds 1MB limit"); return; } HTTPRequest request = new HTTPRequest(uri,data,ctx); if(request==null) return; StringBuffer buf = new StringBuffer(); if (request.getParam("shutdownconfirm").length() > 0) { // false for no navigation bars, because that would be very silly ctx.getPageMaker().makeHead(buf, "Node Shutdown", false); buf.append("<div class=\"infobox infobox-information\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("The Freenet node has been successfully shut down\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Thank you for using Freenet\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); this.node.exit(); } else if (request.getParam("exit").equalsIgnoreCase("true")) { ctx.getPageMaker().makeHead(buf, "Node Shutdown"); buf.append("<div class=\"infobox infobox-query\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Node Shutdown?\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Are you sure you wish to shut down your Freenet node?\n"); buf.append("<form action=\"/\" method=\"post\">\n"); buf.append("<input type=\"submit\" name=\"cancel\" value=\"Cancel\" />\n"); buf.append("<input type=\"submit\" name=\"shutdownconfirm\" value=\"Shut down\" />\n"); buf.append("</form>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); } else if (request.isParameterSet("addbookmark")) { try { bookmarks.addBookmark(new Bookmark(request.getParam("key"), request.getParam("name"))); node.config.store(); } catch (MalformedURLException mue) { this.sendBookmarkEditPage(ctx, MODE_ADD, null, request.getParam("key"), request.getParam("name"), "Given key does not appear to be a valid Freenet key."); return; } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { } } else if (request.isParameterSet("managebookmarks")) { Enumeration e = bookmarks.getBookmarks(); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); if (request.isParameterSet("delete_"+b.hashCode())) { bookmarks.removeBookmark(b); node.config.store(); } else if (request.isParameterSet("edit_"+b.hashCode())) { this.sendBookmarkEditPage(ctx, b); return; } else if (request.isParameterSet("update_"+b.hashCode())) { // removing it and adding means that any USK subscriptions are updated properly try { Bookmark newbkmk = new Bookmark(request.getParam("key"), request.getParam("name")); bookmarks.removeBookmark(b); bookmarks.addBookmark(newbkmk); node.config.store(); } catch (MalformedURLException mue) { this.sendBookmarkEditPage(ctx, MODE_EDIT, b, request.getParam("key"), request.getParam("name"), "Given key does not appear to be a valid freenet key."); return; } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { } } } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { } }else if(request.isParameterSet("disable")){ UserAlert[] alerts=node.alerts.getAlerts(); for(int i=0;i<alerts.length;i++){ if(request.getIntParam("disable")==alerts[i].hashCode()){ // Won't be dismissed if it's not allowed anyway Logger.normal(this,"Disabling the userAlert "+alerts[i].hashCode()); alerts[i].isValid(false); ctx.getPageMaker().makeHead(buf, "Configuration Applied"); buf.append("<div class=\"infobox infobox-success\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Configuration Applied\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Your configuration changes were applied successfully<br />\n"); buf.append("<a href=\"/\" title=\"Node Homepage\">Homepage</a>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); } } }else if(request.isPartSet("key")&&request.isPartSet("filename")){ FreenetURI key = new FreenetURI(request.getPartAsString("key",128)); String type = request.getPartAsString("content-type",128); if(type==null) type = "text/plain"; ClientMetadata contentType = new ClientMetadata(type); Bucket bucket = request.getPart("filename"); InsertBlock block = new InsertBlock(bucket, contentType, key); try { ctx.getPageMaker().makeHead(buf, "Insertion"); key = this.insert(block, false); buf.append("<div class=\"infobox infobox-success\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Insert Succeeded\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("The key : <a href=\"/" + key.getKeyType() + "@" + key.getGuessableKey() + "\">" + key.getKeyType() + "@" + key.getGuessableKey() +"</a> has been inserted successfully.<br>"); } catch (InserterException e) { buf.append("<div class=\"infobox infobox-error\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Insert Failed\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Error: "+e.getMessage()+"<br>"); if(e.uri != null) buf.append("URI would have been: "+e.uri+"<br>"); int mode = e.getMode(); if(mode == InserterException.FATAL_ERRORS_IN_BLOCKS || mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS) { buf.append("Splitfile-specific error:\n"+e.errorCodes.toVerboseString()+"<br>"); } } // My browser sends it with one 'r' String ref = (String)ctx.getHeaders().get("Referer"); if(ref!=null) buf.append("<br><a href=\""+ref+"\" title=\"Back\" Back</a>\n"); else buf.append("<br><a href=\"javascript:back()\" title=\"Back\">Back</a>\n"); buf.append("<br><a href=\"/\" title=\"Node Homepage\">Homepage</a>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); request.freeParts(); bucket.free(); }else { this.handleGet(uri, ctx); } } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/043d0a52b75a79205f6af6f536a20a7db87fd08b/WelcomeToadlet.java/clean/src/freenet/clients/http/WelcomeToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
9506,
202,
430,
12,
892,
18,
1467,
1435,
405,
6250,
14,
2163,
3247,
13,
288,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
751,
14399,
404,
7969,
1800,
8863,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
892,
16,
5900,
1769,
202,
202,
430,
12,
2293,
631,
2011,
13,
327,
31,
9506,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
9506,
202,
430,
261,
2293,
18,
588,
786,
2932,
15132,
10927,
20387,
2469,
1435,
405,
374,
13,
288,
1082,
202,
759,
629,
364,
1158,
10394,
22252,
16,
2724,
716,
4102,
506,
8572,
17714,
715,
1082,
202,
5900,
18,
588,
1964,
12373,
7675,
6540,
1414,
12,
4385,
16,
315,
907,
17640,
3113,
629,
1769,
1082,
202,
4385,
18,
6923,
2932,
32,
2892,
667,
5189,
1376,
2147,
1123,
2147,
17,
13117,
28219,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
32,
2892,
667,
5189,
1376,
2147,
17,
3374,
28219,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
1986,
478,
2842,
278,
756,
711,
2118,
4985,
9171,
2588,
64,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
1757,
2892,
5333,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
32,
2892,
667,
5189,
1376,
2147,
17,
1745,
28219,
82,
8863,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
9506,
202,
430,
12,
892,
18,
1467,
1435,
405,
6250,
14,
2163,
3247,
13,
288,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
751,
14399,
404,
7969,
1800,
8863,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
892,
16,
5900,
1769,
202,
202,
430,
12,
2293,
631,
2011,
13,
327,
31,
9506,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
9506,
202,
430,
261,
2293,
18,
588,
786,
2
] |
public TagArgument () { //empty } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/9b13568a17c8f2a84cd6be1ce54c3553c8dde181/Javadoc.java/buggy/src/main/org/apache/tools/ant/taskdefs/Javadoc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
4034,
1379,
1832,
288,
7734,
368,
5531,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
4034,
1379,
1832,
288,
7734,
368,
5531,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
private void importZipResource(ZipInputStream zipStreamIn, String importPath, boolean noSubFolder) throws Exception { boolean isFolder = false; boolean exit = false; int j, r, stop, charsRead, size; int entries = 0; int totalBytes = 0; int offset = 0; byte[] buffer = null; boolean resourceExists; while (true) { // handle the single entries ... j = 0; stop = 0; charsRead = 0; totalBytes = 0; // open the entry ... ZipEntry entry = zipStreamIn.getNextEntry(); if (entry == null) { break; } entries++; // count number of entries in zip String actImportPath = importPath; String filename = m_cms.getRequestContext().getFileTranslator().translateResource(entry.getName()); // separete path in direcotries an file name ... StringTokenizer st = new StringTokenizer(filename, "/\\"); int count = st.countTokens(); String[] path = new String[count]; if (filename.endsWith("\\") || filename.endsWith("/")) { isFolder = true; // last entry is a folder } else { isFolder = false; // last entry is a file } while (st.hasMoreTokens()) { // store the files and folder names in array ... path[j] = st.nextToken(); j++; } stop = isFolder?path.length:(path.length - 1); if (noSubFolder) { stop = 0; } // now write the folders ... for (r = 0; r < stop; r++) { try { m_cms.createResource(actImportPath + path[r], CmsResourceTypeFolder.C_RESOURCE_TYPE_ID); } catch (CmsException e) { // of course some folders did already exist! } actImportPath += path[r]; actImportPath += "/"; } if (! isFolder) { // import file into cms int type = OpenCms.getResourceManager().getDefaultTypeForName(path[path.length - 1]).getTypeId(); size = new Long(entry.getSize()).intValue(); if (size == -1) { Vector v = new Vector(); while (true) { buffer = new byte[512]; offset = 0; while (offset < buffer.length) { charsRead = zipStreamIn.read(buffer, offset, buffer.length - offset); if (charsRead == -1) { exit = true; break; // end of stream } offset += charsRead; totalBytes += charsRead; } if (offset > 0) { v.addElement(buffer); } if (exit) { exit = false; break; } } buffer = new byte[totalBytes]; offset = 0; byte[] act = null; for (int z = 0; z < v.size() - 1; z++) { act = (byte[])v.elementAt(z); System.arraycopy(act, 0, buffer, offset, act.length); offset += act.length; } act = (byte[])v.lastElement(); if ((totalBytes > act.length) && (totalBytes % act.length != 0)) { totalBytes = totalBytes % act.length; } else if ((totalBytes > act.length) && (totalBytes % act.length == 0)) { totalBytes = act.length; } System.arraycopy(act, 0, buffer, offset, totalBytes); // handle empty files ... if (totalBytes == 0) { buffer = " ".getBytes(); } } else { // size was read clearly ... buffer = new byte[size]; while (charsRead < size) { charsRead += zipStreamIn.read(buffer, charsRead, size - charsRead); } // handle empty files ... if (size == 0) { buffer = " ".getBytes(); } } filename = actImportPath + path[path.length - 1]; try { m_cms.lockResource(filename); m_cms.readResource(filename); resourceExists = true; } catch (CmsException e) { resourceExists = false; } if (resourceExists) { CmsResource res = m_cms.readResource(filename, CmsResourceFilter.ALL); //m_cms.deleteAllProperties(filename); //m_cms.replaceResource(filename, type, Collections.EMPTY_MAP, buffer); m_cms.replaceResource(filename, res.getTypeId(), buffer, Collections.EMPTY_LIST); OpenCms.fireCmsEvent(new CmsEvent(I_CmsEventListener.EVENT_RESOURCE_AND_PROPERTIES_MODIFIED, Collections.singletonMap("resource", res))); } else { m_cms.createResource(actImportPath + path[path.length - 1], type, buffer, Collections.EMPTY_LIST); } } // close the entry ... zipStreamIn.closeEntry(); } zipStreamIn.close(); if (entries > 0) { // at least one entry, got a valid zip file ... m_validZipFile = true; } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ffc41838b2d111ebeb91e9a4f240187165ad24d5/CmsImportFolder.java/buggy/src/org/opencms/db/CmsImportFolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1930,
9141,
1420,
12,
9141,
4348,
3144,
1228,
382,
16,
514,
30336,
16,
1250,
1158,
1676,
3899,
13,
1216,
1185,
288,
3639,
1250,
31137,
273,
629,
31,
3639,
1250,
2427,
273,
629,
31,
3639,
509,
525,
16,
436,
16,
2132,
16,
5230,
1994,
16,
963,
31,
3639,
509,
3222,
273,
374,
31,
3639,
509,
29937,
273,
374,
31,
3639,
509,
1384,
273,
374,
31,
3639,
1160,
8526,
1613,
273,
446,
31,
3639,
1250,
1058,
4002,
31,
7734,
1323,
261,
3767,
13,
288,
5411,
368,
1640,
326,
2202,
3222,
1372,
5411,
525,
273,
374,
31,
5411,
2132,
273,
374,
31,
5411,
5230,
1994,
273,
374,
31,
5411,
29937,
273,
374,
31,
5411,
368,
1696,
326,
1241,
1372,
5411,
23652,
1241,
273,
3144,
1228,
382,
18,
588,
2134,
1622,
5621,
5411,
309,
261,
4099,
422,
446,
13,
288,
7734,
898,
31,
5411,
289,
5411,
3222,
9904,
31,
368,
1056,
1300,
434,
3222,
316,
3144,
5411,
514,
1328,
5010,
743,
273,
30336,
31,
5411,
514,
1544,
273,
312,
67,
6851,
18,
588,
21426,
7675,
29925,
12233,
7675,
13929,
1420,
12,
4099,
18,
17994,
10663,
5411,
368,
695,
1848,
736,
589,
316,
302,
577,
2894,
2007,
392,
585,
508,
1372,
5411,
16370,
384,
273,
394,
16370,
12,
3459,
16,
2206,
1695,
8863,
5411,
509,
1056,
273,
384,
18,
1883,
5157,
5621,
5411,
514,
8526,
589,
273,
394,
514,
63,
1883,
15533,
5411,
309,
261,
3459,
18,
5839,
1190,
2932,
1695,
7923,
747,
1544,
18,
5839,
1190,
2932,
4898,
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,
1930,
9141,
1420,
12,
9141,
4348,
3144,
1228,
382,
16,
514,
30336,
16,
1250,
1158,
1676,
3899,
13,
1216,
1185,
288,
3639,
1250,
31137,
273,
629,
31,
3639,
1250,
2427,
273,
629,
31,
3639,
509,
525,
16,
436,
16,
2132,
16,
5230,
1994,
16,
963,
31,
3639,
509,
3222,
273,
374,
31,
3639,
509,
29937,
273,
374,
31,
3639,
509,
1384,
273,
374,
31,
3639,
1160,
8526,
1613,
273,
446,
31,
3639,
1250,
1058,
4002,
31,
7734,
1323,
261,
3767,
13,
288,
5411,
368,
1640,
326,
2202,
3222,
1372,
5411,
525,
273,
374,
31,
5411,
2132,
273,
374,
31,
5411,
5230,
1994,
273,
374,
31,
5411,
29937,
273,
374,
31,
5411,
368,
1696,
326,
1241,
1372,
2
] |
||
if (c == '\\') if (! ((i + 5) < length) && (s.charAt(i + 1) == 'u') && isXDigit(s.charAt(i + 2)) && isXDigit(s.charAt(i + 3)) && isXDigit(s.charAt(i + 4)) && isXDigit(s.charAt(i + 5))) | if (c == '\\') if (! ((i + 5) < length) && (s.charAt(i + 1) == 'u') && 0 <= xDigitToInt(s.charAt(i + 2)) && 0 <= xDigitToInt(s.charAt(i + 3)) && 0 <= xDigitToInt(s.charAt(i + 4)) && 0 <= xDigitToInt(s.charAt(i + 5))) | protected static boolean isJSIdentifier(String s) { int length = s.length(); if (length == 0 || !Character.isJavaIdentifierStart(s.charAt(0))) return false; for (int i=1; i<length; i++) { char c = s.charAt(i); if (!Character.isJavaIdentifierPart(c)) if (c == '\\') if (! ((i + 5) < length) && (s.charAt(i + 1) == 'u') && isXDigit(s.charAt(i + 2)) && isXDigit(s.charAt(i + 3)) && isXDigit(s.charAt(i + 4)) && isXDigit(s.charAt(i + 5))) return false; } return true; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/889deca9d42b29b8f50dd401225c3d441fb89da3/TokenStream.java/buggy/js/rhino/src/org/mozilla/javascript/TokenStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
1250,
353,
6479,
3004,
12,
780,
272,
13,
288,
3639,
509,
769,
273,
272,
18,
2469,
5621,
3639,
309,
261,
2469,
422,
374,
747,
401,
7069,
18,
291,
5852,
3004,
1685,
12,
87,
18,
3001,
861,
12,
20,
20349,
5411,
327,
629,
31,
3639,
364,
261,
474,
277,
33,
21,
31,
277,
32,
2469,
31,
277,
27245,
288,
1082,
202,
3001,
276,
273,
272,
18,
3001,
861,
12,
77,
1769,
5411,
309,
16051,
7069,
18,
291,
5852,
3004,
1988,
12,
71,
3719,
9506,
202,
430,
261,
71,
422,
5282,
13,
6862,
202,
430,
16051,
14015,
77,
397,
1381,
13,
411,
769,
13,
6862,
1082,
202,
10,
10,
261,
87,
18,
3001,
861,
12,
77,
397,
404,
13,
422,
296,
89,
6134,
6862,
1082,
202,
10,
10,
353,
60,
10907,
12,
87,
18,
3001,
861,
12,
77,
397,
576,
3719,
6862,
1082,
202,
10,
10,
353,
60,
10907,
12,
87,
18,
3001,
861,
12,
77,
397,
890,
3719,
6862,
1082,
202,
10,
10,
353,
60,
10907,
12,
87,
18,
3001,
861,
12,
77,
397,
1059,
3719,
6862,
1082,
202,
10,
10,
353,
60,
10907,
12,
87,
18,
3001,
861,
12,
77,
397,
1381,
20349,
25083,
7734,
327,
629,
31,
3639,
289,
3639,
327,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
1250,
353,
6479,
3004,
12,
780,
272,
13,
288,
3639,
509,
769,
273,
272,
18,
2469,
5621,
3639,
309,
261,
2469,
422,
374,
747,
401,
7069,
18,
291,
5852,
3004,
1685,
12,
87,
18,
3001,
861,
12,
20,
20349,
5411,
327,
629,
31,
3639,
364,
261,
474,
277,
33,
21,
31,
277,
32,
2469,
31,
277,
27245,
288,
1082,
202,
3001,
276,
273,
272,
18,
3001,
861,
12,
77,
1769,
5411,
309,
16051,
7069,
18,
291,
5852,
3004,
1988,
12,
71,
3719,
9506,
202,
430,
261,
71,
422,
5282,
13,
6862,
202,
430,
16051,
14015,
77,
397,
1381,
13,
411,
769,
13,
6862,
1082,
202,
10,
10,
261,
87,
18,
3001,
861,
12,
77,
397,
404,
2
] |
AST __t778 = _t; | AST __t763 = _t; | public final void forstate(AST _t) throws RecognitionException { AST forstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST f = null; AST __t778 = _t; f = _t==ASTNULL ? null :(AST)_t; match(_t,FOR); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.blockBegin(f); action.frameBlockCheck(f); } for_record_spec(_t,CQ.INITWEAK); _t = _retTree; { _loop780: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_20.member(_t.getType()))) { block_opt(_t); _t = _retTree; } else { break _loop780; } } while (true); } block_colon(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } code_block(_t); _t = _retTree; block_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.blockEnd(); } _t = __t778; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
364,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
364,
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,
284,
273,
446,
31,
9506,
202,
9053,
1001,
88,
4700,
28,
273,
389,
88,
31,
202,
202,
74,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7473,
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,
9506,
202,
1128,
18,
2629,
8149,
12,
74,
1769,
15106,
202,
1128,
18,
3789,
1768,
1564,
12,
74,
1769,
6862,
9506,
202,
97,
202,
202,
1884,
67,
3366,
67,
2793,
24899,
88,
16,
39,
53,
18,
12919,
6950,
14607,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
67,
6498,
27,
3672,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
430,
14015,
67,
2316,
694,
67,
3462,
18,
5990,
24899,
88,
18,
588,
559,
1435,
20349,
288,
9506,
202,
2629,
67,
3838,
24899,
88,
1769,
9506,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
8820,
389,
6498,
27,
3672,
31,
1082,
202,
97,
6862,
202,
97,
1323,
261,
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,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
364,
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,
284,
273,
446,
31,
9506,
202,
9053,
1001,
88,
4700,
28,
273,
389,
88,
31,
202,
202,
74,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7473,
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,
9506,
202,
1128,
18,
2629,
8149,
12,
74,
1769,
2
] |
assertTrue("incorrect sign", result.signum() == -1); | assertEquals("incorrect sign", -1, result.signum()); | public void testSetBitLeftmostNegative() { byte aBytes[] = {1, -128, 56, 100, -15, 35, 26}; int aSign = -1; int number = 48; byte rBytes[] = {-1, 127, -57, -101, 14, -36, -26, 49}; BigInteger aNumber = new BigInteger(aSign, aBytes); BigInteger result = aNumber.setBit(number); byte resBytes[] = new byte[rBytes.length]; resBytes = result.toByteArray(); for(int i = 0; i < resBytes.length; i++) { assertTrue(resBytes[i] == rBytes[i]); } assertTrue("incorrect sign", result.signum() == -1); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/2de6e235697acde9baa71a0268d4d3752d10bdf6/BigIntegerOperateBitsTest.java/buggy/modules/math/src/test/java/org/apache/harmony/tests/java/math/BigIntegerOperateBitsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
694,
5775,
3910,
10329,
14959,
1435,
288,
3639,
1160,
279,
2160,
8526,
273,
288,
21,
16,
300,
10392,
16,
13850,
16,
2130,
16,
300,
3600,
16,
13191,
16,
10659,
20451,
3639,
509,
279,
2766,
273,
300,
21,
31,
3639,
509,
1300,
273,
9934,
31,
3639,
1160,
436,
2160,
8526,
273,
288,
17,
21,
16,
12331,
16,
300,
10321,
16,
300,
15168,
16,
5045,
16,
300,
5718,
16,
300,
5558,
16,
17160,
20451,
3639,
10246,
279,
1854,
273,
394,
10246,
12,
69,
2766,
16,
279,
2160,
1769,
3639,
10246,
563,
273,
279,
1854,
18,
542,
5775,
12,
2696,
1769,
3639,
1160,
400,
2160,
8526,
273,
394,
1160,
63,
86,
2160,
18,
2469,
15533,
3639,
400,
2160,
273,
563,
18,
869,
8826,
5621,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
400,
2160,
18,
2469,
31,
277,
27245,
288,
5411,
1815,
5510,
12,
455,
2160,
63,
77,
65,
422,
436,
2160,
63,
77,
19226,
3639,
289,
3639,
1815,
8867,
2932,
267,
6746,
1573,
3113,
300,
21,
16,
563,
18,
2977,
379,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
694,
5775,
3910,
10329,
14959,
1435,
288,
3639,
1160,
279,
2160,
8526,
273,
288,
21,
16,
300,
10392,
16,
13850,
16,
2130,
16,
300,
3600,
16,
13191,
16,
10659,
20451,
3639,
509,
279,
2766,
273,
300,
21,
31,
3639,
509,
1300,
273,
9934,
31,
3639,
1160,
436,
2160,
8526,
273,
288,
17,
21,
16,
12331,
16,
300,
10321,
16,
300,
15168,
16,
5045,
16,
300,
5718,
16,
300,
5558,
16,
17160,
20451,
3639,
10246,
279,
1854,
273,
394,
10246,
12,
69,
2766,
16,
279,
2160,
1769,
3639,
10246,
563,
273,
279,
1854,
18,
542,
5775,
12,
2696,
1769,
3639,
1160,
400,
2160,
8526,
273,
394,
1160,
63,
86,
2160,
18,
2469,
15533,
3639,
400,
2160,
2
] |
HTMLNode priorityForm = priorityCell.addChild("form", new String[] { "action", "method" }, new String[] { "/queue/", "post" }); | HTMLNode priorityForm = priorityCell.addChild("form", new String[] { "action", "method", "enctype", "encoding" }, new String[] { "/queue/", "post", "UTF-8", "multipart/form-data" }); | private HTMLNode createPriorityCell(PageMaker pageMaker, String identifier, short priorityClass) { HTMLNode priorityCell = new HTMLNode("td", "class", "request-priority nowrap"); HTMLNode priorityForm = priorityCell.addChild("form", new String[] { "action", "method" }, new String[] { "/queue/", "post" }); priorityForm.addChild(pageMaker.createFormPasswordInput(core.formPassword)); priorityForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "identifier", identifier }); HTMLNode prioritySelect = priorityForm.addChild("select", "name", "priority"); for (int p = 0; p < RequestStarter.NUMBER_OF_PRIORITY_CLASSES; p++) { if (p == priorityClass) { prioritySelect.addChild("option", new String[] { "value", "selected" }, new String[] { String.valueOf(p), "selected" }, priorityClasses[p]); } else { prioritySelect.addChild("option", "value", String.valueOf(p), priorityClasses[p]); } } priorityForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "change_priority", "Change" }); return priorityCell; } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/0d8d196255a0e85fa26937433ceabd0ce4f72943/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3982,
907,
752,
8183,
4020,
12,
1964,
12373,
1363,
12373,
16,
514,
2756,
16,
3025,
4394,
797,
13,
288,
202,
202,
4870,
907,
4394,
4020,
273,
394,
3982,
907,
2932,
4465,
3113,
315,
1106,
3113,
315,
2293,
17,
8457,
2037,
1266,
8863,
202,
202,
4870,
907,
4394,
1204,
273,
4394,
4020,
18,
1289,
1763,
2932,
687,
3113,
394,
514,
8526,
288,
315,
1128,
3113,
315,
2039,
6,
19879,
394,
514,
8526,
288,
2206,
4000,
19,
3113,
315,
2767,
6,
15549,
202,
202,
8457,
1204,
18,
1289,
1763,
12,
2433,
12373,
18,
2640,
1204,
3913,
1210,
12,
3644,
18,
687,
3913,
10019,
202,
202,
8457,
1204,
18,
1289,
1763,
2932,
2630,
3113,
394,
514,
8526,
288,
315,
723,
3113,
315,
529,
3113,
315,
1132,
6,
19879,
394,
514,
8526,
288,
315,
6345,
3113,
315,
5644,
3113,
2756,
15549,
202,
202,
4870,
907,
4394,
3391,
273,
4394,
1204,
18,
1289,
1763,
2932,
4025,
3113,
315,
529,
3113,
315,
8457,
8863,
202,
202,
1884,
261,
474,
293,
273,
374,
31,
293,
411,
1567,
510,
14153,
18,
9931,
67,
3932,
67,
19804,
67,
27337,
31,
293,
27245,
288,
1082,
202,
430,
261,
84,
422,
4394,
797,
13,
288,
9506,
202,
8457,
3391,
18,
1289,
1763,
2932,
3482,
3113,
394,
514,
8526,
288,
315,
1132,
3113,
315,
8109,
6,
19879,
394,
514,
8526,
288,
514,
18,
1132,
951,
12,
84,
3631,
315,
8109,
6,
19879,
4394,
4818,
63,
84,
19226,
1082,
202,
97,
469,
288,
9506,
202,
8457,
3391,
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,
3982,
907,
752,
8183,
4020,
12,
1964,
12373,
1363,
12373,
16,
514,
2756,
16,
3025,
4394,
797,
13,
288,
202,
202,
4870,
907,
4394,
4020,
273,
394,
3982,
907,
2932,
4465,
3113,
315,
1106,
3113,
315,
2293,
17,
8457,
2037,
1266,
8863,
202,
202,
4870,
907,
4394,
1204,
273,
4394,
4020,
18,
1289,
1763,
2932,
687,
3113,
394,
514,
8526,
288,
315,
1128,
3113,
315,
2039,
6,
19879,
394,
514,
8526,
288,
2206,
4000,
19,
3113,
315,
2767,
6,
15549,
202,
202,
8457,
1204,
18,
1289,
1763,
12,
2433,
12373,
18,
2640,
1204,
3913,
1210,
12,
3644,
18,
687,
3913,
10019,
202,
202,
8457,
1204,
18,
1289,
1763,
2932,
2630,
3113,
394,
514,
8526,
288,
315,
2
] |
return null; | if (portletBufferedReader != null) return portletBufferedReader; if (portletInputStream != null) throw new IllegalStateException("getReader() cannot be called if getPortletInputStream() already called"); String encoding = getCharacterEncoding(); if (encoding == null) encoding = "iso-8859-1"; portletBufferedReader = new BufferedReader(new InputStreamReader(request.getInputStream(), encoding)); return portletBufferedReader; | public BufferedReader getReader() throws UnsupportedEncodingException, IOException { return null; } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/ae1d0661cd6881846f830d97929a07c4ee98d979/ActionRequestImpl.java/clean/src/java/org/orbeon/oxf/portlet/ActionRequestImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10633,
27173,
1435,
1216,
15367,
16,
1860,
288,
540,
309,
261,
655,
1810,
17947,
2514,
480,
446,
13,
327,
13114,
17947,
2514,
31,
282,
309,
261,
655,
1810,
4348,
480,
446,
13,
604,
394,
5477,
2932,
588,
2514,
1435,
2780,
506,
2566,
309,
11036,
1810,
4348,
1435,
1818,
2566,
8863,
282,
514,
2688,
273,
31306,
4705,
5621,
282,
309,
261,
5999,
422,
446,
13,
2688,
273,
315,
9699,
17,
17258,
17,
21,
14432,
225,
13114,
17947,
2514,
273,
394,
10633,
12,
2704,
15322,
12,
2293,
18,
588,
4348,
9334,
2688,
10019,
225,
327,
13114,
17947,
2514,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10633,
27173,
1435,
1216,
15367,
16,
1860,
288,
540,
309,
261,
655,
1810,
17947,
2514,
480,
446,
13,
327,
13114,
17947,
2514,
31,
282,
309,
261,
655,
1810,
4348,
480,
446,
13,
604,
394,
5477,
2932,
588,
2514,
1435,
2780,
506,
2566,
309,
11036,
1810,
4348,
1435,
1818,
2566,
8863,
282,
514,
2688,
273,
31306,
4705,
5621,
282,
309,
261,
5999,
422,
446,
13,
2688,
273,
315,
9699,
17,
17258,
17,
21,
14432,
225,
13114,
17947,
2514,
273,
394,
10633,
12,
2704,
15322,
12,
2293,
18,
588,
4348,
9334,
2688,
10019,
225,
327,
13114,
17947,
2514,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
status + " " + getPeer()+" "+myName+" "+currentLocation.getValue()+" "+getVersion()+" backoff: "+routingBackoffLength+" ("+(Math.max(routingBackedOffUntil - System.currentTimeMillis(),0))+")"; | (isConnected ? "CONNECTED " : "DISCONNECTED") + " " + getPeer()+" "+myName+" "+currentLocation.getValue()+" "+getVersion()+" backoff: "+routingBackoffLength+" ("+(Math.max(routingBackedOffUntil - System.currentTimeMillis(),0))+")"; | public String getStatus() { String status; if(isReallyConnected()) status = new String("CONNECTED"); else if(isConnected()) status = new String("INCOMPATIBLE"); else status = new String("DISCONNECTED"); return status + " " + getPeer()+" "+myName+" "+currentLocation.getValue()+" "+getVersion()+" backoff: "+routingBackoffLength+" ("+(Math.max(routingBackedOffUntil - System.currentTimeMillis(),0))+")"; } | 52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/f18d01b1fb86ddf4053d90e1f337f99ccd2ec255/PeerNode.java/clean/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
5870,
1435,
288,
377,
202,
780,
1267,
31,
377,
202,
430,
12,
291,
426,
1230,
8932,
10756,
377,
202,
202,
2327,
273,
394,
514,
2932,
29011,
8863,
377,
202,
12107,
309,
12,
291,
8932,
10756,
377,
202,
202,
2327,
273,
394,
514,
2932,
706,
28249,
13450,
900,
8863,
377,
202,
12107,
377,
202,
202,
2327,
273,
394,
514,
2932,
13498,
29011,
8863,
377,
202,
3639,
327,
1850,
202,
12,
291,
8932,
692,
315,
29011,
282,
315,
294,
315,
13498,
29011,
7923,
397,
315,
315,
397,
29875,
1435,
9078,
13773,
4811,
461,
9078,
13773,
2972,
2735,
18,
24805,
1435,
9078,
13773,
588,
1444,
1435,
9078,
12260,
30,
13773,
16529,
16757,
1782,
9078,
7566,
15,
12,
10477,
18,
1896,
12,
16529,
2711,
329,
7210,
9716,
300,
2332,
18,
2972,
28512,
9334,
20,
3719,
9078,
2225,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
514,
5870,
1435,
288,
377,
202,
780,
1267,
31,
377,
202,
430,
12,
291,
426,
1230,
8932,
10756,
377,
202,
202,
2327,
273,
394,
514,
2932,
29011,
8863,
377,
202,
12107,
309,
12,
291,
8932,
10756,
377,
202,
202,
2327,
273,
394,
514,
2932,
706,
28249,
13450,
900,
8863,
377,
202,
12107,
377,
202,
202,
2327,
273,
394,
514,
2932,
13498,
29011,
8863,
377,
202,
3639,
327,
1850,
202,
12,
291,
8932,
692,
315,
29011,
282,
315,
294,
315,
13498,
29011,
7923,
397,
315,
315,
397,
29875,
1435,
9078,
13773,
4811,
461,
9078,
13773,
2972,
2735,
18,
24805,
1435,
9078,
13773,
588,
1444,
1435,
9078,
12260,
30,
13773,
16529,
16757,
1782,
9078,
7566,
15,
12,
10477,
18,
2
] |
setRow(((Integer)newValue).intValue()); | setRow(((Integer) newValue).intValue()); | public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case LayoutPackage.TITLE_BLOCK__CHILDREN: getChildren().clear(); getChildren().addAll((Collection)newValue); return; case LayoutPackage.TITLE_BLOCK__BOUNDS: setBounds((Bounds)newValue); return; case LayoutPackage.TITLE_BLOCK__ANCHOR: setAnchor((Anchor)newValue); return; case LayoutPackage.TITLE_BLOCK__STRETCH: setStretch((Stretch)newValue); return; case LayoutPackage.TITLE_BLOCK__INSETS: setInsets((Insets)newValue); return; case LayoutPackage.TITLE_BLOCK__ROW: setRow(((Integer)newValue).intValue()); return; case LayoutPackage.TITLE_BLOCK__COLUMN: setColumn(((Integer)newValue).intValue()); return; case LayoutPackage.TITLE_BLOCK__ROWSPAN: setRowspan(((Integer)newValue).intValue()); return; case LayoutPackage.TITLE_BLOCK__COLUMNSPAN: setColumnspan(((Integer)newValue).intValue()); return; case LayoutPackage.TITLE_BLOCK__MIN_SIZE: setMinSize((Size)newValue); return; case LayoutPackage.TITLE_BLOCK__OUTLINE: setOutline((LineAttributes)newValue); return; case LayoutPackage.TITLE_BLOCK__BACKGROUND: setBackground((Fill)newValue); return; case LayoutPackage.TITLE_BLOCK__VISIBLE: setVisible(((Boolean)newValue).booleanValue()); return; case LayoutPackage.TITLE_BLOCK__TRIGGERS: getTriggers().clear(); getTriggers().addAll((Collection)newValue); return; case LayoutPackage.TITLE_BLOCK__LABEL: setLabel((Label)newValue); return; } eDynamicSet(eFeature, newValue); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/TitleBlockImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/TitleBlockImpl.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,
9995,
2261,
18,
14123,
67,
11403,
972,
27043,
24296,
30,
7734,
10268,
7675,
8507,
5621,
7734,
10268,
7675,
1289,
1595,
12443,
2532,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
14123,
67,
11403,
972,
5315,
2124,
3948,
30,
7734,
444,
5694,
12443,
5694,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
14123,
67,
11403,
972,
20360,
916,
30,
7734,
444,
11605,
12443,
11605,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
14123,
67,
11403,
972,
882,
10238,
1792,
30,
7734,
444,
510,
20783,
12443,
510,
20783,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
14123,
67,
11403,
972,
706,
28092,
30,
7734,
444,
382,
4424,
12443,
382,
4424,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
14123,
67,
11403,
972,
11226,
30,
7734,
444,
1999,
12443,
12,
4522,
13,
6129,
2934,
474,
620,
10663,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
14123,
67,
11403,
972,
11009,
30,
7734,
25918,
12443,
12,
4522,
13,
2704,
620,
2934,
474,
620,
10663,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
14123,
67,
11403,
972,
28402,
30819,
30,
7734,
444,
1999,
3969,
12443,
12,
4522,
13,
2704,
620,
2934,
474,
620,
10663,
7734,
327,
31,
5411,
648,
9995,
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,
9995,
2261,
18,
14123,
67,
11403,
972,
27043,
24296,
30,
7734,
10268,
7675,
8507,
5621,
7734,
10268,
7675,
1289,
1595,
12443,
2532,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
14123,
67,
11403,
972,
5315,
2124,
3948,
30,
7734,
444,
5694,
12443,
5694,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
14123,
67,
11403,
972,
20360,
916,
30,
7734,
444,
11605,
12443,
11605,
13,
2704,
620,
1769,
7734,
327,
31,
5411,
648,
9995,
2261,
18,
14123,
67,
11403,
972,
2
] |
if (VM.VerifyAssertions) VM.assert(isLoaded()); | if (VM.VerifyAssertions) VM._assert(isLoaded()); | final VM_Class[] getSubClasses() throws VM_PragmaUninterruptible { if (VM.VerifyAssertions) VM.assert(isLoaded()); return subClasses; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/f852e312fd5d6396bdeff809dda7a5e06d3d3bed/VM_Class.java/clean/rvm/src/vm/classLoader/VM_Class.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
8251,
67,
797,
8526,
7040,
4818,
1435,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
291,
8835,
10663,
565,
327,
720,
4818,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
8251,
67,
797,
8526,
7040,
4818,
1435,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
291,
8835,
10663,
565,
327,
720,
4818,
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
] |
Result result = runQuery( "with member [Measures].[Store Profit Rate] as '([Measures].[Store Sales]-[Measures].[Store Cost])/[Measures].[Store Cost]', format = '#.00%'" + nl + "select" + nl + " {[Measures].[Store Cost],[Measures].[Store Sales],[Measures].[Store Profit Rate]} on columns," + nl + " Order([Product].[Product Department].members, [Measures].[Store Profit Rate], BDESC) on rows" + nl + "from Sales" + nl + "where ([Time].[1997])"); | runQueryCheckResult(sampleQueries[5]); | public void testSample5() { Result result = runQuery( "with member [Measures].[Store Profit Rate] as '([Measures].[Store Sales]-[Measures].[Store Cost])/[Measures].[Store Cost]', format = '#.00%'" + nl + "select" + nl + " {[Measures].[Store Cost],[Measures].[Store Sales],[Measures].[Store Profit Rate]} on columns," + nl + " Order([Product].[Product Department].members, [Measures].[Store Profit Rate], BDESC) on rows" + nl + "from Sales" + nl + "where ([Time].[1997])"); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/7509e0f25235fd2cb529aabfa3408833d5f3a58b/FoodMartTestCase.java/buggy/src/main/mondrian/test/FoodMartTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8504,
25,
1435,
288,
202,
202,
1253,
563,
273,
1086,
1138,
12,
9506,
202,
6,
1918,
3140,
306,
23177,
1823,
8009,
63,
2257,
1186,
7216,
13025,
65,
487,
296,
3816,
23177,
1823,
8009,
63,
2257,
25996,
65,
17,
63,
23177,
1823,
8009,
63,
2257,
28108,
5717,
19,
63,
23177,
1823,
8009,
63,
2257,
28108,
65,
2187,
740,
273,
2946,
18,
713,
9,
4970,
397,
7741,
397,
9506,
202,
6,
4025,
6,
397,
7741,
397,
9506,
202,
6,
202,
288,
63,
23177,
1823,
8009,
63,
2257,
28108,
6487,
63,
23177,
1823,
8009,
63,
2257,
25996,
6487,
63,
23177,
1823,
8009,
63,
2257,
1186,
7216,
13025,
18322,
603,
2168,
10837,
397,
7741,
397,
9506,
202,
6,
202,
4347,
3816,
4133,
8009,
63,
4133,
4019,
24144,
8009,
7640,
16,
306,
23177,
1823,
8009,
63,
2257,
1186,
7216,
13025,
6487,
605,
10964,
13,
603,
2595,
6,
397,
7741,
397,
9506,
202,
6,
2080,
25996,
6,
397,
7741,
397,
9506,
202,
6,
6051,
23265,
950,
8009,
63,
19818,
27,
65,
2225,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8504,
25,
1435,
288,
202,
202,
1253,
563,
273,
1086,
1138,
12,
9506,
202,
6,
1918,
3140,
306,
23177,
1823,
8009,
63,
2257,
1186,
7216,
13025,
65,
487,
296,
3816,
23177,
1823,
8009,
63,
2257,
25996,
65,
17,
63,
23177,
1823,
8009,
63,
2257,
28108,
5717,
19,
63,
23177,
1823,
8009,
63,
2257,
28108,
65,
2187,
740,
273,
2946,
18,
713,
9,
4970,
397,
7741,
397,
9506,
202,
6,
4025,
6,
397,
7741,
397,
9506,
202,
6,
202,
288,
63,
23177,
1823,
8009,
63,
2257,
28108,
6487,
63,
23177,
1823,
8009,
63,
2257,
25996,
6487,
63,
23177,
1823,
8009,
63,
2257,
1186,
7216,
13025,
18322,
603,
2168,
10837,
397,
7741,
397,
9506,
202,
6,
2
] |
} else { | } else { | private PresentationObject doUpdate(IWContext iwc, TariffGroup group) throws java.rmi.RemoteException ,FinderException{ //Map mapOfIndices = Finder.mapOfIndicesByTypes(Finder.listOfTypeGroupedIndices()); Map mapOfIndices = getFinanceService().mapOfTariffIndicesByTypes(); int tariffCount = Integer.parseInt(iwc.getParameter("te_count")); String sName, sInfo, sDel, sPrice,sOldPrice, sAtt, sAK, sIndex, sIndexStamp; Integer ID; boolean bIndex; Integer tariffGroupID = Integer.valueOf(iwc.getParameter(prmGroup)); for (int i = 1; i < tariffCount + 1; i++) { ID = Integer.valueOf(iwc.getParameter("te_idinput" + i)); //System.out.println("processing "+ID); sName = iwc.getParameter("te_nameinput" + i); sPrice = (iwc.getParameter("te_priceinput" + i)); sOldPrice = (iwc.getParameter("te_oldprice"+i)); sDel = iwc.getParameter("te_delcheck" + i); sIndex = (iwc.getParameter("te_ixdrp" + i)); sIndexStamp = iwc.getParameter("te_ixdate" + i); IWTimestamp stamp = sIndexStamp != null ? new IWTimestamp(sIndexStamp) : null; if (stamp == null && sIndex != null && mapOfIndices != null && mapOfIndices.containsKey(sIndex)) { stamp = new IWTimestamp(((TariffIndex) mapOfIndices.get(sIndex)).getDate()); } // SHALL WE DELETE ? if (sDel != null ) { //System.err.println("deletion"); try { getFinanceService().removeTariff(ID); } catch (RemoteException e) { e.printStackTrace(); } catch (FinderException e) { e.printStackTrace(); } catch (RemoveException e) { e.printStackTrace(); } //FinanceBusiness.deleteTariff(ID); } // IF SINGLE EDIT LINE, THEN UPDATE else if(sName !=null && !"".equals(sName)){ //System.err.println("full form save"); sInfo = iwc.getParameter("te_infoinput" + i); sAtt = iwc.getParameter("te_attdrp" + i); sAK = (iwc.getParameter("te_akdrp" + i)); if (sIndex != null && !sIndex.equals("-1")) { bIndex = true; } else { bIndex = false; sIndex = ""; } java.sql.Timestamp indexStamp = stamp != null ? stamp.getTimestamp() : null; try { //FinanceBusiness.saveTariff( ID,sName, sInfo,sAtt,sIndex,bIndex,indexStamp,Float.parseFloat(sPrice),Integer.parseInt(sAK), tariffGroupID); getFinanceService().createOrUpdateTariff(ID,sName, sInfo,sAtt,sIndex,bIndex,indexStamp,Float.parseFloat(sPrice),Integer.valueOf(sAK), tariffGroupID); } catch (NumberFormatException e) { e.printStackTrace(); } catch (RemoteException e) { e.printStackTrace(); } catch (FinderException e) { e.printStackTrace(); } catch (CreateException e) { e.printStackTrace(); } } // IF PRICE UPDATE else if(sPrice!=null && sOldPrice!=null){ //System.out.println("prices not null"); if(!sPrice.equals(sOldPrice)){ //System.out.println("prices not same"); java.sql.Timestamp indexStamp = stamp != null ? stamp.getTimestamp() : null; getFinanceService().updateTariffPrice(ID,Float.valueOf(sPrice),indexStamp); //FinanceBusiness.updateTariffPrice(ID,Float.parseFloat(sPrice),indexStamp); } } } // for loop return getSingleLineChange(iwc, false, false, group); } | 57001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57001/33e5c85ca31478329116ab80b95fd07320394530/TariffEditor.java/clean/src/java/com/idega/block/finance/presentation/TariffEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
25130,
367,
921,
741,
1891,
12,
45,
59,
1042,
25522,
71,
16,
20334,
3048,
1114,
1041,
13,
202,
202,
15069,
2252,
18,
8864,
77,
18,
5169,
503,
269,
8441,
503,
95,
202,
202,
759,
863,
852,
951,
8776,
273,
19307,
18,
1458,
951,
8776,
858,
2016,
12,
8441,
18,
1098,
18859,
24125,
8776,
10663,
202,
202,
863,
852,
951,
8776,
273,
2812,
267,
1359,
1179,
7675,
1458,
951,
20464,
3048,
8776,
858,
2016,
5621,
202,
202,
474,
8232,
3048,
1380,
273,
2144,
18,
2670,
1702,
12,
22315,
71,
18,
588,
1662,
2932,
736,
67,
1883,
7923,
1769,
202,
202,
780,
14933,
16,
272,
966,
16,
272,
2837,
16,
272,
5147,
16,
87,
7617,
5147,
16,
272,
3075,
16,
272,
14607,
16,
272,
1016,
16,
272,
1016,
8860,
31,
202,
202,
4522,
1599,
31,
202,
202,
6494,
324,
1016,
31,
9506,
202,
4522,
8232,
3048,
30876,
273,
2144,
18,
1132,
951,
12,
22315,
71,
18,
588,
1662,
12,
683,
81,
1114,
10019,
202,
202,
1884,
261,
474,
277,
273,
404,
31,
277,
411,
8232,
3048,
1380,
397,
404,
31,
277,
27245,
288,
25083,
202,
734,
273,
2144,
18,
1132,
951,
12,
22315,
71,
18,
588,
1662,
2932,
736,
67,
350,
2630,
6,
397,
277,
10019,
1082,
202,
759,
3163,
18,
659,
18,
8222,
2932,
10632,
13773,
734,
1769,
1082,
202,
87,
461,
273,
25522,
71,
18,
588,
1662,
2932,
736,
67,
529,
2630,
6,
397,
277,
1769,
1082,
202,
87,
5147,
273,
261,
22315,
71,
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,
25130,
367,
921,
741,
1891,
12,
45,
59,
1042,
25522,
71,
16,
20334,
3048,
1114,
1041,
13,
202,
202,
15069,
2252,
18,
8864,
77,
18,
5169,
503,
269,
8441,
503,
95,
202,
202,
759,
863,
852,
951,
8776,
273,
19307,
18,
1458,
951,
8776,
858,
2016,
12,
8441,
18,
1098,
18859,
24125,
8776,
10663,
202,
202,
863,
852,
951,
8776,
273,
2812,
267,
1359,
1179,
7675,
1458,
951,
20464,
3048,
8776,
858,
2016,
5621,
202,
202,
474,
8232,
3048,
1380,
273,
2144,
18,
2670,
1702,
12,
22315,
71,
18,
588,
1662,
2932,
736,
67,
1883,
7923,
1769,
202,
202,
780,
14933,
16,
272,
966,
16,
272,
2837,
16,
272,
5147,
16,
87,
7617,
5147,
16,
272,
2
] |
case ARRAYLIT: return "ARRAYLIT"; case OBJLIT: return "OBJLIT"; | public static String name(int token) { if (printNames) { switch (token) { case ERROR: return "ERROR"; case EOF: return "EOF"; case EOL: return "EOL"; case POPV: return "POPV"; case ENTERWITH: return "ENTERWITH"; case LEAVEWITH: return "LEAVEWITH"; case RETURN: return "RETURN"; case GOTO: return "GOTO"; case IFEQ: return "IFEQ"; case IFNE: return "IFNE"; case SETNAME: return "SETNAME"; case BITOR: return "BITOR"; case BITXOR: return "BITXOR"; case BITAND: return "BITAND"; case EQ: return "EQ"; case NE: return "NE"; case LT: return "LT"; case LE: return "LE"; case GT: return "GT"; case GE: return "GE"; case LSH: return "LSH"; case RSH: return "RSH"; case URSH: return "URSH"; case ADD: return "ADD"; case SUB: return "SUB"; case MUL: return "MUL"; case DIV: return "DIV"; case MOD: return "MOD"; case NOT: return "NOT"; case BITNOT: return "BITNOT"; case POS: return "POS"; case NEG: return "NEG"; case NEW: return "NEW"; case DELPROP: return "DELPROP"; case TYPEOF: return "TYPEOF"; case GETPROP: return "GETPROP"; case SETPROP: return "SETPROP"; case GETELEM: return "GETELEM"; case SETELEM: return "SETELEM"; case CALL: return "CALL"; case NAME: return "NAME"; case NUMBER: return "NUMBER"; case STRING: return "STRING"; case ZERO: return "ZERO"; case ONE: return "ONE"; case NULL: return "NULL"; case THIS: return "THIS"; case FALSE: return "FALSE"; case TRUE: return "TRUE"; case SHEQ: return "SHEQ"; case SHNE: return "SHNE"; case REGEXP: return "OBJECT"; case POP: return "POP"; case BINDNAME: return "BINDNAME"; case THROW: return "THROW"; case IN: return "IN"; case INSTANCEOF: return "INSTANCEOF"; case LOCAL_SAVE: return "LOCAL_SAVE"; case LOCAL_LOAD: return "LOCAL_LOAD"; case GETVAR: return "GETVAR"; case SETVAR: return "SETVAR"; case UNDEFINED: return "UNDEFINED"; case TRY: return "TRY"; case CATCH_SCOPE: return "CATCH_SCOPE"; case ENUM_INIT: return "ENUM_INIT"; case ENUM_NEXT: return "ENUM_NEXT"; case ENUM_ID: return "ENUM_ID"; case THISFN: return "THISFN"; case RETURN_POPV: return "RETURN_POPV"; case SEMI: return "SEMI"; case LB: return "LB"; case RB: return "RB"; case LC: return "LC"; case RC: return "RC"; case LP: return "LP"; case RP: return "RP"; case COMMA: return "COMMA"; case ASSIGN: return "ASSIGN"; case ASSIGNOP: return "ASSIGNOP"; case HOOK: return "HOOK"; case COLON: return "COLON"; case OR: return "OR"; case AND: return "AND"; case INC: return "INC"; case DEC: return "DEC"; case DOT: return "DOT"; case FUNCTION: return "FUNCTION"; case EXPORT: return "EXPORT"; case IMPORT: return "IMPORT"; case IF: return "IF"; case ELSE: return "ELSE"; case SWITCH: return "SWITCH"; case CASE: return "CASE"; case DEFAULT: return "DEFAULT"; case WHILE: return "WHILE"; case DO: return "DO"; case FOR: return "FOR"; case BREAK: return "BREAK"; case CONTINUE: return "CONTINUE"; case VAR: return "VAR"; case WITH: return "WITH"; case CATCH: return "CATCH"; case FINALLY: return "FINALLY"; case RESERVED: return "RESERVED"; case EMPTY: return "EMPTY"; case BLOCK: return "BLOCK"; case ARRAYLIT: return "ARRAYLIT"; case OBJLIT: return "OBJLIT"; case LABEL: return "LABEL"; case TARGET: return "TARGET"; case LOOP: return "LOOP"; case EXPRSTMT: return "EXPRSTMT"; case JSR: return "JSR"; case SCRIPT: return "SCRIPT"; case TYPEOFNAME: return "TYPEOFNAME"; case USE_STACK: return "USE_STACK"; case SETPROP_OP: return "SETPROP_OP"; case SETELEM_OP: return "SETELEM_OP"; case INIT_LIST: return "INIT_LIST"; case LOCAL_BLOCK: return "LOCAL_BLOCK"; } return "<unknown="+token+">"; } return null; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/6d458931ee3299fbfab0e9840614ad9b93413dd4/Token.java/clean/src/org/mozilla/javascript/Token.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
508,
12,
474,
1147,
13,
565,
288,
3639,
309,
261,
1188,
1557,
13,
288,
5411,
1620,
261,
2316,
13,
288,
7734,
648,
5475,
30,
6647,
327,
315,
3589,
14432,
7734,
648,
6431,
30,
2398,
327,
315,
12706,
14432,
7734,
648,
19995,
30,
2398,
327,
315,
5842,
14432,
7734,
648,
26839,
58,
30,
5411,
327,
315,
2419,
30201,
14432,
7734,
648,
20018,
9147,
30,
4202,
327,
315,
12278,
9147,
14432,
7734,
648,
5380,
26714,
9147,
30,
4202,
327,
315,
900,
26714,
9147,
14432,
7734,
648,
14780,
30,
1850,
327,
315,
14033,
14432,
7734,
648,
611,
27019,
30,
5411,
327,
315,
43,
27019,
14432,
7734,
648,
467,
8090,
53,
30,
5411,
327,
315,
5501,
27247,
14432,
7734,
648,
11083,
5407,
30,
5411,
327,
315,
5501,
5407,
14432,
7734,
648,
7855,
1985,
30,
540,
327,
315,
4043,
1985,
14432,
7734,
648,
20469,
916,
30,
6647,
327,
315,
15650,
916,
14432,
7734,
648,
20469,
60,
916,
30,
1850,
327,
315,
15650,
60,
916,
14432,
7734,
648,
20469,
4307,
30,
1850,
327,
315,
15650,
4307,
14432,
7734,
648,
22426,
30,
2868,
327,
315,
27247,
14432,
7734,
648,
12901,
30,
2868,
327,
315,
5407,
14432,
7734,
648,
11807,
30,
2868,
327,
315,
12050,
14432,
7734,
648,
5380,
30,
2868,
327,
315,
900,
14432,
7734,
648,
19688,
30,
2868,
327,
315,
16506,
14432,
7734,
648,
17788,
30,
2868,
327,
315,
7113,
14432,
7734,
648,
511,
2664,
30,
2398,
327,
315,
48,
2664,
14432,
7734,
648,
534,
2664,
30,
2398,
327,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
508,
12,
474,
1147,
13,
565,
288,
3639,
309,
261,
1188,
1557,
13,
288,
5411,
1620,
261,
2316,
13,
288,
7734,
648,
5475,
30,
6647,
327,
315,
3589,
14432,
7734,
648,
6431,
30,
2398,
327,
315,
12706,
14432,
7734,
648,
19995,
30,
2398,
327,
315,
5842,
14432,
7734,
648,
26839,
58,
30,
5411,
327,
315,
2419,
30201,
14432,
7734,
648,
20018,
9147,
30,
4202,
327,
315,
12278,
9147,
14432,
7734,
648,
5380,
26714,
9147,
30,
4202,
327,
315,
900,
26714,
9147,
14432,
7734,
648,
14780,
30,
1850,
327,
315,
14033,
14432,
7734,
648,
611,
27019,
30,
5411,
327,
315,
43,
27019,
14432,
7734,
648,
467,
8090,
53,
30,
5411,
327,
315,
5501,
27247,
14432,
7734,
2
] |
|
CmsDbContext dbc = m_dbContextFactory.getDbContext(context); | CmsDbContext dbc = m_dbContextFactory.getDbContext(context); | public void resetPassword(CmsRequestContext context, String username, String oldPassword, String newPassword) throws CmsException, CmsSecurityException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { m_driverManager.resetPassword(dbc, username, oldPassword, newPassword); } catch (Exception e) { dbc.report(null, null, e); } finally { dbc.clear(); } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/a7ffa3c192d7068f584b0a3a844b88bdb2d3145a/CmsSecurityManager.java/buggy/src/org/opencms/db/CmsSecurityManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
3913,
12,
4747,
21426,
819,
16,
514,
2718,
16,
514,
1592,
3913,
16,
514,
394,
3913,
13,
565,
1216,
11228,
16,
2149,
24918,
288,
3639,
30670,
9881,
273,
312,
67,
1966,
29871,
18,
588,
4331,
1042,
12,
2472,
1769,
6647,
775,
288,
5411,
312,
67,
7407,
1318,
18,
6208,
3913,
12,
9137,
16,
2718,
16,
1592,
3913,
16,
394,
3913,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
9881,
18,
6006,
12,
2011,
16,
446,
16,
425,
1769,
3639,
289,
3095,
288,
5411,
9881,
18,
8507,
5621,
3639,
289,
5411,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
3913,
12,
4747,
21426,
819,
16,
514,
2718,
16,
514,
1592,
3913,
16,
514,
394,
3913,
13,
565,
1216,
11228,
16,
2149,
24918,
288,
3639,
30670,
9881,
273,
312,
67,
1966,
29871,
18,
588,
4331,
1042,
12,
2472,
1769,
6647,
775,
288,
5411,
312,
67,
7407,
1318,
18,
6208,
3913,
12,
9137,
16,
2718,
16,
1592,
3913,
16,
394,
3913,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
9881,
18,
6006,
12,
2011,
16,
446,
16,
425,
1769,
3639,
289,
3095,
288,
5411,
9881,
18,
8507,
5621,
3639,
289,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
new Label( cSetting, SWT.NONE ).setText( Messages.getString( "FormatNumberPreferencePage.symbolPosition.label" ) ); | new Label( cSetting, SWT.NONE ).setText( LABEL_SYMBOL_POSITION ); | private Composite getCurrencyPage( Composite parent ) { if ( currencyPage == null ) { currencyPage = new Composite( parent, SWT.NULL ); currencyPage.setLayout( new GridLayout( 1, false ) ); Group cSetting = new Group( currencyPage, SWT.NONE ); cSetting.setText( Messages.getString( "FormatNumberPreferencePage.currencySetting.groupLabel" ) ); //$NON-NLS-1$ cSetting.setLayoutData( createGridData4Group( ) ); cSetting.setLayout( new GridLayout( 2, false ) ); new Label( cSetting, SWT.NONE ).setText( Messages.getString( "FormatNumberPreferencePage.currencySetting.decimalPlaces" ) ); //$NON-NLS-1$ cPlacesChoice = new Combo( cSetting, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL ); cPlacesChoice.setItems( new String[]{ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$ //$NON-NLS-10$ //$NON-NLS-11$ } ); GridData data = new GridData( GridData.FILL_HORIZONTAL ); data.heightHint = 20; cPlacesChoice.setLayoutData( data ); cPlacesChoice.addSelectionListener( mySelectionListener ); cPlacesChoice.addModifyListener( myModifyListener ); cPlacesChoice.select( 2 ); cUseSep = new Button( cSetting, SWT.CHECK ); cUseSep.setText( Messages.getString( "FormatNumberPreferencePage.use1000sSeparator.label" ) ); //$NON-NLS-1$ data = new GridData( ); data.horizontalSpan = 2; cUseSep.setLayoutData( data ); cUseSep.addSelectionListener( mySelectionListener ); new Label( cSetting, SWT.NONE ).setText( Messages.getString( "FormatNumberPreferencePage.symbol.label" ) ); //$NON-NLS-1$ cSymbolChoice = new Combo( cSetting, SWT.DROP_DOWN | SWT.READ_ONLY ); cSymbolChoice.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_FILL ) ); cSymbolChoice.setItems( symbols ); cSymbolChoice.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( cSymbolChoice.getSelectionIndex( ) == 0 ) { cSymPosChoice.deselectAll( ); cSymPosChoice.setEnabled( false ); } else { if ( !cSymPosChoice.isEnabled( ) ) { cSymPosChoice.setEnabled( true ); cSymPosChoice.select( 1 ); } } updatePreview( ); } } ); cSymbolChoice.select( 0 ); new Label( cSetting, SWT.NONE ).setText( Messages.getString( "FormatNumberPreferencePage.symbolPosition.label" ) ); //$NON-NLS-1$ cSymPosChoice = new Combo( cSetting, SWT.DROP_DOWN | SWT.READ_ONLY ); cSymPosChoice.setItems( new String[]{ SYMBOL_POSITION_AFTER, SYMBOL_POSITION_BEFORE } ); cSymPosChoice.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); cSymPosChoice.addSelectionListener( mySelectionListener ); cSymPosChoice.setEnabled( false ); Label label = new Label( cSetting, SWT.NONE ); label.setLayoutData( new GridData( GridData.VERTICAL_ALIGN_BEGINNING ) ); label.setText( Messages.getString( "FormatNumberPreferencePage.negativeNum.label" ) ); //$NON-NLS-1$ cNegNumChoice = new List( cSetting, SWT.SINGLE | SWT.BORDER | SWT.V_SCROLL ); cNegNumChoice.add( "-1234.56" ); //$NON-NLS-1$ cNegNumChoice.add( "(-1234.56)" ); //$NON-NLS-1$ data = new GridData( GridData.FILL_HORIZONTAL ); cNegNumChoice.setLayoutData( data ); cNegNumChoice.addSelectionListener( mySelectionListener ); cNegNumChoice.select( 0 ); cPreviewLabel = createPreviewText( currencyPage, DEFAULT_WITH ); } return currencyPage; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ed52f1732ec1c1eef0fd79e44d2e45f78973153a/FormatNumberPage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
17910,
1964,
12,
14728,
982,
262,
202,
95,
202,
202,
430,
261,
5462,
1964,
422,
446,
262,
202,
202,
95,
1082,
202,
7095,
1964,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
8560,
11272,
1082,
202,
7095,
1964,
18,
542,
3744,
12,
394,
7145,
3744,
12,
404,
16,
629,
262,
11272,
1082,
202,
1114,
276,
5568,
273,
394,
3756,
12,
5462,
1964,
16,
348,
8588,
18,
9826,
11272,
1082,
202,
71,
5568,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
1630,
1854,
9624,
1964,
18,
7095,
5568,
18,
1655,
2224,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
71,
5568,
18,
542,
3744,
751,
12,
752,
6313,
751,
24,
1114,
12,
262,
11272,
1082,
202,
71,
5568,
18,
542,
3744,
12,
394,
7145,
3744,
12,
576,
16,
629,
262,
11272,
1082,
202,
2704,
5287,
12,
276,
5568,
16,
348,
8588,
18,
9826,
262,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
1630,
1854,
9624,
1964,
18,
7095,
5568,
18,
12586,
24791,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
71,
24791,
10538,
273,
394,
1286,
1075,
12,
276,
5568,
16,
348,
8588,
18,
38,
7954,
6862,
202,
96,
348,
8588,
18,
20184,
6862,
202,
96,
348,
8588,
18,
58,
67,
2312,
14555,
11272,
1082,
202,
71,
24791,
10538,
18,
542,
3126,
12,
394,
514,
63,
7073,
6862,
202,
6,
20,
3113,
315,
21,
3113,
315,
22,
3113,
315,
23,
3113,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
17910,
1964,
12,
14728,
982,
262,
202,
95,
202,
202,
430,
261,
5462,
1964,
422,
446,
262,
202,
202,
95,
1082,
202,
7095,
1964,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
8560,
11272,
1082,
202,
7095,
1964,
18,
542,
3744,
12,
394,
7145,
3744,
12,
404,
16,
629,
262,
11272,
1082,
202,
1114,
276,
5568,
273,
394,
3756,
12,
5462,
1964,
16,
348,
8588,
18,
9826,
11272,
1082,
202,
71,
5568,
18,
542,
1528,
12,
4838,
18,
588,
780,
12,
315,
1630,
1854,
9624,
1964,
18,
7095,
5568,
18,
1655,
2224,
6,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
71,
5568,
18,
542,
3744,
751,
12,
752,
6313,
751,
2
] |
case 23: | case 23: /* reduce AIdValOrSid */ | public Start parse() throws ParserException, LexerException, IOException { push(0, null); List ign = null; while(true) { while(index(lexer.peek()) == -1) { if(ign == null) { ign = new TypedLinkedList(NodeCast.instance); } ign.add(lexer.next()); } if(ign != null) { ignoredTokens.setIn(lexer.peek(), ign); ign = null; } last_pos = lexer.peek().getPos(); last_line = lexer.peek().getLine(); last_token = lexer.peek(); int index = index(lexer.peek()); action[0] = actionTable[state()][0][1]; action[1] = actionTable[state()][0][2]; int low = 1; int high = actionTable[state()].length - 1; while(low <= high) { int middle = (low + high) / 2; if(index < actionTable[state()][middle][0]) { high = middle - 1; } else if(index > actionTable[state()][middle][0]) { low = middle + 1; } else { action[0] = actionTable[state()][middle][1]; action[1] = actionTable[state()][middle][2]; break; } } switch(action[0]) { case SHIFT: { ArrayList list = new ArrayList(); list.add(lexer.next()); push(action[1], list); last_shift = action[1]; } break; case REDUCE: switch(action[1]) { case 0: { ArrayList list = new0(); push(goTo(0), list); } break; case 1: { ArrayList list = new1(); push(goTo(0), list); } break; case 2: { ArrayList list = new2(); push(goTo(0), list); } break; case 3: { ArrayList list = new3(); push(goTo(0), list); } break; case 4: { ArrayList list = new4(); push(goTo(1), list); } break; case 5: { ArrayList list = new5(); push(goTo(1), list); } break; case 6: { ArrayList list = new6(); push(goTo(1), list); } break; case 7: { ArrayList list = new7(); push(goTo(1), list); } break; case 8: { ArrayList list = new8(); push(goTo(1), list); } break; case 9: { ArrayList list = new9(); push(goTo(1), list); } break; case 10: { ArrayList list = new10(); push(goTo(1), list); } break; case 11: { ArrayList list = new11(); push(goTo(1), list); } break; case 12: { ArrayList list = new12(); push(goTo(2), list); } break; case 13: { ArrayList list = new13(); push(goTo(2), list); } break; case 14: { ArrayList list = new14(); push(goTo(2), list); } break; case 15: { ArrayList list = new15(); push(goTo(2), list); } break; case 16: { ArrayList list = new16(); push(goTo(3), list); } break; case 17: { ArrayList list = new17(); push(goTo(4), list); } break; case 18: { ArrayList list = new18(); push(goTo(4), list); } break; case 19: { ArrayList list = new19(); push(goTo(5), list); } break; case 20: { ArrayList list = new20(); push(goTo(5), list); } break; case 21: { ArrayList list = new21(); push(goTo(5), list); } break; case 22: { ArrayList list = new22(); push(goTo(5), list); } break; case 23: { ArrayList list = new23(); push(goTo(5), list); } break; case 24: { ArrayList list = new24(); push(goTo(5), list); } break; case 25: { ArrayList list = new25(); push(goTo(6), list); } break; case 26: { ArrayList list = new26(); push(goTo(7), list); } break; case 27: { ArrayList list = new27(); push(goTo(7), list); } break; case 28: { ArrayList list = new28(); push(goTo(8), list); } break; case 29: { ArrayList list = new29(); push(goTo(8), list); } break; case 30: { ArrayList list = new30(); push(goTo(9), list); } break; case 31: { ArrayList list = new31(); push(goTo(9), list); } break; case 32: { ArrayList list = new32(); push(goTo(10), list); } break; case 33: { ArrayList list = new33(); push(goTo(10), list); } break; } break; case ACCEPT: { EOF node2 = (EOF) lexer.next(); PBibtex node1 = (PBibtex) ((ArrayList)pop()).get(0); Start node = new Start(node1, node2); return node; } case ERROR: throw new ParserException(last_token, "[" + last_line + "," + last_pos + "] " + errorMessages[errors[action[1]]]); } } } | 50059 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50059/a343b73e05abe516d42c4d6672f63a8325be4a98/Parser.java/buggy/sub/source/net/sourceforge/texlipse/bibparser/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3603,
1109,
1435,
1216,
27990,
16,
14234,
503,
16,
1860,
565,
288,
3639,
1817,
12,
20,
16,
446,
1769,
3639,
987,
9750,
273,
446,
31,
3639,
1323,
12,
3767,
13,
3639,
288,
5411,
1323,
12,
1615,
12,
31731,
18,
347,
3839,
10756,
422,
300,
21,
13,
5411,
288,
7734,
309,
12,
724,
422,
446,
13,
7734,
288,
10792,
9750,
273,
394,
13833,
13174,
682,
12,
907,
9735,
18,
1336,
1769,
7734,
289,
7734,
9750,
18,
1289,
12,
31731,
18,
4285,
10663,
5411,
289,
5411,
309,
12,
724,
480,
446,
13,
5411,
288,
7734,
5455,
5157,
18,
542,
382,
12,
31731,
18,
347,
3839,
9334,
9750,
1769,
7734,
9750,
273,
446,
31,
5411,
289,
5411,
1142,
67,
917,
273,
8512,
18,
347,
3839,
7675,
588,
1616,
5621,
5411,
1142,
67,
1369,
273,
8512,
18,
347,
3839,
7675,
588,
1670,
5621,
5411,
1142,
67,
2316,
273,
8512,
18,
347,
3839,
5621,
5411,
509,
770,
273,
770,
12,
31731,
18,
347,
3839,
10663,
5411,
1301,
63,
20,
65,
273,
1301,
1388,
63,
2019,
1435,
6362,
20,
6362,
21,
15533,
5411,
1301,
63,
21,
65,
273,
1301,
1388,
63,
2019,
1435,
6362,
20,
6362,
22,
15533,
5411,
509,
4587,
273,
404,
31,
5411,
509,
3551,
273,
1301,
1388,
63,
2019,
1435,
8009,
2469,
300,
404,
31,
5411,
1323,
12,
821,
1648,
3551,
13,
5411,
288,
7734,
509,
7689,
273,
261,
821,
397,
3551,
13,
342,
576,
31,
7734,
309,
12,
1615,
411,
1301,
1388,
63,
2019,
1435,
6362,
18661,
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,
3603,
1109,
1435,
1216,
27990,
16,
14234,
503,
16,
1860,
565,
288,
3639,
1817,
12,
20,
16,
446,
1769,
3639,
987,
9750,
273,
446,
31,
3639,
1323,
12,
3767,
13,
3639,
288,
5411,
1323,
12,
1615,
12,
31731,
18,
347,
3839,
10756,
422,
300,
21,
13,
5411,
288,
7734,
309,
12,
724,
422,
446,
13,
7734,
288,
10792,
9750,
273,
394,
13833,
13174,
682,
12,
907,
9735,
18,
1336,
1769,
7734,
289,
7734,
9750,
18,
1289,
12,
31731,
18,
4285,
10663,
5411,
289,
5411,
309,
12,
724,
480,
446,
13,
5411,
288,
7734,
5455,
5157,
18,
542,
382,
12,
31731,
18,
347,
3839,
9334,
9750,
1769,
7734,
9750,
273,
446,
31,
5411,
289,
5411,
1142,
67,
917,
2
] |
/** * Run the runnable as an asyncExec. * * @param runnable */ private void runAsync(Runnable runnable) { Shell currentShell = getShell(); if (currentShell == null || currentShell.isDisposed()) return; currentShell.getDisplay().asyncExec(runnable); } | private IProgressMonitorWithBlocking getBlockingProgressMonitor() { return new IProgressMonitorWithBlocking() { /** * Run the runnable as an asyncExec. * * @param runnable */ private void runAsync(Runnable runnable) { Shell currentShell = getShell(); if (currentShell == null || currentShell.isDisposed()) return; currentShell.getDisplay().asyncExec(runnable); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#beginTask(java.lang.String, * int) */ public void beginTask(String name, int totalWork) { final String finalName = name; final int finalWork = totalWork; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { getProgressMonitor().beginTask(finalName, finalWork); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#clearBlocked() */ public void clearBlocked() { runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { ((IProgressMonitorWithBlocking) getProgressMonitor()) .clearBlocked(); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#done() */ public void done() { runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { getProgressMonitor().done(); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#internalWorked(double) */ public void internalWorked(double work) { final double finalWork = work; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { getProgressMonitor().internalWorked(finalWork); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#isCanceled() */ public boolean isCanceled() { return getProgressMonitor().isCanceled(); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#setBlocked(org.eclipse.core.runtime.IStatus) */ public void setBlocked(IStatus reason) { final IStatus finalReason = reason; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { ((IProgressMonitorWithBlocking) getProgressMonitor()) .setBlocked(finalReason); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#setCanceled(boolean) */ public void setCanceled(boolean value) { // Just a listener - doesn't matter. } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#setTaskName(java.lang.String) */ public void setTaskName(String name) { final String finalName = name; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { getProgressMonitor().setTaskName(finalName); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#subTask(java.lang.String) */ public void subTask(String name) { final String finalName = name; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { getProgressMonitor().subTask(finalName); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#worked(int) */ public void worked(int work) { internalWorked(work); } }; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/011a48b8ec747a10e36868931da0ff7e7880bf98/ProgressMonitorFocusJobDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorFocusJobDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
5491,
7187,
1190,
8728,
336,
8728,
5491,
7187,
1435,
288,
202,
202,
2463,
394,
467,
5491,
7187,
1190,
8728,
1435,
288,
1082,
202,
26873,
9506,
380,
1939,
326,
14685,
487,
392,
4326,
1905,
18,
9506,
380,
4697,
380,
632,
891,
14685,
9506,
1195,
1082,
202,
1152,
918,
1086,
2771,
12,
20013,
14685,
13,
288,
9506,
202,
13220,
783,
13220,
273,
7932,
1165,
5621,
9506,
202,
430,
261,
2972,
13220,
422,
446,
747,
783,
13220,
18,
291,
1669,
7423,
10756,
6862,
202,
2463,
31,
9506,
202,
2972,
13220,
18,
588,
4236,
7675,
3810,
1905,
12,
2681,
6914,
1769,
1082,
202,
97,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
3644,
18,
9448,
18,
45,
5491,
7187,
7,
10086,
2174,
12,
6290,
18,
4936,
18,
780,
16,
9506,
380,
1377,
509,
13,
9506,
1195,
1082,
202,
482,
918,
2376,
2174,
12,
780,
508,
16,
509,
2078,
2421,
13,
288,
9506,
202,
6385,
514,
727,
461,
273,
508,
31,
9506,
202,
6385,
509,
727,
2421,
273,
2078,
2421,
31,
9506,
202,
2681,
2771,
12,
2704,
10254,
1435,
288,
6862,
202,
20308,
25083,
380,
261,
5836,
17,
24060,
13,
25083,
380,
9944,
380,
632,
5946,
2252,
18,
4936,
18,
20013,
7,
2681,
1435,
25083,
1195,
6862,
202,
482,
918,
1086,
1435,
288,
25083,
202,
588,
5491,
7187,
7675,
10086,
2174,
12,
6385,
461,
16,
727,
2421,
1769,
6862,
202,
97,
9506,
202,
22938,
1082,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
5491,
7187,
1190,
8728,
336,
8728,
5491,
7187,
1435,
288,
202,
202,
2463,
394,
467,
5491,
7187,
1190,
8728,
1435,
288,
1082,
202,
26873,
9506,
380,
1939,
326,
14685,
487,
392,
4326,
1905,
18,
9506,
380,
4697,
380,
632,
891,
14685,
9506,
1195,
1082,
202,
1152,
918,
1086,
2771,
12,
20013,
14685,
13,
288,
9506,
202,
13220,
783,
13220,
273,
7932,
1165,
5621,
9506,
202,
430,
261,
2972,
13220,
422,
446,
747,
783,
13220,
18,
291,
1669,
7423,
10756,
6862,
202,
2463,
31,
9506,
202,
2972,
13220,
18,
588,
4236,
7675,
3810,
1905,
12,
2681,
6914,
1769,
1082,
202,
97,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
2
] |
|
private void importResource( | private CmsResource importResource( | private void importResource( String source, String destination, String type, String user, String group, String access, long lastmodified, Map properties, String launcherStartClass, Vector writtenFilenames, Vector fileCodes ) { boolean success = true; byte[] content = null; String fullname = null; try { if (m_importingChannelData) { m_cms.setContextToCos(); // try to read an existing channel to get the channel id String channelId = null; try { if ((type.equalsIgnoreCase(C_TYPE_FOLDER_NAME)) && (! destination.endsWith(C_FOLDER_SEPARATOR))) { destination += C_FOLDER_SEPARATOR; } CmsResource res = m_cms.readFileHeader(C_ROOT + destination); channelId = m_cms.readProperty(res.getAbsolutePath(), I_CmsConstants.C_PROPERTY_CHANNELID); } catch (Exception e) { // ignore the exception, a new channel id will be generated } if (channelId == null) { // the channel id does not exist, so generate a new one int newChannelId = com.opencms.db.CmsIdGenerator.nextId(C_TABLE_CHANNELID); channelId = "" + newChannelId; } properties.put(I_CmsConstants.C_PROPERTY_CHANNELID, channelId); } // get the file content if (source != null) { content = getFileBytes(source); } // check and convert old import files if (m_importVersion < 2) { // convert content from pre 5.x must be activated if ("page".equals(type) || ("plain".equals(type)) || ("XMLTemplate".equals(type))) { if (DEBUG > 0){ System.err.println("#########################"); System.err.println("["+this.getClass().getName()+".importResource()]: starting conversion of \""+type+"\" resource "+source+"."); } // change the filecontent for encoding if necessary content = convertFile(source, content); } // only check the file type if the version of the export is 0 if(m_importVersion == 0){ // ok, a (very) old system exported this, check if the file is ok if(!(new CmsCompatibleCheck()).isTemplateCompatible(m_importPath + destination, content, type)){ type = C_TYPE_COMPATIBLEPLAIN_NAME; m_report.print(m_report.key("report.must_set_to") + C_TYPE_COMPATIBLEPLAIN_NAME + " ", I_CmsReport.C_FORMAT_WARNING); } } } // version 2.0 import (since OpenCms 5.0), no content conversion required CmsResource res = m_cms.importResource(source, destination, type, user, group, access, lastmodified, properties, launcherStartClass, content, m_importPath); if(res != null){ fullname = res.getAbsolutePath(); if(C_TYPE_PAGE_NAME.equals(type)){ m_importedPages.add(fullname); } } m_report.println(m_report.key("report.ok"), I_CmsReport.C_FORMAT_OK); } catch (Exception exc) { // an error while importing the file success = false; m_report.println(exc); try { // Sleep some time after an error so that the report output has a chance to keep up Thread.sleep(1000); } catch (Exception e) {}; } finally { if (m_importingChannelData) m_cms.setContextToVfs(); } byte[] digestContent = {0}; if (content != null) { digestContent = m_digest.digest(content); } if (success && (fullname != null)){ if (writtenFilenames != null){ writtenFilenames.addElement(fullname); } if (fileCodes != null){ fileCodes.addElement(new String(digestContent)); } } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/d3e3de3a0825215c4681bbdf431c4c579b548527/CmsImport.java/buggy/src/com/opencms/file/CmsImport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
7630,
1930,
1420,
12,
3639,
514,
1084,
16,
540,
514,
2929,
16,
540,
514,
618,
16,
540,
514,
729,
16,
540,
514,
1041,
16,
540,
514,
2006,
16,
540,
1525,
1142,
7342,
16,
540,
1635,
1790,
16,
540,
514,
26618,
1685,
797,
16,
540,
5589,
5941,
25579,
6809,
16,
540,
5589,
585,
6295,
565,
262,
288,
3639,
1250,
2216,
273,
638,
31,
3639,
1160,
8526,
913,
273,
446,
31,
3639,
514,
13321,
273,
446,
31,
13491,
775,
288,
5411,
309,
261,
81,
67,
5666,
310,
2909,
751,
13,
288,
7734,
312,
67,
6851,
18,
542,
1042,
774,
39,
538,
5621,
27573,
368,
775,
358,
855,
392,
2062,
1904,
358,
336,
326,
1904,
612,
7734,
514,
27709,
273,
446,
31,
7734,
775,
288,
10792,
309,
14015,
723,
18,
14963,
5556,
12,
39,
67,
2399,
67,
17357,
67,
1985,
3719,
597,
16051,
2929,
18,
5839,
1190,
12,
39,
67,
17357,
67,
4550,
20349,
288,
13491,
2929,
1011,
385,
67,
17357,
67,
4550,
31,
10792,
289,
10792,
7630,
400,
273,
312,
67,
6851,
18,
896,
812,
1864,
12,
39,
67,
9185,
397,
2929,
1769,
10792,
27709,
273,
312,
67,
6851,
18,
896,
1396,
12,
455,
18,
588,
10368,
743,
9334,
467,
67,
4747,
2918,
18,
39,
67,
9900,
67,
15814,
734,
1769,
7734,
289,
1044,
261,
503,
425,
13,
288,
10792,
368,
2305,
326,
1520,
16,
279,
394,
1904,
612,
903,
506,
4374,
7734,
289,
7734,
309,
261,
4327,
548,
422,
446,
13,
288,
10792,
368,
326,
1904,
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,
7630,
1930,
1420,
12,
3639,
514,
1084,
16,
540,
514,
2929,
16,
540,
514,
618,
16,
540,
514,
729,
16,
540,
514,
1041,
16,
540,
514,
2006,
16,
540,
1525,
1142,
7342,
16,
540,
1635,
1790,
16,
540,
514,
26618,
1685,
797,
16,
540,
5589,
5941,
25579,
6809,
16,
540,
5589,
585,
6295,
565,
262,
288,
3639,
1250,
2216,
273,
638,
31,
3639,
1160,
8526,
913,
273,
446,
31,
3639,
514,
13321,
273,
446,
31,
13491,
775,
288,
5411,
309,
261,
81,
67,
5666,
310,
2909,
751,
13,
288,
7734,
312,
67,
6851,
18,
542,
1042,
774,
39,
538,
5621,
27573,
368,
775,
358,
855,
392,
2062,
1904,
358,
336,
326,
1904,
612,
7734,
514,
27709,
273,
2
] |
} else result.add(aStatus); | } else { result.add(aStatus); } | protected static List flatten(IStatus aStatus) { List result = new ArrayList(); if (aStatus.isMultiStatus()) { IStatus[] children = aStatus.getChildren(); for (int i = 0; i < children.length; i++) { IStatus currentChild = children[i]; if (currentChild.isMultiStatus()) { Iterator childStatiiEnum = flatten(currentChild).iterator(); while (childStatiiEnum.hasNext()) result.add(childStatiiEnum.next()); } else result.add(currentChild); } } else result.add(aStatus); return result; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/StatusUtil.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/StatusUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
987,
5341,
12,
45,
1482,
279,
1482,
13,
288,
3639,
987,
563,
273,
394,
2407,
5621,
3639,
309,
261,
69,
1482,
18,
291,
5002,
1482,
10756,
288,
5411,
467,
1482,
8526,
2325,
273,
279,
1482,
18,
588,
4212,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2325,
18,
2469,
31,
277,
27245,
288,
7734,
467,
1482,
783,
1763,
273,
2325,
63,
77,
15533,
7734,
309,
261,
2972,
1763,
18,
291,
5002,
1482,
10756,
288,
10792,
4498,
1151,
5000,
2835,
3572,
273,
5341,
12,
2972,
1763,
2934,
9838,
5621,
10792,
1323,
261,
3624,
5000,
2835,
3572,
18,
5332,
2134,
10756,
13491,
563,
18,
1289,
12,
3624,
5000,
2835,
3572,
18,
4285,
10663,
7734,
289,
469,
10792,
563,
18,
1289,
12,
2972,
1763,
1769,
5411,
289,
3639,
289,
469,
5411,
563,
18,
1289,
12,
69,
1482,
1769,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
4750,
760,
987,
5341,
12,
45,
1482,
279,
1482,
13,
288,
3639,
987,
563,
273,
394,
2407,
5621,
3639,
309,
261,
69,
1482,
18,
291,
5002,
1482,
10756,
288,
5411,
467,
1482,
8526,
2325,
273,
279,
1482,
18,
588,
4212,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2325,
18,
2469,
31,
277,
27245,
288,
7734,
467,
1482,
783,
1763,
273,
2325,
63,
77,
15533,
7734,
309,
261,
2972,
1763,
18,
291,
5002,
1482,
10756,
288,
10792,
4498,
1151,
5000,
2835,
3572,
273,
5341,
12,
2972,
1763,
2934,
9838,
5621,
10792,
1323,
261,
3624,
5000,
2835,
3572,
18,
5332,
2134,
10756,
13491,
563,
18,
1289,
12,
3624,
5000,
2835,
3572,
18,
4285,
10663,
7734,
289,
2
] |
super.setProperty(o, name, value); | super.setProperty(comp, name, value); | public void setProperty(Object o, String name, String value) { STextArea c = (STextArea)o; if ( name.equals("COLS") ) c.setColumns(Integer.parseInt(value)); else if ( name.equals("ROWS") ) c.setRows(Integer.parseInt(value)); else super.setProperty(o, name, value); } | 3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/ebd6930dd9efb2a999e05f9084a09053efc0db36/STextAreaPropertyManager.java/clean/wings/src/org/wings/template/STextAreaPropertyManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7486,
12,
921,
320,
16,
514,
508,
16,
514,
460,
13,
288,
3639,
348,
1528,
5484,
276,
273,
261,
882,
408,
5484,
13,
83,
31,
3639,
309,
261,
508,
18,
14963,
2932,
4935,
55,
7923,
262,
5411,
276,
18,
542,
3380,
12,
4522,
18,
2670,
1702,
12,
1132,
10019,
3639,
469,
309,
261,
508,
18,
14963,
2932,
28402,
7923,
262,
5411,
276,
18,
542,
4300,
12,
4522,
18,
2670,
1702,
12,
1132,
10019,
3639,
469,
5411,
2240,
18,
542,
1396,
12,
2919,
16,
508,
16,
460,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7486,
12,
921,
320,
16,
514,
508,
16,
514,
460,
13,
288,
3639,
348,
1528,
5484,
276,
273,
261,
882,
408,
5484,
13,
83,
31,
3639,
309,
261,
508,
18,
14963,
2932,
4935,
55,
7923,
262,
5411,
276,
18,
542,
3380,
12,
4522,
18,
2670,
1702,
12,
1132,
10019,
3639,
469,
309,
261,
508,
18,
14963,
2932,
28402,
7923,
262,
5411,
276,
18,
542,
4300,
12,
4522,
18,
2670,
1702,
12,
1132,
10019,
3639,
469,
5411,
2240,
18,
542,
1396,
12,
2919,
16,
508,
16,
460,
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
] |
RubyFixnum.newFixnum(runtime, IOModes.EXCL)); | runtime.newFixnum(IOModes.EXCL)); | public static RubyClass createFileClass(Ruby runtime) { RubyClass fileClass = runtime.defineClass("File", runtime.getClasses().getIoClass()); RubyString separator = RubyString.newString(runtime, separator()); separator.freeze(); fileClass.defineConstant("SEPARATOR", separator); fileClass.defineConstant("Separator", separator); RubyString altSeparator = RubyString.newString(runtime, File.separatorChar == '/' ? "\\" : "/"); altSeparator.freeze(); fileClass.defineConstant("ALT_SEPARATOR", altSeparator); RubyString pathSeparator = RubyString.newString(runtime, File.pathSeparator); pathSeparator.freeze(); fileClass.defineConstant("PATH_SEPARATOR", pathSeparator); // Create constants for open flags fileClass.setConstant("RDONLY", RubyFixnum.newFixnum(runtime, IOModes.RDONLY)); fileClass.setConstant("WRONLY", RubyFixnum.newFixnum(runtime, IOModes.WRONLY)); fileClass.setConstant("RDWR", RubyFixnum.newFixnum(runtime, IOModes.RDWR)); fileClass.setConstant("CREAT", RubyFixnum.newFixnum(runtime, IOModes.CREAT)); fileClass.setConstant("EXCL", RubyFixnum.newFixnum(runtime, IOModes.EXCL)); fileClass.setConstant("NOCTTY", RubyFixnum.newFixnum(runtime, IOModes.NOCTTY)); fileClass.setConstant("TRUNC", RubyFixnum.newFixnum(runtime, IOModes.TRUNC)); fileClass.setConstant("APPEND", RubyFixnum.newFixnum(runtime, IOModes.APPEND)); fileClass.setConstant("NONBLOCK", RubyFixnum.newFixnum(runtime, IOModes.NONBLOCK)); CallbackFactory callbackFactory = runtime.callbackFactory(); fileClass.extendObject(runtime.getClasses().getFileTestModule()); fileClass.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod(RubyFile.class, "newInstance")); fileClass.defineSingletonMethod("open", callbackFactory.getOptSingletonMethod(RubyFile.class, "open")); fileClass.defineSingletonMethod("chmod", callbackFactory.getOptSingletonMethod(RubyFile.class, "chmod", RubyInteger.class)); fileClass.defineSingletonMethod("lstat", callbackFactory.getSingletonMethod(RubyFile.class, "lstat", RubyString.class)); fileClass.defineSingletonMethod("expand_path", callbackFactory.getOptSingletonMethod(RubyFile.class, "expand_path")); fileClass.defineSingletonMethod("unlink", callbackFactory.getOptSingletonMethod(RubyFile.class, "unlink")); fileClass.defineSingletonMethod("rename", callbackFactory.getSingletonMethod(RubyFile.class, "rename", IRubyObject.class, IRubyObject.class)); fileClass.defineSingletonMethod("delete", callbackFactory.getOptSingletonMethod(RubyFile.class, "unlink")); fileClass.defineSingletonMethod("dirname", callbackFactory.getSingletonMethod(RubyFile.class, "dirname", RubyString.class)); fileClass.defineSingletonMethod("join", callbackFactory.getOptSingletonMethod(RubyFile.class, "join")); fileClass.defineSingletonMethod("basename", callbackFactory.getOptSingletonMethod(RubyFile.class, "basename")); fileClass.defineSingletonMethod("truncate", callbackFactory.getSingletonMethod(RubyFile.class, "truncate", RubyString.class, RubyFixnum.class)); fileClass.defineMethod("initialize", callbackFactory.getOptMethod(RubyFile.class, "initialize")); fileClass.defineMethod("truncate", callbackFactory.getMethod(RubyFile.class, "truncate", RubyFixnum.class)); // Works around a strange-ish implementation that uses a static method on the superclass. // It broke when moved to indexed callbacks, so added this line: fileClass.defineMethod("print", callbackFactory.getOptSingletonMethod(RubyIO.class, "print")); return fileClass; } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFile.java/clean/src/org/jruby/RubyFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
21266,
797,
12,
54,
10340,
3099,
13,
288,
3639,
19817,
797,
585,
797,
273,
3099,
18,
11255,
797,
2932,
812,
3113,
1171,
3099,
18,
588,
4818,
7675,
588,
15963,
797,
10663,
3639,
19817,
780,
4182,
273,
19817,
780,
18,
2704,
780,
12,
9448,
16,
4182,
10663,
3639,
4182,
18,
29631,
5621,
3639,
585,
797,
18,
11255,
6902,
2932,
4550,
3113,
4182,
1769,
3639,
585,
797,
18,
11255,
6902,
2932,
6581,
3113,
4182,
1769,
3639,
19817,
780,
3770,
6581,
273,
19817,
780,
18,
2704,
780,
12,
9448,
16,
1387,
18,
11287,
2156,
422,
2023,
692,
14520,
294,
4016,
1769,
3639,
3770,
6581,
18,
29631,
5621,
3639,
585,
797,
18,
11255,
6902,
2932,
18255,
67,
4550,
3113,
3770,
6581,
1769,
3639,
19817,
780,
589,
6581,
273,
19817,
780,
18,
2704,
780,
12,
9448,
16,
1387,
18,
803,
6581,
1769,
3639,
589,
6581,
18,
29631,
5621,
3639,
585,
797,
18,
11255,
6902,
2932,
4211,
67,
4550,
3113,
589,
6581,
1769,
7734,
368,
1788,
6810,
364,
1696,
2943,
3639,
585,
797,
18,
542,
6902,
2932,
20403,
10857,
3113,
1850,
202,
202,
54,
10340,
8585,
2107,
18,
2704,
8585,
2107,
12,
9448,
16,
1665,
18868,
18,
20403,
10857,
10019,
3639,
585,
797,
18,
542,
6902,
2932,
7181,
10857,
3113,
1850,
202,
202,
54,
10340,
8585,
2107,
18,
2704,
8585,
2107,
12,
9448,
16,
1665,
18868,
18,
7181,
10857,
10019,
3639,
585,
797,
18,
542,
6902,
2932,
20403,
7181,
3113,
1850,
202,
202,
54,
10340,
8585,
2107,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
21266,
797,
12,
54,
10340,
3099,
13,
288,
3639,
19817,
797,
585,
797,
273,
3099,
18,
11255,
797,
2932,
812,
3113,
1171,
3099,
18,
588,
4818,
7675,
588,
15963,
797,
10663,
3639,
19817,
780,
4182,
273,
19817,
780,
18,
2704,
780,
12,
9448,
16,
4182,
10663,
3639,
4182,
18,
29631,
5621,
3639,
585,
797,
18,
11255,
6902,
2932,
4550,
3113,
4182,
1769,
3639,
585,
797,
18,
11255,
6902,
2932,
6581,
3113,
4182,
1769,
3639,
19817,
780,
3770,
6581,
273,
19817,
780,
18,
2704,
780,
12,
9448,
16,
1387,
18,
11287,
2156,
422,
2023,
692,
14520,
294,
4016,
1769,
3639,
3770,
6581,
18,
29631,
5621,
3639,
585,
797,
18,
11255,
6902,
2932,
18255,
67,
4550,
2
] |
setOnchange(null); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIdName((String) evalAttr("idName", getIdName(), String.class)); } catch (NullAttributeException ex) { setIdName(null); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELRadioTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELRadioTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8853,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
10446,
461,
12443,
780,
13,
5302,
3843,
2932,
350,
461,
3113,
2634,
461,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
10446,
461,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
15034,
12443,
12,
5507,
13,
5302,
3843,
2932,
19626,
3113,
8088,
329,
4742,
9334,
4766,
6647,
3411,
18,
1106,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
2
] |
|
JavaScriptViewer( ) | JavaScriptViewer( Composite parent, int style ) | JavaScriptViewer( ) { final PluginSettings ps = PluginSettings.instance( ); try { idr = ps.getDevice( "dv.SWT" );//$NON-NLS-1$ } catch ( ChartException pex ) { logger.log( pex ); } cm = ScriptCharts.createChart_Axis( ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ef9ad0cebcee59b4b447430acdbf2355afecf441/JavaScriptViewer.java/buggy/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/api/script/JavaScriptViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
16634,
18415,
12,
262,
202,
95,
202,
202,
6385,
6258,
2628,
4250,
273,
6258,
2628,
18,
1336,
12,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
350,
86,
273,
4250,
18,
588,
3654,
12,
315,
15679,
18,
55,
8588,
6,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
14683,
261,
14804,
503,
293,
338,
262,
202,
202,
95,
1082,
202,
4901,
18,
1330,
12,
293,
338,
11272,
202,
202,
97,
202,
202,
7670,
273,
7739,
7984,
87,
18,
2640,
7984,
67,
6558,
12,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
16634,
18415,
12,
262,
202,
95,
202,
202,
6385,
6258,
2628,
4250,
273,
6258,
2628,
18,
1336,
12,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
350,
86,
273,
4250,
18,
588,
3654,
12,
315,
15679,
18,
55,
8588,
6,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
14683,
261,
14804,
503,
293,
338,
262,
202,
202,
95,
1082,
202,
4901,
18,
1330,
12,
293,
338,
11272,
202,
202,
97,
202,
202,
7670,
273,
7739,
7984,
87,
18,
2640,
7984,
67,
6558,
12,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
shapeLayerProps.put("shapeFile", "edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse.shp"); shapeLayerProps.put("spatialIndex", "edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse.ssx"); | shapeLayerProps.put("shapeFile", "edu/sc/seis/vsnexplorer/data/maps/dcwpo-browse.shp"); shapeLayerProps.put("spatialIndex", "edu/sc/seis/vsnexplorer/data/maps/dcwpo-browse.ssx"); | public OpenMap(EventTableModel etm, ListSelectionModel lsm){ try{ mapHandler = new MapHandler(); mapHandler.add(this); // Create a MapBean mapBean = new MapBean(); //get the projection and set its background color and center point Proj proj = new CADRG(new LatLonPoint(mapBean.DEFAULT_CENTER_LAT, mapBean.DEFAULT_CENTER_LON), 200000000f, mapBean.DEFAULT_WIDTH, mapBean.DEFAULT_HEIGHT); proj.setBackgroundColor(WATER); mapBean.setProjection(proj); mapBean.setCenter(20, 200); mapHandler.add(mapBean); // Create and add a LayerHandler to the MapHandler. The // LayerHandler manages Layers, whether they are part of the // map or not. layer.setVisible(true) will add it to the map. // The LayerHandler has methods to do this, too. The // LayerHandler will find the MapBean in the MapHandler. lh = new LayerHandler(); mapHandler.add(lh); if(etm != null){ EventLayer el = new EventLayer(etm, lsm, mapBean); mapHandler.add(el); lh.addLayer(el, 1); } // Create a ShapeLayer to show world political boundaries. ShapeLayer shapeLayer = new ShapeLayer(); //Create shape layer properties Properties shapeLayerProps = new Properties(); shapeLayerProps.put("prettyName", "Political Solid"); shapeLayerProps.put("lineColor", "000000"); shapeLayerProps.put("fillColor", "39DA87"); shapeLayerProps.put("shapeFile", "edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse.shp"); shapeLayerProps.put("spatialIndex", "edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse.ssx"); shapeLayer.setProperties(shapeLayerProps); shapeLayer.setVisible(true); mapHandler.add(shapeLayer); // Create the directional and zoom control tool OMToolSet omts = new OMToolSet(); // Create an OpenMap toolbar ToolPanel toolBar = new ToolPanel(); // Add the ToolPanel and the OMToolSet to the MapHandler. The // OpenMapFrame will find the ToolPanel and attach it to the // top part of its content pane, and the ToolPanel will find // the OMToolSet and add it to itself. mapHandler.add(omts); mapHandler.add(toolBar); mapHandler.add(new MouseDelegator()); mapHandler.add(new SelectMouseMode()); mapHandler.add(new InformationDelegator()); } catch (MultipleSoloMapComponentException msmce) { // The MapHandler is only allowed to have one of certain // items. These items implement the SoloMapComponent // interface. The MapHandler can have a policy that // determines what to do when duplicate instances of the // same type of object are added - replace or ignore. // In this class, this will never happen, since we are // controlling that one MapBean, LayerHandler, // MouseDelegator, etc is being added to the MapHandler. } } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/65f98e737cf60cfb8d708e1da14adde3175de7d0/OpenMap.java/clean/src/edu/sc/seis/fissuresUtil/map/OpenMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3502,
863,
12,
1133,
1388,
1488,
3393,
81,
16,
987,
6233,
1488,
328,
4808,
15329,
202,
202,
698,
95,
1082,
202,
1458,
1503,
273,
394,
1635,
1503,
5621,
1082,
202,
1458,
1503,
18,
1289,
12,
2211,
1769,
1082,
202,
759,
1788,
279,
1635,
3381,
1082,
202,
1458,
3381,
273,
394,
1635,
3381,
5621,
1082,
202,
759,
588,
326,
8106,
471,
444,
2097,
5412,
2036,
471,
4617,
1634,
1082,
202,
626,
78,
10296,
273,
394,
385,
1880,
19380,
12,
2704,
11134,
15927,
2148,
12,
1458,
3381,
18,
5280,
67,
19835,
67,
12190,
16,
852,
3381,
18,
5280,
67,
19835,
67,
20587,
3631,
6862,
6862,
225,
576,
12648,
74,
16,
6862,
6862,
225,
852,
3381,
18,
5280,
67,
10023,
16,
6862,
6862,
225,
852,
3381,
18,
5280,
67,
14595,
1769,
1082,
202,
17995,
18,
542,
21699,
12,
59,
13641,
1769,
1082,
202,
1458,
3381,
18,
542,
14789,
12,
17995,
1769,
1082,
202,
1458,
3381,
18,
542,
8449,
12,
3462,
16,
4044,
1769,
1082,
202,
1458,
1503,
18,
1289,
12,
1458,
3381,
1769,
1082,
202,
759,
1788,
471,
527,
279,
12112,
1503,
358,
326,
1635,
1503,
18,
225,
1021,
1082,
202,
759,
12112,
1503,
20754,
281,
511,
3907,
16,
2856,
2898,
854,
1087,
434,
326,
1082,
202,
759,
852,
578,
486,
18,
225,
3018,
18,
542,
6207,
12,
3767,
13,
903,
527,
518,
358,
326,
852,
18,
1082,
202,
759,
1021,
12112,
1503,
711,
2590,
358,
741,
333,
16,
4885,
18,
225,
1021,
1082,
202,
759,
12112,
1503,
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,
3502,
863,
12,
1133,
1388,
1488,
3393,
81,
16,
987,
6233,
1488,
328,
4808,
15329,
202,
202,
698,
95,
1082,
202,
1458,
1503,
273,
394,
1635,
1503,
5621,
1082,
202,
1458,
1503,
18,
1289,
12,
2211,
1769,
1082,
202,
759,
1788,
279,
1635,
3381,
1082,
202,
1458,
3381,
273,
394,
1635,
3381,
5621,
1082,
202,
759,
588,
326,
8106,
471,
444,
2097,
5412,
2036,
471,
4617,
1634,
1082,
202,
626,
78,
10296,
273,
394,
385,
1880,
19380,
12,
2704,
11134,
15927,
2148,
12,
1458,
3381,
18,
5280,
67,
19835,
67,
12190,
16,
852,
3381,
18,
5280,
67,
19835,
67,
20587,
3631,
6862,
6862,
225,
576,
12648,
74,
16,
6862,
6862,
225,
852,
3381,
18,
5280,
67,
10023,
2
] |
formData.setCategoryTypeToEdit(categoryTypeToEdit); formData.setCategoryToEdit(categoryToEdit1); formData.setDocumentsOfOneCategory(documentsOfOneCategory); | formData.setCategoryTypeToEdit( categoryTypeToEdit ); formData.setCategoryToEdit( categoryToEdit1 ); formData.setDocumentsOfOneCategory( documentsOfOneCategory ); | private void deleteCategory(CategoryDomainObject categoryToEdit, IMCServiceInterface service, HttpServletRequest req, CategoryTypeDomainObject categoryTypeToEdit, FormData formData) { CategoryDomainObject categoryToEdit1 = categoryToEdit; StringBuffer msg = new StringBuffer(""); String[] documentsOfOneCategory = null; if (categoryToEdit1 != null) { documentsOfOneCategory = service.getDocumentMapper().getAllDocumentsOfOneCategory(categoryToEdit1); if (req.getParameter("category_delete") != null) { DocumentDomainObject document; for (int i = 0; i < documentsOfOneCategory.length; i++) { document = service.getDocumentMapper().getDocument(Integer.parseInt(documentsOfOneCategory[i])); service.getDocumentMapper().deleteOneCategoryFromDocument(document, categoryToEdit1); } service.getDocumentMapper().deleteCategoryFromDb(categoryToEdit1); categoryToEdit1 = null; documentsOfOneCategory = null; } } formData.setCategoryTypeToEdit(categoryTypeToEdit); formData.setCategoryToEdit(categoryToEdit1); formData.setDocumentsOfOneCategory(documentsOfOneCategory); categoryToEdit = categoryToEdit1; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/8daae426d68b0b35f1c6a010bf9e8f05942fe712/AdminCategories.java/buggy/server/src/com/imcode/imcms/servlet/superadmin/AdminCategories.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1430,
4457,
12,
4457,
3748,
921,
3150,
774,
4666,
16,
6246,
39,
18348,
1156,
16,
9984,
1111,
16,
9856,
559,
3748,
921,
3150,
559,
774,
4666,
16,
2748,
751,
14224,
13,
288,
3639,
9856,
3748,
921,
3150,
774,
4666,
21,
273,
3150,
774,
4666,
31,
3639,
6674,
1234,
273,
394,
6674,
2932,
8863,
3639,
514,
8526,
7429,
951,
3335,
4457,
273,
446,
31,
3639,
309,
261,
4743,
774,
4666,
21,
480,
446,
13,
288,
5411,
7429,
951,
3335,
4457,
273,
1156,
18,
588,
2519,
4597,
7675,
588,
1595,
12922,
951,
3335,
4457,
12,
4743,
774,
4666,
21,
1769,
5411,
309,
261,
3658,
18,
588,
1662,
2932,
4743,
67,
3733,
7923,
480,
446,
13,
288,
7734,
4319,
3748,
921,
1668,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7429,
951,
3335,
4457,
18,
2469,
31,
277,
27245,
288,
10792,
1668,
273,
1156,
18,
588,
2519,
4597,
7675,
588,
2519,
12,
4522,
18,
2670,
1702,
12,
24795,
951,
3335,
4457,
63,
77,
5717,
1769,
10792,
1156,
18,
588,
2519,
4597,
7675,
3733,
3335,
4457,
1265,
2519,
12,
5457,
16,
3150,
774,
4666,
21,
1769,
7734,
289,
7734,
1156,
18,
588,
2519,
4597,
7675,
3733,
4457,
1265,
4331,
12,
4743,
774,
4666,
21,
1769,
7734,
3150,
774,
4666,
21,
273,
446,
31,
7734,
7429,
951,
3335,
4457,
273,
446,
31,
5411,
289,
3639,
289,
3639,
14224,
18,
542,
4457,
559,
774,
4666,
12,
4743,
559,
774,
4666,
1769,
3639,
14224,
18,
542,
4457,
774,
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,
1430,
4457,
12,
4457,
3748,
921,
3150,
774,
4666,
16,
6246,
39,
18348,
1156,
16,
9984,
1111,
16,
9856,
559,
3748,
921,
3150,
559,
774,
4666,
16,
2748,
751,
14224,
13,
288,
3639,
9856,
3748,
921,
3150,
774,
4666,
21,
273,
3150,
774,
4666,
31,
3639,
6674,
1234,
273,
394,
6674,
2932,
8863,
3639,
514,
8526,
7429,
951,
3335,
4457,
273,
446,
31,
3639,
309,
261,
4743,
774,
4666,
21,
480,
446,
13,
288,
5411,
7429,
951,
3335,
4457,
273,
1156,
18,
588,
2519,
4597,
7675,
588,
1595,
12922,
951,
3335,
4457,
12,
4743,
774,
4666,
21,
1769,
5411,
309,
261,
3658,
18,
588,
1662,
2932,
4743,
67,
3733,
7923,
480,
446,
13,
288,
7734,
4319,
2
] |
if ((!exiting) && (keyTimeout > System.currentTimeMillis())) { listener.failOverInProgress(); reconnecting = true; try { Thread.sleep(connWaitMS); } catch (InterruptedException e) { } connect(umanager); } else { connected = false; listener.disconnected(); } | if ((!exiting) && (keyTimeout > System.currentTimeMillis())) { listener.failOverInProgress(); reconnecting = true; try { Thread.sleep(connWaitMS); } catch (InterruptedException e) { } connect(umanager); } else { connected = false; listener.disconnected(); } | public void disconnected() { if (connected == false) { // not yet connected if (connAttemptCounter < connAttempts) { // try again try { Thread.sleep(connWaitMS); } catch (InterruptedException e) { e.printStackTrace(); } connect(umanager); } else { listener.disconnected(); } } else { // lost connection if ((!exiting) && (keyTimeout > System.currentTimeMillis())) { // valid reconn key listener.failOverInProgress(); reconnecting = true; try { Thread.sleep(connWaitMS); } catch (InterruptedException e) { // doesn't matter. } connect(umanager); } else { // we cant fail over connected = false; listener.disconnected(); } } } | 55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/20099edd8aca08cc31e94e748a04d1f1a7e558ee/ClientConnectionManagerImpl.java/clean/src/com/sun/gi/comm/users/client/impl/ClientConnectionManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
17853,
1435,
288,
3639,
309,
261,
8537,
422,
629,
13,
288,
368,
486,
4671,
5840,
5411,
309,
261,
4646,
7744,
4789,
411,
1487,
10113,
13,
288,
368,
775,
3382,
7734,
775,
288,
10792,
4884,
18,
19607,
12,
4646,
5480,
3537,
1769,
7734,
289,
1044,
261,
24485,
503,
425,
13,
288,
10792,
425,
18,
1188,
6332,
5621,
7734,
289,
7734,
3077,
12,
379,
1063,
1769,
5411,
289,
469,
288,
7734,
2991,
18,
2251,
8537,
5621,
5411,
289,
3639,
289,
469,
288,
368,
13557,
1459,
5411,
309,
14015,
5,
8593,
310,
13,
597,
261,
856,
2694,
405,
2332,
18,
2972,
28512,
1435,
3719,
288,
7734,
368,
923,
283,
4646,
498,
7734,
2991,
18,
6870,
4851,
13434,
5621,
7734,
11812,
310,
273,
638,
31,
202,
202,
698,
288,
1082,
565,
4884,
18,
19607,
12,
4646,
5480,
3537,
1769,
202,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
1082,
565,
368,
3302,
1404,
15177,
18,
202,
202,
97,
7734,
3077,
12,
379,
1063,
1769,
5411,
289,
469,
288,
368,
732,
848,
88,
2321,
1879,
7734,
5840,
273,
629,
31,
7734,
2991,
18,
2251,
8537,
5621,
5411,
289,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
17853,
1435,
288,
3639,
309,
261,
8537,
422,
629,
13,
288,
368,
486,
4671,
5840,
5411,
309,
261,
4646,
7744,
4789,
411,
1487,
10113,
13,
288,
368,
775,
3382,
7734,
775,
288,
10792,
4884,
18,
19607,
12,
4646,
5480,
3537,
1769,
7734,
289,
1044,
261,
24485,
503,
425,
13,
288,
10792,
425,
18,
1188,
6332,
5621,
7734,
289,
7734,
3077,
12,
379,
1063,
1769,
5411,
289,
469,
288,
7734,
2991,
18,
2251,
8537,
5621,
5411,
289,
3639,
289,
469,
288,
368,
13557,
1459,
5411,
309,
14015,
5,
8593,
310,
13,
597,
261,
856,
2694,
405,
2332,
18,
2972,
28512,
1435,
3719,
288,
7734,
368,
923,
283,
4646,
498,
7734,
2991,
18,
6870,
4851,
13434,
5621,
7734,
2
] |
xformsControls.rebuildCurrentControlsState(pipelineContext); xformsControls.getCurrentControlsState().visitControlInfoFollowRepeats(pipelineContext, xformsControls, new XFormsControls.ControlInfoVisitorListener() { public void startVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo; final String repeatId = repeatControlInfo.getOriginalId(); if (nestedRepeatIndexUpdates.get(repeatId) != null) { final List repeatNodeSet = xformsControls.getCurrentNodeset(); if (repeatNodeSet != null && repeatNodeSet.size() > 0) { int newIndex = repeatControlInfo.getStartIndex(); if (newIndex < 1) newIndex = 1; if (newIndex > repeatNodeSet.size()) newIndex = repeatNodeSet.size(); xformsControls.getCurrentControlsState().updateRepeatIndex(repeatId, newIndex); } } } } public void endVisitControl(XFormsControls.ControlInfo controlInfo) { } }); | public void runAction(final PipelineContext pipelineContext, String targetId, XFormsEventHandlerContainer eventHandlerContainer, Element actionElement, ActionContext actionContext) { // Check that we understand the action element final String actionNamespaceURI = actionElement.getNamespaceURI(); if (!XFormsConstants.XFORMS_NAMESPACE_URI.equals(actionNamespaceURI)) { throw new OXFException("Invalid action namespace: " + actionNamespaceURI); } // Set binding context setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final String actionEventName = actionElement.getName(); if (XFormsServer.logger.isDebugEnabled()) XFormsServer.logger.debug("XForms - executing action: " + actionEventName); if (XFormsActions.XFORMS_SETVALUE_ACTION.equals(actionEventName)) { // 10.1.9 The setvalue Element // xforms:setvalue final String value = actionElement.attributeValue("value"); final String content = actionElement.getStringValue(); final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String valueToSet; if (value != null) { // Value to set is computed with an XPath expression Map namespaceContext = Dom4jUtils.getNamespaceContextNoDefault(actionElement); valueToSet = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentNodeset(), xformsControls.getCurrentPosition(), value, namespaceContext, null, xformsControls.getFunctionLibrary(), null); } else { // Value to set is static content valueToSet = content; } // Set value on current node final Node currentNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentNode, valueToSet, null); if (actionContext != null) { // "XForms Actions that change only the value of an instance node results in setting // the flags for recalculate, revalidate, and refresh to true and making no change to // the flag for rebuild". actionContext.recalculate = true; actionContext.revalidate = true; actionContext.refresh = true; } else { // Send events directly final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } else if (XFormsActions.XFORMS_RESET_ACTION.equals(actionEventName)) { // 10.1.11 The reset Element final String modelId = actionElement.attributeValue("model"); final Object modelObject = containingDocument.getObjectById(pipelineContext, modelId); if (modelObject instanceof XFormsModel) { final XFormsModel model = (XFormsModel) modelObject; containingDocument.dispatchEvent(pipelineContext, new XFormsResetEvent(model)); } else { throw new OXFException("xforms:reset model attribute must point to an xforms:model element."); } // "the reset action takes effect immediately and clears all of the flags." if (actionContext != null) actionContext.setAll(false); } else if (XFormsActions.XFORMS_ACTION_ACTION.equals(actionEventName)) { // 10.1.1 The action Element final ActionContext newActionContext = (actionContext == null) ? new ActionContext() : null; for (Iterator i = actionElement.elementIterator(); i.hasNext();) { final Element embeddedActionElement = (Element) i.next(); runAction(pipelineContext, targetId, eventHandlerContainer, embeddedActionElement, (newActionContext == null) ? actionContext : newActionContext ); } if (newActionContext != null) { // Binding context has to be reset as it may have been modified by sub-actions setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Process deferred behavior if (newActionContext.rebuild) containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); if (newActionContext.recalculate) containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); if (newActionContext.revalidate) containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); if (newActionContext.refresh) containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } else if (XFormsActions.XFORMS_REBUILD_ACTION.equals(actionEventName)) { // 10.1.3 The rebuild Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.rebuild = false; } else if (XFormsActions.XFORMS_RECALCULATE_ACTION.equals(actionEventName)) { // 10.1.4 The recalculate Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.recalculate = false; } else if (XFormsActions.XFORMS_REVALIDATE_ACTION.equals(actionEventName)) { // 10.1.5 The revalidate Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.revalidate = false; } else if (XFormsActions.XFORMS_REFRESH_ACTION.equals(actionEventName)) { // 10.1.6 The refresh Element final XFormsModel model = xformsControls.getCurrentModel(); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); // "Actions that directly invoke rebuild, recalculate, revalidate, or refresh always // have an immediate effect, and clear the corresponding flag." if (actionContext != null) actionContext.refresh = false; } else if (XFormsActions.XFORMS_TOGGLE_ACTION.equals(actionEventName)) { // 9.2.3 The toggle Element // TODO: Handle repeat controls, AKA "switch within repeat" final String caseId = actionElement.attributeValue("case"); // Update xforms:switch info and dispatch events xformsControls.updateSwitchInfo(pipelineContext, caseId); } else if (XFormsActions.XFORMS_INSERT_ACTION.equals(actionEventName)) { // 9.3.5 The insert Element final String atAttribute = actionElement.attributeValue("at"); final String positionAttribute = actionElement.attributeValue("position"); // Set current binding in order to evaluate the current nodeset // "1. The homogeneous collection to be updated is determined by evaluating the Node Set Binding." final List collectionToBeUpdated = xformsControls.getCurrentNodeset(); if (collectionToBeUpdated.size() > 0) { // "If the collection is empty, the insert action has no effect." // "2. The node-set binding identifies a homogeneous collection in the instance // data. The final member of this collection is cloned to produce the node that will // be inserted." final Element clonedElement; { final Element lastElement = (Element) collectionToBeUpdated.get(collectionToBeUpdated.size() - 1); clonedElement = (Element) lastElement.createCopy(); XFormsUtils.setInitialDecoration(clonedElement); } // "Finally, this newly created node is inserted into the instance data at the location // specified by attributes position and at." final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String insertionIndexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentNodeset(), xformsControls.getCurrentPosition(), "round(" + atAttribute + ")", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); // Don't think we will get NaN with XPath 2.0... int insertionIndex = "NaN".equals(insertionIndexString) ? collectionToBeUpdated.size() : Integer.parseInt(insertionIndexString) ; // Adjust index to be in range if (insertionIndex > collectionToBeUpdated.size()) insertionIndex = collectionToBeUpdated.size(); if (insertionIndex < 1) insertionIndex = 1; // Find actual insertion point and insert final Element indexElement = (Element) collectionToBeUpdated.get(insertionIndex - 1); final Element parentElement = indexElement.getParent(); final List siblingElements = parentElement.elements(); final int actualIndex = siblingElements.indexOf(indexElement); // Prepare insertion of new element final int actualInsertionIndex; if ("after".equals(positionAttribute) || "NaN".equals(insertionIndexString)) { actualInsertionIndex = actualIndex + 1; } else if ("before".equals(positionAttribute)) { actualInsertionIndex = actualIndex; } else { throw new OXFException("Invalid 'position' attribute: " + positionAttribute + ". Must be either 'before' or 'after'."); } // "3. The index for any repeating sequence that is bound to the homogeneous // collection where the node was added is updated to point to the newly added node. // The indexes for inner nested repeat collections are re-initialized to // startindex." // Perform the insertion siblingElements.add(actualInsertionIndex, clonedElement); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); // Update repeat indexes // NOTE: The code below assumes that there are no nested repeats bound to node-sets that intersect currentControlsState.visitControlInfoFollowRepeats(pipelineContext, xformsControls, new XFormsControls.ControlInfoVisitorListener() { private XFormsControls.ControlInfo foundControl; public void startVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { // Found an xforms:repeat final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo; final String repeatId = repeatControlInfo.getOriginalId(); final List repeatNodeSet = xformsControls.getCurrentNodeset(); if (foundControl == null) { // We are not yet inside a matching xforms:repeat if (repeatNodeSet != null && repeatNodeSet.size() > 0) { // Find whether one node of the repeat node-set contains the inserted node int index = 1; for (Iterator i = repeatNodeSet.iterator(); i.hasNext(); index++) { final Element currentNode = (Element) i.next(); if (currentNode == clonedElement) { // Found xforms:repeat affected by the change // "The index for any repeating sequence that is bound // to the homogeneous collection where the node was // added is updated to point to the newly added node." currentControlsState.updateRepeatIndex(repeatId, index); // First step: set all children indexes to 0 final List nestedRepeatIds = currentControlsState.getNestedRepeatIds(xformsControls, repeatId); if (nestedRepeatIds != null) { for (Iterator j = nestedRepeatIds.iterator(); j.hasNext();) { final String nestedRepeatId = (String) j.next(); currentControlsState.updateRepeatIndex(nestedRepeatId, 0); } } foundControl = controlInfo; break; } } } } else { // This is a child xforms:repeat of a matching xforms:repeat // Second step: update non-empty repeat indexes to the appropriate value // "The indexes for inner nested repeat collections are re-initialized to startindex." // NOTE: We do this, but we also adjust the index: // "The index for this repeating structure is initialized to the // value of startindex. If the initial startindex is less than 1 it // defaults to 1. If the index is greater than the initial node-set // then it defaults to the size of the node-set." if (repeatNodeSet != null && repeatNodeSet.size() > 0) { int newIndex = repeatControlInfo.getStartIndex(); if (newIndex < 1) newIndex = 1; if (newIndex > repeatNodeSet.size()) newIndex = repeatNodeSet.size(); currentControlsState.updateRepeatIndex(repeatId, newIndex); } } } } public void endVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { if (foundControl == controlInfo) foundControl = null; } } }); // Adjust controls ids that could have gone out of bounds adjustRepeatIndexes(pipelineContext, xformsControls); // "4. If the insert is successful, the event xforms-insert is dispatched." containingDocument.dispatchEvent(pipelineContext, new XFormsInsertEvent(currentInstance, atAttribute)); if (actionContext != null) { // "XForms Actions that change the tree structure of instance data result in setting all four flags to true" actionContext.setAll(true); } else { // Binding context has to be reset as the controls have been updated setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Send events directly containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } } else if (XFormsActions.XFORMS_DELETE_ACTION.equals(actionEventName)) { // 9.3.6 The delete Element final String atAttribute = actionElement.attributeValue("at"); // Set current binding in order to evaluate the current nodeset // "1. The homogeneous collection to be updated is determined by evaluating the Node Set Binding." final List collectionToUpdate = xformsControls.getCurrentNodeset(); if (collectionToUpdate.size() > 0) { // "If the collection is empty, the delete action has no effect." final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final Element elementToRemove; final List siblingElements; final int actualIndexInCollection; { final String deletionIndexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentNodeset(), xformsControls.getCurrentPosition(), "round(" + atAttribute + ")", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); // We will not get NaN with XPath 2.0... int tempDeletionIndex = "NaN".equals(deletionIndexString) ? collectionToUpdate.size() : Integer.parseInt(deletionIndexString) ; // Adjust index to be in range if (tempDeletionIndex > collectionToUpdate.size()) tempDeletionIndex = collectionToUpdate.size(); if (tempDeletionIndex < 1) tempDeletionIndex = 1; // Find actual deletion point elementToRemove = (Element) collectionToUpdate.get(tempDeletionIndex - 1); final Element parentElement = elementToRemove.getParent(); siblingElements = parentElement.elements(); actualIndexInCollection = siblingElements.indexOf(elementToRemove); } // Get current repeat indexes final Map previousRepeatIdToIndex = xformsControls.getCurrentControlsState().getRepeatIdToIndex(); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); // Find updates to repeat indexes final Map repeatIndexUpdates = new HashMap(); final Map nestedRepeatIndexUpdates = new HashMap(); // NOTE: The code below assumes that there are no nested repeats bound to node-sets that intersect xformsControls.getCurrentControlsState().visitControlInfoFollowRepeats(pipelineContext, xformsControls, new XFormsControls.ControlInfoVisitorListener() { private XFormsControls.ControlInfo foundControl; private boolean reinitializeInner; public void startVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { // Found an xforms:repeat final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo; final String repeatId = repeatControlInfo.getOriginalId(); final List repeatNodeSet = xformsControls.getCurrentNodeset(); if (foundControl == null) { // We are not yet inside a matching xforms:repeat if (repeatNodeSet != null && repeatNodeSet.size() > 0) { // Find whether one node of the repeat node-set contains the inserted node for (Iterator i = repeatNodeSet.iterator(); i.hasNext();) { final Element currentNode = (Element) i.next(); if (currentNode == elementToRemove) { // Found xforms:repeat affected by the change final int newIndex; if (repeatNodeSet.size() == 1) { // Delete the last element of the collection: the index must be set to 0 newIndex = 0; reinitializeInner = false; } else { // Current index for this repeat final int currentIndex = ((Integer) previousRepeatIdToIndex.get(repeatId)).intValue(); // Index of deleted element for this repeat final int deletionIndexInRepeat = repeatNodeSet.indexOf(elementToRemove) + 1; if (currentIndex == deletionIndexInRepeat) { if (deletionIndexInRepeat == repeatNodeSet.size()) { // o "When the last remaining item in the collection is removed, // the index position becomes 0." // o "When the index was pointing to the deleted node, which was // the last item in the collection, the index will point to the new // last node of the collection and the index of inner repeats is // reinitialized." newIndex = currentIndex - 1; reinitializeInner = true; } else { // o "When the index was pointing to the deleted node, which was // not the last item in the collection, the index position is not // changed and the index of inner repeats is re-initialized." newIndex = currentIndex; reinitializeInner = true; } } else { // "The index should point to the same node // after a delete as it did before the delete" if (currentIndex < deletionIndexInRepeat) { newIndex = currentIndex; } else { newIndex = currentIndex - 1; } reinitializeInner = false; } } repeatIndexUpdates.put(repeatId, new Integer(newIndex)); // Handle children if (reinitializeInner) { // First step: set all children indexes to 0 final List nestedRepeatIds = xformsControls.getCurrentControlsState().getNestedRepeatIds(xformsControls, repeatId); if (nestedRepeatIds != null) { for (Iterator j = nestedRepeatIds.iterator(); j.hasNext();) { final String nestedRepeatId = (String) j.next(); repeatIndexUpdates.put(nestedRepeatId, new Integer(0)); nestedRepeatIndexUpdates.put(nestedRepeatId, ""); } } } foundControl = controlInfo; break; } } } } } } public void endVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { if (foundControl == controlInfo) foundControl = null; } } }); // Then only perform the deletion siblingElements.remove(actualIndexInCollection); // Update affected repeat index information if (repeatIndexUpdates.size() > 0) { for (Iterator i = repeatIndexUpdates.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); xformsControls.getCurrentControlsState().updateRepeatIndex((String) currentEntry.getKey(), ((Integer) currentEntry.getValue()).intValue()); } } // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); // Handle children - second step xformsControls.getCurrentControlsState().visitControlInfoFollowRepeats(pipelineContext, xformsControls, new XFormsControls.ControlInfoVisitorListener() { public void startVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { // Found an xforms:repeat final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo; final String repeatId = repeatControlInfo.getOriginalId(); if (nestedRepeatIndexUpdates.get(repeatId) != null) { // Found nested repeat id to update final List repeatNodeSet = xformsControls.getCurrentNodeset(); if (repeatNodeSet != null && repeatNodeSet.size() > 0) { int newIndex = repeatControlInfo.getStartIndex(); if (newIndex < 1) newIndex = 1; if (newIndex > repeatNodeSet.size()) newIndex = repeatNodeSet.size(); xformsControls.getCurrentControlsState().updateRepeatIndex(repeatId, newIndex); //currentControlsState.updateRepeatIndex(repeatId, 1); // NOTE: XForms 1.0 2nd edition actually says "To re-initialize // a repeat means to change the index to 0 if it is empty, // otherwise 1." However, for, xforms:insert, we are supposed to // update to startindex. Here, for now, we decide to use // startindex for consistency. } } } } public void endVisitControl(XFormsControls.ControlInfo controlInfo) { } }); // Adjust controls ids that could have gone out of bounds adjustRepeatIndexes(pipelineContext, xformsControls); // "4. If the delete is successful, the event xforms-delete is dispatched." containingDocument.dispatchEvent(pipelineContext, new XFormsDeleteEvent(currentInstance, atAttribute)); if (actionContext != null) { // "XForms Actions that change the tree structure of instance data result in setting all four flags to true" actionContext.setAll(true); } else { // Binding context has to be reset as the controls have been updated setBindingContext(pipelineContext, eventHandlerContainer.getId(), actionElement); final XFormsModel model = xformsControls.getCurrentModel(); // Send events directly containingDocument.dispatchEvent(pipelineContext, new XFormsRebuildEvent(model)); containingDocument.dispatchEvent(pipelineContext, new XFormsRecalculateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, true)); containingDocument.dispatchEvent(pipelineContext, new XFormsRefreshEvent(model)); } } } else if (XFormsActions.XFORMS_SETINDEX_ACTION.equals(actionEventName)) { // 9.3.7 The setindex Element final String repeatId = actionElement.attributeValue("repeat"); final String indexXPath = actionElement.attributeValue("index"); final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final String indexString = currentInstance.evaluateXPathAsString(pipelineContext, xformsControls.getCurrentNodeset(), xformsControls.getCurrentPosition(), "string(number(" + indexXPath + "))", Dom4jUtils.getNamespaceContextNoDefault(actionElement), null, xformsControls.getFunctionLibrary(), null); executeSetindexAction(pipelineContext, containingDocument, repeatId, indexString); } else if (XFormsActions.XFORMS_SEND_ACTION.equals(actionEventName)) { // 10.1.10 The send Element // Find submission object final String submissionId = actionElement.attributeValue("submission"); if (submissionId == null) throw new OXFException("Missing mandatory submission attribute on xforms:send element."); final Object submission = containingDocument.getObjectById(pipelineContext, submissionId); if (submission == null || !(submission instanceof XFormsModelSubmission)) throw new OXFException("submission attribute on xforms:send element does not refer to existing xforms:submission element."); // Dispatch event to submission object containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitEvent((XFormsEventTarget) submission)); } else if (XFormsActions.XFORMS_DISPATCH_ACTION.equals(actionEventName)) { // 10.1.2 The dispatch Element // Mandatory attributes final String newEventName = actionElement.attributeValue("name"); if (newEventName == null) throw new OXFException("Missing mandatory name attribute on xforms:dispatch element."); final String newEventTargetId = actionElement.attributeValue("target"); if (newEventTargetId == null) throw new OXFException("Missing mandatory target attribute on xforms:dispatch element."); // Optional attributes final boolean newEventBubbles; { final String newEventBubblesString = actionElement.attributeValue("bubbles"); // "The default value depends on the definition of a custom event. For predefined events, this attribute has no effect." // The event factory makes sure that those values are ignored for predefined events newEventBubbles = Boolean.valueOf((newEventBubblesString == null) ? "true" : newEventBubblesString).booleanValue(); } final boolean newEventCancelable; { // "The default value depends on the definition of a custom event. For predefined events, this attribute has no effect." // The event factory makes sure that those values are ignored for predefined events final String newEventCancelableString = actionElement.attributeValue("cancelable"); newEventCancelable = Boolean.valueOf((newEventCancelableString == null) ? "true" : newEventCancelableString).booleanValue(); } // Find actual target final String newEventTargetEffectiveId = xformsControls.getCurrentControlsState().findEffectiveControlId(newEventTargetId); if (newEventTargetEffectiveId == null) throw new OXFException("Could not find actual event target on xforms:dispatch element for id: " + newEventTargetId); final Object newTargetObject = containingDocument.getObjectById(pipelineContext, newEventTargetEffectiveId); if (newTargetObject instanceof XFormsEventTarget) { // This can be anything containingDocument.dispatchEvent(pipelineContext, XFormsEventFactory.createEvent(newEventName, (XFormsEventTarget) newTargetObject, newEventBubbles, newEventCancelable)); } else { throw new OXFException("Invalid event target for id: " + newEventTargetId); } } else if (XFormsActions.XFORMS_MESSAGE_ACTION.equals(actionEventName)) { // 10.1.12 The message Element final String level; { final String levelAttribute = actionElement.attributeValue("level");; if (levelAttribute == null) throw new OXFException("xforms:message element is missing mandatory 'level' attribute."); final QName levelQName = Dom4jUtils.extractAttributeValueQName(actionElement, "level"); if (levelQName.getNamespacePrefix().equals("")) { if (!("ephemeral".equals(levelAttribute) || "modeless".equals(levelAttribute) || "modal".equals(levelAttribute))) { throw new OXFException("xforms:message element's 'level' attribute must have value: 'ephemeral'|'modeless'|'modal'|QName-but-not-NCName."); } level = levelAttribute; } else { level = "{" + levelQName.getNamespaceURI() + "}" + levelQName.getName(); } } final String src = actionElement.attributeValue("src"); final String ref = actionElement.attributeValue("ref"); String message = null; // Try to get message from single-node binding if any if (ref != null) { final Node currentNode = xformsControls.getCurrentSingleNode(); if (currentNode != null) message = XFormsInstance.getValueForNode(currentNode); } // Try to get message from linking attribute boolean linkException = false; if (message == null && src != null) { try { message = XFormsUtils.retrieveSrcValue(src); } catch (IOException e) { containingDocument.dispatchEvent(pipelineContext, new XFormsLinkErrorEvent(xformsControls.getCurrentModel(), src, null, e)); linkException = true; } } if (!linkException) { // Try to get inline message if (message == null) { message = actionElement.getStringValue(); } if (message != null) { // Store message for sending to client containingDocument.addClientMessage(message, level); // NOTE: In the future, we *may* want to save and resume the event state before and // after displaying a message, in order to possibly provide a behavior which is more // consistent with what users may expect regarding actions executed after // xforms:message. } } } else if (XFormsActions.XFORMS_SETFOCUS_ACTION.equals(actionEventName)) { // 10.1.7 The setfocus Element final String controlId = actionElement.attributeValue("control"); if (controlId == null) throw new OXFException("Missing mandatory 'control' attribute on xforms:control element."); final String effectiveControlId = xformsControls.getCurrentControlsState().findEffectiveControlId(controlId); if (effectiveControlId == null) throw new OXFException("Could not find actual control on xforms:setfocus element for control: " + controlId); final Object controlObject = containingDocument.getObjectById(pipelineContext, effectiveControlId); if (!(controlObject instanceof XFormsControls.ControlInfo)) throw new OXFException("xforms:setfocus attribute 'control' must refer to a control: " + controlId); containingDocument.dispatchEvent(pipelineContext, new XFormsFocusEvent((XFormsEventTarget) controlObject)); } else if (XFormsActions.XFORMS_LOAD_ACTION.equals(actionEventName)) { // 10.1.8 The load Element final String ref = actionElement.attributeValue("ref"); final String resource = actionElement.attributeValue("resource"); final String showAttribute; { final String rawShowAttribute = actionElement.attributeValue("show"); showAttribute = (rawShowAttribute == null) ? "replace" : rawShowAttribute; if (!("replace".equals(showAttribute) || "new".equals(showAttribute))) throw new OXFException("Invalid value for 'show' attribute on xforms:load element: " + showAttribute); } final boolean doReplace = "replace".equals(showAttribute); final String target = actionElement.attributeValue(XFormsConstants.XXFORMS_TARGET_QNAME); if (ref != null && resource != null) { // "If both are present, the action has no effect." // NOP } else if (ref != null) { // Use single-node binding final Node currentNode = xformsControls.getCurrentSingleNode(); if (currentNode != null) { final String value = XFormsInstance.getValueForNode(currentNode); resolveLoadValue(containingDocument, pipelineContext, actionElement, doReplace, value, target); } else { // Should we do this here? containingDocument.dispatchEvent(pipelineContext, new XFormsLinkErrorEvent(xformsControls.getCurrentModel(), "", null, null)); } // NOTE: We are supposed to throw an xforms-link-error in case of failure. Can we do it? } else if (resource != null) { // Use linking attribute resolveLoadValue(containingDocument, pipelineContext, actionElement, doReplace, resource, target); // NOTE: We are supposed to throw an xforms-link-error in case of failure. Can we do it? } else { // "Either the single node binding attributes, pointing to a URI in the instance // data, or the linking attributes are required." throw new OXFException("Missing 'resource' or 'ref' attribute on xforms:load element."); } } else { throw new OXFException("Invalid action requested: " + actionEventName); } } | 54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/fedf9c6e89ac7805c8f9d6c2e0a7c44094259d0f/XFormsActionInterpreter.java/clean/src/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
514,
27729,
16,
1139,
18529,
16402,
2170,
30441,
2170,
16,
3010,
1301,
1046,
16,
4382,
1042,
1301,
1042,
13,
288,
3639,
368,
2073,
716,
732,
22413,
326,
1301,
930,
3639,
727,
514,
1301,
3402,
3098,
273,
1301,
1046,
18,
588,
3402,
3098,
5621,
3639,
309,
16051,
60,
18529,
2918,
18,
60,
4983,
55,
67,
11368,
67,
3098,
18,
14963,
12,
1128,
3402,
3098,
3719,
288,
5411,
604,
394,
531,
60,
42,
503,
2932,
1941,
1301,
1981,
30,
315,
397,
1301,
3402,
3098,
1769,
3639,
289,
3639,
368,
1000,
5085,
819,
3639,
444,
5250,
1042,
12,
14511,
1042,
16,
30441,
2170,
18,
26321,
9334,
1301,
1046,
1769,
3639,
727,
514,
1301,
24320,
273,
1301,
1046,
18,
17994,
5621,
3639,
309,
261,
60,
18529,
2081,
18,
4901,
18,
291,
2829,
1526,
10756,
5411,
1139,
18529,
2081,
18,
4901,
18,
4148,
2932,
60,
18529,
300,
11274,
1301,
30,
315,
397,
1301,
24320,
1769,
3639,
309,
261,
60,
18529,
6100,
18,
60,
4983,
55,
67,
4043,
4051,
67,
12249,
18,
14963,
12,
1128,
24320,
3719,
288,
5411,
368,
1728,
18,
21,
18,
29,
1021,
444,
1132,
3010,
5411,
368,
619,
9741,
30,
542,
1132,
5411,
727,
514,
460,
273,
1301,
1046,
18,
4589,
620,
2932,
1132,
8863,
5411,
727,
514,
913,
273,
1301,
1046,
18,
588,
19733,
5621,
5411,
727,
1139,
18529,
1442,
783,
1442,
273,
619,
9741,
16795,
18,
588,
3935,
1442,
5621,
5411,
727,
514,
460,
25208,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
514,
27729,
16,
1139,
18529,
16402,
2170,
30441,
2170,
16,
3010,
1301,
1046,
16,
4382,
1042,
1301,
1042,
13,
288,
3639,
368,
2073,
716,
732,
22413,
326,
1301,
930,
3639,
727,
514,
1301,
3402,
3098,
273,
1301,
1046,
18,
588,
3402,
3098,
5621,
3639,
309,
16051,
60,
18529,
2918,
18,
60,
4983,
55,
67,
11368,
67,
3098,
18,
14963,
12,
1128,
3402,
3098,
3719,
288,
5411,
604,
394,
531,
60,
42,
503,
2932,
1941,
1301,
1981,
30,
315,
397,
1301,
3402,
3098,
1769,
3639,
289,
3639,
368,
1000,
5085,
819,
3639,
444,
5250,
1042,
12,
14511,
1042,
16,
30441,
2170,
18,
26321,
9334,
1301,
1046,
1769,
3639,
2
] |
|
item = ((CPElement)item).getParent(); | item = ((CPElement) item).getParent(); | private CPElementGroup getSelectedGroup() { List selected = fIncludeSymPathsList.getSelectedElements(); if (!selected.isEmpty()) { Object item = selected.get(0); if (item instanceof CPElement) { item = ((CPElement)item).getParent(); } if (item instanceof CPElementGroup) { return (CPElementGroup)item; } } return null; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/948279d05523860240b0b395f826ad17e53e390c/CPathIncludeSymbolEntryPage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathIncludeSymbolEntryPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
5181,
1046,
1114,
16625,
1114,
1435,
288,
202,
202,
682,
3170,
273,
284,
8752,
11901,
4466,
682,
18,
588,
7416,
3471,
5621,
202,
202,
430,
16051,
8109,
18,
291,
1921,
10756,
288,
1082,
202,
921,
761,
273,
3170,
18,
588,
12,
20,
1769,
1082,
202,
430,
261,
1726,
1276,
5181,
1046,
13,
288,
9506,
202,
1726,
273,
14015,
4258,
1046,
13,
1726,
2934,
588,
3054,
5621,
1082,
202,
97,
1082,
202,
430,
261,
1726,
1276,
5181,
1046,
1114,
13,
288,
9506,
202,
2463,
261,
4258,
1046,
1114,
13,
1726,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1152,
5181,
1046,
1114,
16625,
1114,
1435,
288,
202,
202,
682,
3170,
273,
284,
8752,
11901,
4466,
682,
18,
588,
7416,
3471,
5621,
202,
202,
430,
16051,
8109,
18,
291,
1921,
10756,
288,
1082,
202,
921,
761,
273,
3170,
18,
588,
12,
20,
1769,
1082,
202,
430,
261,
1726,
1276,
5181,
1046,
13,
288,
9506,
202,
1726,
273,
14015,
4258,
1046,
13,
1726,
2934,
588,
3054,
5621,
1082,
202,
97,
1082,
202,
430,
261,
1726,
1276,
5181,
1046,
1114,
13,
288,
9506,
202,
2463,
261,
4258,
1046,
1114,
13,
1726,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ((p=project.getProperty("ant.netrexxc.suppressDeprecation"))!=null) { this.suppressDeprecation=Project.toBoolean(p); | if ((p = project.getProperty("ant.netrexxc.suppressDeprecation")) != null) { this.suppressDeprecation = Project.toBoolean(p); | public void init() { String p; if ((p=project.getProperty("ant.netrexxc.binary"))!=null) { this.binary=Project.toBoolean(p); } // classpath makes no sense if ((p=project.getProperty("ant.netrexxc.comments"))!=null) { this.comments=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.compact"))!=null) { this.compact=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.compile"))!=null) { this.compile=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.console"))!=null) { this.console=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.crossref"))!=null) { this.crossref=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.decimal"))!=null) { this.decimal=Project.toBoolean(p); // destDir } if ((p=project.getProperty("ant.netrexxc.diag"))!=null) { this.diag=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.explicit"))!=null) { this.explicit=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.format"))!=null) { this.format=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.java"))!=null) { this.java=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.keep"))!=null) { this.keep=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.logo"))!=null) { this.logo=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.replace"))!=null) { this.replace=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.savelog"))!=null) { this.savelog=Project.toBoolean(p); // srcDir } if ((p=project.getProperty("ant.netrexxc.sourcedir"))!=null) { this.sourcedir=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictargs"))!=null) { this.strictargs=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictassign"))!=null) { this.strictassign=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictcase"))!=null) { this.strictcase=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictimport"))!=null) { this.strictimport=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictprops"))!=null) { this.strictprops=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictsignal"))!=null) { this.strictsignal=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.symbols"))!=null) { this.symbols=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.time"))!=null) { this.time=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.trace"))!=null) { setTrace(p); } if ((p=project.getProperty("ant.netrexxc.utf8"))!=null) { this.utf8=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.verbose"))!=null) { setVerbose(p); } if ((p=project.getProperty("ant.netrexxc.suppressMethodArgumentNotUsed"))!=null) { this.suppressMethodArgumentNotUsed=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressPrivatePropertyNotUsed"))!=null) { this.suppressPrivatePropertyNotUsed=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressVariableNotUsed"))!=null) { this.suppressVariableNotUsed=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressExceptionNotSignalled"))!=null) { this.suppressExceptionNotSignalled=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressDeprecation"))!=null) { this.suppressDeprecation=Project.toBoolean(p); } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/NetRexxC.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1435,
288,
3639,
514,
293,
31,
3639,
309,
14015,
84,
33,
4406,
18,
588,
1396,
2932,
970,
18,
2758,
266,
5279,
71,
18,
8578,
6,
3719,
5,
33,
2011,
13,
288,
5411,
333,
18,
8578,
33,
4109,
18,
869,
5507,
12,
84,
1769,
3639,
289,
3639,
368,
10006,
7297,
1158,
12764,
3639,
309,
14015,
84,
33,
4406,
18,
588,
1396,
2932,
970,
18,
2758,
266,
5279,
71,
18,
9231,
6,
3719,
5,
33,
2011,
13,
288,
5411,
333,
18,
9231,
33,
4109,
18,
869,
5507,
12,
84,
1769,
3639,
289,
3639,
309,
14015,
84,
33,
4406,
18,
588,
1396,
2932,
970,
18,
2758,
266,
5279,
71,
18,
21038,
6,
3719,
5,
33,
2011,
13,
288,
5411,
333,
18,
21038,
33,
4109,
18,
869,
5507,
12,
84,
1769,
3639,
289,
3639,
309,
14015,
84,
33,
4406,
18,
588,
1396,
2932,
970,
18,
2758,
266,
5279,
71,
18,
11100,
6,
3719,
5,
33,
2011,
13,
288,
5411,
333,
18,
11100,
33,
4109,
18,
869,
5507,
12,
84,
1769,
3639,
289,
3639,
309,
14015,
84,
33,
4406,
18,
588,
1396,
2932,
970,
18,
2758,
266,
5279,
71,
18,
8698,
6,
3719,
5,
33,
2011,
13,
288,
5411,
333,
18,
8698,
33,
4109,
18,
869,
5507,
12,
84,
1769,
3639,
289,
3639,
309,
14015,
84,
33,
4406,
18,
588,
1396,
2932,
970,
18,
2758,
266,
5279,
71,
18,
14653,
1734,
6,
3719,
5,
33,
2011,
13,
288,
5411,
333,
18,
14653,
1734,
33,
4109,
18,
869,
5507,
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,
1435,
288,
3639,
514,
293,
31,
3639,
309,
14015,
84,
33,
4406,
18,
588,
1396,
2932,
970,
18,
2758,
266,
5279,
71,
18,
8578,
6,
3719,
5,
33,
2011,
13,
288,
5411,
333,
18,
8578,
33,
4109,
18,
869,
5507,
12,
84,
1769,
3639,
289,
3639,
368,
10006,
7297,
1158,
12764,
3639,
309,
14015,
84,
33,
4406,
18,
588,
1396,
2932,
970,
18,
2758,
266,
5279,
71,
18,
9231,
6,
3719,
5,
33,
2011,
13,
288,
5411,
333,
18,
9231,
33,
4109,
18,
869,
5507,
12,
84,
1769,
3639,
289,
3639,
309,
14015,
84,
33,
4406,
18,
588,
1396,
2932,
970,
18,
2758,
266,
5279,
71,
18,
21038,
6,
3719,
5,
33,
2011,
13,
288,
2
] |
MutableTreeNode node = tree.treeAgent.createNewNode(name, 0); tree.treeAgent.addContainerNode((AgentTree.ContainerNode)node,"FIPACONTAINER",addr); | tree.treeAgent.addContainerNode(name, addr); | public void addContainer(final String name, final InetAddress addr) { Runnable addIt = new Runnable() { public void run() { MutableTreeNode node = tree.treeAgent.createNewNode(name, 0); tree.treeAgent.addContainerNode((AgentTree.ContainerNode)node,"FIPACONTAINER",addr); containerNames.add(name); manageDlg.setData(containerNames, addresses); } }; SwingUtilities.invokeLater(addIt); } | 5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/85403d3055632c199ddf5bc8ab1884237c9ca7e0/MainWindow.java/buggy/src/jade/tools/rma/MainWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
2170,
12,
6385,
514,
508,
16,
727,
14218,
3091,
13,
288,
565,
10254,
527,
7193,
273,
394,
10254,
1435,
288,
1377,
1071,
918,
1086,
1435,
288,
3639,
10960,
12513,
756,
273,
2151,
18,
3413,
3630,
18,
2640,
1908,
907,
12,
529,
16,
374,
1769,
3639,
2151,
18,
3413,
3630,
18,
1289,
2170,
907,
12443,
3630,
2471,
18,
2170,
907,
13,
2159,
10837,
1653,
52,
2226,
10079,
16843,
3113,
4793,
1769,
202,
3782,
1557,
18,
1289,
12,
529,
1769,
202,
12633,
40,
23623,
18,
542,
751,
12,
3782,
1557,
16,
6138,
1769,
1377,
289,
565,
289,
31,
565,
26145,
11864,
18,
14407,
20607,
12,
1289,
7193,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
2170,
12,
6385,
514,
508,
16,
727,
14218,
3091,
13,
288,
565,
10254,
527,
7193,
273,
394,
10254,
1435,
288,
1377,
1071,
918,
1086,
1435,
288,
3639,
10960,
12513,
756,
273,
2151,
18,
3413,
3630,
18,
2640,
1908,
907,
12,
529,
16,
374,
1769,
3639,
2151,
18,
3413,
3630,
18,
1289,
2170,
907,
12443,
3630,
2471,
18,
2170,
907,
13,
2159,
10837,
1653,
52,
2226,
10079,
16843,
3113,
4793,
1769,
202,
3782,
1557,
18,
1289,
12,
529,
1769,
202,
12633,
40,
23623,
18,
542,
751,
12,
3782,
1557,
16,
6138,
1769,
1377,
289,
565,
289,
31,
565,
26145,
11864,
18,
14407,
20607,
12,
1289,
7193,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void createFontList(Composite firstColumn) { Font font = firstColumn.getFont(); Composite parent = new Composite(firstColumn, SWT.NULL); GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; parent.setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; parent.setLayoutData(data); Label label = new Label(parent, SWT.LEFT); label.setText(WorkbenchMessages.getString("FontsPreference.fonts")); //$NON-NLS-1$ label.setFont(font); fontList = new List(parent, SWT.BORDER); data = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; fontList.setLayoutData(data); fontList.setFont(font); fontList.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { String selectedFontId = getSelectedFontId(); if (selectedFontId == null){ changeFontButton.setEnabled(false); useDefaultsButton.setEnabled(false); } else{ changeFontButton.setEnabled(true); useDefaultsButton.setEnabled(true); updateForFont((FontData[]) idsToFontData.get(selectedFontId)); } } }); Set names = namesToIds.keySet(); int nameSize = names.size(); String[] unsortedItems = new String[nameSize]; names.toArray(unsortedItems); Sorter sorter = new Sorter() { private Collator collator = Collator.getInstance(); public boolean compare(Object o1, Object o2) { String s1 = (String) o1; String s2 = (String) o2; return collator.compare(s1, s2) < 0; } }; Object[] sortedItems = sorter.sort(unsortedItems); String[] listItems = new String[nameSize]; System.arraycopy(sortedItems, 0, listItems, 0, nameSize); fontList.setItems(listItems); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1bba6e68027322eb4457204fdeda19454e06701c/FontPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
5711,
682,
12,
9400,
1122,
1494,
13,
288,
9506,
202,
5711,
3512,
273,
1122,
1494,
18,
588,
5711,
5621,
9506,
202,
9400,
982,
273,
394,
14728,
12,
3645,
1494,
16,
348,
8588,
18,
8560,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
2938,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
892,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
2938,
18,
542,
3744,
751,
12,
892,
1769,
9506,
202,
2224,
1433,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
10066,
1769,
202,
202,
1925,
18,
542,
1528,
12,
2421,
22144,
5058,
18,
588,
780,
2932,
5711,
87,
9624,
18,
22052,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
1925,
18,
542,
5711,
12,
5776,
1769,
9506,
202,
5776,
682,
273,
394,
987,
12,
2938,
16,
348,
8588,
18,
38,
7954,
1769,
202,
202,
892,
273,
394,
7145,
751,
12,
6313,
751,
18,
21654,
10109,
67,
26439,
67,
16061,
15870,
571,
7145,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
892,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
5776,
682,
18,
542,
3744,
751,
12,
892,
1769,
202,
202,
5776,
682,
18,
542,
5711,
12,
5776,
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,
1152,
918,
752,
5711,
682,
12,
9400,
1122,
1494,
13,
288,
9506,
202,
5711,
3512,
273,
1122,
1494,
18,
588,
5711,
5621,
9506,
202,
9400,
982,
273,
394,
14728,
12,
3645,
1494,
16,
348,
8588,
18,
8560,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
2938,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
892,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
2938,
18,
542,
3744,
751,
12,
892,
1769,
9506,
2
] |
||
assertTrue("the property value returned for keyTest was not correct", Security.getProperty("keyTest").equals( "permission to set property")); | assertEquals("the property value returned for keyTest was not correct", "permission to set property", Security.getProperty("keyTest")); | public void test_setPropertyLjava_lang_StringLjava_lang_String() { // Test for method void // java.security.Security.setProperty(java.lang.String, // java.lang.String) Security.setProperty("keyTest", "permission to set property"); assertTrue("the property value returned for keyTest was not correct", Security.getProperty("keyTest").equals( "permission to set property")); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/6ea88de4900c210afcf8547ad5a91899abec9801/SecurityTest.java/clean/modules/security/src/test/java/common/tests/api/java/security/SecurityTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
542,
1396,
21159,
67,
4936,
67,
780,
21159,
67,
4936,
67,
780,
1435,
288,
202,
202,
759,
7766,
364,
707,
918,
202,
202,
759,
2252,
18,
7462,
18,
4368,
18,
542,
1396,
12,
6290,
18,
4936,
18,
780,
16,
202,
202,
759,
2252,
18,
4936,
18,
780,
13,
202,
202,
4368,
18,
542,
1396,
2932,
856,
4709,
3113,
315,
9827,
358,
444,
1272,
8863,
202,
202,
11231,
5510,
2932,
5787,
1272,
460,
2106,
364,
498,
4709,
1703,
486,
3434,
3113,
9506,
202,
4368,
18,
588,
1396,
2932,
856,
4709,
20387,
14963,
12,
25083,
202,
6,
9827,
358,
444,
1272,
7923,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
542,
1396,
21159,
67,
4936,
67,
780,
21159,
67,
4936,
67,
780,
1435,
288,
202,
202,
759,
7766,
364,
707,
918,
202,
202,
759,
2252,
18,
7462,
18,
4368,
18,
542,
1396,
12,
6290,
18,
4936,
18,
780,
16,
202,
202,
759,
2252,
18,
4936,
18,
780,
13,
202,
202,
4368,
18,
542,
1396,
2932,
856,
4709,
3113,
315,
9827,
358,
444,
1272,
8863,
202,
202,
11231,
5510,
2932,
5787,
1272,
460,
2106,
364,
498,
4709,
1703,
486,
3434,
3113,
9506,
202,
4368,
18,
588,
1396,
2932,
856,
4709,
20387,
14963,
12,
25083,
202,
6,
9827,
358,
444,
1272,
7923,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
message = new String(data); | messageString = new String(data); | public boolean read(ByteBuffer buffer) throws MessageParseException { for (;;) { try { if (state == SEEKING_HEADER) { if (buffer.remaining() < headerBytes.length) { break; } // TODO PERFORMANCE this can be optimized in recognizer messageStartPosition = indexOf(buffer, buffer.position(), headerBytes); if (messageStartPosition == -1) { throw new MessageParseException("inconsistent header recognization" + " between message recognizer and parser"); } log.debug("found header"); position = messageStartPosition + headerBytes.length; state = PARSING_LENGTH; } if (state == PARSING_LENGTH) { if (position >= buffer.limit()) { break; } bodyLength = 0; byte ch = buffer.get(position++); while (Character.isDigit((char) ch)) { bodyLength = bodyLength * 10 + (ch - '0'); if (position < buffer.limit()) { ch = buffer.get(position++); } else { break; } } if (position >= buffer.limit()) { break; } if (ch != '\001') { handleError(buffer, "Error in message length", false); break; } bodyStartPosition = position; state = READING_BODY; log.debug("reading body, length = " + bodyLength); } if (state == READING_BODY) { if ((buffer.limit() - position) < bodyLength) { break; } position += bodyLength; state = PARSING_CHECKSUM; } if (state == PARSING_CHECKSUM) { if (startsWith(buffer, position, checksumBytes)) { log.debug("parsing checksum"); position += checksumBytes.length; } else { if (position + checksumBytes.length < buffer.limit()) { handleError(buffer, "did not find checksum field, bad length?", isLogon(buffer, messageStartPosition)); if (buffer.remaining() > 0) { continue; } else { break; } } else { break; } } byte[] data = new byte[position - messageStartPosition]; buffer.position(messageStartPosition); buffer.get(data); message = new String(data); if (log.isTraceEnabled()) { log.trace("extracted message: " + message + ", remaining=" + buffer.remaining()); } return true; } } catch (Throwable t) { state = SEEKING_HEADER; throw new MessageParseException(t); } } return false; } | 52211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52211/3e49a041b7e90f63143c57eb6023671affc3fd0c/FIXMessageData.java/clean/src/quickfix/netty/FIXMessageData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
855,
12,
12242,
1613,
13,
1216,
2350,
13047,
288,
3639,
364,
261,
25708,
13,
288,
5411,
775,
288,
7734,
309,
261,
2019,
422,
19201,
1360,
67,
7557,
13,
288,
10792,
309,
261,
4106,
18,
17956,
1435,
411,
1446,
2160,
18,
2469,
13,
288,
13491,
898,
31,
10792,
289,
10792,
368,
2660,
10950,
4983,
4722,
333,
848,
506,
15411,
316,
14603,
1824,
10792,
883,
23785,
273,
3133,
12,
4106,
16,
1613,
18,
3276,
9334,
1446,
2160,
1769,
10792,
309,
261,
2150,
23785,
422,
300,
21,
13,
288,
13491,
604,
394,
2350,
13047,
2932,
267,
16952,
1446,
14603,
1588,
6,
27573,
397,
315,
3086,
883,
14603,
1824,
471,
2082,
8863,
10792,
289,
10792,
613,
18,
4148,
2932,
7015,
1446,
8863,
10792,
1754,
273,
883,
23785,
397,
1446,
2160,
18,
2469,
31,
10792,
919,
273,
3939,
23708,
67,
7096,
31,
7734,
289,
7734,
309,
261,
2019,
422,
3939,
23708,
67,
7096,
13,
288,
10792,
309,
261,
3276,
1545,
1613,
18,
3595,
10756,
288,
13491,
898,
31,
10792,
289,
10792,
1417,
1782,
273,
374,
31,
10792,
1160,
462,
273,
1613,
18,
588,
12,
3276,
9904,
1769,
10792,
1323,
261,
7069,
18,
291,
10907,
12443,
3001,
13,
462,
3719,
288,
13491,
1417,
1782,
273,
1417,
1782,
380,
1728,
397,
261,
343,
300,
296,
20,
8284,
13491,
309,
261,
3276,
411,
1613,
18,
3595,
10756,
288,
18701,
462,
273,
1613,
18,
588,
12,
3276,
9904,
1769,
13491,
289,
469,
288,
18701,
898,
31,
13491,
289,
10792,
289,
10792,
309,
261,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
855,
12,
12242,
1613,
13,
1216,
2350,
13047,
288,
3639,
364,
261,
25708,
13,
288,
5411,
775,
288,
7734,
309,
261,
2019,
422,
19201,
1360,
67,
7557,
13,
288,
10792,
309,
261,
4106,
18,
17956,
1435,
411,
1446,
2160,
18,
2469,
13,
288,
13491,
898,
31,
10792,
289,
10792,
368,
2660,
10950,
4983,
4722,
333,
848,
506,
15411,
316,
14603,
1824,
10792,
883,
23785,
273,
3133,
12,
4106,
16,
1613,
18,
3276,
9334,
1446,
2160,
1769,
10792,
309,
261,
2150,
23785,
422,
300,
21,
13,
288,
13491,
604,
394,
2350,
13047,
2932,
267,
16952,
1446,
14603,
1588,
6,
27573,
397,
315,
3086,
883,
14603,
1824,
471,
2082,
8863,
10792,
289,
10792,
613,
18,
4148,
2932,
7015,
2
] |
.newInstance(); | .newInstance(); | private static void buildParseTree() { try { String name="/grendel/renderer/tools"; // Get a File object for the package String s=Renderer.class.getResource(name).getFile(); s=s.replace("%20", " "); File directory=new File(s); System.out.println("dir: "+directory.toString()); if (directory.exists()) { // Get the list of the files contained in the package String[] files=directory.list(); for (int i=0; i<files.length; i++) { // we are only interested in .class files if (files[i].endsWith(".class")) { // removes the .class extension String classname=files[i].substring(0, files[i].length()-6); try { // Try to create an instance of the object Object o=Class.forName("grendel.renderer.tools."+classname) .newInstance(); if (o instanceof ObjectRender) { ObjectRender or=(ObjectRender) o; renderers.put(or.acceptable(), or); } } catch (ClassNotFoundException cnfex) { System.err.println(cnfex); } catch (InstantiationException iex) { // We try to instantiate an interface // or an object that does not have a // default constructor } catch (IllegalAccessException iaex) { // The class is not public } } } } } catch (Exception e) { e.printStackTrace(); } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b13c667b376deb4a8f2c235ffd847b57616d23c4/Renderer.java/buggy/grendel/sources/grendel/renderer/Renderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1361,
3201,
2471,
1435,
225,
288,
565,
775,
288,
1377,
514,
508,
1546,
19,
75,
1187,
3771,
19,
14374,
19,
6642,
14432,
1377,
368,
968,
279,
1387,
733,
364,
326,
2181,
1377,
514,
272,
33,
6747,
18,
1106,
18,
588,
1420,
12,
529,
2934,
29925,
5621,
1377,
272,
33,
87,
18,
2079,
27188,
3462,
3113,
315,
315,
1769,
1377,
1387,
1867,
33,
2704,
1387,
12,
87,
1769,
1377,
2332,
18,
659,
18,
8222,
2932,
1214,
30,
13773,
5149,
18,
10492,
10663,
1377,
309,
261,
5149,
18,
1808,
10756,
288,
3639,
368,
968,
326,
666,
434,
326,
1390,
7542,
316,
326,
2181,
3639,
514,
8526,
1390,
33,
5149,
18,
1098,
5621,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2354,
18,
2469,
31,
277,
27245,
288,
1850,
368,
732,
854,
1338,
20506,
316,
263,
1106,
1390,
1850,
309,
261,
2354,
63,
77,
8009,
5839,
1190,
2932,
18,
1106,
6,
3719,
288,
5411,
368,
7157,
326,
263,
1106,
2710,
5411,
514,
7479,
33,
2354,
63,
77,
8009,
28023,
12,
20,
16,
1390,
63,
77,
8009,
2469,
1435,
17,
26,
1769,
5411,
775,
288,
2868,
368,
6161,
358,
752,
392,
791,
434,
326,
733,
2868,
1033,
320,
33,
797,
18,
1884,
461,
2932,
75,
1187,
3771,
18,
14374,
18,
6642,
1199,
15,
18340,
13,
15604,
263,
2704,
1442,
5621,
2868,
309,
261,
83,
1276,
1033,
3420,
13,
288,
7734,
1033,
3420,
578,
28657,
921,
3420,
13,
320,
31,
7734,
27577,
18,
458,
12,
280,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1361,
3201,
2471,
1435,
225,
288,
565,
775,
288,
1377,
514,
508,
1546,
19,
75,
1187,
3771,
19,
14374,
19,
6642,
14432,
1377,
368,
968,
279,
1387,
733,
364,
326,
2181,
1377,
514,
272,
33,
6747,
18,
1106,
18,
588,
1420,
12,
529,
2934,
29925,
5621,
1377,
272,
33,
87,
18,
2079,
27188,
3462,
3113,
315,
315,
1769,
1377,
1387,
1867,
33,
2704,
1387,
12,
87,
1769,
1377,
2332,
18,
659,
18,
8222,
2932,
1214,
30,
13773,
5149,
18,
10492,
10663,
1377,
309,
261,
5149,
18,
1808,
10756,
288,
3639,
368,
968,
326,
666,
434,
326,
1390,
7542,
316,
326,
2181,
3639,
514,
8526,
1390,
33,
5149,
18,
1098,
5621,
3639,
364,
261,
474,
277,
2
] |
f[0] = new Field(connection, "TYPE_NAME", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[2] = new Field(connection, "PRECISION", iInt4Oid, 4); f[3] = new Field(connection, "LITERAL_PREFIX", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "LITERAL_SUFFIX", iVarcharOid, NAME_SIZE); f[5] = new Field(connection, "CREATE_PARAMS", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "NULLABLE", iInt2Oid, 2); f[7] = new Field(connection, "CASE_SENSITIVE", iBoolOid, 1); f[8] = new Field(connection, "SEARCHABLE", iInt2Oid, 2); f[9] = new Field(connection, "UNSIGNED_ATTRIBUTE", iBoolOid, 1); f[10] = new Field(connection, "FIXED_PREC_SCALE", iBoolOid, 1); f[11] = new Field(connection, "AUTO_INCREMENT", iBoolOid, 1); f[12] = new Field(connection, "LOCAL_TYPE_NAME", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "MINIMUM_SCALE", iInt2Oid, 2); f[14] = new Field(connection, "MAXIMUM_SCALE", iInt2Oid, 2); f[15] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[16] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[17] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); | Field f[] = new Field[18]; ResultSet r; Vector v = new Vector(); | public java.sql.ResultSet getTypeInfo() throws SQLException { java.sql.ResultSet rs = connection.ExecSQL("select typname from pg_type"); if (rs != null) { Field f[] = new Field[18]; ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TYPE_NAME", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[2] = new Field(connection, "PRECISION", iInt4Oid, 4); f[3] = new Field(connection, "LITERAL_PREFIX", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "LITERAL_SUFFIX", iVarcharOid, NAME_SIZE); f[5] = new Field(connection, "CREATE_PARAMS", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "NULLABLE", iInt2Oid, 2); f[7] = new Field(connection, "CASE_SENSITIVE", iBoolOid, 1); f[8] = new Field(connection, "SEARCHABLE", iInt2Oid, 2); f[9] = new Field(connection, "UNSIGNED_ATTRIBUTE", iBoolOid, 1); f[10] = new Field(connection, "FIXED_PREC_SCALE", iBoolOid, 1); f[11] = new Field(connection, "AUTO_INCREMENT", iBoolOid, 1); f[12] = new Field(connection, "LOCAL_TYPE_NAME", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "MINIMUM_SCALE", iInt2Oid, 2); f[14] = new Field(connection, "MAXIMUM_SCALE", iInt2Oid, 2); f[15] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[16] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[17] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); // cache some results, this will keep memory useage down, and speed // things up a little. byte b9[] = "9".getBytes(); byte b10[] = "10".getBytes(); byte bf[] = "f".getBytes(); byte bnn[] = Integer.toString(java.sql.DatabaseMetaData.typeNoNulls).getBytes(); byte bts[] = Integer.toString(java.sql.DatabaseMetaData.typeSearchable).getBytes(); while (rs.next()) { byte[][] tuple = new byte[18][]; String typname = rs.getString(1); tuple[0] = typname.getBytes(); tuple[1] = Integer.toString(connection.getSQLType(typname)).getBytes(); tuple[2] = b9; // for now tuple[6] = bnn; // for now tuple[7] = bf; // false for now - not case sensitive tuple[8] = bts; tuple[9] = bf; // false for now - it's signed tuple[10] = bf; // false for now - must handle money tuple[11] = bf; // false for now - handle autoincrement // 12 - LOCAL_TYPE_NAME is null // 13 & 14 ? // 15 & 16 are unused so we return null tuple[17] = b10; // everything is base 10 v.addElement(tuple); } rs.close(); return connection.getResultSet(null, f, v, "OK", 1); } throw new PSQLException("postgresql.metadata.unavailable"); } | 45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
3130,
966,
1435,
1216,
6483,
202,
95,
202,
202,
6290,
18,
4669,
18,
13198,
3597,
273,
1459,
18,
1905,
3997,
2932,
4025,
3815,
529,
628,
7184,
67,
723,
8863,
202,
202,
430,
261,
5453,
480,
446,
13,
202,
202,
95,
1082,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
1082,
202,
13198,
436,
31,
202,
759,
10842,
364,
326,
3063,
843,
716,
732,
1608,
358,
741,
1082,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
1082,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
1082,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
4883,
67,
2399,
3113,
277,
1702,
22,
19105,
16,
576,
1769,
1082,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
3670,
26913,
3113,
277,
1702,
24,
19105,
16,
1059,
1769,
1082,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
23225,
67,
6307,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
1082,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
23225,
67,
14964,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
1082,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
9344,
67,
16785,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
1082,
202,
74,
63,
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,
2252,
18,
4669,
18,
13198,
3130,
966,
1435,
1216,
6483,
202,
95,
202,
202,
6290,
18,
4669,
18,
13198,
3597,
273,
1459,
18,
1905,
3997,
2932,
4025,
3815,
529,
628,
7184,
67,
723,
8863,
202,
202,
430,
261,
5453,
480,
446,
13,
202,
202,
95,
1082,
202,
974,
284,
8526,
273,
394,
2286,
63,
2643,
15533,
1082,
202,
13198,
436,
31,
202,
759,
10842,
364,
326,
3063,
843,
716,
732,
1608,
358,
741,
1082,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
1082,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
2399,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
6048,
67,
4574,
1769,
1082,
2
] |
digester.addCallMethod("employee", "setActive", 1, new Class[] {Boolean.class}); | digester.addCallMethod("employee", "setActive", 1, new Class[] {boolean.class}); | public void testCallMethod2() throws Exception { //I was preparing this test case to fix another bug // i'll uncomment it once i've fixed it // Configure the digester as required digester.addObjectCreate("employee", Employee.class); // try all syntax permutations digester.addCallMethod("employee", "setLastName", 1, new String[] {"java.lang.String"}); digester.addCallParam("employee/lastName", 0); // Parse our test input Object root1 = null; try { // an exception will be thrown if the method can't be found root1 = digester.parse(getInputStream("Test5.xml")); Employee employee = (Employee) root1; assertEquals("Failed to call Employee.setLastName", "Last Name", employee.getLastName()); } catch (Throwable t) { // this means that the method can't be found and so the test fails fail("Digester threw Exception: " + t); } digester = new Digester(); // Configure the digester as required digester.addObjectCreate("employee", Employee.class); // try out primitive convertion digester.addCallMethod("employee", "setAge", 1, new Class[] {Integer.class}); digester.addCallParam("employee/age", 0); // Parse our test input root1 = null; try { // an exception will be thrown if the method can't be found root1 = digester.parse(getInputStream("Test5.xml")); Employee employee = (Employee) root1; assertEquals("Failed to call Employee.setAge", 21, employee.getAge()); } catch (Throwable t) { // this means that the method can't be found and so the test fails fail("Digester threw Exception: " + t); } digester = new Digester(); // Configure the digester as required digester.addObjectCreate("employee", Employee.class); digester.addCallMethod("employee", "setActive", 1, new Class[] {Boolean.class}); digester.addCallParam("employee/active", 0); // Parse our test input root1 = null; try { // an exception will be thrown if the method can't be found root1 = digester.parse(getInputStream("Test5.xml")); Employee employee = (Employee) root1; assertEquals("Failed to call Employee.setActive", true, employee.isActive()); } catch (Throwable t) { // this means that the method can't be found and so the test fails fail("Digester threw Exception: " + t); } digester = new Digester(); // Configure the digester as required digester.addObjectCreate("employee", Employee.class); digester.addCallMethod("employee", "setSalary", 1, new Class[] {Float.class}); digester.addCallParam("employee/salary", 0); // Parse our test input root1 = null; try { // an exception will be thrown if the method can't be found root1 = digester.parse(getInputStream("Test5.xml")); Employee employee = (Employee) root1; assertEquals("Failed to call Employee.setSalary", 1000000.0f, employee.getSalary(), 0.1f); } catch (Throwable t) { // this means that the method can't be found and so the test fails fail("Digester threw Exception: " + t); } } | 53914 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53914/1c50b2e36b906ab55e88861cd7796fe9b8c1b4ee/RuleTestCase.java/buggy/src/test/org/apache/commons/digester/RuleTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1477,
1305,
22,
1435,
1216,
1185,
288,
7734,
368,
45,
1703,
675,
12583,
333,
1842,
648,
358,
2917,
4042,
7934,
3639,
368,
565,
277,
5614,
12704,
475,
518,
3647,
277,
8081,
5499,
518,
10792,
368,
11758,
326,
23821,
487,
1931,
3639,
23821,
18,
1289,
921,
1684,
2932,
351,
2817,
1340,
3113,
512,
27520,
18,
1106,
1769,
3639,
368,
775,
777,
6279,
26468,
3639,
23821,
18,
1289,
1477,
1305,
2932,
351,
2817,
1340,
3113,
315,
542,
3024,
461,
3113,
404,
16,
394,
514,
8526,
12528,
6290,
18,
4936,
18,
780,
6,
22938,
3639,
23821,
18,
1289,
1477,
786,
2932,
351,
2817,
1340,
19,
2722,
461,
3113,
374,
1769,
13491,
368,
2884,
3134,
1842,
810,
3639,
1033,
1365,
21,
273,
446,
31,
3639,
775,
288,
5411,
368,
392,
1520,
903,
506,
6718,
309,
326,
707,
848,
1404,
506,
1392,
5411,
1365,
21,
273,
23821,
18,
2670,
12,
588,
4348,
2932,
4709,
25,
18,
2902,
7923,
1769,
5411,
512,
27520,
24539,
1340,
273,
261,
41,
27520,
13,
1365,
21,
31,
5411,
1815,
8867,
2932,
2925,
358,
745,
512,
27520,
18,
542,
3024,
461,
3113,
315,
3024,
1770,
3113,
24539,
1340,
18,
588,
3024,
461,
10663,
5397,
289,
1044,
261,
15155,
268,
13,
288,
5411,
368,
333,
4696,
716,
326,
707,
848,
1404,
506,
1392,
471,
1427,
326,
1842,
6684,
5411,
2321,
2932,
4907,
7654,
21146,
1185,
30,
225,
315,
397,
268,
1769,
3639,
289,
7734,
23821,
273,
394,
11678,
7654,
5621,
3639,
368,
11758,
326,
23821,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1477,
1305,
22,
1435,
1216,
1185,
288,
7734,
368,
45,
1703,
675,
12583,
333,
1842,
648,
358,
2917,
4042,
7934,
3639,
368,
565,
277,
5614,
12704,
475,
518,
3647,
277,
8081,
5499,
518,
10792,
368,
11758,
326,
23821,
487,
1931,
3639,
23821,
18,
1289,
921,
1684,
2932,
351,
2817,
1340,
3113,
512,
27520,
18,
1106,
1769,
3639,
368,
775,
777,
6279,
26468,
3639,
23821,
18,
1289,
1477,
1305,
2932,
351,
2817,
1340,
3113,
315,
542,
3024,
461,
3113,
404,
16,
394,
514,
8526,
12528,
6290,
18,
4936,
18,
780,
6,
22938,
3639,
23821,
18,
1289,
1477,
786,
2932,
351,
2817,
1340,
19,
2722,
461,
3113,
374,
1769,
13491,
368,
2884,
3134,
1842,
810,
3639,
1033,
2
] |