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 |
|---|---|---|---|---|---|---|
handle = getHandle(); addException(handle, ex);
|
handle = getHandle( ); addException( handle, ex );
|
public void addException(BirtException ex) { DesignElementHandle handle = null; if (!reportContents.empty()) { IContent content = getContent(); ReportItemDesign design = null; if (content != null) design = (ReportItemDesign) content.getGenerateBy(); handle = design == null ? null : design.getHandle(); } else handle = getHandle(); addException(handle, ex); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b900dee3dd264c71eb7ed27f88571d5b40a336c0/ExecutionContext.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
503,
12,
38,
2714,
503,
431,
13,
288,
202,
202,
15478,
1046,
3259,
1640,
273,
446,
31,
202,
202,
430,
16051,
6006,
6323,
18,
5531,
10756,
288,
1082,
202,
45,
1350,
913,
273,
5154,
5621,
1082,
202,
4820,
1180,
15478,
8281,
273,
446,
31,
1082,
202,
430,
261,
1745,
480,
446,
13,
9506,
202,
16934,
273,
261,
4820,
1180,
15478,
13,
913,
18,
588,
4625,
858,
5621,
1082,
202,
4110,
273,
8281,
422,
446,
692,
446,
294,
8281,
18,
588,
3259,
5621,
202,
202,
97,
469,
1082,
202,
4110,
273,
26298,
5621,
202,
202,
1289,
503,
12,
4110,
16,
431,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
503,
12,
38,
2714,
503,
431,
13,
288,
202,
202,
15478,
1046,
3259,
1640,
273,
446,
31,
202,
202,
430,
16051,
6006,
6323,
18,
5531,
10756,
288,
1082,
202,
45,
1350,
913,
273,
5154,
5621,
1082,
202,
4820,
1180,
15478,
8281,
273,
446,
31,
1082,
202,
430,
261,
1745,
480,
446,
13,
9506,
202,
16934,
273,
261,
4820,
1180,
15478,
13,
913,
18,
588,
4625,
858,
5621,
1082,
202,
4110,
273,
8281,
422,
446,
692,
446,
294,
8281,
18,
588,
3259,
5621,
202,
202,
97,
469,
1082,
202,
4110,
273,
26298,
5621,
202,
202,
1289,
503,
12,
4110,
16,
431,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
return false;
|
public void visitBodyPart(MimeBodyPart bp) throws MessagingException { String filename = Mime.getFilename(bp); if (filename != null && filename.equals(mFilename)) { mFound = true; } }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/83383c6322a474bf9c1453fc0068d063db045cae/TestConversion.java/buggy/ZimbraServer/src/java/com/zimbra/qa/unittest/TestConversion.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
2250,
1988,
12,
13320,
2250,
1988,
9107,
13,
1216,
23794,
503,
288,
5411,
514,
1544,
273,
22059,
18,
588,
5359,
12,
17152,
1769,
5411,
309,
261,
3459,
480,
446,
597,
1544,
18,
14963,
12,
81,
5359,
3719,
288,
7734,
312,
2043,
273,
638,
31,
5411,
327,
629,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
1071,
918,
3757,
2250,
1988,
12,
13320,
2250,
1988,
9107,
13,
1216,
23794,
503,
288,
5411,
514,
1544,
273,
22059,
18,
588,
5359,
12,
17152,
1769,
5411,
309,
261,
3459,
480,
446,
597,
1544,
18,
14963,
12,
81,
5359,
3719,
288,
7734,
312,
2043,
273,
638,
31,
5411,
327,
629,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return runtime.getNil();
|
return runtime.newString("");
|
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(); } }
|
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/510a41b06f3103200e881725915b7cc1a5a10b39/ZlibDeflate.java/clean/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
] |
assistant.enableAutoInsert(enabled);
|
public static void configure(ContentAssistant assistant, IPreferenceStore store) { CTextTools textTools= CUIPlugin.getDefault().getTextTools(); IColorManager manager= textTools.getColorManager(); boolean enabled= store.getBoolean(AUTOACTIVATION); assistant.enableAutoActivation(enabled); int delay= store.getInt(AUTOACTIVATION_DELAY); assistant.setAutoActivationDelay(delay); //Color c= getColor(store, PROPOSALS_FOREGROUND, manager); //assistant.setProposalSelectorForeground(c); Color c= getColor(store, PROPOSALS_BACKGROUND, manager); assistant.setContextInformationPopupBackground(c); c= getColor(store, PARAMETERS_FOREGROUND, manager); //assistant.setContextInformationPopupForeground(c); //assistant.setContextSelectorForeground(c); c= getColor(store, PARAMETERS_BACKGROUND, manager); assistant.setContextInformationPopupBackground(c); //assistant.setContextSelectorBackground(c); enabled= store.getBoolean(AUTOINSERT); //assistant.enableAutoInsert(enabled); configureCProcessor(assistant, store); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/9df570138a7c9a06f714ff6a7de5c0021783a9a8/ContentAssistPreference.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/ContentAssistPreference.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
760,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
918,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
5068,
12,
1350,
2610,
17175,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
28779,
16,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
467,
9624,
2257,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
1707,
13,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
288,
9506,
202,
1268,
408,
10348,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
977,
10348,
33,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
385,
5370,
3773,
18,
588,
1868,
7675,
588,
1528,
10348,
5621,
202,
202,
45,
2957,
1318,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
3301,
33,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
977,
10348,
18,
588,
2957,
1318,
5621,
6862,
9506,
202,
6494,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
3696,
33,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
1707,
18,
588,
5507,
12,
18909,
22271,
2689,
1769,
202,
202,
428,
17175,
18,
7589,
4965,
14857,
12,
5745,
1769,
9506,
202,
474,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
4624,
33,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
1707,
18,
588,
1702,
12,
18909,
22271,
2689,
67,
26101,
1769,
202,
202,
428,
17175,
18,
542,
4965,
14857,
6763,
12,
10790,
1769,
9506,
202,
759,
2957,
428,
17175,
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,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
760,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
918,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
5068,
12,
1350,
2610,
17175,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
28779,
16,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
467,
9624,
2257,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
1707,
13,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
288,
9506,
202,
1268,
408,
10348,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
977,
10348,
33,
428,
17175,
18,
7589,
4965,
4600,
12,
5745,
1769,
385,
5370,
3773,
18,
588,
1868,
7675,
588,
1528,
10348,
5621,
202,
2
] |
|
public static String getPartFromDN(String dn, String dnpart) { log.debug(">getPartFromDN: dn:'" + dn + "', dnpart=" + dnpart); String part = null; if ((dn != null) && (dnpart != null)) { String o; dnpart += "="; // we search for 'CN=' etc. X509NameTokenizer xt = new X509NameTokenizer(dn); while (xt.hasMoreTokens()) { o = xt.nextToken(); //log.debug("checking: "+o.substring(0,dnpart.length())); if ((o.length() > dnpart.length()) && o.substring(0, dnpart.length()).equalsIgnoreCase(dnpart)) { part = o.substring(dnpart.length()); break; } } } log.debug("<getpartFromDN: resulting DN part=" + part); return part; } //getPartFromDN
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/0e9ea43c0d59c4f66abc6cc69c57c87a683294da/CertTools.java/clean/src/java/se/anatom/ejbca/util/CertTools.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
780,
588,
1988,
1265,
8609,
12,
780,
5176,
16,
780,
5176,
2680,
15329,
1330,
18,
4148,
2932,
34,
588,
1988,
1265,
8609,
30,
5176,
2497,
6,
15,
5176,
9078,
2187,
5176,
2680,
1546,
15,
5176,
2680,
1769,
780,
2680,
33,
2011,
31,
430,
12443,
5176,
5,
33,
2011,
13,
10,
10,
12,
5176,
2680,
5,
33,
2011,
3719,
95,
780,
83,
31,
5176,
2680,
15,
1546,
1546,
31,
759,
91,
3392,
991,
1884,
11,
12821,
2218,
14175,
18,
60,
5995,
461,
10524,
15239,
33,
2704,
60,
5995,
461,
10524,
12,
5176,
1769,
17523,
12,
15239,
18,
5332,
7417,
5157,
10756,
95,
83,
33,
15239,
18,
4285,
1345,
5621,
759,
1330,
18,
4148,
2932,
24609,
2773,
15,
83,
18,
28023,
12,
20,
16,
5176,
2680,
18,
2469,
1435,
10019,
430,
12443,
83,
18,
2469,
1435,
34,
5176,
2680,
18,
2469,
10756,
10,
10,
83,
18,
28023,
12,
20,
16,
5176,
2680,
18,
2469,
1435,
2934,
14963,
5556,
12,
5176,
2680,
3719,
95,
2680,
33,
83,
18,
28023,
12,
5176,
2680,
18,
2469,
10663,
8820,
31,
9090,
97,
1330,
18,
4148,
2932,
32,
588,
2680,
1265,
8609,
30,
2088,
310,
8609,
2680,
1546,
15,
2680,
1769,
2463,
2680,
31,
97,
759,
588,
1988,
1265,
8609,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
780,
588,
1988,
1265,
8609,
12,
780,
5176,
16,
780,
5176,
2680,
15329,
1330,
18,
4148,
2932,
34,
588,
1988,
1265,
8609,
30,
5176,
2497,
6,
15,
5176,
9078,
2187,
5176,
2680,
1546,
15,
5176,
2680,
1769,
780,
2680,
33,
2011,
31,
430,
12443,
5176,
5,
33,
2011,
13,
10,
10,
12,
5176,
2680,
5,
33,
2011,
3719,
95,
780,
83,
31,
5176,
2680,
15,
1546,
1546,
31,
759,
91,
3392,
991,
1884,
11,
12821,
2218,
14175,
18,
60,
5995,
461,
10524,
15239,
33,
2704,
60,
5995,
461,
10524,
12,
5176,
1769,
17523,
12,
15239,
18,
5332,
7417,
5157,
10756,
95,
83,
33,
15239,
18,
4285,
1345,
5621,
759,
1330,
18,
4148,
2932,
24609,
2773,
15,
83,
2
] |
||
String desc = (String)DESCRIPTORS.get(type);
|
StringBuffer sb = new StringBuffer(); int index = 0; while ((index = type.indexOf("[]", index) + 1) > 0) { sb.append('['); } String t = type.substring(0, type.length() - sb.length() * 2); String desc = (String)DESCRIPTORS.get(t);
|
private static String map (final String type) { if (type.equals("")) { return type; } String desc = (String)DESCRIPTORS.get(type); if (desc != null) { return desc; } else if (type.indexOf('.') < 0) { return map("java.lang." + type); } else { StringBuffer sb = new StringBuffer(); int index = 0; while ((index = type.indexOf("[]", index) + 1) > 0) { sb.append('['); } String elementType = type.substring(0, type.length() - sb.length() * 2); sb.append('L').append(elementType.replace('.', '/')).append(';'); return sb.toString(); } }
|
2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/1b14f8d847c7eebbb5dd78895bab83fcac288f5f/Method.java/buggy/asm/src/org/objectweb/asm/commons/Method.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
852,
261,
6385,
514,
618,
13,
288,
565,
309,
261,
723,
18,
14963,
2932,
6,
3719,
288,
1377,
327,
618,
31,
565,
289,
377,
6674,
2393,
273,
394,
6674,
5621,
509,
770,
273,
374,
31,
1323,
14015,
1615,
273,
618,
18,
31806,
2932,
8526,
3113,
770,
13,
397,
404,
13,
405,
374,
13,
288,
2393,
18,
6923,
2668,
3292,
1769,
289,
225,
514,
268,
273,
618,
18,
28023,
12,
20,
16,
618,
18,
2469,
1435,
300,
2393,
18,
2469,
1435,
380,
576,
1769,
514,
3044,
273,
261,
780,
13,
1639,
10885,
14006,
18,
588,
12,
88,
1769,
565,
309,
261,
5569,
480,
446,
13,
288,
1377,
327,
3044,
31,
565,
289,
469,
309,
261,
723,
18,
31806,
2668,
1093,
13,
411,
374,
13,
288,
1377,
327,
852,
2932,
6290,
18,
4936,
1199,
397,
618,
1769,
565,
289,
469,
288,
1377,
6674,
2393,
273,
394,
6674,
5621,
1377,
509,
770,
273,
374,
31,
1377,
1323,
14015,
1615,
273,
618,
18,
31806,
2932,
8526,
3113,
770,
13,
397,
404,
13,
405,
374,
13,
288,
3639,
2393,
18,
6923,
2668,
3292,
1769,
1377,
289,
1377,
514,
21427,
273,
618,
18,
28023,
12,
20,
16,
618,
18,
2469,
1435,
300,
2393,
18,
2469,
1435,
380,
576,
1769,
1377,
2393,
18,
6923,
2668,
48,
16063,
6923,
12,
2956,
559,
18,
2079,
2668,
1093,
16,
2023,
13,
2934,
6923,
2668,
4359,
1769,
1377,
327,
2393,
18,
10492,
5621,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
852,
261,
6385,
514,
618,
13,
288,
565,
309,
261,
723,
18,
14963,
2932,
6,
3719,
288,
1377,
327,
618,
31,
565,
289,
377,
6674,
2393,
273,
394,
6674,
5621,
509,
770,
273,
374,
31,
1323,
14015,
1615,
273,
618,
18,
31806,
2932,
8526,
3113,
770,
13,
397,
404,
13,
405,
374,
13,
288,
2393,
18,
6923,
2668,
3292,
1769,
289,
225,
514,
268,
273,
618,
18,
28023,
12,
20,
16,
618,
18,
2469,
1435,
300,
2393,
18,
2469,
1435,
380,
576,
1769,
514,
3044,
273,
261,
780,
13,
1639,
10885,
14006,
18,
588,
12,
88,
1769,
565,
309,
261,
5569,
480,
446,
13,
288,
1377,
327,
3044,
31,
565,
289,
469,
309,
261,
723,
2
] |
NodeFactory nf = new NodeFactory(getRuby());
|
NodeFactory nf = new NodeFactory(getRuby());
|
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } MethodNode methodNode = searchMethod(oldId); RubyModule origin = null; if (methodNode == null || methodNode.getBodyNode() == null) { if (isModule()) { methodNode = getRuby().getClasses().getObjectClass().searchMethod(oldId); origin = methodNode.getMethodOrigin(); } } if (methodNode == null || methodNode.getBodyNode() == null) { // print_undef( klass, def ); return; //CEF } origin = methodNode.getMethodOrigin(); Node body = methodNode.getBodyNode(); // methodNode.setCnt(methodNode.nd_cnt() + 1); if (body instanceof FBodyNode) { /* was alias */ oldId = body.getMId(); origin = (RubyModule) body.getOrigin(); body = body.getBodyNode(); } NodeFactory nf = new NodeFactory(getRuby()); methods.put( newId, nf.newMethod(nf.newFBody(body, oldId, origin), methodNode.getNoex())); }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2308,
1305,
12,
54,
10340,
548,
27598,
16,
19817,
548,
1592,
548,
13,
288,
202,
202,
3813,
42,
9808,
5621,
202,
202,
430,
261,
1673,
548,
422,
27598,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
2211,
422,
4170,
10340,
7675,
588,
4818,
7675,
588,
921,
797,
10756,
288,
1082,
202,
588,
54,
10340,
7675,
8869,
12,
24,
1769,
202,
202,
97,
202,
202,
1305,
907,
707,
907,
273,
1623,
1305,
12,
1673,
548,
1769,
202,
202,
54,
10340,
3120,
4026,
273,
446,
31,
202,
202,
430,
261,
2039,
907,
422,
446,
747,
707,
907,
18,
588,
2250,
907,
1435,
422,
446,
13,
288,
1082,
202,
430,
261,
291,
3120,
10756,
288,
9506,
202,
2039,
907,
273,
4170,
10340,
7675,
588,
4818,
7675,
588,
921,
797,
7675,
3072,
1305,
12,
1673,
548,
1769,
9506,
202,
10012,
273,
707,
907,
18,
588,
1305,
7571,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
2039,
907,
422,
446,
747,
707,
907,
18,
588,
2250,
907,
1435,
422,
446,
13,
288,
1082,
202,
759,
1172,
67,
318,
536,
12,
7352,
16,
1652,
11272,
1082,
202,
2463,
31,
368,
1441,
42,
202,
202,
97,
202,
202,
10012,
273,
707,
907,
18,
588,
1305,
7571,
5621,
202,
202,
907,
1417,
273,
707,
907,
18,
588,
2250,
907,
5621,
202,
202,
759,
707,
907,
18,
542,
11750,
12,
2039,
907,
18,
4880,
67,
13085,
1435,
397,
404,
1769,
202,
202,
430,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2308,
1305,
12,
54,
10340,
548,
27598,
16,
19817,
548,
1592,
548,
13,
288,
202,
202,
3813,
42,
9808,
5621,
202,
202,
430,
261,
1673,
548,
422,
27598,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
2211,
422,
4170,
10340,
7675,
588,
4818,
7675,
588,
921,
797,
10756,
288,
1082,
202,
588,
54,
10340,
7675,
8869,
12,
24,
1769,
202,
202,
97,
202,
202,
1305,
907,
707,
907,
273,
1623,
1305,
12,
1673,
548,
1769,
202,
202,
54,
10340,
3120,
4026,
273,
446,
31,
202,
202,
430,
261,
2039,
907,
422,
446,
747,
707,
907,
18,
588,
2250,
907,
1435,
422,
446,
13,
288,
1082,
202,
430,
261,
291,
3120,
2
] |
_optionSignature.setData(buf);
|
optionSignature.setData(buf); setOptionalSignature(optionSignature);
|
public void readPacket(byte buffer[], int offset, int length) throws IllegalArgumentException { if (buffer.length - offset < length) throw new IllegalArgumentException("len=" + buffer.length + " off=" + offset + " length=" + length); if (length < 22) // min header size throw new IllegalArgumentException("Too small: len=" + buffer.length); int cur = offset; _sendStreamId = DataHelper.fromLong(buffer, cur, 4); cur += 4; _receiveStreamId = DataHelper.fromLong(buffer, cur, 4); cur += 4; _sequenceNum = DataHelper.fromLong(buffer, cur, 4); cur += 4; _ackThrough = DataHelper.fromLong(buffer, cur, 4); cur += 4; int numNacks = (int)DataHelper.fromLong(buffer, cur, 1); cur++; if (length < 22 + numNacks*4) throw new IllegalArgumentException("Too small with " + numNacks + " nacks: " + length); if (numNacks > 0) { _nacks = new long[numNacks]; for (int i = 0; i < numNacks; i++) { _nacks[i] = DataHelper.fromLong(buffer, cur, 4); cur += 4; } } else { _nacks = null; } _resendDelay = (int)DataHelper.fromLong(buffer, cur, 1); cur++; _flags = (int)DataHelper.fromLong(buffer, cur, 2); cur += 2; int optionSize = (int)DataHelper.fromLong(buffer, cur, 2); cur += 2; if (length < 22 + numNacks*4 + optionSize) throw new IllegalArgumentException("Too small with " + numNacks + " nacks and " + optionSize + " options: " + length); int payloadBegin = cur + optionSize; int payloadSize = length - payloadBegin; if ( (payloadSize < 0) || (payloadSize > MAX_PAYLOAD_SIZE) ) throw new IllegalArgumentException("length: " + length + " offset: " + offset + " begin: " + payloadBegin); // skip ahead to the payload _payload = new ByteArray(new byte[payloadSize]); //_cache.acquire(); System.arraycopy(buffer, payloadBegin, _payload.getData(), 0, payloadSize); _payload.setValid(payloadSize); _payload.setOffset(0); // ok now lets go back and deal with the options if (isFlagSet(FLAG_DELAY_REQUESTED)) { _optionDelay = (int)DataHelper.fromLong(buffer, cur, 2); cur += 2; } if (isFlagSet(FLAG_FROM_INCLUDED)) { _optionFrom = new Destination(); try { cur += _optionFrom.readBytes(buffer, cur); } catch (DataFormatException dfe) { throw new IllegalArgumentException("Bad from field: " + dfe.getMessage()); } } if (isFlagSet(FLAG_MAX_PACKET_SIZE_INCLUDED)) { _optionMaxSize = (int)DataHelper.fromLong(buffer, cur, 2); cur += 2; } if (isFlagSet(FLAG_SIGNATURE_INCLUDED)) { _optionSignature = new Signature(); byte buf[] = new byte[Signature.SIGNATURE_BYTES]; System.arraycopy(buffer, cur, buf, 0, Signature.SIGNATURE_BYTES); _optionSignature.setData(buf); cur += Signature.SIGNATURE_BYTES; } }
|
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/900420719ee2a88d69d78ef9add09f2cb910daf4/Packet.java/buggy/apps/streaming/java/src/net/i2p/client/streaming/Packet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
855,
6667,
12,
7229,
1613,
63,
6487,
509,
1384,
16,
509,
769,
13,
1216,
2754,
288,
3639,
309,
261,
4106,
18,
2469,
300,
1384,
411,
769,
13,
2398,
604,
394,
2754,
2932,
1897,
1546,
397,
1613,
18,
2469,
397,
315,
3397,
1546,
397,
1384,
397,
315,
769,
1546,
397,
769,
1769,
3639,
309,
261,
2469,
411,
11201,
13,
368,
1131,
1446,
963,
5411,
604,
394,
2754,
2932,
10703,
5264,
30,
562,
1546,
397,
1613,
18,
2469,
1769,
3639,
509,
662,
273,
1384,
31,
3639,
389,
4661,
1228,
548,
273,
1910,
2276,
18,
2080,
3708,
12,
4106,
16,
662,
16,
1059,
1769,
3639,
662,
1011,
1059,
31,
3639,
389,
18149,
1228,
548,
273,
1910,
2276,
18,
2080,
3708,
12,
4106,
16,
662,
16,
1059,
1769,
3639,
662,
1011,
1059,
31,
3639,
389,
6178,
2578,
273,
1910,
2276,
18,
2080,
3708,
12,
4106,
16,
662,
16,
1059,
1769,
3639,
662,
1011,
1059,
31,
3639,
389,
484,
14287,
273,
1910,
2276,
18,
2080,
3708,
12,
4106,
16,
662,
16,
1059,
1769,
3639,
662,
1011,
1059,
31,
3639,
509,
818,
50,
22098,
273,
261,
474,
13,
751,
2276,
18,
2080,
3708,
12,
4106,
16,
662,
16,
404,
1769,
3639,
662,
9904,
31,
3639,
309,
261,
2469,
411,
11201,
397,
818,
50,
22098,
14,
24,
13,
5411,
604,
394,
2754,
2932,
10703,
5264,
598,
315,
397,
818,
50,
22098,
397,
315,
290,
22098,
30,
315,
397,
769,
1769,
3639,
309,
261,
2107,
50,
22098,
405,
374,
13,
288,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
855,
6667,
12,
7229,
1613,
63,
6487,
509,
1384,
16,
509,
769,
13,
1216,
2754,
288,
3639,
309,
261,
4106,
18,
2469,
300,
1384,
411,
769,
13,
2398,
604,
394,
2754,
2932,
1897,
1546,
397,
1613,
18,
2469,
397,
315,
3397,
1546,
397,
1384,
397,
315,
769,
1546,
397,
769,
1769,
3639,
309,
261,
2469,
411,
11201,
13,
368,
1131,
1446,
963,
5411,
604,
394,
2754,
2932,
10703,
5264,
30,
562,
1546,
397,
1613,
18,
2469,
1769,
3639,
509,
662,
273,
1384,
31,
3639,
389,
4661,
1228,
548,
273,
1910,
2276,
18,
2080,
3708,
12,
4106,
16,
662,
16,
1059,
1769,
3639,
662,
1011,
1059,
31,
3639,
389,
18149,
1228,
548,
273,
1910,
2276,
18,
2080,
2
] |
} else{ throw new InvalidDataException();
|
public static void readExternal(Object data, Element parentNode) throws InvalidDataException{ if (parentNode == null) return; for (Iterator i = parentNode.getChildren("option").iterator(); i.hasNext();) { Element e = (Element)i.next(); String fieldName = e.getAttributeValue("name"); if (fieldName == null){ throw new InvalidDataException(); } try{ Field field = data.getClass().getField(fieldName); Class type = field.getType(); int modifiers = field.getModifiers(); if ((modifiers & Modifier.PUBLIC) == 0 || (modifiers & Modifier.STATIC) != 0 || (modifiers & Modifier.FINAL) != 0) continue; field.setAccessible(true); // class might be non-public String value = e.getAttributeValue("value"); if (type.isPrimitive()){ if (value == null){ throw new InvalidDataException(); } if (type.equals(byte.class)){ try{ field.setByte(data, Byte.parseByte(value)); } catch(NumberFormatException ex){ throw new InvalidDataException(); } } else if (type.equals(short.class)){ try{ field.setShort(data, Short.parseShort(value)); } catch(NumberFormatException ex){ throw new InvalidDataException(); } } else if (type.equals(int.class)){ try{ field.setInt(data, Integer.parseInt(value)); } catch(NumberFormatException ex){ throw new InvalidDataException(); } } else if (type.equals(long.class)){ try{ field.setLong(data, Long.parseLong(value)); } catch(NumberFormatException ex){ throw new InvalidDataException(); } } else if (type.equals(float.class)){ try{ field.setFloat(data, Float.parseFloat(value)); } catch(NumberFormatException ex){ throw new InvalidDataException(); } } else if (type.equals(double.class)){ try{ field.setDouble(data, Double.parseDouble(value)); } catch(NumberFormatException ex){ throw new InvalidDataException(); } } else if (type.equals(char.class)){ if (value.length() != 1){ throw new InvalidDataException(); } field.setChar(data, value.charAt(0)); } else if (type.equals(boolean.class)){ if (value.equals("true")){ field.setBoolean(data, true); } else if (value.equals("false")){ field.setBoolean(data, false); } else{ throw new InvalidDataException(); } } else{ throw new InvalidDataException(); } } else if (type.equals(String.class)){ field.set(data, value); } else if (type.equals(Color.class)){ if (value != null){ try{ int rgb = Integer.parseInt(value, 16); field.set(data, new Color(rgb)); } catch(NumberFormatException ex){ System.out.println("value=" + value); throw new InvalidDataException(); } } else{ field.set(data, null); } } else if (JDOMExternalizable.class.isAssignableFrom(type)){ JDOMExternalizable object = null; for (Iterator j = e.getChildren("value").iterator(); j.hasNext();) { Element el = (Element)j.next(); object = (JDOMExternalizable)type.newInstance(); object.readExternal(el); } field.set(data, object); } else{ throw new InvalidDataException("wrong type: " + type); } } catch(NoSuchFieldException ex){ continue; } catch(SecurityException ex){ throw new InvalidDataException(); } catch(IllegalAccessException ex){ ex.printStackTrace(); throw new InvalidDataException(); } catch (InstantiationException ex) { throw new InvalidDataException(); } } }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/92ea06c79012579e0907fab3e30c8bab13fbe7db/DefaultJDOMExternalizer.java/buggy/util/src/com/intellij/openapi/util/DefaultJDOMExternalizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
855,
6841,
12,
921,
501,
16,
3010,
7234,
13,
1216,
1962,
22480,
95,
565,
309,
261,
2938,
907,
422,
446,
13,
327,
31,
565,
364,
261,
3198,
277,
273,
7234,
18,
588,
4212,
2932,
3482,
20387,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
1377,
3010,
425,
273,
261,
1046,
13,
77,
18,
4285,
5621,
1377,
514,
4289,
273,
425,
18,
588,
14942,
2932,
529,
8863,
1377,
309,
261,
16163,
422,
446,
15329,
3639,
604,
394,
1962,
22480,
5621,
1377,
289,
1377,
775,
95,
3639,
2286,
652,
273,
501,
18,
588,
797,
7675,
588,
974,
12,
16163,
1769,
3639,
1659,
618,
273,
652,
18,
588,
559,
5621,
3639,
509,
10429,
273,
652,
18,
588,
11948,
5621,
3639,
309,
14015,
15432,
473,
12832,
18,
14939,
13,
422,
374,
747,
261,
15432,
473,
12832,
18,
22741,
13,
480,
374,
747,
261,
15432,
473,
12832,
18,
7263,
1013,
13,
480,
374,
13,
1324,
31,
3639,
652,
18,
542,
10451,
12,
3767,
1769,
368,
667,
4825,
506,
1661,
17,
482,
3639,
514,
460,
273,
425,
18,
588,
14942,
2932,
1132,
8863,
3639,
309,
261,
723,
18,
291,
9840,
10756,
95,
1850,
309,
261,
1132,
422,
446,
15329,
5411,
604,
394,
1962,
22480,
5621,
1850,
289,
1850,
309,
261,
723,
18,
14963,
12,
7229,
18,
1106,
3719,
95,
5411,
775,
95,
2868,
652,
18,
542,
3216,
12,
892,
16,
3506,
18,
2670,
3216,
12,
1132,
10019,
5411,
289,
5411,
1044,
12,
1854,
9291,
431,
15329,
2868,
604,
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,
855,
6841,
12,
921,
501,
16,
3010,
7234,
13,
1216,
1962,
22480,
95,
565,
309,
261,
2938,
907,
422,
446,
13,
327,
31,
565,
364,
261,
3198,
277,
273,
7234,
18,
588,
4212,
2932,
3482,
20387,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
1377,
3010,
425,
273,
261,
1046,
13,
77,
18,
4285,
5621,
1377,
514,
4289,
273,
425,
18,
588,
14942,
2932,
529,
8863,
1377,
309,
261,
16163,
422,
446,
15329,
3639,
604,
394,
1962,
22480,
5621,
1377,
289,
1377,
775,
95,
3639,
2286,
652,
273,
501,
18,
588,
797,
7675,
588,
974,
12,
16163,
1769,
3639,
1659,
618,
273,
652,
18,
588,
559,
5621,
3639,
509,
10429,
273,
652,
18,
588,
2
] |
|
String s = executeExpr("CASE WHEN 1=0 THEN \"first\" END"); Assert.assertEquals("(null)", s);
|
assertExprReturns("CASE WHEN 1=0 THEN \"first\" END", "(null)");
|
public void testCaseTestMatchNoElse() { String s = executeExpr("CASE WHEN 1=0 THEN \"first\" END"); Assert.assertEquals("(null)", s); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3041f930b5fc4bf6aa3339845b828801c1d8b366/FunctionTest.java/clean/testsrc/main/mondrian/olap/fun/FunctionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2449,
4709,
2060,
2279,
12427,
1435,
288,
3639,
514,
272,
273,
1836,
4742,
2932,
13415,
29707,
404,
33,
20,
27124,
1239,
3645,
2412,
7273,
8863,
3639,
5452,
18,
11231,
8867,
2932,
12,
2011,
2225,
16,
272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
1842,
2449,
4709,
2060,
2279,
12427,
1435,
288,
3639,
514,
272,
273,
1836,
4742,
2932,
13415,
29707,
404,
33,
20,
27124,
1239,
3645,
2412,
7273,
8863,
3639,
5452,
18,
11231,
8867,
2932,
12,
2011,
2225,
16,
272,
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
] |
if((action.equals(ACTION_DEPLOY) || action.equals(ACTION_UPDATE)) && getTask().getSource() == null) throw new BuildException("The source attribute must be set if action = " + action);
|
if ((action.equals(ACTION_DEPLOY) || action.equals(ACTION_UPDATE)) && getTask().getSource() == null) throw new BuildException("The source attribute must be set if " + "action = " + action);
|
public void validateAttributes() throws BuildException { super.validateAttributes(); String action = getTask().getAction(); // check that the password has been set if((getPassword() == null)) throw new BuildException("The password attribute must be set."); // check for missing application on deploy & update if((action.equals(ACTION_DEPLOY) || action.equals(ACTION_UPDATE)) && application == null) throw new BuildException("The application attribute must be set if action = " + action); // check for missing source on deploy & update if((action.equals(ACTION_DEPLOY) || action.equals(ACTION_UPDATE)) && getTask().getSource() == null) throw new BuildException("The source attribute must be set if action = " + action); // check for missing application on delete & undeploy if((action.equals(ACTION_DELETE) || action.equals(ACTION_UNDEPLOY)) && application == null) throw new BuildException("The application attribute must be set if action = " + action); }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/WebLogicHotDeploymentTool.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/WebLogicHotDeploymentTool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1954,
2498,
1435,
1216,
18463,
288,
3639,
2240,
18,
5662,
2498,
5621,
3639,
514,
1301,
273,
11478,
7675,
588,
1803,
5621,
3639,
368,
866,
716,
326,
2201,
711,
2118,
444,
3639,
309,
12443,
588,
3913,
1435,
422,
446,
3719,
5411,
604,
394,
18463,
2932,
1986,
2201,
1566,
1297,
506,
444,
1199,
1769,
3639,
368,
866,
364,
3315,
2521,
603,
7286,
473,
1089,
3639,
309,
12443,
1128,
18,
14963,
12,
12249,
67,
1639,
22971,
13,
747,
1301,
18,
14963,
12,
12249,
67,
8217,
3719,
597,
2521,
422,
446,
13,
5411,
604,
394,
18463,
2932,
1986,
2521,
1566,
1297,
506,
444,
309,
1301,
273,
315,
397,
1301,
1769,
3639,
368,
866,
364,
3315,
1084,
603,
7286,
473,
1089,
3639,
309,
12443,
1128,
18,
14963,
12,
12249,
67,
1639,
22971,
13,
747,
1301,
18,
14963,
12,
12249,
67,
8217,
3719,
597,
11478,
7675,
588,
1830,
1435,
422,
446,
13,
5411,
604,
394,
18463,
2932,
1986,
1084,
1566,
1297,
506,
444,
309,
1301,
273,
315,
397,
1301,
1769,
3639,
368,
866,
364,
3315,
2521,
603,
1430,
473,
640,
12411,
3639,
309,
12443,
1128,
18,
14963,
12,
12249,
67,
6460,
13,
747,
1301,
18,
14963,
12,
12249,
67,
2124,
1639,
22971,
3719,
597,
2521,
422,
446,
13,
5411,
604,
394,
18463,
2932,
1986,
2521,
1566,
1297,
506,
444,
309,
1301,
273,
315,
397,
1301,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1954,
2498,
1435,
1216,
18463,
288,
3639,
2240,
18,
5662,
2498,
5621,
3639,
514,
1301,
273,
11478,
7675,
588,
1803,
5621,
3639,
368,
866,
716,
326,
2201,
711,
2118,
444,
3639,
309,
12443,
588,
3913,
1435,
422,
446,
3719,
5411,
604,
394,
18463,
2932,
1986,
2201,
1566,
1297,
506,
444,
1199,
1769,
3639,
368,
866,
364,
3315,
2521,
603,
7286,
473,
1089,
3639,
309,
12443,
1128,
18,
14963,
12,
12249,
67,
1639,
22971,
13,
747,
1301,
18,
14963,
12,
12249,
67,
8217,
3719,
597,
2521,
422,
446,
13,
5411,
604,
394,
18463,
2932,
1986,
2521,
1566,
1297,
506,
444,
309,
1301,
273,
315,
397,
1301,
1769,
3639,
368,
866,
364,
3315,
1084,
603,
7286,
473,
1089,
2
] |
l, false, null);
|
cl, false, null);
|
public void buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node) { super.buildGraphicsNode(ctx, e, node); if (ctx.isInteractive()) { NodeEventTarget target = (NodeEventTarget)e; EventListener l = new AnchorListener(ctx.getUserAgent()); target.addEventListenerNS (XMLConstants.XML_EVENTS_NAMESPACE_URI, SVG_EVENT_CLICK, l, false, null); ctx.storeEventListenerNS (target, XMLConstants.XML_EVENTS_NAMESPACE_URI, SVG_EVENT_CLICK, l, false); l = new CursorMouseOverListener(ctx.getUserAgent()); target.addEventListenerNS (XMLConstants.XML_EVENTS_NAMESPACE_URI, SVG_EVENT_MOUSEOVER, l, false, null); ctx.storeEventListenerNS (target, XMLConstants.XML_EVENTS_NAMESPACE_URI, SVG_EVENT_MOUSEOVER, l, false); l = new CursorMouseOutListener(ctx.getUserAgent()); target.addEventListenerNS (XMLConstants.XML_EVENTS_NAMESPACE_URI, SVG_EVENT_MOUSEOUT, l, false, null); ctx.storeEventListenerNS (target, XMLConstants.XML_EVENTS_NAMESPACE_URI, SVG_EVENT_MOUSEOUT, l, false); } }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/f8c3c8de6a84e69425c951e7948db6abc5ebf766/SVGAElementBridge.java/clean/sources/org/apache/batik/bridge/SVGAElementBridge.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1361,
17558,
907,
12,
13691,
1042,
1103,
16,
21394,
3010,
425,
16,
21394,
16830,
907,
756,
13,
288,
3639,
2240,
18,
3510,
17558,
907,
12,
5900,
16,
425,
16,
756,
1769,
3639,
309,
261,
5900,
18,
291,
26442,
10756,
288,
5411,
2029,
1133,
2326,
1018,
273,
261,
907,
1133,
2326,
13,
73,
31,
5411,
22090,
328,
273,
394,
27285,
2223,
12,
5900,
18,
588,
12276,
10663,
5411,
1018,
18,
1289,
7375,
3156,
7734,
261,
4201,
2918,
18,
4201,
67,
29221,
67,
11368,
67,
3098,
16,
11281,
67,
10454,
67,
7697,
3507,
16,
1171,
927,
16,
629,
16,
446,
1769,
5411,
1103,
18,
2233,
7375,
3156,
7734,
261,
3299,
16,
3167,
2918,
18,
4201,
67,
29221,
67,
11368,
67,
3098,
16,
11281,
67,
10454,
67,
7697,
3507,
16,
1171,
328,
16,
629,
1769,
5411,
328,
273,
394,
13949,
9186,
4851,
2223,
12,
5900,
18,
588,
12276,
10663,
5411,
1018,
18,
1289,
7375,
3156,
7734,
261,
4201,
2918,
18,
4201,
67,
29221,
67,
11368,
67,
3098,
16,
11281,
67,
10454,
67,
5980,
8001,
12959,
16,
1171,
927,
16,
629,
16,
446,
1769,
5411,
1103,
18,
2233,
7375,
3156,
7734,
261,
3299,
16,
3167,
2918,
18,
4201,
67,
29221,
67,
11368,
67,
3098,
16,
11281,
67,
10454,
67,
5980,
8001,
12959,
16,
1171,
328,
16,
629,
1769,
5411,
328,
273,
394,
13949,
9186,
1182,
2223,
12,
5900,
18,
588,
12276,
10663,
5411,
1018,
18,
1289,
7375,
3156,
7734,
261,
4201,
2918,
18,
4201,
67,
29221,
67,
11368,
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,
1361,
17558,
907,
12,
13691,
1042,
1103,
16,
21394,
3010,
425,
16,
21394,
16830,
907,
756,
13,
288,
3639,
2240,
18,
3510,
17558,
907,
12,
5900,
16,
425,
16,
756,
1769,
3639,
309,
261,
5900,
18,
291,
26442,
10756,
288,
5411,
2029,
1133,
2326,
1018,
273,
261,
907,
1133,
2326,
13,
73,
31,
5411,
22090,
328,
273,
394,
27285,
2223,
12,
5900,
18,
588,
12276,
10663,
5411,
1018,
18,
1289,
7375,
3156,
7734,
261,
4201,
2918,
18,
4201,
67,
29221,
67,
11368,
67,
3098,
16,
11281,
67,
10454,
67,
7697,
3507,
16,
1171,
927,
16,
629,
16,
446,
1769,
5411,
1103,
18,
2233,
7375,
3156,
7734,
261,
3299,
16,
3167,
2918,
18,
4201,
67,
29221,
67,
2
] |
public RenameResourceAction(Shell shell, Tree tree) { this(shell); this.navigatorTree = tree; this.treeEditor = new TreeEditor(tree);
|
public RenameResourceAction(Shell shell) { super(shell, IDEWorkbenchMessages.RenameResourceAction_text); setToolTipText(IDEWorkbenchMessages.RenameResourceAction_toolTip); setId(ID); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.RENAME_RESOURCE_ACTION);
|
public RenameResourceAction(Shell shell, Tree tree) { this(shell); this.navigatorTree = tree; this.treeEditor = new TreeEditor(tree); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1d9ef8d99b5c2e8385545730eb619581186cc2f1/RenameResourceAction.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RenameResourceAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19996,
1420,
1803,
12,
13220,
5972,
16,
4902,
2151,
13,
288,
3639,
333,
12,
10304,
1769,
3639,
333,
18,
82,
13061,
2471,
273,
2151,
31,
3639,
333,
18,
3413,
6946,
273,
394,
4902,
6946,
12,
3413,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19996,
1420,
1803,
12,
13220,
5972,
16,
4902,
2151,
13,
288,
3639,
333,
12,
10304,
1769,
3639,
333,
18,
82,
13061,
2471,
273,
2151,
31,
3639,
333,
18,
3413,
6946,
273,
394,
4902,
6946,
12,
3413,
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
] |
print(")");
|
statementContext = oldStatementContext; printRParen();
|
public void visitAssignmentExpression(JAssignmentExpression self, JExpression left, JExpression right) { //do not print class creation expression if (passParentheses(right) instanceof JQualifiedInstanceCreation || passParentheses(right) instanceof JUnqualifiedInstanceCreation || passParentheses(right) instanceof JQualifiedAnonymousCreation || passParentheses(right) instanceof JUnqualifiedAnonymousCreation) return; //print the correct code for array assignment //this must be run after renaming!!!!!! if (left.getType() == null || right.getType() == null) { lastLeft=left; print("("); left.accept(this); print(" = "); right.accept(this); print(")"); return; } if ((left.getType().isArrayType()) && ((right.getType().isArrayType() || right instanceof SIRPopExpression) && !(right instanceof JNewArrayExpression))) { String ident = ""; if (left instanceof JFieldAccessExpression) ident = ((JFieldAccessExpression)left).getIdent(); else if (left instanceof JLocalVariableExpression) ident = ((JLocalVariableExpression)left).getVariable().getIdent(); else Utils.fail("Assigning an array to an unsupported expression of type " + left.getClass() + ": " + left); String[] dims = ArrayDim.findDim(new TraceIRtoC(), tile.getComputeCode().getFields(), method, ident); //if we cannot find the dim, just create a pointer copy if (dims == null) { lastLeft=left; print("("); left.accept(this); print(" = "); right.accept(this); print(")"); return; } print("{\n"); print("int "); //print the index var decls for (int i = 0; i < dims.length -1; i++) print(RawExecutionCode.ARRAY_COPY + i + ", "); print(RawExecutionCode.ARRAY_COPY + (dims.length - 1)); print(";\n"); for (int i = 0; i < dims.length; i++) { print("for (" + RawExecutionCode.ARRAY_COPY + i + " = 0; " + RawExecutionCode.ARRAY_COPY + i + " < " + dims[i] + "; " + RawExecutionCode.ARRAY_COPY + i + "++)\n"); } left.accept(this); for (int i = 0; i < dims.length; i++) print("[" + RawExecutionCode.ARRAY_COPY + i + "]"); print(" = "); right.accept(this); for (int i = 0; i < dims.length; i++) print("[" + RawExecutionCode.ARRAY_COPY + i + "]"); print(";\n}\n"); return; } //stack allocate all arrays when not in init function //done at the variable definition if (right instanceof JNewArrayExpression && (left instanceof JLocalVariableExpression) && !isInit) { // (((CArrayType)((JNewArrayExpression)right).getType()).getArrayBound() < 2)) { //get the basetype and print it CType baseType = ((CArrayType)((JNewArrayExpression)right).getType()).getBaseType(); print(baseType); print(" "); //print the identifier left.accept(this); //print the dims of the array String ident; ident = ((JLocalVariableExpression)left).getVariable().getIdent(); stackAllocateArray(ident); return; } lastLeft=left; print("("); left.accept(this); print(" = "); right.accept(this); print(")"); }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/09dd1e5e3bec84fda944c87a8d876aee1f79ed97/TraceIRtoC.java/buggy/streams/src/at/dms/kjc/spacetime/TraceIRtoC.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
7729,
2300,
12,
46,
7729,
2300,
365,
16,
4766,
1850,
804,
2300,
2002,
16,
4766,
1850,
804,
2300,
2145,
13,
288,
202,
759,
2896,
486,
1172,
667,
6710,
2652,
202,
430,
261,
5466,
17880,
281,
12,
4083,
13,
1276,
804,
8708,
1442,
9906,
747,
202,
565,
1342,
17880,
281,
12,
4083,
13,
1276,
804,
984,
19724,
1442,
9906,
747,
202,
565,
1342,
17880,
281,
12,
4083,
13,
1276,
804,
8708,
18792,
9906,
747,
202,
565,
1342,
17880,
281,
12,
4083,
13,
1276,
804,
984,
19724,
18792,
9906,
13,
202,
565,
327,
31,
202,
759,
1188,
326,
3434,
981,
364,
526,
6661,
202,
759,
2211,
1297,
506,
1086,
1839,
30883,
23045,
8548,
202,
430,
261,
4482,
18,
588,
559,
1435,
422,
446,
747,
2145,
18,
588,
559,
1435,
422,
446,
13,
288,
202,
565,
1142,
3910,
33,
4482,
31,
202,
565,
1172,
2932,
2932,
1769,
202,
565,
2002,
18,
9436,
12,
2211,
1769,
202,
565,
1172,
2932,
273,
315,
1769,
202,
565,
2145,
18,
9436,
12,
2211,
1769,
202,
565,
1172,
2932,
2225,
1769,
202,
565,
327,
31,
225,
202,
97,
202,
430,
14015,
4482,
18,
588,
559,
7675,
291,
27182,
10756,
597,
202,
565,
14015,
4083,
18,
588,
559,
7675,
291,
27182,
1435,
747,
2145,
1276,
5705,
54,
7049,
2300,
13,
597,
202,
377,
401,
12,
4083,
1276,
804,
1908,
1076,
2300,
20349,
288,
202,
377,
202,
377,
202,
565,
514,
3390,
273,
1408,
31,
202,
377,
202,
377,
202,
565,
309,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
7729,
2300,
12,
46,
7729,
2300,
365,
16,
4766,
1850,
804,
2300,
2002,
16,
4766,
1850,
804,
2300,
2145,
13,
288,
202,
759,
2896,
486,
1172,
667,
6710,
2652,
202,
430,
261,
5466,
17880,
281,
12,
4083,
13,
1276,
804,
8708,
1442,
9906,
747,
202,
565,
1342,
17880,
281,
12,
4083,
13,
1276,
804,
984,
19724,
1442,
9906,
747,
202,
565,
1342,
17880,
281,
12,
4083,
13,
1276,
804,
8708,
18792,
9906,
747,
202,
565,
1342,
17880,
281,
12,
4083,
13,
1276,
804,
984,
19724,
18792,
9906,
13,
202,
565,
327,
31,
202,
759,
1188,
326,
3434,
981,
364,
526,
6661,
202,
759,
2211,
1297,
506,
1086,
1839,
30883,
23045,
8548,
202,
430,
261,
4482,
2
] |
public void addRouter(UMOResponseRouter router)
|
public void addRouter(UMORouter router)
|
public void addRouter(UMOResponseRouter router) { router.setTimeout(getTimeout()); routers.add(router); }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/d4d93c6ff5873c9ca4505e5bbba6cb5a8b5212bc/ResponseMessageRouter.java/clean/mule/src/java/org/mule/routing/response/ResponseMessageRouter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
8259,
12,
2799,
916,
14068,
4633,
13,
565,
288,
3639,
4633,
18,
542,
2694,
12,
588,
2694,
10663,
3639,
28944,
18,
1289,
12,
10717,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
8259,
12,
2799,
916,
14068,
4633,
13,
565,
288,
3639,
4633,
18,
542,
2694,
12,
588,
2694,
10663,
3639,
28944,
18,
1289,
12,
10717,
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
] |
final VirtualFile virtualFile = handler.getFile().getVirtualFile(); if (virtualFile != null && !virtualFile.isWritable()) { VirtualFileManager.getInstance().fireReadOnlyModificationAttempt(virtualFile); return null; } final DomManagerImpl manager = handler.getManager(); final boolean changing = manager.setChanging(true); try { if (handler.isIndicator()) { if ((Boolean)args[0]) { handler.ensureTagExists(); } else { handler.undefineInternal(); }
|
if (handler.isIndicator()) { if ((Boolean)args[0]) { handler.ensureTagExists();
|
public Object invoke(final DomInvocationHandler handler, final Object[] args) throws Throwable { assert handler.isValid(); final VirtualFile virtualFile = handler.getFile().getVirtualFile(); if (virtualFile != null && !virtualFile.isWritable()) { VirtualFileManager.getInstance().fireReadOnlyModificationAttempt(virtualFile); return null; } final DomManagerImpl manager = handler.getManager(); final boolean changing = manager.setChanging(true); try { if (handler.isIndicator()) { if ((Boolean)args[0]) { handler.ensureTagExists(); } else { handler.undefineInternal(); } } else { String value = myConverter.toString(args[0], new ConvertContextImpl(handler)); if (value == null) { handler.undefineInternal(); } else { setValue(handler, value); } } } finally { manager.setChanging(changing); } return null; }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4437ca2f304024137a05082977d946a80498d240/SetInvocation.java/clean/dom/impl/src/com/intellij/util/xml/impl/SetInvocation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
4356,
12,
6385,
12965,
9267,
1503,
1838,
16,
727,
1033,
8526,
833,
13,
1216,
4206,
288,
565,
1815,
1838,
18,
26810,
5621,
565,
727,
7269,
812,
5024,
812,
273,
1838,
18,
29925,
7675,
588,
6466,
812,
5621,
565,
309,
261,
12384,
812,
480,
446,
597,
401,
12384,
812,
18,
291,
12061,
10756,
288,
1377,
7269,
812,
1318,
18,
588,
1442,
7675,
12179,
12066,
13467,
7744,
12,
12384,
812,
1769,
1377,
327,
446,
31,
565,
289,
565,
727,
12965,
1318,
2828,
3301,
273,
1838,
18,
588,
1318,
5621,
565,
727,
1250,
12770,
273,
3301,
18,
542,
782,
18183,
12,
3767,
1769,
565,
775,
288,
1377,
309,
261,
4176,
18,
291,
13140,
10756,
288,
3639,
309,
14015,
5507,
13,
1968,
63,
20,
5717,
288,
1850,
1838,
18,
15735,
1805,
4002,
5621,
3639,
289,
469,
288,
1850,
1838,
18,
318,
11255,
3061,
5621,
3639,
289,
1377,
289,
469,
288,
3639,
514,
460,
273,
3399,
5072,
18,
10492,
12,
1968,
63,
20,
6487,
394,
4037,
1042,
2828,
12,
4176,
10019,
3639,
309,
261,
1132,
422,
446,
13,
288,
1850,
1838,
18,
318,
11255,
3061,
5621,
3639,
289,
469,
288,
1850,
5524,
12,
4176,
16,
460,
1769,
3639,
289,
1377,
289,
565,
289,
565,
3095,
288,
1377,
3301,
18,
542,
782,
18183,
12,
343,
18183,
1769,
565,
289,
565,
327,
446,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
4356,
12,
6385,
12965,
9267,
1503,
1838,
16,
727,
1033,
8526,
833,
13,
1216,
4206,
288,
565,
1815,
1838,
18,
26810,
5621,
565,
727,
7269,
812,
5024,
812,
273,
1838,
18,
29925,
7675,
588,
6466,
812,
5621,
565,
309,
261,
12384,
812,
480,
446,
597,
401,
12384,
812,
18,
291,
12061,
10756,
288,
1377,
7269,
812,
1318,
18,
588,
1442,
7675,
12179,
12066,
13467,
7744,
12,
12384,
812,
1769,
1377,
327,
446,
31,
565,
289,
565,
727,
12965,
1318,
2828,
3301,
273,
1838,
18,
588,
1318,
5621,
565,
727,
1250,
12770,
273,
3301,
18,
542,
782,
18183,
12,
3767,
1769,
565,
775,
288,
1377,
309,
261,
4176,
18,
291,
13140,
10756,
288,
3639,
309,
14015,
5507,
2
] |
for (Enumeration e = getWeapons(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement();
|
for (Mounted m : getWeaponList()) {
|
public Mounted getMainWeapon() { double fBestBV = -1; Mounted mBest = null; for (Enumeration e = getWeapons(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement(); if (m.isDestroyed()) continue; double fValue = m.getType().getBV(this); if (fValue > fBestBV) { fBestBV = fValue; mBest = m; } } return mBest; }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/c2a90fca192b338ebf5162499c52b535aed6382b/Tank.java/clean/megamek/src/megamek/common/Tank.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13076,
329,
15011,
3218,
28629,
1435,
288,
3639,
1645,
284,
14173,
38,
58,
273,
300,
21,
31,
3639,
13076,
329,
312,
14173,
273,
446,
31,
3639,
364,
261,
21847,
425,
273,
336,
3218,
438,
7008,
5621,
425,
18,
5332,
7417,
3471,
5621,
262,
288,
5411,
13076,
329,
312,
273,
261,
8725,
329,
13,
73,
18,
4285,
1046,
5621,
5411,
309,
261,
81,
18,
291,
28414,
10756,
1324,
31,
13491,
1645,
284,
620,
273,
312,
18,
588,
559,
7675,
588,
38,
58,
12,
2211,
1769,
5411,
309,
261,
74,
620,
405,
284,
14173,
38,
58,
13,
288,
7734,
284,
14173,
38,
58,
273,
284,
620,
31,
7734,
312,
14173,
273,
312,
31,
5411,
289,
3639,
289,
3639,
327,
312,
14173,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
13076,
329,
15011,
3218,
28629,
1435,
288,
3639,
1645,
284,
14173,
38,
58,
273,
300,
21,
31,
3639,
13076,
329,
312,
14173,
273,
446,
31,
3639,
364,
261,
21847,
425,
273,
336,
3218,
438,
7008,
5621,
425,
18,
5332,
7417,
3471,
5621,
262,
288,
5411,
13076,
329,
312,
273,
261,
8725,
329,
13,
73,
18,
4285,
1046,
5621,
5411,
309,
261,
81,
18,
291,
28414,
10756,
1324,
31,
13491,
1645,
284,
620,
273,
312,
18,
588,
559,
7675,
588,
38,
58,
12,
2211,
1769,
5411,
309,
261,
74,
620,
405,
284,
14173,
38,
58,
13,
288,
7734,
284,
14173,
38,
58,
273,
284,
620,
31,
7734,
312,
14173,
273,
312,
31,
5411,
289,
3639,
289,
3639,
327,
2
] |
else if ("Save changes".equals(_action))
|
else if ("Save changes".equals(_action) || (_action.toLowerCase().indexOf("s</span>ave") >= 0))
|
private String processAction() { if ( (_action == null) || (_action.trim().length() <= 0) ) return ""; if ( (_prevNonce != _curNonce) && (!validPassphrase(_passphrase)) ) return "Invalid nonce, are you being spoofed?"; if ("Stop all".equals(_action)) return stopAll(); else if ("Start all".equals(_action)) return startAll(); else if ("Restart all".equals(_action)) return restartAll(); else if ("Reload configuration".equals(_action)) return reloadConfig(); else if ("stop".equals(_action)) return stop(); else if ("start".equals(_action)) return start(); else if ("Save changes".equals(_action)) return saveChanges(); else if ("Delete this proxy".equals(_action)) return deleteTunnel(); else return "Action " + _action + " unknown"; }
|
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/33d57dd545b22914cf2886a2e4e6b2aa9f6541d7/IndexBean.java/buggy/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/IndexBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1207,
1803,
1435,
288,
3639,
309,
261,
261,
67,
1128,
422,
446,
13,
747,
261,
67,
1128,
18,
5290,
7675,
2469,
1435,
1648,
374,
13,
262,
5411,
327,
1408,
31,
3639,
309,
261,
261,
67,
10001,
13611,
480,
389,
1397,
13611,
13,
597,
16051,
877,
27814,
24899,
5466,
9429,
3719,
262,
5411,
327,
315,
1941,
7448,
16,
854,
1846,
3832,
25204,
792,
329,
7225,
31,
3639,
309,
7566,
4947,
777,
9654,
14963,
24899,
1128,
3719,
2398,
327,
2132,
1595,
5621,
3639,
469,
309,
7566,
1685,
777,
9654,
14963,
24899,
1128,
3719,
5411,
327,
787,
1595,
5621,
3639,
469,
309,
7566,
15057,
777,
9654,
14963,
24899,
1128,
3719,
5411,
327,
7870,
1595,
5621,
3639,
469,
309,
7566,
13013,
1664,
9654,
14963,
24899,
1128,
3719,
5411,
327,
7749,
809,
5621,
3639,
469,
309,
7566,
5681,
9654,
14963,
24899,
1128,
3719,
5411,
327,
2132,
5621,
3639,
469,
309,
7566,
1937,
9654,
14963,
24899,
1128,
3719,
5411,
327,
787,
5621,
3639,
469,
309,
7566,
4755,
3478,
9654,
14963,
24899,
1128,
13,
747,
261,
67,
1128,
18,
869,
5630,
7675,
31806,
2932,
87,
1757,
3969,
34,
836,
7923,
1545,
374,
3719,
5411,
327,
1923,
7173,
5621,
3639,
469,
309,
7566,
2613,
333,
2889,
9654,
14963,
24899,
1128,
3719,
5411,
327,
1430,
20329,
5621,
3639,
469,
5411,
327,
315,
1803,
315,
397,
389,
1128,
397,
315,
5917,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1207,
1803,
1435,
288,
3639,
309,
261,
261,
67,
1128,
422,
446,
13,
747,
261,
67,
1128,
18,
5290,
7675,
2469,
1435,
1648,
374,
13,
262,
5411,
327,
1408,
31,
3639,
309,
261,
261,
67,
10001,
13611,
480,
389,
1397,
13611,
13,
597,
16051,
877,
27814,
24899,
5466,
9429,
3719,
262,
5411,
327,
315,
1941,
7448,
16,
854,
1846,
3832,
25204,
792,
329,
7225,
31,
3639,
309,
7566,
4947,
777,
9654,
14963,
24899,
1128,
3719,
2398,
327,
2132,
1595,
5621,
3639,
469,
309,
7566,
1685,
777,
9654,
14963,
24899,
1128,
3719,
5411,
327,
787,
1595,
5621,
3639,
469,
309,
7566,
15057,
777,
9654,
14963,
24899,
1128,
3719,
5411,
327,
7870,
1595,
5621,
3639,
469,
309,
7566,
2
] |
this.generatingSource = cx.isGeneratingSource(); this.activationNames = cx.activationNames;
|
generatingSource = cx.isGeneratingSource(); activationNames = cx.activationNames;
|
public void initFromContext(Context cx) { setErrorReporter(cx.getErrorReporter()); this.languageVersion = cx.getLanguageVersion(); useDynamicScope = cx.hasCompileFunctionsWithDynamicScope(); generateDebugInfo = (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()); this.reservedKeywordAsIdentifier = cx.hasFeature(Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER); this.allowMemberExprAsFunctionName = cx.hasFeature(Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME); this.optimizationLevel = cx.getOptimizationLevel(); this.generatingSource = cx.isGeneratingSource(); this.activationNames = cx.activationNames; }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/6e748d3a77485f774811e397baac094ef9311730/CompilerEnvirons.java/buggy/src/org/mozilla/javascript/CompilerEnvirons.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
20128,
12,
1042,
9494,
13,
565,
288,
3639,
9967,
13289,
12,
71,
92,
18,
588,
668,
13289,
10663,
3639,
333,
18,
4923,
1444,
273,
9494,
18,
588,
3779,
1444,
5621,
3639,
999,
9791,
3876,
273,
9494,
18,
5332,
9937,
7503,
1190,
9791,
3876,
5621,
3639,
2103,
2829,
966,
273,
16051,
71,
92,
18,
291,
21755,
2829,
5033,
1435,
11794,
747,
9494,
18,
291,
21755,
2829,
10663,
3639,
333,
18,
18898,
8736,
1463,
3004,
5411,
273,
9494,
18,
5332,
4595,
12,
1042,
18,
18257,
67,
28635,
67,
28813,
67,
3033,
67,
16606,
1769,
3639,
333,
18,
5965,
4419,
4742,
1463,
25258,
5411,
273,
9494,
18,
5332,
4595,
12,
1042,
18,
18257,
67,
19630,
67,
2294,
8025,
67,
3033,
67,
7788,
67,
1985,
1769,
3639,
333,
18,
16689,
1588,
2355,
273,
9494,
18,
588,
13930,
1588,
2355,
5621,
3639,
333,
18,
3441,
1776,
1830,
273,
9494,
18,
291,
21755,
1830,
5621,
3639,
333,
18,
16908,
1557,
273,
9494,
18,
16908,
1557,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
20128,
12,
1042,
9494,
13,
565,
288,
3639,
9967,
13289,
12,
71,
92,
18,
588,
668,
13289,
10663,
3639,
333,
18,
4923,
1444,
273,
9494,
18,
588,
3779,
1444,
5621,
3639,
999,
9791,
3876,
273,
9494,
18,
5332,
9937,
7503,
1190,
9791,
3876,
5621,
3639,
2103,
2829,
966,
273,
16051,
71,
92,
18,
291,
21755,
2829,
5033,
1435,
11794,
747,
9494,
18,
291,
21755,
2829,
10663,
3639,
333,
18,
18898,
8736,
1463,
3004,
5411,
273,
9494,
18,
5332,
4595,
12,
1042,
18,
18257,
67,
28635,
67,
28813,
67,
3033,
67,
16606,
1769,
3639,
333,
18,
5965,
4419,
4742,
1463,
25258,
5411,
273,
9494,
18,
5332,
4595,
12,
1042,
18,
18257,
67,
19630,
67,
2294,
8025,
2
] |
while (matchToken(Token.BITXOR, 0)) {
|
while (matchToken(Token.BITXOR)) {
|
private Node bitXorExpr(boolean inForInit) throws IOException, ParserException { Node pn = bitAndExpr(inForInit); while (matchToken(Token.BITXOR, 0)) { decompiler.addToken(Token.BITXOR); pn = nf.createBinary(Token.BITXOR, pn, bitAndExpr(inForInit)); } return pn; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/eea0a0a79d27ae62fc3c9a3f98c2f0a02adaf2c4/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
2831,
60,
280,
4742,
12,
6494,
316,
1290,
2570,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
2029,
11059,
273,
2831,
1876,
4742,
12,
267,
1290,
2570,
1769,
3639,
1323,
261,
1916,
1345,
12,
1345,
18,
15650,
60,
916,
3719,
288,
5411,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
15650,
60,
916,
1769,
5411,
11059,
273,
13958,
18,
2640,
5905,
12,
1345,
18,
15650,
60,
916,
16,
11059,
16,
2831,
1876,
4742,
12,
267,
1290,
2570,
10019,
3639,
289,
3639,
327,
11059,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
2831,
60,
280,
4742,
12,
6494,
316,
1290,
2570,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
2029,
11059,
273,
2831,
1876,
4742,
12,
267,
1290,
2570,
1769,
3639,
1323,
261,
1916,
1345,
12,
1345,
18,
15650,
60,
916,
3719,
288,
5411,
443,
9576,
18,
1289,
1345,
12,
1345,
18,
15650,
60,
916,
1769,
5411,
11059,
273,
13958,
18,
2640,
5905,
12,
1345,
18,
15650,
60,
916,
16,
11059,
16,
2831,
1876,
4742,
12,
267,
1290,
2570,
10019,
3639,
289,
3639,
327,
11059,
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
] |
if (retCode != TA_RetCode.TA_SUCCESS) { outBegIdx.value = 0; outNbElement.value = 0; ; ; return retCode; }
|
if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; }
|
TA_RetCode INT_MACD(int startIdx, int endIdx, double inReal[], int optInFastPeriod, int optInSlowPeriod, int optInSignalPeriod_2, MInteger outBegIdx, MInteger outNbElement, double outMACD[], double outMACDSignal[], double outMACDHist[]) { double[] slowEMABuffer; double[] fastEMABuffer; double k1, k2; TA_RetCode retCode; int tempInteger; MInteger outBegIdx1 = new MInteger(); MInteger outNbElement1 = new MInteger(); MInteger outBegIdx2 = new MInteger(); MInteger outNbElement2 = new MInteger(); int lookbackTotal, lookbackSignal; int i; if (optInSlowPeriod < optInFastPeriod) { tempInteger = optInSlowPeriod; optInSlowPeriod = optInFastPeriod; optInFastPeriod = tempInteger; } if (optInSlowPeriod != 0) k1 = ((double) 2.0 / ((double) (optInSlowPeriod + 1))); else { optInSlowPeriod = 26; k1 = (double) 0.075; } if (optInFastPeriod != 0) k2 = ((double) 2.0 / ((double) (optInFastPeriod + 1))); else { optInFastPeriod = 12; k2 = (double) 0.15; } lookbackSignal = EMA_Lookback(optInSignalPeriod_2); lookbackTotal = lookbackSignal; lookbackTotal += EMA_Lookback(optInSlowPeriod); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } tempInteger = (endIdx - startIdx) + 1 + lookbackSignal; fastEMABuffer = new double[tempInteger]; slowEMABuffer = new double[tempInteger]; tempInteger = startIdx - lookbackSignal; retCode = INT_EMA(tempInteger, endIdx, inReal, optInSlowPeriod, k1, outBegIdx1, outNbElement1, slowEMABuffer); if (retCode != TA_RetCode.TA_SUCCESS) { outBegIdx.value = 0; outNbElement.value = 0; ; ; return retCode; } retCode = INT_EMA(tempInteger, endIdx, inReal, optInFastPeriod, k2, outBegIdx2, outNbElement2, fastEMABuffer); if (retCode != TA_RetCode.TA_SUCCESS) { outBegIdx.value = 0; outNbElement.value = 0; ; ; return retCode; } if ((outBegIdx1.value != tempInteger) || (outBegIdx2.value != tempInteger) || (outNbElement1.value != outNbElement2.value) || (outNbElement1.value != (endIdx - startIdx) + 1 + lookbackSignal)) { outBegIdx.value = 0; outNbElement.value = 0; ; ; return (TA_RetCode.TA_INTERNAL_ERROR); } for (i = 0; i < outNbElement1.value; i++) fastEMABuffer[i] = fastEMABuffer[i] - slowEMABuffer[i]; System.arraycopy(fastEMABuffer, 0, outMACD, 0, (endIdx - startIdx) + 1); retCode = INT_EMA(0, outNbElement1.value - 1, fastEMABuffer, optInSignalPeriod_2, ((double) 2.0 / ((double) (optInSignalPeriod_2 + 1))), outBegIdx2, outNbElement2, outMACDSignal); ; ; if (retCode != TA_RetCode.TA_SUCCESS) { outBegIdx.value = 0; outNbElement.value = 0; return retCode; } for (i = 0; i < outNbElement2.value; i++) outMACDHist[i] = outMACD[i] - outMACDSignal[i]; outBegIdx.value = startIdx; outNbElement.value = outNbElement2.value; return TA_RetCode.TA_SUCCESS; }
|
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
9833,
67,
7055,
1085,
6137,
67,
10875,
40,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
474,
2153,
382,
12305,
5027,
16,
509,
2153,
382,
28733,
5027,
16,
509,
2153,
382,
11208,
5027,
67,
22,
16,
1082,
202,
49,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
596,
10875,
40,
63,
6487,
1082,
202,
9056,
596,
10875,
40,
11208,
63,
6487,
1645,
596,
10875,
40,
8648,
63,
5717,
288,
202,
202,
9056,
8526,
11816,
3375,
37,
1892,
31,
202,
202,
9056,
8526,
4797,
3375,
37,
1892,
31,
202,
202,
9056,
417,
21,
16,
417,
22,
31,
202,
202,
9833,
67,
7055,
1085,
325,
1085,
31,
202,
202,
474,
1906,
4522,
31,
202,
202,
49,
4522,
596,
24059,
4223,
21,
273,
394,
490,
4522,
5621,
202,
202,
49,
4522,
596,
22816,
1046,
21,
273,
394,
490,
4522,
5621,
202,
202,
49,
4522,
596,
24059,
4223,
22,
273,
394,
490,
4522,
5621,
202,
202,
49,
4522,
596,
22816,
1046,
22,
273,
394,
490,
4522,
5621,
202,
202,
474,
2324,
823,
5269,
16,
2324,
823,
11208,
31,
202,
202,
474,
277,
31,
202,
202,
430,
261,
3838,
382,
28733,
5027,
411,
2153,
382,
12305,
5027,
13,
288,
1082,
202,
5814,
4522,
273,
2153,
382,
28733,
5027,
31,
1082,
202,
3838,
382,
28733,
5027,
273,
2153,
382,
12305,
5027,
31,
1082,
202,
3838,
382,
12305,
5027,
273,
1906,
4522,
31,
202,
202,
97,
202,
202,
430,
261,
3838,
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,
9833,
67,
7055,
1085,
6137,
67,
10875,
40,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
474,
2153,
382,
12305,
5027,
16,
509,
2153,
382,
28733,
5027,
16,
509,
2153,
382,
11208,
5027,
67,
22,
16,
1082,
202,
49,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
1645,
596,
10875,
40,
63,
6487,
1082,
202,
9056,
596,
10875,
40,
11208,
63,
6487,
1645,
596,
10875,
40,
8648,
63,
5717,
288,
202,
202,
9056,
8526,
11816,
3375,
37,
1892,
31,
202,
202,
9056,
8526,
4797,
3375,
37,
1892,
31,
202,
202,
9056,
417,
21,
16,
417,
22,
31,
202,
202,
9833,
67,
7055,
1085,
325,
1085,
31,
202,
2
] |
BugzillaReportElement.BUG_SEVERITY).getValue(), severity)); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_PRIORITY, mapValue(bug.getAttribute(BugzillaReportElement.PRIORITY)
|
BugzillaReportElement.BUG_SEVERITY.getKeyString()).getValue(), severity)); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_PRIORITY, mapValue(bug.getAttribute(BugzillaReportElement.PRIORITY.getKeyString())
|
public static Map<String, Object> getAttributeMap(RepositoryReport bug) { HashMap<String, Object> map = new HashMap<String, Object>(); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_ID, new Integer(bug.getId())); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_REPOSITORY, bug.getRepositoryUrl()); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_DESC, bug.getDescription()); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_SEVERITY, mapValue(bug.getAttribute( BugzillaReportElement.BUG_SEVERITY).getValue(), severity)); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_PRIORITY, mapValue(bug.getAttribute(BugzillaReportElement.PRIORITY) .getValue(), priority)); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_PLATFORM, bug.getAttribute("Hardware").getValue()); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_STATE, mapValue(bug.getStatus(), state)); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_RESULT, mapValue(bug.getResolution(), result)); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_OWNER, bug.getAssignedTo()); map.put(BugzillaUiPlugin.HIT_MARKER_ATTR_QUERY, ""); return map; }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d6adf902ecafbef942349464348e4435750dd099/BugzillaSearchResultCollector.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchResultCollector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1635,
32,
780,
16,
1033,
34,
4061,
863,
12,
3305,
4820,
7934,
13,
288,
202,
202,
8658,
32,
780,
16,
1033,
34,
852,
273,
394,
4317,
32,
780,
16,
1033,
34,
5621,
202,
202,
1458,
18,
458,
12,
19865,
15990,
13943,
3773,
18,
17222,
67,
25989,
67,
12043,
67,
734,
16,
394,
2144,
12,
925,
18,
26321,
1435,
10019,
202,
202,
1458,
18,
458,
12,
19865,
15990,
13943,
3773,
18,
17222,
67,
25989,
67,
12043,
67,
862,
30986,
16,
7934,
18,
588,
3305,
1489,
10663,
202,
202,
1458,
18,
458,
12,
19865,
15990,
13943,
3773,
18,
17222,
67,
25989,
67,
12043,
67,
10964,
16,
7934,
18,
588,
3291,
10663,
202,
202,
1458,
18,
458,
12,
19865,
15990,
13943,
3773,
18,
17222,
67,
25989,
67,
12043,
67,
1090,
2204,
4107,
16,
852,
620,
12,
925,
18,
588,
1499,
12,
9506,
202,
19865,
15990,
4820,
1046,
18,
4827,
67,
1090,
2204,
4107,
2934,
24805,
9334,
11426,
10019,
202,
202,
1458,
18,
458,
12,
19865,
15990,
13943,
3773,
18,
17222,
67,
25989,
67,
12043,
67,
19804,
16,
852,
620,
12,
925,
18,
588,
1499,
12,
19865,
15990,
4820,
1046,
18,
19804,
13,
9506,
202,
18,
24805,
9334,
4394,
10019,
202,
202,
1458,
18,
458,
12,
19865,
15990,
13943,
3773,
18,
17222,
67,
25989,
67,
12043,
67,
6253,
789,
4983,
16,
7934,
18,
588,
1499,
2932,
44,
14519,
20387,
24805,
10663,
202,
202,
1458,
18,
458,
12,
19865,
15990,
13943,
3773,
18,
17222,
67,
25989,
67,
12043,
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,
1635,
32,
780,
16,
1033,
34,
4061,
863,
12,
3305,
4820,
7934,
13,
288,
202,
202,
8658,
32,
780,
16,
1033,
34,
852,
273,
394,
4317,
32,
780,
16,
1033,
34,
5621,
202,
202,
1458,
18,
458,
12,
19865,
15990,
13943,
3773,
18,
17222,
67,
25989,
67,
12043,
67,
734,
16,
394,
2144,
12,
925,
18,
26321,
1435,
10019,
202,
202,
1458,
18,
458,
12,
19865,
15990,
13943,
3773,
18,
17222,
67,
25989,
67,
12043,
67,
862,
30986,
16,
7934,
18,
588,
3305,
1489,
10663,
202,
202,
1458,
18,
458,
12,
19865,
15990,
13943,
3773,
18,
17222,
67,
25989,
67,
12043,
67,
10964,
16,
7934,
18,
588,
3291,
10663,
202,
202,
1458,
18,
458,
12,
2
] |
public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs) throws XNIException { fInDocument = true; if (!fDeferNodeExpansion) { if (fDocumentClassName.equals(DEFAULT_DOCUMENT_CLASS_NAME)) { fDocument = new DocumentImpl(); fDocumentImpl = (CoreDocumentImpl)fDocument; // REVISIT: when DOM Level 3 is REC rely on Document.support // instead of specific class // set DOM error checking off fDocumentImpl.setStrictErrorChecking(false); // set actual encoding fDocumentImpl.setInputEncoding(encoding); // set documentURI fDocumentImpl.setDocumentURI(locator.getExpandedSystemId()); } else { // use specified document class try { Class documentClass = ObjectFactory.findProviderClass(fDocumentClassName, ObjectFactory.findClassLoader(), true); fDocument = (Document)documentClass.newInstance(); // if subclass of our own class that's cool too Class defaultDocClass = ObjectFactory.findProviderClass(CORE_DOCUMENT_CLASS_NAME, ObjectFactory.findClassLoader(), true); if (defaultDocClass.isAssignableFrom(documentClass)) { fDocumentImpl = (CoreDocumentImpl)fDocument; Class psviDocClass = ObjectFactory.findProviderClass(PSVI_DOCUMENT_CLASS_NAME, ObjectFactory.findClassLoader(), true); if (psviDocClass.isAssignableFrom(documentClass)) { fStorePSVI = true; } // REVISIT: when DOM Level 3 is REC rely on // Document.support instead of specific class // set DOM error checking off fDocumentImpl.setStrictErrorChecking(false); // set actual encoding fDocumentImpl.setInputEncoding(encoding); // set documentURI if (locator != null) { fDocumentImpl.setDocumentURI(locator.getExpandedSystemId()); } } } catch (ClassNotFoundException e) { // won't happen we already checked that earlier } catch (Exception e) { // REVISIT: Localize this message. throw new RuntimeException( "Failed to create document object of class: " + fDocumentClassName); } } fCurrentNode = fDocument; } else { fDeferredDocumentImpl = new DeferredDocumentImpl(fNamespaceAware); fDocument = fDeferredDocumentImpl; fDocumentIndex = fDeferredDocumentImpl.createDeferredDocument(); // REVISIT: strict error checking is not implemented in deferred dom. // Document.support instead of specific class // set actual encoding fDeferredDocumentImpl.setInputEncoding(encoding); // set documentURI fDeferredDocumentImpl.setDocumentURI(locator.getExpandedSystemId()); fCurrentNodeIndex = fDocumentIndex; } } // startDocument(String,String)
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/9d1dbf89c75cf6f564facc2b605dd9f2cf2dac4d/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
2519,
12,
4201,
5786,
8871,
16,
514,
2688,
16,
1171,
9079,
6005,
1042,
1981,
1042,
16,
432,
14870,
1012,
279,
9024,
13,
3639,
1216,
1139,
50,
45,
503,
288,
3639,
284,
382,
2519,
273,
638,
31,
3639,
309,
16051,
74,
758,
586,
907,
2966,
12162,
13,
288,
5411,
309,
261,
74,
2519,
3834,
18,
14963,
12,
5280,
67,
18450,
67,
5237,
67,
1985,
3719,
288,
7734,
284,
2519,
273,
394,
4319,
2828,
5621,
7734,
284,
2519,
2828,
273,
261,
4670,
2519,
2828,
13,
74,
2519,
31,
7734,
368,
2438,
26780,
1285,
30,
1347,
4703,
4557,
890,
353,
2438,
39,
21187,
603,
4319,
18,
13261,
7734,
368,
1850,
3560,
434,
2923,
667,
7734,
368,
444,
4703,
555,
6728,
3397,
7734,
284,
2519,
2828,
18,
542,
14809,
668,
14294,
12,
5743,
1769,
7734,
368,
444,
3214,
2688,
7734,
284,
2519,
2828,
18,
542,
1210,
4705,
12,
5999,
1769,
7734,
368,
444,
1668,
3098,
7734,
284,
2519,
2828,
18,
542,
2519,
3098,
12,
20048,
18,
588,
17957,
3163,
548,
10663,
5411,
289,
5411,
469,
288,
7734,
368,
999,
1269,
1668,
667,
7734,
775,
288,
10792,
1659,
1668,
797,
273,
1033,
1733,
18,
4720,
2249,
797,
12,
74,
2519,
3834,
16,
13491,
1033,
1733,
18,
4720,
7805,
9334,
638,
1769,
10792,
284,
2519,
273,
261,
2519,
13,
5457,
797,
18,
2704,
1442,
5621,
10792,
368,
309,
10177,
434,
3134,
4953,
667,
716,
1807,
27367,
4885,
10792,
1659,
805,
1759,
797,
273,
13491,
1033,
1733,
18,
4720,
2249,
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,
787,
2519,
12,
4201,
5786,
8871,
16,
514,
2688,
16,
1171,
9079,
6005,
1042,
1981,
1042,
16,
432,
14870,
1012,
279,
9024,
13,
3639,
1216,
1139,
50,
45,
503,
288,
3639,
284,
382,
2519,
273,
638,
31,
3639,
309,
16051,
74,
758,
586,
907,
2966,
12162,
13,
288,
5411,
309,
261,
74,
2519,
3834,
18,
14963,
12,
5280,
67,
18450,
67,
5237,
67,
1985,
3719,
288,
7734,
284,
2519,
273,
394,
4319,
2828,
5621,
7734,
284,
2519,
2828,
273,
261,
4670,
2519,
2828,
13,
74,
2519,
31,
7734,
368,
2438,
26780,
1285,
30,
1347,
4703,
4557,
890,
353,
2438,
39,
21187,
603,
4319,
18,
13261,
7734,
368,
1850,
3560,
434,
2923,
667,
7734,
368,
444,
4703,
2
] |
||
BaseQueryDefinition parentQuery = getParentQuery(); if(parentQuery!=null) { parentQuery.getRowExpressions().add(binding.getExpr()); }
|
protected ArrayList createParamBindings( Iterator iter ) { ArrayList list = new ArrayList( ); if ( iter != null ) { while ( iter.hasNext( ) ) { ParamBindingHandle modelParamBinding = (ParamBindingHandle) iter .next( ); IInputParameterBinding binding = createParamBinding( modelParamBinding ); if ( binding != null ) { list.add( binding ); BaseQueryDefinition parentQuery = getParentQuery(); if(parentQuery!=null) { parentQuery.getRowExpressions().add(binding.getExpr()); } } } } return list; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/cf610721f99139dcc466a73d0d428fbbe9db5a20/ReportQueryBuilder.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
2407,
752,
786,
10497,
12,
4498,
1400,
262,
202,
202,
95,
1082,
202,
19558,
666,
273,
394,
2407,
12,
11272,
1082,
202,
430,
261,
1400,
480,
446,
262,
1082,
202,
95,
9506,
202,
17523,
261,
1400,
18,
5332,
2134,
12,
262,
262,
9506,
202,
95,
6862,
202,
786,
5250,
3259,
938,
786,
5250,
273,
261,
786,
5250,
3259,
13,
1400,
6862,
1082,
202,
18,
4285,
12,
11272,
6862,
202,
45,
1210,
1662,
5250,
5085,
273,
752,
786,
5250,
12,
938,
786,
5250,
11272,
6862,
202,
430,
261,
5085,
480,
446,
262,
6862,
202,
95,
25083,
202,
1098,
18,
1289,
12,
5085,
11272,
25083,
202,
2171,
1138,
1852,
982,
1138,
273,
5089,
1138,
5621,
25083,
202,
430,
12,
2938,
1138,
5,
33,
2011,
13,
25083,
202,
95,
6862,
1082,
202,
2938,
1138,
18,
588,
1999,
8927,
7675,
1289,
12,
7374,
18,
588,
4742,
10663,
25083,
202,
97,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1082,
202,
2463,
666,
31,
202,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
2407,
752,
786,
10497,
12,
4498,
1400,
262,
202,
202,
95,
1082,
202,
19558,
666,
273,
394,
2407,
12,
11272,
1082,
202,
430,
261,
1400,
480,
446,
262,
1082,
202,
95,
9506,
202,
17523,
261,
1400,
18,
5332,
2134,
12,
262,
262,
9506,
202,
95,
6862,
202,
786,
5250,
3259,
938,
786,
5250,
273,
261,
786,
5250,
3259,
13,
1400,
6862,
1082,
202,
18,
4285,
12,
11272,
6862,
202,
45,
1210,
1662,
5250,
5085,
273,
752,
786,
5250,
12,
938,
786,
5250,
11272,
6862,
202,
430,
261,
5085,
480,
446,
262,
6862,
202,
95,
25083,
202,
1098,
18,
1289,
12,
5085,
11272,
25083,
202,
2171,
1138,
1852,
982,
1138,
273,
5089,
1138,
5621,
25083,
202,
430,
2
] |
|
long sequenceNumber = 0;
|
public void testDataMessage() throws Exception { // Construct a data message byte connectionID = 1; long sequenceNumber = 0; byte[] data = new byte[512]; int datalength = data.length; SequenceNumberExtender extender = new SequenceNumberExtender(); // Try a range of sequence numbers for( long i = 0; i <= 0x1ffff; i++) { writeAndReadADataMessage(connectionID, i, data, datalength, extender); } }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/2cd6c4a96369272d11c63d55dfb5a2671a5efcad/UDPMessageTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/udpconnect/UDPMessageTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
751,
1079,
1435,
1216,
1185,
288,
3639,
368,
14291,
279,
501,
883,
3639,
1160,
3639,
1459,
734,
282,
273,
404,
31,
9079,
1160,
8526,
1377,
501,
6647,
273,
394,
1160,
63,
13757,
15533,
3639,
509,
540,
18462,
1288,
377,
273,
501,
18,
2469,
31,
3639,
8370,
1854,
2482,
2345,
2133,
264,
273,
394,
8370,
1854,
2482,
2345,
5621,
540,
368,
6161,
279,
1048,
434,
3102,
5600,
3639,
364,
12,
1525,
277,
273,
374,
31,
277,
1648,
374,
92,
21,
9460,
31,
277,
27245,
288,
5411,
1045,
1876,
1994,
37,
751,
1079,
12,
4071,
734,
16,
277,
16,
501,
16,
18462,
1288,
16,
9079,
2133,
264,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
751,
1079,
1435,
1216,
1185,
288,
3639,
368,
14291,
279,
501,
883,
3639,
1160,
3639,
1459,
734,
282,
273,
404,
31,
9079,
1160,
8526,
1377,
501,
6647,
273,
394,
1160,
63,
13757,
15533,
3639,
509,
540,
18462,
1288,
377,
273,
501,
18,
2469,
31,
3639,
8370,
1854,
2482,
2345,
2133,
264,
273,
394,
8370,
1854,
2482,
2345,
5621,
540,
368,
6161,
279,
1048,
434,
3102,
5600,
3639,
364,
12,
1525,
277,
273,
374,
31,
277,
1648,
374,
92,
21,
9460,
31,
277,
27245,
288,
5411,
1045,
1876,
1994,
37,
751,
1079,
12,
4071,
734,
16,
277,
16,
501,
16,
18462,
1288,
16,
9079,
2133,
264,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
|
fn = (RubyFixnum) recv.funcall("<=>", arg2); if (fn.getValue() > 0) { return ruby.getFalse(); } return ruby.getTrue();
|
public static RubyBoolean between_p(Ruby ruby, RubyObject recv, RubyObject arg1, RubyObject arg2) { RubyFixnum fn = (RubyFixnum) recv.funcall("<=>", arg1); if (fn.getValue() < 0) { return ruby.getFalse(); } fn = (RubyFixnum) recv.funcall("<=>", arg2); if (fn.getValue() > 0) { return ruby.getFalse(); } return ruby.getTrue(); }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyComparable.java/buggy/org/jruby/RubyComparable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
5507,
3086,
67,
84,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
19817,
921,
1501,
21,
16,
19817,
921,
1501,
22,
13,
288,
3639,
19817,
8585,
2107,
2295,
273,
261,
54,
10340,
8585,
2107,
13,
10665,
18,
644,
454,
2932,
32,
33,
2984,
16,
1501,
21,
1769,
3639,
309,
261,
4293,
18,
24805,
1435,
411,
374,
13,
288,
5411,
327,
22155,
18,
588,
8381,
5621,
3639,
289,
3639,
2295,
273,
261,
54,
10340,
8585,
2107,
13,
10665,
18,
644,
454,
2932,
32,
33,
2984,
16,
1501,
22,
1769,
3639,
309,
261,
4293,
18,
24805,
1435,
405,
374,
13,
288,
5411,
327,
22155,
18,
588,
8381,
5621,
3639,
289,
3639,
327,
22155,
18,
588,
5510,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
5507,
3086,
67,
84,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
19817,
921,
1501,
21,
16,
19817,
921,
1501,
22,
13,
288,
3639,
19817,
8585,
2107,
2295,
273,
261,
54,
10340,
8585,
2107,
13,
10665,
18,
644,
454,
2932,
32,
33,
2984,
16,
1501,
21,
1769,
3639,
309,
261,
4293,
18,
24805,
1435,
411,
374,
13,
288,
5411,
327,
22155,
18,
588,
8381,
5621,
3639,
289,
3639,
2295,
273,
261,
54,
10340,
8585,
2107,
13,
10665,
18,
644,
454,
2932,
32,
33,
2984,
16,
1501,
22,
1769,
3639,
309,
261,
4293,
18,
24805,
1435,
405,
374,
13,
288,
5411,
327,
22155,
18,
588,
8381,
5621,
3639,
289,
3639,
327,
22155,
18,
588,
5510,
2
] |
|
public void set(org.quickfix.field.LegSecurityAltID value)
|
public void set(quickfix.field.LegSecurityAltID value)
|
public void set(org.quickfix.field.LegSecurityAltID value) { setField(value); }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionReport.java/buggy/src/java/src/quickfix/fix44/PositionReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
8329,
4368,
10655,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
8329,
4368,
10655,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return;
|
return false;
|
private void dispatch(final MessageReference node) throws IOException{ node.incrementReferenceCount(); final Message message=node.getMessage(); if(message==null){ return; } // Make sure we can dispatch a message. if(canDispatch(node)&&!isSlaveBroker()){ dispatchCounter++; MessageDispatch md=createMessageDispatch(node,message); dispatched.addLast(node); if(info.isDispatchAsync()){ md.setConsumer(new Runnable(){ public void run(){ // Since the message gets queued up in async dispatch, we don't want to // decrease the reference count until it gets put on the wire. onDispatch(node,message); } }); context.getConnection().dispatchAsync(md); }else{ context.getConnection().dispatchSync(md); onDispatch(node,message); } // The onDispatch() does the node.decrementReferenceCount(); }else{ // We were not allowed to dispatch that message (an other consumer grabbed it before we did) node.decrementReferenceCount(); } }
|
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/18d616c8db14f15d4b30fba51050c7c86b9890b3/PrefetchSubscription.java/clean/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3435,
12,
6385,
2350,
2404,
756,
13,
1216,
1860,
95,
3639,
756,
18,
15016,
2404,
1380,
5621,
3639,
727,
2350,
883,
33,
2159,
18,
24906,
5621,
3639,
309,
12,
2150,
631,
2011,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
368,
4344,
3071,
732,
848,
3435,
279,
883,
18,
3639,
309,
12,
4169,
5325,
12,
2159,
13,
10,
10,
5,
291,
20302,
11194,
10756,
95,
5411,
3435,
4789,
9904,
31,
5411,
2350,
5325,
3481,
33,
2640,
1079,
5325,
12,
2159,
16,
2150,
1769,
5411,
25513,
18,
1289,
3024,
12,
2159,
1769,
13491,
309,
12,
1376,
18,
291,
5325,
2771,
10756,
95,
7734,
3481,
18,
542,
5869,
12,
2704,
10254,
1435,
95,
10792,
1071,
918,
1086,
1435,
95,
13491,
368,
7897,
326,
883,
5571,
12234,
731,
316,
4326,
3435,
16,
732,
2727,
1404,
2545,
358,
13491,
368,
20467,
326,
2114,
1056,
3180,
518,
5571,
1378,
603,
326,
6636,
18,
13491,
603,
5325,
12,
2159,
16,
2150,
1769,
10792,
289,
7734,
15549,
7734,
819,
18,
588,
1952,
7675,
10739,
2771,
12,
1264,
1769,
5411,
289,
12107,
95,
7734,
819,
18,
588,
1952,
7675,
10739,
4047,
12,
1264,
1769,
7734,
603,
5325,
12,
2159,
16,
2150,
1769,
5411,
289,
5411,
368,
1021,
603,
5325,
1435,
1552,
326,
756,
18,
323,
3702,
2404,
1380,
5621,
3639,
289,
12107,
95,
5411,
368,
1660,
4591,
486,
2935,
358,
3435,
716,
883,
261,
304,
1308,
4765,
11086,
2992,
518,
1865,
732,
5061,
13,
5411,
756,
18,
323,
3702,
2404,
1380,
5621,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3435,
12,
6385,
2350,
2404,
756,
13,
1216,
1860,
95,
3639,
756,
18,
15016,
2404,
1380,
5621,
3639,
727,
2350,
883,
33,
2159,
18,
24906,
5621,
3639,
309,
12,
2150,
631,
2011,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
368,
4344,
3071,
732,
848,
3435,
279,
883,
18,
3639,
309,
12,
4169,
5325,
12,
2159,
13,
10,
10,
5,
291,
20302,
11194,
10756,
95,
5411,
3435,
4789,
9904,
31,
5411,
2350,
5325,
3481,
33,
2640,
1079,
5325,
12,
2159,
16,
2150,
1769,
5411,
25513,
18,
1289,
3024,
12,
2159,
1769,
13491,
309,
12,
1376,
18,
291,
5325,
2771,
10756,
95,
7734,
3481,
18,
542,
5869,
12,
2704,
10254,
1435,
95,
10792,
1071,
918,
1086,
1435,
2
] |
System.err.println("Got texture 2d for name "+name);
|
public void setFromEffectiveAppearance(EffectiveAppearance eap, String name) { super.setFromEffectiveAppearance(eap,name); smoothShading = eap.getAttribute(ShaderUtility.nameSpace(name,CommonAttributes.SMOOTH_SHADING), CommonAttributes.SMOOTH_SHADING_DEFAULT); useGLSL = eap.getAttribute(ShaderUtility.nameSpace(name,"useGLSL"), false); inheritTexture2d = eap.getAttribute(ShaderUtility.nameSpace(name,"inheritTexture2d"), false); ignoreTexture2d = eap.getAttribute(ShaderUtility.nameSpace(name,"ignoreTexture2d"), false); texture2Dnew = null; if (!inheritTexture2d) { if (AttributeEntityUtility.hasAttributeEntity(Texture2D.class, ShaderUtility.nameSpace(name,CommonAttributes.TEXTURE_2D), eap)) texture2Dnew = (Texture2D) AttributeEntityUtility.createAttributeEntity(Texture2D.class, ShaderUtility.nameSpace(name,"texture2d"), eap); // System.err.println("Got texture 2d"); }// JOGLConfiguration.theLog.log(Level.INFO,"Current text2d "+texture2Dnew); if (AttributeEntityUtility.hasAttributeEntity(CubeMap.class, ShaderUtility.nameSpace(name,"reflectionMap"), eap)) reflectionMapNew = TextureUtility.readReflectionMap(eap, ShaderUtility.nameSpace(name,"reflectionMap")); else reflectionMapNew = null; if (AttributeEntityUtility.hasAttributeEntity(Texture2D.class, ShaderUtility.nameSpace(name,"lightMap"), eap)) lightMapNew = (Texture2D) AttributeEntityUtility.createAttributeEntity(Texture2D.class, ShaderUtility.nameSpace(name,"lightMap"), eap); else lightMapNew = null; inheritGLSL= eap.getAttribute(ShaderUtility.nameSpace(name,"inheritGLSL"), false); if (!inheritGLSL) { if (useGLSL) { if (glslShader == null) { String vertShader = (String) eap.getAttribute(ShaderUtility.nameSpace(name,"glslVertexShader"), "standard3dlabs.vert"); String fragmentShader = (String) eap.getAttribute(ShaderUtility.nameSpace(name,"glslFragmentShader"), ""); if (fragmentShader == "") fragmentShader = null; System.err.println("Setting glsl vertex shader to "+vertShader); glslShader = new GlslDefaultPolygonShader(vertShader, fragmentShader); } glslShader.setFromEffectiveAppearance(eap,name+".vertexShader"); } } else useGLSL = false; vertexShader = (VertexShader) ShaderLookup.getShaderAttr(eap, name, CommonAttributes.VERTEX_SHADER); }
|
25560 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25560/4ce160b0c2382de979610975d1c572a356f622af/DefaultPolygonShader.java/clean/src-jogl/de/jreality/jogl/shader/DefaultPolygonShader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
918,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
2332,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
22012,
28531,
1294,
27668,
12,
28531,
1294,
27668,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
425,
438,
16,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
514,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
508,
13,
202,
95,
202,
202,
9565,
18,
542,
1265,
28531,
1294,
27668,
12,
73,
438,
16,
529,
1769,
202,
202,
26647,
1555,
14968,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
273,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
425,
438,
18,
588,
1499,
12,
19396,
6497,
18,
529,
3819,
12,
529,
16,
6517,
2498,
18,
55,
5980,
18307,
67,
2664,
30118,
3631,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
5658,
2498,
18,
55,
5980,
18307,
67,
2664,
30118,
67,
5280,
1769,
1082,
202,
1202,
43,
3045,
3045,
1108,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
273,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
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,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
918,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
2332,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
22012,
28531,
1294,
27668,
12,
28531,
1294,
27668,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
425,
438,
16,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
514,
3163,
18,
370,
18,
8222,
2932,
15617,
11428,
576,
72,
364,
508,
13773,
529,
1769,
508,
13,
202,
95,
202,
202,
9565,
18,
542,
1265,
28531,
1294,
27668,
2
] |
|
runQueryCheckResult(query, desiredResult);
|
assertQueryReturns(query, desiredResult);
|
public void testCalculatedMemberWhichIsNotAMeasure() { String query = "WITH MEMBER [Product].[BigSeller] AS" + nl + " 'IIf([Product].[Drink].[Alcoholic Beverages].[Beer and Wine] > 100, \"Yes\",\"No\")'" + nl + "SELECT {[Product].[BigSeller],[Product].children} ON COLUMNS," + nl + " {[Store].[All Stores].[USA].[CA].children} ON ROWS" + nl + "FROM Sales"; String desiredResult = "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Product].[BigSeller]}" + nl + "{[Product].[All Products].[Drink]}" + nl + "{[Product].[All Products].[Food]}" + nl + "{[Product].[All Products].[Non-Consumable]}" + nl + "Axis #2:" + nl + "{[Store].[All Stores].[USA].[CA].[Alameda]}" + nl + "{[Store].[All Stores].[USA].[CA].[Beverly Hills]}" + nl + "{[Store].[All Stores].[USA].[CA].[Los Angeles]}" + nl + "{[Store].[All Stores].[USA].[CA].[San Diego]}" + nl + "{[Store].[All Stores].[USA].[CA].[San Francisco]}" + nl + "Row #0: No" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #1: Yes" + nl + "Row #1: 1,945" + nl + "Row #1: 15,438" + nl + "Row #1: 3,950" + nl + "Row #2: Yes" + nl + "Row #2: 2,422" + nl + "Row #2: 18,294" + nl + "Row #2: 4,947" + nl + "Row #3: Yes" + nl + "Row #3: 2,560" + nl + "Row #3: 18,369" + nl + "Row #3: 4,706" + nl + "Row #4: No" + nl + "Row #4: 175" + nl + "Row #4: 1,555" + nl + "Row #4: 387" + nl; runQueryCheckResult(query, desiredResult); }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/3041f930b5fc4bf6aa3339845b828801c1d8b366/BasicQueryTest.java/buggy/testsrc/main/mondrian/test/BasicQueryTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4844,
690,
4419,
2888,
1354,
28041,
2192,
73,
3619,
1435,
288,
3639,
514,
843,
273,
315,
9147,
18990,
6271,
306,
4133,
8009,
63,
9901,
22050,
65,
5355,
6,
397,
7741,
397,
7734,
315,
225,
296,
45,
2047,
3816,
4133,
8009,
63,
8956,
754,
8009,
63,
1067,
2894,
76,
1415,
4823,
502,
1023,
8009,
63,
1919,
264,
471,
678,
558,
65,
405,
2130,
16,
1239,
22352,
22564,
2412,
2279,
2412,
2506,
6,
397,
7741,
397,
7734,
315,
4803,
288,
63,
4133,
8009,
63,
9901,
22050,
6487,
63,
4133,
8009,
5906,
97,
6229,
5597,
19639,
10837,
397,
7741,
397,
7734,
315,
282,
288,
63,
2257,
8009,
63,
1595,
20296,
455,
8009,
63,
3378,
37,
8009,
63,
3587,
8009,
5906,
97,
6229,
6525,
2651,
6,
397,
7741,
397,
7734,
315,
11249,
25996,
14432,
3639,
514,
6049,
1253,
273,
315,
6558,
468,
20,
2773,
397,
7741,
397,
7734,
13034,
397,
7741,
397,
7734,
315,
6558,
468,
21,
2773,
397,
7741,
397,
7734,
4144,
63,
4133,
8009,
63,
9901,
22050,
20817,
397,
7741,
397,
7734,
4144,
63,
4133,
8009,
63,
1595,
8094,
87,
8009,
63,
8956,
754,
20817,
397,
7741,
397,
7734,
4144,
63,
4133,
8009,
63,
1595,
8094,
87,
8009,
63,
42,
4773,
20817,
397,
7741,
397,
7734,
4144,
63,
4133,
8009,
63,
1595,
8094,
87,
8009,
63,
3989,
17,
11911,
429,
20817,
397,
7741,
397,
7734,
315,
6558,
468,
22,
2773,
397,
7741,
397,
7734,
4144,
63,
2257,
8009,
63,
1595,
20296,
455,
8009,
63,
3378,
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,
4844,
690,
4419,
2888,
1354,
28041,
2192,
73,
3619,
1435,
288,
3639,
514,
843,
273,
315,
9147,
18990,
6271,
306,
4133,
8009,
63,
9901,
22050,
65,
5355,
6,
397,
7741,
397,
7734,
315,
225,
296,
45,
2047,
3816,
4133,
8009,
63,
8956,
754,
8009,
63,
1067,
2894,
76,
1415,
4823,
502,
1023,
8009,
63,
1919,
264,
471,
678,
558,
65,
405,
2130,
16,
1239,
22352,
22564,
2412,
2279,
2412,
2506,
6,
397,
7741,
397,
7734,
315,
4803,
288,
63,
4133,
8009,
63,
9901,
22050,
6487,
63,
4133,
8009,
5906,
97,
6229,
5597,
19639,
10837,
397,
7741,
397,
7734,
315,
282,
288,
63,
2257,
8009,
63,
1595,
20296,
455,
8009,
63,
3378,
37,
8009,
63,
3587,
2
] |
String toc_text = "";
|
private static void writeItemIndex(Context c, IndexWriter writer, Item myitem ) throws SQLException, IOException { // get the location string (for searching by collection & community) String location_text = buildItemLocationString(c, myitem); // extract metadata (ANY is wildcard from Item class) DCValue [] authors = myitem.getDC( "contributor", Item.ANY, Item.ANY ); DCValue [] creators = myitem.getDC( "creator", Item.ANY, Item.ANY ); DCValue [] titles = myitem.getDC( "title", Item.ANY, Item.ANY ); DCValue [] keywords = myitem.getDC( "subject", Item.ANY, Item.ANY ); DCValue [] abstracts = myitem.getDC( "description", "abstract", Item.ANY ); DCValue [] sors = myitem.getDC( "description", "statementofresponsibility", Item.ANY ); DCValue [] series = myitem.getDC( "relation", "ispartofseries", Item.ANY ); DCValue [] tocs = myitem.getDC( "description", "tableofcontents", Item.ANY ); DCValue [] mimetypes = myitem.getDC( "format", "mimetype", Item.ANY ); DCValue [] sponsors = myitem.getDC( "description", "sponsorship", Item.ANY ); DCValue [] identifiers = myitem.getDC( "identifier", Item.ANY, Item.ANY ); // put them all from an array of strings to one string for writing out int j = 0; String author_text = ""; String title_text = ""; String keyword_text = ""; String abstract_text= ""; String sor_text = ""; String series_text = ""; String toc_text = ""; String mime_text = ""; String sponsor_text = ""; String id_text = ""; // pack all of the arrays of DCValues into plain text strings for the indexer for(j=0; j<authors.length; j++) { author_text = new String(author_text + authors[j].value + " "); } for(j=0; j<creators.length; j++) //also authors { author_text = new String(author_text + creators[j].value + " "); } for(j=0; j<sors.length; j++) //also authors { author_text= new String(author_text + sors[j].value + " "); } for(j=0; j<titles.length; j++) { title_text = new String(title_text + titles[j].value + " "); } for(j=0; j<keywords.length; j++) { keyword_text = new String(keyword_text + keywords[j].value + " "); } for(j=0; j<abstracts.length; j++) { abstract_text= new String(abstract_text+ abstracts[j].value + " "); } for(j=0; j<series.length; j++) { series_text= new String(series_text + series[j].value + " "); } for(j=0; j<tocs.length; j++) { toc_text= new String(toc_text + tocs[j].value + " "); } for(j=0; j<mimetypes.length; j++) { mime_text= new String(mime_text + mimetypes[j].value + " "); } for(j=0; j<sponsors.length; j++) { sponsor_text= new String(sponsor_text + sponsors[j].value + " "); } for(j=0; j<identifiers.length; j++) { id_text= new String(id_text + identifiers[j].value + " "); } // lastly, get the handle String itemhandle = HandleManager.findHandle(c, myitem); // build a hash HashMap textvalues = new HashMap(); textvalues.put("author", author_text ); textvalues.put("title", title_text ); textvalues.put("keyword", keyword_text ); textvalues.put("location", location_text); textvalues.put("handletext",itemhandle ); textvalues.put("abstract", abstract_text); textvalues.put("series", series_text ); textvalues.put("toc", toc_text ); textvalues.put("mimetype", mime_text ); textvalues.put("sponsor", sponsor_text ); textvalues.put("identifier",id_text ); // write out the metatdata (for scalability, using hash instead of individual strings) writeIndexRecord(writer, Constants.ITEM, myitem.getID(), itemhandle, textvalues); }
|
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/3dda2ed8eca214d118ccb34fbd419685a63523b5/DSIndexer.java/buggy/dspace/src/org/dspace/search/DSIndexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1045,
1180,
1016,
12,
1042,
276,
16,
3340,
2289,
2633,
16,
4342,
3399,
1726,
262,
3639,
1216,
6483,
16,
1860,
565,
288,
3639,
368,
336,
326,
2117,
533,
261,
1884,
15300,
635,
1849,
473,
19833,
13,
3639,
514,
2117,
67,
955,
273,
1361,
1180,
2735,
780,
12,
71,
16,
3399,
1726,
1769,
3639,
368,
2608,
1982,
261,
15409,
353,
8531,
628,
4342,
667,
13,
3639,
21533,
620,
5378,
14494,
282,
202,
33,
3399,
1726,
18,
588,
5528,
12,
315,
591,
19293,
3113,
225,
202,
1180,
18,
15409,
16,
282,
4342,
18,
15409,
11272,
3639,
21533,
620,
5378,
1519,
3062,
225,
202,
33,
3399,
1726,
18,
588,
5528,
12,
315,
20394,
3113,
3196,
565,
202,
1180,
18,
15409,
16,
282,
4342,
18,
15409,
11272,
3639,
21533,
620,
5378,
14693,
565,
202,
33,
3399,
1726,
18,
588,
5528,
12,
315,
2649,
3113,
3639,
202,
1180,
18,
15409,
16,
282,
4342,
18,
15409,
11272,
3639,
21533,
620,
5378,
7093,
225,
202,
33,
3399,
1726,
18,
588,
5528,
12,
315,
7857,
3113,
1377,
202,
1180,
18,
15409,
16,
282,
4342,
18,
15409,
11272,
3639,
21533,
620,
5378,
8770,
87,
202,
33,
3399,
1726,
18,
588,
5528,
12,
315,
3384,
3113,
225,
202,
6,
17801,
3113,
4342,
18,
15409,
11272,
3639,
21533,
620,
5378,
272,
1383,
3196,
202,
33,
3399,
1726,
18,
588,
5528,
12,
315,
3384,
3113,
225,
202,
6,
11516,
792,
455,
500,
17349,
3113,
282,
4342,
18,
15409,
11272,
3639,
21533,
620,
5378,
4166,
21114,
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,
1045,
1180,
1016,
12,
1042,
276,
16,
3340,
2289,
2633,
16,
4342,
3399,
1726,
262,
3639,
1216,
6483,
16,
1860,
565,
288,
3639,
368,
336,
326,
2117,
533,
261,
1884,
15300,
635,
1849,
473,
19833,
13,
3639,
514,
2117,
67,
955,
273,
1361,
1180,
2735,
780,
12,
71,
16,
3399,
1726,
1769,
3639,
368,
2608,
1982,
261,
15409,
353,
8531,
628,
4342,
667,
13,
3639,
21533,
620,
5378,
14494,
282,
202,
33,
3399,
1726,
18,
588,
5528,
12,
315,
591,
19293,
3113,
225,
202,
1180,
18,
15409,
16,
282,
4342,
18,
15409,
11272,
3639,
21533,
620,
5378,
1519,
3062,
225,
202,
33,
3399,
1726,
18,
588,
5528,
12,
315,
20394,
3113,
3196,
565,
202,
1180,
2
] |
|
super(StoreJob.this._context);
|
super(StoreJob.this.getContext());
|
public FailedJob(RouterInfo peer) { super(StoreJob.this._context); _peer = peer; }
|
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/e737e5c9507ed0d463dc9e45a8f63657f466b177/StoreJob.java/clean/router/java/src/net/i2p/router/networkdb/kademlia/StoreJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
11175,
2278,
12,
8259,
966,
4261,
13,
288,
5411,
2240,
12,
2257,
2278,
18,
2211,
18,
29120,
10663,
5411,
389,
12210,
273,
4261,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
540,
1071,
11175,
2278,
12,
8259,
966,
4261,
13,
288,
5411,
2240,
12,
2257,
2278,
18,
2211,
18,
29120,
10663,
5411,
389,
12210,
273,
4261,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Iterator clientDependencyIterator = cls.getClientDependencies().iterator(); while (clientDependencyIterator.hasNext()) { MDependency dep = (MDependency)clientDependencyIterator.next(); if (dep.getClients().size() < 2) dep.remove(); }
|
extendIterator = (useCase.getExtends2()).iterator();
|
public void remove(MClassifier cls) { Iterator ascEndIterator = (cls.getAssociationEnds()).iterator(); while (ascEndIterator.hasNext()) { MAssociationEnd ae = (MAssociationEnd)ascEndIterator.next(); MAssociation assoc = ae.getAssociation(); if ((assoc.getConnections()).size() < 3) assoc.remove(); else ae.remove(); } Iterator roleIterator = (cls.getClassifierRoles()).iterator(); while (roleIterator.hasNext()) { MClassifierRole r = (MClassifierRole)roleIterator.next(); r.remove(); } Iterator generalizationIterator = (cls.getGeneralizations()).iterator(); while (generalizationIterator.hasNext()) { MGeneralization gen = (MGeneralization)generalizationIterator.next(); gen.remove(); } Iterator specializationIterator = (cls.getSpecializations()).iterator(); while (specializationIterator.hasNext()) { MGeneralization spec = (MGeneralization)specializationIterator.next(); spec.remove(); } Iterator clientDependencyIterator = cls.getClientDependencies().iterator(); while (clientDependencyIterator.hasNext()) { MDependency dep = (MDependency)clientDependencyIterator.next(); if (dep.getClients().size() < 2) dep.remove(); } Iterator supplierDependencyIterator = cls.getSupplierDependencies().iterator(); while (supplierDependencyIterator.hasNext()) { MDependency dep = (MDependency)supplierDependencyIterator.next(); if (dep.getSuppliers().size() < 2) dep.remove(); } cls.remove(); //takes also care of removing the elementlisteners }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/0ee5440dd4741e1acdf1576195232286bf03f41c/MMUtil.java/buggy/src_new/org/argouml/uml/MMUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
12,
49,
13860,
2028,
13,
288,
202,
202,
3198,
6972,
1638,
3198,
273,
261,
6429,
18,
588,
7174,
24980,
1435,
2934,
9838,
5621,
202,
202,
17523,
261,
3691,
1638,
3198,
18,
5332,
2134,
10756,
288,
1082,
202,
49,
7174,
1638,
14221,
273,
261,
49,
7174,
1638,
13,
3691,
1638,
3198,
18,
4285,
5621,
1082,
202,
49,
7174,
7191,
273,
14221,
18,
588,
7174,
5621,
1082,
202,
430,
14015,
14578,
18,
588,
9314,
1435,
2934,
1467,
1435,
411,
890,
13,
9506,
202,
14578,
18,
4479,
5621,
1082,
202,
12107,
9506,
202,
8906,
18,
4479,
5621,
202,
202,
97,
202,
202,
3198,
2478,
3198,
273,
261,
6429,
18,
588,
13860,
6898,
1435,
2934,
9838,
5621,
202,
202,
17523,
261,
4615,
3198,
18,
5332,
2134,
10756,
288,
1082,
202,
49,
13860,
2996,
436,
273,
261,
49,
13860,
2996,
13,
4615,
3198,
18,
4285,
5621,
1082,
202,
86,
18,
4479,
5621,
202,
202,
97,
202,
202,
3198,
7470,
1588,
3198,
273,
261,
6429,
18,
588,
12580,
7089,
1435,
2934,
9838,
5621,
202,
202,
17523,
261,
12259,
1588,
3198,
18,
5332,
2134,
10756,
288,
1082,
202,
49,
12580,
1588,
3157,
273,
261,
49,
12580,
1588,
13,
12259,
1588,
3198,
18,
4285,
5621,
1082,
202,
4507,
18,
4479,
5621,
202,
202,
97,
202,
202,
3198,
4582,
1588,
3198,
273,
261,
6429,
18,
588,
12193,
7089,
1435,
2934,
9838,
5621,
202,
202,
17523,
261,
9371,
1588,
3198,
18,
5332,
2134,
10756,
288,
1082,
202,
49,
12580,
1588,
857,
273,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
12,
49,
13860,
2028,
13,
288,
202,
202,
3198,
6972,
1638,
3198,
273,
261,
6429,
18,
588,
7174,
24980,
1435,
2934,
9838,
5621,
202,
202,
17523,
261,
3691,
1638,
3198,
18,
5332,
2134,
10756,
288,
1082,
202,
49,
7174,
1638,
14221,
273,
261,
49,
7174,
1638,
13,
3691,
1638,
3198,
18,
4285,
5621,
1082,
202,
49,
7174,
7191,
273,
14221,
18,
588,
7174,
5621,
1082,
202,
430,
14015,
14578,
18,
588,
9314,
1435,
2934,
1467,
1435,
411,
890,
13,
9506,
202,
14578,
18,
4479,
5621,
1082,
202,
12107,
9506,
202,
8906,
18,
4479,
5621,
202,
202,
97,
202,
202,
3198,
2478,
3198,
273,
261,
6429,
18,
588,
13860,
6898,
1435,
2934,
9838,
5621,
202,
202,
2
] |
protected void createMoveListChange(EList oldList, EList changesList, Object newObject, int index, int targetIndex)
|
protected void createMoveListChange(EList oldList, EList changesList, Object newObject, int index, int toIndex)
|
protected void createMoveListChange(EList oldList, EList changesList, Object newObject, int index, int targetIndex) { ListChange listChange = createListChange(changesList, ChangeKind.MOVE_LITERAL, index); listChange.setMoveToIndex(targetIndex); oldList.move(targetIndex, index); }
|
11224 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11224/a08abfa77b35c80c56945b803f75870277e3c3a3/ChangeRecorder.java/clean/plugins/org.eclipse.emf.ecore.change/src/org/eclipse/emf/ecore/change/util/ChangeRecorder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
752,
7607,
682,
3043,
12,
41,
682,
1592,
682,
16,
17021,
3478,
682,
16,
1033,
24518,
16,
509,
770,
16,
509,
20209,
13,
225,
288,
565,
987,
3043,
666,
3043,
273,
752,
682,
3043,
12,
6329,
682,
16,
7576,
5677,
18,
16537,
67,
23225,
16,
770,
1769,
565,
666,
3043,
18,
542,
7607,
19418,
12,
3299,
1016,
1769,
565,
1592,
682,
18,
8501,
12,
3299,
1016,
16,
770,
1769,
282,
289,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
752,
7607,
682,
3043,
12,
41,
682,
1592,
682,
16,
17021,
3478,
682,
16,
1033,
24518,
16,
509,
770,
16,
509,
20209,
13,
225,
288,
565,
987,
3043,
666,
3043,
273,
752,
682,
3043,
12,
6329,
682,
16,
7576,
5677,
18,
16537,
67,
23225,
16,
770,
1769,
565,
666,
3043,
18,
542,
7607,
19418,
12,
3299,
1016,
1769,
565,
1592,
682,
18,
8501,
12,
3299,
1016,
16,
770,
1769,
282,
289,
282,
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
] |
tlist.internalAddRootTask(delagatingExternalizer.readTask(child, tlist, null, null));
|
tlist.addRootTask(delagatingExternalizer.readTask(child, tlist, null, null));
|
public void readTaskList(TaskList tlist, File inFile) {// initExtensions();// MylarTaskListPlugin.getDefault().restoreTaskHandlerState(); hasCaughtException = false; try { // parse file // if (!inFile.exists()) return; Document doc = openAsDOM(inFile); if (doc == null) { handleException(inFile, null, new TaskListExternalizerException("TaskList was not well formed XML")); return; } // read root node to get version number // Element root = doc.getDocumentElement(); readVersion = root.getAttribute(ATTRIBUTE_VERSION); if (readVersion.equals(VALUE_VERSION_1_0_0)) { MylarPlugin.log("version: " + readVersion + " not supported", this); // NodeList list = root.getChildNodes(); // for (int i = 0; i < list.getLength(); i++) { // Node child = list.item(i); // readTasksToNewFormat(child, tlist); // //tlist.addRootTask(readTaskAndSubTasks(child, null, tlist)); // } } else { NodeList list = root.getChildNodes(); for (int i = 0; i < list.getLength(); i++) { Node child = list.item(i); boolean wasRead = false; try { if (child.getNodeName().endsWith(DelegatingLocalTaskExternalizer.TAG_CATEGORY)) { for (ITaskListExternalizer externalizer : externalizers) { if (externalizer.canReadCategory(child)) { externalizer.readCategory(child, tlist); wasRead = true; break; } } if (!wasRead && delagatingExternalizer.canReadCategory(child)) { delagatingExternalizer.readCategory(child, tlist); } else { // MylarPlugin.log("Did not read: " + // child.getNodeName(), this); } } else if (child.getNodeName().endsWith(DelegatingLocalTaskExternalizer.TAG_QUERY)) { for (ITaskListExternalizer externalizer : externalizers) { if (externalizer.canReadQuery(child)) { externalizer.readQuery(child, tlist); wasRead = true; break; } } if (!wasRead && delagatingExternalizer.canReadCategory(child)) { delagatingExternalizer.readQuery(child, tlist); } else { // MylarPlugin.log("Did not read: " + // child.getNodeName(), this); } } else { for (ITaskListExternalizer externalizer : externalizers) { if (externalizer.canReadTask(child)) { // TODO add the tasks properly ITask newTask = externalizer.readTask(child, tlist, null, null); ITaskHandler taskHandler = MylarTaskListPlugin.getDefault() .getTaskHandlerForElement(newTask); if (taskHandler != null) { newTask = taskHandler.taskAdded(newTask); } tlist.internalAddRootTask(newTask); wasRead = true; break; } } if (!wasRead && delagatingExternalizer.canReadTask(child)) { tlist.internalAddRootTask(delagatingExternalizer.readTask(child, tlist, null, null)); } else { // MylarPlugin.log("Did not read: " + // child.getNodeName(), this); } } } catch (Exception e) { handleException(inFile, child, e); } } } } catch (Exception e) { handleException(inFile, null, e); } if (hasCaughtException) { // if exception was caught, write out the new task file, so that it // doesn't happen again. // this is OK, since the original (corrupt) tasklist is saved. // TODO: The problem with this is that if the orignal tasklist has // tasks and bug reports, but a // task is corrupted, the new tasklist that is written will not // include the bug reports (since the // bugzilla externalizer is not loaded. So there is a potentila that // we can lose bug reports. writeTaskList(tlist, inFile); }// MylarTaskListPlugin.getDefault().restoreTaskHandlerState(); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1552dd9229a90926c9fbca8fd12d892719fe2af1/TaskListWriter.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/TaskListWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
855,
2174,
682,
12,
2174,
682,
268,
1098,
16,
1387,
316,
812,
13,
288,
759,
202,
202,
2738,
7513,
5621,
759,
202,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
13991,
2174,
1503,
1119,
5621,
202,
202,
5332,
24512,
503,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
759,
1109,
585,
1082,
202,
759,
1082,
202,
430,
16051,
267,
812,
18,
1808,
10756,
9506,
202,
2463,
31,
1082,
202,
2519,
997,
273,
1696,
1463,
8168,
12,
267,
812,
1769,
1082,
202,
430,
261,
2434,
422,
446,
13,
288,
9506,
202,
4110,
503,
12,
267,
812,
16,
446,
16,
394,
3837,
682,
6841,
1824,
503,
2932,
2174,
682,
1703,
486,
5492,
20010,
3167,
7923,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
759,
855,
1365,
756,
358,
336,
1177,
1300,
1082,
202,
759,
1082,
202,
1046,
1365,
273,
997,
18,
588,
2519,
1046,
5621,
1082,
202,
896,
1444,
273,
1365,
18,
588,
1499,
12,
11616,
67,
5757,
1769,
1082,
202,
430,
261,
896,
1444,
18,
14963,
12,
4051,
67,
5757,
67,
21,
67,
20,
67,
20,
3719,
288,
9506,
202,
12062,
7901,
3773,
18,
1330,
2932,
1589,
30,
315,
397,
855,
1444,
397,
315,
486,
3260,
3113,
333,
1769,
9506,
202,
759,
16781,
666,
273,
1365,
18,
588,
22460,
5621,
9506,
202,
759,
364,
261,
474,
277,
273,
374,
31,
277,
411,
666,
18,
588,
1782,
5621,
277,
27245,
288,
9506,
202,
759,
2029,
1151,
273,
666,
18,
1726,
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,
855,
2174,
682,
12,
2174,
682,
268,
1098,
16,
1387,
316,
812,
13,
288,
759,
202,
202,
2738,
7513,
5621,
759,
202,
202,
12062,
7901,
2174,
682,
3773,
18,
588,
1868,
7675,
13991,
2174,
1503,
1119,
5621,
202,
202,
5332,
24512,
503,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
759,
1109,
585,
1082,
202,
759,
1082,
202,
430,
16051,
267,
812,
18,
1808,
10756,
9506,
202,
2463,
31,
1082,
202,
2519,
997,
273,
1696,
1463,
8168,
12,
267,
812,
1769,
1082,
202,
430,
261,
2434,
422,
446,
13,
288,
9506,
202,
4110,
503,
12,
267,
812,
16,
446,
16,
394,
3837,
682,
6841,
1824,
503,
2932,
2174,
682,
1703,
486,
5492,
20010,
3167,
2
] |
private void createPlanningSection(Composite parent, FormToolkit toolkit) { Section section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR); section.setText("Planning"); section.setLayout(new TableWrapLayout()); section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); Composite container = toolkit.createComposite(section); section.setClient(container); TableWrapLayout layout = new TableWrapLayout(); layout.numColumns = 3; container.setLayout(layout); Label label = toolkit.createLabel(container, "Reminder:"); label.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); datePicker = new DatePicker(container, SWT.NULL); Calendar calendar = Calendar.getInstance(); if (task.getReminderDate() != null) { calendar.setTime(task.getReminderDate()); datePicker.setDate(calendar); } datePicker.setBackground(new Color(Display.getDefault(), 255, 255, 255)); datePicker.addPickerSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent arg0) { TaskInfoEditor.this.markDirty(true); } public void widgetDefaultSelected(SelectionEvent arg0) { // ignore } });// label = toolkit.createLabel(container, " ");// label.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); removeReminder = toolkit.createButton(container, "Clear", SWT.PUSH | SWT.CENTER); if (task.isActive()) { removeReminder.setEnabled(false); } else { removeReminder.setEnabled(true); } removeReminder.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { datePicker.setDate(null); datePicker.setDateText(""); TaskInfoEditor.this.markDirty(true); } }); label = toolkit.createLabel(container, "Estimated time:"); label.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); Composite estimatedComposite = toolkit.createComposite(container); GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; gridLayout.horizontalSpacing = 2; gridLayout.verticalSpacing = 2; gridLayout.marginWidth = 0; gridLayout.marginHeight = 2; gridLayout.makeColumnsEqualWidth = false; estimatedComposite.setLayout(gridLayout); estimated = new Spinner(estimatedComposite, SWT.BORDER); estimated.setSelection(task.getEstimateTimeHours()); estimated.setDigits(0); estimated.setMaximum(100); estimated.setMinimum(0); estimated.setIncrement(1); estimated.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { TaskInfoEditor.this.markDirty(true); } }); GridData estimatedSpinnerGridData = new GridData(); estimatedSpinnerGridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; estimatedSpinnerGridData.grabExcessHorizontalSpace = true; estimatedSpinnerGridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; estimated.setData(estimatedSpinnerGridData); label = toolkit.createLabel(estimatedComposite, "hours "); label.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); GridData hoursLabelGridData = new org.eclipse.swt.layout.GridData(); hoursLabelGridData.horizontalAlignment = org.eclipse.swt.layout.GridData.END; hoursLabelGridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; label.setData(hoursLabelGridData); // Temp hack because couldn't get the estimatedComposite above to span // two columns label = toolkit.createLabel(container, " "); label = toolkit.createLabel(container, "Elapsed time:"); label.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); String elapsedTimeString = "0"; try { elapsedTimeString = DateUtil.getFormattedDuration(task.getElapsedTime(), true); } catch (RuntimeException e) { ErrorLogger.fail(e, "Could not format reminder date", true); } Text reminder = toolkit.createText(container, elapsedTimeString, SWT.BORDER); TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB); td.grabHorizontal = true; td.colspan = 2; reminder.setLayoutData(td); reminder.setEditable(false); reminder.setEnabled(false); label = toolkit.createLabel(container, "Creation date:"); label.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); String creationDateString = ""; try { creationDateString = DateFormat.getDateInstance(DateFormat.LONG).format(task.getCreationDate()); } catch (RuntimeException e) { ErrorLogger.fail(e, "Could not format creation date", true); } Text creationDate = toolkit.createText(container, creationDateString, SWT.BORDER); td = new TableWrapData(TableWrapData.FILL_GRAB); td.grabHorizontal = true; td.colspan = 2; creationDate.setLayoutData(td); creationDate.setEditable(false); creationDate.setEnabled(false); label = toolkit.createLabel(container, "Completion date:"); label.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); String completionDateString = ""; if (task.getCompletionDate() != null) { try { completionDateString = DateFormat.getDateInstance(DateFormat.LONG).format(task.getCompletionDate()); } catch (RuntimeException e) { ErrorLogger.fail(e, "Could not format date", true); } } Text endDate = toolkit.createText(container, completionDateString, SWT.BORDER); td = new TableWrapData(TableWrapData.FILL_GRAB); td.grabHorizontal = true; td.colspan = 2; endDate.setLayoutData(td); endDate.setEditable(false); endDate.setEnabled(false); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/eafb9eac9c1b3bd9ee35fb3c36b17ad6706d6925/TaskInfoEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskInfoEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
1749,
10903,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
2938,
16,
16429,
429,
9400,
18,
14123,
67,
21908,
1769,
202,
202,
3464,
18,
542,
1528,
2932,
1749,
10903,
8863,
202,
202,
3464,
18,
542,
3744,
12,
2704,
3555,
2964,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
3555,
2964,
751,
12,
1388,
2964,
751,
18,
29818,
67,
6997,
2090,
10019,
202,
202,
3464,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
288,
1082,
202,
482,
918,
17965,
1119,
782,
18183,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
1082,
202,
482,
918,
17965,
1119,
5033,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
3464,
1769,
202,
202,
3464,
18,
542,
1227,
12,
3782,
1769,
202,
202,
1388,
2964,
3744,
3511,
273,
394,
3555,
2964,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
273,
890,
31,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
202,
202,
2224,
1433,
273,
5226,
8691,
18,
2640,
2224,
12,
3782,
16,
315,
1933,
14055,
2773,
1769,
202,
202,
1925,
18,
542,
23206,
12,
6738,
8691,
18,
588,
12570,
7675,
588,
2957,
12,
1204,
12570,
18,
14123,
10019,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
1749,
10903,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
2938,
16,
16429,
429,
9400,
18,
14123,
67,
21908,
1769,
202,
202,
3464,
18,
542,
1528,
2932,
1749,
10903,
8863,
202,
202,
3464,
18,
542,
3744,
12,
2704,
3555,
2964,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
3555,
2964,
751,
12,
1388,
2964,
751,
18,
29818,
67,
6997,
2090,
10019,
202,
202,
3464,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
288,
1082,
202,
482,
918,
17965,
1119,
782,
18183,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
2
] |
||
WorkbenchPlugin.getDefault().getBundleContext().ungetService( reference);
|
public boolean isApplicable(IAdaptable object) { if (applicableTypes == null || applicableTypes.length == 0) return true; IAdapterManager adapterManager = Platform.getAdapterManager(); Class[] directClasses = adapterManager.computeClassOrder(object .getClass()); for (int i = 0; i < directClasses.length; i++) { Class clazz = directClasses[i]; if (Arrays.binarySearch(applicableTypes, clazz.getName()) >= 0) return true; } for (int i = 0; i < applicableTypes.length; i++) { String type = applicableTypes[i]; if (adapterManager.hasAdapter(object, type)) return true; } ServiceReference reference = WorkbenchPlugin.getDefault() .getBundleContext().getServiceReference( PackageAdmin.class.getName()); if (reference != null) { PackageAdmin admin = (PackageAdmin) WorkbenchPlugin.getDefault() .getBundleContext().getService(reference); for (int i = 0; i < applicableTypes.length; i++) { String type = applicableTypes[i]; int lastDot = type.lastIndexOf('.'); if (lastDot > 0) { // this lives in a package String packageName = type.substring(0, lastDot); ExportedPackage[] packages = admin .getExportedPackages(packageName); if (packages != null && packages.length == 1) { // if there is exactly one // exporter of this package we // can go further if (packages[0].getExportingBundle().getState() == Bundle.ACTIVE) { try { // if the bundle is loaded we can safely get // the class object and check for an adapter // on the object directly if (object.getAdapter(Class.forName(type)) != null) return true; } catch (ClassNotFoundException e) { WorkbenchPlugin.log(e); } } } } } WorkbenchPlugin.getDefault().getBundleContext().ungetService( reference); } return false; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e213d565b5671257d626867264ea668cab7e223d/WorkingSetDescriptor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/WorkingSetDescriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
27873,
12,
45,
13716,
429,
733,
13,
288,
202,
202,
430,
261,
438,
10120,
2016,
422,
446,
747,
12008,
2016,
18,
2469,
422,
374,
13,
1082,
202,
2463,
638,
31,
202,
202,
45,
4216,
1318,
4516,
1318,
273,
11810,
18,
588,
4216,
1318,
5621,
202,
202,
797,
8526,
2657,
4818,
273,
4516,
1318,
18,
9200,
797,
2448,
12,
1612,
9506,
202,
18,
588,
797,
10663,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2657,
4818,
18,
2469,
31,
277,
27245,
288,
1082,
202,
797,
4003,
273,
2657,
4818,
63,
77,
15533,
1082,
202,
430,
261,
12726,
18,
8578,
2979,
12,
438,
10120,
2016,
16,
4003,
18,
17994,
10756,
1545,
374,
13,
9506,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
12008,
2016,
18,
2469,
31,
277,
27245,
288,
1082,
202,
780,
618,
273,
12008,
2016,
63,
77,
15533,
1082,
202,
430,
261,
10204,
1318,
18,
5332,
4216,
12,
1612,
16,
618,
3719,
9506,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
1179,
2404,
2114,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
9506,
202,
18,
588,
3405,
1042,
7675,
588,
1179,
2404,
12,
25083,
202,
2261,
4446,
18,
1106,
18,
17994,
10663,
202,
202,
430,
261,
6180,
480,
446,
13,
288,
1082,
202,
2261,
4446,
3981,
273,
261,
2261,
4446,
13,
4147,
22144,
3773,
18,
588,
1868,
1435,
6862,
202,
18,
588,
3405,
1042,
7675,
588,
1179,
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,
225,
202,
482,
1250,
353,
27873,
12,
45,
13716,
429,
733,
13,
288,
202,
202,
430,
261,
438,
10120,
2016,
422,
446,
747,
12008,
2016,
18,
2469,
422,
374,
13,
1082,
202,
2463,
638,
31,
202,
202,
45,
4216,
1318,
4516,
1318,
273,
11810,
18,
588,
4216,
1318,
5621,
202,
202,
797,
8526,
2657,
4818,
273,
4516,
1318,
18,
9200,
797,
2448,
12,
1612,
9506,
202,
18,
588,
797,
10663,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2657,
4818,
18,
2469,
31,
277,
27245,
288,
1082,
202,
797,
4003,
273,
2657,
4818,
63,
77,
15533,
1082,
202,
430,
261,
12726,
18,
8578,
2979,
12,
438,
10120,
2016,
16,
4003,
18,
17994,
10756,
1545,
374,
13,
2
] |
|
else return visibleRect.width;
|
else return HORIZONTAL_SCROLL_INCREMENT;
|
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == SwingConstants.VERTICAL) return VERTICAL_SCROLL_INCREMENT; else return visibleRect.width; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/c9ba12ac96902650f4c51e03189675d43007c6d6/PluginsPanel.java/buggy/source/com/intellij/openapi/wm/impl/welcomeScreen/PluginsPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
11971,
30453,
2802,
10798,
12,
19463,
6021,
6120,
16,
509,
9820,
16,
509,
4068,
13,
288,
565,
309,
261,
19235,
422,
26145,
2918,
18,
21654,
10109,
13,
327,
29109,
67,
2312,
14555,
67,
29836,
31,
565,
469,
327,
24606,
67,
2312,
14555,
67,
29836,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
11971,
30453,
2802,
10798,
12,
19463,
6021,
6120,
16,
509,
9820,
16,
509,
4068,
13,
288,
565,
309,
261,
19235,
422,
26145,
2918,
18,
21654,
10109,
13,
327,
29109,
67,
2312,
14555,
67,
29836,
31,
565,
469,
327,
24606,
67,
2312,
14555,
67,
29836,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LSQUAREBRACKET: label_16: while (true) { jj_consume_token(LSQUAREBRACKET); if (jj_2_64(1)) { constant_expression(); } else { ; } jj_consume_token(RSQUAREBRACKET); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LSQUAREBRACKET: ; break; default: jj_la1[60] = jj_gen; break label_16; } } break; case LPARENTHESIS: jj_consume_token(LPARENTHESIS); if (jj_2_65(1)) { parameter_list(); } else { ; } jj_consume_token(RPARENTHESIS); if (jj_2_66(2)) { type_qualifier(); } else { ; } switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case THROW: exception_spec(); break; default: jj_la1[61] = jj_gen; ; } break; default: jj_la1[62] = jj_gen; jj_consume_token(-1); throw new ParseException();
|
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LSQUAREBRACKET: label_16: while (true) { jj_consume_token(LSQUAREBRACKET); if (jj_2_64(1)) { constant_expression(); } else { ;
|
static final public void declarator_suffixes() throws ParseException { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LSQUAREBRACKET: label_16: while (true) { jj_consume_token(LSQUAREBRACKET); if (jj_2_64(1)) { constant_expression(); } else { ; } jj_consume_token(RSQUAREBRACKET); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LSQUAREBRACKET: ; break; default: jj_la1[60] = jj_gen; break label_16; } } break; case LPARENTHESIS: jj_consume_token(LPARENTHESIS); if (jj_2_65(1)) { parameter_list(); } else { ; } jj_consume_token(RPARENTHESIS); if (jj_2_66(2)) { type_qualifier(); } else { ; } switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case THROW: exception_spec(); break; default: jj_la1[61] = jj_gen; ; } break; default: jj_la1[62] = jj_gen; jj_consume_token(-1); throw new ParseException(); } }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
1071,
918,
3496,
5880,
67,
8477,
281,
1435,
1216,
10616,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
422,
300,
21,
13,
692,
10684,
67,
496,
79,
1435,
294,
10684,
67,
496,
79,
13,
288,
5411,
648,
511,
19716,
21217,
30,
7734,
1433,
67,
2313,
30,
7734,
1323,
261,
3767,
13,
288,
10792,
10684,
67,
21224,
67,
2316,
12,
3045,
17483,
21217,
1769,
10792,
309,
261,
78,
78,
67,
22,
67,
1105,
12,
21,
3719,
288,
13491,
5381,
67,
8692,
5621,
10792,
289,
469,
288,
13491,
274,
10792,
289,
10792,
10684,
67,
21224,
67,
2316,
12,
13225,
17483,
21217,
1769,
10792,
1620,
14015,
78,
78,
67,
496,
79,
422,
300,
21,
13,
692,
10684,
67,
496,
79,
1435,
294,
10684,
67,
496,
79,
13,
288,
13491,
648,
511,
19716,
21217,
30,
18701,
274,
18701,
898,
31,
13491,
805,
30,
18701,
10684,
67,
11821,
21,
63,
4848,
65,
273,
10684,
67,
4507,
31,
18701,
898,
1433,
67,
2313,
31,
10792,
289,
7734,
289,
7734,
898,
31,
5411,
648,
511,
14943,
3900,
15664,
30,
7734,
10684,
67,
21224,
67,
2316,
12,
48,
14943,
3900,
15664,
1769,
7734,
309,
261,
78,
78,
67,
22,
67,
9222,
12,
21,
3719,
288,
10792,
1569,
67,
1098,
5621,
7734,
289,
469,
288,
10792,
274,
7734,
289,
7734,
10684,
67,
21224,
67,
2316,
12,
54,
14943,
3900,
15664,
1769,
7734,
309,
261,
78,
78,
67,
22,
67,
6028,
12,
22,
3719,
288,
10792,
618,
67,
28157,
5621,
7734,
289,
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,
760,
727,
1071,
918,
3496,
5880,
67,
8477,
281,
1435,
1216,
10616,
288,
3639,
1620,
14015,
78,
78,
67,
496,
79,
422,
300,
21,
13,
692,
10684,
67,
496,
79,
1435,
294,
10684,
67,
496,
79,
13,
288,
5411,
648,
511,
19716,
21217,
30,
7734,
1433,
67,
2313,
30,
7734,
1323,
261,
3767,
13,
288,
10792,
10684,
67,
21224,
67,
2316,
12,
3045,
17483,
21217,
1769,
10792,
309,
261,
78,
78,
67,
22,
67,
1105,
12,
21,
3719,
288,
13491,
5381,
67,
8692,
5621,
10792,
289,
469,
288,
13491,
274,
10792,
289,
10792,
10684,
67,
21224,
67,
2316,
12,
13225,
17483,
21217,
1769,
10792,
1620,
14015,
78,
78,
67,
496,
79,
422,
300,
21,
13,
692,
10684,
67,
2
] |
public TA_RetCode CMO( int startIdx, int endIdx, double inReal[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int outIdx; int today, lookbackTotal, unstablePeriod, i; double prevGain, prevLoss, prevValue, savePrevValue; double tempValue1, tempValue2, tempValue3, tempValue4; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 14; else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; outBegIdx.value = 0 ; outNbElement.value = 0 ; lookbackTotal = CMO_Lookback ( optInTimePeriod ); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) return TA_RetCode. TA_SUCCESS; outIdx = 0; if( optInTimePeriod == 1 ) { outBegIdx.value = startIdx; i = (endIdx-startIdx)+1; outNbElement.value = i; System.arraycopy(inReal,0,outReal,0,i) ; return TA_RetCode. TA_SUCCESS; } today = startIdx-lookbackTotal; prevValue = inReal[today]; unstablePeriod = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_CMO.ordinal()]) ; if( (unstablePeriod == 0) && ( (this.compatibility) == TA_Compatibility. TA_COMPATIBILITY_METASTOCK)) { savePrevValue = prevValue; prevGain = 0.0; prevLoss = 0.0; for( i=optInTimePeriod; i > 0; i-- ) { tempValue1 = inReal[today++]; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; if( tempValue2 < 0 ) prevLoss -= tempValue2; else prevGain += tempValue2; } tempValue1 = prevLoss/optInTimePeriod; tempValue2 = prevGain/optInTimePeriod; tempValue3 = tempValue2-tempValue1; tempValue4 = tempValue1+tempValue2; if( ! (((-0.00000001)<tempValue4)&&(tempValue4<0.00000001)) ) outReal[outIdx++] = 100*(tempValue3/tempValue4); else outReal[outIdx++] = 0.0; if( today > endIdx ) { outBegIdx.value = startIdx; outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS; } today -= optInTimePeriod; prevValue = savePrevValue; } prevGain = 0.0; prevLoss = 0.0; today++; for( i=optInTimePeriod; i > 0; i-- ) { tempValue1 = inReal[today++]; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; if( tempValue2 < 0 ) prevLoss -= tempValue2; else prevGain += tempValue2; } prevLoss /= optInTimePeriod; prevGain /= optInTimePeriod; if( today > startIdx ) { tempValue1 = prevGain+prevLoss; if( ! (((-0.00000001)<tempValue1)&&(tempValue1<0.00000001)) ) outReal[outIdx++] = 100.0*((prevGain-prevLoss)/tempValue1); else outReal[outIdx++] = 0.0; } else { while( today < startIdx ) { tempValue1 = inReal[today]; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; prevLoss *= (optInTimePeriod-1); prevGain *= (optInTimePeriod-1); if( tempValue2 < 0 ) prevLoss -= tempValue2; else prevGain += tempValue2; prevLoss /= optInTimePeriod; prevGain /= optInTimePeriod; today++; } } while( today <= endIdx ) { tempValue1 = inReal[today++]; tempValue2 = tempValue1 - prevValue; prevValue = tempValue1; prevLoss *= (optInTimePeriod-1); prevGain *= (optInTimePeriod-1); if( tempValue2 < 0 ) prevLoss -= tempValue2; else prevGain += tempValue2; prevLoss /= optInTimePeriod; prevGain /= optInTimePeriod; if( ! (((-0.00000001)<tempValue1)&&(tempValue1<0.00000001)) ) outReal[outIdx++] = 100.0*((prevGain-prevLoss)/(prevGain+prevLoss)); else outReal[outIdx++] = 0.0; } outBegIdx.value = startIdx; outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;}
|
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
39,
5980,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
6955,
63,
6487,
474,
3838,
382,
26540,
16,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
659,
4223,
31,
474,
30064,
16,
7330,
823,
5269,
16,
318,
15021,
5027,
16,
77,
31,
9056,
10001,
43,
530,
16,
10001,
20527,
16,
10001,
620,
16,
5688,
9958,
620,
31,
2896,
440,
278,
30752,
620,
21,
16,
5814,
620,
22,
16,
5814,
620,
23,
16,
5814,
620,
24,
31,
430,
12,
1937,
4223,
32,
20,
13,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
430,
12443,
409,
4223,
32,
20,
14047,
96,
12,
409,
4223,
32,
1937,
4223,
3719,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
430,
12443,
474,
13,
3838,
382,
26540,
631,
12,
4522,
18,
6236,
67,
4051,
3719,
3838,
382,
26540,
33,
3461,
31,
12107,
430,
12443,
12,
474,
13,
3838,
382,
26540,
32,
22,
14047,
96,
12443,
474,
13,
3838,
382,
26540,
34,
21,
11706,
3719,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
16234,
67,
8388,
31,
659,
24059,
4223,
18,
1132,
33,
20,
31,
659,
22816,
1046,
18,
1132,
33,
20,
31,
7330,
823,
5269,
33,
39,
5980,
67,
9794,
823,
12,
3838,
382,
26540,
1769,
430,
12,
1937,
4223,
32,
7330,
823,
5269,
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,
9833,
67,
7055,
1085,
39,
5980,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
6955,
63,
6487,
474,
3838,
382,
26540,
16,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
9056,
659,
6955,
63,
5717,
95,
474,
659,
4223,
31,
474,
30064,
16,
7330,
823,
5269,
16,
318,
15021,
5027,
16,
77,
31,
9056,
10001,
43,
530,
16,
10001,
20527,
16,
10001,
620,
16,
5688,
9958,
620,
31,
2896,
440,
278,
30752,
620,
21,
16,
5814,
620,
22,
16,
5814,
620,
23,
16,
5814,
620,
24,
31,
430,
12,
1937,
4223,
32,
20,
13,
2463,
9833,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
2
] |
||
int colSpan = getNewColSpan( cell ); if ( colSpan < 1 ) { push( true ); return; } push( false ); writer.openTag( HTMLTags.TAG_TD ); setStyleName( cell.getStyleClass( ) ); if ( colSpan > 1 ) { writer.attribute( HTMLTags.ATTR_COLSPAN, colSpan ); } if ( ( cell.getRowSpan( ) ) > 1 ) { writer.attribute( HTMLTags.ATTR_ROWSPAN, cell.getRowSpan( ) ); } StringBuffer styleBuffer = new StringBuffer( ); IStyle mergedStyle = cell.getStyle( ); String vAlign = null; String textAlign = null; if ( mergedStyle != null ) { vAlign = mergedStyle.getVerticalAlign( ); textAlign = mergedStyle.getTextAlign( ); } if ( vAlign == null ) { IStyle cs = cell.getComputedStyle( ); vAlign = cs.getVerticalAlign( ); styleBuffer.append( "vertical-align: " ); styleBuffer.append( vAlign ); styleBuffer.append( ";" ); } if ( textAlign == null ) { IStyle cs = cell.getComputedStyle( ); textAlign = cs.getTextAlign( ); styleBuffer.append( "text-align: " ); styleBuffer.append( textAlign ); styleBuffer.append( ";" ); } handleStyle( cell, styleBuffer ); } else { writer.openTag( HTMLTags.TAG_TD );
|
writer.attribute( HTMLTags.ATTR_ROWSPAN, cell.getRowSpan( ) );
|
public void startCell( ICellContent cell ) { if ( isHidden( ) ) { return; } // int span; // int columnID; logger.log( Level.FINE, "[HTMLTableEmitter] Start cell." ); //$NON-NLS-1$ if ( cell != null ) { int colSpan = getNewColSpan( cell ); if ( colSpan < 1 ) { push( true ); return; } push( false ); // output 'td' tag writer.openTag( HTMLTags.TAG_TD ); //$NON-NLS-1$ // set the 'name' property setStyleName( cell.getStyleClass( ) ); // colspan if ( colSpan > 1 ) { writer.attribute( HTMLTags.ATTR_COLSPAN, colSpan ); } // rowspan if ( ( cell.getRowSpan( ) ) > 1 ) { writer.attribute( HTMLTags.ATTR_ROWSPAN, cell.getRowSpan( ) ); } // vertical align can only be used with tabelCell/Inline Element StringBuffer styleBuffer = new StringBuffer( ); IStyle mergedStyle = cell.getStyle( ); String vAlign = null; String textAlign = null; if ( mergedStyle != null ) { vAlign = mergedStyle.getVerticalAlign( ); textAlign = mergedStyle.getTextAlign( ); } if ( vAlign == null ) { IStyle cs = cell.getComputedStyle( ); vAlign = cs.getVerticalAlign( ); styleBuffer.append( "vertical-align: " ); styleBuffer.append( vAlign ); styleBuffer.append( ";" ); } if ( textAlign == null ) { IStyle cs = cell.getComputedStyle( ); textAlign = cs.getTextAlign( ); styleBuffer.append( "text-align: " ); styleBuffer.append( textAlign ); styleBuffer.append( ";" ); } handleStyle( cell, styleBuffer ); } else { writer.openTag( HTMLTags.TAG_TD ); } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/cb6139975684c8a97bd9aee11ce7beb3f11dd073/HTMLReportEmitter.java/buggy/engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
4020,
12,
467,
4020,
1350,
2484,
262,
202,
95,
202,
202,
430,
261,
30713,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
759,
509,
4548,
31,
202,
202,
759,
509,
1057,
734,
31,
202,
202,
4901,
18,
1330,
12,
4557,
18,
42,
3740,
16,
5158,
4870,
1388,
13476,
65,
3603,
2484,
1199,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
2484,
480,
446,
262,
202,
202,
95,
1082,
202,
474,
645,
6952,
273,
12654,
914,
6952,
12,
2484,
11272,
1082,
202,
430,
261,
645,
6952,
411,
404,
262,
1082,
202,
95,
9506,
202,
6206,
12,
638,
11272,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
6206,
12,
629,
11272,
6862,
1082,
202,
759,
876,
296,
4465,
11,
1047,
1082,
202,
6299,
18,
3190,
1805,
12,
3982,
3453,
18,
7927,
67,
23409,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
759,
444,
326,
296,
529,
11,
1272,
1082,
202,
542,
2885,
461,
12,
2484,
18,
588,
2885,
797,
12,
262,
11272,
1082,
202,
759,
20856,
1082,
202,
430,
261,
645,
6952,
405,
404,
262,
1082,
202,
95,
9506,
202,
6299,
18,
4589,
12,
3982,
3453,
18,
12043,
67,
4935,
3118,
1258,
16,
645,
6952,
11272,
1082,
202,
97,
1082,
202,
759,
1027,
3969,
1082,
202,
430,
261,
261,
2484,
18,
588,
1999,
6952,
12,
262,
262,
405,
404,
262,
1082,
202,
95,
9506,
202,
6299,
18,
4589,
12,
3982,
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,
787,
4020,
12,
467,
4020,
1350,
2484,
262,
202,
95,
202,
202,
430,
261,
30713,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
759,
509,
4548,
31,
202,
202,
759,
509,
1057,
734,
31,
202,
202,
4901,
18,
1330,
12,
4557,
18,
42,
3740,
16,
5158,
4870,
1388,
13476,
65,
3603,
2484,
1199,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
430,
261,
2484,
480,
446,
262,
202,
202,
95,
1082,
202,
474,
645,
6952,
273,
12654,
914,
6952,
12,
2484,
11272,
1082,
202,
430,
261,
645,
6952,
411,
404,
262,
1082,
202,
95,
9506,
202,
6206,
12,
638,
11272,
9506,
202,
2463,
31,
1082,
202,
2
] |
AST tmp2193_AST_in = (AST)_t;
|
AST tmp2195_AST_in = (AST)_t;
|
public final void systemhelpstate(AST _t) throws RecognitionException { AST systemhelpstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2320 = _t; AST tmp2183_AST_in = (AST)_t; match(_t,SYSTEMHELP); _t = _t.getFirstChild(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WINDOWNAME: { AST __t2322 = _t; AST tmp2184_AST_in = (AST)_t; match(_t,WINDOWNAME); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2322; _t = _t.getNextSibling(); break; } case ALTERNATEKEY: case COMMAND: case CONTENTS: case CONTEXT: case CONTEXTPOPUP: case FINDER: case FORCEFILE: case HELP: case HELPTOPIC: case KEY: case MULTIPLEKEY: case PARTIALKEY: case POSITION: case QUIT: case SETCONTENTS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALTERNATEKEY: { AST __t2324 = _t; AST tmp2185_AST_in = (AST)_t; match(_t,ALTERNATEKEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2324; _t = _t.getNextSibling(); break; } case CONTEXT: { AST __t2325 = _t; AST tmp2186_AST_in = (AST)_t; match(_t,CONTEXT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2325; _t = _t.getNextSibling(); break; } case CONTENTS: { AST tmp2187_AST_in = (AST)_t; match(_t,CONTENTS); _t = _t.getNextSibling(); break; } case SETCONTENTS: { AST __t2326 = _t; AST tmp2188_AST_in = (AST)_t; match(_t,SETCONTENTS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2326; _t = _t.getNextSibling(); break; } case FINDER: { AST tmp2189_AST_in = (AST)_t; match(_t,FINDER); _t = _t.getNextSibling(); break; } case CONTEXTPOPUP: { AST __t2327 = _t; AST tmp2190_AST_in = (AST)_t; match(_t,CONTEXTPOPUP); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2327; _t = _t.getNextSibling(); break; } case HELPTOPIC: { AST __t2328 = _t; AST tmp2191_AST_in = (AST)_t; match(_t,HELPTOPIC); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2328; _t = _t.getNextSibling(); break; } case KEY: { AST __t2329 = _t; AST tmp2192_AST_in = (AST)_t; match(_t,KEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2329; _t = _t.getNextSibling(); break; } case PARTIALKEY: { AST __t2330 = _t; AST tmp2193_AST_in = (AST)_t; match(_t,PARTIALKEY); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t2330; _t = _t.getNextSibling(); break; } case MULTIPLEKEY: { AST __t2332 = _t; AST tmp2194_AST_in = (AST)_t; match(_t,MULTIPLEKEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp2195_AST_in = (AST)_t; match(_t,TEXT); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2332; _t = _t.getNextSibling(); break; } case COMMAND: { AST __t2333 = _t; AST tmp2196_AST_in = (AST)_t; match(_t,COMMAND); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2333; _t = _t.getNextSibling(); break; } case POSITION: { AST __t2334 = _t; AST tmp2197_AST_in = (AST)_t; match(_t,POSITION); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MAXIMIZE: { AST tmp2198_AST_in = (AST)_t; match(_t,MAXIMIZE); _t = _t.getNextSibling(); break; } case X: { AST tmp2199_AST_in = (AST)_t; match(_t,X); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2200_AST_in = (AST)_t; match(_t,Y); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2201_AST_in = (AST)_t; match(_t,WIDTH); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2202_AST_in = (AST)_t; match(_t,HEIGHT); _t = _t.getNextSibling(); expression(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } _t = __t2334; _t = _t.getNextSibling(); break; } case FORCEFILE: { AST tmp2203_AST_in = (AST)_t; match(_t,FORCEFILE); _t = _t.getNextSibling(); break; } case HELP: { AST tmp2204_AST_in = (AST)_t; match(_t,HELP); _t = _t.getNextSibling(); break; } case QUIT: { AST tmp2205_AST_in = (AST)_t; match(_t,QUIT); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2320; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2619,
5201,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2619,
5201,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
22,
31273,
273,
389,
88,
31,
202,
202,
9053,
1853,
22,
31672,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
14318,
27396,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
8692,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
24482,
7306,
1985,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
22,
1578,
22,
273,
389,
88,
31,
1082,
202,
9053,
1853,
22,
29242,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
23407,
1985,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
8692,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
22,
1578,
22,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
7981,
6519,
1777,
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,
2619,
5201,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2619,
5201,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
22,
31273,
273,
389,
88,
31,
202,
202,
9053,
1853,
22,
31672,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
14318,
27396,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
8692,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
2
] |
if (tempPerson.getLocationSituation().equals(Person.INVEHICLE)) allDisembarked = false;
|
if (tempPerson.getLocationSituation() == Person.INVEHICLE) allDisembarked = false;
|
private void disembarkingPhase(Person person) { // Make sure vehicle is parked at settlement. destinationSettlement.getInventory().addUnit(vehicle); vehicle.setDestinationSettlement(null); vehicle.setDestinationType("None"); vehicle.setStatus("Parked"); vehicle.setETA(null); // Have person exit vehicle if necessary. if (person.getLocationSituation().equals(Person.INVEHICLE)) { person.getMind().getTaskManager().addTask(new ExitVehicle(person, mars, vehicle, destinationSettlement)); return; } // Unload vehicle if necessary. if (UnloadVehicle.isFullyUnloaded(vehicle)) vehicleUnloaded = true; if (!vehicleUnloaded) { person.getMind().getTaskManager().addTask(new UnloadVehicle(person, mars, vehicle)); return; } // If everyone has disembarked and vehicle is unloaded, end mission. boolean allDisembarked = true; for (int x=0; x < people.size(); x++) { Person tempPerson = (Person) people.elementAt(x); if (tempPerson.getLocationSituation().equals(Person.INVEHICLE)) allDisembarked = false; } if (allDisembarked && UnloadVehicle.isFullyUnloaded(vehicle)) endMission(); }
|
49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/c5e753f47eeba8ecf35bb222dce7f4880383c80a/TravelToSettlement.java/clean/org/mars_sim/msp/simulation/person/ai/TravelToSettlement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1015,
351,
70,
1313,
310,
11406,
12,
8346,
6175,
13,
288,
7734,
368,
4344,
3071,
24815,
353,
779,
79,
329,
622,
26319,
806,
18,
202,
10590,
694,
88,
806,
18,
588,
15059,
7675,
1289,
2802,
12,
537,
18870,
1769,
3639,
24815,
18,
542,
5683,
694,
88,
806,
12,
2011,
1769,
3639,
24815,
18,
542,
5683,
559,
2932,
7036,
8863,
3639,
24815,
18,
542,
1482,
2932,
52,
1313,
329,
8863,
3639,
24815,
18,
542,
31370,
12,
2011,
1769,
3639,
368,
21940,
6175,
2427,
24815,
309,
4573,
18,
540,
309,
261,
12479,
18,
588,
2735,
55,
305,
11407,
7675,
14963,
12,
8346,
18,
706,
3412,
44,
2871,
900,
3719,
288,
5411,
6175,
18,
588,
49,
728,
7675,
588,
2174,
1318,
7675,
1289,
2174,
12,
2704,
9500,
58,
73,
18870,
12,
12479,
16,
312,
5913,
16,
24815,
16,
2929,
694,
88,
806,
10019,
5411,
327,
31,
3639,
289,
3639,
368,
1351,
945,
24815,
309,
4573,
18,
3639,
309,
261,
984,
945,
58,
73,
18870,
18,
291,
16999,
984,
4230,
12,
537,
18870,
3719,
24815,
984,
4230,
273,
638,
31,
3639,
309,
16051,
537,
18870,
984,
4230,
13,
288,
5411,
6175,
18,
588,
49,
728,
7675,
588,
2174,
1318,
7675,
1289,
2174,
12,
2704,
1351,
945,
58,
73,
18870,
12,
12479,
16,
312,
5913,
16,
24815,
10019,
5411,
327,
31,
3639,
289,
3639,
368,
971,
3614,
476,
711,
1015,
351,
70,
1313,
329,
471,
24815,
353,
640,
4230,
16,
679,
29396,
18,
3639,
1250,
777,
1669,
351,
70,
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,
1015,
351,
70,
1313,
310,
11406,
12,
8346,
6175,
13,
288,
7734,
368,
4344,
3071,
24815,
353,
779,
79,
329,
622,
26319,
806,
18,
202,
10590,
694,
88,
806,
18,
588,
15059,
7675,
1289,
2802,
12,
537,
18870,
1769,
3639,
24815,
18,
542,
5683,
694,
88,
806,
12,
2011,
1769,
3639,
24815,
18,
542,
5683,
559,
2932,
7036,
8863,
3639,
24815,
18,
542,
1482,
2932,
52,
1313,
329,
8863,
3639,
24815,
18,
542,
31370,
12,
2011,
1769,
3639,
368,
21940,
6175,
2427,
24815,
309,
4573,
18,
540,
309,
261,
12479,
18,
588,
2735,
55,
305,
11407,
7675,
14963,
12,
8346,
18,
706,
3412,
44,
2871,
900,
3719,
288,
5411,
6175,
18,
588,
49,
728,
7675,
588,
2
] |
return this.validator; }
|
return this.validator; }
|
public Validator getValidator() { return this.validator; }
|
51763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51763/58974951e3276884850340e13cf2bb066cb110b9/DefaultGrailsDomainClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9150,
27368,
1435,
288,
202,
202,
2463,
333,
18,
7357,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
9150,
27368,
1435,
288,
202,
202,
2463,
333,
18,
7357,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"select bool_short, bool_short_minus, bool_int, "
|
"select bool_int, "
|
private void testValuesInDB() throws SQLException { LOG.info("Test values in database"); // Create a statement and a resultset Statement stmt = _conn.createStatement (); ResultSet rset = stmt.executeQuery( "select bool_short, bool_short_minus, bool_int, " + "bool_int_minus, bool_bigdec, bool_bigdec_minus " + "from tc1x_conv where id = " + TypeConversion.DEFAULT_ID); rset.next(); // Test values writen to db for boolean true // && (rset.getShort("bool_short") != (short) 1) // && (rset.getShort("bool_short_minus") != (short) -1) BigDecimal bigPlus = rset.getBigDecimal("bool_bigdec"); BigDecimal bigMinus = rset.getBigDecimal("bool_bigdec_minus"); if ((rset.getInt("bool_int") != 1) && (rset.getInt("bool_int_minus") != -1) && !bigPlus.equals(new BigDecimal(1)) && !bigMinus.equals(new BigDecimal(-1))) { LOG.error(REASON); fail(REASON); } LOG.info("OK: Found the expected Values in database"); }
|
57307 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57307/4215b1c6da168b1daea576cd7215b98e8e33871a/TestTypeConversion.java/buggy/src/tests/ctf/jdo/tc1x/TestTypeConversion.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1842,
1972,
382,
2290,
1435,
1216,
6483,
288,
3639,
2018,
18,
1376,
2932,
4709,
924,
316,
2063,
8863,
3639,
368,
1788,
279,
3021,
471,
279,
26539,
3639,
8056,
3480,
273,
389,
4646,
18,
2640,
3406,
261,
1769,
3639,
10842,
436,
542,
273,
3480,
18,
8837,
1138,
12,
7734,
315,
4025,
1426,
67,
474,
16,
315,
7734,
397,
315,
6430,
67,
474,
67,
19601,
16,
1426,
67,
14002,
4924,
16,
1426,
67,
14002,
4924,
67,
19601,
315,
7734,
397,
315,
2080,
1715,
21,
92,
67,
4896,
1625,
612,
273,
315,
397,
1412,
6814,
18,
5280,
67,
734,
1769,
3639,
436,
542,
18,
4285,
5621,
3639,
368,
7766,
924,
2518,
275,
358,
1319,
364,
1250,
638,
3639,
368,
597,
261,
86,
542,
18,
588,
4897,
2932,
6430,
67,
6620,
7923,
480,
261,
6620,
13,
404,
13,
3639,
368,
597,
261,
86,
542,
18,
588,
4897,
2932,
6430,
67,
6620,
67,
19601,
7923,
480,
261,
6620,
13,
300,
21,
13,
3639,
8150,
5446,
13207,
273,
436,
542,
18,
588,
29436,
2932,
6430,
67,
14002,
4924,
8863,
3639,
8150,
5446,
18434,
273,
436,
542,
18,
588,
29436,
2932,
6430,
67,
14002,
4924,
67,
19601,
8863,
3639,
309,
14015,
86,
542,
18,
588,
1702,
2932,
6430,
67,
474,
7923,
480,
404,
13,
7734,
597,
261,
86,
542,
18,
588,
1702,
2932,
6430,
67,
474,
67,
19601,
7923,
480,
300,
21,
13,
7734,
597,
401,
14002,
13207,
18,
14963,
12,
2704,
8150,
12,
21,
3719,
7734,
597,
401,
14002,
18434,
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,
1842,
1972,
382,
2290,
1435,
1216,
6483,
288,
3639,
2018,
18,
1376,
2932,
4709,
924,
316,
2063,
8863,
3639,
368,
1788,
279,
3021,
471,
279,
26539,
3639,
8056,
3480,
273,
389,
4646,
18,
2640,
3406,
261,
1769,
3639,
10842,
436,
542,
273,
3480,
18,
8837,
1138,
12,
7734,
315,
4025,
1426,
67,
474,
16,
315,
7734,
397,
315,
6430,
67,
474,
67,
19601,
16,
1426,
67,
14002,
4924,
16,
1426,
67,
14002,
4924,
67,
19601,
315,
7734,
397,
315,
2080,
1715,
21,
92,
67,
4896,
1625,
612,
273,
315,
397,
1412,
6814,
18,
5280,
67,
734,
1769,
3639,
436,
542,
18,
4285,
5621,
3639,
368,
7766,
924,
2518,
275,
358,
1319,
364,
1250,
638,
3639,
368,
2
] |
IWorkbench workbench = PlatformUI.getWorkbench(); if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) return Status.CANCEL_STATUS; IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); if (window == null) return Status.CANCEL_STATUS; ProgressManagerUtil.openProgressView(window); return Status.OK_STATUS; }
|
IWorkbench workbench = PlatformUI.getWorkbench(); if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) return Status.CANCEL_STATUS; IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); if (window == null) return Status.CANCEL_STATUS; ProgressManagerUtil.openProgressView(window); return Status.OK_STATUS; }
|
public IStatus runInUIThread(IProgressMonitor monitor) { IWorkbench workbench = PlatformUI.getWorkbench(); //Abort on shutdown if (workbench instanceof Workbench && ((Workbench) workbench).isClosing()) return Status.CANCEL_STATUS; IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); if (window == null) return Status.CANCEL_STATUS; ProgressManagerUtil.openProgressView(window); return Status.OK_STATUS; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/04515d9d58c4c5f95a233997534fadc66a378488/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
9944,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
1082,
202,
45,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
22144,
5621,
6862,
1082,
202,
759,
13572,
603,
5731,
6862,
1082,
202,
430,
261,
1252,
22144,
1276,
4147,
22144,
597,
14015,
2421,
22144,
13,
1440,
22144,
2934,
291,
15745,
10756,
6862,
9506,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
1082,
202,
45,
2421,
22144,
3829,
2742,
273,
1440,
22144,
18,
588,
3896,
2421,
22144,
3829,
5621,
6862,
1082,
202,
430,
261,
5668,
422,
446,
13,
6862,
9506,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
1082,
202,
5491,
1318,
1304,
18,
3190,
5491,
1767,
12,
5668,
1769,
6862,
1082,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
25083,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
9944,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
1082,
202,
45,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
22144,
5621,
6862,
1082,
202,
759,
13572,
603,
5731,
6862,
1082,
202,
430,
261,
1252,
22144,
1276,
4147,
22144,
597,
14015,
2421,
22144,
13,
1440,
22144,
2934,
291,
15745,
10756,
6862,
9506,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
1082,
202,
45,
2421,
22144,
3829,
2742,
273,
1440,
22144,
18,
588,
3896,
2421,
22144,
3829,
5621,
6862,
1082,
202,
430,
261,
5668,
422,
446,
13,
6862,
9506,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
1082,
202,
5491,
1318,
1304,
18,
3190,
5491,
1767,
2
] |
Color c = CONNECTION_COLORS[0];
|
Color c = (Color) weightColors.get(0);
|
protected Color getColorFromWeight() { Color c = CONNECTION_COLORS[0]; int index = (int)(weight * 3); if ((index >= 0) && (index < CONNECTION_COLORS.length)) { c = CONNECTION_COLORS[index]; } return c; }
|
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/724130076caadf653f290d98f24dea352046ac52/GraphModelConnection.java/clean/org.eclipse.zest.core/src/org/eclipse/zest/core/internal/graphmodel/GraphModelConnection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
5563,
15672,
1265,
6544,
1435,
288,
202,
202,
2957,
276,
273,
20695,
67,
10989,
55,
63,
20,
15533,
202,
202,
474,
770,
273,
261,
474,
21433,
4865,
380,
890,
1769,
202,
202,
430,
14015,
1615,
1545,
374,
13,
597,
261,
1615,
411,
20695,
67,
10989,
55,
18,
2469,
3719,
288,
1082,
202,
71,
273,
20695,
67,
10989,
55,
63,
1615,
15533,
202,
202,
97,
202,
202,
2463,
276,
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,
1117,
5563,
15672,
1265,
6544,
1435,
288,
202,
202,
2957,
276,
273,
20695,
67,
10989,
55,
63,
20,
15533,
202,
202,
474,
770,
273,
261,
474,
21433,
4865,
380,
890,
1769,
202,
202,
430,
14015,
1615,
1545,
374,
13,
597,
261,
1615,
411,
20695,
67,
10989,
55,
18,
2469,
3719,
288,
1082,
202,
71,
273,
20695,
67,
10989,
55,
63,
1615,
15533,
202,
202,
97,
202,
202,
2463,
276,
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
] |
ImageNode image = (ImageNode) getChild(root, "Image", ndx);
|
ImageNode image = (ImageNode) getChild(root, "Image", 0);
|
public void setPixels(Integer sizeX, Integer sizeY, Integer sizeZ, Integer sizeC, Integer sizeT, Integer pixelType, Boolean bigEndian, String dimensionOrder, Integer i) { int ndx = i == null ? 0 : i.intValue(); // TODO find a better way to specify which Pixels we want ImageNode image = (ImageNode) getChild(root, "Image", ndx); CustomAttributesNode ca = (CustomAttributesNode) getChild(image, "CustomAttributes", 0); PixelsNode pixels = (PixelsNode) getChild(ca, "Pixels", ndx); pixels.setSizeX(sizeX); pixels.setSizeY(sizeY); pixels.setSizeZ(sizeZ); pixels.setSizeC(sizeC); pixels.setSizeT(sizeT); pixels.setPixelType(pixelTypeAsString(pixelType)); pixels.setBigEndian(bigEndian); pixels.setDimensionOrder(dimensionOrder); }
|
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/4bff6927b168161c3711936d838a22c4fa253c02/OMEXMLMetadataStore.java/clean/loci/formats/OMEXMLMetadataStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
18079,
12,
4522,
963,
60,
16,
2144,
963,
61,
16,
2144,
963,
62,
16,
565,
2144,
963,
39,
16,
2144,
963,
56,
16,
2144,
4957,
559,
16,
3411,
5446,
7583,
16,
565,
514,
4968,
2448,
16,
2144,
277,
13,
225,
288,
565,
509,
5346,
92,
273,
277,
422,
446,
692,
374,
294,
277,
18,
474,
620,
5621,
565,
368,
2660,
1104,
279,
7844,
4031,
358,
4800,
1492,
26070,
87,
732,
2545,
565,
3421,
907,
1316,
273,
261,
2040,
907,
13,
8154,
12,
3085,
16,
315,
2040,
3113,
374,
1769,
565,
6082,
2498,
907,
3474,
273,
261,
3802,
2498,
907,
13,
1377,
8154,
12,
2730,
16,
315,
3802,
2498,
3113,
374,
1769,
565,
26070,
87,
907,
8948,
273,
261,
18079,
907,
13,
8154,
12,
5353,
16,
315,
18079,
3113,
5346,
92,
1769,
565,
8948,
18,
542,
1225,
60,
12,
1467,
60,
1769,
565,
8948,
18,
542,
1225,
61,
12,
1467,
61,
1769,
565,
8948,
18,
542,
1225,
62,
12,
1467,
62,
1769,
565,
8948,
18,
542,
1225,
39,
12,
1467,
39,
1769,
565,
8948,
18,
542,
1225,
56,
12,
1467,
56,
1769,
565,
8948,
18,
542,
9037,
559,
12,
11743,
559,
8092,
12,
11743,
559,
10019,
565,
8948,
18,
542,
9901,
7583,
12,
14002,
7583,
1769,
565,
8948,
18,
542,
8611,
2448,
12,
11808,
2448,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
18079,
12,
4522,
963,
60,
16,
2144,
963,
61,
16,
2144,
963,
62,
16,
565,
2144,
963,
39,
16,
2144,
963,
56,
16,
2144,
4957,
559,
16,
3411,
5446,
7583,
16,
565,
514,
4968,
2448,
16,
2144,
277,
13,
225,
288,
565,
509,
5346,
92,
273,
277,
422,
446,
692,
374,
294,
277,
18,
474,
620,
5621,
565,
368,
2660,
1104,
279,
7844,
4031,
358,
4800,
1492,
26070,
87,
732,
2545,
565,
3421,
907,
1316,
273,
261,
2040,
907,
13,
8154,
12,
3085,
16,
315,
2040,
3113,
374,
1769,
565,
6082,
2498,
907,
3474,
273,
261,
3802,
2498,
907,
13,
1377,
8154,
12,
2730,
16,
315,
3802,
2498,
3113,
374,
1769,
565,
26070,
87,
907,
2
] |
String sig= value.getSignature(); if (sig == null || sig.length() > 1) {
|
String sig= getPrimitiveValueTypeSignature(value); if (sig == null) {
|
protected String getValueHexText(IJavaValue value) throws DebugException { String sig= value.getSignature(); if (sig == null || sig.length() > 1) { return null; } StringBuffer buff= new StringBuffer(); switch (sig.charAt(0)) { case 'B' : buff.append("0x"); int byteVal = Integer.parseInt(value.getValueString()); byteVal = byteVal & 0xFF; buff.append(Integer.toHexString(byteVal)); break; case 'I' : buff.append("0x"); buff.append(Integer.toHexString(Integer.parseInt(value.getValueString()))); break; case 'S' : buff.append("0x"); int shortVal = Integer.parseInt(value.getValueString()); shortVal = shortVal & 0xFFFF; buff.append(Integer.toHexString(shortVal)); break; case 'J' : buff.append("0x"); buff.append(Long.toHexString(Long.parseLong(value.getValueString()))); break; case 'C' : buff.append("\\u"); String hexString= Integer.toHexString(value.getValueString().charAt(0)); int length= hexString.length(); while (length < 4) { buff.append('0'); length++; } buff.append(hexString); break; } return buff.toString(); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/add38a7a5438e90080203865f0891329485fa8f0/JDIModelPresentation.java/buggy/org.eclipse.jdt.ui/ui debug/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
2366,
7037,
1528,
12,
45,
5852,
620,
460,
13,
1216,
4015,
503,
288,
202,
202,
780,
3553,
33,
460,
18,
588,
5374,
5621,
202,
202,
430,
261,
7340,
422,
446,
747,
3553,
18,
2469,
1435,
405,
404,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
780,
1892,
6139,
33,
394,
6674,
5621,
202,
202,
9610,
261,
7340,
18,
3001,
861,
12,
20,
3719,
288,
1082,
202,
3593,
296,
38,
11,
294,
9506,
202,
20664,
18,
6923,
2932,
20,
92,
8863,
9506,
202,
474,
1160,
3053,
273,
2144,
18,
2670,
1702,
12,
1132,
18,
24805,
780,
10663,
9506,
202,
7229,
3053,
273,
1160,
3053,
473,
374,
6356,
31,
9506,
202,
20664,
18,
6923,
12,
4522,
18,
869,
14866,
12,
7229,
3053,
10019,
9506,
202,
8820,
31,
1082,
202,
3593,
296,
45,
11,
294,
9506,
202,
20664,
18,
6923,
2932,
20,
92,
8863,
9506,
202,
20664,
18,
6923,
12,
4522,
18,
869,
14866,
12,
4522,
18,
2670,
1702,
12,
1132,
18,
24805,
780,
1435,
3719,
1769,
9506,
202,
8820,
31,
25083,
202,
3593,
296,
55,
11,
294,
9506,
202,
20664,
18,
6923,
2932,
20,
92,
8863,
9506,
202,
474,
3025,
3053,
273,
2144,
18,
2670,
1702,
12,
1132,
18,
24805,
780,
10663,
9506,
202,
6620,
3053,
273,
3025,
3053,
473,
374,
21718,
31,
9506,
202,
20664,
18,
6923,
12,
4522,
18,
869,
14866,
12,
6620,
3053,
10019,
9506,
202,
8820,
31,
1082,
202,
3593,
296,
46,
11,
294,
9506,
202,
20664,
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,
514,
2366,
7037,
1528,
12,
45,
5852,
620,
460,
13,
1216,
4015,
503,
288,
202,
202,
780,
3553,
33,
460,
18,
588,
5374,
5621,
202,
202,
430,
261,
7340,
422,
446,
747,
3553,
18,
2469,
1435,
405,
404,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
780,
1892,
6139,
33,
394,
6674,
5621,
202,
202,
9610,
261,
7340,
18,
3001,
861,
12,
20,
3719,
288,
1082,
202,
3593,
296,
38,
11,
294,
9506,
202,
20664,
18,
6923,
2932,
20,
92,
8863,
9506,
202,
474,
1160,
3053,
273,
2144,
18,
2670,
1702,
12,
1132,
18,
24805,
780,
10663,
9506,
202,
7229,
3053,
273,
1160,
3053,
473,
374,
6356,
31,
9506,
202,
20664,
18,
2
] |
public String toString()
|
public static String toString( String[] line )
|
public String toString() { return toString( getCommandline() ); }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/255020c002e99c42ba08342cbc874a0a5737d24c/Commandline.java/buggy/proposal/myrmidon/src/main/org/apache/tools/ant/types/Commandline.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1762,
12,
514,
8526,
980,
262,
565,
288,
3639,
327,
1762,
12,
12856,
1369,
1435,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
760,
514,
1762,
12,
514,
8526,
980,
262,
565,
288,
3639,
327,
1762,
12,
12856,
1369,
1435,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); }
|
public final void renderEachAxis( IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw ) throws ChartException { final RunTimeContext rtc = getRunTimeContext( ); final Axis axModel = ax.getModelAxis( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); final Insets insCA = pwa.getAxes( ).getInsets( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); final double dLocation = ax.getAxisCoordinate( ); final AutoScale sc = ax.getScale( ); final IntersectionValue iv = ax.getIntersectionValue( ); final int iMajorTickStyle = ax.getGrid( ) .getTickStyle( IConstants.MAJOR ); final int iMinorTickStyle = ax.getGrid( ) .getTickStyle( IConstants.MINOR ); final int iLabelLocation = ax.getLabelPosition( ); final int iOrientation = ax.getOrientation( ); final IDisplayServer xs = this.getDevice( ).getDisplayServer( ); Label la = LabelImpl.copyInstance( ax.getLabel( ) ); final double[] daEndPoints = sc.getEndPoints( ); final double[] da = sc.getTickCordinates( ); final double[] daMinor = sc.getMinorCoordinates( ax.getGrid( ) .getMinorCountPerMajor( ) ); String sText = null; final int iDimension = pwa.getDimension( ); final double dSeriesThickness = pwa.getSeriesThickness( ); final NumberDataElement nde = NumberDataElementImpl.create( 0 ); final FormatSpecifier fs = ax.getModelAxis( ).getFormatSpecifier( ); final double dStaggeredLabelOffset = sc.computeStaggeredAxisLabelOffset( xs, la, iOrientation ); final boolean bAxisLabelStaggered = sc.isAxisLabelStaggered( ); DecimalFormat df = null; final LineAttributes lia = ax.getLineAttributes( ); final LineAttributes liaMajorTick = ax.getGrid( ) .getTickAttributes( IConstants.MAJOR ); final LineAttributes liaMinorTick = ax.getGrid( ) .getTickAttributes( IConstants.MINOR ); if ( !lia.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.unset.axis.visibility", //$NON-NLS-1$ Messages.getResourceBundle( getRunTimeContext( ).getULocale( ) ) ); } final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); final boolean bRenderAxisTitle = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS ); Location lo = LocationImpl.create( 0, 0 ); final TransformationEvent trae = (TransformationEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TransformationEvent.class ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TextRenderEvent.class ); tre.setLabel( la ); tre.setTextPosition( iLabelLocation ); tre.setLocation( lo ); final LineRenderEvent lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( 0, 0 ) ); lre.setEnd( LocationImpl.create( 0, 0 ) ); // Prepare 3D rendering variables. final boolean bRendering3D = iDimension == IConstants.THREE_D; final boolean bRenderOrthogonal3DAxis = ( iWhatToDraw & IConstants.ORTHOGONAL_AXIS ) == IConstants.ORTHOGONAL_AXIS && bRendering3D; final boolean bRenderBase3DAxis = ( iWhatToDraw & IConstants.BASE_AXIS ) == IConstants.BASE_AXIS && bRendering3D; final boolean bRenderAncillary3DAxis = ( iWhatToDraw & IConstants.ANCILLARY_AXIS ) == IConstants.ANCILLARY_AXIS && bRendering3D; final DeferredCache dc = getDeferredCache( ); final int axisType = ax.getAxisType( ); final Location panningOffset = getPanningOffset( ); final boolean bTransposed = ( (ChartWithAxes) getModel( ) ).isTransposed( ); double[] daEndPoints3D = null; double[] da3D = null; Location3D lo3d = null; Text3DRenderEvent t3dre = null; Line3DRenderEvent l3dre = null; double dXStart = 0; double dZStart = 0; double dXEnd = 0; double dZEnd = 0; if ( iDimension == IConstants.THREE_D ) { AllAxes aax = pwa.getAxes( ); dXEnd = aax.getPrimaryBase( ).getScale( ).getEnd( ); dZEnd = aax.getAncillaryBase( ).getScale( ).getEnd( ); dXStart = aax.getPrimaryBase( ).getScale( ).getStart( ); dZStart = aax.getAncillaryBase( ).getScale( ).getStart( ); daEndPoints3D = sc.getEndPoints( ); da3D = sc.getTickCordinates( ); lo3d = Location3DImpl.create( 0, 0, 0 ); t3dre = (Text3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Text3DRenderEvent.class ); t3dre.setLabel( la ); t3dre.setAction( Text3DRenderEvent.RENDER_TEXT_AT_LOCATION ); t3dre.setTextPosition( iLabelLocation ); t3dre.setLocation3D( lo3d ); l3dre = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dre.setLineAttributes( lia ); l3dre.setStart3D( Location3DImpl.create( 0, 0, 0 ) ); l3dre.setEnd3D( Location3DImpl.create( 0, 0, 0 ) ); } if ( iOrientation == IConstants.VERTICAL ) { int y; int y3d = 0; double dX = dLocation; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dZ = l3d.getZ( ); } if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } double dXTick1 = ( ( iMajorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXTick2 = ( ( iMajorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderOrthogonal3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); // center l3dre.setStart3D( dX, dStart, dZ ); l3dre.setEnd3D( dX, dEnd, dZ ); dc.addLine( l3dre ); // left l3dre.setStart3D( dX, dStart, dZEnd ); l3dre.setEnd3D( dX, dEnd, dZEnd ); dc.addLine( l3dre ); // right l3dre.setStart3D( dXEnd, dStart, dZ ); l3dre.setEnd3D( dXEnd, dEnd, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { ArrayList cachedTriggers = null; Location3D[] loaHotspot = new Location3D[4]; Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); // process center y-axis. loaHotspot[0] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, panningOffset.getX( ), panningOffset.getY( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( TriggerImpl.copyInstance( tg ) ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process left y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, panningOffset.getX( ), panningOffset.getY( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( TriggerImpl.copyInstance( tg ) ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( TriggerImpl.copyInstance( (Trigger) cachedTriggers.get( t ) ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process right y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, panningOffset.getX( ), panningOffset.getY( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( (Trigger) cachedTriggers.get( t ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { double dStart = daEndPoints[0] + insCA.getBottom( ), dEnd = daEndPoints[1] - insCA.getTop( ); if ( sc.getDirection( ) == IConstants.FORWARD ) { dStart = daEndPoints[1] + insCA.getBottom( ); dEnd = daEndPoints[0] - insCA.getTop( ); } if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dX, dStart ); loa[1] = LocationImpl.create( dX + dSeriesThickness, dStart - dSeriesThickness ); loa[2] = LocationImpl.create( dX + dSeriesThickness, dEnd - dSeriesThickness ); loa[3] = LocationImpl.create( dX, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dX, dStart ); lre.getEnd( ).set( dX, dEnd ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[1] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[2] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dEnd ); loaHotspot[3] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } // The vertical axis directon, -1 means bottom->top, 1 means // top->bottom. final int iDirection = sc.getDirection( ) != IConstants.FORWARD ? -1 : 1; if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { final double dUnitSize = iDirection * sc.getUnitSize( ); final double dOffset = dUnitSize / 2; DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y + iDirection * daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y + iDirection * daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d + dOffset, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d + dOffset, dZ - pwa.getHorizontalSpacingInPixels( ) ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } y = (int) da[da.length - 1]; if ( bRendering3D ) { y3d = (int) da3D[da3D.length - 1]; } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } itmText.dispose( );// DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { if ( y3d + daMinor[k] >= da3D[i + 1] ) { // if current minor tick exceed the // range of current unit, skip continue; } l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { if ( ( iDirection == -1 && y - daMinor[k] <= da[i + 1] ) || ( iDirection == 1 && y + daMinor[k] >= da[i + 1] ) ) { // if current minor tick exceed the // range of current unit, skip continue; } lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y + iDirection * daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y + iDirection * daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d, dZ - pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } if ( i == da.length - 2 ) { // This is the last tick, use pre-computed value to // handle // non-equal scale unit case. dAxisValue = Methods.asDouble( sc.getMaximum( ) ) .doubleValue( ); } else { dAxisValue += dAxisStep; } } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y + iDirection * daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y + iDirection * daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } // RENDER LABELS ONLY IF REQUESTED if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d, dZ - pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); IDateFormatWrapper sdf = null; if ( fs == null ) { sdf = DateFormatWrapperFactory.getPreferredDateFormat( iUnit, rtc.getULocale( ) ); } cdt = cdtAxisValue; double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y + iDirection * daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y + iDirection * daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx - pwa.getHorizontalSpacingInPixels( ), y3d, dZEnd + pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2 + pwa.getHorizontalSpacingInPixels( ), y3d, dZ - pwa.getHorizontalSpacingInPixels( ) ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } // ALWAYS W.R.T START VALUE cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); } } la = LabelImpl.copyInstance( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + 30, bb.getWidth( ), bb.getHeight( ) ) ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) - bb.getWidth( ), cbo.getTop( ) + 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( ax.getTitleCoordinate( ), daEndPoints[1], bb.getWidth( ), daEndPoints[0] - daEndPoints[1] ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); if ( ax.getTitle( ).isVisible( ) ) { ipr.drawText( tre ); } } } la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = LabelImpl.copyInstance( ax.getLabel( ) ); if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } else if ( iOrientation == IConstants.HORIZONTAL ) { int x; int x3d = 0; int z3d = 0; double dY = dLocation; double dX = 0; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dY = l3d.getY( ); dZ = l3d.getZ( ); } double dYTick1 = ( ( iMajorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( iv != null && iDimension == IConstants.TWO_5_D && ( ( bTransposed && isRightToLeft( ) && iv.getType( ) == IntersectionValue.MIN ) || ( !isRightToLeft( ) && iv.getType( ) == IntersectionValue.MAX ) ) ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderBase3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dStart, dY, dZ ); l3dre.setEnd3D( dEnd, dY, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dStart, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[1] = Location3DImpl.create( dStart, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[2] = Location3DImpl.create( dEnd, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[3] = Location3DImpl.create( dEnd, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, panningOffset.getX( ), panningOffset.getY( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else if ( bRenderAncillary3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dX, dY, dStart ); l3dre.setEnd3D( dX, dY, dEnd ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[1] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[2] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); loaHotspot[3] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, panningOffset.getX( ), panningOffset.getY( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { double dStart = daEndPoints[0] - insCA.getLeft( ), dEnd = daEndPoints[1] + insCA.getRight( ); if ( sc.getDirection( ) == IConstants.BACKWARD ) { dStart = daEndPoints[1] - insCA.getLeft( ); dEnd = daEndPoints[0] + insCA.getRight( ); } if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { // Zero plane. final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dStart, dY ); loa[1] = LocationImpl.create( dStart + dSeriesThickness, dY - dSeriesThickness ); loa[2] = LocationImpl.create( dEnd + dSeriesThickness, dY - dSeriesThickness ); loa[3] = LocationImpl.create( dEnd, dY ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dStart, dY ); lre.getEnd( ).set( dEnd, dY ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dStart, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[1] = LocationImpl.create( dEnd, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[2] = LocationImpl.create( dEnd, dY + IConstants.LINE_EXPAND_SIZE ); loaHotspot[3] = LocationImpl.create( dStart, dY + IConstants.LINE_EXPAND_SIZE ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } // The horizontal axis direction. -1 means right->left, 1 means // left->right. final int iDirection = sc.getDirection( ) == IConstants.BACKWARD ? -1 : 1; if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { final double dUnitSize = iDirection * sc.getUnitSize( ); final double dOffset = dUnitSize / 2; DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), // step to next value. iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d + dOffset, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d + dOffset ); } t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x + dOffset, sy ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } } // ONE LAST TICK x = (int) da[da.length - 1]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } itmText.dispose( ); // DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { if ( x3d + daMinor[k] >= da3D[i + 1] ) { // if current minor tick exceed the // range of current unit, skip continue; } l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { if ( z3d + daMinor[k] >= da3D[i + 1] ) { // if current minor tick exceed the // range of current unit, skip continue; } l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { if ( ( iDirection == 1 && x + daMinor[k] >= da[i + 1] ) || ( iDirection == -1 && x - daMinor[k] <= da[i + 1] ) ) { // if current minor tick exceed the // range of current unit, skip continue; } lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } if ( i == da.length - 2 ) { // This is the last tick, use pre-computed value to // handle // non-equal scale unit case. dAxisValue = Methods.asDouble( sc.getMaximum( ) ) .doubleValue( ); } else { dAxisValue += dAxisStep; } } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( lia ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); IDateFormatWrapper sdf = null; if ( fs == null ) { sdf = DateFormatWrapperFactory.getPreferredDateFormat( iUnit, rtc.getULocale( ) ); } cdt = cdtAxisValue; double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + iDirection * daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getULocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy - pwa.getVerticalSpacingInPixels( ), dZEnd + pwa.getVerticalSpacingInPixels( ) ); } else { lo3d.set( dXEnd + pwa.getVerticalSpacingInPixels( ), sy - pwa.getVerticalSpacingInPixels( ), z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } // ALWAYS W.R.T START VALUE cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); } } // RENDER THE AXIS TITLE la = LabelImpl.copyInstance( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); // EXTERNALIZE la.getCaption( ) .getFont( ) .setAlignment( switchTextAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) && la.isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); if ( axisType == IConstants.BASE_AXIS ) { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ), cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30, bb.getWidth( ), bb.getHeight( ) ) ); } else { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) * 2 / 3d + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); } tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( daEndPoints[0], ax.getTitleCoordinate( ), daEndPoints[1] - daEndPoints[0], bb.getHeight( ) ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = LabelImpl.copyInstance( ax.getLabel( ) ); // RESTORE BACK TO // AXIS LABEL if ( iv != null && iDimension == IConstants.TWO_5_D && ( ( bTransposed && isRightToLeft( ) && iv.getType( ) == IntersectionValue.MIN ) || ( !isRightToLeft( ) && iv.getType( ) == IntersectionValue.MAX ) ) ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/088a907c90518d3b343babbab14770d00e175c7b/AxesRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1939,
950,
1042,
436,
5111,
273,
336,
1997,
950,
1042,
12,
11272,
202,
202,
6385,
15509,
1740,
1488,
273,
1740,
18,
588,
1488,
6558,
12,
11272,
202,
202,
6385,
15211,
1190,
26494,
8772,
69,
273,
261,
11532,
1190,
26494,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
22300,
2763,
3587,
273,
8772,
69,
18,
588,
26494,
12,
262,
18,
588,
382,
4424,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1503,
12,
11272,
202,
202,
6385,
1645,
302,
2735,
273,
1740,
18,
588,
6558,
13503,
12,
11272,
202,
202,
6385,
8064,
5587,
888,
273,
1740,
18,
588,
5587,
12,
11272,
202,
202,
6385,
5294,
3464,
620,
4674,
273,
1740,
18,
588,
23634,
620,
12,
11272,
202,
202,
6385,
509,
277,
17581,
6264,
2885,
273,
1740,
18,
588,
6313,
12,
262,
9506,
202,
18,
588,
6264,
2885,
12,
467,
2918,
18,
26976,
916,
11272,
202,
202,
6385,
509,
277,
19549,
6264,
2885,
273,
1740,
18,
588,
6313,
12,
262,
9506,
202,
18,
588,
6264,
2885,
12,
467,
2918,
18,
6236,
916,
11272,
202,
202,
6385,
509,
277,
2224,
2735,
273,
1740,
18,
588,
2224,
2555,
12,
11272,
202,
202,
6385,
509,
277,
14097,
273,
1740,
18,
588,
14097,
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,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1939,
950,
1042,
436,
5111,
273,
336,
1997,
950,
1042,
12,
11272,
202,
202,
6385,
15509,
1740,
1488,
273,
1740,
18,
588,
1488,
6558,
12,
11272,
202,
202,
6385,
15211,
1190,
26494,
8772,
69,
273,
261,
11532,
1190,
26494,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
22300,
2763,
3587,
273,
8772,
69,
18,
588,
26494,
12,
262,
18,
588,
382,
4424,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
2
] |
|
public org.quickfix.field.LegRedemptionDate getLegRedemptionDate() throws FieldNotFound { org.quickfix.field.LegRedemptionDate value = new org.quickfix.field.LegRedemptionDate();
|
public quickfix.field.LegRedemptionDate getLegRedemptionDate() throws FieldNotFound { quickfix.field.LegRedemptionDate value = new quickfix.field.LegRedemptionDate();
|
public org.quickfix.field.LegRedemptionDate getLegRedemptionDate() throws FieldNotFound { org.quickfix.field.LegRedemptionDate value = new org.quickfix.field.LegRedemptionDate(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix43/ExecutionReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
426,
19117,
375,
1626,
336,
8329,
426,
19117,
375,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
426,
19117,
375,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
426,
19117,
375,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
426,
19117,
375,
1626,
336,
8329,
426,
19117,
375,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
426,
19117,
375,
1626,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
426,
19117,
375,
1626,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
s = _binaryDualHelper(DOUBLE_REM, op1, op2, VM_Type.DoubleType);
|
s = _binaryDualHelper(DOUBLE_REM, op1, op2, OPT_ClassLoaderProxy.DoubleType);
|
private void generateFrom(int fromIndex) { if (DBG_BB || DBG_SELECTED) { db("generating code into " + currentBBLE + " with runoff " + runoff); } currentBBLE.setGenerated(); endOfBasicBlock = fallThrough = false; lastInstr = null; bcInfo.setInstruction(fromIndex); while (true) { // Must keep currentBBLE.high up-to-date in case we try to jump into // the middle of the block we're currently generating. Simply updating // high once endsBasicBlock is true doesn't enable us to catch this case. currentBBLE.high = instrIndex = bcInfo.bcIndex; int code = bcInfo.getNextInstruction(); if (DBG_BCPARSE) { db("parsing " + instrIndex + " : 0x" + Integer.toHexString(code)); } OPT_Instruction s = null; switch (code) { case JBC_nop: break; case JBC_aconst_null: push(new OPT_NullConstantOperand()); break; case JBC_iconst_m1:case JBC_iconst_0:case JBC_iconst_1: case JBC_iconst_2:case JBC_iconst_3:case JBC_iconst_4: case JBC_iconst_5: push(new OPT_IntConstantOperand(code - JBC_iconst_0)); break; case JBC_lconst_0:case JBC_lconst_1: pushDual(new OPT_LongConstantOperand(code - JBC_lconst_0)); break; case JBC_fconst_0: push(new OPT_FloatConstantOperand(0.f)); break; case JBC_fconst_1: push(new OPT_FloatConstantOperand(1.f)); break; case JBC_fconst_2: push(new OPT_FloatConstantOperand(2.f)); break; case JBC_dconst_0: pushDual(new OPT_DoubleConstantOperand(0.)); break; case JBC_dconst_1: pushDual(new OPT_DoubleConstantOperand(1.)); break; case JBC_bipush: push(new OPT_IntConstantOperand(bcInfo.getByteValue())); break; case JBC_sipush: push(new OPT_IntConstantOperand(bcInfo.getShortValue())); break; case JBC_ldc: push(bcInfo.getConstantOperand(code)); break; case JBC_ldc_w: push(bcInfo.getConstantOperand(code)); break; case JBC_ldc2_w: pushDual(bcInfo.getConstantOperand(code)); break; case JBC_iload: s = do_iload(bcInfo.getLocalNumber()); break; case JBC_lload: s = do_lload(bcInfo.getLocalNumber()); break; case JBC_fload: s = do_fload(bcInfo.getLocalNumber()); break; case JBC_dload: s = do_dload(bcInfo.getLocalNumber()); break; case JBC_aload: s = do_aload(bcInfo.getLocalNumber()); break; case JBC_iload_0:case JBC_iload_1:case JBC_iload_2:case JBC_iload_3: s = do_iload(code - JBC_iload_0); break; case JBC_lload_0:case JBC_lload_1:case JBC_lload_2:case JBC_lload_3: s = do_lload(code - JBC_lload_0); break; case JBC_fload_0:case JBC_fload_1:case JBC_fload_2:case JBC_fload_3: s = do_fload(code - JBC_fload_0); break; case JBC_dload_0:case JBC_dload_1:case JBC_dload_2:case JBC_dload_3: s = do_dload(code - JBC_dload_0); break; case JBC_aload_0:case JBC_aload_1:case JBC_aload_2:case JBC_aload_3: s = do_aload(code - JBC_aload_0); break; case JBC_iaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.IntArrayType); s = _aloadHelper(INT_ALOAD, ref, index, VM_Type.IntType); } break; case JBC_laload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.LongArrayType); s = _aloadHelper(LONG_ALOAD, ref, index, VM_Type.LongType); } break; case JBC_faload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.FloatArrayType); s = _aloadHelper(FLOAT_ALOAD, ref, index, VM_Type.FloatType); } break; case JBC_daload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.DoubleArrayType); s = _aloadHelper(DOUBLE_ALOAD, ref, index, VM_Type.DoubleType); } break; case JBC_aaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getRefTypeOf(ref).asArray().getElementType(); if (VM.VerifyAssertions) VM.assert(type.isReferenceType()); s = _aloadHelper(REF_ALOAD, ref, index, type); } break; case JBC_baload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM.assert(type == OPT_ClassLoaderProxy.ByteArrayType || type == OPT_ClassLoaderProxy.BooleanArrayType); } if (type == OPT_ClassLoaderProxy.ByteArrayType) s = _aloadHelper(BYTE_ALOAD, ref, index, VM_Type.ByteType); else s = _aloadHelper(UBYTE_ALOAD, ref, index, VM_Type.BooleanType); } break; case JBC_caload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.CharArrayType); s = _aloadHelper(USHORT_ALOAD, ref, index, VM_Type.CharType); } break; case JBC_saload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.ShortArrayType); s = _aloadHelper(SHORT_ALOAD, ref, index, VM_Type.ShortType); } break; case JBC_istore: s = do_store(bcInfo.getLocalNumber(), popInt()); break; case JBC_lstore: s = do_store(bcInfo.getLocalNumber(), popLong()); break; case JBC_fstore: s = do_store(bcInfo.getLocalNumber(), popFloat()); break; case JBC_dstore: s = do_store(bcInfo.getLocalNumber(), popDouble()); break; case JBC_astore: s = do_astore(bcInfo.getLocalNumber()); break; case JBC_istore_0:case JBC_istore_1:case JBC_istore_2:case JBC_istore_3: s = do_store(code - JBC_istore_0, popInt()); break; case JBC_lstore_0:case JBC_lstore_1:case JBC_lstore_2:case JBC_lstore_3: s = do_store(code - JBC_lstore_0, popLong()); break; case JBC_fstore_0:case JBC_fstore_1:case JBC_fstore_2:case JBC_fstore_3: s = do_store(code - JBC_fstore_0, popFloat()); break; case JBC_dstore_0:case JBC_dstore_1:case JBC_dstore_2:case JBC_dstore_3: s = do_store(code - JBC_dstore_0, popDouble()); break; case JBC_astore_0:case JBC_astore_1:case JBC_astore_2:case JBC_astore_3: s = do_astore(code - JBC_astore_0); break; case JBC_iastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.IntArrayType); s = AStore.create(INT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.IntType), getCurrentGuard()); } break; case JBC_lastore: { OPT_Operand val = popLong(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.LongArrayType); s = AStore.create(LONG_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.LongType), getCurrentGuard()); } break; case JBC_fastore: { OPT_Operand val = popFloat(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.FloatArrayType); s = AStore.create(FLOAT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.FloatType), getCurrentGuard()); } break; case JBC_dastore: { OPT_Operand val = popDouble(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.DoubleArrayType); s = AStore.create(DOUBLE_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.DoubleType), getCurrentGuard()); } break; case JBC_aastore: { OPT_Operand val = pop(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getRefTypeOf(ref).asArray().getElementType(); if (VM.VerifyAssertions) VM.assert(type.isReferenceType()); if (do_CheckStore(ref, val, type)) break; s = AStore.create(REF_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_bastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_Type type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM.assert(type == OPT_ClassLoaderProxy.ByteArrayType || type == OPT_ClassLoaderProxy.BooleanArrayType); } if (type == OPT_ClassLoaderProxy.ByteArrayType) type = VM_Type.ByteType; else type = VM_Type.BooleanType; s = AStore.create(BYTE_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_castore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.CharArrayType); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.CharType), getCurrentGuard()); } break; case JBC_sastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, OPT_ClassLoaderProxy.ShortArrayType); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_Type.ShortType), getCurrentGuard()); } break; case JBC_pop: stack.pop(); break; case JBC_pop2: stack.pop2(); break; case JBC_dup: { OPT_Operand op1 = stack.pop(); stack.push(op1); s = pushCopy(op1); } break; case JBC_dup_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op1); stack.push(op3); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op2); stack.push(op1); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); OPT_Operand op4 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op4); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_swap: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); } break; case JBC_iadd: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_ADD, op1, op2, VM_Type.IntType); } break; case JBC_ladd: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_ADD, op1, op2, VM_Type.LongType); } break; case JBC_fadd: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_ADD, op1, op2, VM_Type.FloatType); } break; case JBC_dadd: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_ADD, op1, op2, VM_Type.DoubleType); } break; case JBC_isub: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SUB, op1, op2, VM_Type.IntType); } break; case JBC_lsub: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SUB, op1, op2, VM_Type.LongType); } break; case JBC_fsub: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_SUB, op1, op2, VM_Type.FloatType); } break; case JBC_dsub: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_SUB, op1, op2, VM_Type.DoubleType); } break; case JBC_imul: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_MUL, op1, op2, VM_Type.IntType); } break; case JBC_lmul: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_MUL, op1, op2, VM_Type.LongType); } break; case JBC_fmul: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_MUL, op1, op2, VM_Type.FloatType); } break; case JBC_dmul: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_MUL, op1, op2, VM_Type.DoubleType); } break; case JBC_idiv: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_DIV, op1, op2, getCurrentGuard(), VM_Type.IntType); } break; case JBC_ldiv: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_DIV, op1, op2, getCurrentGuard(), VM_Type.LongType); } break; case JBC_fdiv: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_DIV, op1, op2, VM_Type.FloatType); } break; case JBC_ddiv: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_DIV, op1, op2, VM_Type.DoubleType); } break; case JBC_irem: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_REM, op1, op2, getCurrentGuard(), VM_Type.IntType); } break; case JBC_lrem: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_REM, op1, op2, getCurrentGuard(), VM_Type.LongType); } break; case JBC_frem: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_REM, op1, op2, VM_Type.FloatType); } break; case JBC_drem: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_REM, op1, op2, VM_Type.DoubleType); } break; case JBC_ineg: s = _unaryHelper(INT_NEG, popInt(), VM_Type.IntType); break; case JBC_lneg: s = _unaryDualHelper(LONG_NEG, popLong(), VM_Type.LongType); break; case JBC_fneg: s = _unaryHelper(FLOAT_NEG, popFloat(), VM_Type.FloatType); break; case JBC_dneg: s = _unaryDualHelper(DOUBLE_NEG, popDouble(), VM_Type.DoubleType); break; case JBC_ishl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHL, op1, op2, VM_Type.IntType); } break; case JBC_lshl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHL, op1, op2, VM_Type.LongType); } break; case JBC_ishr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHR, op1, op2, VM_Type.IntType); } break; case JBC_lshr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHR, op1, op2, VM_Type.LongType); } break; case JBC_iushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_USHR, op1, op2, VM_Type.IntType); } break; case JBC_lushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_USHR, op1, op2, VM_Type.LongType); } break; case JBC_iand: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_AND, op1, op2, VM_Type.IntType); } break; case JBC_land: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_AND, op1, op2, VM_Type.LongType); } break; case JBC_ior: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_OR, op1, op2, VM_Type.IntType); } break; case JBC_lor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_OR, op1, op2, VM_Type.LongType); } break; case JBC_ixor: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_XOR, op1, op2, VM_Type.IntType); } break; case JBC_lxor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_XOR, op1, op2, VM_Type.LongType); } break; case JBC_iinc: { int index = bcInfo.getLocalNumber(); s = do_iinc(index, bcInfo.getByteValue()); } break; case JBC_i2l: s = _unaryDualHelper(INT_2LONG, popInt(), VM_Type.LongType); break; case JBC_i2f: s = _unaryHelper(INT_2FLOAT, popInt(), VM_Type.FloatType); break; case JBC_i2d: s = _unaryDualHelper(INT_2DOUBLE, popInt(), VM_Type.DoubleType); break; case JBC_l2i: s = _unaryHelper(LONG_2INT, popLong(), VM_Type.IntType); break; case JBC_l2f: s = _unaryHelper(LONG_2FLOAT, popLong(), VM_Type.FloatType); break; case JBC_l2d: s = _unaryDualHelper(LONG_2DOUBLE, popLong(), VM_Type.DoubleType); break; case JBC_f2i: s = _unaryHelper(FLOAT_2INT, popFloat(), VM_Type.IntType); break; case JBC_f2l: s = _unaryDualHelper(FLOAT_2LONG, popFloat(), VM_Type.LongType); break; case JBC_f2d: s = _unaryDualHelper(FLOAT_2DOUBLE, popFloat(), VM_Type.DoubleType); break; case JBC_d2i: s = _unaryHelper(DOUBLE_2INT, popDouble(), VM_Type.IntType); break; case JBC_d2l: s = _unaryDualHelper(DOUBLE_2LONG, popDouble(), VM_Type.LongType); break; case JBC_d2f: s = _unaryHelper(DOUBLE_2FLOAT, popDouble(), VM_Type.FloatType); break; case JBC_int2byte: s = _unaryHelper(INT_2BYTE, popInt(), VM_Type.ByteType); break; case JBC_int2char: s = _unaryHelper(INT_2USHORT, popInt(), VM_Type.CharType); break; case JBC_int2short: s = _unaryHelper(INT_2SHORT, popInt(), VM_Type.ShortType); break; case JBC_lcmp: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryHelper(LONG_CMP, op1, op2, VM_Type.IntType); } break; case JBC_fcmpl: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPL, op1, op2, VM_Type.IntType); } break; case JBC_fcmpg: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPG, op1, op2, VM_Type.IntType); } break; case JBC_dcmpl: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPL, op1, op2, VM_Type.IntType); } break; case JBC_dcmpg: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPG, op1, op2, VM_Type.IntType); } break; case JBC_ifeq: s = _intIfHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_ifne: s = _intIfHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_iflt: s = _intIfHelper(OPT_ConditionOperand.LESS()); break; case JBC_ifge: s = _intIfHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_ifgt: s = _intIfHelper(OPT_ConditionOperand.GREATER()); break; case JBC_ifle: s = _intIfHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_icmpeq: s = _intIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_icmpne: s = _intIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_if_icmplt: s = _intIfCmpHelper(OPT_ConditionOperand.LESS()); break; case JBC_if_icmpge: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_if_icmpgt: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER()); break; case JBC_if_icmple: s = _intIfCmpHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_acmpeq: s = _refIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_acmpne: s = _refIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_goto: { int offset = bcInfo.getBranchTarget(); if (offset != 3) // skip generating frivolous goto's s = _gotoHelper(offset); } break; case JBC_jsr: s = _jsrHelper(bcInfo.getBranchTarget()); break; case JBC_ret: s = _retHelper(bcInfo.getLocalNumber()); break; case JBC_tableswitch: { OPT_Operand op0 = popInt(); bcInfo.alignSwitch(); int defaultoff = bcInfo.getSwitchDefaultTarget(); int low = bcInfo.getSwitchLowValue(); int high = bcInfo.getSwitchHighValue(); int number = high - low + 1; if (CF_TABLESWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int offset; if ((v1 < low) || (v1 > high)) offset = defaultoff; else offset = bcInfo.getTableSwitchOffsetForConstant(v1, low, high); bcInfo.skipTableSwitchTargets(number); if (DBG_CF) { db("changed tableswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } s = TableSwitch.create(TABLESWITCH, op0, null, null, new OPT_IntConstantOperand(low), new OPT_IntConstantOperand(high), generateTarget(defaultoff), new OPT_BranchProfileOperand(), number*2); double approxProb = 1/(number+1); // num targets + default for (int i = 0; i < number; ++i) { TableSwitch.setTarget(s, i, generateTarget(bcInfo.getSwitchTarget(i))); TableSwitch. setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } break; case JBC_lookupswitch: { OPT_Operand op0 = popInt(); bcInfo.alignSwitch(); int defaultoff = bcInfo.getSwitchDefaultTarget(); int numpairs = bcInfo.getLookupSwitchNumberOfPairs(); if (numpairs == 0) { s = _gotoHelper(defaultoff); break; } if (CF_LOOKUPSWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int offset = defaultoff; for (int i = 0; i < numpairs; ++i) { int match = bcInfo.getSwitchValue(i); if (match == v1) { offset = bcInfo.getSwitchTarget(i); bcInfo.skipLookupSwitchPairs(numpairs, i + 1); break; // for } else { bcInfo.skipSwitchValue(i); } } if (DBG_CF) { db("changed lookupswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } s = LookupSwitch.create(LOOKUPSWITCH, op0, null, null, generateTarget(defaultoff), new OPT_BranchProfileOperand(),numpairs*3); double approxProb = 1/(numpairs+1); // num targets + default for (int i = 0; i < numpairs; ++i) { LookupSwitch.setMatch(s, i, new OPT_IntConstantOperand (bcInfo.getSwitchValue(i))); LookupSwitch.setTarget(s, i, generateTarget(bcInfo.getSwitchTarget(i))); LookupSwitch. setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } break; case JBC_ireturn: _returnHelper(INT_MOVE, popInt()); break; case JBC_lreturn: _returnHelper(LONG_MOVE, popLong()); break; case JBC_freturn: _returnHelper(FLOAT_MOVE, popFloat()); break; case JBC_dreturn: _returnHelper(DOUBLE_MOVE, popDouble()); break; case JBC_areturn: { OPT_Operand op0 = popRef(); if (VM.VerifyAssertions && !op0.isDefinitelyNull()) { VM_Type retType = getRefTypeOf(op0); // fudge to deal with conservative approximation // in OPT_ClassLoaderProxy.proxy.findCommonSuperclass if (retType != VM_Type.JavaLangObjectType) assertIsAssignable(gc.method.getReturnType(), getRefTypeOf(op0)); } _returnHelper(REF_MOVE, op0); } break; case JBC_return: _returnHelper(null, null); break; case JBC_getstatic: { int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); // use results of field analysis to refine type. VM_Type fieldType = field.getType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); if (field.getType().isClassType() && field.getType().asClass().isLoaded()) { VM_Type concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?GETSTATIC_UNRESOLVED:GETSTATIC; s = GetStatic.create(operator, t, makeStaticFieldRef(field)); // optimization: // if the field is final and either initialized or // in the bootimage, then get the value at compile time. // TODO: applying this optimization to Floats or Doubles // causes problems. Figure out why and fix it! if (!fieldType.isDoubleType() && !fieldType.isFloatType()) { if (!unresolved && field.isFinal()) { VM_Class declaringClass = field.getDeclaringClass(); if (declaringClass.isInitialized() || (VM.writingBootImage && declaringClass.isInBootImage())) { try { if (fieldType.isPrimitiveType()) { operator = OPT_IRTools.getMoveOp(field.getType()); OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); s = null; break; } else { if (OPT_StaticFieldReader.isStaticFieldNull(field)) { // VM.sysWrite("Replaced getstatic of "+field+" with <null>\n"); push(new OPT_NullConstantOperand(), fieldType); s = null; break; } else { VM_Type rtType = OPT_StaticFieldReader.getTypeFromStaticField(field); if (rtType == VM_Type.JavaLangStringType) { OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); s = null; break; } else { t.type = rtType; if (rtType != fieldType) t.clearDeclaredType(); t.setPreciseType(); markGuardlessNonNull(t); // VM.sysWrite("Tightened type info for getstatic of "+field+" to "+t+"\n"); } } } } catch (NoSuchFieldException e) { // Sigh, host JDK java.* class didn't have this RVM field. // VM.sysWrite("Field "+field+" does not exist on host JDK\n"); } } } } push(t.copyD2U(), fieldType); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_putstatic: { int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); VM_Type fieldType = field.getType(); OPT_Operand r = pop(fieldType); boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?PUTSTATIC_UNRESOLVED:PUTSTATIC; s = PutStatic.create(operator, r, makeStaticFieldRef(field)); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_getfield: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); VM_Type fieldType = field.getType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); // use results of field analysis to refine type. if (field.getType().isClassType() && field.getType().asClass().isLoaded()) { VM_Type concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?GETFIELD_UNRESOLVED:GETFIELD; s = GetField.create(operator, t, op1, makeInstanceFieldRef(field), getCurrentGuard()); push(t.copyD2U(), fieldType); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_putfield: { int constantPoolIndex = bcInfo.getFieldReferenceIndex(); VM_Field field = bcInfo.getFieldReference(constantPoolIndex); VM_Type fieldType = field.getType(); OPT_Operand val = pop(fieldType); OPT_Operand obj = popRef(); clearCurrentGuard(); if (do_NullCheck(obj)) break; boolean unresolved = field.needsDynamicLink(gc.method); if (!unresolved) field = field.resolve(); OPT_Operator operator = unresolved?PUTFIELD_UNRESOLVED:PUTFIELD; s = PutField.create(operator, val, obj, makeInstanceFieldRef(field), getCurrentGuard()); if (unresolved) rectifyStateWithErrorHandler(); } break; case JBC_invokevirtual: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_VIRTUAL); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); if (meth.getDeclaringClass().isAddressType()) { try { OPT_GenerateMagic.generateMagic(this, gc, meth); if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.isMagic(meth); } break; } catch (OPT_MagicNotImplementedException e) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.unimplementedMagic(Call.getMethod(s).method); } if (gc.options.SKIP_UNKNOWN_MAGIC) { s = _callHelper(OPT_MethodOperand.STATIC(meth, false)); // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } else { throw (e); } } } boolean unresolved = meth.needsDynamicLink(gc.method); if (!unresolved) meth = meth.resolve(); OPT_MethodOperand methOp = OPT_MethodOperand.VIRTUAL(meth, unresolved); s = _callHelper(methOp); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } // try to reduce the number of targets. // If we succeed, we'll update meth, unresolved, // and s's method operand. OPT_Operand ref = Call.getParam(s, 0); boolean receiverClassResolved = false; boolean isExtant = false; VM_Type type = null; if (ref.isRegister()) { isExtant = ref.asRegister().isExtant(); type = ref.asRegister().type; } else if (ref.isStringConstant()) { isExtant = true; type = VM_Type.JavaLangStringType; } else if (VM.VerifyAssertions) VM.assert(false, "unexpected receiver"); receiverClassResolved = type.isResolved(); if ((meth.getDeclaringClass() != type) && type.isClassType()) { VM_Method vmeth = lookupMethod(meth, type.asClass()); if (vmeth != null && vmeth != meth) { // Update meth to be the refined vmeth meth = vmeth; unresolved = meth.needsDynamicLink(gc.method); if (!unresolved) meth = meth.resolve(); Call.setMethod(s, OPT_MethodOperand.VIRTUAL(meth, unresolved, true)); } } if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { // if the type is precise and receiverClassResolved is true // then we know FOR CERTAIN that this call will resolve to meth. // By ensuring that recieverClassResolved, we make sure that // lookupMethod was able to actually search the class hierarchy // and set meth appropriately. VM_Method computedTarget = null; if (receiverClassResolved && ((ref.isStringConstant()) || ref.asRegister().isPreciseType())) { computedTarget = meth; if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.isPreciseType(); } OPT_InlineDecision id = shouldInline(s, computedTarget, isExtant); if (maybeInlineMethod(id, s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokespecial: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_SPECIAL); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); // Note: this is not the usual needsDynamicLink // due to semantics of invokespecial // See comments in VM_OptLinker, OPT_Convert2Low, VM_Linker. boolean unresolved = !meth.getDeclaringClass().isResolved() || (VM_Class.findSpecialMethod(meth) == null); if (!unresolved) meth = meth.resolve(); s = _callHelper(OPT_MethodOperand.SPECIAL(meth, unresolved)); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { if (maybeInlineMethod(shouldInline(s, null, false), s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokestatic: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_STATIC); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); if (meth.getDeclaringClass().isMagicType() || meth.getDeclaringClass().isAddressType()) { try { OPT_GenerateMagic.generateMagic(this, gc, meth); if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.isMagic(meth); } break; } catch (OPT_MagicNotImplementedException e) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.unimplementedMagic(Call.getMethod(s).method); } if (gc.options.SKIP_UNKNOWN_MAGIC) { s = _callHelper(OPT_MethodOperand.STATIC(meth, false)); // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } else { throw (e); } } } boolean unresolved = meth.needsDynamicLink(gc.method); if (!unresolved) meth = meth.resolve(); s = _callHelper(OPT_MethodOperand.STATIC(meth, unresolved)); if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // If we don't need dynamic linking code, think about inlining if (!unresolved) { if (maybeInlineMethod(shouldInline(s, null, false), s)) { return; } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokeinterface: { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.beginNewDecision(); OPT_InlineReport.setCallType(OPT_InlineReport.INVOKE_INTERFACE); } int constantPoolIndex = bcInfo.getMethodReferenceIndex(); VM_Method meth = bcInfo.getMethodReference(constantPoolIndex); bcInfo.eatInvokeInterfaceGarbage(); OPT_MethodOperand methOp = OPT_MethodOperand.INTERFACE(meth, false); s = _callHelper(methOp); if (s == null) { if (gc.options.PRINT_DETAILED_INLINE_REPORT) { OPT_InlineReport.instructionNull(); } break; } OPT_RegisterOperand ref = Call.getParam(s, 0).asRegister(); VM_Class refType = ref.type.asClass(); VM_Type interfaceType = meth.getDeclaringClass(); boolean requiresImplementsTest = VM.BuildForIMTInterfaceInvocation || (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables); // Step 1: handle the possibility of ghost references try { VM_Method resolvedMethodRef = meth.resolveInterfaceMethod(false); if (resolvedMethodRef == null) { if (requiresImplementsTest) { // might be a ghost reference. // Must do the more involved typechecking sequence OPT_RegisterOperand tibPtr = gc.temps.makeTemp(OPT_ClassLoaderProxy.JavaLangObjectArrayType); OPT_Instruction getTib = GuardedUnary.create(GET_OBJ_TIB, tibPtr, ref.copyU2U(), getCurrentGuard()); appendInstruction(getTib); getTib.bcIndex = RUNTIME_SERVICES_BCI; OPT_MethodOperand dtcRoutine = OPT_MethodOperand.STATIC(VM_Entrypoints.unresolvedInvokeinterfaceImplementsTestMethod); OPT_Instruction callCheck = Call.create2(CALL, null, null, dtcRoutine, new OPT_IntConstantOperand(meth.getDictionaryId()), tibPtr.copyD2U()); if (gc.options.NO_CALLEE_EXCEPTIONS) { callCheck.markAsNonPEI(); } appendInstruction(callCheck); callCheck.bcIndex = RUNTIME_SERVICES_BCI; requiresImplementsTest = false; // the above call subsumes the test } } else { meth = resolvedMethodRef; } } catch (VM_ResolutionException e) { // actually can't be thrown when we pass false for canLoad. } // Step 2: Invokeinterface requires a dynamic type check // to ensure that the receiver object actually // implements the interface. This is necessary // because the verifier does not detect incompatible class changes. // If we're building for FastInterfaceInvocation then // this test must be made explicit in the calling sequence. // In the slow interface invocation path, it is handled // deep in the guts of the dispatching code. // NOTE: We don't insert the test here if we are doing to // do a guarded inline of an interface call. That case // is handled within OPT_Inliner.java. However, if // we virtualize the call, we do need to handle the DTC // here, since OPT_Inliner won't have enough information // to determine what the right thing to do is. if (requiresImplementsTest) { // Attempt to avoid inserting the check by seeing if the // known static type of the receiver implements the interface. if (refType.isResolved() && !refType.isInterface()) { byte doesImplement = OPT_ClassLoaderProxy.proxy.includesType(interfaceType, refType); requiresImplementsTest = doesImplement != YES; } } // Step 3: Attempt to resolve the interface call to // a particular virtual method. // Note: step 2 and step 3 are independent // and it is not that case that being able // to do 2 implies 3 or that doing 3 implies 2. VM_Method vmeth; if (refType.isResolved() && !refType.isInterface() && (vmeth = lookupMethod(meth, refType)) != null) { // We're going to virtualize it. Must deal with the DTC here. if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, ref.copyU2U(), makeTypeOperand(interfaceType), getCurrentGuard())); } boolean unresolved = vmeth.needsDynamicLink(gc.method); if (!unresolved) vmeth = vmeth.resolve(); Call.setMethod(s, OPT_MethodOperand.VIRTUAL(vmeth, unresolved, true)); if (gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.classUnresolved(unresolved, meth); // Think about trying to inline it if (!unresolved) { // if the type is precise, then we know FOR CERTAIN that // this call will resolve to meth VM_Method computedTarget = ref.isPreciseType() ? vmeth : null; if (computedTarget != null && gc.options.PRINT_DETAILED_INLINE_REPORT) OPT_InlineReport.isPreciseType(); OPT_InlineDecision id = shouldInline(s, computedTarget, ref.isExtant()); if (maybeInlineMethod(id, s)) { return; } } } else { // try to inline a predicted target for the interface invocation OPT_InlineDecision id = shouldInline(s, null, false); if (maybeInlineMethod(id, s)) { return; } else { if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, ref.copyU2U(), makeTypeOperand(interfaceType), getCurrentGuard())); } } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_xxxunusedxxx: OPT_OptimizingCompilerException.UNREACHABLE(); break; case JBC_new: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type klass = bcInfo.getTypeReference(constantPoolIndex); OPT_TypeOperand klassOp = makeTypeOperand(klass); OPT_RegisterOperand t = gc.temps.makeTemp(klass); t.setPreciseType(); markGuardlessNonNull(t); OPT_Operator operator; if (klass.isInitialized() || klass.asClass().isInBootImage()) { operator = NEW; } else { operator = NEW_UNRESOLVED; } s = New.create(operator, t, klassOp); push(t.copyD2U()); rectifyStateWithErrorHandler(); } break; case JBC_newarray: { byte atype = (byte)bcInfo.getByteValue(); VM_Array array = VM_Array.getPrimitiveArrayType(atype); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); VM_Class et = OPT_ClassLoaderProxy.JavaLangNegativeArraySizeExceptionType; rectifyStateWithExceptionHandler(et); } break; case JBC_anewarray: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type elementTypeRef = bcInfo.getTypeReference(constantPoolIndex); VM_Array array = elementTypeRef.getArrayTypeForElementType(); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); rectifyStateWithErrorHandler(); VM_Class et = OPT_ClassLoaderProxy.JavaLangNegativeArraySizeExceptionType; rectifyStateWithExceptionHandler(et); } break; case JBC_arraylength: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; if (VM.VerifyAssertions) VM.assert(getArrayTypeOf(op1).isArrayType()); OPT_RegisterOperand t = gc.temps.makeTempInt(); s = GuardedUnary.create(ARRAYLENGTH, t, op1, getCurrentGuard()); push(t.copyD2U()); } break; case JBC_athrow: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; VM_Type type = getRefTypeOf(op0); if (VM.VerifyAssertions) { // fudge to handle conservative approximation of // OPT_ClassLoaderProxy.proxy.findCommonSuperclass if (type != VM_Type.JavaLangObjectType) assertIsAssignable(VM_Type.JavaLangThrowableType, type); } if (!gc.method.getDeclaringClass().isInterruptible()) { // prevent code motion in or out of uninterruptible code sequence appendInstruction(Empty.create(UNINT_END)); } endOfBasicBlock = true; OPT_BasicBlock definiteTarget = rectifyStateWithExceptionHandler(type, true); if (definiteTarget != null) { appendInstruction(CacheOp.create(SET_CAUGHT_EXCEPTION, op0)); s = Goto.create(GOTO, definiteTarget.makeJumpTarget()); } else { s = Athrow.create(ATHROW, (OPT_RegisterOperand)op0); } } break; case JBC_checkcast: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type typeRef = bcInfo.getTypeReference(constantPoolIndex); boolean classLoading = couldCauseClassLoading(typeRef); OPT_TypeOperand typeOp = makeTypeOperand(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM.assert(op2.isRef()); if (CF_CHECKCAST && !classLoading) { if (op2.isDefinitelyNull()) { push(op2); if (DBG_CF) db("skipped gen of null checkcast"); break; } VM_Type type = getRefTypeOf(op2); // non-null, null case above if (OPT_ClassLoaderProxy.proxy.includesType(typeRef,type)==YES){ push(op2); if (DBG_CF) db("skipped gen of checkcast of " + op2 + " from " + typeRef + " to " + type); break; } } OPT_RegisterOperand reg = (OPT_RegisterOperand)op2; if (gc.options.NO_CHECKCAST) { // Unsafely eliminate all checkcasts } else { if (classLoading) { s = TypeCheck.create(CHECKCAST_UNRESOLVED, reg, typeOp); } else { if (isNonNull(reg)) { s = TypeCheck.create(CHECKCAST_NOTNULL, reg, typeOp, getGuard(reg)); } else { s = TypeCheck.create(CHECKCAST, reg, typeOp); } } } reg = reg.copyU2U(); reg.type = typeRef; push(reg); VM_Class et = OPT_ClassLoaderProxy.JavaLangClassCastExceptionType; rectifyStateWithExceptionHandler(et); if (classLoading) rectifyStateWithErrorHandler(); } break; case JBC_instanceof: { int constantPoolIndex = bcInfo.getTypeReferenceIndex(); VM_Type typeRef = bcInfo.getTypeReference(constantPoolIndex); boolean classLoading = couldCauseClassLoading(typeRef); OPT_TypeOperand typeOp = makeTypeOperand(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM.assert(op2.isRef()); if (CF_INSTANCEOF && !classLoading) { if (op2.isDefinitelyNull()) { push(new OPT_IntConstantOperand(0)); if (DBG_CF) db("skipped gen of null instanceof"); break; } VM_Type type = getRefTypeOf(op2); // non-null int answer = OPT_ClassLoaderProxy.proxy.includesType(typeRef, type); if (answer == YES) { if (isNonNull(op2)) { push(new OPT_IntConstantOperand(1)); if (DBG_CF) db("skipped gen of instanceof of " + op2 + " from " + typeRef + " to " + type); break; } else { // !!TODO: For boolean variables, is any non-zero integer // equivalent to true? If so, in this case, we can replace // t <- o2 instanceof type with t <- o2. (SJF) } } else if (answer == NO) { push(new OPT_IntConstantOperand(0)); break; } } OPT_RegisterOperand t = gc.temps.makeTempInt(); if (classLoading) { s = InstanceOf.create(INSTANCEOF_UNRESOLVED, t, typeOp, op2); } else { if (isNonNull(op2)) { s = InstanceOf.create(INSTANCEOF_NOTNULL, t, typeOp, op2, getGuard(op2)); } else { s = InstanceOf.create(INSTANCEOF, t, typeOp, op2); } } push(t.copyD2U()); if (classLoading) rectifyStateWithErrorHandler(); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/b636840796d86d400a7f80ae18aa939fc2b89a95/OPT_BC2IR.java/buggy/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
1265,
12,
474,
15065,
13,
288,
565,
309,
261,
2290,
43,
67,
9676,
747,
2383,
43,
67,
4803,
2056,
13,
288,
1377,
1319,
2932,
3441,
1776,
981,
1368,
315,
397,
783,
9676,
900,
397,
315,
598,
1086,
3674,
315,
397,
1086,
3674,
1769,
565,
289,
565,
783,
9676,
900,
18,
542,
7823,
5621,
565,
20706,
8252,
1768,
273,
4159,
14287,
273,
629,
31,
565,
1142,
382,
701,
273,
446,
31,
565,
6533,
966,
18,
542,
11983,
12,
2080,
1016,
1769,
565,
1323,
261,
3767,
13,
288,
1377,
368,
6753,
3455,
783,
9676,
900,
18,
8766,
731,
17,
869,
17,
712,
316,
648,
732,
775,
358,
11833,
1368,
4202,
368,
326,
7689,
434,
326,
1203,
732,
4565,
4551,
12516,
18,
225,
9587,
1283,
9702,
4202,
368,
3551,
3647,
3930,
8252,
1768,
353,
638,
3302,
1404,
4237,
584,
358,
1044,
333,
648,
18,
1377,
783,
9676,
900,
18,
8766,
273,
16170,
1016,
273,
6533,
966,
18,
13459,
1016,
31,
1377,
509,
981,
273,
6533,
966,
18,
588,
2134,
11983,
5621,
1377,
309,
261,
2290,
43,
67,
16283,
21045,
13,
288,
3639,
1319,
2932,
24979,
315,
397,
16170,
1016,
397,
315,
294,
374,
92,
6,
397,
2144,
18,
869,
14866,
12,
710,
10019,
1377,
289,
1377,
16456,
67,
11983,
272,
273,
446,
31,
1377,
1620,
261,
710,
13,
288,
1377,
648,
804,
16283,
67,
82,
556,
30,
202,
8820,
31,
1377,
648,
804,
16283,
67,
69,
10248,
67,
2011,
30,
202,
6206,
12,
2704,
16456,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
1265,
12,
474,
15065,
13,
288,
565,
309,
261,
2290,
43,
67,
9676,
747,
2383,
43,
67,
4803,
2056,
13,
288,
1377,
1319,
2932,
3441,
1776,
981,
1368,
315,
397,
783,
9676,
900,
397,
315,
598,
1086,
3674,
315,
397,
1086,
3674,
1769,
565,
289,
565,
783,
9676,
900,
18,
542,
7823,
5621,
565,
20706,
8252,
1768,
273,
4159,
14287,
273,
629,
31,
565,
1142,
382,
701,
273,
446,
31,
565,
6533,
966,
18,
542,
11983,
12,
2080,
1016,
1769,
565,
1323,
261,
3767,
13,
288,
1377,
368,
6753,
3455,
783,
9676,
900,
18,
8766,
731,
17,
869,
17,
712,
316,
648,
732,
775,
358,
11833,
1368,
4202,
368,
326,
7689,
434,
326,
1203,
732,
2
] |
sender.setInitialPause(initialPause);
|
public void testTopic4() { log.info("Running test Topic4"); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setMsgSize(standardMessageSize); sender.setMf(new TextMessageMessageFactory()); sender.setTransacted(true); sender.setTransactionSize(100); sender.setDeliveryMode(DeliveryMode.PERSISTENT); sender.setInitialPause(initialPause); //enough time for receiver to get ready sender.setSlaveURL(slaveURLs[0]); ReceiverJob receiver = createDefaultReceiverJob(topicName); receiver.setTransacted(true); receiver.setTransactionSize(100); receiver.setNumMessages(numMessages); receiver.setSlaveURL(slaveURLs[1]); JobResult[] results = runJobs(new Job[] {receiver, sender}); if (!checkResults(results, "Topic4")) { return; } long totalTimeTaken = results[0].endTime - results[1].startTime; Execution execution = createExecution("Topic4"); execution.addMeasurement(new Measurement("throughput", 1000 * (double)numMessages / totalTimeTaken)); pm.saveExecution(execution); log.info("Test Topic4 finished"); }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/bb5207822a56158d5b94faff7c6dbe5f094f6f4c/PerfRunner.java/buggy/src/main/org/jboss/jms/perf/framework/PerfRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6657,
24,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
11789,
24,
8863,
5411,
15044,
2278,
5793,
273,
27346,
12021,
2278,
12,
10476,
461,
1769,
1377,
5793,
18,
542,
2578,
5058,
12,
2107,
5058,
1769,
1377,
5793,
18,
542,
3332,
1225,
12,
10005,
1079,
1225,
1769,
1377,
5793,
18,
542,
49,
74,
12,
2704,
3867,
1079,
1079,
1733,
10663,
1377,
5793,
18,
542,
1429,
25487,
12,
3767,
1769,
1377,
5793,
18,
542,
3342,
1225,
12,
6625,
1769,
1377,
5793,
18,
542,
8909,
2309,
12,
8909,
2309,
18,
3194,
28175,
1769,
1377,
368,
275,
4966,
813,
364,
5971,
358,
336,
5695,
1377,
5793,
18,
542,
20302,
1785,
12,
27352,
15749,
63,
20,
19226,
5411,
31020,
2278,
5971,
273,
27346,
12952,
2278,
12,
10476,
461,
1769,
5411,
5971,
18,
542,
1429,
25487,
12,
3767,
1769,
1377,
5971,
18,
542,
3342,
1225,
12,
6625,
1769,
1377,
5971,
18,
542,
2578,
5058,
12,
2107,
5058,
1769,
1377,
5971,
18,
542,
20302,
1785,
12,
27352,
15749,
63,
21,
19226,
5411,
3956,
1253,
8526,
1686,
273,
1086,
7276,
12,
2704,
3956,
8526,
288,
24454,
16,
5793,
22938,
5411,
309,
16051,
1893,
3447,
12,
4717,
16,
315,
6657,
24,
6,
3719,
1377,
288,
540,
327,
31,
1377,
289,
5411,
1525,
2078,
950,
27486,
273,
1686,
63,
20,
8009,
409,
950,
300,
1686,
63,
21,
8009,
1937,
950,
31,
5411,
8687,
4588,
273,
752,
3210,
2932,
6657,
24,
8863,
5411,
4588,
18,
1289,
17933,
12,
2704,
26589,
2932,
10064,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6657,
24,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
11789,
24,
8863,
5411,
15044,
2278,
5793,
273,
27346,
12021,
2278,
12,
10476,
461,
1769,
1377,
5793,
18,
542,
2578,
5058,
12,
2107,
5058,
1769,
1377,
5793,
18,
542,
3332,
1225,
12,
10005,
1079,
1225,
1769,
1377,
5793,
18,
542,
49,
74,
12,
2704,
3867,
1079,
1079,
1733,
10663,
1377,
5793,
18,
542,
1429,
25487,
12,
3767,
1769,
1377,
5793,
18,
542,
3342,
1225,
12,
6625,
1769,
1377,
5793,
18,
542,
8909,
2309,
12,
8909,
2309,
18,
3194,
28175,
1769,
1377,
368,
275,
4966,
813,
364,
5971,
358,
336,
5695,
1377,
5793,
18,
542,
20302,
1785,
12,
27352,
15749,
63,
20,
19226,
5411,
2
] |
|
if (mementos == null) throw new NullPointerException();
|
if (mementos == null) { throw new NullPointerException(); }
|
static List readCategoryActivityBindingDefinitions(IMemento memento, String name, String sourceIdOverride) { if (memento == null || name == null) throw new NullPointerException(); IMemento[] mementos = memento.getChildren(name); if (mementos == null) throw new NullPointerException(); List list = new ArrayList(mementos.length); for (int i = 0; i < mementos.length; i++) { CategoryActivityBindingDefinition definition = readCategoryActivityBindingDefinition(mementos[i], sourceIdOverride); if (definition != null) list.add(definition); } return list; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/Persistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/Persistence.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
987,
855,
4457,
6193,
5250,
7130,
12,
3445,
820,
83,
312,
820,
83,
16,
5411,
514,
508,
16,
514,
27572,
6618,
13,
288,
3639,
309,
261,
81,
820,
83,
422,
446,
747,
508,
422,
446,
13,
5411,
604,
394,
10108,
5621,
3639,
6246,
820,
83,
8526,
312,
820,
538,
273,
312,
820,
83,
18,
588,
4212,
12,
529,
1769,
3639,
309,
261,
81,
820,
538,
422,
446,
13,
5411,
604,
394,
10108,
5621,
3639,
987,
666,
273,
394,
2407,
12,
81,
820,
538,
18,
2469,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
312,
820,
538,
18,
2469,
31,
277,
27245,
288,
5411,
9856,
6193,
5250,
1852,
2379,
273,
855,
4457,
6193,
5250,
1852,
12,
81,
820,
538,
63,
77,
6487,
10792,
27572,
6618,
1769,
5411,
309,
261,
6907,
480,
446,
13,
7734,
666,
18,
1289,
12,
6907,
1769,
3639,
289,
3639,
327,
666,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
987,
855,
4457,
6193,
5250,
7130,
12,
3445,
820,
83,
312,
820,
83,
16,
5411,
514,
508,
16,
514,
27572,
6618,
13,
288,
3639,
309,
261,
81,
820,
83,
422,
446,
747,
508,
422,
446,
13,
5411,
604,
394,
10108,
5621,
3639,
6246,
820,
83,
8526,
312,
820,
538,
273,
312,
820,
83,
18,
588,
4212,
12,
529,
1769,
3639,
309,
261,
81,
820,
538,
422,
446,
13,
5411,
604,
394,
10108,
5621,
3639,
987,
666,
273,
394,
2407,
12,
81,
820,
538,
18,
2469,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
312,
820,
538,
18,
2469,
31,
277,
27245,
288,
5411,
9856,
6193,
5250,
1852,
2379,
273,
855,
4457,
6193,
5250,
1852,
2
] |
for (int index = 0; index < instructionList.length; ) {
|
for (int index = 0; index < instructionList.length;) {
|
public void scan(byte[] instructionList, Callback callback) { boolean wide = false; for (int index = 0; index < instructionList.length; ) { short opcode = unsignedValueOf(instructionList[index]); callback.handleInstruction(opcode, index); if (DEBUG) System.out.println(index + ": " + OPCODE_NAMES[opcode]); switch (opcode) { // Single byte instructions. case NOP: case ACONST_NULL: case ICONST_M1: case ICONST_0: case ICONST_1: case ICONST_2: case ICONST_3: case ICONST_4: case ICONST_5: case LCONST_0: case LCONST_1: case FCONST_0: case FCONST_1: case FCONST_2: case DCONST_0: case DCONST_1: case ILOAD_0: case ILOAD_1: case ILOAD_2: case ILOAD_3: case LLOAD_0: case LLOAD_1: case LLOAD_2: case LLOAD_3: case FLOAD_0: case FLOAD_1: case FLOAD_2: case FLOAD_3: case DLOAD_0: case DLOAD_1: case DLOAD_2: case DLOAD_3: case ALOAD_0: case ALOAD_1: case ALOAD_2: case ALOAD_3: case IALOAD: case LALOAD: case FALOAD: case DALOAD: case AALOAD: case BALOAD: case CALOAD: case SALOAD: case ISTORE_0: case ISTORE_1: case ISTORE_2: case ISTORE_3: case LSTORE_0: case LSTORE_1: case LSTORE_2: case LSTORE_3: case FSTORE_0: case FSTORE_1: case FSTORE_2: case FSTORE_3: case DSTORE_0: case DSTORE_1: case DSTORE_2: case DSTORE_3: case ASTORE_0: case ASTORE_1: case ASTORE_2: case ASTORE_3: case IASTORE: case LASTORE: case FASTORE: case DASTORE: case AASTORE: case BASTORE: case CASTORE: case SASTORE: case POP: case POP2: case DUP: case DUP_X1: case DUP_X2: case DUP2: case DUP2_X1: case DUP2_X2: case SWAP: case IADD: case LADD: case FADD: case DADD: case ISUB: case LSUB: case FSUB: case DSUB: case IMUL: case LMUL: case FMUL: case DMUL: case IDIV: case LDIV: case FDIV: case DDIV: case IREM: case LREM: case FREM: case DREM: case INEG: case LNEG: case FNEG: case DNEG: case ISHL: case LSHL: case ISHR: case LSHR: case IUSHR: case LUSHR: case IAND: case LAND: case IOR: case LOR: case IXOR: case LXOR: case I2L: case I2F: case I2D: case L2I: case L2F: case L2D: case F2I: case F2L: case F2D: case D2I: case D2L: case D2F: case I2B: case I2C: case I2S: case LCMP: case FCMPL: case FCMPG: case DCMPL: case DCMPG: case IRETURN: case LRETURN: case FRETURN: case DRETURN: case ARETURN: case RETURN: case ARRAYLENGTH: case ATHROW: case MONITORENTER: case MONITOREXIT: ++index; break; // Two byte instructions. case BIPUSH: case LDC: case NEWARRAY: index += 2; break; // Instructions that can be used with the WIDE prefix. case ILOAD: case LLOAD: case FLOAD: case DLOAD: case ALOAD: case ISTORE: case LSTORE: case FSTORE: case DSTORE: case ASTORE: case RET: if (wide) { // Skip opcode and two immediate bytes. index += 3; wide = false; } else { // Skip opcode and one immediate byte. index += 2; } break; // IINC is a special case for WIDE handling case IINC: if (wide) { // Skip opcode, two byte index, and two byte immediate value. index += 5; wide = false; } else { // Skip opcode, one byte index, and one byte immedate value. index += 3; } break; // Three byte instructions. case SIPUSH: case LDC_W: case LDC2_W: case IFEQ: case IFNE: case IFLT: case IFGE: case IFGT: case IFLE: case IF_ICMPEQ: case IF_ICMPNE: case IF_ICMPLT: case IF_ICMPGE: case IF_ICMPGT: case IF_ICMPLE: case IF_ACMPEQ: case IF_ACMPNE: case GOTO: case JSR: case GETSTATIC: case PUTSTATIC: case GETFIELD: case PUTFIELD: case INVOKEVIRTUAL: case INVOKESPECIAL: case INVOKESTATIC: case NEW: case ANEWARRAY: case CHECKCAST: case INSTANCEOF: case IFNULL: case IFNONNULL: index += 3; break; // Four byte instructions. case MULTIANEWARRAY: index += 4; break; // Five byte instructions. case INVOKEINTERFACE: case GOTO_W: case JSR_W: index += 5; break; // TABLESWITCH - variable length. case TABLESWITCH: { // Skip padding. int offset = index + 1; // skip the opcode offset += PAD[offset & 3]; assert (offset & 3) == 0; // offset should now be posited at the default value // Extract min and max values. int low = extractInt(instructionList, offset + 4); int high = extractInt(instructionList, offset + 8); int tableSize = (high - low) + 1; if (DEBUG) System.out.println("tableswitch: low=" + low + ", high=" + high + ", tableSize=" + tableSize); // Skip to next instruction. index = offset + 12 + (tableSize * 4); } break; // LOOKUPSWITCH - variable length. case LOOKUPSWITCH: { // Skip padding. int offset = index + 1; // skip the opcode offset += PAD[offset & 3]; assert (offset & 3) == 0; // offset should now be posited at the default value // Extract number of value/offset pairs. int numPairs = extractInt(instructionList, offset + 4); if (DEBUG) System.out.println("lookupswitch: numPairs=" + numPairs); // Skip to next instruction. index = offset + 8 + (numPairs * 8); } break; // Wide prefix. case WIDE: wide = true; ++index; break; default: throw new IllegalArgumentException("Bad opcode " + opcode + " at offset " + index); } if (index < 0) throw new IllegalStateException("index=" + index + ", opcode=" + opcode); } }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/BytecodeScanner.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/BytecodeScanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4135,
12,
7229,
8526,
7592,
682,
16,
8444,
1348,
13,
288,
202,
202,
6494,
14812,
273,
629,
31,
202,
202,
1884,
261,
474,
770,
273,
374,
31,
770,
411,
7592,
682,
18,
2469,
31,
262,
288,
1082,
202,
6620,
11396,
273,
9088,
620,
951,
12,
19116,
682,
63,
1615,
19226,
1082,
202,
3394,
18,
4110,
11983,
12,
556,
710,
16,
770,
1769,
1082,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
12,
1615,
397,
6398,
315,
397,
531,
3513,
2712,
67,
16257,
63,
556,
710,
19226,
1082,
202,
9610,
261,
556,
710,
13,
288,
1082,
202,
759,
10326,
1160,
12509,
18,
1082,
202,
3593,
423,
3665,
30,
1082,
202,
3593,
432,
26411,
67,
8560,
30,
1082,
202,
3593,
467,
26411,
67,
49,
21,
30,
648,
467,
26411,
67,
20,
30,
648,
467,
26411,
67,
21,
30,
648,
467,
26411,
67,
22,
30,
648,
467,
26411,
67,
23,
30,
648,
467,
26411,
67,
24,
30,
648,
467,
26411,
67,
25,
30,
1082,
202,
3593,
511,
26411,
67,
20,
30,
648,
511,
26411,
67,
21,
30,
648,
478,
26411,
67,
20,
30,
648,
478,
26411,
67,
21,
30,
648,
478,
26411,
67,
22,
30,
1082,
202,
3593,
463,
26411,
67,
20,
30,
648,
463,
26411,
67,
21,
30,
1082,
202,
3593,
467,
7783,
67,
20,
30,
648,
467,
7783,
67,
21,
30,
648,
467,
7783,
67,
22,
30,
648,
467,
7783,
67,
23,
30,
1082,
202,
3593,
511,
7783,
67,
20,
30,
648,
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,
4135,
12,
7229,
8526,
7592,
682,
16,
8444,
1348,
13,
288,
202,
202,
6494,
14812,
273,
629,
31,
202,
202,
1884,
261,
474,
770,
273,
374,
31,
770,
411,
7592,
682,
18,
2469,
31,
262,
288,
1082,
202,
6620,
11396,
273,
9088,
620,
951,
12,
19116,
682,
63,
1615,
19226,
1082,
202,
3394,
18,
4110,
11983,
12,
556,
710,
16,
770,
1769,
1082,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
12,
1615,
397,
6398,
315,
397,
531,
3513,
2712,
67,
16257,
63,
556,
710,
19226,
1082,
202,
9610,
261,
556,
710,
13,
288,
1082,
202,
759,
10326,
1160,
12509,
18,
1082,
202,
3593,
423,
3665,
30,
1082,
202,
3593,
432,
26411,
67,
2
] |
return KEKRecipientInfo.getInstance(o, true);
|
return getKEKInfo(o);
|
public DEREncodable getInfo() { if (info instanceof ASN1TaggedObject) { ASN1TaggedObject o = (ASN1TaggedObject)info; switch (o.getTagNo()) { case 1: return KeyAgreeRecipientInfo.getInstance(o, true); case 2: return KEKRecipientInfo.getInstance(o, true); case 3: return PasswordRecipientInfo.getInstance(o, true); case 4: return OtherRecipientInfo.getInstance(o, true); default: throw new IllegalStateException("unknown tag"); } } return KeyTransRecipientInfo.getInstance(info); }
|
14767 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14767/1f9d00bb4bafd12a0e5c11dc542a4f7bb2e30425/RecipientInfo.java/buggy/crypto/src/org/bouncycastle/asn1/cms/RecipientInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21801,
25100,
429,
17142,
1435,
565,
288,
3639,
309,
261,
1376,
1276,
18598,
21,
18674,
921,
13,
3639,
288,
5411,
18598,
21,
18674,
921,
320,
273,
261,
22269,
21,
18674,
921,
13,
1376,
31,
5411,
1620,
261,
83,
18,
588,
1805,
2279,
10756,
5411,
288,
5411,
648,
404,
30,
7734,
327,
1929,
2577,
992,
18241,
966,
18,
588,
1442,
12,
83,
16,
638,
1769,
5411,
648,
576,
30,
7734,
327,
336,
6859,
47,
966,
12,
83,
1769,
5411,
648,
890,
30,
7734,
327,
9234,
18241,
966,
18,
588,
1442,
12,
83,
16,
638,
1769,
5411,
648,
1059,
30,
7734,
327,
4673,
18241,
966,
18,
588,
1442,
12,
83,
16,
638,
1769,
5411,
805,
30,
7734,
604,
394,
5477,
2932,
8172,
1047,
8863,
5411,
289,
3639,
289,
3639,
327,
1929,
1429,
18241,
966,
18,
588,
1442,
12,
1376,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21801,
25100,
429,
17142,
1435,
565,
288,
3639,
309,
261,
1376,
1276,
18598,
21,
18674,
921,
13,
3639,
288,
5411,
18598,
21,
18674,
921,
320,
273,
261,
22269,
21,
18674,
921,
13,
1376,
31,
5411,
1620,
261,
83,
18,
588,
1805,
2279,
10756,
5411,
288,
5411,
648,
404,
30,
7734,
327,
1929,
2577,
992,
18241,
966,
18,
588,
1442,
12,
83,
16,
638,
1769,
5411,
648,
576,
30,
7734,
327,
336,
6859,
47,
966,
12,
83,
1769,
5411,
648,
890,
30,
7734,
327,
9234,
18241,
966,
18,
588,
1442,
12,
83,
16,
638,
1769,
5411,
648,
1059,
30,
7734,
327,
4673,
18241,
966,
18,
588,
1442,
12,
83,
16,
638,
1769,
5411,
805,
30,
7734,
604,
394,
2
] |
assertEquals((Callback)nc, ce.getCallback());
|
assertEquals(nc, ce.getCallback());
|
public final void testUnsupportedCallbackException_01() { UnsupportedCallbackException ce = new UnsupportedCallbackException(nc); assertEquals((Callback)nc, ce.getCallback()); try { throw ce; }catch (Exception e){ assertTrue(ce.equals(e)); assertEquals(nc, ce.getCallback()); } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/725ae047c421126dd0fcfebb60f514948e7cc007/UnsupportedCallbackExceptionTest.java/clean/modules/security/src/test/java/common/javax/security/auth/callback/UnsupportedCallbackExceptionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1842,
8544,
2428,
503,
67,
1611,
1435,
288,
3639,
7221,
2428,
503,
5898,
273,
394,
7221,
2428,
503,
12,
14202,
1769,
3639,
1815,
8867,
12,
14202,
16,
5898,
18,
588,
2428,
10663,
3639,
775,
288,
5411,
604,
5898,
31,
3639,
289,
14683,
261,
503,
425,
15329,
5411,
1815,
5510,
12,
311,
18,
14963,
12,
73,
10019,
5411,
1815,
8867,
12,
14202,
16,
5898,
18,
588,
2428,
10663,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1842,
8544,
2428,
503,
67,
1611,
1435,
288,
3639,
7221,
2428,
503,
5898,
273,
394,
7221,
2428,
503,
12,
14202,
1769,
3639,
1815,
8867,
12,
14202,
16,
5898,
18,
588,
2428,
10663,
3639,
775,
288,
5411,
604,
5898,
31,
3639,
289,
14683,
261,
503,
425,
15329,
5411,
1815,
5510,
12,
311,
18,
14963,
12,
73,
10019,
5411,
1815,
8867,
12,
14202,
16,
5898,
18,
588,
2428,
10663,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
details.getControl().getParent().layout();
|
details.getTable().getParent().layout();
|
public void run() { GridData gd = (GridData) details.getControl().getLayoutData(); gd.exclude = !isChecked(); details.getControl().getParent().layout(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f9c466e731a3fcd6b27ded21559cc21bf6d87935/AbstractSearchDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/AbstractSearchDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
1435,
288,
1082,
202,
6313,
751,
15551,
273,
261,
6313,
751,
13,
3189,
18,
588,
3367,
7675,
588,
3744,
751,
5621,
1082,
202,
19016,
18,
10157,
273,
401,
291,
11454,
5621,
1082,
202,
6395,
18,
588,
3367,
7675,
588,
3054,
7675,
6741,
5621,
202,
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,
3196,
202,
482,
918,
1086,
1435,
288,
1082,
202,
6313,
751,
15551,
273,
261,
6313,
751,
13,
3189,
18,
588,
3367,
7675,
588,
3744,
751,
5621,
1082,
202,
19016,
18,
10157,
273,
401,
291,
11454,
5621,
1082,
202,
6395,
18,
588,
3367,
7675,
588,
3054,
7675,
6741,
5621,
202,
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
] |
boolean showProjetcs = false; if (mode.equalsIgnoreCase(C_TRUEVALUE)) { showProjetcs = true; } setTaskShowAllProjects(showProjetcs);
|
setTaskShowAllProjects(Boolean.valueOf(mode).booleanValue());
|
public void setTaskShowAllProjects(String mode) { boolean showProjetcs = false; if (mode.equalsIgnoreCase(C_TRUEVALUE)) { showProjetcs = true; } setTaskShowAllProjects(showProjetcs); }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/333deaa2847e73fc63ccc1d99d2076f4ec576f39/CmsDefaultUserSettings.java/buggy/src/org/opencms/configuration/CmsDefaultUserSettings.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2174,
5706,
1595,
15298,
12,
780,
1965,
13,
288,
3639,
1250,
2405,
626,
78,
278,
2143,
273,
629,
31,
3639,
309,
261,
3188,
18,
14963,
5556,
12,
39,
67,
18724,
4051,
3719,
288,
5411,
2405,
626,
78,
278,
2143,
273,
638,
31,
3639,
289,
3639,
444,
2174,
5706,
1595,
15298,
12,
4500,
626,
78,
278,
2143,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
2174,
5706,
1595,
15298,
12,
780,
1965,
13,
288,
3639,
1250,
2405,
626,
78,
278,
2143,
273,
629,
31,
3639,
309,
261,
3188,
18,
14963,
5556,
12,
39,
67,
18724,
4051,
3719,
288,
5411,
2405,
626,
78,
278,
2143,
273,
638,
31,
3639,
289,
3639,
444,
2174,
5706,
1595,
15298,
12,
4500,
626,
78,
278,
2143,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.PartyRole getPartyRole() throws FieldNotFound { org.quickfix.field.PartyRole value = new org.quickfix.field.PartyRole();
|
public quickfix.field.PartyRole getPartyRole() throws FieldNotFound { quickfix.field.PartyRole value = new quickfix.field.PartyRole();
|
public org.quickfix.field.PartyRole getPartyRole() throws FieldNotFound { org.quickfix.field.PartyRole value = new org.quickfix.field.PartyRole(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusReport.java/clean/src/java/src/quickfix/fix43/QuoteStatusReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
2996,
1689,
7325,
2996,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
2996,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
2996,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
2996,
1689,
7325,
2996,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
2996,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
2996,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
match(_t,BETWEEN); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree;
|
match(_t,AND); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; _t = __t2487; _t = _t.getNextSibling(); break; } case Sql_in: { AST __t2489 = _t;
|
public final void sqlexpression(AST _t) throws RecognitionException { AST sqlexpression_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OR: { AST __t2463 = _t; AST tmp1667_AST_in = (AST)_t; match(_t,OR); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; sqlexpression(_t); _t = _retTree; _t = __t2463; _t = _t.getNextSibling(); break; } case AND: { AST __t2464 = _t; AST tmp1668_AST_in = (AST)_t; match(_t,AND); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; sqlexpression(_t); _t = _retTree; _t = __t2464; _t = _t.getNextSibling(); break; } case NOT: { AST __t2465 = _t; AST tmp1669_AST_in = (AST)_t; match(_t,NOT); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; _t = __t2465; _t = _t.getNextSibling(); break; } case MATCHES: { AST __t2466 = _t; AST tmp1670_AST_in = (AST)_t; match(_t,MATCHES); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2466; _t = _t.getNextSibling(); break; } case BEGINS: { AST __t2468 = _t; AST tmp1671_AST_in = (AST)_t; match(_t,BEGINS); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2468; _t = _t.getNextSibling(); break; } case CONTAINS: { AST __t2470 = _t; AST tmp1672_AST_in = (AST)_t; match(_t,CONTAINS); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2470; _t = _t.getNextSibling(); break; } case EQ: { AST __t2472 = _t; AST tmp1673_AST_in = (AST)_t; match(_t,EQ); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2472; _t = _t.getNextSibling(); break; } case NE: { AST __t2474 = _t; AST tmp1674_AST_in = (AST)_t; match(_t,NE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2474; _t = _t.getNextSibling(); break; } case GTHAN: { AST __t2476 = _t; AST tmp1675_AST_in = (AST)_t; match(_t,GTHAN); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2476; _t = _t.getNextSibling(); break; } case GE: { AST __t2478 = _t; AST tmp1676_AST_in = (AST)_t; match(_t,GE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2478; _t = _t.getNextSibling(); break; } case LTHAN: { AST __t2480 = _t; AST tmp1677_AST_in = (AST)_t; match(_t,LTHAN); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2480; _t = _t.getNextSibling(); break; } case LE: { AST __t2482 = _t; AST tmp1678_AST_in = (AST)_t; match(_t,LE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2482; _t = _t.getNextSibling(); break; } case EXISTS: { AST __t2484 = _t; AST tmp1679_AST_in = (AST)_t; match(_t,EXISTS); _t = _t.getFirstChild(); AST tmp1680_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); selectstatea(_t); _t = _retTree; AST tmp1681_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2484; _t = _t.getNextSibling(); break; } case Sql_begins: { AST __t2485 = _t; AST tmp1682_AST_in = (AST)_t; match(_t,Sql_begins); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1683_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case BEGINS: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1684_AST_in = (AST)_t; match(_t,BEGINS); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; _t = __t2485; _t = _t.getNextSibling(); break; } case Sql_between: { AST __t2487 = _t; AST tmp1685_AST_in = (AST)_t; match(_t,Sql_between); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1686_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case BETWEEN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1687_AST_in = (AST)_t; match(_t,BETWEEN); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; AST tmp1688_AST_in = (AST)_t; match(_t,AND); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; _t = __t2487; _t = _t.getNextSibling(); break; } case Sql_in: { AST __t2489 = _t; AST tmp1689_AST_in = (AST)_t; match(_t,Sql_in); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1690_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1691_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp1692_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SELECT: { selectstatea(_t); _t = _retTree; break; } case LEXDATE: case NUMBER: case QSTRING: case BIGENDIAN: case EXCLUSIVELOCK: case FALSE_KW: case FINDCASESENSITIVE: case FINDGLOBAL: case FINDNEXTOCCURRENCE: case FINDPREVOCCURRENCE: case FINDSELECT: case FINDWRAPAROUND: case HOSTBYTEORDER: case LITTLEENDIAN: case NO: case NOLOCK: case NOWAIT: case NULL_KW: case READAVAILABLE: case READEXACTNUM: case SEARCHSELF: case SEARCHTARGET: case SHARELOCK: case TRUE_KW: case USERID: case WINDOWDELAYEDMINIMIZE: case WINDOWMAXIMIZED: case WINDOWMINIMIZED: case WINDOWNORMAL: case YES: case UNKNOWNVALUE: case Field_ref: case FUNCTIONCALLTYPE: case GETATTRCALLTYPE: case PROCEDURECALLTYPE: case SAXCOMPLETE: case SAXPARSERERROR: case SAXRUNNING: case SAXUNINITIALIZED: case SETATTRCALLTYPE: case ROWUNMODIFIED: case ROWDELETED: case ROWMODIFIED: case ROWCREATED: { sql_in_val(_t); _t = _retTree; { _loop2493: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1693_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sql_in_val(_t); _t = _retTree; } else { break _loop2493; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } AST tmp1694_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2489; _t = _t.getNextSibling(); break; } case Sql_like: { AST __t2494 = _t; AST tmp1695_AST_in = (AST)_t; match(_t,Sql_like); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1696_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case LIKE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1697_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ESCAPE: { AST tmp1698_AST_in = (AST)_t; match(_t,ESCAPE); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2494; _t = _t.getNextSibling(); break; } case Sql_null_test: { AST __t2497 = _t; AST tmp1699_AST_in = (AST)_t; match(_t,Sql_null_test); _t = _t.getFirstChild(); AST tmp1700_AST_in = (AST)_t; match(_t,IS); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1701_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case NULL_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1702_AST_in = (AST)_t; match(_t,NULL_KW); _t = _t.getNextSibling(); _t = __t2497; _t = _t.getNextSibling(); break; } default: if (_t==null) _t=ASTNULL; if ((_tokenSet_29.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4744,
4149,
1337,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4744,
4149,
1337,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
4869,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3247,
4449,
273,
389,
88,
31,
1082,
202,
9053,
1853,
2313,
9599,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
916,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
11410,
4149,
1337,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
11410,
4149,
1337,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
3247,
4449,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
4116,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3247,
1105,
273,
389,
88,
31,
1082,
202,
9053,
1853,
2313,
9470,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4307,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
11410,
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,
4744,
4149,
1337,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4744,
4149,
1337,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
4869,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3247,
4449,
273,
389,
88,
31,
1082,
202,
9053,
1853,
2313,
9599,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
916,
1769,
1082,
202,
67,
88,
273,
389,
2
] |
protected void createAttributeLayout() { String title = getTitleString(); Section section = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR | Section.TWISTIE); section.setText(LABEL_SECTION_ATTRIBUTES); section.setExpanded(true); section.setLayout(new GridLayout()); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); // Attributes Composite- this holds all the combo fields and text fields Composite attributesComposite = toolkit.createComposite(section); GridLayout attributesLayout = new GridLayout(); attributesLayout.numColumns = 4; attributesLayout.horizontalSpacing = 14; attributesLayout.verticalSpacing = 6; attributesComposite.setLayout(attributesLayout); GridData attributesData = new GridData(GridData.FILL_BOTH); attributesData.horizontalSpan = 1; attributesData.grabExcessVerticalSpace = false; attributesComposite.setLayoutData(attributesData); section.setClient(attributesComposite); bugzillaInput.setToolTipText(title); int currentCol = 1; for (RepositoryTaskAttribute attribute : getReport().getAttributes()) { // String key = attribute.getID(); String name = attribute.getName(); String value = ""; //try { value = checkText(attribute.getValue()); //value = checkText(BugzillaRepositoryUtil.decodeStringFromCharset(attribute.getValue(), getReport().getCharset()));// } catch (UnsupportedEncodingException e1) {// // ignore// } // System.err.println(">>> AbstractBugEditor>> name: "+name+" // key:"+key+" value:"+value+" is hidden"+attribute.isHidden()); if (attribute.isHidden()) continue; Map<String, String> values = attribute.getOptionValues(); if (values == null) values = new HashMap<String, String>(); GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 1; data.horizontalIndent = HORZ_INDENT; if (attribute.hasOptions() && !attribute.isReadOnly()) { toolkit.createLabel(attributesComposite, name); attributeCombo = new CCombo(attributesComposite, SWT.FLAT | SWT.READ_ONLY); toolkit.adapt(attributeCombo, true, true); attributeCombo.setFont(TEXT_FONT); attributeCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { attributeCombo.add(a[i]); } if (attributeCombo.indexOf(value) != -1) { attributeCombo.select(attributeCombo.indexOf(value)); } attributeCombo.addSelectionListener(new ComboSelectionListener(attributeCombo)); comboListenerMap.put(attributeCombo, attribute); attributeCombo.addListener(SWT.FocusIn, new GenericListener()); currentCol += 2; } else { toolkit.createLabel(attributesComposite, name); Composite textFieldComposite = toolkit.createComposite(attributesComposite); GridLayout textLayout = new GridLayout(); textLayout.marginWidth = 1; textFieldComposite.setLayout(textLayout); GridData textData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); textData.horizontalSpan = 1; textData.widthHint = 135; if (attribute.isReadOnly()) { final Text text = toolkit.createText(textFieldComposite, value, SWT.FLAT | SWT.READ_ONLY); text.setLayoutData(textData); } else { final Text text = toolkit.createText(textFieldComposite, value, SWT.FLAT); //text.setFont(COMMENT_FONT); text.setLayoutData(textData); toolkit.paintBordersFor(textFieldComposite); text.setData(attribute); text.addListener(SWT.KeyUp, new Listener() { public void handleEvent(Event event) { String sel = text.getText(); RepositoryTaskAttribute a = (RepositoryTaskAttribute) text.getData(); if (!(a.getValue().equals(sel))) { a.setValue(sel); changeDirtyStatus(true); } } }); text.addListener(SWT.FocusIn, new GenericListener()); } currentCol += 2; } if (currentCol > attributesLayout.numColumns) { currentCol -= attributesLayout.numColumns; } } // make sure that we are in the first column if (currentCol > 1) { while (currentCol <= attributesLayout.numColumns) { toolkit.createLabel(attributesComposite, ""); // newLayout(attributesComposite, 1, "", PROPERTY); currentCol++; } } // Perhaps these should be performed in subclass eventually addCCList(toolkit, "", attributesComposite); // URL field addUrlText(getReport().getAttributeValue(BugzillaReportElement.BUG_FILE_LOC.getKeyString()), attributesComposite); // keywords text field (not editable) try { addKeywordsList(toolkit, getReport().getAttributeValue(BugzillaReportElement.KEYWORDS.getKeyString()), attributesComposite); } catch (IOException e) { MessageDialog.openInformation(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG, "Could not retrieve keyword list, ensure proper configuration in "+TaskRepositoriesView.NAME+"\n\nError reported: " + e.getMessage()); }// addSelfToCCCheck = toolkit.createButton(attributesComposite, "Add "+repository.getUserName()+" to CC", SWT.FLAT | SWT.CHECK);// addSelfToCCCheck.setSelection(true);// addSelfToCCCheck.addSelectionListener(new SelectionAdapter() {//// @Override// public void widgetSelected(SelectionEvent e) {// if(addSelfToCCCheck.getSelection()) {// getReport().setAttributeValue(BugzillaReportElement.ADDSELFCC, "1");// } else {// getReport().setAttributeValue(BugzillaReportElement.ADDSELFCC, "0");// }// }});// //addSummaryText(attributesComposite); // End URL, Keywords, Summary Text Fields toolkit.paintBordersFor(attributesComposite); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/ed4e64a985b1c667fb20b5c6e2e2d3bd026ed28f/AbstractBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
1499,
3744,
1435,
288,
202,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
687,
18,
588,
2250,
9334,
16429,
429,
9400,
18,
14123,
67,
21908,
571,
10092,
18,
18869,
5511,
8732,
1769,
202,
202,
3464,
18,
542,
1528,
12,
13545,
67,
19082,
67,
22308,
1769,
202,
202,
3464,
18,
542,
17957,
12,
3767,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
3464,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
288,
1082,
202,
482,
918,
17965,
1119,
782,
18183,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
1082,
202,
482,
918,
17965,
1119,
5033,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
759,
9055,
14728,
17,
333,
14798,
777,
326,
16778,
1466,
471,
977,
1466,
202,
202,
9400,
1677,
9400,
273,
5226,
8691,
18,
2640,
9400,
12,
3464,
1769,
202,
202,
6313,
3744,
1677,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
4350,
3744,
18,
18396,
18006,
273,
5045,
31,
202,
202,
4350,
3744,
18,
17824,
18006,
273,
1666,
31,
202,
202,
4350,
9400,
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,
1117,
918,
752,
1499,
3744,
1435,
288,
202,
202,
780,
2077,
273,
10786,
780,
5621,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
687,
18,
588,
2250,
9334,
16429,
429,
9400,
18,
14123,
67,
21908,
571,
10092,
18,
18869,
5511,
8732,
1769,
202,
202,
3464,
18,
542,
1528,
12,
13545,
67,
19082,
67,
22308,
1769,
202,
202,
3464,
18,
542,
17957,
12,
3767,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
3464,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
288,
1082,
202,
482,
2
] |
||
public void stop() { this.go = false; this.serverThread = null; if (this.watchdog != null) { this.watchdog.quit(); this.watchdog = null; } // force a socket close for good measure try { if (this.serverSocket != null && this.serverSocket.isBound() && !this.serverSocket.isClosed()) this.serverSocket.close(); } catch (IOException e) { } }
|
53752 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53752/84231a7364c1f90385c2f7ba10ee072c866544d4/SMTPServer.java/buggy/smtp/src/org/subethamail/smtp/server/SMTPServer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
225,
2132,
1435,
202,
95,
202,
202,
2211,
18,
3240,
225,
273,
225,
629,
31,
202,
202,
2211,
18,
3567,
3830,
225,
273,
225,
446,
31,
9506,
202,
430,
225,
261,
2211,
18,
7585,
20330,
225,
480,
225,
446,
13,
202,
202,
95,
1082,
202,
2211,
18,
7585,
20330,
18,
27176,
5621,
1082,
202,
2211,
18,
7585,
20330,
225,
273,
225,
446,
31,
202,
202,
97,
202,
202,
759,
225,
2944,
225,
279,
225,
2987,
225,
1746,
225,
364,
225,
7494,
225,
6649,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
225,
261,
2211,
18,
3567,
4534,
225,
480,
225,
446,
225,
597,
225,
333,
18,
3567,
4534,
18,
291,
3499,
1435,
225,
597,
225,
401,
2211,
18,
3567,
4534,
18,
291,
7395,
10756,
9506,
202,
2211,
18,
3567,
4534,
18,
4412,
5621,
202,
202,
97,
202,
202,
14683,
225,
261,
14106,
225,
425,
13,
202,
202,
95,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
225,
918,
225,
2132,
1435,
202,
95,
202,
202,
2211,
18,
3240,
225,
273,
225,
629,
31,
202,
202,
2211,
18,
3567,
3830,
225,
273,
225,
446,
31,
9506,
202,
430,
225,
261,
2211,
18,
7585,
20330,
225,
480,
225,
446,
13,
202,
202,
95,
1082,
202,
2211,
18,
7585,
20330,
18,
27176,
5621,
1082,
202,
2211,
18,
7585,
20330,
225,
273,
225,
446,
31,
202,
202,
97,
202,
202,
759,
225,
2944,
225,
279,
225,
2987,
225,
1746,
225,
364,
225,
7494,
225,
6649,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
225,
261,
2211,
18,
3567,
4534,
225,
480,
225,
446,
225,
597,
225,
333,
18,
3567,
4534,
18,
291,
3499,
1435,
225,
2
] |
||
resultCollector = new BasicSearchResultCollector(); searchEngine = new SearchEngine();
|
protected void setUp() throws Exception { super.setUp(); (CCorePlugin.getDefault().getCoreModel().getIndexManager()).reset(); monitor = new NullProgressMonitor(); workspace = ResourcesPlugin.getWorkspace(); //Create temp project testProject = createProject("SearchTestProject"); testProject.setSessionProperty(IndexManager.activationKey,new Boolean(true)); if (testProject == null) fail("Unable to create project"); //Create file manager fileManager = new FileManager(); //Add a file to the project //importFile("mail.cpp", "resources/indexer/mail.cpp"); importFile("classDecl.cpp", "resources/search/classDecl.cpp"); importFile("include.h", "resources/search/include.h"); scope = SearchEngine.createWorkspaceScope(); resultCollector = new BasicSearchResultCollector(); searchEngine = new SearchEngine(); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/44e45fb15fe9cdaaa39ca0c76dc0419eaa3ba26f/BaseSearchTest.java/clean/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/BaseSearchTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
202,
202,
12,
39,
4670,
3773,
18,
588,
1868,
7675,
588,
4670,
1488,
7675,
588,
1016,
1318,
1435,
2934,
6208,
5621,
202,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
9506,
202,
14915,
273,
8128,
3773,
18,
588,
8241,
5621,
9506,
202,
759,
1684,
1906,
1984,
202,
202,
3813,
4109,
273,
752,
4109,
2932,
2979,
4709,
4109,
8863,
9506,
202,
3813,
4109,
18,
542,
2157,
1396,
12,
1016,
1318,
18,
16908,
653,
16,
2704,
3411,
12,
3767,
10019,
9506,
202,
430,
261,
3813,
4109,
422,
446,
13,
1082,
202,
6870,
2932,
3370,
358,
752,
1984,
8863,
202,
202,
759,
1684,
585,
3301,
202,
202,
768,
1318,
273,
394,
1387,
1318,
5621,
9506,
202,
759,
986,
279,
585,
358,
326,
1984,
202,
202,
759,
5666,
812,
2932,
4408,
18,
4057,
84,
3113,
315,
4683,
19,
24541,
19,
4408,
18,
4057,
84,
8863,
202,
202,
5666,
812,
2932,
1106,
3456,
18,
4057,
84,
3113,
315,
4683,
19,
3072,
19,
1106,
3456,
18,
4057,
84,
8863,
202,
202,
5666,
812,
2932,
6702,
18,
76,
3113,
315,
4683,
19,
3072,
19,
6702,
18,
76,
8863,
9506,
202,
4887,
273,
5167,
4410,
18,
2640,
8241,
3876,
5621,
1082,
202,
2088,
7134,
273,
394,
7651,
24916,
7134,
5621,
9506,
202,
3072,
4410,
273,
394,
5167,
4410,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
202,
202,
12,
39,
4670,
3773,
18,
588,
1868,
7675,
588,
4670,
1488,
7675,
588,
1016,
1318,
1435,
2934,
6208,
5621,
202,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
9506,
202,
14915,
273,
8128,
3773,
18,
588,
8241,
5621,
9506,
202,
759,
1684,
1906,
1984,
202,
202,
3813,
4109,
273,
752,
4109,
2932,
2979,
4709,
4109,
8863,
9506,
202,
3813,
4109,
18,
542,
2157,
1396,
12,
1016,
1318,
18,
16908,
653,
16,
2704,
3411,
12,
3767,
10019,
9506,
202,
430,
261,
3813,
4109,
422,
446,
13,
1082,
202,
6870,
2932,
3370,
358,
752,
1984,
8863,
202,
202,
759,
1684,
585,
3301,
202,
2
] |
|
*/
|
public static String forwardURL(HttpServletRequest request, ForwardConfig forward) { String path = forward.getPath(); // Handle a ForwardConfig marked as context relative StringBuffer sb = new StringBuffer(); if (forward.getContextRelative()) { /* Disabled to let Tiles definition names unchanged ! if (!path.startsWith("/")) { sb.append("/"); } */ sb.append(path); return (sb.toString()); } // Calculate a context relative path for this ForwardConfig ApplicationConfig appConfig = (ApplicationConfig) request.getAttribute(Action.APPLICATION_KEY); String forwardPattern = appConfig.getControllerConfig().getForwardPattern(); if (forwardPattern == null) { // Performance optimization for previous default behavior sb.append(appConfig.getPrefix()); /* Disabled to let Tiles definition names unchanged ! if (!path.startsWith("/")) { sb.append("/"); } */ sb.append(path); } else { boolean dollar = false; for (int i = 0; i < forwardPattern.length(); i++) { char ch = forwardPattern.charAt(i); if (dollar) { switch (ch) { case 'M': sb.append(appConfig.getPrefix()); break; case 'P': /* Disabled to let Tiles definition names unchanged ! if (!path.startsWith("/")) { sb.append("/"); } */ sb.append(path); break; case '$': sb.append('$'); break; default: ; // Silently swallow } dollar = false; continue; } else if (ch == '$') { dollar = true; } else { sb.append(ch); } } } return (sb.toString()); }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/cc4bc0d0123b731372282b962c5d61bd63a48a8c/RequestUtils.java/buggy/src/share/org/apache/struts/util/RequestUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
5104,
1785,
12,
2940,
18572,
590,
16,
4766,
565,
17206,
809,
5104,
13,
288,
3639,
514,
589,
273,
5104,
18,
588,
743,
5621,
3639,
368,
5004,
279,
17206,
809,
9350,
487,
819,
3632,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
309,
261,
11565,
18,
29120,
8574,
10756,
288,
5411,
1748,
28970,
358,
2231,
399,
1449,
2379,
1257,
14827,
401,
5411,
309,
16051,
803,
18,
17514,
1190,
2932,
4898,
3719,
288,
7734,
2393,
18,
6923,
2932,
4898,
1769,
5411,
289,
15604,
2393,
18,
6923,
12,
803,
1769,
5411,
327,
261,
18366,
18,
10492,
10663,
3639,
289,
3639,
368,
9029,
279,
819,
3632,
589,
364,
333,
17206,
809,
3639,
4257,
809,
20782,
273,
261,
3208,
809,
13,
5411,
590,
18,
588,
1499,
12,
1803,
18,
25039,
67,
3297,
1769,
3639,
514,
5104,
3234,
273,
5411,
20782,
18,
588,
2933,
809,
7675,
588,
8514,
3234,
5621,
3639,
309,
261,
11565,
3234,
422,
446,
13,
288,
5411,
368,
11217,
1359,
14850,
364,
2416,
805,
6885,
5411,
2393,
18,
6923,
12,
2910,
809,
18,
588,
2244,
10663,
5411,
1748,
28970,
358,
2231,
399,
1449,
2379,
1257,
14827,
401,
5411,
309,
16051,
803,
18,
17514,
1190,
2932,
4898,
3719,
288,
7734,
2393,
18,
6923,
2932,
4898,
1769,
5411,
289,
15604,
2393,
18,
6923,
12,
803,
1769,
3639,
289,
469,
288,
5411,
1250,
302,
25442,
273,
629,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5104,
3234,
18,
2469,
5621,
277,
27245,
288,
7734,
1149,
462,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
5104,
1785,
12,
2940,
18572,
590,
16,
4766,
565,
17206,
809,
5104,
13,
288,
3639,
514,
589,
273,
5104,
18,
588,
743,
5621,
3639,
368,
5004,
279,
17206,
809,
9350,
487,
819,
3632,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
309,
261,
11565,
18,
29120,
8574,
10756,
288,
5411,
1748,
28970,
358,
2231,
399,
1449,
2379,
1257,
14827,
401,
5411,
309,
16051,
803,
18,
17514,
1190,
2932,
4898,
3719,
288,
7734,
2393,
18,
6923,
2932,
4898,
1769,
5411,
289,
15604,
2393,
18,
6923,
12,
803,
1769,
5411,
327,
261,
18366,
18,
10492,
10663,
3639,
289,
3639,
368,
9029,
279,
819,
3632,
589,
364,
333,
17206,
809,
3639,
4257,
809,
20782,
273,
261,
3208,
809,
2
] |
|
public foo1() {}
|
public void foo1() {}
|
public foo1() {}
|
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/0fe854c3ba64f0441dc1c719bb0fae05c08148be/InputNoJavadoc.java/buggy/src/testinputs/com/puppycrawl/tools/checkstyle/javadoc/InputNoJavadoc.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
8431,
21,
1435,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
8431,
21,
1435,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ValidatorAction tmp = (ValidatorAction)actions.next(); logger.info("***Order - " + tmp.getName() + " " + tmp.getDepends()); } logger.info("***Order End ******************************"); }*/
|
ValidatorAction tmp = (ValidatorAction)actions.next(); sbLog.append("\t ValidatorAction name=" + tmp.getName() + " depends=" + tmp.getDepends() + "\n"); } log.debug(sbLog.toString()); }
|
public Map validate() throws ValidatorException { Map hResults = new HashMap(); Locale locale = null; if (hResources.containsKey(LOCALE_KEY)) locale = (Locale)hResources.get(LOCALE_KEY); if (locale == null) locale = Locale.getDefault(); Form form = null; if ((form = resources.get(locale, formName)) != null) { Map hActions = resources.getValidatorActions(); List lActions = new ArrayList(); Map hActionsRun = new HashMap(); boolean bMoreActions = true; boolean bErrors = false; for (Iterator actions = hActions.values().iterator(); actions.hasNext(); ) lActions.add(actions.next()); while (bMoreActions) { ValidatorAction va = null; int iErrorCount = 0; // FIX ME - These sorts will not work for all variations. // Sort by number dependencies Collections.sort(lActions, new DependencyComparator()); // Sort by number of dependencies successfully run Collections.sort(lActions, new DependencySuccessComparator(hActionsRun)); if (lActions.size() > 0) va = (ValidatorAction)lActions.get(0); if (va != null && va.getDepends() != null && va.getDepends().length() > 0) { StringTokenizer st = new StringTokenizer(va.getDepends(), ","); while (st.hasMoreTokens()) { String depend = st.nextToken().trim(); Object o = hActionsRun.get(depend); //if (logger.getDebug() > 10) // logger.info("***### Validator main - " + va.getName() + " - " + va.getDepends()); if (o == null) { //if (logger.getDebug() > 10) // logger.info("***### Validator o==null - " + va.getName() + " - " + va.getDepends()); lActions.clear(); va = null; bMoreActions = false; break; } else { boolean bContinue = ((Boolean)o).booleanValue(); //if (logger.getDebug() > 10) // logger.info("***### Validator - " + va.getName() + " depend=" + depend + " bContinue=" + bContinue); if (!bContinue) { lActions.clear(); va = null; bMoreActions = false; break; } } } } // For debug /**if (logger.getDebug() > 10) { logger.info("***Order ******************************"); for (Iterator actions = lActions.iterator(); actions.hasNext(); ) { ValidatorAction tmp = (ValidatorAction)actions.next(); logger.info("***Order - " + tmp.getName() + " " + tmp.getDepends()); } logger.info("***Order End ******************************"); }*/ if (va != null) { for (Iterator i = form.getFields().iterator(); i.hasNext(); ) { Field field = (Field)i.next(); if (field.getPage() <= page && (field.getDepends() != null && field.isDependency(va.getName()))) { try { // Add these two Objects to the resources since they reference // the current validator action and field hResources.put(VALIDATOR_ACTION_KEY, va); hResources.put(FIELD_KEY, field); Class c = Class.forName(va.getClassname(), true, this.getClass().getClassLoader()); List lParams = va.getMethodParamsList(); int size = lParams.size(); int beanIndexPos = -1; int fieldIndexPos = -1; Class[] paramClass = new Class[size]; Object[] paramValue = new Object[size]; for (int x = 0; x < size; x++) { String paramKey = (String)lParams.get(x); if (BEAN_KEY.equals(paramKey)) beanIndexPos = x; if (FIELD_KEY.equals(paramKey)) fieldIndexPos = x; // There were problems calling getClass on paramValue[] paramClass[x] = Class.forName(paramKey, true, this.getClass().getClassLoader()); paramValue[x] = hResources.get(paramKey); } Method m = c.getMethod(va.getMethod(), paramClass); // If the method is static we don't need an instance of the class // to call the method. If it isn't, we do. if (!Modifier.isStatic(m.getModifiers())) { try { if (va.getClassnameInstance() == null) { va.setClassnameInstance(c.newInstance()); } } catch (Exception ex) { logger.log("Validator::validate - Couldn't load instance " + "of class " + va.getClassname() + ". " + ex.getMessage()); } } Object result = null; if (field.isIndexed()) { Object oIndexed = PropertyUtils.getProperty(hResources.get(BEAN_KEY), field.getIndexedListProperty()); Object indexedList[] = new Object[0]; if (oIndexed instanceof Collection) indexedList = ((Collection)oIndexed).toArray(); else if(oIndexed.getClass().isArray()) indexedList = (Object[])oIndexed; for (int pos = 0; pos < indexedList.length; pos++) { // Set current iteration object to the parameter array paramValue[beanIndexPos] = indexedList[pos]; // Set field clone with the key modified to represent // the current field Field indexedField = (Field)field.clone(); indexedField.setKey(ValidatorUtil.replace(indexedField.getKey(), Field.TOKEN_INDEXED, "[" + pos + "]")); paramValue[fieldIndexPos] = indexedField; result = m.invoke(va.getClassnameInstance(), paramValue); int iCount = getErrorCount(result); if (iCount != 0) { iErrorCount += iCount; if (hResults.containsKey(field.getKey())) { Integer currentCount = (Integer)hResults.get(field.getKey()); hResults.put(field.getKey(), new Integer(currentCount.intValue() + iCount)); } else { hResults.put(field.getKey(), new Integer(iCount)); } } } } else { result = m.invoke(va.getClassnameInstance(), paramValue); int iCount = getErrorCount(result); if (iCount != 0) { iErrorCount += iCount; if (hResults.containsKey(field.getKey())) { Integer currentCount = (Integer)hResults.get(field.getKey()); hResults.put(field.getKey(), new Integer(currentCount.intValue() + iCount)); } else { hResults.put(field.getKey(), new Integer(iCount)); } } } } catch (Exception e) { bErrors = true; logger.log("Validator::validate() reflection - " + e.getMessage()); if (e instanceof ValidatorException) throw ((ValidatorException)e); } } } if (iErrorCount == 0) { hActionsRun.put(va.getName(), new Boolean(true)); } else { hActionsRun.put(va.getName(), new Boolean(false)); } if (logger.getDebug() > 10) logger.info("*** Validator - " + va.getName() + " size=" + lActions.size()); if (lActions.size() > 0) lActions.remove(0); if (logger.getDebug() > 10) logger.info("*** Validator - after remove - " + va.getName() + " size=" + lActions.size()); } if (lActions.size() == 0) bMoreActions = false; } } return hResults; }
|
54522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54522/9ac8d2b8797bcd5beb9e8514b2858d9024b4673d/Validator.java/buggy/src/share/org/apache/commons/validator/Validator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1635,
1954,
1435,
1216,
9150,
503,
288,
1377,
1635,
366,
3447,
273,
394,
4317,
5621,
1377,
6458,
2573,
273,
446,
31,
5411,
309,
261,
76,
3805,
18,
12298,
653,
12,
25368,
67,
3297,
3719,
540,
2573,
273,
261,
3916,
13,
76,
3805,
18,
588,
12,
25368,
67,
3297,
1769,
5411,
309,
261,
6339,
422,
446,
13,
540,
2573,
273,
6458,
18,
588,
1868,
5621,
9079,
2748,
646,
273,
446,
31,
1377,
309,
14015,
687,
273,
2703,
18,
588,
12,
6339,
16,
27404,
3719,
480,
446,
13,
288,
202,
2398,
1635,
366,
6100,
273,
2703,
18,
588,
5126,
6100,
5621,
540,
987,
328,
6100,
273,
394,
2407,
5621,
540,
1635,
366,
6100,
1997,
273,
394,
4317,
5621,
540,
1250,
324,
7417,
6100,
273,
638,
31,
540,
1250,
324,
4229,
273,
629,
31,
9079,
364,
261,
3198,
4209,
273,
366,
6100,
18,
2372,
7675,
9838,
5621,
4209,
18,
5332,
2134,
5621,
262,
5411,
328,
6100,
18,
1289,
12,
4905,
18,
4285,
10663,
9079,
1323,
261,
70,
7417,
6100,
13,
288,
5411,
9150,
1803,
14162,
273,
446,
31,
5411,
509,
277,
668,
1380,
273,
374,
31,
13491,
368,
8563,
7733,
300,
8646,
18524,
903,
486,
1440,
364,
777,
28401,
18,
5411,
368,
5928,
635,
1300,
5030,
5411,
5737,
18,
3804,
12,
80,
6100,
16,
394,
11993,
5559,
10663,
5375,
368,
5928,
635,
1300,
434,
5030,
4985,
1086,
5411,
5737,
18,
3804,
12,
80,
6100,
16,
394,
11993,
4510,
5559,
12,
76,
6100,
1997,
10019,
13491,
309,
261,
80,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1635,
1954,
1435,
1216,
9150,
503,
288,
1377,
1635,
366,
3447,
273,
394,
4317,
5621,
1377,
6458,
2573,
273,
446,
31,
5411,
309,
261,
76,
3805,
18,
12298,
653,
12,
25368,
67,
3297,
3719,
540,
2573,
273,
261,
3916,
13,
76,
3805,
18,
588,
12,
25368,
67,
3297,
1769,
5411,
309,
261,
6339,
422,
446,
13,
540,
2573,
273,
6458,
18,
588,
1868,
5621,
9079,
2748,
646,
273,
446,
31,
1377,
309,
14015,
687,
273,
2703,
18,
588,
12,
6339,
16,
27404,
3719,
480,
446,
13,
288,
202,
2398,
1635,
366,
6100,
273,
2703,
18,
588,
5126,
6100,
5621,
540,
987,
328,
6100,
273,
394,
2407,
5621,
540,
1635,
366,
6100,
1997,
273,
394,
4317,
5621,
540,
2
] |
revalidate(); repaint(); }
|
}
|
public void updateUI() { setUI((ToolBarUI) UIManager.getUI(this)); revalidate(); repaint(); } // updateUI()
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7cc107e01ff95c250142dda3e246542e1b0c0794/JToolBar.java/clean/core/src/classpath/javax/javax/swing/JToolBar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
5370,
1435,
225,
288,
565,
444,
5370,
12443,
6364,
5190,
5370,
13,
6484,
1318,
18,
588,
5370,
12,
2211,
10019,
565,
283,
5662,
5621,
565,
24962,
5621,
202,
97,
368,
1089,
5370,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
918,
1089,
5370,
1435,
225,
288,
565,
444,
5370,
12443,
6364,
5190,
5370,
13,
6484,
1318,
18,
588,
5370,
12,
2211,
10019,
565,
283,
5662,
5621,
565,
24962,
5621,
202,
97,
368,
1089,
5370,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
textEditor.setBounds(2, 1, Math.min(textSize.x, parentSize.x - 4), parentSize.y - 2);
|
textEditor.setBounds(2, INSET, Math.min(textSize.x, parentSize.x - 4), parentSize.y - 2*INSET);
|
private void queryNewResourceNameInline(final IResource resource) { // Make sure text editor is created only once. Simply reset text // editor when action is executed more than once. Fixes bug 22269. if (textEditorParent == null) { createTextEditor(resource); } textEditor.setText(resource.getName()); // Open text editor with initial size. textEditorParent.setVisible(true); Point textSize = textEditor.computeSize(SWT.DEFAULT, SWT.DEFAULT); textSize.x += textSize.y; // Add extra space for new characters. Point parentSize = textEditorParent.getSize(); textEditor.setBounds(2, 1, Math.min(textSize.x, parentSize.x - 4), parentSize.y - 2); textEditorParent.redraw(); textEditor.selectAll (); textEditor.setFocus ();}
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9c36eca0849892d0cf905e9c4bae06ffad74c2a3/RenameResourceAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RenameResourceAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
843,
1908,
19327,
10870,
12,
6385,
467,
1420,
1058,
13,
288,
202,
759,
4344,
3071,
977,
4858,
353,
2522,
1338,
3647,
18,
9587,
1283,
2715,
977,
225,
202,
759,
4858,
1347,
1301,
353,
7120,
1898,
2353,
3647,
18,
12139,
281,
7934,
576,
3787,
8148,
18,
202,
430,
261,
955,
6946,
3054,
422,
446,
13,
288,
202,
202,
2640,
1528,
6946,
12,
3146,
1769,
202,
97,
202,
955,
6946,
18,
542,
1528,
12,
3146,
18,
17994,
10663,
202,
759,
3502,
977,
4858,
598,
2172,
963,
18,
202,
955,
6946,
3054,
18,
542,
6207,
12,
3767,
1769,
202,
2148,
977,
1225,
273,
977,
6946,
18,
9200,
1225,
12,
55,
8588,
18,
5280,
16,
348,
8588,
18,
5280,
1769,
202,
955,
1225,
18,
92,
1011,
977,
1225,
18,
93,
31,
368,
1436,
2870,
3476,
364,
394,
3949,
18,
202,
2148,
982,
1225,
273,
977,
6946,
3054,
18,
588,
1225,
5621,
202,
955,
6946,
18,
542,
5694,
12,
22,
16,
404,
16,
2361,
18,
1154,
12,
955,
1225,
18,
92,
16,
982,
1225,
18,
92,
300,
1059,
3631,
982,
1225,
18,
93,
300,
576,
1769,
202,
955,
6946,
3054,
18,
1118,
1899,
5621,
202,
955,
6946,
18,
4025,
1595,
261,
1769,
202,
955,
6946,
18,
542,
9233,
261,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
843,
1908,
19327,
10870,
12,
6385,
467,
1420,
1058,
13,
288,
202,
759,
4344,
3071,
977,
4858,
353,
2522,
1338,
3647,
18,
9587,
1283,
2715,
977,
225,
202,
759,
4858,
1347,
1301,
353,
7120,
1898,
2353,
3647,
18,
12139,
281,
7934,
576,
3787,
8148,
18,
202,
430,
261,
955,
6946,
3054,
422,
446,
13,
288,
202,
202,
2640,
1528,
6946,
12,
3146,
1769,
202,
97,
202,
955,
6946,
18,
542,
1528,
12,
3146,
18,
17994,
10663,
202,
759,
3502,
977,
4858,
598,
2172,
963,
18,
202,
955,
6946,
3054,
18,
542,
6207,
12,
3767,
1769,
202,
2148,
977,
1225,
273,
977,
6946,
18,
9200,
1225,
12,
55,
8588,
18,
5280,
16,
348,
8588,
18,
5280,
1769,
202,
2
] |
final SVGDocumentLoaderEvent ev = new SVGDocumentLoaderEvent(this, null);
|
final SVGDocumentLoaderEvent ev = new SVGDocumentLoaderEvent(this, null);
|
protected void fireFailedEvent() { final Object[] dll = listeners.toArray(); if (dll.length > 0) { final SVGDocumentLoaderEvent ev = new SVGDocumentLoaderEvent(this, null); if (EventQueue.isDispatchThread()) { for (int i = 0; i < dll.length; i++) { SVGDocumentLoaderListener dl = (SVGDocumentLoaderListener)dll[i]; dl.documentLoadingFailed(ev); } } else { EventQueue.invokeLater(new Runnable() { public void run() { for (int i = 0; i < dll.length; i++) { SVGDocumentLoaderListener dl = (SVGDocumentLoaderListener)dll[i]; dl.documentLoadingFailed(ev); } } }); } } }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/cd9e83a8ff2a2bc22d612424047b46b450e6d092/SVGDocumentLoader.java/clean/sources/org/apache/batik/swing/svg/SVGDocumentLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4452,
2925,
1133,
1435,
288,
3639,
727,
1033,
8526,
302,
2906,
273,
4679,
18,
31447,
5621,
3639,
309,
261,
27670,
18,
2469,
405,
374,
13,
288,
5411,
727,
11281,
2519,
2886,
1133,
2113,
273,
394,
11281,
2519,
2886,
1133,
12,
2211,
16,
446,
1769,
5411,
309,
261,
1133,
3183,
18,
291,
5325,
3830,
10756,
288,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
302,
2906,
18,
2469,
31,
277,
27245,
288,
10792,
11281,
2519,
2886,
2223,
8910,
273,
261,
26531,
2519,
2886,
2223,
13,
27670,
63,
77,
15533,
10792,
8910,
18,
5457,
10515,
2925,
12,
14965,
1769,
7734,
289,
5411,
289,
469,
288,
7734,
2587,
3183,
18,
14407,
20607,
12,
2704,
10254,
1435,
288,
10792,
1071,
918,
1086,
1435,
288,
13491,
364,
261,
474,
277,
273,
374,
31,
277,
411,
302,
2906,
18,
2469,
31,
277,
27245,
288,
18701,
11281,
2519,
2886,
2223,
8910,
273,
27573,
261,
26531,
2519,
2886,
2223,
13,
27670,
63,
77,
15533,
18701,
8910,
18,
5457,
10515,
2925,
12,
14965,
1769,
13491,
289,
10792,
289,
7734,
15549,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4452,
2925,
1133,
1435,
288,
3639,
727,
1033,
8526,
302,
2906,
273,
4679,
18,
31447,
5621,
3639,
309,
261,
27670,
18,
2469,
405,
374,
13,
288,
5411,
727,
11281,
2519,
2886,
1133,
2113,
273,
394,
11281,
2519,
2886,
1133,
12,
2211,
16,
446,
1769,
5411,
309,
261,
1133,
3183,
18,
291,
5325,
3830,
10756,
288,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
302,
2906,
18,
2469,
31,
277,
27245,
288,
10792,
11281,
2519,
2886,
2223,
8910,
273,
261,
26531,
2519,
2886,
2223,
13,
27670,
63,
77,
15533,
10792,
8910,
18,
5457,
10515,
2925,
12,
14965,
1769,
7734,
289,
5411,
289,
469,
288,
7734,
2587,
3183,
18,
14407,
20607,
12,
2704,
10254,
1435,
288,
2
] |
throw new IllegalAssignmentError();
|
throw new IllegalAssignmentError();
|
public void checkAccess(Object obj) { if ((obj != null) && (obj.memoryArea != null) && obj.memoryArea.scoped) {// Sun's libraries are broken - just annotate that this is the problem area... throw new IllegalAssignmentError();// java_lang_Brokenness++; } }
|
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/386b9b1983e45a74fda7ac6717d2c136e42d1c6f/MemoryArea.java/clean/MemoryArea.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
28484,
12,
921,
1081,
13,
288,
202,
430,
14015,
2603,
480,
446,
13,
597,
261,
2603,
18,
7858,
5484,
480,
446,
13,
597,
3196,
565,
1081,
18,
7858,
5484,
18,
27474,
13,
288,
759,
31608,
1807,
14732,
854,
12933,
300,
2537,
13795,
716,
333,
353,
326,
6199,
5091,
2777,
21114,
225,
604,
394,
2141,
7729,
668,
5621,
759,
202,
565,
2252,
67,
4936,
67,
29559,
4496,
9904,
31,
225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
28484,
12,
921,
1081,
13,
288,
202,
430,
14015,
2603,
480,
446,
13,
597,
261,
2603,
18,
7858,
5484,
480,
446,
13,
597,
3196,
565,
1081,
18,
7858,
5484,
18,
27474,
13,
288,
759,
31608,
1807,
14732,
854,
12933,
300,
2537,
13795,
716,
333,
353,
326,
6199,
5091,
2777,
21114,
225,
604,
394,
2141,
7729,
668,
5621,
759,
202,
565,
2252,
67,
4936,
67,
29559,
4496,
9904,
31,
225,
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
] |
public void handleEvent(Event event) { // We need to async the message update since the Show precedes visibility shell.getDisplay().asyncExec(new Runnable() { public void run() { setMessage(message); } }); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/18d6e658dfbeda87524388388c4d4c049701f36f/ProgressMonitorDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ProgressMonitorDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
225,
918,
225,
1640,
1133,
12,
1133,
225,
871,
13,
225,
288,
9506,
202,
759,
225,
1660,
225,
1608,
225,
358,
225,
4326,
225,
326,
225,
883,
225,
1089,
225,
3241,
225,
326,
225,
9674,
225,
10575,
281,
225,
9478,
9506,
202,
10304,
18,
588,
4236,
7675,
3810,
1905,
12,
2704,
225,
10254,
1435,
225,
288,
6862,
202,
482,
225,
918,
225,
1086,
1435,
225,
288,
25083,
202,
542,
1079,
12,
2150,
1769,
6862,
202,
97,
9506,
202,
22938,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
225,
918,
225,
1640,
1133,
12,
1133,
225,
871,
13,
225,
288,
9506,
202,
759,
225,
1660,
225,
1608,
225,
358,
225,
4326,
225,
326,
225,
883,
225,
1089,
225,
3241,
225,
326,
225,
9674,
225,
10575,
281,
225,
9478,
9506,
202,
10304,
18,
588,
4236,
7675,
3810,
1905,
12,
2704,
225,
10254,
1435,
225,
288,
6862,
202,
482,
225,
918,
225,
1086,
1435,
225,
288,
25083,
202,
542,
1079,
12,
2150,
1769,
6862,
202,
97,
9506,
202,
22938,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
return RubyBoolean.newBoolean(getRuntime(), Modifier.isFinal(field.getModifiers()));
|
return getRuntime().newBoolean(Modifier.isFinal(field.getModifiers()));
|
public RubyBoolean final_p() { return RubyBoolean.newBoolean(getRuntime(), Modifier.isFinal(field.getModifiers())); }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/buggy/src/org/jruby/javasupport/JavaField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
727,
67,
84,
1435,
288,
3639,
327,
18814,
7675,
2704,
5507,
12,
9829,
18,
291,
7951,
12,
1518,
18,
588,
11948,
1435,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
727,
67,
84,
1435,
288,
3639,
327,
18814,
7675,
2704,
5507,
12,
9829,
18,
291,
7951,
12,
1518,
18,
588,
11948,
1435,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
component.setId( persistSoftware( component ).getId() );
|
component = persistSoftware( component );
|
private Software persistSoftware( Software software ) { if ( software == null ) return null; if ( !isTransient( software ) ) return software; Collection<Software> components = software.getSoftwareComponents(); if ( components != null && components.size() > 0 ) { for ( Software component : components ) { component.setId( persistSoftware( component ).getId() ); } } if ( software.getSoftwareManufacturers() != null && software.getSoftwareManufacturers().size() > 0 ) { for ( Contact manufacturer : software.getSoftwareManufacturers() ) { manufacturer.setId( persistContact( manufacturer ).getId() ); } } software.setHardware( persistHardware( software.getHardware() ) ); return softwareService.findOrCreate( software ); }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/64a20b5a9cd97b9224e94a2b801acf887314fa39/PersisterHelper.java/buggy/src/impl/edu/columbia/gemma/loader/loaderutils/PersisterHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
24199,
3898,
21742,
12,
24199,
17888,
262,
288,
3639,
309,
261,
17888,
422,
446,
262,
327,
446,
31,
3639,
309,
261,
401,
291,
19638,
12,
17888,
262,
262,
327,
17888,
31,
3639,
2200,
32,
21742,
34,
4085,
273,
17888,
18,
588,
21742,
7171,
5621,
3639,
309,
261,
4085,
480,
446,
597,
4085,
18,
1467,
1435,
405,
374,
262,
288,
5411,
364,
261,
24199,
1794,
294,
4085,
262,
288,
7734,
1794,
273,
3898,
21742,
12,
1794,
11272,
5411,
289,
3639,
289,
3639,
309,
261,
17888,
18,
588,
21742,
5669,
11853,
295,
414,
1435,
480,
446,
597,
17888,
18,
588,
21742,
5669,
11853,
295,
414,
7675,
1467,
1435,
405,
374,
262,
288,
5411,
364,
261,
13329,
23803,
294,
17888,
18,
588,
21742,
5669,
11853,
295,
414,
1435,
262,
288,
7734,
23803,
18,
542,
548,
12,
3898,
6567,
12,
23803,
262,
18,
26321,
1435,
11272,
5411,
289,
3639,
289,
3639,
17888,
18,
542,
44,
14519,
12,
3898,
44,
14519,
12,
17888,
18,
588,
44,
14519,
1435,
262,
11272,
3639,
327,
17888,
1179,
18,
4720,
17717,
12,
17888,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
24199,
3898,
21742,
12,
24199,
17888,
262,
288,
3639,
309,
261,
17888,
422,
446,
262,
327,
446,
31,
3639,
309,
261,
401,
291,
19638,
12,
17888,
262,
262,
327,
17888,
31,
3639,
2200,
32,
21742,
34,
4085,
273,
17888,
18,
588,
21742,
7171,
5621,
3639,
309,
261,
4085,
480,
446,
597,
4085,
18,
1467,
1435,
405,
374,
262,
288,
5411,
364,
261,
24199,
1794,
294,
4085,
262,
288,
7734,
1794,
273,
3898,
21742,
12,
1794,
11272,
5411,
289,
3639,
289,
3639,
309,
261,
17888,
18,
588,
21742,
5669,
11853,
295,
414,
1435,
480,
446,
597,
17888,
18,
588,
21742,
5669,
11853,
295,
414,
7675,
1467,
1435,
405,
374,
262,
288,
5411,
364,
261,
13329,
23803,
294,
17888,
2
] |
buffer.append(serialFormat.format(atomNumber));
|
fsb.reset(SERIAL_FORMAT).format(atomNumber); buffer.append(fsb.toString());
|
public void writeMolecule(IMolecule molecule) throws CDKException { try { int na = 0; int atomNumber = 1; String info = ""; String st = ""; String tab = "\t"; boolean writecharge = false; boolean writevect = false; String hetatmRecordName = "HETATM"; String terRecordName = "TER"; FormatStringBuffer serialFormat = new FormatStringBuffer("%5d"); FormatStringBuffer atomNameFormat = new FormatStringBuffer("%-4s"); FormatStringBuffer positionFormat = new FormatStringBuffer("%8.3f"); // Loop through the atoms and write them out: StringBuffer buffer = new StringBuffer(); IAtom[] atoms = molecule.getAtoms(); for (int i = 0; i < atoms.length; i++) { buffer.setLength(0); buffer.append(hetatmRecordName); buffer.append(serialFormat.format(atomNumber)); buffer.append(' '); IAtom atom = atoms[i]; buffer.append(atomNameFormat.format(atom.getSymbol())); buffer.append(" MOL "); Point3d position = atom.getPoint3d(); buffer.append(positionFormat.format(position.x)); buffer.append(positionFormat.format(position.y)); buffer.append(positionFormat.format(position.z)); writer.write(buffer.toString(), 0, buffer.length()); writer.newLine(); ++atomNumber; } writer.write(terRecordName, 0, terRecordName.length()); writer.newLine(); } catch (IOException exception) { throw new CDKException("Error while writing file: " + exception.getMessage(), exception); } }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/5b12d000da554eb740efe6d8f9345260b5634be6/PDBWriter.java/clean/src/org/openscience/cdk/io/PDBWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1045,
29669,
12,
3445,
10545,
13661,
13,
1216,
24570,
288,
2868,
775,
288,
6647,
509,
9583,
273,
374,
31,
6647,
509,
3179,
1854,
273,
404,
31,
6647,
514,
1123,
273,
1408,
31,
6647,
514,
384,
273,
1408,
31,
6647,
514,
3246,
273,
1548,
88,
14432,
6647,
1250,
1045,
16385,
273,
629,
31,
6647,
1250,
1045,
29959,
273,
629,
31,
8227,
514,
366,
278,
270,
81,
2115,
461,
273,
315,
44,
1584,
789,
49,
14432,
6647,
514,
19272,
2115,
461,
273,
315,
2560,
14432,
6647,
4077,
780,
1892,
2734,
1630,
273,
394,
4077,
780,
1892,
27188,
25,
72,
8863,
6647,
4077,
780,
1892,
3179,
461,
1630,
273,
394,
4077,
780,
1892,
27188,
17,
24,
87,
8863,
6647,
4077,
780,
1892,
1754,
1630,
273,
394,
4077,
780,
1892,
27188,
28,
18,
23,
74,
8863,
8227,
368,
9720,
3059,
326,
9006,
471,
1045,
2182,
596,
30,
6647,
6674,
1613,
273,
394,
6674,
5621,
6647,
8831,
8526,
9006,
273,
13661,
18,
588,
14280,
5621,
6647,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9006,
18,
2469,
31,
277,
27245,
288,
9079,
1613,
18,
542,
1782,
12,
20,
1769,
9079,
1613,
18,
6923,
12,
76,
278,
270,
81,
2115,
461,
1769,
9079,
2662,
70,
18,
6208,
12,
2123,
6365,
67,
7254,
2934,
2139,
12,
7466,
1854,
1769,
1613,
18,
6923,
12,
2556,
70,
18,
10492,
10663,
9079,
1613,
18,
6923,
2668,
28005,
9079,
8831,
3179,
273,
9006,
63,
77,
15533,
9079,
1613,
18,
6923,
12,
7466,
461,
1630,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1045,
29669,
12,
3445,
10545,
13661,
13,
1216,
24570,
288,
2868,
775,
288,
6647,
509,
9583,
273,
374,
31,
6647,
509,
3179,
1854,
273,
404,
31,
6647,
514,
1123,
273,
1408,
31,
6647,
514,
384,
273,
1408,
31,
6647,
514,
3246,
273,
1548,
88,
14432,
6647,
1250,
1045,
16385,
273,
629,
31,
6647,
1250,
1045,
29959,
273,
629,
31,
8227,
514,
366,
278,
270,
81,
2115,
461,
273,
315,
44,
1584,
789,
49,
14432,
6647,
514,
19272,
2115,
461,
273,
315,
2560,
14432,
6647,
4077,
780,
1892,
2734,
1630,
273,
394,
4077,
780,
1892,
27188,
25,
72,
8863,
6647,
4077,
780,
1892,
3179,
461,
1630,
273,
394,
4077,
780,
1892,
27188,
17,
24,
87,
8863,
6647,
2
] |
"-N", "-d", CVSElement.formatCVSDate(lastBuildTime) + "<" + CVSElement.formatCVSDate(currTime), "."};
|
"-N", "-d", ">" + CVSElement.formatCVSDate(lastBuildTime), "."};
|
public void testBuildHistoryCommand() { Date lastBuildTime = new Date(); Date currTime = new Date(); CVSElement element = new CVSElement(); element.setCvsRoot("cvsroot"); element.setLocalWorkingCopy("."); String[] expectedCommand = new String[]{"cvs", "-d", "cvsroot", "log", "-N", "-d", CVSElement.formatCVSDate(lastBuildTime) + "<" + CVSElement.formatCVSDate(currTime), "."}; String[] actualCommand = element.buildHistoryCommand(lastBuildTime, currTime).getCommandline(); assertEquals("Mismatched lengths!", expectedCommand.length, actualCommand.length); for (int i = 0; i < expectedCommand.length; i++) { assertEquals(expectedCommand[i], actualCommand[i]); } }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/04f3fa41dccd233273f76f0539e30be38c0e595e/CVSElementTest.java/buggy/main/test/net/sourceforge/cruisecontrol/element/CVSElementTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3116,
5623,
2189,
1435,
288,
202,
202,
1626,
1142,
3116,
950,
273,
394,
2167,
5621,
202,
202,
1626,
4306,
950,
273,
394,
2167,
5621,
202,
202,
39,
14640,
1046,
930,
273,
394,
385,
14640,
1046,
5621,
202,
202,
2956,
18,
542,
39,
6904,
2375,
2932,
71,
6904,
3085,
8863,
202,
202,
2956,
18,
542,
2042,
14836,
2951,
2932,
1199,
1769,
202,
202,
780,
8526,
2665,
2189,
273,
394,
514,
63,
7073,
6,
71,
6904,
3113,
3701,
72,
3113,
315,
71,
6904,
3085,
3113,
315,
1330,
3113,
9506,
202,
6,
17,
50,
3113,
3701,
72,
3113,
385,
14640,
1046,
18,
2139,
39,
14640,
1626,
12,
2722,
3116,
950,
13,
397,
18165,
6862,
397,
385,
14640,
1046,
18,
2139,
39,
14640,
1626,
12,
17016,
950,
3631,
4585,
20451,
202,
202,
780,
8526,
3214,
2189,
273,
9506,
202,
2956,
18,
3510,
5623,
2189,
12,
2722,
3116,
950,
16,
4306,
950,
2934,
588,
2189,
1369,
5621,
202,
202,
11231,
8867,
2932,
11729,
11073,
10917,
5,
3113,
2665,
2189,
18,
2469,
16,
9506,
202,
18672,
2189,
18,
2469,
1769,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2665,
2189,
18,
2469,
31,
277,
27245,
288,
1082,
202,
11231,
8867,
12,
3825,
2189,
63,
77,
6487,
3214,
2189,
63,
77,
19226,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3116,
5623,
2189,
1435,
288,
202,
202,
1626,
1142,
3116,
950,
273,
394,
2167,
5621,
202,
202,
1626,
4306,
950,
273,
394,
2167,
5621,
202,
202,
39,
14640,
1046,
930,
273,
394,
385,
14640,
1046,
5621,
202,
202,
2956,
18,
542,
39,
6904,
2375,
2932,
71,
6904,
3085,
8863,
202,
202,
2956,
18,
542,
2042,
14836,
2951,
2932,
1199,
1769,
202,
202,
780,
8526,
2665,
2189,
273,
394,
514,
63,
7073,
6,
71,
6904,
3113,
3701,
72,
3113,
315,
71,
6904,
3085,
3113,
315,
1330,
3113,
9506,
202,
6,
17,
50,
3113,
3701,
72,
3113,
385,
14640,
1046,
18,
2139,
39,
14640,
1626,
12,
2722,
3116,
950,
13,
397,
18165,
6862,
397,
385,
14640,
2
] |
public static void main (String[] args) {
|
public static void main (String[] args) throws Exception {
|
public static void main (String[] args) { System.out.println("Main.main"); new Main().test1(); new Main().test2(); }
|
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/3226d27a82e968da0f04e6b4fb5a29a03fbdb0f5/Main.java/clean/tests/ltw/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
261,
780,
8526,
833,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
6376,
18,
5254,
8863,
202,
202,
2704,
12740,
7675,
3813,
21,
5621,
202,
202,
2704,
12740,
7675,
3813,
22,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
261,
780,
8526,
833,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
6376,
18,
5254,
8863,
202,
202,
2704,
12740,
7675,
3813,
21,
5621,
202,
202,
2704,
12740,
7675,
3813,
22,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
while (enum.hasMoreElements())
|
while (enum.hasMoreElements()) {
|
private void testAppender() { int nbAppenders = 0; Enumeration enum = Logger.getRootLogger().getAllAppenders(); while (enum.hasMoreElements()) nbAppenders++; if (nbAppenders == 0) { File log = new File(System.getProperty("user.home") + File.separatorChar + "tests.log"); FileOutputStream out = null; try { out = new FileOutputStream(log); } catch (FileNotFoundException e) { logger.warn("Log file not found", e); } Logger.getRootLogger().addAppender(new WriterAppender( new PatternLayout("%d [%t] %-5p %c %x - %m%n"), out)); Logger.getRootLogger().setLevel((Level) Level.INFO); }
|
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/b7d924d59f3f1800ca4e70c24f5bb885fb2edfc0/AbstractManager.java/buggy/src/testsuite/manager/AbstractManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1842,
17302,
1435,
288,
3639,
509,
4264,
5736,
414,
273,
374,
31,
3639,
13864,
2792,
273,
4242,
18,
588,
2375,
3328,
7675,
588,
1595,
5736,
414,
5621,
540,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
288,
5411,
4264,
5736,
414,
9904,
31,
3639,
309,
261,
6423,
5736,
414,
422,
374,
13,
288,
5411,
1387,
613,
273,
394,
1387,
12,
3163,
18,
588,
1396,
2932,
1355,
18,
8712,
7923,
397,
10792,
1387,
18,
11287,
2156,
397,
315,
16341,
18,
1330,
8863,
5411,
12942,
596,
273,
446,
31,
5411,
775,
288,
7734,
596,
273,
394,
12942,
12,
1330,
1769,
5411,
289,
1044,
261,
812,
3990,
425,
13,
288,
7734,
1194,
18,
8935,
2932,
1343,
585,
486,
1392,
3113,
425,
1769,
5411,
289,
5411,
4242,
18,
588,
2375,
3328,
7675,
1289,
17302,
12,
2704,
5497,
17302,
12,
10792,
394,
6830,
3744,
27188,
72,
9799,
88,
65,
738,
17,
25,
84,
738,
71,
738,
92,
300,
738,
81,
9,
82,
6,
3631,
596,
10019,
5411,
4242,
18,
588,
2375,
3328,
7675,
542,
2355,
12443,
2355,
13,
4557,
18,
5923,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1842,
17302,
1435,
288,
3639,
509,
4264,
5736,
414,
273,
374,
31,
3639,
13864,
2792,
273,
4242,
18,
588,
2375,
3328,
7675,
588,
1595,
5736,
414,
5621,
540,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
288,
5411,
4264,
5736,
414,
9904,
31,
3639,
309,
261,
6423,
5736,
414,
422,
374,
13,
288,
5411,
1387,
613,
273,
394,
1387,
12,
3163,
18,
588,
1396,
2932,
1355,
18,
8712,
7923,
397,
10792,
1387,
18,
11287,
2156,
397,
315,
16341,
18,
1330,
8863,
5411,
12942,
596,
273,
446,
31,
5411,
775,
288,
7734,
596,
273,
394,
12942,
12,
1330,
1769,
5411,
289,
1044,
261,
812,
3990,
425,
13,
288,
7734,
1194,
18,
8935,
2932,
1343,
585,
486,
1392,
2
] |
public org.quickfix.field.CFICode getCFICode() throws FieldNotFound { org.quickfix.field.CFICode value = new org.quickfix.field.CFICode();
|
public quickfix.field.CFICode getCFICode() throws FieldNotFound { quickfix.field.CFICode value = new quickfix.field.CFICode();
|
public org.quickfix.field.CFICode getCFICode() throws FieldNotFound { org.quickfix.field.CFICode value = new org.quickfix.field.CFICode(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderSingle.java/buggy/src/java/src/quickfix/fix43/NewOrderSingle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
1927,
1653,
1085,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
1927,
1653,
1085,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int size = column.getSize();
|
int size = column.getSizeAsInt();
|
public String getSQLType(Column column) { StringBuffer result = new StringBuffer(sqlName); int size = column.getSize(); int scale = column.getScale(); if (SIZE_FORMAT.equals(format)) { if (size > 1) { result.append("("); result.append(size); result.append(")"); } } else if (SIZE_SCALE_FORMAT.equals(format)) { if (size > 0) { result.append("("); result.append(size); if (scale != 0) { result.append(", "); result.append(scale); } result.append(")"); } } else if (format != null) { result.append(format); } return result.toString(); }
|
3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/b37df4b4aa392877a069d57cd5ad21cf8724bbdc/Mapping.java/buggy/src/java/org/apache/commons/sql/type/Mapping.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
21708,
559,
12,
1494,
1057,
13,
288,
3639,
6674,
563,
273,
394,
6674,
12,
4669,
461,
1769,
3639,
509,
963,
273,
1057,
18,
588,
1225,
31720,
5621,
3639,
509,
3159,
273,
1057,
18,
588,
5587,
5621,
3639,
309,
261,
4574,
67,
7254,
18,
14963,
12,
2139,
3719,
288,
5411,
309,
261,
1467,
405,
404,
13,
288,
7734,
563,
18,
6923,
2932,
2932,
1769,
7734,
563,
18,
6923,
12,
1467,
1769,
7734,
563,
18,
6923,
2932,
2225,
1769,
5411,
289,
3639,
289,
469,
309,
261,
4574,
67,
19378,
67,
7254,
18,
14963,
12,
2139,
3719,
288,
5411,
309,
261,
1467,
405,
374,
13,
288,
7734,
563,
18,
6923,
2932,
2932,
1769,
7734,
563,
18,
6923,
12,
1467,
1769,
7734,
309,
261,
5864,
480,
374,
13,
288,
10792,
563,
18,
6923,
2932,
16,
315,
1769,
10792,
563,
18,
6923,
12,
5864,
1769,
7734,
289,
7734,
563,
18,
6923,
2932,
2225,
1769,
5411,
289,
3639,
289,
469,
309,
261,
2139,
480,
446,
13,
288,
5411,
563,
18,
6923,
12,
2139,
1769,
3639,
289,
540,
327,
563,
18,
10492,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
21708,
559,
12,
1494,
1057,
13,
288,
3639,
6674,
563,
273,
394,
6674,
12,
4669,
461,
1769,
3639,
509,
963,
273,
1057,
18,
588,
1225,
31720,
5621,
3639,
509,
3159,
273,
1057,
18,
588,
5587,
5621,
3639,
309,
261,
4574,
67,
7254,
18,
14963,
12,
2139,
3719,
288,
5411,
309,
261,
1467,
405,
404,
13,
288,
7734,
563,
18,
6923,
2932,
2932,
1769,
7734,
563,
18,
6923,
12,
1467,
1769,
7734,
563,
18,
6923,
2932,
2225,
1769,
5411,
289,
3639,
289,
469,
309,
261,
4574,
67,
19378,
67,
7254,
18,
14963,
12,
2139,
3719,
288,
5411,
309,
261,
1467,
405,
374,
13,
288,
7734,
563,
18,
6923,
2932,
2932,
1769,
7734,
563,
18,
6923,
12,
1467,
2
] |
pushFollow(FOLLOW_lhs_column_in_lhs_exist3016);
|
pushFollow(FOLLOW_lhs_column_in_lhs_exist3142);
|
public BaseDescr lhs_exist() throws RecognitionException { BaseDescr d = null; Token loc=null; BaseDescr column = null; d = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:4: (loc= 'exists' ( ( '(' lhs_column ')' )=> '(' column= lhs_column ')' | column= lhs_column ) ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:4: loc= 'exists' ( ( '(' lhs_column ')' )=> '(' column= lhs_column ')' | column= lhs_column ) { loc=(Token)input.LT(1); match(input,70,FOLLOW_70_in_lhs_exist3001); if (failed) return d; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:17: ( ( '(' lhs_column ')' )=> '(' column= lhs_column ')' | column= lhs_column ) int alt45=2; int LA45_0 = input.LA(1); if ( (LA45_0==LEFT_PAREN) ) { alt45=1; } else if ( (LA45_0==ID) ) { alt45=2; } else { if (backtracking>0) {failed=true; return d;} NoViableAltException nvae = new NoViableAltException("1221:17: ( ( '(' lhs_column ')' )=> '(' column= lhs_column ')' | column= lhs_column )", 45, 0, input); throw nvae; } switch (alt45) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:18: ( '(' lhs_column ')' )=> '(' column= lhs_column ')' { match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_exist3004); if (failed) return d; pushFollow(FOLLOW_lhs_column_in_lhs_exist3008); column=lhs_column(); _fsp--; if (failed) return d; match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_exist3010); if (failed) return d; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1221:46: column= lhs_column { pushFollow(FOLLOW_lhs_column_in_lhs_exist3016); column=lhs_column(); _fsp--; if (failed) return d; } break; } if ( backtracking==0 ) { d = new ExistsDescr( (ColumnDescr) column ); d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f28aebf2f687a31e4e9c59db745d1344bea3d924/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3360,
16198,
8499,
67,
7398,
1435,
1216,
9539,
288,
6647,
3360,
16198,
302,
273,
446,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3360,
16198,
1057,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
2138,
5340,
30,
24,
30,
261,
1829,
33,
296,
1808,
11,
261,
261,
7321,
8499,
67,
2827,
5777,
13216,
7321,
1057,
33,
8499,
67,
2827,
5777,
571,
1057,
33,
8499,
67,
2827,
262,
262,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
2138,
5340,
30,
24,
30,
1515,
33,
296,
1808,
11,
261,
261,
7321,
8499,
67,
2827,
5777,
13216,
7321,
1057,
33,
8499,
67,
2827,
5777,
571,
1057,
33,
8499,
67,
2827,
262,
5411,
288,
5411,
1515,
28657,
1345,
13,
2630,
18,
12050,
12,
21,
1769,
5411,
845,
12,
2630,
16,
7301,
16,
29890,
67,
7301,
67,
267,
67,
80,
4487,
67,
7398,
23,
11664,
1769,
309,
261,
7307,
13,
327,
302,
31,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3360,
16198,
8499,
67,
7398,
1435,
1216,
9539,
288,
6647,
3360,
16198,
302,
273,
446,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3360,
16198,
1057,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
2138,
5340,
30,
24,
30,
261,
1829,
33,
296,
1808,
11,
261,
261,
7321,
8499,
67,
2827,
5777,
13216,
7321,
1057,
33,
8499,
67,
2827,
5777,
571,
1057,
33,
8499,
67,
2827,
262,
262,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
2
] |
((FilterDescription) obj).setTableConstraint((String)aValue);
|
((FilterDescription) obj).setLegalQualifiers((String) aValue);
|
public void setValueAt(Object aValue, int rowIndex, int columnIndex) { //Sets the value in the cell at columnIndex and rowIndex to aValue. if (columnIndex == 1) { switch (rowIndex) { case 0: obj.setDescription((String)aValue); case 1: obj.setDisplayName((String)aValue); case 2: obj.setInternalName((String)aValue); /* case 3: { if (objClass.equals("org.ensembl.mart.lib.config.FilterDescription")) ((FilterDescription)obj).setIsSelectable((String)aValue); else if (objClass.equals("org.ensembl.mart.lib.config.AttributeDescription")) ((AttributeDescription) obj).setField((String)aValue); } case 4: { if (objClass.equals("org.ensembl.mart.lib.config.FilterDescription")) ((FilterDescription) obj).setLegalQualifiers((String)aValue); else if (objClass.equals("org.ensembl.mart.lib.config.AttributeDescription")) ((AttributeDescription) obj).setTableConstraint((String)aValue); } case 5: { if (objClass.equals("org.ensembl.mart.lib.config.FilterDescription")) ((FilterDescription) obj).setQualifier((String)aValue); else if (objClass.equals("org.ensembl.mart.lib.config.AttributeDescription")) new Long(((AttributeDescription) obj).setMaxLength((String)aValue)); } case 6: { if (objClass.equals("org.ensembl.mart.lib.config.FilterDescription")) ((FilterDescription) obj).setTableConstraint((String)aValue); else if (objClass.equals("org.ensembl.mart.lib.config.AttributeDescription")) ((AttributeDescription) obj).setSource((String)aValue); } case 7: { if (objClass.equals("org.ensembl.mart.lib.config.FilterDescription")) ((FilterDescription) obj).setType((String)aValue); else if (objClass.equals("org.ensembl.mart.lib.config.AttributeDescription")) ((AttributeDescription) obj).setHomePageURL((String)aValue); } case 8: { if (objClass.equals("org.ensembl.mart.lib.config.FilterDescription")) return ""; else if (objClass.equals("org.ensembl.mart.lib.config.AttributeDescription")) ((AttributeDescription) obj).setLinkoutURL((String)aValue); } */ } } TableModelEvent tme = new TableModelEvent(this, rowIndex); fireEvent(tme); node.setUserObject(obj); }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/082dd174b481a0310ab6715ad2ee8e75b718027c/DatasetViewAttributeTableModel.java/clean/src/java/org/ensembl/mart/vieweditor/DatasetViewAttributeTableModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5524,
861,
12,
921,
24406,
16,
509,
15361,
16,
509,
14882,
13,
288,
3639,
368,
2785,
326,
460,
316,
326,
2484,
622,
14882,
471,
15361,
358,
24406,
18,
540,
309,
261,
2827,
1016,
422,
404,
13,
288,
5411,
1620,
261,
492,
1016,
13,
288,
7734,
648,
374,
30,
10792,
1081,
18,
542,
3291,
12443,
780,
13,
69,
620,
1769,
7734,
648,
404,
30,
10792,
1081,
18,
542,
20524,
12443,
780,
13,
69,
620,
1769,
7734,
648,
576,
30,
10792,
1081,
18,
542,
3061,
461,
12443,
780,
13,
69,
620,
1769,
2868,
1748,
225,
648,
890,
30,
10792,
288,
13491,
309,
261,
2603,
797,
18,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
1425,
18,
1586,
3291,
6,
3719,
18701,
14015,
1586,
3291,
13,
2603,
2934,
542,
2520,
31544,
12443,
780,
13,
69,
620,
1769,
13491,
469,
309,
261,
2603,
797,
18,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
1425,
18,
1499,
3291,
6,
3719,
18701,
14015,
1499,
3291,
13,
1081,
2934,
542,
974,
12443,
780,
13,
69,
620,
1769,
10792,
289,
7734,
648,
1059,
30,
10792,
288,
13491,
309,
261,
2603,
797,
18,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
1425,
18,
1586,
3291,
6,
3719,
18701,
14015,
1586,
3291,
13,
1081,
2934,
542,
30697,
5628,
3383,
12443,
780,
13,
69,
620,
1769,
13491,
469,
309,
261,
2603,
797,
18,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
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,
5524,
861,
12,
921,
24406,
16,
509,
15361,
16,
509,
14882,
13,
288,
3639,
368,
2785,
326,
460,
316,
326,
2484,
622,
14882,
471,
15361,
358,
24406,
18,
540,
309,
261,
2827,
1016,
422,
404,
13,
288,
5411,
1620,
261,
492,
1016,
13,
288,
7734,
648,
374,
30,
10792,
1081,
18,
542,
3291,
12443,
780,
13,
69,
620,
1769,
7734,
648,
404,
30,
10792,
1081,
18,
542,
20524,
12443,
780,
13,
69,
620,
1769,
7734,
648,
576,
30,
10792,
1081,
18,
542,
3061,
461,
12443,
780,
13,
69,
620,
1769,
2868,
1748,
225,
648,
890,
30,
10792,
288,
13491,
309,
261,
2603,
797,
18,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
2
] |
void updateStores() {
|
synchronized void updateStores() {
|
void updateStores() { if (fSession == null) { getSession(); } Preferences prefs = PreferencesFactory.Get(); Vector resVector = new Vector(); String defStore = ""; if (!prefs.getString("mail.directory","").equals("")) { defStore = "berkeley"; } String storelist = prefs.getString("mail.storelist", defStore); StringTokenizer st = new StringTokenizer(storelist, " ,;"); while (st.hasMoreTokens()) { String storename = st.nextToken().trim(); ViewedStore viewedStore = null; viewedStore = findStore(storename); if (viewedStore == null) { viewedStore = createStore(storename); System.out.println("created " + viewedStore); } else { System.out.println("recycled " + viewedStore); } if (viewedStore != null) { resVector.addElement(viewedStore); } } fStores = new ViewedStore[resVector.size()]; resVector.copyInto(fStores); }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/a68603a587d888fea8830279322b976573337634/StoreFactory.java/clean/grendel/ui/StoreFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3852,
918,
1089,
13125,
1435,
288,
565,
309,
261,
74,
2157,
422,
446,
13,
288,
1377,
7183,
5621,
565,
289,
565,
28310,
15503,
273,
28310,
1733,
18,
967,
5621,
565,
5589,
400,
5018,
273,
394,
5589,
5621,
565,
514,
1652,
2257,
273,
1408,
31,
565,
309,
16051,
1484,
2556,
18,
588,
780,
2932,
4408,
18,
5149,
3113,
3660,
2934,
14963,
2932,
6,
3719,
288,
1377,
1652,
2257,
273,
315,
744,
79,
292,
402,
14432,
565,
289,
565,
514,
1707,
1098,
273,
15503,
18,
588,
780,
2932,
4408,
18,
2233,
1098,
3113,
1652,
2257,
1769,
565,
16370,
384,
273,
394,
16370,
12,
2233,
1098,
16,
315,
269,
4868,
1769,
565,
1323,
261,
334,
18,
5332,
7417,
5157,
10756,
288,
1377,
514,
1707,
529,
273,
384,
18,
4285,
1345,
7675,
5290,
5621,
1377,
4441,
329,
2257,
1476,
329,
2257,
273,
446,
31,
1377,
1476,
329,
2257,
273,
1104,
2257,
12,
2233,
529,
1769,
1377,
309,
261,
1945,
329,
2257,
422,
446,
13,
288,
3639,
1476,
329,
2257,
273,
752,
2257,
12,
2233,
529,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
4824,
315,
397,
1476,
329,
2257,
1769,
1377,
289,
469,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
266,
2431,
71,
1259,
315,
397,
1476,
329,
2257,
1769,
1377,
289,
1377,
309,
261,
1945,
329,
2257,
480,
446,
13,
288,
3639,
400,
5018,
18,
1289,
1046,
12,
1945,
329,
2257,
1769,
1377,
289,
565,
289,
565,
284,
13125,
273,
394,
4441,
329,
2257,
63,
455,
5018,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3852,
918,
1089,
13125,
1435,
288,
565,
309,
261,
74,
2157,
422,
446,
13,
288,
1377,
7183,
5621,
565,
289,
565,
28310,
15503,
273,
28310,
1733,
18,
967,
5621,
565,
5589,
400,
5018,
273,
394,
5589,
5621,
565,
514,
1652,
2257,
273,
1408,
31,
565,
309,
16051,
1484,
2556,
18,
588,
780,
2932,
4408,
18,
5149,
3113,
3660,
2934,
14963,
2932,
6,
3719,
288,
1377,
1652,
2257,
273,
315,
744,
79,
292,
402,
14432,
565,
289,
565,
514,
1707,
1098,
273,
15503,
18,
588,
780,
2932,
4408,
18,
2233,
1098,
3113,
1652,
2257,
1769,
565,
16370,
384,
273,
394,
16370,
12,
2233,
1098,
16,
315,
269,
4868,
1769,
565,
1323,
261,
334,
18,
5332,
7417,
5157,
10756,
288,
2
] |
}
|
}
|
public static void start() { ioThreadPool.start(); }
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/26b38dee02a14b58d13e0d92a6aa369fc896bee4/VFSManager.java/buggy/org/gjt/sp/jedit/io/VFSManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
787,
1435,
202,
95,
202,
202,
1594,
20621,
18,
1937,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
787,
1435,
202,
95,
202,
202,
1594,
20621,
18,
1937,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
File[] entries = path.listFiles ();
|
File[] entries = path.listFiles();
|
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
|
28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/buggy/src/lib/com/izforge/izpack/installer/CompileWorker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2407,
4135,
2853,
261,
812,
589,
13,
225,
288,
565,
4015,
18,
5129,
7566,
1017,
10903,
1867,
315,
397,
589,
18,
588,
10368,
743,
10663,
565,
2407,
563,
273,
394,
2407,
261,
1769,
565,
309,
16051,
589,
18,
291,
2853,
1832,
13,
1377,
327,
563,
31,
565,
1387,
8526,
3222,
273,
589,
18,
1098,
2697,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3222,
18,
2469,
31,
277,
27245,
565,
288,
1377,
1387,
284,
273,
3222,
63,
77,
15533,
1377,
309,
261,
74,
422,
446,
13,
1324,
31,
5411,
309,
261,
74,
18,
291,
2853,
1832,
13,
1377,
288,
3639,
563,
18,
1289,
1595,
261,
9871,
2853,
261,
74,
10019,
1377,
289,
1377,
469,
309,
14015,
74,
18,
291,
812,
10756,
597,
261,
74,
18,
17994,
7675,
869,
5630,
7675,
5839,
1190,
7566,
18,
6290,
6,
20349,
1377,
288,
3639,
563,
18,
1289,
261,
74,
1769,
1377,
289,
565,
289,
565,
327,
563,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
2407,
4135,
2853,
261,
812,
589,
13,
225,
288,
565,
4015,
18,
5129,
7566,
1017,
10903,
1867,
315,
397,
589,
18,
588,
10368,
743,
10663,
565,
2407,
563,
273,
394,
2407,
261,
1769,
565,
309,
16051,
589,
18,
291,
2853,
1832,
13,
1377,
327,
563,
31,
565,
1387,
8526,
3222,
273,
589,
18,
1098,
2697,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3222,
18,
2469,
31,
277,
27245,
565,
288,
1377,
1387,
284,
273,
3222,
63,
77,
15533,
1377,
309,
261,
74,
422,
446,
13,
1324,
31,
5411,
309,
261,
74,
18,
291,
2853,
1832,
13,
1377,
288,
3639,
563,
18,
1289,
1595,
261,
9871,
2853,
261,
74,
10019,
1377,
289,
1377,
469,
2
] |
connection.pushExpressionCommand((byte)IInternalExpressionConstants.ARRAY_ACCESS_EXPRESSION);
|
connection.pushExpressionCommand(this.hashCode(), (byte)IInternalExpressionConstants.ARRAY_ACCESS_EXPRESSION);
|
protected void pushArrayAccessToProxy(int indexCount) throws ThrowableProxy, NoExpressionValueException { try { // Format of push array access to proxy command is: // PushExpressionCommand(push array acces to proxy) followed by: // int: indexCount connection.pushExpressionCommand((byte)IInternalExpressionConstants.ARRAY_ACCESS_EXPRESSION); connection.pushInt(indexCount); } catch (IOException e) { connection.close(); ProxyPlugin.getPlugin().getLogger().log(e); markInvalid(e.getLocalizedMessage()); throwIllegalStateException(IO_EXCEPTION_MSG); } }
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/832ed8bf0a829b53209fe717a442ac2357654674/REMExpression.java/clean/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMExpression.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1817,
1076,
1862,
774,
3886,
12,
474,
770,
1380,
13,
1216,
4206,
3886,
16,
2631,
2300,
9738,
288,
202,
202,
698,
288,
1082,
202,
759,
4077,
434,
1817,
526,
2006,
358,
2889,
1296,
353,
30,
1082,
202,
759,
202,
7621,
2300,
2189,
12,
6206,
526,
1721,
764,
358,
2889,
13,
10860,
635,
30,
1082,
202,
759,
202,
202,
474,
30,
770,
1380,
1082,
202,
4071,
18,
6206,
2300,
2189,
12443,
7229,
13,
45,
3061,
2300,
2918,
18,
8552,
67,
13204,
67,
19111,
1769,
1082,
202,
4071,
18,
6206,
1702,
12,
1615,
1380,
1769,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
202,
4071,
18,
4412,
5621,
1082,
202,
3886,
3773,
18,
588,
3773,
7675,
588,
3328,
7675,
1330,
12,
73,
1769,
1082,
202,
3355,
1941,
12,
73,
18,
588,
2042,
1235,
1079,
10663,
1082,
202,
12849,
12195,
5060,
12,
4294,
67,
12658,
67,
11210,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1817,
1076,
1862,
774,
3886,
12,
474,
770,
1380,
13,
1216,
4206,
3886,
16,
2631,
2300,
9738,
288,
202,
202,
698,
288,
1082,
202,
759,
4077,
434,
1817,
526,
2006,
358,
2889,
1296,
353,
30,
1082,
202,
759,
202,
7621,
2300,
2189,
12,
6206,
526,
1721,
764,
358,
2889,
13,
10860,
635,
30,
1082,
202,
759,
202,
202,
474,
30,
770,
1380,
1082,
202,
4071,
18,
6206,
2300,
2189,
12443,
7229,
13,
45,
3061,
2300,
2918,
18,
8552,
67,
13204,
67,
19111,
1769,
1082,
202,
4071,
18,
6206,
1702,
12,
1615,
1380,
1769,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
202,
4071,
18,
4412,
5621,
1082,
202,
3886,
3773,
18,
588,
3773,
2
] |
catch (IOException ex) { Messages.showErrorDialog(myProject, VcsBundle.message("create.patch.error.title", ex.getMessage()), CommonBundle.getErrorTitle());
|
catch (final IOException ex) { ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() { Messages.showErrorDialog(myProject, VcsBundle.message("create.patch.error.title", ex.getMessage()), CommonBundle.getErrorTitle()); } });
|
public void execute(Collection<Change> changes, String commitMessage) { try { Writer writer = new OutputStreamWriter(new FileOutputStream(myPanel.getFileName())); try { List<FilePatch> patches = PatchBuilder.buildPatch(changes, myProject.getProjectFile().getParent().getPresentableUrl()); UnifiedDiffWriter.write(patches, writer); } finally { writer.close(); } } catch (IOException ex) { Messages.showErrorDialog(myProject, VcsBundle.message("create.patch.error.title", ex.getMessage()), CommonBundle.getErrorTitle()); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4a79e66a06ae17247d87633f8af7c42814e14799/CreatePatchCommitExecutor.java/buggy/source/com/intellij/openapi/vcs/changes/patch/CreatePatchCommitExecutor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
2532,
32,
3043,
34,
3478,
16,
514,
3294,
1079,
13,
288,
1377,
775,
288,
3639,
5497,
2633,
273,
394,
24248,
12,
2704,
12942,
12,
4811,
5537,
18,
588,
4771,
1435,
10019,
3639,
775,
288,
1850,
987,
32,
812,
7332,
34,
16482,
273,
12042,
1263,
18,
3510,
7332,
12,
6329,
16,
3399,
4109,
18,
588,
4109,
812,
7675,
588,
3054,
7675,
588,
6351,
429,
1489,
10663,
1850,
1351,
939,
5938,
2289,
18,
2626,
12,
30278,
16,
2633,
1769,
3639,
289,
3639,
3095,
288,
1850,
2633,
18,
4412,
5621,
3639,
289,
1377,
289,
1377,
1044,
261,
14106,
431,
13,
288,
3639,
4838,
18,
4500,
668,
6353,
12,
4811,
4109,
16,
776,
2143,
3405,
18,
2150,
2932,
2640,
18,
2272,
18,
1636,
18,
2649,
3113,
431,
18,
24906,
1435,
3631,
5658,
3405,
18,
588,
668,
4247,
10663,
1377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
1836,
12,
2532,
32,
3043,
34,
3478,
16,
514,
3294,
1079,
13,
288,
1377,
775,
288,
3639,
5497,
2633,
273,
394,
24248,
12,
2704,
12942,
12,
4811,
5537,
18,
588,
4771,
1435,
10019,
3639,
775,
288,
1850,
987,
32,
812,
7332,
34,
16482,
273,
12042,
1263,
18,
3510,
7332,
12,
6329,
16,
3399,
4109,
18,
588,
4109,
812,
7675,
588,
3054,
7675,
588,
6351,
429,
1489,
10663,
1850,
1351,
939,
5938,
2289,
18,
2626,
12,
30278,
16,
2633,
1769,
3639,
289,
3639,
3095,
288,
1850,
2633,
18,
4412,
5621,
3639,
289,
1377,
289,
1377,
1044,
261,
14106,
431,
13,
288,
3639,
4838,
18,
4500,
668,
6353,
12,
4811,
4109,
16,
776,
2143,
3405,
18,
2150,
2932,
2
] |
sb.append(":");
|
sb.append(':');
|
public String toString() { StringBuffer sb = new StringBuffer(200); sb.append("FetchException:"); sb.append(getShortMessage(mode)); sb.append(":"); sb.append(newURI); sb.append(":"); sb.append(expectedSize); sb.append(":"); sb.append(expectedMimeType); sb.append(":"); sb.append(finalizedSizeAndMimeType); sb.append(":"); sb.append(errorCodes); sb.append(":"); sb.append(extraMessage); return sb.toString(); }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/62fd59041864b4ed1f43adc676de6bfb5ea977f3/FetchException.java/buggy/src/freenet/client/FetchException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
6976,
1769,
202,
202,
18366,
18,
6923,
2932,
5005,
503,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
588,
4897,
1079,
12,
3188,
10019,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
2704,
3098,
1769,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
3825,
1225,
1769,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
3825,
16821,
1769,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
6385,
1235,
1225,
1876,
16821,
1769,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
1636,
6295,
1769,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
7763,
1079,
1769,
202,
202,
2463,
2393,
18,
10492,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
6976,
1769,
202,
202,
18366,
18,
6923,
2932,
5005,
503,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
588,
4897,
1079,
12,
3188,
10019,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
2704,
3098,
1769,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
3825,
1225,
1769,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
3825,
16821,
1769,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
202,
202,
18366,
18,
6923,
12,
6385,
1235,
1225,
1876,
16821,
1769,
202,
202,
18366,
18,
6923,
2932,
2773,
1769,
2
] |
event.getMessage().getBooleanProperty(MuleProperties.MULE_REMOTE_SYNC_PROPERTY, false);
|
msg.getBooleanProperty(MuleProperties.MULE_REMOTE_SYNC_PROPERTY, false);
|
protected boolean useRemoteSync(UMOEvent event) { boolean remoteSync = false; if(event.getEndpoint().getConnector().isRemoteSyncEnabled()) { remoteSync = event.getEndpoint().isRemoteSync() || event.getMessage().getBooleanProperty(MuleProperties.MULE_REMOTE_SYNC_PROPERTY, false); if(remoteSync) { //component will be null for client calls if(event.getComponent()!=null) { remoteSync = event.getComponent().getDescriptor().getResponseRouter() == null; } } } if(!remoteSync) { event.removeProperty(MuleProperties.MULE_REMOTE_SYNC_PROPERTY); event.getMessage().removeProperty(MuleProperties.MULE_REMOTE_SYNC_PROPERTY); } return remoteSync; }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/f659778f07cc26d6d970061c635faba08bd4672b/AbstractMessageDispatcher.java/buggy/src/java/org/mule/providers/AbstractMessageDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
999,
5169,
4047,
12,
2799,
51,
1133,
871,
13,
288,
3639,
1250,
2632,
4047,
273,
629,
31,
3639,
309,
12,
2575,
18,
588,
3293,
7675,
588,
7487,
7675,
291,
5169,
4047,
1526,
10756,
288,
5411,
2632,
4047,
273,
871,
18,
588,
3293,
7675,
291,
5169,
4047,
1435,
747,
10792,
1234,
18,
588,
5507,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
15790,
67,
25142,
67,
9900,
16,
629,
1769,
5411,
309,
12,
7222,
4047,
13,
288,
7734,
368,
4652,
903,
506,
446,
364,
1004,
4097,
7734,
309,
12,
2575,
18,
588,
1841,
1435,
5,
33,
2011,
13,
288,
10792,
2632,
4047,
273,
871,
18,
588,
1841,
7675,
588,
3187,
7675,
588,
1064,
8259,
1435,
422,
446,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
309,
12,
5,
7222,
4047,
13,
288,
5411,
871,
18,
4479,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
15790,
67,
25142,
67,
9900,
1769,
5411,
871,
18,
24906,
7675,
4479,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
15790,
67,
25142,
67,
9900,
1769,
3639,
289,
3639,
327,
2632,
4047,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
4750,
1250,
999,
5169,
4047,
12,
2799,
51,
1133,
871,
13,
288,
3639,
1250,
2632,
4047,
273,
629,
31,
3639,
309,
12,
2575,
18,
588,
3293,
7675,
588,
7487,
7675,
291,
5169,
4047,
1526,
10756,
288,
5411,
2632,
4047,
273,
871,
18,
588,
3293,
7675,
291,
5169,
4047,
1435,
747,
10792,
1234,
18,
588,
5507,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
15790,
67,
25142,
67,
9900,
16,
629,
1769,
5411,
309,
12,
7222,
4047,
13,
288,
7734,
368,
4652,
903,
506,
446,
364,
1004,
4097,
7734,
309,
12,
2575,
18,
588,
1841,
1435,
5,
33,
2011,
13,
288,
10792,
2632,
4047,
273,
871,
18,
588,
1841,
7675,
588,
3187,
7675,
588,
1064,
8259,
1435,
422,
2
] |
setMovieStart(view.getSliderT().getStartValue());
|
setMovieStart(view.sliderT.getStartValue());
|
private void handleSliderTStateChanged(ChangeEventSlider e) { if (e.isStart()) setMovieStart(view.getSliderT().getStartValue()); else setMovieEnd(view.getSliderT().getEndValue()); }
|
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/ba2070eeb46c459cbb8ad43439d3f9ab12cf63e3/MoviePaneMng.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/movie/pane/MoviePaneMng.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
21824,
56,
1119,
5033,
12,
20930,
21824,
425,
13,
565,
288,
3639,
309,
261,
73,
18,
291,
1685,
10756,
5411,
15430,
83,
13120,
1685,
12,
1945,
18,
28372,
56,
18,
588,
1685,
620,
10663,
3639,
469,
5411,
15430,
83,
13120,
1638,
12,
1945,
18,
588,
21824,
56,
7675,
588,
1638,
620,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
21824,
56,
1119,
5033,
12,
20930,
21824,
425,
13,
565,
288,
3639,
309,
261,
73,
18,
291,
1685,
10756,
5411,
15430,
83,
13120,
1685,
12,
1945,
18,
28372,
56,
18,
588,
1685,
620,
10663,
3639,
469,
5411,
15430,
83,
13120,
1638,
12,
1945,
18,
588,
21824,
56,
7675,
588,
1638,
620,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (string.length() == 0) return string; String first = string.substring(0,1).toUpperCase(); return first.concat(string.substring(1).toLowerCase());
|
return str_capitalize();
|
public String capitalize() { if (string.length() == 0) return string; String first = string.substring(0,1).toUpperCase(); return first.concat(string.substring(1).toLowerCase()); }
|
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/bd5dfaea1f2ba1044526872f414af37b54cbb902/PyString.java/buggy/org/python/core/PyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
17451,
1435,
288,
3639,
309,
261,
1080,
18,
2469,
1435,
422,
374,
13,
5411,
327,
533,
31,
3639,
514,
1122,
273,
533,
18,
28023,
12,
20,
16,
21,
2934,
869,
8915,
5621,
3639,
327,
1122,
18,
16426,
12,
1080,
18,
28023,
12,
21,
2934,
869,
5630,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
17451,
1435,
288,
3639,
309,
261,
1080,
18,
2469,
1435,
422,
374,
13,
5411,
327,
533,
31,
3639,
514,
1122,
273,
533,
18,
28023,
12,
20,
16,
21,
2934,
869,
8915,
5621,
3639,
327,
1122,
18,
16426,
12,
1080,
18,
28023,
12,
21,
2934,
869,
5630,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!Stats.gatheringStats) return; if (Assert.VERIFY_ASSERTIONS) Assert._assert(!running);
|
if (!Stats.gatheringStats) return; if (Assert.VERIFY_ASSERTIONS) Assert._assert(!running);
|
protected void start() { if (!Stats.gatheringStats) return; if (Assert.VERIFY_ASSERTIONS) Assert._assert(!running); running = true; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/BooleanCounter.java/clean/MMTk/src/org/mmtk/utility/statistics/BooleanCounter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
787,
1435,
288,
565,
309,
16051,
4195,
18,
75,
4806,
310,
4195,
13,
327,
31,
565,
309,
261,
8213,
18,
23756,
67,
8423,
11539,
1146,
55,
13,
5452,
6315,
11231,
12,
5,
8704,
1769,
565,
3549,
273,
638,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
787,
1435,
288,
565,
309,
16051,
4195,
18,
75,
4806,
310,
4195,
13,
327,
31,
565,
309,
261,
8213,
18,
23756,
67,
8423,
11539,
1146,
55,
13,
5452,
6315,
11231,
12,
5,
8704,
1769,
565,
3549,
273,
638,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
List<Authorship> patentAuthorships = new ArrayList<Authorship>(); for(Authorship authorship : getPersonAuthorships()) {
|
List<Authorship> patentAuthorships = new ArrayList<Authorship>(); for (Authorship authorship : getPersonAuthorships()) {
|
public List<Authorship> getPersonAuthorshipsWithPatents() { List<Authorship> patentAuthorships = new ArrayList<Authorship>(); for(Authorship authorship : getPersonAuthorships()) { Result result = authorship.getResult(); //filter only patent authorships if (result instanceof Patent) { patentAuthorships.add(authorship); } } return patentAuthorships; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/afb64dde7dd3a7c208e6a0f70a2f29a04c097ec7/Person.java/clean/src/net/sourceforge/fenixedu/domain/Person.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
3594,
3261,
34,
29936,
3594,
3261,
87,
1190,
22834,
4877,
1435,
288,
377,
202,
682,
32,
3594,
3261,
34,
9670,
319,
3594,
3261,
87,
273,
394,
2407,
32,
3594,
3261,
34,
5621,
377,
202,
1884,
12,
3594,
3261,
2869,
3261,
294,
29936,
3594,
3261,
87,
10756,
288,
5411,
3438,
563,
273,
2869,
3261,
18,
588,
1253,
5621,
5411,
368,
2188,
1338,
9670,
319,
2869,
3261,
87,
5411,
309,
261,
2088,
1276,
29541,
319,
13,
288,
2398,
202,
16330,
319,
3594,
3261,
87,
18,
1289,
12,
4161,
3261,
1769,
1082,
202,
97,
3639,
289,
377,
202,
2463,
9670,
319,
3594,
3261,
87,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
3594,
3261,
34,
29936,
3594,
3261,
87,
1190,
22834,
4877,
1435,
288,
377,
202,
682,
32,
3594,
3261,
34,
9670,
319,
3594,
3261,
87,
273,
394,
2407,
32,
3594,
3261,
34,
5621,
377,
202,
1884,
12,
3594,
3261,
2869,
3261,
294,
29936,
3594,
3261,
87,
10756,
288,
5411,
3438,
563,
273,
2869,
3261,
18,
588,
1253,
5621,
5411,
368,
2188,
1338,
9670,
319,
2869,
3261,
87,
5411,
309,
261,
2088,
1276,
29541,
319,
13,
288,
2398,
202,
16330,
319,
3594,
3261,
87,
18,
1289,
12,
4161,
3261,
1769,
1082,
202,
97,
3639,
289,
377,
202,
2463,
9670,
319,
3594,
3261,
87,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( oValue instanceof Double )
|
else if ( ( sc.getType( ) & TEXT ) == TEXT )
|
public static final double getLocation( AutoScale sc, Object oValue ) throws ChartException, IllegalArgumentException { if ( oValue == null ) { throw new IllegalArgumentException( MessageFormat.format( ResourceBundle.getBundle( Messages.ENGINE, sc.getRunTimeContext( ).getLocale( ) ) .getString( "exception.scale.null.location" ), //$NON-NLS-1$ new Object[]{ sc } ) ); } if ( oValue instanceof Double ) { return getLocation( sc, ( (Double) oValue ).doubleValue( ) ); } else if ( oValue instanceof Calendar ) { return getDateLocation( sc, new CDateTime( (Calendar) oValue ) ); } else if ( oValue instanceof NumberDataElement ) { return getLocation( sc, ( (NumberDataElement) oValue ).getValue( ) ); } else if ( oValue instanceof DateTimeDataElement ) { return getDateLocation( sc, ( (DateTimeDataElement) oValue ).getValueAsCDateTime( ) ); } /* * DefaultLoggerImpl.instance().log(ILogger.WARNING, "Unexpected data * type {0}[value={1}] specified" + oValue.getClass().getName() + oValue ); */// i18n_CONCATENATIONS_REMOVED return sc.getStart( ); // RETURNS THE START EDGE OF THE SCALE }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/0dbe8d6814b393e6b534d8d9dc409fff1a8f3cce/Methods.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/Methods.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
1645,
13312,
12,
8064,
5587,
888,
16,
1033,
320,
620,
262,
1082,
202,
15069,
14804,
503,
16,
2754,
202,
95,
202,
202,
430,
261,
320,
620,
422,
446,
262,
202,
202,
95,
1082,
202,
12849,
394,
2754,
12,
17377,
18,
2139,
12,
19198,
18,
588,
3405,
12,
4838,
18,
28980,
16,
6862,
202,
1017,
18,
588,
1997,
950,
1042,
12,
262,
18,
588,
3916,
12,
262,
262,
6862,
202,
18,
588,
780,
12,
315,
4064,
18,
5864,
18,
2011,
18,
3562,
6,
262,
16,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2704,
1033,
63,
7073,
25083,
202,
1017,
6862,
202,
97,
262,
1082,
202,
1769,
202,
202,
97,
202,
202,
430,
261,
320,
620,
1276,
3698,
262,
202,
202,
95,
1082,
202,
2463,
13312,
12,
888,
16,
261,
261,
5265,
13,
320,
620,
262,
18,
9056,
620,
12,
262,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
320,
620,
1276,
5542,
262,
202,
202,
95,
1082,
202,
2463,
10713,
2735,
12,
888,
16,
394,
385,
5096,
12,
261,
7335,
13,
320,
620,
262,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
320,
620,
1276,
3588,
751,
1046,
262,
202,
202,
95,
1082,
202,
2463,
13312,
12,
888,
16,
261,
261,
1854,
751,
1046,
13,
320,
620,
262,
18,
24805,
12,
262,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
320,
620,
1276,
3716,
751,
1046,
262,
202,
202,
95,
1082,
202,
2463,
10713,
2735,
12,
888,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
1645,
13312,
12,
8064,
5587,
888,
16,
1033,
320,
620,
262,
1082,
202,
15069,
14804,
503,
16,
2754,
202,
95,
202,
202,
430,
261,
320,
620,
422,
446,
262,
202,
202,
95,
1082,
202,
12849,
394,
2754,
12,
17377,
18,
2139,
12,
19198,
18,
588,
3405,
12,
4838,
18,
28980,
16,
6862,
202,
1017,
18,
588,
1997,
950,
1042,
12,
262,
18,
588,
3916,
12,
262,
262,
6862,
202,
18,
588,
780,
12,
315,
4064,
18,
5864,
18,
2011,
18,
3562,
6,
262,
16,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
2704,
1033,
63,
7073,
25083,
202,
1017,
6862,
202,
97,
262,
1082,
202,
1769,
202,
202,
97,
202,
202,
430,
261,
2
] |
fs.put("N2NType", Integer.toString(type));
|
fs.put("type", Integer.toString(type));
|
public void receivedNodeToNodeMessage(Message m) { PeerNode source = (PeerNode)m.getSource(); int type = ((Integer) m.getObject(DMT.NODE_TO_NODE_MESSAGE_TYPE)).intValue(); if(type == Node.N2N_MESSAGE_TYPE_FPROXY_USERALERT) { ShortBuffer messageData = (ShortBuffer) m.getObject(DMT.NODE_TO_NODE_MESSAGE_DATA); Logger.normal(this, "Received N2NM from '"+source.getPeer()); SimpleFieldSet fs = null; try { fs = new SimpleFieldSet(messageData.toString()); } catch (IOException e) { Logger.error(this, "IOException while parsing node to node message data", e); return; } if(fs.get("N2NType") == null) { fs.removeValue("N2NType"); } fs.put("N2NType", Integer.toString(type)); int fileNumber = source.writeNewExtraPeerDataFile( fs, EXTRA_PEER_DATA_TYPE_N2NTM); if( fileNumber == -1 ) { Logger.error( this, "Failed to write N2NTM to extra peer data file for peer "+source.getPeer()); } // Keep track of the fileNumber so we can potentially delete the extra peer data file later, the file is authoritative try { handleNodeToNodeTextMessageSimpleFieldSet(fs, source, fileNumber); } catch (FSParseException e) { // Shouldn't happen throw new Error(e); } } else { Logger.error(this, "Received unknown node to node message type '"+type+"' from "+source.getPeer()); } }
|
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/c7c45a3acb0353b0f2b42261fafcca645ebaed62/Node.java/clean/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5079,
907,
31403,
1079,
12,
1079,
312,
13,
288,
202,
225,
10669,
907,
1084,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
202,
225,
509,
618,
273,
14015,
4522,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
2399,
13,
2934,
474,
620,
5621,
202,
225,
309,
12,
723,
422,
2029,
18,
50,
22,
50,
67,
8723,
67,
2399,
67,
42,
16085,
67,
4714,
1013,
11539,
13,
288,
202,
202,
4897,
1892,
883,
751,
273,
261,
4897,
1892,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
4883,
1769,
202,
202,
3328,
18,
6130,
12,
2211,
16,
315,
8872,
423,
22,
50,
49,
628,
2119,
15,
3168,
18,
588,
6813,
10663,
202,
202,
5784,
974,
694,
2662,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
2556,
273,
394,
4477,
974,
694,
12,
2150,
751,
18,
10492,
10663,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
202,
3328,
18,
1636,
12,
2211,
16,
315,
14106,
1323,
5811,
756,
358,
756,
883,
501,
3113,
425,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
12,
2556,
18,
588,
2932,
50,
22,
50,
559,
7923,
422,
446,
13,
288,
1082,
202,
2556,
18,
4479,
620,
2932,
50,
22,
50,
559,
8863,
202,
202,
97,
202,
202,
2556,
18,
458,
2932,
50,
22,
50,
559,
3113,
2144,
18,
10492,
12,
723,
10019,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5079,
907,
31403,
1079,
12,
1079,
312,
13,
288,
202,
225,
10669,
907,
1084,
273,
261,
6813,
907,
13,
81,
18,
588,
1830,
5621,
202,
225,
509,
618,
273,
14015,
4522,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
2399,
13,
2934,
474,
620,
5621,
202,
225,
309,
12,
723,
422,
2029,
18,
50,
22,
50,
67,
8723,
67,
2399,
67,
42,
16085,
67,
4714,
1013,
11539,
13,
288,
202,
202,
4897,
1892,
883,
751,
273,
261,
4897,
1892,
13,
312,
18,
588,
921,
12,
40,
6152,
18,
8744,
67,
4296,
67,
8744,
67,
8723,
67,
4883,
1769,
202,
202,
3328,
18,
6130,
12,
2211,
16,
2
] |
return RubyString.nilString(runtime);
|
return RubyString.nilString(getRuntime());
|
public RubyString read() { if (!isOpen) { throw new IOError(getRuntime(), "Directory already closed"); } if (pos >= snapshot.length) { return RubyString.nilString(runtime); } RubyString result = new RubyString(getRuntime(), snapshot[pos]); pos++; return result; }
|
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/clean/src/org/jruby/RubyDir.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
855,
1435,
288,
202,
430,
16051,
291,
3678,
13,
288,
202,
565,
604,
394,
8340,
12,
588,
5576,
9334,
315,
2853,
1818,
4375,
8863,
202,
97,
3639,
309,
261,
917,
1545,
4439,
18,
2469,
13,
288,
5411,
327,
19817,
780,
18,
20154,
780,
12,
588,
5576,
10663,
3639,
289,
3639,
19817,
780,
563,
273,
394,
19817,
780,
12,
588,
5576,
9334,
4439,
63,
917,
19226,
3639,
949,
9904,
31,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
855,
1435,
288,
202,
430,
16051,
291,
3678,
13,
288,
202,
565,
604,
394,
8340,
12,
588,
5576,
9334,
315,
2853,
1818,
4375,
8863,
202,
97,
3639,
309,
261,
917,
1545,
4439,
18,
2469,
13,
288,
5411,
327,
19817,
780,
18,
20154,
780,
12,
588,
5576,
10663,
3639,
289,
3639,
19817,
780,
563,
273,
394,
19817,
780,
12,
588,
5576,
9334,
4439,
63,
917,
19226,
3639,
949,
9904,
31,
3639,
327,
563,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
menuItems = new String[]{"copy", "cut", "paste", "insert attribute description", "delete"};
|
menuItems = new String[]{"copy", "cut", "paste", "insert attribute description", "delete", "save"};
|
private void loungePopupMenu(MouseEvent e) { JPopupMenu popup = new JPopupMenu(); clickedPath = this.getClosestPathForLocation(e.getX(), e.getY()); clickedNode = (DatasetViewTreeNode) clickedPath.getLastPathComponent(); String[] menuItems = null; String clickedNodeClass = clickedNode.getUserObject().getClass().getName(); if (clickedNodeClass.equals("org.ensembl.mart.lib.config.DatasetView")) menuItems = new String[]{"copy", "cut", "paste", "insert filter page", "insert attribute page", "delete"}; else if ((clickedNodeClass).equals("org.ensembl.mart.lib.config.FilterPage")) menuItems = new String[]{"copy", "cut", "paste", "insert filter group", "delete"}; else if (clickedNodeClass.equals("org.ensembl.mart.lib.config.AttributePage")) menuItems = new String[]{"copy", "cut", "paste", "insert attribute group", "delete"}; else if (clickedNodeClass.equals("org.ensembl.mart.lib.config.FilterGroup")) menuItems = new String[]{"copy", "cut", "paste", "insert filter collection", "delete"}; else if (clickedNodeClass.equals("org.ensembl.mart.lib.config.AttributeGroup")) menuItems = new String[]{"copy", "cut", "paste", "insert attribute collection", "delete"}; else if (clickedNodeClass.equals("org.ensembl.mart.lib.config.FilterCollection")) menuItems = new String[]{"copy", "cut", "paste", "insert filter description", "delete"}; else if (clickedNodeClass.equals("org.ensembl.mart.lib.config.AttributeCollection")) menuItems = new String[]{"copy", "cut", "paste", "insert attribute description", "delete"}; else if (clickedNodeClass.equals("org.ensembl.mart.lib.config.FilterDescription")) menuItems = new String[]{"copy", "cut", "paste", "delete"}; else if (clickedNodeClass.equals("org.ensembl.mart.lib.config.AttributeDescription")) menuItems = new String[]{"copy", "cut", "paste", "delete"}; for (int i = 0; i < menuItems.length; i++) { JMenuItem menuItem = new JMenuItem(menuItems[i]); MenuActionListener menuActionListener = new MenuActionListener(); menuItem.addActionListener(menuActionListener); popup.add(menuItem); } popup.show(e.getComponent(), e.getX(), e.getY()); }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/082dd174b481a0310ab6715ad2ee8e75b718027c/DatasetViewTree.java/buggy/src/java/org/ensembl/mart/vieweditor/DatasetViewTree.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
437,
25561,
13770,
4599,
12,
9186,
1133,
425,
13,
288,
3639,
804,
13770,
4599,
10431,
273,
394,
804,
13770,
4599,
5621,
3639,
17688,
743,
273,
333,
18,
588,
4082,
7781,
743,
1290,
2735,
12,
73,
18,
588,
60,
9334,
425,
18,
588,
61,
10663,
3639,
17688,
907,
273,
261,
10656,
1767,
12513,
13,
17688,
743,
18,
588,
3024,
743,
1841,
5621,
3639,
514,
8526,
3824,
3126,
273,
446,
31,
3639,
514,
17688,
907,
797,
273,
17688,
907,
18,
588,
1299,
921,
7675,
588,
797,
7675,
17994,
5621,
3639,
309,
261,
7475,
329,
907,
797,
18,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
1425,
18,
10656,
1767,
6,
3719,
5411,
3824,
3126,
273,
394,
514,
63,
7073,
6,
3530,
3113,
315,
5150,
3113,
315,
29795,
3113,
315,
6387,
1034,
1363,
3113,
315,
6387,
1566,
1363,
3113,
315,
3733,
6,
20451,
3639,
469,
309,
14015,
7475,
329,
907,
797,
2934,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
1425,
18,
1586,
1964,
6,
3719,
5411,
3824,
3126,
273,
394,
514,
63,
7073,
6,
3530,
3113,
315,
5150,
3113,
315,
29795,
3113,
315,
6387,
1034,
1041,
3113,
315,
3733,
6,
20451,
3639,
469,
309,
261,
7475,
329,
907,
797,
18,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
1425,
18,
1499,
1964,
6,
3719,
5411,
3824,
3126,
273,
394,
514,
63,
7073,
6,
3530,
3113,
315,
5150,
3113,
315,
29795,
3113,
315,
6387,
1566,
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,
437,
25561,
13770,
4599,
12,
9186,
1133,
425,
13,
288,
3639,
804,
13770,
4599,
10431,
273,
394,
804,
13770,
4599,
5621,
3639,
17688,
743,
273,
333,
18,
588,
4082,
7781,
743,
1290,
2735,
12,
73,
18,
588,
60,
9334,
425,
18,
588,
61,
10663,
3639,
17688,
907,
273,
261,
10656,
1767,
12513,
13,
17688,
743,
18,
588,
3024,
743,
1841,
5621,
3639,
514,
8526,
3824,
3126,
273,
446,
31,
3639,
514,
17688,
907,
797,
273,
17688,
907,
18,
588,
1299,
921,
7675,
588,
797,
7675,
17994,
5621,
3639,
309,
261,
7475,
329,
907,
797,
18,
14963,
2932,
3341,
18,
25137,
80,
18,
81,
485,
18,
2941,
18,
1425,
18,
10656,
1767,
6,
3719,
5411,
3824,
3126,
2
] |
Date date = null, currentDate = prepareCurrentDate();
|
Date date = null;
|
public IContract getLastContract() { Date date = null, currentDate = prepareCurrentDate(); IContract contractToReturn = null; for (IContract contract : this.getContracts()) { if (contract.getEndDate() == null || contract.getEndDate().equals(currentDate) || contract.getEndDate().after(currentDate)) { contractToReturn = contract; break; } else if (date == null || date.before(contract.getEndDate())) { date = contract.getEndDate(); contractToReturn = contract; } } return contractToReturn; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/21800d2e593905676312f230748a6e14a3e9cc67/Employee.java/clean/src/net/sourceforge/fenixedu/domain/Employee.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
8924,
7595,
8924,
1435,
288,
3639,
2167,
1509,
273,
446,
31,
3639,
467,
8924,
6835,
27014,
273,
446,
31,
3639,
364,
261,
45,
8924,
6835,
294,
333,
18,
588,
20723,
10756,
288,
5411,
309,
261,
16351,
18,
588,
24640,
1435,
422,
446,
747,
6835,
18,
588,
24640,
7675,
14963,
12,
2972,
1626,
13,
10792,
747,
6835,
18,
588,
24640,
7675,
5205,
12,
2972,
1626,
3719,
288,
7734,
6835,
27014,
273,
6835,
31,
7734,
898,
31,
5411,
289,
469,
309,
261,
712,
422,
446,
747,
1509,
18,
5771,
12,
16351,
18,
588,
24640,
1435,
3719,
288,
7734,
1509,
273,
6835,
18,
588,
24640,
5621,
7734,
6835,
27014,
273,
6835,
31,
5411,
289,
3639,
289,
3639,
327,
6835,
27014,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
8924,
7595,
8924,
1435,
288,
3639,
2167,
1509,
273,
446,
31,
3639,
467,
8924,
6835,
27014,
273,
446,
31,
3639,
364,
261,
45,
8924,
6835,
294,
333,
18,
588,
20723,
10756,
288,
5411,
309,
261,
16351,
18,
588,
24640,
1435,
422,
446,
747,
6835,
18,
588,
24640,
7675,
14963,
12,
2972,
1626,
13,
10792,
747,
6835,
18,
588,
24640,
7675,
5205,
12,
2972,
1626,
3719,
288,
7734,
6835,
27014,
273,
6835,
31,
7734,
898,
31,
5411,
289,
469,
309,
261,
712,
422,
446,
747,
1509,
18,
5771,
12,
16351,
18,
588,
24640,
1435,
3719,
288,
7734,
1509,
273,
6835,
18,
588,
24640,
5621,
7734,
6835,
27014,
273,
6835,
31,
5411,
289,
3639,
289,
3639,
327,
6835,
2
] |
catch (NoSuchMethodException e)
|
catch (NoSuchMethodException nsme1)
|
private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a.b.c. int pos; String rest = null; if ((pos = prop.indexOf('.')) != -1) { rest = prop.substring(pos + 1); prop = prop.substring(0, pos); } // Find a method named getProp. It could be isProp instead. Method getter; try { // Look for boolean property getter isProperty getter = o.getClass().getMethod("is" + capitalize(prop), null); } catch (NoSuchMethodException e) { // Look for regular property getter getProperty getter = o.getClass().getMethod("get" + capitalize(prop), null); } Object val = getter.invoke(o, null); if (rest != null) return getProperty(val, rest); return new Object[] {val, getter.getReturnType()}; }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/4560ec84d1941b7d1dc387ca2fa2087617053271/EventHandler.java/buggy/libjava/java/beans/EventHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
8526,
3911,
12,
921,
320,
16,
514,
2270,
13,
565,
1216,
15959,
16,
11900,
16,
15342,
225,
288,
565,
368,
2672,
326,
871,
733,
1347,
326,
1272,
508,
358,
2608,
353,
446,
18,
565,
309,
261,
5986,
422,
446,
13,
1377,
327,
394,
1033,
8526,
288,
83,
16,
320,
18,
588,
797,
17767,
31,
565,
368,
2585,
30144,
326,
1122,
1272,
508,
628,
279,
18,
70,
18,
71,
18,
565,
509,
949,
31,
565,
514,
3127,
273,
446,
31,
565,
309,
14015,
917,
273,
2270,
18,
31806,
2668,
1093,
3719,
480,
300,
21,
13,
1377,
288,
202,
8792,
273,
2270,
18,
28023,
12,
917,
397,
404,
1769,
202,
5986,
273,
2270,
18,
28023,
12,
20,
16,
949,
1769,
1377,
289,
565,
368,
4163,
279,
707,
4141,
22079,
18,
225,
2597,
3377,
506,
353,
4658,
3560,
18,
565,
2985,
7060,
31,
565,
775,
1377,
288,
202,
759,
10176,
364,
1250,
1272,
7060,
353,
1396,
202,
11990,
273,
320,
18,
588,
797,
7675,
588,
1305,
2932,
291,
6,
397,
17451,
12,
5986,
3631,
6862,
1082,
446,
1769,
1377,
289,
565,
1044,
261,
28341,
14513,
3153,
3501,
21,
13,
1377,
288,
202,
759,
10176,
364,
6736,
1272,
7060,
3911,
202,
11990,
273,
320,
18,
588,
797,
7675,
588,
1305,
2932,
588,
6,
397,
17451,
12,
5986,
3631,
6862,
1082,
446,
1769,
1377,
289,
565,
1033,
1244,
273,
7060,
18,
14407,
12,
83,
16,
446,
1769,
565,
309,
261,
8792,
480,
446,
13,
1377,
327,
3911,
12,
1125,
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,
1033,
8526,
3911,
12,
921,
320,
16,
514,
2270,
13,
565,
1216,
15959,
16,
11900,
16,
15342,
225,
288,
565,
368,
2672,
326,
871,
733,
1347,
326,
1272,
508,
358,
2608,
353,
446,
18,
565,
309,
261,
5986,
422,
446,
13,
1377,
327,
394,
1033,
8526,
288,
83,
16,
320,
18,
588,
797,
17767,
31,
565,
368,
2585,
30144,
326,
1122,
1272,
508,
628,
279,
18,
70,
18,
71,
18,
565,
509,
949,
31,
565,
514,
3127,
273,
446,
31,
565,
309,
14015,
917,
273,
2270,
18,
31806,
2668,
1093,
3719,
480,
300,
21,
13,
1377,
288,
202,
8792,
273,
2270,
18,
28023,
12,
917,
397,
404,
1769,
202,
5986,
273,
2270,
18,
28023,
12,
20,
16,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.