rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
throw new CoreException( LauncherUtils .createErrorStatus( Messages.getString("ReportLaunchConfigurationDelegate.badFeatureSetup") ) ); } else | throw new CoreException( LauncherUtils.createErrorStatus( Messages.getString( "ReportLaunchConfigurationDelegate.badFeatureSetup" ) ) ); } else | private void validateFeatures( ) throws CoreException { IPath installPath = PDEPlugin.getWorkspace( ).getRoot( ).getLocation( ); String lastSegment = installPath.lastSegment( ); boolean badStructure = lastSegment == null; if ( !badStructure ) { IPath featuresPath = installPath.removeLastSegments( 1 ).append( "features" ); //$NON-NLS-1$ badStructure = !lastSegment.equalsIgnoreCase( "plugins" ) //$NON-NLS-1$ || !featuresPath.toFile( ).exists( ); } if ( badStructure ) { throw new CoreException( LauncherUtils .createErrorStatus( Messages.getString("ReportLaunchConfigurationDelegate.badFeatureSetup") ) ); //$NON-NLS-1$ } else { ensureProductFilesExist( getProductPath( ) ); return; } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/93f83d28c012c9318e61bf947b01279cec0512a3/ReportLaunchConfigurationDelegate.java/buggy/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1954,
8696,
12,
262,
1216,
30015,
202,
95,
202,
202,
45,
743,
3799,
743,
273,
453,
1639,
3773,
18,
588,
8241,
12,
262,
18,
588,
2375,
12,
262,
18,
588,
2735,
12,
11272,
202,
202,
780,
1142,
4131,
273,
3799,
743,
18,
2722,
4131,
12,
11272,
202,
202,
6494,
5570,
6999,
273,
1142,
4131,
422,
446,
31,
202,
202,
430,
261,
401,
8759,
6999,
262,
202,
202,
95,
1082,
202,
45,
743,
4467,
743,
273,
3799,
743,
18,
4479,
3024,
7946,
12,
404,
262,
18,
6923,
12,
6862,
202,
6,
7139,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
8759,
6999,
273,
401,
2722,
4131,
18,
14963,
5556,
12,
315,
8057,
6,
262,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
20081,
401,
7139,
743,
18,
869,
812,
12,
262,
18,
1808,
12,
11272,
202,
202,
97,
202,
202,
430,
261,
5570,
6999,
262,
202,
202,
95,
1082,
202,
12849,
394,
30015,
12,
6862,
202,
28820,
1989,
6862,
1082,
202,
18,
2640,
668,
1482,
12,
4838,
18,
588,
780,
2932,
4820,
9569,
1750,
9586,
18,
8759,
4595,
7365,
7923,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
469,
202,
202,
95,
1082,
202,
15735,
4133,
2697,
4786,
12,
15880,
743,
12,
262,
11272,
1082,
202,
2463,
31,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1954,
8696,
12,
262,
1216,
30015,
202,
95,
202,
202,
45,
743,
3799,
743,
273,
453,
1639,
3773,
18,
588,
8241,
12,
262,
18,
588,
2375,
12,
262,
18,
588,
2735,
12,
11272,
202,
202,
780,
1142,
4131,
273,
3799,
743,
18,
2722,
4131,
12,
11272,
202,
202,
6494,
5570,
6999,
273,
1142,
4131,
422,
446,
31,
202,
202,
430,
261,
401,
8759,
6999,
262,
202,
202,
95,
1082,
202,
45,
743,
4467,
743,
273,
3799,
743,
18,
4479,
3024,
7946,
12,
404,
262,
18,
6923,
12,
6862,
202,
6,
7139,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
8759,
6999,
273,
401,
2722,
4131,
18,
14963,
5556,
12,
315,
8057,
6,
2
] |
this.transaction = transaction; | this.transaction = transaction; | public DialogTimerTask( SIPDialog dialog, SIPServerTransaction transaction ) { this.dialog = dialog; this.stack = dialog.sipStack; this.transaction = transaction; } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/d231d2c6c5ca907b5c90d5737c6ae873878b219f/SIPDialog.java/buggy/src/gov/nist/javax/sip/stack/SIPDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
17242,
6777,
2174,
12,
348,
2579,
6353,
6176,
16,
348,
2579,
2081,
3342,
2492,
262,
288,
5411,
333,
18,
12730,
225,
273,
6176,
31,
5411,
333,
18,
3772,
273,
6176,
18,
28477,
2624,
31,
202,
565,
333,
18,
7958,
273,
2492,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
17242,
6777,
2174,
12,
348,
2579,
6353,
6176,
16,
348,
2579,
2081,
3342,
2492,
262,
288,
5411,
333,
18,
12730,
225,
273,
6176,
31,
5411,
333,
18,
3772,
273,
6176,
18,
28477,
2624,
31,
202,
565,
333,
18,
7958,
273,
2492,
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
] |
public static final String escapeForSQL(String string) { | public static String escapeForSQL(String string) { | public static final String escapeForSQL(String string) { if (string == null) { return null; } else if (string.length() == 0) { return string; } char ch; char[] input = string.toCharArray(); int i = 0; int last = 0; int len = input.length; StringBuilder out = null; for (; i < len; i++) { ch = input[i]; if (ch == '\'') { if (out == null) { out = new StringBuilder(len + 2); } if (i > last) { out.append(input, last, i - last); } last = i + 1; out.append('\'').append('\''); } } if (out == null) { return string; } else if (i > last) { out.append(input, last, i - last); } return out.toString(); } | 6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/7e7a6c1b77d3198029d3b4e7af15ea5044f355c8/StringUtils.java/clean/src/java/org/jivesoftware/util/StringUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
4114,
1290,
3997,
12,
780,
533,
13,
288,
3639,
309,
261,
1080,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
469,
309,
261,
1080,
18,
2469,
1435,
422,
374,
13,
288,
5411,
327,
533,
31,
3639,
289,
3639,
1149,
462,
31,
3639,
1149,
8526,
810,
273,
533,
18,
869,
15936,
5621,
3639,
509,
277,
273,
374,
31,
3639,
509,
1142,
273,
374,
31,
3639,
509,
562,
273,
810,
18,
2469,
31,
3639,
3225,
596,
273,
446,
31,
3639,
364,
261,
31,
277,
411,
562,
31,
277,
27245,
288,
5411,
462,
273,
810,
63,
77,
15533,
5411,
309,
261,
343,
422,
14118,
6134,
288,
7734,
309,
261,
659,
422,
446,
13,
288,
5397,
596,
273,
394,
3225,
12,
1897,
397,
576,
1769,
7734,
289,
7734,
309,
261,
77,
405,
1142,
13,
288,
10792,
596,
18,
6923,
12,
2630,
16,
1142,
16,
277,
300,
1142,
1769,
7734,
289,
7734,
1142,
273,
277,
397,
404,
31,
7734,
596,
18,
6923,
2668,
11421,
2934,
6923,
2668,
3730,
8284,
5411,
289,
3639,
289,
3639,
309,
261,
659,
422,
446,
13,
288,
5411,
327,
533,
31,
3639,
289,
3639,
469,
309,
261,
77,
405,
1142,
13,
288,
5411,
596,
18,
6923,
12,
2630,
16,
1142,
16,
277,
300,
1142,
1769,
3639,
289,
3639,
327,
596,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
514,
4114,
1290,
3997,
12,
780,
533,
13,
288,
3639,
309,
261,
1080,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
469,
309,
261,
1080,
18,
2469,
1435,
422,
374,
13,
288,
5411,
327,
533,
31,
3639,
289,
3639,
1149,
462,
31,
3639,
1149,
8526,
810,
273,
533,
18,
869,
15936,
5621,
3639,
509,
277,
273,
374,
31,
3639,
509,
1142,
273,
374,
31,
3639,
509,
562,
273,
810,
18,
2469,
31,
3639,
3225,
596,
273,
446,
31,
3639,
364,
261,
31,
277,
411,
562,
31,
277,
27245,
288,
5411,
462,
273,
810,
63,
77,
15533,
5411,
309,
261,
343,
422,
14118,
6134,
288,
7734,
309,
261,
659,
422,
446,
13,
288,
5397,
2
] |
Context cx = Context.getCurrentContext(); | static SubString interpretDollar(RegExpImpl res, char[] da, int dp, int bp, int[] skip) { char[] ca; int cp; char dc; int num, tmp; /* Allow a real backslash (literal "\\") to escape "$1" etc. */ if (da[dp] != '$') throw new RuntimeException(); if (dp > bp && da[dp-1] == '\\') return null; /* Interpret all Perl match-induced dollar variables. */ dc = da[dp+1]; if (NativeRegExp.isDigit(dc)) { Context cx = Context.getCurrentContext(); if ((cx.getLanguageVersion() != Context.VERSION_DEFAULT) && (cx.getLanguageVersion() <= Context.VERSION_1_4)) { if (dc == '0') return null; /* Check for overflow to avoid gobbling arbitrary decimal digits. */ num = 0; ca = da; cp = dp; while (++cp < ca.length && NativeRegExp.isDigit(dc = ca[cp])) { tmp = 10 * num + NativeRegExp.unDigit(dc); if (tmp < num) break; num = tmp; } } else { /* ECMA 3, 1-9 or 01-99 */ num = NativeRegExp.unDigit(dc); cp = dp + 2; if ((dp + 2) < da.length) { dc = da[dp + 2]; if (NativeRegExp.isDigit(dc)) { num = 10 * num + NativeRegExp.unDigit(dc); cp++; } } if (num == 0) return null; /* $0 or $00 is not valid */ } /* Adjust num from 1 $n-origin to 0 array-index-origin. */ num--; skip[0] = cp - dp; return res.getParenSubString(num); } skip[0] = 2; switch (dc) { case '$': return dollarStr; case '&': return res.lastMatch; case '+': return res.lastParen; case '`': Context cx = Context.getCurrentContext(); if (cx.getLanguageVersion() == Context.VERSION_1_2) { /* * JS1.2 imitated the Perl4 bug where left context at each step * in an iterative use of a global regexp started from last match, * not from the start of the target string. But Perl4 does start * $` at the beginning of the target string when it is used in a * substitution, so we emulate that special case here. */ res.leftContext.index = 0; res.leftContext.length = res.lastMatch.index; } return res.leftContext; case '\'': return res.rightContext; } return null; } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/4b56c8a72dc498e07512de2bf2baef37591a6928/RegExpImpl.java/clean/src/org/mozilla/javascript/regexp/RegExpImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
2592,
780,
10634,
40,
25442,
12,
13673,
2828,
400,
16,
1149,
8526,
5248,
16,
509,
9986,
16,
19694,
509,
9107,
16,
509,
8526,
2488,
13,
565,
288,
3639,
1149,
8526,
3474,
31,
3639,
509,
3283,
31,
3639,
1149,
6744,
31,
3639,
509,
818,
16,
1853,
31,
3639,
1748,
7852,
279,
2863,
23253,
261,
13107,
14520,
13,
358,
4114,
4662,
21,
6,
5527,
18,
1195,
3639,
309,
261,
2414,
63,
9295,
65,
480,
3365,
6134,
5411,
604,
394,
3235,
5621,
3639,
309,
261,
9295,
405,
9107,
597,
5248,
63,
9295,
17,
21,
65,
422,
5282,
13,
5411,
327,
446,
31,
3639,
1748,
5294,
15089,
777,
5722,
80,
845,
17,
728,
26372,
302,
25442,
3152,
18,
1195,
3639,
6744,
273,
5248,
63,
9295,
15,
21,
15533,
3639,
309,
261,
9220,
13673,
18,
291,
10907,
12,
7201,
3719,
288,
4766,
282,
309,
14015,
71,
92,
18,
588,
3779,
1444,
1435,
480,
1772,
18,
5757,
67,
5280,
13,
5397,
597,
261,
71,
92,
18,
588,
3779,
1444,
1435,
1648,
1772,
18,
5757,
67,
21,
67,
24,
3719,
288,
7734,
309,
261,
7201,
422,
296,
20,
6134,
10792,
327,
446,
31,
7734,
1748,
2073,
364,
9391,
358,
4543,
20062,
70,
2456,
11078,
6970,
6815,
18,
1195,
7734,
818,
273,
374,
31,
7734,
3474,
273,
5248,
31,
7734,
3283,
273,
9986,
31,
7734,
1323,
261,
9904,
4057,
411,
3474,
18,
2469,
597,
16717,
13673,
18,
291,
10907,
12,
7201,
273,
3474,
63,
4057,
22643,
288,
10792,
1853,
273,
1728,
380,
818,
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,
2592,
780,
10634,
40,
25442,
12,
13673,
2828,
400,
16,
1149,
8526,
5248,
16,
509,
9986,
16,
19694,
509,
9107,
16,
509,
8526,
2488,
13,
565,
288,
3639,
1149,
8526,
3474,
31,
3639,
509,
3283,
31,
3639,
1149,
6744,
31,
3639,
509,
818,
16,
1853,
31,
3639,
1748,
7852,
279,
2863,
23253,
261,
13107,
14520,
13,
358,
4114,
4662,
21,
6,
5527,
18,
1195,
3639,
309,
261,
2414,
63,
9295,
65,
480,
3365,
6134,
5411,
604,
394,
3235,
5621,
3639,
309,
261,
9295,
405,
9107,
597,
5248,
63,
9295,
17,
21,
65,
422,
5282,
13,
5411,
327,
446,
31,
3639,
1748,
5294,
15089,
777,
5722,
80,
845,
17,
728,
26372,
302,
25442,
3152,
18,
1195,
3639,
6744,
2
] | |
return region; | IClassFile classFile = getLocalTypeClass(debugType, parent); if(classFile != null){ input = editor.doOpenBuffer(classFile, externalClass); } } else { input = editor.doOpenBuffer(debugType, parent, externalClass); | public static IRegion checkForInnerClass(int sourceLine, IClassFile parent) { IRegion region = new Region(0, 0); // get the editor with given class file, if any BytecodeClassFileEditor editor = getBytecodeEditor(parent); if (editor == null) { return region; } // get the inner class type according to the debugger stack frame, if any IJavaReferenceType debugType = sourceMapper.getLastTypeInDebugger(); if (debugType == null) { return region; } // check if it is a inner class from the class in editor if (!hasInnerClass(debugType, parent)) { // TODO not only inner classes could be defined in the same source file. return region; } boolean externalClass = editor.getEditorInput() instanceof ExternalClassFileEditorInput; // if both exists, replace the input to the inner class // TODO it seems that we open each time the same buffer for inner classes IEditorInput input = editor.doOpenBuffer( debugType, parent, externalClass); if (input == null) { return region; } try { editor.doSetInput(input); } catch (CoreException e) { BytecodeOutlinePlugin.log(e, IStatus.ERROR); return region; } // and then map given source line to the decompiled code int decompiledLine = sourceMapper.mapToDecompiled( sourceLine + 1, editor.getClassFile()); if (decompiledLine >= 0) { // and get the requested line information try { region = editor.getDocumentProvider().getDocument(input) .getLineInformation(decompiledLine); } catch (BadLocationException e) { BytecodeOutlinePlugin.log(e, IStatus.ERROR); } } return region; } | 2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/9172c855702891832150db512a17bbe6ab1f046e/BytecodeClassFileEditor.java/buggy/eclipse/plugin/src/de/loskutov/bco/editors/BytecodeClassFileEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
467,
5165,
13855,
2857,
797,
12,
474,
1084,
1670,
16,
467,
797,
812,
982,
13,
288,
3639,
467,
5165,
3020,
273,
394,
9164,
12,
20,
16,
374,
1769,
3639,
368,
336,
326,
4858,
598,
864,
667,
585,
16,
309,
1281,
3639,
2525,
16651,
797,
812,
6946,
4858,
273,
9979,
16651,
6946,
12,
2938,
1769,
3639,
309,
261,
9177,
422,
446,
13,
288,
2398,
467,
797,
812,
29728,
273,
6993,
559,
797,
12,
4148,
559,
16,
982,
1769,
309,
12,
1106,
812,
480,
446,
15329,
810,
273,
4858,
18,
2896,
3678,
1892,
12,
1106,
812,
16,
3903,
797,
1769,
289,
289,
469,
288,
225,
810,
273,
4858,
18,
2896,
3678,
1892,
12,
4148,
559,
16,
982,
16,
3903,
797,
1769,
3639,
289,
3639,
368,
336,
326,
3443,
667,
618,
4888,
358,
326,
19977,
2110,
2623,
16,
309,
1281,
3639,
467,
5852,
2404,
559,
1198,
559,
273,
1084,
4597,
18,
588,
3024,
559,
382,
24113,
5621,
3639,
309,
261,
4148,
559,
422,
446,
13,
288,
2398,
467,
797,
812,
29728,
273,
6993,
559,
797,
12,
4148,
559,
16,
982,
1769,
309,
12,
1106,
812,
480,
446,
15329,
810,
273,
4858,
18,
2896,
3678,
1892,
12,
1106,
812,
16,
3903,
797,
1769,
289,
289,
469,
288,
225,
810,
273,
4858,
18,
2896,
3678,
1892,
12,
4148,
559,
16,
982,
16,
3903,
797,
1769,
3639,
289,
3639,
368,
866,
309,
518,
353,
279,
3443,
667,
628,
326,
667,
316,
4858,
3639,
309,
16051,
5332,
2857,
797,
12,
4148,
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,
467,
5165,
13855,
2857,
797,
12,
474,
1084,
1670,
16,
467,
797,
812,
982,
13,
288,
3639,
467,
5165,
3020,
273,
394,
9164,
12,
20,
16,
374,
1769,
3639,
368,
336,
326,
4858,
598,
864,
667,
585,
16,
309,
1281,
3639,
2525,
16651,
797,
812,
6946,
4858,
273,
9979,
16651,
6946,
12,
2938,
1769,
3639,
309,
261,
9177,
422,
446,
13,
288,
2398,
467,
797,
812,
29728,
273,
6993,
559,
797,
12,
4148,
559,
16,
982,
1769,
309,
12,
1106,
812,
480,
446,
15329,
810,
273,
4858,
18,
2896,
3678,
1892,
12,
1106,
812,
16,
3903,
797,
1769,
289,
289,
469,
288,
225,
810,
273,
4858,
18,
2896,
3678,
1892,
12,
4148,
559,
16,
982,
16,
2
] |
public void mMISC() throws RecognitionException { int MISC_StartIndex = input.index(); try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 43) ) { return ; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' ) int alt1=37; switch ( input.LA(1) ) { case '!': alt1=1; break; case '@': alt1=2; break; case '$': alt1=3; break; case '%': alt1=4; break; case '^': alt1=5; break; case '&': int LA1_6 = input.LA(2); if ( LA1_6=='&' ) { alt1=24; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=34; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '=': alt1=32; break; case '-': alt1=27; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '=': alt1=30; break; case '+': alt1=26; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=23; } else { alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case '=': switch ( input.LA(2) ) { case '+': alt1=31; break; case '-': alt1=33; break; case '*': alt1=35; break; case '/': alt1=37; break; case '=': alt1=29; break; default: alt1=17;} break; case '/': int LA1_18 = input.LA(2); if ( LA1_18=='=' ) { alt1=36; } else { alt1=18;} break; case '(': alt1=19; break; case ')': alt1=20; break; case '\'': alt1=21; break; case '\\': alt1=22; break; case '<': alt1=25; break; case '>': alt1=28; break; default: if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("884:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:17: '!' { match('!'); if (failed) return ; } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:23: '@' { match('@'); if (failed) return ; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:29: '$' { match('$'); if (failed) return ; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:35: '%' { match('%'); if (failed) return ; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:41: '^' { match('^'); if (failed) return ; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:47: '&' { match('&'); if (failed) return ; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:53: '*' { match('*'); if (failed) return ; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:59: '_' { match('_'); if (failed) return ; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:65: '-' { match('-'); if (failed) return ; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:71: '+' { match('+'); if (failed) return ; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:19: '|' { match('|'); if (failed) return ; } break; case 12 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:25: ',' { match(','); if (failed) return ; } break; case 13 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:31: '{' { match('{'); if (failed) return ; } break; case 14 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:37: '}' { match('}'); if (failed) return ; } break; case 15 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:43: '[' { match('['); if (failed) return ; } break; case 16 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:49: ']' { match(']'); if (failed) return ; } break; case 17 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:55: '=' { match('='); if (failed) return ; } break; case 18 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:61: '/' { match('/'); if (failed) return ; } break; case 19 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:67: '(' { match('('); if (failed) return ; } break; case 20 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:73: ')' { match(')'); if (failed) return ; } break; case 21 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:79: '\'' { match('\''); if (failed) return ; } break; case 22 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:86: '\\' { match('\\'); if (failed) return ; } break; case 23 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:19: '||' { match("||"); if (failed) return ; } break; case 24 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:26: '&&' { match("&&"); if (failed) return ; } break; case 25 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:33: '<<<' { match("<<<"); if (failed) return ; } break; case 26 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:41: '++' { match("++"); if (failed) return ; } break; case 27 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:48: '--' { match("--"); if (failed) return ; } break; case 28 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:55: '>>>' { match(">>>"); if (failed) return ; } break; case 29 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:63: '==' { match("=="); if (failed) return ; } break; case 30 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:70: '+=' { match("+="); if (failed) return ; } break; case 31 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:77: '=+' { match("=+"); if (failed) return ; } break; case 32 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:84: '-=' { match("-="); if (failed) return ; } break; case 33 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:91: '=-' { match("=-"); if (failed) return ; } break; case 34 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:97: '*=' { match("*="); if (failed) return ; } break; case 35 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:104: '=*' { match("=*"); if (failed) return ; } break; case 36 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:888:19: '/=' { match("/="); if (failed) return ; } break; case 37 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:888:26: '=/' { match("=/"); if (failed) return ; } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 43, MISC_StartIndex); } } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f57cd683a66080d941264e3f98974908a6a489a0/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
7492,
2312,
1435,
1216,
9539,
288,
3639,
509,
20806,
2312,
67,
16792,
273,
810,
18,
1615,
5621,
3639,
775,
288,
5411,
509,
618,
273,
20806,
2312,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
309,
261,
6888,
34,
20,
597,
1818,
11257,
2175,
12,
2630,
16,
21193,
13,
262,
288,
327,
274,
289,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
5482,
25,
30,
4033,
30,
261,
15502,
571,
9175,
571,
11874,
571,
9089,
571,
19161,
571,
9824,
571,
5306,
571,
4427,
571,
4014,
571,
10058,
571,
8030,
571,
3316,
571,
9790,
571,
9571,
571,
8375,
571,
8641,
571,
5214,
571,
2023,
571,
7321,
571,
5777,
571,
15053,
571,
5282,
571,
6699,
16637,
571,
5183,
26045,
571,
2368,
17685,
11,
571,
15126,
6797,
571,
16979,
571,
296,
9778,
1870,
571,
22853,
571,
15126,
2218,
571,
15196,
6797,
571,
2400,
2218,
571,
15196,
6627,
571,
14609,
2218,
571,
15196,
4035,
571,
1173,
2218,
571,
15196,
2473,
262,
5411,
509,
3770,
21,
33,
6418,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
11817,
4278,
7734,
3770,
21,
33,
21,
31,
7734,
898,
31,
5411,
648,
4622,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
7492,
2312,
1435,
1216,
9539,
288,
3639,
509,
20806,
2312,
67,
16792,
273,
810,
18,
1615,
5621,
3639,
775,
288,
5411,
509,
618,
273,
20806,
2312,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
309,
261,
6888,
34,
20,
597,
1818,
11257,
2175,
12,
2630,
16,
21193,
13,
262,
288,
327,
274,
289,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
5482,
2
] | ||
resource.getLockedInProject() != currentProject.getId()) ) { | (resource.getLockedInProject() != currentProject.getId() && currentProject.getFlags() != C_PROJECT_STATE_INVISIBLE)) ) { | public boolean accessLock(CmsUser currentUser, CmsProject currentProject, CmsResource resource) throws CmsException { // check, if this is the onlineproject if(onlineProject(currentUser, currentProject).equals(currentProject)){ // the online-project is not writeable! return(false); } // check the access to the project if( ! accessProject(currentUser, currentProject, currentProject.getId()) ) { // no access to the project! return(false); } // check if the resource belongs to the current project if(resource.getProjectId() != currentProject.getId()) { return false; } // read the parent folder if(resource.getParent() != null) { // readFolder without checking access resource = m_dbAccess.readFolder(resource.getProjectId(), resource.getParent()); } else { // no parent folder! return true; } // check the rights and if the resource is not locked do { // is the resource locked? if( resource.isLocked() && (resource.isLockedBy() != currentUser.getId() || resource.getLockedInProject() != currentProject.getId()) ) { // resource locked by anopther user, no creation allowed return(false); } // read next resource if(resource.getParent() != null) { // readFolder without checking access resource = m_dbAccess.readFolder(resource.getProjectId(), resource.getParent()); } } while(resource.getParent() != null); // all checks are done positive return(true); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8a45e326b75ba9713c204a92af1c0d796059e223/CmsResourceBroker.java/buggy/src/com/opencms/file/genericSql/CmsResourceBroker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
2006,
2531,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
17311,
7630,
1058,
13,
1216,
11228,
288,
3639,
368,
866,
16,
309,
333,
353,
326,
12365,
4406,
3639,
309,
12,
21026,
4109,
12,
2972,
1299,
16,
783,
4109,
2934,
14963,
12,
2972,
4109,
3719,
95,
5411,
368,
326,
12365,
17,
4406,
353,
486,
30223,
5,
5411,
327,
12,
5743,
1769,
3639,
289,
3639,
368,
866,
326,
2006,
358,
326,
1984,
3639,
309,
12,
401,
2006,
4109,
12,
2972,
1299,
16,
783,
4109,
16,
783,
4109,
18,
26321,
10756,
262,
288,
5411,
368,
1158,
2006,
358,
326,
1984,
5,
5411,
327,
12,
5743,
1769,
3639,
289,
3639,
368,
866,
309,
326,
1058,
11081,
358,
326,
783,
1984,
3639,
309,
12,
3146,
18,
588,
4109,
548,
1435,
480,
783,
4109,
18,
26321,
10756,
288,
5411,
327,
629,
31,
3639,
289,
3639,
368,
855,
326,
982,
3009,
3639,
309,
12,
3146,
18,
588,
3054,
1435,
480,
446,
13,
288,
5411,
368,
855,
3899,
2887,
6728,
2006,
5411,
1058,
273,
312,
67,
1966,
1862,
18,
896,
3899,
12,
3146,
18,
588,
4109,
548,
9334,
1058,
18,
588,
3054,
10663,
3639,
289,
469,
288,
5411,
368,
1158,
982,
3009,
5,
5411,
327,
638,
31,
3639,
289,
3639,
368,
866,
326,
14989,
471,
309,
326,
1058,
353,
486,
8586,
3639,
741,
288,
5411,
368,
353,
326,
1058,
8586,
35,
5411,
309,
12,
1058,
18,
291,
8966,
1435,
597,
261,
3146,
18,
291,
8966,
858,
1435,
480,
13970,
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,
1250,
2006,
2531,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
17311,
7630,
1058,
13,
1216,
11228,
288,
3639,
368,
866,
16,
309,
333,
353,
326,
12365,
4406,
3639,
309,
12,
21026,
4109,
12,
2972,
1299,
16,
783,
4109,
2934,
14963,
12,
2972,
4109,
3719,
95,
5411,
368,
326,
12365,
17,
4406,
353,
486,
30223,
5,
5411,
327,
12,
5743,
1769,
3639,
289,
3639,
368,
866,
326,
2006,
358,
326,
1984,
3639,
309,
12,
401,
2006,
4109,
12,
2972,
1299,
16,
783,
4109,
16,
783,
4109,
18,
26321,
10756,
262,
288,
5411,
368,
1158,
2006,
358,
326,
1984,
5,
5411,
327,
12,
5743,
1769,
3639,
289,
3639,
368,
866,
309,
326,
1058,
11081,
358,
326,
2
] |
public NumberExpr createNumberExpr(int number) throws JaxenException { // return new DefaultNumberExpr( new Integer(number) ); return new DefaultNumberExpr( new Double(number) ); } | 12974 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12974/b2b8245c3f10c560d442911f2a4a99b31d6e660f/DefaultXPathFactory.java/clean/src/java/main/org/jaxen/expr/DefaultXPathFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1854,
4742,
2640,
1854,
4742,
12,
474,
2696,
13,
15069,
46,
651,
275,
503,
95,
759,
2463,
2704,
1868,
1854,
4742,
12,
2704,
4522,
12,
2696,
10019,
2463,
2704,
1868,
1854,
4742,
12,
2704,
5265,
12,
2696,
10019,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1854,
4742,
2640,
1854,
4742,
12,
474,
2696,
13,
15069,
46,
651,
275,
503,
95,
759,
2463,
2704,
1868,
1854,
4742,
12,
2704,
4522,
12,
2696,
10019,
2463,
2704,
1868,
1854,
4742,
12,
2704,
5265,
12,
2696,
10019,
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
] | ||
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); legacy = new LegacyZVIReader(); OLEParser parser = new OLEParser(id); parser.parse(0); Vector[] files = parser.getFiles(); headerData = new Hashtable(); pixelData = new Hashtable(); int largest = 0; int largestIndex = 0; int nextItem = 0; Vector itemNames = parser.getNames(); for (int i=0; i<files[0].size(); i++) { byte[] data = (byte[]) files[1].get(i); if (data.length > largest) largestIndex = i; String pathName = ((String) files[0].get(i)).trim(); pathName = DataTools.stripString(pathName); boolean isContents = pathName.endsWith("Contents"); boolean isImage = pathName.endsWith("Image"); try { if (((isContents && ((pathName.indexOf("Item") != -1) || pathName.indexOf("Image") != -1) && data.length > 6000)) || (data.length == dataLength)) { header = data; while ((dataLength != 0) && (data.length < dataLength) && isContents && ((pathName.indexOf("Item") != -1) || pathName.indexOf("Image") != -1)) { i++; data = (byte[]) files[1].get(i); if (data.length > largest) largestIndex = i; pathName = ((String) files[0].get(i)).trim(); pathName = DataTools.stripString(pathName); isContents = pathName.endsWith("Contents"); } int imageNum = 0; if (pathName.indexOf("Item") != -1) { String num = pathName.substring(pathName.lastIndexOf("Item") + 5, pathName.lastIndexOf(")")); imageNum = Integer.parseInt(num); } if (nextItem < itemNames.size()) { String num = ((String) itemNames.get(nextItem)).trim(); if (num.length() > 1) num = DataTools.stripString(num); int n = Integer.parseInt(num); // choose whether to use imageNum or n if (n != imageNum) { if (pixelData.containsKey(new Integer(imageNum))) { imageNum = n; } } if (pathName.indexOf("Item") != -1) { num = pathName.substring(0, pathName.lastIndexOf("Item")); while (pixelData.containsKey(new Integer(imageNum)) && (num.indexOf("Item") != -1)) { String s = num.substring(num.lastIndexOf("Item") + 5, num.lastIndexOf(")")); imageNum = Integer.parseInt(s); num = num.substring(0, num.lastIndexOf("Item")); } } // if we *still* don't find a valid key, give up and use // the legacy reader if (pixelData.containsKey(new Integer(imageNum))) { if (legacy.getImageCount(id) == 1) break; needLegacy = true; legacy.initFile(id); return; } nextItem++; } int byteCount = 2; byteCount += 4; // version field byteCount += 6; // type field byteCount += 2; int numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; byteCount += 2; imageWidth = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 6; imageHeight = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4; byteCount += 6; // depth byteCount += 6; // pixel format byteCount += 6; // count byteCount += 2; bitsPerSample = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // plugin CLSID byteCount += 38; // not sure what this is for byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // layers byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // scaling byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // root folder name byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // display item name byteCount += 28; // streamed header data // get pixel data if (header.length > byteCount) { byte[] head = new byte[byteCount]; System.arraycopy(header, 0, head, 0, head.length); headerData.put(new Integer(imageNum), (Object) head); byte[] px = new byte[header.length - byteCount]; System.arraycopy(header, byteCount, px, 0, px.length); if (!pixelData.containsKey(new Integer(imageNum))) { shuffle = parser.shuffle(); // nasty special case...I pity the person who finds a bug in this if (shuffle > 0) { byte[] chunkOne = new byte[shuffle]; byte[] chunkTwo = new byte[parser.length() - shuffle + 11700]; System.arraycopy(px, 0, chunkOne, 0, chunkOne.length); System.arraycopy(px, chunkOne.length, chunkTwo, 0, chunkTwo.length); byte[] tct = new byte[chunkOne.length]; int bpp = bitsPerSample / 8; int mul = (int) (imageWidth - (imageWidth * 0.01)); mul *= bpp; mul += 2; for (int k=0; k<(chunkOne.length / (bpp*imageWidth)); k++) { System.arraycopy(chunkOne, k*bpp*imageWidth, tct, (k+1)*bpp*imageWidth - mul, mul); System.arraycopy(chunkOne, k*bpp*imageWidth+mul, tct, k*bpp*imageWidth, bpp*imageWidth - mul); } chunkOne = tct; byte[] tco = new byte[chunkTwo.length]; mul = (int) (imageWidth * 0.14); mul *= bpp; for (int k=0; k<(chunkTwo.length / (bpp*imageWidth)); k++) { System.arraycopy(chunkTwo, k*bpp*imageWidth, tco, (k+1)*bpp*imageWidth - mul, mul); System.arraycopy(chunkTwo, k*bpp*imageWidth+mul, tco, k*bpp*imageWidth, bpp*imageWidth - mul); } chunkTwo = tco; px = new byte[px.length]; System.arraycopy(chunkTwo, 0, px, 0, chunkTwo.length); System.arraycopy(chunkOne, 0, px, chunkTwo.length, chunkOne.length); // now we have to shift the whole array to the right by // 0.01 * width pixels mul = imageWidth - ((int) (imageWidth * 0.01)); mul *= bpp; byte[] tmp = new byte[px.length]; for (int k=0; k<imageHeight; k++) { System.arraycopy(px, k*bpp*imageWidth, tmp, (k+1)*bpp*imageWidth - mul, mul); System.arraycopy(px, k*bpp*imageWidth+mul, tmp, k*bpp*imageWidth, bpp*imageWidth - mul); } px = tmp; } pixelData.put(new Integer(imageNum), (Object) px); dataLength = px.length + head.length; nImages++; } } else break; } else if (isContents && isImage) { // we've found the header data header = data; int pointer = 14; int length = DataTools.bytesToInt(header, pointer, 2, true); pointer += 4 + length; imageWidth = DataTools.bytesToInt(header, pointer, 4, true); pointer += 6; imageHeight = DataTools.bytesToInt(header, pointer, 4, true); pointer += 6; pointer += 6; pixelFormat = DataTools.bytesToInt(header, pointer, 4, true); pointer += 6; switch (pixelFormat) { case 1: bytesPerPixel = 3; break; case 2: bytesPerPixel = 4; break; case 3: bytesPerPixel = 1; break; case 4: bytesPerPixel = 2; break; case 6: bytesPerPixel = 4; break; case 8: bytesPerPixel = 6; break; default: bytesPerPixel = 1; } if ((bytesPerPixel % 2) != 0) channels = 3; } else if (pathName.endsWith("Tags") && pathName.startsWith("Root Entry")) { // the main tags stream tags = data; } } catch (Exception e) { } } if (nImages == 0) { // HACK // just grab the largest file header = (byte[]) files[1].get(largestIndex); String pathName = (String) files[0].get(largestIndex); int imageNum = 0; if (pathName.indexOf("Item") != -1) { String num = pathName.substring(pathName.indexOf("Item") + 5, pathName.indexOf(")")); imageNum = Integer.parseInt(num); } int byteCount = 166; byteCount += 2; imageWidth = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 6; imageHeight = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4; byteCount += 6; // depth byteCount += 6; // pixel format byteCount += 6; // count byteCount += 2; bytesPerPixel = DataTools.bytesToInt(header, byteCount, 4, true) / 8; byteCount += 4; int numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // plugin CLSID byteCount += 38; // not sure what this is for byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // layers byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // scaling byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // root folder name byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // display item name byteCount += 28; // streamed header data // get pixel data if (header.length > byteCount) { byte[] head = new byte[byteCount]; System.arraycopy(header, 0, head, 0, head.length); headerData.put(new Integer(nImages), (Object) head); byte[] px = new byte[header.length - byteCount]; System.arraycopy(header, byteCount, px, 0, px.length); pixelData.put(new Integer(nImages), (Object) px); nImages++; } } initMetadata(); } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/f8fea5aec2de454fd84e68759019ac47d99be52a/ZeissZVIReader.java/clean/loci/formats/ZeissZVIReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
8866,
273,
394,
22781,
62,
4136,
2514,
5621,
4202,
531,
900,
2678,
2082,
273,
394,
531,
900,
2678,
12,
350,
1769,
565,
2082,
18,
2670,
12,
20,
1769,
565,
5589,
8526,
1390,
273,
2082,
18,
588,
2697,
5621,
3639,
1446,
751,
273,
394,
18559,
5621,
565,
4957,
751,
273,
394,
18559,
5621,
4202,
509,
12756,
273,
374,
31,
565,
509,
12756,
1016,
273,
374,
31,
4202,
509,
1024,
1180,
273,
374,
31,
565,
5589,
761,
1557,
273,
2082,
18,
588,
1557,
5621,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2354,
63,
20,
8009,
1467,
5621,
277,
27245,
288,
1377,
1160,
8526,
501,
273,
261,
7229,
63,
5717,
1390,
63,
21,
8009,
588,
12,
77,
1769,
1377,
309,
261,
892,
18,
2469,
405,
12756,
13,
12756,
1016,
273,
277,
31,
5411,
514,
22943,
273,
14015,
780,
13,
1390,
63,
20,
8009,
588,
12,
77,
13,
2934,
5290,
5621,
1377,
22943,
273,
1910,
10348,
18,
6406,
780,
12,
803,
461,
1769,
1377,
1250,
353,
6323,
273,
22943,
18,
5839,
1190,
2932,
6323,
8863,
1377,
1250,
353,
2040,
273,
22943,
18,
5839,
1190,
2932,
2040,
8863,
1377,
775,
288,
3639,
309,
261,
12443,
291,
6323,
597,
6647,
14015,
803,
461,
18,
31806,
2932,
1180,
7923,
480,
300,
21,
13,
747,
22943,
18,
31806,
2932,
2040,
7923,
480,
300,
21,
13,
1850,
597,
501,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
8866,
273,
394,
22781,
62,
4136,
2514,
5621,
4202,
531,
900,
2678,
2082,
273,
394,
531,
900,
2678,
12,
350,
1769,
565,
2082,
18,
2670,
12,
20,
1769,
565,
5589,
8526,
1390,
273,
2082,
18,
588,
2697,
5621,
3639,
1446,
751,
273,
394,
18559,
5621,
565,
4957,
751,
273,
394,
18559,
5621,
4202,
509,
12756,
273,
374,
31,
565,
509,
12756,
1016,
273,
374,
31,
4202,
509,
1024,
1180,
273,
374,
31,
565,
5589,
761,
1557,
273,
2082,
18,
588,
1557,
5621,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2354,
63,
20,
2
] | ||
MethodInfo method = JavaMethodInfo.getMethodInfo(Target.class.getDeclaredMethod( "modifiers1", new Class[] {})); | MethodInfo method = JavaMethodInfo.getMethodInfo(Target.class.getDeclaredMethod("modifiers1", new Class[] {})); | public void testWithinCodeType() throws Exception { MethodInfo method = JavaMethodInfo.getMethodInfo(Target.class.getDeclaredMethod( "modifiers1", new Class[] {})); assertTrue(new ExpressionInfo( "execution(void test.expression.Target.modifiers1()) AND withincode(void test.expression.Target.modifiers1())", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.EXECUTION, method, method))); assertTrue(new ExpressionInfo( "call(void test.expression.Target.modifiers1()) AND withincode(void test.expression.Target.modifiers1())", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.CALL, method, method))); assertFalse(new ExpressionInfo( "call(void test.expression.Target.modifiers1()) AND NOT withincode(void test.expression.Target.modifiers1())", NAMESPACE).getExpression().match( new ExpressionContext(PointcutType.CALL, method, method))); } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/35bb5086b5fd1f4fa035f3a6bbfdf7b6709824cb/ExpressionTest.java/buggy/aspectwerkz3/src/test/test/expression/ExpressionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
18949,
1085,
559,
1435,
1216,
1185,
288,
3639,
2985,
966,
707,
273,
5110,
1305,
966,
18,
588,
1305,
966,
12,
2326,
18,
1106,
18,
588,
18888,
1305,
12,
5411,
315,
15432,
21,
3113,
5411,
394,
1659,
8526,
2618,
10019,
3639,
1815,
5510,
12,
2704,
5371,
966,
12,
5411,
315,
16414,
12,
6459,
1842,
18,
8692,
18,
2326,
18,
15432,
21,
10756,
4116,
3470,
710,
12,
6459,
1842,
18,
8692,
18,
2326,
18,
15432,
21,
1435,
2225,
16,
5411,
18494,
2934,
588,
2300,
7675,
1916,
12,
5411,
394,
5371,
1042,
12,
2148,
5150,
559,
18,
15271,
13269,
16,
707,
16,
707,
3719,
1769,
3639,
1815,
5510,
12,
2704,
5371,
966,
12,
5411,
315,
1991,
12,
6459,
1842,
18,
8692,
18,
2326,
18,
15432,
21,
10756,
4116,
3470,
710,
12,
6459,
1842,
18,
8692,
18,
2326,
18,
15432,
21,
1435,
2225,
16,
5411,
18494,
2934,
588,
2300,
7675,
1916,
12,
5411,
394,
5371,
1042,
12,
2148,
5150,
559,
18,
13730,
16,
707,
16,
707,
3719,
1769,
3639,
1815,
8381,
12,
2704,
5371,
966,
12,
5411,
315,
1991,
12,
6459,
1842,
18,
8692,
18,
2326,
18,
15432,
21,
10756,
4116,
4269,
3470,
710,
12,
6459,
1842,
18,
8692,
18,
2326,
18,
15432,
21,
1435,
2225,
16,
5411,
18494,
2934,
588,
2300,
7675,
1916,
12,
5411,
394,
5371,
1042,
12,
2148,
5150,
559,
18,
13730,
16,
707,
16,
707,
3719,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18949,
1085,
559,
1435,
1216,
1185,
288,
3639,
2985,
966,
707,
273,
5110,
1305,
966,
18,
588,
1305,
966,
12,
2326,
18,
1106,
18,
588,
18888,
1305,
12,
5411,
315,
15432,
21,
3113,
5411,
394,
1659,
8526,
2618,
10019,
3639,
1815,
5510,
12,
2704,
5371,
966,
12,
5411,
315,
16414,
12,
6459,
1842,
18,
8692,
18,
2326,
18,
15432,
21,
10756,
4116,
3470,
710,
12,
6459,
1842,
18,
8692,
18,
2326,
18,
15432,
21,
1435,
2225,
16,
5411,
18494,
2934,
588,
2300,
7675,
1916,
12,
5411,
394,
5371,
1042,
12,
2148,
5150,
559,
18,
15271,
13269,
16,
707,
16,
707,
3719,
1769,
3639,
1815,
5510,
12,
2704,
5371,
966,
12,
5411,
315,
1991,
12,
6459,
2
] |
numBytes += cur.getData().length - _readyDataBlockIndex; | numBytes += cur.getValid() - _readyDataBlockIndex; | public int getTotalReadySize() { synchronized (_dataLock) { if (_locallyClosed) return 0; int numBytes = 0; for (int i = 0; i < _readyDataBlocks.size(); i++) { ByteArray cur = (ByteArray)_readyDataBlocks.get(i); if (i == 0) numBytes += cur.getData().length - _readyDataBlockIndex; else numBytes += cur.getData().length; } return numBytes; } } | 27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/00f27d440052b18141d9d99aa9e8d4b001592dc4/MessageInputStream.java/buggy/apps/streaming/java/src/net/i2p/client/streaming/MessageInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
12831,
8367,
1225,
1435,
288,
3639,
3852,
261,
67,
892,
2531,
13,
288,
5411,
309,
261,
67,
1829,
1230,
7395,
13,
327,
374,
31,
5411,
509,
18633,
273,
374,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
389,
1672,
751,
6450,
18,
1467,
5621,
277,
27245,
288,
7734,
7964,
662,
273,
261,
8826,
13,
67,
1672,
751,
6450,
18,
588,
12,
77,
1769,
7734,
309,
261,
77,
422,
374,
13,
10792,
18633,
1011,
662,
18,
588,
1556,
1435,
300,
389,
1672,
751,
1768,
1016,
31,
7734,
469,
10792,
18633,
1011,
662,
18,
588,
751,
7675,
2469,
31,
5411,
289,
5411,
327,
18633,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
12831,
8367,
1225,
1435,
288,
3639,
3852,
261,
67,
892,
2531,
13,
288,
5411,
309,
261,
67,
1829,
1230,
7395,
13,
327,
374,
31,
5411,
509,
18633,
273,
374,
31,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
389,
1672,
751,
6450,
18,
1467,
5621,
277,
27245,
288,
7734,
7964,
662,
273,
261,
8826,
13,
67,
1672,
751,
6450,
18,
588,
12,
77,
1769,
7734,
309,
261,
77,
422,
374,
13,
10792,
18633,
1011,
662,
18,
588,
1556,
1435,
300,
389,
1672,
751,
1768,
1016,
31,
7734,
469,
10792,
18633,
1011,
662,
18,
588,
751,
7675,
2469,
31,
5411,
289,
5411,
327,
18633,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
public String getName (int index) { return getQName(index); } | public String getName(int index) { return getQName(index); } | public String getName (int index) { return getQName(index); } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/7fb7568e63c3fe14af521de4699cb37898923ca7/SAXDriver.java/clean/libjava/gnu/xml/aelfred2/SAXDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
261,
474,
770,
13,
565,
288,
377,
202,
2463,
336,
13688,
12,
1615,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
261,
474,
770,
13,
565,
288,
377,
202,
2463,
336,
13688,
12,
1615,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
default: error(XSLTErrorResources.ER_CANNOT_ADD, new Object[] {newChild.getNodeName(), this.getNodeName()}); | default : error(XSLTErrorResources.ER_CANNOT_ADD, new Object[]{ newChild.getNodeName(), this.getNodeName() }); | public Node appendChild(Node newChild) throws DOMException { int type = ((ElemTemplateElement)newChild).getXSLToken(); switch(type) { case Constants.ELEMNAME_ATTRIBUTE: break; default: error(XSLTErrorResources.ER_CANNOT_ADD, new Object[] {newChild.getNodeName(), this.getNodeName()}); //"Can not add " +((ElemTemplateElement)newChild).m_elemName + //" to " + this.m_elemName); } return super.appendChild(newChild); } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemAttributeSet.java/buggy/src/org/apache/xalan/templates/ElemAttributeSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2029,
9079,
5833,
12,
907,
19783,
13,
565,
1216,
4703,
503,
225,
288,
565,
509,
618,
273,
14015,
7498,
2283,
1046,
13,
2704,
1763,
2934,
588,
60,
4559,
1345,
5621,
565,
1620,
12,
723,
13,
565,
288,
565,
648,
5245,
18,
41,
26817,
1985,
67,
11616,
30,
1377,
898,
31,
1850,
805,
30,
1377,
555,
12,
60,
4559,
56,
668,
3805,
18,
654,
67,
39,
16791,
67,
8355,
16,
394,
1033,
8526,
288,
2704,
1763,
18,
588,
18948,
9334,
333,
18,
588,
18948,
17767,
1769,
368,
6,
2568,
486,
527,
315,
397,
12443,
7498,
2283,
1046,
13,
2704,
1763,
2934,
81,
67,
10037,
461,
397,
5411,
368,
6,
358,
315,
397,
333,
18,
81,
67,
10037,
461,
1769,
565,
289,
565,
327,
2240,
18,
6923,
1763,
12,
2704,
1763,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2029,
9079,
5833,
12,
907,
19783,
13,
565,
1216,
4703,
503,
225,
288,
565,
509,
618,
273,
14015,
7498,
2283,
1046,
13,
2704,
1763,
2934,
588,
60,
4559,
1345,
5621,
565,
1620,
12,
723,
13,
565,
288,
565,
648,
5245,
18,
41,
26817,
1985,
67,
11616,
30,
1377,
898,
31,
1850,
805,
30,
1377,
555,
12,
60,
4559,
56,
668,
3805,
18,
654,
67,
39,
16791,
67,
8355,
16,
394,
1033,
8526,
288,
2704,
1763,
18,
588,
18948,
9334,
333,
18,
588,
18948,
17767,
1769,
368,
6,
2568,
486,
527,
315,
397,
12443,
7498,
2283,
1046,
13,
2704,
1763,
2934,
81,
67,
10037,
461,
397,
5411,
368,
6,
358,
315,
397,
333,
18,
81,
67,
10037,
461,
2
] |
FindClassPathResult list = res; | FindClassPathResult list = res; | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject)) { return RubyMapMethod.CONTINUE; } RubyObject value = (RubyObject) _value; FindClassPathResult res = (FindClassPathResult) _res; RubyString path = null; if (!key.isConstId()) { return RubyMapMethod.CONTINUE; } String name = key.toName(); if (res.path != null) { path = (RubyString) res.path.m_dup(); path.m_cat("::"); path.m_cat(name); } else { path = RubyString.m_newString(getRuby(), name); } if (value == res.klass) { res.name = key; res.path = path; return RubyMapMethod.STOP; } if (value.m_kind_of(getRuby().getClasses().getModuleClass()).isTrue()) { if (value.getInstanceVariables() == null) { return RubyMapMethod.CONTINUE; } FindClassPathResult list = res; while (list != null) { if (list.track == value) { return RubyMapMethod.CONTINUE; } list = list.prev; } FindClassPathResult arg = new FindClassPathResult(); arg.name = null; arg.path = path; arg.klass = res.klass; arg.track = value; arg.prev = res; value.getInstanceVariables().foreach(this, arg); if (arg.name != null) { res.name = arg.name; res.path = arg.path; return RubyMapMethod.STOP; } } return RubyMapMethod.CONTINUE; } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
1836,
12,
921,
389,
856,
16,
1033,
389,
1132,
16,
1033,
389,
455,
13,
288,
1082,
202,
759,
19782,
326,
924,
18,
1082,
202,
54,
10340,
548,
498,
273,
446,
31,
1082,
202,
698,
288,
9506,
202,
856,
273,
261,
54,
10340,
548,
13,
389,
856,
31,
1082,
202,
97,
1044,
261,
797,
22768,
4946,
29924,
337,
82,
13,
288,
9506,
202,
856,
273,
4170,
10340,
7675,
267,
798,
12443,
780,
13,
389,
856,
1769,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
856,
5177,
1404,
1599,
30,
11843,
397,
389,
856,
397,
11143,
1769,
1082,
202,
97,
1082,
202,
430,
16051,
24899,
1132,
1276,
19817,
921,
3719,
288,
9506,
202,
2463,
19817,
863,
1305,
18,
6067,
26725,
31,
1082,
202,
97,
1082,
202,
54,
10340,
921,
460,
273,
261,
54,
10340,
921,
13,
389,
1132,
31,
1082,
202,
3125,
22158,
1253,
400,
273,
261,
3125,
22158,
1253,
13,
389,
455,
31,
1082,
202,
54,
10340,
780,
589,
273,
446,
31,
1082,
202,
430,
16051,
856,
18,
291,
9661,
548,
10756,
288,
9506,
202,
2463,
19817,
863,
1305,
18,
6067,
26725,
31,
1082,
202,
97,
1082,
202,
780,
508,
273,
498,
18,
869,
461,
5621,
1082,
202,
430,
261,
455,
18,
803,
480,
446,
13,
288,
9506,
202,
803,
273,
261,
54,
10340,
780,
13,
400,
18,
803,
18,
81,
67,
26427,
5621,
9506,
202,
803,
18,
81,
67,
2574,
2932,
30,
2773,
1769,
9506,
202,
803,
18,
81,
67,
2574,
12,
529,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
1836,
12,
921,
389,
856,
16,
1033,
389,
1132,
16,
1033,
389,
455,
13,
288,
1082,
202,
759,
19782,
326,
924,
18,
1082,
202,
54,
10340,
548,
498,
273,
446,
31,
1082,
202,
698,
288,
9506,
202,
856,
273,
261,
54,
10340,
548,
13,
389,
856,
31,
1082,
202,
97,
1044,
261,
797,
22768,
4946,
29924,
337,
82,
13,
288,
9506,
202,
856,
273,
4170,
10340,
7675,
267,
798,
12443,
780,
13,
389,
856,
1769,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
856,
5177,
1404,
1599,
30,
11843,
397,
389,
856,
397,
11143,
1769,
1082,
202,
97,
1082,
202,
430,
16051,
24899,
1132,
1276,
19817,
921,
3719,
288,
9506,
202,
2463,
19817,
863,
1305,
2
] |
private static void addToMapValueSet(Map/*<K,Set<V>>*/ map, Object/*<K>*/ key, Object/*<V>*/ val) { Set/*<V>*/ oldVal = (Set)map.get(key); | private static <K,V> void addToMapValueSet(Map<K,Set<V>> map, K key, V val) { Set<V> oldVal = map.get(key); | private static void addToMapValueSet(Map/*<K,Set<V>>*/ map, Object/*<K>*/ key, Object/*<V>*/ val) { Set/*<V>*/ oldVal = (Set)map.get(key); if (oldVal == null) { HashSet/*<V>*/ values = new HashSet(); values.add(val); map.put(key,values); } else { oldVal.add(val); } } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/bb8e5a901060b828ff12beb74d8895d269ab6650/StaticsProp.java/buggy/streams/src/at/dms/kjc/sir/lowering/StaticsProp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
9604,
863,
620,
694,
12,
863,
20308,
32,
47,
16,
694,
32,
58,
9778,
5549,
852,
16,
4766,
1850,
1033,
20308,
32,
47,
34,
5549,
498,
16,
29159,
1033,
20308,
32,
58,
34,
5549,
1244,
13,
288,
3639,
1000,
20308,
32,
58,
34,
5549,
1592,
3053,
273,
261,
694,
13,
1458,
18,
588,
12,
856,
1769,
3639,
309,
261,
1673,
3053,
422,
446,
13,
288,
5411,
6847,
20308,
32,
58,
34,
5549,
924,
273,
394,
6847,
5621,
5411,
924,
18,
1289,
12,
1125,
1769,
5411,
852,
18,
458,
12,
856,
16,
2372,
1769,
3639,
289,
469,
288,
2398,
1592,
3053,
18,
1289,
12,
1125,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
9604,
863,
620,
694,
12,
863,
20308,
32,
47,
16,
694,
32,
58,
9778,
5549,
852,
16,
4766,
1850,
1033,
20308,
32,
47,
34,
5549,
498,
16,
29159,
1033,
20308,
32,
58,
34,
5549,
1244,
13,
288,
3639,
1000,
20308,
32,
58,
34,
5549,
1592,
3053,
273,
261,
694,
13,
1458,
18,
588,
12,
856,
1769,
3639,
309,
261,
1673,
3053,
422,
446,
13,
288,
5411,
6847,
20308,
32,
58,
34,
5549,
924,
273,
394,
6847,
5621,
5411,
924,
18,
1289,
12,
1125,
1769,
5411,
852,
18,
458,
12,
856,
16,
2372,
1769,
3639,
289,
469,
288,
2398,
1592,
3053,
18,
1289,
12,
1125,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else if (contentType.startsWith("text/javascript") || contentType.startsWith("application/x-javascript")) { Reader r = new InputStreamReader(is); Writer w = resp.getWriter(); rewriter.filterJavaScript(r, w); | private void processResponse(InputStream is, HttpServletResponse resp, UrlRewriter rewriter) throws IOException { String contentType = resp.getContentType(); contentType = null == contentType ? "" : contentType.toLowerCase(); if (contentType.startsWith("text/html")) { try { PrintWriter w = new PrintWriter(resp.getWriter()); rewriteStream(is, w, rewriter); } catch (ParserException exn) { logger.warn("could not parse html", exn); } } else if (contentType.startsWith("multipart/")) { OutputStream os = resp.getOutputStream(); handleMultipart(contentType, is, os, rewriter); } else if (contentType.startsWith("text/css")) { Reader r = new InputStreamReader(is); Writer w = resp.getWriter(); rewriter.filterCss(r, w); } else if (contentType.startsWith("text/javascript") || contentType.startsWith("application/x-javascript")) { Reader r = new InputStreamReader(is); Writer w = resp.getWriter(); rewriter.filterJavaScript(r, w); } else { OutputStream os = resp.getOutputStream(); copyStream(is, os); } } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/82168a263cc628c7e17571cb878920b5bb993539/WebProxy.java/buggy/tran/portal/servlets/proxy/src/com/untangle/tran/portal/proxy/WebProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1064,
12,
4348,
353,
16,
12446,
1718,
16,
4766,
6816,
17631,
1091,
283,
6299,
13,
3639,
1216,
1860,
565,
288,
3639,
514,
5064,
273,
1718,
18,
588,
8046,
5621,
3639,
5064,
273,
446,
422,
5064,
692,
1408,
294,
5064,
18,
869,
5630,
5621,
3639,
309,
261,
22194,
18,
17514,
1190,
2932,
955,
19,
2620,
6,
3719,
288,
5411,
775,
288,
7734,
14071,
341,
273,
394,
14071,
12,
12243,
18,
588,
2289,
10663,
7734,
10738,
1228,
12,
291,
16,
341,
16,
283,
6299,
1769,
5411,
289,
1044,
261,
25746,
431,
82,
13,
288,
7734,
1194,
18,
8935,
2932,
15195,
486,
1109,
1729,
3113,
431,
82,
1769,
5411,
289,
3639,
289,
469,
309,
261,
22194,
18,
17514,
1190,
2932,
16404,
4898,
3719,
288,
5411,
8962,
1140,
273,
1718,
18,
588,
4632,
5621,
5411,
1640,
12024,
12,
22194,
16,
353,
16,
1140,
16,
283,
6299,
1769,
3639,
289,
469,
309,
261,
22194,
18,
17514,
1190,
2932,
955,
19,
5212,
6,
3719,
288,
5411,
5393,
436,
273,
394,
15322,
12,
291,
1769,
5411,
5497,
341,
273,
1718,
18,
588,
2289,
5621,
5411,
283,
6299,
18,
2188,
7359,
12,
86,
16,
341,
1769,
3639,
289,
469,
309,
261,
22194,
18,
17514,
1190,
2932,
955,
19,
11242,
7923,
10402,
747,
5064,
18,
17514,
1190,
2932,
3685,
19,
92,
17,
11242,
6,
3719,
288,
5411,
5393,
436,
273,
394,
15322,
12,
291,
1769,
5411,
5497,
341,
273,
1718,
18,
588,
2289,
5621,
5411,
283,
6299,
18,
2188,
16634,
12,
86,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1064,
12,
4348,
353,
16,
12446,
1718,
16,
4766,
6816,
17631,
1091,
283,
6299,
13,
3639,
1216,
1860,
565,
288,
3639,
514,
5064,
273,
1718,
18,
588,
8046,
5621,
3639,
5064,
273,
446,
422,
5064,
692,
1408,
294,
5064,
18,
869,
5630,
5621,
3639,
309,
261,
22194,
18,
17514,
1190,
2932,
955,
19,
2620,
6,
3719,
288,
5411,
775,
288,
7734,
14071,
341,
273,
394,
14071,
12,
12243,
18,
588,
2289,
10663,
7734,
10738,
1228,
12,
291,
16,
341,
16,
283,
6299,
1769,
5411,
289,
1044,
261,
25746,
431,
82,
13,
288,
7734,
1194,
18,
8935,
2932,
15195,
486,
1109,
1729,
3113,
431,
82,
1769,
5411,
289,
3639,
289,
469,
309,
261,
22194,
18,
17514,
2
] | |
rs.close(); rsTmp.moveToCurrentRow(); rsTmp.setConcurrency(ResultSet.CONCUR_READ_ONLY); return rsTmp; | try { return createTypeInfoResultSet(rs); } finally { rs.close(); } | public java.sql.ResultSet getTypeInfo() throws SQLException { Statement s = connection.createStatement(); JtdsResultSet rs = (JtdsResultSet)s.executeQuery("exec sp_datatype_info @ODBCVer=3"); CachedResultSet rsTmp = new CachedResultSet(rs); rsTmp.setColumnCount(18); rsTmp.setColLabel(3, "PRECISION"); rsTmp.setColLabel(11, "FIXED_PREC_SCALE"); upperCaseColumnNames(rsTmp); int colCnt = 18; rsTmp.moveToInsertRow(); while (rs.next()) { rsTmp.updateString(1, rs.getString(1)); int type = normalizeDataType(rs.getInt(2)); rsTmp.updateInt(2, type); for (int i = 3; i <= colCnt; i++) { rsTmp.updateObject(i, rs.getObject(i)); } rsTmp.insertRow(); } rs.close(); rsTmp.moveToCurrentRow(); rsTmp.setConcurrency(ResultSet.CONCUR_READ_ONLY); // TODO Sort output into data type order return rsTmp; } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/ea762152e3deccf643245194da098c2857146b3e/JtdsDatabaseMetaData.java/clean/src/main/net/sourceforge/jtds/jdbc/JtdsDatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2252,
18,
4669,
18,
13198,
3130,
966,
1435,
1216,
6483,
288,
3639,
8056,
272,
273,
1459,
18,
2640,
3406,
5621,
3639,
804,
88,
2377,
13198,
3597,
273,
261,
46,
88,
2377,
13198,
13,
87,
18,
8837,
1138,
2932,
4177,
1694,
67,
21540,
67,
1376,
632,
1212,
16283,
3945,
33,
23,
8863,
3639,
15771,
13198,
3597,
9161,
273,
394,
15771,
13198,
12,
5453,
1769,
3639,
3597,
9161,
18,
542,
1494,
1380,
12,
2643,
1769,
3639,
3597,
9161,
18,
542,
914,
2224,
12,
23,
16,
315,
3670,
26913,
8863,
3639,
3597,
9161,
18,
542,
914,
2224,
12,
2499,
16,
315,
30406,
67,
3670,
39,
67,
19378,
8863,
3639,
3854,
2449,
20718,
12,
5453,
9161,
1769,
3639,
509,
645,
11750,
273,
6549,
31,
3639,
3597,
9161,
18,
8501,
774,
4600,
1999,
5621,
3639,
1323,
261,
5453,
18,
4285,
10756,
288,
5411,
3597,
9161,
18,
2725,
780,
12,
21,
16,
3597,
18,
588,
780,
12,
21,
10019,
5411,
509,
618,
273,
3883,
6273,
12,
5453,
18,
588,
1702,
12,
22,
10019,
5411,
3597,
9161,
18,
2725,
1702,
12,
22,
16,
618,
1769,
5411,
364,
261,
474,
277,
273,
890,
31,
277,
1648,
645,
11750,
31,
277,
27245,
288,
7734,
3597,
9161,
18,
2725,
921,
12,
77,
16,
3597,
18,
588,
921,
12,
77,
10019,
5411,
289,
5411,
3597,
9161,
18,
6387,
1999,
5621,
3639,
289,
3639,
3597,
18,
4412,
5621,
3639,
3597,
9161,
18,
8501,
774,
3935,
1999,
5621,
3639,
3597,
9161,
18,
542,
18273,
12,
13198,
18,
2248,
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,
2252,
18,
4669,
18,
13198,
3130,
966,
1435,
1216,
6483,
288,
3639,
8056,
272,
273,
1459,
18,
2640,
3406,
5621,
3639,
804,
88,
2377,
13198,
3597,
273,
261,
46,
88,
2377,
13198,
13,
87,
18,
8837,
1138,
2932,
4177,
1694,
67,
21540,
67,
1376,
632,
1212,
16283,
3945,
33,
23,
8863,
3639,
15771,
13198,
3597,
9161,
273,
394,
15771,
13198,
12,
5453,
1769,
3639,
3597,
9161,
18,
542,
1494,
1380,
12,
2643,
1769,
3639,
3597,
9161,
18,
542,
914,
2224,
12,
23,
16,
315,
3670,
26913,
8863,
3639,
3597,
9161,
18,
542,
914,
2224,
12,
2499,
16,
315,
30406,
67,
3670,
39,
67,
19378,
8863,
3639,
3854,
2449,
20718,
12,
5453,
9161,
1769,
3639,
509,
645,
11750,
2
] |
if (fElementChildrenOffsetStack.length < fElementDepth) { | if (fElementChildrenOffsetStack.length <= fElementDepth) { | protected void handleStartElement(QName element, XMLAttributes attributes) throws XNIException { // REVISIT: Here are current assumptions about validation features // given that XMLSchema validator is in the pipeline // // http://xml.org/sax/features/validation = true // http://apache.org/xml/features/validation/schema = true // //[1] XML instance document only has reference to a DTD // Outcome: report validation errors only against dtd. // //[2] XML instance document has only XML Schema grammars: // Outcome: report validation errors only against schemas (no errors produced from DTD validator) // // [3] XML instance document has DTD and XML schemas: // Outcome: validation errors reported against both grammars: DTD and schemas. // // // if dynamic validation is on // validate only against grammar we've found (depending on settings // for schema feature) // // set wether we're performing validation fPerformValidation = fValidation && (!fDynamicValidation || fSeenDoctypeDecl) && (fDTDValidation || fSeenDoctypeDecl); // VC: Root Element Type // see if the root element's name matches the one in DoctypeDecl if (!fSeenRootElement) { fSeenRootElement = true; fValidationManager.setEntityState(fDTDGrammar); fValidationManager.setGrammarFound(fSeenDoctypeDecl); rootElementSpecified(element); } if (fDTDGrammar == null) { if (!fPerformValidation) { fCurrentElementIndex = -1; fCurrentContentSpecType = -1; fInElementContent = false; } if (fPerformValidation && !fSkipValidation) { fSkipValidation = true; fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "MSG_GRAMMAR_NOT_FOUND", new Object[]{ element.rawname}, XMLErrorReporter.SEVERITY_ERROR); } } else { // resolve the element fCurrentElementIndex = fDTDGrammar.getElementDeclIndex(element, -1); fCurrentContentSpecType = getContentSpecType(fCurrentElementIndex); if (fCurrentElementIndex == -1 && fPerformValidation) { fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "MSG_ELEMENT_NOT_DECLARED", new Object[]{ element.rawname}, XMLErrorReporter.SEVERITY_ERROR); } else { // 0. insert default attributes // 1. normalize the attributes // 2. validate the attrivute list. // TO DO: // addDTDDefaultAttrsAndValidate(fCurrentElementIndex, attributes); } } // set element content state fInElementContent = fCurrentContentSpecType == XMLElementDecl.TYPE_CHILDREN; // increment the element depth, add this element's // QName to its enclosing element 's children list fElementDepth++; if (fPerformValidation) { // push current length onto stack if (fElementChildrenOffsetStack.length < fElementDepth) { int newarray[] = new int[fElementChildrenOffsetStack.length * 2]; System.arraycopy(fElementChildrenOffsetStack, 0, newarray, 0, fElementChildrenOffsetStack.length); fElementChildrenOffsetStack = newarray; } fElementChildrenOffsetStack[fElementDepth] = fElementChildrenLength; // add this element to children if (fElementChildren.length <= fElementChildrenLength) { QName[] newarray = new QName[fElementChildrenLength * 2]; System.arraycopy(fElementChildren, 0, newarray, 0, fElementChildren.length); fElementChildren = newarray; } QName qname = fElementChildren[fElementChildrenLength]; if (qname == null) { for (int i = fElementChildrenLength; i < fElementChildren.length; i++) { fElementChildren[i] = new QName(); } qname = fElementChildren[fElementChildrenLength]; } qname.setValues(element); fElementChildrenLength++; } // save current element information fCurrentElement.setValues(element); ensureStackCapacity(fElementDepth); fElementQNamePartsStack[fElementDepth].setValues(fCurrentElement); fElementIndexStack[fElementDepth] = fCurrentElementIndex; fContentSpecTypeStack[fElementDepth] = fCurrentContentSpecType; } // handleStartElement(QName,XMLAttributes,boolean) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1cbb9dbdff9de6fe05458a7a4d0261c5733da351/XMLDTDValidator.java/buggy/src/org/apache/xerces/impl/dtd/XMLDTDValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1685,
1046,
12,
13688,
930,
16,
3167,
2498,
1677,
13,
1216,
1139,
50,
45,
503,
288,
3639,
368,
2438,
26780,
1285,
30,
13743,
854,
783,
6287,
573,
2973,
3379,
4467,
3639,
368,
1850,
864,
716,
3167,
3078,
4213,
353,
316,
326,
5873,
3639,
368,
3639,
368,
1062,
2207,
2902,
18,
3341,
19,
87,
651,
19,
7139,
19,
8685,
273,
638,
3639,
368,
1062,
2207,
19211,
18,
3341,
19,
2902,
19,
7139,
19,
8685,
19,
4821,
273,
638,
3639,
368,
3639,
368,
63,
21,
65,
3167,
791,
1668,
1338,
711,
2114,
358,
279,
10696,
40,
540,
368,
225,
2976,
5624,
30,
2605,
3379,
1334,
1338,
5314,
3681,
72,
18,
3639,
368,
3639,
368,
63,
22,
65,
3167,
791,
1668,
711,
1338,
3167,
4611,
6473,
87,
30,
3639,
368,
225,
2976,
5624,
30,
2605,
3379,
1334,
1338,
5314,
12783,
261,
2135,
1334,
14929,
628,
10696,
40,
4213,
13,
3639,
368,
3639,
368,
306,
23,
65,
3167,
791,
1668,
711,
10696,
40,
471,
3167,
12783,
30,
3639,
368,
2976,
5624,
30,
3379,
1334,
14010,
5314,
3937,
6473,
87,
30,
10696,
40,
471,
12783,
18,
3639,
368,
3639,
368,
1171,
368,
540,
309,
5976,
3379,
353,
603,
3639,
368,
5411,
1954,
1338,
5314,
6473,
732,
8081,
1392,
261,
5817,
310,
603,
1947,
3639,
368,
5411,
364,
1963,
2572,
13,
3639,
368,
540,
368,
444,
341,
2437,
732,
4565,
14928,
3379,
3639,
284,
4990,
4354,
273,
284,
4354,
597,
16051,
74,
9791,
4354,
747,
284,
15160,
3244,
12387,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1685,
1046,
12,
13688,
930,
16,
3167,
2498,
1677,
13,
1216,
1139,
50,
45,
503,
288,
3639,
368,
2438,
26780,
1285,
30,
13743,
854,
783,
6287,
573,
2973,
3379,
4467,
3639,
368,
1850,
864,
716,
3167,
3078,
4213,
353,
316,
326,
5873,
3639,
368,
3639,
368,
1062,
2207,
2902,
18,
3341,
19,
87,
651,
19,
7139,
19,
8685,
273,
638,
3639,
368,
1062,
2207,
19211,
18,
3341,
19,
2902,
19,
7139,
19,
8685,
19,
4821,
273,
638,
3639,
368,
3639,
368,
63,
21,
65,
3167,
791,
1668,
1338,
711,
2114,
358,
279,
10696,
40,
540,
368,
225,
2976,
5624,
30,
2605,
3379,
1334,
1338,
5314,
3681,
72,
18,
3639,
368,
3639,
368,
63,
22,
65,
2
] |
"SplitPane.dividerSize", new Integer(10), | "SplitPane.dividerSize", new Integer(7), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoableEdit.undoText", "Undo", "AbstractUndoableEdit.redoText", "Redo", "Button.background", new ColorUIResource(Color.LIGHT_GRAY), "Button.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { return BasicBorders.getButtonBorder(); } }, "Button.darkShadow", new ColorUIResource(Color.BLACK), "Button.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Button.foreground", new ColorUIResource(Color.BLACK), "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("SPACE"), "pressed", KeyStroke.getKeyStroke("released SPACE"), "released" }), "Button.highlight", new ColorUIResource(Color.WHITE), "Button.light", new ColorUIResource(Color.LIGHT_GRAY), "Button.margin", new InsetsUIResource(2, 14, 2, 14), "Button.shadow", new ColorUIResource(Color.GRAY), "Button.textIconGap", new Integer(4), "Button.textShiftOffset", new Integer(0), "CheckBox.background", new ColorUIResource(new Color(204, 204, 204)), "CheckBox.border", new BorderUIResource.CompoundBorderUIResource(null, null), "CheckBox.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("SPACE"), "pressed", KeyStroke.getKeyStroke("released SPACE"), "released" }), "CheckBox.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBox.foreground", new ColorUIResource(darkShadow), "CheckBox.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); } }, "CheckBox.checkIcon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); } }, "CheckBox.margin",new InsetsUIResource(2, 2, 2, 2), "CheckBox.textIconGap", new Integer(4), "CheckBox.textShiftOffset", new Integer(0), "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.acceleratorForeground", new ColorUIResource(new Color(16, 16, 16)), "CheckBoxMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "CheckBoxMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "CheckBoxMenuItem.background", new ColorUIResource(light), "CheckBoxMenuItem.border", new BasicBorders.MarginBorder(), "CheckBoxMenuItem.borderPainted", Boolean.FALSE, "CheckBoxMenuItem.checkIcon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxMenuItemIcon(); } }, "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "CheckBoxMenuItem.foreground", new ColorUIResource(darkShadow), "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "CheckBoxMenuItem.selectionBackground", new ColorUIResource(Color.black), "CheckBoxMenuItem.selectionForeground", new ColorUIResource(Color.white), "ColorChooser.background", new ColorUIResource(light), "ColorChooser.cancelText", "Cancel", "ColorChooser.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ColorChooser.foreground", new ColorUIResource(darkShadow), "ColorChooser.hsbBlueText", "B", "ColorChooser.hsbBrightnessText", "B", "ColorChooser.hsbGreenText", "G", "ColorChooser.hsbHueText", "H", "ColorChooser.hsbNameText", "HSB", "ColorChooser.hsbRedText", "R", "ColorChooser.hsbSaturationText", "S", "ColorChooser.okText", "OK", "ColorChooser.previewText", "Preview", "ColorChooser.resetText", "Reset", "ColorChooser.rgbBlueMnemonic", new Integer(66), "ColorChooser.rgbBlueText", "Blue", "ColorChooser.rgbGreenMnemonic", new Integer(71), "ColorChooser.rgbGreenText", "Green", "ColorChooser.rgbNameText", "RGB", "ColorChooser.rgbRedMnemonic", new Integer(82), "ColorChooser.rgbRedText", "Red", "ColorChooser.sampleText", "Sample Text Sample Text", "ColorChooser.swatchesDefaultRecentColor", new ColorUIResource(light), "ColorChooser.swatchesNameText", "Swatches", "ColorChooser.swatchesRecentSwatchSize", new Dimension(10, 10), "ColorChooser.swatchesRecentText", "Recent:", "ColorChooser.swatchesSwatchSize", new Dimension(10, 10), "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "hidePopup", "PAGE_UP", "pageUpPassThrough", "PAGE_DOWN", "pageDownPassThrough", "HOME", "homePassThrough", "END", "endPassThrough" }), "ComboBox.background", new ColorUIResource(Color.white), "ComboBox.buttonBackground", new ColorUIResource(light), "ComboBox.buttonDarkShadow", new ColorUIResource(darkShadow), "ComboBox.buttonHighlight", new ColorUIResource(highLight), "ComboBox.buttonShadow", new ColorUIResource(shadow), "ComboBox.disabledBackground", new ColorUIResource(light), "ComboBox.disabledForeground", new ColorUIResource(Color.gray), "ComboBox.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ComboBox.foreground", new ColorUIResource(Color.black), "ComboBox.selectionBackground", new ColorUIResource(0, 0, 128), "ComboBox.selectionForeground", new ColorUIResource(Color.white), "Desktop.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "KP_LEFT", "left", "KP_RIGHT", "right", "ctrl F5", "restore", "LEFT", "left", "ctrl alt F6", "selectNextFrame", "UP", "up", "ctrl F6", "selectNextFrame", "RIGHT", "right", "DOWN", "down", "ctrl F7", "move", "ctrl F8", "resize", "ESCAPE", "escape", "ctrl TAB", "selectNextFrame", "ctrl F9", "minimize", "KP_UP", "up", "ctrl F4", "close", "KP_DOWN", "down", "ctrl F10", "maximize", "ctrl alt shift F6","selectPreviousFrame" }), "DesktopIcon.border", new BorderUIResource.CompoundBorderUIResource(null, null), "EditorPane.background", new ColorUIResource(Color.white), "EditorPane.border", BasicBorders.getMarginBorder(), "EditorPane.caretBlinkRate", new Integer(500), "EditorPane.caretForeground", new ColorUIResource(Color.black), "EditorPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "EditorPane.foreground", new ColorUIResource(Color.black), "EditorPane.inactiveForeground", new ColorUIResource(Color.gray), "EditorPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("shift UP"), "selection-up", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift KP_UP"), "selection-up", KeyStroke.getKeyStroke("DOWN"), "caret-down", KeyStroke.getKeyStroke("shift ctrl T"), "previous-link-action", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift PAGE_UP"), "selection-page-up", KeyStroke.getKeyStroke("KP_UP"), "caret-up", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("ctrl HOME"), "caret-begin", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward", KeyStroke.getKeyStroke("ctrl END"), "caret-end", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("ctrl SPACE"), "activate-link-action", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ENTER"), "insert-break", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl PAGE_UP"), "selection-page-left", KeyStroke.getKeyStroke("shift DOWN"), "selection-down", KeyStroke.getKeyStroke("PAGE_DOWN"), "page-down", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("shift ctrl PAGE_DOWN"), "selection-page-right", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("KP_DOWN"), "caret-down", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("shift ctrl END"), "selection-end", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl T"), "next-link-action", KeyStroke.getKeyStroke("shift KP_DOWN"), "selection-down", KeyStroke.getKeyStroke("TAB"), "insert-tab", KeyStroke.getKeyStroke("UP"), "caret-up", KeyStroke.getKeyStroke("shift ctrl HOME"), "selection-begin", KeyStroke.getKeyStroke("shift PAGE_DOWN"), "selection-page-down", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("PAGE_UP"), "page-up", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard" }), "EditorPane.margin", new InsetsUIResource(3, 3, 3, 3), "EditorPane.selectionBackground", new ColorUIResource(Color.black), "EditorPane.selectionForeground", new ColorUIResource(Color.white), "FileChooser.acceptAllFileFilterText", "All Files (*.*)", "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancelSelection" }), "FileChooser.cancelButtonMnemonic", new Integer(67), "FileChooser.cancelButtonText", "Cancel", "FileChooser.cancelButtonToolTipText", "Abort file chooser dialog", "FileChooser.directoryDescriptionText", "Directory", "FileChooser.fileDescriptionText", "Generic File", "FileChooser.helpButtonMnemonic", new Integer(72), "FileChooser.helpButtonText", "Help", "FileChooser.helpButtonToolTipText", "FileChooser help", "FileChooser.newFolderErrorSeparator", ":", "FileChooser.newFolderErrorText", "Error creating new folder", "FileChooser.openButtonMnemonic", new Integer(79), "FileChooser.openButtonText", "Open", "FileChooser.openButtonToolTipText", "Open selected file", "FileChooser.saveButtonMnemonic", new Integer(83), "FileChooser.saveButtonText", "Save", "FileChooser.saveButtonToolTipText", "Save selected file", "FileChooser.updateButtonMnemonic", new Integer(85), "FileChooser.updateButtonText", "Update", "FileChooser.updateButtonToolTipText", "Update directory listing", "FocusManagerClassName", "TODO", "FormattedTextField.background", new ColorUIResource(light), "FormattedTextField.caretForeground", new ColorUIResource(Color.black), "FormattedTextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "FormattedTextField.foreground", new ColorUIResource(Color.black), "FormattedTextField.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("KP_UP"), "increment", KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("KP_DOWN"), "decrement", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("UP"), "increment", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("ESCAPE"), "reset-field-edit", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("DOWN"), "decrement", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("ENTER"), "notify-field-accept", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward" }), "FormattedTextField.inactiveBackground", new ColorUIResource(light), "FormattedTextField.inactiveForeground", new ColorUIResource(Color.gray), "FormattedTextField.selectionBackground", new ColorUIResource(Color.black), "FormattedTextField.selectionForeground", new ColorUIResource(Color.white), "FormView.resetButtonText", "Reset", "FormView.submitButtonText", "Submit Query", "InternalFrame.activeTitleBackground", new ColorUIResource(0, 0, 128), "InternalFrame.activeTitleForeground", new ColorUIResource(Color.white), "InternalFrame.border", new UIDefaults.LazyValue() { public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED, Color.WHITE, Color.WHITE, shadowOuter, shadowInner); Border border = new BorderUIResource.CompoundBorderUIResource(outer, inner); return border; } }, "InternalFrame.borderColor", new ColorUIResource(light), "InternalFrame.borderDarkShadow", new ColorUIResource(Color.BLACK), "InternalFrame.borderHighlight", new ColorUIResource(Color.WHITE), "InternalFrame.borderLight", new ColorUIResource(Color.LIGHT_GRAY), "InternalFrame.borderShadow", new ColorUIResource(Color.GRAY), "InternalFrame.closeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); } }, "InternalFrame.iconifyIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.inactiveTitleBackground", new ColorUIResource(Color.gray), "InternalFrame.inactiveTitleForeground", new ColorUIResource(Color.lightGray), "InternalFrame.maximizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.minimizeIcon", BasicIconFactory.createEmptyFrameIcon(), "InternalFrame.titleFont", new FontUIResource("Dialog", Font.BOLD, 12), "InternalFrame.windowBindings", new Object[] { "shift ESCAPE", "showSystemMenu", "ctrl SPACE", "showSystemMenu", "ESCAPE", "showSystemMenu" }, "Label.background", new ColorUIResource(light), "Label.disabledForeground", new ColorUIResource(Color.white), "Label.disabledShadow", new ColorUIResource(shadow), "Label.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Label.foreground", new ColorUIResource(darkShadow), "List.background", new ColorUIResource(Color.white), "List.border", new BasicBorders.MarginBorder(), "List.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("ctrl DOWN"), "selectNextRowChangeLead", KeyStroke.getKeyStroke("shift UP"), "selectPreviousRowExtendSelection", KeyStroke.getKeyStroke("ctrl RIGHT"), "selectNextColumnChangeLead", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selectPreviousColumnExtendSelection", KeyStroke.getKeyStroke("shift KP_UP"), "selectPreviousRowExtendSelection", KeyStroke.getKeyStroke("DOWN"), "selectNextRow", KeyStroke.getKeyStroke("ctrl UP"), "selectPreviousRowChangeLead", KeyStroke.getKeyStroke("ctrl LEFT"), "selectPreviousColumnChangeLead", KeyStroke.getKeyStroke("CUT"), "cut", KeyStroke.getKeyStroke("END"), "selectLastRow", KeyStroke.getKeyStroke("shift PAGE_UP"), "scrollUpExtendSelection", KeyStroke.getKeyStroke("KP_UP"), "selectPreviousRow", KeyStroke.getKeyStroke("shift ctrl UP"), "selectPreviousRowExtendSelection", KeyStroke.getKeyStroke("ctrl HOME"), "selectFirstRowChangeLead", KeyStroke.getKeyStroke("shift LEFT"), "selectPreviousColumnExtendSelection", KeyStroke.getKeyStroke("ctrl END"), "selectLastRowChangeLead", KeyStroke.getKeyStroke("ctrl PAGE_DOWN"), "scrollDownChangeLead", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selectNextColumnExtendSelection", KeyStroke.getKeyStroke("LEFT"), "selectPreviousColumn", KeyStroke.getKeyStroke("ctrl PAGE_UP"), "scrollUpChangeLead", KeyStroke.getKeyStroke("KP_LEFT"), "selectPreviousColumn", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selectNextColumnExtendSelection", KeyStroke.getKeyStroke("SPACE"), "addToSelection", KeyStroke.getKeyStroke("ctrl SPACE"), "toggleAndAnchor", KeyStroke.getKeyStroke("shift SPACE"), "extendTo", KeyStroke.getKeyStroke("shift ctrl SPACE"), "moveSelectionTo", KeyStroke.getKeyStroke("shift ctrl DOWN"), "selectNextRowExtendSelection", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "clearSelection", KeyStroke.getKeyStroke("shift HOME"), "selectFirstRowExtendSelection", KeyStroke.getKeyStroke("RIGHT"), "selectNextColumn", KeyStroke.getKeyStroke("shift ctrl PAGE_UP"), "scrollUpExtendSelection", KeyStroke.getKeyStroke("shift DOWN"), "selectNextRowExtendSelection", KeyStroke.getKeyStroke("PAGE_DOWN"), "scrollDown", KeyStroke.getKeyStroke("shift ctrl KP_UP"), "selectPreviousRowExtendSelection", KeyStroke.getKeyStroke("shift KP_LEFT"), "selectPreviousColumnExtendSelection", KeyStroke.getKeyStroke("ctrl X"), "cut", KeyStroke.getKeyStroke("shift ctrl PAGE_DOWN"), "scrollDownExtendSelection", KeyStroke.getKeyStroke("ctrl SLASH"), "selectAll", KeyStroke.getKeyStroke("ctrl C"), "copy", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "selectNextColumnChangeLead", KeyStroke.getKeyStroke("shift END"), "selectLastRowExtendSelection", KeyStroke.getKeyStroke("shift ctrl KP_DOWN"), "selectNextRowExtendSelection", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "selectPreviousColumnChangeLead", KeyStroke.getKeyStroke("HOME"), "selectFirstRow", KeyStroke.getKeyStroke("ctrl V"), "paste", KeyStroke.getKeyStroke("KP_DOWN"), "selectNextRow", KeyStroke.getKeyStroke("ctrl KP_DOWN"), "selectNextRowChangeLead", KeyStroke.getKeyStroke("shift RIGHT"), "selectNextColumnExtendSelection", KeyStroke.getKeyStroke("ctrl A"), "selectAll", KeyStroke.getKeyStroke("shift ctrl END"), "selectLastRowExtendSelection", KeyStroke.getKeyStroke("COPY"), "copy", KeyStroke.getKeyStroke("ctrl KP_UP"), "selectPreviousRowChangeLead", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selectPreviousColumnExtendSelection", KeyStroke.getKeyStroke("shift KP_DOWN"), "selectNextRowExtendSelection", KeyStroke.getKeyStroke("UP"), "selectPreviousRow", KeyStroke.getKeyStroke("shift ctrl HOME"), "selectFirstRowExtendSelection", KeyStroke.getKeyStroke("shift PAGE_DOWN"), "scrollDownExtendSelection", KeyStroke.getKeyStroke("KP_RIGHT"), "selectNextColumn", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selectNextColumnExtendSelection", KeyStroke.getKeyStroke("PAGE_UP"), "scrollUp", KeyStroke.getKeyStroke("PASTE"), "paste" }), "List.font", new FontUIResource("Dialog", Font.PLAIN, 12), "List.foreground", new ColorUIResource(Color.black), "List.selectionBackground", new ColorUIResource(0, 0, 128), "List.selectionForeground", new ColorUIResource(Color.white), "List.focusCellHighlightBorder", new BorderUIResource. LineBorderUIResource(new ColorUIResource(Color.yellow)), "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.acceleratorForeground", new ColorUIResource(darkShadow), "Menu.acceleratorSelectionForeground", new ColorUIResource(Color.white), "Menu.arrowIcon", BasicIconFactory.getMenuArrowIcon(), "Menu.background", new ColorUIResource(light), "Menu.border", new BasicBorders.MarginBorder(), "Menu.borderPainted", Boolean.FALSE, "Menu.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), "Menu.consumesTabs", Boolean.TRUE, "Menu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Menu.foreground", new ColorUIResource(darkShadow), "Menu.margin", new InsetsUIResource(2, 2, 2, 2), "Menu.selectedWindowInputMapBindings", new Object[] { "ESCAPE", "cancel", "DOWN", "selectNext", "KP_DOWN", "selectNext", "UP", "selectPrevious", "KP_UP", "selectPrevious", "LEFT", "selectParent", "KP_LEFT", "selectParent", "RIGHT", "selectChild", "KP_RIGHT", "selectChild", "ENTER", "return", "SPACE", "return" }, "Menu.selectionBackground", new ColorUIResource(Color.black), "Menu.selectionForeground", new ColorUIResource(Color.white), "MenuBar.background", new ColorUIResource(light), "MenuBar.border", new BasicBorders.MenuBarBorder(null, null), "MenuBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuBar.foreground", new ColorUIResource(darkShadow), "MenuBar.highlight", new ColorUIResource(highLight), "MenuBar.shadow", new ColorUIResource(shadow), "MenuBar.windowBindings", new Object[] { "F10", "takeFocus" }, "MenuItem.acceleratorDelimiter", "-", "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.acceleratorForeground", new ColorUIResource(darkShadow), "MenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "MenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "MenuItem.background", new ColorUIResource(light), "MenuItem.border", new BasicBorders.MarginBorder(), "MenuItem.borderPainted", Boolean.FALSE, "MenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "MenuItem.foreground", new ColorUIResource(darkShadow), "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "MenuItem.selectionBackground", new ColorUIResource(Color.black), "MenuItem.selectionForeground", new ColorUIResource(Color.white), "OptionPane.background", new ColorUIResource(light), "OptionPane.border", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.buttonAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.cancelButtonText", "Cancel", "OptionPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "OptionPane.foreground", new ColorUIResource(darkShadow), "OptionPane.messageAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), "OptionPane.messageForeground", new ColorUIResource(darkShadow), "OptionPane.minimumSize", new DimensionUIResource(BasicOptionPaneUI.MinimumWidth, BasicOptionPaneUI.MinimumHeight), "OptionPane.noButtonText", "No", "OptionPane.okButtonText", "OK", "OptionPane.windowBindings", new Object[] { "ESCAPE", "close" }, "OptionPane.yesButtonText", "Yes", "Panel.background", new ColorUIResource(light), "Panel.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Panel.foreground", new ColorUIResource(Color.black), "PasswordField.background", new ColorUIResource(light), "PasswordField.border", new BasicBorders.FieldBorder(null, null, null, null), "PasswordField.caretBlinkRate", new Integer(500), "PasswordField.caretForeground", new ColorUIResource(Color.black), "PasswordField.font", new FontUIResource("Dialog", Font.PLAIN, 12), "PasswordField.foreground", new ColorUIResource(Color.black), "PasswordField.inactiveBackground", new ColorUIResource(light), "PasswordField.inactiveForeground", new ColorUIResource(Color.gray), "PasswordField.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-end-line", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-begin-line", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-end-line", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-end-line", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-begin-line", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-begin-line", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-end-line", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("ENTER"), "notify-field-accept", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward" }), "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0), "PasswordField.selectionBackground", new ColorUIResource(Color.black), "PasswordField.selectionForeground", new ColorUIResource(Color.white), "PopupMenu.background", new ColorUIResource(light), "PopupMenu.border", new BorderUIResource.BevelBorderUIResource(0), "PopupMenu.font", new FontUIResource("Dialog", Font.PLAIN, 12), "PopupMenu.foreground", new ColorUIResource(darkShadow), "ProgressBar.background", new ColorUIResource(Color.LIGHT_GRAY), "ProgressBar.border", new BorderUIResource.LineBorderUIResource(Color.GREEN, 2), "ProgressBar.cellLength", new Integer(1), "ProgressBar.cellSpacing", new Integer(0), "ProgressBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ProgressBar.foreground", new ColorUIResource(0, 0, 128), "ProgressBar.selectionBackground", new ColorUIResource(0, 0, 128), "ProgressBar.selectionForeground", new ColorUIResource(Color.LIGHT_GRAY), "ProgressBar.repaintInterval", new Integer(50), "ProgressBar.cycleTime", new Integer(3000), "RadioButton.background", new ColorUIResource(light), "RadioButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "RadioButton.darkShadow", new ColorUIResource(shadow), "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("SPACE"), "pressed", KeyStroke.getKeyStroke("released SPACE"), "released" }), "RadioButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButton.foreground", new ColorUIResource(darkShadow), "RadioButton.highlight", new ColorUIResource(highLight), "RadioButton.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getRadioButtonIcon(); } }, "RadioButton.light", new ColorUIResource(highLight), "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButton.shadow", new ColorUIResource(shadow), "RadioButton.textIconGap", new Integer(4), "RadioButton.textShiftOffset", new Integer(0), "RadioButtonMenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.acceleratorForeground", new ColorUIResource(darkShadow), "RadioButtonMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white), "RadioButtonMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(), "RadioButtonMenuItem.background", new ColorUIResource(light), "RadioButtonMenuItem.border", new BasicBorders.MarginBorder(), "RadioButtonMenuItem.borderPainted", Boolean.FALSE, "RadioButtonMenuItem.checkIcon", BasicIconFactory.getRadioButtonMenuItemIcon(), "RadioButtonMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12), "RadioButtonMenuItem.foreground", new ColorUIResource(darkShadow), "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), "RadioButtonMenuItem.selectionBackground", new ColorUIResource(Color.black), "RadioButtonMenuItem.selectionForeground", new ColorUIResource(Color.white), "RootPane.defaultButtonWindowKeyBindings", new Object[] { "ENTER", "press", "released ENTER", "release", "ctrl ENTER", "press", "ctrl released ENTER", "release" }, "ScrollBar.background", new ColorUIResource(224, 224, 224), "ScrollBar.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "negativeBlockIncrement", "PAGE_DOWN", "positiveBlockIncrement", "END", "maxScroll", "HOME", "minScroll", "LEFT", "positiveUnitIncrement", "KP_UP", "negativeUnitIncrement", "KP_DOWN", "positiveUnitIncrement", "UP", "negativeUnitIncrement", "RIGHT", "negativeUnitIncrement", "KP_LEFT", "positiveUnitIncrement", "DOWN", "positiveUnitIncrement", "KP_RIGHT", "negativeUnitIncrement" }), "ScrollBar.foreground", new ColorUIResource(light), "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096), "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8), "ScrollBar.thumb", new ColorUIResource(light), "ScrollBar.thumbDarkShadow", new ColorUIResource(shadow), "ScrollBar.thumbHighlight", new ColorUIResource(highLight), "ScrollBar.thumbShadow", new ColorUIResource(shadow), "ScrollBar.track", new ColorUIResource(light), "ScrollBar.trackHighlight", new ColorUIResource(shadow), "ScrollBar.width", new Integer(16), "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "PAGE_UP", "scrollUp", "KP_LEFT", "unitScrollLeft", "ctrl PAGE_DOWN","scrollRight", "PAGE_DOWN", "scrollDown", "KP_RIGHT", "unitScrollRight", "LEFT", "unitScrollLeft", "ctrl END", "scrollEnd", "UP", "unitScrollUp", "RIGHT", "unitScrollRight", "DOWN", "unitScrollDown", "ctrl HOME", "scrollHome", "ctrl PAGE_UP", "scrollLeft", "KP_UP", "unitScrollUp", "KP_DOWN", "unitScrollDown" }), "ScrollPane.background", new ColorUIResource(light), "ScrollPane.border", new BorderUIResource.EtchedBorderUIResource(), "ScrollPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ScrollPane.foreground", new ColorUIResource(darkShadow), "Separator.background", new ColorUIResource(highLight), "Separator.foreground", new ColorUIResource(shadow), "Separator.highlight", new ColorUIResource(highLight), "Separator.shadow", new ColorUIResource(shadow), "Slider.background", new ColorUIResource(light), "Slider.focus", new ColorUIResource(shadow), "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl PAGE_DOWN", "negativeBlockIncrement", "PAGE_DOWN", "negativeBlockIncrement", "PAGE_UP", "positiveBlockIncrement", "ctrl PAGE_UP", "positiveBlockIncrement", "KP_RIGHT", "positiveUnitIncrement", "DOWN", "negativeUnitIncrement", "KP_LEFT", "negativeUnitIncrement", "RIGHT", "positiveUnitIncrement", "KP_DOWN", "negativeUnitIncrement", "UP", "positiveUnitIncrement", "KP_UP", "positiveUnitIncrement", "LEFT", "negativeUnitIncrement", "HOME", "minScroll", "END", "maxScroll" }), "Slider.focusInsets", new InsetsUIResource(2, 2, 2, 2), "Slider.foreground", new ColorUIResource(light), "Slider.highlight", new ColorUIResource(highLight), "Slider.shadow", new ColorUIResource(shadow), "Slider.thumbHeight", new Integer(20), "Slider.thumbWidth", new Integer(11), "Slider.tickHeight", new Integer(12), "Spinner.background", new ColorUIResource(light), "Spinner.foreground", new ColorUIResource(light), "SplitPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "F6", "toggleFocus", "F8", "startResize", "END", "selectMax", "HOME", "selectMin", "LEFT", "negativeIncremnent", "KP_UP", "negativeIncrement", "KP_DOWN", "positiveIncrement", "UP", "negativeIncrement", "RIGHT", "positiveIncrement", "KP_LEFT", "negativeIncrement", "DOWN", "positiveIncrement", "KP_RIGHT", "positiveIncrement" }), "SplitPane.background", new ColorUIResource(light), "SplitPane.border", new BasicBorders.SplitPaneBorder(null, null), "SplitPane.darkShadow", new ColorUIResource(shadow), "SplitPane.dividerSize", new Integer(10), "SplitPane.highlight", new ColorUIResource(highLight), "SplitPane.shadow", new ColorUIResource(shadow), "TabbedPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl PAGE_DOWN","navigatePageDown", "ctrl PAGE_UP", "navigatePageUp", "ctrl UP", "requestFocus", "ctrl KP_UP", "requestFocus" }), "TabbedPane.background", new ColorUIResource(light), "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3), "TabbedPane.darkShadow", new ColorUIResource(shadow), "TabbedPane.focus", new ColorUIResource(darkShadow), "TabbedPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("ctrl DOWN"), "requestFocusForVisibleComponent", KeyStroke.getKeyStroke("KP_UP"), "navigateUp", KeyStroke.getKeyStroke("LEFT"), "navigateLeft", KeyStroke.getKeyStroke("ctrl KP_DOWN"), "requestFocusForVisibleComponent", KeyStroke.getKeyStroke("UP"), "navigateUp", KeyStroke.getKeyStroke("KP_DOWN"), "navigateDown", KeyStroke.getKeyStroke("KP_LEFT"), "navigateLeft", KeyStroke.getKeyStroke("RIGHT"), "navigateRight", KeyStroke.getKeyStroke("KP_RIGHT"), "navigateRight", KeyStroke.getKeyStroke("DOWN"), "navigateDown" }), "TabbedPane.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TabbedPane.foreground", new ColorUIResource(darkShadow), "TabbedPane.highlight", new ColorUIResource(highLight), "TabbedPane.light", new ColorUIResource(highLight), "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1), "TabbedPane.shadow", new ColorUIResource(shadow), "TabbedPane.tabbedPaneTabAreaInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabInsets", new InsetsUIResource(1, 4, 1, 4), "TabbedPane.tabbedPaneContentBorderInsets", new InsetsUIResource(3, 2, 1, 2), "TabbedPane.tabbedPaneTabPadInsets", new InsetsUIResource(1, 1, 1, 1), "TabbedPane.tabRunOverlay", new Integer(2), "TabbedPane.textIconGap", new Integer(4), "Table.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ctrl DOWN", "selectNextRowChangeLead", "ctrl RIGHT", "selectNextColumnChangeLead", "ctrl UP", "selectPreviousRowChangeLead", "ctrl LEFT", "selectPreviousColumnChangeLead", "CUT", "cut", "SPACE", "addToSelection", "ctrl SPACE", "toggleAndAnchor", "shift SPACE", "extendTo", "shift ctrl SPACE", "moveSelectionTo", "ctrl X", "cut", "ctrl C", "copy", "ctrl KP_RIGHT", "selectNextColumnChangeLead", "ctrl KP_LEFT", "selectPreviousColumnChangeLead", "ctrl V", "paste", "ctrl KP_DOWN", "selectNextRowChangeLead", "COPY", "copy", "ctrl KP_UP", "selectPreviousRowChangeLead", "PASTE", "paste", "shift PAGE_DOWN","scrollDownExtendSelection", "PAGE_DOWN", "scrollDownChangeSelection", "END", "selectLastColumn", "shift END", "selectLastColumnExtendSelection", "HOME", "selectFirstColumn", "ctrl END", "selectLastRow", "ctrl shift END","selectLastRowExtendSelection", "LEFT", "selectPreviousColumn", "shift HOME", "selectFirstColumnExtendSelection", "UP", "selectPreviousRow", "RIGHT", "selectNextColumn", "ctrl HOME", "selectFirstRow", "shift LEFT", "selectPreviousColumnExtendSelection", "DOWN", "selectNextRow", "ctrl shift HOME","selectFirstRowExtendSelection", "shift UP", "selectPreviousRowExtendSelection", "F2", "startEditing", "shift RIGHT", "selectNextColumnExtendSelection", "TAB", "selectNextColumnCell", "shift DOWN", "selectNextRowExtendSelection", "ENTER", "selectNextRowCell", "KP_UP", "selectPreviousRow", "KP_DOWN", "selectNextRow", "KP_LEFT", "selectPreviousColumn", "KP_RIGHT", "selectNextColumn", "shift TAB", "selectPreviousColumnCell", "ctrl A", "selectAll", "shift ENTER", "selectPreviousRowCell", "shift KP_DOWN", "selectNextRowExtendSelection", "shift KP_LEFT", "selectPreviousColumnExtendSelection", "ESCAPE", "cancel", "ctrl shift PAGE_UP", "scrollLeftExtendSelection", "shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl PAGE_UP", "scrollLeftChangeSelection", "shift PAGE_UP", "scrollUpExtendSelection", "ctrl shift PAGE_DOWN", "scrollRightExtendSelection", "ctrl PAGE_DOWN", "scrollRightChangeSelection", "PAGE_UP", "scrollUpChangeSelection", "ctrl shift LEFT", "selectPreviousColumnExtendSelection", "shift KP_UP", "selectPreviousRowExtendSelection", "ctrl shift UP", "selectPreviousRowExtendSelection", "ctrl shift RIGHT", "selectNextColumnExtendSelection", "ctrl shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl shift DOWN", "selectNextRowExtendSelection", "ctrl BACK_SLASH", "clearSelection", "ctrl shift KP_UP", "selectPreviousRowExtendSelection", "ctrl shift KP_LEFT", "selectPreviousColumnExtendSelection", "ctrl SLASH", "selectAll", "ctrl shift KP_DOWN", "selectNextRowExtendSelection", }), "Table.background", new ColorUIResource(new ColorUIResource(255, 255, 255)), "Table.focusCellBackground", new ColorUIResource(new ColorUIResource(255, 255, 255)), "Table.focusCellForeground", new ColorUIResource(new ColorUIResource(0, 0, 0)), "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource( new ColorUIResource(255, 255, 0)), "Table.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Table.foreground", new ColorUIResource(new ColorUIResource(0, 0, 0)), "Table.gridColor", new ColorUIResource(new ColorUIResource(128, 128, 128)), "Table.scrollPaneBorder", new BorderUIResource.BevelBorderUIResource(0), "Table.selectionBackground", new ColorUIResource(new ColorUIResource(0, 0, 128)), "Table.selectionForeground", new ColorUIResource(new ColorUIResource(255, 255, 255)), "TableHeader.background", new ColorUIResource(new ColorUIResource(192, 192, 192)), "TableHeader.cellBorder", new BorderUIResource.BevelBorderUIResource(0), "TableHeader.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TableHeader.foreground", new ColorUIResource(new ColorUIResource(0, 0, 0)), "TextArea.background", new ColorUIResource(light), "TextArea.border", new BorderUIResource(BasicBorders.getMarginBorder()), "TextArea.caretBlinkRate", new Integer(500), "TextArea.caretForeground", new ColorUIResource(Color.black), "TextArea.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), "TextArea.foreground", new ColorUIResource(Color.black), "TextArea.inactiveForeground", new ColorUIResource(Color.gray), "TextArea.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("shift UP"), "selection-up", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift KP_UP"), "selection-up", KeyStroke.getKeyStroke("DOWN"), "caret-down", KeyStroke.getKeyStroke("shift ctrl T"), "previous-link-action", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift PAGE_UP"), "selection-page-up", KeyStroke.getKeyStroke("KP_UP"), "caret-up", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("ctrl HOME"), "caret-begin", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward", KeyStroke.getKeyStroke("ctrl END"), "caret-end", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("ctrl SPACE"), "activate-link-action", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ENTER"), "insert-break", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl PAGE_UP"), "selection-page-left", KeyStroke.getKeyStroke("shift DOWN"), "selection-down", KeyStroke.getKeyStroke("PAGE_DOWN"), "page-down", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("shift ctrl PAGE_DOWN"), "selection-page-right", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("KP_DOWN"), "caret-down", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("shift ctrl END"), "selection-end", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl T"), "next-link-action", KeyStroke.getKeyStroke("shift KP_DOWN"), "selection-down", KeyStroke.getKeyStroke("TAB"), "insert-tab", KeyStroke.getKeyStroke("UP"), "caret-up", KeyStroke.getKeyStroke("shift ctrl HOME"), "selection-begin", KeyStroke.getKeyStroke("shift PAGE_DOWN"), "selection-page-down", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("PAGE_UP"), "page-up", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard" }), "TextArea.margin", new InsetsUIResource(0, 0, 0, 0), "TextArea.selectionBackground", new ColorUIResource(Color.black), "TextArea.selectionForeground", new ColorUIResource(Color.white), "TextField.background", new ColorUIResource(light), "TextField.border", new BasicBorders.FieldBorder(null, null, null, null), "TextField.caretBlinkRate", new Integer(500), "TextField.caretForeground", new ColorUIResource(Color.black), "TextField.darkShadow", new ColorUIResource(shadow), "TextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "TextField.foreground", new ColorUIResource(Color.black), "TextField.highlight", new ColorUIResource(highLight), "TextField.inactiveBackground", new ColorUIResource(Color.LIGHT_GRAY), "TextField.inactiveForeground", new ColorUIResource(Color.GRAY), "TextField.light", new ColorUIResource(highLight), "TextField.highlight", new ColorUIResource(light), "TextField.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("ENTER"), "notify-field-accept", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word" }), "TextField.margin", new InsetsUIResource(0, 0, 0, 0), "TextField.selectionBackground", new ColorUIResource(Color.black), "TextField.selectionForeground", new ColorUIResource(Color.white), "TextPane.background", new ColorUIResource(Color.white), "TextPane.border", BasicBorders.getMarginBorder(), "TextPane.caretBlinkRate", new Integer(500), "TextPane.caretForeground", new ColorUIResource(Color.black), "TextPane.font", new FontUIResource("Serif", Font.PLAIN, 12), "TextPane.foreground", new ColorUIResource(Color.black), "TextPane.inactiveForeground", new ColorUIResource(Color.gray), "TextPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("shift UP"), "selection-up", KeyStroke.getKeyStroke("ctrl RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift ctrl LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("shift KP_UP"), "selection-up", KeyStroke.getKeyStroke("DOWN"), "caret-down", KeyStroke.getKeyStroke("shift ctrl T"), "previous-link-action", KeyStroke.getKeyStroke("ctrl LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("CUT"), "cut-to-clipboard", KeyStroke.getKeyStroke("END"), "caret-end-line", KeyStroke.getKeyStroke("shift PAGE_UP"), "selection-page-up", KeyStroke.getKeyStroke("KP_UP"), "caret-up", KeyStroke.getKeyStroke("DELETE"), "delete-next", KeyStroke.getKeyStroke("ctrl HOME"), "caret-begin", KeyStroke.getKeyStroke("shift LEFT"), "selection-backward", KeyStroke.getKeyStroke("ctrl END"), "caret-end", KeyStroke.getKeyStroke("BACK_SPACE"), "delete-previous", KeyStroke.getKeyStroke("shift ctrl RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("LEFT"), "caret-backward", KeyStroke.getKeyStroke("KP_LEFT"), "caret-backward", KeyStroke.getKeyStroke("shift KP_RIGHT"), "selection-forward", KeyStroke.getKeyStroke("ctrl SPACE"), "activate-link-action", KeyStroke.getKeyStroke("ctrl H"), "delete-previous", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "unselect", KeyStroke.getKeyStroke("ENTER"), "insert-break", KeyStroke.getKeyStroke("shift HOME"), "selection-begin-line", KeyStroke.getKeyStroke("RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl PAGE_UP"), "selection-page-left", KeyStroke.getKeyStroke("shift DOWN"), "selection-down", KeyStroke.getKeyStroke("PAGE_DOWN"), "page-down", KeyStroke.getKeyStroke("shift KP_LEFT"), "selection-backward", KeyStroke.getKeyStroke("shift ctrl O"), "toggle-componentOrientation", KeyStroke.getKeyStroke("ctrl X"), "cut-to-clipboard", KeyStroke.getKeyStroke("shift ctrl PAGE_DOWN"), "selection-page-right", KeyStroke.getKeyStroke("ctrl C"), "copy-to-clipboard", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "caret-next-word", KeyStroke.getKeyStroke("shift END"), "selection-end-line", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "caret-previous-word", KeyStroke.getKeyStroke("HOME"), "caret-begin-line", KeyStroke.getKeyStroke("ctrl V"), "paste-from-clipboard", KeyStroke.getKeyStroke("KP_DOWN"), "caret-down", KeyStroke.getKeyStroke("ctrl A"), "select-all", KeyStroke.getKeyStroke("shift RIGHT"), "selection-forward", KeyStroke.getKeyStroke("shift ctrl END"), "selection-end", KeyStroke.getKeyStroke("COPY"), "copy-to-clipboard", KeyStroke.getKeyStroke("shift ctrl KP_LEFT"), "selection-previous-word", KeyStroke.getKeyStroke("ctrl T"), "next-link-action", KeyStroke.getKeyStroke("shift KP_DOWN"), "selection-down", KeyStroke.getKeyStroke("TAB"), "insert-tab", KeyStroke.getKeyStroke("UP"), "caret-up", KeyStroke.getKeyStroke("shift ctrl HOME"), "selection-begin", KeyStroke.getKeyStroke("shift PAGE_DOWN"), "selection-page-down", KeyStroke.getKeyStroke("KP_RIGHT"), "caret-forward", KeyStroke.getKeyStroke("shift ctrl KP_RIGHT"), "selection-next-word", KeyStroke.getKeyStroke("PAGE_UP"), "page-up", KeyStroke.getKeyStroke("PASTE"), "paste-from-clipboard" }), "TextPane.margin", new InsetsUIResource(3, 3, 3, 3), "TextPane.selectionBackground", new ColorUIResource(Color.black), "TextPane.selectionForeground", new ColorUIResource(Color.white), "TitledBorder.border", new BorderUIResource.EtchedBorderUIResource(), "TitledBorder.font", new FontUIResource("Dialog", Font.PLAIN, 12), "TitledBorder.titleColor", new ColorUIResource(darkShadow), "ToggleButton.background", new ColorUIResource(light), "ToggleButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "ToggleButton.darkShadow", new ColorUIResource(shadow), "ToggleButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("SPACE"), "pressed", KeyStroke.getKeyStroke("released SPACE"), "released" }), "ToggleButton.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToggleButton.foreground", new ColorUIResource(darkShadow), "ToggleButton.highlight", new ColorUIResource(highLight), "ToggleButton.light", new ColorUIResource(light), "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), "ToggleButton.shadow", new ColorUIResource(shadow), "ToggleButton.textIconGap", new Integer(4), "ToggleButton.textShiftOffset", new Integer(0), "ToolBar.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "UP", "navigateUp", "KP_UP", "navigateUp", "DOWN", "navigateDown", "KP_DOWN", "navigateDown", "LEFT", "navigateLeft", "KP_LEFT", "navigateLeft", "RIGHT", "navigateRight", "KP_RIGHT", "navigateRight" }), "ToolBar.background", new ColorUIResource(light), "ToolBar.border", new BorderUIResource.EtchedBorderUIResource(), "ToolBar.darkShadow", new ColorUIResource(shadow), "ToolBar.dockingBackground", new ColorUIResource(light), "ToolBar.dockingForeground", new ColorUIResource(Color.red), "ToolBar.floatingBackground", new ColorUIResource(light), "ToolBar.floatingForeground", new ColorUIResource(Color.darkGray), "ToolBar.font", new FontUIResource("Dialog", Font.PLAIN, 12), "ToolBar.foreground", new ColorUIResource(darkShadow), "ToolBar.highlight", new ColorUIResource(highLight), "ToolBar.light", new ColorUIResource(highLight), "ToolBar.separatorSize", new DimensionUIResource(20, 20), "ToolBar.shadow", new ColorUIResource(shadow), "ToolTip.background", new ColorUIResource(light), "ToolTip.border", new BorderUIResource.LineBorderUIResource(Color.lightGray), "ToolTip.font", new FontUIResource("SansSerif", Font.PLAIN, 12), "ToolTip.foreground", new ColorUIResource(darkShadow), "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] { "ESCAPE", "cancel" }), "Tree.background", new ColorUIResource(new Color(255, 255, 255)), "Tree.changeSelectionWithFocus", Boolean.TRUE, "Tree.drawsFocusBorderAroundIcon", Boolean.FALSE, "Tree.editorBorder", new BorderUIResource.LineBorderUIResource(Color.lightGray), "Tree.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { KeyStroke.getKeyStroke("ctrl DOWN"), "selectNextChangeLead", KeyStroke.getKeyStroke("shift UP"), "selectPreviousExtendSelection", KeyStroke.getKeyStroke("ctrl RIGHT"), "scrollRight", KeyStroke.getKeyStroke("shift KP_UP"), "selectPreviousExtendSelection", KeyStroke.getKeyStroke("DOWN"), "selectNext", KeyStroke.getKeyStroke("ctrl UP"), "selectPreviousChangeLead", KeyStroke.getKeyStroke("ctrl LEFT"), "scrollLeft", KeyStroke.getKeyStroke("CUT"), "cut", KeyStroke.getKeyStroke("END"), "selectLast", KeyStroke.getKeyStroke("shift PAGE_UP"), "scrollUpExtendSelection", KeyStroke.getKeyStroke("KP_UP"), "selectPrevious", KeyStroke.getKeyStroke("shift ctrl UP"), "selectPreviousExtendSelection", KeyStroke.getKeyStroke("ctrl HOME"), "selectFirstChangeLead", KeyStroke.getKeyStroke("ctrl END"), "selectLastChangeLead", KeyStroke.getKeyStroke("ctrl PAGE_DOWN"), "scrollDownChangeLead", KeyStroke.getKeyStroke("LEFT"), "selectParent", KeyStroke.getKeyStroke("ctrl PAGE_UP"), "scrollUpChangeLead", KeyStroke.getKeyStroke("KP_LEFT"), "selectParent", KeyStroke.getKeyStroke("SPACE"), "addToSelection", KeyStroke.getKeyStroke("ctrl SPACE"), "toggleAndAnchor", KeyStroke.getKeyStroke("shift SPACE"), "extendTo", KeyStroke.getKeyStroke("shift ctrl SPACE"), "moveSelectionTo", KeyStroke.getKeyStroke("ADD"), "expand", KeyStroke.getKeyStroke("ctrl BACK_SLASH"), "clearSelection", KeyStroke.getKeyStroke("shift ctrl DOWN"), "selectNextExtendSelection", KeyStroke.getKeyStroke("shift HOME"), "selectFirstExtendSelection", KeyStroke.getKeyStroke("RIGHT"), "selectChild", KeyStroke.getKeyStroke("shift ctrl PAGE_UP"), "scrollUpExtendSelection", KeyStroke.getKeyStroke("shift DOWN"), "selectNextExtendSelection", KeyStroke.getKeyStroke("PAGE_DOWN"), "scrollDownChangeSelection", KeyStroke.getKeyStroke("shift ctrl KP_UP"), "selectPreviousExtendSelection", KeyStroke.getKeyStroke("SUBTRACT"), "collapse", KeyStroke.getKeyStroke("ctrl X"), "cut", KeyStroke.getKeyStroke("shift ctrl PAGE_DOWN"), "scrollDownExtendSelection", KeyStroke.getKeyStroke("ctrl SLASH"), "selectAll", KeyStroke.getKeyStroke("ctrl C"), "copy", KeyStroke.getKeyStroke("ctrl KP_RIGHT"), "scrollRight", KeyStroke.getKeyStroke("shift END"), "selectLastExtendSelection", KeyStroke.getKeyStroke("shift ctrl KP_DOWN"), "selectNextExtendSelection", KeyStroke.getKeyStroke("ctrl KP_LEFT"), "scrollLeft", KeyStroke.getKeyStroke("HOME"), "selectFirst", KeyStroke.getKeyStroke("ctrl V"), "paste", KeyStroke.getKeyStroke("KP_DOWN"), "selectNext", KeyStroke.getKeyStroke("ctrl A"), "selectAll", KeyStroke.getKeyStroke("ctrl KP_DOWN"), "selectNextChangeLead", KeyStroke.getKeyStroke("shift ctrl END"), "selectLastExtendSelection", KeyStroke.getKeyStroke("COPY"), "copy", KeyStroke.getKeyStroke("ctrl KP_UP"), "selectPreviousChangeLead", KeyStroke.getKeyStroke("shift KP_DOWN"), "selectNextExtendSelection", KeyStroke.getKeyStroke("UP"), "selectPrevious", KeyStroke.getKeyStroke("shift ctrl HOME"), "selectFirstExtendSelection", KeyStroke.getKeyStroke("shift PAGE_DOWN"), "scrollDownExtendSelection", KeyStroke.getKeyStroke("KP_RIGHT"), "selectChild", KeyStroke.getKeyStroke("F2"), "startEditing", KeyStroke.getKeyStroke("PAGE_UP"), "scrollUpChangeSelection", KeyStroke.getKeyStroke("PASTE"), "paste" }), "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12), "Tree.foreground", new ColorUIResource(Color.black), "Tree.hash", new ColorUIResource(new Color(128, 128, 128)), "Tree.leftChildIndent", new Integer(7), "Tree.rightChildIndent", new Integer(13), "Tree.rowHeight", new Integer(16), "Tree.scrollsOnExpand", Boolean.TRUE, "Tree.selectionBackground", new ColorUIResource(Color.black), "Tree.nonSelectionBackground", new ColorUIResource(new Color(255, 255, 255)), "Tree.selectionBorderColor", new ColorUIResource(Color.black), "Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(Color.black), "Tree.selectionForeground", new ColorUIResource(new Color(255, 255, 255)), "Viewport.background", new ColorUIResource(light), "Viewport.foreground", new ColorUIResource(Color.black), "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12) }; defaults.putDefaults(uiDefaults); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/b0cd6fe2bc67cab4bfa049df6ec965b99643fa67/BasicLookAndFeel.java/clean/javax/swing/plaf/basic/BasicLookAndFeel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
1841,
7019,
12,
3060,
73,
643,
87,
3467,
13,
225,
288,
565,
1033,
8526,
5915,
7019,
31,
3639,
5563,
3551,
12128,
273,
394,
5563,
12,
3247,
29,
16,
29460,
16,
4248,
26,
1769,
565,
5563,
9052,
273,
394,
5563,
12,
4366,
29,
16,
576,
4763,
16,
576,
6938,
1769,
565,
5563,
10510,
273,
394,
5563,
12,
24347,
16,
404,
5718,
16,
404,
5026,
1769,
565,
5563,
23433,
12957,
273,
394,
5563,
12,
2313,
16,
2872,
16,
2872,
1769,
3639,
5915,
7019,
273,
394,
1033,
8526,
288,
1377,
315,
7469,
31224,
429,
4666,
18,
31226,
1528,
3113,
315,
31224,
3113,
1377,
315,
7469,
31224,
429,
4666,
18,
1118,
83,
1528,
3113,
315,
3715,
83,
3113,
1377,
315,
3616,
18,
9342,
3113,
394,
5563,
5370,
1420,
12,
2957,
18,
23516,
67,
43,
6722,
3631,
1377,
315,
3616,
18,
8815,
3113,
1377,
394,
10034,
73,
643,
87,
18,
14443,
620,
1435,
4202,
288,
3639,
1071,
1033,
752,
620,
12,
3060,
73,
643,
87,
1014,
13,
3639,
288,
1850,
327,
7651,
21621,
18,
588,
3616,
8107,
5621,
3639,
289,
1377,
19879,
1377,
315,
3616,
18,
25045,
12957,
3113,
394,
5563,
5370,
1420,
12,
2957,
18,
14618,
3649,
3631,
1377,
315,
3616,
18,
5776,
3113,
394,
10063,
5370,
1420,
2932,
6353,
3113,
10063,
18,
26549,
16,
2593,
3631,
1377,
315,
3616,
18,
1405,
2915,
3113,
394,
5563,
5370,
1420,
12,
2957,
18,
14618,
3649,
3631,
1377,
315,
3616,
18,
13923,
1210,
863,
3113,
394,
10034,
73,
643,
87,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
1841,
7019,
12,
3060,
73,
643,
87,
3467,
13,
225,
288,
565,
1033,
8526,
5915,
7019,
31,
3639,
5563,
3551,
12128,
273,
394,
5563,
12,
3247,
29,
16,
29460,
16,
4248,
26,
1769,
565,
5563,
9052,
273,
394,
5563,
12,
4366,
29,
16,
576,
4763,
16,
576,
6938,
1769,
565,
5563,
10510,
273,
394,
5563,
12,
24347,
16,
404,
5718,
16,
404,
5026,
1769,
565,
5563,
23433,
12957,
273,
394,
5563,
12,
2313,
16,
2872,
16,
2872,
1769,
3639,
5915,
7019,
273,
394,
1033,
8526,
288,
1377,
315,
7469,
31224,
429,
4666,
18,
31226,
1528,
3113,
315,
31224,
3113,
1377,
315,
7469,
31224,
429,
4666,
18,
1118,
83,
1528,
3113,
315,
3715,
83,
3113,
1377,
2
] |
XFire xfire = connector.getXfire(); Service service = xfire.getServiceRegistry().getService(new QName(serviceName)); if (service != null) { client = new Client(new MuleUniversalTransport(), service, wsdlUrl); } else { client = new Client(new URL(wsdlUrl)); client.getService().setName(new QName(serviceName)); xfire.getServiceRegistry().register(client.getService()); } client.setXFire(xfire); | client.setXFire(xfire); client.setEndpointUri(endpoint.getEndpointURI().toString()); return client; } }); clientPool.addObject(); clientPool.addObject(); | protected void doConnect(UMOImmutableEndpoint endpoint) throws Exception { if (client == null) { String wsdlUrl = endpoint.getEndpointURI().getAddress(); String serviceName = wsdlUrl.substring(0, wsdlUrl.lastIndexOf("?")); XFire xfire = connector.getXfire(); Service service = xfire.getServiceRegistry().getService(new QName(serviceName)); if (service != null) { client = new Client(new MuleUniversalTransport(), service, wsdlUrl); } else { client = new Client(new URL(wsdlUrl)); client.getService().setName(new QName(serviceName)); xfire.getServiceRegistry().register(client.getService()); } client.setXFire(xfire); } client.setEndpointUri(endpoint.getEndpointURI().toString()); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/fa1263b8c56f253bf0c4846ac97ce393cd2e73b5/XFireWsdlMessageDispatcher.java/buggy/providers/xfire/src/main/java/org/mule/providers/soap/xfire/wsdl/XFireWsdlMessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
5215,
12,
2799,
51,
16014,
3293,
2494,
13,
1216,
1185,
288,
3639,
309,
261,
2625,
422,
446,
13,
288,
5411,
514,
17642,
1489,
273,
2494,
18,
588,
3293,
3098,
7675,
588,
1887,
5621,
5411,
514,
6773,
273,
17642,
1489,
18,
28023,
12,
20,
16,
17642,
1489,
18,
2722,
31985,
2932,
7225,
10019,
5411,
1139,
9723,
619,
12179,
273,
8703,
18,
588,
60,
12179,
5621,
5411,
1956,
1156,
273,
619,
12179,
18,
588,
1179,
4243,
7675,
588,
1179,
12,
2704,
16723,
12,
15423,
10019,
5411,
309,
261,
3278,
480,
446,
13,
288,
7734,
1004,
273,
394,
2445,
12,
2704,
490,
725,
984,
14651,
6568,
9334,
1156,
16,
17642,
1489,
1769,
5411,
289,
5411,
469,
288,
7734,
1004,
273,
394,
2445,
12,
2704,
1976,
12,
4749,
5761,
1489,
10019,
7734,
1004,
18,
588,
1179,
7675,
542,
461,
12,
2704,
16723,
12,
15423,
10019,
7734,
619,
12179,
18,
588,
1179,
4243,
7675,
4861,
12,
2625,
18,
588,
1179,
10663,
5411,
289,
5411,
1004,
18,
542,
60,
9723,
12,
5841,
577,
1769,
3639,
289,
3639,
1004,
18,
542,
3293,
3006,
12,
8003,
18,
588,
3293,
3098,
7675,
10492,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
5215,
12,
2799,
51,
16014,
3293,
2494,
13,
1216,
1185,
288,
3639,
309,
261,
2625,
422,
446,
13,
288,
5411,
514,
17642,
1489,
273,
2494,
18,
588,
3293,
3098,
7675,
588,
1887,
5621,
5411,
514,
6773,
273,
17642,
1489,
18,
28023,
12,
20,
16,
17642,
1489,
18,
2722,
31985,
2932,
7225,
10019,
5411,
1139,
9723,
619,
12179,
273,
8703,
18,
588,
60,
12179,
5621,
5411,
1956,
1156,
273,
619,
12179,
18,
588,
1179,
4243,
7675,
588,
1179,
12,
2704,
16723,
12,
15423,
10019,
5411,
309,
261,
3278,
480,
446,
13,
288,
7734,
1004,
273,
394,
2445,
12,
2704,
490,
725,
984,
14651,
6568,
9334,
1156,
16,
17642,
1489,
1769,
5411,
289,
5411,
469,
288,
7734,
2
] |
if (jj_scan_token(COMMA)) return true; if (jj_3R_278()) return true; | if (jj_scan_token(IDENTIFIER)) return true; if (jj_scan_token(ASSIGN)) return true; if (jj_3R_87()) return true; | final private boolean jj_3R_279() { if (jj_scan_token(COMMA)) return true; if (jj_3R_278()) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/606e83b0f5c7b0b4f0d05f9c5bcc8d92c81d9342/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5324,
29,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4208,
5535,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
28,
10756,
327,
638,
31,
565,
327,
629,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5324,
29,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4208,
5535,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
28,
10756,
327,
638,
31,
565,
327,
629,
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
] |
home = new File(home, "Coverage"); | home = new File(home, "coverage"); | protected void checkOptions() throws BuildException { // check coverage home if (home == null || !home.isDirectory()) { throw new BuildException("Invalid home directory. Must point to JProbe home directory"); } home = new File(home, "Coverage"); File jar = new File(home, "coverage.jar"); if (!jar.exists()) { throw new BuildException("Cannot find Coverage directory: " + home); } // make sure snapshot dir exists and is resolved if (snapshotDir == null) { snapshotDir = new File("."); } snapshotDir = project.resolveFile(snapshotDir.getPath()); if (!snapshotDir.isDirectory() || !snapshotDir.exists()) { throw new BuildException("Snapshot directory does not exists :" + snapshotDir); } if (workingDir == null) { workingDir = new File("."); } workingDir = project.resolveFile(workingDir.getPath()); // check for info, do your best to select the java executable. // JProbe 3.0 fails if there is no javaexe option. So if (javaExe == null && (vm == null || "java2".equals(vm))) { String version = System.getProperty("java.version"); // make we are using 1.2+, if it is, then do your best to // get a javaexe if (!version.startsWith("1.1")) { if (vm == null) { vm = "java2"; } // if we are here obviously it is java2 String home = System.getProperty("java.home"); boolean isUnix = File.separatorChar == '/'; javaExe = isUnix ? new File(home, "bin/java") : new File(home, "/bin/java.exe"); } } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/4209fbd98d9274c9e1a20df0001ce7bceffb5dd5/Coverage.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/Coverage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
866,
1320,
1435,
1216,
18463,
288,
3639,
368,
866,
11196,
6382,
3639,
309,
261,
8712,
422,
446,
747,
401,
8712,
18,
291,
2853,
10756,
288,
5411,
604,
394,
18463,
2932,
1941,
6382,
1867,
18,
6753,
1634,
358,
804,
21042,
6382,
1867,
8863,
3639,
289,
3639,
6382,
273,
394,
1387,
12,
8712,
16,
315,
16356,
8863,
3639,
1387,
7334,
273,
394,
1387,
12,
8712,
16,
315,
16356,
18,
11930,
8863,
3639,
309,
16051,
11930,
18,
1808,
10756,
288,
5411,
604,
394,
18463,
2932,
4515,
1104,
30856,
1867,
30,
315,
397,
6382,
1769,
3639,
289,
3639,
368,
1221,
3071,
4439,
1577,
1704,
471,
353,
4640,
3639,
309,
261,
11171,
1621,
422,
446,
13,
288,
5411,
4439,
1621,
273,
394,
1387,
2932,
1199,
1769,
3639,
289,
3639,
4439,
1621,
273,
1984,
18,
10828,
812,
12,
11171,
1621,
18,
588,
743,
10663,
3639,
309,
16051,
11171,
1621,
18,
291,
2853,
1435,
747,
401,
11171,
1621,
18,
1808,
10756,
288,
5411,
604,
394,
18463,
2932,
4568,
1867,
1552,
486,
1704,
20514,
397,
4439,
1621,
1769,
3639,
289,
3639,
309,
261,
20478,
1621,
422,
446,
13,
288,
5411,
5960,
1621,
273,
394,
1387,
2932,
1199,
1769,
3639,
289,
3639,
5960,
1621,
273,
1984,
18,
10828,
812,
12,
20478,
1621,
18,
588,
743,
10663,
3639,
368,
866,
364,
1123,
16,
741,
3433,
3796,
358,
2027,
326,
2252,
9070,
18,
3639,
368,
804,
21042,
890,
18,
20,
6684,
309,
1915,
353,
1158,
2252,
14880,
1456,
18,
6155,
3639,
309,
261,
6290,
424,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
866,
1320,
1435,
1216,
18463,
288,
3639,
368,
866,
11196,
6382,
3639,
309,
261,
8712,
422,
446,
747,
401,
8712,
18,
291,
2853,
10756,
288,
5411,
604,
394,
18463,
2932,
1941,
6382,
1867,
18,
6753,
1634,
358,
804,
21042,
6382,
1867,
8863,
3639,
289,
3639,
6382,
273,
394,
1387,
12,
8712,
16,
315,
16356,
8863,
3639,
1387,
7334,
273,
394,
1387,
12,
8712,
16,
315,
16356,
18,
11930,
8863,
3639,
309,
16051,
11930,
18,
1808,
10756,
288,
5411,
604,
394,
18463,
2932,
4515,
1104,
30856,
1867,
30,
315,
397,
6382,
1769,
3639,
289,
3639,
368,
1221,
3071,
4439,
1577,
1704,
471,
353,
4640,
3639,
309,
261,
11171,
1621,
422,
446,
13,
288,
5411,
4439,
1621,
273,
2
] |
return ( (GroupElementHandle) input ).getElements( ).get( index ); | return ( (GroupElementHandle) input ).getElements( ).get( index ); | public static Object getInputElement(Object input,int index){ if ( input instanceof GroupElementHandle ) { return ( (GroupElementHandle) input ).getElements( ).get( index ); } else if( input instanceof List ){ return ((List)input).get( index ); } else return input; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d2bd664c690261fc7c54a0457bf2a52ea66c038c/DEUtil.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1033,
12353,
1046,
12,
921,
810,
16,
474,
770,
15329,
202,
202,
430,
261,
810,
1276,
3756,
1046,
3259,
262,
202,
202,
95,
1082,
202,
2463,
225,
261,
261,
1114,
1046,
3259,
13,
810,
262,
18,
588,
3471,
12,
262,
18,
588,
12,
770,
11272,
202,
202,
97,
202,
202,
12107,
309,
12,
810,
1276,
987,
262,
95,
1082,
202,
2463,
225,
14015,
682,
13,
2630,
2934,
588,
12,
770,
11272,
202,
202,
97,
202,
202,
12107,
327,
810,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1033,
12353,
1046,
12,
921,
810,
16,
474,
770,
15329,
202,
202,
430,
261,
810,
1276,
3756,
1046,
3259,
262,
202,
202,
95,
1082,
202,
2463,
225,
261,
261,
1114,
1046,
3259,
13,
810,
262,
18,
588,
3471,
12,
262,
18,
588,
12,
770,
11272,
202,
202,
97,
202,
202,
12107,
309,
12,
810,
1276,
987,
262,
95,
1082,
202,
2463,
225,
14015,
682,
13,
2630,
2934,
588,
12,
770,
11272,
202,
202,
97,
202,
202,
12107,
327,
810,
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
] |
if (closeCleanup != null) { closeCleanup.invoke(activation); } | public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if ( isOpen ) { // we don't want to keep around a pointer to the // row ... so it can be thrown away. // REVISIT: does this need to be in a finally // block, to ensure that it is executed? clearCurrentRow(); if (closeCleanup != null) { closeCleanup.invoke(activation); // let activation tidy up } currentRow = null; if (hashtableBuilt) { // This is where we get the scan properties for a subquery scanProperties = getScanProperties(); // This is where we get the positioner info for inner tables if (runTimeStatisticsOn) { startPositionString = printStartPosition(); stopPositionString = printStopPosition(); } // close the hash table, eating any exception hashtable.close(); hashtable = null; hashtableBuilt = false; } startPosition = null; stopPosition = null; super.close(); } else if (SanityManager.DEBUG) SanityManager.DEBUG("CloseRepeatInfo","Close of HashScanResultSet repeated"); closeTime += getElapsedMillis(beginTime); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/f77f36d19f4b950fcf1f46c08f767787b02b135f/HashScanResultSet.java/clean/java/engine/org/apache/derby/impl/sql/execute/HashScanResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
202,
4412,
1435,
1216,
8263,
503,
202,
95,
202,
202,
10086,
950,
273,
5175,
28512,
5621,
202,
202,
430,
261,
16633,
262,
202,
565,
288,
1082,
202,
759,
732,
2727,
1404,
2545,
358,
3455,
6740,
279,
4407,
358,
326,
1082,
202,
759,
1027,
1372,
1427,
518,
848,
506,
6718,
10804,
18,
1082,
202,
759,
2438,
26780,
1285,
30,
1552,
333,
1608,
358,
506,
316,
279,
3095,
1082,
202,
759,
1203,
16,
358,
3387,
716,
518,
353,
7120,
35,
1082,
565,
2424,
3935,
1999,
5621,
1082,
202,
430,
261,
4412,
15007,
480,
446,
13,
288,
9506,
202,
4412,
15007,
18,
14407,
12,
16908,
1769,
368,
2231,
10027,
28792,
731,
1082,
202,
97,
1082,
202,
2972,
1999,
273,
446,
31,
1082,
202,
430,
261,
5332,
14544,
16409,
13,
1082,
202,
95,
9506,
202,
759,
1220,
353,
1625,
732,
336,
326,
4135,
1790,
364,
279,
20074,
9506,
202,
9871,
2297,
273,
1322,
4169,
2297,
5621,
9506,
202,
759,
1220,
353,
1625,
732,
336,
326,
1754,
264,
1123,
364,
3443,
4606,
9506,
202,
430,
261,
2681,
950,
8569,
1398,
13,
9506,
202,
95,
6862,
202,
1937,
2555,
780,
273,
1172,
23785,
5621,
6862,
202,
5681,
2555,
780,
273,
1172,
4947,
2555,
5621,
9506,
202,
97,
9506,
202,
759,
1746,
326,
1651,
1014,
16,
425,
1776,
1281,
1520,
9506,
202,
5332,
14544,
18,
4412,
5621,
9506,
202,
5332,
14544,
273,
446,
31,
9506,
202,
5332,
14544,
16409,
273,
629,
31,
1082,
202,
97,
1082,
202,
1937,
2555,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
202,
4412,
1435,
1216,
8263,
503,
202,
95,
202,
202,
10086,
950,
273,
5175,
28512,
5621,
202,
202,
430,
261,
16633,
262,
202,
565,
288,
1082,
202,
759,
732,
2727,
1404,
2545,
358,
3455,
6740,
279,
4407,
358,
326,
1082,
202,
759,
1027,
1372,
1427,
518,
848,
506,
6718,
10804,
18,
1082,
202,
759,
2438,
26780,
1285,
30,
1552,
333,
1608,
358,
506,
316,
279,
3095,
1082,
202,
759,
1203,
16,
358,
3387,
716,
518,
353,
7120,
35,
1082,
565,
2424,
3935,
1999,
5621,
1082,
202,
430,
261,
4412,
15007,
480,
446,
13,
288,
9506,
202,
4412,
15007,
18,
14407,
12,
16908,
1769,
368,
2231,
10027,
28792,
731,
1082,
202,
97,
1082,
202,
2972,
1999,
2
] | |
((StringToken)previous).string = buffer.toString(); | ((StringToken)previous).string = new String(buffer); | void addChild(Token tok) { if (tok == null) return; if (this.children == null) this.children = new Vector(); if (this.type == UNION) { this.children.addElement(tok); return; } // This is CONCAT, and new child is CONCAT. if (tok.type == CONCAT) { for (int i = 0; i < tok.size(); i ++) this.addChild(tok.getChild(i)); // Recursion return; } int size = this.children.size(); if (size == 0) { this.children.addElement(tok); return; } Token previous = (Token)this.children.elementAt(size-1); if (!((previous.type == CHAR || previous.type == STRING) && (tok.type == CHAR || tok.type == STRING))) { this.children.addElement(tok); return; } //System.err.println("Merge '"+previous+"' and '"+tok+"'."); StringBuffer buffer; int nextMaxLength = (tok.type == CHAR ? 2 : tok.getString().length()); if (previous.type == CHAR) { // Replace previous token by STRING buffer = new StringBuffer(2 + nextMaxLength); int ch = previous.getChar(); if (ch >= 0x10000) buffer.append(REUtil.decomposeToSurrogates(ch)); else buffer.append((char)ch); previous = Token.createString(null); this.children.setElementAt(previous, size-1); } else { // STRING buffer = new StringBuffer(previous.getString().length() + nextMaxLength); buffer.append(previous.getString()); } if (tok.type == CHAR) { int ch = tok.getChar(); if (ch >= 0x10000) buffer.append(REUtil.decomposeToSurrogates(ch)); else buffer.append((char)ch); } else { buffer.append(tok.getString()); } ((StringToken)previous).string = buffer.toString(); } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/8b11a848810bb412bb54724cba3f489008bafdc9/Token.java/buggy/src/org/apache/xerces/utils/regex/Token.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
7384,
12,
1345,
946,
13,
288,
5411,
309,
261,
17692,
422,
446,
13,
225,
327,
31,
5411,
309,
261,
2211,
18,
5906,
422,
446,
13,
225,
333,
18,
5906,
273,
394,
5589,
5621,
5411,
309,
261,
2211,
18,
723,
422,
29984,
13,
288,
7734,
333,
18,
5906,
18,
1289,
1046,
12,
17692,
1769,
7734,
327,
31,
5411,
289,
4766,
7734,
368,
1220,
353,
3492,
14130,
16,
471,
394,
1151,
353,
3492,
14130,
18,
5411,
309,
261,
17692,
18,
723,
422,
3492,
14130,
13,
288,
7734,
364,
261,
474,
277,
273,
374,
31,
225,
277,
411,
946,
18,
1467,
5621,
225,
277,
965,
13,
10792,
333,
18,
1289,
1763,
12,
17692,
18,
588,
1763,
12,
77,
10019,
368,
868,
10919,
7734,
327,
31,
5411,
289,
5411,
509,
963,
273,
333,
18,
5906,
18,
1467,
5621,
5411,
309,
261,
1467,
422,
374,
13,
288,
7734,
333,
18,
5906,
18,
1289,
1046,
12,
17692,
1769,
7734,
327,
31,
5411,
289,
5411,
3155,
2416,
273,
261,
1345,
13,
2211,
18,
5906,
18,
2956,
861,
12,
1467,
17,
21,
1769,
5411,
309,
16051,
12443,
11515,
18,
723,
422,
12090,
747,
2416,
18,
723,
422,
9469,
13,
5375,
597,
261,
17692,
18,
723,
422,
12090,
747,
946,
18,
723,
422,
9469,
20349,
288,
7734,
333,
18,
5906,
18,
1289,
1046,
12,
17692,
1769,
7734,
327,
31,
5411,
289,
13491,
368,
3163,
18,
370,
18,
8222,
2932,
6786,
2119,
15,
11515,
15,
5187,
471,
2119,
15,
17692,
15,
5187,
1199,
1769,
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,
540,
918,
7384,
12,
1345,
946,
13,
288,
5411,
309,
261,
17692,
422,
446,
13,
225,
327,
31,
5411,
309,
261,
2211,
18,
5906,
422,
446,
13,
225,
333,
18,
5906,
273,
394,
5589,
5621,
5411,
309,
261,
2211,
18,
723,
422,
29984,
13,
288,
7734,
333,
18,
5906,
18,
1289,
1046,
12,
17692,
1769,
7734,
327,
31,
5411,
289,
4766,
7734,
368,
1220,
353,
3492,
14130,
16,
471,
394,
1151,
353,
3492,
14130,
18,
5411,
309,
261,
17692,
18,
723,
422,
3492,
14130,
13,
288,
7734,
364,
261,
474,
277,
273,
374,
31,
225,
277,
411,
946,
18,
1467,
5621,
225,
277,
965,
13,
10792,
333,
18,
1289,
1763,
12,
17692,
18,
588,
1763,
12,
77,
10019,
368,
2
] |
System.out.println(" CATCHES " + exceptionGen.getCatchType()); | out.println(" CATCHES " + exceptionGen.getCatchType()); | public void print(PrintStream out) { Iterator<BasicBlock> i = cfg.blockIterator(); while (i.hasNext()) { BasicBlock bb = i.next(); out.println(); out.println("BASIC BLOCK: " + bb.getId() + (bb.isExceptionThrower() ? " [EXCEPTION THROWER]" : "") + blockStartAnnotate(bb)); if (bb.isExceptionThrower()) { out.println(" Exception thrower: " + bb.getExceptionThrower()); } CodeExceptionGen exceptionGen = bb.getExceptionGen(); if (exceptionGen != null) { System.out.println(" CATCHES " + exceptionGen.getCatchType()); } Iterator<InstructionHandle> j = instructionIterator(bb); while (j.hasNext()) { InstructionHandle handle = j.next(); out.println(handle + instructionAnnotate(handle, bb)); } out.println("END" + blockAnnotate(bb)); Iterator<Edge> edgeIter = isForwards ? cfg.outgoingEdgeIterator(bb) : cfg.incomingEdgeIterator(bb); while (edgeIter.hasNext()) { Edge edge = edgeIter.next(); out.println(" " + edge.formatAsString(!isForwards) + " " + edgeAnnotate(edge)); } } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/ad99a417f8ad351493ffa0b14ea02fd26f024875/CFGPrinter.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/CFGPrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1172,
12,
5108,
1228,
596,
13,
288,
202,
202,
3198,
32,
8252,
1768,
34,
277,
273,
2776,
18,
2629,
3198,
5621,
202,
202,
17523,
261,
77,
18,
5332,
2134,
10756,
288,
1082,
202,
8252,
1768,
7129,
273,
277,
18,
4285,
5621,
1082,
202,
659,
18,
8222,
5621,
1082,
202,
659,
18,
8222,
2932,
25642,
14073,
30,
315,
397,
7129,
18,
26321,
1435,
397,
261,
9897,
18,
291,
503,
8282,
264,
1435,
692,
315,
306,
12658,
7662,
11226,
654,
4279,
294,
1408,
13,
397,
1203,
1685,
31638,
12,
9897,
10019,
1082,
202,
430,
261,
9897,
18,
291,
503,
8282,
264,
10756,
288,
9506,
202,
659,
18,
8222,
2932,
225,
1185,
604,
264,
30,
315,
397,
7129,
18,
588,
503,
8282,
264,
10663,
1082,
202,
97,
1082,
202,
1085,
503,
7642,
1520,
7642,
273,
7129,
18,
588,
503,
7642,
5621,
1082,
202,
430,
261,
4064,
7642,
480,
446,
13,
288,
9506,
202,
3163,
18,
659,
18,
8222,
2932,
202,
39,
5858,
3991,
315,
397,
1520,
7642,
18,
588,
14842,
559,
10663,
1082,
202,
97,
1082,
202,
3198,
32,
11983,
3259,
34,
525,
273,
7592,
3198,
12,
9897,
1769,
1082,
202,
17523,
261,
78,
18,
5332,
2134,
10756,
288,
9506,
202,
11983,
3259,
1640,
273,
525,
18,
4285,
5621,
9506,
202,
659,
18,
8222,
12,
4110,
397,
7592,
31638,
12,
4110,
16,
7129,
10019,
1082,
202,
97,
1082,
202,
659,
18,
8222,
2932,
4415,
6,
397,
1203,
31638,
12,
9897,
10019,
1082,
202,
3198,
32,
6098,
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,
1172,
12,
5108,
1228,
596,
13,
288,
202,
202,
3198,
32,
8252,
1768,
34,
277,
273,
2776,
18,
2629,
3198,
5621,
202,
202,
17523,
261,
77,
18,
5332,
2134,
10756,
288,
1082,
202,
8252,
1768,
7129,
273,
277,
18,
4285,
5621,
1082,
202,
659,
18,
8222,
5621,
1082,
202,
659,
18,
8222,
2932,
25642,
14073,
30,
315,
397,
7129,
18,
26321,
1435,
397,
261,
9897,
18,
291,
503,
8282,
264,
1435,
692,
315,
306,
12658,
7662,
11226,
654,
4279,
294,
1408,
13,
397,
1203,
1685,
31638,
12,
9897,
10019,
1082,
202,
430,
261,
9897,
18,
291,
503,
8282,
264,
10756,
288,
9506,
202,
659,
18,
8222,
2932,
225,
1185,
604,
264,
30,
315,
397,
7129,
2
] |
protected RemoteInternalSettings getRemoteSettings() { return MvvmContextFactory.context().networkManager().getRemoteInternalSettings(); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/fe3cb056237ef9f76f25c4116510025bdbc88b05/OutsideValve.java/buggy/mvvm/localapi/com/untangle/mvvm/util/OutsideValve.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
5169,
3061,
2628,
588,
5169,
2628,
1435,
95,
2463,
49,
90,
3489,
29871,
18,
2472,
7675,
5185,
1318,
7675,
588,
5169,
3061,
2628,
5621,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
5169,
3061,
2628,
588,
5169,
2628,
1435,
95,
2463,
49,
90,
3489,
29871,
18,
2472,
7675,
5185,
1318,
7675,
588,
5169,
3061,
2628,
5621,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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(!isObsoleteCollectionType(type)){ | if (!isObsoleteCollectionType(type)){ return; } if (LibraryUtil.isOverrideOfLibraryMethodParameter(variable)) { | public void visitVariable(@NotNull PsiVariable variable){ super.visitVariable(variable); final PsiType type = variable.getType(); if(!isObsoleteCollectionType(type)){ return; } final PsiTypeElement typeElement = variable.getTypeElement(); registerError(typeElement); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2a073f3b788eda8104f0a8a4881b43a6e54b6a29/ObsoleteCollectionInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/maturity/ObsoleteCollectionInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
3092,
26964,
5962,
453,
7722,
3092,
2190,
15329,
5411,
2240,
18,
11658,
3092,
12,
6105,
1769,
5411,
727,
453,
7722,
559,
618,
273,
2190,
18,
588,
559,
5621,
5411,
309,
16051,
291,
27637,
19513,
2532,
559,
12,
723,
3719,
95,
327,
31,
289,
309,
261,
9313,
1304,
18,
291,
6618,
951,
9313,
1305,
1662,
12,
6105,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
1046,
27436,
273,
2190,
18,
588,
559,
1046,
5621,
5411,
1744,
668,
12,
723,
1046,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
540,
1071,
918,
3757,
3092,
26964,
5962,
453,
7722,
3092,
2190,
15329,
5411,
2240,
18,
11658,
3092,
12,
6105,
1769,
5411,
727,
453,
7722,
559,
618,
273,
2190,
18,
588,
559,
5621,
5411,
309,
16051,
291,
27637,
19513,
2532,
559,
12,
723,
3719,
95,
327,
31,
289,
309,
261,
9313,
1304,
18,
291,
6618,
951,
9313,
1305,
1662,
12,
6105,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
1046,
27436,
273,
2190,
18,
588,
559,
1046,
5621,
5411,
1744,
668,
12,
723,
1046,
1769,
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
] |
recv.getRubyClass().call(recv, getMId(), args.toJavaArray(), 0); | recv.getRubyClass().call(recv, getMId(), new RubyPointer(args.getList()), 0); | public void assign(Ruby ruby, RubyObject self, RubyObject value, boolean check) { RubyObject recv = getRecvNode().eval(ruby, self); if (getArgsNode() == null) { /* attr set */ recv.getRubyClass().call(recv, getMId(), new RubyObject[] {value}, 0); } else { RubyArray args = (RubyArray)getArgsNode().eval(ruby, self); args.push(value); recv.getRubyClass().call(recv, getMId(), args.toJavaArray(), 0); } } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/f629550c5947df9c1dbe414645f3dc76bcb70df4/CallNode.java/buggy/org/jruby/nodes/CallNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2683,
12,
54,
10340,
22155,
16,
19817,
921,
365,
16,
19817,
921,
460,
16,
1250,
866,
13,
288,
3639,
19817,
921,
10665,
273,
5561,
19774,
907,
7675,
8622,
12,
27768,
16,
365,
1769,
3639,
309,
261,
588,
2615,
907,
1435,
422,
446,
13,
288,
5411,
1748,
1604,
444,
1195,
5411,
10665,
18,
588,
54,
10340,
797,
7675,
1991,
12,
18334,
16,
2108,
548,
9334,
394,
19817,
921,
8526,
288,
1132,
5779,
374,
1769,
3639,
289,
469,
288,
5411,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
588,
2615,
907,
7675,
8622,
12,
27768,
16,
365,
1769,
5411,
833,
18,
6206,
12,
1132,
1769,
5411,
10665,
18,
588,
54,
10340,
797,
7675,
1991,
12,
18334,
16,
2108,
548,
9334,
394,
19817,
4926,
12,
1968,
18,
588,
682,
1435,
3631,
374,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2683,
12,
54,
10340,
22155,
16,
19817,
921,
365,
16,
19817,
921,
460,
16,
1250,
866,
13,
288,
3639,
19817,
921,
10665,
273,
5561,
19774,
907,
7675,
8622,
12,
27768,
16,
365,
1769,
3639,
309,
261,
588,
2615,
907,
1435,
422,
446,
13,
288,
5411,
1748,
1604,
444,
1195,
5411,
10665,
18,
588,
54,
10340,
797,
7675,
1991,
12,
18334,
16,
2108,
548,
9334,
394,
19817,
921,
8526,
288,
1132,
5779,
374,
1769,
3639,
289,
469,
288,
5411,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
588,
2615,
907,
7675,
8622,
12,
27768,
16,
365,
1769,
5411,
833,
18,
6206,
12,
1132,
1769,
5411,
10665,
18,
588,
54,
10340,
797,
7675,
1991,
12,
18334,
16,
2
] |
this.users=repository; } | this.users=repository; } | void setUserRepository(UsersRepository repository) { this.users=repository; } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/13904ab6daa0ed83ea319a401a618ed457000604/ImapServer.java/buggy/sandbox/imap-integration/src/java/org/apache/james/imapserver/ImapServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
14365,
3305,
12,
6588,
3305,
3352,
13,
288,
377,
202,
2211,
18,
5577,
33,
9071,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
14365,
3305,
12,
6588,
3305,
3352,
13,
288,
377,
202,
2211,
18,
5577,
33,
9071,
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
] |
assertEquals( "Tue May 11 00:00:00 CST 2004", se.getValue( ).toString( ) ); | assertEquals( "Tue May 11 00:00:00 GMT+08:00 2004", se .getValue( ) .toString( ) ); | public void testGetSelectionList( ) throws Exception { ArrayList selist = (ArrayList) task.getSelectionList( "p2_static_dt" ); IParameterSelectionChoice se = (IParameterSelectionChoice) selist .get( 0 ); assertEquals( "Tue May 11 00:00:00 CST 2004", se.getValue( ).toString( ) ); se = (IParameterSelectionChoice) selist.get( 1 ); assertEquals( "Tue May 18 00:00:00 CST 2004", se.getValue( ).toString( ) ); selist = (ArrayList) task.getSelectionList( "p3_dynamic_int" ); se = (IParameterSelectionChoice) selist.get( 0 ); assertEquals( "10250", se.getValue( ).toString( ) ); int listnumb = selist.size( ); assertEquals( 21, listnumb ); // Cascading parameters with single dataset selist = (ArrayList) task.getSelectionList( "p51" ); se = (IParameterSelectionChoice) selist.get( 0 ); assertEquals( "Cancelled", se.getValue( ).toString( ) ); task.setValue( "p51", "Shipped" ); selist = (ArrayList) task.getSelectionList( "p52" ); se = (IParameterSelectionChoice) selist.get( 0 ); assertEquals( "10250", se.getValue( ).toString( ) ); task.setValue( "p51", "Cancelled" ); selist = (ArrayList) task.getSelectionList( "p52" ); se = (IParameterSelectionChoice) selist.get( 0 ); assertEquals( "10253", se.getValue( ).toString( ) ); // Cascading parameters with multiple datasets selist = (ArrayList) task.getSelectionList( "p61_country" ); se = (IParameterSelectionChoice) selist.get( 0 ); assertEquals( "Australia", se.getValue( ).toString( ) ); task.setValue( "p61_country", "UK" ); selist = (ArrayList) task.getSelectionList( "p62_customernumber" ); se = (IParameterSelectionChoice) selist.get( 0 ); assertEquals( "187", se.getValue( ).toString( ) ); Integer icustno = new Integer( "240" ); task.setValue( "p62_customernumber", icustno ); selist = (ArrayList) task.getSelectionList( "p63_orderno" ); se = (IParameterSelectionChoice) selist.get( 0 ); assertEquals( "10232", se.getValue( ).toString( ) ); // set the value that not in the list Integer iorderno = new Integer( "10333" ); task.setValue( "p63_orderno", iorderno ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/f155e69609205af3fbe19fab78f300c190e81c48/IGetParameterDefinitionTaskTest.java/clean/testsuites/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/IGetParameterDefinitionTaskTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
6233,
682,
12,
262,
1216,
1185,
202,
95,
202,
202,
19558,
357,
376,
273,
261,
19558,
13,
1562,
18,
588,
6233,
682,
12,
315,
84,
22,
67,
3845,
67,
7510,
6,
11272,
202,
202,
45,
1662,
6233,
10538,
695,
273,
261,
45,
1662,
6233,
10538,
13,
357,
376,
9506,
202,
18,
588,
12,
374,
11272,
202,
202,
11231,
8867,
12,
315,
56,
344,
16734,
4648,
9631,
30,
713,
30,
713,
385,
882,
4044,
24,
3113,
695,
18,
24805,
12,
262,
18,
10492,
12,
262,
11272,
202,
202,
307,
273,
261,
45,
1662,
6233,
10538,
13,
357,
376,
18,
588,
12,
404,
11272,
202,
202,
11231,
8867,
12,
315,
56,
344,
16734,
6549,
9631,
30,
713,
30,
713,
385,
882,
4044,
24,
3113,
695,
18,
24805,
12,
262,
18,
10492,
12,
262,
11272,
202,
202,
1786,
376,
273,
261,
19558,
13,
1562,
18,
588,
6233,
682,
12,
315,
84,
23,
67,
14507,
67,
474,
6,
11272,
202,
202,
307,
273,
261,
45,
1662,
6233,
10538,
13,
357,
376,
18,
588,
12,
374,
11272,
202,
202,
11231,
8867,
12,
315,
2163,
26520,
3113,
695,
18,
24805,
12,
262,
18,
10492,
12,
262,
11272,
202,
202,
474,
666,
2107,
70,
273,
357,
376,
18,
1467,
12,
11272,
202,
202,
11231,
8867,
12,
9035,
16,
666,
2107,
70,
11272,
202,
202,
759,
385,
3691,
14968,
1472,
598,
2202,
3709,
202,
202,
1786,
376,
273,
261,
19558,
13,
1562,
18,
588,
6233,
682,
12,
315,
84,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
6233,
682,
12,
262,
1216,
1185,
202,
95,
202,
202,
19558,
357,
376,
273,
261,
19558,
13,
1562,
18,
588,
6233,
682,
12,
315,
84,
22,
67,
3845,
67,
7510,
6,
11272,
202,
202,
45,
1662,
6233,
10538,
695,
273,
261,
45,
1662,
6233,
10538,
13,
357,
376,
9506,
202,
18,
588,
12,
374,
11272,
202,
202,
11231,
8867,
12,
315,
56,
344,
16734,
4648,
9631,
30,
713,
30,
713,
385,
882,
4044,
24,
3113,
695,
18,
24805,
12,
262,
18,
10492,
12,
262,
11272,
202,
202,
307,
273,
261,
45,
1662,
6233,
10538,
13,
357,
376,
18,
588,
12,
404,
11272,
202,
202,
11231,
8867,
12,
315,
56,
344,
16734,
6549,
9631,
2
] |
setButtonState(CTagsIndexer.CTAGS_EXTERNAL); | public void widgetSelected(SelectionEvent event) { internalTagsFile = internalCTagsFile.getSelection(); externalTagsFile = externalCTagsFile.getSelection(); if (externalTagsFile){ setButtonState(CTagsIndexer.CTAGS_EXTERNAL); } if (internalTagsFile){ setButtonState(CTagsIndexer.CTAGS_INTERNAL); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c394f40e489dd37280520439c09530c1c4a9e61f/CTagsIndexerBlock.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/CTagsIndexerBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
871,
13,
288,
6862,
9506,
202,
7236,
3453,
812,
273,
2713,
1268,
1341,
812,
18,
588,
6233,
5621,
9506,
202,
9375,
3453,
812,
273,
3903,
1268,
1341,
812,
18,
588,
6233,
5621,
6862,
9506,
202,
430,
261,
9375,
3453,
812,
15329,
6862,
202,
542,
3616,
1119,
12,
1268,
1341,
20877,
18,
1268,
1781,
55,
67,
2294,
11702,
1769,
9506,
202,
97,
9506,
202,
430,
261,
7236,
3453,
812,
15329,
6862,
202,
542,
3616,
1119,
12,
1268,
1341,
20877,
18,
1268,
1781,
55,
67,
14005,
1769,
9506,
202,
97,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
871,
13,
288,
6862,
9506,
202,
7236,
3453,
812,
273,
2713,
1268,
1341,
812,
18,
588,
6233,
5621,
9506,
202,
9375,
3453,
812,
273,
3903,
1268,
1341,
812,
18,
588,
6233,
5621,
6862,
9506,
202,
430,
261,
9375,
3453,
812,
15329,
6862,
202,
542,
3616,
1119,
12,
1268,
1341,
20877,
18,
1268,
1781,
55,
67,
2294,
11702,
1769,
9506,
202,
97,
9506,
202,
430,
261,
7236,
3453,
812,
15329,
6862,
202,
542,
3616,
1119,
12,
1268,
1341,
20877,
18,
1268,
1781,
55,
67,
14005,
1769,
9506,
202,
97,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
if (varTypes[i] == Expression.INT) varRanges[i] = varMaxs[i] - varMins[i]; | if (varTypes[i] == Expression.INT) { varRanges[i] = varMaxs[i] - varMins[i]; if (varRanges[i] == 0) varMaxs[i]++; } | public void createVarInfoFromStatesFile() throws PrismException { BufferedReader in; String s, ss[]; int i, j, lineNum = 0; Module m; Declaration d; Object o; try { // open file for reading in = new BufferedReader(new FileReader(statesFile)); // read first line and extract var names s = in.readLine().trim(); lineNum = 1; if (s.charAt(0) != '(' || s.charAt(s.length()-1) != ')') throw new PrismException(""); s = s.substring(1, s.length()-1); varNames = s.split(","); numVars = varNames.length; // create arrays to store info about vars varMins = new int[numVars]; varMaxs = new int[numVars]; varRanges = new int[numVars]; varTypes = new int[numVars]; // read remaining lines s = in.readLine(); lineNum++; numStates = 0; while (s != null) { // increment state count numStates++; // split string s = s.trim(); s = s.substring(s.indexOf('(')+1, s.indexOf(')')); ss = s.split(","); if (ss.length != numVars) throw new PrismException(""); // for each variable... for (i = 0; i < numVars; i++) { // if this is the first state, establish variable type if (numStates == 1) { if (ss[i].equals("true") || ss[i].equals("false")) varTypes[i] = Expression.BOOLEAN; else varTypes[i] = Expression.INT; } // check for new min/max values (ints only) if (varTypes[i] == Expression.INT) { j = Integer.parseInt(ss[i]); if (numStates == 1) { varMins[i] = varMaxs[i] = j; } else { if (j < varMins[i]) varMins[i] = j; if (j > varMaxs[i]) varMaxs[i] = j; } } } s = in.readLine(); lineNum++; } for (i = 0; i < numVars; i++) { if (varTypes[i] == Expression.INT) varRanges[i] = varMaxs[i] - varMins[i]; } // close file in.close(); } catch (IOException e) { throw new PrismException("File I/O error reading from \"" + statesFile + "\""); } catch (NumberFormatException e) { throw new PrismException("Error detected at line " + lineNum + " of states file \"" + statesFile + "\""); } catch (PrismException e) { throw new PrismException("Error detected " + e.getMessage() + "at line " + lineNum + " of states file \"" + statesFile + "\""); } // create modules file modulesFile = new ModulesFile(); m = new Module("M"); for (i = 0; i < numVars; i++) { if (varTypes[i] == Expression.INT) { o = initVals.get(varNames[i]); if (o == null) d = new Declaration(varNames[i], new ExpressionInt(varMins[i]), new ExpressionInt(varMaxs[i]), new ExpressionInt(varMins[i])); else d = new Declaration(varNames[i], new ExpressionInt(varMins[i]), new ExpressionInt(varMaxs[i]), new ExpressionInt(((Integer)o).intValue())); } else { o = initVals.get(varNames[i]); if (o == null) d = new Declaration(varNames[i], new ExpressionFalse()); else d = new Declaration(varNames[i], ((Boolean)o).booleanValue() ? (Expression)new ExpressionTrue() : (Expression)new ExpressionFalse()); } m.addDeclaration(d); } modulesFile.addModule(m); modulesFile.tidyUp(); } | 55860 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55860/0cd3063525897c91bed9d6e5f5b264be6049648c/Explicit2MTBDD.java/buggy/prism/src/prism/Explicit2MTBDD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
1537,
966,
1265,
7629,
812,
1435,
1216,
2301,
6228,
503,
202,
95,
202,
202,
17947,
2514,
316,
31,
202,
202,
780,
272,
16,
5202,
8526,
31,
202,
202,
474,
277,
16,
525,
16,
980,
2578,
273,
374,
31,
202,
202,
3120,
312,
31,
202,
202,
6094,
302,
31,
202,
202,
921,
320,
31,
9506,
202,
698,
288,
1082,
202,
759,
1696,
585,
364,
6453,
1082,
202,
267,
273,
394,
10633,
12,
2704,
23010,
12,
7992,
812,
10019,
1082,
202,
759,
855,
1122,
980,
471,
2608,
569,
1257,
1082,
202,
87,
273,
316,
18,
896,
1670,
7675,
5290,
5621,
980,
2578,
273,
404,
31,
1082,
202,
430,
261,
87,
18,
3001,
861,
12,
20,
13,
480,
7321,
747,
272,
18,
3001,
861,
12,
87,
18,
2469,
1435,
17,
21,
13,
480,
5777,
13,
604,
394,
2301,
6228,
503,
2932,
8863,
1082,
202,
87,
273,
272,
18,
28023,
12,
21,
16,
272,
18,
2469,
1435,
17,
21,
1769,
1082,
202,
1401,
1557,
273,
272,
18,
4939,
2932,
16,
8863,
1082,
202,
2107,
5555,
273,
569,
1557,
18,
2469,
31,
1082,
202,
759,
752,
5352,
358,
1707,
1123,
2973,
4153,
1082,
202,
1401,
49,
2679,
273,
394,
509,
63,
2107,
5555,
15533,
1082,
202,
1401,
2747,
87,
273,
394,
509,
63,
2107,
5555,
15533,
1082,
202,
1401,
9932,
273,
394,
509,
63,
2107,
5555,
15533,
1082,
202,
1401,
2016,
273,
394,
509,
63,
2107,
5555,
15533,
1082,
202,
759,
855,
4463,
2362,
1082,
202,
87,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
1537,
966,
1265,
7629,
812,
1435,
1216,
2301,
6228,
503,
202,
95,
202,
202,
17947,
2514,
316,
31,
202,
202,
780,
272,
16,
5202,
8526,
31,
202,
202,
474,
277,
16,
525,
16,
980,
2578,
273,
374,
31,
202,
202,
3120,
312,
31,
202,
202,
6094,
302,
31,
202,
202,
921,
320,
31,
9506,
202,
698,
288,
1082,
202,
759,
1696,
585,
364,
6453,
1082,
202,
267,
273,
394,
10633,
12,
2704,
23010,
12,
7992,
812,
10019,
1082,
202,
759,
855,
1122,
980,
471,
2608,
569,
1257,
1082,
202,
87,
273,
316,
18,
896,
1670,
7675,
5290,
5621,
980,
2578,
273,
404,
31,
1082,
202,
430,
261,
87,
18,
3001,
861,
12,
20,
13,
2
] |
if(htl == 0) return null; | if(htl == 0) { Logger.minor(this, "No HTL"); return null; } | public synchronized Object makeRequestSender(NodeCHK key, short htl, long uid, NodePeer source) { // In store? CHKBlock chk = null; try { chk = datastore.fetch(key); } catch (IOException e) { Logger.error(this, "Error accessing store: "+e, e); } if(chk != null) return null; // Transfer coalescing - match key only as HTL irrelevant RequestSender sender = (RequestSender) transferringRequestSenders.get(key); if(sender != null) return sender; // HTL == 0 => Don't search further if(htl == 0) return null; // Request coalescing KeyHTLPair kh = new KeyHTLPair(key, htl); sender = (RequestSender) requestSenders.get(kh); if(sender != null) return sender; RequestSender rs = new RequestSender(key, htl, uid, this, source); requestSenders.put(kh, rs); return rs; } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/27f407d086a1dbf43da0232680fb0f61503732d4/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1033,
23009,
12021,
12,
907,
1792,
47,
498,
16,
3025,
366,
6172,
16,
1525,
4555,
16,
2029,
6813,
1084,
13,
288,
3639,
368,
657,
1707,
35,
3639,
6469,
47,
1768,
15000,
273,
446,
31,
3639,
775,
288,
5411,
15000,
273,
9290,
18,
5754,
12,
856,
1769,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
4242,
18,
1636,
12,
2211,
16,
315,
668,
19531,
1707,
30,
13773,
73,
16,
425,
1769,
3639,
289,
3639,
309,
12,
27038,
480,
446,
13,
327,
446,
31,
7734,
368,
12279,
1825,
287,
742,
310,
300,
845,
498,
1338,
487,
25052,
9482,
27719,
3639,
1567,
12021,
5793,
273,
261,
691,
12021,
13,
906,
74,
20245,
691,
3826,
414,
18,
588,
12,
856,
1769,
3639,
309,
12,
15330,
480,
446,
13,
327,
5793,
31,
3639,
368,
25052,
422,
374,
516,
7615,
1404,
1623,
9271,
3639,
309,
12,
647,
80,
422,
374,
13,
288,
4242,
18,
17364,
12,
2211,
16,
315,
2279,
25052,
8863,
327,
446,
31,
289,
7734,
368,
1567,
1825,
287,
742,
310,
3639,
1929,
5062,
48,
4154,
417,
76,
273,
394,
1929,
5062,
48,
4154,
12,
856,
16,
366,
6172,
1769,
3639,
5793,
273,
261,
691,
12021,
13,
590,
3826,
414,
18,
588,
12,
79,
76,
1769,
3639,
309,
12,
15330,
480,
446,
13,
327,
5793,
31,
7734,
1567,
12021,
3597,
273,
394,
1567,
12021,
12,
856,
16,
366,
6172,
16,
4555,
16,
333,
16,
1084,
1769,
3639,
590,
3826,
414,
18,
458,
12,
79,
76,
16,
3597,
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,
3852,
1033,
23009,
12021,
12,
907,
1792,
47,
498,
16,
3025,
366,
6172,
16,
1525,
4555,
16,
2029,
6813,
1084,
13,
288,
3639,
368,
657,
1707,
35,
3639,
6469,
47,
1768,
15000,
273,
446,
31,
3639,
775,
288,
5411,
15000,
273,
9290,
18,
5754,
12,
856,
1769,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
4242,
18,
1636,
12,
2211,
16,
315,
668,
19531,
1707,
30,
13773,
73,
16,
425,
1769,
3639,
289,
3639,
309,
12,
27038,
480,
446,
13,
327,
446,
31,
7734,
368,
12279,
1825,
287,
742,
310,
300,
845,
498,
1338,
487,
25052,
9482,
27719,
3639,
1567,
12021,
5793,
273,
261,
691,
12021,
13,
906,
74,
20245,
691,
3826,
414,
18,
588,
12,
2
] |
public Dataflow<IsNullValueFrame, IsNullValueAnalysis> createDataflow(ClassContext classContext, Method method) | public Dataflow<IsNullValueFrame, IsNullValueAnalysis> createDataflow(ClassContext classContext, Method method) | public static void main(String[] argv) throws Exception { if (argv.length != 1) { System.err.println("Usage: " + IsNullValueAnalysis.class.getName() + " <class file>"); System.exit(1); } DataflowTestDriver<IsNullValueFrame, IsNullValueAnalysis> driver = new DataflowTestDriver<IsNullValueFrame, IsNullValueAnalysis>() { @Override public Dataflow<IsNullValueFrame, IsNullValueAnalysis> createDataflow(ClassContext classContext, Method method) throws CFGBuilderException, DataflowAnalysisException { return classContext.getIsNullValueDataflow(method); } }; driver.execute(argv[0]); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/8c72324e87e19d06b76e1aa7af05f2e1c3bf01f1/IsNullValueAnalysis.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/npe/IsNullValueAnalysis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
480,
404,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
315,
397,
30230,
620,
9418,
18,
1106,
18,
17994,
1435,
397,
315,
411,
1106,
585,
2984,
1769,
1082,
202,
3163,
18,
8593,
12,
21,
1769,
202,
202,
97,
202,
202,
751,
2426,
4709,
4668,
32,
2520,
2041,
620,
3219,
16,
30230,
620,
9418,
34,
3419,
273,
394,
1910,
2426,
4709,
4668,
32,
2520,
2041,
620,
3219,
16,
30230,
620,
9418,
34,
1435,
288,
1082,
202,
36,
6618,
7682,
1071,
1910,
2426,
32,
2520,
2041,
620,
3219,
16,
30230,
620,
9418,
34,
752,
751,
2426,
12,
797,
1042,
667,
1042,
16,
2985,
707,
13,
9506,
3639,
1216,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
9506,
202,
2463,
667,
1042,
18,
588,
2520,
2041,
620,
751,
2426,
12,
2039,
1769,
1082,
202,
97,
202,
202,
20451,
202,
202,
7407,
18,
8837,
12,
19485,
63,
20,
19226,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
480,
404,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
315,
397,
30230,
620,
9418,
18,
1106,
18,
17994,
1435,
397,
315,
411,
1106,
585,
2984,
1769,
1082,
202,
3163,
18,
8593,
12,
21,
1769,
202,
202,
97,
202,
202,
751,
2426,
4709,
4668,
32,
2520,
2041,
620,
3219,
16,
30230,
620,
9418,
34,
3419,
273,
394,
1910,
2426,
4709,
4668,
32,
2520,
2041,
620,
3219,
16,
30230,
620,
9418,
34,
1435,
288,
1082,
202,
36,
6618,
7682,
1071,
1910,
2426,
32,
2520,
2041,
620,
3219,
16,
30230,
620,
9418,
34,
752,
751,
2426,
2
] |
public static WeaponType createBASmallLaser() { WeaponType weapon = new WeaponType(); weapon.name = "Small Laser"; weapon.internalName = "BASmallLaser"; weapon.mepName = "BA-Small Laser"; weapon.mtfName = weapon.internalName; weapon.heat = 0; weapon.damage = DAMAGE_VARIABLE; weapon.rackSize = 3; weapon.ammoType = AmmoType.T_NA; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 1; weapon.mediumRange = 2; weapon.longRange = 3; weapon.tonnage = 0.0f; weapon.criticals = 0; weapon.bv = 0; weapon.flags |= F_DIRECT_FIRE | F_BATTLEARMOR | F_LASER | F_NO_FIRES; return weapon; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/19768fb3c0b30b271bc193aa54683c8592962b26/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
38,
3033,
81,
454,
48,
14558,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
7734,
732,
28629,
18,
529,
273,
315,
19187,
511,
14558,
14432,
3639,
732,
28629,
18,
7236,
461,
273,
315,
38,
3033,
81,
454,
48,
14558,
14432,
3639,
732,
28629,
18,
81,
881,
461,
273,
315,
12536,
17,
19187,
511,
14558,
14432,
3639,
732,
28629,
18,
1010,
74,
461,
273,
732,
28629,
18,
7236,
461,
31,
3639,
732,
28629,
18,
580,
270,
273,
374,
31,
3639,
732,
28629,
18,
72,
301,
410,
273,
463,
2192,
2833,
67,
16444,
31,
3639,
732,
28629,
18,
21580,
1225,
273,
890,
31,
3639,
732,
28629,
18,
301,
8683,
559,
273,
3986,
8683,
559,
18,
56,
67,
11277,
31,
3639,
732,
28629,
18,
15903,
2655,
273,
13880,
2203,
673,
67,
11277,
31,
3639,
732,
28629,
18,
6620,
2655,
273,
404,
31,
3639,
732,
28629,
18,
19011,
2655,
273,
576,
31,
3639,
732,
28629,
18,
5748,
2655,
273,
890,
31,
3639,
732,
28629,
18,
1917,
82,
410,
273,
374,
18,
20,
74,
31,
3639,
732,
28629,
18,
27826,
335,
1031,
273,
374,
31,
3639,
732,
28629,
18,
70,
90,
273,
374,
31,
3639,
732,
28629,
18,
7133,
5626,
478,
67,
17541,
67,
1653,
862,
571,
478,
67,
38,
789,
56,
900,
26120,
916,
571,
478,
67,
2534,
2123,
571,
478,
67,
3417,
67,
1653,
7031,
31,
7734,
327,
732,
28629,
31,
565,
289,
2,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
38,
3033,
81,
454,
48,
14558,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
7734,
732,
28629,
18,
529,
273,
315,
19187,
511,
14558,
14432,
3639,
732,
28629,
18,
7236,
461,
273,
315,
38,
3033,
81,
454,
48,
14558,
14432,
3639,
732,
28629,
18,
81,
881,
461,
273,
315,
12536,
17,
19187,
511,
14558,
14432,
3639,
732,
28629,
18,
1010,
74,
461,
273,
732,
28629,
18,
7236,
461,
31,
3639,
732,
28629,
18,
580,
270,
273,
374,
31,
3639,
732,
28629,
18,
72,
301,
410,
273,
463,
2192,
2833,
67,
16444,
31,
3639,
732,
28629,
18,
21580,
1225,
273,
890,
31,
3639,
732,
28629,
18,
301,
2
] | ||
setLength(null); | private void evaluateExpressions() throws JspException { try { setCollection(evalAttr("collection", getCollectionExpr(), Object.class)); } catch (NullAttributeException ex) { setCollection(null); } try { setId((String) evalAttr("id", getId(), String.class)); } catch (NullAttributeException ex) { setId(null); } try { setIndexId((String) evalAttr("indexId", getIndexId(), String.class)); } catch (NullAttributeException ex) { setIndexId(null); } try { setLength((String) evalAttr("length", getLength(), String.class)); } catch (NullAttributeException ex) { setLength(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOffset((String) evalAttr("offset", getOffset(), String.class)); } catch (NullAttributeException ex) { setOffset(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(null); } try { setType((String) evalAttr("type", getType(), String.class)); } catch (NullAttributeException ex) { setType(null); } } | 8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELIterateTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/logic/ELIterateTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
2532,
12,
8622,
3843,
2932,
5548,
3113,
12075,
4742,
9334,
4766,
565,
1033,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
2532,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
10446,
12443,
780,
13,
5302,
3843,
2932,
350,
3113,
2634,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
10446,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
24860,
548,
12443,
780,
13,
5302,
3843,
2932,
1615,
548,
3113,
8088,
548,
9334,
29159,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
24860,
548,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
15683,
12443,
780,
13,
5302,
3843,
2932,
2469,
3113,
9888,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
10402,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
6788,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
2335,
12443,
780,
13,
5302,
3843,
2932,
3348,
3113,
13386,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
2335,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
7486,
12443,
780,
13,
5302,
3843,
2932,
4468,
3113,
3911,
9334,
4766,
1850,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
2532,
12,
8622,
3843,
2932,
5548,
3113,
12075,
4742,
9334,
4766,
565,
1033,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
2532,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
10446,
12443,
780,
13,
5302,
3843,
2932,
350,
3113,
2634,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
10446,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
24860,
548,
12443,
780,
13,
5302,
3843,
2932,
1615,
548,
3113,
8088,
548,
9334,
29159,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
24860,
2
] | |
writer.writeByte(FdocaConstants.NGDA_TRIPLET_TYPE); writer.writeByte(FdocaConstants.SQLDTAGRP_LID); } else { writer.writeByte(FdocaConstants.CPT_TRIPLET_TYPE); writer.writeByte(FdocaConstants.NULL_LID); | writer.writeByte(FdocaConstants.NGDA_TRIPLET_TYPE); writer.writeByte(FdocaConstants.SQLDTAGRP_LID); } else { writer.writeByte(FdocaConstants.CPT_TRIPLET_TYPE); writer.writeByte(FdocaConstants.NULL_LID); | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(length); if (first) { writer.writeByte(FdocaConstants.NGDA_TRIPLET_TYPE); writer.writeByte(FdocaConstants.SQLDTAGRP_LID); } else { //continued writer.writeByte(FdocaConstants.CPT_TRIPLET_TYPE); writer.writeByte(FdocaConstants.NULL_LID); } boolean hasRs = (rsmeta != null); // if don't have result, then we look at parameter meta for (int i = colStart; i <= colEnd; i++) { boolean nullable = (hasRs ? (rsmeta.isNullable(i) == rsmeta.columnNullable) : (pmeta.isNullable(i) == JDBC30Translation.PARAMETER_NULLABLE)); int colType = (hasRs ? rsmeta.getColumnType(i) : pmeta.getParameterType(i)); int[] outlen = {-1}; int drdaType = (hasRs ?FdocaConstants.mapJdbcTypeToDrdaType(appRequester,colType,nullable,outlen): stmt.getParamDRDAType(i)); boolean isDecimal = ((drdaType | 1) == DRDAConstants.DRDA_TYPE_NDECIMAL); int precision = 0, scale = 0; if (hasRs) { precision = rsmeta.getPrecision(i); scale = rsmeta.getScale(i); stmt.setRsDRDAType(i,drdaType); stmt.setRsPrecision(i, precision); stmt.setRsScale(i,scale); } else if (isDecimal) { if (stmt.isOutputParam(i)) ((CallableStatement) stmt.ps).registerOutParameter(i,Types.DECIMAL); precision = pmeta.getPrecision(i); scale = pmeta.getScale(i); } if (SanityManager.DEBUG) trace("jdbcType=" + colType + " \tdrdaType=" + Integer.toHexString(drdaType)); // Length or precision and scale for decimal values. writer.writeByte(drdaType); if (isDecimal) { writer.writeByte(precision); writer.writeByte(scale); } else if (outlen[0] != -1) writer.writeShort(outlen[0]); else if (hasRs) writer.writeShort(rsmeta.getColumnDisplaySize(i)); else writer.writeShort(stmt.getParamLen(i)); } } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
3997,
40,
7927,
54,
52,
12,
6331,
9793,
3406,
3480,
16,
10842,
6998,
3597,
3901,
16,
20982,
202,
9538,
1662,
694,
6998,
293,
3901,
16,
6862,
9506,
202,
474,
645,
1685,
16,
509,
645,
1638,
16,
1250,
1122,
13,
202,
202,
15069,
16801,
9793,
5752,
503,
16,
6483,
202,
95,
202,
202,
474,
769,
273,
225,
261,
42,
2434,
69,
2918,
18,
3997,
40,
7927,
54,
52,
67,
4935,
67,
40,
2312,
67,
4574,
380,
4405,
202,
12443,
1293,
1638,
15,
21,
13,
300,
645,
1685,
3719,
397,
890,
31,
202,
202,
6299,
18,
2626,
3216,
12,
2469,
1769,
202,
202,
430,
261,
3645,
13,
202,
202,
95,
1082,
202,
6299,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
4960,
9793,
67,
6566,
52,
15146,
67,
2399,
1769,
1082,
202,
6299,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
3997,
40,
7927,
54,
52,
67,
28447,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
759,
1213,
267,
5957,
1082,
202,
6299,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
39,
1856,
67,
6566,
52,
15146,
67,
2399,
1769,
1082,
202,
6299,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
8560,
67,
28447,
1769,
202,
202,
97,
6862,
1082,
565,
202,
202,
6494,
711,
18880,
273,
261,
5453,
3901,
480,
446,
1769,
202,
759,
225,
309,
2727,
1404,
1240,
563,
16,
1508,
732,
2324,
622,
1569,
2191,
202,
202,
1884,
261,
474,
277,
273,
645,
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,
1045,
3997,
40,
7927,
54,
52,
12,
6331,
9793,
3406,
3480,
16,
10842,
6998,
3597,
3901,
16,
20982,
202,
9538,
1662,
694,
6998,
293,
3901,
16,
6862,
9506,
202,
474,
645,
1685,
16,
509,
645,
1638,
16,
1250,
1122,
13,
202,
202,
15069,
16801,
9793,
5752,
503,
16,
6483,
202,
95,
202,
202,
474,
769,
273,
225,
261,
42,
2434,
69,
2918,
18,
3997,
40,
7927,
54,
52,
67,
4935,
67,
40,
2312,
67,
4574,
380,
4405,
202,
12443,
1293,
1638,
15,
21,
13,
300,
645,
1685,
3719,
397,
890,
31,
202,
202,
6299,
18,
2626,
3216,
12,
2469,
1769,
202,
202,
430,
261,
3645,
13,
202,
202,
95,
1082,
202,
6299,
18,
2626,
3216,
2
] |
void setStreamProperties() { taskid_ = System.getProperty("stream.taskid"); if(taskid_ == null) { taskid_ = "noid" + System.currentTimeMillis(); } String s = System.getProperty("stream.port"); if(s != null) { reportPortPlusOne_ = Integer.parseInt(s); } } | 55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/e10b40e8014547113799b2653164e8c990d41209/PipeMapRed.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/PipeMapRed.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
542,
1228,
2297,
1435,
95,
4146,
350,
67,
33,
3163,
18,
588,
1396,
2932,
3256,
18,
4146,
350,
8863,
430,
12,
4146,
350,
67,
631,
2011,
15329,
4146,
350,
67,
1546,
82,
839,
6,
15,
3163,
18,
2972,
28512,
5621,
97,
7957,
33,
3163,
18,
588,
1396,
2932,
3256,
18,
655,
8863,
430,
12,
87,
5,
33,
2011,
15329,
6006,
2617,
13207,
3335,
67,
33,
4522,
18,
2670,
1702,
12,
87,
1769,
9090,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
542,
1228,
2297,
1435,
95,
4146,
350,
67,
33,
3163,
18,
588,
1396,
2932,
3256,
18,
4146,
350,
8863,
430,
12,
4146,
350,
67,
631,
2011,
15329,
4146,
350,
67,
1546,
82,
839,
6,
15,
3163,
18,
2972,
28512,
5621,
97,
7957,
33,
3163,
18,
588,
1396,
2932,
3256,
18,
655,
8863,
430,
12,
87,
5,
33,
2011,
15329,
6006,
2617,
13207,
3335,
67,
33,
4522,
18,
2670,
1702,
12,
87,
1769,
9090,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | ||
public int MACD_Lookback(int optInFastPeriod, int optInSlowPeriod, int optInSignalPeriod) { int tempInteger; if (optInSlowPeriod < optInFastPeriod) { | public int MACD_Lookback( int optInFastPeriod, int optInSlowPeriod, int optInSignalPeriod ) { int tempInteger; if( optInSlowPeriod < optInFastPeriod ) { | public int MACD_Lookback(int optInFastPeriod, int optInSlowPeriod, int optInSignalPeriod) { int tempInteger; if (optInSlowPeriod < optInFastPeriod) { tempInteger = optInSlowPeriod; optInSlowPeriod = optInFastPeriod; optInFastPeriod = tempInteger; } return EMA_Lookback(optInSlowPeriod) + EMA_Lookback(optInSignalPeriod); } | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
14246,
40,
67,
9794,
823,
12,
474,
2153,
382,
12305,
5027,
16,
509,
2153,
382,
28733,
5027,
16,
1082,
202,
474,
2153,
382,
11208,
5027,
13,
288,
202,
202,
474,
1906,
4522,
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,
2463,
512,
5535,
67,
9794,
823,
12,
3838,
382,
28733,
5027,
13,
397,
512,
5535,
67,
9794,
823,
12,
3838,
382,
11208,
5027,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
14246,
40,
67,
9794,
823,
12,
474,
2153,
382,
12305,
5027,
16,
509,
2153,
382,
28733,
5027,
16,
1082,
202,
474,
2153,
382,
11208,
5027,
13,
288,
202,
202,
474,
1906,
4522,
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,
2463,
512,
5535,
67,
9794,
823,
12,
3838,
382,
28733,
5027,
13,
397,
512,
5535,
67,
9794,
823,
12,
3838,
382,
11208,
5027,
1769,
202,
97,
2,
-100,
-100,
-100,
-100
] |
public WritableRaster getWritableTile(int tileX, int tileY) { | public WritableRaster getWritableTile(int tileX, int tileY) { | public WritableRaster getWritableTile(int tileX, int tileY) { isTileWritable(tileX, tileY); // for exception return raster; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/BufferedImage.java/clean/core/src/classpath/java/java/awt/image/BufferedImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14505,
18637,
336,
12061,
9337,
12,
474,
4769,
60,
16,
509,
4769,
61,
13,
288,
202,
202,
291,
9337,
12061,
12,
15368,
60,
16,
4769,
61,
1769,
368,
364,
1520,
202,
202,
2463,
12553,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14505,
18637,
336,
12061,
9337,
12,
474,
4769,
60,
16,
509,
4769,
61,
13,
288,
202,
202,
291,
9337,
12061,
12,
15368,
60,
16,
4769,
61,
1769,
368,
364,
1520,
202,
202,
2463,
12553,
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
] |
} | public NodeIterator setStartNode(int node) { if (_isConstant) { _node = _startNode; return resetPosition(); } else if (_isRestartable) { if (_node == Integer.MIN_VALUE) { _node = _startNode = node; } return resetPosition(); } return this; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/615f0d43a32230b6bd0a44307b8edd385655b571/SingletonIterator.java/clean/src/org/apache/xalan/xsltc/dom/SingletonIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
3198,
18171,
907,
12,
474,
756,
13,
288,
202,
430,
261,
67,
291,
6902,
13,
288,
202,
565,
389,
2159,
273,
389,
1937,
907,
31,
202,
565,
327,
2715,
2555,
5621,
202,
97,
202,
12107,
309,
261,
67,
291,
15057,
429,
13,
288,
202,
565,
309,
261,
67,
2159,
422,
2144,
18,
6236,
67,
4051,
13,
288,
202,
202,
67,
2159,
273,
389,
1937,
907,
273,
756,
31,
202,
565,
289,
202,
565,
327,
2715,
2555,
5621,
202,
97,
202,
2463,
333,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
3198,
18171,
907,
12,
474,
756,
13,
288,
202,
430,
261,
67,
291,
6902,
13,
288,
202,
565,
389,
2159,
273,
389,
1937,
907,
31,
202,
565,
327,
2715,
2555,
5621,
202,
97,
202,
12107,
309,
261,
67,
291,
15057,
429,
13,
288,
202,
565,
309,
261,
67,
2159,
422,
2144,
18,
6236,
67,
4051,
13,
288,
202,
202,
67,
2159,
273,
389,
1937,
907,
273,
756,
31,
202,
565,
289,
202,
565,
327,
2715,
2555,
5621,
202,
97,
202,
2463,
333,
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
] | |
return null; | if (imageDescriptor != null) return imageDescriptor; if (iconName == null) return null; IExtension extension = configElement.getDeclaringExtension(); String extendingPluginId = extension.getNamespace(); imageDescriptor = AbstractUIPlugin.imageDescriptorFromPlugin( extendingPluginId, iconName); return imageDescriptor; | public ImageDescriptor getImageDescriptor() { return null; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1c101610042da91a83bafcd49960a7632871eb78/IntroDescriptor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/intro/IntroDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3421,
3187,
10567,
3187,
1435,
288,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3421,
3187,
10567,
3187,
1435,
288,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IManagedConfigElement element = ManagedBuildManager.getConfigElement(this); if (element instanceof DefaultManagedConfigElement) { toolChain.setScannerInfoCollectorElement(((DefaultManagedConfigElement)element).getConfigurationElement()); } | toolChain.setScannerConfigDiscoveryProfileId(ManagedBuildCPathEntryContainer.MM_PP_DISCOVERY_PROFILE_ID); | public void convertToProjectType() { // Create a ProjectType + Configuration + Toolchain + Builder + TargetPlatform // from the Target // The "parent" needs to have been converted already. // Do it now if necessary. ProjectType parentProj = null; if (parent != null) { parentProj = parent.getCreatedProjectType(); if (parentProj == null) { parent.convertToProjectType(); parentProj = parent.getCreatedProjectType(); } } ProjectType projectType = new ProjectType(parentProj, getId(), getName()); createdProjectType = projectType; // Set the project type attributes projectType.setIsAbstract(isAbstract); projectType.setIsTest(isTest); // Add children // Add configurations (Configuration -> ToolChain -> Builder -> TargetPlatform) Iterator iter = getConfigurationList().listIterator(); while (iter.hasNext()) { IConfigurationV2 configV2 = (IConfigurationV2)iter.next(); if (configV2.getCreatedConfig() != null) continue; // The new config's superClass needs to be the // Configuration created from the ConfigurationV2 parent... IConfiguration configSuperClass = null; IConfigurationV2 parentV2 = configV2.getParent(); if (parentV2 != null) { configSuperClass = parentV2.getCreatedConfig(); } String id = configV2.getId(); String name = configV2.getName(); IConfiguration config = projectType.createConfiguration(configSuperClass, id, name); configV2.setCreatedConfig(config); // Set the configuration attributes config.setArtifactName(getArtifactName()); config.setArtifactExtension(getArtifactExtension()); config.setCleanCommand(getCleanCommand()); config.setErrorParserIds(getErrorParserIds()); // Create the Tool-chain String subId; String subName; subId = id + ".toolchain"; //$NON-NLS-1$ subName = name + ".toolchain"; //$NON-NLS-1$ IToolChain toolChain = config.createToolChain(null, subId, subName, true); // Set the tool chain attributes toolChain.setIsAbstract(isAbstract); toolChain.setOSList(getTargetOSList()); toolChain.setArchList(getTargetArchList()); IManagedConfigElement element = ManagedBuildManager.getConfigElement(this); if (element instanceof DefaultManagedConfigElement) { toolChain.setScannerInfoCollectorElement(((DefaultManagedConfigElement)element).getConfigurationElement()); } // Create the Builder subId = id + ".builder"; //$NON-NLS-1$ subName = name + ".builder"; //$NON-NLS-1$ IBuilder builder = toolChain.createBuilder(null, subId, subName, true); // Set the builder attributes builder.setIsAbstract(isAbstract); builder.setCommand(getMakeCommand()); builder.setArguments(getMakeArguments()); if (element instanceof DefaultManagedConfigElement) { builder.setBuildFileGeneratorElement(((DefaultManagedConfigElement)element).getConfigurationElement()); } // Create the TargetPlatform subId = id + ".targetplatform"; //$NON-NLS-1$ subName = name + ".targetplatform"; //$NON-NLS-1$ ITargetPlatform targetPlatform = toolChain.createTargetPlatform(null, subId, subName, true); // Set the target platform attributes targetPlatform.setIsAbstract(isAbstract); targetPlatform.setOSList(getTargetOSList()); targetPlatform.setArchList(getTargetArchList()); targetPlatform.setBinaryParserId(getBinaryParserId()); // Handle ConfigurationV2 children (ToolReference) // The tools references fetched here are strictly local to the configuration, // so additional work is required to fetch the tool references from the target IToolReference[] configToolRefs = configV2.getToolReferences(); // Add the "local" tool references (they are direct children of the target and // its parent targets) Vector targetToolRefs = new Vector(); addTargetToolReferences(targetToolRefs); IToolReference[] toolRefs; if (targetToolRefs.size() > 0) { toolRefs = new IToolReference[targetToolRefs.size() + configToolRefs.length]; int i; for (i = 0; i < configToolRefs.length; ++i) { toolRefs[i] = configToolRefs[i]; } Iterator localToolRefIter = targetToolRefs.iterator(); while (localToolRefIter.hasNext()) { toolRefs[i++] = (IToolReference)localToolRefIter.next(); } } else { toolRefs = configToolRefs; } for (int i = 0; i < toolRefs.length; ++i) { IToolReference toolRef = toolRefs[i]; subId = id + "." + toolRef.getId(); //$NON-NLS-1$ // The ToolReference's Tool becomes the newTool's SuperClass ITool newTool = toolChain.createTool(toolRef.getTool(), subId, toolRef.getName(), true); // Set the tool attributes newTool.setToolCommand(toolRef.getRawToolCommand()); newTool.setOutputPrefix(toolRef.getRawOutputPrefix()); newTool.setOutputFlag(toolRef.getRawOutputFlag()); newTool.setOutputExtensions(toolRef.getRawOutputExtensions()); // Handle ToolReference children (OptionReference) Iterator optRefIter = toolRef.getOptionReferenceList().listIterator(); while (optRefIter.hasNext()) { OptionReference optRef = (OptionReference)optRefIter.next(); subId = id + "." + optRef.getId(); //$NON-NLS-1$ IOption newOption = newTool.createOption(optRef.getOption(), subId, optRef.getName(), true); // Set the option attributes newOption.setValue(optRef.getValue()); newOption.setValueType(optRef.getValueType()); } } // Process the tools in the configuration, adding them to the toolchain // Tools for a configuration are stored in the enclosing target, so getting // the tools for the configuration ultimately gets them from the enclosing target ITool[] configTools = configV2.getTools(); for (int i = 0; i < configTools.length; ++i) { ITool tool = configTools[i]; // If tool references encountered, they have already been processed, above, // so ignore them now if (!(tool instanceof ToolReference)) { // See if the toolchain already has a tool with a SuperClass that has an id // equal to the tool that we are considering adding to the toolchain; if so, // don't add it // This case arises when we have added a tool to the toolchain because // we processed a ToolReference (above) that references this tool // The original tool referenced in the ToolReference becomes the SuperClass // of the tool that is created because of the ToolReference boolean found = false; ITool[] tools = toolChain.getTools(); ITool currentTool; ITool supercurrentTool; for (int j = 0; j < tools.length; ++j) { currentTool = tools[j]; supercurrentTool = currentTool.getSuperClass(); if (supercurrentTool != null) { if (supercurrentTool.getId() == tool.getId()) { found = true; // If this tool was already added to the toolchain because of a // ToolReference, then we disconnent this redundant // tool from the target by setting the parent to null ((Tool)tool).setToolParent(null); break; } } } if (!found) // This tool is not in the toolchain yet, so add it to the toolchain ((ToolChain)toolChain).addTool((Tool)tool); } } // Normalize the outputextensions list by adding an empty string for each tool // which did not have an explicit output file extension specified ((ToolChain)toolChain).normalizeOutputExtensions(); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/2aae3af85f6e18eafd1daf6b3b633c0efda2967f/Target.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Target.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8137,
4109,
559,
1435,
288,
202,
202,
759,
1788,
279,
5420,
559,
397,
4659,
397,
13288,
5639,
397,
5008,
397,
5916,
8201,
3196,
202,
759,
628,
326,
5916,
9506,
202,
759,
1021,
315,
2938,
6,
4260,
358,
1240,
2118,
5970,
1818,
18,
202,
202,
759,
2256,
518,
2037,
309,
4573,
18,
202,
202,
4109,
559,
982,
626,
78,
273,
446,
31,
202,
202,
430,
261,
2938,
480,
446,
13,
288,
1082,
202,
2938,
626,
78,
273,
982,
18,
588,
6119,
4109,
559,
5621,
1082,
202,
430,
261,
2938,
626,
78,
422,
446,
13,
288,
9506,
202,
2938,
18,
6283,
774,
4109,
559,
5621,
9506,
202,
2938,
626,
78,
273,
982,
18,
588,
6119,
4109,
559,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
4109,
559,
1984,
559,
273,
394,
5420,
559,
12,
2938,
626,
78,
16,
2634,
9334,
1723,
10663,
202,
202,
4824,
4109,
559,
273,
1984,
559,
31,
202,
202,
759,
1000,
326,
1984,
618,
1677,
202,
202,
4406,
559,
18,
542,
2520,
7469,
12,
291,
7469,
1769,
202,
202,
4406,
559,
18,
542,
2520,
4709,
12,
291,
4709,
1769,
202,
202,
759,
1436,
2325,
202,
202,
759,
1436,
10459,
225,
261,
1750,
317,
13288,
3893,
317,
5008,
317,
5916,
8201,
13,
202,
202,
3198,
1400,
273,
10316,
682,
7675,
1098,
3198,
5621,
202,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
1082,
202,
45,
1750,
58,
22,
642,
58,
22,
273,
261,
45,
1750,
58,
22,
13,
2165,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8137,
4109,
559,
1435,
288,
202,
202,
759,
1788,
279,
5420,
559,
397,
4659,
397,
13288,
5639,
397,
5008,
397,
5916,
8201,
3196,
202,
759,
628,
326,
5916,
9506,
202,
759,
1021,
315,
2938,
6,
4260,
358,
1240,
2118,
5970,
1818,
18,
202,
202,
759,
2256,
518,
2037,
309,
4573,
18,
202,
202,
4109,
559,
982,
626,
78,
273,
446,
31,
202,
202,
430,
261,
2938,
480,
446,
13,
288,
1082,
202,
2938,
626,
78,
273,
982,
18,
588,
6119,
4109,
559,
5621,
1082,
202,
430,
261,
2938,
626,
78,
422,
446,
13,
288,
9506,
202,
2938,
18,
6283,
774,
4109,
559,
5621,
9506,
202,
2938,
626,
78,
273,
982,
18,
588,
6119,
4109,
559,
2
] |
try { new ProjectXMLHelper(configFile, "missingprop"); fail("A missing property should cause an exception!"); } catch (CruiseControlException expected) { | if (ProjectXMLHelper.FAIL_UPON_MISSING_PROPERTY) { try { new ProjectXMLHelper(configFile, "missingprop"); fail("A missing property should cause an exception!"); } catch (CruiseControlException expected) { } } else { try { new ProjectXMLHelper(configFile, "missingprop"); } catch (CruiseControlException unexpected) { fail(unexpected.getMessage()); } | public void testMissingProperty() { try { new ProjectXMLHelper(configFile, "missingprop"); fail("A missing property should cause an exception!"); } catch (CruiseControlException expected) { } } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/20af7cbe5fd59b678ee8e852cdfb64c04b7aedef/ProjectXMLHelperTest.java/buggy/main/test/net/sourceforge/cruisecontrol/ProjectXMLHelperTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4841,
1396,
1435,
288,
3639,
775,
288,
5411,
394,
5420,
4201,
2276,
12,
1425,
812,
16,
315,
7337,
5986,
8863,
5411,
2321,
2932,
37,
3315,
1272,
1410,
4620,
392,
1520,
4442,
1769,
3639,
289,
1044,
261,
39,
8653,
784,
3367,
503,
2665,
13,
288,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
1842,
4841,
1396,
1435,
288,
3639,
775,
288,
5411,
394,
5420,
4201,
2276,
12,
1425,
812,
16,
315,
7337,
5986,
8863,
5411,
2321,
2932,
37,
3315,
1272,
1410,
4620,
392,
1520,
4442,
1769,
3639,
289,
1044,
261,
39,
8653,
784,
3367,
503,
2665,
13,
288,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
LOG.info("callkey is : " + callkey); | Log.debug(LOG, "callkey is : ", callkey); | private void processInvocations( Vector invocations, RCC[] rccArray, CallID[] calls, double[] callFractions ) throws XMLException { CallID c; double fraction; IXMLElement invocation; int callkey = rccArray.length; for (int i = 0; i < invocations.size(); i++) { invocation = (IXMLElement)invocations.elementAt(i); fraction = makeNewCallFraction(invocation); // if fraction != -1 then we have a callfraction to process as well (not a proxy call) c = makeNewCallID(invocation, rccArray, (fraction != -1) ? callkey++ : -1); LOG.info("callkey is : " + callkey); // we use getKey() to place the callID into the index. // quite simply, that is what the CallGraph constructor is expecting, that // a callID's key will match the parent RCC key, or else it will be a proxy call. callFractions[c.getKey()] = (fraction != -1) ? fraction : 1; calls[c.getKey()] = c; //System.out.println("CALLID: " + calls[c.getKey()]); } } | 4522 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4522/216a16fc18e64729ca33d8b3839f0baca871a7ee/ProphitParserLoader.java/buggy/prophit/java/orbit/parsers/ProphitParserLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1207,
3605,
17448,
12,
5589,
27849,
16,
534,
6743,
8526,
436,
952,
1076,
16,
3049,
734,
8526,
4097,
16,
1645,
8526,
745,
13724,
87,
262,
1216,
3167,
503,
202,
95,
202,
202,
1477,
734,
276,
31,
202,
202,
9056,
8330,
31,
202,
202,
12507,
11155,
9495,
31,
202,
202,
474,
745,
856,
273,
436,
952,
1076,
18,
2469,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
27849,
18,
1467,
5621,
277,
27245,
202,
202,
95,
1082,
202,
5768,
4431,
273,
261,
12507,
11155,
13,
5768,
17448,
18,
2956,
861,
12,
77,
1769,
1082,
202,
16744,
273,
1221,
1908,
1477,
13724,
12,
5768,
4431,
1769,
1082,
202,
759,
309,
8330,
480,
300,
21,
1508,
732,
1240,
279,
745,
16744,
358,
1207,
487,
5492,
261,
902,
279,
2889,
745,
13,
1082,
202,
71,
273,
1221,
1908,
1477,
734,
12,
5768,
4431,
16,
436,
952,
1076,
16,
261,
16744,
480,
300,
21,
13,
692,
745,
856,
9904,
294,
300,
21,
1769,
202,
1377,
2018,
18,
1376,
2932,
1991,
856,
353,
294,
315,
397,
745,
856,
1769,
1082,
202,
759,
732,
999,
3579,
1435,
358,
3166,
326,
745,
734,
1368,
326,
770,
18,
1875,
202,
759,
25102,
8616,
16,
716,
353,
4121,
326,
3049,
4137,
3885,
353,
17012,
16,
716,
1875,
202,
759,
279,
745,
734,
1807,
498,
903,
845,
326,
982,
534,
6743,
498,
16,
578,
469,
518,
903,
506,
279,
2889,
745,
18,
1082,
202,
1991,
13724,
87,
63,
71,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1207,
3605,
17448,
12,
5589,
27849,
16,
534,
6743,
8526,
436,
952,
1076,
16,
3049,
734,
8526,
4097,
16,
1645,
8526,
745,
13724,
87,
262,
1216,
3167,
503,
202,
95,
202,
202,
1477,
734,
276,
31,
202,
202,
9056,
8330,
31,
202,
202,
12507,
11155,
9495,
31,
202,
202,
474,
745,
856,
273,
436,
952,
1076,
18,
2469,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
27849,
18,
1467,
5621,
277,
27245,
202,
202,
95,
1082,
202,
5768,
4431,
273,
261,
12507,
11155,
13,
5768,
17448,
18,
2956,
861,
12,
77,
1769,
1082,
202,
16744,
273,
1221,
1908,
1477,
13724,
12,
5768,
4431,
1769,
1082,
202,
759,
309,
8330,
480,
300,
2
] |
_content.add(_south, BorderLayout.SOUTH); | _content.add(_south, BorderLayout.SOUTH); | public TablePanelUMLClassDiagram() { super("UMLClassDiagram"); _south.setLayout(new GridLayout(1, 2, 5, 5)); _sp2 = new JScrollPane(_table2, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); _sp3 = new JScrollPane(_table3, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); _sp1.setPreferredSize(new Dimension(300, 300)); _sp1.setSize(new Dimension(300, 300)); _sp2.setPreferredSize(new Dimension(300, 300)); _sp2.setSize(new Dimension(300, 300)); _sp3.setPreferredSize(new Dimension(300, 300)); _sp3.setSize(new Dimension(300, 300)); _content.setPreferredSize(new Dimension(300, 600)); _content.setSize(new Dimension(300, 600)); JPanel sp2W = new JPanel(); sp2W.setLayout(new BorderLayout()); sp2W.add(new JLabel("Operations of selected class:"), BorderLayout.NORTH); sp2W.add(_sp2, BorderLayout.CENTER); JPanel sp3W = new JPanel(); sp3W.setLayout(new BorderLayout()); sp3W.add(new JLabel("Attributes of selected class:"), BorderLayout.NORTH); sp3W.add(_sp3, BorderLayout.CENTER); _south.add(sp3W); _south.add(sp2W); _content.add(_south, BorderLayout.SOUTH); Font labelFont = MetalLookAndFeel.getSubTextFont(); _table2.setFont(labelFont); _table3.setFont(labelFont); setEditors(_table2); setEditors(_table3); _table2.getSelectionModel().addListSelectionListener(this); _table3.getSelectionModel().addListSelectionListener(this); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/TablePanelUMLClassDiagram.java/clean/src_new/org/argouml/uml/diagram/static_structure/ui/TablePanelUMLClassDiagram.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3555,
5537,
57,
1495,
797,
14058,
1940,
1435,
288,
565,
2240,
2932,
57,
1495,
797,
14058,
1940,
8863,
565,
389,
87,
15347,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
21,
16,
576,
16,
1381,
16,
1381,
10019,
565,
389,
1752,
22,
273,
394,
804,
26360,
24899,
2121,
22,
16,
9506,
282,
804,
26360,
18,
21654,
10109,
67,
2312,
14555,
21908,
67,
1013,
29295,
16,
9506,
282,
804,
26360,
18,
44,
20344,
67,
2312,
14555,
21908,
67,
3033,
67,
5407,
22832,
1769,
565,
389,
1752,
23,
273,
394,
804,
26360,
24899,
2121,
23,
16,
9506,
282,
804,
26360,
18,
21654,
10109,
67,
2312,
14555,
21908,
67,
1013,
29295,
16,
9506,
282,
804,
26360,
18,
44,
20344,
67,
2312,
14555,
21908,
67,
3033,
67,
5407,
22832,
1769,
565,
389,
1752,
21,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
19249,
16,
11631,
10019,
565,
389,
1752,
21,
18,
542,
1225,
12,
2704,
13037,
12,
19249,
16,
11631,
10019,
565,
389,
1752,
22,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
19249,
16,
11631,
10019,
565,
389,
1752,
22,
18,
542,
1225,
12,
2704,
13037,
12,
19249,
16,
11631,
10019,
565,
389,
1752,
23,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
19249,
16,
11631,
10019,
565,
389,
1752,
23,
18,
542,
1225,
12,
2704,
13037,
12,
19249,
16,
11631,
10019,
565,
389,
1745,
18,
542,
16028,
1225,
12,
2704,
13037,
12,
19249,
16,
14707,
10019,
565,
389,
1745,
18,
542,
1225,
12,
2704,
13037,
12,
19249,
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,
3555,
5537,
57,
1495,
797,
14058,
1940,
1435,
288,
565,
2240,
2932,
57,
1495,
797,
14058,
1940,
8863,
565,
389,
87,
15347,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
21,
16,
576,
16,
1381,
16,
1381,
10019,
565,
389,
1752,
22,
273,
394,
804,
26360,
24899,
2121,
22,
16,
9506,
282,
804,
26360,
18,
21654,
10109,
67,
2312,
14555,
21908,
67,
1013,
29295,
16,
9506,
282,
804,
26360,
18,
44,
20344,
67,
2312,
14555,
21908,
67,
3033,
67,
5407,
22832,
1769,
565,
389,
1752,
23,
273,
394,
804,
26360,
24899,
2121,
23,
16,
9506,
282,
804,
26360,
18,
21654,
10109,
67,
2312,
14555,
21908,
67,
1013,
29295,
16,
9506,
282,
804,
26360,
18,
44,
20344,
67,
2
] |
SenderJob sender = createDefaultSenderJob(testTopicName); sender.setNumMessages(10000); sender.setMsgSize(1024); | warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.DUPS_OK_ACKNOWLEDGE); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setMsgSize(standardMessageSize); | public void testTopic5() { log.info("Running test Topic5"); SenderJob sender = createDefaultSenderJob(testTopicName); sender.setNumMessages(10000); sender.setMsgSize(1024); sender.setMf(new BytesMessageMessageFactory()); sender.setTransacted(false); sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT); ReceiverJob receiver = createDefaultReceiverJob(testTopicName); receiver.setAckMode(Session.DUPS_OK_ACKNOWLEDGE); receiver.setTransacted(false); JobTimings[] results = runJobs(new Job[] {sender, receiver}); /* * NB. * When we calculating the total time taken from first send to last receive, there is some * error involved due to the differences in network latency and other remoting overhead * when sending the jobs to be executed on potentially different remote machines. * We make the assumption that this this difference is very small compared with time taken * to run the tests as to be negligible. */ long totalTimeTaken = results[1].getTestTime() + results[1].getInitTime() - results[0].getInitTime(); storeResult("Topic5", totalTimeTaken); log.info("Test Topic5 finished"); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/96f752d06dba37742f7716ee54f31f1982df763e/PerfRunner.java/clean/tests/src/org/jboss/test/messaging/jms/perf/PerfRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6657,
25,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
11789,
25,
8863,
5411,
15044,
2278,
5793,
273,
27346,
12021,
2278,
12,
3813,
6657,
461,
1769,
1377,
5793,
18,
542,
2578,
5058,
12,
23899,
1769,
1377,
5793,
18,
542,
3332,
1225,
12,
2163,
3247,
1769,
1377,
5793,
18,
542,
49,
74,
12,
2704,
5985,
1079,
1079,
1733,
10663,
1377,
5793,
18,
542,
1429,
25487,
12,
5743,
1769,
1377,
5793,
18,
542,
8909,
2309,
12,
8909,
2309,
18,
3993,
67,
3194,
28175,
1769,
5411,
31020,
2278,
5971,
273,
27346,
12952,
2278,
12,
3813,
6657,
461,
1769,
5411,
5971,
18,
542,
11931,
2309,
12,
2157,
18,
30387,
55,
67,
3141,
67,
3649,
27091,
6687,
7113,
1769,
1377,
5971,
18,
542,
1429,
25487,
12,
5743,
1769,
5411,
3956,
10178,
899,
8526,
1686,
273,
1086,
7276,
12,
2704,
3956,
8526,
288,
15330,
16,
5971,
22938,
5411,
1748,
4202,
380,
20096,
18,
4202,
380,
5203,
732,
21046,
326,
2078,
813,
9830,
628,
1122,
1366,
358,
1142,
6798,
16,
1915,
353,
2690,
4202,
380,
555,
24589,
6541,
358,
326,
16440,
316,
2483,
19518,
471,
1308,
849,
17128,
23188,
4202,
380,
1347,
5431,
326,
6550,
358,
506,
7120,
603,
13935,
3775,
2632,
15942,
18,
4202,
380,
1660,
1221,
326,
24743,
716,
333,
333,
7114,
353,
8572,
5264,
15843,
598,
813,
9830,
4202,
380,
358,
1086,
326,
7434,
487,
358,
506,
4251,
80,
16057,
18,
4202,
1195,
5411,
1525,
2078,
950,
27486,
273,
1686,
63,
21,
8009,
588,
4709,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6657,
25,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
11789,
25,
8863,
5411,
15044,
2278,
5793,
273,
27346,
12021,
2278,
12,
3813,
6657,
461,
1769,
1377,
5793,
18,
542,
2578,
5058,
12,
23899,
1769,
1377,
5793,
18,
542,
3332,
1225,
12,
2163,
3247,
1769,
1377,
5793,
18,
542,
49,
74,
12,
2704,
5985,
1079,
1079,
1733,
10663,
1377,
5793,
18,
542,
1429,
25487,
12,
5743,
1769,
1377,
5793,
18,
542,
8909,
2309,
12,
8909,
2309,
18,
3993,
67,
3194,
28175,
1769,
5411,
31020,
2278,
5971,
273,
27346,
12952,
2278,
12,
3813,
6657,
461,
1769,
5411,
5971,
18,
542,
11931,
2309,
12,
2157,
18,
30387,
55,
67,
3141,
67,
3649,
27091,
6687,
7113,
2
] |
} catch (RuntimeException ex) { | } catch (RuntimeException ex) { | public boolean parse(boolean complete) throws XNIException, IOException { // // reset and configure pipeline and set InputSource. if (fInputSource !=null) { try { fVersionDetector.reset(this); reset(); short version = fVersionDetector.determineDocVersion(fInputSource); if (version == Constants.XML_VERSION_1_1){ // XML 1.1 pipeline configureXML11Pipeline(); } // resets and sets the pipeline. fVersionDetector.startDocumentParsing((XMLEntityHandler)fScanner, version); fInputSource = null; } catch (XNIException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (IOException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (RuntimeException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (Exception ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw new XNIException(ex); } } try { return fScanner.scanDocument(complete); } catch (XNIException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (IOException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (RuntimeException ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw ex; } catch (Exception ex) { if (PRINT_EXCEPTION_STACK_TRACE) ex.printStackTrace(); throw new XNIException(ex); } } // parse(boolean):boolean | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/44d8a61f164c932e3dc2a95d99434a589c1eec56/XML11Configuration.java/clean/src/org/apache/xerces/parsers/XML11Configuration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1109,
12,
6494,
3912,
13,
1216,
1139,
50,
45,
503,
16,
1860,
288,
7734,
368,
3639,
368,
2715,
471,
5068,
5873,
471,
444,
23699,
18,
3639,
309,
261,
74,
1210,
1830,
480,
2011,
13,
288,
5411,
775,
288,
7734,
284,
1444,
12594,
18,
6208,
12,
2211,
1769,
7734,
2715,
5621,
7734,
3025,
1177,
273,
284,
1444,
12594,
18,
24661,
1759,
1444,
12,
74,
1210,
1830,
1769,
7734,
309,
261,
1589,
422,
5245,
18,
4201,
67,
5757,
67,
21,
67,
21,
15329,
10792,
368,
3167,
404,
18,
21,
5873,
10792,
5068,
4201,
2499,
8798,
5621,
7734,
289,
7734,
368,
20063,
471,
1678,
326,
5873,
18,
7734,
284,
1444,
12594,
18,
1937,
2519,
13963,
12443,
60,
9687,
1628,
1503,
13,
74,
11338,
16,
1177,
1769,
7734,
284,
1210,
1830,
273,
446,
31,
5411,
289,
2398,
1044,
261,
60,
50,
45,
503,
431,
13,
288,
7734,
309,
261,
19350,
67,
12658,
67,
21971,
67,
23827,
13,
10792,
431,
18,
1188,
6332,
5621,
7734,
604,
431,
31,
5411,
289,
2398,
1044,
261,
14106,
431,
13,
288,
7734,
309,
261,
19350,
67,
12658,
67,
21971,
67,
23827,
13,
10792,
431,
18,
1188,
6332,
5621,
7734,
604,
431,
31,
5411,
289,
2398,
1044,
261,
11949,
431,
13,
288,
7734,
309,
261,
19350,
67,
12658,
67,
21971,
67,
23827,
13,
10792,
431,
18,
1188,
6332,
5621,
7734,
604,
431,
31,
5411,
289,
5411,
1044,
261,
503,
431,
13,
288,
7734,
309,
261,
19350,
67,
12658,
67,
21971,
67,
23827,
13,
10792,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1109,
12,
6494,
3912,
13,
1216,
1139,
50,
45,
503,
16,
1860,
288,
7734,
368,
3639,
368,
2715,
471,
5068,
5873,
471,
444,
23699,
18,
3639,
309,
261,
74,
1210,
1830,
480,
2011,
13,
288,
5411,
775,
288,
7734,
284,
1444,
12594,
18,
6208,
12,
2211,
1769,
7734,
2715,
5621,
7734,
3025,
1177,
273,
284,
1444,
12594,
18,
24661,
1759,
1444,
12,
74,
1210,
1830,
1769,
7734,
309,
261,
1589,
422,
5245,
18,
4201,
67,
5757,
67,
21,
67,
21,
15329,
10792,
368,
3167,
404,
18,
21,
5873,
10792,
5068,
4201,
2499,
8798,
5621,
7734,
289,
7734,
368,
20063,
471,
1678,
326,
5873,
18,
7734,
284,
1444,
12594,
18,
1937,
2519,
13963,
12443,
60,
9687,
1628,
2
] |
parser = (DOMParser)this.manager.lookup(DOMParser.ROLE); | public SourceProperty getSourceProperty (String namespace, String name) throws SourceException { DOMParser parser = null; String xml = ""; Enumeration props= null; org.apache.webdav.lib.Property prop = null; String propValue = null; try { parser = (DOMParser)this.manager.lookup(DOMParser.ROLE); Enumeration responses = this.resource.propfindMethod(0); while (responses.hasMoreElements()) { ResponseEntity response = (ResponseEntity)responses.nextElement(); props = response.getProperties(); final String quote = "\""; while (props.hasMoreElements()) { prop = (Property) props.nextElement(); if (namespace.equals(prop.getNamespaceURI()) && name.equals(prop.getLocalName())){ String localName = prop.getLocalName(); String namespaceURI = prop.getNamespaceURI(); String pre = "<"+localName+" xmlns="+quote+namespaceURI+quote+" >"; String post = "</"+localName+" >"; propValue = prop.getPropertyAsString(); xml = pre+propValue+post; StringReader reader = new StringReader(xml); Document doc = parser.parseDocument(new InputSource(reader)); return new SourceProperty(doc.getDocumentElement()); } } } } catch (Exception e) { throw new SourceException("Could not parse property "+xml, e); } finally { this.manager.release((Component) parser); } return null; } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/f846d94a70b5dd17acb401e1af71a99d6fd0f53e/WebDAVSource.java/clean/src/blocks/webdav/java/org/apache/cocoon/components/source/impl/WebDAVSource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4998,
1396,
7889,
1396,
261,
780,
1981,
16,
514,
508,
13,
565,
1216,
4998,
503,
288,
1850,
4703,
2678,
2082,
273,
446,
31,
1850,
514,
2025,
273,
1408,
31,
1850,
13864,
3458,
33,
446,
31,
1850,
2358,
18,
19211,
18,
4875,
20752,
18,
2941,
18,
1396,
2270,
273,
446,
31,
1850,
514,
19432,
273,
446,
31,
1850,
775,
288,
21821,
13864,
7220,
273,
333,
18,
3146,
18,
5986,
4720,
1305,
12,
20,
1769,
2868,
1323,
261,
11822,
18,
5332,
7417,
3471,
10756,
288,
5375,
2306,
1943,
766,
273,
261,
1064,
1943,
13,
11822,
18,
4285,
1046,
5621,
5375,
3458,
273,
766,
18,
588,
2297,
5621,
5375,
727,
514,
3862,
273,
11143,
31,
5375,
1323,
261,
9693,
18,
5332,
7417,
3471,
10756,
288,
8227,
2270,
273,
261,
1396,
13,
3458,
18,
4285,
1046,
5621,
8227,
309,
261,
4937,
18,
14963,
12,
5986,
18,
588,
3402,
3098,
10756,
12900,
597,
508,
18,
14963,
12,
5986,
18,
588,
29583,
1435,
3719,
95,
12900,
514,
11927,
273,
2270,
18,
588,
29583,
5621,
12900,
514,
19421,
273,
2270,
18,
588,
3402,
3098,
5621,
12900,
514,
675,
273,
18165,
15,
3729,
461,
9078,
12302,
1546,
15,
6889,
15,
4937,
3098,
15,
6889,
9078,
405,
14432,
12900,
514,
1603,
273,
6823,
6,
15,
3729,
461,
9078,
405,
14432,
12900,
19432,
273,
2270,
18,
588,
1396,
8092,
5621,
12900,
2025,
273,
675,
15,
5986,
620,
15,
2767,
31,
12900,
26227,
2949,
273,
394,
26227,
12,
2902,
1769,
12900,
4319,
997,
273,
2082,
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,
4998,
1396,
7889,
1396,
261,
780,
1981,
16,
514,
508,
13,
565,
1216,
4998,
503,
288,
1850,
4703,
2678,
2082,
273,
446,
31,
1850,
514,
2025,
273,
1408,
31,
1850,
13864,
3458,
33,
446,
31,
1850,
2358,
18,
19211,
18,
4875,
20752,
18,
2941,
18,
1396,
2270,
273,
446,
31,
1850,
514,
19432,
273,
446,
31,
1850,
775,
288,
21821,
13864,
7220,
273,
333,
18,
3146,
18,
5986,
4720,
1305,
12,
20,
1769,
2868,
1323,
261,
11822,
18,
5332,
7417,
3471,
10756,
288,
5375,
2306,
1943,
766,
273,
261,
1064,
1943,
13,
11822,
18,
4285,
1046,
5621,
5375,
3458,
273,
766,
18,
588,
2297,
5621,
5375,
727,
514,
3862,
273,
11143,
31,
5375,
1323,
261,
9693,
18,
2
] | |
_findResultsManagers = new LinkedList<SubsetRegionManager<DocumentRegion>>(); for (RegionManager<DocumentRegion> rm: AbstractGlobalModel.this.getFindResultsManagers ()) { | _findResultsManagers = new LinkedList<SubsetRegionManager<MovingDocumentRegion>>(); for (RegionManager<MovingDocumentRegion> rm: AbstractGlobalModel.this.getFindResultsManagers ()) { | public void init() { _id = ID_COUNTER++; try {// System.out.println("about to make reconstructor " + this); DDReconstructor ddr = makeReconstructor();// System.out.println("finished making reconstructor " + this); _cacheAdapter = _cache.register(this, ddr); } catch(IllegalStateException e) { throw new UnexpectedException(e); } _breakpointManager = new SubsetRegionManager<Breakpoint>(AbstractGlobalModel.this.getBreakpointManager()); _bookmarkManager = new SubsetRegionManager<DocumentRegion>(AbstractGlobalModel.this.getBookmarkManager()); _findResultsManagers = new LinkedList<SubsetRegionManager<DocumentRegion>>(); for (RegionManager<DocumentRegion> rm: AbstractGlobalModel.this.getFindResultsManagers ()) { addFindResultsManager(rm); } _browserHistoryManager = new SubsetRegionManager<DocumentRegion>(AbstractGlobalModel.this.getBrowserHistoryManager()); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e38424ed07a882ee616fdf02e69d28f304b8294c/AbstractGlobalModel.java/clean/drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1435,
288,
1377,
389,
350,
273,
1599,
67,
7240,
654,
9904,
31,
5411,
775,
288,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
21071,
358,
1221,
283,
12316,
315,
397,
333,
1769,
3639,
25177,
426,
12316,
302,
3069,
273,
1221,
426,
12316,
5621,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
13527,
10480,
283,
12316,
315,
397,
333,
1769,
3639,
389,
2493,
4216,
273,
389,
2493,
18,
4861,
12,
2211,
16,
302,
3069,
1769,
1377,
289,
1044,
12,
12195,
5060,
425,
13,
288,
604,
394,
9649,
503,
12,
73,
1769,
289,
1377,
389,
8820,
1153,
1318,
273,
394,
2592,
542,
5165,
1318,
32,
20552,
34,
12,
7469,
5160,
1488,
18,
2211,
18,
588,
20552,
1318,
10663,
1377,
389,
3618,
3355,
1318,
273,
394,
2592,
542,
5165,
1318,
32,
2519,
5165,
34,
12,
7469,
5160,
1488,
18,
2211,
18,
588,
22966,
1318,
10663,
1377,
389,
4720,
3447,
17570,
273,
394,
10688,
32,
20315,
5165,
1318,
32,
2519,
5165,
9778,
5621,
1377,
364,
261,
5165,
1318,
32,
2519,
5165,
34,
6692,
30,
4115,
5160,
1488,
18,
2211,
18,
588,
3125,
3447,
17570,
1832,
13,
288,
3639,
527,
3125,
3447,
1318,
12,
8864,
1769,
1377,
289,
1377,
389,
11213,
5623,
1318,
273,
394,
2592,
542,
5165,
1318,
32,
2519,
5165,
34,
12,
7469,
5160,
1488,
18,
2211,
18,
588,
9132,
5623,
1318,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1435,
288,
1377,
389,
350,
273,
1599,
67,
7240,
654,
9904,
31,
5411,
775,
288,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
21071,
358,
1221,
283,
12316,
315,
397,
333,
1769,
3639,
25177,
426,
12316,
302,
3069,
273,
1221,
426,
12316,
5621,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
13527,
10480,
283,
12316,
315,
397,
333,
1769,
3639,
389,
2493,
4216,
273,
389,
2493,
18,
4861,
12,
2211,
16,
302,
3069,
1769,
1377,
289,
1044,
12,
12195,
5060,
425,
13,
288,
604,
394,
9649,
503,
12,
73,
1769,
289,
1377,
389,
8820,
1153,
1318,
273,
394,
2592,
542,
5165,
1318,
32,
20552,
34,
12,
7469,
5160,
1488,
18,
2211,
18,
588,
20552,
1318,
2
] |
enumVal=simpleTypeName; | enumVal = localpart; | fFacetInfo traverseFacets(Element content, Object[] contentAttrs, String simpleTypeName, DatatypeValidator baseValidator, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { fFacetInfo fi = new fFacetInfo(); Hashtable fFacetData = new Hashtable(10); short flags = 0; // flag facets that have fixed="true" int numEnumerationLiterals = 0; Vector enumData = new Vector(); content = checkContent(content , contentAttrs, schemaDoc); String facet; int numFacets=0; while (content != null) { // General Attribute Checking Object[] attrs = fAttrChecker.checkAttributes(content, false, schemaDoc); numFacets++; facet = DOMUtil.getLocalName(content); if (facet.equals(SchemaSymbols.ELT_ENUMERATION)) { numEnumerationLiterals++; String enumVal = DOMUtil.getAttrValue(content, SchemaSymbols.ATT_VALUE); String localName; if (baseValidator instanceof NOTATIONDatatypeValidator) { fAttrChecker.checkAttributes(content, false, schemaDoc); String prefix = fSchemaHandler.EMPTY_STRING; String localpart = enumVal; int colonptr = enumVal.indexOf(":"); if (colonptr > 0) { prefix = enumVal.substring(0,colonptr); localpart = enumVal.substring(colonptr+1); } String uriStr = schemaDoc.fNamespaceSupport.getURI(prefix); fQName.setValues(prefix, localpart, null, uriStr ); XSNotationDecl notation = (XSNotationDecl)fSchemaHandler.getGlobalDecl(schemaDoc, XSDHandler.NOTATION_TYPE , fQName); if (notation == null) { reportGenericSchemaError("Notation '" + localpart + "' not found in the grammar "+ uriStr); } enumVal=simpleTypeName; } enumData.addElement(enumVal); checkContent(DOMUtil.getFirstChildElement( content ), attrs, schemaDoc); } else if (facet.equals(SchemaSymbols.ELT_ANNOTATION) || facet.equals(SchemaSymbols.ELT_SIMPLETYPE)) { //REVISIT: Object[] args = {simpleTypeName}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "ListUnionRestrictionError", args, XMLErrorReporter.SEVERITY_ERROR); } else if (facet.equals(SchemaSymbols.ELT_PATTERN)) { if (fPattern == null) { //REVISIT: size of buffer fPattern = new StringBuffer (DOMUtil.getAttrValue( content, SchemaSymbols.ATT_VALUE )); } else { // --------------------------------------------- //datatypes: 5.2.4 pattern: src-multiple-pattern // --------------------------------------------- fPattern.append("|"); fPattern.append(DOMUtil.getAttrValue(content, SchemaSymbols.ATT_VALUE )); checkContent(DOMUtil.getFirstChildElement( content ), attrs, schemaDoc); } } else { if (fFacetData.containsKey(facet)) fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "DatatypeError", new Object[]{"The facet '" + facet + "' is defined more than once."}, XMLErrorReporter.SEVERITY_ERROR); int facetType = 0; if (facet.equals(SchemaSymbols.ELT_MINLENGTH)) { facetType= DatatypeValidator.FACET_MINLENGTH; } else if (facet.equals(SchemaSymbols.ELT_MAXLENGTH)) { facetType= DatatypeValidator.FACET_MAXLENGTH; } else if (facet.equals(SchemaSymbols.ELT_MAXEXCLUSIVE)) { facetType= DatatypeValidator.FACET_MAXEXCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_MAXINCLUSIVE)) { facetType= DatatypeValidator.FACET_MAXINCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_MINEXCLUSIVE)) { facetType= DatatypeValidator.FACET_MINEXCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_MININCLUSIVE)) { facetType= DatatypeValidator.FACET_MININCLUSIVE; } else if (facet.equals(SchemaSymbols.ELT_TOTALDIGITS)) { facetType= DatatypeValidator.FACET_TOTALDIGITS; } else if (facet.equals(SchemaSymbols.ELT_FRACTIONDIGITS)) { facetType = DatatypeValidator.FACET_FRACTIONDIGITS; } else if (facet.equals(SchemaSymbols.ELT_WHITESPACE)) { if (baseValidator instanceof StringDatatypeValidator) facetType= DatatypeValidator.FACET_WHITESPACE; } else if (facet.equals(SchemaSymbols.ELT_LENGTH)) { } else { break; // a non-facet } if (content.getAttribute( SchemaSymbols.ATT_FIXED).equals(SchemaSymbols.ATTVAL_TRUE) || content.getAttribute( SchemaSymbols.ATT_FIXED).equals(SchemaSymbols.ATTVAL_TRUE_1)) { flags |= facetType; } fFacetData.put(facet,content.getAttribute( SchemaSymbols.ATT_VALUE )); checkContent(DOMUtil.getFirstChildElement( content ), attrs, schemaDoc); } // REVISIT: when to return the array fAttrChecker.returnAttrArray (attrs, schemaDoc); content = DOMUtil.getNextSiblingElement(content); } if (numEnumerationLiterals > 0) { fFacetData.put(SchemaSymbols.ELT_ENUMERATION, enumData); } if (fPattern !=null) { fFacetData.put(SchemaSymbols.ELT_PATTERN, fPattern.toString()); } if (flags != 0) { fFacetData.put(DatatypeValidator.FACET_FIXED, new Short(flags)); } fPattern = null; fi.facetdata = fFacetData; fi.nodeAfterFacets = content; return fi; } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/62199d16dbb5ba791526ad4c3ec174e194f65c85/XSDAbstractTraverser.java/buggy/src/org/apache/xerces/impl/v2/XSDAbstractTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
284,
11137,
966,
10080,
6645,
2413,
12,
1046,
913,
16,
1033,
8526,
913,
8262,
16,
514,
4143,
7947,
16,
17311,
21168,
5126,
1026,
5126,
16,
1139,
55,
2519,
966,
1963,
1759,
16,
17311,
4611,
18576,
6473,
13,
288,
3639,
284,
11137,
966,
7314,
273,
394,
284,
11137,
966,
5621,
3639,
18559,
284,
11137,
751,
273,
394,
18559,
12,
2163,
1769,
3639,
3025,
2943,
273,
374,
31,
368,
2982,
21681,
716,
1240,
5499,
1546,
3767,
6,
3639,
509,
818,
21847,
48,
11235,
273,
374,
31,
3639,
5589,
2792,
751,
225,
273,
394,
5589,
5621,
3639,
913,
273,
866,
1350,
12,
1745,
269,
913,
8262,
16,
1963,
1759,
1769,
3639,
514,
11082,
31,
3639,
509,
818,
6645,
2413,
33,
20,
31,
3639,
1323,
261,
1745,
480,
446,
13,
288,
5411,
368,
9544,
3601,
24471,
5411,
1033,
8526,
3422,
273,
284,
3843,
8847,
18,
1893,
2498,
12,
1745,
16,
629,
16,
1963,
1759,
1769,
5411,
818,
6645,
2413,
9904,
31,
5411,
11082,
273,
4703,
1304,
18,
588,
29583,
12,
1745,
1769,
5411,
309,
261,
21568,
18,
14963,
12,
3078,
14821,
18,
2247,
56,
67,
16509,
654,
2689,
3719,
288,
7734,
818,
21847,
48,
11235,
9904,
31,
7734,
514,
2792,
3053,
273,
225,
4703,
1304,
18,
588,
3843,
620,
12,
1745,
16,
4611,
14821,
18,
789,
56,
67,
4051,
1769,
7734,
514,
11927,
31,
7734,
309,
261,
1969,
5126,
1276,
4269,
2689,
20228,
5126,
13,
288,
10792,
284,
3843,
8847,
18,
1893,
2498,
12,
1745,
16,
629,
16,
1963,
1759,
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,
284,
11137,
966,
10080,
6645,
2413,
12,
1046,
913,
16,
1033,
8526,
913,
8262,
16,
514,
4143,
7947,
16,
17311,
21168,
5126,
1026,
5126,
16,
1139,
55,
2519,
966,
1963,
1759,
16,
17311,
4611,
18576,
6473,
13,
288,
3639,
284,
11137,
966,
7314,
273,
394,
284,
11137,
966,
5621,
3639,
18559,
284,
11137,
751,
273,
394,
18559,
12,
2163,
1769,
3639,
3025,
2943,
273,
374,
31,
368,
2982,
21681,
716,
1240,
5499,
1546,
3767,
6,
3639,
509,
818,
21847,
48,
11235,
273,
374,
31,
3639,
5589,
2792,
751,
225,
273,
394,
5589,
5621,
3639,
913,
273,
866,
1350,
12,
1745,
269,
913,
8262,
16,
1963,
1759,
1769,
3639,
514,
11082,
31,
3639,
509,
818,
6645,
2413,
33,
20,
2
] |
if (m != null && m.length > 0) { int i; for (i = 0; i < m.length; i++) { jcCon.addStatement(new JCodeStatement("registerMethod( \"" + m[i].getName() + "\", " + i + ");")); cs = ss.newCase(new JExpression(new JCodeStatement("" + i))); cs.addStatement(new JCodeStatement(m[i].getName() + "(input,output);")); addMethod(m[i], jc); } } jg.generate(p); | public void generate() throws Exception { _vtc.clear(); if (!isSimpleIDL() && !isClassARMIRemote(_riClass)) { error("Class '" + _riClass.getName() + "' must be an instance of either java.rmi.Remote or of a subclass."); } ClassLoader cl = _riClass.getClassLoader(); if (cl == null) { cl = ClassLoader.getSystemClassLoader(); } String fullGenDir = _genOptions.getGenDir(); JavaGenerator jg = new JavaGenerator(_genOptions); String className = _riClass.getName(); JPackage p = new JPackage(""); if (_riClass.getPackage() != null) { p = new JPackage(_riClass.getPackage().getName()); className = className.substring(className.lastIndexOf(".") + 1); } JClass jc = p.newClass(className + "_Skeleton"); /* jw.comment( "" ); jw.comment( "CORBA RMI-IIOP Skeleton Generator" ); jw.comment( " Interface: " + c.getName() ); jw.comment( " Date: " + (new Date(System.currentTimeMillis())).toString() ); jw.comment( "" ); */ jc.addImport("org.apache.geronimo.interop.rmi.iiop", "ObjectInputStream"); jc.addImport("org.apache.geronimo.interop.rmi.iiop", "ObjectOutputStream"); jc.addImport("org.apache.geronimo.interop.rmi.iiop", "RemoteInterface"); jc.addImport("org.apache.geronimo.interop.rmi.iiop", "RemoteInterface"); jc.addImport("org.apache.geronimo.interop.rmi.iiop", "ObjectRef"); jc.addImport("org.apache.geronimo.interop.rmi.iiop", "RemoteObject"); jc.addImport("org.apache.geronimo.interop.rmi.iiop.server", "Adapter"); jc.addImport("java.util", "HashMap"); jc.setExtends("RemoteObject"); jc.addImplements("RemoteInterface"); JField idsField = jc.newField(String[].class, "_ids", new JExpression(new JCodeStatement("{ \"" + _riClass.getName() + "\", \"RMI:" + _riClass.getName() + ":0000000000000000\"}")), true); JField methodsField = jc.newField(java.util.HashMap.class, "_methods", new JExpression(new JCodeStatement("new HashMap(10)"))); JField servantField = jc.newField(_riClass, "_servant", new JExpression(new JCodeStatement("null"))); JConstructor jcCon = jc.newConstructor((JParameter[]) null, (Class[]) null); jcCon.addStatement(new JCodeStatement("super();")); addMethodRegisterMethod(jc); addMethodGetIds(jc); addMethodGetSkeleton(jc); addMethodGetObjectRef(jc, _riClass); JMethod jmInvoke = jc.newMethod(new JReturnType(void.class), "$invoke", new JParameter[]{new JParameter(String.class, "methodName"), new JParameter(byte[].class, "objectKey"), new JParameter(Object.class, "instance"), _objInputVar, _objOutputVar}, (Class[]) null); jmInvoke.setModifier(Modifier.PUBLIC, true); JLocalVariable jvM = jmInvoke.newLocalVariable(Integer.class, "m", new JExpression(new JCodeStatement("(Integer)_methods.get(methodName)"))); jmInvoke.addStatement(new JCodeStatement("if (m == null)")); jmInvoke.addStatement(new JCodeStatement("{")); jmInvoke.addStatement(new JCodeStatement(" throw new org.omg.CORBA.BAD_OPERATION(methodName);")); jmInvoke.addStatement(new JCodeStatement("}")); jmInvoke.addStatement(new JCodeStatement("")); jmInvoke.addStatement(new JCodeStatement("_servant = (" + _riClass.getName() + ")instance;")); jmInvoke.addStatement(new JCodeStatement("")); jmInvoke.addStatement(new JCodeStatement("if (m.intValue() < 0)")); jmInvoke.addStatement(new JCodeStatement("{")); jmInvoke.addStatement(new JCodeStatement(" super.invoke( m.intValue(), objectKey, instance, input, output );")); jmInvoke.addStatement(new JCodeStatement("}")); jmInvoke.addStatement(new JCodeStatement("")); JSwitchStatement ss = new JSwitchStatement(new JExpression(new JCodeStatement("m.intValue()"))); JCaseStatement cs = null; jmInvoke.addStatement(ss); Method m[] = null; if (isSimpleIDL()) { m = _riClass.getMethods(); } else { m = _riClass.getDeclaredMethods(); } if (m != null && m.length > 0) { int i; for (i = 0; i < m.length; i++) { // Enter a new method id in the _methods hashtable. jcCon.addStatement(new JCodeStatement("registerMethod( \"" + m[i].getName() + "\", " + i + ");")); // Add a new case statement to the invoke swtich cs = ss.newCase(new JExpression(new JCodeStatement("" + i))); cs.addStatement(new JCodeStatement(m[i].getName() + "(input,output);")); // Generate the method wrapper addMethod(m[i], jc); } } jg.generate(p); } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/SkelCompiler.java/buggy/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/compiler/SkelCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
1435,
5411,
1216,
1185,
288,
3639,
389,
90,
5111,
18,
8507,
5621,
3639,
309,
16051,
291,
5784,
734,
48,
1435,
597,
401,
291,
797,
985,
7492,
5169,
24899,
566,
797,
3719,
288,
5411,
555,
2932,
797,
2119,
397,
389,
566,
797,
18,
17994,
1435,
397,
2491,
1297,
506,
392,
791,
434,
3344,
2252,
18,
8864,
77,
18,
5169,
578,
434,
279,
10177,
1199,
1769,
3639,
289,
3639,
9403,
927,
273,
389,
566,
797,
18,
588,
7805,
5621,
3639,
309,
261,
830,
422,
446,
13,
288,
5411,
927,
273,
9403,
18,
588,
3163,
7805,
5621,
3639,
289,
3639,
514,
1983,
7642,
1621,
273,
389,
4507,
1320,
18,
588,
7642,
1621,
5621,
3639,
5110,
3908,
525,
75,
273,
394,
5110,
3908,
24899,
4507,
1320,
1769,
3639,
514,
2658,
273,
389,
566,
797,
18,
17994,
5621,
3639,
804,
2261,
293,
273,
394,
804,
2261,
2932,
8863,
3639,
309,
261,
67,
566,
797,
18,
588,
2261,
1435,
480,
446,
13,
288,
5411,
293,
273,
394,
804,
2261,
24899,
566,
797,
18,
588,
2261,
7675,
17994,
10663,
5411,
2658,
273,
2658,
18,
28023,
12,
12434,
18,
2722,
31985,
2932,
1199,
13,
397,
404,
1769,
3639,
289,
3639,
804,
797,
19807,
273,
293,
18,
2704,
797,
12,
12434,
397,
4192,
28070,
8863,
3639,
1748,
3639,
26203,
18,
3469,
12,
1408,
11272,
3639,
26203,
18,
3469,
12,
315,
9428,
12536,
534,
7492,
17,
6954,
3665,
10362,
12143,
10159,
6,
11272,
3639,
26203,
18,
3469,
12,
315,
225,
6682,
30,
315,
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,
2103,
1435,
5411,
1216,
1185,
288,
3639,
389,
90,
5111,
18,
8507,
5621,
3639,
309,
16051,
291,
5784,
734,
48,
1435,
597,
401,
291,
797,
985,
7492,
5169,
24899,
566,
797,
3719,
288,
5411,
555,
2932,
797,
2119,
397,
389,
566,
797,
18,
17994,
1435,
397,
2491,
1297,
506,
392,
791,
434,
3344,
2252,
18,
8864,
77,
18,
5169,
578,
434,
279,
10177,
1199,
1769,
3639,
289,
3639,
9403,
927,
273,
389,
566,
797,
18,
588,
7805,
5621,
3639,
309,
261,
830,
422,
446,
13,
288,
5411,
927,
273,
9403,
18,
588,
3163,
7805,
5621,
3639,
289,
3639,
514,
1983,
7642,
1621,
273,
389,
4507,
1320,
18,
588,
7642,
1621,
5621,
3639,
5110,
3908,
525,
75,
2
] | |
Driver.debug("supportsPositionedDelete false"); | if (Driver.logDebug) Driver.debug("supportsPositionedDelete false"); | public boolean supportsPositionedDelete() throws SQLException { Driver.debug("supportsPositionedDelete false"); return false; // For now... } | 49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
2555,
329,
2613,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
28064,
2555,
329,
2613,
629,
8863,
202,
202,
2463,
629,
31,
1082,
202,
759,
2457,
2037,
2777,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
6146,
2555,
329,
2613,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
28064,
2555,
329,
2613,
629,
8863,
202,
202,
2463,
629,
31,
1082,
202,
759,
2457,
2037,
2777,
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
] |
if(message.getMessageName().equals("IdentifierCollision")) { | if("IdentifierCollision".equals( message.getMessageName() )) { | public void update(Observable o, Object arg) { FCPQueryManager queryManager = null; FCPMessage message = (FCPMessage)arg; if (o instanceof FCPQueryManager) queryManager = (FCPQueryManager)o; else queryManager = queueManager.getQueryManager(); /* default one */ if(message.getValue("Identifier") == null || !message.getValue("Identifier").equals(identifier)) return; if(message.getMessageName().equals("DataFound")) { Logger.debug(this, "DataFound!"); if(!isFinished()) { if(!alreadySaved) { alreadySaved = true; fileSize = (new Long(message.getValue("DataLength"))).longValue(); if(isPersistent()) { if(destinationDir != null) { if(!fileExists(destinationDir)) { status = "Requesting file from the node"; progress = 99; running = true; successful = false; saveFileTo(destinationDir, false); } else { status = "Available"; progress = 100; running = false; successful = true; Logger.info(this, "File already existing. Not rewrited"); } } else { Logger.info(this, "Don't know where to put file, so file not asked to the node"); } } setChanged(); notifyObservers(); } } return; } if(message.getMessageName().equals("IdentifierCollision")) { Logger.notice(this, "IdentifierCollision ! Resending with another id"); identifier = null; start(queueManager); setChanged(); notifyObservers(); return; } if(message.getMessageName().equals("ProtocolError")) { Logger.debug(this, "ProtocolError !"); if(message.getValue("Code").equals("15")) { Logger.debug(this, "Unknow URI ? was probably a stop order so no problem ..."); return; } Logger.error(this, "=== PROTOCOL ERROR === \n"+message.toString()); status = "Protocol Error ("+message.getValue("CodeDescription")+")"; progress = 100; running = false; successful = false; fatal = true; setChanged(); notifyObservers(); if(message.getValue("Fatal") != null && message.getValue("Fatal").equals("false")) { fatal = false; status = status + " (non-fatal)"; } if(isLockOwner) { queueManager.getQueryManager().getConnection().unlockReading(); queueManager.getQueryManager().getConnection().unlockWriting(); isLockOwner= false; } queueManager.getQueryManager().deleteObserver(this); return; } if(message.getMessageName().equals("GetFailed")) { Logger.debug(this, "GetFailed !"); if (message.getValue("RedirectURI") != null) { Logger.debug(this, "Redirected !"); key = message.getValue("RedirectURI"); status = "Redirected ..."; start(queueManager); return; } Logger.warning(this, "==== GET FAILED ===\n"+message.toString()); if(!isRunning()) { /* Must be a "GetFailed: cancelled by caller", so we simply ignore */ Logger.info(this, "Cancellation confirmed."); return; } //removeRequest(); int code = Integer.parseInt(message.getValue("Code")); if(maxRetries == -1 || attempt >= maxRetries || code == 25) { status = "Failed ("+message.getValue("CodeDescription")+")"; progress = 100; running = false; successful = false; fatal = true; if(message.getValue("Fatal") != null && message.getValue("Fatal").equals("false")) { fatal = false; status = status + " (non-fatal)"; } queueManager.getQueryManager().deleteObserver(this); } else { status = "Retrying"; running = true; successful = true; progress = 0; start(queueManager); } setChanged(); notifyObservers(); return; } if(message.getMessageName().equals("SimpleProgress")) { Logger.debug(this, "SimpleProgress !"); progress = 0; if(message.getValue("Total") != null && message.getValue("Succeeded") != null) { fileSize = Long.parseLong(message.getValue("Total"))*BLOCK_SIZE; long required = Long.parseLong(message.getValue("Total")); long succeeded = Long.parseLong(message.getValue("Succeeded")); progress = (int) ((long)((succeeded * 98) / required)); status = "Fetching"; if(message.getValue("FinalizedTotal") != null && message.getValue("FinalizedTotal").equals("true")) { progressReliable = true; } successful = true; running = true; setChanged(); notifyObservers(); } return; } if(message.getMessageName().equals("AllData")) { Logger.debug(this, "AllData ! : " + identifier); fileSize = message.getAmountOfDataWaiting(); running = true; successful = true; progress = 99; status = "Writing to disk"; Logger.info(this, "Receiving file ..."); setChanged(); notifyObservers(); if(fetchDirectly(queryManager.getConnection(), getPath(), fileSize, true)) { successful = true; status = "Available"; } else { Logger.warning(this, "Unable to fetch correctly the file. This may create problems on socket"); successful = false; status = "Error while receveing the file"; } Logger.info(this, "File received"); queryManager.getConnection().unlockReading(); queryManager.getConnection().unlockWriting(); isLockOwner= false; running = false; progress = 100; queryManager.deleteObserver(this); if (queryManager != queueManager.getQueryManager()) { queueManager.getQueryManager().deleteObserver(this); queryManager.getConnection().disconnect(); duplicatedQueryManager = null; } setChanged(); notifyObservers(); return; } if(message.getMessageName().equals("PersistentGet")) { Logger.debug(this, "PersistentGet !"); return; } Logger.warning(this, "Unknow message : "+message.getMessageName() + " !"); } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/FCPClientGet.java/clean/src/thaw/fcp/FCPClientGet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
15279,
320,
16,
1033,
1501,
13,
288,
202,
202,
42,
4258,
1138,
1318,
843,
1318,
273,
446,
31,
202,
202,
42,
4258,
1079,
883,
273,
261,
42,
4258,
1079,
13,
3175,
31,
202,
202,
430,
261,
83,
1276,
478,
4258,
1138,
1318,
13,
1082,
202,
2271,
1318,
273,
261,
42,
4258,
1138,
1318,
13,
83,
31,
202,
202,
12107,
1082,
202,
2271,
1318,
273,
2389,
1318,
18,
588,
1138,
1318,
5621,
1748,
805,
1245,
1195,
202,
202,
430,
12,
2150,
18,
24805,
2932,
3004,
7923,
422,
446,
1082,
282,
747,
401,
2150,
18,
24805,
2932,
3004,
20387,
14963,
12,
5644,
3719,
1082,
202,
2463,
31,
202,
202,
430,
12,
2150,
18,
24906,
461,
7675,
14963,
2932,
751,
2043,
6,
3719,
288,
1082,
202,
3328,
18,
4148,
12,
2211,
16,
315,
751,
2043,
4442,
1769,
1082,
202,
430,
12,
5,
291,
10577,
10756,
288,
9506,
202,
430,
12,
5,
17583,
16776,
13,
288,
6862,
202,
17583,
16776,
273,
638,
31,
6862,
25083,
202,
768,
1225,
273,
261,
2704,
3407,
12,
2150,
18,
24805,
2932,
751,
1782,
6,
3719,
2934,
5748,
620,
5621,
6862,
25083,
202,
430,
12,
291,
11906,
10756,
288,
25083,
202,
430,
12,
10590,
1621,
480,
446,
13,
288,
6862,
6862,
25083,
202,
430,
12,
5,
768,
4002,
12,
10590,
1621,
3719,
288,
6862,
9506,
202,
2327,
273,
315,
691,
310,
585,
628,
326,
756,
14432,
6862,
9506,
202,
8298,
273,
14605,
31,
6862,
9506,
202,
8704,
273,
638,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
15279,
320,
16,
1033,
1501,
13,
288,
202,
202,
42,
4258,
1138,
1318,
843,
1318,
273,
446,
31,
202,
202,
42,
4258,
1079,
883,
273,
261,
42,
4258,
1079,
13,
3175,
31,
202,
202,
430,
261,
83,
1276,
478,
4258,
1138,
1318,
13,
1082,
202,
2271,
1318,
273,
261,
42,
4258,
1138,
1318,
13,
83,
31,
202,
202,
12107,
1082,
202,
2271,
1318,
273,
2389,
1318,
18,
588,
1138,
1318,
5621,
1748,
805,
1245,
1195,
202,
202,
430,
12,
2150,
18,
24805,
2932,
3004,
7923,
422,
446,
1082,
282,
747,
401,
2150,
18,
24805,
2932,
3004,
20387,
14963,
12,
5644,
3719,
1082,
202,
2463,
31,
202,
202,
430,
12,
2150,
18,
24906,
461,
2
] |
setControl(control); | setControl(control); | public void createControl(Composite parent) { readConfiguration(); Composite control = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(2, false); layout.marginHeight = 0; layout.marginWidth = 0; control.setLayout(layout); GridData gd = new GridData(GridData.FILL_BOTH); control.setLayoutData(gd); if (scontainer == null) { // Not presenting in search pane so add parent's content super.createControl(control); } else { // if (repository == null) { // search pane so add repository selection createRepositoryGroup(control); } createSearchGroup(control); createOptionsGroup(control); createEmail(control); createLastDays(control); // createSaveQuery(control); // createMaxHits(control); // input = new // SavedQueryFile(BugzillaPlugin.getDefault().getStateLocation().toString(), // "/queries"); // createUpdate(control); // if (originalQuery != null) { // try { // updateDefaults(originalQuery.getQueryUrl(), // String.valueOf(originalQuery.getMaxHits())); // } catch (UnsupportedEncodingException e) { // // ignore // } // } setControl(control); WorkbenchHelpSystem.getInstance().setHelp(control, BugzillaUiPlugin.SEARCH_PAGE_CONTEXT); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/24b3225cfc11faa59e8107f65395165a6ba2a792/BugzillaSearchPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
896,
1750,
5621,
202,
202,
9400,
3325,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
22,
16,
629,
1769,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
7098,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
7098,
18,
542,
3744,
751,
12,
19016,
1769,
202,
202,
430,
261,
87,
3782,
422,
446,
13,
288,
1082,
202,
759,
2288,
3430,
310,
316,
1623,
13618,
1427,
527,
982,
1807,
913,
1082,
202,
9565,
18,
2640,
3367,
12,
7098,
1769,
202,
202,
97,
469,
288,
1082,
202,
759,
309,
261,
9071,
422,
446,
13,
288,
1082,
202,
759,
1623,
13618,
1427,
527,
3352,
4421,
1082,
202,
2640,
3305,
1114,
12,
7098,
1769,
202,
202,
97,
202,
202,
2640,
2979,
1114,
12,
7098,
1769,
202,
202,
2640,
1320,
1114,
12,
7098,
1769,
202,
202,
2640,
4134,
12,
7098,
1769,
202,
202,
2640,
3024,
9384,
12,
7098,
1769,
202,
202,
759,
752,
4755,
1138,
12,
7098,
1769,
202,
202,
759,
752,
2747,
20950,
12,
7098,
1769,
202,
202,
759,
810,
273,
394,
202,
202,
759,
348,
8158,
1138,
812,
12,
19865,
15990,
3773,
18,
588,
1868,
7675,
588,
1119,
2735,
7675,
10492,
9334,
202,
202,
759,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
896,
1750,
5621,
202,
202,
9400,
3325,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
22,
16,
629,
1769,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
7098,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
7098,
18,
542,
3744,
751,
12,
19016,
1769,
202,
202,
430,
261,
87,
3782,
422,
446,
13,
288,
1082,
202,
759,
2288,
3430,
310,
316,
1623,
13618,
2
] |
public Object log(Object param) throws ParseException { if (param instanceof Number) { double num = ((Number) param).doubleValue(); if( num > 0) return new Double(Math.log(num)/LOG10); else { Complex temp = new Complex(num); return temp.log().div(CLOG10); } } else if (param instanceof Complex) { return ((Complex)param).log().div(CLOG10); } throw new ParseException("Invalid parameter type"); } | 54194 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54194/b456a9b7946cbfb810782358fd6466140381d6d1/Logarithm.java/clean/src/org/nfunk/jep/function/Logarithm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
921,
1330,
12,
921,
891,
13,
15069,
13047,
95,
202,
202,
430,
12,
891,
1336,
792,
1854,
15329,
1082,
202,
2896,
440,
7924,
33,
12443,
1854,
13,
891,
2934,
9056,
620,
5621,
1082,
202,
430,
12,
2107,
34,
20,
13,
9506,
202,
2463,
2704,
5265,
12,
10477,
18,
1330,
12,
2107,
13176,
4842,
2163,
1769,
1082,
202,
12107,
1082,
202,
95,
6862,
202,
12795,
5814,
33,
2704,
12795,
12,
2107,
1769,
9506,
202,
2463,
5814,
18,
1330,
7675,
2892,
12,
39,
4842,
2163,
1769,
1082,
202,
97,
6862,
202,
97,
12107,
430,
12,
891,
1336,
792,
12795,
15329,
6862,
1082,
202,
2463,
12443,
12795,
13,
891,
2934,
1330,
7675,
2892,
12,
39,
4842,
2163,
1769,
202,
202,
97,
202,
202,
12849,
2704,
13047,
2932,
1941,
6775,
723,
8863,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
921,
1330,
12,
921,
891,
13,
15069,
13047,
95,
202,
202,
430,
12,
891,
1336,
792,
1854,
15329,
1082,
202,
2896,
440,
7924,
33,
12443,
1854,
13,
891,
2934,
9056,
620,
5621,
1082,
202,
430,
12,
2107,
34,
20,
13,
9506,
202,
2463,
2704,
5265,
12,
10477,
18,
1330,
12,
2107,
13176,
4842,
2163,
1769,
1082,
202,
12107,
1082,
202,
95,
6862,
202,
12795,
5814,
33,
2704,
12795,
12,
2107,
1769,
9506,
202,
2463,
5814,
18,
1330,
7675,
2892,
12,
39,
4842,
2163,
1769,
1082,
202,
97,
6862,
202,
97,
12107,
430,
12,
891,
1336,
792,
12795,
15329,
6862,
1082,
202,
2463,
12443,
12795,
13,
891,
2934,
1330,
7675,
2892,
12,
39,
4842,
2163,
1769,
202,
2
] | ||
subTaskType = "(datataset " | subTaskType = "(dataset " | public void execute() { // FastVector result = new FastVector(); m_result = new TaskStatusInfo(); m_result.setStatusMessage("Running..."); String goodResult = "(sub)experiment completed successfully"; String subTaskType; if (m_experiment.getRunLower() != m_experiment.getRunUpper()) { subTaskType = "(datataset " + ((File)m_experiment.getDatasets().elementAt(0)).getName(); } else { subTaskType = "(exp run # "+ m_experiment.getRunLower(); } try { System.err.println("Initializing " + subTaskType + ")..."); m_experiment.initialize(); System.err.println("Iterating " + subTaskType + ")..."); m_experiment.runExperiment(); System.err.println("Postprocessing " + subTaskType + ")..."); m_experiment.postProcess(); } catch (Exception ex) { ex.printStackTrace(); String badResult = "(sub)experiment " + subTaskType + ") failed : "+ex.toString(); m_result.setExecutionStatus(TaskStatusInfo.FAILED); // m_result.addElement(new Integer(RemoteExperiment.FAILED)); // m_result.addElement(badResult); m_result.setStatusMessage(badResult); m_result.setTaskResult("Failed"); // return m_result; return; } // m_result.addElement(new Integer(RemoteExperiment.FINISHED)); // m_result.addElement(goodResult); m_result.setExecutionStatus(TaskStatusInfo.FINISHED); m_result.setStatusMessage(goodResult+" "+subTaskType+")."); m_result.setTaskResult("No errors"); // return m_result; } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/5e6f383408937d86a512ec184b64a79b4280fc3b/RemoteExperimentSubTask.java/clean/weka/experiment/RemoteExperimentSubTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
1435,
288,
565,
368,
1377,
9545,
5018,
563,
273,
394,
9545,
5018,
5621,
565,
312,
67,
2088,
273,
394,
29628,
966,
5621,
565,
312,
67,
2088,
18,
542,
1482,
1079,
2932,
7051,
7070,
1769,
565,
514,
7494,
1253,
273,
7751,
1717,
13,
18142,
5951,
4985,
14432,
565,
514,
720,
2174,
559,
31,
565,
309,
261,
81,
67,
18142,
18,
588,
1997,
4070,
1435,
480,
312,
67,
18142,
18,
588,
1997,
5988,
10756,
288,
1377,
720,
2174,
559,
273,
7751,
3404,
270,
2759,
315,
202,
15,
14015,
812,
13,
81,
67,
18142,
18,
588,
14305,
2413,
7675,
2956,
861,
12,
20,
13,
2934,
17994,
5621,
565,
289,
469,
288,
1377,
720,
2174,
559,
273,
7751,
2749,
1086,
468,
13773,
202,
81,
67,
18142,
18,
588,
1997,
4070,
5621,
565,
289,
565,
775,
288,
202,
1377,
2332,
18,
370,
18,
8222,
2932,
29782,
315,
397,
720,
2174,
559,
397,
9369,
7070,
1769,
1377,
312,
67,
18142,
18,
11160,
5621,
1377,
2332,
18,
370,
18,
8222,
2932,
2360,
1776,
315,
397,
720,
2174,
559,
397,
9369,
7070,
1769,
1377,
312,
67,
18142,
18,
2681,
22338,
5621,
1377,
2332,
18,
370,
18,
8222,
2932,
3349,
10632,
315,
397,
720,
2174,
559,
397,
9369,
7070,
1769,
1377,
312,
67,
18142,
18,
2767,
2227,
5621,
565,
289,
1044,
261,
503,
431,
13,
288,
1377,
431,
18,
1188,
6332,
5621,
1377,
514,
5570,
1253,
273,
225,
7751,
1717,
13,
18142,
315,
397,
720,
2174,
559,
225,
202,
15,
9369,
2535,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
1435,
288,
565,
368,
1377,
9545,
5018,
563,
273,
394,
9545,
5018,
5621,
565,
312,
67,
2088,
273,
394,
29628,
966,
5621,
565,
312,
67,
2088,
18,
542,
1482,
1079,
2932,
7051,
7070,
1769,
565,
514,
7494,
1253,
273,
7751,
1717,
13,
18142,
5951,
4985,
14432,
565,
514,
720,
2174,
559,
31,
565,
309,
261,
81,
67,
18142,
18,
588,
1997,
4070,
1435,
480,
312,
67,
18142,
18,
588,
1997,
5988,
10756,
288,
1377,
720,
2174,
559,
273,
7751,
3404,
270,
2759,
315,
202,
15,
14015,
812,
13,
81,
67,
18142,
18,
588,
14305,
2413,
7675,
2956,
861,
12,
20,
13,
2934,
17994,
5621,
565,
289,
469,
288,
1377,
720,
2174,
559,
273,
7751,
2749,
2
] |
int pixels = cpd.width; | int pixels = cpd.width; | public void layout(Composite c, boolean flush) { // Only do initial layout. Trying to maintain proportions when resizing is too hard, // causes lots of widget flicker, causes scroll bars to appear and occasionally stick around (on Windows), // requires hooking column resizing as well, and may not be what the user wants anyway. if (!firstTime) return; Table table = (Table) c; int width = table.getClientArea().width; // XXX: Layout is being called with an invalid value the first time // it is being called on Linux. This method resets the // Layout to null so we make sure we run it only when // the value is OK. if (width <= 1) return; TableColumn[] tableColumns = table.getColumns(); int size = Math.min(columns.size(), tableColumns.length); int[] widths = new int[size]; int fixedWidth = 0; int numberOfWeightColumns = 0; int totalWeight = 0; // First calc space occupied by fixed columns for (int i = 0; i < size; i++) { ColumnLayoutData col = (ColumnLayoutData) columns.get(i); if (col instanceof ColumnPixelData) { ColumnPixelData cpd = (ColumnPixelData) col; int pixels = cpd.width; if (cpd.addTrim) { pixels += COLUMN_TRIM; } widths[i] = pixels; fixedWidth += pixels; } else if (col instanceof ColumnWeightData) { ColumnWeightData cw = (ColumnWeightData) col; numberOfWeightColumns++; // first time, use the weight specified by the column data, otherwise use the actual width as the weight // int weight = firstTime ? cw.weight : tableColumns[i].getWidth(); int weight = cw.weight; totalWeight += weight; } else { Assert.isTrue(false, "Unknown column layout data");//$NON-NLS-1$ } } // Do we have columns that have a weight if (numberOfWeightColumns > 0) { // Now distribute the rest to the columns with weight. int rest = width - fixedWidth; int totalDistributed = 0; for (int i = 0; i < size; ++i) { ColumnLayoutData col = (ColumnLayoutData) columns.get(i); if (col instanceof ColumnWeightData) { ColumnWeightData cw = (ColumnWeightData) col; // calculate weight as above // int weight = firstTime ? cw.weight : tableColumns[i].getWidth(); int weight = cw.weight; int pixels = totalWeight == 0 ? 0 : weight * rest / totalWeight; if (pixels < cw.minimumWidth) pixels = cw.minimumWidth; totalDistributed += pixels; widths[i] = pixels; } } // Distribute any remaining pixels to columns with weight. int diff = rest - totalDistributed; for (int i = 0; diff > 0; ++i) { if (i == size) i = 0; ColumnLayoutData col = (ColumnLayoutData) columns.get(i); if (col instanceof ColumnWeightData) { ++widths[i]; --diff; } } } // System.out.print("Width: " + width); // int total = 0; // for (int i = 0; i < widths.length; i++) { // System.out.print(" " + widths[i]); // total += widths[i]; // } // System.out.println(" Total: " + total); firstTime = false; for (int i = 0; i < size; i++) { tableColumns[i].setWidth(widths[i]); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/2326ffbb0e0d3d0f9c88bdc55fc9c09e9cd0218f/TableLayout.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3511,
12,
9400,
276,
16,
1250,
3663,
13,
288,
3639,
368,
5098,
741,
2172,
3511,
18,
225,
6161,
310,
358,
17505,
450,
655,
1115,
1347,
400,
6894,
353,
4885,
7877,
16,
3639,
368,
14119,
328,
6968,
434,
3604,
1183,
5448,
16,
14119,
5532,
22252,
358,
9788,
471,
9145,
345,
285,
1230,
25608,
6740,
261,
265,
8202,
3631,
3639,
368,
4991,
3953,
310,
1057,
400,
6894,
487,
5492,
16,
471,
2026,
486,
506,
4121,
326,
729,
14805,
13466,
18,
3639,
309,
16051,
3645,
950,
13,
5411,
327,
31,
3639,
3555,
1014,
273,
261,
1388,
13,
276,
31,
3639,
509,
1835,
273,
1014,
18,
588,
1227,
5484,
7675,
2819,
31,
3639,
368,
11329,
30,
9995,
353,
3832,
2566,
598,
392,
2057,
460,
326,
1122,
813,
3639,
368,
518,
353,
3832,
2566,
603,
13318,
18,
1220,
707,
20063,
326,
3639,
368,
9995,
358,
446,
1427,
732,
1221,
3071,
732,
1086,
518,
1338,
1347,
3639,
368,
326,
460,
353,
7791,
18,
3639,
309,
261,
2819,
1648,
404,
13,
5411,
327,
31,
3639,
3555,
1494,
8526,
1014,
3380,
273,
1014,
18,
588,
3380,
5621,
3639,
509,
963,
273,
2361,
18,
1154,
12,
5112,
18,
1467,
9334,
1014,
3380,
18,
2469,
1769,
3639,
509,
8526,
15801,
273,
394,
509,
63,
1467,
15533,
3639,
509,
5499,
2384,
273,
374,
31,
3639,
509,
7922,
6544,
3380,
273,
374,
31,
3639,
509,
2078,
6544,
273,
374,
31,
3639,
368,
5783,
7029,
3476,
18928,
2092,
635,
5499,
2168,
3639,
364,
261,
474,
277,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3511,
12,
9400,
276,
16,
1250,
3663,
13,
288,
3639,
368,
5098,
741,
2172,
3511,
18,
225,
6161,
310,
358,
17505,
450,
655,
1115,
1347,
400,
6894,
353,
4885,
7877,
16,
3639,
368,
14119,
328,
6968,
434,
3604,
1183,
5448,
16,
14119,
5532,
22252,
358,
9788,
471,
9145,
345,
285,
1230,
25608,
6740,
261,
265,
8202,
3631,
3639,
368,
4991,
3953,
310,
1057,
400,
6894,
487,
5492,
16,
471,
2026,
486,
506,
4121,
326,
729,
14805,
13466,
18,
3639,
309,
16051,
3645,
950,
13,
5411,
327,
31,
3639,
3555,
1014,
273,
261,
1388,
13,
276,
31,
3639,
509,
1835,
273,
1014,
18,
588,
1227,
5484,
7675,
2819,
31,
3639,
368,
11329,
30,
9995,
353,
3832,
2566,
2
] |
os.replace(' ', '_'); os = os.toLowerCase(); | os.replace(' ', '_'); os = os.toLowerCase(); | public void loadDefaultDir() { BufferedReader br = null; try { String os = System.getProperty("os.name"); InputStream in = null; if (os.regionMatches(true, 0, "windows", 0, 7)) in = parent.getResource("TargetPanel.dir.windows"); else if (os.regionMatches(true, 0, "mac os x", 0, 8)) in = parent.getResource("TargetPanel.dir.macosx"); else if (os.regionMatches(true, 0, "mac", 0, 3)) in = parent.getResource("TargetPanel.dir.mac"); else { // first try to look up by specific os name os.replace(' ', '_');// avoid spaces in file names os = os.toLowerCase();// for consistency among TargetPanel res files in = parent.getResource("TargetPanel.dir.".concat(os)); // if not specific os, try getting generic 'unix' resource file if (in == null) in = parent.getResource("TargetPanel.dir.unix"); // if all those failed, try to look up a generic dir file if (in == null) in = parent.getResource("TargetPanel.dir"); } // if all above tests failed, there is no resource file, // so use system default if (in == null) return; // now read the file, once we've identified which one to read InputStreamReader isr = new InputStreamReader(in); br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); // use the first non-blank line if (!line.equals("")) break; } defaultDir = line; } catch (Exception e) { defaultDir = null;// leave unset to take the system default set by Installer class } finally { try { if (br != null) br.close(); } catch (IOException ignored) {} } } | 28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/TargetPanel.java/clean/src/lib/com/izforge/izpack/panels/TargetPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1262,
1868,
1621,
1435,
225,
288,
565,
10633,
5186,
273,
446,
31,
565,
775,
565,
288,
1377,
514,
1140,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
8863,
1377,
5037,
316,
273,
446,
31,
1377,
309,
261,
538,
18,
6858,
6869,
12,
3767,
16,
374,
16,
315,
13226,
3113,
374,
16,
2371,
3719,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
13226,
8863,
1377,
469,
309,
261,
538,
18,
6858,
6869,
12,
3767,
16,
374,
16,
315,
5821,
1140,
619,
3113,
374,
16,
1725,
3719,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
5821,
538,
92,
8863,
1377,
469,
309,
261,
538,
18,
6858,
6869,
12,
3767,
16,
374,
16,
315,
5821,
3113,
374,
16,
890,
3719,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
5821,
8863,
1377,
469,
1377,
288,
3639,
368,
1122,
775,
358,
2324,
731,
635,
2923,
1140,
508,
3639,
1140,
18,
2079,
2668,
2265,
4427,
1769,
759,
4543,
7292,
316,
585,
1257,
3639,
1140,
273,
1140,
18,
869,
5630,
5621,
759,
364,
14297,
17200,
5916,
5537,
400,
1390,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
1199,
18,
16426,
12,
538,
10019,
3639,
368,
309,
486,
2923,
1140,
16,
775,
8742,
5210,
296,
21136,
11,
1058,
585,
3639,
309,
261,
267,
422,
446,
13,
1850,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
21136,
8863,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1262,
1868,
1621,
1435,
225,
288,
565,
10633,
5186,
273,
446,
31,
565,
775,
565,
288,
1377,
514,
1140,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
8863,
1377,
5037,
316,
273,
446,
31,
1377,
309,
261,
538,
18,
6858,
6869,
12,
3767,
16,
374,
16,
315,
13226,
3113,
374,
16,
2371,
3719,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
13226,
8863,
1377,
469,
309,
261,
538,
18,
6858,
6869,
12,
3767,
16,
374,
16,
315,
5821,
1140,
619,
3113,
374,
16,
1725,
3719,
3639,
316,
273,
982,
18,
588,
1420,
2932,
2326,
5537,
18,
1214,
18,
5821,
538,
92,
8863,
1377,
469,
309,
261,
538,
18,
6858,
6869,
2
] |
ctx.bf.freeBucket(bestCompressedData); | bestCompressedData.free(); | private void tryCompress() throws InserterException { // First, determine how small it needs to be Bucket origData = block.getData(); Bucket data = origData; int blockSize; int oneBlockCompressedSize; boolean dontCompress = ctx.dontCompress; long origSize = data.size(); String type = block.desiredURI.getKeyType().toUpperCase(); if(type.equals("SSK") || type.equals("KSK") || type.equals("USK")) { blockSize = SSKBlock.DATA_LENGTH; oneBlockCompressedSize = SSKBlock.MAX_COMPRESSED_DATA_LENGTH; } else if(type.equals("CHK")) { blockSize = CHKBlock.DATA_LENGTH; oneBlockCompressedSize = CHKBlock.MAX_COMPRESSED_DATA_LENGTH; } else { throw new InserterException(InserterException.INVALID_URI, "Unknown key type: "+type, null); } Compressor bestCodec = null; Bucket bestCompressedData = null; boolean tryCompress = (origSize > blockSize) && (!ctx.dontCompress) && (!dontCompress); if(tryCompress) { // Try to compress the data. // Try each algorithm, starting with the fastest and weakest. // Stop when run out of algorithms, or the compressed data fits in a single block. int algos = Compressor.countCompressAlgorithms(); try { for(int i=0;i<algos;i++) { // Only produce if we are compressing *the original data* if(parent == cb) ctx.eventProducer.produceEvent(new StartedCompressionEvent(i)); Compressor comp = Compressor.getCompressionAlgorithmByDifficulty(i); Bucket result; result = comp.compress(origData, ctx.persistentBucketFactory, origData.size()); if(result.size() < oneBlockCompressedSize) { bestCodec = comp; data = result; if(bestCompressedData != null) ctx.bf.freeBucket(bestCompressedData); bestCompressedData = data; break; } if((bestCompressedData != null) && (result.size() < bestCompressedData.size())) { ctx.bf.freeBucket(bestCompressedData); bestCompressedData = result; data = result; bestCodec = comp; } else if((bestCompressedData == null) && (result.size() < data.size())) { bestCompressedData = result; bestCodec = comp; data = result; } } } catch (IOException e) { throw new InserterException(InserterException.BUCKET_ERROR, e, null); } catch (CompressionOutputSizeException e) { // Impossible throw new Error(e); } } if(parent == cb) { if(tryCompress) ctx.eventProducer.produceEvent(new FinishedCompressionEvent(bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(), origSize, data.size())); if(logMINOR) Logger.minor(this, "Compressed "+origSize+" to "+data.size()+" on "+this); } // Compressed data // Insert it... short codecNumber = bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(); long compressedDataSize = data.size(); boolean fitsInOneBlockAsIs = bestCodec == null ? compressedDataSize < blockSize : compressedDataSize < oneBlockCompressedSize; boolean fitsInOneCHK = bestCodec == null ? compressedDataSize < CHKBlock.DATA_LENGTH : compressedDataSize < CHKBlock.MAX_COMPRESSED_DATA_LENGTH; if(block.getData().size() > Integer.MAX_VALUE) throw new InserterException(InserterException.INTERNAL_ERROR, "2GB+ should not encode to one block!", null); boolean noMetadata = ((block.clientMetadata == null) || block.clientMetadata.isTrivial()) && targetFilename == null; if(noMetadata && !insertAsArchiveManifest) { if(fitsInOneBlockAsIs) { // Just insert it ClientPutState bi = createInserter(parent, data, codecNumber, block.desiredURI, ctx, cb, metadata, (int)block.getData().size(), -1, getCHKOnly, true, true); cb.onTransition(this, bi); bi.schedule(); cb.onBlockSetFinished(this); return; } } if (fitsInOneCHK) { // Insert single block, then insert pointer to it if(reportMetadataOnly) { SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, cb, metadata, (int)origSize, -1, getCHKOnly, true, true, token); Metadata meta = makeMetadata(dataPutter.getURI()); cb.onMetadata(meta, this); cb.onTransition(this, dataPutter); dataPutter.schedule(); cb.onBlockSetFinished(this); } else { MultiPutCompletionCallback mcb = new MultiPutCompletionCallback(cb, parent, token); SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, mcb, metadata, (int)origSize, -1, getCHKOnly, true, false, token); Metadata meta = makeMetadata(dataPutter.getURI()); Bucket metadataBucket; try { metadataBucket = BucketTools.makeImmutableBucket(ctx.bf, meta.writeToByteArray()); } catch (IOException e) { Logger.error(this, "Caught "+e, e); throw new InserterException(InserterException.BUCKET_ERROR, e, null); } catch (MetadataUnresolvedException e) { // Impossible, we're not inserting a manifest. Logger.error(this, "Caught "+e, e); throw new InserterException(InserterException.INTERNAL_ERROR, "Got MetadataUnresolvedException in SingleFileInserter: "+e.toString(), null); } ClientPutState metaPutter = createInserter(parent, metadataBucket, (short) -1, block.desiredURI, ctx, mcb, true, (int)origSize, -1, getCHKOnly, true, false); mcb.addURIGenerator(metaPutter); mcb.add(dataPutter); cb.onTransition(this, mcb); Logger.minor(this, ""+mcb+" : data "+dataPutter+" meta "+metaPutter); mcb.arm(); dataPutter.schedule(); if(metaPutter instanceof SingleBlockInserter) ((SingleBlockInserter)metaPutter).encode(); metaPutter.schedule(); cb.onBlockSetFinished(this); } return; } // Otherwise the file is too big to fit into one block // We therefore must make a splitfile // Job of SplitHandler: when the splitinserter has the metadata, // insert it. Then when the splitinserter has finished, and the // metadata insert has finished too, tell the master callback. if(reportMetadataOnly) { SplitFileInserter sfi = new SplitFileInserter(parent, cb, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata, token, insertAsArchiveManifest, false); cb.onTransition(this, sfi); sfi.start(); if(earlyEncode) sfi.forceEncode(); } else { SplitHandler sh = new SplitHandler(); SplitFileInserter sfi = new SplitFileInserter(parent, sh, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata, token, insertAsArchiveManifest, false); sh.sfi = sfi; cb.onTransition(this, sh); sfi.start(); if(earlyEncode) sfi.forceEncode(); } } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/87283290aa494832b974adec87a0fb667dee1899/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
775,
16552,
1435,
1216,
657,
550,
387,
503,
288,
202,
202,
759,
5783,
16,
4199,
3661,
5264,
518,
4260,
358,
506,
202,
202,
4103,
1647,
751,
273,
1203,
18,
588,
751,
5621,
202,
202,
4103,
501,
273,
1647,
751,
31,
202,
202,
474,
13766,
31,
202,
202,
474,
1245,
1768,
16841,
1225,
31,
202,
202,
6494,
14046,
16552,
273,
1103,
18,
72,
1580,
16552,
31,
9506,
202,
5748,
1647,
1225,
273,
501,
18,
1467,
5621,
202,
202,
780,
618,
273,
1203,
18,
30458,
3098,
18,
588,
22100,
7675,
869,
8915,
5621,
202,
202,
430,
12,
723,
18,
14963,
2932,
1260,
47,
7923,
747,
618,
18,
14963,
2932,
47,
11129,
7923,
747,
618,
18,
14963,
2932,
3378,
47,
6,
3719,
288,
1082,
202,
2629,
1225,
273,
348,
11129,
1768,
18,
4883,
67,
7096,
31,
1082,
202,
476,
1768,
16841,
1225,
273,
348,
11129,
1768,
18,
6694,
67,
4208,
27388,
67,
4883,
67,
7096,
31,
202,
202,
97,
469,
309,
12,
723,
18,
14963,
2932,
1792,
47,
6,
3719,
288,
1082,
202,
2629,
1225,
273,
6469,
47,
1768,
18,
4883,
67,
7096,
31,
1082,
202,
476,
1768,
16841,
1225,
273,
6469,
47,
1768,
18,
6694,
67,
4208,
27388,
67,
4883,
67,
7096,
31,
202,
202,
97,
469,
288,
1082,
202,
12849,
394,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
9347,
67,
3098,
16,
315,
4874,
498,
618,
30,
13773,
723,
16,
446,
1769,
202,
202,
97,
9506,
202,
16552,
280,
3796,
11008,
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,
775,
16552,
1435,
1216,
657,
550,
387,
503,
288,
202,
202,
759,
5783,
16,
4199,
3661,
5264,
518,
4260,
358,
506,
202,
202,
4103,
1647,
751,
273,
1203,
18,
588,
751,
5621,
202,
202,
4103,
501,
273,
1647,
751,
31,
202,
202,
474,
13766,
31,
202,
202,
474,
1245,
1768,
16841,
1225,
31,
202,
202,
6494,
14046,
16552,
273,
1103,
18,
72,
1580,
16552,
31,
9506,
202,
5748,
1647,
1225,
273,
501,
18,
1467,
5621,
202,
202,
780,
618,
273,
1203,
18,
30458,
3098,
18,
588,
22100,
7675,
869,
8915,
5621,
202,
202,
430,
12,
723,
18,
14963,
2932,
1260,
47,
7923,
747,
618,
18,
14963,
2932,
47,
11129,
7923,
747,
618,
18,
14963,
2932,
2
] |
public synchronized void completedTask(TaskInProgress tip, String taskid) { | public synchronized void completedTask(TaskInProgress tip, TaskStatus status) { String taskid = status.getTaskId(); updateTaskStatus(tip, status); | public synchronized void completedTask(TaskInProgress tip, String taskid) { LOG.info("Taskid '" + taskid + "' has finished successfully."); tip.completed(taskid); // // Figure out whether the Job is done // boolean allDone = true; for (int i = 0; i < maps.length; i++) { if (! maps[i].isComplete()) { allDone = false; break; } } if (allDone) { for (int i = 0; i < reduces.length; i++) { if (! reduces[i].isComplete()) { allDone = false; break; } } } // // If all tasks are complete, then the job is done! // if (status.getRunState() == JobStatus.RUNNING && allDone) { this.status = new JobStatus(status.getJobId(), 1.0f, 1.0f, JobStatus.SUCCEEDED); this.finishTime = System.currentTimeMillis(); garbageCollect(); } } | 48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/50de9d51b6043b8802f1ca8befb218affb724fab/JobInProgress.java/clean/src/java/org/apache/hadoop/mapred/JobInProgress.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
5951,
2174,
12,
2174,
13434,
9529,
16,
29628,
1267,
13,
288,
514,
29035,
273,
1267,
18,
588,
30182,
5621,
1089,
2174,
1482,
12,
14587,
16,
1267,
1769,
3639,
2018,
18,
1376,
2932,
2174,
350,
2119,
397,
29035,
397,
2491,
711,
6708,
4985,
1199,
1769,
3639,
9529,
18,
13615,
12,
4146,
350,
1769,
3639,
368,
3639,
368,
18818,
596,
2856,
326,
3956,
353,
2731,
3639,
368,
3639,
1250,
777,
7387,
273,
638,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7565,
18,
2469,
31,
277,
27245,
288,
5411,
309,
16051,
7565,
63,
77,
8009,
291,
6322,
10756,
288,
7734,
777,
7387,
273,
629,
31,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
309,
261,
454,
7387,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
30568,
18,
2469,
31,
277,
27245,
288,
7734,
309,
16051,
30568,
63,
77,
8009,
291,
6322,
10756,
288,
10792,
777,
7387,
273,
629,
31,
10792,
898,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
368,
3639,
368,
971,
777,
4592,
854,
3912,
16,
1508,
326,
1719,
353,
2731,
5,
3639,
368,
3639,
309,
261,
2327,
18,
588,
1997,
1119,
1435,
422,
25852,
18,
29358,
597,
777,
7387,
13,
288,
5411,
333,
18,
2327,
273,
394,
25852,
12,
2327,
18,
588,
23378,
9334,
404,
18,
20,
74,
16,
404,
18,
20,
74,
16,
25852,
18,
6639,
39,
26031,
1769,
5411,
333,
18,
13749,
950,
273,
2332,
18,
2972,
28512,
5621,
5411,
15340,
10808,
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,
1071,
3852,
918,
5951,
2174,
12,
2174,
13434,
9529,
16,
29628,
1267,
13,
288,
514,
29035,
273,
1267,
18,
588,
30182,
5621,
1089,
2174,
1482,
12,
14587,
16,
1267,
1769,
3639,
2018,
18,
1376,
2932,
2174,
350,
2119,
397,
29035,
397,
2491,
711,
6708,
4985,
1199,
1769,
3639,
9529,
18,
13615,
12,
4146,
350,
1769,
3639,
368,
3639,
368,
18818,
596,
2856,
326,
3956,
353,
2731,
3639,
368,
3639,
1250,
777,
7387,
273,
638,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
7565,
18,
2469,
31,
277,
27245,
288,
5411,
309,
16051,
7565,
63,
77,
8009,
291,
6322,
10756,
288,
7734,
777,
7387,
273,
629,
31,
7734,
898,
31,
5411,
289,
3639,
289,
3639,
309,
2
] |
public void eSet( EStructuralFeature eFeature, Object newValue ) | public void eSet( int featureID, Object newValue ) | public void eSet( EStructuralFeature eFeature, Object newValue ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.COLOR_DEFINITION__TYPE : setType( ( (Integer) newValue ).intValue( ) ); return; case AttributePackage.COLOR_DEFINITION__TRANSPARENCY : setTransparency( ( (Integer) newValue ).intValue( ) ); return; case AttributePackage.COLOR_DEFINITION__RED : setRed( ( (Integer) newValue ).intValue( ) ); return; case AttributePackage.COLOR_DEFINITION__GREEN : setGreen( ( (Integer) newValue ).intValue( ) ); return; case AttributePackage.COLOR_DEFINITION__BLUE : setBlue( ( (Integer) newValue ).intValue( ) ); return; } eDynamicSet( eFeature, newValue ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/ColorDefinitionImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/ColorDefinitionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20199,
12,
512,
14372,
4595,
425,
4595,
16,
1033,
6129,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
10989,
67,
25312,
972,
2399,
294,
9506,
202,
542,
559,
12,
261,
261,
4522,
13,
6129,
262,
18,
474,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
10989,
67,
25312,
972,
8989,
3118,
9332,
23705,
294,
9506,
202,
542,
1429,
18258,
12,
261,
261,
4522,
13,
6129,
262,
18,
474,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
10989,
67,
25312,
972,
5879,
294,
9506,
202,
542,
3715,
12,
261,
261,
4522,
13,
6129,
262,
18,
474,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
10989,
67,
25312,
972,
29500,
294,
9506,
202,
542,
21453,
12,
261,
261,
4522,
13,
6129,
262,
18,
474,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
10989,
67,
25312,
972,
14618,
1821,
294,
9506,
202,
542,
27986,
12,
261,
261,
4522,
13,
6129,
262,
18,
474,
620,
12,
262,
11272,
9506,
202,
2463,
31,
202,
202,
97,
202,
202,
73,
9791,
694,
12,
425,
4595,
16,
6129,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20199,
12,
512,
14372,
4595,
425,
4595,
16,
1033,
6129,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
10989,
67,
25312,
972,
2399,
294,
9506,
202,
542,
559,
12,
261,
261,
4522,
13,
6129,
262,
18,
474,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
10989,
67,
25312,
972,
8989,
3118,
9332,
23705,
294,
9506,
202,
542,
1429,
18258,
12,
261,
261,
4522,
13,
6129,
262,
18,
474,
620,
12,
262,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
10989,
67,
25312,
972,
5879,
294,
9506,
202,
542,
2
] |
s += (mol.getAtomNumber(ac.getAtomAt(f)) + 1) + " "; | s += (mol.getAtomNumber(ac.getAtomAt(f)) + 1) + " "; | public String listNumbers(Molecule mol, AtomContainer ac) throws java.lang.Exception { String s = "Numbers: "; for (int f = 0; f < ac.getAtomCount(); f++) { s += (mol.getAtomNumber(ac.getAtomAt(f)) + 1) + " "; } return s; } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/9f992723c3f44cadad1a2525a16a572d7af62f39/AtomPlacer.java/buggy/src/org/openscience/cdk/layout/AtomPlacer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
666,
10072,
12,
29669,
12629,
16,
7149,
2170,
1721,
13,
1216,
2252,
18,
4936,
18,
503,
202,
95,
202,
202,
780,
272,
273,
315,
10072,
30,
13636,
202,
202,
1884,
261,
474,
284,
273,
374,
31,
284,
411,
1721,
18,
588,
3641,
1380,
5621,
284,
27245,
202,
202,
95,
1082,
202,
87,
1011,
261,
21260,
18,
588,
3641,
1854,
12,
1077,
18,
588,
3641,
861,
12,
74,
3719,
397,
404,
13,
397,
225,
315,
13636,
202,
202,
97,
202,
202,
2463,
272,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
666,
10072,
12,
29669,
12629,
16,
7149,
2170,
1721,
13,
1216,
2252,
18,
4936,
18,
503,
202,
95,
202,
202,
780,
272,
273,
315,
10072,
30,
13636,
202,
202,
1884,
261,
474,
284,
273,
374,
31,
284,
411,
1721,
18,
588,
3641,
1380,
5621,
284,
27245,
202,
202,
95,
1082,
202,
87,
1011,
261,
21260,
18,
588,
3641,
1854,
12,
1077,
18,
588,
3641,
861,
12,
74,
3719,
397,
404,
13,
397,
225,
315,
13636,
202,
202,
97,
202,
202,
2463,
272,
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
] |
private synchronized void handleBCastMessage( Message msg, long seq ) { /* store the message anyway, hopefully we'll get a TOTAL_NEW_VIEW message later if ( next_seq < 0 ) { log.error( "TOTAL_OLD.handleBCastMessage() - received broadcast message but don't know what sequence id to expect" ); return; } */ | private synchronized void handleBCastMessage(Message msg, long seq) { /* store the message anyway, hopefully we'll get a TOTAL_NEW_VIEW message later if ( next_seq < 0 ) { log.error( "TOTAL_OLD.handleBCastMessage() - received broadcast message but don't know what sequence id to expect" ); return; } */ | private synchronized void handleBCastMessage( Message msg, long seq ) { /* store the message anyway, hopefully we'll get a TOTAL_NEW_VIEW message later if ( next_seq < 0 ) { // don't know what sequence id to expect log.error( "TOTAL_OLD.handleBCastMessage() - received broadcast message but don't know what sequence id to expect" ); return; } */ if ( seq < next_seq_id ) { // we're expecting a message with a greater sequence id // hopefully, we've already seen this message so just ignore it return; } // save this message in the list of received broadcast messages queued_messages.insertMessage( msg, seq ); // try to pass up any messages int num_passed = passUpMessages();// TODO: this if is temporary (debug)if ( num_passed > 1 ) log.error( "TOTAL_OLD.handleBCastMessage() - " + num_passed + " message(s) passed up the Protocol Stack" ); /* this is handles by the retransmission thread now // see if we may need to issue any resend requests if ( queued_messages.getSize() > 1 ) { // TODO: magical constant N? Address sequencer = getSequencer(); //Object sequencer = msg.makeReply().getSrc(); // test (debug) if ( sequencer == null ) { // couldn't get the sequencer of the group log.error( "TOTAL_OLD.handleBCastMessage() - couldn't determine sequencer to send a TOTAL_RESEND request" ); return; } if ( local_addr == null ) { // don't know local address, can't set source of message log.error( "TOTAL_OLD.handleBCastMessage() - do not know local address so cannot send resend request for message " + seq ); return; } long time_now = System.currentTimeMillis(); if ( (last_request_time >= 0) && ((time_now - last_request_time) < 1000) ) { return; } else { last_request_time = time_now; } // request a resend request for all missing sequence ids // from the next one expected up to the "earliest" queued one // TODO: (works a little different now) long first_queued_seq = queued_messages.getFirstSeq(); long max_resend_seq = ((next_seq_id + 10) > first_queued_seq) ? first_queued_seq : (next_seq_id + 10); for( long resend_seq=next_seq_id; resend_seq<=max_resend_seq ; resend_seq++ ) { Message resend_msg = new Message( sequencer, local_addr, null ); resend_msg.putHeader(getName(), new TotalHeader( TotalHeader.TOTAL_RESEND, resend_seq ) ); passDown( new Event( Event.MSG, resend_msg ) ); log.error( "TOTAL_OLD.handleBCastMessage() - resend requested for message " + resend_seq ); } } */ } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/buggy/src/org/jgroups/protocols/TOTAL_OLD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
1640,
38,
9735,
1079,
12,
2350,
1234,
16,
1525,
3833,
262,
288,
202,
20308,
1707,
326,
883,
13466,
16,
27370,
4095,
732,
5614,
336,
279,
399,
19851,
67,
12917,
67,
12145,
883,
5137,
202,
430,
261,
1024,
67,
5436,
411,
374,
262,
288,
202,
565,
368,
2727,
1404,
5055,
4121,
3102,
612,
358,
4489,
202,
377,
613,
18,
1636,
12,
315,
28624,
67,
11846,
18,
4110,
38,
9735,
1079,
1435,
300,
5079,
8959,
883,
1496,
2727,
1404,
5055,
4121,
3102,
612,
358,
4489,
6,
11272,
202,
565,
327,
31,
202,
97,
202,
5549,
202,
430,
261,
3833,
411,
1024,
67,
5436,
67,
350,
262,
288,
202,
565,
368,
732,
4565,
17012,
279,
883,
598,
279,
6802,
3102,
612,
202,
565,
368,
282,
27370,
4095,
16,
732,
8081,
1818,
5881,
333,
883,
1427,
2537,
2305,
518,
202,
565,
327,
31,
202,
97,
202,
759,
1923,
333,
883,
316,
326,
666,
434,
5079,
8959,
2743,
202,
19499,
67,
6833,
18,
6387,
1079,
12,
1234,
16,
3833,
11272,
202,
759,
775,
358,
1342,
731,
1281,
2743,
202,
474,
818,
67,
23603,
273,
1342,
1211,
5058,
5621,
759,
2660,
30,
333,
309,
353,
6269,
261,
4148,
13,
430,
261,
818,
67,
23603,
405,
404,
262,
202,
613,
18,
1636,
12,
315,
28624,
67,
11846,
18,
4110,
38,
9735,
1079,
1435,
300,
315,
397,
818,
67,
23603,
397,
315,
883,
12,
87,
13,
2275,
731,
326,
4547,
7283,
6,
11272,
3639,
1748,
333,
353,
7372,
635,
326,
283,
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,
3852,
918,
1640,
38,
9735,
1079,
12,
2350,
1234,
16,
1525,
3833,
262,
288,
202,
20308,
1707,
326,
883,
13466,
16,
27370,
4095,
732,
5614,
336,
279,
399,
19851,
67,
12917,
67,
12145,
883,
5137,
202,
430,
261,
1024,
67,
5436,
411,
374,
262,
288,
202,
565,
368,
2727,
1404,
5055,
4121,
3102,
612,
358,
4489,
202,
377,
613,
18,
1636,
12,
315,
28624,
67,
11846,
18,
4110,
38,
9735,
1079,
1435,
300,
5079,
8959,
883,
1496,
2727,
1404,
5055,
4121,
3102,
612,
358,
4489,
6,
11272,
202,
565,
327,
31,
202,
97,
202,
5549,
202,
430,
261,
3833,
411,
1024,
67,
5436,
67,
350,
262,
288,
202,
565,
368,
732,
4565,
17012,
279,
883,
598,
279,
2
] |
try { | try { super.sfDeploy(); server = new HttpServer(); jettyHelper.cacheJettyServer(server); jettyhome = sfResolve(jettyhomeRef, jettyhome, true); jettyHelper.cacheJettyHome(jettyhome); enableLogging = sfResolve(ATTR_ENABLE_LOGGING, enableLogging, true); | public void sfDeploy() throws SmartFrogException, RemoteException { try { server = new HttpServer(); jettyHelper.cacheJettyServer(server); jettyhome = sfResolve(jettyhomeRef, jettyhome, true); jettyHelper.cacheJettyHome(jettyhome); enableLogging=sfResolve(ATTR_ENABLE_LOGGING,enableLogging,true); if(enableLogging) { logDir=FileSystem.lookupAbsolutePath(this,JettyIntf.ATTR_LOGDIR,jettyhome,null,true,null); logPattern=sfResolve(JettyIntf.ATTR_LOGPATTERN,"",false); configureLogging(); } super.sfDeploy(); } catch (Exception ex){ throw SmartFrogDeploymentException.forward(ex); } } | 4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/a260716551b89b075903c4bec0b3801cd92dc29c/SFJetty.java/clean/core/components/jetty/src/org/smartfrog/services/jetty/SFJetty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
9033,
10015,
1435,
1216,
19656,
42,
303,
75,
503,
16,
18361,
288,
565,
775,
288,
2240,
18,
21668,
10015,
5621,
1438,
273,
394,
31500,
5621,
525,
22084,
2276,
18,
2493,
46,
22084,
2081,
12,
3567,
1769,
525,
22084,
8712,
273,
9033,
8460,
12,
78,
22084,
8712,
1957,
16,
525,
22084,
8712,
16,
638,
1769,
525,
22084,
2276,
18,
2493,
46,
22084,
8684,
12,
78,
22084,
8712,
1769,
4237,
7735,
273,
9033,
8460,
12,
12043,
67,
29377,
67,
28162,
16,
4237,
7735,
16,
638,
1769,
3639,
1438,
273,
394,
31500,
5621,
3639,
525,
22084,
2276,
18,
2493,
46,
22084,
2081,
12,
3567,
1769,
3639,
525,
22084,
8712,
273,
9033,
8460,
12,
78,
22084,
8712,
1957,
16,
525,
22084,
8712,
16,
638,
1769,
3639,
525,
22084,
2276,
18,
2493,
46,
22084,
8684,
12,
78,
22084,
8712,
1769,
3639,
4237,
7735,
33,
21668,
8460,
12,
12043,
67,
29377,
67,
28162,
16,
7589,
7735,
16,
3767,
1769,
3639,
309,
12,
7589,
7735,
13,
288,
5411,
31101,
33,
11785,
18,
8664,
10368,
743,
12,
2211,
16,
46,
22084,
1702,
74,
18,
12043,
67,
4842,
4537,
16,
78,
22084,
8712,
16,
2011,
16,
3767,
16,
2011,
1769,
5411,
613,
3234,
33,
21668,
8460,
12,
46,
22084,
1702,
74,
18,
12043,
67,
4842,
10831,
10837,
3113,
5743,
1769,
5411,
5068,
7735,
5621,
3639,
289,
3639,
2240,
18,
21668,
10015,
5621,
565,
289,
1044,
261,
503,
431,
15329,
4202,
604,
19656,
42,
303,
75,
6733,
503,
18,
11565,
12,
338,
1769,
565,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
9033,
10015,
1435,
1216,
19656,
42,
303,
75,
503,
16,
18361,
288,
565,
775,
288,
2240,
18,
21668,
10015,
5621,
1438,
273,
394,
31500,
5621,
525,
22084,
2276,
18,
2493,
46,
22084,
2081,
12,
3567,
1769,
525,
22084,
8712,
273,
9033,
8460,
12,
78,
22084,
8712,
1957,
16,
525,
22084,
8712,
16,
638,
1769,
525,
22084,
2276,
18,
2493,
46,
22084,
8684,
12,
78,
22084,
8712,
1769,
4237,
7735,
273,
9033,
8460,
12,
12043,
67,
29377,
67,
28162,
16,
4237,
7735,
16,
638,
1769,
3639,
1438,
273,
394,
31500,
5621,
3639,
525,
22084,
2276,
18,
2493,
46,
22084,
2081,
12,
3567,
1769,
3639,
525,
22084,
8712,
273,
9033,
8460,
12,
78,
22084,
8712,
1957,
16,
525,
2
] |
{ | { | public static byte simplify(OPT_AbstractRegisterPool regpool, OPT_Instruction s) { switch (s.getOpcode()) { //////////////////// // GUARD operations //////////////////// case GUARD_COMBINE_opcode: { OPT_Operand op2 = Binary.getVal2(s); if (op2 instanceof OPT_TrueGuardOperand) { OPT_Operand op1 = Binary.getVal1(s); if (op1 instanceof OPT_TrueGuardOperand) { // BOTH TrueGuards: FOLD Move.mutate(s, GUARD_MOVE, Binary.getClearResult(s), op1); return MOVE_FOLDED; } else { // ONLY OP2 IS TrueGuard: MOVE REDUCE Move.mutate(s, GUARD_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } return UNCHANGED; //////////////////// // TRAP operations //////////////////// case TRAP_IF_opcode: { OPT_Operand op1 = TrapIf.getVal1(s); OPT_Operand op2 = TrapIf.getVal2(s); if (op1.isConstant()) { if (op2.isConstant()) { int willTrap = TrapIf.getCond(s).evaluate(op1, op2); if (willTrap == OPT_ConditionOperand.TRUE) { Trap.mutate(s, TRAP, TrapIf.getClearGuardResult(s), TrapIf.getClearTCode(s)); return TRAP_REDUCED; } else if (willTrap == OPT_ConditionOperand.FALSE) { Move.mutate(s, GUARD_MOVE, TrapIf.getClearGuardResult(s), TG()); return MOVE_FOLDED; } } else { // canonicalize TrapIf.mutate(s, TRAP_IF, TrapIf.getClearGuardResult(s), TrapIf.getClearVal2(s), TrapIf.getClearVal1(s), TrapIf.getClearCond(s).flipOperands(), TrapIf.getClearTCode(s)); } } } return UNCHANGED; case NULL_CHECK_opcode: { OPT_Operand ref = NullCheck.getRef(s); if (ref.isNullConstant()) { Trap.mutate(s, TRAP, NullCheck.getClearGuardResult(s), OPT_TrapCodeOperand.NullPtr()); return TRAP_REDUCED; } else if (ref.isStringConstant()) { Move.mutate(s, GUARD_MOVE, NullCheck.getClearGuardResult(s), TG()); return MOVE_FOLDED; } else if (ref.isAddressConstant()) { if (ref.asAddressConstant().value.isZero()) { Trap.mutate(s, TRAP, NullCheck.getClearGuardResult(s), OPT_TrapCodeOperand.NullPtr()); return TRAP_REDUCED; } else { // Make the slightly suspect assumption that all non-zero address // constants are actually valid pointers. Not necessarily true, // but unclear what else we can do. Move.mutate(s, GUARD_MOVE, NullCheck.getClearGuardResult(s), TG()); return MOVE_FOLDED; } } return UNCHANGED; } case INT_ZERO_CHECK_opcode: { OPT_Operand op = ZeroCheck.getValue(s); if (op.isIntConstant()) { int val = op.asIntConstant().value; if (val == 0) { Trap.mutate(s, TRAP, ZeroCheck.getClearGuardResult(s), OPT_TrapCodeOperand.DivByZero()); return TRAP_REDUCED; } else { Move.mutate(s, GUARD_MOVE, ZeroCheck.getClearGuardResult(s), TG()); return MOVE_FOLDED; } } } return UNCHANGED; case LONG_ZERO_CHECK_opcode: { OPT_Operand op = ZeroCheck.getValue(s); if (op.isLongConstant()) { long val = op.asLongConstant().value; if (val == 0L) { Trap.mutate(s, TRAP, ZeroCheck.getClearGuardResult(s), OPT_TrapCodeOperand.DivByZero()); return TRAP_REDUCED; } else { Move.mutate(s, GUARD_MOVE, ZeroCheck.getClearGuardResult(s), TG()); return MOVE_FOLDED; } } } return UNCHANGED; case CHECKCAST_opcode: { OPT_Operand ref = TypeCheck.getRef(s); if (ref.isNullConstant()) { Empty.mutate(s, NOP); return REDUCED; } else if (ref.isStringConstant()) { s.operator = CHECKCAST_NOTNULL; return simplify(regpool, s); } else { VM_TypeReference lhsType = TypeCheck.getType(s).getTypeRef(); VM_TypeReference rhsType = ref.getType(); byte ans = OPT_ClassLoaderProxy.includesType(lhsType, rhsType); if (ans == OPT_Constants.YES) { Empty.mutate(s, NOP); return REDUCED; } // NOTE: OPT_Constants.NO can't help us because (T)null always succeeds } } return UNCHANGED; case CHECKCAST_NOTNULL_opcode: { OPT_Operand ref = TypeCheck.getRef(s); VM_TypeReference lhsType = TypeCheck.getType(s).getTypeRef(); VM_TypeReference rhsType = ref.getType(); byte ans = OPT_ClassLoaderProxy.includesType(lhsType, rhsType); if (ans == OPT_Constants.YES) { Empty.mutate(s, NOP); return REDUCED; } else if (ans == OPT_Constants.NO) { VM_Type rType = rhsType.peekResolvedType(); if (rType != null && rType.isClassType() && rType.asClass().isFinal()) { // only final (or precise) rhs types can be optimized since rhsType may be conservative Trap.mutate(s, TRAP, null, OPT_TrapCodeOperand.CheckCast()); return TRAP_REDUCED; } } } return UNCHANGED; case INSTANCEOF_opcode: { OPT_Operand ref = InstanceOf.getRef(s); if (ref.isNullConstant()) { Move.mutate(s, INT_MOVE, InstanceOf.getClearResult(s), IC(0)); return MOVE_FOLDED; } else if (ref.isStringConstant()) { s.operator = INSTANCEOF_NOTNULL; return simplify(regpool, s); } VM_TypeReference lhsType = InstanceOf.getType(s).getTypeRef(); VM_TypeReference rhsType = ref.getType(); byte ans = OPT_ClassLoaderProxy.includesType(lhsType, rhsType); // NOTE: OPT_Constants.YES doesn't help because ref may be null and null instanceof T is false if (ans == OPT_Constants.NO) { VM_Type rType = rhsType.peekResolvedType(); if (rType != null && rType.isClassType() && rType.asClass().isFinal()) { // only final (or precise) rhs types can be optimized since rhsType may be conservative Move.mutate(s, INT_MOVE, InstanceOf.getClearResult(s), IC(0)); return MOVE_FOLDED; } } } return UNCHANGED; case INSTANCEOF_NOTNULL_opcode: { OPT_Operand ref = InstanceOf.getRef(s); VM_TypeReference lhsType = InstanceOf.getType(s).getTypeRef(); VM_TypeReference rhsType = ref.getType(); byte ans = OPT_ClassLoaderProxy.includesType(lhsType, rhsType); if (ans == OPT_Constants.YES) { Move.mutate(s, INT_MOVE, InstanceOf.getClearResult(s), IC(1)); return MOVE_FOLDED; } else if (ans == OPT_Constants.NO) { VM_Type rType = rhsType.peekResolvedType(); if (rType != null && rType.isClassType() && rType.asClass().isFinal()) { // only final (or precise) rhs types can be optimized since rhsType may be conservative Move.mutate(s, INT_MOVE, InstanceOf.getClearResult(s), IC(0)); return MOVE_FOLDED; } } } return UNCHANGED; //////////////////// // Conditional moves //////////////////// case INT_COND_MOVE_opcode: { OPT_Operand val1 = CondMove.getVal1(s); OPT_Operand val2 = CondMove.getVal2(s); if (val1.isConstant()) { if (val2.isConstant()) { // BOTH CONSTANTS: FOLD int cond = CondMove.getCond(s).evaluate(val1, val2); if (cond != OPT_ConditionOperand.UNKNOWN) { OPT_Operand val = (cond == OPT_ConditionOperand.TRUE) ? CondMove.getClearTrueValue(s) : CondMove.getClearFalseValue(s); Move.mutate(s, INT_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } else { // Canonicalize by switching operands and fliping code. OPT_Operand tmp = CondMove.getClearVal1(s); CondMove.setVal1(s, CondMove.getClearVal2(s)); CondMove.setVal2(s, tmp); CondMove.getCond(s).flipOperands(); } } OPT_Operand tv = CondMove.getTrueValue(s); OPT_Operand fv = CondMove.getFalseValue(s); if (tv.similar(fv)) { Move.mutate(s, INT_MOVE, CondMove.getClearResult(s), tv); return tv.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } if (tv.isIntConstant() && fv.isIntConstant() && !CondMove.getCond(s).isFLOATINGPOINT()) { int itv = tv.asIntConstant().value; int ifv = fv.asIntConstant().value; OPT_Operator op = null; if(val1.isLong()) { op = BOOLEAN_CMP_LONG; } else if(val1.isFloat()) { op = BOOLEAN_CMP_FLOAT; } else if(val1.isDouble()) { op = BOOLEAN_CMP_DOUBLE; } else { op = BOOLEAN_CMP_INT; } if (itv == 1 && ifv == 0) { BooleanCmp.mutate(s, op, CondMove.getClearResult(s), CondMove.getClearVal1(s), CondMove.getClearVal2(s), CondMove.getClearCond(s), new OPT_BranchProfileOperand()); return REDUCED; } if (itv == 0 && ifv == 1) { BooleanCmp.mutate(s, op, CondMove.getClearResult(s), CondMove.getClearVal1(s), CondMove.getClearVal2(s), CondMove.getClearCond(s).flipCode(), new OPT_BranchProfileOperand()); return REDUCED; } } } return UNCHANGED; case LONG_COND_MOVE_opcode: { OPT_Operand val1 = CondMove.getVal1(s); if (val1.isConstant()) { OPT_Operand val2 = CondMove.getVal2(s); if (val2.isConstant()) { // BOTH CONSTANTS: FOLD int cond = CondMove.getCond(s).evaluate(val1, val2); if (cond != OPT_ConditionOperand.UNKNOWN) { OPT_Operand val = (cond == OPT_ConditionOperand.TRUE) ? CondMove.getClearTrueValue(s) : CondMove.getClearFalseValue(s); Move.mutate(s, LONG_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } else { // Canonicalize by switching operands and fliping code. OPT_Operand tmp = CondMove.getClearVal1(s); CondMove.setVal1(s, CondMove.getClearVal2(s)); CondMove.setVal2(s, tmp); CondMove.getCond(s).flipOperands(); } } if (CondMove.getTrueValue(s).similar(CondMove.getFalseValue(s))) { OPT_Operand val = CondMove.getClearTrueValue(s); Move.mutate(s, LONG_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } return UNCHANGED; case FLOAT_COND_MOVE_opcode: { OPT_Operand val1 = CondMove.getVal1(s); if (val1.isConstant()) { OPT_Operand val2 = CondMove.getVal2(s); if (val2.isConstant()) { // BOTH CONSTANTS: FOLD int cond = CondMove.getCond(s).evaluate(val1, val2); if (cond != OPT_ConditionOperand.UNKNOWN) { OPT_Operand val = (cond == OPT_ConditionOperand.TRUE) ? CondMove.getClearTrueValue(s) : CondMove.getClearFalseValue(s); Move.mutate(s, FLOAT_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } else { // Canonicalize by switching operands and fliping code. OPT_Operand tmp = CondMove.getClearVal1(s); CondMove.setVal1(s, CondMove.getClearVal2(s)); CondMove.setVal2(s, tmp); CondMove.getCond(s).flipOperands(); } } if (CondMove.getTrueValue(s).similar(CondMove.getFalseValue(s))) { OPT_Operand val = CondMove.getClearTrueValue(s); Move.mutate(s, FLOAT_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } return UNCHANGED; case DOUBLE_COND_MOVE_opcode: { OPT_Operand val1 = CondMove.getVal1(s); if (val1.isConstant()) { OPT_Operand val2 = CondMove.getVal2(s); if (val2.isConstant()) { // BOTH CONSTANTS: FOLD int cond = CondMove.getCond(s).evaluate(val1, val2); if (cond != OPT_ConditionOperand.UNKNOWN) { OPT_Operand val = (cond == OPT_ConditionOperand.TRUE) ? CondMove.getClearTrueValue(s) : CondMove.getClearFalseValue(s); Move.mutate(s, DOUBLE_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } else { // Canonicalize by switching operands and fliping code. OPT_Operand tmp = CondMove.getClearVal1(s); CondMove.setVal1(s, CondMove.getClearVal2(s)); CondMove.setVal2(s, tmp); CondMove.getCond(s).flipOperands(); } } if (CondMove.getTrueValue(s).similar(CondMove.getFalseValue(s))) { OPT_Operand val = CondMove.getClearTrueValue(s); Move.mutate(s, DOUBLE_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } return UNCHANGED; case REF_COND_MOVE_opcode: { OPT_Operand val1 = CondMove.getVal1(s); if (val1.isConstant()) { OPT_Operand val2 = CondMove.getVal2(s); if (val2.isConstant()) { // BOTH CONSTANTS: FOLD int cond = CondMove.getCond(s).evaluate(val1, val2); if (cond != OPT_ConditionOperand.UNKNOWN) { OPT_Operand val = (cond == OPT_ConditionOperand.TRUE) ? CondMove.getClearTrueValue(s) : CondMove.getClearFalseValue(s); Move.mutate(s, REF_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } else { // Canonicalize by switching operands and fliping code. OPT_Operand tmp = CondMove.getClearVal1(s); CondMove.setVal1(s, CondMove.getClearVal2(s)); CondMove.setVal2(s, tmp); CondMove.getCond(s).flipOperands(); } } if (CondMove.getTrueValue(s).similar(CondMove.getFalseValue(s))) { OPT_Operand val = CondMove.getClearTrueValue(s); Move.mutate(s, REF_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } return UNCHANGED; case GUARD_COND_MOVE_opcode: { OPT_Operand val1 = CondMove.getVal1(s); if (val1.isConstant()) { OPT_Operand val2 = CondMove.getVal2(s); if (val2.isConstant()) { // BOTH CONSTANTS: FOLD int cond = CondMove.getCond(s).evaluate(val1, val2); if (cond == OPT_ConditionOperand.UNKNOWN) { OPT_Operand val = (cond == OPT_ConditionOperand.TRUE) ? CondMove.getClearTrueValue(s) : CondMove.getClearFalseValue(s); Move.mutate(s, GUARD_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } else { // Canonicalize by switching operands and fliping code. OPT_Operand tmp = CondMove.getClearVal1(s); CondMove.setVal1(s, CondMove.getClearVal2(s)); CondMove.setVal2(s, tmp); CondMove.getCond(s).flipOperands(); } } if (CondMove.getTrueValue(s).similar(CondMove.getFalseValue(s))) { OPT_Operand val = CondMove.getClearTrueValue(s); Move.mutate(s, GUARD_MOVE, CondMove.getClearResult(s), val); return val.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } } return UNCHANGED; //////////////////// // INT ALU operations //////////////////// case BOOLEAN_NOT_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; if (val == 0) { Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC(1)); } else { Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC(0)); } return MOVE_FOLDED; } } return UNCHANGED; case BOOLEAN_CMP_INT_opcode: if (CF_INT) { OPT_Operand op1 = BooleanCmp.getVal1(s); OPT_Operand op2 = BooleanCmp.getVal2(s); if (op1.isConstant()) { if (op2.isConstant()) { // BOTH CONSTANTS: FOLD int cond = BooleanCmp.getCond(s).evaluate(op1, op2); if (cond != OPT_ConditionOperand.UNKNOWN) { Move.mutate(s, INT_MOVE, BooleanCmp.getResult(s), (cond == OPT_ConditionOperand.TRUE) ? IC(1):IC(0)); return MOVE_FOLDED; } } else { // Canonicalize by switching operands and fliping code. OPT_Operand tmp = BooleanCmp.getClearVal1(s); BooleanCmp.setVal1(s, BooleanCmp.getClearVal2(s)); BooleanCmp.setVal2(s, tmp); BooleanCmp.getCond(s).flipOperands(); } } } return UNCHANGED; case BOOLEAN_CMP_ADDR_opcode: if (CF_ADDR) { OPT_Operand op1 = BooleanCmp.getVal1(s); OPT_Operand op2 = BooleanCmp.getVal2(s); if (op1.isConstant()) { if (op2.isConstant()) { // BOTH CONSTANTS: FOLD int cond = BooleanCmp.getCond(s).evaluate(op1, op2); if (cond != OPT_ConditionOperand.UNKNOWN) { Move.mutate(s, REF_MOVE, BooleanCmp.getResult(s), (cond == OPT_ConditionOperand.TRUE) ? IC(1):IC(0)); return MOVE_FOLDED; } } else { // Canonicalize by switching operands and fliping code. OPT_Operand tmp = BooleanCmp.getClearVal1(s); BooleanCmp.setVal1(s, BooleanCmp.getClearVal2(s)); BooleanCmp.setVal2(s, tmp); BooleanCmp.getCond(s).flipOperands(); } } } return UNCHANGED; case INT_ADD_opcode: if (CF_INT) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1 + val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case INT_AND_opcode: if (CF_INT) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1 & val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x & 0 == 0 Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(0)); return MOVE_FOLDED; } if (val2 == -1) { // x & -1 == x & 0xffffffff == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case INT_DIV_opcode: if (CF_INT) { OPT_Operand op2 = GuardedBinary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; if (val2 == 0) { // TODO: This instruction is actually unreachable. // There will be an INT_ZERO_CHECK // guarding this instruction that will result in an // ArithmeticException. We // should probabbly just remove the INT_DIV as dead code. return UNCHANGED; } OPT_Operand op1 = GuardedBinary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, GuardedBinary.getClearResult(s), IC(val1/val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 1) { // x / 1 == x; Move.mutate(s, INT_MOVE, GuardedBinary.getClearResult(s), GuardedBinary.getClearVal1(s)); return MOVE_REDUCED; } // x / c == x >> (log c) if c is power of 2 int power = PowerOf2(val2); if (power != -1) { Binary.mutate(s, INT_SHR, GuardedBinary.getClearResult(s), GuardedBinary.getClearVal1(s), IC(power)); return REDUCED; } } } } return UNCHANGED; case INT_MUL_opcode: if (CF_INT) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1*val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == -1) { // x * -1 == -x Unary.mutate(s, INT_NEG, Binary.getClearResult(s), Binary.getClearVal1(s)); return REDUCED; } if (val2 == 0) { // x * 0 == 0 Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(0)); return MOVE_FOLDED; } if (val2 == 1) { // x * 1 == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } // try to reduce x*c into shift and adds, but only if cost is cheap if (s.getPrev() != null) { // don't attempt to reduce if this instruction isn't // part of a well-formed sequence int cost = 0; for(int i=1; i < 32; i++) { if((val2 & (1 << i)) != 0) { // each 1 requires a shift and add cost++; } } if (cost < 5) { // generate shift and adds OPT_RegisterOperand val1Operand = Binary.getClearVal1(s).asRegister(); OPT_RegisterOperand resultOperand = regpool.makeTempInt(); OPT_Instruction move; if ((val2 & 1) == 1) { // result = val1 * 1 move = Move.create(INT_MOVE, resultOperand, val1Operand); } else { // result = 0 move = Move.create(INT_MOVE, resultOperand, new OPT_IntConstantOperand(0)); } move.copyPosition(s); s.insertBefore(move); for(int i=1; i < 32; i++) { if((val2 & (1 << i)) != 0) { OPT_RegisterOperand tempInt = regpool.makeTempInt(); OPT_Instruction shift = Binary.create(INT_SHL, tempInt, val1Operand.copyRO(), new OPT_IntConstantOperand(i) ); shift.copyPosition(s); s.insertBefore(shift); OPT_Instruction add = Binary.create(INT_ADD, resultOperand.copyRO(), resultOperand.copyRO(), tempInt.copyRO() ); add.copyPosition(s); s.insertBefore(add); } } Move.mutate(s, INT_MOVE, Binary.getClearResult(s), resultOperand.copyRO()); return REDUCED; } } } } } return UNCHANGED; case INT_NEG_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC(-val)); return MOVE_FOLDED; } } return UNCHANGED; case INT_NOT_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC(~val)); return MOVE_FOLDED; } } return UNCHANGED; case INT_OR_opcode: if (CF_INT) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1 | val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == -1) { // x | -1 == x | 0xffffffff == 0xffffffff == -1 Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(-1)); return MOVE_FOLDED; } if (val2 == 0) { // x | 0 == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case INT_REM_opcode: if (CF_INT) { OPT_Operand op2 = GuardedBinary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; if (val2 == 0) { // TODO: This instruction is actually unreachable. // There will be an INT_ZERO_CHECK // guarding this instruction that will result in an // ArithmeticException. We // should probabbly just remove the INT_REM as dead code. return UNCHANGED; } OPT_Operand op1 = GuardedBinary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, GuardedBinary.getClearResult(s), IC(val1%val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if ((val2 == 1)||(val2 == -1)) { // x % 1 == 0 Move.mutate(s, INT_MOVE, GuardedBinary.getClearResult(s), IC(0)); return MOVE_FOLDED; } // x % c == x & (c-1) if c is power of 2 int power = PowerOf2(val2); if (power != -1) { Binary.mutate(s, INT_AND, GuardedBinary.getClearResult(s), GuardedBinary.getClearVal1(s), IC(val2-1)); return REDUCED; } } } } return UNCHANGED; case INT_SHL_opcode: if (CF_INT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1 << val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x << 0 == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case INT_SHR_opcode: if (CF_INT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1 >> val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x >> 0 == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case INT_SUB_opcode: if (CF_INT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1 - val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x - 0 == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } // x - c = x + -c // prefer adds, since some architectures have addi but not subi Binary.mutate(s, INT_ADD, Binary.getClearResult(s), Binary.getClearVal1(s), IC(-val2)); return REDUCED; } } } return UNCHANGED; case INT_USHR_opcode: if (CF_INT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1 >>> val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x >>> 0 == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case INT_XOR_opcode: if (CF_INT) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1 ^ val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == -1) { // x ^ -1 == x ^ 0xffffffff = ~x Unary.mutate(s, INT_NOT, Binary.getClearResult(s), Binary.getClearVal1(s)); return REDUCED; } if (val2 == 0) { // x ^ 0 == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; //////////////////// // WORD ALU operations //////////////////// case REF_ADD_opcode: if (CF_ADDR) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isConstant()) { Address val2 = getAddressValue(op2); OPT_Operand op1 = Binary.getVal1(s); if (op1.isConstant()) { // BOTH CONSTANTS: FOLD Address val1 = getAddressValue(op1); Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(val1.add(val2.toWord().toOffset()))); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2.isZero()) { // x + 0 == x if (op1.isIntLike()) { Unary.mutate(s, INT_2ADDRSigExt, Binary.getClearResult(s), Binary.getClearVal1(s)); } else { Move.mutate(s, REF_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); } return MOVE_REDUCED; } } } } return UNCHANGED; case REF_AND_opcode: if (CF_ADDR) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isAddressConstant()) { Word val2 = op2.asAddressConstant().value.toWord(); OPT_Operand op1 = Binary.getVal1(s); if (op1.isAddressConstant()) { // BOTH CONSTANTS: FOLD Word val1 = op1.asAddressConstant().value.toWord(); Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(val1.and(val2).toAddress())); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2.isZero()) { // x & 0 == 0 Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(Address.zero())); return MOVE_FOLDED; } if (val2.isMax()) { // x & -1 == x & 0xffffffff == x Move.mutate(s, REF_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case REF_SHL_opcode: if (CF_ADDR) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isAddressConstant()) { // BOTH CONSTANTS: FOLD Word val1 = op1.asAddressConstant().value.toWord(); Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(val1.lsh(val2).toAddress())); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x << 0 == x Move.mutate(s, REF_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case REF_SHR_opcode: if (CF_ADDR) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isAddressConstant()) { // BOTH CONSTANTS: FOLD Word val1 = op1.asAddressConstant().value.toWord(); Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(val1.rsha(val2).toAddress())); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x >> 0 == x Move.mutate(s, REF_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case REF_NOT_opcode: if (CF_ADDR) { OPT_Operand op = Unary.getVal(s); if (op.isAddressConstant()) { // CONSTANT: FOLD Word val = op.asAddressConstant().value.toWord(); Move.mutate(s, REF_MOVE, Unary.getClearResult(s), AC(val.not().toAddress())); return MOVE_FOLDED; } } return UNCHANGED; case REF_OR_opcode: if (CF_ADDR) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isAddressConstant()) { Word val2 = op2.asAddressConstant().value.toWord(); OPT_Operand op1 = Binary.getVal1(s); if (op1.isAddressConstant()) { // BOTH CONSTANTS: FOLD Word val1 = op1.asAddressConstant().value.toWord(); Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(val1.or(val2).toAddress())); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2.isMax()) { // x | -1 == x | 0xffffffff == 0xffffffff == -1 Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(Address.max())); return MOVE_FOLDED; } if (val2.isZero()) { // x | 0 == x Move.mutate(s, REF_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case REF_SUB_opcode: if (CF_ADDR) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isConstant()) { Address val2 = getAddressValue(op2); OPT_Operand op1 = Binary.getVal1(s); if (op1.isConstant()) { // BOTH CONSTANTS: FOLD Address val1 = getAddressValue(op1); Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(val1.sub(val2.toWord().toOffset()))); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2.isZero()) { // x - 0 == x if (op1.isIntLike()) { Unary.mutate(s, INT_2ADDRSigExt, Binary.getClearResult(s), Binary.getClearVal1(s)); } else { Move.mutate(s, REF_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); } return MOVE_REDUCED; } // x - c = x + -c // prefer adds, since some architectures have addi but not subi Binary.mutate(s, REF_ADD, Binary.getClearResult(s), Binary.getClearVal1(s), AC(Address.zero().sub(val2.toWord().toOffset()))); return REDUCED; } } } return UNCHANGED; case REF_USHR_opcode: if (CF_ADDR) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isAddressConstant()) { // BOTH CONSTANTS: FOLD Word val1 = op1.asAddressConstant().value.toWord(); Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(val1.rshl(val2).toAddress())); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x >>> 0 == x Move.mutate(s, REF_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case REF_XOR_opcode: if (CF_ADDR) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isAddressConstant()) { Word val2 = op2.asAddressConstant().value.toWord(); OPT_Operand op1 = Binary.getVal1(s); if (op1.isAddressConstant()) { // BOTH CONSTANTS: FOLD Word val1 = op1.asAddressConstant().value.toWord(); Move.mutate(s, REF_MOVE, Binary.getClearResult(s), AC(val1.xor(val2).toAddress())); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2.isMax()) { // x ^ -1 == x ^ 0xffffffff = ~x Unary.mutate(s, REF_NOT, Binary.getClearResult(s), Binary.getClearVal1(s)); return REDUCED; } if (val2.isZero()) { // x ^ 0 == x Move.mutate(s, REF_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; //////////////////// // LONG ALU operations //////////////////// case LONG_ADD_opcode: if (CF_LONG) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isLongConstant()) { long val2 = op2.asLongConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1+val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0L) { // x + 0 == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case LONG_AND_opcode: if (CF_LONG) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isLongConstant()) { long val2 = op2.asLongConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1 & val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0L) { // x & 0L == 0L Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(0L)); return MOVE_FOLDED; } if (val2 == -1) { // x & -1L == x & 0xff...ff == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case LONG_CMP_opcode: if (CF_LONG) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isLongConstant()) { OPT_Operand op1 = Binary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; long val2 = op2.asLongConstant().value; int result = (val1 > val2) ? 1 : ((val1 == val2) ? 0 : -1); Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(result)); return MOVE_FOLDED; } } } return UNCHANGED; case LONG_DIV_opcode: if (CF_LONG) { OPT_Operand op2 = GuardedBinary.getVal2(s); if (op2.isLongConstant()) { long val2 = op2.asLongConstant().value; if (val2 == 0L) { // TODO: This instruction is actually unreachable. // There will be a LONG_ZERO_CHECK // guarding this instruction that will result in an // ArithmeticException. We // should probabbly just remove the LONG_DIV as dead code. return UNCHANGED; } OPT_Operand op1 = GuardedBinary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, GuardedBinary.getClearResult(s), LC(val1/val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 1L) { // x / 1L == x Move.mutate(s, LONG_MOVE, GuardedBinary.getClearResult(s), GuardedBinary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case LONG_MUL_opcode: if (CF_LONG) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isLongConstant()) { long val2 = op2.asLongConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1*val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == -1L) { // x * -1 == -x Move.mutate(s, LONG_NEG, Binary.getClearResult(s), Binary.getClearVal1(s)); return REDUCED; } if (val2 == 0L) { // x * 0L == 0L Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(0L)); return MOVE_FOLDED; } if (val2 == 1L) { // x * 1L == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case LONG_NEG_opcode: if (CF_LONG) { OPT_Operand op = Unary.getVal(s); if (op.isLongConstant()) { // CONSTANT: FOLD long val = op.asLongConstant().value; Move.mutate(s, LONG_MOVE, Unary.getClearResult(s), LC(-val)); return MOVE_FOLDED; } } return UNCHANGED; case LONG_NOT_opcode: if (CF_LONG) { OPT_Operand op = Unary.getVal(s); if (op.isLongConstant()) { long val = op.asLongConstant().value; // CONSTANT: FOLD Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(~val)); return MOVE_FOLDED; } } return UNCHANGED; case LONG_OR_opcode: if (CF_LONG) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isLongConstant()) { long val2 = op2.asLongConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1 | val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0L) { // x | 0L == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } if (val2 == -1L) { // x | -1L == x | 0xff..ff == 0xff..ff == -1L Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(-1L)); return MOVE_FOLDED; } } } } return UNCHANGED; case LONG_REM_opcode: if (CF_LONG) { OPT_Operand op2 = GuardedBinary.getVal2(s); if (op2.isLongConstant()) { long val2 = op2.asLongConstant().value; if (val2 == 0L) { // TODO: This instruction is actually unreachable. // There will be a LONG_ZERO_CHECK // guarding this instruction that will result in an // ArithmeticException. We // should probabbly just remove the LONG_REM as dead code. return UNCHANGED; } OPT_Operand op1 = GuardedBinary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, GuardedBinary.getClearResult(s), LC(val1%val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 1L) { // x % 1L == 0 Move.mutate(s, LONG_MOVE, GuardedBinary.getClearResult(s), LC(0)); return MOVE_FOLDED; } } } } return UNCHANGED; case LONG_SHL_opcode: if (CF_LONG) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1 << val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x << 0 == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case LONG_SHR_opcode: if (CF_LONG) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1 >> val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x >> 0L == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case LONG_SUB_opcode: if (CF_LONG) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isLongConstant()) { long val2 = op2.asLongConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1-val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0L) { // x - 0 == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } //-#if RVM_FOR_64_ADDR // x - c = x + -c // prefer adds, since some architectures have addi but not subi Binary.mutate(s, LONG_ADD, Binary.getClearResult(s), Binary.getClearVal1(s), LC(-val2)); return REDUCED; //-#endif } } } return UNCHANGED; case LONG_USHR_opcode: if (CF_LONG) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1 >>> val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x >>> 0L == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; case LONG_XOR_opcode: if (CF_LONG) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isLongConstant()) { long val2 = op2.asLongConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1 ^ val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == -1L) { // x ^ -1L == x ^ 0xff..ff = ~x Unary.mutate(s, LONG_NOT, Binary.getClearResult(s), Binary.getClearVal1(s)); return REDUCED; } if (val2 == 0L) { // x ^ 0L == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; //////////////////// // FLOAT ALU operations //////////////////// case FLOAT_ADD_opcode: if (CF_FLOAT) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isFloatConstant()) { float val2 = op2.asFloatConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isFloatConstant()) { // BOTH CONSTANTS: FOLD float val1 = op1.asFloatConstant().value; Move.mutate(s, FLOAT_MOVE, Binary.getClearResult(s), FC(val1 + val2)); return MOVE_FOLDED; } if (val2 == 0.0f) { // x + 0.0 is x (even is x is a Nan). Move.mutate(s, FLOAT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } return UNCHANGED; case FLOAT_CMPG_opcode: if (CF_INT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isFloatConstant()) { OPT_Operand op1 = Binary.getVal1(s); if (op1.isFloatConstant()) { // BOTH CONSTANTS: FOLD float val1 = op1.asFloatConstant().value; float val2 = op2.asFloatConstant().value; int result = (val1 < val2) ? -1 : ((val1 == val2) ? 0 : 1); Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(result)); return MOVE_FOLDED; } } } return UNCHANGED; case FLOAT_CMPL_opcode: if (CF_INT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isFloatConstant()) { OPT_Operand op1 = Binary.getVal1(s); if (op1.isFloatConstant()) { // BOTH CONSTANTS: FOLD float val1 = op1.asFloatConstant().value; float val2 = op2.asFloatConstant().value; int result = (val1 > val2) ? 1 : ((val1 == val2) ? 0 : -1); Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(result)); return MOVE_FOLDED; } } } return UNCHANGED; case FLOAT_DIV_opcode: if (CF_FLOAT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isFloatConstant()) { OPT_Operand op1 = Binary.getVal1(s); if (op1.isFloatConstant()) { // BOTH CONSTANTS: FOLD float val1 = op1.asFloatConstant().value; float val2 = op2.asFloatConstant().value; Move.mutate(s, FLOAT_MOVE, Binary.getClearResult(s), FC(val1/val2)); return MOVE_FOLDED; } } } return UNCHANGED; case FLOAT_MUL_opcode: if (CF_FLOAT) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isFloatConstant()) { float val2 = op2.asFloatConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isFloatConstant()) { // BOTH CONSTANTS: FOLD float val1 = op1.asFloatConstant().value; Move.mutate(s, FLOAT_MOVE, Binary.getClearResult(s), FC(val1*val2)); return MOVE_FOLDED; } if (val2 == 1.0f) { // x * 1.0 is x, even if x is a NaN Move.mutate(s, FLOAT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } return UNCHANGED; case FLOAT_NEG_opcode: if (CF_FLOAT) { OPT_Operand op = Unary.getVal(s); if (op.isFloatConstant()) { // CONSTANT: FOLD float val = op.asFloatConstant().value; Move.mutate(s, FLOAT_MOVE, Unary.getClearResult(s), FC(-val)); return MOVE_FOLDED; } } return UNCHANGED; case FLOAT_REM_opcode: if (CF_FLOAT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isFloatConstant()) { OPT_Operand op1 = Binary.getVal1(s); if (op1.isFloatConstant()) { // BOTH CONSTANTS: FOLD float val1 = op1.asFloatConstant().value; float val2 = op2.asFloatConstant().value; Move.mutate(s, FLOAT_MOVE, Binary.getClearResult(s), FC(val1%val2)); return MOVE_FOLDED; } } } return UNCHANGED; case FLOAT_SUB_opcode: if (CF_FLOAT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isFloatConstant()) { float val2 = op2.asFloatConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isFloatConstant()) { // BOTH CONSTANTS: FOLD float val1 = op1.asFloatConstant().value; Move.mutate(s, FLOAT_MOVE, Binary.getClearResult(s), FC(val1 - val2)); return MOVE_FOLDED; } if (val2 == 0.0f) { // x - 0.0 is x, even if x is a NaN Move.mutate(s, FLOAT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } return UNCHANGED; //////////////////// // DOUBLE ALU operations //////////////////// case DOUBLE_ADD_opcode: if (CF_DOUBLE) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isDoubleConstant()) { double val2 = op2.asDoubleConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isDoubleConstant()) { // BOTH CONSTANTS: FOLD double val1 = op1.asDoubleConstant().value; Move.mutate(s, DOUBLE_MOVE, Binary.getClearResult(s), DC(val1 + val2)); return MOVE_FOLDED; } if (val2 == 0.0) { // x + 0.0 is x, even if x is a NaN Move.mutate(s, DOUBLE_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } return UNCHANGED; case DOUBLE_CMPG_opcode: if (CF_INT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isDoubleConstant()) { OPT_Operand op1 = Binary.getVal1(s); if (op1.isDoubleConstant()) { // BOTH CONSTANTS: FOLD double val1 = op1.asDoubleConstant().value; double val2 = op2.asDoubleConstant().value; int result = (val1 < val2) ? -1 : ((val1 == val2) ? 0 : 1); Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(result)); return MOVE_FOLDED; } } } return UNCHANGED; case DOUBLE_CMPL_opcode: if (CF_INT) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isDoubleConstant()) { OPT_Operand op1 = Binary.getVal1(s); if (op1.isDoubleConstant()) { // BOTH CONSTANTS: FOLD double val1 = op1.asDoubleConstant().value; double val2 = op2.asDoubleConstant().value; int result = (val1 > val2) ? 1 : ((val1 == val2) ? 0 : -1); Move.mutate(s, DOUBLE_MOVE, Binary.getClearResult(s), IC(result)); return MOVE_FOLDED; } } } return UNCHANGED; case DOUBLE_DIV_opcode: if (CF_DOUBLE) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isDoubleConstant()) { OPT_Operand op1 = Binary.getVal1(s); if (op1.isDoubleConstant()) { // BOTH CONSTANTS: FOLD double val1 = op1.asDoubleConstant().value; double val2 = op2.asDoubleConstant().value; Move.mutate(s, DOUBLE_MOVE, Binary.getClearResult(s), DC(val1/val2)); return MOVE_FOLDED; } } } return UNCHANGED; case DOUBLE_MUL_opcode: if (CF_DOUBLE) { canonicalizeCommutativeOperator(s); OPT_Operand op2 = Binary.getVal2(s); if (op2.isDoubleConstant()) { double val2 = op2.asDoubleConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isDoubleConstant()) { // BOTH CONSTANTS: FOLD double val1 = op1.asDoubleConstant().value; Move.mutate(s, DOUBLE_MOVE, Binary.getClearResult(s), DC(val1*val2)); return MOVE_FOLDED; } if (val2 == 1.0) { // x * 1.0 is x even if x is a NaN Move.mutate(s, DOUBLE_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } return UNCHANGED; case DOUBLE_NEG_opcode: if (CF_DOUBLE) { OPT_Operand op = Unary.getVal(s); if (op.isDoubleConstant()) { // CONSTANT: FOLD double val = op.asDoubleConstant().value; Move.mutate(s, DOUBLE_MOVE, Unary.getClearResult(s), DC(-val)); return MOVE_FOLDED; } } return UNCHANGED; case DOUBLE_REM_opcode: if (CF_DOUBLE) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isDoubleConstant()) { OPT_Operand op1 = Binary.getVal1(s); if (op1.isDoubleConstant()) { // BOTH CONSTANTS: FOLD double val1 = op1.asDoubleConstant().value; double val2 = op2.asDoubleConstant().value; Move.mutate(s, DOUBLE_MOVE, Binary.getClearResult(s), DC(val1%val2)); return MOVE_FOLDED; } } } return UNCHANGED; case DOUBLE_SUB_opcode: if (CF_DOUBLE) { OPT_Operand op2 = Binary.getVal2(s); if (op2.isDoubleConstant()) { double val2 = op2.asDoubleConstant().value; OPT_Operand op1 = Binary.getVal1(s); if (op1.isDoubleConstant()) { // BOTH CONSTANTS: FOLD double val1 = op1.asDoubleConstant().value; Move.mutate(s, DOUBLE_MOVE, Binary.getClearResult(s), DC(val1 - val2)); return MOVE_FOLDED; } if (val2 == 0.0) { // x - 0.0 is x, even if x is a NaN Move.mutate(s, DOUBLE_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } return UNCHANGED; //////////////////// // CONVERSION operations //////////////////// case DOUBLE_2FLOAT_opcode: if (CF_FLOAT) { OPT_Operand op = Unary.getVal(s); if (op.isDoubleConstant()) { // CONSTANT: FOLD double val = op.asDoubleConstant().value; Move.mutate(s, FLOAT_MOVE, Unary.getClearResult(s), FC((float)val)); return MOVE_FOLDED; } } return UNCHANGED; case DOUBLE_2INT_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isDoubleConstant()) { // CONSTANT: FOLD double val = op.asDoubleConstant().value; Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC((int)val)); return MOVE_FOLDED; } } return UNCHANGED; case DOUBLE_2LONG_opcode: if (CF_LONG) { OPT_Operand op = Unary.getVal(s); if (op.isDoubleConstant()) { // CONSTANT: FOLD double val = op.asDoubleConstant().value; Move.mutate(s, LONG_MOVE, Unary.getClearResult(s), LC((long)val)); return MOVE_FOLDED; } } return UNCHANGED; case DOUBLE_AS_LONG_BITS_opcode: if (CF_LONG) { OPT_Operand op = Unary.getVal(s); if (op.isDoubleConstant()) { // CONSTANT: FOLD double val = op.asDoubleConstant().value; Move.mutate(s, LONG_MOVE, Unary.getClearResult(s), LC(Double.doubleToLongBits(val))); return MOVE_FOLDED; } } return UNCHANGED; case INT_2DOUBLE_opcode: if (CF_DOUBLE) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, DOUBLE_MOVE, Unary.getClearResult(s), DC((double)val)); return MOVE_FOLDED; } } return UNCHANGED; case INT_2BYTE_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC((byte)val)); return MOVE_FOLDED; } } return UNCHANGED; case INT_2USHORT_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC((char)val)); return MOVE_FOLDED; } } return UNCHANGED; case INT_2FLOAT_opcode: if (CF_FLOAT) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, FLOAT_MOVE, Unary.getClearResult(s), FC((float)val)); return MOVE_FOLDED; } } return UNCHANGED; case INT_2LONG_opcode: if (CF_LONG) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, LONG_MOVE, Unary.getClearResult(s), LC((long)val)); return MOVE_FOLDED; } } return UNCHANGED; case INT_2ADDRSigExt_opcode: if (CF_ADDR) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, REF_MOVE, Unary.getClearResult(s), AC(Address.fromIntSignExtend(val))); return MOVE_FOLDED; } } return UNCHANGED; case INT_2ADDRZerExt_opcode: if (CF_ADDR) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, REF_MOVE, Unary.getClearResult(s), AC(Address.fromIntZeroExtend(val))); return MOVE_FOLDED; } } return UNCHANGED; //-#if RVM_FOR_64_ADDR case LONG_2ADDR_opcode: if (CF_ADDR) { OPT_Operand op = Unary.getVal(s); if (op.isLongConstant()) { // CONSTANT: FOLD long val = op.asLongConstant().value; Move.mutate(s, REF_MOVE, Unary.getClearResult(s), AC(Address.fromLong(val))); return MOVE_FOLDED; } } return UNCHANGED; //-#endif case INT_2SHORT_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC((short)val)); return MOVE_FOLDED; } } return UNCHANGED; case INT_BITS_AS_FLOAT_opcode: if (CF_FLOAT) { OPT_Operand op = Unary.getVal(s); if (op.isIntConstant()) { // CONSTANT: FOLD int val = op.asIntConstant().value; Move.mutate(s, FLOAT_MOVE, Unary.getClearResult(s), FC(Float.intBitsToFloat(val))); return MOVE_FOLDED; } } return UNCHANGED; case ADDR_2INT_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isAddressConstant()) { // CONSTANT: FOLD Address val = op.asAddressConstant().value; Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC(val.toInt())); return MOVE_FOLDED; } } return UNCHANGED; case ADDR_2LONG_opcode: if (CF_LONG) { OPT_Operand op = Unary.getVal(s); if (op.isAddressConstant()) { // CONSTANT: FOLD Address val = op.asAddressConstant().value; Move.mutate(s, LONG_MOVE, Unary.getClearResult(s), LC(val.toLong())); return MOVE_FOLDED; } } return UNCHANGED; case FLOAT_2DOUBLE_opcode: if (CF_DOUBLE) { OPT_Operand op = Unary.getVal(s); if (op.isFloatConstant()) { // CONSTANT: FOLD float val = op.asFloatConstant().value; Move.mutate(s, DOUBLE_MOVE, Unary.getClearResult(s), DC((double)val)); return MOVE_FOLDED; } } return UNCHANGED; case FLOAT_2INT_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isFloatConstant()) { // CONSTANT: FOLD float val = op.asFloatConstant().value; Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC((int)val)); return MOVE_FOLDED; } } return UNCHANGED; case FLOAT_2LONG_opcode: if (CF_LONG) { OPT_Operand op = Unary.getVal(s); if (op.isFloatConstant()) { // CONSTANT: FOLD float val = op.asFloatConstant().value; Move.mutate(s, LONG_MOVE, Unary.getClearResult(s), LC((long)val)); return MOVE_FOLDED; } } return UNCHANGED; case FLOAT_AS_INT_BITS_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isFloatConstant()) { // CONSTANT: FOLD float val = op.asFloatConstant().value; Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC(Float.floatToIntBits(val))); return MOVE_FOLDED; } } return UNCHANGED; case LONG_2FLOAT_opcode: if (CF_FLOAT) { OPT_Operand op = Unary.getVal(s); if (op.isLongConstant()) { // CONSTANT: FOLD long val = op.asLongConstant().value; Move.mutate(s, FLOAT_MOVE, Unary.getClearResult(s), FC((float)val)); return MOVE_FOLDED; } } return UNCHANGED; case LONG_2INT_opcode: if (CF_INT) { OPT_Operand op = Unary.getVal(s); if (op.isLongConstant()) { // CONSTANT: FOLD long val = op.asLongConstant().value; Move.mutate(s, INT_MOVE, Unary.getClearResult(s), IC((int)val)); return MOVE_FOLDED; } } return UNCHANGED; case LONG_2DOUBLE_opcode: if (CF_DOUBLE) { OPT_Operand op = Unary.getVal(s); if (op.isLongConstant()) { // CONSTANT: FOLD long val = op.asLongConstant().value; Move.mutate(s, DOUBLE_MOVE, Unary.getClearResult(s), DC((double)val)); return MOVE_FOLDED; } } return UNCHANGED; case LONG_BITS_AS_DOUBLE_opcode: if (CF_DOUBLE) { OPT_Operand op = Unary.getVal(s); if (op.isLongConstant()) { // CONSTANT: FOLD long val = op.asLongConstant().value; Move.mutate(s, DOUBLE_MOVE, Unary.getClearResult(s), DC(Double.longBitsToDouble(val))); return MOVE_FOLDED; } } return UNCHANGED; default: return UNCHANGED; } } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3d1fe134d942857621d3e80201496ec9880c1446/OPT_Simplifier.java/clean/rvm/src/vm/compilers/optimizing/optimizations/local/OPT_Simplifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1160,
16499,
12,
15620,
67,
7469,
3996,
2864,
960,
6011,
16,
16456,
67,
11983,
272,
13,
288,
565,
1620,
261,
87,
18,
588,
22808,
10756,
288,
1377,
368,
3517,
759,
1377,
368,
611,
57,
8085,
5295,
1377,
368,
3517,
759,
565,
648,
611,
57,
8085,
67,
4208,
38,
3740,
67,
556,
710,
30,
1377,
288,
3639,
16456,
67,
10265,
1061,
22,
273,
7896,
18,
588,
3053,
22,
12,
87,
1769,
3639,
309,
261,
556,
22,
1276,
16456,
67,
5510,
16709,
10265,
13,
288,
1850,
16456,
67,
10265,
1061,
21,
273,
7896,
18,
588,
3053,
21,
12,
87,
1769,
1850,
309,
261,
556,
21,
1276,
16456,
67,
5510,
16709,
10265,
13,
288,
5411,
368,
29370,
1053,
6099,
14727,
30,
478,
11846,
5411,
9933,
18,
10735,
340,
12,
87,
16,
611,
57,
8085,
67,
16537,
16,
7896,
18,
588,
9094,
1253,
12,
87,
3631,
1061,
21,
1769,
5411,
327,
16070,
3412,
67,
42,
1741,
7660,
31,
1850,
289,
469,
288,
5411,
368,
20747,
7247,
22,
4437,
1053,
16709,
30,
16070,
3412,
14411,
57,
1441,
5411,
9933,
18,
10735,
340,
12,
87,
16,
611,
57,
8085,
67,
16537,
16,
7896,
18,
588,
9094,
1253,
12,
87,
3631,
7682,
7896,
18,
588,
9094,
3053,
21,
12,
87,
10019,
5411,
327,
16070,
3412,
67,
5879,
57,
23552,
31,
1850,
289,
3639,
289,
1377,
289,
1377,
327,
5019,
24435,
31,
1377,
368,
3517,
759,
1377,
368,
4235,
2203,
5295,
1377,
368,
3517,
759,
565,
648,
4235,
2203,
67,
5501,
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,
1071,
760,
1160,
16499,
12,
15620,
67,
7469,
3996,
2864,
960,
6011,
16,
16456,
67,
11983,
272,
13,
288,
565,
1620,
261,
87,
18,
588,
22808,
10756,
288,
1377,
368,
3517,
759,
1377,
368,
611,
57,
8085,
5295,
1377,
368,
3517,
759,
565,
648,
611,
57,
8085,
67,
4208,
38,
3740,
67,
556,
710,
30,
1377,
288,
3639,
16456,
67,
10265,
1061,
22,
273,
7896,
18,
588,
3053,
22,
12,
87,
1769,
3639,
309,
261,
556,
22,
1276,
16456,
67,
5510,
16709,
10265,
13,
288,
1850,
16456,
67,
10265,
1061,
21,
273,
7896,
18,
588,
3053,
21,
12,
87,
1769,
1850,
309,
261,
556,
21,
1276,
16456,
67,
5510,
16709,
10265,
13,
288,
5411,
368,
29370,
1053,
6099,
2
] |
iVisited.accept(_Payload); | _Payload.visitOrNode(iVisited); | public void visitOrNode(OrNode iVisited) { iVisited.getFirstNode().accept(this); iVisited.accept(_Payload); iVisited.getSecondNode().accept(this); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/buggy/org/jruby/nodes/visitor/DefaultIteratorVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1162,
907,
12,
1162,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
588,
3759,
907,
7675,
9436,
12,
2211,
1769,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
202,
77,
30019,
18,
588,
8211,
907,
7675,
9436,
12,
2211,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1162,
907,
12,
1162,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
588,
3759,
907,
7675,
9436,
12,
2211,
1769,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
202,
77,
30019,
18,
588,
8211,
907,
7675,
9436,
12,
2211,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
response.appendContentString("new Ajax.PeriodicalUpdater('" + id + "', $(" + id + ").updateUrl, "); | response.appendContentString("new Ajax.PeriodicalUpdater('" + id + "', $(" + id + ").getAttribute('updateUrl'), "); | public void appendToResponse(WOResponse response, WOContext context) { super.appendToResponse(response, context); String id = containerID(); NSDictionary options = createAjaxOptions(); response.appendContentString("<script type = \"text/javascript\" language = \"javascript\"><!--\n"); if (canGetValueForBinding("frequency")) { response.appendContentString("new Ajax.PeriodicalUpdater('" + id + "', $(" + id + ").updateUrl, "); AjaxOptions.appendToResponse(options, response, context); response.appendContentString(");"); } if (canGetValueForBinding("observeFieldID")) { String observeFieldID = (String)valueForBinding("observeFieldID"); response.appendContentString("new Form.Element.Observer($('" + observeFieldID + "'), 1, function(element, value) {"); NSMutableDictionary observerOptions = new NSMutableDictionary(); observerOptions.setObjectForKey("true", "asynchronous"); // We need to cheat and make the WOForm that contains the form action appear to have been // submitted. So we grab the action url, pull off the element ID from its action URL // and pass that in as FORCE_FORM_SUBMITTED_KEY, which is processed by ERXWOForm just like // senderID is on the real WOForm. Unfortunately we can't hook into the real WOForm to do // this :( response.appendContentString("var formAction = $('" + observeFieldID + "').form.action;"); response.appendContentString("var senderID = formAction.substring(formAction.indexOf('.', formAction.lastIndexOf('/')) + 1);"); StringBuffer parameters = new StringBuffer(); parameters.append("escape($('" + observeFieldID + "').name) + '=' + escape($('" + observeFieldID + "').value) + '"); parameters.append("&"); parameters.append(AjaxUtils.FORCE_FORM_SUBMITTED_KEY + "=' + senderID + '"); parameters.append("'"); observerOptions.setObjectForKey(parameters.toString(), "parameters"); response.appendContentString("new Ajax.Updater('" + id + "', $('" + id + "').updateUrl, "); AjaxOptions.appendToResponse(observerOptions, response, context); response.appendContentString(") });"); } response.appendContentString("function " + id + "Update() { new Ajax.Updater('" + id + "', $(" + id + ").updateUrl, "); AjaxOptions.appendToResponse(options, response, context); response.appendContentString("); }"); response.appendContentString("//--></script>"); } | 17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/1e76b2a5d1c9433769088f00f0c2f73ac9f3ad24/AjaxUpdateContainer.java/clean/Ajax/Ajax/Sources/er/ajax/AjaxUpdateContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16022,
1064,
12,
59,
51,
1064,
766,
16,
678,
51,
1042,
819,
13,
288,
1377,
2240,
18,
6923,
774,
1064,
12,
2740,
16,
819,
1769,
1377,
514,
612,
273,
24257,
5621,
5411,
423,
9903,
3192,
702,
273,
752,
13443,
1320,
5621,
5411,
766,
18,
6923,
1350,
780,
2932,
32,
4263,
618,
273,
1239,
955,
19,
11242,
2412,
2653,
273,
1239,
11242,
2412,
4438,
22772,
64,
82,
8863,
1377,
309,
261,
4169,
967,
620,
1290,
5250,
2932,
14092,
6,
3719,
288,
3639,
766,
18,
6923,
1350,
780,
2932,
2704,
18772,
18,
5027,
1706,
15305,
22076,
397,
612,
397,
14912,
271,
2932,
397,
612,
397,
315,
2934,
588,
1499,
2668,
2725,
1489,
19899,
315,
1769,
3639,
18772,
1320,
18,
6923,
774,
1064,
12,
2116,
16,
766,
16,
819,
1769,
3639,
766,
18,
6923,
1350,
780,
2932,
1769,
8863,
1377,
289,
5411,
309,
261,
4169,
967,
620,
1290,
5250,
2932,
12199,
537,
974,
734,
6,
3719,
288,
3639,
514,
19389,
974,
734,
273,
261,
780,
13,
1132,
1290,
5250,
2932,
12199,
537,
974,
734,
8863,
3639,
766,
18,
6923,
1350,
780,
2932,
2704,
2748,
18,
1046,
18,
11048,
4372,
22076,
397,
19389,
974,
734,
397,
2491,
3631,
404,
16,
445,
12,
2956,
16,
460,
13,
288,
8863,
3639,
423,
7303,
3050,
10905,
9655,
1320,
273,
394,
423,
7303,
3050,
10905,
5621,
3639,
9655,
1320,
18,
542,
921,
19759,
2932,
3767,
3113,
315,
345,
7121,
8863,
7734,
368,
1660,
1608,
358,
19315,
270,
471,
1221,
326,
678,
51,
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,
16022,
1064,
12,
59,
51,
1064,
766,
16,
678,
51,
1042,
819,
13,
288,
1377,
2240,
18,
6923,
774,
1064,
12,
2740,
16,
819,
1769,
1377,
514,
612,
273,
24257,
5621,
5411,
423,
9903,
3192,
702,
273,
752,
13443,
1320,
5621,
5411,
766,
18,
6923,
1350,
780,
2932,
32,
4263,
618,
273,
1239,
955,
19,
11242,
2412,
2653,
273,
1239,
11242,
2412,
4438,
22772,
64,
82,
8863,
1377,
309,
261,
4169,
967,
620,
1290,
5250,
2932,
14092,
6,
3719,
288,
3639,
766,
18,
6923,
1350,
780,
2932,
2704,
18772,
18,
5027,
1706,
15305,
22076,
397,
612,
397,
14912,
271,
2932,
397,
612,
397,
315,
2934,
588,
1499,
2668,
2725,
1489,
19899,
315,
1769,
3639,
18772,
1320,
2
] |
loadPlugins(MiscUtilities.constructPath(jEditHome,"jars")); | { addPluginJARsFromDirectory(MiscUtilities.constructPath( jEditHome,"jars")); } | private static void initPlugins() { if(jEditHome != null) loadPlugins(MiscUtilities.constructPath(jEditHome,"jars")); if(settingsDirectory != null) { File jarsDirectory = new File(settingsDirectory,"jars"); if(!jarsDirectory.exists()) jarsDirectory.mkdir(); loadPlugins(jarsDirectory.getPath()); } } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/5a2b3ab77af861ba0eb3031afbbda74a775b5256/jEdit.java/clean/org/gjt/sp/jedit/jEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1208,
9461,
1435,
202,
95,
202,
202,
430,
12,
78,
4666,
8684,
480,
446,
13,
1082,
202,
945,
9461,
12,
11729,
71,
11864,
18,
10062,
743,
12,
78,
4666,
8684,
10837,
78,
5913,
7923,
1769,
202,
202,
430,
12,
4272,
2853,
480,
446,
13,
202,
202,
95,
1082,
202,
812,
28838,
2853,
273,
394,
1387,
12,
4272,
2853,
10837,
78,
5913,
8863,
1082,
202,
430,
12,
5,
78,
5913,
2853,
18,
1808,
10756,
9506,
202,
78,
5913,
2853,
18,
26686,
5621,
1082,
202,
945,
9461,
12,
78,
5913,
2853,
18,
588,
743,
10663,
202,
202,
97,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1208,
9461,
1435,
202,
95,
202,
202,
430,
12,
78,
4666,
8684,
480,
446,
13,
1082,
202,
945,
9461,
12,
11729,
71,
11864,
18,
10062,
743,
12,
78,
4666,
8684,
10837,
78,
5913,
7923,
1769,
202,
202,
430,
12,
4272,
2853,
480,
446,
13,
202,
202,
95,
1082,
202,
812,
28838,
2853,
273,
394,
1387,
12,
4272,
2853,
10837,
78,
5913,
8863,
1082,
202,
430,
12,
5,
78,
5913,
2853,
18,
1808,
10756,
9506,
202,
78,
5913,
2853,
18,
26686,
5621,
1082,
202,
945,
9461,
12,
78,
5913,
2853,
18,
588,
743,
10663,
202,
202,
97,
202,
97,
368,
9090,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
long endTime = System.currentTimeMillis(); timerValues2[timerCounter2++] = endTime - startTime; if ( timerCounter2 >= timerValues2.length ) { timerCounter2 = 0; long sum = 0; for ( int i = 0; i < timerValues2.length; i++ ) { sum+=timerValues2[i]; } } | protected void fireProgressEvent (int currentStep, int totalNumberOfSteps) { // Update the layout locations to the external nodes long startTime = System.currentTimeMillis(); Calendar now = Calendar.getInstance(); now.add(Calendar.MILLISECOND, -MIN_TIME_DELAY_BETWEEN_PROGRESS_EVENTS); if (now.after(lastProgressEventFired) || currentStep == totalNumberOfSteps) { ProgressEvent event = new ProgressEvent(currentStep, totalNumberOfSteps); for (int i = 0; i < progressListeners.size(); i++) { ProgressListener listener = (ProgressListener)progressListeners.get(i); listener.progressUpdated(event); } lastProgressEventFired = Calendar.getInstance(); } long endTime = System.currentTimeMillis(); timerValues2[timerCounter2++] = endTime - startTime; if ( timerCounter2 >= timerValues2.length ) { timerCounter2 = 0; long sum = 0; for ( int i = 0; i < timerValues2.length; i++ ) { sum+=timerValues2[i]; } //System.out.println("Average Time in Prgoress: " + (sum / timerValues2.length) ); } } | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/d1e4a3362353514163fc533fba562fa5f629906c/AbstractLayoutAlgorithm.java/buggy/org.eclipse.zest.layouts/src/org/eclipse/zest/layouts/algorithms/AbstractLayoutAlgorithm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
5491,
1133,
261,
474,
783,
4160,
16,
509,
2078,
9226,
11811,
13,
288,
9506,
202,
759,
2315,
326,
3511,
7838,
358,
326,
3903,
2199,
9506,
202,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
9506,
202,
7335,
2037,
273,
5542,
18,
588,
1442,
5621,
202,
202,
3338,
18,
1289,
12,
7335,
18,
25437,
16328,
16,
300,
6236,
67,
4684,
67,
26101,
67,
38,
19311,
67,
24022,
67,
29221,
1769,
9506,
202,
430,
261,
3338,
18,
5205,
12,
2722,
5491,
1133,
42,
2921,
13,
747,
783,
4160,
422,
2078,
9226,
11811,
13,
288,
1082,
202,
5491,
1133,
871,
273,
394,
10980,
1133,
12,
2972,
4160,
16,
2078,
9226,
11811,
1769,
6862,
6862,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4007,
5583,
18,
1467,
5621,
277,
27245,
288,
6862,
9506,
202,
5491,
2223,
2991,
273,
261,
5491,
2223,
13,
8298,
5583,
18,
588,
12,
77,
1769,
9506,
202,
12757,
18,
8298,
7381,
12,
2575,
1769,
1082,
202,
97,
1082,
202,
2722,
5491,
1133,
42,
2921,
273,
5542,
18,
588,
1442,
5621,
202,
202,
97,
202,
202,
5748,
13859,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
12542,
1972,
22,
63,
12542,
4789,
22,
9904,
65,
273,
13859,
300,
8657,
31,
202,
202,
430,
261,
5441,
4789,
22,
1545,
5441,
1972,
22,
18,
2469,
262,
288,
1082,
202,
12542,
4789,
22,
273,
374,
31,
1082,
202,
5748,
2142,
273,
374,
31,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
5491,
1133,
261,
474,
783,
4160,
16,
509,
2078,
9226,
11811,
13,
288,
9506,
202,
759,
2315,
326,
3511,
7838,
358,
326,
3903,
2199,
9506,
202,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
9506,
202,
7335,
2037,
273,
5542,
18,
588,
1442,
5621,
202,
202,
3338,
18,
1289,
12,
7335,
18,
25437,
16328,
16,
300,
6236,
67,
4684,
67,
26101,
67,
38,
19311,
67,
24022,
67,
29221,
1769,
9506,
202,
430,
261,
3338,
18,
5205,
12,
2722,
5491,
1133,
42,
2921,
13,
747,
783,
4160,
422,
2078,
9226,
11811,
13,
288,
1082,
202,
5491,
1133,
871,
273,
394,
10980,
1133,
12,
2972,
4160,
16,
2078,
9226,
11811,
1769,
6862,
6862,
202,
1884,
261,
2
] | |
toprocess.getFullID() + " is not valid (non-Command, non-Bound or" + | toprocess.getFullID() + " is not valid (non-Command, non-Bound or " + | public void processComponent(UIComponent toprocesso) { if (toprocesso instanceof UIForm) { UIForm toprocess = (UIForm) toprocesso; toprocess.fold(); toprocess.postURL = viewstatehandler.getFullURL(viewparams); toprocess.parameters.addAll(outgoingparams); // Check that anything registered so far as submitting exists and is valid. for (int i = 0; i < toprocess.submittingcontrols.size(); ++ i) { String childid = toprocess.submittingcontrols.stringAt(i); UIComponent child = view.getComponent(childid); if (!(child instanceof UIBound) && !(child instanceof UICommand)) { throw UniversalRuntimeException.accumulate(new IllegalArgumentException(), "Component with ID " + childid + " listed as submitting child of form " + toprocess.getFullID() + " is not valid (non-Command, non-Bound or" + "non-existent)"); } //formmodel.registerChild(toprocess, (UIBound) child); } } } | 49142 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49142/1366d9b5bdf892ecfdfc72f0bef0a1133acf6bf9/DefaultFormFixer.java/clean/src/uk/org/ponder/rsf/componentprocessor/DefaultFormFixer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
1841,
12,
5370,
1841,
358,
2567,
83,
13,
288,
565,
309,
261,
3669,
16127,
83,
1276,
6484,
1204,
13,
288,
1377,
6484,
1204,
358,
2567,
273,
261,
5370,
1204,
13,
358,
2567,
83,
31,
1377,
358,
2567,
18,
16007,
5621,
1377,
358,
2567,
18,
2767,
1785,
273,
1476,
2019,
4176,
18,
588,
5080,
1785,
12,
1945,
2010,
1769,
1377,
358,
2567,
18,
3977,
18,
1289,
1595,
12,
31891,
2010,
1769,
5411,
368,
2073,
716,
6967,
4104,
1427,
10247,
487,
4879,
1787,
1704,
471,
353,
923,
18,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
358,
2567,
18,
9297,
1787,
24350,
18,
1467,
5621,
965,
277,
13,
288,
3639,
514,
1151,
350,
273,
358,
2567,
18,
9297,
1787,
24350,
18,
1080,
861,
12,
77,
1769,
3639,
18907,
1151,
273,
1476,
18,
588,
1841,
12,
3624,
350,
1769,
3639,
309,
16051,
12,
3624,
1276,
6484,
3499,
13,
597,
401,
12,
3624,
1276,
6484,
2189,
3719,
288,
1850,
604,
27705,
11949,
18,
8981,
31284,
12,
2704,
2754,
9334,
9079,
315,
1841,
598,
1599,
315,
397,
1151,
350,
397,
315,
12889,
487,
4879,
1787,
1151,
434,
646,
315,
397,
2868,
358,
2567,
18,
588,
5080,
734,
1435,
397,
315,
353,
486,
923,
261,
5836,
17,
2189,
16,
1661,
17,
3499,
578,
315,
397,
10792,
315,
5836,
17,
19041,
2225,
1769,
3639,
289,
3639,
368,
687,
2284,
18,
4861,
1763,
12,
3669,
16127,
16,
261,
5370,
3499,
13,
1151,
1769,
1377,
289,
565,
289,
225,
289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
1841,
12,
5370,
1841,
358,
2567,
83,
13,
288,
565,
309,
261,
3669,
16127,
83,
1276,
6484,
1204,
13,
288,
1377,
6484,
1204,
358,
2567,
273,
261,
5370,
1204,
13,
358,
2567,
83,
31,
1377,
358,
2567,
18,
16007,
5621,
1377,
358,
2567,
18,
2767,
1785,
273,
1476,
2019,
4176,
18,
588,
5080,
1785,
12,
1945,
2010,
1769,
1377,
358,
2567,
18,
3977,
18,
1289,
1595,
12,
31891,
2010,
1769,
5411,
368,
2073,
716,
6967,
4104,
1427,
10247,
487,
4879,
1787,
1704,
471,
353,
923,
18,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
358,
2567,
18,
9297,
1787,
24350,
18,
1467,
5621,
965,
277,
13,
288,
3639,
514,
1151,
350,
273,
358,
2
] |
if (data.equals(tp.name)) thisID = tp.id; | if (data.startsWith(tp.name)) thisID = tp.id; | public void actionPerformed(ActionEvent e) { if ( e.getSource() instanceof JRowBox) { box = (JRowBox) e.getSource(); //get the row this JRowBox is made to edit int row = box.row; TableModel model = (TableModel) refTable.getModel(); //get the new value of the attribute selected in the combobox String data = (String) box.getSelectedItem(); //get the attribute of this row from the table String attr = (String) model.getValueAt(row,0); //set default of thisID as null String thisID = null; if (data == null || data.equals("")) { if (oNode.getDOMElement().hasAttribute(attr)) oNode.getDOMElement().removeAttribute(attr); } else { //check if the selected item corresponds to an internal id //if it does, set thisID to the internal id in question for (int i = 0;i<idPanels.size();i++) { MetadataPane.TablePanel tp = (MetadataPane.TablePanel) idPanels.get(i); if (data.equals(tp.name)) thisID = tp.id; } //if an internal reference was found, set the node tree //to reflect the changes made by the new selection of //the attribute's value if (thisID != null) { oNode.setAttribute(attr, thisID); } //if no internal reference was found, look for an external //reference and clip the "(External) " marker from it //before setting the attribute to the new value else { for (int i = 0;i<addPanels.size();i++) { String s = (String) addPanels.get(i); if (data.equals(s)) { oNode.setAttribute(attr, s.substring(11)); } } } } result = (String) box.getSelectedItem(); tableP.callStateChanged(true); //let the table know that our editor is done with its //eeeeeevil deeds fireEditingStopped(); } } | 55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/4e8c51412960105742cf467893740a131c71ec23/VariableComboEditor.java/buggy/loci/ome/notebook/VariableComboEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
565,
309,
261,
425,
18,
588,
1830,
1435,
1276,
804,
1999,
3514,
13,
288,
1377,
3919,
273,
261,
46,
1999,
3514,
13,
425,
18,
588,
1830,
5621,
1377,
368,
588,
326,
1027,
333,
804,
1999,
3514,
353,
7165,
358,
3874,
1377,
509,
1027,
273,
3919,
18,
492,
31,
1377,
3555,
1488,
938,
273,
261,
1388,
1488,
13,
1278,
1388,
18,
588,
1488,
5621,
1377,
368,
588,
326,
394,
460,
434,
326,
1566,
3170,
316,
326,
3894,
27570,
1377,
514,
501,
273,
261,
780,
13,
3919,
18,
588,
7416,
1180,
5621,
1377,
368,
588,
326,
1566,
434,
333,
1027,
628,
326,
1014,
1377,
514,
1604,
273,
261,
780,
13,
938,
18,
24805,
861,
12,
492,
16,
20,
1769,
1377,
368,
542,
805,
434,
333,
734,
487,
446,
1377,
514,
333,
734,
273,
446,
31,
1377,
309,
261,
892,
422,
446,
747,
501,
18,
14963,
2932,
6,
3719,
288,
3639,
309,
261,
83,
907,
18,
588,
29186,
7675,
5332,
1499,
12,
1747,
3719,
1850,
320,
907,
18,
588,
29186,
7675,
4479,
1499,
12,
1747,
1769,
1377,
289,
1377,
469,
288,
3639,
368,
1893,
309,
326,
3170,
761,
13955,
358,
392,
2713,
612,
3639,
368,
430,
518,
1552,
16,
444,
333,
734,
358,
326,
2713,
612,
316,
5073,
3639,
364,
261,
474,
277,
273,
374,
31,
77,
32,
350,
5537,
87,
18,
1467,
5621,
77,
27245,
288,
1850,
6912,
8485,
18,
1388,
5537,
8071,
273,
5411,
261,
2277,
8485,
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,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
565,
309,
261,
425,
18,
588,
1830,
1435,
1276,
804,
1999,
3514,
13,
288,
1377,
3919,
273,
261,
46,
1999,
3514,
13,
425,
18,
588,
1830,
5621,
1377,
368,
588,
326,
1027,
333,
804,
1999,
3514,
353,
7165,
358,
3874,
1377,
509,
1027,
273,
3919,
18,
492,
31,
1377,
3555,
1488,
938,
273,
261,
1388,
1488,
13,
1278,
1388,
18,
588,
1488,
5621,
1377,
368,
588,
326,
394,
460,
434,
326,
1566,
3170,
316,
326,
3894,
27570,
1377,
514,
501,
273,
261,
780,
13,
3919,
18,
588,
7416,
1180,
5621,
1377,
368,
588,
326,
1566,
434,
333,
1027,
628,
326,
1014,
1377,
514,
1604,
273,
261,
780,
13,
938,
2
] |
m_scheduler.shutDown(); m_driverManager.destroy(); | if (m_scheduler != null) { m_scheduler.shutDown(); } if (m_driverManager != null) { m_driverManager.destroy(); } | protected synchronized void destroy() { if (getLog(CmsLog.CHANNEL_INIT).isInfoEnabled()) { getLog(CmsLog.CHANNEL_INIT).info("[OpenCms] Performing shutdown ..."); } try { m_scheduler.shutDown(); m_driverManager.destroy(); } catch (Throwable e) { if (getLog(this).isErrorEnabled()) { getLog(this).error("[OpenCms]" + e.toString()); } } try { Utils.getModulShutdownMethods(getRegistry()); } catch (Throwable e) { // log exception since we are about to shutdown anyway if (getLog(this).isErrorEnabled()) { getLog(this).error("[OpenCms] Module shutdown exception: " + e); } } if (getLog(this).isInfoEnabled()) { getLog(CmsLog.CHANNEL_INIT).info("[OpenCms] ... shutdown completed."); } m_instance = null; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0fbb7a6f605b76eee500fc12b520efb84572a42f/OpenCmsCore.java/clean/src/org/opencms/main/OpenCmsCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
5546,
1435,
288,
7734,
309,
261,
588,
1343,
12,
4747,
1343,
18,
15814,
67,
12919,
2934,
291,
966,
1526,
10756,
288,
5411,
9189,
12,
4747,
1343,
18,
15814,
67,
12919,
2934,
1376,
2932,
63,
3678,
4747,
65,
11217,
310,
5731,
1372,
8863,
3639,
289,
3639,
775,
288,
5411,
312,
67,
19972,
18,
674,
322,
4164,
5621,
5411,
312,
67,
7407,
1318,
18,
11662,
5621,
3639,
289,
1044,
261,
15155,
425,
13,
288,
5411,
309,
261,
588,
1343,
12,
2211,
2934,
291,
668,
1526,
10756,
288,
7734,
9189,
12,
2211,
2934,
1636,
2932,
63,
3678,
4747,
4279,
397,
425,
18,
10492,
10663,
5411,
289,
3639,
289,
3639,
775,
288,
5411,
6091,
18,
588,
1739,
332,
10961,
4712,
12,
588,
4243,
10663,
3639,
289,
1044,
261,
15155,
425,
13,
288,
5411,
368,
613,
1520,
3241,
732,
854,
2973,
358,
5731,
13466,
5411,
309,
261,
588,
1343,
12,
2211,
2934,
291,
668,
1526,
10756,
288,
7734,
9189,
12,
2211,
2934,
1636,
2932,
63,
3678,
4747,
65,
5924,
5731,
1520,
30,
315,
397,
425,
1769,
5411,
289,
3639,
289,
3639,
309,
261,
588,
1343,
12,
2211,
2934,
291,
966,
1526,
10756,
288,
5411,
9189,
12,
4747,
1343,
18,
15814,
67,
12919,
2934,
1376,
2932,
63,
3678,
4747,
65,
1372,
5731,
5951,
1199,
1769,
3639,
289,
7734,
312,
67,
1336,
273,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
5546,
1435,
288,
7734,
309,
261,
588,
1343,
12,
4747,
1343,
18,
15814,
67,
12919,
2934,
291,
966,
1526,
10756,
288,
5411,
9189,
12,
4747,
1343,
18,
15814,
67,
12919,
2934,
1376,
2932,
63,
3678,
4747,
65,
11217,
310,
5731,
1372,
8863,
3639,
289,
3639,
775,
288,
5411,
312,
67,
19972,
18,
674,
322,
4164,
5621,
5411,
312,
67,
7407,
1318,
18,
11662,
5621,
3639,
289,
1044,
261,
15155,
425,
13,
288,
5411,
309,
261,
588,
1343,
12,
2211,
2934,
291,
668,
1526,
10756,
288,
7734,
9189,
12,
2211,
2934,
1636,
2932,
63,
3678,
4747,
4279,
397,
425,
18,
10492,
10663,
5411,
289,
3639,
289,
3639,
775,
288,
5411,
6091,
18,
588,
1739,
332,
10961,
2
] |
private IResultMetaData getRealMetaData( DataSetHandle dataSetHandle ) throws BirtException { QueryDefinition query = new QueryDefinition( ); query.setDataSetName( dataSetHandle.getQualifiedName( ) ); query.setMaxRows( 1 ); IResultMetaData metaData = MetaDataPopulator.retrieveResultMetaData( dataSetHandle ); if ( metaData == null ) { metaData = new QueryExecutionHelper( dataEngine, modelAdaptor, sessionContext, false ).executeQuery( query ).getResultMetaData( ); addResultSetColumn( dataSetHandle, metaData ); if ( MetaDataPopulator.needsUseResultHint( dataSetHandle, metaData ) ) { metaData = new QueryExecutionHelper( dataEngine, modelAdaptor, sessionContext, true ).executeQuery( query ).getResultMetaData( ); } } if ( !( dataSetHandle instanceof ScriptDataSetHandle ) ) clearUnusedData( dataSetHandle, metaData ); return metaData; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/8de260556324a824f92cc426a8315c84b739ad17/DataSetMetaDataHelper.java/buggy/data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetMetaDataHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1253,
6998,
12361,
6998,
12,
14065,
3259,
14837,
3259,
262,
1082,
202,
15069,
605,
2714,
503,
202,
95,
202,
202,
1138,
1852,
843,
273,
394,
2770,
1852,
12,
11272,
202,
202,
2271,
18,
542,
751,
11924,
12,
14837,
3259,
18,
588,
12345,
12,
262,
11272,
202,
202,
2271,
18,
542,
2747,
4300,
12,
404,
11272,
202,
202,
45,
1253,
6998,
11651,
273,
27512,
7049,
11775,
18,
17466,
1253,
6998,
12,
14837,
3259,
11272,
202,
202,
430,
261,
11651,
422,
446,
262,
202,
202,
95,
1082,
202,
3901,
751,
273,
394,
2770,
3210,
2276,
12,
501,
4410,
16,
6862,
202,
2284,
29888,
16,
6862,
202,
3184,
1042,
16,
6862,
202,
5743,
262,
18,
8837,
1138,
12,
843,
262,
18,
588,
1253,
6998,
12,
11272,
1082,
202,
1289,
13198,
1494,
12,
14837,
3259,
16,
11651,
11272,
1082,
202,
430,
261,
27512,
7049,
11775,
18,
20600,
3727,
1253,
7002,
12,
14837,
3259,
16,
11651,
262,
262,
1082,
202,
95,
9506,
202,
3901,
751,
273,
394,
2770,
3210,
2276,
12,
501,
4410,
16,
25083,
202,
2284,
29888,
16,
25083,
202,
3184,
1042,
16,
25083,
202,
3767,
262,
18,
8837,
1138,
12,
843,
262,
18,
588,
1253,
6998,
12,
11272,
1082,
202,
97,
202,
202,
97,
9506,
202,
430,
261,
401,
12,
14837,
3259,
1276,
7739,
13676,
3259,
262,
262,
1082,
202,
8507,
21106,
751,
12,
14837,
3259,
16,
11651,
11272,
202,
202,
2463,
11651,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1253,
6998,
12361,
6998,
12,
14065,
3259,
14837,
3259,
262,
1082,
202,
15069,
605,
2714,
503,
202,
95,
202,
202,
1138,
1852,
843,
273,
394,
2770,
1852,
12,
11272,
202,
202,
2271,
18,
542,
751,
11924,
12,
14837,
3259,
18,
588,
12345,
12,
262,
11272,
202,
202,
2271,
18,
542,
2747,
4300,
12,
404,
11272,
202,
202,
45,
1253,
6998,
11651,
273,
27512,
7049,
11775,
18,
17466,
1253,
6998,
12,
14837,
3259,
11272,
202,
202,
430,
261,
11651,
422,
446,
262,
202,
202,
95,
1082,
202,
3901,
751,
273,
394,
2770,
3210,
2276,
12,
501,
4410,
16,
6862,
202,
2284,
29888,
16,
6862,
202,
3184,
1042,
16,
6862,
202,
5743,
262,
18,
8837,
1138,
12,
2
] | ||
int index; String name; int count; count = getColumnCount(); for (index = 0; index < count; index++) { name = getColumnName(index); if (columnName.equals(name) == true) { return index; } } return -1; } | return -1; } | public int findColumn(String columnName) { // Variables int index; String name; int count; // Process Columns count = getColumnCount(); for (index = 0; index < count; index++) { name = getColumnName(index); if (columnName.equals(name) == true) { return index; } // if } // for // Unable to Locate return -1; } // findColumn() | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/fab59a31bd9990444e42708fa321ad9450bd4564/AbstractTableModel.java/clean/libjava/javax/swing/table/AbstractTableModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1104,
1494,
12,
780,
7578,
13,
288,
202,
202,
759,
23536,
202,
202,
474,
202,
202,
1615,
31,
202,
202,
780,
202,
202,
529,
31,
202,
202,
474,
202,
202,
1883,
31,
202,
202,
759,
4389,
14962,
202,
202,
1883,
273,
6716,
1380,
5621,
202,
202,
1884,
261,
1615,
273,
374,
31,
770,
411,
1056,
31,
770,
27245,
288,
1082,
202,
529,
273,
20248,
12,
1615,
1769,
1082,
202,
430,
261,
2827,
461,
18,
14963,
12,
529,
13,
422,
638,
13,
288,
9506,
202,
2463,
770,
31,
1082,
202,
97,
368,
309,
202,
202,
97,
368,
364,
202,
202,
759,
18640,
358,
2851,
340,
202,
202,
2463,
300,
21,
31,
202,
97,
368,
1104,
1494,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1104,
1494,
12,
780,
7578,
13,
288,
202,
202,
759,
23536,
202,
202,
474,
202,
202,
1615,
31,
202,
202,
780,
202,
202,
529,
31,
202,
202,
474,
202,
202,
1883,
31,
202,
202,
759,
4389,
14962,
202,
202,
1883,
273,
6716,
1380,
5621,
202,
202,
1884,
261,
1615,
273,
374,
31,
770,
411,
1056,
31,
770,
27245,
288,
1082,
202,
529,
273,
20248,
12,
1615,
1769,
1082,
202,
430,
261,
2827,
461,
18,
14963,
12,
529,
13,
422,
638,
13,
288,
9506,
202,
2463,
770,
31,
1082,
202,
97,
368,
309,
202,
202,
97,
368,
364,
202,
202,
759,
18640,
358,
2851,
340,
202,
202,
2463,
300,
21,
31,
202,
97,
368,
1104,
1494,
2
] |
final SortedSet autoLangs = new TreeSet(); | final SortedSet<Language> autoLangs = new TreeSet<Language> (); | public SortedSet getAutoLanguages() { // find list of all possible languages boolean clearRacials = false; final SortedSet autoLangs = new TreeSet(); // Search for a CLEAR in the list and // if found clear all BEFORE but not AFTER it. // ---arcady June 1, 2002 for (Iterator e = templateAutoLanguages.iterator(); e.hasNext();) { final Language aLang = (Language) e.next(); final String aString = aLang.toString(); if (".CLEARRACIAL".equals(aString)) { clearRacials = true; getLanguagesList().removeAll(getRace().getSafeListFor(ListKey.AUTO_LANGUAGES)); } else if (".CLEARALL".equals(aString) || ".CLEAR".equals(aString)) { clearRacials = true; autoLangs.clear(); getLanguagesList().clear(); } else if (".CLEARTEMPLATES".equals(aString)) { autoLangs.clear(); getLanguagesList().removeAll(templateAutoLanguages); } else { autoLangs.add(aLang); } } if (!clearRacials) { autoLangs.addAll(getRace().getSafeListFor(ListKey.AUTO_LANGUAGES)); } for (Iterator e = classList.iterator(); e.hasNext();) { final PCClass aClass = (PCClass) e.next(); autoLangs.addAll(aClass.getSafeListFor(ListKey.AUTO_LANGUAGES)); } if (deity != null) { autoLangs.addAll(deity.getSafeListFor(ListKey.AUTO_LANGUAGES)); } Iterator it = getRealFeatsIterator(); while (it.hasNext()) { final Ability aFeat = (Ability) it.next(); autoLangs.addAll(aFeat.getSafeListFor(ListKey.AUTO_LANGUAGES)); } for (Iterator i = getSkillList().iterator(); i.hasNext();) { final Skill aSkill = (Skill) i.next(); autoLangs.addAll(aSkill.getSafeListFor(ListKey.AUTO_LANGUAGES)); } for (Iterator i = characterDomainList.iterator(); i.hasNext();) { final CharacterDomain aCD = (CharacterDomain) i.next(); if (aCD.getDomain() != null) { autoLangs.addAll(aCD.getDomain().getSafeListFor(ListKey.AUTO_LANGUAGES)); } } for (Iterator e = equipmentList.iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); if (eq.isEquipped()) { autoLangs.addAll(eq.getSafeListFor(ListKey.AUTO_LANGUAGES)); List aList = eq.getEqModifierList(true); if (!aList.isEmpty()) { for (Iterator e2 = aList.iterator(); e2.hasNext();) { final EquipmentModifier eqMod = (EquipmentModifier) e2.next(); autoLangs.addAll(eqMod.getSafeListFor(ListKey.AUTO_LANGUAGES)); } } aList = eq.getEqModifierList(false); if (!aList.isEmpty()) { for (Iterator e2 = aList.iterator(); e2.hasNext();) { final EquipmentModifier eqMod = (EquipmentModifier) e2.next(); autoLangs.addAll(eqMod.getSafeListFor(ListKey.AUTO_LANGUAGES)); } } } } if (getKitInfo() != null) { for (Iterator e = getKitInfo().iterator(); e.hasNext();) { final Kit kit = (Kit) e.next(); autoLangs.addAll(kit.getSafeListFor(ListKey.AUTO_LANGUAGES)); } } getLanguagesList().addAll(autoLangs); return autoLangs; } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/eb5f93299afbba8e2b27cdc67dfddc016c5d86a9/PlayerCharacter.java/buggy/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
22123,
26707,
12912,
1435,
202,
95,
202,
202,
759,
1104,
666,
434,
777,
3323,
8191,
202,
202,
6494,
2424,
54,
1077,
649,
87,
273,
629,
31,
202,
202,
6385,
22123,
3656,
7275,
87,
273,
394,
19461,
5621,
202,
202,
759,
5167,
364,
279,
385,
900,
985,
316,
326,
666,
471,
202,
202,
759,
309,
1392,
2424,
777,
21203,
1496,
486,
18651,
518,
18,
202,
202,
759,
9948,
11828,
361,
93,
804,
7556,
404,
16,
4044,
22,
202,
202,
1884,
261,
3198,
425,
273,
1542,
4965,
12912,
18,
9838,
5621,
425,
18,
5332,
2134,
5621,
13,
202,
202,
95,
1082,
202,
6385,
9889,
279,
7275,
273,
261,
3779,
13,
425,
18,
4285,
5621,
1082,
202,
6385,
514,
279,
780,
273,
279,
7275,
18,
10492,
5621,
1082,
202,
430,
7566,
18,
23181,
985,
54,
2226,
6365,
9654,
14963,
12,
69,
780,
3719,
1082,
202,
95,
9506,
202,
8507,
54,
1077,
649,
87,
273,
638,
31,
9506,
202,
588,
12912,
682,
7675,
4479,
1595,
12,
588,
54,
623,
7675,
588,
9890,
682,
1290,
12,
682,
653,
18,
18909,
67,
15547,
55,
10019,
1082,
202,
97,
1082,
202,
12107,
309,
7566,
18,
23181,
985,
4685,
9654,
14963,
12,
69,
780,
13,
747,
3552,
23181,
985,
9654,
14963,
12,
69,
780,
3719,
1082,
202,
95,
9506,
202,
8507,
54,
1077,
649,
87,
273,
638,
31,
9506,
202,
6079,
7275,
87,
18,
8507,
5621,
9506,
202,
588,
12912,
682,
7675,
8507,
5621,
1082,
202,
97,
1082,
202,
12107,
309,
7566,
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,
22123,
26707,
12912,
1435,
202,
95,
202,
202,
759,
1104,
666,
434,
777,
3323,
8191,
202,
202,
6494,
2424,
54,
1077,
649,
87,
273,
629,
31,
202,
202,
6385,
22123,
3656,
7275,
87,
273,
394,
19461,
5621,
202,
202,
759,
5167,
364,
279,
385,
900,
985,
316,
326,
666,
471,
202,
202,
759,
309,
1392,
2424,
777,
21203,
1496,
486,
18651,
518,
18,
202,
202,
759,
9948,
11828,
361,
93,
804,
7556,
404,
16,
4044,
22,
202,
202,
1884,
261,
3198,
425,
273,
1542,
4965,
12912,
18,
9838,
5621,
425,
18,
5332,
2134,
5621,
13,
202,
202,
95,
1082,
202,
6385,
9889,
279,
7275,
273,
261,
3779,
13,
425,
18,
4285,
5621,
1082,
202,
6385,
514,
2
] |
if (item instanceof Contact) { VCard vcf = VCard.formatContact((Contact) item); cd.setParameter("filename", getZipEntryName(vcf, null)); context.resp.addHeader("Content-Disposition", cd.toString()); context.resp.setContentType(Mime.CT_TEXT_VCARD); context.resp.setCharacterEncoding(Mime.P_CHARSET_UTF8); context.resp.getOutputStream().write(vcf.formatted.getBytes(Mime.P_CHARSET_UTF8)); return; } Iterator iterator = getMailItems(context, item, getDefaultStartTime(), getDefaultEndTime()); cd.setParameter("filename", "contacts.zip"); context.resp.addHeader("Content-Disposition", cd.toString()); context.resp.setContentType("application/x-zip-compressed"); ZipOutputStream out = new ZipOutputStream(context.resp.getOutputStream()); HashSet<String> usedNames = new HashSet<String>(); while (iterator.hasNext()) { MailItem itItem = (MailItem) iterator.next(); if (!(itItem instanceof Contact)) continue; VCard vcf = VCard.formatContact((Contact) itItem); out.putNextEntry(new ZipEntry(getZipEntryName(vcf, usedNames))); out.write(vcf.formatted.getBytes(Mime.P_CHARSET_UTF8)); out.closeEntry(); } out.close(); | public void format(Context context, MailItem item) throws IOException, ServiceException { ContentDisposition cd; try { cd = new ContentDisposition(Part.ATTACHMENT); } catch (ParseException e) { throw ServiceException.FAILURE(e.getMessage(), e); } if (item instanceof Contact) { VCard vcf = VCard.formatContact((Contact) item); cd.setParameter("filename", getZipEntryName(vcf, null)); context.resp.addHeader("Content-Disposition", cd.toString()); context.resp.setContentType(Mime.CT_TEXT_VCARD); context.resp.setCharacterEncoding(Mime.P_CHARSET_UTF8); context.resp.getOutputStream().write(vcf.formatted.getBytes(Mime.P_CHARSET_UTF8)); return; } // passed-in item is a folder or a tag or somesuch -- get the list of contacts Iterator iterator = getMailItems(context, item, getDefaultStartTime(), getDefaultEndTime()); cd.setParameter("filename", "contacts.zip"); context.resp.addHeader("Content-Disposition", cd.toString()); context.resp.setContentType("application/x-zip-compressed"); // create the ZIP file ZipOutputStream out = new ZipOutputStream(context.resp.getOutputStream()); HashSet<String> usedNames = new HashSet<String>(); while (iterator.hasNext()) { MailItem itItem = (MailItem) iterator.next(); if (!(itItem instanceof Contact)) continue; VCard vcf = VCard.formatContact((Contact) itItem); // add ZIP entry to output stream. out.putNextEntry(new ZipEntry(getZipEntryName(vcf, usedNames))); out.write(vcf.formatted.getBytes(Mime.P_CHARSET_UTF8)); out.closeEntry(); } // complete the ZIP file out.close(); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/d94d94ccfc28bc6773f90f5bc2546fbc976237a2/VcfFormatter.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/formatter/VcfFormatter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
740,
12,
1042,
819,
16,
11542,
1180,
761,
13,
1216,
1860,
16,
16489,
288,
3639,
3697,
15087,
7976,
31,
3639,
775,
288,
5411,
7976,
273,
394,
3697,
15087,
12,
1988,
18,
789,
9833,
1792,
3212,
1769,
3639,
289,
1044,
261,
13047,
425,
13,
288,
5411,
604,
16489,
18,
17623,
12,
73,
18,
24906,
9334,
425,
1769,
3639,
289,
3639,
309,
261,
1726,
1276,
13329,
13,
288,
5411,
776,
6415,
17092,
273,
776,
6415,
18,
2139,
6567,
12443,
6567,
13,
761,
1769,
5411,
7976,
18,
542,
1662,
2932,
3459,
3113,
336,
9141,
1622,
461,
12,
16714,
16,
446,
10019,
5411,
819,
18,
12243,
18,
1289,
1864,
2932,
1350,
17,
15087,
3113,
7976,
18,
10492,
10663,
5411,
819,
18,
12243,
18,
542,
8046,
12,
13320,
18,
1268,
67,
5151,
67,
13464,
8085,
1769,
5411,
819,
18,
12243,
18,
542,
7069,
4705,
12,
13320,
18,
52,
67,
26977,
67,
5159,
28,
1769,
5411,
819,
18,
12243,
18,
588,
4632,
7675,
2626,
12,
16714,
18,
14897,
18,
588,
2160,
12,
13320,
18,
52,
67,
26977,
67,
5159,
28,
10019,
5411,
327,
31,
3639,
289,
3639,
368,
2275,
17,
267,
761,
353,
279,
3009,
578,
279,
1047,
578,
4737,
281,
2648,
1493,
336,
326,
666,
434,
14841,
3639,
4498,
2775,
273,
31991,
3126,
12,
2472,
16,
761,
16,
4829,
13649,
9334,
4829,
25255,
10663,
3639,
7976,
18,
542,
1662,
2932,
3459,
3113,
315,
20777,
18,
4450,
8863,
3639,
819,
18,
12243,
18,
1289,
1864,
2932,
1350,
17,
15087,
3113,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
740,
12,
1042,
819,
16,
11542,
1180,
761,
13,
1216,
1860,
16,
16489,
288,
3639,
3697,
15087,
7976,
31,
3639,
775,
288,
5411,
7976,
273,
394,
3697,
15087,
12,
1988,
18,
789,
9833,
1792,
3212,
1769,
3639,
289,
1044,
261,
13047,
425,
13,
288,
5411,
604,
16489,
18,
17623,
12,
73,
18,
24906,
9334,
425,
1769,
3639,
289,
3639,
309,
261,
1726,
1276,
13329,
13,
288,
5411,
776,
6415,
17092,
273,
776,
6415,
18,
2139,
6567,
12443,
6567,
13,
761,
1769,
5411,
7976,
18,
542,
1662,
2932,
3459,
3113,
336,
9141,
1622,
461,
12,
16714,
16,
446,
10019,
5411,
819,
18,
12243,
18,
1289,
1864,
2932,
1350,
17,
15087,
3113,
7976,
18,
10492,
10663,
5411,
819,
2
] | |
wPassword.setFocus(); | wPassword.getTextWidget().setFocus(); | public void getData() { fillRepositories(); String repname = props.getLastRepository(); if (repname!=null) { int idx =wRepository.indexOf(repname); if (idx>=0) { wRepository.select(idx); wRepository.setFocus(); // fillUsernames(); String username = props.getLastRepositoryLogin(); if (username!=null) { wUsername.setText(username); wPassword.setFocus(); } } } //Do we have a preferred repository name to select if (prefRepositoryName!=null) { int idx = wRepository.indexOf(prefRepositoryName); if (idx>=0) wRepository.select(idx); } } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/f5b08fe709880fa3a0030ab09630dab1b0354abd/RepositoriesDialog.java/buggy/kettle/src/be/ibridge/kettle/repository/dialog/RepositoriesDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4303,
1435,
202,
95,
1082,
202,
5935,
18429,
5621,
1082,
202,
780,
2071,
529,
273,
3458,
18,
588,
3024,
3305,
5621,
202,
202,
430,
261,
14462,
529,
5,
33,
2011,
13,
202,
202,
95,
1082,
202,
474,
2067,
273,
91,
3305,
18,
31806,
12,
14462,
529,
1769,
1875,
202,
430,
261,
3465,
34,
33,
20,
13,
1082,
202,
95,
9506,
202,
91,
3305,
18,
4025,
12,
3465,
1769,
9506,
202,
91,
3305,
18,
542,
9233,
5621,
6862,
9506,
202,
759,
3636,
1299,
1973,
5621,
6862,
9506,
202,
780,
2718,
273,
3458,
18,
588,
3024,
3305,
5358,
5621,
9506,
202,
430,
261,
5053,
5,
33,
2011,
13,
9506,
202,
95,
6862,
202,
91,
8575,
18,
542,
1528,
12,
5053,
1769,
6862,
202,
91,
3913,
18,
542,
9233,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
3244,
732,
1240,
279,
9119,
3352,
508,
358,
2027,
202,
202,
430,
261,
25724,
3305,
461,
5,
33,
2011,
13,
202,
202,
95,
1082,
202,
474,
2067,
273,
341,
3305,
18,
31806,
12,
25724,
3305,
461,
1769,
1082,
202,
430,
261,
3465,
34,
33,
20,
13,
341,
3305,
18,
4025,
12,
3465,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4303,
1435,
202,
95,
1082,
202,
5935,
18429,
5621,
1082,
202,
780,
2071,
529,
273,
3458,
18,
588,
3024,
3305,
5621,
202,
202,
430,
261,
14462,
529,
5,
33,
2011,
13,
202,
202,
95,
1082,
202,
474,
2067,
273,
91,
3305,
18,
31806,
12,
14462,
529,
1769,
1875,
202,
430,
261,
3465,
34,
33,
20,
13,
1082,
202,
95,
9506,
202,
91,
3305,
18,
4025,
12,
3465,
1769,
9506,
202,
91,
3305,
18,
542,
9233,
5621,
6862,
9506,
202,
759,
3636,
1299,
1973,
5621,
6862,
9506,
202,
780,
2718,
273,
3458,
18,
588,
3024,
3305,
5358,
5621,
9506,
202,
430,
261,
5053,
5,
33,
2011,
13,
9506,
202,
95,
6862,
202,
91,
8575,
18,
542,
2
] |
obj.defineProperty(propertyName, value, attributes); | catch (PropertyException e) { throw new RuntimeException("Cannot create property"); } | public static void defineProperty(Scriptable destination, String propertyName, Object value, int attributes) { ScriptableObject obj; try { obj = (ScriptableObject)destination; }catch (ClassCastException e) { destination.put(propertyName, destination, value); return; } obj.defineProperty(propertyName, value, attributes); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/0257e231a558a4534a9cbc9d3903cc22dc103663/ScriptableObject.java/buggy/js/rhino/src/org/mozilla/javascript/ScriptableObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
14007,
12,
3651,
429,
2929,
16,
4766,
1377,
514,
5470,
16,
1033,
460,
16,
4766,
1377,
509,
1677,
13,
565,
288,
3639,
22780,
921,
1081,
31,
3639,
775,
288,
5411,
1081,
273,
261,
3651,
429,
921,
13,
10590,
31,
3639,
289,
14683,
261,
797,
22768,
425,
13,
288,
5411,
2929,
18,
458,
12,
4468,
461,
16,
2929,
16,
460,
1769,
5411,
327,
31,
3639,
289,
3639,
1044,
261,
1396,
503,
425,
13,
288,
604,
394,
3235,
2932,
4515,
752,
1272,
8863,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
14007,
12,
3651,
429,
2929,
16,
4766,
1377,
514,
5470,
16,
1033,
460,
16,
4766,
1377,
509,
1677,
13,
565,
288,
3639,
22780,
921,
1081,
31,
3639,
775,
288,
5411,
1081,
273,
261,
3651,
429,
921,
13,
10590,
31,
3639,
289,
14683,
261,
797,
22768,
425,
13,
288,
5411,
2929,
18,
458,
12,
4468,
461,
16,
2929,
16,
460,
1769,
5411,
327,
31,
3639,
289,
3639,
1044,
261,
1396,
503,
425,
13,
288,
604,
394,
3235,
2932,
4515,
752,
1272,
8863,
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
] |
for (rowsize = 2; rowsize + rowsize < count; rowsize <<= 1) | for (rowsize = 2; rowsize + rowsize <= count; rowsize <<= 1) | private void fabricateTree(final int count) { if (count == 0) return; // We color every row of nodes black, except for the overflow nodes. // I believe that this is the optimal arrangement. We construct the tree // in place by temporarily linking each node to the next node in the row, // then updating those links to the children when working on the next row. // Make the root node. root = new Node(null, null, BLACK); size = count; Node row = root; int rowsize; // Fill each row that is completely full of nodes. for (rowsize = 2; rowsize + rowsize < count; rowsize <<= 1) { Node parent = row; Node last = null; for (int i = 0; i < rowsize; i += 2) { Node left = new Node(null, null, BLACK); Node right = new Node(null, null, BLACK); left.parent = parent; left.right = right; right.parent = parent; parent.left = left; Node next = parent.right; parent.right = right; parent = next; if (last != null) last.right = left; last = right; } row = row.left; } // Now do the partial final row in red. int overflow = count - rowsize; Node parent = row; int i; for (i = 0; i < overflow; i += 2) { Node left = new Node(null, null, RED); Node right = new Node(null, null, RED); left.parent = parent; right.parent = parent; parent.left = left; Node next = parent.right; parent.right = right; parent = next; } // Add a lone left node if necessary. if (i - overflow == 0) { Node left = new Node(null, null, RED); left.parent = parent; parent.left = left; parent = parent.right; left.parent.right = nil; } // Unlink the remaining nodes of the previous row. while (parent != nil) { Node next = parent.right; parent.right = nil; parent = next; } } | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/10b6766d4a11dd231831c20805e4ebe810714436/TreeMap.java/clean/libjava/java/util/TreeMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
21127,
340,
2471,
12,
6385,
509,
1056,
13,
225,
288,
565,
309,
261,
1883,
422,
374,
13,
1377,
327,
31,
565,
368,
1660,
2036,
3614,
1027,
434,
2199,
7721,
16,
1335,
364,
326,
9391,
2199,
18,
565,
368,
467,
3952,
21271,
716,
333,
353,
326,
16413,
2454,
539,
820,
18,
1660,
4872,
326,
2151,
565,
368,
316,
3166,
635,
18917,
27651,
1517,
756,
358,
326,
1024,
756,
316,
326,
1027,
16,
565,
368,
1508,
9702,
5348,
4716,
358,
326,
2325,
1347,
5960,
603,
326,
1024,
1027,
18,
565,
368,
4344,
326,
1365,
756,
18,
565,
1365,
273,
394,
2029,
12,
2011,
16,
446,
16,
19238,
3649,
1769,
565,
963,
273,
1056,
31,
565,
2029,
1027,
273,
1365,
31,
565,
509,
1027,
1467,
31,
565,
368,
14192,
1517,
1027,
716,
353,
14416,
1983,
434,
2199,
18,
565,
364,
261,
492,
1467,
273,
576,
31,
1027,
1467,
397,
1027,
1467,
1648,
1056,
31,
1027,
1467,
22789,
404,
13,
1377,
288,
3639,
2029,
982,
273,
1027,
31,
3639,
2029,
1142,
273,
446,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1027,
1467,
31,
277,
1011,
576,
13,
1850,
288,
5411,
2029,
2002,
273,
394,
2029,
12,
2011,
16,
446,
16,
19238,
3649,
1769,
5411,
2029,
2145,
273,
394,
2029,
12,
2011,
16,
446,
16,
19238,
3649,
1769,
5411,
2002,
18,
2938,
273,
982,
31,
5411,
2002,
18,
4083,
273,
2145,
31,
5411,
2145,
18,
2938,
273,
982,
31,
5411,
982,
18,
4482,
273,
2002,
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,
21127,
340,
2471,
12,
6385,
509,
1056,
13,
225,
288,
565,
309,
261,
1883,
422,
374,
13,
1377,
327,
31,
565,
368,
1660,
2036,
3614,
1027,
434,
2199,
7721,
16,
1335,
364,
326,
9391,
2199,
18,
565,
368,
467,
3952,
21271,
716,
333,
353,
326,
16413,
2454,
539,
820,
18,
1660,
4872,
326,
2151,
565,
368,
316,
3166,
635,
18917,
27651,
1517,
756,
358,
326,
1024,
756,
316,
326,
1027,
16,
565,
368,
1508,
9702,
5348,
4716,
358,
326,
2325,
1347,
5960,
603,
326,
1024,
1027,
18,
565,
368,
4344,
326,
1365,
756,
18,
565,
1365,
273,
394,
2029,
12,
2011,
16,
446,
16,
19238,
3649,
1769,
565,
963,
273,
1056,
31,
565,
2029,
1027,
273,
2
] |
elem = (Element)m_idAttributes.get(elementId); if(null != elem) | elem = (Element) m_idAttributes.get(elementId); if (null != elem) | public Element getElementById(String elementId) { Element elem = (Element)m_idAttributes.get(elementId); // Make sure we're done parsing. if (elem == null && !isComplete()) { Object synchObj = getSynchObject(); synchronized (synchObj) { try { // Don't really know why we should need the while loop, // but we seem to come out of wait() too soon! while (!isComplete()) { synchObj.wait(); throwIfParseError(); elem = (Element)m_idAttributes.get(elementId); if(null != elem) return elem; } } catch (InterruptedException e) { throwIfParseError(); } } elem = (Element)m_idAttributes.get(elementId); } return elem; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/0e2298c0c460e281c6e54e92ac95421ec5eca2e4/DocumentImpl.java/clean/src/org/apache/xalan/stree/DocumentImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3010,
19269,
12,
780,
930,
548,
13,
225,
288,
565,
3010,
3659,
273,
261,
1046,
13,
81,
67,
350,
2498,
18,
588,
12,
2956,
548,
1769,
377,
368,
4344,
3071,
732,
4565,
2731,
5811,
18,
565,
309,
261,
10037,
422,
446,
597,
401,
291,
6322,
10756,
565,
288,
4202,
1033,
272,
2515,
2675,
273,
1322,
2515,
921,
5621,
1377,
3852,
261,
87,
2515,
2675,
13,
1377,
288,
3639,
775,
3639,
288,
1850,
368,
7615,
1404,
8654,
5055,
11598,
732,
1410,
1608,
326,
1323,
2798,
16,
1850,
368,
1496,
732,
19264,
358,
12404,
596,
434,
2529,
1435,
4885,
17136,
5,
6647,
1323,
16051,
291,
6322,
10756,
1850,
288,
5411,
272,
2515,
2675,
18,
7048,
5621,
5411,
604,
2047,
21004,
5621,
5411,
3659,
273,
261,
1046,
13,
81,
67,
350,
2498,
18,
588,
12,
2956,
548,
1769,
2398,
309,
12,
2011,
480,
3659,
13,
2868,
327,
3659,
31,
1850,
289,
3639,
289,
3639,
1044,
261,
24485,
503,
425,
13,
3639,
288,
2398,
604,
2047,
21004,
5621,
3639,
289,
2868,
289,
1377,
3659,
273,
261,
1046,
13,
81,
67,
350,
2498,
18,
588,
12,
2956,
548,
1769,
377,
289,
3639,
327,
3659,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3010,
19269,
12,
780,
930,
548,
13,
225,
288,
565,
3010,
3659,
273,
261,
1046,
13,
81,
67,
350,
2498,
18,
588,
12,
2956,
548,
1769,
377,
368,
4344,
3071,
732,
4565,
2731,
5811,
18,
565,
309,
261,
10037,
422,
446,
597,
401,
291,
6322,
10756,
565,
288,
4202,
1033,
272,
2515,
2675,
273,
1322,
2515,
921,
5621,
1377,
3852,
261,
87,
2515,
2675,
13,
1377,
288,
3639,
775,
3639,
288,
1850,
368,
7615,
1404,
8654,
5055,
11598,
732,
1410,
1608,
326,
1323,
2798,
16,
1850,
368,
1496,
732,
19264,
358,
12404,
596,
434,
2529,
1435,
4885,
17136,
5,
6647,
1323,
16051,
291,
6322,
10756,
1850,
288,
5411,
272,
2515,
2675,
18,
7048,
5621,
5411,
604,
2047,
2
] |
private AnAction processGroupElement(Element element, final ClassLoader loader, PluginId pluginId) { final Application app = ApplicationManager.getApplication(); final IdeaPluginDescriptor plugin = app.getPlugin(pluginId); @NonNls final String resBundleName = plugin != null ? plugin.getResourceBundleBaseName() : ACTIONS_BUNDLE; ResourceBundle bundle = null; if (resBundleName != null) { bundle = ResourceBundle.getBundle(resBundleName, Locale.getDefault(), loader); } if (LOG.isDebugEnabled()) { LOG.debug("enter: processGroupElement(" + element.getName() + ")"); } if (!GROUP_ELEMENT_NAME.equals(element.getName())) { LOG.error("unexpected name of element \"" + element.getName() + "\""); return null; } String className = element.getAttributeValue(CLASS_ATTR_NAME); if (className == null) { // use default group if class isn't specified className = DefaultActionGroup.class.getName(); } try { Class aClass = Class.forName(className, true, loader); Object obj = new ConstructorInjectionComponentAdapter(className, aClass).getComponentInstance(ApplicationManager.getApplication().getPicoContainer()); if (!(obj instanceof ActionGroup)) { LOG.error("class with name \"" + className + "\" should be instance of " + ActionGroup.class.getName()); return null; } if (element.getChildren().size() != element.getChildren(ADD_TO_GROUP_ELEMENT_NAME).size() ) { // if (!(obj instanceof DefaultActionGroup)) { LOG.error("class with name \"" + className + "\" should be instance of " + DefaultActionGroup.class.getName() + " because there are children specified"); return null; } } ActionGroup group = (ActionGroup)obj; // read ID and register loaded group String id = element.getAttributeValue(ID_ATTR_NAME); if (id != null && id.length() == 0) { LOG.error("ID of the group cannot be an empty string"); return null; } if (Boolean.valueOf(element.getAttributeValue(INTERNAL_ATTR_NAME)).booleanValue() && !ApplicationManagerEx.getApplicationEx().isInternal()) { myNotRegisteredInternalActionIds.add(id); return null; } if (id != null) { registerAction(id, group); } // text Presentation presentation = group.getTemplatePresentation(); String text = loadTextForElement(element, bundle, id, GROUP_ELEMENT_NAME); presentation.setText(text); // description String description = loadDescriptionForElement(element, bundle, id, GROUP_ELEMENT_NAME); presentation.setDescription(description); // icon setIcon(element.getAttributeValue(ICON_ATTR_NAME), className, loader, presentation); // popup String popup = element.getAttributeValue(POPAP_ATTR_NAME); if (popup != null) { group.setPopup(Boolean.valueOf(popup).booleanValue()); } // process all group's children. There are other groups, actions, references and links for (final Object o : element.getChildren()) { Element child = (Element)o; String name = child.getName(); if (ACTION_ELEMENT_NAME.equals(name)) { AnAction action = processActionElement(child, loader, pluginId); if (action != null) { assertActionIsGroupOrStub(action); ((DefaultActionGroup)group).add(action, this); } } else if (SEPARATOR_ELEMENT_NAME.equals(name)) { processSeparatorNode((DefaultActionGroup)group, child); } else if (GROUP_ELEMENT_NAME.equals(name)) { AnAction action = processGroupElement(child, loader, pluginId); if (action != null) { ((DefaultActionGroup)group).add(action, this); } } else if (ADD_TO_GROUP_ELEMENT_NAME.equals(name)) { processAddToGroupNode(group, child); } else if (REFERENCE_ELEMENT_NAME.equals(name)) { AnAction action = processReferenceElement(child); if (action != null) { ((DefaultActionGroup)group).add(action, this); } } else { LOG.error("unexpected name of element \"" + name + "\n"); return null; } } return group; } catch (ClassNotFoundException e) { LOG.error("class with name \"" + className + "\" not found"); return null; } catch (Exception e) { LOG.error("cannot create class \"" + className + "\"", e); return null; } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
979,
1803,
2567,
1114,
1046,
12,
1046,
2956,
16,
6385,
7805,
6714,
16,
3773,
548,
4094,
548,
15329,
6385,
3208,
2910,
33,
3208,
1318,
18,
588,
3208,
5621,
6385,
45,
323,
69,
3773,
3187,
4094,
33,
2910,
18,
588,
3773,
12,
4094,
548,
1769,
36,
3989,
50,
3251,
6385,
780,
455,
3405,
461,
33,
4094,
5,
33,
2011,
35,
4094,
18,
588,
18731,
29907,
13332,
12249,
55,
67,
30245,
31,
18731,
9991,
33,
2011,
31,
430,
12,
455,
3405,
461,
5,
33,
2011,
15329,
9991,
33,
18731,
18,
588,
3405,
12,
455,
3405,
461,
16,
3916,
18,
588,
1868,
9334,
6714,
1769,
97,
430,
12,
4842,
18,
291,
2829,
1526,
10756,
95,
4842,
18,
4148,
2932,
2328,
30,
2567,
1114,
1046,
2932,
15,
2956,
18,
17994,
1435,
9078,
2225,
1769,
97,
430,
12,
5,
8468,
67,
10976,
67,
1985,
18,
14963,
12,
2956,
18,
17994,
1435,
3719,
95,
4842,
18,
1636,
2932,
21248,
529,
792,
2956,
8530,
15,
2956,
18,
17994,
1435,
9078,
8530,
1769,
2463,
2011,
31,
97,
780,
12434,
33,
2956,
18,
588,
14942,
12,
5237,
67,
12043,
67,
1985,
1769,
430,
12,
12434,
631,
2011,
15329,
759,
1202,
1886,
1655,
430,
1106,
291,
82,
1404,
13827,
12434,
33,
1868,
1803,
1114,
18,
1106,
18,
17994,
5621,
97,
698,
95,
797,
69,
797,
33,
797,
18,
1884,
461,
12,
12434,
16,
3767,
16,
6714,
1769,
921,
2603,
33,
2704,
6293,
12039,
1841,
4216,
12,
12434,
16,
69,
797,
2934,
588,
1841,
1442,
12,
3208,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
979,
1803,
2567,
1114,
1046,
12,
1046,
2956,
16,
6385,
7805,
6714,
16,
3773,
548,
4094,
548,
15329,
6385,
3208,
2910,
33,
3208,
1318,
18,
588,
3208,
5621,
6385,
45,
323,
69,
3773,
3187,
4094,
33,
2910,
18,
588,
3773,
12,
4094,
548,
1769,
36,
3989,
50,
3251,
6385,
780,
455,
3405,
461,
33,
4094,
5,
33,
2011,
35,
4094,
18,
588,
18731,
29907,
13332,
12249,
55,
67,
30245,
31,
18731,
9991,
33,
2011,
31,
430,
12,
455,
3405,
461,
5,
33,
2011,
15329,
9991,
33,
18731,
18,
588,
3405,
12,
455,
3405,
461,
16,
3916,
18,
588,
1868,
9334,
6714,
1769,
97,
430,
12,
4842,
18,
291,
2829,
1526,
10756,
95,
4842,
18,
4148,
2932,
2328,
30,
2
] | ||
rsvc.error( "ResourceManager.getResource() exception new: " + ee); | log.error("ResourceManager.getResource() exception new", ee); | public Resource getResource(String resourceName, int resourceType, String encoding ) throws ResourceNotFoundException, ParseErrorException, Exception { /* * Check to see if the resource was placed in the cache. * If it was placed in the cache then we will use * the cached version of the resource. If not we * will load it. */ Resource resource = globalCache.get(resourceName); if( resource != null) { /* * refresh the resource */ try { refreshResource( resource, encoding ); } catch( ResourceNotFoundException rnfe ) { /* * something exceptional happened to that resource * this could be on purpose, * so clear the cache and try again */ globalCache.remove( resourceName ); return getResource( resourceName, resourceType, encoding ); } catch( ParseErrorException pee ) { rsvc.error( "ResourceManager.getResource() exception: " + pee); throw pee; } catch( Exception eee ) { rsvc.error( "ResourceManager.getResource() exception: " + eee); throw eee; } } else { try { /* * it's not in the cache, so load it. */ resource = loadResource( resourceName, resourceType, encoding ); if (resource.getResourceLoader().isCachingOn()) { globalCache.put(resourceName, resource); } } catch( ResourceNotFoundException rnfe2 ) { rsvc.error( "ResourceManager : unable to find resource '" + resourceName + "' in any resource loader."); throw rnfe2; } catch( ParseErrorException pee ) { rsvc.error( "ResourceManager.getResource() parse exception: " + pee); throw pee; } catch( Exception ee ) { rsvc.error( "ResourceManager.getResource() exception new: " + ee); throw ee; } } return resource; } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/f4adefb79ccda5d9df1f60719e0ede8f167e4089/ResourceManagerImpl.java/buggy/src/java/org/apache/velocity/runtime/resource/ResourceManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2591,
5070,
12,
780,
9546,
16,
509,
14110,
16,
514,
2688,
262,
3639,
1216,
16676,
16,
2884,
10009,
16,
1185,
565,
288,
3639,
1748,
1850,
380,
2073,
358,
2621,
309,
326,
1058,
1703,
15235,
316,
326,
1247,
18,
540,
380,
971,
518,
1703,
15235,
316,
326,
1247,
1508,
732,
903,
999,
540,
380,
326,
3472,
1177,
434,
326,
1058,
18,
971,
486,
732,
540,
380,
903,
1262,
518,
18,
540,
1195,
7734,
2591,
1058,
273,
2552,
1649,
18,
588,
12,
3146,
461,
1769,
3639,
309,
12,
1058,
480,
446,
13,
3639,
288,
5411,
1748,
2398,
380,
225,
4460,
326,
1058,
2398,
1195,
7682,
775,
5411,
288,
7734,
4460,
1420,
12,
1058,
16,
2688,
11272,
5411,
289,
5411,
1044,
12,
16676,
20594,
3030,
262,
5411,
288,
7734,
1748,
1171,
380,
225,
5943,
1520,
287,
17497,
358,
716,
1058,
1171,
380,
225,
333,
3377,
506,
603,
13115,
16,
5375,
380,
225,
1427,
2424,
326,
1247,
471,
775,
3382,
1171,
1195,
21394,
2552,
1649,
18,
4479,
12,
9546,
11272,
8227,
327,
5070,
12,
9546,
16,
14110,
16,
2688,
11272,
5411,
289,
5411,
1044,
12,
2884,
10009,
293,
1340,
262,
5411,
288,
7734,
3597,
4227,
18,
1636,
12,
10792,
315,
1420,
1318,
18,
588,
1420,
1435,
1520,
30,
315,
397,
293,
1340,
1769,
27573,
604,
293,
1340,
31,
5411,
289,
5411,
1044,
12,
1185,
425,
1340,
262,
5411,
288,
7734,
3597,
4227,
18,
1636,
12,
10792,
315,
1420,
1318,
18,
588,
1420,
1435,
1520,
30,
315,
397,
425,
1340,
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,
2591,
5070,
12,
780,
9546,
16,
509,
14110,
16,
514,
2688,
262,
3639,
1216,
16676,
16,
2884,
10009,
16,
1185,
565,
288,
3639,
1748,
1850,
380,
2073,
358,
2621,
309,
326,
1058,
1703,
15235,
316,
326,
1247,
18,
540,
380,
971,
518,
1703,
15235,
316,
326,
1247,
1508,
732,
903,
999,
540,
380,
326,
3472,
1177,
434,
326,
1058,
18,
971,
486,
732,
540,
380,
903,
1262,
518,
18,
540,
1195,
7734,
2591,
1058,
273,
2552,
1649,
18,
588,
12,
3146,
461,
1769,
3639,
309,
12,
1058,
480,
446,
13,
3639,
288,
5411,
1748,
2398,
380,
225,
4460,
326,
1058,
2398,
1195,
7682,
775,
5411,
288,
7734,
4460,
1420,
12,
1058,
16,
2688,
11272,
5411,
289,
5411,
2
] |
prepareForEdit(request); | prepareForEdit(request); | public ActionForward editUnavailablePeriod(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { prepareForEdit(request); return mapping.findForward("editUnavailablePeriod"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/bf038d353ac7538e5827d426ae8c0c090973ac6b/UnavailablePeriodManagement.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/vigilancy/UnavailablePeriodManagement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3874,
11333,
5027,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
1185,
288,
4202,
2911,
1290,
4666,
12,
2293,
1769,
3639,
327,
2874,
18,
4720,
8514,
2932,
4619,
11333,
5027,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3874,
11333,
5027,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
1185,
288,
4202,
2911,
1290,
4666,
12,
2293,
1769,
3639,
327,
2874,
18,
4720,
8514,
2932,
4619,
11333,
5027,
8863,
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
] |
case WEEK_OF_YEAR : | case WEEK_OF_YEAR: | private void cleanUpAfterRoll(int field, int delta) { switch (field) { case ERA : case YEAR : case MONTH : // check that day of month is still in correct range if (fields[DAY_OF_MONTH] > getActualMaximum(DAY_OF_MONTH)) fields[DAY_OF_MONTH] = getActualMaximum(DAY_OF_MONTH); isTimeSet = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_YEAR] = false; break; case DAY_OF_MONTH : isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_YEAR] = false; time += delta * (24 * 60 * 60 * 1000L); break; case WEEK_OF_MONTH : isSet[DAY_OF_MONTH] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_YEAR] = false; time += delta * (7 * 24 * 60 * 60 * 1000L); break; case DAY_OF_WEEK_IN_MONTH : isSet[DAY_OF_MONTH] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_YEAR] = false; isSet[WEEK_OF_YEAR] = false; time += delta * (7 * 24 * 60 * 60 * 1000L); break; case DAY_OF_YEAR : isSet[MONTH] = false; isSet[DAY_OF_MONTH] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; isSet[DAY_OF_WEEK] = false; isSet[WEEK_OF_YEAR] = false; time += delta * (24 * 60 * 60 * 1000L); break; case WEEK_OF_YEAR : isSet[MONTH] = false; isSet[DAY_OF_MONTH] = false; isSet[WEEK_OF_MONTH] = false; isSet[DAY_OF_WEEK_IN_MONTH] = false; isSet[DAY_OF_YEAR] = false; time += delta * (7 * 24 * 60 * 60 * 1000L); break; case AM_PM : isSet[HOUR_OF_DAY] = false; time += delta * (12 * 60 * 60 * 1000L); break; case HOUR : isSet[HOUR_OF_DAY] = false; time += delta * (60 * 60 * 1000L); break; case HOUR_OF_DAY : isSet[HOUR] = false; isSet[AM_PM] = false; time += delta * (60 * 60 * 1000L); break; case MINUTE : time += delta * (60 * 1000L); break; case SECOND : time += delta * (1000L); break; case MILLISECOND : time += delta; break; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/GregorianCalendar.java/buggy/core/src/classpath/java/java/util/GregorianCalendar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
26384,
4436,
24194,
12,
474,
652,
16,
509,
3622,
13,
288,
202,
202,
9610,
261,
1518,
13,
288,
1082,
202,
3593,
512,
2849,
294,
1082,
202,
3593,
16145,
294,
1082,
202,
3593,
15813,
294,
9506,
202,
759,
866,
716,
2548,
434,
3138,
353,
4859,
316,
3434,
1048,
9506,
202,
430,
261,
2821,
63,
10339,
67,
3932,
67,
13942,
65,
405,
20208,
13528,
12,
10339,
67,
3932,
67,
13942,
3719,
6862,
202,
2821,
63,
10339,
67,
3932,
67,
13942,
65,
273,
20208,
13528,
12,
10339,
67,
3932,
67,
13942,
1769,
9506,
202,
291,
950,
694,
273,
629,
31,
9506,
202,
291,
694,
63,
20274,
67,
3932,
67,
13942,
65,
273,
629,
31,
9506,
202,
291,
694,
63,
10339,
67,
3932,
67,
20274,
65,
273,
629,
31,
9506,
202,
291,
694,
63,
10339,
67,
3932,
67,
20274,
67,
706,
67,
13942,
65,
273,
629,
31,
9506,
202,
291,
694,
63,
10339,
67,
3932,
67,
15137,
65,
273,
629,
31,
9506,
202,
291,
694,
63,
20274,
67,
3932,
67,
15137,
65,
273,
629,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
11579,
67,
3932,
67,
13942,
294,
9506,
202,
291,
694,
63,
20274,
67,
3932,
67,
13942,
65,
273,
629,
31,
9506,
202,
291,
694,
63,
10339,
67,
3932,
67,
20274,
65,
273,
629,
31,
9506,
202,
291,
694,
63,
10339,
67,
3932,
67,
20274,
67,
706,
67,
13942,
65,
273,
629,
31,
9506,
202,
291,
694,
63,
10339,
67,
3932,
67,
15137,
65,
273,
629,
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,
26384,
4436,
24194,
12,
474,
652,
16,
509,
3622,
13,
288,
202,
202,
9610,
261,
1518,
13,
288,
1082,
202,
3593,
512,
2849,
294,
1082,
202,
3593,
16145,
294,
1082,
202,
3593,
15813,
294,
9506,
202,
759,
866,
716,
2548,
434,
3138,
353,
4859,
316,
3434,
1048,
9506,
202,
430,
261,
2821,
63,
10339,
67,
3932,
67,
13942,
65,
405,
20208,
13528,
12,
10339,
67,
3932,
67,
13942,
3719,
6862,
202,
2821,
63,
10339,
67,
3932,
67,
13942,
65,
273,
20208,
13528,
12,
10339,
67,
3932,
67,
13942,
1769,
9506,
202,
291,
950,
694,
273,
629,
31,
9506,
202,
291,
694,
63,
20274,
67,
3932,
67,
13942,
65,
273,
629,
31,
9506,
202,
291,
694,
2
] |
dialog.sendAck(ackRequest); | processResponse(ResponseEvent responseReceivedEvent) { System.out.println("Got a response"); Response response = (Response)responseReceivedEvent.getResponse(); Transaction tid = responseReceivedEvent.getClientTransaction(); System.out.println("Response received with client transaction id " + tid + ":\n" + response); if (tid == null) { System.out.println("Stray response -- dropping "); return; } System.out.println("transaction state is " + tid.getState()); System.out.println("Dialog = " + tid.getDialog()); System.out.println("Dialog State is " + tid.getDialog().getState()); try { if (response.getStatusCode() == Response.OK && ((CSeqHeader)response.getHeader(CSeqHeader.NAME)).getMethod(). equals(Request.INVITE)) { if (tid != this.inviteTid) { new Exception().printStackTrace(); System.exit(0); } // Request cancel = inviteTid.createCancel(); // ClientTransaction ct = // sipProvider.getNewClientTransaction(cancel); // ct.sendRequest(); Dialog dialog = tid.getDialog(); Request ackRequest = dialog.createRequest(Request.ACK); // Bug report by Andreas Bystrom. System.out.println("Sending ACK"); // dialog.sendAck(ackRequest); } } catch (Exception ex) { ex.printStackTrace(); System.exit(0); } } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/d032e0bc4a05d67b6d3f64b5e16a5e393e3f0eb3/Shootist.java/buggy/src/examples/shootist/Shootist.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
1207,
1064,
12,
1064,
1133,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
766,
8872,
1133,
13,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
288,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
2332,
18,
659,
18,
8222,
2932,
15617,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
1261,
3529,
18,
4661,
11931,
12,
484,
691,
1769,
766,
8863,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
2306,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
766,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
273,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
261,
1064,
13,
2740,
8872,
1133,
18,
588,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
1207,
1064,
12,
1064,
1133,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
766,
8872,
1133,
13,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
288,
12730,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
484,
691,
1769,
6176,
18,
4661,
11931,
12,
2
] | |
protected String appendPath( String parentPath, String childPath, String pathAdjustment, boolean appendPaths ) { List pathFragments = new ArrayList(); String rootPath = parentPath; String protocol = null; int protocolIdx = rootPath.indexOf( "://" ); if ( protocolIdx > -1 ) { protocol = rootPath.substring( 0, protocolIdx + 3 ); rootPath = rootPath.substring( protocolIdx + 3 ); } pathFragments.add( rootPath ); if ( appendPaths ) { if ( pathAdjustment != null ) { pathFragments.add( pathAdjustment ); } pathFragments.add( childPath ); } StringBuffer cleanedPath = new StringBuffer(); if ( protocol != null ) { cleanedPath.append( protocol ); } if ( rootPath.startsWith( "/" ) ) { cleanedPath.append( '/' ); } String lastToken = null; String currentToken = null; for ( Iterator it = pathFragments.iterator(); it.hasNext(); ) { String pathFragment = (String) it.next(); StringTokenizer tokens = new StringTokenizer( pathFragment, "/" ); while( tokens.hasMoreTokens() ) { lastToken = currentToken; currentToken = tokens.nextToken(); if ( "..".equals( currentToken ) ) { // trim the previous path part off... cleanedPath.setLength( cleanedPath.length() - ( lastToken.length() + 1 ) ); } else if ( !".".equals( currentToken ) ) { // don't worry about /./ self-references. cleanedPath.append( currentToken ).append( '/' ); } } } if ( !childPath.endsWith( "/" ) && appendPaths ) { cleanedPath.setLength( cleanedPath.length() - 1 ); } return cleanedPath.toString(); } | 47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/ad38e46b4b6bbc3fb214b07966cc42877ecec536/DefaultModelInheritanceAssembler.java/buggy/maven-project/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
714,
743,
12,
514,
17743,
16,
514,
1151,
743,
16,
514,
589,
19985,
16,
1250,
714,
4466,
262,
565,
288,
3639,
987,
589,
27588,
273,
394,
2407,
5621,
7734,
514,
13959,
273,
17743,
31,
3639,
514,
1771,
273,
446,
31,
3639,
509,
1771,
4223,
273,
13959,
18,
31806,
12,
315,
14334,
11272,
7734,
309,
261,
1771,
4223,
405,
300,
21,
262,
3639,
288,
5411,
1771,
273,
13959,
18,
28023,
12,
374,
16,
1771,
4223,
397,
890,
11272,
5411,
13959,
273,
13959,
18,
28023,
12,
1771,
4223,
397,
890,
11272,
3639,
289,
7734,
589,
27588,
18,
1289,
12,
13959,
11272,
7734,
309,
261,
714,
4466,
262,
3639,
288,
5411,
309,
261,
589,
19985,
480,
446,
262,
5411,
288,
7734,
589,
27588,
18,
1289,
12,
589,
19985,
11272,
5411,
289,
13491,
589,
27588,
18,
1289,
12,
1151,
743,
11272,
3639,
289,
7734,
6674,
9426,
743,
273,
394,
6674,
5621,
7734,
309,
261,
1771,
480,
446,
262,
3639,
288,
5411,
9426,
743,
18,
6923,
12,
1771,
11272,
3639,
289,
7734,
309,
261,
13959,
18,
17514,
1190,
12,
4016,
262,
262,
3639,
288,
5411,
9426,
743,
18,
6923,
12,
2023,
11272,
3639,
289,
7734,
514,
27231,
273,
446,
31,
3639,
514,
23719,
273,
446,
31,
7734,
364,
261,
4498,
518,
273,
589,
27588,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
3639,
288,
5411,
514,
589,
7456,
273,
261,
780,
13,
518,
18,
4285,
5621,
13491,
16370,
2430,
273,
394,
16370,
12,
589,
7456,
16,
4016,
11272,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
714,
743,
12,
514,
17743,
16,
514,
1151,
743,
16,
514,
589,
19985,
16,
1250,
714,
4466,
262,
565,
288,
3639,
987,
589,
27588,
273,
394,
2407,
5621,
7734,
514,
13959,
273,
17743,
31,
3639,
514,
1771,
273,
446,
31,
3639,
509,
1771,
4223,
273,
13959,
18,
31806,
12,
315,
14334,
11272,
7734,
309,
261,
1771,
4223,
405,
300,
21,
262,
3639,
288,
5411,
1771,
273,
13959,
18,
28023,
12,
374,
16,
1771,
4223,
397,
890,
11272,
5411,
13959,
273,
13959,
18,
28023,
12,
1771,
4223,
397,
890,
11272,
3639,
289,
7734,
589,
27588,
18,
1289,
12,
13959,
11272,
7734,
309,
261,
714,
4466,
262,
3639,
288,
5411,
309,
261,
589,
19985,
480,
446,
262,
5411,
2
] | ||
if (pd.accepted()) { jdbcConnectionUrl = pd.getJDBCConnectionUrl(); jdbcDriverClassName = pd.getJDBCDriverClassName(); | if (pd.accepted()) { jdbcConnectionUrl = pd.getJDBCConnectionUrl(); jdbcDriverClassName = pd.getJDBCDriverClassName(); | private void toolbarPreferencesButtonActionPerformed(java.awt.event.ActionEvent evt) { PreferencesDialog pd = new PreferencesDialog(this, true); pd.setJDBCConnectionUrl(jdbcConnectionUrl); pd.setJDBCDriverClassName(jdbcDriverClassName); pd.show(); if (pd.accepted()) { jdbcConnectionUrl = pd.getJDBCConnectionUrl(); jdbcDriverClassName = pd.getJDBCDriverClassName(); workbenchProperties.setProperty("jdbcDriverClassName", jdbcDriverClassName); workbenchProperties.setProperty("jdbcConnectionUrl", jdbcConnectionUrl); } } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/Workbench.java/buggy/src/main/mondrian/gui/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
12748,
12377,
3616,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
202,
95,
202,
202,
12377,
6353,
4863,
273,
394,
28310,
6353,
12,
2211,
16,
638,
1769,
202,
202,
22353,
18,
542,
30499,
1952,
1489,
12,
24687,
1952,
1489,
1769,
202,
202,
22353,
18,
542,
30499,
4668,
3834,
12,
24687,
4668,
3834,
1769,
202,
202,
22353,
18,
4500,
5621,
202,
202,
430,
261,
22353,
18,
23847,
10756,
202,
202,
95,
1082,
202,
24687,
1952,
1489,
273,
4863,
18,
588,
30499,
1952,
1489,
5621,
1082,
202,
24687,
4668,
3834,
273,
4863,
18,
588,
30499,
4668,
3834,
5621,
1082,
202,
1252,
22144,
2297,
18,
542,
1396,
2932,
24687,
4668,
3834,
3113,
16579,
4668,
3834,
1769,
1082,
202,
1252,
22144,
2297,
18,
542,
1396,
2932,
24687,
1952,
1489,
3113,
16579,
1952,
1489,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
12748,
12377,
3616,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
202,
95,
202,
202,
12377,
6353,
4863,
273,
394,
28310,
6353,
12,
2211,
16,
638,
1769,
202,
202,
22353,
18,
542,
30499,
1952,
1489,
12,
24687,
1952,
1489,
1769,
202,
202,
22353,
18,
542,
30499,
4668,
3834,
12,
24687,
4668,
3834,
1769,
202,
202,
22353,
18,
4500,
5621,
202,
202,
430,
261,
22353,
18,
23847,
10756,
202,
202,
95,
1082,
202,
24687,
1952,
1489,
273,
4863,
18,
588,
30499,
1952,
1489,
5621,
1082,
202,
24687,
4668,
3834,
273,
4863,
18,
588,
30499,
4668,
3834,
5621,
1082,
202,
1252,
22144,
2297,
18,
542,
1396,
2932,
24687,
4668,
3834,
3113,
16579,
2
] |
removeSrcDirButtonActionPerformed(evt); } | removeSrcDirButtonActionPerformed(evt); } | public void actionPerformed(java.awt.event.ActionEvent evt) { removeSrcDirButtonActionPerformed(evt); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/2d8fb05e8f31ca0b836fd28e842f26ebfb98e164/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
1206,
7740,
1621,
3616,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
1206,
7740,
1621,
3616,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
following.push(FOLLOW_opt_eol_in_rule572); | following.push(FOLLOW_opt_eol_in_rule582); | public RuleDescr rule() throws RecognitionException { RuleDescr rule; Token loc=null; Token any=null; String ruleName = null; rule = null; String consequence = ""; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:217:17: ( opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* 'end' opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:217:17: opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* 'end' opt_eol { following.push(FOLLOW_opt_eol_in_rule539); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,28,FOLLOW_28_in_rule545); following.push(FOLLOW_word_in_rule549); ruleName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_rule551); opt_eol(); following.pop(); rule = new RuleDescr( ruleName, null ); rule.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:223:17: ( rule_attributes[rule] )? int alt19=2; switch ( input.LA(1) ) { case 30: case 32: alt19=1; break; case EOL: case 22: case 33: case 34: case 35: case 36: case 37: case 38: alt19=1; break; case 29: alt19=1; break; case 31: alt19=1; break; default: NoViableAltException nvae = new NoViableAltException("223:17: ( rule_attributes[rule] )?", 19, 0, input); throw nvae; } switch (alt19) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:223:25: rule_attributes[rule] { following.push(FOLLOW_rule_attributes_in_rule562); rule_attributes(rule); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_rule572); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:226:17: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? int alt22=2; int LA22_0 = input.LA(1); if ( LA22_0==29 ) { alt22=1; } else if ( LA22_0==31 ) { alt22=2; } else { NoViableAltException nvae = new NoViableAltException("226:17: (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )?", 22, 0, input); throw nvae; } switch (alt22) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:226:25: loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) { loc=(Token)input.LT(1); match(input,29,FOLLOW_29_in_rule580); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:226:36: ( ':' )? int alt20=2; int LA20_0 = input.LA(1); if ( LA20_0==30 ) { int LA20_1 = input.LA(2); if ( !( expander != null ) ) { alt20=1; } else if ( expander != null ) { alt20=2; } else { NoViableAltException nvae = new NoViableAltException("226:36: ( \':\' )?", 20, 1, input); throw nvae; } } else if ( (LA20_0>=EOL && LA20_0<=29)||(LA20_0>=31 && LA20_0<=56) ) { alt20=2; } else { NoViableAltException nvae = new NoViableAltException("226:36: ( \':\' )?", 20, 0, input); throw nvae; } switch (alt20) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:226:36: ':' { match(input,30,FOLLOW_30_in_rule582); } break; } following.push(FOLLOW_opt_eol_in_rule585); opt_eol(); following.pop(); AndDescr lhs = new AndDescr(); rule.setLhs( lhs ); lhs.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt21=2; switch ( input.LA(1) ) { case 21: int LA21_1 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 1, input); throw nvae; } break; case EOL: case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 15: case 16: case 17: case 18: case 19: case 20: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 56: alt21=1; break; case 31: int LA21_3 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 3, input); throw nvae; } break; case 53: int LA21_4 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 4, input); throw nvae; } break; case 54: int LA21_5 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 5, input); throw nvae; } break; case 55: int LA21_6 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 6, input); throw nvae; } break; case ID: int LA21_7 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 7, input); throw nvae; } break; default: NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 0, input); throw nvae; } switch (alt21) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:232:33: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "rule", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_rule603); expander_lhs_block(lhs); following.pop(); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:233:35: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_rule612); normal_lhs_block(lhs); following.pop(); } break; } } break; } match(input,31,FOLLOW_31_in_rule633); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:237:24: ( ':' )? int alt23=2; int LA23_0 = input.LA(1); if ( LA23_0==30 ) { alt23=1; } else if ( (LA23_0>=EOL && LA23_0<=29)||(LA23_0>=31 && LA23_0<=56) ) { alt23=2; } else { NoViableAltException nvae = new NoViableAltException("237:24: ( \':\' )?", 23, 0, input); throw nvae; } switch (alt23) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:237:24: ':' { match(input,30,FOLLOW_30_in_rule635); } break; } following.push(FOLLOW_opt_eol_in_rule639); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:238:17: ( options {greedy=false; } : any= . )* loop24: do { int alt24=2; int LA24_0 = input.LA(1); if ( LA24_0==27 ) { alt24=2; } else if ( (LA24_0>=EOL && LA24_0<=26)||(LA24_0>=28 && LA24_0<=56) ) { alt24=1; } switch (alt24) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:238:44: any= . { any=(Token)input.LT(1); matchAny(input); consequence = consequence + " " + any.getText(); } break; default : break loop24; } } while (true); if ( expander != null ) { String expanded = runThenExpander( consequence ); rule.setConsequence( expanded ); } else { rule.setConsequence( consequence ); } match(input,27,FOLLOW_27_in_rule674); following.push(FOLLOW_opt_eol_in_rule676); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return rule; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6781,
16198,
1720,
1435,
1216,
9539,
288,
6647,
6781,
16198,
1720,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
1281,
33,
2011,
31,
3639,
514,
23285,
273,
446,
31,
1171,
202,
202,
5345,
273,
446,
31,
540,
202,
202,
780,
356,
6178,
273,
1408,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
22,
4033,
30,
4033,
30,
261,
2153,
67,
30951,
1515,
33,
296,
5345,
11,
23285,
33,
2076,
2153,
67,
30951,
261,
1720,
67,
4350,
63,
5345,
65,
7851,
2153,
67,
30951,
261,
1829,
33,
296,
13723,
11,
261,
3921,
7851,
2153,
67,
30951,
20316,
4542,
264,
67,
80,
4487,
67,
2629,
63,
80,
4487,
65,
571,
2212,
67,
80,
4487,
67,
2629,
63,
80,
4487,
65,
262,
7851,
296,
15991,
11,
261,
3921,
7851,
2153,
67,
30951,
261,
702,
288,
11556,
24009,
33,
5743,
31,
289,
294,
1281,
33,
263,
8618,
296,
409,
11,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
22,
4033,
30,
4033,
30,
2153,
67,
30951,
1515,
33,
296,
5345,
11,
23285,
33,
2076,
2153,
67,
30951,
261,
1720,
67,
4350,
63,
5345,
65,
7851,
2153,
67,
30951,
261,
1829,
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,
6781,
16198,
1720,
1435,
1216,
9539,
288,
6647,
6781,
16198,
1720,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
1281,
33,
2011,
31,
3639,
514,
23285,
273,
446,
31,
1171,
202,
202,
5345,
273,
446,
31,
540,
202,
202,
780,
356,
6178,
273,
1408,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
22,
4033,
30,
4033,
30,
261,
2153,
67,
30951,
1515,
33,
296,
5345,
11,
23285,
33,
2076,
2153,
67,
30951,
261,
1720,
67,
4350,
63,
5345,
65,
7851,
2153,
67,
30951,
261,
1829,
33,
2
] |
if ((active1 & 0x2000L) != 0L) return jjStartNfaWithStates_0(5, 77, 33); else if ((active1 & 0x10000000L) != 0L) return jjStartNfaWithStates_0(5, 92, 33); return jjMoveStringLiteralDfa6_0(active1, 0x20000000040L, active2, 0L); | if ((active1 & 0x4000L) != 0L) return jjStartNfaWithStates_0(5, 78, 33); else if ((active1 & 0x20000000L) != 0L) return jjStartNfaWithStates_0(5, 93, 33); return jjMoveStringLiteralDfa6_0(active1, 0x40000000080L, active2, 0L); | static private final int jjMoveStringLiteralDfa5_0(long old1, long active1, long old2, long active2){ if (((active1 &= old1) | (active2 &= old2)) == 0L) return jjStartNfa_0(3, 0L, old1, old2); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(4, 0L, active1, active2); return 5; } switch(curChar) { case 97: return jjMoveStringLiteralDfa6_0(active1, 0x41000000000L, active2, 0L); case 99: if ((active1 & 0x2000000L) != 0L) return jjStartNfaWithStates_0(5, 89, 33); else if ((active1 & 0x100000000L) != 0L) return jjStartNfaWithStates_0(5, 96, 33); return jjMoveStringLiteralDfa6_0(active1, 0x1000000L, active2, 0L); case 100: if ((active1 & 0x10000L) != 0L) return jjStartNfaWithStates_0(5, 80, 33); else if ((active1 & 0x40000000L) != 0L) return jjStartNfaWithStates_0(5, 94, 33); break; case 101: if ((active1 & 0x100L) != 0L) return jjStartNfaWithStates_0(5, 72, 33); else if ((active1 & 0x400L) != 0L) return jjStartNfaWithStates_0(5, 74, 33); else if ((active1 & 0x80000L) != 0L) return jjStartNfaWithStates_0(5, 83, 33); return jjMoveStringLiteralDfa6_0(active1, 0x8000000000L, active2, 0L); case 102: if ((active1 & 0x80000000L) != 0L) return jjStartNfaWithStates_0(5, 95, 33); break; case 104: if ((active1 & 0x800000000L) != 0L) return jjStartNfaWithStates_0(5, 99, 33); break; case 105: return jjMoveStringLiteralDfa6_0(active1, 0x100000000000L, active2, 0L); case 108: return jjMoveStringLiteralDfa6_0(active1, 0x4000080L, active2, 0x4L); case 110: if ((active1 & 0x2000L) != 0L) return jjStartNfaWithStates_0(5, 77, 33); else if ((active1 & 0x10000000L) != 0L) return jjStartNfaWithStates_0(5, 92, 33); return jjMoveStringLiteralDfa6_0(active1, 0x20000000040L, active2, 0L); case 116: if ((active1 & 0x200000000L) != 0L) return jjStartNfaWithStates_0(5, 97, 33); return jjMoveStringLiteralDfa6_0(active1, 0x400008800000L, active2, 0L); default : break; } return jjStartNfa_0(4, 0L, active1, active2);} | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/380243817238f20dded6aa323a249c33dbaceae3/CPPParserTokenManager.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
760,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
25,
67,
20,
12,
5748,
1592,
21,
16,
1525,
2695,
21,
16,
1525,
1592,
22,
16,
1525,
2695,
22,
15329,
282,
309,
261,
12443,
3535,
21,
12058,
1592,
21,
13,
571,
261,
3535,
22,
12058,
1592,
22,
3719,
422,
374,
48,
13,
1377,
327,
10684,
1685,
50,
507,
67,
20,
12,
23,
16,
374,
48,
16,
1592,
21,
16,
1592,
22,
1769,
565,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1377,
10684,
4947,
28565,
40,
507,
67,
20,
12,
24,
16,
374,
48,
16,
2695,
21,
16,
2695,
22,
1769,
1377,
327,
1381,
31,
282,
289,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
16340,
30,
540,
327,
10684,
7607,
28565,
40,
507,
26,
67,
20,
12,
3535,
21,
16,
374,
92,
9803,
2787,
11706,
48,
16,
2695,
22,
16,
374,
48,
1769,
1377,
648,
14605,
30,
540,
309,
14015,
3535,
21,
473,
374,
92,
22,
9449,
48,
13,
480,
374,
48,
13,
5411,
327,
10684,
1685,
50,
507,
1190,
7629,
67,
20,
12,
25,
16,
28308,
16,
13159,
1769,
540,
469,
309,
14015,
3535,
21,
473,
374,
92,
21,
12648,
48,
13,
480,
374,
48,
13,
5411,
327,
10684,
1685,
50,
507,
1190,
7629,
67,
20,
12,
25,
16,
19332,
16,
13159,
1769,
540,
327,
10684,
7607,
28565,
40,
507,
26,
67,
20,
12,
3535,
21,
16,
374,
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,
760,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
25,
67,
20,
12,
5748,
1592,
21,
16,
1525,
2695,
21,
16,
1525,
1592,
22,
16,
1525,
2695,
22,
15329,
282,
309,
261,
12443,
3535,
21,
12058,
1592,
21,
13,
571,
261,
3535,
22,
12058,
1592,
22,
3719,
422,
374,
48,
13,
1377,
327,
10684,
1685,
50,
507,
67,
20,
12,
23,
16,
374,
48,
16,
1592,
21,
16,
1592,
22,
1769,
565,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
12,
6290,
18,
1594,
18,
14106,
425,
13,
288,
1377,
10684,
4947,
28565,
40,
507,
67,
20,
12,
24,
16,
374,
48,
16,
2695,
21,
16,
2695,
22,
1769,
1377,
327,
1381,
2
] |
phaseModifier = -1; | lightModifier = -1; | public static final int getRonaldMoonlight( int ronaldPhase, int hamburglarPosition ) { // 6 5 4 3 // // /---\ /---\ // 7 | R | | G | 2 // \___/ \___/ // // 8 9 10 0 1 int phaseModifier = 0; switch ( ronaldPhase ) { case 0: if ( hamburglarPosition == 8 || hamburglarPosition == 9 ) phaseModifier = 1; break; case 1: if ( hamburglarPosition == 8 ) phaseModifier = -1; if ( hamburglarPosition == 9 ) phaseModifier = 1; break; case 2: if ( hamburglarPosition == 9 ) phaseModifier = 1; break; case 3: if ( hamburglarPosition == 8 ) phaseModifier = -1; if ( hamburglarPosition == 9 ) phaseModifier = 1; break; default: if ( hamburglarPosition == 8 ) phaseModifier = 1; if ( hamburglarPosition == 9 ) phaseModifier = -1; break; } return (ronaldPhase > 4 ? 8 - ronaldPhase : ronaldPhase) + phaseModifier; } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/81bedb14b6ac7c6457a46e5a38153785291e8eb2/MoonPhaseDatabase.java/clean/src/net/sourceforge/kolmafia/MoonPhaseDatabase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
509,
4170,
9528,
72,
16727,
265,
5099,
12,
509,
436,
9528,
72,
11406,
16,
509,
366,
2536,
295,
7043,
297,
2555,
262,
202,
95,
202,
202,
759,
540,
1666,
565,
1381,
565,
1059,
565,
890,
202,
202,
759,
202,
202,
759,
4202,
342,
6062,
64,
1850,
342,
6062,
64,
202,
202,
759,
282,
2371,
282,
571,
534,
571,
1850,
571,
611,
571,
282,
576,
202,
202,
759,
4202,
521,
31268,
19,
1850,
521,
31268,
19,
202,
202,
759,
202,
202,
759,
4202,
1725,
282,
2468,
565,
1728,
565,
374,
282,
404,
202,
202,
474,
6855,
9829,
273,
374,
31,
202,
202,
9610,
261,
436,
9528,
72,
11406,
262,
202,
202,
95,
1082,
202,
3593,
374,
30,
9506,
202,
430,
261,
366,
2536,
295,
7043,
297,
2555,
422,
1725,
747,
366,
2536,
295,
7043,
297,
2555,
422,
2468,
262,
6862,
202,
13961,
9829,
273,
404,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
404,
30,
9506,
202,
430,
261,
366,
2536,
295,
7043,
297,
2555,
422,
1725,
262,
6862,
202,
13961,
9829,
273,
300,
21,
31,
9506,
202,
430,
261,
366,
2536,
295,
7043,
297,
2555,
422,
2468,
262,
6862,
202,
13961,
9829,
273,
404,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
576,
30,
9506,
202,
430,
261,
366,
2536,
295,
7043,
297,
2555,
422,
2468,
262,
6862,
202,
13961,
9829,
273,
404,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
890,
30,
9506,
202,
430,
261,
366,
2536,
295,
7043,
297,
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,
509,
4170,
9528,
72,
16727,
265,
5099,
12,
509,
436,
9528,
72,
11406,
16,
509,
366,
2536,
295,
7043,
297,
2555,
262,
202,
95,
202,
202,
759,
540,
1666,
565,
1381,
565,
1059,
565,
890,
202,
202,
759,
202,
202,
759,
4202,
342,
6062,
64,
1850,
342,
6062,
64,
202,
202,
759,
282,
2371,
282,
571,
534,
571,
1850,
571,
611,
571,
282,
576,
202,
202,
759,
4202,
521,
31268,
19,
1850,
521,
31268,
19,
202,
202,
759,
202,
202,
759,
4202,
1725,
282,
2468,
565,
1728,
565,
374,
282,
404,
202,
202,
474,
6855,
9829,
273,
374,
31,
202,
202,
9610,
261,
436,
9528,
72,
11406,
262,
202,
202,
95,
1082,
202,
3593,
2
] |
proj = new Epsg4263(); | proj = new Epsg4326(); | public static void main(String[] args) { setupExceptionHandler(); setupUiDefaults(); LinkedList<String> arguments = new LinkedList<String>(Arrays.asList(args)); if (arguments.contains("--help")) { System.out.println("Java OpenStreetMap Editor"); System.out.println(); System.out.println("usage:"); System.out.println("\tjava -jar josm.jar <options>"); System.out.println(); System.out.println("options:"); System.out.println("\t--help Show this help"); System.out.println("\t--download=minlat,minlon,maxlat,maxlon Download the bounding box"); System.out.println("\t--open=file(.osm|.xml|.gpx|.txt|.csv) Open the specific file"); System.out.println("\t--no-fullscreen Don't launch in fullscreen mode"); System.out.println("\t--reset-preferences Reset the preferences to default"); System.exit(0); } File prefDir = new File(Preferences.getPreferencesDir()); if (prefDir.exists() && !prefDir.isDirectory()) { JOptionPane.showMessageDialog(null, "Cannot open preferences directory: "+Preferences.getPreferencesDir()); return; } if (!prefDir.exists()) prefDir.mkdirs(); // load preferences String errMsg = null; try { if (arguments.remove("--reset-preferences")) { pref.resetToDefault(); } else pref.load(); } catch (IOException e1) { e1.printStackTrace(); errMsg = "Preferences could not be loaded. Write default preference file to '"+Preferences.getPreferencesDir()+"preferences'."; pref.resetToDefault(); } if (errMsg != null) JOptionPane.showMessageDialog(null, errMsg); try { proj = (Projection)Class.forName(pref.get("projection")).newInstance(); } catch (Exception e) { e.printStackTrace(); JOptionPane.showMessageDialog(null, "The projection could not be read from preferences. Using EPSG:4263."); proj = new Epsg4263(); } try { UIManager.setLookAndFeel(pref.get("laf")); } catch (Exception e) { e.printStackTrace(); } new Main(); main.setVisible(true); if (arguments.remove("--show-modifiers")) { Point p = main.getLocationOnScreen(); Dimension s = main.getSize(); new ShowModifiers(p.x + s.width - 3, p.y + s.height - 32); main.setVisible(true); } if (!arguments.remove("--no-fullscreen")) { if (Toolkit.getDefaultToolkit().isFrameStateSupported(MAXIMIZED_BOTH)) main.setExtendedState(MAXIMIZED_BOTH); // some platform are able to maximize else { Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); main.setSize(d); } } for (Iterator<String> it = arguments.iterator(); it.hasNext();) { String s = it.next(); if (s.startsWith("--open=")) { main.openAction.openFile(new File(s.substring(7))); it.remove(); } else if (s.startsWith("--download=")) { downloadFromParamString(false, s.substring(11)); it.remove(); } else if (s.startsWith("--downloadgps=")) { downloadFromParamString(true, s.substring(14)); it.remove(); } } if (!arguments.isEmpty()) { String s = "Unknown Parameter:\n"; for (String arg : arguments) s += arg+"\n"; JOptionPane.showMessageDialog(main, s); } } | 2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/1f2b0307432804c85a8e5e7f330f731d09a44323/Main.java/clean/src/org/openstreetmap/josm/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
202,
202,
8401,
18894,
5621,
202,
202,
8401,
13943,
7019,
5621,
202,
202,
13174,
682,
32,
780,
34,
1775,
273,
394,
10688,
32,
780,
34,
12,
12726,
18,
345,
682,
12,
1968,
10019,
202,
202,
430,
261,
7099,
18,
12298,
2932,
413,
5201,
6,
3719,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
5852,
3502,
30719,
863,
18451,
8863,
1082,
202,
3163,
18,
659,
18,
8222,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
9167,
2773,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
31458,
88,
6290,
300,
11930,
525,
538,
81,
18,
11930,
411,
2116,
2984,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
2116,
2773,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
31458,
88,
413,
5201,
21394,
9674,
333,
2809,
8863,
1082,
202,
3163,
18,
659,
18,
8222,
31458,
88,
413,
7813,
33,
1154,
4801,
16,
1154,
9379,
16,
1896,
4801,
16,
1896,
9379,
225,
13059,
326,
7552,
3919,
8863,
1082,
202,
3163,
18,
659,
18,
8222,
31458,
88,
413,
3190,
33,
768,
10604,
538,
81,
96,
18,
2902,
96,
18,
75,
4430,
96,
18,
5830,
96,
18,
6715,
13,
282,
3502,
326,
2923,
585,
8863,
1082,
202,
3163,
18,
659,
18,
8222,
31458,
88,
413,
2135,
17,
2854,
9252,
7682,
7615,
1404,
8037,
316,
1983,
9252,
1965,
8863,
1082,
202,
3163,
18,
659,
18,
8222,
31458,
88,
413,
6208,
17,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
202,
202,
8401,
18894,
5621,
202,
202,
8401,
13943,
7019,
5621,
202,
202,
13174,
682,
32,
780,
34,
1775,
273,
394,
10688,
32,
780,
34,
12,
12726,
18,
345,
682,
12,
1968,
10019,
202,
202,
430,
261,
7099,
18,
12298,
2932,
413,
5201,
6,
3719,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
5852,
3502,
30719,
863,
18451,
8863,
1082,
202,
3163,
18,
659,
18,
8222,
5621,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
9167,
2773,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
31458,
88,
6290,
300,
11930,
525,
538,
81,
18,
11930,
411,
2116,
2984,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2
] |
GetCalendarResource.doCalendarResource(response, resource); | ToXML.encodeCalendarResource(response, resource); | public Element handle(Element request, Map context) throws ServiceException { ZimbraContext lc = getZimbraContext(context); Provisioning prov = Provisioning.getInstance(); String id = request.getAttribute(AdminService.E_ID); String newName = request.getAttribute(AdminService.E_NEW_NAME); CalendarResource resource = prov.getCalendarResourceById(id); if (resource == null) throw AccountServiceException.NO_SUCH_CALENDAR_RESOURCE(id); if (!canAccessAccount(lc, resource)) throw ServiceException.PERM_DENIED( "cannot access calendar resource account"); String oldName = resource.getName(); if (!canAccessEmail(lc, newName)) throw ServiceException.PERM_DENIED( "cannot access calendar resource account: " + newName); prov.renameCalendarResource(id, newName); ZimbraLog.security.info(ZimbraLog.encodeAttrs( new String[] {"cmd", "RenameCalendarResource", "name", oldName, "newName", newName})); // get again with new name... resource = prov.getCalendarResourceById(id); if (resource == null) throw ServiceException.FAILURE( "unable to get calendar resource after rename: " + id, null); Element response = lc.createElement(AdminService.RENAME_CALENDAR_RESOURCE_RESPONSE); GetCalendarResource.doCalendarResource(response, resource); return response; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/6816883c4564bfecc89b8277ae07476f268b9fb5/RenameCalendarResource.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/admin/RenameCalendarResource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
1640,
12,
1046,
590,
16,
1635,
819,
13,
565,
1216,
16489,
288,
3639,
2285,
381,
15397,
1042,
9109,
273,
23448,
381,
15397,
1042,
12,
2472,
1769,
3639,
26423,
17197,
273,
26423,
18,
588,
1442,
5621,
3639,
514,
612,
273,
590,
18,
588,
1499,
12,
4446,
1179,
18,
41,
67,
734,
1769,
3639,
514,
13253,
273,
590,
18,
588,
1499,
12,
4446,
1179,
18,
41,
67,
12917,
67,
1985,
1769,
3639,
5542,
1420,
1058,
273,
17197,
18,
588,
7335,
1420,
5132,
12,
350,
1769,
3639,
309,
261,
3146,
422,
446,
13,
5411,
604,
6590,
15133,
18,
3417,
67,
19958,
67,
12983,
29154,
67,
11395,
12,
350,
1769,
3639,
309,
16051,
4169,
1862,
3032,
12,
17704,
16,
1058,
3719,
5411,
604,
16489,
18,
3194,
49,
67,
13296,
29229,
12,
10792,
315,
12892,
2006,
5686,
1058,
2236,
8863,
3639,
514,
22916,
273,
1058,
18,
17994,
5621,
3639,
309,
16051,
4169,
1862,
4134,
12,
17704,
16,
13253,
3719,
5411,
604,
16489,
18,
3194,
49,
67,
13296,
29229,
12,
10792,
315,
12892,
2006,
5686,
1058,
2236,
30,
315,
397,
13253,
1769,
3639,
17197,
18,
18539,
7335,
1420,
12,
350,
16,
13253,
1769,
3639,
2285,
381,
15397,
1343,
18,
7462,
18,
1376,
12,
62,
381,
15397,
1343,
18,
3015,
8262,
12,
7734,
394,
514,
8526,
12528,
4172,
3113,
315,
16019,
7335,
1420,
3113,
315,
529,
3113,
17311,
22916,
16,
315,
2704,
461,
3113,
13253,
6792,
1769,
3639,
368,
336,
3382,
598,
394,
508,
2777,
3639,
1058,
273,
17197,
18,
588,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
1640,
12,
1046,
590,
16,
1635,
819,
13,
565,
1216,
16489,
288,
3639,
2285,
381,
15397,
1042,
9109,
273,
23448,
381,
15397,
1042,
12,
2472,
1769,
3639,
26423,
17197,
273,
26423,
18,
588,
1442,
5621,
3639,
514,
612,
273,
590,
18,
588,
1499,
12,
4446,
1179,
18,
41,
67,
734,
1769,
3639,
514,
13253,
273,
590,
18,
588,
1499,
12,
4446,
1179,
18,
41,
67,
12917,
67,
1985,
1769,
3639,
5542,
1420,
1058,
273,
17197,
18,
588,
7335,
1420,
5132,
12,
350,
1769,
3639,
309,
261,
3146,
422,
446,
13,
5411,
604,
6590,
15133,
18,
3417,
67,
19958,
67,
12983,
29154,
67,
11395,
12,
350,
1769,
3639,
309,
16051,
4169,
1862,
3032,
12,
17704,
16,
1058,
2
] |
protected void doExplicitGlyphLayout(boolean applyOffset) { char ch = aci.first(); int i=0; float baselineAscent = isVertical() ? (float) gv.getLogicalBounds().getWidth() : (metrics.getAscent() + Math.abs(metrics.getDescent())); textPath = (TextPath) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.TEXTPATH); int numGlyphs = gv.getNumGlyphs(); float[] gp = new float[numGlyphs*2]; gp = (float[]) gv.getGlyphPositions(0, numGlyphs, gp).clone(); float init_x_pos = (float) offset.getX(); float init_y_pos = (float) offset.getY(); float curr_x_pos = init_x_pos; float curr_y_pos = init_y_pos; boolean firstChar = true; float verticalFirstOffset = 0f; float largestAdvanceY = 0; boolean glyphOrientationAuto = isGlyphOrientationAuto(); int glyphOrientationAngle = 0; if (!glyphOrientationAuto) { glyphOrientationAngle = getGlyphOrientationAngle(); } while (i < numGlyphs) { if (firstChar) { if (glyphOrientationAuto) { if (isLatinChar(ch)) { // it will be rotated 90 verticalFirstOffset = 0f; } else { // it won't be rotated verticalFirstOffset = (float) gv.getGlyphMetrics(i).getBounds2D().getHeight(); } } else { if (glyphOrientationAngle == 0) { verticalFirstOffset = (float) gv.getGlyphMetrics(i).getBounds2D().getHeight(); } else { verticalFirstOffset = 0f; } } } else { if (glyphOrientationAuto && verticalFirstOffset == 0f && !isLatinChar(ch)) { verticalFirstOffset = (float) gv.getGlyphMetrics(i).getBounds2D().getHeight(); } } // ox and oy are origin adjustments for each glyph, // computed on the basis of baseline-shifts, etc. float ox = 0f; float oy = 0f; float verticalGlyphRotation = 0f; Float rotation = null; if (ch != CharacterIterator.DONE) { Float x = (Float) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.X); Float dx = (Float) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.DX); Float y = (Float) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.Y); Float dy = (Float) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.DY); rotation = (Float) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.ROTATION); if (isVertical()) { if (glyphOrientationAuto) { if (isLatinChar(ch)) { // If character is Latin, then rotate by // 90 degrees verticalGlyphRotation = (float) (Math.PI / 2f); } else { verticalGlyphRotation = 0f; } } else { verticalGlyphRotation = (float)Math.toRadians(glyphOrientationAngle); } if (textPath != null) { // if vertical and on a path, any x's are ignored x = null; } } else { if (textPath != null) { // if horizontal and on a path, any y's are ignored y = null; } } // calculate the total rotation for this glyph if (rotation == null || rotation.isNaN()) { rotation = new Float(verticalGlyphRotation); } else { rotation = new Float(rotation.floatValue() + verticalGlyphRotation); } if (x!= null && !x.isNaN()) { if (i==0) { if (applyOffset) { curr_x_pos = (float) offset.getX(); } else { curr_x_pos = x.floatValue(); init_x_pos = curr_x_pos; } } else { curr_x_pos = x.floatValue(); } } else if (dx != null && !dx.isNaN()) { curr_x_pos += dx.floatValue(); } if (y != null && !y.isNaN()) { if (i==0) { if (applyOffset) { curr_y_pos = (float) offset.getY(); } else { curr_y_pos = y.floatValue(); init_y_pos = curr_y_pos; } } else { curr_y_pos = y.floatValue(); } } else if (dy != null && !dy.isNaN()) { curr_y_pos += dy.floatValue(); } else if (i>0) { curr_y_pos += gp[i*2 + 1]-gp[i*2 - 1]; } float baselineAdjust = 0f; Object baseline = aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.BASELINE_SHIFT); if (baseline != null) { if (baseline instanceof Integer) { if (baseline==TextAttribute.SUPERSCRIPT_SUPER) { baselineAdjust = baselineAscent*0.5f; } else if (baseline==TextAttribute.SUPERSCRIPT_SUB) { baselineAdjust = -baselineAscent*0.5f; } } else if (baseline instanceof Float) { baselineAdjust = ((Float) baseline).floatValue(); } if (isVertical()) { ox = baselineAdjust; } else { oy = -baselineAdjust; } } if (isVertical()) { // offset due to rotation of first character oy += verticalFirstOffset; if (glyphOrientationAuto) { if (isLatinChar(ch)) { ox += metrics.getStrikethroughOffset(); } else { Rectangle2D glyphBounds = gv.getGlyphVisualBounds(i).getBounds2D(); Point2D glyphPos = gv.getGlyphPosition(i); ox -= (float)((glyphBounds.getMaxX() - glyphPos.getX()) - glyphBounds.getWidth()/2); } } else { // center the character if it's not auto orient Rectangle2D glyphBounds = gv.getGlyphVisualBounds(i).getBounds2D(); Point2D glyphPos = gv.getGlyphPosition(i); if (glyphOrientationAngle == 0) { ox -= (float)((glyphBounds.getMaxX() - glyphPos.getX()) - glyphBounds.getWidth()/2); } else if (glyphOrientationAngle == 180) { ox += (float)((glyphBounds.getMaxX() - glyphPos.getX()) - glyphBounds.getWidth()/2); } else if (glyphOrientationAngle == 90) { ox += metrics.getStrikethroughOffset(); } else { // 270 ox -= metrics.getStrikethroughOffset(); } } } } // set the new glyph position gv.setGlyphPosition(i, new Point2D.Float(curr_x_pos+ox,curr_y_pos+oy)); // calculte the position of the next glyph if (!ArabicTextHandler.arabicCharTransparent(ch)) { // only apply the advance if the current char is not transparent GVTGlyphMetrics gm = gv.getGlyphMetrics(i); if (isVertical()) { float advanceY = 0; if (glyphOrientationAuto) { if (isLatinChar(ch)) { advanceY = gm.getHorizontalAdvance(); } else { advanceY = gm.getVerticalAdvance(); } } else { if (glyphOrientationAngle == 0 || glyphOrientationAngle == 180) { advanceY = gm.getVerticalAdvance(); } else if (glyphOrientationAngle == 90) { advanceY = gm.getHorizontalAdvance(); } else { // 270 advanceY = gm.getHorizontalAdvance(); // need to translate so that the spacing // between chars is correct gv.setGlyphTransform(i, AffineTransform.getTranslateInstance(0, advanceY)); } } curr_y_pos += advanceY; } else { curr_x_pos += gm.getHorizontalAdvance(); } } // rotate the glyph if (rotation.floatValue() != 0f) { AffineTransform glyphTransform = gv.getGlyphTransform(i); if (glyphTransform == null) { glyphTransform = new AffineTransform(); } glyphTransform.rotate((double)rotation.floatValue()); gv.setGlyphTransform(i, glyphTransform); } ch = aci.setIndex(aci.getBeginIndex() + i + gv.getCharacterCount(i,i)); i++; firstChar = false; } advance = new Point2D.Float((float) (curr_x_pos - offset.getX()), (float) (curr_y_pos - offset.getY())); offset = new Point2D.Float(init_x_pos, init_y_pos); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/ec5c7e43ea8c69519830a03c30ca27a7c284ae65/GlyphLayout.java/clean/sources/org/apache/batik/gvt/text/GlyphLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
6459,
2896,
17186,
15141,
3744,
12,
6494,
9010,
2335,
15329,
343,
991,
33,
1077,
77,
18,
3645,
5621,
474,
77,
33,
20,
31,
5659,
27818,
13665,
319,
33,
291,
15704,
1435,
35,
12,
5659,
13,
75,
90,
18,
588,
17955,
5694,
7675,
588,
2384,
13332,
12,
9597,
18,
588,
13665,
319,
1435,
15,
10477,
18,
5113,
12,
9597,
18,
588,
4217,
319,
1435,
10019,
955,
743,
28657,
1528,
743,
13,
1077,
77,
18,
588,
1499,
12,
25269,
56,
861,
11050,
7069,
3198,
18,
1528,
1499,
18,
5151,
4211,
1769,
474,
2107,
25399,
33,
75,
90,
18,
588,
2578,
25399,
5621,
5659,
8526,
6403,
33,
2704,
5659,
63,
2107,
25399,
14,
22,
15533,
6403,
28657,
5659,
63,
5717,
75,
90,
18,
588,
15141,
11024,
12,
20,
16,
2107,
25399,
16,
6403,
2934,
14056,
5621,
5659,
2738,
67,
92,
67,
917,
28657,
5659,
13,
3348,
18,
588,
60,
5621,
5659,
2738,
67,
93,
67,
917,
28657,
5659,
13,
3348,
18,
588,
61,
5621,
5659,
17016,
67,
92,
67,
917,
33,
2738,
67,
92,
67,
917,
31,
5659,
17016,
67,
93,
67,
917,
33,
2738,
67,
93,
67,
917,
31,
6494,
3645,
2156,
33,
3767,
31,
5659,
17824,
3759,
2335,
33,
20,
74,
31,
5659,
80,
11475,
1871,
5882,
61,
33,
20,
31,
1075,
790,
539,
6451,
14097,
4965,
33,
291,
15141,
14097,
4965,
5621,
474,
19426,
14097,
8467,
33,
20,
31,
430,
12,
5,
19426,
14097,
4965,
15329,
19426,
14097,
8467,
33,
588,
15141,
14097,
8467,
5621,
97,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
6459,
2896,
17186,
15141,
3744,
12,
6494,
9010,
2335,
15329,
343,
991,
33,
1077,
77,
18,
3645,
5621,
474,
77,
33,
20,
31,
5659,
27818,
13665,
319,
33,
291,
15704,
1435,
35,
12,
5659,
13,
75,
90,
18,
588,
17955,
5694,
7675,
588,
2384,
13332,
12,
9597,
18,
588,
13665,
319,
1435,
15,
10477,
18,
5113,
12,
9597,
18,
588,
4217,
319,
1435,
10019,
955,
743,
28657,
1528,
743,
13,
1077,
77,
18,
588,
1499,
12,
25269,
56,
861,
11050,
7069,
3198,
18,
1528,
1499,
18,
5151,
4211,
1769,
474,
2107,
25399,
33,
75,
90,
18,
588,
2578,
25399,
5621,
5659,
8526,
6403,
33,
2704,
5659,
63,
2107,
25399,
14,
22,
15533,
6403,
28657,
5659,
63,
5717,
75,
2
] | ||
throws Exception { anticipateAndSend(false, true, "uei.opennms.org/IETF/BGP/traps/bgpEstablished", "v2c", ".1.3.6.1.2.1.15.7", 6, 1); } | throws Exception { anticipateAndSend(false, true, "uei.opennms.org/IETF/BGP/traps/bgpEstablished", "v2c", ".1.3.6.1.2.1.15.7", 6, 1); } | public void testV2EnterpriseIdAndGenericAndSpecificMatch() throws Exception { anticipateAndSend(false, true, "uei.opennms.org/IETF/BGP/traps/bgpEstablished", "v2c", ".1.3.6.1.2.1.15.7", 6, 1); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/f8a7ac955940d4193c7c67c228bcbee9918c8141/TrapHandlerTest.java/buggy/opennms-services/src/test/java/org/opennms/netmgt/trapd/TrapHandlerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
58,
22,
30699,
548,
1876,
7014,
1876,
9969,
2060,
1435,
3639,
1216,
1185,
288,
3639,
17841,
24629,
340,
1876,
3826,
12,
5743,
16,
638,
16,
12900,
315,
344,
77,
18,
3190,
82,
959,
18,
3341,
19,
45,
1584,
42,
19,
38,
9681,
19,
313,
6679,
19,
23139,
9122,
9237,
5992,
3113,
12900,
315,
90,
22,
71,
3113,
3552,
21,
18,
23,
18,
26,
18,
21,
18,
22,
18,
21,
18,
3600,
18,
27,
3113,
1666,
16,
404,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
58,
22,
30699,
548,
1876,
7014,
1876,
9969,
2060,
1435,
3639,
1216,
1185,
288,
3639,
17841,
24629,
340,
1876,
3826,
12,
5743,
16,
638,
16,
12900,
315,
344,
77,
18,
3190,
82,
959,
18,
3341,
19,
45,
1584,
42,
19,
38,
9681,
19,
313,
6679,
19,
23139,
9122,
9237,
5992,
3113,
12900,
315,
90,
22,
71,
3113,
3552,
21,
18,
23,
18,
26,
18,
21,
18,
22,
18,
21,
18,
3600,
18,
27,
3113,
1666,
16,
404,
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
] |
}finally{ if (pr != null) pr.close(); | public static File getResourceFromJarasFile(String pathToResource) throws IOException{ String[] tokens=pathToResource.split("/"); String fileName=tokens[tokens.length-1]; tokens=fileName.split("\\."); File temp=File.createTempFile(tokens[0],"."+tokens[1]); temp.deleteOnExit(); PrintWriter pr=null; try{ pr=new PrintWriter(new FileWriter(temp)); String content= getResourceFromJar(pathToResource); pr.write(content); }finally{ if (pr != null) pr.close(); } return temp; } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/d65a805503b71cfeac468a2769720ed2b90ee70f/JarUtil.java/buggy/v2/test/tools/src/tools/util/JarUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1387,
5070,
1265,
10813,
345,
812,
12,
780,
12221,
1420,
13,
5411,
1216,
1860,
95,
3639,
514,
8526,
2430,
33,
803,
774,
1420,
18,
4939,
2932,
4898,
1769,
3639,
514,
3968,
33,
7860,
63,
7860,
18,
2469,
17,
21,
15533,
3639,
2430,
33,
17812,
18,
4939,
2932,
1695,
1199,
1769,
3639,
1387,
1906,
33,
812,
18,
2640,
20181,
12,
7860,
63,
20,
6487,
6,
1199,
15,
7860,
63,
21,
19226,
3639,
1906,
18,
3733,
1398,
6767,
5621,
3639,
14071,
846,
33,
2011,
31,
3639,
775,
95,
5411,
846,
33,
2704,
14071,
12,
2704,
24639,
12,
5814,
10019,
5411,
514,
913,
33,
5070,
1265,
10813,
12,
803,
774,
1420,
1769,
5411,
846,
18,
2626,
12,
1745,
1769,
3639,
289,
23417,
95,
2398,
309,
261,
683,
480,
446,
13,
846,
18,
4412,
5621,
3639,
289,
1377,
327,
1906,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1387,
5070,
1265,
10813,
345,
812,
12,
780,
12221,
1420,
13,
5411,
1216,
1860,
95,
3639,
514,
8526,
2430,
33,
803,
774,
1420,
18,
4939,
2932,
4898,
1769,
3639,
514,
3968,
33,
7860,
63,
7860,
18,
2469,
17,
21,
15533,
3639,
2430,
33,
17812,
18,
4939,
2932,
1695,
1199,
1769,
3639,
1387,
1906,
33,
812,
18,
2640,
20181,
12,
7860,
63,
20,
6487,
6,
1199,
15,
7860,
63,
21,
19226,
3639,
1906,
18,
3733,
1398,
6767,
5621,
3639,
14071,
846,
33,
2011,
31,
3639,
775,
95,
5411,
846,
33,
2704,
14071,
12,
2704,
24639,
12,
5814,
10019,
5411,
514,
913,
33,
5070,
1265,
10813,
12,
803,
774,
1420,
1769,
5411,
846,
18,
2626,
12,
1745,
1769,
2
] | |
Path[] cols = getColumns(path.getParent()); | Path[] cols = getColumns(parent); | private Path addJoin(Path path, Constraint constraint) { Table table = constraint.getTable(); Path alias = Path.get(path.getParent() + "__" + table.getName()); if (!getTables(path.getParent()).contains(table)) { Join join = getJoin(path); Join simple = new SimpleJoin(table, alias); Path[] cols = getColumns(path.getParent()); Condition cond = Condition.equals (cols, getPaths(alias, constraint)); if (isOuter(path)) { join = new LeftJoin(join, simple, cond); } else { join = new InnerJoin(join, simple, cond); } setJoin(path, join); addTable(path.getParent(), table); } return alias; } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/703319bfd292f40acbfef1124c76ffd5f8e143a3/QGen.java/clean/archive/proto/src/com/arsdigita/persistence/proto/engine/rdbms/QGen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2666,
527,
4572,
12,
743,
589,
16,
10770,
4954,
13,
288,
3639,
3555,
1014,
273,
4954,
18,
588,
1388,
5621,
3639,
2666,
2308,
273,
2666,
18,
588,
12,
803,
18,
588,
3054,
1435,
397,
10425,
6,
397,
1014,
18,
17994,
10663,
3639,
309,
16051,
588,
6905,
12,
803,
18,
588,
3054,
1435,
2934,
12298,
12,
2121,
3719,
288,
5411,
4214,
1233,
273,
25762,
12,
803,
1769,
5411,
4214,
4143,
273,
394,
4477,
4572,
12,
2121,
16,
2308,
1769,
5411,
2666,
8526,
5347,
273,
14226,
12,
2938,
1769,
5411,
7949,
6941,
273,
7949,
18,
14963,
7734,
261,
6842,
16,
4339,
87,
12,
4930,
16,
4954,
10019,
5411,
309,
261,
291,
15040,
12,
803,
3719,
288,
7734,
1233,
273,
394,
13338,
4572,
12,
5701,
16,
4143,
16,
6941,
1769,
5411,
289,
469,
288,
7734,
1233,
273,
394,
19494,
4572,
12,
5701,
16,
4143,
16,
6941,
1769,
5411,
289,
5411,
444,
4572,
12,
803,
16,
1233,
1769,
5411,
527,
1388,
12,
803,
18,
588,
3054,
9334,
1014,
1769,
3639,
289,
3639,
327,
2308,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2666,
527,
4572,
12,
743,
589,
16,
10770,
4954,
13,
288,
3639,
3555,
1014,
273,
4954,
18,
588,
1388,
5621,
3639,
2666,
2308,
273,
2666,
18,
588,
12,
803,
18,
588,
3054,
1435,
397,
10425,
6,
397,
1014,
18,
17994,
10663,
3639,
309,
16051,
588,
6905,
12,
803,
18,
588,
3054,
1435,
2934,
12298,
12,
2121,
3719,
288,
5411,
4214,
1233,
273,
25762,
12,
803,
1769,
5411,
4214,
4143,
273,
394,
4477,
4572,
12,
2121,
16,
2308,
1769,
5411,
2666,
8526,
5347,
273,
14226,
12,
2938,
1769,
5411,
7949,
6941,
273,
7949,
18,
14963,
7734,
261,
6842,
16,
4339,
87,
12,
4930,
16,
4954,
10019,
5411,
309,
261,
291,
15040,
12,
803,
3719,
288,
7734,
1233,
273,
2
] |
fConfiguration.setEntityResolver(new EntityResolverWrapper(resolver)); | fConfiguration.setProperty(ENTITY_RESOLVER, new EntityResolverWrapper(resolver)); | public void setEntityResolver(EntityResolver resolver) { try { fConfiguration.setEntityResolver(new EntityResolverWrapper(resolver)); } catch (XMLConfigurationException e) { // do nothing } } // setEntityResolver(EntityResolver) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/ffe442af545b97831472958e059ab51512049b5e/AbstractSAXParser.java/buggy/src/org/apache/xerces/parsers/AbstractSAXParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20739,
4301,
12,
1943,
4301,
5039,
13,
288,
3639,
775,
288,
5411,
284,
1750,
18,
542,
1396,
12,
11101,
67,
17978,
2204,
16,
394,
3887,
4301,
3611,
12,
14122,
10019,
3639,
289,
3639,
1044,
261,
4201,
10737,
425,
13,
288,
5411,
368,
741,
5083,
3639,
289,
565,
289,
368,
20739,
4301,
12,
1943,
4301,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
918,
20739,
4301,
12,
1943,
4301,
5039,
13,
288,
3639,
775,
288,
5411,
284,
1750,
18,
542,
1396,
12,
11101,
67,
17978,
2204,
16,
394,
3887,
4301,
3611,
12,
14122,
10019,
3639,
289,
3639,
1044,
261,
4201,
10737,
425,
13,
288,
5411,
368,
741,
5083,
3639,
289,
565,
289,
368,
20739,
4301,
12,
1943,
4301,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.