rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
throw new MojoFailureException( "You have " + violations + " " + key + ( violations > 1 ? "s" : "" ) + "." );
|
String message = "You have " + violations + " " + key + ( violations > 1 ? "s" : "" ) + " For more details see:" + outputFile.getAbsolutePath(); if ( failOnViolation ) { throw new MojoFailureException( message ); } else { this.getLog().info( message ); }
|
protected void executeCheck( String filename, String tagName, String key ) throws MojoFailureException, MojoExecutionException { if ( "java".equals( language ) && sourceDirectory.exists() ) { File outputFile = new File( targetDirectory, filename ); if ( outputFile.exists() ) { try { XmlPullParser xpp = new MXParser(); FileReader freader = new FileReader( outputFile ); BufferedReader breader = new BufferedReader( freader ); xpp.setInput( breader ); int violations = countViolations( xpp, tagName ); if ( violations > 0 && failOnViolation ) { throw new MojoFailureException( "You have " + violations + " " + key + ( violations > 1 ? "s" : "" ) + "." ); } } catch ( IOException e ) { throw new MojoExecutionException( "Unable to read PMD results xml: " + outputFile.getAbsolutePath(), e ); } catch ( XmlPullParserException e ) { throw new MojoExecutionException( "Unable to read PMD results xml: " + outputFile.getAbsolutePath(), e ); } } else { throw new MojoFailureException( "Unable to perform check, " + "unable to find " + outputFile ); } } }
|
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/70a8f9fa51124d2abf474246fa3a3b39f3c1b093/AbstractPmdViolationCheckMojo.java/clean/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
1564,
12,
514,
1544,
16,
514,
7196,
16,
514,
498,
262,
3639,
1216,
15931,
14389,
16,
18780,
565,
288,
3639,
309,
261,
315,
6290,
9654,
14963,
12,
2653,
262,
597,
1084,
2853,
18,
1808,
1435,
262,
3639,
288,
5411,
1387,
15047,
273,
394,
1387,
12,
1018,
2853,
16,
1544,
11272,
5411,
309,
261,
15047,
18,
1808,
1435,
262,
5411,
288,
7734,
775,
7734,
288,
10792,
5714,
9629,
2678,
619,
11858,
273,
394,
26929,
2678,
5621,
10792,
23010,
284,
10530,
273,
394,
23010,
12,
15047,
11272,
10792,
10633,
324,
10530,
273,
394,
10633,
12,
284,
10530,
11272,
10792,
619,
11858,
18,
542,
1210,
12,
324,
10530,
11272,
10792,
509,
18971,
273,
1056,
28658,
1012,
12,
619,
11858,
16,
7196,
11272,
10792,
309,
261,
18971,
405,
374,
597,
2321,
1398,
11683,
262,
10792,
288,
13491,
604,
394,
15931,
14389,
12,
18701,
315,
6225,
1240,
315,
397,
18971,
397,
315,
315,
397,
498,
397,
261,
18971,
405,
404,
692,
315,
87,
6,
294,
1408,
262,
397,
4585,
11272,
10792,
289,
7734,
289,
7734,
1044,
261,
1860,
425,
262,
7734,
288,
10792,
604,
394,
18780,
12,
315,
3370,
358,
855,
453,
6188,
1686,
2025,
30,
315,
397,
15047,
18,
588,
10368,
743,
9334,
4766,
8227,
425,
11272,
7734,
289,
7734,
1044,
261,
5714,
9629,
25746,
425,
262,
7734,
288,
10792,
604,
394,
18780,
12,
315,
3370,
358,
855,
453,
6188,
1686,
2025,
30,
315,
397,
15047,
18,
588,
10368,
743,
9334,
4766,
8227,
425,
11272,
7734,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
1564,
12,
514,
1544,
16,
514,
7196,
16,
514,
498,
262,
3639,
1216,
15931,
14389,
16,
18780,
565,
288,
3639,
309,
261,
315,
6290,
9654,
14963,
12,
2653,
262,
597,
1084,
2853,
18,
1808,
1435,
262,
3639,
288,
5411,
1387,
15047,
273,
394,
1387,
12,
1018,
2853,
16,
1544,
11272,
5411,
309,
261,
15047,
18,
1808,
1435,
262,
5411,
288,
7734,
775,
7734,
288,
10792,
5714,
9629,
2678,
619,
11858,
273,
394,
26929,
2678,
5621,
10792,
23010,
284,
10530,
273,
394,
23010,
12,
15047,
11272,
10792,
10633,
324,
10530,
273,
394,
10633,
12,
284,
10530,
11272,
10792,
619,
11858,
18,
542,
1210,
12,
324,
10530,
11272,
10792,
509,
18971,
273,
1056,
28658,
1012,
12,
619,
2
] |
current = current.getNextBlock();
|
processor.format(model); } finally { myIsActive--;
|
public void adjustTextRange(final FormattingModel model, final CodeStyleSettings settings, final CodeStyleSettings.IndentOptions indentOptions, final TextRange affectedRange, final boolean keepBlankLines, final boolean keepLineBreaks, final boolean changeWSBeforeFirstElement, final boolean changeLineFeedsBeforeFirstElement, final IndentInfoStorage indentInfoStorage) { Block block = model.getRootBlock(); final FormatProcessor processor = new FormatProcessor(model.getDocumentModel(), block, settings, indentOptions, affectedRange); LeafBlockWrapper current = processor.getFirstTokenBlock(); while (current != null) { WhiteSpace whiteSpace = current.getWhiteSpace(); if (!whiteSpace.isReadOnly()) { if (whiteSpace.getTextRange().getStartOffset() > affectedRange.getStartOffset()) { if (whiteSpace.containsLineFeeds()) { whiteSpace.setLineFeedsAreReadOnly(true); current.setIndentFromParent(indentInfoStorage.getIndentInfo(current.getStartOffset())); } else { whiteSpace.setReadOnly(true); } } else { if (!changeWSBeforeFirstElement) { whiteSpace.setReadOnly(true); } else { if (!changeLineFeedsBeforeFirstElement) { whiteSpace.setLineFeedsAreReadOnly(true); } final SpacePropertyImpl spaceProperty = current.getSpaceProperty(); if (spaceProperty != null) { if (!keepLineBreaks) { spaceProperty.setKeepLineBreaks(false); } if (!keepBlankLines) { spaceProperty.setKeepLineBreaks(0); } } } } } current = current.getNextBlock(); } processor.format(model); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/7a52f4da42ba88dd7975588bd16a0bb46effc9d2/FormatterImpl.java/buggy/source/com/intellij/newCodeFormatting/impl/FormatterImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
5765,
1528,
2655,
12,
6385,
4077,
1787,
1488,
938,
16,
17311,
727,
3356,
2885,
2628,
1947,
16,
17311,
727,
3356,
2885,
2628,
18,
7790,
1320,
3504,
1320,
16,
17311,
727,
3867,
2655,
9844,
2655,
16,
17311,
727,
1250,
3455,
7796,
5763,
16,
17311,
727,
1250,
3455,
1670,
26806,
16,
17311,
727,
1250,
2549,
2651,
4649,
3759,
1046,
16,
17311,
727,
1250,
2549,
1670,
8141,
87,
4649,
3759,
1046,
16,
727,
28653,
966,
3245,
3504,
966,
3245,
13,
288,
565,
3914,
1203,
273,
938,
18,
588,
2375,
1768,
5621,
565,
727,
4077,
5164,
6659,
273,
394,
4077,
5164,
12,
2284,
18,
588,
2519,
1488,
9334,
1203,
16,
1947,
16,
3504,
1320,
16,
9844,
2655,
1769,
565,
23383,
1768,
3611,
783,
273,
6659,
18,
588,
3759,
1345,
1768,
5621,
565,
1323,
261,
2972,
480,
446,
13,
288,
1377,
30233,
3819,
9578,
3819,
273,
783,
18,
588,
23108,
5621,
1377,
309,
16051,
14739,
3819,
18,
291,
12066,
10756,
288,
3639,
309,
261,
14739,
3819,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
1435,
405,
9844,
2655,
18,
588,
1685,
2335,
10756,
288,
1850,
309,
261,
14739,
3819,
18,
12298,
1670,
8141,
87,
10756,
288,
5411,
9578,
3819,
18,
542,
1670,
8141,
87,
4704,
12066,
12,
3767,
1769,
5411,
783,
18,
542,
7790,
1265,
3054,
12,
9355,
966,
3245,
18,
588,
7790,
966,
12,
2972,
18,
588,
1685,
2335,
1435,
10019,
1850,
289,
469,
288,
5411,
9578,
3819,
18,
542,
12066,
12,
3767,
1769,
1850,
289,
3639,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
5765,
1528,
2655,
12,
6385,
4077,
1787,
1488,
938,
16,
17311,
727,
3356,
2885,
2628,
1947,
16,
17311,
727,
3356,
2885,
2628,
18,
7790,
1320,
3504,
1320,
16,
17311,
727,
3867,
2655,
9844,
2655,
16,
17311,
727,
1250,
3455,
7796,
5763,
16,
17311,
727,
1250,
3455,
1670,
26806,
16,
17311,
727,
1250,
2549,
2651,
4649,
3759,
1046,
16,
17311,
727,
1250,
2549,
1670,
8141,
87,
4649,
3759,
1046,
16,
727,
28653,
966,
3245,
3504,
966,
3245,
13,
288,
565,
3914,
1203,
273,
938,
18,
588,
2375,
1768,
5621,
565,
727,
4077,
5164,
6659,
273,
394,
4077,
5164,
12,
2284,
18,
588,
2519,
1488,
9334,
1203,
16,
1947,
16,
3504,
1320,
16,
9844,
2655,
1769,
565,
23383,
2
] |
ruby.rubyScope.setLocalVars(0, val);
|
ruby.rubyScope.setLocalVars(0, (RubyObject)val);
|
void rb_lastline_set(VALUE val) { if (ruby.rubyScope.getLocalVars() != null) { ruby.rubyScope.setLocalVars(0, val); } else { special_local_set('_', val); } }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/buggy/org/jruby/parser/parse.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
7138,
67,
2722,
1369,
67,
542,
12,
4051,
1244,
13,
288,
202,
430,
261,
27768,
18,
27768,
3876,
18,
588,
2042,
5555,
1435,
480,
446,
13,
288,
202,
565,
22155,
18,
27768,
3876,
18,
542,
2042,
5555,
12,
20,
16,
1244,
1769,
202,
97,
202,
12107,
288,
202,
565,
4582,
67,
3729,
67,
542,
2668,
67,
2187,
1244,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
918,
7138,
67,
2722,
1369,
67,
542,
12,
4051,
1244,
13,
288,
202,
430,
261,
27768,
18,
27768,
3876,
18,
588,
2042,
5555,
1435,
480,
446,
13,
288,
202,
565,
22155,
18,
27768,
3876,
18,
542,
2042,
5555,
12,
20,
16,
1244,
1769,
202,
97,
202,
12107,
288,
202,
565,
4582,
67,
3729,
67,
542,
2668,
67,
2187,
1244,
1769,
202,
97,
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
] |
for (int i = children.length - 1; i >= 0; --i)
|
int startIndex = children.length - 1; if (! isOptimizedDrawingEnabled())
|
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); for (int i = children.length - 1; i >= 0; --i) { if (!children[i].isVisible()) continue; Rectangle bounds = children[i].getBounds(rectCache); Rectangle oldClip = g.getClipBounds(); if (oldClip == null) oldClip = bounds; if (!g.hitClip(bounds.x, bounds.y, bounds.width, bounds.height)) continue; boolean translated = false; try { g.clipRect(bounds.x, bounds.y, bounds.width, bounds.height); g.translate(bounds.x, bounds.y); translated = true; children[i].paint(g); } finally { if (translated) g.translate(-bounds.x, -bounds.y); g.setClip(oldClip); } } g.setClip(originalClip); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/badba23052f905d992da7c32124c28f4339931fc/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
12574,
4212,
12,
17558,
314,
13,
225,
288,
565,
12383,
2282,
15339,
273,
314,
18,
588,
15339,
5621,
565,
13264,
3443,
273,
26145,
11864,
18,
11162,
2857,
5484,
12,
2211,
16,
4917,
1649,
1769,
565,
314,
18,
14161,
6120,
12,
7872,
18,
92,
16,
3443,
18,
93,
16,
3443,
18,
2819,
16,
3443,
18,
4210,
1769,
565,
5435,
8526,
2325,
273,
336,
7171,
5621,
3639,
509,
10588,
273,
2325,
18,
2469,
300,
404,
31,
282,
309,
16051,
353,
13930,
1235,
26885,
1526,
10756,
1377,
288,
3639,
309,
16051,
5906,
63,
77,
8009,
291,
6207,
10756,
1850,
1324,
31,
3639,
13264,
4972,
273,
2325,
63,
77,
8009,
588,
5694,
12,
2607,
1649,
1769,
3639,
13264,
1592,
15339,
273,
314,
18,
588,
15339,
5694,
5621,
3639,
309,
261,
1673,
15339,
422,
446,
13,
1850,
1592,
15339,
273,
4972,
31,
3639,
309,
16051,
75,
18,
15989,
15339,
12,
10576,
18,
92,
16,
4972,
18,
93,
16,
4972,
18,
2819,
16,
4972,
18,
4210,
3719,
1850,
1324,
31,
3639,
1250,
9955,
273,
629,
31,
3639,
775,
1850,
288,
5411,
314,
18,
14161,
6120,
12,
10576,
18,
92,
16,
4972,
18,
93,
16,
4972,
18,
2819,
16,
4972,
18,
4210,
1769,
5411,
314,
18,
13929,
12,
10576,
18,
92,
16,
4972,
18,
93,
1769,
5411,
9955,
273,
638,
31,
5411,
2325,
63,
77,
8009,
84,
1598,
12,
75,
1769,
1850,
289,
3639,
3095,
1850,
288,
5411,
309,
261,
22899,
13,
2868,
314,
18,
13929,
19236,
10576,
18,
92,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
12574,
4212,
12,
17558,
314,
13,
225,
288,
565,
12383,
2282,
15339,
273,
314,
18,
588,
15339,
5621,
565,
13264,
3443,
273,
26145,
11864,
18,
11162,
2857,
5484,
12,
2211,
16,
4917,
1649,
1769,
565,
314,
18,
14161,
6120,
12,
7872,
18,
92,
16,
3443,
18,
93,
16,
3443,
18,
2819,
16,
3443,
18,
4210,
1769,
565,
5435,
8526,
2325,
273,
336,
7171,
5621,
3639,
509,
10588,
273,
2325,
18,
2469,
300,
404,
31,
282,
309,
16051,
353,
13930,
1235,
26885,
1526,
10756,
1377,
288,
3639,
309,
16051,
5906,
63,
77,
8009,
291,
6207,
10756,
1850,
1324,
31,
3639,
13264,
4972,
273,
2325,
63,
77,
8009,
588,
5694,
12,
2607,
1649,
1769,
3639,
13264,
1592,
15339,
2
] |
/* LOCAL VARIABLES NOT USED seq.locals.clear(); LOCAL VARIABLES NOT USED */
|
this.locals.clear(); this.scopes.clear();
|
public void release() { if (org.caesarj.compiler.constants.Constants.ENV_USE_CACHE) { stack.push(this); handlers.clear(); lines.clear(); /* LOCAL VARIABLES NOT USED seq.locals.clear(); LOCAL VARIABLES NOT USED */ } }
|
56789 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56789/481e5ace4fe37806d77c79784de9d8f3084a58bd/CodeSequence.java/buggy/src/org/caesarj/compiler/codegen/CodeSequence.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3992,
1435,
288,
565,
309,
261,
3341,
18,
5353,
281,
297,
78,
18,
9576,
18,
13358,
18,
2918,
18,
11986,
67,
8001,
67,
8495,
13,
288,
1377,
2110,
18,
6206,
12,
2211,
1769,
1377,
4919,
18,
8507,
5621,
1377,
2362,
18,
8507,
5621,
1377,
1748,
15234,
22965,
55,
4269,
14988,
40,
1377,
3833,
18,
17977,
18,
8507,
5621,
1377,
15234,
22965,
55,
4269,
14988,
40,
1195,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3992,
1435,
288,
565,
309,
261,
3341,
18,
5353,
281,
297,
78,
18,
9576,
18,
13358,
18,
2918,
18,
11986,
67,
8001,
67,
8495,
13,
288,
1377,
2110,
18,
6206,
12,
2211,
1769,
1377,
4919,
18,
8507,
5621,
1377,
2362,
18,
8507,
5621,
1377,
1748,
15234,
22965,
55,
4269,
14988,
40,
1377,
3833,
18,
17977,
18,
8507,
5621,
1377,
15234,
22965,
55,
4269,
14988,
40,
1195,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public PFont2(String name, int size) throws IOException {
|
public PFont2(String name, int size) {
|
public PFont2(String name, int size) throws IOException { this(new Font(name, Font.PLAIN, size), false, true); }
|
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/c7a73272c265b1a7e369d1908f1eb7696fa85cfc/PFont2.java/clean/core/PFont2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
453,
5711,
22,
12,
780,
508,
16,
509,
963,
13,
288,
565,
333,
12,
2704,
10063,
12,
529,
16,
10063,
18,
26549,
16,
963,
3631,
629,
16,
638,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
453,
5711,
22,
12,
780,
508,
16,
509,
963,
13,
288,
565,
333,
12,
2704,
10063,
12,
529,
16,
10063,
18,
26549,
16,
963,
3631,
629,
16,
638,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
&& (current.getCrc() == -1 || current.getCompressedSize() == -1 || current.getSize() == -1))
|
&& (entry.getCrc() == -1 || entry.getCompressedSize() == -1 || entry.getSize() == -1))
|
private int write_entry (ZipEntry entry, boolean is_local) throws IOException { long offset = bytes_written; int bytes = put4 (is_local ? 0x04034b50 : 0x02014b50); if (! is_local) bytes += put_version (); bytes += put_version (); boolean crc_after = false; if (is_local && (current.getCrc() == -1 || current.getCompressedSize() == -1 || current.getSize() == -1)) crc_after = true; // For the bits field we always indicate `normal' compression, // even if that isn't true. bytes += put2 (crc_after ? (1 << 3) : 0); bytes += put2 (entry.method); bytes += put2(0); // time - FIXME bytes += put2(0); // date - FIXME if (crc_after) { // CRC, compressedSize, and Size are always 0 in this header. // The actual values are given after the entry. bytes += put4 (0); bytes += put4 (0); bytes += put4 (0); } else { bytes += put4 ((int) (entry.getCrc())); bytes += put4 ((int) (entry.getCompressedSize())); bytes += put4 ((int) (entry.getSize())); } byte[] name = entry.name.getBytes("8859_1"); bytes += put2 (name.length); bytes += put2 (entry.extra == null ? 0 : entry.extra.length); byte[] comment = null; if (! is_local) { if (entry.getComment() == null) bytes += put2 (0); else { comment = entry.getComment().getBytes("8859_1"); bytes += put2 (comment.length); } // Disk number start. bytes += put2 (0); // Internal file attributes. bytes += put2 (0); // External file attributes. bytes += put2 (0); // Relative offset of local header. bytes += put2 ((int) offset); } out.write (name); out.write ((byte) 0); bytes += name.length + 1; if (entry.extra != null) { out.write(entry.extra); out.write((byte) 0); bytes += entry.extra.length + 1; } if (comment != null) { out.write(comment); out.write((byte) 0); bytes += comment.length + 1; } bytes_written += bytes; return bytes; }
|
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/1e155a5f0f08110add2d5cb5fb2c3077c99379b4/ZipOutputStream.java/buggy/libjava/java/util/zip/ZipOutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
1045,
67,
4099,
261,
9141,
1622,
1241,
16,
1250,
353,
67,
3729,
13,
565,
1216,
1860,
225,
288,
565,
1525,
1384,
273,
1731,
67,
9748,
31,
565,
509,
1731,
273,
1378,
24,
261,
291,
67,
3729,
692,
374,
92,
3028,
4630,
24,
70,
3361,
294,
374,
92,
3103,
1611,
24,
70,
3361,
1769,
565,
309,
16051,
353,
67,
3729,
13,
1377,
1731,
1011,
1378,
67,
1589,
261,
1769,
565,
1731,
1011,
1378,
67,
1589,
261,
1769,
565,
1250,
10619,
67,
5205,
273,
629,
31,
565,
309,
261,
291,
67,
3729,
202,
10,
10,
261,
2972,
18,
588,
39,
1310,
1435,
422,
300,
21,
747,
783,
18,
588,
16841,
1225,
1435,
422,
300,
21,
202,
565,
747,
783,
18,
588,
1225,
1435,
422,
300,
21,
3719,
1377,
10619,
67,
5205,
273,
638,
31,
565,
368,
2457,
326,
4125,
652,
732,
3712,
10768,
1375,
6130,
11,
9154,
16,
565,
368,
5456,
309,
716,
5177,
1404,
638,
18,
565,
1731,
1011,
1378,
22,
261,
22988,
67,
5205,
692,
261,
21,
2296,
890,
13,
294,
374,
1769,
565,
1731,
1011,
1378,
22,
261,
4099,
18,
2039,
1769,
565,
1731,
1011,
1378,
22,
12,
20,
1769,
225,
368,
813,
300,
9852,
565,
1731,
1011,
1378,
22,
12,
20,
1769,
225,
368,
1509,
300,
9852,
565,
309,
261,
22988,
67,
5205,
13,
1377,
288,
202,
759,
21773,
16,
8968,
1225,
16,
471,
6321,
854,
3712,
374,
316,
333,
1446,
18,
202,
759,
1021,
3214,
924,
854,
864,
1839,
326,
1241,
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,
509,
1045,
67,
4099,
261,
9141,
1622,
1241,
16,
1250,
353,
67,
3729,
13,
565,
1216,
1860,
225,
288,
565,
1525,
1384,
273,
1731,
67,
9748,
31,
565,
509,
1731,
273,
1378,
24,
261,
291,
67,
3729,
692,
374,
92,
3028,
4630,
24,
70,
3361,
294,
374,
92,
3103,
1611,
24,
70,
3361,
1769,
565,
309,
16051,
353,
67,
3729,
13,
1377,
1731,
1011,
1378,
67,
1589,
261,
1769,
565,
1731,
1011,
1378,
67,
1589,
261,
1769,
565,
1250,
10619,
67,
5205,
273,
629,
31,
565,
309,
261,
291,
67,
3729,
202,
10,
10,
261,
2972,
18,
588,
39,
1310,
1435,
422,
300,
21,
747,
783,
18,
588,
16841,
1225,
1435,
422,
300,
21,
202,
565,
747,
2
] |
in.setTimeout(timeOut * 1000);
|
if (timeOut > 0) { timer = new QueryTimer(this, timeOut); timer.start(); }
|
private void wait(int timeOut) throws IOException, SQLException { try { in.setTimeout(timeOut * 1000); in.peek(); } catch (java.io.InterruptedIOException e) { // Query timed out endOfResponse = true; throw new SQLException( Messages.get("error.generic.timeout"), "HYT00"); } finally { in.setTimeout(0); } }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/1e35749e3999006e55f5fcf79cb36b5060b07123/TdsCore.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsCore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2529,
12,
474,
813,
1182,
13,
1216,
1860,
16,
6483,
288,
3639,
775,
288,
5411,
309,
261,
957,
1182,
405,
374,
13,
288,
225,
5441,
273,
394,
2770,
6777,
12,
2211,
16,
813,
1182,
1769,
5441,
18,
1937,
5621,
289,
5411,
316,
18,
347,
3839,
5621,
3639,
289,
1044,
261,
6290,
18,
1594,
18,
24485,
14106,
425,
13,
288,
5411,
368,
2770,
7491,
596,
5411,
20706,
1064,
273,
638,
31,
5411,
604,
394,
6483,
12,
10792,
4838,
18,
588,
2932,
1636,
18,
13540,
18,
4538,
6,
3631,
315,
44,
61,
56,
713,
8863,
3639,
289,
3095,
288,
5411,
316,
18,
542,
2694,
12,
20,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
918,
2529,
12,
474,
813,
1182,
13,
1216,
1860,
16,
6483,
288,
3639,
775,
288,
5411,
309,
261,
957,
1182,
405,
374,
13,
288,
225,
5441,
273,
394,
2770,
6777,
12,
2211,
16,
813,
1182,
1769,
5441,
18,
1937,
5621,
289,
5411,
316,
18,
347,
3839,
5621,
3639,
289,
1044,
261,
6290,
18,
1594,
18,
24485,
14106,
425,
13,
288,
5411,
368,
2770,
7491,
596,
5411,
20706,
1064,
273,
638,
31,
5411,
604,
394,
6483,
12,
10792,
4838,
18,
588,
2932,
1636,
18,
13540,
18,
4538,
6,
3631,
315,
44,
61,
56,
713,
8863,
3639,
289,
3095,
288,
5411,
316,
18,
542,
2694,
12,
20,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
certprof = SecConst.CERTPROFILE_FIXED_SUBCA; }
|
certprof = SecConst.CERTPROFILE_FIXED_SUBCA; }
|
public void upgradeFromOldCAKeyStore(Admin admin, String caname, byte[] p12file, char[] keystorepass, char[] privkeypass, String privatekeyalias){ try{ // check authorization if(admin.getAdminType() != Admin.TYPE_CACOMMANDLINE_USER) getAuthorizationSession().isAuthorizedNoLog(admin,"/super_administrator"); // load keystore java.security.KeyStore keystore=KeyStore.getInstance("PKCS12", "BC"); keystore.load(new java.io.ByteArrayInputStream(p12file),keystorepass); Certificate[] certchain = KeyTools.getCertChain(keystore, privatekeyalias); if (certchain.length < 1) { log.error("Cannot load certificate chain with alias "+privatekeyalias); throw new Exception("Cannot load certificate chain with alias "+privatekeyalias); } ArrayList certificatechain = new ArrayList(); for(int i=0;i< certchain.length;i++){ certificatechain.add(certchain[i]); } X509Certificate cacertificate = (X509Certificate) certchain[0]; PrivateKey p12privatekey = (PrivateKey) keystore.getKey( privatekeyalias, privkeypass); PublicKey p12publickey = cacertificate.getPublicKey(); CAToken catoken = new SoftCAToken(); ((SoftCAToken) catoken).importKeysFromP12(p12privatekey, p12publickey); // Create a X509CA int signedby = CAInfo.SELFSIGNED; int certprof = SecConst.CERTPROFILE_FIXED_ROOTCA; if(certchain.length > 1){ signedby = CAInfo.SIGNEDBYEXTERNALCA; certprof = SecConst.CERTPROFILE_FIXED_SUBCA; } // Create and active OSCP CA Service. ArrayList extendedcaservices = new ArrayList(); extendedcaservices.add( new OCSPCAServiceInfo(ExtendedCAServiceInfo.STATUS_ACTIVE, "CN=OCSPSignerCertificate, " + cacertificate.getSubjectDN().toString(), "", 2048, OCSPCAServiceInfo.KEYALGORITHM_RSA)); int validity = (int)((cacertificate.getNotAfter().getTime() - cacertificate.getNotBefore().getTime()) / (24*3600*1000)); X509CAInfo cainfo = new X509CAInfo(cacertificate.getSubjectDN().toString(), caname, SecConst.CA_ACTIVE, "", certprof, validity, cacertificate.getNotAfter(), // Expiretime CAInfo.CATYPE_X509, signedby, (Collection) certificatechain, catoken.getCATokenInfo(), "Old Imported EJBCA version", -1, null, // revokationreason, revokationdate "", // PolicyId 24, // CRLPeriod (Collection) new ArrayList(), true, // Authority Key Identifier false, // Authority Key Identifier Critical true, // CRL Number false, // CRL Number Critical true, // Finish User extendedcaservices); X509CA ca = new X509CA(cainfo); ca.setCAToken(catoken); ca.setCertificateChain(certificatechain); // Store CA in database. cadatahome.create(cainfo.getSubjectDN(), cainfo.getName(), SecConst.CA_ACTIVE, (CA) ca); getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_CACREATED,"CA imported successfully from old P12 file, status: " + ca.getStatus()); }catch(Exception e){ getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CACREATED,"An error occured when trying to import CA from old P12 file", e); throw new EJBException(e); } } // upgradeFromOldCAKeyStore
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/6f27459e8db7a9efb8cf0588695ad6fd28539506/CAAdminSessionBean.java/clean/src/java/se/anatom/ejbca/ca/caadmin/CAAdminSessionBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8400,
1265,
7617,
3587,
17250,
12,
4446,
3981,
16,
514,
848,
339,
16,
1160,
8526,
293,
2138,
768,
16,
1149,
8526,
16262,
5466,
16,
29159,
1149,
8526,
6015,
856,
5466,
16,
514,
3238,
856,
4930,
15329,
3639,
775,
95,
5411,
368,
866,
6093,
5411,
309,
12,
3666,
18,
588,
4446,
559,
1435,
480,
225,
7807,
18,
2399,
67,
26022,
1872,
11712,
5997,
67,
4714,
13,
2868,
28233,
2157,
7675,
291,
15341,
2279,
1343,
12,
3666,
10837,
19,
9565,
67,
3666,
14207,
8863,
13491,
368,
1262,
16262,
5411,
2252,
18,
7462,
18,
17250,
16262,
33,
17250,
18,
588,
1442,
2932,
26044,
2138,
3113,
315,
16283,
8863,
5411,
16262,
18,
945,
12,
2704,
2252,
18,
1594,
18,
8826,
4348,
12,
84,
2138,
768,
3631,
856,
2233,
5466,
1769,
13491,
6660,
8526,
3320,
5639,
273,
1929,
10348,
18,
588,
5461,
3893,
12,
856,
2233,
16,
3238,
856,
4930,
1769,
5411,
309,
261,
7593,
5639,
18,
2469,
411,
404,
13,
288,
7734,
613,
18,
1636,
2932,
4515,
1262,
4944,
2687,
598,
2308,
13773,
1152,
856,
4930,
1769,
7734,
604,
394,
1185,
2932,
4515,
1262,
4944,
2687,
598,
2308,
13773,
1152,
856,
4930,
1769,
5411,
289,
13491,
2407,
4944,
5639,
273,
394,
2407,
5621,
5411,
364,
12,
474,
277,
33,
20,
31,
77,
32,
3320,
5639,
18,
2469,
31,
77,
27245,
95,
7734,
4944,
5639,
18,
1289,
12,
7593,
5639,
63,
77,
19226,
5411,
289,
13491,
1139,
5995,
4719,
276,
1077,
2543,
273,
261,
60,
5995,
4719,
13,
3320,
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,
8400,
1265,
7617,
3587,
17250,
12,
4446,
3981,
16,
514,
848,
339,
16,
1160,
8526,
293,
2138,
768,
16,
1149,
8526,
16262,
5466,
16,
29159,
1149,
8526,
6015,
856,
5466,
16,
514,
3238,
856,
4930,
15329,
3639,
775,
95,
5411,
368,
866,
6093,
5411,
309,
12,
3666,
18,
588,
4446,
559,
1435,
480,
225,
7807,
18,
2399,
67,
26022,
1872,
11712,
5997,
67,
4714,
13,
2868,
28233,
2157,
7675,
291,
15341,
2279,
1343,
12,
3666,
10837,
19,
9565,
67,
3666,
14207,
8863,
13491,
368,
1262,
16262,
5411,
2252,
18,
7462,
18,
17250,
16262,
33,
17250,
18,
588,
1442,
2932,
26044,
2138,
3113,
315,
16283,
8863,
5411,
16262,
18,
945,
12,
2704,
2252,
18,
1594,
18,
8826,
2
] |
MylarTaskListPlugin.getTaskListManager().notifyTaskChanged(BugzillaTask.this);
|
protected IStatus run(IProgressMonitor monitor) { try { state = BugTaskState.DOWNLOADING;// notifyTaskDataChange(); // Update time this bugtask was last downloaded. lastRefresh = new Date(); bugReport = downloadReport(); state = BugTaskState.FREE; updateTaskDetails(); MylarTaskListPlugin.getTaskListManager().notifyTaskChanged(BugzillaTask.this);// notifyTaskDataChange(); saveBugReport(true); MylarTaskListPlugin.getTaskListManager().notifyTaskChanged(BugzillaTask.this); } catch (Exception e) { MylarStatusHandler.fail(e, "Could not download report", false); } if (BugzillaUiPlugin.getDefault() != null) { BugzillaUiPlugin.getDefault().getBugzillaRefreshManager().removeRefreshingTask(BugzillaTask.this); } return new Status(IStatus.OK, MylarPlugin.PLUGIN_ID, IStatus.OK, "", null); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/a1fbc669b543cf73e50d7ebf1694a40cd93093fd/BugzillaTask.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
1082,
202,
698,
288,
9506,
202,
2019,
273,
16907,
2174,
1119,
18,
12711,
7783,
1360,
31,
759,
9506,
202,
12336,
2174,
751,
3043,
5621,
9506,
202,
759,
2315,
813,
333,
7934,
4146,
1703,
1142,
13549,
18,
9506,
202,
2722,
8323,
273,
394,
2167,
5621,
9506,
202,
925,
4820,
273,
4224,
4820,
5621,
9506,
202,
2019,
273,
16907,
2174,
1119,
18,
28104,
31,
9506,
202,
2725,
2174,
3790,
5621,
9506,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
12336,
2174,
5033,
12,
19865,
15990,
2174,
18,
2211,
1769,
759,
9506,
202,
12336,
2174,
751,
3043,
5621,
9506,
202,
5688,
19865,
4820,
12,
3767,
1769,
9506,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
12336,
2174,
5033,
12,
19865,
15990,
2174,
18,
2211,
1769,
1082,
202,
97,
1044,
261,
503,
425,
13,
288,
9506,
202,
12062,
7901,
1482,
1503,
18,
6870,
12,
73,
16,
315,
4445,
486,
4224,
2605,
3113,
629,
1769,
1082,
202,
97,
1082,
202,
430,
261,
19865,
15990,
13943,
3773,
18,
588,
1868,
1435,
480,
446,
13,
288,
9506,
202,
19865,
15990,
13943,
3773,
18,
588,
1868,
7675,
588,
19865,
15990,
8323,
1318,
7675,
4479,
8323,
310,
2174,
12,
19865,
15990,
2174,
18,
2211,
1769,
1082,
202,
97,
1082,
202,
2463,
394,
2685,
12,
45,
1482,
18,
3141,
16,
8005,
7901,
3773,
18,
19415,
67,
734,
16,
467,
1482,
18,
3141,
16,
23453,
446,
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,
3196,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
1082,
202,
698,
288,
9506,
202,
2019,
273,
16907,
2174,
1119,
18,
12711,
7783,
1360,
31,
759,
9506,
202,
12336,
2174,
751,
3043,
5621,
9506,
202,
759,
2315,
813,
333,
7934,
4146,
1703,
1142,
13549,
18,
9506,
202,
2722,
8323,
273,
394,
2167,
5621,
9506,
202,
925,
4820,
273,
4224,
4820,
5621,
9506,
202,
2019,
273,
16907,
2174,
1119,
18,
28104,
31,
9506,
202,
2725,
2174,
3790,
5621,
9506,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
12336,
2174,
5033,
12,
19865,
15990,
2174,
18,
2211,
1769,
759,
9506,
202,
12336,
2174,
751,
3043,
5621,
9506,
202,
5688,
19865,
4820,
12,
3767,
2
] |
|
final Method mehod = handle.getClass().getMethod( "removePropertyChangeListener", AbstractWorkingMemory.ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES );
|
if(object != null) { final Method mehod = object.getClass().getMethod( "removePropertyChangeListener", AbstractWorkingMemory.ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES );
|
protected void removePropertyChangeListener(final FactHandle handle) throws NoSuchFactObjectException { Object object = null; try { object = getObject( handle ); final Method mehod = handle.getClass().getMethod( "removePropertyChangeListener", AbstractWorkingMemory.ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES ); mehod.invoke( handle, this.addRemovePropertyChangeListenerArgs ); } catch ( final NoSuchMethodException e ) { // The removePropertyChangeListener method on the class // was not found so Drools will be unable to // stop processing JavaBean PropertyChangeEvents // on the retracted Object } catch ( final IllegalArgumentException e ) { System.err.println( "Warning: The removePropertyChangeListener method" + " on the class " + object.getClass() + " does not take" + " a simple PropertyChangeListener argument" + " so Drools will be unable to stop processing JavaBean" + " PropertyChangeEvents on the retracted Object" ); } catch ( final IllegalAccessException e ) { System.err.println( "Warning: The removePropertyChangeListener method" + " on the class " + object.getClass() + " is not public" + " so Drools will be unable to stop processing JavaBean" + " PropertyChangeEvents on the retracted Object" ); } catch ( final InvocationTargetException e ) { System.err.println( "Warning: The removePropertyChangeL istener method" + " on the class " + object.getClass() + " threw an InvocationTargetException" + " so Drools will be unable to stop processing JavaBean" + " PropertyChangeEvents on the retracted Object: " + e.getMessage() ); } catch ( final SecurityException e ) { System.err.println( "Warning: The SecurityManager controlling the class " + object.getClass() + " did not allow the lookup of a" + " removePropertyChangeListener method" + " so Drools will be unable to stop processing JavaBean" + " PropertyChangeEvents on the retracted Object: " + e.getMessage() ); } }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/aaf1f61bda2ce6642323ca6b51f2078dc44a7e51/AbstractWorkingMemory.java/buggy/drools-core/src/main/java/org/drools/common/AbstractWorkingMemory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1206,
1396,
15744,
12,
6385,
29057,
3259,
1640,
13,
1216,
5823,
9766,
921,
503,
288,
3639,
1033,
733,
273,
446,
31,
3639,
775,
288,
5411,
733,
273,
6455,
12,
1640,
11272,
5411,
727,
2985,
1791,
76,
369,
273,
1640,
18,
588,
797,
7675,
588,
1305,
12,
315,
4479,
1396,
15744,
3113,
4766,
17311,
4115,
14836,
6031,
18,
8355,
67,
22122,
67,
9900,
67,
14473,
67,
26421,
67,
10973,
67,
10564,
11272,
5411,
1791,
76,
369,
18,
14407,
12,
1640,
16,
12900,
333,
18,
1289,
3288,
1396,
15744,
2615,
11272,
3639,
289,
1044,
261,
727,
15959,
425,
262,
288,
5411,
368,
1021,
1206,
1396,
15744,
707,
603,
326,
667,
5411,
368,
1703,
486,
1392,
1427,
22067,
903,
506,
13496,
358,
5411,
368,
2132,
4929,
5110,
3381,
4276,
3043,
3783,
5411,
368,
603,
326,
283,
1575,
329,
1033,
3639,
289,
1044,
261,
727,
2754,
425,
262,
288,
5411,
2332,
18,
370,
18,
8222,
12,
315,
6210,
30,
1021,
1206,
1396,
15744,
707,
6,
397,
315,
603,
326,
667,
315,
397,
733,
18,
588,
797,
1435,
397,
315,
1552,
486,
4862,
6,
397,
315,
279,
4143,
4276,
15744,
1237,
6,
397,
315,
1427,
22067,
903,
506,
13496,
358,
2132,
4929,
5110,
3381,
6,
27573,
397,
315,
4276,
3043,
3783,
603,
326,
283,
1575,
329,
1033,
6,
11272,
3639,
289,
1044,
261,
727,
11900,
425,
262,
288,
5411,
2332,
18,
370,
18,
8222,
12,
315,
6210,
30,
1021,
1206,
1396,
15744,
707,
6,
397,
315,
603,
326,
667,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1206,
1396,
15744,
12,
6385,
29057,
3259,
1640,
13,
1216,
5823,
9766,
921,
503,
288,
3639,
1033,
733,
273,
446,
31,
3639,
775,
288,
5411,
733,
273,
6455,
12,
1640,
11272,
5411,
727,
2985,
1791,
76,
369,
273,
1640,
18,
588,
797,
7675,
588,
1305,
12,
315,
4479,
1396,
15744,
3113,
4766,
17311,
4115,
14836,
6031,
18,
8355,
67,
22122,
67,
9900,
67,
14473,
67,
26421,
67,
10973,
67,
10564,
11272,
5411,
1791,
76,
369,
18,
14407,
12,
1640,
16,
12900,
333,
18,
1289,
3288,
1396,
15744,
2615,
11272,
3639,
289,
1044,
261,
727,
15959,
425,
262,
288,
5411,
368,
1021,
1206,
1396,
15744,
707,
603,
326,
667,
5411,
368,
1703,
486,
1392,
1427,
22067,
903,
2
] |
liveResizeBox.setSelected(jEdit.getBooleanProperty("MacOSPlugin.liveResize", jEdit.getBooleanProperty("MacOSPlugin.default.liveResize")));
|
public void getSettings() { menuBox.setSelected(jEdit.getBooleanProperty("MacOSPlugin.useScreenMenuBar", jEdit.getBooleanProperty("MacOSPlugin.default.useScreenMenuBar"))); preserveBox.setSelected(jEdit.getBooleanProperty("MacOSPlugin.preserveCodes", jEdit.getBooleanProperty("MacOSPlugin.default.preserveCodes"))); liveResizeBox.setSelected(jEdit.getBooleanProperty("MacOSPlugin.liveResize", jEdit.getBooleanProperty("MacOSPlugin.default.liveResize"))); selectionBox.setSelected(jEdit.getBooleanProperty("MacOSPlugin.useSelection", jEdit.getBooleanProperty("MacOSPlugin.default.useSelection"))); }//}}}
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/ecee24c8f00eefc34106dfdc920ad4802e690530/MacOSOptionPane.java/clean/jars/MacOS/macos/MacOSOptionPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18283,
1435,
202,
95,
202,
202,
5414,
3514,
18,
542,
7416,
12,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
1202,
7956,
4599,
5190,
3113,
1082,
202,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
1886,
18,
1202,
7956,
4599,
5190,
6,
3719,
1769,
202,
202,
27297,
3514,
18,
542,
7416,
12,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
27297,
6295,
3113,
1082,
202,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
1886,
18,
27297,
6295,
6,
3719,
1769,
202,
202,
16472,
12182,
3514,
18,
542,
7416,
12,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
16472,
12182,
3113,
1082,
202,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
1886,
18,
16472,
12182,
6,
3719,
1769,
202,
202,
10705,
3514,
18,
542,
7416,
12,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
1202,
6233,
3113,
1082,
202,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
1886,
18,
1202,
6233,
6,
3719,
1769,
202,
97,
759,
9090,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18283,
1435,
202,
95,
202,
202,
5414,
3514,
18,
542,
7416,
12,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
1202,
7956,
4599,
5190,
3113,
1082,
202,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
1886,
18,
1202,
7956,
4599,
5190,
6,
3719,
1769,
202,
202,
27297,
3514,
18,
542,
7416,
12,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
27297,
6295,
3113,
1082,
202,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
1886,
18,
27297,
6295,
6,
3719,
1769,
202,
202,
16472,
12182,
3514,
18,
542,
7416,
12,
78,
4666,
18,
588,
5507,
1396,
2932,
9990,
4618,
3773,
18,
16472,
12182,
3113,
2
] |
|
((PeerNode)m.getSource()).sendAsync(reply);
|
try { ((PeerNode)m.getSource()).sendAsync(reply); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection replying to "+m); }
|
public boolean handleMessage(Message m) { PeerNode source = (PeerNode)m.getSource(); Logger.minor(this, "Dispatching "+m); if(m.getSpec() == DMT.FNPPing) { // Send an FNPPong Message reply = DMT.createFNPPong(m.getInt(DMT.PING_SEQNO)); ((PeerNode)m.getSource()).sendAsync(reply); return true; } if(m.getSpec() == DMT.FNPLocChangeNotification) { double newLoc = m.getDouble(DMT.LOCATION); source.updateLocation(newLoc); return true; } if(m.getSpec() == DMT.FNPSwapRequest) { return node.lm.handleSwapRequest(m); } if(m.getSpec() == DMT.FNPSwapReply) { return node.lm.handleSwapReply(m); } if(m.getSpec() == DMT.FNPSwapRejected) { return node.lm.handleSwapRejected(m); } if(m.getSpec() == DMT.FNPSwapCommit) { return node.lm.handleSwapCommit(m); } if(m.getSpec() == DMT.FNPSwapComplete) { return node.lm.handleSwapComplete(m); } if(m.getSpec() == DMT.FNPRoutedPing) { return handleRouted(m); } if(m.getSpec() == DMT.FNPRoutedPong) { return handleRoutedReply(m); } if(m.getSpec() == DMT.FNPRoutedRejected) { return handleRoutedRejected(m); } if(m.getSpec() == DMT.FNPDataRequest) { return handleDataRequest(m); } if(m.getSpec() == DMT.FNPInsertRequest) { return handleInsertRequest(m); } return false; }
|
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/db3bc8d8624526da4116ed2c6e8583678d958aa9/NodeDispatcher.java/buggy/src/freenet/node/NodeDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1640,
1079,
12,
1079,
312,
13,
288,
3639,
10669,
907,
1084,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
5325,
310,
13773,
81,
1769,
3639,
309,
12,
81,
18,
588,
1990,
1435,
422,
463,
6152,
18,
19793,
6584,
310,
13,
288,
5411,
368,
2479,
392,
27103,
6584,
932,
5411,
2350,
4332,
273,
463,
6152,
18,
2640,
19793,
6584,
932,
12,
81,
18,
588,
1702,
12,
40,
6152,
18,
20002,
67,
28114,
3417,
10019,
5411,
775,
288,
14015,
6813,
907,
13,
81,
18,
588,
1830,
1435,
2934,
4661,
2771,
12,
10629,
1769,
289,
1044,
261,
1248,
8932,
503,
425,
13,
288,
4242,
18,
17364,
12,
2211,
16,
315,
19024,
1459,
4332,
310,
358,
13773,
81,
1769,
289,
5411,
327,
638,
31,
3639,
289,
3639,
309,
12,
81,
18,
588,
1990,
1435,
422,
463,
6152,
18,
19793,
52,
1333,
3043,
4386,
13,
288,
5411,
1645,
394,
1333,
273,
312,
18,
588,
5265,
12,
40,
6152,
18,
15277,
1769,
5411,
1084,
18,
2725,
2735,
12,
2704,
1333,
1769,
5411,
327,
638,
31,
3639,
289,
3639,
309,
12,
81,
18,
588,
1990,
1435,
422,
463,
6152,
18,
19793,
5857,
91,
438,
691,
13,
288,
5411,
327,
756,
18,
25972,
18,
4110,
12521,
691,
12,
81,
1769,
3639,
289,
3639,
309,
12,
81,
18,
588,
1990,
1435,
422,
463,
6152,
18,
19793,
5857,
91,
438,
7817,
13,
288,
5411,
327,
756,
18,
25972,
18,
4110,
12521,
7817,
12,
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,
377,
1071,
1250,
1640,
1079,
12,
1079,
312,
13,
288,
3639,
10669,
907,
1084,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
5325,
310,
13773,
81,
1769,
3639,
309,
12,
81,
18,
588,
1990,
1435,
422,
463,
6152,
18,
19793,
6584,
310,
13,
288,
5411,
368,
2479,
392,
27103,
6584,
932,
5411,
2350,
4332,
273,
463,
6152,
18,
2640,
19793,
6584,
932,
12,
81,
18,
588,
1702,
12,
40,
6152,
18,
20002,
67,
28114,
3417,
10019,
5411,
775,
288,
14015,
6813,
907,
13,
81,
18,
588,
1830,
1435,
2934,
4661,
2771,
12,
10629,
1769,
289,
1044,
261,
1248,
8932,
503,
425,
13,
288,
4242,
18,
17364,
12,
2211,
16,
2
] |
System.out.println("hh1");
|
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) { ProtocolAddress protocolAddress = protocolAddresses[i]; System.out.println("hh0' " + protocolAddress); } return protocolAddresses; } System.out.println("hh1"); Lookup lookup = null; Lookup.setDefaultResolver(resolver); try { lookup = new Lookup(hostname); } catch (TextParseException e) { throw new UnknownHostException(hostname); } System.out.println("hh3"); lookup.run(); System.out.println("hh4"); if (lookup.getResult() == Lookup.SUCCESSFUL) { Record[] records = lookup.getAnswers(); System.out.println("hh5"); protocolAddresses = new ProtocolAddress[records.length]; for (int i = 0; i < records.length; i++) { Record record = records[i]; protocolAddresses[i] = new IPv4Address(record.rdataToString()); System.out.println(record.getName() + " " + record.rdataToString()); } } else { System.out.println("lookup.getErrorString() " + lookup.getErrorString()); } System.out.println("hh6"); return protocolAddresses; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/84f039f178ab04b2540694eaf8549c4946dbef40/ResolverImpl.java/clean/net/src/net/org/jnode/net/ipv4/util/ResolverImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4547,
1887,
8526,
30027,
12,
780,
5199,
13,
1216,
30592,
225,
288,
565,
4547,
1887,
8526,
1771,
7148,
273,
446,
31,
565,
2332,
18,
659,
18,
8222,
2932,
21622,
20,
315,
397,
5199,
1769,
565,
1771,
7148,
273,
11859,
12172,
812,
12,
10358,
1769,
565,
309,
261,
8373,
7148,
480,
446,
13,
565,
288,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1771,
7148,
18,
2469,
31,
277,
27245,
1377,
288,
3639,
4547,
1887,
1771,
1887,
273,
1771,
7148,
63,
77,
15533,
3639,
2332,
18,
659,
18,
8222,
2932,
21622,
20,
11,
315,
397,
1771,
1887,
1769,
1377,
289,
1377,
327,
1771,
7148,
31,
565,
289,
1377,
8834,
3689,
273,
446,
31,
565,
8834,
18,
542,
1868,
4301,
12,
14122,
1769,
565,
775,
565,
288,
1377,
3689,
273,
394,
8834,
12,
10358,
1769,
565,
289,
565,
1044,
261,
1528,
13047,
425,
13,
565,
288,
1377,
604,
394,
30592,
12,
10358,
1769,
565,
289,
565,
2332,
18,
659,
18,
8222,
2932,
21622,
23,
8863,
565,
3689,
18,
2681,
5621,
565,
2332,
18,
659,
18,
8222,
2932,
21622,
24,
8863,
565,
309,
261,
8664,
18,
588,
1253,
1435,
422,
8834,
18,
12778,
42,
1506,
13,
565,
288,
1377,
5059,
8526,
3853,
273,
3689,
18,
588,
19543,
5621,
1377,
2332,
18,
659,
18,
8222,
2932,
21622,
25,
8863,
1377,
1771,
7148,
273,
394,
4547,
1887,
63,
7094,
18,
2469,
15533,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3853,
18,
2469,
31,
277,
27245,
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,
4547,
1887,
8526,
30027,
12,
780,
5199,
13,
1216,
30592,
225,
288,
565,
4547,
1887,
8526,
1771,
7148,
273,
446,
31,
565,
2332,
18,
659,
18,
8222,
2932,
21622,
20,
315,
397,
5199,
1769,
565,
1771,
7148,
273,
11859,
12172,
812,
12,
10358,
1769,
565,
309,
261,
8373,
7148,
480,
446,
13,
565,
288,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1771,
7148,
18,
2469,
31,
277,
27245,
1377,
288,
3639,
4547,
1887,
1771,
1887,
273,
1771,
7148,
63,
77,
15533,
3639,
2332,
18,
659,
18,
8222,
2932,
21622,
20,
11,
315,
397,
1771,
1887,
1769,
1377,
289,
1377,
327,
1771,
7148,
31,
565,
289,
1377,
8834,
3689,
273,
446,
31,
565,
8834,
18,
2
] |
|
int lastLine = firstLine + textArea.getVisibleLines();
|
int lastLine = firstLine + (getHeight() / lineHeight);
|
protected void paintCustomHighlights(Graphics gfx) { int lineHeight = textArea.getPainter().getFontMetrics() .getHeight(); int firstLine = textArea.getFirstLine(); int lastLine = firstLine + textArea.getVisibleLines(); int y = 0; for (int line = firstLine; line < lastLine; line++, y += lineHeight) { highlights.paintHighlight(gfx, line, y); } }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/86b0ab77337a136c7fc40a70fc7710098c90b0f3/Gutter.java/buggy/org/gjt/sp/jedit/textarea/Gutter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
12574,
3802,
16205,
87,
12,
17558,
30940,
13,
202,
95,
202,
202,
474,
980,
2686,
273,
977,
5484,
18,
588,
15775,
7675,
588,
5711,
5653,
1435,
1082,
202,
18,
588,
2686,
5621,
202,
202,
474,
24415,
273,
977,
5484,
18,
588,
3759,
1670,
5621,
202,
202,
474,
31661,
273,
24415,
397,
977,
5484,
18,
588,
6207,
5763,
5621,
202,
202,
474,
677,
273,
374,
31,
202,
202,
1884,
261,
474,
980,
273,
24415,
31,
980,
411,
31661,
31,
1082,
202,
1369,
9904,
16,
677,
1011,
980,
2686,
13,
202,
202,
95,
1082,
202,
15978,
87,
18,
84,
1598,
16205,
12,
75,
19595,
16,
980,
16,
677,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
12574,
3802,
16205,
87,
12,
17558,
30940,
13,
202,
95,
202,
202,
474,
980,
2686,
273,
977,
5484,
18,
588,
15775,
7675,
588,
5711,
5653,
1435,
1082,
202,
18,
588,
2686,
5621,
202,
202,
474,
24415,
273,
977,
5484,
18,
588,
3759,
1670,
5621,
202,
202,
474,
31661,
273,
24415,
397,
977,
5484,
18,
588,
6207,
5763,
5621,
202,
202,
474,
677,
273,
374,
31,
202,
202,
1884,
261,
474,
980,
273,
24415,
31,
980,
411,
31661,
31,
1082,
202,
1369,
9904,
16,
677,
1011,
980,
2686,
13,
202,
202,
95,
1082,
202,
15978,
87,
18,
84,
1598,
16205,
12,
75,
19595,
16,
980,
16,
677,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100
] |
ListCellRenderer oldRenderer = this.renderer; this.renderer = aRenderer;
|
ListCellRenderer oldRenderer = renderer; renderer = aRenderer;
|
public void setRenderer(ListCellRenderer aRenderer) { if (this.renderer != aRenderer) { ListCellRenderer oldRenderer = this.renderer; this.renderer = aRenderer; firePropertyChange(RENDERER_CHANGED_PROPERTY, oldRenderer, this.renderer); } }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/992d16ccdfb47d22d63bb012bdb2c9d9cc795ab3/JComboBox.java/buggy/libraries/javalib/javax/swing/JComboBox.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
6747,
12,
682,
4020,
6747,
279,
6747,
13,
225,
288,
565,
309,
261,
2211,
18,
14374,
480,
279,
6747,
13,
1377,
288,
202,
682,
4020,
6747,
1592,
6747,
273,
333,
18,
14374,
31,
202,
2211,
18,
14374,
273,
279,
6747,
31,
202,
12179,
1396,
3043,
12,
25230,
654,
67,
24435,
67,
9900,
16,
1592,
6747,
16,
202,
10402,
333,
18,
14374,
1769,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
6747,
12,
682,
4020,
6747,
279,
6747,
13,
225,
288,
565,
309,
261,
2211,
18,
14374,
480,
279,
6747,
13,
1377,
288,
202,
682,
4020,
6747,
1592,
6747,
273,
333,
18,
14374,
31,
202,
2211,
18,
14374,
273,
279,
6747,
31,
202,
12179,
1396,
3043,
12,
25230,
654,
67,
24435,
67,
9900,
16,
1592,
6747,
16,
202,
10402,
333,
18,
14374,
1769,
1377,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
CheckReturnValueAnnotation n = CheckReturnValueAnnotation.Parser.parse(annotationClass, (Priority) map.get("priority"));
|
CheckReturnValueAnnotation n = CheckReturnValueAnnotation.parse(annotationClass, (String) map.get("priority"));
|
public void visitAnnotation(String annotationClass, Map<String, Object> map, boolean runtimeVisible) { annotationClass = lastPortion(annotationClass); CheckReturnValueAnnotation n = CheckReturnValueAnnotation.Parser.parse(annotationClass, (Priority) map.get("priority")); if (n == null) { if (annotationClass.startsWith("DefaultAnnotation")) { Object v = map.get("value"); if (v == null || !(v instanceof Object[])) return; annotationClass = annotationClass.substring("DefaultAnnotation" .length()); String annotationTarget = defaultKind.get(annotationClass); if (annotationTarget != null) for (Object aClass : (Object[]) v) { n = CheckReturnValueAnnotation.Parser.parse((String) aClass, (Priority) map.get("priority")); if (n != null) AnalysisContext.currentAnalysisContext() .getCheckReturnAnnotationDatabase() .addDefaultAnnotation(annotationTarget, getDottedClassName(), n); } } } else if (visitingMethod()) AnalysisContext.currentAnalysisContext() .getCheckReturnAnnotationDatabase().addDirectAnnotation( XFactory.createXMethod(this), n); }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/7165f546d00b346e7a966aa9cc8d2da3b4d887ea/BuildCheckReturnAnnotationDatabase.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/BuildCheckReturnAnnotationDatabase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
3257,
12,
780,
26759,
16,
1082,
202,
863,
32,
780,
16,
1033,
34,
852,
16,
1250,
3099,
6207,
13,
288,
202,
202,
11495,
797,
273,
1142,
2617,
285,
12,
11495,
797,
1769,
202,
202,
1564,
19092,
3257,
290,
273,
2073,
19092,
3257,
18,
2678,
18,
2670,
12,
11495,
797,
16,
261,
8183,
13,
852,
18,
588,
2932,
8457,
7923,
1769,
202,
202,
430,
261,
82,
422,
446,
13,
288,
1082,
202,
430,
261,
11495,
797,
18,
17514,
1190,
2932,
1868,
3257,
6,
3719,
288,
9506,
202,
921,
331,
273,
852,
18,
588,
2932,
1132,
8863,
9506,
202,
430,
261,
90,
422,
446,
747,
401,
12,
90,
1276,
1033,
8526,
3719,
6862,
202,
2463,
31,
9506,
202,
11495,
797,
273,
26759,
18,
28023,
2932,
1868,
3257,
6,
25083,
202,
18,
2469,
10663,
9506,
202,
780,
3204,
2326,
273,
805,
5677,
18,
588,
12,
11495,
797,
1769,
6862,
9506,
202,
430,
261,
11495,
2326,
480,
446,
13,
6862,
202,
1884,
261,
921,
20148,
294,
261,
921,
63,
5717,
331,
13,
288,
25083,
202,
82,
273,
2073,
19092,
3257,
18,
2678,
18,
2670,
12443,
780,
13,
20148,
16,
261,
8183,
13,
852,
18,
588,
2932,
8457,
7923,
1769,
25083,
202,
430,
261,
82,
480,
446,
13,
6862,
1082,
202,
9418,
1042,
18,
2972,
9418,
1042,
1435,
6862,
6862,
202,
18,
588,
1564,
990,
3257,
4254,
1435,
6862,
6862,
202,
18,
1289,
1868,
3257,
12,
11495,
2326,
16,
6862,
6862,
1082,
202,
588,
10412,
2344,
3834,
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,
3757,
3257,
12,
780,
26759,
16,
1082,
202,
863,
32,
780,
16,
1033,
34,
852,
16,
1250,
3099,
6207,
13,
288,
202,
202,
11495,
797,
273,
1142,
2617,
285,
12,
11495,
797,
1769,
202,
202,
1564,
19092,
3257,
290,
273,
2073,
19092,
3257,
18,
2678,
18,
2670,
12,
11495,
797,
16,
261,
8183,
13,
852,
18,
588,
2932,
8457,
7923,
1769,
202,
202,
430,
261,
82,
422,
446,
13,
288,
1082,
202,
430,
261,
11495,
797,
18,
17514,
1190,
2932,
1868,
3257,
6,
3719,
288,
9506,
202,
921,
331,
273,
852,
18,
588,
2932,
1132,
8863,
9506,
202,
430,
261,
90,
422,
446,
747,
401,
12,
90,
1276,
1033,
8526,
3719,
6862,
202,
2463,
31,
2
] |
private void initDefinitionsFactory( ServletContext servletContext, ModuleConfig moduleConfig, DefinitionsFactoryConfig factoryConfig) throws ServletException { // Check if a factory already exist for this module definitionFactory = ((TilesUtilStrutsImpl) TilesUtil.getTilesUtil()).getDefinitionsFactory( servletContext, moduleConfig); if (definitionFactory != null) { log.info( "Factory already exists for module '" + moduleConfig.getPrefix() + "'. The factory found is from module '" + definitionFactory.getConfig().getFactoryName() + "'. No new creation."); return; } // Create configurable factory try { definitionFactory = TilesUtil.createDefinitionsFactory( servletContext, factoryConfig); } catch (DefinitionsFactoryException ex) { log.error( "Can't create Tiles definition factory for module '" + moduleConfig.getPrefix() + "'."); throw new ServletException(ex); } log.info( "Tiles definition factory loaded for module '" + moduleConfig.getPrefix() + "'."); }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/667715d7725494386b1449abff6d2f2afe9fa3ac/TilesPlugin.java/buggy/tiles/src/main/java/org/apache/struts/tiles/TilesPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7130,
1733,
12,
3639,
22717,
20474,
16,
3639,
5924,
809,
1605,
809,
16,
3639,
10849,
87,
1733,
809,
3272,
809,
13,
3639,
1216,
16517,
288,
10792,
368,
2073,
309,
279,
3272,
1818,
1005,
364,
333,
1605,
3639,
2379,
1733,
273,
5411,
14015,
27669,
1304,
1585,
12940,
2828,
13,
399,
1449,
1304,
18,
588,
27669,
1304,
1435,
2934,
588,
7130,
1733,
12,
7734,
20474,
16,
7734,
1605,
809,
1769,
13491,
309,
261,
6907,
1733,
480,
446,
13,
288,
5411,
613,
18,
1376,
12,
7734,
315,
1733,
1818,
1704,
364,
1605,
2119,
10792,
397,
1605,
809,
18,
588,
2244,
1435,
10792,
397,
2491,
18,
1021,
3272,
1392,
353,
628,
1605,
2119,
10792,
397,
2379,
1733,
18,
588,
809,
7675,
588,
1733,
461,
1435,
10792,
397,
2491,
18,
2631,
394,
6710,
1199,
1769,
27573,
327,
31,
3639,
289,
7734,
368,
1788,
14593,
3272,
3639,
775,
288,
5411,
2379,
1733,
273,
7734,
399,
1449,
1304,
18,
2640,
7130,
1733,
12,
10792,
20474,
16,
10792,
3272,
809,
1769,
18701,
289,
1044,
261,
7130,
1733,
503,
431,
13,
288,
5411,
613,
18,
1636,
12,
7734,
315,
2568,
1404,
752,
399,
1449,
2379,
3272,
364,
1605,
2119,
10792,
397,
1605,
809,
18,
588,
2244,
1435,
10792,
397,
30156,
1769,
27573,
604,
394,
16517,
12,
338,
1769,
3639,
289,
7734,
613,
18,
1376,
12,
5411,
315,
27669,
2379,
3272,
4203,
364,
1605,
2119,
7734,
397,
1605,
809,
18,
588,
2244,
1435,
7734,
397,
30156,
1769,
565,
289,
2,
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,
1,
1,
1,
1,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7130,
1733,
12,
3639,
22717,
20474,
16,
3639,
5924,
809,
1605,
809,
16,
3639,
10849,
87,
1733,
809,
3272,
809,
13,
3639,
1216,
16517,
288,
10792,
368,
2073,
309,
279,
3272,
1818,
1005,
364,
333,
1605,
3639,
2379,
1733,
273,
5411,
14015,
27669,
1304,
1585,
12940,
2828,
13,
399,
1449,
1304,
18,
588,
27669,
1304,
1435,
2934,
588,
7130,
1733,
12,
7734,
20474,
16,
7734,
1605,
809,
1769,
13491,
309,
261,
6907,
1733,
480,
446,
13,
288,
5411,
613,
18,
1376,
12,
7734,
315,
1733,
1818,
1704,
364,
1605,
2119,
10792,
397,
1605,
809,
18,
588,
2244,
1435,
10792,
397,
2491,
18,
1021,
3272,
1392,
353,
628,
1605,
2119,
10792,
397,
2379,
1733,
18,
588,
2
] |
||
request.getAttribute(Action.APPLICATION_KEY);
|
request.getAttribute(Globals.MODULE_KEY);
|
public static String actionURL(HttpServletRequest request, ActionConfig action, String pattern) { StringBuffer sb = new StringBuffer(); if (pattern.endsWith("/*")) { sb.append(pattern.substring(0, pattern.length() - 2)); sb.append(action.getPath()); } else if (pattern.startsWith("*.")) { ApplicationConfig appConfig = (ApplicationConfig) request.getAttribute(Action.APPLICATION_KEY); sb.append(appConfig.getPrefix()); sb.append(action.getPath()); sb.append(pattern.substring(1)); } else { throw new IllegalArgumentException(pattern); } return (sb.toString()); }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/02d148b515a594d8daed79f607144d0aa2b9c42a/RequestUtils.java/buggy/src/share/org/apache/struts/util/RequestUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1301,
1785,
12,
2940,
18572,
590,
16,
4766,
282,
4382,
809,
1301,
16,
4766,
282,
514,
1936,
13,
288,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
309,
261,
4951,
18,
5839,
1190,
2932,
19,
7388,
3719,
288,
5411,
2393,
18,
6923,
12,
4951,
18,
28023,
12,
20,
16,
1936,
18,
2469,
1435,
300,
576,
10019,
5411,
2393,
18,
6923,
12,
1128,
18,
588,
743,
10663,
3639,
289,
469,
309,
261,
4951,
18,
17514,
1190,
2932,
14,
1199,
3719,
288,
5411,
4257,
809,
20782,
273,
261,
3208,
809,
13,
7734,
590,
18,
588,
1499,
12,
19834,
18,
12194,
67,
3297,
1769,
5411,
2393,
18,
6923,
12,
2910,
809,
18,
588,
2244,
10663,
5411,
2393,
18,
6923,
12,
1128,
18,
588,
743,
10663,
5411,
2393,
18,
6923,
12,
4951,
18,
28023,
12,
21,
10019,
3639,
289,
469,
288,
5411,
604,
394,
2754,
12,
4951,
1769,
3639,
289,
3639,
327,
261,
18366,
18,
10492,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1301,
1785,
12,
2940,
18572,
590,
16,
4766,
282,
4382,
809,
1301,
16,
4766,
282,
514,
1936,
13,
288,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
309,
261,
4951,
18,
5839,
1190,
2932,
19,
7388,
3719,
288,
5411,
2393,
18,
6923,
12,
4951,
18,
28023,
12,
20,
16,
1936,
18,
2469,
1435,
300,
576,
10019,
5411,
2393,
18,
6923,
12,
1128,
18,
588,
743,
10663,
3639,
289,
469,
309,
261,
4951,
18,
17514,
1190,
2932,
14,
1199,
3719,
288,
5411,
4257,
809,
20782,
273,
261,
3208,
809,
13,
7734,
590,
18,
588,
1499,
12,
19834,
18,
12194,
67,
3297,
1769,
5411,
2393,
18,
6923,
12,
2910,
809,
18,
588,
2244,
10663,
5411,
2393,
18,
2
] |
org.postgresql.Driver.debug( "" + df.parse(rs.sbuf.toString()).getTime() );
|
org.postgresql.Driver.debug("the data after parsing is " + rs.sbuf.toString() + " with " + nanos + " nanos");
|
public static Timestamp toTimestamp(String s, java.sql.ResultSet resultSet, String pgDataType) throws SQLException { AbstractJdbc1ResultSet rs = (AbstractJdbc1ResultSet)resultSet; if (s == null) return null; // We must be synchronized here incase more theads access the ResultSet // bad practice but possible. Anyhow this is to protect sbuf and // SimpleDateFormat objects synchronized (rs) { SimpleDateFormat df = null; if ( org.postgresql.Driver.logDebug ) org.postgresql.Driver.debug("the data from the DB is " + s); // If first time, create the buffer, otherwise clear it. if (rs.sbuf == null) rs.sbuf = new StringBuffer(32); else { rs.sbuf.setLength(0); } // Copy s into sbuf for parsing. rs.sbuf.append(s); int slen = s.length(); if (slen > 19) { // The len of the ISO string to the second value is 19 chars. If // greater then 19, there may be tz info and perhaps fractional // second info which we need to change to java to read it. // cut the copy to second value "2001-12-07 16:29:22" int i = 19; rs.sbuf.setLength(i); char c = s.charAt(i++); if (c == '.') { // Found a fractional value. Append up to 3 digits including // the leading '.' do { if (i < 24) rs.sbuf.append(c); c = s.charAt(i++); } while (i < slen && Character.isDigit(c)); // If there wasn't at least 3 digits we should add some zeros // to make up the 3 digits we tell java to expect. for (int j = i; j < 24; j++) rs.sbuf.append('0'); } else { // No fractional seconds, lets add some. rs.sbuf.append(".000"); } if (i < slen) { // prepend the GMT part and then add the remaining bit of // the string. rs.sbuf.append(" GMT"); rs.sbuf.append(c); rs.sbuf.append(s.substring(i, slen)); // Lastly, if the tz part doesn't specify the :MM part then // we add ":00" for java. if (slen - i < 5) rs.sbuf.append(":00"); // we'll use this dateformat string to parse the result. df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); } else { // Just found fractional seconds but no timezone. //If timestamptz then we use GMT, else local timezone if (pgDataType.equals("timestamptz")) { rs.sbuf.append(" GMT"); df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); } else { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); } } } else if (slen == 19) { // No tz or fractional second info. //If timestamptz then we use GMT, else local timezone if (pgDataType.equals("timestamptz")) { rs.sbuf.append(" GMT"); df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z"); } else { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } } else { if (slen == 8 && s.equals("infinity")) //java doesn't have a concept of postgres's infinity //so set to an arbitrary future date s = "9999-01-01"; if (slen == 9 && s.equals("-infinity")) //java doesn't have a concept of postgres's infinity //so set to an arbitrary old date s = "0001-01-01"; // We must just have a date. This case is // needed if this method is called on a date // column df = new SimpleDateFormat("yyyy-MM-dd"); } try { // All that's left is to parse the string and return the ts. if ( org.postgresql.Driver.logDebug ) org.postgresql.Driver.debug( "" + df.parse(rs.sbuf.toString()).getTime() ); return new Timestamp(df.parse(rs.sbuf.toString()).getTime()); } catch (ParseException e) { throw new PSQLException("postgresql.res.badtimestamp", new Integer(e.getErrorOffset()), s); } } }
|
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/c2d766af1543a9b7a765608b88882e025b70cf88/AbstractJdbc1ResultSet.java/clean/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
8159,
358,
4921,
12,
780,
272,
16,
2252,
18,
4669,
18,
13198,
12168,
16,
514,
7184,
6273,
13,
202,
15069,
6483,
202,
95,
202,
202,
7469,
25316,
21,
13198,
3597,
273,
261,
7469,
25316,
21,
13198,
13,
2088,
694,
31,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
1660,
1297,
506,
3852,
2674,
316,
3593,
1898,
326,
17318,
2006,
326,
10842,
202,
202,
759,
5570,
27164,
1496,
3323,
18,
5502,
13606,
333,
353,
358,
17151,
2393,
696,
471,
202,
202,
759,
17005,
2184,
202,
202,
22043,
261,
5453,
13,
202,
202,
95,
1082,
202,
5784,
11878,
3013,
273,
446,
31,
1082,
202,
430,
261,
2358,
18,
2767,
24330,
18,
4668,
18,
1330,
2829,
262,
9506,
202,
3341,
18,
2767,
24330,
18,
4668,
18,
4148,
2932,
5787,
501,
628,
326,
2383,
353,
315,
397,
272,
1769,
1082,
202,
759,
971,
1122,
813,
16,
752,
326,
1613,
16,
3541,
2424,
518,
18,
1082,
202,
430,
261,
5453,
18,
87,
4385,
422,
446,
13,
9506,
202,
5453,
18,
87,
4385,
273,
394,
6674,
12,
1578,
1769,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
5453,
18,
87,
4385,
18,
542,
1782,
12,
20,
1769,
1082,
202,
97,
1082,
202,
759,
5631,
272,
1368,
2393,
696,
364,
5811,
18,
1082,
202,
5453,
18,
87,
4385,
18,
6923,
12,
87,
1769,
1082,
202,
474,
272,
1897,
273,
272,
18,
2469,
5621,
1082,
202,
430,
261,
87,
1897,
405,
5342,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
8159,
358,
4921,
12,
780,
272,
16,
2252,
18,
4669,
18,
13198,
12168,
16,
514,
7184,
6273,
13,
202,
15069,
6483,
202,
95,
202,
202,
7469,
25316,
21,
13198,
3597,
273,
261,
7469,
25316,
21,
13198,
13,
2088,
694,
31,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
1660,
1297,
506,
3852,
2674,
316,
3593,
1898,
326,
17318,
2006,
326,
10842,
202,
202,
759,
5570,
27164,
1496,
3323,
18,
5502,
13606,
333,
353,
358,
17151,
2393,
696,
471,
202,
202,
759,
17005,
2184,
202,
202,
22043,
261,
5453,
13,
202,
202,
95,
1082,
202,
5784,
11878,
3013,
273,
446,
31,
1082,
202,
430,
261,
2358,
18,
2767,
2
] |
super(coreToUse);
|
super(core);
|
public IDProcessor(Core coreToUse) { super(coreToUse); }
|
49735 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49735/6a34a4cb5cc8374e5588b5833b5726f8ca03111d/IDProcessor.java/clean/JavaSource/org/aitools/programd/processor/aiml/IDProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1599,
5164,
12,
4670,
2922,
18762,
13,
565,
288,
3639,
2240,
12,
3644,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1599,
5164,
12,
4670,
2922,
18762,
13,
565,
288,
3639,
2240,
12,
3644,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
GalleryProperties requestResponse(NVPair form_data[], StatusUpdate su) throws GR2Exception, ModuleException, IOException { return requestResponse(form_data, null, g.getGalleryUrl(scriptName), true, su);
|
GalleryProperties requestResponse(NVPair form_data[], StatusUpdate su, GalleryTask task) throws GR2Exception, ModuleException, IOException { return requestResponse(form_data, null, g.getGalleryUrl(scriptName), true, su, task);
|
GalleryProperties requestResponse(NVPair form_data[], StatusUpdate su) throws GR2Exception, ModuleException, IOException { return requestResponse(form_data, null, g.getGalleryUrl(scriptName), true, su); }
|
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/2a7407a093c5f325294c34bcce89c490432c4bae/GalleryComm2.java/clean/com/gallery/GalleryRemote/GalleryComm2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
18511,
2297,
590,
1064,
12,
11679,
4154,
646,
67,
892,
63,
6487,
2685,
1891,
1597,
13,
1216,
15228,
22,
503,
16,
5924,
503,
16,
1860,
288,
202,
202,
2463,
590,
1064,
12,
687,
67,
892,
16,
446,
16,
314,
18,
588,
18511,
1489,
12,
4263,
461,
3631,
638,
16,
1597,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
18511,
2297,
590,
1064,
12,
11679,
4154,
646,
67,
892,
63,
6487,
2685,
1891,
1597,
13,
1216,
15228,
22,
503,
16,
5924,
503,
16,
1860,
288,
202,
202,
2463,
590,
1064,
12,
687,
67,
892,
16,
446,
16,
314,
18,
588,
18511,
1489,
12,
4263,
461,
3631,
638,
16,
1597,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (this == runtime.getClasses().getObjectClass()) {
|
if (this == runtime.getObject()) {
|
public void undef(String name) { Ruby runtime = getRuntime(); if (this == runtime.getClasses().getObjectClass()) { runtime.secure(4); } if (runtime.getSafeLevel() >= 4 && !isTaint()) { throw new SecurityException("Insecure: can't undef"); } testFrozen("module"); if (name.equals("__id__") || name.equals("__send__")) { /*rb_warn("undefining `%s' may cause serious problem", rb_id2name( id ) );*/ } ICallable method = searchMethod(name); if (method.isUndefined()) { String s0 = " class"; RubyModule c = this; if (c.isSingleton()) { IRubyObject obj = getInstanceVariable("__attached__"); if (obj != null && obj instanceof RubyModule) { c = (RubyModule) obj; s0 = ""; } } else if (c.isModule()) { s0 = " module"; } throw new NameError(runtime, "Undefined method " + name + " for" + s0 + " '" + c.getName() + "'"); } addMethod(name, UndefinedMethod.getInstance()); }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyModule.java/buggy/src/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
640,
536,
12,
780,
508,
13,
288,
3639,
19817,
3099,
273,
18814,
5621,
3639,
309,
261,
2211,
422,
3099,
18,
588,
921,
10756,
288,
5411,
3099,
18,
8869,
12,
24,
1769,
3639,
289,
3639,
309,
261,
9448,
18,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
288,
5411,
604,
394,
17780,
2932,
382,
8869,
30,
848,
1404,
640,
536,
8863,
3639,
289,
3639,
1842,
42,
9808,
2932,
2978,
8863,
3639,
309,
261,
529,
18,
14963,
2932,
972,
350,
972,
7923,
747,
508,
18,
14963,
2932,
972,
4661,
14437,
3719,
288,
5411,
1748,
6731,
67,
8935,
2932,
318,
5649,
310,
12430,
87,
11,
2026,
4620,
703,
22774,
6199,
3113,
5397,
7138,
67,
350,
22,
529,
12,
612,
262,
11272,
5549,
3639,
289,
3639,
467,
11452,
707,
273,
1623,
1305,
12,
529,
1769,
3639,
309,
261,
2039,
18,
291,
10317,
10756,
288,
5411,
514,
272,
20,
273,
315,
667,
14432,
5411,
19817,
3120,
276,
273,
333,
31,
5411,
309,
261,
71,
18,
291,
19571,
10756,
288,
7734,
15908,
10340,
921,
1081,
273,
3694,
3092,
2932,
972,
24157,
972,
8863,
7734,
309,
261,
2603,
480,
446,
597,
1081,
1276,
19817,
3120,
13,
288,
10792,
276,
273,
261,
54,
10340,
3120,
13,
1081,
31,
10792,
272,
20,
273,
1408,
31,
7734,
289,
5411,
289,
469,
309,
261,
71,
18,
291,
3120,
10756,
288,
7734,
272,
20,
273,
315,
1605,
14432,
5411,
289,
5411,
604,
394,
25473,
12,
9448,
16,
315,
10317,
707,
315,
397,
508,
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,
640,
536,
12,
780,
508,
13,
288,
3639,
19817,
3099,
273,
18814,
5621,
3639,
309,
261,
2211,
422,
3099,
18,
588,
921,
10756,
288,
5411,
3099,
18,
8869,
12,
24,
1769,
3639,
289,
3639,
309,
261,
9448,
18,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
288,
5411,
604,
394,
17780,
2932,
382,
8869,
30,
848,
1404,
640,
536,
8863,
3639,
289,
3639,
1842,
42,
9808,
2932,
2978,
8863,
3639,
309,
261,
529,
18,
14963,
2932,
972,
350,
972,
7923,
747,
508,
18,
14963,
2932,
972,
4661,
14437,
3719,
288,
5411,
1748,
6731,
67,
8935,
2932,
318,
5649,
310,
12430,
87,
11,
2026,
4620,
703,
22774,
6199,
3113,
5397,
7138,
67,
350,
22,
2
] |
addr = InetAddress.getByName(val);
|
addr = new FreenetInetAddress(val, false);
|
public void set(String val) throws InvalidConfigValueException { // FIXME do we need to tell anyone? if(val.length() == 0) { // Set to null overrideIPAddress = null; lastIPAddress = null; redetectAddress(); shouldInsertARK(); return; } InetAddress addr; try { addr = InetAddress.getByName(val); } catch (UnknownHostException e) { throw new InvalidConfigValueException("Unknown host: "+e.getMessage()); } overrideIPAddress = addr; lastIPAddress = null; redetectAddress(); shouldInsertARK(); }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/474d190c633c367c5c3ff7fbe0f75a1ea669294b/Node.java/clean/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
444,
12,
780,
1244,
13,
1216,
1962,
809,
9738,
288,
9506,
202,
759,
9852,
741,
732,
1608,
358,
9276,
1281,
476,
35,
9506,
202,
430,
12,
1125,
18,
2469,
1435,
422,
374,
13,
288,
6862,
202,
759,
1000,
358,
446,
6862,
202,
10601,
22507,
273,
446,
31,
6862,
202,
2722,
22507,
273,
446,
31,
6862,
202,
1118,
278,
386,
1887,
5621,
6862,
202,
13139,
4600,
9584,
5621,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
382,
278,
1887,
3091,
31,
9506,
202,
698,
288,
6862,
202,
4793,
273,
14218,
18,
588,
5911,
12,
1125,
1769,
9506,
202,
97,
1044,
261,
4874,
29776,
425,
13,
288,
6862,
202,
12849,
394,
1962,
809,
9738,
2932,
4874,
1479,
30,
13773,
73,
18,
24906,
10663,
9506,
202,
97,
9506,
202,
10601,
22507,
273,
3091,
31,
9506,
202,
2722,
22507,
273,
446,
31,
9506,
202,
1118,
278,
386,
1887,
5621,
9506,
202,
13139,
4600,
9584,
5621,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
444,
12,
780,
1244,
13,
1216,
1962,
809,
9738,
288,
9506,
202,
759,
9852,
741,
732,
1608,
358,
9276,
1281,
476,
35,
9506,
202,
430,
12,
1125,
18,
2469,
1435,
422,
374,
13,
288,
6862,
202,
759,
1000,
358,
446,
6862,
202,
10601,
22507,
273,
446,
31,
6862,
202,
2722,
22507,
273,
446,
31,
6862,
202,
1118,
278,
386,
1887,
5621,
6862,
202,
13139,
4600,
9584,
5621,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
382,
278,
1887,
3091,
31,
9506,
202,
698,
288,
6862,
202,
4793,
273,
14218,
18,
588,
5911,
12,
1125,
1769,
9506,
202,
97,
1044,
261,
4874,
29776,
425,
13,
288,
6862,
202,
12849,
394,
1962,
809,
9738,
2932,
4874,
2
] |
this.numTilesAssigned = i; this.tilesAssigned = new RawTile[i];
|
this.numTilesAssigned = i; this.tilesAssigned = new RawTile[i];
|
public void setNumTiles(int i) { this.numTilesAssigned = i; this.tilesAssigned = new RawTile[i]; }
|
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/31aff989277324400ed1080dc1f4597a89d20d2b/StaticStreamGraph.java/buggy/streams/src/at/dms/kjc/spacedynamic/StaticStreamGraph.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2578,
27669,
12,
474,
277,
13,
288,
202,
2211,
18,
2107,
27669,
20363,
273,
277,
31,
202,
2211,
18,
28366,
20363,
273,
394,
6576,
9337,
63,
77,
15533,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2578,
27669,
12,
474,
277,
13,
288,
202,
2211,
18,
2107,
27669,
20363,
273,
277,
31,
202,
2211,
18,
28366,
20363,
273,
394,
6576,
9337,
63,
77,
15533,
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
] |
p11.add(new JTextField(" "));
|
p11.add(temp = new JTextField("yellow")); temp.setBackground(Color.yellow); p11.add(new JLabel("Start Voltage:")); p11.add(temp = new JTextField("red")); temp.setBackground(Color.red);
|
public void actionPerformed(ActionEvent e) { // create a dummy paned frame JFrame f = new JFrame(); f.getContentPane().setLayout(new BoxLayout(f.getContentPane(), BoxLayout.Y_AXIS)); JTabbedPane t = new JTabbedPane(); JPanel p1 = new JPanel(); p1.setLayout(new BoxLayout(p1, BoxLayout.X_AXIS)); JPanel p11 = new JPanel(); p11.setLayout(new GridLayout(5,2)); p11.add(new JLabel("Address:")); p11.add(new JTextField(" ")); p11.add(new JLabel("Acceleration:")); p11.add(new JTextField(" ")); p11.add(new JLabel("Deceleration:")); p11.add(new JTextField(" ")); p11.add(new JLabel("Max Voltage:")); p11.add(new JTextField(" ")); p11.add(new JLabel("Mid Voltage:")); p11.add(new JTextField(" ")); p1.add(p11); p1.add(new JSeparator(javax.swing.SwingConstants.VERTICAL)); JPanel p12 = new JPanel(); p12.setLayout(new GridLayout(6,1)); p12.add(new JCheckBox("Reverse direction")); p12.add(new JCheckBox("28/128 speed steps")); p12.add(new JCheckBox("Analog mode")); p12.add(new JCheckBox("Use speed table")); p12.add(new JCheckBox("Long Address")); p12.add(new JCheckBox("Long Address")); p1.add(p12); t.addTab("Basics", p1); JPanel p2 = new JPanel(); p2.setLayout(new GridLayout(3,2)); t.addTab("CVs", p2); JPanel p3 = new JPanel(); p3.setLayout(new GridLayout(3,2)); t.addTab("variables", p3); f.getContentPane().add(t); f.getContentPane().add(new JSeparator()); // f.getContentPane().add(new jmri.ProgModePane(BoxLayout.X_AXIS)); JPanel r1 = new JPanel(); r1.setLayout(new FlowLayout()); r1.add(new JRadioButton("Paged Mode")); r1.add(new JRadioButton("Direct Mode")); f.getContentPane().add(r1); f.pack(); f.show(); }
|
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/ff8d0282db180a2dfd09caa7963acb2d709903b2/PaneProgAction.java/buggy/jmrit/symbolicprog/tabbedframe/PaneProgAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
202,
759,
752,
279,
9609,
2800,
329,
2623,
202,
202,
46,
3219,
284,
273,
394,
804,
3219,
5621,
202,
202,
74,
18,
588,
1350,
8485,
7675,
542,
3744,
12,
2704,
8549,
3744,
12,
74,
18,
588,
1350,
8485,
9334,
8549,
3744,
18,
61,
67,
25614,
10019,
25083,
202,
46,
5661,
2992,
8485,
268,
273,
394,
804,
5661,
2992,
8485,
5621,
25083,
202,
46,
5537,
293,
21,
273,
394,
24048,
5621,
9506,
202,
84,
21,
18,
542,
3744,
12,
2704,
8549,
3744,
12,
84,
21,
16,
8549,
3744,
18,
60,
67,
25614,
10019,
6862,
202,
46,
5537,
293,
2499,
273,
394,
24048,
5621,
25083,
202,
84,
2499,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
25,
16,
22,
10019,
25083,
202,
84,
2499,
18,
1289,
12,
2704,
21403,
2932,
1887,
2773,
10019,
25083,
202,
84,
2499,
18,
1289,
12,
2704,
804,
16157,
2932,
1377,
9369,
1769,
25083,
202,
84,
2499,
18,
1289,
12,
2704,
21403,
2932,
18019,
7067,
2773,
10019,
25083,
202,
84,
2499,
18,
1289,
12,
2704,
804,
16157,
2932,
1377,
9369,
1769,
25083,
202,
84,
2499,
18,
1289,
12,
2704,
21403,
2932,
1799,
292,
7067,
2773,
10019,
25083,
202,
84,
2499,
18,
1289,
12,
2704,
804,
16157,
2932,
1377,
9369,
1769,
25083,
202,
84,
2499,
18,
1289,
12,
2704,
21403,
2932,
2747,
12482,
410,
2773,
10019,
25083,
202,
84,
2499,
18,
1289,
12,
2704,
804,
16157,
2932,
1377,
9369,
1769,
25083,
202,
84,
2499,
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,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
202,
759,
752,
279,
9609,
2800,
329,
2623,
202,
202,
46,
3219,
284,
273,
394,
804,
3219,
5621,
202,
202,
74,
18,
588,
1350,
8485,
7675,
542,
3744,
12,
2704,
8549,
3744,
12,
74,
18,
588,
1350,
8485,
9334,
8549,
3744,
18,
61,
67,
25614,
10019,
25083,
202,
46,
5661,
2992,
8485,
268,
273,
394,
804,
5661,
2992,
8485,
5621,
25083,
202,
46,
5537,
293,
21,
273,
394,
24048,
5621,
9506,
202,
84,
21,
18,
542,
3744,
12,
2704,
8549,
3744,
12,
84,
21,
16,
8549,
3744,
18,
60,
67,
25614,
10019,
6862,
202,
46,
5537,
293,
2499,
273,
394,
24048,
5621,
25083,
202,
84,
2499,
18,
542,
2
] |
match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_then:
|
match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (AST)currentAST.root; break; } case VERSION:
|
public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); AST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_div: { AST tmp288_AST = null; tmp288_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp288_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_mod: { AST tmp289_AST = null; tmp289_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp289_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_text: { AST tmp290_AST = null; tmp290_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp290_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_node: { AST tmp291_AST = null; tmp291_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp291_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_or: { AST tmp292_AST = null; tmp292_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp292_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_and: { AST tmp293_AST = null; tmp293_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp293_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_child: { AST tmp294_AST = null; tmp294_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp294_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_parent: { AST tmp295_AST = null; tmp295_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp295_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_self: { AST tmp296_AST = null; tmp296_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp296_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_attribute: { AST tmp297_AST = null; tmp297_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp297_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_comment: { AST tmp298_AST = null; tmp298_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp298_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_document: { AST tmp299_AST = null; tmp299_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp299_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_collection: { AST tmp300_AST = null; tmp300_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp300_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_ancestor: { AST tmp301_AST = null; tmp301_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp301_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_descendant: { AST tmp302_AST = null; tmp302_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp302_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (AST)currentAST.root; break; } case 104: { AST tmp303_AST = null; tmp303_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp303_AST); match(104); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (AST)currentAST.root; break; } case 108: { AST tmp304_AST = null; tmp304_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp304_AST); match(108); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (AST)currentAST.root; break; } case 109: { AST tmp305_AST = null; tmp305_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp305_AST); match(109); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (AST)currentAST.root; break; } case 105: { AST tmp306_AST = null; tmp306_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp306_AST); match(105); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_item: { AST tmp307_AST = null; tmp307_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp307_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_empty: { AST tmp308_AST = null; tmp308_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp308_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (AST)currentAST.root; break; } case VERSION: { AST tmp309_AST = null; tmp309_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp309_AST); match(VERSION); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (AST)currentAST.root; break; } case XQUERY: { AST tmp310_AST = null; tmp310_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp310_AST); match(XQUERY); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_variable: { AST tmp311_AST = null; tmp311_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp311_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_namespace: { AST tmp312_AST = null; tmp312_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp312_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_if: { AST tmp313_AST = null; tmp313_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp313_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_then: { AST tmp314_AST = null; tmp314_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp314_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_else: { AST tmp315_AST = null; tmp315_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp315_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_for: { AST tmp316_AST = null; tmp316_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp316_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_let: { AST tmp317_AST = null; tmp317_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp317_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_default: { AST tmp318_AST = null; tmp318_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp318_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (AST)currentAST.root; break; } case LITERAL_function: { AST tmp319_AST = null; tmp319_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp319_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (AST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ca3671ce7c752480b17278b434be7f75e3ec7d57/XPathParser2.java/buggy/src/org/exist/parser/XPathParser2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
8735,
14149,
67,
9053,
273,
446,
31,
202,
202,
529,
33,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
2892,
30,
202,
202,
95,
1082,
202,
9053,
1853,
22,
5482,
67,
9053,
273,
446,
31,
1082,
202,
5645,
22,
5482,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
1853,
22,
5482,
67,
9053,
1769,
1082,
202,
1916,
12,
23225,
67,
2892,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
529,
33,
315,
2892,
14432,
1082,
202,
97,
1082,
202,
18898,
14149,
67,
9053,
273,
261,
9053,
13,
2972,
9053,
18,
3085,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
511,
18454,
67,
1711,
30,
202,
202,
95,
1082,
202,
9053,
1853,
6030,
29,
67,
9053,
273,
446,
31,
1082,
202,
5645,
6030,
29,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
1853,
6030,
29,
67,
9053,
1769,
1082,
202,
1916,
12,
23225,
67,
1711,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
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,
514,
225,
8735,
14149,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
202,
202,
780,
508,
31,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
8735,
14149,
67,
9053,
273,
446,
31,
202,
202,
529,
33,
446,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
511,
18454,
67,
2892,
30,
202,
202,
95,
1082,
202,
9053,
1853,
22,
5482,
67,
9053,
273,
446,
31,
1082,
202,
5645,
22,
5482,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
1853,
22,
5482,
67,
2
] |
stack[stackTop] = new Object[i];
|
stack[stackTop] = new Object[indexReg];
|
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; int pc = 0; int pcPrevBranch = 0; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; String[] strings = idata.itsStringTable; String stringReg = null; Loop: for (;;) { int pcJump; try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); pcJump = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcJump >= 0) { // Has catch block doCatch = true; } } if (pcJump < 0) { pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcJump < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // go to generic jump code break; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); throw new JavaScriptException(value, idata.itsSourceFile, sourceLine); } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } stack[stackTop] = null; --stackTop; pcJump = getTarget(iCode, pc); break; } case Token.GOTO : pcJump = getTarget(iCode, pc); break; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; pcJump = getTarget(iCode, pc); break; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; pcJump = getJavaCatchPC(iCode); } else { // Normal return from GOSUB pcJump = (int)sDbl[LOCAL_SHFT + slot]; } break; } case Token.POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; continue Loop; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; continue Loop; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; continue Loop; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; continue Loop; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; continue Loop; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; continue Loop; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); continue Loop; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; continue Loop; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; continue Loop; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; continue Loop; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; continue Loop; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; continue Loop; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; continue Loop; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; continue Loop; } case Icode_LOAD_STR1: stringReg = strings[0xFF & iCode[pc]]; ++pc; continue Loop; case Icode_LOAD_STR2: stringReg = strings[getIndex(iCode, pc)]; pc += 2; continue Loop; case Icode_LOAD_STR4: stringReg = strings[getInt(iCode, pc)]; pc += 4; continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); continue Loop; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); continue Loop; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; continue Loop; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; continue Loop; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); continue Loop; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); continue Loop; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; continue Loop; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; continue Loop; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; continue Loop; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 2; continue Loop; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 2; continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(scope, stringReg); continue Loop; case Icode_NAME_AND_THIS : { boolean skipGetThis = (0 != iCode[pc]); stackTop = do_nameAndThis(stack, stackTop, scope, stringReg, skipGetThis); ++pc; continue Loop; } case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(scope, stringReg); continue Loop; case Icode_NAMEINC : case Icode_NAMEDEC : stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, stringReg, op == Icode_NAMEINC); continue Loop; case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; continue Loop; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; continue Loop; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; continue Loop; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; continue Loop; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; continue Loop; case Token.CATCH_SCOPE : stack[stackTop] = ScriptRuntime.newCatchScope(stringReg, stack[stackTop]); continue Loop; case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; continue Loop; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); continue Loop; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SCOPE : stack[++stackTop] = scope; continue Loop; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; continue Loop; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; continue Loop; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; continue Loop; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; continue Loop; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; continue Loop; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } } // end of interpreter switch // This should be reachable only for jump implementation if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } pcPrevBranch = pcJump; } pc = pcJump; continue Loop; } // end of interpreter try catch (Throwable ex) { pcJump = getJavaCatchPC(iCode); if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } pcPrevBranch = pcJump; } javaException = ex; exceptionPC = pc - 1; pc = pcJump; continue Loop; } } // end of interpreter loop cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
|
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/e88881f3a6bd2c7e5dc034fb562e82c4759ceacb/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
612,
396,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
888,
18,
1991,
1190,
3748,
12,
350,
396,
18,
7462,
3748,
16,
9494,
16,
2295,
1162,
3651,
16,
29159,
2146,
16,
15261,
16,
833,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
2
] |
detectedInetAddress = true;
|
protected void onGetAddresses(Vector v, InetAddress preferedInetAddress) { boolean logDEBUG = Logger.shouldLog(Logger.DEBUG, this); if (logDEBUG) Logger.debug( this, "onGetAddresses found " + v.size() + " potential addresses)"); boolean detectedInetAddress = false; InetAddress addrDetected = null; if (v.size() == 0) { Logger.error(this, "No addresses found!"); addrDetected = null; } else {// InetAddress lastNonValidAddress = null; for (int x = 0; x < v.size(); x++) { if (v.elementAt(x) != null) { InetAddress i = (InetAddress) (v.elementAt(x)); if (logDEBUG) Logger.debug( this, "Address " + x + ": " + i); if (isInternetAddress(i)) { //Do not even consider this address if it isn't globally addressable if (logDEBUG) Logger.debug( this, "Setting default address to " + i.getHostAddress()); addrDetected = i; //Use the last detected valid IP as 'detected' IP detectedInetAddress = true; if ((preferedInetAddress != null) && addrDetected.equals( preferedInetAddress)) { //Prefer the specified address if it is still available to us. Do not look for more ones if (logDEBUG) Logger.debug( this, "Detected address is the preferred address, setting final address to " + lastInetAddress.getHostAddress()); lastInetAddress = addrDetected; return; } }// else// lastNonValidAddress = i; } } //If we are here we didn't manage to find a valid globally addressable IP. Do the best of the situation, return the last valid non-addressable IP //This address will be used by the node if the user has configured localIsOK.// if (lastInetAddress == null || (!detectedInetAddress))// lastInetAddress = lastNonValidAddress; } lastInetAddress = addrDetected; // FIXME: add support for multihoming }
|
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/eda25544c98825ea7f1e9ddd5c08127cd671f788/IPAddressDetector.java/clean/src/freenet/transport/IPAddressDetector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
603,
967,
7148,
12,
5018,
331,
16,
14218,
13256,
329,
382,
278,
1887,
13,
288,
202,
202,
6494,
613,
9394,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
9394,
16,
333,
1769,
202,
202,
430,
261,
1330,
9394,
13,
1082,
202,
3328,
18,
4148,
12,
9506,
202,
2211,
16,
9506,
202,
6,
265,
967,
7148,
1392,
315,
397,
331,
18,
1467,
1435,
397,
315,
8555,
6138,
2225,
1769,
202,
202,
6494,
8316,
382,
278,
1887,
273,
629,
31,
202,
202,
382,
278,
1887,
3091,
22614,
273,
446,
31,
202,
202,
430,
261,
90,
18,
1467,
1435,
422,
374,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
2279,
6138,
1392,
4442,
1769,
1082,
202,
4793,
22614,
273,
446,
31,
202,
202,
97,
469,
288,
759,
1082,
202,
382,
278,
1887,
1142,
3989,
1556,
1887,
273,
446,
31,
1082,
202,
1884,
261,
474,
619,
273,
374,
31,
619,
411,
331,
18,
1467,
5621,
619,
27245,
288,
9506,
202,
430,
261,
90,
18,
2956,
861,
12,
92,
13,
480,
446,
13,
288,
6862,
202,
382,
278,
1887,
277,
273,
261,
382,
278,
1887,
13,
261,
90,
18,
2956,
861,
12,
92,
10019,
6862,
202,
430,
261,
1330,
9394,
13,
25083,
202,
3328,
18,
4148,
12,
6862,
1082,
202,
2211,
16,
6862,
1082,
202,
6,
1887,
315,
397,
619,
397,
6398,
315,
397,
277,
1769,
6862,
202,
430,
261,
291,
26562,
1887,
12,
77,
3719,
288,
25083,
202,
759,
3244,
486,
5456,
5260,
333,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
603,
967,
7148,
12,
5018,
331,
16,
14218,
13256,
329,
382,
278,
1887,
13,
288,
202,
202,
6494,
613,
9394,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
9394,
16,
333,
1769,
202,
202,
430,
261,
1330,
9394,
13,
1082,
202,
3328,
18,
4148,
12,
9506,
202,
2211,
16,
9506,
202,
6,
265,
967,
7148,
1392,
315,
397,
331,
18,
1467,
1435,
397,
315,
8555,
6138,
2225,
1769,
202,
202,
6494,
8316,
382,
278,
1887,
273,
629,
31,
202,
202,
382,
278,
1887,
3091,
22614,
273,
446,
31,
202,
202,
430,
261,
90,
18,
1467,
1435,
422,
374,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
2279,
6138,
1392,
4442,
1769,
1082,
2
] |
|
if( NumericType.getInstance().equals( right.getCoreDataType() )) { return new NumericVariable( value.multiply( (BigDecimal)right.getValue() )); } throw new LemRuntimeException( "Operation multiply(numeric, " + right.getType().getName() + "' not supported" ); }
|
if( NumericType.getInstance().equals( right.getCoreDataType() )) { return new NumericVariable( value.multiply( (BigDecimal)right.getValue() )); } throw new LemRuntimeException( "Operation multiply(numeric, " + right.getType().getName() + "' not supported" ); }
|
public Variable multiply( Variable right ) throws LemRuntimeException { if( NumericType.getInstance().equals( right.getCoreDataType() )) { return new NumericVariable( value.multiply( (BigDecimal)right.getValue() )); } throw new LemRuntimeException( "Operation multiply(numeric, " + right.getType().getName() + "' not supported" ); }
|
10434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10434/6b91ce97754cf87371b492efca48667f420f96e7/NumericVariable.java/buggy/trunk/src/runtime/NumericVariable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7110,
10194,
12,
7110,
2145,
262,
1216,
511,
351,
11949,
288,
3639,
309,
12,
16980,
559,
18,
588,
1442,
7675,
14963,
12,
2145,
18,
588,
4670,
6273,
1435,
8623,
288,
5411,
327,
394,
16980,
3092,
12,
460,
18,
7027,
1283,
12,
261,
29436,
13,
4083,
18,
24805,
1435,
262,
1769,
3639,
289,
7734,
604,
394,
511,
351,
11949,
12,
315,
2988,
10194,
12,
5246,
16,
315,
397,
2145,
18,
588,
559,
7675,
17994,
1435,
397,
2491,
486,
3260,
6,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7110,
10194,
12,
7110,
2145,
262,
1216,
511,
351,
11949,
288,
3639,
309,
12,
16980,
559,
18,
588,
1442,
7675,
14963,
12,
2145,
18,
588,
4670,
6273,
1435,
8623,
288,
5411,
327,
394,
16980,
3092,
12,
460,
18,
7027,
1283,
12,
261,
29436,
13,
4083,
18,
24805,
1435,
262,
1769,
3639,
289,
7734,
604,
394,
511,
351,
11949,
12,
315,
2988,
10194,
12,
5246,
16,
315,
397,
2145,
18,
588,
559,
7675,
17994,
1435,
397,
2491,
486,
3260,
6,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
state.runtime.getCurrentContext().getFrameScope().setValue(iVisited.getCount(), value);
|
runtime.getCurrentContext().getFrameScope().setValue(iVisited.getCount(), value);
|
public Instruction visitLocalAsgnNode(LocalAsgnNode iVisited) { state.runtime.getCurrentContext().getFrameScope().setValue(iVisited.getCount(), value); return null; }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/6e15491217631472c05c6928672f9c7064a978b3/AssignmentVisitor.java/clean/src/org/jruby/evaluator/AssignmentVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
24605,
3757,
2042,
37,
1055,
82,
907,
12,
2042,
37,
1055,
82,
907,
277,
30019,
13,
288,
3639,
919,
18,
9448,
18,
588,
3935,
1042,
7675,
588,
3219,
3876,
7675,
542,
620,
12,
77,
30019,
18,
588,
1380,
9334,
460,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
24605,
3757,
2042,
37,
1055,
82,
907,
12,
2042,
37,
1055,
82,
907,
277,
30019,
13,
288,
3639,
919,
18,
9448,
18,
588,
3935,
1042,
7675,
588,
3219,
3876,
7675,
542,
620,
12,
77,
30019,
18,
588,
1380,
9334,
460,
1769,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
short fieldRefIndex = itsConstantPool.addFieldRef(className, fieldName, fieldType);
|
if (DEBUGCODE) System.out.println("Add " + bytecodeStr(theOpCode));
|
public void add(byte theOpCode, String className, String fieldName, String fieldType) { if (DEBUGCODE) { System.out.println("Add "+bytecodeStr(theOpCode) +", "+className+", "+fieldName+", "+fieldType); } int newStack = itsStackTop + stackChange(theOpCode); char fieldTypeChar = fieldType.charAt(0); int fieldSize = (fieldTypeChar == 'J' || fieldTypeChar == 'D') ? 2 : 1; switch (theOpCode) { case ByteCode.GETFIELD : case ByteCode.GETSTATIC : newStack += fieldSize; break; case ByteCode.PUTSTATIC : case ByteCode.PUTFIELD : newStack -= fieldSize; break; default : throw new IllegalArgumentException( "bad opcode for field reference"); } if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); short fieldRefIndex = itsConstantPool.addFieldRef(className, fieldName, fieldType); addToCodeBuffer(theOpCode); addToCodeInt16(fieldRefIndex); itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+bytecodeStr(theOpCode) +" stack = "+itsStackTop); } }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/22644d0e62d87924a341469f715d13055cb347cc/ClassFileWriter.java/buggy/src/org/mozilla/classfile/ClassFileWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
12,
7229,
326,
3817,
1085,
16,
514,
2658,
16,
514,
4289,
16,
10792,
514,
9596,
13,
565,
288,
3639,
309,
261,
9394,
5572,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
986,
13773,
1637,
16651,
1585,
12,
5787,
3817,
1085,
13,
1171,
9079,
397,
3113,
13773,
12434,
15,
3113,
13773,
16163,
15,
3113,
13773,
1518,
559,
1769,
3639,
289,
3639,
509,
394,
2624,
273,
2097,
2624,
3401,
397,
2110,
3043,
12,
5787,
3817,
1085,
1769,
3639,
1149,
9596,
2156,
273,
9596,
18,
3001,
861,
12,
20,
1769,
3639,
509,
652,
1225,
273,
261,
1518,
559,
2156,
422,
296,
46,
11,
747,
9596,
2156,
422,
296,
40,
6134,
13491,
692,
576,
294,
404,
31,
3639,
1620,
261,
5787,
3817,
1085,
13,
288,
5411,
648,
3506,
1085,
18,
3264,
6776,
294,
5411,
648,
3506,
1085,
18,
3264,
22741,
294,
7734,
394,
2624,
1011,
652,
1225,
31,
7734,
898,
31,
5411,
648,
3506,
1085,
18,
4762,
22741,
294,
5411,
648,
3506,
1085,
18,
4762,
6776,
294,
7734,
394,
2624,
3947,
652,
1225,
31,
7734,
898,
31,
5411,
805,
294,
7734,
604,
394,
2754,
12,
10792,
315,
8759,
11396,
364,
652,
2114,
8863,
3639,
289,
3639,
309,
261,
2704,
2624,
411,
374,
747,
7925,
18,
6694,
67,
4051,
411,
394,
2624,
13,
5570,
2624,
12,
2704,
2624,
1769,
3639,
3025,
652,
1957,
1016,
273,
2097,
6902,
2864,
18,
1289,
974,
1957,
12,
12434,
16,
4766,
2398,
4289,
16,
9596,
1769,
3639,
9604,
1085,
1892,
12,
5787,
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,
527,
12,
7229,
326,
3817,
1085,
16,
514,
2658,
16,
514,
4289,
16,
10792,
514,
9596,
13,
565,
288,
3639,
309,
261,
9394,
5572,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
986,
13773,
1637,
16651,
1585,
12,
5787,
3817,
1085,
13,
1171,
9079,
397,
3113,
13773,
12434,
15,
3113,
13773,
16163,
15,
3113,
13773,
1518,
559,
1769,
3639,
289,
3639,
509,
394,
2624,
273,
2097,
2624,
3401,
397,
2110,
3043,
12,
5787,
3817,
1085,
1769,
3639,
1149,
9596,
2156,
273,
9596,
18,
3001,
861,
12,
20,
1769,
3639,
509,
652,
1225,
273,
261,
1518,
559,
2156,
422,
296,
46,
11,
747,
9596,
2156,
422,
296,
40,
6134,
13491,
692,
576,
294,
404,
31,
3639,
2
] |
source.getPixelType());
|
source.getPixelType()); }
|
private void initialize(MetadataSource source) { //Grab pixels metadata (create default display options if //none available). omeisPixelsID = source.getOmeisPixelsID(); pixelsDims = source.getPixelsDims(); pixelsStats = source.getPixelsStats(); renderingDef = source.getDisplayOptions(); if (renderingDef == null) renderingDef = createDefaultRenderingDef(pixelsDims, pixelsStats, source.getPixelType()); //Create and configure the quantum strategies. QuantumDef qd = renderingDef.getQuantumDef(); quantumManager = new QuantumManager(pixelsDims.sizeW); quantumManager.initStrategies(qd, pixelsStats, renderingDef.getChannelBindings()); //Create and configure the codomain chain. codomainChain = new CodomainChain(qd.cdStart, qd.cdEnd, renderingDef.getCodomainChainDef()); //Create an appropriate rendering strategy. renderingStrategy = RenderingStrategy.makeNew(renderingDef.getModel()); }
|
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/de5b83ecccd54946c2125525e83cea40c4c4dd36/Renderer.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4046,
12,
2277,
1830,
1084,
13,
565,
288,
3639,
368,
14571,
70,
8948,
1982,
261,
2640,
805,
2562,
702,
309,
540,
368,
6102,
2319,
2934,
3639,
320,
3501,
291,
18079,
734,
273,
1084,
18,
588,
51,
3501,
291,
18079,
734,
5621,
3639,
8948,
25006,
273,
1084,
18,
588,
18079,
25006,
5621,
3639,
8948,
4195,
273,
1084,
18,
588,
18079,
4195,
5621,
3639,
9782,
3262,
273,
1084,
18,
588,
4236,
1320,
5621,
3639,
309,
261,
5902,
310,
3262,
422,
446,
13,
5411,
9782,
3262,
273,
27346,
14261,
3262,
12,
21084,
25006,
16,
8948,
4195,
16,
4766,
13491,
1084,
18,
588,
9037,
559,
10663,
225,
289,
9079,
368,
1684,
471,
5068,
326,
10251,
379,
20417,
18,
3639,
4783,
970,
379,
3262,
1043,
72,
273,
9782,
3262,
18,
588,
19471,
379,
3262,
5621,
3639,
10251,
379,
1318,
273,
394,
4783,
970,
379,
1318,
12,
21084,
25006,
18,
1467,
59,
1769,
3639,
10251,
379,
1318,
18,
2738,
1585,
15127,
12,
31886,
16,
8948,
4195,
16,
7682,
9782,
3262,
18,
588,
2909,
10497,
10663,
7734,
368,
1684,
471,
5068,
326,
11012,
1530,
2687,
18,
3639,
11012,
1530,
3893,
273,
394,
385,
369,
1530,
3893,
12,
31886,
18,
4315,
1685,
16,
1043,
72,
18,
4315,
1638,
16,
4766,
5411,
9782,
3262,
18,
588,
29633,
1530,
3893,
3262,
10663,
7734,
368,
1684,
392,
5505,
9782,
6252,
18,
3639,
9782,
4525,
273,
18018,
4525,
18,
6540,
1908,
12,
5902,
310,
3262,
18,
588,
1488,
10663,
565,
289,
2,
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,
1,
1,
1,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4046,
12,
2277,
1830,
1084,
13,
565,
288,
3639,
368,
14571,
70,
8948,
1982,
261,
2640,
805,
2562,
702,
309,
540,
368,
6102,
2319,
2934,
3639,
320,
3501,
291,
18079,
734,
273,
1084,
18,
588,
51,
3501,
291,
18079,
734,
5621,
3639,
8948,
25006,
273,
1084,
18,
588,
18079,
25006,
5621,
3639,
8948,
4195,
273,
1084,
18,
588,
18079,
4195,
5621,
3639,
9782,
3262,
273,
1084,
18,
588,
4236,
1320,
5621,
3639,
309,
261,
5902,
310,
3262,
422,
446,
13,
5411,
9782,
3262,
273,
27346,
14261,
3262,
12,
21084,
25006,
16,
8948,
4195,
16,
4766,
13491,
1084,
18,
588,
9037,
559,
10663,
225,
289,
9079,
368,
1684,
471,
5068,
326,
10251,
379,
20417,
18,
3639,
4783,
2
] |
public DefaultUnionExpr(Expr lhs, Expr rhs) { super( lhs, rhs ); }
|
47110 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47110/9a3d06fb432fc2a9dcdca4e97af7979af5b66702/DefaultUnionExpr.java/buggy/jaxen/src/java/main/org/jaxen/expr/DefaultUnionExpr.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1868,
14325,
4742,
12,
4742,
80,
4487,
16,
2966,
523,
4487,
15329,
9565,
12,
80,
4487,
16,
86,
4487,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1868,
14325,
4742,
12,
4742,
80,
4487,
16,
2966,
523,
4487,
15329,
9565,
12,
80,
4487,
16,
86,
4487,
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
] |
||
frame.show();
|
frame.setVisible(true);
|
private JChemPaint() { logger = new LoggingTool(this); logger.dumpSystemProperties(); JFrame frame = null; if(model == null ) frame = JChemPaintEditorPanel.getEmptyFrameWithModel(); else frame = JChemPaintEditorPanel.getFrameWithModel(model); frame.addWindowListener(new JChemPaintPanel.AppCloser()); frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); //for testing the ViewerOnlyPanel /*JFrame frame = new JFrame(); JChemPaintViewerOnlyPanel jpvop = new JChemPaintViewerOnlyPanel(new Dimension(150,250)); frame.getContentPane().add(jpvop);*/ frame.show(); frame.pack(); logger.debug("End of JCP constructor"); }
|
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/48a747e215bb2c3ff0a1b95aa6be8a1efd7383b2/JChemPaint.java/clean/src/org/openscience/cdk/applications/jchempaint/application/JChemPaint.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
804,
20200,
12699,
1435,
202,
95,
202,
202,
4901,
273,
394,
10253,
6364,
12,
2211,
1769,
202,
202,
4901,
18,
8481,
3163,
2297,
5621,
202,
202,
46,
3219,
2623,
273,
446,
31,
202,
202,
430,
12,
2284,
422,
446,
262,
1082,
202,
3789,
273,
804,
20200,
12699,
6946,
5537,
18,
588,
1921,
3219,
1190,
1488,
5621,
202,
202,
12107,
1875,
202,
3789,
273,
804,
20200,
12699,
6946,
5537,
18,
588,
3219,
1190,
1488,
12,
2284,
1769,
202,
202,
3789,
18,
1289,
3829,
2223,
12,
2704,
804,
20200,
12699,
5537,
18,
3371,
10924,
10663,
202,
202,
3789,
18,
542,
1868,
4605,
2988,
12,
46,
3219,
18,
3191,
67,
4400,
44,
1360,
67,
673,
67,
13384,
1769,
202,
202,
759,
1884,
7769,
326,
4441,
264,
3386,
5537,
202,
202,
20308,
46,
3219,
2623,
273,
394,
804,
3219,
5621,
202,
202,
46,
20200,
12699,
18415,
3386,
5537,
18182,
90,
556,
273,
394,
804,
20200,
12699,
18415,
3386,
5537,
12,
2704,
13037,
12,
23014,
16,
26520,
10019,
202,
202,
3789,
18,
588,
1350,
8485,
7675,
1289,
12,
21797,
90,
556,
1769,
5549,
202,
202,
3789,
18,
4500,
5621,
202,
202,
3789,
18,
2920,
5621,
202,
202,
4901,
18,
4148,
2932,
1638,
434,
804,
4258,
3885,
8863,
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,
1152,
804,
20200,
12699,
1435,
202,
95,
202,
202,
4901,
273,
394,
10253,
6364,
12,
2211,
1769,
202,
202,
4901,
18,
8481,
3163,
2297,
5621,
202,
202,
46,
3219,
2623,
273,
446,
31,
202,
202,
430,
12,
2284,
422,
446,
262,
1082,
202,
3789,
273,
804,
20200,
12699,
6946,
5537,
18,
588,
1921,
3219,
1190,
1488,
5621,
202,
202,
12107,
1875,
202,
3789,
273,
804,
20200,
12699,
6946,
5537,
18,
588,
3219,
1190,
1488,
12,
2284,
1769,
202,
202,
3789,
18,
1289,
3829,
2223,
12,
2704,
804,
20200,
12699,
5537,
18,
3371,
10924,
10663,
202,
202,
3789,
18,
542,
1868,
4605,
2988,
12,
46,
3219,
18,
3191,
67,
4400,
44,
1360,
67,
673,
67,
13384,
1769,
202,
2
] |
IRegion linkRegion = new Region(range.getOffset(), range.getLength());
|
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) { if (region == null || canShowMultipleHyperlinks) return null; IDocumentRange element = fSourcePage.getRangeElement(region.getOffset()); if (!(element instanceof ManifestHeader)) return null; ManifestHeader header = (ManifestHeader)element; String target = null; if (element instanceof BundleActivatorHeader) { // add else if statments for other headers target = ((BundleActivatorHeader)element).getClassName(); } if (target == null || target.length() == 0) return null; IProject project = header.getModel().getUnderlyingResource().getProject(); IDocumentRange range = BundleSourcePage.getSpecificRange(header.getModel(), header, target); if (range == null) return null; IRegion linkRegion = new Region(range.getOffset(), range.getLength()); if (element instanceof BundleActivatorHeader) return new IHyperlink[] { new JavaHyperlink(linkRegion, project, target)}; return null; }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/a7092ea0062ff4cc6835be8b96d47793ef0ec8f6/BundleHyperlinkDetector.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/BundleHyperlinkDetector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
15996,
1232,
8526,
5966,
15996,
7135,
12,
1285,
408,
18415,
977,
18415,
16,
467,
5165,
3020,
16,
1250,
848,
5706,
8438,
15996,
7135,
13,
288,
202,
202,
430,
261,
6858,
422,
446,
747,
848,
5706,
8438,
15996,
7135,
13,
1082,
202,
2463,
446,
31,
202,
202,
734,
504,
650,
2655,
930,
273,
284,
1830,
1964,
18,
588,
2655,
1046,
12,
6858,
18,
588,
2335,
10663,
202,
202,
430,
16051,
12,
2956,
1276,
15443,
1864,
3719,
1082,
202,
2463,
446,
31,
9506,
202,
9121,
1864,
1446,
273,
261,
9121,
1864,
13,
2956,
31,
202,
202,
780,
1018,
273,
446,
31,
202,
202,
430,
261,
2956,
1276,
8539,
12241,
639,
1864,
13,
288,
368,
527,
469,
309,
610,
1346,
364,
1308,
1607,
1082,
202,
3299,
273,
14015,
3405,
12241,
639,
1864,
13,
2956,
2934,
588,
3834,
5621,
202,
202,
97,
9506,
202,
430,
261,
3299,
422,
446,
747,
1018,
18,
2469,
1435,
422,
374,
13,
1082,
202,
2463,
446,
31,
9506,
202,
45,
4109,
1984,
273,
1446,
18,
588,
1488,
7675,
588,
14655,
6291,
1420,
7675,
588,
4109,
5621,
202,
202,
734,
504,
650,
2655,
1048,
273,
8539,
1830,
1964,
18,
588,
9969,
2655,
12,
3374,
18,
588,
1488,
9334,
1446,
16,
1018,
1769,
202,
202,
430,
261,
3676,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
45,
5165,
1692,
5165,
273,
394,
9164,
12,
3676,
18,
588,
2335,
9334,
1048,
18,
588,
1782,
10663,
9506,
202,
430,
261,
2956,
1276,
8539,
12241,
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,
15996,
1232,
8526,
5966,
15996,
7135,
12,
1285,
408,
18415,
977,
18415,
16,
467,
5165,
3020,
16,
1250,
848,
5706,
8438,
15996,
7135,
13,
288,
202,
202,
430,
261,
6858,
422,
446,
747,
848,
5706,
8438,
15996,
7135,
13,
1082,
202,
2463,
446,
31,
202,
202,
734,
504,
650,
2655,
930,
273,
284,
1830,
1964,
18,
588,
2655,
1046,
12,
6858,
18,
588,
2335,
10663,
202,
202,
430,
16051,
12,
2956,
1276,
15443,
1864,
3719,
1082,
202,
2463,
446,
31,
9506,
202,
9121,
1864,
1446,
273,
261,
9121,
1864,
13,
2956,
31,
202,
202,
780,
1018,
273,
446,
31,
202,
202,
430,
261,
2956,
1276,
8539,
12241,
639,
1864,
13,
288,
368,
527,
469,
309,
2
] |
|
try { String classname = (String)getValue("class"); javax.swing.UIManager.setLookAndFeel(classname); javax.swing.SwingUtilities.updateComponentTreeUI(IC2DFrame.this); javax.swing.SwingUtilities.updateComponentTreeUI(eventListsFrame); javax.swing.SwingUtilities.updateComponentTreeUI(processesFrame); } catch (Exception ex) { }
|
System.exit(0);
|
public void actionPerformed(java.awt.event.ActionEvent e) { try { String classname = (String)getValue("class"); //javax.swing.JFrame frame = (javax.swing.JFrame)getValue("frame"); javax.swing.UIManager.setLookAndFeel(classname); javax.swing.SwingUtilities.updateComponentTreeUI(IC2DFrame.this); javax.swing.SwingUtilities.updateComponentTreeUI(eventListsFrame); javax.swing.SwingUtilities.updateComponentTreeUI(processesFrame); } catch (Exception ex) { } }
|
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/5e6860c26fe200ecc080f3ddc3de5b5afad88243/IC2DFrame.java/buggy/src/org/objectweb/proactive/ic2d/gui/IC2DFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
425,
13,
288,
1850,
775,
288,
5411,
514,
7479,
273,
261,
780,
13,
24805,
2932,
1106,
8863,
5411,
368,
28384,
18,
5328,
310,
18,
46,
3219,
2623,
273,
261,
28384,
18,
5328,
310,
18,
46,
3219,
13,
24805,
2932,
3789,
8863,
5411,
6863,
18,
5328,
310,
18,
5370,
1318,
18,
542,
9794,
1876,
2954,
292,
12,
18340,
1769,
5411,
6863,
18,
5328,
310,
18,
6050,
310,
11864,
18,
2725,
1841,
2471,
5370,
12,
2871,
22,
40,
3219,
18,
2211,
1769,
5411,
6863,
18,
5328,
310,
18,
6050,
310,
11864,
18,
2725,
1841,
2471,
5370,
12,
2575,
7432,
3219,
1769,
5411,
6863,
18,
5328,
310,
18,
6050,
310,
11864,
18,
2725,
1841,
2471,
5370,
12,
18675,
3219,
1769,
1850,
289,
1044,
261,
503,
431,
13,
288,
1850,
289,
9079,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
425,
13,
288,
1850,
775,
288,
5411,
514,
7479,
273,
261,
780,
13,
24805,
2932,
1106,
8863,
5411,
368,
28384,
18,
5328,
310,
18,
46,
3219,
2623,
273,
261,
28384,
18,
5328,
310,
18,
46,
3219,
13,
24805,
2932,
3789,
8863,
5411,
6863,
18,
5328,
310,
18,
5370,
1318,
18,
542,
9794,
1876,
2954,
292,
12,
18340,
1769,
5411,
6863,
18,
5328,
310,
18,
6050,
310,
11864,
18,
2725,
1841,
2471,
5370,
12,
2871,
22,
40,
3219,
18,
2211,
1769,
5411,
6863,
18,
5328,
310,
18,
6050,
310,
11864,
18,
2725,
1841,
2471,
5370,
12,
2575,
7432,
3219,
1769,
5411,
6863,
18,
5328,
310,
18,
2
] |
if(persistenceType == ClientRequest.PERSIST_CONNECTION) {
|
if(persistenceType == ClientRequest.PERSIST_CONNECTION)
|
private void finish() { if(persistenceType == ClientRequest.PERSIST_CONNECTION) { origHandler.finishedClientRequest(this); } else { client.finishedClientRequest(this); } }
|
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/5172c6eaf3d3ff5aaaf0703e2a38ccebe1b75ec3/ClientGet.java/buggy/src/freenet/node/fcp/ClientGet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4076,
1435,
288,
202,
202,
430,
12,
24854,
559,
422,
2445,
691,
18,
3194,
18732,
67,
15461,
13,
288,
1082,
202,
4949,
1503,
18,
13527,
1227,
691,
12,
2211,
1769,
202,
202,
97,
469,
288,
1082,
202,
2625,
18,
13527,
1227,
691,
12,
2211,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4076,
1435,
288,
202,
202,
430,
12,
24854,
559,
422,
2445,
691,
18,
3194,
18732,
67,
15461,
13,
288,
1082,
202,
4949,
1503,
18,
13527,
1227,
691,
12,
2211,
1769,
202,
202,
97,
469,
288,
1082,
202,
2625,
18,
13527,
1227,
691,
12,
2211,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(log.isInfoEnabled()) log.info("received CONFIG event: " + evt.getArg());
|
if(log.isDebugEnabled()) log.debug("received CONFIG event: " + evt.getArg());
|
public void up(Event evt) { switch(evt.getType()) { case Event.MSG: Message msg=(Message)evt.getArg(); Object obj=msg.getHeader(getName()); if(obj != null && obj instanceof FragHeader) { // needs to be defragmented unfragment(msg); // Unfragment and possibly pass up return; } break; case Event.SET_LOCAL_ADDRESS: local_addr=(Address)evt.getArg(); break; case Event.CONFIG: passUp(evt); if(log.isInfoEnabled()) log.info("received CONFIG event: " + evt.getArg()); handleConfigEvent((HashMap)evt.getArg()); return; } passUp(evt); // Pass up to the layer above us by default }
|
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/f4d48c5d12530ffb09ab46034b71d9594b0f1287/FRAG.java/buggy/src/org/jgroups/protocols/FRAG.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
731,
12,
1133,
6324,
13,
288,
3639,
1620,
12,
73,
11734,
18,
588,
559,
10756,
288,
5411,
648,
2587,
18,
11210,
30,
7734,
2350,
1234,
28657,
1079,
13,
73,
11734,
18,
588,
4117,
5621,
7734,
1033,
1081,
33,
3576,
18,
588,
1864,
12,
17994,
10663,
7734,
309,
12,
2603,
480,
446,
597,
1081,
1276,
478,
2458,
1864,
13,
288,
368,
4260,
358,
506,
1652,
3520,
329,
10792,
640,
11956,
12,
3576,
1769,
368,
1351,
11956,
471,
10016,
1342,
731,
10792,
327,
31,
7734,
289,
7734,
898,
31,
5411,
648,
2587,
18,
4043,
67,
14922,
67,
15140,
30,
7734,
1191,
67,
4793,
28657,
1887,
13,
73,
11734,
18,
588,
4117,
5621,
7734,
898,
31,
5411,
648,
2587,
18,
7203,
30,
7734,
1342,
1211,
12,
73,
11734,
1769,
1171,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
15213,
9128,
871,
30,
315,
397,
6324,
18,
588,
4117,
10663,
7734,
1640,
809,
1133,
12443,
8658,
13,
73,
11734,
18,
588,
4117,
10663,
7734,
327,
31,
3639,
289,
3639,
1342,
1211,
12,
73,
11734,
1769,
368,
10311,
731,
358,
326,
3018,
5721,
584,
635,
805,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
731,
12,
1133,
6324,
13,
288,
3639,
1620,
12,
73,
11734,
18,
588,
559,
10756,
288,
5411,
648,
2587,
18,
11210,
30,
7734,
2350,
1234,
28657,
1079,
13,
73,
11734,
18,
588,
4117,
5621,
7734,
1033,
1081,
33,
3576,
18,
588,
1864,
12,
17994,
10663,
7734,
309,
12,
2603,
480,
446,
597,
1081,
1276,
478,
2458,
1864,
13,
288,
368,
4260,
358,
506,
1652,
3520,
329,
10792,
640,
11956,
12,
3576,
1769,
368,
1351,
11956,
471,
10016,
1342,
731,
10792,
327,
31,
7734,
289,
7734,
898,
31,
5411,
648,
2587,
18,
4043,
67,
14922,
67,
15140,
30,
7734,
1191,
67,
4793,
28657,
1887,
13,
73,
11734,
18,
588,
4117,
5621,
7734,
898,
31,
5411,
648,
2587,
2
] |
context.doneTag (i); inStream.skip(part.getTagLength()); inPos = part.getTagStart()+part.getTagLength();
|
context.doneTag(i); inPos = part.getTagStart() + part.getTagLength();
|
private void interpretPage(DataSource source, Vector parts, ParseContext context) throws IOException { OutputStream out = context.getOutputStream(); InputStream inStream = null; byte buf[] = null; try { // input inStream = source.getInputStream(); long inPos = 0; /* * Get Copy Buffer. * If we allocate it here once and pass it to the * copy()-function we don't have to create and garbage collect * a buffer each time we call copy(). * * REVISE: this should use a buffer Manager: * a queue which stores buffers. This * way the JVM doesn't have to garbage collect the buffers * created here, so we may use larger Buffers * here. */ buf = new byte[4096]; // Get buffer from Buffer Manager for (int i = 0; i < parts.size(); i++) { /** <critical-path> **/ SpecialTagHandler part = (SpecialTagHandler) parts.elementAt(i); // copy DataSource content till the beginning of the Tag: copy (inStream, out, part.getTagStart()-inPos, buf); context.startTag (i); try{ part.executeTag (context); } /* * Display any Exceptions or Errors as * comment in the page */ catch (Throwable e) { out.flush(); PrintWriter pout = new PrintWriter(out); pout.println("<!-- ERROR: ------------"); e.printStackTrace(pout); pout.println("-->"); pout.flush(); } context.doneTag (i); // skip the <SPECIAL_TAG> ... </SPECIAL_TAG> area: inStream.skip(part.getTagLength()); inPos = part.getTagStart()+part.getTagLength(); /** </critical-path> **/ } // copy rest until end of DataSource copy (inStream, out, -1, buf); } finally { // clean up resouce: opened input stream if (inStream != null) inStream.close(); buf = null; // return buffer to Buffer Manager } out.flush(); }
|
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/248fc5ac421ad84c531a282e883e037228f5ab93/PageParser.java/buggy/wings/src/org/wings/template/parser/PageParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10634,
1964,
12,
8597,
1084,
16,
4697,
4202,
5589,
2140,
16,
2884,
1042,
819,
13,
202,
15069,
1860,
288,
4202,
202,
4632,
596,
273,
819,
18,
588,
4632,
5621,
202,
4348,
28987,
273,
446,
31,
202,
7229,
1681,
8526,
273,
446,
31,
4202,
202,
698,
288,
202,
565,
368,
810,
202,
565,
28987,
273,
1084,
18,
588,
4348,
5621,
202,
565,
1525,
316,
1616,
273,
374,
31,
202,
21114,
565,
1748,
202,
377,
380,
968,
5631,
3525,
18,
202,
377,
380,
971,
732,
10101,
518,
2674,
3647,
471,
1342,
518,
358,
326,
202,
377,
380,
1610,
1435,
17,
915,
732,
2727,
1404,
1240,
358,
752,
471,
15340,
3274,
202,
377,
380,
279,
1613,
1517,
813,
732,
745,
1610,
7675,
202,
377,
380,
202,
377,
380,
2438,
4136,
1090,
30,
333,
1410,
999,
279,
1613,
8558,
30,
202,
377,
380,
279,
2389,
1492,
9064,
9664,
18,
1220,
202,
377,
380,
4031,
326,
14131,
3302,
1404,
1240,
358,
15340,
3274,
326,
9664,
202,
377,
380,
2522,
2674,
16,
1427,
732,
2026,
999,
10974,
605,
3809,
414,
202,
377,
380,
2674,
18,
202,
377,
1195,
202,
565,
1681,
273,
394,
1160,
63,
24,
5908,
26,
15533,
368,
968,
1613,
628,
3525,
8558,
202,
21114,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2140,
18,
1467,
5621,
277,
27245,
288,
202,
202,
26873,
411,
28000,
17,
803,
34,
26013,
202,
202,
12193,
1805,
1503,
1087,
273,
261,
12193,
1805,
1503,
13,
2140,
18,
2956,
861,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
10634,
1964,
12,
8597,
1084,
16,
4697,
4202,
5589,
2140,
16,
2884,
1042,
819,
13,
202,
15069,
1860,
288,
4202,
202,
4632,
596,
273,
819,
18,
588,
4632,
5621,
202,
4348,
28987,
273,
446,
31,
202,
7229,
1681,
8526,
273,
446,
31,
4202,
202,
698,
288,
202,
565,
368,
810,
202,
565,
28987,
273,
1084,
18,
588,
4348,
5621,
202,
565,
1525,
316,
1616,
273,
374,
31,
202,
21114,
565,
1748,
202,
377,
380,
968,
5631,
3525,
18,
202,
377,
380,
971,
732,
10101,
518,
2674,
3647,
471,
1342,
518,
358,
326,
202,
377,
380,
1610,
1435,
17,
915,
732,
2727,
1404,
1240,
358,
752,
471,
15340,
3274,
202,
377,
380,
279,
1613,
1517,
813,
732,
2
] |
try { Value origObj = _objExpr.eval(env); Value obj = origObj.copy();
|
Value origObj = _objExpr.eval(env); Value obj = origObj.copy();
|
public Value execute(Env env) throws Throwable { try { Value origObj = _objExpr.eval(env); Value obj = origObj.copy(); if (_key == null && ! _isRef) { for (Value value : obj.getValueArray(env)) { env.setValue(_valueName, value); Value result = _block.execute(env); if (result == null || result instanceof ContinueValue) { } else if (result instanceof BreakValue) return null; else return result; } return null; } else { for (Value key : obj.getKeyArray()) { if (_keyName != null) env.setValue(_keyName, key); if (_isRef) { Value value = origObj.getRef(key); env.setVar(_valueName, value); } else { Value value = obj.get(key).toValue(); env.setValue(_valueName, value); } Value result = _block.execute(env); if (result == null || result instanceof ContinueValue) { } else if (result instanceof BreakValue) return null; else return result; } } } catch (Throwable t) { rethrow(t); } return null; }
|
3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/793f2a3404e2c3184b1bce4e1f83a8f9e940d597/ForeachStatement.java/clean/quercus/src/main/java/com/caucho/quercus/program/ForeachStatement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1445,
1836,
12,
3491,
1550,
13,
565,
1216,
4206,
225,
288,
565,
775,
288,
1377,
1445,
1647,
2675,
273,
389,
2603,
4742,
18,
8622,
12,
3074,
1769,
1377,
1445,
1081,
273,
1647,
2675,
18,
3530,
5621,
1377,
309,
261,
67,
856,
422,
446,
597,
401,
389,
291,
1957,
13,
288,
3639,
364,
261,
620,
460,
294,
1081,
18,
24805,
1076,
12,
3074,
3719,
288,
1850,
1550,
18,
542,
620,
24899,
1132,
461,
16,
460,
1769,
1850,
1445,
563,
273,
389,
2629,
18,
8837,
12,
3074,
1769,
1850,
309,
261,
2088,
422,
446,
747,
563,
1276,
16773,
620,
13,
288,
1850,
289,
469,
309,
261,
2088,
1276,
17030,
620,
13,
5411,
327,
446,
31,
1850,
469,
5411,
327,
563,
31,
3639,
289,
3639,
327,
446,
31,
1377,
289,
469,
288,
3639,
364,
261,
620,
498,
294,
1081,
18,
588,
653,
1076,
10756,
288,
1850,
309,
261,
67,
856,
461,
480,
446,
13,
5411,
1550,
18,
542,
620,
24899,
856,
461,
16,
498,
1769,
1850,
309,
261,
67,
291,
1957,
13,
288,
5411,
1445,
460,
273,
1647,
2675,
18,
588,
1957,
12,
856,
1769,
5411,
1550,
18,
542,
1537,
24899,
1132,
461,
16,
460,
1769,
1850,
289,
469,
288,
5411,
1445,
460,
273,
1081,
18,
588,
12,
856,
2934,
869,
620,
5621,
5411,
1550,
18,
542,
620,
24899,
1132,
461,
16,
460,
1769,
1850,
289,
1850,
1445,
563,
273,
389,
2629,
18,
8837,
12,
3074,
1769,
1850,
309,
261,
2088,
422,
446,
747,
563,
1276,
16773,
620,
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,
1445,
1836,
12,
3491,
1550,
13,
565,
1216,
4206,
225,
288,
565,
775,
288,
1377,
1445,
1647,
2675,
273,
389,
2603,
4742,
18,
8622,
12,
3074,
1769,
1377,
1445,
1081,
273,
1647,
2675,
18,
3530,
5621,
1377,
309,
261,
67,
856,
422,
446,
597,
401,
389,
291,
1957,
13,
288,
3639,
364,
261,
620,
460,
294,
1081,
18,
24805,
1076,
12,
3074,
3719,
288,
1850,
1550,
18,
542,
620,
24899,
1132,
461,
16,
460,
1769,
1850,
1445,
563,
273,
389,
2629,
18,
8837,
12,
3074,
1769,
1850,
309,
261,
2088,
422,
446,
747,
563,
1276,
16773,
620,
13,
288,
1850,
289,
469,
309,
261,
2088,
1276,
17030,
620,
13,
5411,
327,
446,
31,
1850,
469,
5411,
327,
2
] |
this(mockedType, mockNameFromClass(mockedType), new LIFOInvocationDispatcher()); }
|
this(mockedType, mockNameFromClass(mockedType), new LIFOInvocationDispatcher()); }
|
public CGLIBCoreMock( Class mockedType ) { this(mockedType, mockNameFromClass(mockedType), new LIFOInvocationDispatcher()); }
|
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/CGLIBCoreMock.java/clean/jmock/extensions/cglib/src/org/jmock/cglib/CGLIBCoreMock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
29679,
14484,
4670,
9865,
12,
1659,
5416,
329,
559,
262,
288,
202,
202,
2211,
12,
22851,
329,
559,
16,
1082,
377,
5416,
461,
1265,
797,
12,
22851,
329,
559,
3631,
1082,
377,
394,
8961,
3313,
9267,
6681,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
29679,
14484,
4670,
9865,
12,
1659,
5416,
329,
559,
262,
288,
202,
202,
2211,
12,
22851,
329,
559,
16,
1082,
377,
5416,
461,
1265,
797,
12,
22851,
329,
559,
3631,
1082,
377,
394,
8961,
3313,
9267,
6681,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Message create( String beginString, String msgType ) { if("0".equals(msgType)) { return new quickfix.fix44.Heartbeat(); } if("A".equals(msgType)) { return new quickfix.fix44.Logon(); } if("1".equals(msgType)) { return new quickfix.fix44.TestRequest(); } if("2".equals(msgType)) { return new quickfix.fix44.ResendRequest(); } if("3".equals(msgType)) { return new quickfix.fix44.Reject(); } if("4".equals(msgType)) { return new quickfix.fix44.SequenceReset(); } if("5".equals(msgType)) { return new quickfix.fix44.Logout(); } if("j".equals(msgType)) { return new quickfix.fix44.BusinessMessageReject(); } if("BE".equals(msgType)) { return new quickfix.fix44.UserRequest(); } if("BF".equals(msgType)) { return new quickfix.fix44.UserResponse(); } if("7".equals(msgType)) { return new quickfix.fix44.Advertisement(); } if("6".equals(msgType)) { return new quickfix.fix44.IndicationOfInterest(); } if("B".equals(msgType)) { return new quickfix.fix44.News(); } if("C".equals(msgType)) { return new quickfix.fix44.Email(); } if("R".equals(msgType)) { return new quickfix.fix44.QuoteRequest(); } if("AJ".equals(msgType)) { return new quickfix.fix44.QuoteResponse(); } if("AG".equals(msgType)) { return new quickfix.fix44.QuoteRequestReject(); } if("AH".equals(msgType)) { return new quickfix.fix44.RFQRequest(); } if("S".equals(msgType)) { return new quickfix.fix44.Quote(); } if("Z".equals(msgType)) { return new quickfix.fix44.QuoteCancel(); } if("a".equals(msgType)) { return new quickfix.fix44.QuoteStatusRequest(); } if("AI".equals(msgType)) { return new quickfix.fix44.QuoteStatusReport(); } if("i".equals(msgType)) { return new quickfix.fix44.MassQuote(); } if("b".equals(msgType)) { return new quickfix.fix44.MassQuoteAcknowledgement(); } if("V".equals(msgType)) { return new quickfix.fix44.MarketDataRequest(); } if("W".equals(msgType)) { return new quickfix.fix44.MarketDataSnapshotFullRefresh(); } if("X".equals(msgType)) { return new quickfix.fix44.MarketDataIncrementalRefresh(); } if("Y".equals(msgType)) { return new quickfix.fix44.MarketDataRequestReject(); } if("c".equals(msgType)) { return new quickfix.fix44.SecurityDefinitionRequest(); } if("d".equals(msgType)) { return new quickfix.fix44.SecurityDefinition(); } if("v".equals(msgType)) { return new quickfix.fix44.SecurityTypeRequest(); } if("w".equals(msgType)) { return new quickfix.fix44.SecurityTypes(); } if("x".equals(msgType)) { return new quickfix.fix44.SecurityListRequest(); } if("y".equals(msgType)) { return new quickfix.fix44.SecurityList(); } if("z".equals(msgType)) { return new quickfix.fix44.DerivativeSecurityListRequest(); } if("AA".equals(msgType)) { return new quickfix.fix44.DerivativeSecurityList(); } if("e".equals(msgType)) { return new quickfix.fix44.SecurityStatusRequest(); } if("f".equals(msgType)) { return new quickfix.fix44.SecurityStatus(); } if("g".equals(msgType)) { return new quickfix.fix44.TradingSessionStatusRequest(); } if("h".equals(msgType)) { return new quickfix.fix44.TradingSessionStatus(); } if("D".equals(msgType)) { return new quickfix.fix44.NewOrderSingle(); } if("8".equals(msgType)) { return new quickfix.fix44.ExecutionReport(); } if("Q".equals(msgType)) { return new quickfix.fix44.DontKnowTrade(); } if("G".equals(msgType)) { return new quickfix.fix44.OrderCancelReplaceRequest(); } if("F".equals(msgType)) { return new quickfix.fix44.OrderCancelRequest(); } if("9".equals(msgType)) { return new quickfix.fix44.OrderCancelReject(); } if("H".equals(msgType)) { return new quickfix.fix44.OrderStatusRequest(); } if("q".equals(msgType)) { return new quickfix.fix44.OrderMassCancelRequest(); } if("r".equals(msgType)) { return new quickfix.fix44.OrderMassCancelReport(); } if("AF".equals(msgType)) { return new quickfix.fix44.OrderMassStatusRequest(); } if("s".equals(msgType)) { return new quickfix.fix44.NewOrderCross(); } if("t".equals(msgType)) { return new quickfix.fix44.CrossOrderCancelReplaceRequest(); } if("u".equals(msgType)) { return new quickfix.fix44.CrossOrderCancelRequest(); } if("AB".equals(msgType)) { return new quickfix.fix44.NewOrderMultileg(); } if("AC".equals(msgType)) { return new quickfix.fix44.MultilegOrderCancelReplaceRequest(); } if("k".equals(msgType)) { return new quickfix.fix44.BidRequest(); } if("l".equals(msgType)) { return new quickfix.fix44.BidResponse(); } if("E".equals(msgType)) { return new quickfix.fix44.NewOrderList(); } if("m".equals(msgType)) { return new quickfix.fix44.ListStrikePrice(); } if("N".equals(msgType)) { return new quickfix.fix44.ListStatus(); } if("L".equals(msgType)) { return new quickfix.fix44.ListExecute(); } if("K".equals(msgType)) { return new quickfix.fix44.ListCancelRequest(); } if("M".equals(msgType)) { return new quickfix.fix44.ListStatusRequest(); } if("J".equals(msgType)) { return new quickfix.fix44.AllocationInstruction(); } if("P".equals(msgType)) { return new quickfix.fix44.AllocationInstructionAck(); } if("AS".equals(msgType)) { return new quickfix.fix44.AllocationReport(); } if("AT".equals(msgType)) { return new quickfix.fix44.AllocationReportAck(); } if("AK".equals(msgType)) { return new quickfix.fix44.Confirmation(); } if("AU".equals(msgType)) { return new quickfix.fix44.ConfirmationAck(); } if("BH".equals(msgType)) { return new quickfix.fix44.ConfirmationRequest(); } if("T".equals(msgType)) { return new quickfix.fix44.SettlementInstructions(); } if("AV".equals(msgType)) { return new quickfix.fix44.SettlementInstructionRequest(); } if("AD".equals(msgType)) { return new quickfix.fix44.TradeCaptureReportRequest(); } if("AQ".equals(msgType)) { return new quickfix.fix44.TradeCaptureReportRequestAck(); } if("AE".equals(msgType)) { return new quickfix.fix44.TradeCaptureReport(); } if("AR".equals(msgType)) { return new quickfix.fix44.TradeCaptureReportAck(); } if("o".equals(msgType)) { return new quickfix.fix44.RegistrationInstructions(); } if("p".equals(msgType)) { return new quickfix.fix44.RegistrationInstructionsResponse(); } if("AL".equals(msgType)) { return new quickfix.fix44.PositionMaintenanceRequest(); } if("AM".equals(msgType)) { return new quickfix.fix44.PositionMaintenanceReport(); } if("AN".equals(msgType)) { return new quickfix.fix44.RequestForPositions(); } if("AO".equals(msgType)) { return new quickfix.fix44.RequestForPositionsAck(); } if("AP".equals(msgType)) { return new quickfix.fix44.PositionReport(); } if("AW".equals(msgType)) { return new quickfix.fix44.AssignmentReport(); } if("AX".equals(msgType)) { return new quickfix.fix44.CollateralRequest(); } if("AY".equals(msgType)) { return new quickfix.fix44.CollateralAssignment(); } if("AZ".equals(msgType)) { return new quickfix.fix44.CollateralResponse(); } if("BA".equals(msgType)) { return new quickfix.fix44.CollateralReport(); } if("BB".equals(msgType)) { return new quickfix.fix44.CollateralInquiry(); } if("BG".equals(msgType)) { return new quickfix.fix44.CollateralInquiryAck(); } return new quickfix.fix44.Message(); }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/1550773ed3d856616a145b520aada7f5e496c228/MessageFactory.java/buggy/src/java/src/quickfix/fix44/MessageFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2350,
752,
12,
514,
2376,
780,
16,
514,
1234,
559,
262,
288,
282,
309,
2932,
20,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
15894,
5621,
282,
289,
282,
309,
2932,
37,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
1343,
265,
5621,
282,
289,
282,
309,
2932,
21,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
4709,
691,
5621,
282,
289,
282,
309,
2932,
22,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
607,
409,
691,
5621,
282,
289,
282,
309,
2932,
23,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
21705,
5621,
282,
289,
282,
309,
2932,
24,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
4021,
7013,
5621,
282,
289,
282,
309,
2932,
25,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
19456,
5621,
282,
289,
282,
309,
2932,
78,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
13423,
1079,
21705,
5621,
282,
289,
282,
309,
2932,
5948,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
31059,
5621,
282,
289,
282,
309,
2932,
15259,
9654,
14963,
12,
3576,
559,
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,
282,
1071,
2350,
752,
12,
514,
2376,
780,
16,
514,
1234,
559,
262,
288,
282,
309,
2932,
20,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
15894,
5621,
282,
289,
282,
309,
2932,
37,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
1343,
265,
5621,
282,
289,
282,
309,
2932,
21,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
4709,
691,
5621,
282,
289,
282,
309,
2932,
22,
9654,
14963,
12,
3576,
559,
3719,
288,
377,
327,
394,
9549,
904,
18,
904,
6334,
18,
607,
409,
691,
5621,
282,
289,
282,
309,
2932,
23,
9654,
2
] |
||
deleteOtherFileDocumentFiles( fileDocument ) ;
|
DocumentMapper.deleteOtherFileDocumentFiles( fileDocument ) ;
|
public void visitFileDocument( FileDocumentDomainObject fileDocument ) { Map fileDocumentFiles = fileDocument.getFiles(); String sqlDelete = "DELETE FROM fileupload_docs WHERE meta_id = ?"; service.sqlUpdateQuery(sqlDelete, new String[]{"" + fileDocument.getId()}); for ( Iterator iterator = fileDocumentFiles.entrySet().iterator(); iterator.hasNext(); ) { Map.Entry entry = (Map.Entry)iterator.next(); String fileId = (String)entry.getKey(); FileDocumentDomainObject.FileDocumentFile fileDocumentFile = (FileDocumentDomainObject.FileDocumentFile)entry.getValue(); String filename = fileDocumentFile.getFilename(); if ( filename.length() > DB_FIELD_MAX_LENGTH__FILENAME ) { filename = truncateFilename( filename, DB_FIELD_MAX_LENGTH__FILENAME ); } String sqlInsert = "INSERT INTO fileupload_docs (meta_id, variant_name, filename, mime, created_as_image, default_variant) VALUES(?,?,?,?,?,?)"; boolean isDefaultFile = fileId.equals( fileDocument.getDefaultFileId()); service.sqlUpdateQuery( sqlInsert, new String[]{""+ fileDocument.getId(), fileId, filename, fileDocumentFile.getMimeType(), fileDocumentFile.isCreatedAsImage() ? "1" : "0", isDefaultFile ? "1" : "0"} ); saveFileDocumentFile( fileDocument.getId(), fileDocumentFile, fileId ); } deleteOtherFileDocumentFiles( fileDocument ) ; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/c3d40dd4a36af0176239d3e5cf1205e8cf888713/DocumentStoringVisitor.java/buggy/server/src/imcode/server/document/DocumentStoringVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
812,
2519,
12,
1387,
2519,
3748,
921,
585,
2519,
262,
288,
3639,
1635,
585,
2519,
2697,
273,
585,
2519,
18,
588,
2697,
5621,
3639,
514,
1847,
2613,
273,
315,
6460,
4571,
585,
6327,
67,
8532,
4852,
2191,
67,
350,
273,
692,
14432,
3639,
1156,
18,
4669,
1891,
1138,
12,
4669,
2613,
16,
394,
514,
63,
7073,
3660,
397,
585,
2519,
18,
26321,
17767,
1769,
3639,
364,
261,
4498,
2775,
273,
585,
2519,
2697,
18,
4099,
694,
7675,
9838,
5621,
2775,
18,
5332,
2134,
5621,
262,
288,
5411,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
9838,
18,
4285,
5621,
5411,
514,
21223,
273,
261,
780,
13,
4099,
18,
588,
653,
5621,
5411,
1387,
2519,
3748,
921,
18,
812,
2519,
812,
585,
2519,
812,
273,
261,
812,
2519,
3748,
921,
18,
812,
2519,
812,
13,
4099,
18,
24805,
5621,
5411,
514,
1544,
273,
585,
2519,
812,
18,
588,
5359,
5621,
5411,
309,
261,
1544,
18,
2469,
1435,
405,
2383,
67,
6776,
67,
6694,
67,
7096,
972,
16080,
262,
288,
7734,
1544,
273,
10310,
5359,
12,
1544,
16,
2383,
67,
6776,
67,
6694,
67,
7096,
972,
16080,
11272,
5411,
289,
5411,
514,
1847,
4600,
273,
315,
11356,
12421,
585,
6327,
67,
8532,
261,
3901,
67,
350,
16,
5437,
67,
529,
16,
1544,
16,
4892,
16,
2522,
67,
345,
67,
2730,
16,
805,
67,
8688,
13,
13477,
3680,
27166,
27166,
27166,
27166,
27166,
2225,
31,
5411,
1250,
20652,
812,
273,
21223,
18,
14963,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
812,
2519,
12,
1387,
2519,
3748,
921,
585,
2519,
262,
288,
3639,
1635,
585,
2519,
2697,
273,
585,
2519,
18,
588,
2697,
5621,
3639,
514,
1847,
2613,
273,
315,
6460,
4571,
585,
6327,
67,
8532,
4852,
2191,
67,
350,
273,
692,
14432,
3639,
1156,
18,
4669,
1891,
1138,
12,
4669,
2613,
16,
394,
514,
63,
7073,
3660,
397,
585,
2519,
18,
26321,
17767,
1769,
3639,
364,
261,
4498,
2775,
273,
585,
2519,
2697,
18,
4099,
694,
7675,
9838,
5621,
2775,
18,
5332,
2134,
5621,
262,
288,
5411,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
9838,
18,
4285,
5621,
5411,
514,
21223,
273,
261,
780,
13,
4099,
18,
588,
653,
5621,
5411,
1387,
2
] |
NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance();
|
NewBugzillaTaskEditor editor = (NewBugzillaTaskEditor) taskEditor.getActivePageInstance();
|
public void testDuplicateDetection() throws Exception { String stackTrace = "java.lang.NullPointerException\nat jeff.testing.stack.trace.functionality(jeff.java:481)"; NewBugzillaReport model = new NewBugzillaReport(repository.getUrl(), TasksUiPlugin.getDefault() .getOfflineReportsFile().getNextOfflineBugId()); model.setNewComment(stackTrace); model.setHasLocalChanges(true); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); NewBugEditorInput input = new NewBugEditorInput(repository, model); TaskUiUtil.openEditor(input, BugzillaUiPlugin.NEW_BUG_EDITOR_ID, page); MylarTaskEditor taskEditor = (MylarTaskEditor) page.getActiveEditor(); NewBugEditor editor = (NewBugEditor) taskEditor.getActivePageInstance(); assertTrue(editor.searchForDuplicates()); editor.markDirty(false); editor.close(); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/967190fe6010143759fd89be88edbca6490c0ebc/DuplicateDetetionTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/DuplicateDetetionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11826,
10214,
1435,
1216,
1185,
288,
202,
202,
780,
22327,
273,
315,
6290,
18,
4936,
18,
2041,
9992,
64,
18757,
525,
17098,
18,
3813,
310,
18,
3772,
18,
5129,
18,
915,
7919,
12,
78,
17098,
18,
6290,
30,
8875,
21,
2225,
31,
202,
202,
1908,
19865,
15990,
4820,
938,
273,
394,
1166,
19865,
15990,
4820,
12,
9071,
18,
588,
1489,
9334,
20350,
13943,
3773,
18,
588,
1868,
1435,
9506,
202,
18,
588,
23106,
18631,
812,
7675,
588,
2134,
23106,
19865,
548,
10663,
202,
202,
2284,
18,
542,
1908,
4469,
12,
3772,
3448,
1769,
202,
202,
2284,
18,
542,
5582,
2042,
7173,
12,
3767,
1769,
202,
202,
45,
2421,
22144,
1964,
1363,
273,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
3896,
2421,
22144,
3829,
7675,
588,
3896,
1964,
5621,
202,
202,
1908,
19865,
6946,
1210,
810,
273,
394,
1166,
19865,
6946,
1210,
12,
9071,
16,
938,
1769,
202,
202,
2174,
13943,
1304,
18,
3190,
6946,
12,
2630,
16,
16907,
15990,
13943,
3773,
18,
12917,
67,
4827,
67,
13208,
67,
734,
16,
1363,
1769,
202,
202,
12062,
7901,
2174,
6946,
1562,
6946,
273,
261,
12062,
7901,
2174,
6946,
13,
1363,
18,
588,
3896,
6946,
5621,
202,
202,
1908,
19865,
6946,
4858,
273,
261,
1908,
19865,
6946,
13,
1562,
6946,
18,
588,
3896,
1964,
1442,
5621,
202,
202,
11231,
5510,
12,
9177,
18,
3072,
1290,
23897,
10663,
202,
202,
9177,
18,
3355,
10785,
12,
5743,
1769,
202,
202,
9177,
18,
4412,
5621,
202,
97,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11826,
10214,
1435,
1216,
1185,
288,
202,
202,
780,
22327,
273,
315,
6290,
18,
4936,
18,
2041,
9992,
64,
18757,
525,
17098,
18,
3813,
310,
18,
3772,
18,
5129,
18,
915,
7919,
12,
78,
17098,
18,
6290,
30,
8875,
21,
2225,
31,
202,
202,
1908,
19865,
15990,
4820,
938,
273,
394,
1166,
19865,
15990,
4820,
12,
9071,
18,
588,
1489,
9334,
20350,
13943,
3773,
18,
588,
1868,
1435,
9506,
202,
18,
588,
23106,
18631,
812,
7675,
588,
2134,
23106,
19865,
548,
10663,
202,
202,
2284,
18,
542,
1908,
4469,
12,
3772,
3448,
1769,
202,
202,
2284,
18,
542,
5582,
2042,
7173,
12,
3767,
1769,
202,
202,
45,
2421,
22144,
1964,
1363,
273,
11810,
5370,
2
] |
define_method("adjust-date-to-timezone", "gnu.xquery.utils.TimeUtils",
|
define_method("adjust-date-to-timezone", "gnu.xquery.util.TimeUtils",
|
private void initXQuery () { ModuleBody.setMainPrintValues(true); /* Environment scmEnv = Scheme.builtin(); Environment saveEnv = Environment.getCurrent(); try { Environment.setCurrent(scmEnv); SymbolEnumeration e = scmEnv.enumerateAllSymbols(); while (e.hasMoreElements()) { Symbol b = e.nextSymbol(); Object val = b.get(null); if (val instanceof Procedure) extensionsEnvEnv.getSymbol(b.getName()).setFunctionValue(val); } // Force it to be loaded now, so we can over-ride let* length etc. loadClass("kawa.lib.std_syntax"); loadClass("kawa.lib.lists"); loadClass("kawa.lib.strings"); loadClass("gnu.commonlisp.lisp.PrimOps"); loadClass("gnu.kawa.slib.XStrings"); } catch (Throwable ex) { // Ignore. We get a ClassNotFoundException if gnu.kawa.servlet.HTTP // was not built. We get a NoClassDefFoundError if gnu.kawa.servlet.HTTP // can't find servlets in the classpath. } finally { Environment.setCurrent(saveEnv); } */ defProcStFld("unescaped-data", "gnu.kawa.xml.MakeUnescapedData", "unescapedData"); defProcStFld("item-at", "gnu.xquery.util.ItemAt", "itemAt"); defProcStFld("count", "gnu.kawa.functions.CountValues", "countValues"); defProcStFld("min", "gnu.xquery.util.MinMax", "min"); defProcStFld("max", "gnu.xquery.util.MinMax", "max"); defProcStFld("sum", "gnu.xquery.util.Reduce", "sum"); defProcStFld("avg", "gnu.xquery.util.Average", "avg"); defProcStFld("sublist", "gnu.xquery.util.SubList", "subList"); // deprecated defProcStFld("subsequence", "gnu.xquery.util.SubList", "subList"); define_method("empty", "gnu.xquery.util.SequenceUtils", "isEmptySequence"); define_method("exists", "gnu.xquery.util.SequenceUtils", "exists"); define_method("reverse", "gnu.xquery.util.SequenceUtils", "reverse$X"); defProcStFld("false", "gnu.xquery.lang.XQuery", "falseFunction"); defProcStFld("true", "gnu.xquery.lang.XQuery", "trueFunction"); defProcStFld("boolean", "gnu.xquery.util.BooleanValue", "booleanValue"); defProcStFld("number", "gnu.xquery.util.NumberValue", "numberValue"); define_method("trace", "gnu.xquery.util.Debug", "trace"); defProcStFld("write-to", "gnu.kawa.xml.WriteTo", "writeTo"); defProcStFld("write-to-if-changed", "gnu.kawa.xml.WriteTo", "writeToIfChanged"); defProcStFld("iterator-items", "gnu.kawa.xml.IteratorItems", "iteratorItems"); defProcStFld("list-items", "gnu.kawa.xml.ListItems", "listItems"); define_method("node-name", "gnu.kawa.xml.NodeName", "nodeName"); define_method("data", "gnu.xquery.util.NodeUtils", "data$X"); define_method("lower-case", "gnu.xquery.util.StringUtils", "lowerCase"); define_method("upper-case", "gnu.xquery.util.StringUtils", "upperCase"); define_method("substring", "gnu.xquery.util.StringUtils", "substring"); define_method("string-length", "gnu.xquery.util.StringUtils", "stringLength"); define_method("substring-before", "gnu.xquery.util.StringUtils", "substringBefore"); define_method("substring-after", "gnu.xquery.util.StringUtils", "substringAfter"); define_method("translate", "gnu.xquery.util.StringUtils", "translate"); define_method("encode-for-uri", "gnu.xquery.util.StringUtils", "encodeForUri"); define_method("iri-to-uri", "gnu.xquery.util.StringUtils", "iriToUri"); define_method("escape-html-uri", "gnu.xquery.util.StringUtils", "escapeHtmlUri"); define_method("string-pad", "gnu.xquery.util.StringUtils", "stringPad"); define_method("contains", "gnu.xquery.util.StringUtils", "contains"); define_method("starts-with", "gnu.xquery.util.StringUtils", "startsWith"); define_method("ends-with","gnu.xquery.util.StringUtils", "endsWith"); define_method("string-join", "gnu.xquery.util.StringUtils", "stringJoin"); define_method("concat", "gnu.xquery.util.StringUtils", "concat$V"); define_method("matches", "gnu.xquery.util.StringUtils", "matches"); define_method("replace", "gnu.xquery.util.StringUtils", "replace"); define_method("string-to-codepoints", "gnu.xquery.util.StringUtils", "stringToCodepoints$X"); define_method("codepoints-to-string", "gnu.xquery.util.StringUtils", "codepointsToString"); define_method("abs", "gnu.xquery.util.NumberValue", "abs"); define_method("floor", "gnu.xquery.util.NumberValue", "floor"); define_method("ceiling", "gnu.xquery.util.NumberValue", "ceiling"); define_method("round", "gnu.xquery.util.NumberValue", "round"); define_method("round-half-to-even", "gnu.xquery.util.NumberValue", "roundHalfToEven"); define_method("QName", "gnu.xquery.util.QNameUtils", "makeQName"); define_method("prefix-from-QName", "gnu.xquery.util.QNameUtils", "prefixFromQName"); define_method("local-name-from-QName", "gnu.xquery.util.QNameUtils", "localNameFromQName"); define_method("namespace-uri-from-QName", "gnu.xquery.util.QNameUtils", "namespaceURIFromQName"); define_method("namespace-uri-for-prefix", "gnu.xquery.util.QNameUtils", "namespaceURIForPrefix"); define_method("in-scope-prefixes", "gnu.xquery.util.NodeUtils", "inScopePrefixes$X"); define_method("years-from-duration", "gnu.xquery.utils.TimeUtils", "yearsFromDuration"); define_method("months-from-duration", "gnu.xquery.utils.TimeUtils", "monthsFromDuration"); define_method("days-from-duration", "gnu.xquery.utils.TimeUtils", "daysFromDuration"); define_method("hours-from-duration", "gnu.xquery.utils.TimeUtils", "hoursFromDuration"); define_method("minutes-from-duration", "gnu.xquery.utils.TimeUtils", "minutesFromDuration"); define_method("seconds-from-duration", "gnu.xquery.utils.TimeUtils", "secondsFromDuration"); define_method("year-from-dateTime", "gnu.xquery.utils.TimeUtils", "yearFromDateTime"); define_method("month-from-dateTime", "gnu.xquery.utils.TimeUtils", "monthFromDateTime"); define_method("day-from-dateTime", "gnu.xquery.utils.TimeUtils", "dayFromDateTime"); define_method("hours-from-dateTime", "gnu.xquery.utils.TimeUtils", "hoursFromDateTime"); define_method("minutes-from-dateTime", "gnu.xquery.utils.TimeUtils", "minutesFromDateTime"); define_method("seconds-from-dateTime", "gnu.xquery.utils.TimeUtils", "secondsFromDateTime"); define_method("timezone-from-dateTime", "gnu.xquery.utils.TimeUtils", "timezoneFromDateTime"); define_method("year-from-date", "gnu.xquery.utils.TimeUtils", "yearFromDate"); define_method("month-from-date", "gnu.xquery.utils.TimeUtils", "monthFromDate"); define_method("day-from-date", "gnu.xquery.utils.TimeUtils", "dayFromDate"); define_method("timezone-from-date", "gnu.xquery.utils.TimeUtils", "timezoneFromDate"); define_method("hours-from-time", "gnu.xquery.utils.TimeUtils", "hoursFromTime"); define_method("minutes-from-time", "gnu.xquery.utils.TimeUtils", "minutesFromTime"); define_method("seconds-from-time", "gnu.xquery.utils.TimeUtils", "secondsFromTime"); define_method("timezone-from-time", "gnu.xquery.utils.TimeUtils", "timezoneFromTime"); define_method("adjust-dateTime-to-timezone", "gnu.xquery.utils.TimeUtils", "adjustDateTimeToTimezone"); // overloaded define_method("adjust-date-to-timezone", "gnu.xquery.utils.TimeUtils", "adjustDateTimeToTimezone"); // overloaded define_method("adjust-time-to-timezone", "gnu.xquery.utils.TimeUtils", "adjustDateTimeToTimezone"); // overloaded define_method("zero-or-one", "gnu.xquery.util.SequenceUtils", "zeroOrOne"); define_method("one-or-more", "gnu.xquery.util.SequenceUtils", "oneOrMore"); define_method("exactly-one", "gnu.xquery.util.SequenceUtils", "exactlyOne"); defProcStFld("distinct-nodes", "gnu.kawa.xml.SortNodes", "sortNodes"); // FIXME - should be imported? defProcStFld("children", "gnu.kawa.xml.Children", "children"); defProcStFld("not", "kawa.standard.Scheme"); defaultNamespace = qexoFunctionNamespace; defProcStFld("response-header", "gnu.kawa.servlet.HTTP"); defProcStFld("response-content-type", "gnu.kawa.servlet.HTTP"); defProcStFld("response-status", "gnu.kawa.servlet.HTTP"); defProcStFld("error-response", "gnu.kawa.servlet.HTTP"); defProcStFld("current-servlet", "gnu.kawa.servlet.HTTP"); defProcStFld("current-servlet-context", "gnu.kawa.servlet.HTTP"); defProcStFld("current-servlet-config", "gnu.kawa.servlet.HTTP"); defProcStFld("servlet-context-realpath", "gnu.kawa.servlet.HTTP"); defProcStFld("get-response", "gnu.kawa.servlet.HTTP"); defProcStFld("get-request", "gnu.kawa.servlet.HTTP"); defProcStFld("request-method", "gnu.kawa.servlet.HTTP"); defProcStFld("request-uri", "gnu.kawa.servlet.HTTP"); defProcStFld("request-url", "gnu.kawa.servlet.HTTP"); defProcStFld("request-path-info", "gnu.kawa.servlet.HTTP"); defProcStFld("request-path-translated", "gnu.kawa.servlet.HTTP"); defProcStFld("request-servlet-path", "gnu.kawa.servlet.HTTP"); defProcStFld("request-query-string", "gnu.kawa.servlet.HTTP"); defProcStFld("request-parameter", "gnu.kawa.servlet.HTTP"); defProcStFld("request-parameters", "gnu.kawa.servlet.HTTP"); defaultNamespace = xqueryFunctionNamespace; }
|
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/bdac5a1e845eb2ee59706f6725aca27c1591ea6d/XQuery.java/buggy/gnu/xquery/lang/XQuery.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1208,
60,
1138,
1832,
225,
288,
565,
5924,
2250,
18,
542,
6376,
5108,
1972,
12,
3767,
1769,
565,
1748,
565,
7518,
29207,
3491,
273,
10714,
18,
24553,
5621,
565,
7518,
1923,
3491,
273,
7518,
18,
588,
3935,
5621,
565,
775,
1377,
288,
202,
5494,
18,
542,
3935,
12,
1017,
81,
3491,
1769,
202,
5335,
21847,
425,
273,
29207,
3491,
18,
7924,
12600,
1595,
14821,
5621,
202,
17523,
261,
73,
18,
5332,
7417,
3471,
10756,
202,
225,
288,
202,
565,
8565,
324,
273,
425,
18,
4285,
5335,
5621,
202,
565,
1033,
1244,
273,
324,
18,
588,
12,
2011,
1769,
202,
565,
309,
261,
1125,
1276,
26639,
13,
202,
1377,
4418,
3491,
3491,
18,
588,
5335,
12,
70,
18,
17994,
1435,
2934,
542,
2083,
620,
12,
1125,
1769,
202,
225,
289,
202,
759,
11889,
518,
358,
506,
4203,
2037,
16,
1427,
732,
848,
1879,
17,
566,
323,
2231,
14,
769,
5527,
18,
202,
945,
797,
2932,
79,
2219,
69,
18,
2941,
18,
5084,
67,
14308,
8863,
202,
945,
797,
2932,
79,
2219,
69,
18,
2941,
18,
9772,
8863,
202,
945,
797,
2932,
79,
2219,
69,
18,
2941,
18,
10219,
8863,
202,
945,
797,
2932,
1600,
89,
18,
6054,
80,
23831,
18,
80,
23831,
18,
2050,
381,
8132,
8863,
202,
945,
797,
2932,
1600,
89,
18,
79,
2219,
69,
18,
24760,
18,
60,
7957,
8863,
1377,
289,
565,
1044,
261,
15155,
431,
13,
1377,
288,
202,
759,
8049,
18,
225,
1660,
336,
279,
10403,
309,
314,
13053,
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,
1208,
60,
1138,
1832,
225,
288,
565,
5924,
2250,
18,
542,
6376,
5108,
1972,
12,
3767,
1769,
565,
1748,
565,
7518,
29207,
3491,
273,
10714,
18,
24553,
5621,
565,
7518,
1923,
3491,
273,
7518,
18,
588,
3935,
5621,
565,
775,
1377,
288,
202,
5494,
18,
542,
3935,
12,
1017,
81,
3491,
1769,
202,
5335,
21847,
425,
273,
29207,
3491,
18,
7924,
12600,
1595,
14821,
5621,
202,
17523,
261,
73,
18,
5332,
7417,
3471,
10756,
202,
225,
288,
202,
565,
8565,
324,
273,
425,
18,
4285,
5335,
5621,
202,
565,
1033,
1244,
273,
324,
18,
588,
12,
2011,
1769,
202,
565,
309,
261,
1125,
1276,
26639,
13,
202,
1377,
4418,
3491,
3491,
18,
588,
5335,
12,
70,
2
] |
writeLocalFileHeader(entry);
|
writeLocalFileHeader( entry );
|
public void putNextEntry(ZipEntry ze) throws IOException { closeEntry(); entry = ze; entries.addElement(entry); if (entry.getMethod() == -1) { // not specified entry.setMethod(method); } if (entry.getTime() == -1) { // not specified entry.setTime(System.currentTimeMillis()); } // Size/CRC not required if RandomAccessFile is used if (entry.getMethod() == STORED && raf == null) { if (entry.getSize() == -1) { throw new ZipException("uncompressed size is required for" + " STORED method when not writing to a" + " file"); } if (entry.getCrc() == -1) { throw new ZipException("crc checksum is required for STORED" + " method when not writing to a file"); } entry.setComprSize(entry.getSize()); } if (entry.getMethod() == DEFLATED && hasCompressionLevelChanged) { def.setLevel(level); hasCompressionLevelChanged = false; } writeLocalFileHeader(entry); }
|
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/ZipOutputStream.java/buggy/src/main/java/org/codehaus/plexus/archiver/zip/ZipOutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
2134,
1622,
12,
9141,
1622,
26637,
13,
1216,
1860,
288,
3639,
1746,
1622,
5621,
3639,
1241,
273,
26637,
31,
3639,
3222,
18,
1289,
1046,
12,
4099,
1769,
3639,
309,
261,
4099,
18,
588,
1305,
1435,
422,
300,
21,
13,
288,
368,
486,
1269,
5411,
1241,
18,
542,
1305,
12,
2039,
1769,
3639,
289,
3639,
309,
261,
4099,
18,
588,
950,
1435,
422,
300,
21,
13,
288,
368,
486,
1269,
5411,
1241,
18,
542,
950,
12,
3163,
18,
2972,
28512,
10663,
3639,
289,
3639,
368,
6321,
19,
26803,
486,
1931,
309,
8072,
26933,
353,
1399,
3639,
309,
261,
4099,
18,
588,
1305,
1435,
422,
2347,
51,
5879,
597,
24671,
422,
446,
13,
288,
5411,
309,
261,
4099,
18,
588,
1225,
1435,
422,
300,
21,
13,
288,
7734,
604,
394,
8603,
503,
2932,
551,
362,
10906,
963,
353,
1931,
364,
6,
4766,
4202,
397,
315,
2347,
51,
5879,
707,
1347,
486,
7410,
358,
279,
6,
4766,
4202,
397,
315,
585,
8863,
5411,
289,
5411,
309,
261,
4099,
18,
588,
39,
1310,
1435,
422,
300,
21,
13,
288,
7734,
604,
394,
8603,
503,
2932,
22988,
6697,
353,
1931,
364,
2347,
51,
5879,
6,
4766,
4202,
397,
315,
707,
1347,
486,
7410,
358,
279,
585,
8863,
5411,
289,
5411,
1241,
18,
542,
799,
683,
1225,
12,
4099,
18,
588,
1225,
10663,
3639,
289,
3639,
309,
261,
4099,
18,
588,
1305,
1435,
422,
2030,
19054,
6344,
597,
711,
15270,
2355,
5033,
13,
288,
5411,
1652,
18,
542,
2355,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
2134,
1622,
12,
9141,
1622,
26637,
13,
1216,
1860,
288,
3639,
1746,
1622,
5621,
3639,
1241,
273,
26637,
31,
3639,
3222,
18,
1289,
1046,
12,
4099,
1769,
3639,
309,
261,
4099,
18,
588,
1305,
1435,
422,
300,
21,
13,
288,
368,
486,
1269,
5411,
1241,
18,
542,
1305,
12,
2039,
1769,
3639,
289,
3639,
309,
261,
4099,
18,
588,
950,
1435,
422,
300,
21,
13,
288,
368,
486,
1269,
5411,
1241,
18,
542,
950,
12,
3163,
18,
2972,
28512,
10663,
3639,
289,
3639,
368,
6321,
19,
26803,
486,
1931,
309,
8072,
26933,
353,
1399,
3639,
309,
261,
4099,
18,
588,
1305,
1435,
422,
2347,
51,
5879,
597,
24671,
422,
446,
13,
288,
5411,
309,
261,
2
] |
public static Integer valueOf(String s)
|
public static Integer valueOf(String s, int radix)
|
public static Integer valueOf(String s) { return new Integer(parseInt(s, 10)); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/98a7f54839aa1512f110d6a8ac4e39e373c39e28/Integer.java/buggy/java/lang/Integer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2144,
4323,
12,
780,
272,
16,
509,
19015,
13,
225,
288,
565,
327,
394,
2144,
12,
2670,
1702,
12,
87,
16,
1728,
10019,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2144,
4323,
12,
780,
272,
16,
509,
19015,
13,
225,
288,
565,
327,
394,
2144,
12,
2670,
1702,
12,
87,
16,
1728,
10019,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void forAllFields(String template, Properties attributes) throws XDocletException { XClass clazz = getCurrentClass(); Map setters = new LinkedHashMap(getFields(clazz)); for (Iterator iterator = setters.keySet().iterator(); iterator.hasNext();) { curFieldName = (String) iterator.next(); XMethod field = (XMethod) setters.get(curFieldName); //setCurrentMethod(field); XMethod getter = field.getAccessor(); setCurrentMethod(getter); Properties pro = new Properties(); pro.setProperty("tagName", "hibernate.id"); if (hasTag(pro, FOR_METHOD)) { curFieldIsId = true; } else { curFieldIsId = false; } setCurrentMethod(field); generate(template); } }
|
30015 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/30015/5d6acc922fc6db7971373a122b8bf1ba7d8c4891/FormTagsHandler.java/clean/extras/appgen/src/org/example/antbook/xdoclet/FormTagsHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
1884,
1595,
2314,
12,
780,
3202,
16,
2297,
4350,
13,
15069,
60,
1759,
1810,
503,
95,
60,
797,
830,
3638,
33,
588,
3935,
797,
5621,
863,
542,
5432,
33,
2704,
13174,
8658,
12,
588,
2314,
12,
830,
3638,
10019,
1884,
12,
3198,
9838,
33,
542,
5432,
18,
856,
694,
7675,
9838,
5621,
9838,
18,
5332,
2134,
5621,
15329,
1397,
7287,
28657,
780,
13,
9838,
18,
4285,
5621,
60,
1305,
1518,
28657,
60,
1305,
13,
542,
5432,
18,
588,
12,
1397,
7287,
1769,
759,
542,
3935,
1305,
12,
1518,
1769,
60,
1305,
11990,
33,
1518,
18,
588,
8235,
5621,
542,
3935,
1305,
12,
11990,
1769,
2297,
685,
33,
2704,
2297,
5621,
685,
18,
542,
1396,
2932,
2692,
461,
15937,
15769,
22828,
18,
350,
8863,
430,
12,
5332,
1805,
12,
685,
16,
7473,
67,
5327,
3719,
95,
1397,
974,
2520,
548,
33,
3767,
31,
97,
12107,
95,
202,
1397,
974,
2520,
548,
33,
5743,
31,
97,
542,
3935,
1305,
12,
1518,
1769,
7163,
12,
3202,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
6459,
1884,
1595,
2314,
12,
780,
3202,
16,
2297,
4350,
13,
15069,
60,
1759,
1810,
503,
95,
60,
797,
830,
3638,
33,
588,
3935,
797,
5621,
863,
542,
5432,
33,
2704,
13174,
8658,
12,
588,
2314,
12,
830,
3638,
10019,
1884,
12,
3198,
9838,
33,
542,
5432,
18,
856,
694,
7675,
9838,
5621,
9838,
18,
5332,
2134,
5621,
15329,
1397,
7287,
28657,
780,
13,
9838,
18,
4285,
5621,
60,
1305,
1518,
28657,
60,
1305,
13,
542,
5432,
18,
588,
12,
1397,
7287,
1769,
759,
542,
3935,
1305,
12,
1518,
1769,
60,
1305,
11990,
33,
1518,
18,
588,
8235,
5621,
542,
3935,
1305,
12,
11990,
1769,
2297,
685,
33,
2704,
2297,
5621,
685,
18,
542,
1396,
2932,
2692,
461,
2
] |
||
} else if (ELEMENT_KEY_CONFIGURATION.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_SCHEME_DEFINITIONS, schemeDefinitionCount++);
|
} else if (ELEMENT_KEY_CONFIGURATION.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_SCHEME_DEFINITIONS, schemeDefinitionCount++);
|
static final void read(final BindingManager bindingManager, final ICommandService commandService) { // Create the extension registry mementos. final IExtensionRegistry registry = Platform.getExtensionRegistry(); int activeSchemeElementCount = 0; int bindingDefinitionCount = 0; int schemeDefinitionCount = 0; final IConfigurationElement[][] indexedConfigurationElements = new IConfigurationElement[3][]; // Sort the bindings extension point based on element name. final IConfigurationElement[] bindingsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_BINDINGS); for (int i = 0; i < bindingsExtensionPoint.length; i++) { final IConfigurationElement configurationElement = bindingsExtensionPoint[i]; final String name = configurationElement.getName(); // Check if it is a binding definition. if (ELEMENT_KEY.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_BINDING_DEFINITIONS, bindingDefinitionCount++); } else // Check to see if it is a scheme definition. if (ELEMENT_SCHEME.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_SCHEME_DEFINITIONS, schemeDefinitionCount++); } } // Sort the commands extension point based on element name. final IConfigurationElement[] commandsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_COMMANDS); for (int i = 0; i < commandsExtensionPoint.length; i++) { final IConfigurationElement configurationElement = commandsExtensionPoint[i]; final String name = configurationElement.getName(); // Check if it is a binding definition. if (ELEMENT_KEY_BINDING.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_BINDING_DEFINITIONS, bindingDefinitionCount++); // Check if it is a scheme defintion. } else if (ELEMENT_KEY_CONFIGURATION.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_SCHEME_DEFINITIONS, schemeDefinitionCount++); // Check if it is an active scheme identifier. } else if (ELEMENT_ACTIVE_KEY_CONFIGURATION.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_ACTIVE_SCHEME, activeSchemeElementCount++); } } /* * Sort the accelerator configuration extension point into the scheme * definitions. */ final IConfigurationElement[] acceleratorConfigurationsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_ACCELERATOR_CONFIGURATIONS); for (int i = 0; i < acceleratorConfigurationsExtensionPoint.length; i++) { final IConfigurationElement configurationElement = acceleratorConfigurationsExtensionPoint[i]; final String name = configurationElement.getName(); // Check if the name matches the accelerator configuration element if (ELEMENT_ACCELERATOR_CONFIGURATION.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_SCHEME_DEFINITIONS, schemeDefinitionCount++); } } // Create the preference memento. final IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); final String preferenceString = store.getString(EXTENSION_COMMANDS); IMemento preferenceMemento = null; if ((preferenceString != null) && (preferenceString.length() > 0)) { final Reader reader = new StringReader(preferenceString); try { preferenceMemento = XMLMemento.createReadRoot(reader); } catch (final WorkbenchException e) { // Could not initialize the preference memento. } } // Read the scheme definitions. readSchemes(indexedConfigurationElements[INDEX_SCHEME_DEFINITIONS], schemeDefinitionCount, bindingManager); readActiveScheme(indexedConfigurationElements[INDEX_ACTIVE_SCHEME], activeSchemeElementCount, preferenceMemento, bindingManager); readBindingsFromRegistry( indexedConfigurationElements[INDEX_BINDING_DEFINITIONS], bindingDefinitionCount, bindingManager, commandService); readBindingsFromPreferences(preferenceMemento, bindingManager, commandService); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c07ed3e025797a9c1bd6510cf18a0c4ff4157625/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
727,
918,
855,
12,
6385,
15689,
1318,
5085,
1318,
16,
1082,
202,
6385,
467,
2189,
1179,
1296,
1179,
13,
288,
202,
202,
759,
1788,
326,
2710,
4023,
312,
820,
538,
18,
202,
202,
6385,
467,
3625,
4243,
4023,
273,
11810,
18,
588,
3625,
4243,
5621,
202,
202,
474,
2695,
9321,
1046,
1380,
273,
374,
31,
202,
202,
474,
5085,
1852,
1380,
273,
374,
31,
202,
202,
474,
4355,
1852,
1380,
273,
374,
31,
202,
202,
6385,
467,
1750,
1046,
63,
6362,
65,
8808,
1750,
3471,
273,
394,
467,
1750,
1046,
63,
23,
6362,
15533,
202,
202,
759,
5928,
326,
7394,
2710,
1634,
2511,
603,
930,
508,
18,
202,
202,
6385,
467,
1750,
1046,
8526,
7394,
3625,
2148,
273,
4023,
9506,
202,
18,
588,
1750,
3471,
1290,
12,
12796,
67,
2739,
55,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
7394,
3625,
2148,
18,
2469,
31,
277,
27245,
288,
1082,
202,
6385,
467,
1750,
1046,
1664,
1046,
273,
7394,
3625,
2148,
63,
77,
15533,
1082,
202,
6385,
514,
508,
273,
1664,
1046,
18,
17994,
5621,
1082,
202,
759,
2073,
309,
518,
353,
279,
5085,
2379,
18,
1082,
202,
430,
261,
10976,
67,
3297,
18,
14963,
12,
529,
3719,
288,
9506,
202,
1289,
1046,
774,
15034,
1076,
12,
7025,
1046,
16,
25083,
202,
19626,
1750,
3471,
16,
25083,
202,
9199,
67,
2739,
67,
25312,
55,
16,
5085,
1852,
1380,
9904,
1769,
1082,
202,
97,
469,
1082,
202,
759,
2073,
358,
2621,
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,
3845,
727,
918,
855,
12,
6385,
15689,
1318,
5085,
1318,
16,
1082,
202,
6385,
467,
2189,
1179,
1296,
1179,
13,
288,
202,
202,
759,
1788,
326,
2710,
4023,
312,
820,
538,
18,
202,
202,
6385,
467,
3625,
4243,
4023,
273,
11810,
18,
588,
3625,
4243,
5621,
202,
202,
474,
2695,
9321,
1046,
1380,
273,
374,
31,
202,
202,
474,
5085,
1852,
1380,
273,
374,
31,
202,
202,
474,
4355,
1852,
1380,
273,
374,
31,
202,
202,
6385,
467,
1750,
1046,
63,
6362,
65,
8808,
1750,
3471,
273,
394,
467,
1750,
1046,
63,
23,
6362,
15533,
202,
202,
759,
5928,
326,
7394,
2710,
1634,
2511,
603,
930,
508,
18,
202,
202,
6385,
467,
1750,
1046,
8526,
7394,
3625,
2
] |
idrSWT.fillRectangle( rre ); idrSWT.drawRectangle( rre );
|
rre.setBackground( (Fill) ( (MultipleFill) fi ).getFills( ) .get( 0 ) ); bo.set( 3, iY + 3, ( rCA.width - 6 ) / 2, iItemHeight - 6 ); try { idrSWT.fillRectangle( rre ); } catch ( ChartException rex ) { logger.log( rex ); } bo.set( rCA.width / 2, iY + 3, ( rCA.width - 6 ) / 2, iItemHeight - 6 ); rre.setBackground( (Fill) ( (MultipleFill) fi ).getFills( ) .get( 1 ) ); try { idrSWT.fillRectangle( rre ); } catch ( ChartException rex ) { logger.log( rex ); } bo.set( 3, iY + 3, rCA.width - 6, iItemHeight - 6 ); try { idrSWT.drawRectangle( rre ); } catch ( ChartException rex ) { logger.log( rex ); }
|
public final void paintControl( PaintEvent pev ) { Composite co = (Composite) pev.getSource( ); GC gcComposite = pev.gc; Display d = pev.display; Rectangle rCA = coPaletteEntries.getClientArea( ); if ( coEditor == null ) { coEditor = new FillChooserComposite( co, SWT.NONE, wizardContext, null, true, true ); coEditor.setBounds( 3, 3, rCA.width - 6, iItemHeight - 6 ); ( (FillChooserComposite) coEditor ).addListener( this ); } if ( imgBuffer == null ) { imgBuffer = new Image( d, rCA.width, rCA.height ); gc = new GC( imgBuffer ); idrSWT.setProperty( IDeviceRenderer.GRAPHICS_CONTEXT, gc ); } gc.setBackground( getBackground( ) ); gc.fillRectangle( rCA ); iViewHeight = rCA.height; int iStartIndex = iViewY / iItemHeight; if ( iStartIndex < 0 ) { iStartIndex = 0; } iVisibleCount = iViewHeight / iItemHeight + 2; int iAvailableItems = Math.min( iVisibleCount, elPaletteEntries.size( ) - iStartIndex ); int iY = -( iViewY % iItemHeight ); gc.setForeground( d.getSystemColor( SWT.COLOR_GRAY ) ); final RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) idrSWT ).getEventObject( this, RectangleRenderEvent.class ); final Bounds bo = BoundsImpl.create( 0, 0, 0, 0 ); rre.setOutline( LineAttributesImpl.create( ColorDefinitionImpl.BLACK( ), LineStyle.SOLID_LITERAL, 1 ) ); rre.setBounds( bo ); Fill fi; for ( int i = iStartIndex; i < iStartIndex + iAvailableItems; i++ ) { fi = (Fill) elPaletteEntries.get( i ); bo.set( 3, iY + 3, rCA.width - 6, iItemHeight - 6 ); rre.setBackground( fi ); try { idrSWT.fillRectangle( rre ); idrSWT.drawRectangle( rre ); } catch ( ChartException rex ) { logger.log( rex ); } if ( i == iSelectedIndex ) { // WITHIN RANGE; SHOW EDITOR AND UPDATE POSITION if ( !coEditor.isVisible( ) ) { coEditor.setVisible( true ); } coEditor.setLocation( 3, iY + 3 ); ( (FillChooserComposite) coEditor ).setFill( fi ); } iY += iItemHeight; } // OUT OF RANGE; HIDE EDITOR if ( iSelectedIndex < iStartIndex || iSelectedIndex >= iStartIndex + iAvailableItems ) { if ( coEditor.isVisible( ) ) { coEditor.setVisible( false ); } } gcComposite.drawImage( imgBuffer, rCA.x, rCA.y ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/0b2260ea67a2696cf7918997e4a6d5290cc621a1/PaletteEditorComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/PaletteEditorComposite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
12574,
3367,
12,
30001,
1133,
2804,
90,
262,
202,
95,
202,
202,
9400,
1825,
273,
261,
9400,
13,
2804,
90,
18,
588,
1830,
12,
11272,
202,
202,
15396,
8859,
9400,
273,
2804,
90,
18,
13241,
31,
202,
202,
4236,
302,
273,
2804,
90,
18,
5417,
31,
202,
202,
19463,
436,
3587,
273,
1825,
25863,
5400,
18,
588,
1227,
5484,
12,
11272,
202,
202,
430,
261,
1825,
6946,
422,
446,
262,
202,
202,
95,
1082,
202,
2894,
6946,
273,
394,
14192,
17324,
9400,
12,
1825,
16,
6862,
202,
55,
8588,
18,
9826,
16,
6862,
202,
31837,
1042,
16,
6862,
202,
2011,
16,
6862,
202,
3767,
16,
6862,
202,
3767,
11272,
1082,
202,
2894,
6946,
18,
542,
5694,
12,
890,
16,
890,
16,
436,
3587,
18,
2819,
300,
1666,
16,
277,
1180,
2686,
300,
1666,
11272,
1082,
202,
12,
261,
8026,
17324,
9400,
13,
1825,
6946,
262,
18,
1289,
2223,
12,
333,
11272,
202,
202,
97,
202,
202,
430,
261,
3774,
1892,
422,
446,
262,
202,
202,
95,
1082,
202,
6081,
1892,
273,
394,
3421,
12,
302,
16,
436,
3587,
18,
2819,
16,
436,
3587,
18,
4210,
11272,
1082,
202,
13241,
273,
394,
15085,
12,
3774,
1892,
11272,
1082,
202,
350,
86,
55,
8588,
18,
542,
1396,
12,
467,
3654,
6747,
18,
24372,
28919,
67,
13181,
16,
8859,
11272,
202,
202,
97,
202,
202,
13241,
18,
542,
8199,
12,
336,
8199,
12,
262,
11272,
202,
202,
13241,
18,
5935,
19463,
12,
436,
3587,
11272,
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,
12574,
3367,
12,
30001,
1133,
2804,
90,
262,
202,
95,
202,
202,
9400,
1825,
273,
261,
9400,
13,
2804,
90,
18,
588,
1830,
12,
11272,
202,
202,
15396,
8859,
9400,
273,
2804,
90,
18,
13241,
31,
202,
202,
4236,
302,
273,
2804,
90,
18,
5417,
31,
202,
202,
19463,
436,
3587,
273,
1825,
25863,
5400,
18,
588,
1227,
5484,
12,
11272,
202,
202,
430,
261,
1825,
6946,
422,
446,
262,
202,
202,
95,
1082,
202,
2894,
6946,
273,
394,
14192,
17324,
9400,
12,
1825,
16,
6862,
202,
55,
8588,
18,
9826,
16,
6862,
202,
31837,
1042,
16,
6862,
202,
2011,
16,
6862,
202,
3767,
16,
6862,
202,
3767,
11272,
1082,
202,
2894,
6946,
18,
2
] |
public int getIndexOfChild(Object parentObj, Object childObj) { if (debugger == null) { return -1; } VariableNode parent = (VariableNode)parentObj; VariableNode child = (VariableNode)childObj;
|
public int getIndexOfChild(Object parentObj, Object childObj) { if (debugger == null) { return -1; } VariableNode parent = (VariableNode) parentObj; VariableNode child = (VariableNode) childObj;
|
public int getIndexOfChild(Object parentObj, Object childObj) { if (debugger == null) { return -1; } VariableNode parent = (VariableNode)parentObj; VariableNode child = (VariableNode)childObj; VariableNode[] children = children(parent); for (int i = 0; i != children.length; ++i) { if (children[i] == child) { return i; } } return -1; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/2d4fc75b74d717c754829dde488ff0a7456682cc/SwingGui.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
8088,
951,
1763,
12,
921,
982,
2675,
16,
1033,
1151,
2675,
13,
565,
288,
3639,
309,
261,
4148,
693,
422,
446,
13,
288,
327,
300,
21,
31,
289,
3639,
7110,
907,
982,
273,
261,
3092,
907,
13,
2938,
2675,
31,
3639,
7110,
907,
1151,
273,
261,
3092,
907,
13,
3624,
2675,
31,
3639,
7110,
907,
8526,
2325,
273,
2325,
12,
2938,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
480,
2325,
18,
2469,
31,
965,
77,
13,
288,
5411,
309,
261,
5906,
63,
77,
65,
422,
1151,
13,
288,
7734,
327,
277,
31,
5411,
289,
3639,
289,
3639,
327,
300,
21,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
509,
8088,
951,
1763,
12,
921,
982,
2675,
16,
1033,
1151,
2675,
13,
565,
288,
3639,
309,
261,
4148,
693,
422,
446,
13,
288,
327,
300,
21,
31,
289,
3639,
7110,
907,
982,
273,
261,
3092,
907,
13,
2938,
2675,
31,
3639,
7110,
907,
1151,
273,
261,
3092,
907,
13,
3624,
2675,
31,
3639,
7110,
907,
8526,
2325,
273,
2325,
12,
2938,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
480,
2325,
18,
2469,
31,
965,
77,
13,
288,
5411,
309,
261,
5906,
63,
77,
65,
422,
1151,
13,
288,
7734,
327,
277,
31,
5411,
289,
3639,
289,
3639,
327,
300,
21,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public IRubyObject deflate(String str, Long flush_x) throws IOException { int flush = flush_x.intValue();
|
public IRubyObject deflate(String str, int flush) throws IOException {
|
public IRubyObject deflate(String str, Long flush_x) throws IOException { int flush = flush_x.intValue(); if (null == str) { StringBuffer result = new StringBuffer(); byte[] outp = new byte[1024]; byte[] buf = collected.toString().getBytes("ISO8859_1"); collected = new StringBuffer(); flater.setInput(buf); flater.finish(); int resultLength = -1; while (!flater.finished() && resultLength != 0) { resultLength = flater.deflate(outp); result.append(new String(outp, 0, resultLength,"ISO-8859-1")); } return runtime.newString(result.toString()); } else { append(str); if (flush == FINISH) { StringBuffer result = new StringBuffer(); byte[] outp = new byte[1024]; byte[] buf = collected.toString().getBytes("ISO8859_1"); collected = new StringBuffer(); flater.setInput(buf); flater.finish(); int resultLength = -1; while (!flater.finished() && resultLength != 0) { resultLength = flater.deflate(outp); result.append(new String(outp, 0, resultLength,"ISO-8859-1")); } return runtime.newString(result.toString()); } return runtime.getNil(); } }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/510a41b06f3103200e881725915b7cc1a5a10b39/ZlibDeflate.java/buggy/src/org/jruby/util/ZlibDeflate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1652,
20293,
12,
780,
609,
16,
3407,
3663,
67,
92,
13,
1216,
1860,
288,
3639,
509,
3663,
273,
3663,
67,
92,
18,
474,
620,
5621,
7734,
309,
261,
2011,
422,
609,
13,
288,
5411,
6674,
563,
273,
394,
6674,
5621,
5411,
1160,
8526,
596,
84,
273,
394,
1160,
63,
2163,
3247,
15533,
5411,
1160,
8526,
1681,
273,
12230,
18,
10492,
7675,
588,
2160,
2932,
12609,
17258,
67,
21,
8863,
5411,
12230,
273,
394,
6674,
5621,
5411,
1183,
2045,
18,
542,
1210,
12,
4385,
1769,
5411,
1183,
2045,
18,
13749,
5621,
5411,
509,
563,
1782,
273,
300,
21,
31,
5411,
1323,
16051,
2242,
2045,
18,
13527,
1435,
597,
563,
1782,
480,
374,
13,
288,
7734,
563,
1782,
273,
1183,
2045,
18,
536,
20293,
12,
659,
84,
1769,
7734,
563,
18,
6923,
12,
2704,
514,
12,
659,
84,
16,
374,
16,
563,
1782,
10837,
12609,
17,
17258,
17,
21,
7923,
1769,
5411,
289,
13491,
327,
3099,
18,
2704,
780,
12,
2088,
18,
10492,
10663,
9079,
289,
469,
288,
5411,
714,
12,
701,
1769,
5411,
309,
261,
11330,
422,
25768,
13,
288,
7734,
6674,
563,
273,
394,
6674,
5621,
7734,
1160,
8526,
596,
84,
273,
394,
1160,
63,
2163,
3247,
15533,
7734,
1160,
8526,
1681,
273,
12230,
18,
10492,
7675,
588,
2160,
2932,
12609,
17258,
67,
21,
8863,
7734,
12230,
273,
394,
6674,
5621,
7734,
1183,
2045,
18,
542,
1210,
12,
4385,
1769,
7734,
1183,
2045,
18,
13749,
5621,
7734,
509,
563,
1782,
273,
300,
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,
15908,
10340,
921,
1652,
20293,
12,
780,
609,
16,
3407,
3663,
67,
92,
13,
1216,
1860,
288,
3639,
509,
3663,
273,
3663,
67,
92,
18,
474,
620,
5621,
7734,
309,
261,
2011,
422,
609,
13,
288,
5411,
6674,
563,
273,
394,
6674,
5621,
5411,
1160,
8526,
596,
84,
273,
394,
1160,
63,
2163,
3247,
15533,
5411,
1160,
8526,
1681,
273,
12230,
18,
10492,
7675,
588,
2160,
2932,
12609,
17258,
67,
21,
8863,
5411,
12230,
273,
394,
6674,
5621,
5411,
1183,
2045,
18,
542,
1210,
12,
4385,
1769,
5411,
1183,
2045,
18,
13749,
5621,
5411,
509,
563,
1782,
273,
300,
21,
31,
5411,
1323,
16051,
2242,
2045,
18,
13527,
1435,
597,
563,
1782,
480,
374,
13,
288,
7734,
2
] |
tcm.getColumn(column).setCellEditor(buttonEditor);
|
table.setDefaultEditor(JButton.class,buttonEditor);
|
void setColumnToHoldButton(JTable table, int column, JButton sample) { TableColumnModel tcm = table.getColumnModel(); // install a button renderer & editor ButtonRenderer buttonRenderer = new ButtonRenderer(); tcm.getColumn(column).setCellRenderer(buttonRenderer); TableCellEditor buttonEditor = new ButtonEditor(new JButton()); tcm.getColumn(column).setCellEditor(buttonEditor); // ensure the table rows, columns have enough room for buttons table.setRowHeight(sample.getPreferredSize().height); table.getColumnModel().getColumn(column) .setPreferredWidth(sample.getPreferredSize().width); }
|
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/23aa9fc9f122ea3d249b6b14991544402a443654/BeanTableDataModel.java/buggy/jmri/jmrit/beantable/BeanTableDataModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
25918,
774,
20586,
3616,
12,
46,
1388,
1014,
16,
509,
1057,
16,
28804,
3296,
13,
288,
3639,
3555,
1494,
1488,
1715,
81,
273,
1014,
18,
588,
1494,
1488,
5621,
3639,
368,
3799,
279,
3568,
5690,
473,
4858,
3639,
12569,
6747,
3568,
6747,
273,
394,
12569,
6747,
5621,
3639,
1715,
81,
18,
588,
1494,
12,
2827,
2934,
542,
4020,
6747,
12,
5391,
6747,
1769,
3639,
3555,
4020,
6946,
3568,
6946,
273,
394,
12569,
6946,
12,
2704,
28804,
10663,
3639,
1014,
18,
542,
1868,
6946,
12,
46,
3616,
18,
1106,
16,
5391,
6946,
1769,
3639,
368,
3387,
326,
1014,
2595,
16,
2168,
1240,
7304,
7725,
364,
9502,
3639,
1014,
18,
542,
1999,
2686,
12,
6358,
18,
588,
16028,
1225,
7675,
4210,
1769,
3639,
1014,
18,
588,
1494,
1488,
7675,
588,
1494,
12,
2827,
13,
1082,
202,
18,
542,
16028,
2384,
12,
6358,
18,
588,
16028,
1225,
7675,
2819,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
25918,
774,
20586,
3616,
12,
46,
1388,
1014,
16,
509,
1057,
16,
28804,
3296,
13,
288,
3639,
3555,
1494,
1488,
1715,
81,
273,
1014,
18,
588,
1494,
1488,
5621,
3639,
368,
3799,
279,
3568,
5690,
473,
4858,
3639,
12569,
6747,
3568,
6747,
273,
394,
12569,
6747,
5621,
3639,
1715,
81,
18,
588,
1494,
12,
2827,
2934,
542,
4020,
6747,
12,
5391,
6747,
1769,
3639,
3555,
4020,
6946,
3568,
6946,
273,
394,
12569,
6946,
12,
2704,
28804,
10663,
3639,
1014,
18,
542,
1868,
6946,
12,
46,
3616,
18,
1106,
16,
5391,
6946,
1769,
3639,
368,
3387,
326,
1014,
2595,
16,
2168,
1240,
7304,
7725,
364,
9502,
3639,
1014,
18,
542,
1999,
2686,
12,
6358,
18,
588,
16028,
1225,
2
] |
if (part.getControl() != null)
|
} if (part.getControl() != null) {
|
public Control[] getTabList(IPresentablePart part) { ArrayList list = new ArrayList(); if (paneFolder.getTabPosition() == SWT.BOTTOM) { if (part.getToolBar() != null) list.add(part.getToolBar()); if (part.getControl() != null) list.add(part.getControl()); if (getPaneFolder() != null) list.add(getPaneFolder().getControl()); } else { if (getPaneFolder() != null) list.add(getPaneFolder().getControl()); if (part.getToolBar() != null) list.add(part.getToolBar()); if (part.getControl() != null) list.add(part.getControl()); } return (Control[]) list.toArray(new Control[list.size()]); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3a23c3b9bac4db696a0452560047155775a707b7/R21BasicStackPresentation.java/clean/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21BasicStackPresentation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8888,
8526,
3181,
378,
682,
12,
2579,
1581,
429,
1988,
1087,
13,
288,
202,
202,
19558,
666,
273,
394,
2407,
5621,
202,
202,
430,
261,
29009,
3899,
18,
588,
5661,
2555,
1435,
422,
348,
8588,
18,
28891,
13,
288,
1082,
202,
430,
261,
2680,
18,
588,
6364,
5190,
1435,
480,
446,
13,
9506,
202,
1098,
18,
1289,
12,
2680,
18,
588,
6364,
5190,
10663,
1082,
202,
430,
261,
2680,
18,
588,
3367,
1435,
480,
446,
13,
9506,
202,
1098,
18,
1289,
12,
2680,
18,
588,
3367,
10663,
1082,
202,
430,
261,
588,
8485,
3899,
1435,
480,
446,
13,
9506,
202,
1098,
18,
1289,
12,
588,
8485,
3899,
7675,
588,
3367,
10663,
202,
202,
97,
469,
288,
1082,
202,
430,
261,
588,
8485,
3899,
1435,
480,
446,
13,
9506,
202,
1098,
18,
1289,
12,
588,
8485,
3899,
7675,
588,
3367,
10663,
1082,
202,
430,
261,
2680,
18,
588,
6364,
5190,
1435,
480,
446,
13,
9506,
202,
1098,
18,
1289,
12,
2680,
18,
588,
6364,
5190,
10663,
1082,
202,
430,
261,
2680,
18,
588,
3367,
1435,
480,
446,
13,
9506,
202,
1098,
18,
1289,
12,
2680,
18,
588,
3367,
10663,
202,
202,
97,
202,
202,
2463,
261,
3367,
63,
5717,
666,
18,
31447,
12,
2704,
8888,
63,
1098,
18,
1467,
1435,
19226,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8888,
8526,
3181,
378,
682,
12,
2579,
1581,
429,
1988,
1087,
13,
288,
202,
202,
19558,
666,
273,
394,
2407,
5621,
202,
202,
430,
261,
29009,
3899,
18,
588,
5661,
2555,
1435,
422,
348,
8588,
18,
28891,
13,
288,
1082,
202,
430,
261,
2680,
18,
588,
6364,
5190,
1435,
480,
446,
13,
9506,
202,
1098,
18,
1289,
12,
2680,
18,
588,
6364,
5190,
10663,
1082,
202,
430,
261,
2680,
18,
588,
3367,
1435,
480,
446,
13,
9506,
202,
1098,
18,
1289,
12,
2680,
18,
588,
3367,
10663,
1082,
202,
430,
261,
588,
8485,
3899,
1435,
480,
446,
13,
9506,
202,
1098,
18,
1289,
12,
588,
8485,
3899,
7675,
588,
3367,
10663,
202,
202,
97,
469,
288,
2
] |
final String title = th.getTitle(); if (title != null) { RendererUtil .renderAttribute(writer, JsfConstants.TITLE_ATTR, title); } final String rowspan = th.getRowspan(); if (rowspan != null) { RendererUtil.renderAttribute(writer, JsfConstants.ROWSPAN_ATTR, rowspan); }
|
renderRemainAttributes(th, writer, thIgnoreAttribute);
|
private void encodeGridHeaderTh(final FacesContext context, final THtmlGridTh th, final ResponseWriter writer, final THtmlGridRenderer.GridAttribute attribute, final int columnNo) throws IOException { writer.startElement(JsfConstants.TH_ELEM, th); RendererUtil.renderIdAttributeIfNecessary(writer, th, getIdForRender( context, th)); final String title = th.getTitle(); if (title != null) { RendererUtil .renderAttribute(writer, JsfConstants.TITLE_ATTR, title); } final String rowspan = th.getRowspan(); if (rowspan != null) { RendererUtil.renderAttribute(writer, JsfConstants.ROWSPAN_ATTR, rowspan); } writer.startElement(JsfConstants.DIV_ELEM, th); RendererUtil.renderAttribute(writer, JsfConstants.CLASS_ATTR, createThStyleClassAttribute(th, attribute, columnNo)); RendererUtil.renderAttribute(writer, JsfConstants.STYLE_ATTR, createThStyleAttribute(th, attribute, columnNo)); writer.startElement(JsfConstants.NOBR_ELEM, th); encodeDescendantComponent(context, th); writer.endElement(JsfConstants.NOBR_ELEM); writer.endElement(JsfConstants.DIV_ELEM); writer.endElement(JsfConstants.TH_ELEM); }
|
48238 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48238/ebbe380ea554dad4adc50edd9086ba2e606990c5/THtmlGridRenderer.java/clean/teeda/teeda-extension/src/main/java/org/seasar/teeda/extension/render/html/THtmlGridRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2017,
6313,
1864,
1315,
12,
6385,
20306,
819,
16,
5411,
727,
399,
4353,
6313,
1315,
286,
16,
727,
7846,
2633,
16,
5411,
727,
399,
4353,
6313,
6747,
18,
6313,
1499,
1566,
16,
727,
509,
1057,
2279,
13,
5411,
1216,
1860,
288,
3639,
2633,
18,
1937,
1046,
12,
8382,
74,
2918,
18,
2455,
67,
41,
26817,
16,
286,
1769,
3639,
17589,
1304,
18,
5902,
548,
1499,
26034,
12,
6299,
16,
286,
16,
2634,
1290,
3420,
12,
7734,
819,
16,
286,
10019,
3639,
727,
514,
2077,
273,
286,
18,
588,
4247,
5621,
3639,
309,
261,
2649,
480,
446,
13,
288,
5411,
17589,
1304,
10792,
263,
5902,
1499,
12,
6299,
16,
10209,
74,
2918,
18,
14123,
67,
12043,
16,
2077,
1769,
3639,
289,
3639,
727,
514,
1027,
3969,
273,
286,
18,
588,
1999,
3969,
5621,
3639,
309,
261,
492,
3969,
480,
446,
13,
288,
5411,
17589,
1304,
18,
5902,
1499,
12,
6299,
16,
10209,
74,
2918,
18,
28402,
30819,
67,
12043,
16,
10792,
1027,
3969,
1769,
3639,
289,
3639,
2633,
18,
1937,
1046,
12,
8382,
74,
2918,
18,
31901,
67,
41,
26817,
16,
286,
1769,
3639,
17589,
1304,
18,
5902,
1499,
12,
6299,
16,
10209,
74,
2918,
18,
5237,
67,
12043,
16,
7734,
752,
1315,
2885,
28634,
12,
451,
16,
1566,
16,
1057,
2279,
10019,
3639,
17589,
1304,
18,
5902,
1499,
12,
6299,
16,
10209,
74,
2918,
18,
15066,
67,
12043,
16,
7734,
752,
1315,
2885,
1499,
12,
451,
16,
1566,
16,
1057,
2279,
10019,
3639,
2633,
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,
2017,
6313,
1864,
1315,
12,
6385,
20306,
819,
16,
5411,
727,
399,
4353,
6313,
1315,
286,
16,
727,
7846,
2633,
16,
5411,
727,
399,
4353,
6313,
6747,
18,
6313,
1499,
1566,
16,
727,
509,
1057,
2279,
13,
5411,
1216,
1860,
288,
3639,
2633,
18,
1937,
1046,
12,
8382,
74,
2918,
18,
2455,
67,
41,
26817,
16,
286,
1769,
3639,
17589,
1304,
18,
5902,
548,
1499,
26034,
12,
6299,
16,
286,
16,
2634,
1290,
3420,
12,
7734,
819,
16,
286,
10019,
3639,
727,
514,
2077,
273,
286,
18,
588,
4247,
5621,
3639,
309,
261,
2649,
480,
446,
13,
288,
5411,
17589,
1304,
10792,
263,
5902,
1499,
12,
6299,
16,
10209,
74,
2918,
18,
14123,
67,
12043,
16,
2
] |
return _deployer; }
|
return _deployer; }
|
public String getDeployer() { return _deployer; }
|
45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/e4081f282ae2ddc9c22fc84cbce46d579a3ac0dc/HProcess.java/buggy/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HProcess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
10015,
264,
1435,
288,
202,
202,
2463,
389,
12411,
264,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
10015,
264,
1435,
288,
202,
202,
2463,
389,
12411,
264,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
getRequest().setAttribute("object", new Department());
|
Department department = new Department(); getRequest().setAttribute("object", department);
|
public void testBusinessObject() throws Exception { ComponentContext componentContext = new ComponentContext(); ComponentContext.setContext(componentContext, getRequest()); setRequestPathInfo("/initObjectView"); getRequest().setAttribute("object", new Department()); getRequest().setAttribute("viewType", "summary"); actionPerform(); Model model = Model.getInstanceByName("testmodel"); assertNotNull(componentContext.getAttribute("leafClds")); assertTrue(((Collection) componentContext.getAttribute("leafClds")).contains(model.getClassDescriptorByName(Department.class.getName()))); assertFalse(((Collection) componentContext.getAttribute("leafClds")).contains(model.getClassDescriptorByName(RandomInterface.class.getName()))); assertFalse(((Collection) componentContext.getAttribute("leafClds")).contains(model.getClassDescriptorByName(InterMineObject.class.getName()))); Map primaryKeyFields = (Map) componentContext.getAttribute("primaryKeyFields"); assertNotNull(primaryKeyFields); LinkedHashMap testFieldNames = new LinkedHashMap(); testFieldNames.put("name","name"); assertEquals(testFieldNames, primaryKeyFields); }
|
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/45a954df52efe55bf88cc537947ac4e9d1c9964b/ObjectViewControllerTest.java/clean/testmodel/webapp/test/src/org/intermine/web/results/ObjectViewControllerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
13423,
921,
1435,
1216,
1185,
288,
3639,
5435,
1042,
1794,
1042,
273,
394,
5435,
1042,
5621,
3639,
5435,
1042,
18,
542,
1042,
12,
4652,
1042,
16,
4328,
10663,
3639,
12475,
743,
966,
2932,
19,
2738,
921,
1767,
8863,
3639,
4019,
24144,
443,
15750,
273,
394,
4019,
24144,
5621,
4328,
7675,
542,
1499,
2932,
1612,
3113,
443,
15750,
1769,
3639,
4328,
7675,
542,
1499,
2932,
1945,
559,
3113,
315,
7687,
8863,
3639,
1301,
4990,
5621,
3639,
3164,
938,
273,
3164,
18,
588,
1442,
5911,
2932,
3813,
2284,
8863,
3639,
25395,
12,
4652,
1042,
18,
588,
1499,
2932,
12070,
39,
1236,
87,
7923,
1769,
3639,
1815,
5510,
12443,
12,
2532,
13,
1794,
1042,
18,
588,
1499,
2932,
12070,
39,
1236,
87,
7923,
2934,
12298,
12,
2284,
18,
588,
797,
3187,
5911,
12,
30358,
18,
1106,
18,
17994,
1435,
3719,
1769,
3639,
1815,
8381,
12443,
12,
2532,
13,
1794,
1042,
18,
588,
1499,
2932,
12070,
39,
1236,
87,
7923,
2934,
12298,
12,
2284,
18,
588,
797,
3187,
5911,
12,
8529,
1358,
18,
1106,
18,
17994,
1435,
3719,
1769,
3639,
1815,
8381,
12443,
12,
2532,
13,
1794,
1042,
18,
588,
1499,
2932,
12070,
39,
1236,
87,
7923,
2934,
12298,
12,
2284,
18,
588,
797,
3187,
5911,
12,
2465,
49,
558,
921,
18,
1106,
18,
17994,
1435,
3719,
1769,
3639,
1635,
8841,
2314,
273,
261,
863,
13,
1794,
1042,
18,
588,
1499,
2932,
8258,
653,
2314,
8863,
3639,
25395,
12,
8258,
653,
2314,
1769,
3639,
13589,
1842,
20393,
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,
13423,
921,
1435,
1216,
1185,
288,
3639,
5435,
1042,
1794,
1042,
273,
394,
5435,
1042,
5621,
3639,
5435,
1042,
18,
542,
1042,
12,
4652,
1042,
16,
4328,
10663,
3639,
12475,
743,
966,
2932,
19,
2738,
921,
1767,
8863,
3639,
4019,
24144,
443,
15750,
273,
394,
4019,
24144,
5621,
4328,
7675,
542,
1499,
2932,
1612,
3113,
443,
15750,
1769,
3639,
4328,
7675,
542,
1499,
2932,
1945,
559,
3113,
315,
7687,
8863,
3639,
1301,
4990,
5621,
3639,
3164,
938,
273,
3164,
18,
588,
1442,
5911,
2932,
3813,
2284,
8863,
3639,
25395,
12,
4652,
1042,
18,
588,
1499,
2932,
12070,
39,
1236,
87,
7923,
1769,
3639,
1815,
5510,
12443,
12,
2532,
13,
1794,
1042,
18,
588,
1499,
2932,
2
] |
System.out.print("static const int VM_Scheduler_PRIMORDIAL_THREAD_INDEX = "
|
p("static const int VM_Scheduler_PRIMORDIAL_THREAD_INDEX = "
|
static void emitVirtualMachineDeclarations (int bootImageAddress) { // load address for the boot image // System.out.print("static const int bootImageAddress = 0x" + Integer.toHexString(bootImageAddress) + ";\n"); // values in VM_Constants, from VM_Configuration // //-#if RVM_FOR_POWERPC if (VM.BuildForPowerPC) { System.out.print("static const int VM_Constants_JTOC_POINTER = " + VM_Constants.JTOC_POINTER + ";\n"); System.out.print("static const int VM_Constants_THREAD_ID_REGISTER = " + VM_Constants.THREAD_ID_REGISTER + ";\n"); System.out.print("static const int VM_Constants_FRAME_POINTER = " + VM_Constants.FRAME_POINTER + ";\n"); System.out.print("static const int VM_Constants_PROCESSOR_REGISTER = " + VM_Constants.PROCESSOR_REGISTER + ";\n"); System.out.print("static const int VM_Constants_FIRST_VOLATILE_GPR = " + VM_Constants.FIRST_VOLATILE_GPR + ";\n"); System.out.print("static const int VM_Constants_DIVIDE_BY_ZERO_MASK = " + VM_Constants.DIVIDE_BY_ZERO_MASK + ";\n"); System.out.print("static const int VM_Constants_DIVIDE_BY_ZERO_TRAP = " + VM_Constants.DIVIDE_BY_ZERO_TRAP + ";\n"); System.out.print("static const int VM_Constants_MUST_IMPLEMENT_MASK = " + VM_Constants.MUST_IMPLEMENT_MASK + ";\n"); System.out.print("static const int VM_Constants_MUST_IMPLEMENT_TRAP = " + VM_Constants.MUST_IMPLEMENT_TRAP + ";\n"); System.out.print("static const int VM_Constants_STORE_CHECK_MASK = " + VM_Constants.STORE_CHECK_MASK + ";\n"); System.out.print("static const int VM_Constants_STORE_CHECK_TRAP = " + VM_Constants.STORE_CHECK_TRAP + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_MASK = " + VM_Constants.ARRAY_INDEX_MASK + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_TRAP = " + VM_Constants.ARRAY_INDEX_TRAP + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_REG_MASK = " + VM_Constants.ARRAY_INDEX_REG_MASK + ";\n"); System.out.print("static const int VM_Constants_ARRAY_INDEX_REG_SHIFT = " + VM_Constants.ARRAY_INDEX_REG_SHIFT + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_MASK = " + VM_Constants.CONSTANT_ARRAY_INDEX_MASK + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_TRAP = " + VM_Constants.CONSTANT_ARRAY_INDEX_TRAP + ";\n"); System.out.print("static const int VM_Constants_CONSTANT_ARRAY_INDEX_INFO = " + VM_Constants.CONSTANT_ARRAY_INDEX_INFO + ";\n"); System.out.print("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_MASK = " + VM_Constants.WRITE_BUFFER_OVERFLOW_MASK + ";\n"); System.out.print("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_TRAP = " + VM_Constants.WRITE_BUFFER_OVERFLOW_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_MASK = " + VM_Constants.STACK_OVERFLOW_MASK + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_HAVE_FRAME_TRAP = " + VM_Constants.STACK_OVERFLOW_HAVE_FRAME_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACK_OVERFLOW_TRAP = " + VM_Constants.STACK_OVERFLOW_TRAP + ";\n"); System.out.print("static const int VM_Constants_CHECKCAST_MASK = " + VM_Constants.CHECKCAST_MASK + ";\n"); System.out.print("static const int VM_Constants_CHECKCAST_TRAP = " + VM_Constants.CHECKCAST_TRAP + ";\n"); System.out.print("static const int VM_Constants_REGENERATE_MASK = " + VM_Constants.REGENERATE_MASK + ";\n"); System.out.print("static const int VM_Constants_REGENERATE_TRAP = " + VM_Constants.REGENERATE_TRAP + ";\n"); System.out.print("static const int VM_Constants_NULLCHECK_MASK = " + VM_Constants.NULLCHECK_MASK + ";\n"); System.out.print("static const int VM_Constants_NULLCHECK_TRAP = " + VM_Constants.NULLCHECK_TRAP + ";\n"); System.out.print("static const int VM_Constants_JNI_STACK_TRAP_MASK = " + VM_Constants.JNI_STACK_TRAP_MASK + ";\n"); System.out.print("static const int VM_Constants_JNI_STACK_TRAP = " + VM_Constants.JNI_STACK_TRAP + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_NEXT_INSTRUCTION_OFFSET = " + VM_Constants.STACKFRAME_NEXT_INSTRUCTION_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_ALIGNMENT = " + VM_Constants.STACKFRAME_ALIGNMENT + " ;\n"); } //-#endif //-#if RVM_FOR_IA32 if (VM.BuildForIA32) { System.out.print("static const int VM_Constants_EAX = " + VM_Constants.EAX + ";\n"); System.out.print("static const int VM_Constants_ECX = " + VM_Constants.ECX + ";\n"); System.out.print("static const int VM_Constants_EDX = " + VM_Constants.EDX + ";\n"); System.out.print("static const int VM_Constants_EBX = " + VM_Constants.EBX + ";\n"); System.out.print("static const int VM_Constants_ESP = " + VM_Constants.ESP + ";\n"); System.out.print("static const int VM_Constants_EBP = " + VM_Constants.EBP + ";\n"); System.out.print("static const int VM_Constants_ESI = " + VM_Constants.ESI + ";\n"); System.out.print("static const int VM_Constants_EDI = " + VM_Constants.EDI + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_BODY_OFFSET = " + VM_Constants.STACKFRAME_BODY_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_RETURN_ADDRESS_OFFSET = " + VM_Constants.STACKFRAME_RETURN_ADDRESS_OFFSET + ";\n"); System.out.print("static const int VM_Constants_RVM_TRAP_BASE = " + VM_Constants.RVM_TRAP_BASE + ";\n"); } //-#endif System.out.print("static const int VM_Constants_STACK_SIZE_GUARD = " + VM_Constants.STACK_SIZE_GUARD + ";\n"); System.out.print("static const int VM_Constants_INVISIBLE_METHOD_ID = " + VM_Constants.INVISIBLE_METHOD_ID + ";\n"); System.out.print("static const int VM_ThinLockConstants_TL_THREAD_ID_SHIFT = " + VM_ThinLockConstants.TL_THREAD_ID_SHIFT + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_HEADER_SIZE = " + VM_Constants.STACKFRAME_HEADER_SIZE + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_METHOD_ID_OFFSET = " + VM_Constants.STACKFRAME_METHOD_ID_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_FRAME_POINTER_OFFSET = " + VM_Constants.STACKFRAME_FRAME_POINTER_OFFSET + ";\n"); System.out.print("static const int VM_Constants_STACKFRAME_SENTINEL_FP = " + VM_Constants.STACKFRAME_SENTINEL_FP.toInt() + ";\n"); System.out.print("\n"); // values in VM_ObjectModel // System.out.println("static const int VM_ObjectModel_ARRAY_LENGTH_OFFSET = " + VM_ObjectModel.getArrayLengthOffset() + "\n;"); // values in VM_Scheduler // System.out.print("static const int VM_Scheduler_PRIMORDIAL_PROCESSOR_ID = " + VM_Scheduler.PRIMORDIAL_PROCESSOR_ID + ";\n"); System.out.print("static const int VM_Scheduler_PRIMORDIAL_THREAD_INDEX = " + VM_Scheduler.PRIMORDIAL_THREAD_INDEX + ";\n"); System.out.print("\n"); // values in VM_ThreadEventConstants // System.out.print("static const double VM_ThreadEventConstants_WAIT_INFINITE = " + VM_ThreadEventConstants.WAIT_INFINITE + ";\n"); // values in VM_ThreadIOQueue // System.out.print("static const int VM_ThreadIOQueue_READ_OFFSET = " + VM_ThreadIOQueue.READ_OFFSET + ";\n"); System.out.print("static const int VM_ThreadIOQueue_WRITE_OFFSET = " + VM_ThreadIOQueue.WRITE_OFFSET + ";\n"); System.out.print("static const int VM_ThreadIOQueue_EXCEPT_OFFSET = " + VM_ThreadIOQueue.EXCEPT_OFFSET + ";\n"); System.out.print("\n"); // values in VM_ThreadIOConstants // System.out.print("static const int VM_ThreadIOConstants_FD_READY = " + VM_ThreadIOConstants.FD_READY + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_READY_BIT = " + VM_ThreadIOConstants.FD_READY_BIT + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_INVALID = " + VM_ThreadIOConstants.FD_INVALID + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_INVALID_BIT = " + VM_ThreadIOConstants.FD_INVALID_BIT + ";\n"); System.out.print("static const int VM_ThreadIOConstants_FD_MASK = " + VM_ThreadIOConstants.FD_MASK + ";\n"); System.out.print("\n"); // values in VM_ThreadProcessWaitQueue // System.out.print("static const int VM_ThreadProcessWaitQueue_PROCESS_FINISHED = " + VM_ThreadProcessWaitQueue.PROCESS_FINISHED + ";\n"); // values in VM_Runtime // System.out.print("static const int VM_Runtime_TRAP_UNKNOWN = " + VM_Runtime.TRAP_UNKNOWN + ";\n"); System.out.print("static const int VM_Runtime_TRAP_NULL_POINTER = " + VM_Runtime.TRAP_NULL_POINTER + ";\n"); System.out.print("static const int VM_Runtime_TRAP_ARRAY_BOUNDS = " + VM_Runtime.TRAP_ARRAY_BOUNDS + ";\n"); System.out.print("static const int VM_Runtime_TRAP_DIVIDE_BY_ZERO = " + VM_Runtime.TRAP_DIVIDE_BY_ZERO + ";\n"); System.out.print("static const int VM_Runtime_TRAP_STACK_OVERFLOW = " + VM_Runtime.TRAP_STACK_OVERFLOW + ";\n"); System.out.print("static const int VM_Runtime_TRAP_CHECKCAST = " + VM_Runtime.TRAP_CHECKCAST + ";\n"); System.out.print("static const int VM_Runtime_TRAP_REGENERATE = " + VM_Runtime.TRAP_REGENERATE + ";\n"); System.out.print("static const int VM_Runtime_TRAP_JNI_STACK = " + VM_Runtime.TRAP_JNI_STACK + ";\n"); System.out.print("static const int VM_Runtime_TRAP_MUST_IMPLEMENT = " + VM_Runtime.TRAP_MUST_IMPLEMENT + ";\n"); System.out.print("static const int VM_Runtime_TRAP_STORE_CHECK = " + VM_Runtime.TRAP_STORE_CHECK + ";\n"); System.out.println(); // values in VM_FileSystem // System.out.print("static const int VM_FileSystem_OPEN_READ = " + VM_FileSystem.OPEN_READ + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_WRITE = " + VM_FileSystem.OPEN_WRITE + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_MODIFY = " + VM_FileSystem.OPEN_MODIFY + ";\n"); System.out.print("static const int VM_FileSystem_OPEN_APPEND = " + VM_FileSystem.OPEN_APPEND + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_SET = " + VM_FileSystem.SEEK_SET + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_CUR = " + VM_FileSystem.SEEK_CUR + ";\n"); System.out.print("static const int VM_FileSystem_SEEK_END = " + VM_FileSystem.SEEK_END + ";\n"); System.out.print("static const int VM_FileSystem_STAT_EXISTS = " + VM_FileSystem.STAT_EXISTS + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_FILE = " + VM_FileSystem.STAT_IS_FILE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_DIRECTORY = " + VM_FileSystem.STAT_IS_DIRECTORY + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_READABLE = " + VM_FileSystem.STAT_IS_READABLE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_IS_WRITABLE = " + VM_FileSystem.STAT_IS_WRITABLE + ";\n"); System.out.print("static const int VM_FileSystem_STAT_LAST_MODIFIED = " + VM_FileSystem.STAT_LAST_MODIFIED + ";\n"); System.out.print("static const int VM_FileSystem_STAT_LENGTH = " + VM_FileSystem.STAT_LENGTH + ";\n"); // fields in VM_Processor // int offset; offset = VM_Entrypoints.threadSwitchRequestedField.getOffset(); System.out.print("static const int VM_Processor_threadSwitchRequested_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); System.out.print("static const int VM_Processor_activeThreadStackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.pthreadIDField.getOffset(); System.out.print("static const int VM_Processor_pthread_id_offset = " + offset + ";\n"); offset = VM_Entrypoints.epochField.getOffset(); System.out.print("static const int VM_Processor_epoch_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadField.getOffset(); System.out.print("static const int VM_Processor_activeThread_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.processorThreadIdField.getOffset(); System.out.print("static const int VM_Processor_threadId_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorFPField.getOffset(); System.out.print("static const int VM_Processor_framePointer_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorJTOCField.getOffset(); System.out.print("static const int VM_Processor_jtoc_offset = " + offset + ";\n"); offset = VM_Entrypoints.processorTrapParamField.getOffset(); System.out.print("static const int VM_Processor_arrayIndexTrapParam_offset = " + offset + ";\n"); //-#endif // fields in VM_Thread // offset = VM_Entrypoints.threadStackField.getOffset(); System.out.print("static const int VM_Thread_stack_offset = " + offset + ";\n"); offset = VM_Entrypoints.stackLimitField.getOffset(); System.out.print("static const int VM_Thread_stackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.threadHardwareExceptionRegistersField.getOffset(); System.out.print("static const int VM_Thread_hardwareExceptionRegisters_offset = " + offset + ";\n"); offset = VM_Entrypoints.jniEnvField.getOffset(); System.out.print("static const int VM_Thread_jniEnv_offset = " + offset + ";\n"); // fields in VM_Registers // offset = VM_Entrypoints.registersGPRsField.getOffset(); System.out.print("static const int VM_Registers_gprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersFPRsField.getOffset(); System.out.print("static const int VM_Registers_fprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersIPField.getOffset(); System.out.print("static const int VM_Registers_ip_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.registersFPField.getOffset(); System.out.print("static const int VM_Registers_fp_offset = " + offset + ";\n"); //-#endif //-#if RVM_FOR_POWERPC offset = VM_Entrypoints.registersLRField.getOffset(); System.out.print("static const int VM_Registers_lr_offset = " + offset + ";\n"); //-#endif offset = VM_Entrypoints.registersInUseField.getOffset(); System.out.print("static const int VM_Registers_inuse_offset = " + offset + ";\n"); // fields in VM_JNIEnvironment offset = VM_Entrypoints.JNIEnvAddressField.getOffset(); System.out.print("static const int VM_JNIEnvironment_JNIEnvAddress_offset = " + offset + ";\n"); // fields in java.net.InetAddress // offset = VM_Entrypoints.inetAddressAddressField.getOffset(); System.out.print("static const int java_net_InetAddress_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.inetAddressFamilyField.getOffset(); System.out.print("static const int java_net_InetAddress_family_offset = " + offset + ";\n"); // fields in java.net.SocketImpl // offset = VM_Entrypoints.socketImplAddressField.getOffset(); System.out.print("static const int java_net_SocketImpl_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.socketImplPortField.getOffset(); System.out.print("static const int java_net_SocketImpl_port_offset = " + offset + ";\n"); // fields in com.ibm.JikesRVM.memoryManagers.JMTk.BasePlan offset = VM_Entrypoints.gcInProgressField.getOffset(); System.out.print("static const int com_ibm_JikesRVM_memoryManagers_JMTk_BasePlan_gcInProgressOffset = " + offset + ";\n"); }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/925454167bc483f10cf328dfcd6f344b2ba4704d/GenerateInterfaceDeclarations.java/clean/rvm/src/tools/bootImageRunner/GenerateInterfaceDeclarations.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
3626,
27454,
21408,
261,
474,
4835,
2040,
1887,
13,
288,
565,
368,
1262,
1758,
364,
326,
4835,
1316,
565,
368,
565,
2332,
18,
659,
18,
1188,
2932,
3845,
1866,
509,
4835,
2040,
1887,
13491,
273,
374,
92,
6,
3639,
397,
2144,
18,
869,
14866,
12,
7137,
2040,
1887,
13,
397,
30750,
82,
8863,
565,
368,
924,
316,
8251,
67,
2918,
16,
628,
8251,
67,
1750,
565,
368,
565,
368,
17,
7,
430,
534,
7397,
67,
7473,
67,
2419,
18839,
3513,
565,
309,
261,
7397,
18,
3116,
1290,
13788,
3513,
13,
288,
1377,
2332,
18,
659,
18,
1188,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
46,
4296,
39,
67,
2419,
9125,
9079,
273,
315,
1850,
397,
8251,
67,
2918,
18,
46,
4296,
39,
67,
2419,
9125,
397,
30750,
82,
8863,
1377,
2332,
18,
659,
18,
1188,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
21730,
67,
734,
67,
27511,
540,
273,
315,
1850,
397,
8251,
67,
2918,
18,
21730,
67,
734,
67,
27511,
397,
30750,
82,
8863,
1377,
2332,
18,
659,
18,
1188,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
15072,
67,
2419,
9125,
2868,
273,
315,
1850,
397,
8251,
67,
2918,
18,
15072,
67,
2419,
9125,
397,
30750,
82,
8863,
1377,
2332,
18,
659,
18,
1188,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
16560,
916,
67,
27511,
540,
273,
315,
1850,
397,
8251,
67,
2918,
18,
16560,
916,
67,
27511,
397,
30750,
82,
8863,
1377,
2332,
18,
659,
18,
1188,
2932,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
3626,
27454,
21408,
261,
474,
4835,
2040,
1887,
13,
288,
565,
368,
1262,
1758,
364,
326,
4835,
1316,
565,
368,
565,
2332,
18,
659,
18,
1188,
2932,
3845,
1866,
509,
4835,
2040,
1887,
13491,
273,
374,
92,
6,
3639,
397,
2144,
18,
869,
14866,
12,
7137,
2040,
1887,
13,
397,
30750,
82,
8863,
565,
368,
924,
316,
8251,
67,
2918,
16,
628,
8251,
67,
1750,
565,
368,
565,
368,
17,
7,
430,
534,
7397,
67,
7473,
67,
2419,
18839,
3513,
565,
309,
261,
7397,
18,
3116,
1290,
13788,
3513,
13,
288,
1377,
2332,
18,
659,
18,
1188,
2932,
3845,
1866,
509,
8251,
67,
2918,
67,
46,
4296,
39,
67,
2419,
9125,
9079,
273,
315,
1850,
397,
2
] |
protected void processUndef(int pos, int endPos) { }
|
protected void processUndef(int pos, int endPos, char[] symbol, int namePos, Object definition) { }
|
protected void processUndef(int pos, int endPos) { }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1e8393f7a2cd5d5de7919712722d6a1202f825c5/Scanner2.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/Scanner2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
1207,
984,
536,
12,
474,
949,
16,
509,
19809,
13,
288,
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,
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,
565,
4750,
918,
1207,
984,
536,
12,
474,
949,
16,
509,
19809,
13,
288,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Node m = n.ext().exceptionCheckOverride(this);
|
Node m = n.exceptionCheckOverride(this);
|
public Node override(Node n) { pushScope(); try { Node m = n.ext().exceptionCheckOverride(this); SubtypeSet t = popScope(); throwsSet().addAll(t); return m; } catch (SemanticException e) { Position position = e.position(); if (position == null) { position = n.position(); } eq.enqueue(ErrorInfo.SEMANTIC_ERROR, e.getMessage(), position); popScope(); return n; } }
|
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/7335022712984bae07f6e015bcc31027c155c131/ExceptionChecker.java/clean/src/polyglot/visit/ExceptionChecker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
3849,
12,
907,
290,
13,
288,
3639,
1817,
3876,
5621,
202,
698,
288,
202,
565,
2029,
312,
273,
290,
18,
4064,
1564,
6618,
12,
2211,
1769,
5411,
2592,
723,
694,
268,
273,
1843,
3876,
5621,
202,
565,
1216,
694,
7675,
1289,
1595,
12,
88,
1769,
202,
565,
327,
312,
31,
202,
97,
202,
14683,
261,
13185,
9941,
503,
425,
13,
288,
202,
565,
11010,
1754,
273,
425,
18,
3276,
5621,
202,
565,
309,
261,
3276,
422,
446,
13,
288,
202,
202,
3276,
273,
290,
18,
3276,
5621,
202,
565,
289,
202,
565,
7555,
18,
21798,
12,
668,
966,
18,
1090,
49,
6856,
2871,
67,
3589,
16,
425,
18,
24906,
9334,
1754,
1769,
5411,
1843,
3876,
5621,
202,
565,
327,
290,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
3849,
12,
907,
290,
13,
288,
3639,
1817,
3876,
5621,
202,
698,
288,
202,
565,
2029,
312,
273,
290,
18,
4064,
1564,
6618,
12,
2211,
1769,
5411,
2592,
723,
694,
268,
273,
1843,
3876,
5621,
202,
565,
1216,
694,
7675,
1289,
1595,
12,
88,
1769,
202,
565,
327,
312,
31,
202,
97,
202,
14683,
261,
13185,
9941,
503,
425,
13,
288,
202,
565,
11010,
1754,
273,
425,
18,
3276,
5621,
202,
565,
309,
261,
3276,
422,
446,
13,
288,
202,
202,
3276,
273,
290,
18,
3276,
5621,
202,
565,
289,
202,
565,
7555,
18,
21798,
12,
668,
966,
18,
1090,
49,
6856,
2871,
67,
3589,
16,
425,
18,
24906,
9334,
1754,
1769,
5411,
1843,
3876,
5621,
2
] |
viewerControl.addMouseListener(new MouseAdapter(){ /* (non-Javadoc)
|
viewerControl.addMouseListener(new MouseAdapter() { /* * (non-Javadoc) *
|
public Control createContents(Composite parent, WorkbenchWindow window) { workbenchWindow = window; region = new Composite(parent, SWT.NONE); FormLayout regionLayout = new FormLayout(); region.setLayout(regionLayout); Label seperator = new Label(region, SWT.SEPARATOR); item = new ProgressAnimationItem(window); item.createControl(region); Control itemControl = item.getControl(); viewer = new ProgressViewer(region, SWT.NO_FOCUS, 1,36); viewer.setUseHashlookup(true); Control viewerControl = viewer.getControl(); int widthPreference = AnimationManager.getInstance().getPreferredWidth(); Point preferredSize = viewer.getSizeHints(); int margin = 2; FormData labelData = new FormData(); labelData.left = new FormAttachment(0, margin); labelData.top = new FormAttachment(0); seperator.setLayoutData(labelData); FormData itemData = new FormData(); itemData.right = new FormAttachment(100, (-1 * margin)); itemData.top = new FormAttachment(viewerControl,margin,SWT.TOP); itemData.width = widthPreference + (margin * 2); itemData.height = preferredSize.y; itemControl.setLayoutData(itemData); FormData viewerData = new FormData(); viewerData.left = new FormAttachment(seperator,margin); viewerData.right = new FormAttachment(itemControl, margin); viewerData.top = new FormAttachment(0); viewerData.bottom = new FormAttachment(100); viewerData.width = preferredSize.x + margin; viewerData.height = preferredSize.y; viewerControl.setLayoutData(viewerData); viewerControl.addMouseListener(new MouseAdapter(){ /* (non-Javadoc) * @see org.eclipse.swt.events.MouseAdapter#mouseDoubleClick(org.eclipse.swt.events.MouseEvent) */ public void mouseDoubleClick(MouseEvent e) { ProgressManagerUtil.openProgressView(workbenchWindow); } }); viewerControl.addMouseTrackListener(new MouseTrackListener(){ /* (non-Javadoc) * @see org.eclipse.swt.events.MouseTrackListener#mouseEnter(org.eclipse.swt.events.MouseEvent) */ public void mouseEnter(MouseEvent e) { //Do nothing } /* (non-Javadoc) * @see org.eclipse.swt.events.MouseTrackListener#mouseExit(org.eclipse.swt.events.MouseEvent) */ public void mouseExit(MouseEvent e) { //Do nothing } /* (non-Javadoc) * @see org.eclipse.swt.events.MouseTrackListener#mouseHover(org.eclipse.swt.events.MouseEvent) */ public void mouseHover(MouseEvent e) { item.openFloatingWindow(); } }); IContentProvider provider = new ProgressViewerContentProvider(viewer); viewer.setContentProvider(provider); viewer.setInput(provider); viewer.setLabelProvider(new ProgressViewerLabelProvider(viewerControl)); viewer.setSorter(ProgressManagerUtil.getProgressViewerSorter()); return region; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6f1ef786a75c43242b899349c446fa00af27c2ae/ProgressRegion.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressRegion.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8888,
752,
6323,
12,
9400,
982,
16,
4147,
22144,
3829,
2742,
13,
288,
9506,
202,
1252,
22144,
3829,
273,
2742,
31,
9506,
202,
6858,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
1204,
3744,
3020,
3744,
273,
394,
2748,
3744,
5621,
202,
202,
6858,
18,
542,
3744,
12,
6858,
3744,
1769,
9506,
202,
2224,
22282,
639,
273,
394,
5287,
12,
6858,
16,
348,
8588,
18,
4550,
1769,
9506,
202,
1726,
273,
394,
10980,
10816,
1180,
12,
5668,
1769,
202,
202,
1726,
18,
2640,
3367,
12,
6858,
1769,
202,
202,
3367,
761,
3367,
273,
761,
18,
588,
3367,
5621,
9506,
202,
25256,
273,
394,
10980,
18415,
12,
6858,
16,
348,
8588,
18,
3417,
67,
3313,
39,
3378,
16,
404,
16,
5718,
1769,
202,
202,
25256,
18,
542,
3727,
2310,
8664,
12,
3767,
1769,
202,
202,
3367,
14157,
3367,
273,
14157,
18,
588,
3367,
5621,
9506,
202,
474,
1835,
9624,
273,
22685,
1318,
18,
588,
1442,
7675,
588,
16028,
2384,
5621,
202,
202,
2148,
9119,
1225,
273,
14157,
18,
588,
1225,
13368,
5621,
202,
202,
474,
7333,
273,
576,
31,
9506,
202,
30079,
1433,
751,
273,
394,
2748,
751,
5621,
202,
202,
1925,
751,
18,
4482,
273,
394,
2748,
6803,
12,
20,
16,
7333,
1769,
202,
202,
1925,
751,
18,
3669,
273,
394,
2748,
6803,
12,
20,
1769,
202,
202,
307,
457,
639,
18,
542,
3744,
751,
12,
1925,
751,
1769,
9506,
202,
30079,
30107,
273,
394,
2748,
751,
5621,
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,
8888,
752,
6323,
12,
9400,
982,
16,
4147,
22144,
3829,
2742,
13,
288,
9506,
202,
1252,
22144,
3829,
273,
2742,
31,
9506,
202,
6858,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
1204,
3744,
3020,
3744,
273,
394,
2748,
3744,
5621,
202,
202,
6858,
18,
542,
3744,
12,
6858,
3744,
1769,
9506,
202,
2224,
22282,
639,
273,
394,
5287,
12,
6858,
16,
348,
8588,
18,
4550,
1769,
9506,
202,
1726,
273,
394,
10980,
10816,
1180,
12,
5668,
1769,
202,
202,
1726,
18,
2640,
3367,
12,
6858,
1769,
202,
202,
3367,
761,
3367,
273,
761,
18,
588,
3367,
5621,
9506,
202,
25256,
273,
394,
10980,
18415,
12,
6858,
16,
348,
8588,
18,
2
] |
mod.setRubyClass((RubyModule) recv); ruby.getClasses().getModuleClass().callInit(null);
|
mod.setRubyClass((RubyModule) recv); ruby.getClasses().getModuleClass().callInit(null);
|
public static RubyModule m_new(Ruby ruby, RubyObject recv) { RubyModule mod = RubyModule.m_newModule(ruby); mod.setRubyClass((RubyModule) recv); ruby.getClasses().getModuleClass().callInit(null); return mod; }
|
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
19817,
3120,
312,
67,
2704,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
13,
288,
202,
202,
54,
10340,
3120,
681,
273,
19817,
3120,
18,
81,
67,
2704,
3120,
12,
27768,
1769,
202,
202,
1711,
18,
542,
54,
10340,
797,
12443,
54,
10340,
3120,
13,
10665,
1769,
202,
202,
27768,
18,
588,
4818,
7675,
588,
3120,
797,
7675,
1991,
2570,
12,
2011,
1769,
202,
202,
2463,
681,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
19817,
3120,
312,
67,
2704,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
13,
288,
202,
202,
54,
10340,
3120,
681,
273,
19817,
3120,
18,
81,
67,
2704,
3120,
12,
27768,
1769,
202,
202,
1711,
18,
542,
54,
10340,
797,
12443,
54,
10340,
3120,
13,
10665,
1769,
202,
202,
27768,
18,
588,
4818,
7675,
588,
3120,
797,
7675,
1991,
2570,
12,
2011,
1769,
202,
202,
2463,
681,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void testGenericList(){ testString = "import java.util.*;"+ "List<Float> l = new LinkedList<Float>();"+ "l.add(new Float(5.5));"+ "l.add(new Float(7.3));"+ "String s = l.toString();"+ "s;"; assertEquals("s should be [5.5, 7.3]", "[5.5, 7.3]", interpret(testString)); testString = "Float f = l.get(0); f;"; assertEquals("f should be 5.5", new Float(5.5), interpret(testString)); testString = "l.remove(0); Float f2 = l.get(0); f2;"; assertEquals("f2 should be 7.3", new Float(7.3), interpret(testString)); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/321e79b1f242fd0fc2fe88ee000f7a52383c7144/GenericTreeTest.java/clean/dynamicjava/src/koala/dynamicjava/tree/tiger/generic/GenericTreeTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
7014,
682,
1435,
95,
565,
1842,
780,
273,
1377,
315,
5666,
2252,
18,
1367,
4509,
4868,
15,
1377,
315,
682,
32,
4723,
34,
328,
273,
394,
10688,
32,
4723,
34,
26994,
15,
1377,
315,
80,
18,
1289,
12,
2704,
5450,
12,
25,
18,
25,
10019,
6,
15,
1377,
315,
80,
18,
1289,
12,
2704,
5450,
12,
27,
18,
23,
10019,
6,
15,
1377,
315,
780,
272,
273,
328,
18,
10492,
26994,
15,
1377,
315,
87,
4868,
31,
565,
1815,
8867,
2932,
87,
1410,
506,
306,
25,
18,
25,
16,
2371,
18,
23,
65,
3113,
5158,
25,
18,
25,
16,
2371,
18,
23,
65,
3113,
10634,
12,
3813,
780,
10019,
565,
1842,
780,
273,
315,
4723,
284,
273,
328,
18,
588,
12,
20,
1769,
284,
4868,
31,
565,
1815,
8867,
2932,
74,
1410,
506,
1381,
18,
25,
3113,
394,
5450,
12,
25,
18,
25,
3631,
10634,
12,
3813,
780,
10019,
565,
1842,
780,
273,
315,
80,
18,
4479,
12,
20,
1769,
5450,
284,
22,
273,
328,
18,
588,
12,
20,
1769,
284,
22,
4868,
31,
565,
1815,
8867,
2932,
74,
22,
1410,
506,
2371,
18,
23,
3113,
394,
5450,
12,
27,
18,
23,
3631,
10634,
12,
3813,
780,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
7014,
682,
1435,
95,
565,
1842,
780,
273,
1377,
315,
5666,
2252,
18,
1367,
4509,
4868,
15,
1377,
315,
682,
32,
4723,
34,
328,
273,
394,
10688,
32,
4723,
34,
26994,
15,
1377,
315,
80,
18,
1289,
12,
2704,
5450,
12,
25,
18,
25,
10019,
6,
15,
1377,
315,
80,
18,
1289,
12,
2704,
5450,
12,
27,
18,
23,
10019,
6,
15,
1377,
315,
780,
272,
273,
328,
18,
10492,
26994,
15,
1377,
315,
87,
4868,
31,
565,
1815,
8867,
2932,
87,
1410,
506,
306,
25,
18,
25,
16,
2371,
18,
23,
65,
3113,
5158,
25,
18,
25,
16,
2371,
18,
23,
65,
3113,
10634,
12,
3813,
780,
10019,
565,
1842,
780,
273,
315,
4723,
2
] |
||
Object target = getUIController().getInformationQuarter()
|
Object displayTarget = getUIController().getInformationQuarter()
|
public void selectionChanged(SelectionChangeEvent event) { Object[] selections = getSelectionModel().getSelections(); Object target = getUIController().getInformationQuarter() .getDisplayTarget(); final Folder folder; if (target instanceof Directory) { folder = ((Directory) target).getRootFolder(); } else if (target instanceof Folder) { folder = (Folder) target; } else { log().warn( "Unable to mark file for auto download files on target: " + target); return; } if (selections != null && selections.length != 0) { setEnabled(true); doNotAutoDownloadJCheckBoxMenuItem.setSelected(false); boolean setValueTrue = false; // detect different status boolean setValueFalse = false; // detect different status // uses some complex checks to make sure we dont have // conflicting status of files/dirs. only set this menu item to // enable if all are the same. for (Object selection : selections) { if (selection instanceof FileInfo) { FileInfo fileInfo = (FileInfo) selection; if (fileInfo.diskFileExists(getController())) { setEnabled(false); break; } else if (folder.isInBlacklist(fileInfo)) { if (setValueFalse) { setEnabled(false); doNotAutoDownloadJCheckBoxMenuItem .setSelected(false); break; } doNotAutoDownloadJCheckBoxMenuItem .setSelected(true); setValueTrue = true; } else { // detect differnt status setValueFalse = true; if (setValueTrue) { setEnabled(false); doNotAutoDownloadJCheckBoxMenuItem .setSelected(false); break; } } } else if (selection instanceof Directory) { Directory directory = (Directory) selection; if (!directory.isExpected(getController() .getFolderRepository())) { setEnabled(false); break; } else if (folder.isInBlacklist(directory .getFilesRecursive())) { // detect differnt status: if (setValueFalse) { setEnabled(false); doNotAutoDownloadJCheckBoxMenuItem .setSelected(false); break; } doNotAutoDownloadJCheckBoxMenuItem .setSelected(true); setValueTrue = true; } else { // detect differnt status setValueFalse = true; if (setValueTrue) { setEnabled(false); doNotAutoDownloadJCheckBoxMenuItem .setSelected(false); break; } } } else { setEnabled(false); break; } } } }
|
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/27c9b602815b2eaa671bc83e687bb92f28446eaa/DirectoryPanel.java/buggy/src/main/de/dal33t/powerfolder/ui/folder/DirectoryPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
4421,
5033,
12,
6233,
20930,
871,
13,
288,
5411,
1033,
8526,
21738,
273,
23204,
1488,
7675,
588,
29913,
5621,
5411,
1033,
2562,
2326,
273,
336,
5370,
2933,
7675,
588,
5369,
928,
14153,
1435,
7734,
263,
588,
4236,
2326,
5621,
5411,
727,
12623,
3009,
31,
5411,
309,
261,
3299,
1276,
8930,
13,
288,
7734,
3009,
273,
14015,
2853,
13,
1018,
2934,
588,
2375,
3899,
5621,
5411,
289,
469,
309,
261,
3299,
1276,
12623,
13,
288,
7734,
3009,
273,
261,
3899,
13,
1018,
31,
5411,
289,
469,
288,
7734,
613,
7675,
8935,
12,
10792,
315,
3370,
358,
2267,
585,
364,
3656,
4224,
1390,
603,
1018,
30,
315,
13491,
397,
1018,
1769,
7734,
327,
31,
5411,
289,
5411,
309,
261,
10705,
87,
480,
446,
597,
21738,
18,
2469,
480,
374,
13,
288,
7734,
12888,
12,
3767,
1769,
7734,
741,
1248,
4965,
7109,
46,
19174,
12958,
18,
542,
7416,
12,
5743,
1769,
7734,
1250,
5524,
5510,
273,
629,
31,
368,
5966,
3775,
1267,
7734,
1250,
5524,
8381,
273,
629,
31,
368,
5966,
3775,
1267,
7734,
368,
4692,
2690,
7233,
4271,
358,
1221,
3071,
732,
14046,
1240,
7734,
368,
21462,
1267,
434,
1390,
19,
8291,
18,
1338,
444,
333,
3824,
761,
358,
7734,
368,
4237,
309,
777,
854,
326,
1967,
18,
7734,
364,
261,
921,
4421,
294,
21738,
13,
288,
10792,
309,
261,
10705,
1276,
14236,
13,
288,
13491,
14236,
12538,
273,
261,
11995,
13,
4421,
31,
13491,
309,
261,
768,
966,
18,
10863,
812,
4002,
12,
588,
2933,
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,
4421,
5033,
12,
6233,
20930,
871,
13,
288,
5411,
1033,
8526,
21738,
273,
23204,
1488,
7675,
588,
29913,
5621,
5411,
1033,
2562,
2326,
273,
336,
5370,
2933,
7675,
588,
5369,
928,
14153,
1435,
7734,
263,
588,
4236,
2326,
5621,
5411,
727,
12623,
3009,
31,
5411,
309,
261,
3299,
1276,
8930,
13,
288,
7734,
3009,
273,
14015,
2853,
13,
1018,
2934,
588,
2375,
3899,
5621,
5411,
289,
469,
309,
261,
3299,
1276,
12623,
13,
288,
7734,
3009,
273,
261,
3899,
13,
1018,
31,
5411,
289,
469,
288,
7734,
613,
7675,
8935,
12,
10792,
315,
3370,
358,
2267,
585,
364,
3656,
4224,
1390,
603,
1018,
30,
315,
13491,
397,
1018,
1769,
7734,
327,
31,
5411,
289,
5411,
309,
2
] |
throw m_sqlManager.getCmsException(this, "readOnlineId(String)", CmsException.C_UNKNOWN_EXCEPTION, exc, false);
|
throw m_sqlManager.getCmsException(this, null, CmsException.C_UNKNOWN_EXCEPTION, exc, false);
|
private CmsUUID readOnlineId(String filename) throws CmsException { ResultSet res = null; PreparedStatement stmt = null; Connection conn = null; CmsUUID resourceId = CmsUUID.getNullUUID(); try { conn = m_sqlManager.getConnection(I_CmsConstants.C_PROJECT_ONLINE_ID); stmt = m_sqlManager.getPreparedStatement(conn, "C_LM_READ_ONLINE_ID"); // read file data from database stmt.setString(1, filename); res = stmt.executeQuery(); // read the id if (res.next()) { resourceId = new CmsUUID(res.getString(m_sqlManager.get("C_RESOURCES_RESOURCE_ID"))); while (res.next()) { // do nothing only move through all rows because of mssql odbc driver } } } catch (SQLException e) { throw m_sqlManager.getCmsException(this, "readOnlineId(String)", CmsException.C_SQL_ERROR, e, false); } catch (Exception exc) { throw m_sqlManager.getCmsException(this, "readOnlineId(String)", CmsException.C_UNKNOWN_EXCEPTION, exc, false); } finally { m_sqlManager.closeAll(conn, stmt, res); } return resourceId; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8ba13845b47efdc724c2816c155dec28fe714874/CmsProjectDriver.java/buggy/src/org/opencms/db/generic/CmsProjectDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15792,
855,
16860,
548,
12,
780,
1544,
13,
1216,
11228,
288,
3639,
10842,
400,
273,
446,
31,
3639,
16913,
3480,
273,
446,
31,
3639,
4050,
1487,
273,
446,
31,
3639,
15792,
15035,
273,
15792,
18,
588,
2041,
5562,
5621,
3639,
775,
288,
5411,
1487,
273,
312,
67,
4669,
1318,
18,
588,
1952,
12,
45,
67,
4747,
2918,
18,
39,
67,
17147,
67,
673,
5997,
67,
734,
1769,
5411,
3480,
273,
312,
67,
4669,
1318,
18,
588,
29325,
12,
4646,
16,
315,
39,
67,
17063,
67,
6949,
67,
673,
5997,
67,
734,
8863,
5411,
368,
855,
585,
501,
628,
2063,
5411,
3480,
18,
542,
780,
12,
21,
16,
1544,
1769,
5411,
400,
273,
3480,
18,
8837,
1138,
5621,
5411,
368,
855,
326,
612,
5411,
309,
261,
455,
18,
4285,
10756,
288,
7734,
15035,
273,
394,
15792,
12,
455,
18,
588,
780,
12,
81,
67,
4669,
1318,
18,
588,
2932,
39,
67,
11395,
55,
67,
11395,
67,
734,
6,
3719,
1769,
7734,
1323,
261,
455,
18,
4285,
10756,
288,
10792,
368,
741,
5083,
1338,
3635,
3059,
777,
2595,
2724,
434,
312,
1049,
1217,
320,
9137,
3419,
7734,
289,
5411,
289,
3639,
289,
1044,
261,
23116,
425,
13,
288,
5411,
604,
312,
67,
4669,
1318,
18,
588,
4747,
503,
12,
2211,
16,
315,
896,
16860,
548,
12,
780,
2225,
16,
11228,
18,
39,
67,
3997,
67,
3589,
16,
425,
16,
629,
1769,
3639,
289,
1044,
261,
503,
3533,
13,
288,
5411,
604,
312,
67,
4669,
1318,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15792,
855,
16860,
548,
12,
780,
1544,
13,
1216,
11228,
288,
3639,
10842,
400,
273,
446,
31,
3639,
16913,
3480,
273,
446,
31,
3639,
4050,
1487,
273,
446,
31,
3639,
15792,
15035,
273,
15792,
18,
588,
2041,
5562,
5621,
3639,
775,
288,
5411,
1487,
273,
312,
67,
4669,
1318,
18,
588,
1952,
12,
45,
67,
4747,
2918,
18,
39,
67,
17147,
67,
673,
5997,
67,
734,
1769,
5411,
3480,
273,
312,
67,
4669,
1318,
18,
588,
29325,
12,
4646,
16,
315,
39,
67,
17063,
67,
6949,
67,
673,
5997,
67,
734,
8863,
5411,
368,
855,
585,
501,
628,
2063,
5411,
3480,
18,
542,
780,
12,
21,
16,
1544,
1769,
5411,
400,
273,
3480,
18,
8837,
1138,
5621,
2
] |
StringBuffer buf = new StringBuffer(36);
|
private static Object getVariant(ResponseStream in) throws IOException, ProtocolException { byte[] bytes; int len = in.readInt(); if (len == 0) { // Length of zero means item is null return null; } ColInfo ci = new ColInfo(); len -= 2; ci.tdsType = in.read(); // TDS Type len = len - in.read(); // Size of descriptor switch (ci.tdsType) { case SYBINT1: return new Byte((byte) in.read()); case SYBINT2: return new Short((short) in.readShort()); case SYBINT4: return new Integer(in.readInt()); case SYBINT8: return new Long(in.readLong()); case XSYBCHAR: case XSYBVARCHAR: in.skip(7); // Skip collation and buffer size return in.readAsciiString(len); case XSYBNCHAR: case XSYBNVARCHAR: in.skip(7); // Skip collation and buffer size return in.readString(len / 2); case XSYBVARBINARY: case XSYBBINARY: in.skip(2); // Skip buffer size bytes = new byte[len]; in.read(bytes); return bytes; case SYBMONEY4: case SYBMONEY: return getMoneyValue(in, ci.tdsType); case SYBDATETIME4: case SYBDATETIME: return getDatetimeValue(in, ci.tdsType); case SYBBIT: return (in.read() != 0) ? Boolean.TRUE : Boolean.FALSE; case SYBREAL: return new Float(Float.intBitsToFloat(in.readInt())); case SYBFLT8: return new Double(Double.longBitsToDouble(in.readLong())); case SYBUNIQUE: bytes = new byte[len]; in.read(bytes); StringBuffer buf = new StringBuffer(36); for (int i = 0; i < bytes.length; i++) { buf.append("0123456789ABCDEF".substring((bytes[i] >> 4) & 0x0F, 1)); buf.append("0123456789ABCDEF".substring(bytes[i] & 0x0F, 1)); if (i == 4 || i == 7 || i == 10 || i == 13) { buf.append('-'); } } return buf.toString(); case SYBNUMERIC: case SYBDECIMAL: ci.precision = in.read(); ci.scale = in.read(); int sign = in.read(); len--; bytes = new byte[len]; BigInteger bi; while (len-- > 0) { bytes[len] = (byte)in.read(); } bi = new BigInteger((sign == 0) ? -1 : 1, bytes); return new BigDecimal(bi, ci.scale); default: throw new ProtocolException("Unsupported TDS data type 0x" + Integer.toHexString(ci.tdsType) + " in sql_variant"); } // // For compatibility with the MS driver convert to String. // Change the data type for sql_variant from OTHER to VARCHAR // Without this code the actual Object type can be retrieved // by using getObject(n). //// try {// value = Support.convert(value, java.sql.Types.VARCHAR, in.getCharset());// } catch (SQLException e) {// // Conversion failed just try toString();// value = value.toString();// } }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/ee61bd4bb69698cd8e502f0e288dd8188fcee81b/TdsData.java/clean/src/main/net/sourceforge/jtds/jdbc/TdsData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
336,
9356,
12,
1064,
1228,
316,
13,
565,
1216,
1860,
16,
4547,
503,
288,
3639,
1160,
8526,
1731,
31,
3639,
509,
562,
273,
316,
18,
896,
1702,
5621,
3639,
309,
261,
1897,
422,
374,
13,
288,
5411,
368,
11311,
434,
3634,
4696,
761,
353,
446,
5411,
327,
446,
31,
3639,
289,
3639,
1558,
966,
9039,
273,
394,
1558,
966,
5621,
3639,
562,
3947,
576,
31,
3639,
9039,
18,
88,
2377,
559,
273,
316,
18,
896,
5621,
368,
399,
3948,
1412,
3639,
562,
273,
562,
300,
316,
18,
896,
5621,
368,
6321,
434,
4950,
3639,
1620,
261,
8450,
18,
88,
2377,
559,
13,
288,
5411,
648,
7068,
38,
3217,
21,
30,
7734,
327,
394,
3506,
12443,
7229,
13,
316,
18,
896,
10663,
5411,
648,
7068,
38,
3217,
22,
30,
7734,
327,
394,
7925,
12443,
6620,
13,
316,
18,
896,
4897,
10663,
5411,
648,
7068,
38,
3217,
24,
30,
7734,
327,
394,
2144,
12,
267,
18,
896,
1702,
10663,
5411,
648,
7068,
38,
3217,
28,
30,
7734,
327,
394,
3407,
12,
267,
18,
896,
3708,
10663,
5411,
648,
1139,
7474,
38,
7305,
30,
5411,
648,
1139,
7474,
38,
7716,
7305,
30,
7734,
316,
18,
7457,
12,
27,
1769,
368,
6611,
21277,
471,
1613,
963,
7734,
327,
316,
18,
896,
21363,
780,
12,
1897,
1769,
5411,
648,
1139,
7474,
15388,
7305,
30,
5411,
648,
1139,
7474,
15388,
7716,
7305,
30,
7734,
316,
18,
7457,
12,
27,
1769,
368,
6611,
21277,
471,
1613,
963,
7734,
327,
316,
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,
1033,
336,
9356,
12,
1064,
1228,
316,
13,
565,
1216,
1860,
16,
4547,
503,
288,
3639,
1160,
8526,
1731,
31,
3639,
509,
562,
273,
316,
18,
896,
1702,
5621,
3639,
309,
261,
1897,
422,
374,
13,
288,
5411,
368,
11311,
434,
3634,
4696,
761,
353,
446,
5411,
327,
446,
31,
3639,
289,
3639,
1558,
966,
9039,
273,
394,
1558,
966,
5621,
3639,
562,
3947,
576,
31,
3639,
9039,
18,
88,
2377,
559,
273,
316,
18,
896,
5621,
368,
399,
3948,
1412,
3639,
562,
273,
562,
300,
316,
18,
896,
5621,
368,
6321,
434,
4950,
3639,
1620,
261,
8450,
18,
88,
2377,
559,
13,
288,
5411,
648,
7068,
38,
3217,
21,
30,
7734,
327,
394,
3506,
12443,
2
] |
|
st.execute("CREATE TABLE temp (col oid)");
|
st.execute("CREATE temp TABLE temp (col oid)");
|
public void testBinaryStream() { //set up conection here Connection c = null; Statement st = null; try { c = DriverManager.getConnection("jdbc:postgresql://localhost/test?compatible=7.1&user=test"); c.setAutoCommit(false); st = c.createStatement(); st.execute("CREATE TABLE temp (col oid)"); } catch (SQLException e) { //another issue: when connecting to 7.3 database and this exception occurs because the table already exists, //st.setBinaryStream throws internal error in LargeObjectManager initialisation code fail("table creating error, probably already exists, code=" + e.getErrorCode()); } finally { try{ if (st != null) st.close(); }catch(SQLException ex){}; } PreparedStatement pstmt = null; try { pstmt = c.prepareStatement("INSERT INTO temp VALUES (?)"); //in case of 7.4 server, should block here pstmt.setBinaryStream(1, new ByteArrayInputStream(new byte[]{1, 2, 3, 4, 5}), 5); assertTrue( (pstmt.executeUpdate() == 1) ); pstmt.close(); pstmt = c.prepareStatement("SELECT col FROM temp LIMIT 1"); ResultSet rs = pstmt.executeQuery(); assertTrue("No results from query", rs.next() ); //in case of 7.4 server, should block here InputStream in = rs.getBinaryStream(1); int data; while ((data = in.read()) != -1) System.out.println(data); rs.close(); st.close(); c.createStatement().executeUpdate("DELETE FROM temp"); c.commit(); } catch ( IOException ioex ) { fail( ioex.getMessage() ); } catch (SQLException ex) { fail( ex.getMessage() ); } finally { try { if ( c!=null) c.close(); } catch( SQLException e1){} } }
|
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/9dddd242dd132e66b6f1654d0ea62cb485818f37/OID74Test.java/clean/src/interfaces/jdbc/org/postgresql/test/jdbc2/OID74Test.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5905,
1228,
1435,
202,
95,
202,
202,
759,
542,
731,
356,
794,
2674,
202,
202,
1952,
276,
273,
446,
31,
377,
1082,
4202,
202,
202,
3406,
384,
273,
446,
31,
3639,
202,
202,
698,
3196,
202,
95,
1082,
202,
71,
273,
225,
9396,
1318,
18,
588,
1952,
2932,
24687,
30,
2767,
24330,
2207,
13014,
19,
3813,
35,
10943,
33,
27,
18,
21,
10,
1355,
33,
3813,
8863,
377,
1082,
202,
71,
18,
542,
4965,
5580,
12,
5743,
1769,
1082,
202,
334,
273,
276,
18,
2640,
3406,
5621,
540,
202,
202,
334,
18,
8837,
2932,
9344,
1906,
7567,
1906,
261,
1293,
7764,
2225,
1769,
4202,
202,
202,
97,
1082,
1044,
261,
23116,
425,
13,
3196,
202,
95,
540,
202,
202,
759,
304,
3011,
5672,
30,
1347,
14244,
358,
2371,
18,
23,
2063,
471,
333,
1520,
9938,
2724,
326,
1014,
1818,
1704,
16,
1082,
3639,
368,
334,
18,
542,
5905,
1228,
1216,
2713,
555,
316,
16236,
908,
921,
1318,
2172,
10742,
981,
1082,
3639,
2321,
2932,
2121,
4979,
555,
16,
8656,
1818,
1704,
16,
981,
1546,
397,
425,
18,
588,
12012,
10663,
4202,
202,
202,
97,
202,
202,
23417,
202,
202,
95,
1082,
202,
698,
95,
309,
261,
334,
480,
446,
13,
384,
18,
4412,
5621,
289,
14683,
12,
23116,
431,
13,
2916,
31,
202,
202,
97,
4202,
9506,
202,
29325,
293,
10589,
273,
446,
31,
377,
202,
202,
698,
3196,
202,
95,
202,
4202,
9506,
202,
84,
10589,
273,
276,
18,
9366,
3406,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5905,
1228,
1435,
202,
95,
202,
202,
759,
542,
731,
356,
794,
2674,
202,
202,
1952,
276,
273,
446,
31,
377,
1082,
4202,
202,
202,
3406,
384,
273,
446,
31,
3639,
202,
202,
698,
3196,
202,
95,
1082,
202,
71,
273,
225,
9396,
1318,
18,
588,
1952,
2932,
24687,
30,
2767,
24330,
2207,
13014,
19,
3813,
35,
10943,
33,
27,
18,
21,
10,
1355,
33,
3813,
8863,
377,
1082,
202,
71,
18,
542,
4965,
5580,
12,
5743,
1769,
1082,
202,
334,
273,
276,
18,
2640,
3406,
5621,
540,
202,
202,
334,
18,
8837,
2932,
9344,
1906,
7567,
1906,
261,
1293,
7764,
2225,
1769,
4202,
202,
202,
97,
1082,
1044,
261,
23116,
425,
13,
3196,
2
] |
String method = eventMsg.getStringProperty(HttpConnector.HTTP_METHOD_PROPERTY, null); if (method != null && method.equalsIgnoreCase(HttpConstants.METHOD_GET)) { String data = (String)new GetRequestToSoapRequest().transform(context .getTransformedMessageAsString()); is = new ByteArrayInputStream(data.getBytes()); } else { is = new ByteArrayInputStream(context.getTransformedMessageAsBytes()); }
|
is = new ByteArrayInputStream(context.getTransformedMessageAsBytes());
|
protected InputStream getMessageStream(UMOEventContext context) throws UMOException { InputStream is; UMOMessage eventMsg = context.getMessage(); Object eventMsgPayload = eventMsg.getPayload(); if (eventMsgPayload instanceof InputStream) { is = (InputStream)eventMsgPayload; } else if (eventMsg.getAdapter() instanceof StreamMessageAdapter) { StreamMessageAdapter sma = (StreamMessageAdapter)eventMsg.getAdapter(); if (sma.getInput() != null) { is = sma.getInput(); } else { is = sma.getResponse(); } } else { String method = eventMsg.getStringProperty(HttpConnector.HTTP_METHOD_PROPERTY, null); // Automatically transform get requests. Normally soap requests // should be POST with a soap message if (method != null && method.equalsIgnoreCase(HttpConstants.METHOD_GET)) { String data = (String)new GetRequestToSoapRequest().transform(context .getTransformedMessageAsString()); is = new ByteArrayInputStream(data.getBytes()); } else { is = new ByteArrayInputStream(context.getTransformedMessageAsBytes()); } } return is; }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/589f59b15144184ea22999b384d5ea92ddec8bb9/XFireServiceComponent.java/clean/providers/xfire/src/main/java/org/mule/providers/soap/xfire/XFireServiceComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5037,
2381,
1228,
12,
2799,
51,
1133,
1042,
819,
13,
1216,
587,
5980,
503,
565,
288,
3639,
5037,
353,
31,
3639,
587,
5980,
1079,
871,
3332,
273,
819,
18,
24906,
5621,
3639,
1033,
871,
3332,
6110,
273,
871,
3332,
18,
588,
6110,
5621,
3639,
309,
261,
2575,
3332,
6110,
1276,
5037,
13,
288,
5411,
353,
273,
261,
4348,
13,
2575,
3332,
6110,
31,
3639,
289,
3639,
469,
309,
261,
2575,
3332,
18,
588,
4216,
1435,
1276,
3961,
1079,
4216,
13,
288,
5411,
3961,
1079,
4216,
272,
2540,
273,
261,
1228,
1079,
4216,
13,
2575,
3332,
18,
588,
4216,
5621,
5411,
309,
261,
87,
2540,
18,
588,
1210,
1435,
480,
446,
13,
288,
7734,
353,
273,
272,
2540,
18,
588,
1210,
5621,
5411,
289,
5411,
469,
288,
7734,
353,
273,
272,
2540,
18,
588,
1064,
5621,
5411,
289,
3639,
289,
3639,
469,
288,
5411,
514,
707,
273,
871,
3332,
18,
588,
780,
1396,
12,
2940,
7487,
18,
3693,
67,
5327,
67,
9900,
16,
446,
1769,
5411,
368,
11809,
20271,
2510,
336,
3285,
18,
24773,
1230,
9930,
3285,
5411,
368,
1410,
506,
5485,
598,
279,
9930,
883,
5411,
309,
261,
2039,
480,
446,
597,
707,
18,
14963,
5556,
12,
2940,
2918,
18,
5327,
67,
3264,
3719,
288,
7734,
514,
501,
273,
261,
780,
13,
2704,
968,
691,
774,
20601,
691,
7675,
6547,
12,
2472,
13491,
263,
588,
4059,
329,
1079,
8092,
10663,
7734,
353,
273,
394,
16180,
12,
892,
18,
588,
2160,
10663,
5411,
289,
5411,
469,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5037,
2381,
1228,
12,
2799,
51,
1133,
1042,
819,
13,
1216,
587,
5980,
503,
565,
288,
3639,
5037,
353,
31,
3639,
587,
5980,
1079,
871,
3332,
273,
819,
18,
24906,
5621,
3639,
1033,
871,
3332,
6110,
273,
871,
3332,
18,
588,
6110,
5621,
3639,
309,
261,
2575,
3332,
6110,
1276,
5037,
13,
288,
5411,
353,
273,
261,
4348,
13,
2575,
3332,
6110,
31,
3639,
289,
3639,
469,
309,
261,
2575,
3332,
18,
588,
4216,
1435,
1276,
3961,
1079,
4216,
13,
288,
5411,
3961,
1079,
4216,
272,
2540,
273,
261,
1228,
1079,
4216,
13,
2575,
3332,
18,
588,
4216,
5621,
5411,
309,
261,
87,
2540,
18,
588,
1210,
1435,
480,
446,
13,
288,
7734,
353,
273,
272,
2540,
2
] |
if (showAllCheck.getSelection()) {
|
if (showAllCheck != null && showAllCheck.getSelection()) {
|
protected void storeSelectedCategoryAndWizard() { if (showAllCheck.getSelection()) { settings.put( SHOW_ALL_ENABLED, true); } else { settings.put( SHOW_ALL_ENABLED, false); } Object selected = getSingleSelection((IStructuredSelection) viewer.getSelection()); if (selected != null) { if (selected instanceof WizardCollectionElement) settings.put( STORE_SELECTED_ID, ((WizardCollectionElement) selected).getPath().toString()); else // else its a wizard settings.put(STORE_SELECTED_ID, ((WorkbenchWizardElement) selected).getID()); } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/2b8dd265e9346b6285e491babefec2ca54d27d2b/NewWizardNewPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/NewWizardNewPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1707,
7416,
4457,
1876,
27130,
1435,
288,
202,
565,
309,
261,
4500,
1595,
1564,
18,
588,
6233,
10756,
288,
202,
540,
202,
3639,
1947,
18,
458,
12,
9506,
202,
16677,
67,
4685,
67,
13560,
16,
9506,
202,
3767,
1769,
202,
540,
202,
565,
289,
202,
565,
469,
288,
202,
377,
202,
4272,
18,
458,
12,
9506,
202,
16677,
67,
4685,
67,
13560,
16,
9506,
202,
5743,
1769,
6862,
202,
97,
202,
377,
202,
202,
921,
3170,
273,
540,
202,
588,
5281,
6233,
12443,
45,
30733,
6233,
13,
14157,
18,
588,
6233,
10663,
7734,
309,
261,
8109,
480,
446,
13,
288,
540,
202,
430,
261,
8109,
1276,
678,
13412,
2532,
1046,
13,
540,
202,
202,
4272,
18,
458,
12,
540,
1082,
202,
13651,
67,
4803,
2056,
67,
734,
16,
540,
1082,
202,
12443,
27130,
2532,
1046,
13,
3170,
2934,
588,
743,
7675,
10492,
10663,
540,
202,
12107,
368,
469,
2097,
279,
24204,
540,
202,
202,
4272,
18,
458,
12,
13651,
67,
4803,
2056,
67,
734,
16,
14015,
2421,
22144,
27130,
1046,
13,
3170,
2934,
588,
734,
10663,
3639,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1707,
7416,
4457,
1876,
27130,
1435,
288,
202,
565,
309,
261,
4500,
1595,
1564,
18,
588,
6233,
10756,
288,
202,
540,
202,
3639,
1947,
18,
458,
12,
9506,
202,
16677,
67,
4685,
67,
13560,
16,
9506,
202,
3767,
1769,
202,
540,
202,
565,
289,
202,
565,
469,
288,
202,
377,
202,
4272,
18,
458,
12,
9506,
202,
16677,
67,
4685,
67,
13560,
16,
9506,
202,
5743,
1769,
6862,
202,
97,
202,
377,
202,
202,
921,
3170,
273,
540,
202,
588,
5281,
6233,
12443,
45,
30733,
6233,
13,
14157,
18,
588,
6233,
10663,
7734,
309,
261,
8109,
480,
446,
13,
288,
540,
202,
430,
261,
8109,
1276,
678,
13412,
2532,
1046,
13,
540,
202,
202,
4272,
2
] |
String htmlCodeFile, String imagePath, int newDiscFlag) throws ServletException, IOException {
|
File htmlCodeFile, String imagePath, int newDiscFlag) throws ServletException, IOException {
|
public String discPreParse (HttpServletRequest req, String[] DBArr, Vector tagsV, String htmlCodeFile, String imagePath, int newDiscFlag) throws ServletException, IOException { String htmlStr = "" ; try { // Lets get the url to the servlets directory String servletHome = MetaInfo.getServletPath(req) ; // Lets get the nbr of cols int nbrOfCols = Integer.parseInt(DBArr[0]) ; // log("NbrOfCols: " + nbrOfCols) ; // Lets build an tagsArray with the tags from the DBarr, if // null was passed to us instead of a vector if( tagsV == null) { tagsV = new Vector() ; for(int k = 1; k<nbrOfCols; k++) { tagsV.add(DBArr[k]) ; // log("COunter: "+ k + " Tagvrde: " + DBArr[k] ) ; } } // Lets do for all records... for(int i = nbrOfCols+1; i<DBArr.length; i += nbrOfCols) { // Lets prepare the dataVector with some values before were read // what we got in the db // Lets check if the discussions should have a new bitmap in front of them Vector dataV = new Vector(6) ; // dataV.add( "") ; // just to put something in the first place, img tag // dataV.add( servletHome + "ConfReply?" ) ; String oneParsedRecordStr = "" ; // Lets do for one record... Get all fields for that record for(int j=i; j<i+nbrOfCols ; j++) { dataV.add(DBArr[j]) ; } // End of one records for // Lets check if set new Disclflag should run //if ( newDiscFlag == 1 ) { // dataV.removeElementAt(0) ; // dataV.setElementAt(this.setNewDiscFlag( dataV, imagePath), 0 ) ; // showIt(tagsV, dataV) ; // } // showIt(tagsV, dataV) ; // Lets parse one record oneParsedRecordStr = this.parseOneRecord(tagsV, dataV, htmlCodeFile) ; //log("Ett record: " + oneParsedRecordStr); htmlStr += oneParsedRecordStr ; } // end of the big for } catch(Exception e) { log("Error in DISCPreparse") ; return null ; } return htmlStr ; } // End of
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/6934bc95fe9bb7541280495513f06cf7d0206d59/ConfAdmin.java/clean/servlets/conf/ConfAdmin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
19169,
1386,
3201,
261,
2940,
18572,
1111,
16,
514,
8526,
2383,
5715,
16,
5589,
2342,
58,
16,
202,
202,
780,
1729,
1085,
812,
16,
514,
29181,
16,
509,
394,
28912,
4678,
13,
225,
1216,
16517,
16,
1860,
288,
202,
202,
780,
1729,
1585,
273,
1408,
274,
202,
202,
698,
288,
1082,
202,
759,
511,
2413,
336,
326,
880,
358,
326,
8100,
87,
1867,
1082,
202,
780,
8100,
8684,
273,
6565,
966,
18,
588,
4745,
743,
12,
3658,
13,
274,
1082,
202,
759,
511,
2413,
336,
326,
26297,
434,
5347,
1082,
202,
474,
26297,
951,
8011,
273,
2144,
18,
2670,
1702,
12,
2290,
5715,
63,
20,
5717,
274,
1082,
202,
759,
202,
1330,
2932,
50,
2848,
951,
8011,
30,
315,
397,
26297,
951,
8011,
13,
274,
1082,
202,
759,
511,
2413,
1361,
392,
2342,
1076,
598,
326,
2342,
628,
326,
2383,
5399,
16,
309,
1082,
202,
759,
446,
1703,
2275,
358,
584,
3560,
434,
279,
3806,
1082,
202,
430,
12,
2342,
58,
422,
446,
13,
288,
9506,
202,
4156,
58,
273,
394,
5589,
1435,
274,
9506,
202,
1884,
12,
474,
417,
273,
404,
31,
417,
32,
82,
2848,
951,
8011,
31,
417,
27245,
288,
6862,
202,
4156,
58,
18,
1289,
12,
2290,
5715,
63,
79,
5717,
274,
6862,
202,
759,
613,
2932,
3865,
318,
387,
30,
13773,
417,
397,
315,
4034,
18090,
323,
30,
315,
397,
2383,
5715,
63,
79,
65,
262,
274,
9506,
202,
97,
1082,
202,
97,
1082,
202,
759,
511,
2413,
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,
19169,
1386,
3201,
261,
2940,
18572,
1111,
16,
514,
8526,
2383,
5715,
16,
5589,
2342,
58,
16,
202,
202,
780,
1729,
1085,
812,
16,
514,
29181,
16,
509,
394,
28912,
4678,
13,
225,
1216,
16517,
16,
1860,
288,
202,
202,
780,
1729,
1585,
273,
1408,
274,
202,
202,
698,
288,
1082,
202,
759,
511,
2413,
336,
326,
880,
358,
326,
8100,
87,
1867,
1082,
202,
780,
8100,
8684,
273,
6565,
966,
18,
588,
4745,
743,
12,
3658,
13,
274,
1082,
202,
759,
511,
2413,
336,
326,
26297,
434,
5347,
1082,
202,
474,
26297,
951,
8011,
273,
2144,
18,
2670,
1702,
12,
2290,
5715,
63,
20,
5717,
274,
1082,
202,
759,
202,
1330,
2932,
50,
2848,
2
] |
Log.write("ensureMapped failed with errno "); Log.write(errno); Log.write(" on address "); Log.writeln(mmapStart); if (Assert.VERIFY_ASSERTIONS) Assert._assert(false); } else {
|
Log.write("ensureMapped failed with errno "); Log.write(errno); Log.write(" on address "); Log.writeln(mmapStart); if (Assert.VERIFY_ASSERTIONS) Assert._assert(false); } else {
|
public static void ensureMapped(Address start, int pages) { int startChunk = Conversions.addressToMmapChunksDown(start); int endChunk = Conversions.addressToMmapChunksUp(start.plus(Conversions.pagesToBytes(pages))); for (int chunk=startChunk; chunk < endChunk; chunk++) { if (mapped[chunk] == MAPPED) continue; Address mmapStart = Conversions.mmapChunksToAddress(chunk); lock.acquire(); // might have become MAPPED here lock.check(100); if (mapped[chunk] == UNMAPPED) { lock.check(101); int errno = Memory.mmap(mmapStart, MMAP_CHUNK_SIZE); lock.check(102); if (errno != 0) { lock.release(); Log.write("ensureMapped failed with errno "); Log.write(errno); Log.write(" on address "); Log.writeln(mmapStart); if (Assert.VERIFY_ASSERTIONS) Assert._assert(false); } else { if (verbose) { Log.write("mmap succeeded at chunk "); Log.write(chunk); Log.write(" "); Log.write(mmapStart); Log.write(" with len = "); Log.writeln(MMAP_CHUNK_SIZE); } } lock.check(103); } if (mapped[chunk] == PROTECTED) { lock.check(201); if (!Memory.munprotect(mmapStart, MMAP_CHUNK_SIZE)) { lock.check(202); lock.release(); Assert.fail("LazyMmapper.ensureMapped (unprotect) failed"); } else { if (verbose) { Log.write("munprotect succeeded at chunk "); Log.write(chunk); Log.write(" "); Log.write(mmapStart); Log.write(" with len = "); Log.writeln(MMAP_CHUNK_SIZE); } } } lock.check(301); mapped[chunk] = MAPPED; lock.check(302); lock.release(); } }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/LazyMmapper.java/buggy/MMTk/src/org/mmtk/utility/heap/LazyMmapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
3387,
12868,
12,
1887,
787,
16,
509,
4689,
13,
288,
565,
509,
787,
5579,
273,
735,
10169,
18,
2867,
774,
49,
1458,
14975,
4164,
12,
1937,
1769,
565,
509,
679,
5579,
273,
735,
10169,
18,
2867,
774,
49,
1458,
14975,
1211,
12,
1937,
18,
10103,
12,
29287,
18,
7267,
21033,
12,
7267,
3719,
1769,
565,
364,
261,
474,
2441,
33,
1937,
5579,
31,
2441,
411,
679,
5579,
31,
2441,
27245,
288,
1377,
309,
261,
13654,
63,
6551,
65,
422,
12815,
12120,
13,
1324,
31,
1377,
5267,
30749,
1685,
273,
735,
10169,
18,
81,
1458,
5579,
11634,
1887,
12,
6551,
1769,
1377,
2176,
18,
1077,
1039,
5621,
1377,
368,
4825,
1240,
12561,
12815,
12120,
2674,
1377,
2176,
18,
1893,
12,
6625,
1769,
1377,
309,
261,
13654,
63,
6551,
65,
422,
5019,
8352,
12120,
13,
288,
3639,
2176,
18,
1893,
12,
15168,
1769,
3639,
509,
8402,
273,
9251,
18,
81,
1458,
12,
81,
1458,
1685,
16,
490,
8352,
67,
26464,
67,
4574,
1769,
3639,
2176,
18,
1893,
12,
20481,
1769,
3639,
309,
261,
19088,
480,
374,
13,
288,
1850,
2176,
18,
9340,
5621,
1850,
1827,
18,
2626,
2932,
15735,
12868,
2535,
598,
8402,
315,
1769,
1827,
18,
2626,
12,
19088,
1769,
1850,
1827,
18,
2626,
2932,
603,
1758,
315,
1769,
1827,
18,
5363,
292,
82,
12,
81,
1458,
1685,
1769,
1850,
309,
261,
8213,
18,
23756,
67,
8423,
11539,
1146,
55,
13,
5452,
6315,
11231,
12,
5743,
1769,
3639,
289,
3639,
469,
288,
1850,
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,
282,
1071,
760,
918,
3387,
12868,
12,
1887,
787,
16,
509,
4689,
13,
288,
565,
509,
787,
5579,
273,
735,
10169,
18,
2867,
774,
49,
1458,
14975,
4164,
12,
1937,
1769,
565,
509,
679,
5579,
273,
735,
10169,
18,
2867,
774,
49,
1458,
14975,
1211,
12,
1937,
18,
10103,
12,
29287,
18,
7267,
21033,
12,
7267,
3719,
1769,
565,
364,
261,
474,
2441,
33,
1937,
5579,
31,
2441,
411,
679,
5579,
31,
2441,
27245,
288,
1377,
309,
261,
13654,
63,
6551,
65,
422,
12815,
12120,
13,
1324,
31,
1377,
5267,
30749,
1685,
273,
735,
10169,
18,
81,
1458,
5579,
11634,
1887,
12,
6551,
1769,
1377,
2176,
18,
1077,
1039,
5621,
1377,
368,
4825,
1240,
12561,
12815,
12120,
2674,
1377,
2
] |
if(!(editorPart instanceof ITextEditor)) { return null; } ITextEditor textEditor = (ITextEditor)editorPart;
|
ITextEditor textEditor = (ITextEditor)compilationUnitEditor;
|
public IAction getAction(String actionId) { IEditorPart editorPart = this.getActiveEditor(); if(editorPart == null) { return null; } if(!(editorPart instanceof ITextEditor)) { return null; } ITextEditor textEditor = (ITextEditor)editorPart; return textEditor.getAction(actionId); }
|
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/cfa60f4c7c64179ca3e944698b55b7f81acf67a1/ComponentEditor.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor/part/ComponentEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1803,
12473,
12,
780,
1301,
548,
13,
288,
202,
202,
45,
6946,
1988,
4858,
1988,
273,
333,
18,
588,
3896,
6946,
5621,
202,
202,
430,
12,
9177,
1988,
422,
446,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
430,
12,
5,
12,
9177,
1988,
1276,
467,
1528,
6946,
3719,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
1285,
408,
6946,
977,
6946,
273,
261,
1285,
408,
6946,
13,
9177,
1988,
31,
202,
202,
2463,
977,
6946,
18,
588,
1803,
12,
1128,
548,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1803,
12473,
12,
780,
1301,
548,
13,
288,
202,
202,
45,
6946,
1988,
4858,
1988,
273,
333,
18,
588,
3896,
6946,
5621,
202,
202,
430,
12,
9177,
1988,
422,
446,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
430,
12,
5,
12,
9177,
1988,
1276,
467,
1528,
6946,
3719,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
1285,
408,
6946,
977,
6946,
273,
261,
1285,
408,
6946,
13,
9177,
1988,
31,
202,
202,
2463,
977,
6946,
18,
588,
1803,
12,
1128,
548,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
+ tag + "\" in " + locb.getClass().getName() + " (it was present in " + b.getClass().getName() + ")", bundleContains(locb, tag));
|
+ tag + "\" in " + locb.getClass().getName() + " (it was present in " + b.getClass().getName() + ")", bundleContains(locb, tag));
|
private static void checkAllKeysFromAreIn(TestCase tc, ResourceBundle b, ResourceBundle locb) { for (Enumeration e = b.getKeys(); e.hasMoreElements(); ) { String tag = (String) e.nextElement(); TestCase.assertTrue("Missing tag \"" + tag + "\" in " + locb.getClass().getName() + " (it was present in " + b.getClass().getName() + ")", bundleContains(locb, tag)); } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5f6191c876d7ba33373fe98de4e3c7d94a09c303/CheckResourceBundle.java/buggy/tests/org/argouml/util/CheckResourceBundle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
866,
1595,
2396,
1265,
4704,
382,
12,
4709,
2449,
1715,
16,
25083,
1377,
19198,
324,
16,
25083,
1377,
19198,
1515,
70,
13,
288,
202,
1884,
261,
21847,
425,
273,
324,
18,
588,
2396,
5621,
202,
377,
425,
18,
5332,
7417,
3471,
5621,
202,
377,
262,
288,
202,
565,
514,
1047,
273,
261,
780,
13,
425,
18,
4285,
1046,
5621,
202,
565,
7766,
2449,
18,
11231,
5510,
2932,
4841,
1047,
11843,
1082,
1377,
397,
1047,
1082,
1377,
397,
7023,
316,
315,
1082,
1377,
397,
1515,
70,
18,
588,
797,
7675,
17994,
1435,
1082,
1377,
397,
315,
261,
305,
1703,
3430,
316,
315,
1082,
1377,
397,
324,
18,
588,
797,
7675,
17994,
1435,
1082,
1377,
397,
7310,
16,
1082,
1377,
3440,
10846,
12,
1829,
70,
16,
1047,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
866,
1595,
2396,
1265,
4704,
382,
12,
4709,
2449,
1715,
16,
25083,
1377,
19198,
324,
16,
25083,
1377,
19198,
1515,
70,
13,
288,
202,
1884,
261,
21847,
425,
273,
324,
18,
588,
2396,
5621,
202,
377,
425,
18,
5332,
7417,
3471,
5621,
202,
377,
262,
288,
202,
565,
514,
1047,
273,
261,
780,
13,
425,
18,
4285,
1046,
5621,
202,
565,
7766,
2449,
18,
11231,
5510,
2932,
4841,
1047,
11843,
1082,
1377,
397,
1047,
1082,
1377,
397,
7023,
316,
315,
1082,
1377,
397,
1515,
70,
18,
588,
797,
7675,
17994,
1435,
1082,
1377,
397,
315,
261,
305,
1703,
3430,
316,
315,
1082,
1377,
397,
324,
18,
588,
797,
7675,
17994,
1435,
1082,
1377,
397,
7310,
2
] |
if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); }
|
if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); }
|
public RubyObject m_protected(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException( getRuby(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().setActMethodScope(Constants.SCOPE_PROTECTED); } else { setMethodVisibility(args, Constants.NOEX_PROTECTED); } return this; }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
1117,
12,
54,
10340,
921,
8526,
833,
13,
288,
202,
202,
430,
261,
588,
54,
10340,
7675,
588,
4368,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
288,
1082,
202,
12849,
394,
19817,
24918,
12,
9506,
202,
588,
54,
10340,
9334,
9506,
202,
6,
382,
8869,
30,
848,
1404,
2549,
707,
9478,
8863,
202,
202,
97,
202,
202,
430,
261,
1968,
18,
2469,
422,
374,
13,
288,
1082,
202,
588,
54,
10340,
7675,
542,
2459,
1305,
3876,
12,
2918,
18,
19444,
67,
3373,
26729,
1769,
202,
202,
97,
469,
288,
1082,
202,
542,
1305,
10135,
12,
1968,
16,
5245,
18,
3417,
2294,
67,
3373,
26729,
1769,
202,
202,
97,
202,
202,
2463,
333,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
1117,
12,
54,
10340,
921,
8526,
833,
13,
288,
202,
202,
430,
261,
588,
54,
10340,
7675,
588,
4368,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
288,
1082,
202,
12849,
394,
19817,
24918,
12,
9506,
202,
588,
54,
10340,
9334,
9506,
202,
6,
382,
8869,
30,
848,
1404,
2549,
707,
9478,
8863,
202,
202,
97,
202,
202,
430,
261,
1968,
18,
2469,
422,
374,
13,
288,
1082,
202,
588,
54,
10340,
7675,
542,
2459,
1305,
3876,
12,
2918,
18,
19444,
67,
3373,
26729,
1769,
202,
202,
97,
469,
288,
1082,
202,
542,
1305,
10135,
12,
1968,
16,
5245,
18,
3417,
2294,
67,
3373,
26729,
1769,
202,
202,
97,
202,
202,
2
] |
final Document staticStateDocument = TransformerUtils.saxStoreToDom4jDocument(staticStateSAXStore); containingDocument[0] = XFormsServer.createXFormsContainingDocument(pipelineContext, initialXFormsState, null, staticStateDocument);
|
containingDocument[0] = XFormsServer.createXFormsContainingDocument(pipelineContext, initialXFormsState, null, xformsEngineStaticState);
|
private void createCacheContainingDocument(PipelineContext pipelineContext, SAXStore staticStateSAXStore, XFormsContainingDocument[] containingDocument, XFormsServer.XFormsState[] xformsState) { // This is the state after XForms initialization boolean[] requireClientSubmission = new boolean[1]; { final XFormsServer.XFormsState initialXFormsState = new XFormsServer.XFormsState(XFormsUtils.encodeXML(pipelineContext, staticStateSAXStore, XFormsUtils.getEncryptionKey()), ""); // TODO FIXME TEMP XXX final Document staticStateDocument = TransformerUtils.saxStoreToDom4jDocument(staticStateSAXStore); containingDocument[0] = XFormsServer.createXFormsContainingDocument(pipelineContext, initialXFormsState, null, staticStateDocument); final Document dynamicStateDocument = XFormsServer.createDynamicStateDocument(containingDocument[0], requireClientSubmission); xformsState[0] = new XFormsServer.XFormsState(initialXFormsState.getStaticState(), XFormsUtils.encodeXML(pipelineContext, dynamicStateDocument)); } // Cache document if requested and possible { if (XFormsUtils.isCacheDocument()) { if (!requireClientSubmission[0]) { // NOTE: We check on requireClientSubmission because the event is encoded // in the dynamic state. But if we stored the event separately, then we // could still cache the containing document. XFormsServerDocumentCache.instance().add(pipelineContext, xformsState[0], containingDocument[0]); } else { // Since we cannot cache the result, we have to get the object out of its current pool final ObjectPool objectPool = containingDocument[0].getSourceObjectPool(); if (objectPool != null) { logger.debug("XForms - containing document cache: discarding non-cacheable document from pool."); try { objectPool.invalidateObject(containingDocument); containingDocument[0].setSourceObjectPool(null); } catch (Exception e1) { throw new OXFException(e1); } } } } } }
|
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/cafe4dda86b47106037a77d4bc918e0a8fca5ac1/XFormsToXHTML.java/buggy/src/java/org/orbeon/oxf/xforms/processor/XFormsToXHTML.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
1649,
24344,
2519,
12,
8798,
1042,
5873,
1042,
16,
10168,
2257,
760,
1119,
55,
2501,
2257,
16,
4766,
9079,
1139,
18529,
24344,
2519,
8526,
4191,
2519,
16,
1139,
18529,
2081,
18,
60,
18529,
1119,
8526,
619,
9741,
1119,
13,
288,
3639,
368,
1220,
353,
326,
919,
1839,
1139,
18529,
10313,
3639,
1250,
8526,
2583,
1227,
17865,
273,
394,
1250,
63,
21,
15533,
3639,
288,
5411,
727,
1139,
18529,
2081,
18,
60,
18529,
1119,
2172,
60,
18529,
1119,
10792,
273,
394,
1139,
18529,
2081,
18,
60,
18529,
1119,
12,
60,
18529,
1989,
18,
3015,
4201,
12,
14511,
1042,
16,
760,
1119,
55,
2501,
2257,
16,
1139,
18529,
1989,
18,
588,
26740,
1435,
3631,
1408,
1769,
5411,
368,
2660,
9852,
24401,
11329,
5411,
727,
4319,
760,
1119,
2519,
273,
11519,
1989,
18,
87,
651,
2257,
774,
8832,
24,
78,
2519,
12,
3845,
1119,
55,
2501,
2257,
1769,
5411,
4191,
2519,
63,
20,
65,
273,
1139,
18529,
2081,
18,
2640,
60,
18529,
24344,
2519,
12,
14511,
1042,
16,
2172,
60,
18529,
1119,
16,
446,
16,
760,
1119,
2519,
1769,
5411,
727,
4319,
5976,
1119,
2519,
273,
1139,
18529,
2081,
18,
2640,
9791,
1119,
2519,
12,
1213,
3280,
2519,
63,
20,
6487,
2583,
1227,
17865,
1769,
5411,
619,
9741,
1119,
63,
20,
65,
273,
394,
1139,
18529,
2081,
18,
60,
18529,
1119,
12,
6769,
60,
18529,
1119,
18,
588,
5788,
1119,
9334,
1139,
18529,
1989,
18,
3015,
4201,
12,
14511,
1042,
16,
5976,
1119,
2519,
10019,
3639,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
1649,
24344,
2519,
12,
8798,
1042,
5873,
1042,
16,
10168,
2257,
760,
1119,
55,
2501,
2257,
16,
4766,
9079,
1139,
18529,
24344,
2519,
8526,
4191,
2519,
16,
1139,
18529,
2081,
18,
60,
18529,
1119,
8526,
619,
9741,
1119,
13,
288,
3639,
368,
1220,
353,
326,
919,
1839,
1139,
18529,
10313,
3639,
1250,
8526,
2583,
1227,
17865,
273,
394,
1250,
63,
21,
15533,
3639,
288,
5411,
727,
1139,
18529,
2081,
18,
60,
18529,
1119,
2172,
60,
18529,
1119,
10792,
273,
394,
1139,
18529,
2081,
18,
60,
18529,
1119,
12,
60,
18529,
1989,
18,
3015,
4201,
12,
14511,
1042,
16,
760,
1119,
55,
2501,
2257,
16,
1139,
18529,
1989,
18,
588,
26740,
1435,
3631,
1408,
1769,
5411,
2
] |
if ((type.getReferenceKey() == null) && (type.getSupertype() != null)) { return oe; }
|
protected Event generateInsert(ObjectType type) { PriorityQueue pq = new PriorityQueue(); Map columnMap = getTablesMap(type, pq); if (columnMap == null) { return null; } Event ev = new Event(); ev.setLineInfo(type); Event oe = getSuperEvent(type, CompoundType.INSERT, ev); if ((type.getReferenceKey() == null) && (type.getSupertype() != null)) { return oe; } while (!pq.isEmpty()) { String tableName = (String)pq.dequeue(); Iterator cols = ((Map)columnMap.get(tableName)) .entrySet().iterator(); StringBuffer sb = new StringBuffer(); StringBuffer tmp = new StringBuffer(); boolean first = true; sb.append("insert into ") .append(tableName) .append("(\n"); while (cols.hasNext()) { Map.Entry me = (Map.Entry)cols.next(); if (!first) { sb.append(", "); tmp.append(", "); } else { first = false; } sb.append((String)me.getKey()); tmp.append((String)me.getValue()); } sb.append("\n) values (\n") .append(tmp.toString()) .append(")"); Operation block = new Operation(sb.toString()); block.setLineInfo(type); oe.addOperation(block); } return oe; }
|
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/3f6fe0ce9ffe0889d8d50c7f5e077801fe09de8a/BaseMDSQLGenerator.java/clean/archive/core-platform/src/com/arsdigita/persistence/metadata/BaseMDSQLGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2587,
2103,
4600,
12,
17610,
618,
13,
288,
3639,
13354,
3183,
14619,
273,
394,
13354,
3183,
5621,
3639,
1635,
1057,
863,
273,
29002,
863,
12,
723,
16,
14619,
1769,
3639,
309,
261,
2827,
863,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
2587,
2113,
273,
394,
2587,
5621,
3639,
2113,
18,
542,
1670,
966,
12,
723,
1769,
3639,
2587,
320,
73,
273,
15172,
1133,
12,
723,
16,
21327,
559,
18,
11356,
16,
2113,
1769,
3639,
309,
14015,
723,
18,
588,
2404,
653,
1435,
422,
446,
13,
597,
261,
723,
18,
588,
8051,
723,
1435,
480,
446,
3719,
288,
5411,
327,
320,
73,
31,
3639,
289,
3639,
1323,
16051,
84,
85,
18,
291,
1921,
10756,
288,
5411,
514,
4775,
273,
261,
780,
13,
84,
85,
18,
323,
4000,
5621,
5411,
4498,
5347,
273,
14015,
863,
13,
2827,
863,
18,
588,
12,
18033,
3719,
7734,
263,
4099,
694,
7675,
9838,
5621,
5411,
6674,
2393,
273,
394,
6674,
5621,
5411,
6674,
1853,
273,
394,
6674,
5621,
5411,
1250,
1122,
273,
638,
31,
5411,
2393,
18,
6923,
2932,
6387,
1368,
9369,
7734,
263,
6923,
12,
18033,
13,
7734,
263,
6923,
2932,
4713,
82,
8863,
5411,
1323,
261,
6842,
18,
5332,
2134,
10756,
288,
7734,
1635,
18,
1622,
1791,
273,
261,
863,
18,
1622,
13,
6842,
18,
4285,
5621,
7734,
309,
16051,
3645,
13,
288,
10792,
2393,
18,
6923,
2932,
16,
315,
1769,
10792,
1853,
18,
6923,
2932,
16,
315,
1769,
7734,
289,
469,
288,
10792,
1122,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2587,
2103,
4600,
12,
17610,
618,
13,
288,
3639,
13354,
3183,
14619,
273,
394,
13354,
3183,
5621,
3639,
1635,
1057,
863,
273,
29002,
863,
12,
723,
16,
14619,
1769,
3639,
309,
261,
2827,
863,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
2587,
2113,
273,
394,
2587,
5621,
3639,
2113,
18,
542,
1670,
966,
12,
723,
1769,
3639,
2587,
320,
73,
273,
15172,
1133,
12,
723,
16,
21327,
559,
18,
11356,
16,
2113,
1769,
3639,
309,
14015,
723,
18,
588,
2404,
653,
1435,
422,
446,
13,
597,
261,
723,
18,
588,
8051,
723,
1435,
480,
446,
3719,
288,
5411,
327,
320,
73,
31,
3639,
289,
3639,
1323,
16051,
84,
85,
18,
291,
1921,
10756,
2
] |
|
if (getContainerFullPath() == null) return false;
|
if (getContainerFullPath() == null) { return false; }
|
protected final boolean validateDestinationGroup() { if (getContainerFullPath() == null) return false; // If the container exist, validate it IContainer container = getSpecifiedContainer(); if (container != null) { if (!container.isAccessible()) { setErrorMessage(IDEWorkbenchMessages.WizardImportPage_folderMustExist); return false; } } return true; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WizardImportPage.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardImportPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
1250,
1954,
5683,
1114,
1435,
288,
3639,
309,
261,
588,
2170,
24173,
1435,
422,
446,
13,
5411,
327,
629,
31,
3639,
368,
971,
326,
1478,
1005,
16,
1954,
518,
3639,
467,
2170,
1478,
273,
20189,
939,
2170,
5621,
3639,
309,
261,
3782,
480,
446,
13,
288,
5411,
309,
16051,
3782,
18,
291,
10451,
10756,
288,
7734,
9967,
1079,
12,
10385,
2421,
22144,
5058,
18,
27130,
5010,
1964,
67,
5609,
10136,
4786,
1769,
7734,
327,
629,
31,
5411,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
1250,
1954,
5683,
1114,
1435,
288,
3639,
309,
261,
588,
2170,
24173,
1435,
422,
446,
13,
5411,
327,
629,
31,
3639,
368,
971,
326,
1478,
1005,
16,
1954,
518,
3639,
467,
2170,
1478,
273,
20189,
939,
2170,
5621,
3639,
309,
261,
3782,
480,
446,
13,
288,
5411,
309,
16051,
3782,
18,
291,
10451,
10756,
288,
7734,
9967,
1079,
12,
10385,
2421,
22144,
5058,
18,
27130,
5010,
1964,
67,
5609,
10136,
4786,
1769,
7734,
327,
629,
31,
5411,
289,
3639,
289,
3639,
327,
638,
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
] |
return ( (ReportItemHandle) handle ).columnBindingsIterator( );
|
else if ( handle instanceof ReportItemHandle ) { return ( (ReportItemHandle) handle ).columnBindingsIterator( ); } return Collections.EMPTY_LIST.iterator( );
|
public static Iterator getBindingColumnIterator( DesignElementHandle handle ) { Assert.isLegal( handle instanceof ReportItemHandle || handle instanceof GroupHandle ); if ( handle instanceof GroupHandle ) { return ( (GroupHandle) handle ).columnBindingsIterator( ); } return ( (ReportItemHandle) handle ).columnBindingsIterator( ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ed523f29e0a0cb6c2d541778e6e1bb91a5e93741/DEUtil.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
4498,
29471,
1494,
3198,
12,
29703,
1046,
3259,
1640,
262,
202,
95,
202,
202,
8213,
18,
291,
30697,
12,
1640,
1276,
8706,
1180,
3259,
9506,
202,
20081,
1640,
1276,
3756,
3259,
11272,
202,
202,
430,
261,
1640,
1276,
3756,
3259,
262,
202,
202,
95,
1082,
202,
2463,
261,
261,
1114,
3259,
13,
1640,
262,
18,
2827,
10497,
3198,
12,
11272,
202,
202,
97,
202,
202,
2463,
261,
261,
4820,
1180,
3259,
13,
1640,
262,
18,
2827,
10497,
3198,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4498,
29471,
1494,
3198,
12,
29703,
1046,
3259,
1640,
262,
202,
95,
202,
202,
8213,
18,
291,
30697,
12,
1640,
1276,
8706,
1180,
3259,
9506,
202,
20081,
1640,
1276,
3756,
3259,
11272,
202,
202,
430,
261,
1640,
1276,
3756,
3259,
262,
202,
202,
95,
1082,
202,
2463,
261,
261,
1114,
3259,
13,
1640,
262,
18,
2827,
10497,
3198,
12,
11272,
202,
202,
97,
202,
202,
2463,
261,
261,
4820,
1180,
3259,
13,
1640,
262,
18,
2827,
10497,
3198,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try { return method.invoke(delegatedInstance, args); } catch (final InvocationTargetException e) { throw e.getTargetException();
|
if (method.equals(ReflectionUtils.equals)) { return new Boolean(args[0] != null && args[0].equals(delegatedInstance)); } else { try { return method.invoke(delegatedInstance, args); } catch (final InvocationTargetException e) { throw e.getTargetException(); }
|
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable { final Object delegatedInstance = delegate.getComponentInstance(pico); try { return method.invoke(delegatedInstance, args); } catch (final InvocationTargetException e) { throw e.getTargetException(); } }
|
9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/ec0537818c93e8d7a2349d0d5f5b7624d7b856b1/ThreadLocalComponentAdapter.java/clean/java/picocontainer/trunk/gems/src/java/org/picocontainer/gems/ThreadLocalComponentAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
4356,
12,
6385,
1033,
2889,
16,
727,
2985,
707,
16,
727,
1033,
8526,
833,
13,
1216,
4206,
288,
5411,
727,
1033,
30055,
1442,
273,
7152,
18,
588,
1841,
1442,
12,
84,
10764,
1769,
5411,
775,
288,
7734,
327,
707,
18,
14407,
12,
3771,
1332,
690,
1442,
16,
833,
1769,
5411,
289,
1044,
261,
6385,
15342,
425,
13,
288,
7734,
604,
425,
18,
588,
14950,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
4356,
12,
6385,
1033,
2889,
16,
727,
2985,
707,
16,
727,
1033,
8526,
833,
13,
1216,
4206,
288,
5411,
727,
1033,
30055,
1442,
273,
7152,
18,
588,
1841,
1442,
12,
84,
10764,
1769,
5411,
775,
288,
7734,
327,
707,
18,
14407,
12,
3771,
1332,
690,
1442,
16,
833,
1769,
5411,
289,
1044,
261,
6385,
15342,
425,
13,
288,
7734,
604,
425,
18,
588,
14950,
5621,
5411,
289,
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
] |
return DOCTYPE_XHTML_SYSTEM; */
|
return DTD.XHTMLSystemId;
|
public static String whichDoctypeSystem( Document doc ) { DocumentType doctype; /* XXX Delayed until DOM Level 2 is introduced into the code base doctype = doc.getDoctype(); if ( doctype != null ) { // Note on catch: DOM Level 1 does not specify this method // and the code will throw a NoSuchMethodError try { return doctype.getSystemID(); } catch ( Error except ) { } } */ /* XXX Delayed until the HTML DOM is introduced into the code base if ( doc instanceof HTMLDocument ) return DOCTYPE_XHTML_SYSTEM; */ return null; }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/b655c36a7c6acc066438c888ca04b747ad2b2981/OutputFormat.java/clean/src/org/apache/xml/serialize/OutputFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1492,
3244,
12387,
3163,
12,
4319,
997,
262,
565,
288,
202,
2519,
559,
24909,
31,
3639,
1748,
11329,
225,
20165,
329,
3180,
4703,
4557,
576,
353,
26339,
1368,
326,
981,
1026,
202,
2896,
12387,
273,
997,
18,
588,
3244,
12387,
5621,
202,
430,
261,
24909,
480,
446,
262,
288,
202,
565,
368,
3609,
603,
1044,
30,
4703,
4557,
404,
1552,
486,
4800,
333,
707,
202,
565,
368,
471,
326,
981,
903,
604,
279,
5823,
1305,
668,
202,
565,
775,
288,
202,
202,
2463,
24909,
18,
588,
3163,
734,
5621,
202,
565,
289,
1044,
261,
1068,
1335,
262,
288,
289,
202,
97,
202,
5549,
3639,
1748,
11329,
225,
20165,
329,
3180,
326,
3982,
4703,
353,
26339,
1368,
326,
981,
1026,
202,
430,
261,
997,
1276,
3982,
2519,
262,
202,
565,
327,
5467,
17331,
67,
60,
4870,
67,
14318,
31,
540,
1195,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1492,
3244,
12387,
3163,
12,
4319,
997,
262,
565,
288,
202,
2519,
559,
24909,
31,
3639,
1748,
11329,
225,
20165,
329,
3180,
4703,
4557,
576,
353,
26339,
1368,
326,
981,
1026,
202,
2896,
12387,
273,
997,
18,
588,
3244,
12387,
5621,
202,
430,
261,
24909,
480,
446,
262,
288,
202,
565,
368,
3609,
603,
1044,
30,
4703,
4557,
404,
1552,
486,
4800,
333,
707,
202,
565,
368,
471,
326,
981,
903,
604,
279,
5823,
1305,
668,
202,
565,
775,
288,
202,
202,
2463,
24909,
18,
588,
3163,
734,
5621,
202,
565,
289,
1044,
261,
1068,
1335,
262,
288,
289,
202,
97,
202,
5549,
3639,
1748,
11329,
225,
20165,
329,
3180,
326,
3982,
4703,
353,
26339,
2
] |
segments[i] = new Segment(splitfileType, dataBlocks, checkBlocks, this, archiveContext, ctx, maxTempLength, splitUseLengths);
|
segments[i] = new Segment(splitfileType, dataBlocks, checkBlocks, this, archiveContext, ctx, maxTempLength, splitUseLengths, blockLength);
|
public SplitFetcher(Metadata metadata, long maxTempLength, ArchiveContext archiveContext, FetcherContext ctx) throws MetadataParseException { actx = archiveContext; fctx = ctx; overrideLength = metadata.dataLength; this.maxTempLength = maxTempLength; splitfileType = metadata.getSplitfileType(); splitfileDataBlocks = metadata.getSplitfileDataKeys(); splitfileCheckBlocks = metadata.getSplitfileCheckKeys(); splitUseLengths = metadata.splitUseLengths; if(splitfileType == Metadata.SPLITFILE_NONREDUNDANT) { // Don't need to do much - just fetch everything and piece it together. blocksPerSegment = -1; checkBlocksPerSegment = -1; segmentCount = 1; } else if(splitfileType == Metadata.SPLITFILE_ONION_STANDARD) { blocksPerSegment = 128; checkBlocksPerSegment = 64; segmentCount = (splitfileDataBlocks.length / blocksPerSegment) + (splitfileDataBlocks.length % blocksPerSegment == 0 ? 0 : 1); // Onion, 128/192. // Will be segmented. } else throw new MetadataParseException("Unknown splitfile format: "+splitfileType); segments = new Segment[segmentCount]; // initially null on all entries if(segmentCount == 1) { segments[0] = new Segment(splitfileType, splitfileDataBlocks, splitfileCheckBlocks, this, archiveContext, ctx, maxTempLength, splitUseLengths); } else { int dataBlocksPtr = 0; int checkBlocksPtr = 0; for(int i=0;i<segments.length;i++) { // Create a segment. Give it its keys. int copyDataBlocks = Math.min(splitfileDataBlocks.length - dataBlocksPtr, blocksPerSegment); int copyCheckBlocks = Math.min(splitfileCheckBlocks.length - checkBlocksPtr, checkBlocksPerSegment); FreenetURI[] dataBlocks = new FreenetURI[copyDataBlocks]; FreenetURI[] checkBlocks = new FreenetURI[copyCheckBlocks]; if(copyDataBlocks > 0) System.arraycopy(splitfileDataBlocks, dataBlocksPtr, dataBlocks, 0, copyDataBlocks); if(copyCheckBlocks > 0) System.arraycopy(splitfileCheckBlocks, checkBlocksPtr, checkBlocks, 0, copyCheckBlocks); dataBlocksPtr += copyDataBlocks; checkBlocksPtr += copyCheckBlocks; segments[i] = new Segment(splitfileType, dataBlocks, checkBlocks, this, archiveContext, ctx, maxTempLength, splitUseLengths); } } unstartedSegments = segments; unstartedSegmentsCount = segments.length; }
|
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/6409afdcb2a1c16496544e23537bea624c517930/SplitFetcher.java/clean/src/freenet/client/SplitFetcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5385,
16855,
12,
2277,
1982,
16,
1525,
943,
7185,
1782,
16,
13124,
1042,
5052,
1042,
16,
8065,
264,
1042,
1103,
13,
1216,
6912,
13047,
288,
202,
202,
621,
92,
273,
5052,
1042,
31,
202,
202,
74,
5900,
273,
1103,
31,
202,
202,
10601,
1782,
273,
1982,
18,
892,
1782,
31,
202,
202,
2211,
18,
1896,
7185,
1782,
273,
943,
7185,
1782,
31,
202,
202,
4939,
768,
559,
273,
1982,
18,
588,
5521,
768,
559,
5621,
202,
202,
4939,
768,
751,
6450,
273,
1982,
18,
588,
5521,
768,
751,
2396,
5621,
202,
202,
4939,
768,
1564,
6450,
273,
1982,
18,
588,
5521,
768,
1564,
2396,
5621,
202,
202,
4939,
3727,
22406,
273,
1982,
18,
4939,
3727,
22406,
31,
202,
202,
430,
12,
4939,
768,
559,
422,
6912,
18,
17482,
3776,
67,
3993,
5879,
5240,
6856,
13,
288,
1082,
202,
759,
7615,
1404,
1608,
358,
741,
9816,
300,
2537,
2158,
7756,
471,
11151,
518,
9475,
18,
1082,
202,
7996,
2173,
4131,
273,
300,
21,
31,
1082,
202,
1893,
6450,
2173,
4131,
273,
300,
21,
31,
1082,
202,
9273,
1380,
273,
404,
31,
202,
202,
97,
469,
309,
12,
4939,
768,
559,
422,
6912,
18,
17482,
3776,
67,
673,
1146,
67,
882,
18264,
13,
288,
1082,
202,
7996,
2173,
4131,
273,
8038,
31,
1082,
202,
1893,
6450,
2173,
4131,
273,
5178,
31,
1082,
202,
9273,
1380,
273,
261,
4939,
768,
751,
6450,
18,
2469,
342,
4398,
2173,
4131,
13,
397,
9506,
202,
12,
4939,
768,
751,
6450,
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,
5385,
16855,
12,
2277,
1982,
16,
1525,
943,
7185,
1782,
16,
13124,
1042,
5052,
1042,
16,
8065,
264,
1042,
1103,
13,
1216,
6912,
13047,
288,
202,
202,
621,
92,
273,
5052,
1042,
31,
202,
202,
74,
5900,
273,
1103,
31,
202,
202,
10601,
1782,
273,
1982,
18,
892,
1782,
31,
202,
202,
2211,
18,
1896,
7185,
1782,
273,
943,
7185,
1782,
31,
202,
202,
4939,
768,
559,
273,
1982,
18,
588,
5521,
768,
559,
5621,
202,
202,
4939,
768,
751,
6450,
273,
1982,
18,
588,
5521,
768,
751,
2396,
5621,
202,
202,
4939,
768,
1564,
6450,
273,
1982,
18,
588,
5521,
768,
1564,
2396,
5621,
202,
202,
4939,
3727,
22406,
273,
1982,
18,
4939,
3727,
22406,
2
] |
AddNumbersFault fault = new AddNumbersFault(); fault.setMessage(message); fault.setFaultInfo(detail); throw new AddNumbersFault_Exception(message, fault); } return number1 + number2; }
|
AddNumbersFault fault = new AddNumbersFault (); fault.setMessage (message); fault.setFaultInfo (detail); throw new AddNumbersFault_Exception (message, fault); } return number1 + number2; }
|
public int addNumbers(int number1, int number2) throws AddNumbersFault_Exception { if (number1 < 0 || number2 < 0) { String message = "Negative number cant be added!"; String detail = "Numbers: " + number1 + ", " + number2; AddNumbersFault fault = new AddNumbersFault(); fault.setMessage(message); fault.setFaultInfo(detail); throw new AddNumbersFault_Exception(message, fault); } return number1 + number2; }
|
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/e86d9f89c8476c1c73d066eab8d6ff6f06b880a7/AddNumbersImpl.java/clean/jaxws-ri/samples/fromwsdl/src/fromwsdl/server/AddNumbersImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
527,
10072,
12,
474,
1300,
21,
16,
509,
1300,
22,
13,
1082,
202,
15069,
1436,
10072,
7083,
67,
503,
288,
202,
202,
430,
261,
2696,
21,
411,
374,
747,
1300,
22,
411,
374,
13,
288,
1082,
202,
780,
883,
273,
315,
14959,
1300,
848,
88,
506,
3096,
4442,
31,
5411,
514,
7664,
273,
315,
10072,
30,
315,
397,
1300,
21,
397,
3104,
315,
397,
1300,
22,
31,
1082,
202,
986,
10072,
7083,
12530,
273,
394,
1436,
10072,
7083,
5621,
5411,
12530,
18,
542,
1079,
12,
2150,
1769,
1082,
202,
643,
18,
542,
7083,
966,
12,
8992,
1769,
1082,
202,
12849,
394,
1436,
10072,
7083,
67,
503,
12,
2150,
16,
12530,
1769,
202,
202,
97,
202,
202,
2463,
1300,
21,
397,
1300,
22,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
527,
10072,
12,
474,
1300,
21,
16,
509,
1300,
22,
13,
1082,
202,
15069,
1436,
10072,
7083,
67,
503,
288,
202,
202,
430,
261,
2696,
21,
411,
374,
747,
1300,
22,
411,
374,
13,
288,
1082,
202,
780,
883,
273,
315,
14959,
1300,
848,
88,
506,
3096,
4442,
31,
5411,
514,
7664,
273,
315,
10072,
30,
315,
397,
1300,
21,
397,
3104,
315,
397,
1300,
22,
31,
1082,
202,
986,
10072,
7083,
12530,
273,
394,
1436,
10072,
7083,
5621,
5411,
12530,
18,
542,
1079,
12,
2150,
1769,
1082,
202,
643,
18,
542,
7083,
966,
12,
8992,
1769,
1082,
202,
12849,
394,
1436,
10072,
7083,
67,
503,
12,
2150,
16,
12530,
1769,
202,
202,
97,
202,
2
] |
"Ljava/lang/String;[Ljava/lang/Object;)",
|
"Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)",
|
private static void generateMethod(ClassFileWriter cfw, String genName, String methodName, Class[] parms, Class returnType) { StringBuffer sb = new StringBuffer(); sb.append('('); short arrayLocal = 1; // includes this. for (int i = 0; i < parms.length; i++) { Class type = parms[i]; appendTypeString(sb, type); if (type.equals(Long.TYPE) || type.equals(Double.TYPE)) arrayLocal += 2; else arrayLocal += 1; } sb.append(')'); appendTypeString(sb, returnType); String methodSignature = sb.toString(); // System.out.println("generating " + m.getName() + methodSignature); // System.out.flush(); cfw.startMethod(methodName, methodSignature, ClassFileWriter.ACC_PUBLIC); cfw.add(ByteCode.BIPUSH, (byte) parms.length); // > 255 parms? cfw.add(ByteCode.ANEWARRAY, "java/lang/Object"); cfw.add(ByteCode.ASTORE, arrayLocal); // allocate a local variable to store the scope used to wrap native objects. short scopeLocal = (short) (arrayLocal + 1); boolean loadedScope = false; int paramOffset = 1; for (int i = 0; i < parms.length; i++) { cfw.add(ByteCode.ALOAD, arrayLocal); cfw.add(ByteCode.BIPUSH, i); if (parms[i].isPrimitive()) { paramOffset = generateWrapParam(cfw, paramOffset, parms[i]); } else { // An arbitary Java object; call Context.toObject to wrap in // a Scriptable object cfw.add(ByteCode.ALOAD, paramOffset++); if (! loadedScope) { // load this.self into a local the first time it's needed. // it will provide the scope needed by Context.toObject(). cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, genName, "self", "Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.ASTORE, scopeLocal); loadedScope = true; } cfw.add(ByteCode.ALOAD, scopeLocal); // Get argument Class cfw.addLoadConstant(parms[i].getName()); cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/ScriptRuntime", "loadClassName", "(Ljava/lang/String;)", "Ljava/lang/Class;"); cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/JavaAdapter", "toObject", "(Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;" + "Ljava/lang/Class;)", "Lorg/mozilla/javascript/Scriptable;"); } cfw.add(ByteCode.AASTORE); } cfw.add(ByteCode.ALOAD_0); // this cfw.add(ByteCode.GETFIELD, genName, "self", "Lorg/mozilla/javascript/Scriptable;"); cfw.addLoadConstant(methodName); cfw.add(ByteCode.ALOAD, arrayLocal); // go through utility method, which creates a Context to run the // method in. cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/JavaAdapter", "callMethod", "(Lorg/mozilla/javascript/Scriptable;" + "Ljava/lang/String;[Ljava/lang/Object;)", "Ljava/lang/Object;"); if (returnType.equals(Void.TYPE)) { cfw.add(ByteCode.POP); cfw.add(ByteCode.RETURN); } else { generateReturnResult(cfw, returnType); } cfw.stopMethod((short)(scopeLocal + 1), null); }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/f61a4fa629dd0699e1a2d0893806311ab8a9dfd1/JavaAdapter.java/buggy/js/rhino/org/mozilla/javascript/JavaAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2103,
1305,
12,
797,
812,
2289,
6080,
91,
16,
514,
3157,
461,
16,
4766,
3639,
514,
4918,
16,
1659,
8526,
17902,
16,
4766,
4202,
1659,
9424,
13,
377,
288,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
2393,
18,
6923,
2668,
2668,
1769,
3639,
3025,
526,
2042,
273,
404,
31,
202,
759,
6104,
333,
18,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
17902,
18,
2469,
31,
277,
27245,
288,
5411,
1659,
618,
273,
17902,
63,
77,
15533,
5411,
714,
559,
780,
12,
18366,
16,
618,
1769,
5411,
309,
261,
723,
18,
14963,
12,
3708,
18,
2399,
13,
747,
618,
18,
14963,
12,
5265,
18,
2399,
3719,
7734,
526,
2042,
1011,
576,
31,
5411,
469,
7734,
526,
2042,
1011,
404,
31,
3639,
289,
3639,
2393,
18,
6923,
2668,
2506,
1769,
3639,
714,
559,
780,
12,
18366,
16,
9424,
1769,
3639,
514,
707,
5374,
273,
2393,
18,
10492,
5621,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
3441,
1776,
315,
397,
312,
18,
17994,
1435,
397,
707,
5374,
1769,
3639,
368,
2332,
18,
659,
18,
11330,
5621,
3639,
6080,
91,
18,
1937,
1305,
12,
2039,
461,
16,
707,
5374,
16,
7682,
30614,
2289,
18,
31414,
67,
14939,
1769,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
38,
2579,
57,
2664,
16,
261,
7229,
13,
17902,
18,
2469,
1769,
225,
368,
405,
4561,
17902,
35,
3639,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
1258,
7245,
8552,
16,
315,
6290,
19,
4936,
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,
2103,
1305,
12,
797,
812,
2289,
6080,
91,
16,
514,
3157,
461,
16,
4766,
3639,
514,
4918,
16,
1659,
8526,
17902,
16,
4766,
4202,
1659,
9424,
13,
377,
288,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
2393,
18,
6923,
2668,
2668,
1769,
3639,
3025,
526,
2042,
273,
404,
31,
202,
759,
6104,
333,
18,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
17902,
18,
2469,
31,
277,
27245,
288,
5411,
1659,
618,
273,
17902,
63,
77,
15533,
5411,
714,
559,
780,
12,
18366,
16,
618,
1769,
5411,
309,
261,
723,
18,
14963,
12,
3708,
18,
2399,
13,
747,
618,
18,
14963,
12,
5265,
18,
2399,
3719,
7734,
526,
2042,
1011,
576,
31,
2
] |
temp = new byte[] { toRead[pos+4], toRead[pos+5], toRead[pos+6], toRead[pos+7] };
|
temp = new byte[] { b[pos+4], b[pos+5], b[pos+6], b[pos+7] };
|
public BufferedImage openImage(String id, int no) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); if (no < 0 || no >= getImageCount(id)) { throw new FormatException("Invalid image number: " + no); } // First initialize: if (separated) no /= 3; in.seek(offsets[no] + 12); byte[] toRead = new byte[4]; in.read(toRead); int blockSize = batoi(toRead); toRead = new byte[1]; in.read(toRead); // right now I'm gonna skip all the header info // check to see whether or not this is v2 data if (toRead[0] == 1) in.skipBytes(128); in.skipBytes(169); // read in the block of data toRead = new byte[blockSize]; int read = 0; int left = blockSize; while (left > 0) { int i = in.read(toRead, read, left); read += i; left -= i; } byte[] pixelData = new byte[blockSize]; int pixPos = 0; Dimension dim; try { dim = pictReader.getDimensions(toRead); } catch (Exception e) { dim = new Dimension(0, 0); } int length = toRead.length; int num, size, blockEnd; int totalBlocks = -1; // set to allow loop to start. int expectedBlock = 0; int pos = 0; int imagePos = 0; int imageSize = dim.width * dim.height; short[] flatSamples = new short[imageSize]; byte[] temp; boolean skipflag; sizeX = new Integer(dim.width); sizeY = new Integer(dim.height); // read in deep gray pixel data into an array, and create a // BufferedImage out of it // // First, checks the existence of a deep gray block. If it doesn't exist, // assume it is PICT data, and attempt to read it. // check whether or not there is deep gray data while (expectedBlock != totalBlocks) { skipflag = false; while (pos + 7 < length && (toRead[pos] != 73 || toRead[pos + 1] != 86 || toRead[pos + 2] != 69 || toRead[pos + 3] != 65 || toRead[pos + 4] != 100 || toRead[pos + 5] != 98 || toRead[pos + 6] != 112 || toRead[pos + 7] != 113)) { pos++; } if (pos + 32 > length) { // The header is 32 bytes long. if (expectedBlock == 0 && imageType[no] < 9) { // there has been no deep gray data, and it is supposed // to be a pict... *crosses fingers* try { if (!isRGB(id) || !separated) { return pictReader.open(toRead); } else { return ImageTools.splitChannels(pictReader.open(toRead))[no%3]; } } catch (Exception e) { e.printStackTrace(); throw new FormatException("No iPic comment block found", e); } } else { throw new FormatException("Expected iPic comment block not found"); } } pos += 8; // skip the block type we just found // Read info from the iPic comment. This serves as a // starting point to read the rest. temp = new byte[] { toRead[pos], toRead[pos+1], toRead[pos+2], toRead[pos+3] }; num = batoi(temp); if (num != expectedBlock) { throw new FormatException("Expected iPic block not found"); } expectedBlock++; temp = new byte[] { toRead[pos+4], toRead[pos+5], toRead[pos+6], toRead[pos+7] }; if (totalBlocks == -1) { totalBlocks = batoi(temp); } else { if (batoi(temp) != totalBlocks) { throw new FormatException("Unexpected totalBlocks numbein.read"); } } // skip to size pos += 16; temp = new byte[] { toRead[pos], toRead[pos+1], toRead[pos+2], toRead[pos+3] }; size = batoi(temp); pos += 8; blockEnd = pos + size; // copy into our data array. System.arraycopy(toRead, pos, pixelData, pixPos, size); pixPos += size; } int pixelValue = 0; pos = 0; // Now read the data and wrap it in a BufferedImage while (true) { if (pos + 1 < pixelData.length) { pixelValue = pixelData[pos] < 0 ? 256 + pixelData[pos] : (int) pixelData[pos] << 8; pixelValue += pixelData[pos + 1] < 0 ? 256 + pixelData[pos + 1] : (int) pixelData[pos + 1]; pos += 2; } else throw new FormatException("Malformed LIFF data"); flatSamples[imagePos] = (short) pixelValue; imagePos++; if (imagePos == imageSize) { // done, return it return ImageTools.makeImage(flatSamples, dim.width, dim.height, 1, false); } } }
|
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/2df09d33bfdc966378aae0cc09cb503afb983bc2/OpenlabReader.java/buggy/loci/formats/in/OpenlabReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12362,
1696,
2040,
12,
780,
612,
16,
509,
1158,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
309,
261,
2135,
411,
374,
747,
1158,
1545,
10567,
1380,
12,
350,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
1316,
1300,
30,
315,
397,
1158,
1769,
565,
289,
565,
368,
5783,
4046,
30,
565,
309,
261,
24622,
13,
1158,
9531,
890,
31,
565,
316,
18,
16508,
12,
16542,
63,
2135,
65,
397,
2593,
1769,
565,
1160,
8526,
358,
1994,
273,
394,
1160,
63,
24,
15533,
565,
316,
18,
896,
12,
869,
1994,
1769,
565,
509,
13766,
273,
27464,
11359,
12,
869,
1994,
1769,
565,
358,
1994,
273,
394,
1160,
63,
21,
15533,
565,
316,
18,
896,
12,
869,
1994,
1769,
565,
368,
2145,
2037,
467,
17784,
314,
265,
6582,
2488,
777,
326,
1446,
1123,
565,
368,
866,
358,
2621,
2856,
578,
486,
333,
353,
331,
22,
501,
565,
309,
261,
869,
1994,
63,
20,
65,
422,
404,
13,
316,
18,
7457,
2160,
12,
10392,
1769,
565,
316,
18,
7457,
2160,
12,
26035,
1769,
565,
368,
855,
316,
326,
1203,
434,
501,
565,
358,
1994,
273,
394,
1160,
63,
2629,
1225,
15533,
565,
509,
855,
273,
374,
31,
565,
509,
2002,
273,
13766,
31,
565,
1323,
261,
4482,
405,
374,
13,
288,
1377,
509,
277,
273,
316,
18,
896,
12,
869,
1994,
16,
855,
16,
2002,
1769,
1377,
855,
1011,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12362,
1696,
2040,
12,
780,
612,
16,
509,
1158,
13,
565,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
309,
261,
2135,
411,
374,
747,
1158,
1545,
10567,
1380,
12,
350,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
1316,
1300,
30,
315,
397,
1158,
1769,
565,
289,
565,
368,
5783,
4046,
30,
565,
309,
261,
24622,
13,
1158,
9531,
890,
31,
565,
316,
18,
16508,
12,
16542,
63,
2135,
65,
397,
2593,
1769,
565,
1160,
8526,
358,
1994,
273,
394,
1160,
63,
24,
15533,
565,
316,
18,
896,
12,
869,
1994,
1769,
565,
509,
13766,
273,
27464,
11359,
12,
869,
2
] |
container.setLayout( WidgetUtil.createGridLayout( 5 ) );
|
container.setLayout( WidgetUtil.createGridLayout( 5 ,15) );
|
public void buildUI( Composite parent ) { super.buildUI( parent ); container.setLayout( WidgetUtil.createGridLayout( 5 ) ); // Defines providers. IDescriptorProvider nameProvider = new TextPropertyDescriptorProvider( ReportItemHandle.NAME_PROP, ReportDesignConstants.EXTENDED_ITEM ); IDescriptorProvider widthProvider = new UnitPropertyDescriptorProvider( ReportItemHandle.WIDTH_PROP, ReportDesignConstants.GRID_ITEM ); IDescriptorProvider heightProvider = new UnitPropertyDescriptorProvider( ReportItemHandle.HEIGHT_PROP, ReportDesignConstants.GRID_ITEM ); IDescriptorProvider styleProvider = new SimpleComboPropertyDescriptorProvider( ReportItemHandle.STYLE_PROP, ReportDesignConstants.REPORT_ITEM ); // Defines sections. TextSection nameSection = new TextSection( nameProvider.getDisplayName( ), container, true ); Section seperatorSection = new SeperatorSection( container, SWT.HORIZONTAL ); UnitSection widthSection = new UnitSection( widthProvider.getDisplayName( ), container, true ); UnitSection heightSection = new UnitSection( heightProvider.getDisplayName( ), container, true ); SimpleComboSection styleSection = new SimpleComboSection( styleProvider.getDisplayName( ), container, true ); // Sets providers. nameSection.setProvider( nameProvider ); widthSection.setProvider( widthProvider ); heightSection.setProvider( heightProvider ); styleSection.setProvider( styleProvider ); // Sets widths. nameSection.setWidth( 180 ); widthSection.setWidth( 180 ); heightSection.setWidth( 180 ); styleSection.setWidth( 180 ); // Sets layout num. nameSection.setLayoutNum( 5 ); widthSection.setLayoutNum( 2 ); heightSection.setLayoutNum( 3 ); styleSection.setLayoutNum( 5 ); // Sets fill grid num. nameSection.setGridPlaceholder( 3, true ); widthSection.setGridPlaceholder( 0, true ); heightSection.setGridPlaceholder( 1, true ); styleSection.setGridPlaceholder( 3, true ); // Adds sections into this page. addSection( "EXTENDED_NAME_SECTION", nameSection ); //$NON-NLS-1$ addSection( "SEPERATOR_SECTION", seperatorSection ); //$NON-NLS-1$ addSection( "EXTENDED_WIDTH_SECTION", widthSection ); //$NON-NLS-1$ addSection( "EXTENDED_HEIGHT_SECTION", heightSection ); //$NON-NLS-1$ addSection( "EXTENDED_STYLE_SECTION", styleSection ); //$NON-NLS-1$ }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b1c54a82f7e0fded60b986c55329f90d6daefd16/ExtendedItemGeneralPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/attributes/page/ExtendedItemGeneralPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
5370,
12,
14728,
982,
225,
262,
202,
95,
202,
202,
9565,
18,
3510,
5370,
12,
982,
11272,
202,
202,
3782,
18,
542,
3744,
12,
11103,
1304,
18,
2640,
6313,
3744,
12,
1381,
262,
11272,
202,
202,
759,
18003,
281,
9165,
18,
202,
202,
734,
2263,
2249,
508,
2249,
273,
394,
3867,
1396,
3187,
2249,
12,
8706,
1180,
3259,
18,
1985,
67,
15811,
16,
9506,
202,
4820,
15478,
2918,
18,
4142,
22088,
67,
12674,
11272,
202,
202,
734,
2263,
2249,
1835,
2249,
273,
394,
8380,
1396,
3187,
2249,
12,
8706,
1180,
3259,
18,
10023,
67,
15811,
16,
9506,
202,
4820,
15478,
2918,
18,
6997,
734,
67,
12674,
11272,
202,
202,
734,
2263,
2249,
2072,
2249,
273,
394,
8380,
1396,
3187,
2249,
12,
8706,
1180,
3259,
18,
14595,
67,
15811,
16,
9506,
202,
4820,
15478,
2918,
18,
6997,
734,
67,
12674,
11272,
202,
202,
734,
2263,
2249,
2154,
2249,
273,
394,
4477,
16156,
1396,
3187,
2249,
12,
8706,
1180,
3259,
18,
15066,
67,
15811,
16,
9506,
202,
4820,
15478,
2918,
18,
22710,
67,
12674,
11272,
202,
202,
759,
18003,
281,
7178,
18,
202,
202,
1528,
5285,
508,
5285,
273,
394,
3867,
5285,
12,
508,
2249,
18,
588,
20524,
12,
262,
16,
9506,
202,
3782,
16,
9506,
202,
3767,
11272,
202,
202,
5285,
22282,
639,
5285,
273,
394,
3265,
457,
639,
5285,
12,
1478,
16,
348,
8588,
18,
44,
20344,
11272,
202,
202,
2802,
5285,
1835,
5285,
273,
394,
8380,
5285,
12,
1835,
2249,
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,
482,
918,
1361,
5370,
12,
14728,
982,
225,
262,
202,
95,
202,
202,
9565,
18,
3510,
5370,
12,
982,
11272,
202,
202,
3782,
18,
542,
3744,
12,
11103,
1304,
18,
2640,
6313,
3744,
12,
1381,
262,
11272,
202,
202,
759,
18003,
281,
9165,
18,
202,
202,
734,
2263,
2249,
508,
2249,
273,
394,
3867,
1396,
3187,
2249,
12,
8706,
1180,
3259,
18,
1985,
67,
15811,
16,
9506,
202,
4820,
15478,
2918,
18,
4142,
22088,
67,
12674,
11272,
202,
202,
734,
2263,
2249,
1835,
2249,
273,
394,
8380,
1396,
3187,
2249,
12,
8706,
1180,
3259,
18,
10023,
67,
15811,
16,
9506,
202,
4820,
15478,
2918,
18,
6997,
734,
67,
12674,
11272,
202,
202,
734,
2263,
2249,
2072,
2249,
2
] |
} else if (line.startsWith("from ")) {
|
} else if (line.startsWith("from ")) {
|
public boolean processLine(String line, ErrorParserManager eoParser) { // Known patterns. // (a) // filename:lineno: description // // (b) // filename:lineno:column: description // // (b) // In file included from b.h:2, // from a.h:3, // from hello.c:3: // c.h:2:15: missing ')' in macro parameter list // // (c) // h.c: In function `main': // h.c:41: `foo' undeclared (first use in this function) // h.c:41: (Each undeclared identifier is reported only once // h.c:41: for each function it appears in.) // h.c:41: parse error before `char' // h.c:75: `p' undeclared (first use in this function) int firstColon = line.indexOf(':'); /* Guard against drive in Windows platform. */ if (firstColon == 1) { try { String os = System.getProperty("os.name"); if (os != null && os.startsWith("Win")) { try { if (Character.isLetter(line.charAt(0))) { firstColon = line.indexOf(':', 2); } } catch (StringIndexOutOfBoundsException e) { } } } catch (SecurityException e) { } } if (firstColon != -1) { try { int secondColon = -1; int num = -1; while ((secondColon = line.indexOf(':', firstColon + 1)) != -1) { String lineNumber = line.substring(firstColon + 1, secondColon); try { num = Integer.parseInt(lineNumber); } catch (NumberFormatException e) { // Failed. } if (num != -1) { break; // Find possible match. } firstColon = secondColon; } if (secondColon != -1) { int col = -1; String fileName = line.substring(0, firstColon); String varName = null; String desc = line.substring(secondColon + 1).trim(); int severity = IMarkerGenerator.SEVERITY_ERROR_RESOURCE; /* Then check for the column */ int thirdColon= line.indexOf(':', secondColon + 1); if (thirdColon != -1) { String columnNumber = line.substring(secondColon + 1, thirdColon); try { col = Integer.parseInt(columnNumber); } catch (NumberFormatException e) { } } if (col != -1) { desc = line.substring(thirdColon + 1).trim(); } // gnu c: filename:no: (Each undeclared identifier is reported // only once. filename:no: for each function it appears in.) if (desc.startsWith ("(Each undeclared")) { // Do nothing. return false; } else { String previous = eoParser.getPreviousLine(); if (desc.endsWith(")") && previous.indexOf("(Each undeclared") >= 0 ) { // Do nothing. return false; } } /* See if we can get a var name * Look for: * `foo' undeclared * `foo' defined but not used * conflicting types for `foo' * previous declaration of `foo' * parse error before `foo' * */ int s; if((s = desc.indexOf("\' undeclared")) != -1) { int p = desc.indexOf("`"); if (p != -1) { varName = desc.substring(p+1, s); //System.out.println("undex varName "+ varName); } } else if((s = desc.indexOf("\' defined but not used")) != -1) { int p = desc.indexOf("`"); if (p != -1) { varName = desc.substring(p+1, s); //System.out.println("unused varName "+ varName); } } else if((s = desc.indexOf("conflicting types for `")) != -1) { int p = desc.indexOf("\'", s); if (p != -1) { varName = desc.substring(desc.indexOf("`") + 1, p); //System.out.println("confl varName "+ varName); } } else if((s = desc.indexOf("previous declaration of `")) != -1) { int p = desc.indexOf("\'", s); if (p != -1) { varName = desc.substring(desc.indexOf("`") + 1, p); //System.out.println("prev varName "+ varName); } } else if ((s = desc.indexOf("parse error before ")) != -1) { int p = desc.indexOf("\'", s); if (p != -1) { varName = desc.substring(desc.indexOf("`") + 1, p); //System.out.println("prev varName "+ varName); } } /* * In file included from b.h:2, * from a.h:3, * from hello.c:3: * c.h:2:15: missing ')' in macro parameter list * * We reconstruct the multiline gcc errors to multiple errors: * c.h:3:15: missing ')' in macro parameter list * b.h:2: in inclusion c.h:3:15 * a.h:3: in inclusion b.h:2 * hello.c:3: in inclusion a.h:3 * */ if (eoParser.getScratchBuffer().startsWith("In file included from ")) { if (line.startsWith("from ")) { // We want the last error in the chain, so continue. eoParser.appendToScratchBuffer(line); return false; } String buffer = eoParser.getScratchBuffer(); eoParser.clearScratchBuffer(); int from = -1; String inclusionError = fileName + ":" + num; while ((from = buffer.indexOf("from ")) != -1) { int coma = buffer.indexOf(',', from); String buf; if (coma != -1) { buf = buffer.substring(from + 5, coma) + ':'; buffer = buffer.substring(coma); } else { buf = buffer.substring(from + 5); buffer = ""; } String t = buf; buf += " in inclusion " + inclusionError; inclusionError = t; // Call the parsing process again. processLine(buf, eoParser); } } IFile file = eoParser.findFilePath(fileName); if (file == null) { // Parse the entire project. file = eoParser.findFileName(fileName); if (file != null) { // If there is a conflict set the error on the project. if (eoParser.isConflictingName(fileName)) { desc = "*" + desc; file = null; } } } if (desc.startsWith("warning") || desc.startsWith("Warning")) { severity = IMarkerGenerator.SEVERITY_WARNING; // Remove the warning. String d = desc.substring("warning".length()).trim(); if (d.startsWith(":")) { d = d.substring(1).trim(); } if (d.length() != 0) { desc = d; } } // Display the fileName. if (file == null) { desc = desc +"[" + fileName + "]"; } eoParser.generateMarker(file, num, desc, severity, varName); } else { if (line.startsWith("In file included from ")) { eoParser.appendToScratchBuffer(line); } else if (line.startsWith("from ")) { eoParser.appendToScratchBuffer(line); } } } catch (StringIndexOutOfBoundsException e) { } catch (NumberFormatException e) { } } return false; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/74206bb9c0adfac164644b684d089bbdf8757013/GCCErrorParser.java/clean/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1207,
1670,
12,
780,
980,
16,
1068,
2678,
1318,
425,
83,
2678,
13,
288,
202,
202,
759,
30036,
6884,
18,
202,
202,
759,
261,
69,
13,
202,
202,
759,
1544,
30,
17782,
30,
2477,
202,
202,
759,
202,
202,
759,
261,
70,
13,
202,
202,
759,
1544,
30,
17782,
30,
2827,
30,
2477,
202,
202,
759,
202,
202,
759,
261,
70,
13,
202,
202,
759,
657,
585,
5849,
628,
324,
18,
76,
30,
22,
16,
202,
202,
759,
6862,
628,
279,
18,
76,
30,
23,
16,
202,
202,
759,
6862,
628,
19439,
18,
71,
30,
23,
30,
202,
202,
759,
276,
18,
76,
30,
22,
30,
3600,
30,
3315,
5777,
316,
11522,
1569,
666,
202,
202,
759,
202,
202,
759,
261,
71,
13,
202,
202,
759,
366,
18,
71,
30,
657,
445,
1375,
5254,
4278,
202,
202,
759,
366,
18,
71,
30,
9803,
30,
1375,
11351,
11,
640,
16571,
261,
3645,
999,
316,
333,
445,
13,
202,
202,
759,
366,
18,
71,
30,
9803,
30,
261,
3442,
640,
16571,
2756,
353,
14010,
1338,
3647,
202,
202,
759,
366,
18,
71,
30,
9803,
30,
364,
1517,
445,
518,
14606,
316,
12998,
202,
202,
759,
366,
18,
71,
30,
9803,
30,
1109,
555,
1865,
1375,
3001,
11,
202,
202,
759,
366,
18,
71,
30,
5877,
30,
1375,
84,
11,
640,
16571,
261,
3645,
999,
316,
333,
445,
13,
202,
202,
474,
1122,
19636,
273,
980,
18,
31806,
2668,
2497,
1769,
202,
202,
20308,
22809,
5314,
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,
1207,
1670,
12,
780,
980,
16,
1068,
2678,
1318,
425,
83,
2678,
13,
288,
202,
202,
759,
30036,
6884,
18,
202,
202,
759,
261,
69,
13,
202,
202,
759,
1544,
30,
17782,
30,
2477,
202,
202,
759,
202,
202,
759,
261,
70,
13,
202,
202,
759,
1544,
30,
17782,
30,
2827,
30,
2477,
202,
202,
759,
202,
202,
759,
261,
70,
13,
202,
202,
759,
657,
585,
5849,
628,
324,
18,
76,
30,
22,
16,
202,
202,
759,
6862,
628,
279,
18,
76,
30,
23,
16,
202,
202,
759,
6862,
628,
19439,
18,
71,
30,
23,
30,
202,
202,
759,
276,
18,
76,
30,
22,
30,
3600,
30,
3315,
5777,
316,
11522,
1569,
666,
202,
2
] |
public String getName() {return "MessageDispatcher";}
|
public String getName() { return "MessageDispatcher"; }
|
public String getName() {return "MessageDispatcher";}
|
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/9b133caccdd70cd06c1674ee2a42e75071fdc287/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1723,
1435,
288,
2463,
315,
1079,
6681,
14432,
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,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1723,
1435,
288,
2463,
315,
1079,
6681,
14432,
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,
-100,
-100,
-100,
-100
] |
public void build(MessageContext msgCtx) throws WSSPolicyException, RampartException, WSSecurityException { DocumentBuilderFactoryImpl.setDOOMRequired(true); /* * First get the SOAP envelope as document, then create a security * header and insert into the document (Envelope) */ Document doc = Axis2Util.getDocumentFromSOAPEnvelope(msgCtx.getEnvelope(), false); SOAPConstants soapConstants = WSSecurityUtil.getSOAPConstants(doc .getDocumentElement()); WSSecHeader secHeader = new WSSecHeader(); secHeader.insertSecurityHeader(doc); RampartMessageData rmd = new RampartMessageData(msgCtx, doc); Policy policy = null; /* * When creating the RampartMessageData instance we * extract the service policy is set in the msgCtx. * If it is missing then try to obtain from the configuration files. */ if(rmd.getServicePolicy() != null) { if(msgCtx.isServerSide()) { String policyXml = msgCtx.getEffectivePolicy().toString(); policy = PolicyEngine.getPolicy(new ByteArrayInputStream(policyXml.getBytes())); } else { Parameter param = msgCtx.getParameter(RampartMessageData.KEY_RAMPART_POLICY); OMElement policyElem = param.getParameterElement().getFirstElement(); policy = PolicyEngine.getPolicy(policyElem); } } List it = (List)policy.getAlternatives().next(); RampartPolicyData policyData = RampartPolicyBuilder.build(it); rmd.setPolicyData(policyData); rmd.setSecHeader(secHeader); processEnvelope(msgCtx, rmd); }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/d62fcb685c25560cfa7f271424ba06c670463f4e/MessageBuilder.java/buggy/modules/security/src/org/apache/rampart/MessageBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3510,
12,
1079,
1042,
3576,
6442,
13,
15069,
59,
1260,
2582,
503,
16,
54,
931,
485,
503,
16,
59,
1260,
557,
2336,
503,
95,
2519,
20692,
2828,
18,
542,
3191,
1872,
3705,
12,
3767,
1769,
26873,
3759,
588,
5787,
27952,
30290,
345,
5457,
16,
451,
1331,
602,
448,
1397,
560,
14,
3374,
464,
6387,
474,
10370,
329,
504,
650,
12,
10862,
13,
5549,
2519,
2434,
33,
6558,
22,
1304,
18,
588,
2519,
1265,
27952,
10862,
12,
3576,
6442,
18,
588,
10862,
9334,
5743,
1769,
27952,
6902,
31269,
438,
2918,
33,
59,
1260,
557,
2336,
1304,
18,
588,
27952,
2918,
12,
2434,
18,
588,
2519,
1046,
10663,
59,
1260,
557,
1864,
3321,
1864,
33,
2704,
59,
1260,
557,
1864,
5621,
3321,
1864,
18,
6387,
4368,
1864,
12,
2434,
1769,
54,
931,
485,
1079,
5139,
297,
1264,
33,
2704,
54,
931,
485,
1079,
751,
12,
3576,
6442,
16,
2434,
1769,
52,
1415,
879,
1590,
33,
2011,
31,
26873,
2888,
1331,
266,
1776,
5787,
54,
931,
485,
1079,
751,
1336,
1814,
14,
8004,
7915,
264,
633,
5086,
21648,
267,
451,
351,
1055,
6442,
4509,
2047,
305,
6228,
2169,
451,
4099,
869,
947,
5977,
2080,
451,
22703,
872,
2354,
4509,
19,
430,
12,
86,
1264,
18,
588,
1179,
2582,
1435,
5,
33,
2011,
15329,
430,
12,
3576,
6442,
18,
291,
2081,
8895,
10756,
95,
780,
5086,
4432,
33,
3576,
6442,
18,
588,
28531,
2582,
7675,
10492,
5621,
5086,
33,
2582,
4410,
18,
588,
2582,
12,
2704,
8826,
4348,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3510,
12,
1079,
1042,
3576,
6442,
13,
15069,
59,
1260,
2582,
503,
16,
54,
931,
485,
503,
16,
59,
1260,
557,
2336,
503,
95,
2519,
20692,
2828,
18,
542,
3191,
1872,
3705,
12,
3767,
1769,
26873,
3759,
588,
5787,
27952,
30290,
345,
5457,
16,
451,
1331,
602,
448,
1397,
560,
14,
3374,
464,
6387,
474,
10370,
329,
504,
650,
12,
10862,
13,
5549,
2519,
2434,
33,
6558,
22,
1304,
18,
588,
2519,
1265,
27952,
10862,
12,
3576,
6442,
18,
588,
10862,
9334,
5743,
1769,
27952,
6902,
31269,
438,
2918,
33,
59,
1260,
557,
2336,
1304,
18,
588,
27952,
2918,
12,
2434,
18,
588,
2519,
1046,
10663,
59,
1260,
557,
1864,
3321,
1864,
33,
2704,
59,
1260,
557,
2
] |
||
}else {
|
}else{} VMTransport vmtransport=server.connect(); IntrospectionSupport.setProperties(vmtransport,options); Transport transport=vmtransport; if(vmtransport.isMarshal()){ HashMap optionsCopy=new HashMap(options); transport=new MarshallingTransportFilter(transport,createWireFormat(options),createWireFormat(optionsCopy));
|
public Transport doCompositeConnect(URI location) throws Exception { URI brokerURI; String host; Map options; CompositeData data = URISupport.parseComposite(location); if( data.getComponents().length==1 && "broker".equals(data.getComponents()[0].getScheme()) ) { brokerURI = data.getComponents()[0]; CompositeData brokerData = URISupport.parseComposite(brokerURI); host = (String)brokerData.getParameters().get("brokerName"); if( host == null ) host = "localhost"; if( brokerData.getPath()!=null ) host = data.getPath(); options = data.getParameters(); location = new URI("vm://"+host); } else { // If using the less complex vm://localhost?broker.persistent=true form try { host = location.getHost(); options = URISupport.parseParamters(location); String config = (String) options.remove("brokerConfig"); if( config != null ) { brokerURI = new URI(config); } else { Map brokerOptions = IntrospectionSupport.extractProperties(options, "broker."); brokerURI = new URI("broker://()/"+host+"?"+URISupport.createQueryString(brokerOptions)); } } catch (URISyntaxException e1) { throw IOExceptionSupport.create(e1); } location = new URI("vm://"+host); } VMTransportServer server = (VMTransportServer) servers.get(host); //validate the broker is still active if( !validateBroker(host) || server == null ) { BrokerService broker = BrokerRegistry.getInstance().lookup(host); if (broker == null) { try { if( brokerFactoryHandler !=null ) { broker = brokerFactoryHandler.createBroker(brokerURI); } else { broker = BrokerFactory.createBroker(brokerURI); } broker.start(); } catch (URISyntaxException e) { throw IOExceptionSupport.create(e); } brokers.put(host, broker); } server = (VMTransportServer) servers.get(host); if (server == null) { server = (VMTransportServer) bind(location, true); TransportConnector connector = new TransportConnector(broker.getBroker(), server); connector.start(); connectors.put(host, connector); } }else { } VMTransport vmtransport = server.connect(); IntrospectionSupport.setProperties(vmtransport, options); Transport transport = vmtransport; if (vmtransport.isMarshal()) { HashMap optionsCopy = new HashMap(options); transport = new MarshallingTransportFilter(transport, createWireFormat(options), createWireFormat(optionsCopy)); } if( !options.isEmpty() ) { throw new IllegalArgumentException("Invalid connect parameters: "+options); } return transport; }
|
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/5a429d90bbfeb27d012127cc5d03f67b0ef7ed98/VMTransportFactory.java/buggy/activemq-core/src/main/java/org/apache/activemq/transport/vm/VMTransportFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9514,
741,
9400,
5215,
12,
3098,
2117,
13,
1216,
1185,
288,
3639,
3699,
8625,
3098,
31,
3639,
514,
1479,
31,
3639,
1635,
702,
31,
3639,
14728,
751,
501,
273,
3699,
6289,
18,
2670,
9400,
12,
3562,
1769,
3639,
309,
12,
501,
18,
588,
7171,
7675,
2469,
631,
21,
597,
315,
21722,
9654,
14963,
12,
892,
18,
588,
7171,
1435,
63,
20,
8009,
588,
9321,
10756,
262,
288,
5411,
8625,
3098,
273,
501,
18,
588,
7171,
1435,
63,
20,
15533,
13491,
14728,
751,
8625,
751,
273,
3699,
6289,
18,
2670,
9400,
12,
21722,
3098,
1769,
5411,
1479,
273,
261,
780,
13,
21722,
751,
18,
588,
2402,
7675,
588,
2932,
21722,
461,
8863,
5411,
309,
12,
1479,
422,
446,
262,
7734,
1479,
273,
315,
13014,
14432,
5411,
309,
12,
8625,
751,
18,
588,
743,
1435,
5,
33,
2011,
262,
7734,
1479,
273,
501,
18,
588,
743,
5621,
13491,
702,
273,
501,
18,
588,
2402,
5621,
5411,
2117,
273,
394,
3699,
2932,
3489,
14334,
15,
2564,
1769,
3639,
289,
469,
288,
5411,
368,
971,
1450,
326,
5242,
7233,
4268,
2207,
13014,
35,
21722,
18,
19393,
33,
3767,
646,
5411,
775,
288,
7734,
1479,
273,
225,
2117,
18,
588,
2594,
5621,
7734,
702,
273,
3699,
6289,
18,
2670,
786,
5432,
12,
3562,
1769,
7734,
514,
642,
273,
261,
780,
13,
702,
18,
4479,
2932,
21722,
809,
8863,
7734,
309,
12,
642,
480,
446,
262,
288,
10792,
8625,
3098,
273,
394,
3699,
12,
1425,
1769,
7734,
289,
469,
288,
10792,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9514,
741,
9400,
5215,
12,
3098,
2117,
13,
1216,
1185,
288,
3639,
3699,
8625,
3098,
31,
3639,
514,
1479,
31,
3639,
1635,
702,
31,
3639,
14728,
751,
501,
273,
3699,
6289,
18,
2670,
9400,
12,
3562,
1769,
3639,
309,
12,
501,
18,
588,
7171,
7675,
2469,
631,
21,
597,
315,
21722,
9654,
14963,
12,
892,
18,
588,
7171,
1435,
63,
20,
8009,
588,
9321,
10756,
262,
288,
5411,
8625,
3098,
273,
501,
18,
588,
7171,
1435,
63,
20,
15533,
13491,
14728,
751,
8625,
751,
273,
3699,
6289,
18,
2670,
9400,
12,
21722,
3098,
1769,
5411,
1479,
273,
261,
780,
13,
21722,
751,
18,
588,
2402,
7675,
588,
2932,
21722,
461,
8863,
5411,
309,
12,
1479,
422,
446,
2
] |
public JSourceWriter(Writer out) {
|
public JSourceWriter(final Writer out) {
|
public JSourceWriter(Writer out) { this(out, DEFAULT_SIZE, DEFAULT_CHAR, false); } //-- JSourceWriter
|
57307 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57307/639ed93115321ad51c2450f306c4d50d146ede46/JSourceWriter.java/clean/src/main/java/org/exolab/javasource/JSourceWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
804,
1830,
2289,
12,
6385,
5497,
596,
13,
288,
3639,
333,
12,
659,
16,
3331,
67,
4574,
16,
3331,
67,
7305,
16,
629,
1769,
565,
289,
368,
413,
804,
1830,
2289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
804,
1830,
2289,
12,
6385,
5497,
596,
13,
288,
3639,
333,
12,
659,
16,
3331,
67,
4574,
16,
3331,
67,
7305,
16,
629,
1769,
565,
289,
368,
413,
804,
1830,
2289,
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
] |
.create(getWindow()));
|
.create(window));
|
protected void fillMenu(IMenuManager menu) { menu.add(ContributionItemFactory.VIEWS_SHOW_IN .create(getWindow())); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1bde0643dd187b23bf57cd332e0997f6c371aaa1/WorkbenchActionBuilder.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
4750,
918,
3636,
4599,
12,
3445,
2104,
1318,
3824,
13,
288,
7734,
3824,
18,
1289,
12,
442,
4027,
1180,
1733,
18,
4136,
41,
2651,
67,
16677,
67,
706,
13491,
263,
2640,
12,
5668,
10019,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
4750,
918,
3636,
4599,
12,
3445,
2104,
1318,
3824,
13,
288,
7734,
3824,
18,
1289,
12,
442,
4027,
1180,
1733,
18,
4136,
41,
2651,
67,
16677,
67,
706,
13491,
263,
2640,
12,
5668,
10019,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.jruby.interpreter.RubyScope getRubyScope() {
|
public RubyScope getRubyScope() {
|
public org.jruby.interpreter.RubyScope getRubyScope() { return rubyScope; }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/cf644c556d410c47305ebeba5728efa25f7756dc/Ruby.java/buggy/org/jruby/Ruby.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3876,
4170,
10340,
3876,
1435,
288,
3639,
327,
22155,
3876,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
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,
377,
1071,
19817,
3876,
4170,
10340,
3876,
1435,
288,
3639,
327,
22155,
3876,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return checkSimpleDerivation((DatatypeValidator)directBase, (DatatypeValidator)base, block);
|
return checkSimpleDerivation((XSSimpleType)directBase, (XSSimpleType)base, block);
|
private static boolean checkComplexDerivation(XSComplexTypeDecl derived, XSTypeDecl base, int block) { // 2.1 B and D must be the same type definition. if (derived == base) return true; // 1 If B and D are not the same type definition, then the {derivation method} of D must not be in the subset. if ((derived.fDerivedBy & block) != 0) return false; // 2 One of the following must be true: XSTypeDecl directBase = derived.fBaseType; // 2.2 B must be D's {base type definition}. if (directBase == base) return true; // 2.3 All of the following must be true: // 2.3.1 D's {base type definition} must not be the ur-type definition. if (directBase == SchemaGrammar.fAnyType || directBase == SchemaGrammar.fAnySimpleType) { return false; } // 2.3.2 The appropriate case among the following must be true: // 2.3.2.1 If D's {base type definition} is complex, then it must be validly derived from B given the subset as defined by this constraint. if (directBase.getXSType() == XSTypeDecl.COMPLEX_TYPE) return checkComplexDerivation((XSComplexTypeDecl)directBase, base, block); // 2.3.2.2 If D's {base type definition} is simple, then it must be validly derived from B given the subset as defined in Type Derivation OK (Simple) (3.14.6). if (directBase.getXSType() == XSTypeDecl.SIMPLE_TYPE) { // if base is complex type if (base.getXSType() == XSTypeDecl.COMPLEX_TYPE) { // if base is anyType, change base to anySimpleType, // otherwise, not valid if (base == SchemaGrammar.fAnyType) base = SchemaGrammar.fAnySimpleType; else return false; } return checkSimpleDerivation((DatatypeValidator)directBase, (DatatypeValidator)base, block); } return false; }
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/5b0cf65d1d2e090172d69189c96c522d6a30ac2c/XSConstraints.java/buggy/src/org/apache/xerces/impl/xs/XSConstraints.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
866,
12795,
12041,
8482,
12,
60,
55,
12795,
559,
3456,
10379,
16,
1139,
55,
559,
3456,
1026,
16,
509,
1203,
13,
288,
3639,
368,
576,
18,
21,
605,
471,
463,
1297,
506,
326,
1967,
618,
2379,
18,
3639,
309,
261,
765,
2950,
422,
1026,
13,
5411,
327,
638,
31,
3639,
368,
404,
971,
605,
471,
463,
854,
486,
326,
1967,
618,
2379,
16,
1508,
326,
288,
765,
8482,
707,
97,
434,
463,
1297,
486,
506,
316,
326,
7931,
18,
3639,
309,
14015,
765,
2950,
18,
74,
21007,
858,
473,
1203,
13,
480,
374,
13,
5411,
327,
629,
31,
3639,
368,
576,
6942,
434,
326,
3751,
1297,
506,
638,
30,
3639,
1139,
55,
559,
3456,
2657,
2171,
273,
10379,
18,
74,
2171,
559,
31,
3639,
368,
576,
18,
22,
605,
1297,
506,
463,
1807,
288,
1969,
618,
2379,
5496,
3639,
309,
261,
7205,
2171,
422,
1026,
13,
5411,
327,
638,
31,
3639,
368,
576,
18,
23,
4826,
434,
326,
3751,
1297,
506,
638,
30,
3639,
368,
576,
18,
23,
18,
21,
463,
1807,
288,
1969,
618,
2379,
97,
1297,
486,
506,
326,
8896,
17,
723,
2379,
18,
3639,
309,
261,
7205,
2171,
422,
4611,
18576,
18,
74,
2961,
559,
747,
5411,
2657,
2171,
422,
4611,
18576,
18,
74,
2961,
5784,
559,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
368,
576,
18,
23,
18,
22,
1021,
5505,
648,
17200,
326,
3751,
1297,
506,
638,
30,
3639,
368,
576,
18,
23,
18,
22,
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,
3238,
760,
1250,
866,
12795,
12041,
8482,
12,
60,
55,
12795,
559,
3456,
10379,
16,
1139,
55,
559,
3456,
1026,
16,
509,
1203,
13,
288,
3639,
368,
576,
18,
21,
605,
471,
463,
1297,
506,
326,
1967,
618,
2379,
18,
3639,
309,
261,
765,
2950,
422,
1026,
13,
5411,
327,
638,
31,
3639,
368,
404,
971,
605,
471,
463,
854,
486,
326,
1967,
618,
2379,
16,
1508,
326,
288,
765,
8482,
707,
97,
434,
463,
1297,
486,
506,
316,
326,
7931,
18,
3639,
309,
14015,
765,
2950,
18,
74,
21007,
858,
473,
1203,
13,
480,
374,
13,
5411,
327,
629,
31,
3639,
368,
576,
6942,
434,
326,
3751,
1297,
506,
638,
30,
3639,
1139,
55,
559,
3456,
2657,
2
] |
public void setMerge(int mergeType, RtfCell mergeCell) { this.mergeType = mergeType; store = mergeCell.getStore(); // XXX i think that this is false here, because the width must be set in importCell // in an colspan, not all cells have the same width// cellWidth = mergeCell.getCellWidth(); }
|
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/9686cc7c2b9d93fdbe8c8ea4e70de79258c81a59/RtfCell.java/buggy/itext/src/com/lowagie/text/rtf/RtfCell.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
444,
6786,
12,
474,
2691,
559,
16,
24958,
4020,
2691,
4020,
13,
288,
225,
333,
18,
2702,
559,
273,
2691,
559,
31,
225,
1707,
273,
2691,
4020,
18,
588,
2257,
5621,
225,
368,
11329,
277,
15507,
716,
333,
353,
629,
2674,
16,
2724,
326,
1835,
1297,
506,
444,
316,
1930,
4020,
225,
368,
316,
392,
20856,
16,
486,
777,
5983,
1240,
326,
1967,
1835,
759,
225,
2484,
2384,
273,
2691,
4020,
18,
588,
4020,
2384,
5621,
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,
225,
1071,
918,
444,
6786,
12,
474,
2691,
559,
16,
24958,
4020,
2691,
4020,
13,
288,
225,
333,
18,
2702,
559,
273,
2691,
559,
31,
225,
1707,
273,
2691,
4020,
18,
588,
2257,
5621,
225,
368,
11329,
277,
15507,
716,
333,
353,
629,
2674,
16,
2724,
326,
1835,
1297,
506,
444,
316,
1930,
4020,
225,
368,
316,
392,
20856,
16,
486,
777,
5983,
1240,
326,
1967,
1835,
759,
225,
2484,
2384,
273,
2691,
4020,
18,
588,
4020,
2384,
5621,
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
] |
||
if (verbose == 1) { VM.sysWrite("->"); VM.sysWrite(Conversions.pagesToBytes(getPagesUsed())>>10); VM.sysWrite("KB "); }
|
protected final void globalRelease() { // release each of the collected regions rcSpace.release(); Immortal.release(immortalVM, null); if (verbose == 1) { VM.sysWrite("->"); VM.sysWrite(Conversions.pagesToBytes(getPagesUsed())>>10); VM.sysWrite("KB "); } if (verbose == 2) { VM.sysWrite("<GC ", Statistics.gcCount); VM.sysWrite(" "); VM.sysWriteInt(incCounter); VM.sysWrite(" incs, "); VM.sysWriteInt(decCounter); VM.sysWrite(" decs, "); VM.sysWriteInt(rootCounter); VM.sysWrite(" roots"); if (refCountCycleDetection) { VM.sysWrite(", "); VM.sysWriteInt(purpleCounter); VM.sysWrite(" purple"); } VM.sysWrite(">\n"); } if (verbose > 2) { VM.sysWrite(" After Collection: "); // showUsage(); } lastRCPages = rcMR.committedPages(); if (getPagesReserved() + required >= getTotalPages()) { if (!progress) VM.sysFail("Out of memory"); progress = false; } else progress = true; }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/7d3620259aa3dd0f8e96cee83911b5b9ef64f999/Plan.java/clean/rvm/src/vm/memoryManagers/JMTk/plan/refCount/Plan.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
2552,
7391,
1435,
288,
565,
368,
3992,
1517,
434,
326,
12230,
10085,
565,
4519,
3819,
18,
9340,
5621,
565,
2221,
81,
499,
287,
18,
9340,
12,
381,
81,
499,
287,
7397,
16,
446,
1769,
565,
309,
261,
11369,
422,
404,
13,
288,
1377,
8251,
18,
9499,
3067,
2932,
2122,
8863,
1377,
8251,
18,
9499,
3067,
12,
29287,
18,
7267,
21033,
12,
588,
5716,
6668,
10756,
9778,
2163,
1769,
1377,
8251,
18,
9499,
3067,
2932,
16024,
315,
1769,
565,
289,
565,
309,
261,
11369,
422,
576,
13,
288,
1377,
8251,
18,
9499,
3067,
2932,
32,
15396,
3104,
22964,
18,
13241,
1380,
1769,
8251,
18,
9499,
3067,
2932,
315,
1769,
4202,
8251,
18,
9499,
3067,
1702,
12,
9523,
4789,
1769,
8251,
18,
9499,
3067,
2932,
316,
2143,
16,
315,
1769,
1377,
8251,
18,
9499,
3067,
1702,
12,
4924,
4789,
1769,
8251,
18,
9499,
3067,
2932,
2109,
87,
16,
315,
1769,
1377,
8251,
18,
9499,
3067,
1702,
12,
3085,
4789,
1769,
8251,
18,
9499,
3067,
2932,
12876,
8863,
1377,
309,
261,
1734,
1380,
13279,
10214,
13,
288,
202,
7397,
18,
9499,
3067,
2932,
16,
315,
1769,
225,
202,
7397,
18,
9499,
3067,
1702,
12,
12688,
1802,
4789,
1769,
8251,
18,
9499,
3067,
2932,
5405,
1802,
8863,
1377,
289,
1377,
8251,
18,
9499,
3067,
2932,
5333,
82,
8863,
565,
289,
565,
309,
261,
11369,
405,
576,
13,
288,
1377,
8251,
18,
9499,
3067,
2932,
282,
7360,
2200,
30,
315,
1769,
1377,
368,
1377,
2405,
5357,
5621,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
2552,
7391,
1435,
288,
565,
368,
3992,
1517,
434,
326,
12230,
10085,
565,
4519,
3819,
18,
9340,
5621,
565,
2221,
81,
499,
287,
18,
9340,
12,
381,
81,
499,
287,
7397,
16,
446,
1769,
565,
309,
261,
11369,
422,
404,
13,
288,
1377,
8251,
18,
9499,
3067,
2932,
2122,
8863,
1377,
8251,
18,
9499,
3067,
12,
29287,
18,
7267,
21033,
12,
588,
5716,
6668,
10756,
9778,
2163,
1769,
1377,
8251,
18,
9499,
3067,
2932,
16024,
315,
1769,
565,
289,
565,
309,
261,
11369,
422,
576,
13,
288,
1377,
8251,
18,
9499,
3067,
2932,
32,
15396,
3104,
22964,
18,
13241,
1380,
1769,
8251,
18,
9499,
3067,
2932,
315,
1769,
4202,
8251,
18,
9499,
3067,
1702,
12,
2
] |
|
public boolean updateChart(JTable aTable, Map dataset) { // some logic here so that if we're getting calls to update the chart 5000x/sec, we only do it once a second. // it's too busy otherwise. if(System.currentTimeMillis() < sleepTill) { // Sleeping.. won't update yet return false; } else { sleepTill = System.currentTimeMillis() + 1000L; } // go through the dataset and plop values in the table Iterator e = dataset.keySet().iterator(); int ridx = -1; while(e.hasNext()) { ridx++; String thisKey = (String)e.next(); RunningSample rs = (RunningSample)dataset.get(thisKey); aTable.setValueAt((String)thisKey, ridx, 0); aTable.setValueAt(new Long(rs.getNumSamples()), ridx, 1); aTable.setValueAt(new Long(rs.getAverage()), ridx, 2); aTable.setValueAt(new Long(rs.getMin()), ridx, 3); aTable.setValueAt(new Long(rs.getMax()), ridx, 4); aTable.setValueAt(rs.getErrorPercentageString(), ridx, 5); aTable.setValueAt(rs.getRateString(), ridx, 6); if(rs.getErrorPercentage() > .5) { // have some fun with cell renderers later, change this text to red or something. // here is where the logic would be. } } // while // we ended up updating the data in the table, so we'll return true so our caller can force a repaint // of components return (true); }
|
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/3e9ac412f04bb2b849ba779d2a9e3ff03f56d9bc/StatVisualizer.java/buggy/src/components/org/apache/jmeter/visualizers/StatVisualizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6494,
2725,
7984,
12,
46,
1388,
69,
1388,
16,
863,
8682,
13,
202,
95,
202,
202,
759,
87,
362,
12970,
1354,
11737,
10370,
270,
430,
1814,
4565,
588,
1787,
1991,
30168,
416,
3404,
546,
8987,
485,
25,
3784,
92,
19,
3321,
16,
1814,
3700,
2896,
305,
8243,
448,
10013,
18,
202,
202,
759,
305,
1807,
869,
947,
407,
93,
29778,
18,
202,
202,
430,
12,
3163,
18,
2972,
28512,
1435,
32,
19607,
56,
737,
13,
202,
202,
95,
1082,
202,
759,
20768,
310,
838,
91,
265,
1404,
2725,
24404,
1082,
202,
2463,
5743,
31,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
19607,
56,
737,
33,
3163,
18,
2972,
28512,
1435,
15,
18088,
48,
31,
202,
202,
97,
202,
202,
759,
75,
10370,
2642,
451,
329,
270,
2759,
464,
84,
16884,
2372,
267,
451,
278,
429,
202,
202,
2360,
270,
479,
33,
8682,
18,
856,
694,
7675,
9838,
5621,
202,
202,
267,
313,
3465,
29711,
21,
31,
202,
202,
17523,
12,
73,
18,
5332,
2134,
10756,
202,
202,
95,
1082,
202,
1691,
92,
9904,
31,
1082,
202,
780,
2211,
653,
28657,
780,
13,
73,
18,
4285,
5621,
1082,
202,
7051,
55,
2475,
414,
28657,
7051,
8504,
13,
8682,
18,
588,
12,
2211,
653,
1769,
1082,
202,
69,
1388,
18,
542,
620,
861,
12443,
780,
13,
2211,
653,
16,
1691,
92,
16,
20,
1769,
1082,
202,
69,
1388,
18,
542,
620,
861,
12,
2704,
3708,
12,
5453,
18,
588,
2578,
13239,
1435,
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,
6494,
2725,
7984,
12,
46,
1388,
69,
1388,
16,
863,
8682,
13,
202,
95,
202,
202,
759,
87,
362,
12970,
1354,
11737,
10370,
270,
430,
1814,
4565,
588,
1787,
1991,
30168,
416,
3404,
546,
8987,
485,
25,
3784,
92,
19,
3321,
16,
1814,
3700,
2896,
305,
8243,
448,
10013,
18,
202,
202,
759,
305,
1807,
869,
947,
407,
93,
29778,
18,
202,
202,
430,
12,
3163,
18,
2972,
28512,
1435,
32,
19607,
56,
737,
13,
202,
202,
95,
1082,
202,
759,
20768,
310,
838,
91,
265,
1404,
2725,
24404,
1082,
202,
2463,
5743,
31,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
19607,
56,
737,
33,
3163,
18,
2972,
28512,
1435,
15,
18088,
2
] |
||
} else
|
} else {
|
public Action[] getActions() { if (enabled) { Action[] returnValue = null; if (getFolderDisplay() != null) returnValue = getFolderDisplay().getActions(); return returnValue; } else return null; }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/7a567638a0b949fd9867f9ed3e8b9db257fcfea7/PreviewFolderPanel.java/clean/net/suberic/pooka/gui/PreviewFolderPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8526,
336,
6100,
1435,
288,
202,
430,
261,
5745,
13,
288,
202,
565,
4382,
8526,
7750,
273,
446,
31,
202,
565,
309,
261,
588,
3899,
4236,
1435,
480,
446,
13,
202,
202,
2463,
620,
273,
29001,
4236,
7675,
588,
6100,
5621,
202,
377,
202,
565,
327,
7750,
31,
202,
97,
469,
202,
565,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8526,
336,
6100,
1435,
288,
202,
430,
261,
5745,
13,
288,
202,
565,
4382,
8526,
7750,
273,
446,
31,
202,
565,
309,
261,
588,
3899,
4236,
1435,
480,
446,
13,
202,
202,
2463,
620,
273,
29001,
4236,
7675,
588,
6100,
5621,
202,
377,
202,
565,
327,
7750,
31,
202,
97,
469,
202,
565,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
suite.addTest(new FormatterRegressionTests("test334"));
|
suite.addTest(new FormatterRegressionTests("test335"));
|
public static Test suite() { junit.framework.TestSuite suite = new Suite(FormatterRegressionTests.class.getName()); if (true) { Class c = FormatterRegressionTests.class; Method[] methods = c.getMethods(); for (int i = 0, max = methods.length; i < max; i++) { if (methods[i].getName().startsWith("test")) { //$NON-NLS-1$ suite.addTest( new FormatterRegressionTests(methods[i].getName())); } } } else { suite.addTest(new FormatterRegressionTests("test334")); //$NON-NLS-1$ } return suite; }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/1cd36da9dd049ac527dcab1976c08155d6c121b9/FormatterRegressionTests.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
11371,
1435,
288,
202,
202,
78,
4873,
18,
12303,
18,
4709,
13587,
11371,
273,
394,
348,
9519,
12,
5074,
1617,
16345,
14650,
18,
1106,
18,
17994,
10663,
202,
202,
430,
261,
3767,
13,
288,
1082,
202,
797,
276,
273,
14924,
1617,
16345,
14650,
18,
1106,
31,
1082,
202,
1305,
8526,
2590,
273,
276,
18,
588,
4712,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
16,
943,
273,
2590,
18,
2469,
31,
277,
411,
943,
31,
277,
27245,
288,
9506,
202,
430,
261,
5163,
63,
77,
8009,
17994,
7675,
17514,
1190,
2932,
3813,
6,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
30676,
18,
1289,
4709,
12,
25083,
202,
2704,
14924,
1617,
16345,
14650,
12,
5163,
63,
77,
8009,
17994,
1435,
10019,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
469,
288,
1082,
202,
30676,
18,
1289,
4709,
12,
2704,
14924,
1617,
16345,
14650,
2932,
3813,
3707,
25,
7923,
1769,
225,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
2463,
11371,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
11371,
1435,
288,
202,
202,
78,
4873,
18,
12303,
18,
4709,
13587,
11371,
273,
394,
348,
9519,
12,
5074,
1617,
16345,
14650,
18,
1106,
18,
17994,
10663,
202,
202,
430,
261,
3767,
13,
288,
1082,
202,
797,
276,
273,
14924,
1617,
16345,
14650,
18,
1106,
31,
1082,
202,
1305,
8526,
2590,
273,
276,
18,
588,
4712,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
16,
943,
273,
2590,
18,
2469,
31,
277,
411,
943,
31,
277,
27245,
288,
9506,
202,
430,
261,
5163,
63,
77,
8009,
17994,
7675,
17514,
1190,
2932,
3813,
6,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
30676,
18,
1289,
4709,
12,
25083,
202,
2704,
14924,
2
] |
return new Double(str.length());
|
char[] data = str.toCharArray(); int length = 0; for (int i = 0; i < data.length; i++) { char c = data[i]; length++; if (c >= 0xD800) { try { char low = data[i+1]; if (low < 0xDC00 || low > 0xDFFF) { throw new FunctionCallException("Bad surrogate pair in string " + str); } i++; } catch (ArrayIndexOutOfBoundsException ex) { throw new FunctionCallException("Bad surrogate pair in string " + str); } } } return new Double(length);
|
public static Number evaluate(Object obj, Navigator nav ) { String str = StringFunction.evaluate( obj, nav ); return new Double(str.length()); }
|
5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/7fcfa170f79cc1b50b56a81615573a2f8ee07cad/StringLengthFunction.java/buggy/src/java/main/org/jaxen/function/StringLengthFunction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3588,
5956,
12,
921,
1081,
16,
423,
13061,
8775,
262,
565,
288,
3639,
514,
609,
273,
514,
2083,
18,
21024,
12,
1081,
16,
8775,
11272,
3639,
1149,
8526,
501,
273,
609,
18,
869,
15936,
5621,
509,
769,
273,
374,
31,
364,
261,
474,
277,
273,
374,
31,
277,
411,
501,
18,
2469,
31,
277,
27245,
288,
1149,
276,
273,
501,
63,
77,
15533,
769,
9904,
31,
282,
309,
261,
71,
1545,
374,
17593,
17374,
13,
288,
775,
288,
1149,
4587,
273,
501,
63,
77,
15,
21,
15533,
309,
261,
821,
411,
374,
92,
5528,
713,
747,
4587,
405,
374,
17593,
2246,
42,
13,
288,
604,
394,
4284,
29182,
2932,
6434,
24054,
3082,
316,
533,
315,
397,
609,
1769,
289,
277,
9904,
31,
289,
1044,
261,
1076,
30548,
431,
13,
288,
604,
394,
4284,
29182,
2932,
6434,
24054,
3082,
316,
533,
315,
397,
609,
1769,
289,
289,
289,
327,
394,
3698,
12,
2469,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3588,
5956,
12,
921,
1081,
16,
423,
13061,
8775,
262,
565,
288,
3639,
514,
609,
273,
514,
2083,
18,
21024,
12,
1081,
16,
8775,
11272,
3639,
1149,
8526,
501,
273,
609,
18,
869,
15936,
5621,
509,
769,
273,
374,
31,
364,
261,
474,
277,
273,
374,
31,
277,
411,
501,
18,
2469,
31,
277,
27245,
288,
1149,
276,
273,
501,
63,
77,
15533,
769,
9904,
31,
282,
309,
261,
71,
1545,
374,
17593,
17374,
13,
288,
775,
288,
1149,
4587,
273,
501,
63,
77,
15,
21,
15533,
309,
261,
821,
411,
374,
92,
5528,
713,
747,
4587,
405,
374,
17593,
2246,
42,
13,
288,
604,
394,
4284,
29182,
2932,
6434,
24054,
3082,
316,
533,
315,
397,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.