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
|
|---|---|---|---|---|---|---|
Object catchObj; for (;;) { if (exception instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException( (JavaScriptException)exception); } else if (exception instanceof EcmaError) { catchObj = ((EcmaError)exception).getErrorObject(); } else if (exception instanceof WrappedException) { WrappedException wex = (WrappedException)exception; exception = wex.getWrappedException(); continue; } else { Context.codeBug(); catchObj = null;
|
if (t instanceof JavaScriptException) { return ((JavaScriptException)t).getValue(); } else if (t instanceof EcmaError) { return ((EcmaError)t).getErrorObject(); } else { if (!(t instanceof WrappedException)) Context.codeBug(); do { t = ((WrappedException)t).getWrappedException(); } while (t instanceof WrappedException); if (t instanceof JavaScriptException) { return ((JavaScriptException)t).getValue(); } else if (t instanceof EcmaError) { return ((EcmaError)t).getErrorObject();
|
public static Object getCatchObject(Context cx, Scriptable scope, Throwable exception) { Object catchObj; for (;;) { if (exception instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException( (JavaScriptException)exception); } else if (exception instanceof EcmaError) { // an offical ECMA error object, catchObj = ((EcmaError)exception).getErrorObject(); } else if (exception instanceof WrappedException) { WrappedException wex = (WrappedException)exception; exception = wex.getWrappedException(); continue; } else { // catch can not be called with any other exceptions Context.codeBug(); catchObj = null; } break; } return catchObj; }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/48b46eb3845fd6cf8fa13cd3def581f9a0ff4339/ScriptRuntime.java/buggy/src/org/mozilla/javascript/ScriptRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
1927,
505,
921,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
3639,
4206,
1520,
13,
565,
288,
3639,
1033,
1044,
2675,
31,
3639,
364,
261,
25708,
13,
288,
5411,
309,
261,
4064,
1276,
11905,
503,
13,
288,
7734,
1044,
2675,
273,
7739,
5576,
18,
318,
4113,
16634,
503,
12,
1171,
9079,
261,
16634,
503,
13,
4064,
1769,
5411,
289,
469,
309,
261,
4064,
1276,
20840,
2540,
668,
13,
288,
7734,
368,
392,
3397,
1706,
7773,
5535,
555,
733,
16,
7734,
1044,
2675,
273,
14015,
23057,
2540,
668,
13,
4064,
2934,
588,
668,
921,
5621,
5411,
289,
469,
309,
261,
4064,
1276,
24506,
503,
13,
288,
7734,
24506,
503,
341,
338,
273,
261,
17665,
503,
13,
4064,
31,
7734,
1520,
273,
341,
338,
18,
588,
17665,
503,
5621,
7734,
1324,
31,
5411,
289,
469,
288,
7734,
368,
1044,
848,
486,
506,
2566,
598,
1281,
1308,
4798,
7734,
1772,
18,
710,
19865,
5621,
7734,
1044,
2675,
273,
446,
31,
5411,
289,
5411,
898,
31,
3639,
289,
3639,
327,
1044,
2675,
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,
1071,
760,
1033,
1927,
505,
921,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
3639,
4206,
1520,
13,
565,
288,
3639,
1033,
1044,
2675,
31,
3639,
364,
261,
25708,
13,
288,
5411,
309,
261,
4064,
1276,
11905,
503,
13,
288,
7734,
1044,
2675,
273,
7739,
5576,
18,
318,
4113,
16634,
503,
12,
1171,
9079,
261,
16634,
503,
13,
4064,
1769,
5411,
289,
469,
309,
261,
4064,
1276,
20840,
2540,
668,
13,
288,
7734,
368,
392,
3397,
1706,
7773,
5535,
555,
733,
16,
7734,
1044,
2675,
273,
14015,
23057,
2540,
668,
13,
4064,
2934,
588,
668,
921,
5621,
5411,
289,
469,
309,
261,
4064,
1276,
24506,
503,
13,
288,
7734,
24506,
503,
341,
338,
273,
261,
17665,
503,
13,
2
] |
public ATFraction base_inc() {
|
public ATNumeric base_inc() {
|
public ATFraction base_inc() { return NATFraction.atValue(javaValue+1); }
|
57139 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57139/4e1a1e7e187016ccae3ae094421b4ce71805f87b/NATFraction.java/clean/src/edu/vub/at/objects/natives/NATFraction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14464,
13724,
1026,
67,
9523,
1435,
288,
202,
202,
2463,
31395,
13724,
18,
270,
620,
12,
6290,
620,
15,
21,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
14464,
13724,
1026,
67,
9523,
1435,
288,
202,
202,
2463,
31395,
13724,
18,
270,
620,
12,
6290,
620,
15,
21,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
aload(savedVariableObject); astore(variableObjectLocal);
|
cfw.addALoad(savedVariableObject); cfw.addAStore(variableObjectLocal);
|
private void generateCatchBlock(int exceptionType, short savedVariableObject, int catchLabel, int startLabel) { int handler = acquireLabel(); classFile.markHandler(handler); // MS JVM gets cranky if the exception object is left on the stack short exceptionObject = getNewWordLocal(); astore(exceptionObject); // reset the variable object local aload(savedVariableObject); astore(variableObjectLocal); aload(contextLocal); aload(variableObjectLocal); aload(exceptionObject); releaseWordLocal(exceptionObject); // unwrap the exception... addScriptRuntimeInvoke( "getCatchObject", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Throwable;" +")Ljava/lang/Object;"); String exceptionName; if (exceptionType == JAVASCRIPT_EXCEPTION) { exceptionName = "org/mozilla/javascript/JavaScriptException"; } else if (exceptionType == WRAPPED_EXCEPTION) { exceptionName = "org/mozilla/javascript/WrappedException"; } else { if (exceptionType != ECMAERROR_EXCEPTION) Context.codeBug(); exceptionName = "org/mozilla/javascript/EcmaError"; } // mark the handler classFile.addExceptionHandler(startLabel, catchLabel, handler, exceptionName); addByteCode(ByteCode.GOTO, catchLabel); }
|
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
14842,
1768,
12,
474,
1520,
559,
16,
4766,
565,
3025,
5198,
3092,
921,
16,
4766,
565,
509,
1044,
2224,
16,
4766,
565,
509,
787,
2224,
13,
565,
288,
3639,
509,
1838,
273,
10533,
2224,
5621,
3639,
29728,
18,
3355,
1503,
12,
4176,
1769,
3639,
368,
9238,
14131,
5571,
4422,
2304,
93,
309,
326,
1520,
733,
353,
2002,
603,
326,
2110,
3639,
3025,
1520,
921,
273,
12654,
3944,
2042,
5621,
3639,
279,
2233,
12,
4064,
921,
1769,
3639,
368,
2715,
326,
2190,
733,
1191,
3639,
279,
945,
12,
14077,
3092,
921,
1769,
3639,
279,
2233,
12,
6105,
921,
2042,
1769,
3639,
279,
945,
12,
2472,
2042,
1769,
3639,
279,
945,
12,
6105,
921,
2042,
1769,
3639,
279,
945,
12,
4064,
921,
1769,
3639,
3992,
3944,
2042,
12,
4064,
921,
1769,
3639,
368,
11014,
326,
1520,
2777,
3639,
527,
3651,
5576,
10969,
12,
5411,
315,
588,
14842,
921,
3113,
5411,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
4868,
5411,
397,
6,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
429,
4868,
5411,
397,
6,
21159,
19,
4936,
19,
15155,
4868,
5411,
397,
7923,
21159,
19,
4936,
19,
921,
4868,
1769,
3639,
514,
1520,
461,
31,
3639,
309,
261,
4064,
559,
422,
21227,
10885,
67,
12658,
13,
288,
5411,
1520,
461,
273,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
16634,
503,
14432,
3639,
289,
469,
309,
261,
4064,
559,
422,
12984,
2203,
12120,
67,
12658,
13,
288,
5411,
1520,
461,
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,
3238,
918,
2103,
14842,
1768,
12,
474,
1520,
559,
16,
4766,
565,
3025,
5198,
3092,
921,
16,
4766,
565,
509,
1044,
2224,
16,
4766,
565,
509,
787,
2224,
13,
565,
288,
3639,
509,
1838,
273,
10533,
2224,
5621,
3639,
29728,
18,
3355,
1503,
12,
4176,
1769,
3639,
368,
9238,
14131,
5571,
4422,
2304,
93,
309,
326,
1520,
733,
353,
2002,
603,
326,
2110,
3639,
3025,
1520,
921,
273,
12654,
3944,
2042,
5621,
3639,
279,
2233,
12,
4064,
921,
1769,
3639,
368,
2715,
326,
2190,
733,
1191,
3639,
279,
945,
12,
14077,
3092,
921,
1769,
3639,
279,
2233,
12,
6105,
921,
2042,
1769,
3639,
279,
945,
12,
2472,
2042,
1769,
3639,
279,
945,
12,
6105,
921,
2042,
1769,
3639,
2
] |
QuickFixAction.registerQuickFixAction(errorResult, fix, null);
|
QuickFixAction.registerQuickFixAction(errorResult, fix);
|
private static HighlightInfo checkStaticMethodDeclarationInInnerClass(PsiKeyword keyword) { if (new PsiMatcherImpl(keyword) .dot(PsiMatcherImpl.hasText(PsiModifier.STATIC)) .parent(PsiMatcherImpl.hasClass(PsiModifierList.class)) .parent(PsiMatcherImpl.hasClass(PsiMethod.class)) .parent(PsiMatcherImpl.hasClass(PsiClass.class)) .dot(PsiMatcherImpl.hasModifier(PsiModifier.STATIC, false)) .parent(PsiMatcherImpl.hasClass(new Class[]{PsiClass.class, PsiDeclarationStatement.class, PsiNewExpression.class, PsiEnumConstant.class})) .getElement() == null) { return null; } PsiMethod method = (PsiMethod)keyword.getParent().getParent(); if (PsiUtil.hasErrorElementChild(method)) return null; HighlightInfo errorResult = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, keyword, STATIC_DECLARATION_IN_INNER_CLASS); IntentionAction fix1 = QUICK_FIX_FACTORY.createModifierListFix(method.getModifierList(), PsiModifier.STATIC, false, false); QuickFixAction.registerQuickFixAction(errorResult, fix1, null); PsiModifierList classModifiers = ((PsiClass)keyword.getParent().getParent().getParent()).getModifierList(); IntentionAction fix = QUICK_FIX_FACTORY.createModifierListFix(classModifiers, PsiModifier.STATIC, true, false); QuickFixAction.registerQuickFixAction(errorResult, fix, null); return errorResult; }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dee9b62fe1ee40a1d6ca8afc95e5e1eca32dd11f/HighlightClassUtil.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/HighlightClassUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
31386,
966,
866,
5788,
1305,
6094,
382,
2857,
797,
12,
52,
7722,
8736,
4932,
13,
288,
565,
309,
261,
2704,
453,
7722,
6286,
2828,
12,
11041,
13,
1377,
263,
9811,
12,
52,
7722,
6286,
2828,
18,
5332,
1528,
12,
52,
7722,
9829,
18,
22741,
3719,
1377,
263,
2938,
12,
52,
7722,
6286,
2828,
18,
5332,
797,
12,
52,
7722,
9829,
682,
18,
1106,
3719,
1377,
263,
2938,
12,
52,
7722,
6286,
2828,
18,
5332,
797,
12,
52,
7722,
1305,
18,
1106,
3719,
1377,
263,
2938,
12,
52,
7722,
6286,
2828,
18,
5332,
797,
12,
52,
7722,
797,
18,
1106,
3719,
1377,
263,
9811,
12,
52,
7722,
6286,
2828,
18,
5332,
9829,
12,
52,
7722,
9829,
18,
22741,
16,
629,
3719,
1377,
263,
2938,
12,
52,
7722,
6286,
2828,
18,
5332,
797,
12,
2704,
1659,
63,
7073,
52,
7722,
797,
18,
1106,
16,
453,
7722,
6094,
3406,
18,
1106,
16,
453,
7722,
1908,
2300,
18,
1106,
16,
453,
7722,
3572,
6902,
18,
1106,
31700,
1377,
263,
21336,
1435,
422,
446,
13,
288,
1377,
327,
446,
31,
565,
289,
565,
453,
7722,
1305,
707,
273,
261,
52,
7722,
1305,
13,
11041,
18,
588,
3054,
7675,
588,
3054,
5621,
565,
309,
261,
52,
7722,
1304,
18,
5332,
668,
1046,
1763,
12,
2039,
3719,
327,
446,
31,
565,
31386,
966,
555,
1253,
273,
31386,
966,
18,
2640,
16205,
966,
12,
16205,
966,
559,
18,
3589,
16,
4766,
21394,
4932,
16,
4766,
21394,
19980,
67,
23956,
985,
2689,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
31386,
966,
866,
5788,
1305,
6094,
382,
2857,
797,
12,
52,
7722,
8736,
4932,
13,
288,
565,
309,
261,
2704,
453,
7722,
6286,
2828,
12,
11041,
13,
1377,
263,
9811,
12,
52,
7722,
6286,
2828,
18,
5332,
1528,
12,
52,
7722,
9829,
18,
22741,
3719,
1377,
263,
2938,
12,
52,
7722,
6286,
2828,
18,
5332,
797,
12,
52,
7722,
9829,
682,
18,
1106,
3719,
1377,
263,
2938,
12,
52,
7722,
6286,
2828,
18,
5332,
797,
12,
52,
7722,
1305,
18,
1106,
3719,
1377,
263,
2938,
12,
52,
7722,
6286,
2828,
18,
5332,
797,
12,
52,
7722,
797,
18,
1106,
3719,
1377,
263,
9811,
12,
52,
7722,
6286,
2828,
18,
5332,
9829,
12,
52,
7722,
9829,
18,
2
] |
updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.agentTargets);
|
updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.ra.getInterestedAgents());
|
private void publishDescriptors() { long now = now(); List l; synchronized (descriptors) { l = new ArrayList(descriptors.values()); } for (Iterator it = l.iterator(); it.hasNext();) { DescriptorEntry de = (DescriptorEntry) it.next(); logger.debug("publishDescriptors:" + " community=" + de.cd.getName() + " ra=" + de.ra + " doRemove=" + de.doRemove + " didChange=" + de.didChange); if (de.ra == null) { // publish new descriptor if (!de.nodeTargets.isEmpty()) { de.ra = new RelayAdapter(de.cd.getSource(), de.cd, de.cd.getUID()); updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.agentTargets); de.didChange = false; de.lastSent = now; blackboard.publishAdd(de.ra); if (logger.isDebugEnabled()) { logger.debug("publishAdd: " + de.ra); } } } else { if (!de.didChange) { } if ( (de.didChange && (now > (de.lastSent + updateInterval))) || (now > de.lastSent + cacheExpiration)) { // publish changed descriptor updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.agentTargets); ((CommunityDescriptorImpl) de.cd).setChangeType(de.didChange ? de.changeType : -1); ((CommunityDescriptorImpl) de.cd).setWhatChanged(de.didChange ? de.whatChanged : null); de.didChange = false; de.lastSent = now(); blackboard.publishChange(de.ra); if (logger.isDebugEnabled()) { logger.debug("publishChange: " + de.ra); } } else { if (de.doRemove) { // remove descriptor blackboard.publishRemove(de.ra); descriptors.remove(de.cd.getName()); if (logger.isDebugEnabled()) { logger.debug("publishRemove: " + de.ra); } } } } } }
|
11317 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11317/19973915ecd7f69a6f6e34904bb08facd263d9f3/CommunityDistributer.java/buggy/community/src/org/cougaar/community/manager/CommunityDistributer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3808,
12705,
1435,
288,
565,
1525,
2037,
273,
2037,
5621,
565,
987,
328,
31,
565,
3852,
261,
72,
8379,
13,
288,
1377,
328,
273,
394,
2407,
12,
72,
8379,
18,
2372,
10663,
565,
289,
565,
364,
261,
3198,
518,
273,
328,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1377,
12823,
1622,
443,
273,
261,
3187,
1622,
13,
518,
18,
4285,
5621,
1377,
1194,
18,
4148,
2932,
6543,
12705,
2773,
397,
10402,
315,
19833,
1546,
397,
443,
18,
4315,
18,
17994,
1435,
397,
10402,
315,
767,
1546,
397,
443,
18,
354,
397,
10402,
315,
741,
3288,
1546,
397,
443,
18,
2896,
3288,
397,
10402,
315,
5061,
3043,
1546,
397,
443,
18,
14044,
3043,
1769,
1377,
309,
261,
323,
18,
354,
422,
446,
13,
288,
368,
3808,
394,
4950,
3639,
309,
16051,
323,
18,
2159,
9432,
18,
291,
1921,
10756,
288,
1850,
443,
18,
354,
273,
394,
4275,
528,
4216,
12,
323,
18,
4315,
18,
588,
1830,
9334,
443,
18,
4315,
16,
443,
18,
4315,
18,
588,
3060,
10663,
1850,
1089,
9432,
12,
323,
18,
354,
16,
2199,
3386,
692,
443,
18,
2159,
9432,
294,
443,
18,
354,
18,
588,
2465,
3149,
23400,
10663,
1850,
443,
18,
14044,
3043,
273,
629,
31,
1850,
443,
18,
2722,
7828,
273,
2037,
31,
1850,
7721,
3752,
18,
6543,
986,
12,
323,
18,
354,
1769,
1850,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
6543,
986,
30,
315,
397,
443,
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,
3238,
918,
3808,
12705,
1435,
288,
565,
1525,
2037,
273,
2037,
5621,
565,
987,
328,
31,
565,
3852,
261,
72,
8379,
13,
288,
1377,
328,
273,
394,
2407,
12,
72,
8379,
18,
2372,
10663,
565,
289,
565,
364,
261,
3198,
518,
273,
328,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
1377,
12823,
1622,
443,
273,
261,
3187,
1622,
13,
518,
18,
4285,
5621,
1377,
1194,
18,
4148,
2932,
6543,
12705,
2773,
397,
10402,
315,
19833,
1546,
397,
443,
18,
4315,
18,
17994,
1435,
397,
10402,
315,
767,
1546,
397,
443,
18,
354,
397,
10402,
315,
741,
3288,
1546,
397,
443,
18,
2896,
3288,
397,
10402,
315,
5061,
3043,
1546,
397,
443,
18,
14044,
3043,
1769,
2
] |
private void handleDefine() throws IOException { // Next token is the name of the #define String name = nextWord(); //System.err.println("IN HANDLE_DEFINE: '" + name + "' (line " + lineNumber() + " file " + filename() + ")"); // (Note that this is not actually proper handling for multi-line #defines) List values = new ArrayList(); while (nextToken(true) != StreamTokenizer.TT_EOL) { values.add(curTokenAsString()); } // if we're not within an active block of code (like inside an "#ifdef // FOO" where FOO isn't defined), then don't actually alter the definition // map. debugPrint(true, "#define " + name); if (enabled()) { boolean emitDefine = true; // Handle #definitions to nothing or to a constant value int sz = values.size(); if (sz == 0) { // definition to nothing, like "#define FOO" String oldDef = (String)defineMap.put(name, ""); if (oldDef != null) { System.err.println("WARNING: \"" + name + "\" redefined from \"" + oldDef + "\" to \"\""); } // We don't want to emit the define, because it would serve no purpose // and cause GlueGen errors (confuse the GnuCParser) emitDefine = false; //System.out.println("//---DEFINED: " + name + "to \"\""); } else if (sz == 1) { // See whether the value is a constant String value = (String) values.get(0); if (isConstant(value)) { // Value is numeric constant like "#define FOO 5". // Put it in the #define map String oldDef = (String)defineMap.put(name, value); if (oldDef != null) { System.err.println("WARNING: \"" + name + "\" redefined from \"" + oldDef + "\" to \"" + value + "\""); } //System.out.println("//---DEFINED: " + name + " to \"" + value + "\""); } else { // Value is a symbolic constant like "#define FOO BAR". // Try to look up the symbol's value String newValue = (String) defineMap.get(value); if (newValue != null) { // Set the value to the value of the symbol. // // TO DO: Is this correct? Why not output the symbol unchanged? // I think that it's a good thing to see that some symbols are // defined in terms of others. -chris values.set(0, newValue); } else { // Still perform textual replacement defineMap.put(name, value); emitDefine = false; } } } else { // can't handle definitions that aren't constants or empty emitDefine = false; StringBuffer buf = new StringBuffer("#define "); buf.append(name); for (int i = 0; i < sz; ++i) { buf.append(" "); buf.append(values.get(i)); } System.err.println("WARNING: Ignoring \"" + buf.toString() + "\" at \"" + filename() + "\" line " + lineNumber() + ": Unable to handle definition to non-constant"); if (defineMap.get(name) != null) { // This is probably something the user should investigate. throw new RuntimeException("Cannot redefine symbol \"" + name + " from \"" + defineMap.get(name) + "\" to non-constant " + " definition \"" + buf.toString() + "\""); } } if (emitDefine) { // Print name and value print("# define "); print(name); for (Iterator iter = values.iterator(); iter.hasNext(); ) { print(" "); print((String) iter.next()); } println(); } } // end if (enabled()) //System.err.println("OUT HANDLE_DEFINE: " + name); }
|
48257 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48257/9512c9fa62ece3960472b6ab2cd6ce5244da8501/PCPP.java/clean/src/net/java/games/gluegen/pcpp/PCPP.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1640,
11644,
1435,
1216,
1860,
288,
565,
368,
4804,
1147,
353,
326,
508,
434,
326,
468,
11255,
565,
514,
508,
273,
1024,
3944,
5621,
565,
368,
3163,
18,
370,
18,
8222,
2932,
706,
24166,
900,
67,
12904,
3740,
30,
2119,
397,
508,
397,
2491,
225,
261,
1369,
315,
397,
13629,
1435,
397,
315,
585,
315,
397,
1544,
1435,
397,
7310,
1769,
565,
368,
261,
8067,
716,
333,
353,
486,
6013,
5338,
5057,
364,
3309,
17,
1369,
468,
536,
1465,
13,
565,
987,
924,
273,
394,
2407,
5621,
565,
1323,
261,
4285,
1345,
12,
3767,
13,
480,
3961,
10524,
18,
1470,
67,
5842,
13,
288,
1377,
924,
18,
1289,
12,
1397,
1345,
8092,
10663,
565,
289,
565,
368,
309,
732,
4565,
486,
3470,
392,
2695,
1203,
434,
981,
261,
5625,
4832,
392,
6619,
430,
536,
565,
368,
17634,
51,
6,
1625,
17634,
51,
5177,
1404,
2553,
3631,
1508,
2727,
1404,
6013,
10182,
326,
2379,
565,
368,
852,
18,
565,
1198,
5108,
12,
3767,
16,
6619,
11255,
315,
397,
508,
1769,
565,
309,
261,
5745,
10756,
565,
288,
1377,
1250,
3626,
11644,
273,
638,
31,
6647,
368,
5004,
468,
13314,
358,
5083,
578,
358,
279,
5381,
460,
1377,
509,
11262,
273,
924,
18,
1467,
5621,
1377,
309,
261,
24575,
422,
374,
13,
288,
3639,
368,
2379,
358,
5083,
16,
3007,
6619,
11255,
17634,
51,
6,
3639,
514,
1592,
3262,
273,
261,
780,
13,
11255,
863,
18,
458,
12,
529,
16,
1408,
1769,
3639,
309,
261,
1673,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1640,
11644,
1435,
1216,
1860,
288,
565,
368,
4804,
1147,
353,
326,
508,
434,
326,
468,
11255,
565,
514,
508,
273,
1024,
3944,
5621,
565,
368,
3163,
18,
370,
18,
8222,
2932,
706,
24166,
900,
67,
12904,
3740,
30,
2119,
397,
508,
397,
2491,
225,
261,
1369,
315,
397,
13629,
1435,
397,
315,
585,
315,
397,
1544,
1435,
397,
7310,
1769,
565,
368,
261,
8067,
716,
333,
353,
486,
6013,
5338,
5057,
364,
3309,
17,
1369,
468,
536,
1465,
13,
565,
987,
924,
273,
394,
2407,
5621,
565,
1323,
261,
4285,
1345,
12,
3767,
13,
480,
3961,
10524,
18,
1470,
67,
5842,
13,
288,
1377,
924,
18,
1289,
12,
1397,
1345,
8092,
10663,
565,
289,
565,
2
] |
||
invaxis[2][0] = (a[1]*b[2] - a[2]*b[1])/det; invaxis[2][1] = (a[2]*b[0] - a[0]*b[2])/det; invaxis[2][2] = (a[0]*b[1] - a[1]*b[0])/det;
|
invaxis[2][0] = (a.y*b.z - a.z*b.y)/det; invaxis[2][1] = (a.z*b.x - a.x*b.z)/det; invaxis[2][2] = (a.x*b.y - a.y*b.x)/det;
|
public static double[][] calcInvertedAxes(double[] a, double[] b, double[] c) { double det = a[0]*b[1]*c[2] - a[0]*b[2]*c[1] - a[1]*b[0]*c[2] + a[1]*b[2]*c[0] + a[2]*b[0]*c[1] - a[2]*b[1]*c[0]; double invaxis[][] = new double[3][3]; invaxis[0][0] = (b[1]*c[2] - b[2]*c[1])/det; invaxis[0][1] = (b[2]*c[0] - b[0]*c[2])/det; invaxis[0][2] = (b[0]*c[1] - b[1]*c[0])/det; invaxis[1][0] = (a[2]*c[1] - a[1]*c[2])/det; invaxis[1][1] = (a[0]*c[2] - a[2]*c[0])/det; invaxis[1][2] = (a[1]*c[0] - a[0]*c[1])/det; invaxis[2][0] = (a[1]*b[2] - a[2]*b[1])/det; invaxis[2][1] = (a[2]*b[0] - a[0]*b[2])/det; invaxis[2][2] = (a[0]*b[1] - a[1]*b[0])/det; return invaxis; }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/ffd604384537f658c2e37a06cc26b0e692b55249/CrystalGeometryTools.java/clean/src/org/openscience/cdk/geometry/CrystalGeometryTools.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
63,
6362,
65,
7029,
382,
25631,
26494,
12,
9056,
8526,
279,
16,
1645,
8526,
324,
16,
1645,
8526,
276,
13,
288,
540,
1645,
3023,
273,
279,
63,
20,
5772,
70,
63,
21,
5772,
71,
63,
22,
65,
300,
8227,
279,
63,
20,
5772,
70,
63,
22,
5772,
71,
63,
21,
65,
300,
8227,
279,
63,
21,
5772,
70,
63,
20,
5772,
71,
63,
22,
65,
397,
8227,
279,
63,
21,
5772,
70,
63,
22,
5772,
71,
63,
20,
65,
397,
8227,
279,
63,
22,
5772,
70,
63,
20,
5772,
71,
63,
21,
65,
300,
8227,
279,
63,
22,
5772,
70,
63,
21,
5772,
71,
63,
20,
15533,
540,
1645,
2198,
4890,
63,
6362,
65,
273,
394,
1645,
63,
23,
6362,
23,
15533,
540,
2198,
4890,
63,
20,
6362,
20,
65,
273,
261,
70,
63,
21,
5772,
71,
63,
22,
65,
300,
324,
63,
22,
5772,
71,
63,
21,
5717,
19,
8238,
31,
540,
2198,
4890,
63,
20,
6362,
21,
65,
273,
261,
70,
63,
22,
5772,
71,
63,
20,
65,
300,
324,
63,
20,
5772,
71,
63,
22,
5717,
19,
8238,
31,
540,
2198,
4890,
63,
20,
6362,
22,
65,
273,
261,
70,
63,
20,
5772,
71,
63,
21,
65,
300,
324,
63,
21,
5772,
71,
63,
20,
5717,
19,
8238,
31,
540,
2198,
4890,
63,
21,
6362,
20,
65,
273,
261,
69,
63,
22,
5772,
71,
63,
21,
65,
300,
279,
63,
21,
5772,
71,
63,
22,
5717,
19,
8238,
31,
540,
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,
1645,
63,
6362,
65,
7029,
382,
25631,
26494,
12,
9056,
8526,
279,
16,
1645,
8526,
324,
16,
1645,
8526,
276,
13,
288,
540,
1645,
3023,
273,
279,
63,
20,
5772,
70,
63,
21,
5772,
71,
63,
22,
65,
300,
8227,
279,
63,
20,
5772,
70,
63,
22,
5772,
71,
63,
21,
65,
300,
8227,
279,
63,
21,
5772,
70,
63,
20,
5772,
71,
63,
22,
65,
397,
8227,
279,
63,
21,
5772,
70,
63,
22,
5772,
71,
63,
20,
65,
397,
8227,
279,
63,
22,
5772,
70,
63,
20,
5772,
71,
63,
21,
65,
300,
8227,
279,
63,
22,
5772,
70,
63,
21,
5772,
71,
63,
20,
15533,
540,
1645,
2198,
4890,
63,
6362,
65,
273,
2
] |
l = l - (days * (24*60*60));
|
l = l - ((long)days * ((long)24*60*60*1000));
|
public static String formatTime(long timeInterval, int maxTerms) { StringBuffer sb = new StringBuffer(64); long l = timeInterval / 1000; // ms -> s int termCount = 0; // int weeks = (int)(l / (7*24*60*60)); if (weeks > 0) { sb.append(weeks + "w"); termCount++; l = l - (weeks * (7*24*60*60)); } // int days = (int)(l / (24*60*60)); if (days > 0) { sb.append(days + "d"); termCount++; l = l - (days * (24*60*60)); } if(termCount >= maxTerms) { return sb.toString(); } // int hours = (int)(l / (60*60)); if (hours > 0) { sb.append(hours + "h"); termCount++; l = l - (hours * (60*60)); } if(termCount >= maxTerms) { return sb.toString(); } // int minutes = (int)(l / 60); if (minutes > 0) { sb.append(minutes + "m"); termCount++; l = l - (minutes * 60); } if(termCount >= maxTerms) { return sb.toString(); } // sb.append(l + "s"); return sb.toString(); }
|
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/e3e1385af7111953dc0be72e3d64baca37a22231/TimeUtil.java/buggy/src/freenet/support/TimeUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
740,
950,
12,
5748,
813,
4006,
16,
509,
943,
11673,
13,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
1105,
1769,
202,
202,
5748,
328,
273,
813,
4006,
342,
4336,
31,
225,
368,
4086,
317,
272,
202,
202,
474,
2481,
1380,
273,
374,
31,
202,
202,
759,
202,
202,
474,
17314,
273,
261,
474,
21433,
80,
342,
261,
27,
14,
3247,
14,
4848,
14,
4848,
10019,
202,
202,
430,
261,
10741,
87,
405,
374,
13,
288,
1082,
225,
2393,
18,
6923,
12,
10741,
87,
397,
315,
91,
8863,
1082,
225,
2481,
1380,
9904,
31,
1082,
225,
328,
273,
328,
300,
261,
10741,
87,
380,
261,
27,
14,
3247,
14,
4848,
14,
4848,
10019,
202,
202,
97,
202,
202,
759,
202,
202,
474,
4681,
273,
261,
474,
21433,
80,
342,
261,
3247,
14,
4848,
14,
4848,
10019,
202,
202,
430,
261,
9810,
405,
374,
13,
288,
1082,
225,
2393,
18,
6923,
12,
9810,
397,
315,
72,
8863,
1082,
225,
2481,
1380,
9904,
31,
1082,
225,
328,
273,
328,
300,
261,
9810,
380,
261,
3247,
14,
4848,
14,
4848,
10019,
202,
202,
97,
202,
202,
430,
12,
6408,
1380,
1545,
943,
11673,
13,
288,
1082,
225,
327,
2393,
18,
10492,
5621,
202,
202,
97,
202,
202,
759,
202,
202,
474,
7507,
273,
261,
474,
21433,
80,
342,
261,
4848,
14,
4848,
10019,
202,
202,
430,
261,
16814,
405,
374,
13,
288,
1082,
225,
2393,
18,
6923,
12,
16814,
397,
315,
76,
8863,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
740,
950,
12,
5748,
813,
4006,
16,
509,
943,
11673,
13,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
1105,
1769,
202,
202,
5748,
328,
273,
813,
4006,
342,
4336,
31,
225,
368,
4086,
317,
272,
202,
202,
474,
2481,
1380,
273,
374,
31,
202,
202,
759,
202,
202,
474,
17314,
273,
261,
474,
21433,
80,
342,
261,
27,
14,
3247,
14,
4848,
14,
4848,
10019,
202,
202,
430,
261,
10741,
87,
405,
374,
13,
288,
1082,
225,
2393,
18,
6923,
12,
10741,
87,
397,
315,
91,
8863,
1082,
225,
2481,
1380,
9904,
31,
1082,
225,
328,
273,
328,
300,
261,
10741,
87,
380,
261,
27,
14,
3247,
14,
4848,
14,
4848,
2
] |
public VariableResolverProcessor(PsiJavaCodeReferenceElement fromElement) { super(fromElement.getText(), null, ourFilter, new PsiConflictResolver[]{new JavaVariableConflictResolver()}, new ArrayList()); myFromElement = fromElement; PsiElement qualifier = fromElement.getQualifier(); PsiElement referenceName = fromElement.getReferenceNameElement(); if (referenceName instanceof PsiIdentifier){ setName(referenceName.getText()); } if (qualifier instanceof PsiExpression){ final JavaResolveResult accessClass = PsiUtil.getAccessObjectClass((PsiExpression)qualifier); final PsiElement element = accessClass.getElement(); if (element instanceof PsiTypeParameter) { final PsiManager manager = element.getManager(); final PsiClassType type = manager.getElementFactory().createType((PsiTypeParameter) element); final PsiType accessType = accessClass.getSubstitutor().substitute(type); if(accessType instanceof PsiArrayType) myAccessClass = manager.getElementFactory().getArrayClass(); else if(accessType instanceof PsiClassType) myAccessClass = ((PsiClassType)accessType).resolve(); } else if (element instanceof PsiClass) myAccessClass = (PsiClass) element; }
|
public VariableResolverProcessor(String name, PsiElement place, PsiClass accessClass){ super(name, null, ourFilter, new PsiConflictResolver[]{new JavaVariableConflictResolver()}, new ArrayList()); myFromElement = place; myAccessClass = accessClass;
|
public VariableResolverProcessor(PsiJavaCodeReferenceElement fromElement) { super(fromElement.getText(), null, ourFilter, new PsiConflictResolver[]{new JavaVariableConflictResolver()}, new ArrayList()); myFromElement = fromElement; PsiElement qualifier = fromElement.getQualifier(); PsiElement referenceName = fromElement.getReferenceNameElement(); if (referenceName instanceof PsiIdentifier){ setName(referenceName.getText()); } if (qualifier instanceof PsiExpression){ final JavaResolveResult accessClass = PsiUtil.getAccessObjectClass((PsiExpression)qualifier); final PsiElement element = accessClass.getElement(); if (element instanceof PsiTypeParameter) { final PsiManager manager = element.getManager(); final PsiClassType type = manager.getElementFactory().createType((PsiTypeParameter) element); final PsiType accessType = accessClass.getSubstitutor().substitute(type); if(accessType instanceof PsiArrayType) myAccessClass = manager.getElementFactory().getArrayClass(); else if(accessType instanceof PsiClassType) myAccessClass = ((PsiClassType)accessType).resolve(); } else if (element instanceof PsiClass) myAccessClass = (PsiClass) element; } }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/23150f8a02bddbd3f249196772c53e2d74d03f80/VariableResolverProcessor.java/buggy/source/com/intellij/psi/impl/source/resolve/VariableResolverProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
7110,
4301,
5164,
12,
52,
7722,
5852,
1085,
2404,
1046,
628,
1046,
13,
288,
565,
2240,
12,
2080,
1046,
18,
588,
1528,
9334,
446,
16,
3134,
1586,
16,
394,
453,
7722,
10732,
4301,
63,
7073,
2704,
5110,
3092,
10732,
4301,
1435,
5779,
394,
2407,
10663,
565,
3399,
1265,
1046,
273,
628,
1046,
31,
565,
453,
7722,
1046,
12327,
273,
628,
1046,
18,
588,
16185,
5621,
565,
453,
7722,
1046,
2114,
461,
273,
628,
1046,
18,
588,
2404,
461,
1046,
5621,
565,
309,
261,
6180,
461,
1276,
453,
7722,
3004,
15329,
1377,
6788,
12,
6180,
461,
18,
588,
1528,
10663,
565,
289,
565,
309,
261,
28157,
1276,
453,
7722,
2300,
15329,
1377,
727,
5110,
8460,
1253,
2006,
797,
273,
453,
7722,
1304,
18,
588,
1862,
921,
797,
12443,
52,
7722,
2300,
13,
28157,
1769,
1377,
727,
453,
7722,
1046,
930,
273,
2006,
797,
18,
21336,
5621,
1377,
309,
261,
2956,
1276,
453,
7722,
16920,
13,
288,
3639,
727,
453,
7722,
1318,
3301,
273,
930,
18,
588,
1318,
5621,
3639,
727,
453,
7722,
18328,
618,
273,
3301,
18,
21336,
1733,
7675,
2640,
559,
12443,
52,
7722,
16920,
13,
930,
1769,
3639,
727,
453,
7722,
559,
2006,
559,
273,
2006,
797,
18,
588,
1676,
5223,
3408,
7675,
1717,
17207,
12,
723,
1769,
3639,
309,
12,
3860,
559,
1276,
453,
7722,
27182,
13,
1850,
3399,
1862,
797,
273,
3301,
18,
21336,
1733,
7675,
588,
1076,
797,
5621,
3639,
469,
309,
12,
3860,
559,
1276,
453,
7722,
18328,
13,
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,
282,
1071,
7110,
4301,
5164,
12,
52,
7722,
5852,
1085,
2404,
1046,
628,
1046,
13,
288,
565,
2240,
12,
2080,
1046,
18,
588,
1528,
9334,
446,
16,
3134,
1586,
16,
394,
453,
7722,
10732,
4301,
63,
7073,
2704,
5110,
3092,
10732,
4301,
1435,
5779,
394,
2407,
10663,
565,
3399,
1265,
1046,
273,
628,
1046,
31,
565,
453,
7722,
1046,
12327,
273,
628,
1046,
18,
588,
16185,
5621,
565,
453,
7722,
1046,
2114,
461,
273,
628,
1046,
18,
588,
2404,
461,
1046,
5621,
565,
309,
261,
6180,
461,
1276,
453,
7722,
3004,
15329,
1377,
6788,
12,
6180,
461,
18,
588,
1528,
10663,
565,
289,
565,
309,
261,
28157,
1276,
453,
7722,
2300,
15329,
1377,
727,
5110,
8460,
1253,
2006,
797,
2
] |
CompletionProposal completionProposal = completionProposal(_token, _tokenOffset, _offset, proposalElementName); _completionProposalsList.add(completionProposal);
|
WODCompletionProposal completionProposal = new WODCompletionProposal(_token, _tokenOffset, _offset, proposalElementName); _completionProposals.add(completionProposal);
|
protected String findMemberProposals(IMember _member, String _partialToken, String[] _prefixes, String _token, int _tokenOffset, int _offset, List _completionProposalsList, int _requiredParameterCount, boolean _returnValueRequired) throws JavaModelException { String nextType = null; int flags = _member.getFlags(); if (!Flags.isStatic(flags) && !Flags.isPrivate(flags)) { boolean memberMatches = false; if (_member instanceof IMethod) { IMethod method = (IMethod) _member; if (method.getParameterNames().length == _requiredParameterCount) { nextType = method.getReturnType(); if (_returnValueRequired && nextType != null && !nextType.equals("V")) { memberMatches = true; } else if (!_returnValueRequired && (nextType == null || nextType.equals("V"))) { memberMatches = true; } else { nextType = null; } } } else { nextType = ((IField) _member).getTypeSignature(); memberMatches = true; } if (memberMatches) { String elementName = _member.getElementName(); String lowercaseElementName = elementName.toLowerCase(); String proposalElementName = null; for (int prefixNum = 0; proposalElementName == null && prefixNum < _prefixes.length; prefixNum++) { if (lowercaseElementName.startsWith(_prefixes[prefixNum])) { int prefixLength = _prefixes[prefixNum].length(); String noPrefixElementName = lowercaseElementName.substring(prefixLength); if (noPrefixElementName.startsWith(_partialToken)) { proposalElementName = elementName.substring(prefixLength); if (proposalElementName.length() > 0) { char firstChar = proposalElementName.charAt(0); if (Character.isUpperCase(firstChar)) { proposalElementName = Character.toLowerCase(firstChar) + proposalElementName.substring(1); } } } } } if (proposalElementName == null && lowercaseElementName.startsWith(_partialToken)) { proposalElementName = elementName; } if (proposalElementName != null) { CompletionProposal completionProposal = completionProposal(_token, _tokenOffset, _offset, proposalElementName); _completionProposalsList.add(completionProposal); } else { nextType = null; } } } return nextType; }
|
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/0121c50c657e485c351b986b3b99a5c73cbbb9a3/WODCompletionProcessor.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.wodclipse/java/org/objectstyle/wolips/wodclipse/editors/WODCompletionProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
1104,
4419,
626,
22536,
12,
3445,
2558,
389,
5990,
16,
514,
389,
11601,
1345,
16,
514,
8526,
389,
17777,
16,
514,
389,
2316,
16,
509,
389,
2316,
2335,
16,
509,
389,
3348,
16,
987,
389,
11469,
626,
22536,
682,
16,
509,
389,
4718,
1662,
1380,
16,
1250,
389,
2463,
620,
3705,
13,
1216,
5110,
1488,
503,
288,
565,
514,
1024,
559,
273,
446,
31,
565,
509,
2943,
273,
389,
5990,
18,
588,
5094,
5621,
565,
309,
16051,
5094,
18,
291,
5788,
12,
7133,
13,
597,
401,
5094,
18,
291,
6014,
12,
7133,
3719,
288,
1377,
1250,
3140,
6869,
273,
629,
31,
1377,
309,
261,
67,
5990,
1276,
467,
1305,
13,
288,
3639,
467,
1305,
707,
273,
261,
45,
1305,
13,
389,
5990,
31,
3639,
309,
261,
2039,
18,
588,
1662,
1557,
7675,
2469,
422,
389,
4718,
1662,
1380,
13,
288,
1850,
1024,
559,
273,
707,
18,
588,
9102,
5621,
1850,
309,
261,
67,
2463,
620,
3705,
597,
1024,
559,
480,
446,
597,
401,
4285,
559,
18,
14963,
2932,
58,
6,
3719,
288,
5411,
3140,
6869,
273,
638,
31,
1850,
289,
1850,
469,
309,
16051,
67,
2463,
620,
3705,
597,
261,
4285,
559,
422,
446,
747,
1024,
559,
18,
14963,
2932,
58,
6,
20349,
288,
5411,
3140,
6869,
273,
638,
31,
1850,
289,
1850,
469,
288,
5411,
1024,
559,
273,
446,
31,
1850,
289,
3639,
289,
1377,
289,
1377,
469,
288,
3639,
1024,
559,
273,
14015,
45,
974,
13,
389,
5990,
2934,
588,
559,
5374,
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,
514,
1104,
4419,
626,
22536,
12,
3445,
2558,
389,
5990,
16,
514,
389,
11601,
1345,
16,
514,
8526,
389,
17777,
16,
514,
389,
2316,
16,
509,
389,
2316,
2335,
16,
509,
389,
3348,
16,
987,
389,
11469,
626,
22536,
682,
16,
509,
389,
4718,
1662,
1380,
16,
1250,
389,
2463,
620,
3705,
13,
1216,
5110,
1488,
503,
288,
565,
514,
1024,
559,
273,
446,
31,
565,
509,
2943,
273,
389,
5990,
18,
588,
5094,
5621,
565,
309,
16051,
5094,
18,
291,
5788,
12,
7133,
13,
597,
401,
5094,
18,
291,
6014,
12,
7133,
3719,
288,
1377,
1250,
3140,
6869,
273,
629,
31,
1377,
309,
261,
67,
5990,
1276,
467,
1305,
13,
288,
3639,
467,
1305,
707,
273,
2
] |
Token xsp; xsp = jj_scanpos; if (jj_3R_28()) { jj_scanpos = xsp; if (jj_3R_29()) return true; } return false;
|
Token xsp; xsp = jj_scanpos; if (jj_3R_28()) { jj_scanpos = xsp; if (jj_3R_29()) return true;
|
final private boolean jj_3R_25() { Token xsp; xsp = jj_scanpos; if (jj_3R_28()) { jj_scanpos = xsp; if (jj_3R_29()) return true; } return false; }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/bad9201cffeb6c6da295101be65bfa4924caa39e/JspParser.java/buggy/pmd/src/net/sourceforge/pmd/jsp/ast/JspParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2947,
1435,
288,
3639,
3155,
619,
1752,
31,
3639,
619,
1752,
273,
10684,
67,
9871,
917,
31,
3639,
309,
261,
78,
78,
67,
23,
54,
67,
6030,
10756,
288,
5411,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2947,
1435,
288,
3639,
3155,
619,
1752,
31,
3639,
619,
1752,
273,
10684,
67,
9871,
917,
31,
3639,
309,
261,
78,
78,
67,
23,
54,
67,
6030,
10756,
288,
5411,
10684,
67,
9871,
917,
273,
619,
1752,
31,
5411,
309,
261,
78,
78,
67,
23,
54,
67,
5540,
10756,
327,
638,
31,
3639,
289,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(req.getParameter("verifyUser") != null) { String loginName = (req.getParameter("login_name")==null) ? "" : (req.getParameter("login_name")) ; String password = (req.getParameter("password")==null) ? "" : (req.getParameter("password")) ; String sqlQ = "GetUserIdFromName '" + loginName + "', '" + password + "'" ; userId = imcref.sqlProcedureStr( sqlQ ) ; if( userId == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,50) ; log(header + err.getErrorMsg()) ; return ; } String currPass = imcref.sqlProcedureStr("GetUserPassword " + userId ) ; if(!currPass.equals(password)) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } res.sendRedirect("UserChangePrefs?changeUser=on"); return ; }
|
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String host = req.getHeader("Host") ; String server = Utility.getDomainPref("adminserver",host) ; String adminServer = Utility.getDomainPref("adminserver",host) ; // Lets validate the session// if (super.checkSession(req,res) == false) return ; // Lets get an user object imcode.server.User user = super.getUserObj(req,res) ; RmiConf rmi = new RmiConf(user) ; String userId = null ; // Get the session HttpSession session = req.getSession(true) ; // Lets check if the user wants to edit his phonenumbers // ******* Edit phones fields ********** if( req.getParameter("edit_phones") != null ) { log("Ok, edit phones") ; String user_id = req.getParameter("CURR_USER_ID") ; if(user_id == null) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } // Lets update the session with a return back to variable which the phonenbr // function will look for if(session != null ) { session.setAttribute("UserChangePrefs.goBack", "1" ) ; } res.sendRedirect("AdminUserPhones?user_id=" + user_id); } // End of editphones // ********** SAVE A USER ************* if( req.getParameter("SAVE_USER") != null ) { // log("Ok, save user parameters") ; userId = (String) session.getAttribute("AdminUser.user_id" ) ; // Lets get the users information from db Properties currUserInfo = UserHandler.getUserInfoDB(adminServer, userId) ; // Lets get the parameters from html page and validate them Properties params = this.getParameters(req) ; //log(currUserInfo.toString()) ; // Lets check the password. if its empty, then it wont be updated, (we use // the password from the db instead if(params.getProperty("password1").equals("")) { params.setProperty("password1" , currUserInfo.getProperty("login_password")) ; params.setProperty("password2" , currUserInfo.getProperty("login_password")) ; //log("gick in") ; } //log(params.getProperty("password1")) ; if( UserHandler.verifyPassword(params,req,res) == false) { return ; } if(checkParameters(params) == false) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,52) ; log(header + err.getErrorMsg()) ; return ; } // Lets update the db object with the new info from http form currUserInfo = this.copyProps(params ,currUserInfo) ; currUserInfo.setProperty("password1", params.getProperty("password1") ) ; currUserInfo.setProperty("title", params.getProperty("title")) ; currUserInfo.setProperty("company", params.getProperty("company")) ; // Lets build the users information into a string and add it to db //String userStr = createUserInfoString(params, userId) ; String userStr = "UpdateUser " + UserHandler.createUserInfoString(currUserInfo) ; //log("SQL: " + userStr) ; //imc.execSqlUpdateProcedure(server, "UpdateUser " + userStr) ; IMCServiceRMI.sqlUpdateProcedure(server, userStr) ; // this.log("SAVED_CHANGED_USER r klar") ; // ****** Default option. Ok, Generate a login page to the user VariableManager vm = new VariableManager() ; vm.addProperty("SERVLET_URL", MetaInfo.getServletPath(req) ) ; this.sendHtml(req,res,vm, DONE ) ; return ; } // ************* Verfiy username and password ************** if(req.getParameter("verifyUser") != null) { String loginName = (req.getParameter("login_name")==null) ? "" : (req.getParameter("login_name")) ; String password = (req.getParameter("password")==null) ? "" : (req.getParameter("password")) ; // Validate loginparams against the DB String sqlQ = "GetUserIdFromName '" + loginName + "', '" + password + "'" ; userId = rmi.execJanusSqlProcedureStr(server, sqlQ ) ; // log("GetUserIdFromName ok") ; // Lets check that we the found the user. Otherwise send unvailid username password if( userId == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,50) ; log(header + err.getErrorMsg()) ; return ; } // Lets check if the users password are correct String currPass = rmi.execJanusSqlProcedureStr(server, "GetUserPassword " + userId ) ; if(!currPass.equals(password)) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } // Ok, the user is verified, lets generate the users infopage // Lets set the user id we are working on // HttpSession session = req.getSession(true) ; if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } // ok, redirect to myself res.sendRedirect("UserChangePrefs?changeUser=on"); return ; } // end verifyUser ///*********** Lets get the users information ************ // Lets generate the users info if(req.getParameter("changeUser") != null) { session = req.getSession(false) ; if(session == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,52) ; log(header + err.getErrorMsg()) ; return ; } if(session != null ) { userId = (String) session.getAttribute("AdminUser.user_id") ; } String showUserInfo = (String) session.getAttribute("AdminUser.passedLogin" ) ; if(showUserInfo.equals("1")) { // Ok, we got the user. Lets get his settings. VariableManager vm = new VariableManager() ; String[] userInfo = rmi.execJanusSqlProcedure(server, "UserPrefsChange " + userId ) ; String[] keys = {"USER_ID","LOGIN_NAME","PWD1","PWD2","FIRST_NAME", "LAST_NAME","TITLE", "COMPANY", "ADDRESS","CITY","ZIP","COUNTRY","COUNTRY_COUNCIL", "EMAIL", "LANG_ID" } ; //log(hash.toString()) ; //Vector userV = this.convert2Vector(userInfo) ; for(int i = 0 ; i<keys.length; i++) { vm.addProperty(keys[i], userInfo[i]); } //Properties p = UserHandler.getUserInfoDB(server, userId) ; //vm = vm.merge(p) ; // Lets fix all users phone numbers from DB String[] phonesArr = rmi.execJanusSqlProcedure(server, "GetUserPhones " + userId) ; Vector phonesV = super.convert2Vector(phonesArr) ; Html htm = new Html() ; String phones = htm.createHtmlCode("ID_OPTION", "", phonesV ) ; vm.addProperty("PHONES_MENU", phones ) ; vm.addProperty("CURR_USER_ID", userId ) ; // Lets get the the users language id String[] langList = rmi.execJanusSqlProcedure(server, "GetLanguageList") ; Vector selectedLangV = new Vector() ; selectedLangV.add(vm.getProperty("LANG_ID")) ; vm.addProperty("LANG_TYPES", htm.createHtmlCode("ID_OPTION",selectedLangV, super.convert2Vector(langList))) ; // Lets set the user id we are working on // HttpSession session = req.getSession(true) ; String theUserId = null ; if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } // Lets generete the change user page this.sendHtml(req,res,vm, CHANGE_PREFS ) ; return ; } } // ****** Default option. Ok, Generate a login page to the user VariableManager vm = new VariableManager() ; vm.addProperty("SERVLET_URL", MetaInfo.getServletPath(req) ) ; Html ht = new Html() ; this.sendHtml(req,res,vm, LOGIN ) ; return ;} // end HTTP POST
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/UserChangePrefs.java/clean/servlets/UserChangePrefs.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
309,
12,
3658,
18,
588,
1662,
2932,
8705,
1299,
7923,
480,
446,
13,
288,
514,
3925,
461,
273,
261,
3658,
18,
588,
1662,
2932,
5819,
67,
529,
7923,
631,
2011,
13,
692,
1408,
294,
261,
3658,
18,
588,
1662,
2932,
5819,
67,
529,
6,
3719,
274,
514,
2201,
273,
261,
3658,
18,
588,
1662,
2932,
3664,
7923,
631,
2011,
13,
692,
1408,
294,
261,
3658,
18,
588,
1662,
2932,
3664,
6,
3719,
274,
282,
514,
1847,
53,
273,
315,
967,
10502,
29732,
2119,
397,
3925,
461,
397,
14912,
2119,
397,
2201,
397,
5862,
274,
6249,
273,
709,
71,
1734,
18,
4669,
17213,
1585,
12,
1847,
53,
262,
274,
565,
309,
12,
6249,
422,
446,
262,
288,
514,
1446,
273,
1111,
18,
588,
4745,
743,
1435,
274,
7807,
668,
22,
393,
273,
394,
7807,
668,
22,
12,
3658,
16,
455,
16,
3374,
16,
3361,
13,
274,
613,
12,
3374,
397,
393,
18,
588,
668,
3332,
10756,
274,
327,
274,
289,
282,
514,
4306,
6433,
273,
709,
71,
1734,
18,
4669,
17213,
1585,
2932,
967,
1299,
3913,
315,
397,
6249,
262,
274,
309,
12,
5,
17016,
6433,
18,
14963,
12,
3664,
3719,
288,
514,
1446,
273,
1111,
18,
588,
4745,
743,
1435,
274,
7807,
668,
22,
393,
273,
394,
7807,
668,
22,
12,
3658,
16,
455,
16,
3374,
16,
10593,
13,
274,
613,
12,
3374,
397,
393,
18,
588,
668,
3332,
10756,
274,
327,
274,
289,
377,
309,
12,
3184,
480,
446,
225,
262,
288,
1339,
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,
309,
12,
3658,
18,
588,
1662,
2932,
8705,
1299,
7923,
480,
446,
13,
288,
514,
3925,
461,
273,
261,
3658,
18,
588,
1662,
2932,
5819,
67,
529,
7923,
631,
2011,
13,
692,
1408,
294,
261,
3658,
18,
588,
1662,
2932,
5819,
67,
529,
6,
3719,
274,
514,
2201,
273,
261,
3658,
18,
588,
1662,
2932,
3664,
7923,
631,
2011,
13,
692,
1408,
294,
261,
3658,
18,
588,
1662,
2932,
3664,
6,
3719,
274,
282,
514,
1847,
53,
273,
315,
967,
10502,
29732,
2119,
397,
3925,
461,
397,
14912,
2119,
397,
2201,
397,
5862,
274,
6249,
273,
709,
71,
1734,
18,
4669,
17213,
1585,
12,
1847,
53,
262,
274,
565,
309,
12,
6249,
422,
446,
262,
288,
2
] |
|
PropertyManager.getInstance().serialize();
|
public void saving(ISaveContext context) throws CoreException { // No state to be saved by the plug-in, but request a // resource delta to be used on next activation. context.needDelta(); PropertyManager.getInstance().serialize(); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6140a76f77595ad910c847e2c895903fcdfd62ca/ResourceChangeHandler.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ResourceChangeHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12392,
12,
45,
4755,
1042,
819,
13,
1216,
30015,
288,
202,
202,
759,
202,
2279,
919,
358,
506,
5198,
635,
326,
15852,
17,
267,
16,
1496,
590,
279,
202,
565,
368,
225,
1058,
3622,
358,
506,
1399,
603,
1024,
10027,
18,
202,
565,
819,
18,
14891,
9242,
5621,
202,
565,
4276,
1318,
18,
588,
1442,
7675,
6288,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12392,
12,
45,
4755,
1042,
819,
13,
1216,
30015,
288,
202,
202,
759,
202,
2279,
919,
358,
506,
5198,
635,
326,
15852,
17,
267,
16,
1496,
590,
279,
202,
565,
368,
225,
1058,
3622,
358,
506,
1399,
603,
1024,
10027,
18,
202,
565,
819,
18,
14891,
9242,
5621,
202,
565,
4276,
1318,
18,
588,
1442,
7675,
6288,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); FillLayout layout = new FillLayout(); container.setLayout(layout); viewer = new TableViewer(container, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); viewer.setContentProvider(new RepositoryContentProvider()); viewer.setLabelProvider(new TaskRepositoryLabelProvider()); viewer.setInput(MylarTaskListPlugin.getRepositoryManager().getRepositoryClients()); viewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { IStructuredSelection selection = (IStructuredSelection)event.getSelection(); if (selection.getFirstElement() instanceof TaskRepository) { wizard.setRepository((TaskRepository)selection.getFirstElement()); SelectRepositoryPage.this.setPageComplete(true); wizard.getContainer().updateButtons(); } } }); setControl(container); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/0c6bed4632768f6cabddb0a50b03398738a3aefc/SelectRepositoryPage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/wizards/SelectRepositoryPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
2640,
3367,
12,
799,
1724,
881,
817,
15329,
202,
202,
799,
1724,
31313,
1521,
33,
2704,
9400,
12,
2938,
16,
55,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
6741,
33,
2704,
8026,
3744,
5621,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
9506,
202,
25256,
33,
2704,
1388,
18415,
12,
3782,
16,
55,
8588,
18,
20184,
96,
55,
8588,
18,
38,
7954,
96,
55,
8588,
18,
44,
67,
2312,
14555,
96,
55,
8588,
18,
58,
67,
2312,
14555,
1769,
202,
202,
25256,
18,
542,
1350,
2249,
12,
2704,
3305,
1350,
2249,
10663,
202,
202,
25256,
18,
542,
2224,
2249,
12,
2704,
2174,
3305,
2224,
2249,
10663,
202,
202,
25256,
18,
542,
1210,
12,
12062,
7901,
2174,
682,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
12300,
10663,
202,
202,
25256,
18,
1289,
6233,
5033,
2223,
12,
2704,
45,
6233,
5033,
2223,
1435,
95,
1082,
202,
482,
6459,
10705,
5033,
12,
6233,
27553,
2575,
15329,
9506,
202,
45,
30733,
6233,
10705,
28657,
45,
30733,
6233,
13,
2575,
18,
588,
6233,
5621,
9506,
202,
430,
12,
10705,
18,
588,
3759,
1046,
1435,
1336,
792,
2174,
3305,
15329,
6862,
202,
31837,
18,
542,
3305,
12443,
2174,
3305,
13,
10705,
18,
588,
3759,
1046,
10663,
6862,
202,
3391,
3305,
1964,
18,
2211,
18,
542,
1964,
6322,
12,
3767,
1769,
6862,
202,
31837,
18,
588,
2170,
7675,
2725,
14388,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
22938,
202,
202,
542,
3367,
12,
3782,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
2640,
3367,
12,
799,
1724,
881,
817,
15329,
202,
202,
799,
1724,
31313,
1521,
33,
2704,
9400,
12,
2938,
16,
55,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
6741,
33,
2704,
8026,
3744,
5621,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
9506,
202,
25256,
33,
2704,
1388,
18415,
12,
3782,
16,
55,
8588,
18,
20184,
96,
55,
8588,
18,
38,
7954,
96,
55,
8588,
18,
44,
67,
2312,
14555,
96,
55,
8588,
18,
58,
67,
2312,
14555,
1769,
202,
202,
25256,
18,
542,
1350,
2249,
12,
2704,
3305,
1350,
2249,
10663,
202,
202,
25256,
18,
542,
2224,
2249,
12,
2704,
2174,
3305,
2224,
2249,
10663,
202,
202,
25256,
18,
542,
1210,
12,
2
] |
||
lhs = stack[stackTop];
|
Object lhs = stack[stackTop];
|
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/052726b68e684efc593535d50a73767571084837/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2146,
16,
15261,
16,
833,
16,
2295,
1162,
3651,
16,
326,
751,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
261,
4293,
1162,
3651,
18,
3175,
1557,
422,
446,
13,
18701,
692,
374,
294,
2295,
1162,
3651,
18,
3175,
1557,
18,
2469,
31,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
3639,
727,
509,
943,
7833,
6148,
273,
326,
751,
18,
1282,
2747,
7833,
6148,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
3639,
727,
509,
15234,
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,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
326,
751,
18,
7462,
3748,
13,
288,
6647,
368,
971,
4373,
3748,
353,
3775,
16,
1089,
2461,
316,
385,
352,
408,
6647,
368,
471,
745,
365,
3613,
394,
2461,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
326,
751,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
10634,
12,
71,
92,
16,
2
] |
in.seek(curPos);
|
in.reset(); } else { bytes += 1;
|
private static String readLine(FSDataInputStream in) throws IOException { StringBuffer buffer = new StringBuffer(); while (true) { int b = in.read(); if (b == -1) break; char c = (char)b; // bug: this assumes eight-bit characters. if (c == '\n') break; if (c == '\r') { long curPos = in.getPos(); char nextC = (char)in.read(); if (nextC != '\n') { in.seek(curPos); } break; } buffer.append(c); } return buffer.toString(); }
|
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/48264173e88fdcd9b42c4d801117c3b7cb289242/TextInputFormat.java/buggy/src/java/org/apache/hadoop/mapred/TextInputFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
12273,
12,
4931,
751,
4348,
316,
13,
1216,
1860,
288,
565,
6674,
1613,
273,
394,
6674,
5621,
565,
1323,
261,
3767,
13,
288,
1377,
509,
324,
273,
316,
18,
896,
5621,
1377,
309,
261,
70,
422,
300,
21,
13,
3639,
898,
31,
1377,
1149,
276,
273,
261,
3001,
13,
70,
31,
2868,
368,
7934,
30,
333,
13041,
425,
750,
17,
3682,
3949,
18,
1377,
309,
261,
71,
422,
2337,
82,
6134,
3639,
898,
31,
2868,
309,
261,
71,
422,
2337,
86,
6134,
288,
9079,
1525,
662,
1616,
273,
316,
18,
588,
1616,
5621,
3639,
1149,
1024,
39,
273,
261,
3001,
13,
267,
18,
896,
5621,
3639,
309,
261,
4285,
39,
480,
2337,
82,
6134,
288,
1850,
316,
18,
6208,
5621,
289,
469,
288,
1731,
1011,
404,
31,
3639,
289,
3639,
898,
31,
1377,
289,
1377,
1613,
18,
6923,
12,
71,
1769,
565,
289,
3639,
327,
1613,
18,
10492,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
12273,
12,
4931,
751,
4348,
316,
13,
1216,
1860,
288,
565,
6674,
1613,
273,
394,
6674,
5621,
565,
1323,
261,
3767,
13,
288,
1377,
509,
324,
273,
316,
18,
896,
5621,
1377,
309,
261,
70,
422,
300,
21,
13,
3639,
898,
31,
1377,
1149,
276,
273,
261,
3001,
13,
70,
31,
2868,
368,
7934,
30,
333,
13041,
425,
750,
17,
3682,
3949,
18,
1377,
309,
261,
71,
422,
2337,
82,
6134,
3639,
898,
31,
2868,
309,
261,
71,
422,
2337,
86,
6134,
288,
9079,
1525,
662,
1616,
273,
316,
18,
588,
1616,
5621,
3639,
1149,
1024,
39,
273,
261,
3001,
13,
267,
18,
896,
5621,
3639,
309,
261,
4285,
39,
480,
2337,
82,
6134,
288,
2
] |
static private boolean deduceTemplateArgument( Map map, ISymbol pSymbol, TypeInfo a ){//, Map argumentMap ){ ISymbol symbol; TypeInfo p = getParameterTypeForDeduction( pSymbol ); a = getArgumentTypeForDeduction( a ); if( p.isType( TypeInfo.t_type ) ){ symbol = p.getTypeSymbol(); ISymbol aSymbol = a.getTypeSymbol(); if( symbol instanceof IDeferredTemplateInstance || symbol.isTemplateInstance() ){ return deduceFromTemplateTemplateArguments(map, symbol, aSymbol); } else { if( symbol.isType( TypeInfo.t_templateParameter ) ){ if( symbol.getTypeInfo().getTemplateParameterType() == TypeInfo.t_typeName ){ //a = getFlatTypeInfo( a ); List aPtrs = a.getPtrOperators(); List pPtrs = p.getPtrOperators(); //TODO cvlist T if( pPtrs != null && pPtrs.size() > 0){ if( aPtrs == null ){ return false; } Iterator pIter = pPtrs.iterator(); ListIterator aIter = aPtrs.listIterator(); PtrOp pOp = null; PtrOp aOp = null; while( pIter.hasNext() ){ pOp = (PtrOp) pIter.next(); if( !aIter.hasNext() ){ return false; } else { aOp = (PtrOp) aIter.next(); if( pOp.getType() == aOp.getType() ){ if( !pOp.equals( aOp ) ){ if( pIter.hasNext() || pOp.compareCVTo( aOp ) > 0 ){ return false; } else { PtrOp newOp = new PtrOp( PtrOp.t_undef ); newOp.setConst( aOp.isConst() ); newOp.setVolatile( aOp.isVolatile() ); aIter.set( newOp ); } } else { aIter.remove(); } } else { return false; } } } return deduceArgument( map, symbol, a ); } else { //T return deduceArgument( map, symbol, a ); } } else if ( symbol.getTypeInfo().getTemplateParameterType() == TypeInfo.t_template ){ } else { //non-type parameter if( symbol.getTypeInfo().getTemplateParameterType() == a.getType() ){ return deduceArgument( map, symbol, a ); } else { return false; } } } //T (*) ( ), T ( T::* ) ( T ), & variations else if( symbol.isType( TypeInfo.t_function ) ){ if( !(aSymbol instanceof IParameterizedSymbol)|| !aSymbol.isType( TypeInfo.t_function ) ) { return false; } IParameterizedSymbol pFunction = (IParameterizedSymbol)symbol; IParameterizedSymbol aFunction = (IParameterizedSymbol)aSymbol; if( !deduceTemplateArgument( map, pFunction.getReturnType(), aFunction.getReturnType().getTypeInfo() ) ){ return false; } List pPtrs = p.getPtrOperators(); if( pPtrs.size() != 0 ){ PtrOp op = (PtrOp) pPtrs.iterator().next(); if( op.getType() == PtrOp.t_memberPointer ){ TypeInfo info = new TypeInfo( TypeInfo.t_type, 0, aFunction.getContainingSymbol() ); if( !deduceTemplateArgument( map, op.getMemberOf(), info ) ){ return false; } } } List pParams = pFunction.getParameterList(); List aParams = aFunction.getParameterList(); if( pParams.size() != aParams.size() ){ return false; } else { Iterator pIter = pParams.iterator(); Iterator aIter = aParams.iterator(); while( pIter.hasNext() ){ TypeInfo info = ((ISymbol)aIter.next()).getTypeInfo(); if( !deduceTemplateArgument( map, (ISymbol) pIter.next(), info ) ){ return false; } } } return true; } } } else { if( p.isType( TypeInfo.t_templateParameter ) ){ return deduceArgument( map, pSymbol, a ); } if( p.getType() == a.getType() ){ if( p.getDefault() != null ){ return ( p.getDefault().equals( a.getDefault() ) ); } return true; } } return false; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b416d5f3b91a9ba8919dec6f5cd139d424a6ad19/TemplateEngine.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/TemplateEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
3238,
1250,
11140,
3965,
2283,
1379,
12,
1635,
852,
16,
4437,
3284,
293,
5335,
16,
1412,
966,
279,
262,
95,
759,
16,
1635,
1237,
863,
262,
95,
202,
202,
5127,
3284,
3273,
31,
9506,
202,
17305,
293,
273,
5575,
559,
1290,
20563,
4062,
12,
293,
5335,
11272,
202,
202,
69,
273,
11950,
559,
1290,
20563,
4062,
12,
279,
11272,
9506,
202,
430,
12,
293,
18,
291,
559,
12,
1412,
966,
18,
88,
67,
723,
262,
262,
95,
1082,
202,
7175,
273,
293,
18,
588,
559,
5335,
5621,
1082,
202,
5127,
3284,
279,
5335,
273,
279,
18,
588,
559,
5335,
5621,
1082,
202,
430,
12,
3273,
1276,
467,
16886,
30302,
747,
3273,
18,
291,
30302,
1435,
262,
95,
9506,
202,
2463,
11140,
3965,
1265,
2283,
2283,
4628,
12,
1458,
16,
3273,
16,
279,
5335,
1769,
9506,
202,
97,
469,
288,
9506,
202,
430,
12,
3273,
18,
291,
559,
12,
1412,
966,
18,
88,
67,
3202,
1662,
262,
262,
95,
6862,
202,
430,
12,
3273,
18,
588,
17305,
7675,
588,
2283,
28460,
1435,
422,
1412,
966,
18,
88,
67,
723,
461,
262,
95,
25083,
202,
759,
69,
273,
336,
16384,
17305,
12,
279,
11272,
25083,
202,
682,
279,
5263,
87,
273,
279,
18,
588,
5263,
24473,
5621,
25083,
202,
682,
293,
5263,
87,
273,
293,
18,
588,
5263,
24473,
5621,
25083,
202,
759,
6241,
225,
8951,
1098,
399,
25083,
202,
430,
12,
293,
5263,
87,
480,
446,
597,
293,
5263,
87,
18,
1467,
1435,
405,
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,
225,
202,
3845,
3238,
1250,
11140,
3965,
2283,
1379,
12,
1635,
852,
16,
4437,
3284,
293,
5335,
16,
1412,
966,
279,
262,
95,
759,
16,
1635,
1237,
863,
262,
95,
202,
202,
5127,
3284,
3273,
31,
9506,
202,
17305,
293,
273,
5575,
559,
1290,
20563,
4062,
12,
293,
5335,
11272,
202,
202,
69,
273,
11950,
559,
1290,
20563,
4062,
12,
279,
11272,
9506,
202,
430,
12,
293,
18,
291,
559,
12,
1412,
966,
18,
88,
67,
723,
262,
262,
95,
1082,
202,
7175,
273,
293,
18,
588,
559,
5335,
5621,
1082,
202,
5127,
3284,
279,
5335,
273,
279,
18,
588,
559,
5335,
5621,
1082,
202,
430,
12,
3273,
1276,
467,
16886,
30302,
747,
3273,
18,
291,
30302,
1435,
262,
2
] |
||
completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_IDENTIFIER, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY }));
|
completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, ctx, completedDownloadToTemp, new int[] { LIST_IDENTIFIER, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, ctx, completedDownloadToTemp, new int[] { LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY }));
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { // We ensure that we have a FCP server running if(!fcp.enabled){ this.writeReply(ctx, 400, "text/plain", "FCP server is missing", "You need to enable the FCP server to access this page"); return; } HTTPRequest request = new HTTPRequest(uri, null, ctx); String requestPath = request.getPath().substring("/queue/".length()); if (requestPath.length() > 0) { /* okay, there is something in the path, check it. */ try { FreenetURI key = new FreenetURI(requestPath); /* locate request */ ClientRequest[] clientRequests = fcp.getGlobalRequests(); for (int requestIndex = 0, requestCount = clientRequests.length; requestIndex < requestCount; requestIndex++) { ClientRequest clientRequest = clientRequests[requestIndex]; if (clientRequest.hasFinished() && (clientRequest instanceof ClientGet)) { ClientGet clientGet = (ClientGet) clientRequest; if (clientGet.getURI().toString(false).equals(key.toString(false))) { Bucket data = clientGet.getBucket(); String mimeType = clientGet.getMIMEType(); String requestedMimeType = request.getParam("type", null); String forceString = request.getParam("force"); FProxyToadlet.handleDownload(ctx, data, ctx.getBucketFactory(), mimeType, requestedMimeType, forceString, request.isParameterSet("forcedownload"), "/queue/", key, "", "/queue/"); return; } } } } catch (MalformedURLException mue1) { } } PageMaker pageMaker = ctx.getPageMaker(); // First, get the queued requests, and separate them into different types. LinkedList completedDownloadToDisk = new LinkedList(); LinkedList completedDownloadToTemp = new LinkedList(); LinkedList completedUpload = new LinkedList(); LinkedList completedDirUpload = new LinkedList(); LinkedList failedDownload = new LinkedList(); LinkedList failedUpload = new LinkedList(); LinkedList failedDirUpload = new LinkedList(); LinkedList uncompletedDownload = new LinkedList(); LinkedList uncompletedUpload = new LinkedList(); LinkedList uncompletedDirUpload = new LinkedList(); ClientRequest[] reqs = fcp.getGlobalRequests(); if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "Request count: "+reqs.length); if(reqs.length < 1){ HTMLNode pageNode = pageMaker.getPageNode("Global queue of " + core.getMyName()); HTMLNode contentNode = pageMaker.getContentNode(pageNode); /* add alert summary box */ contentNode.addChild(core.alerts.createSummary()); HTMLNode infobox = contentNode.addChild(pageMaker.getInfobox("infobox-information", "Global queue is empty")); HTMLNode infoboxContent = pageMaker.getContentNode(infobox); infoboxContent.addChild("#", "There is no task queued on the global queue at the moment."); contentNode.addChild(createInsertBox(pageMaker)); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } for(int i=0;i<reqs.length;i++) { ClientRequest req = reqs[i]; if(req instanceof ClientGet) { ClientGet cg = (ClientGet) req; if(cg.hasSucceeded()) { if(cg.isDirect()) completedDownloadToTemp.add(cg); else if(cg.isToDisk()) completedDownloadToDisk.add(cg); else // FIXME Logger.error(this, "Don't know what to do with "+cg); } else if(cg.hasFinished()) { failedDownload.add(cg); } else { uncompletedDownload.add(cg); } } else if(req instanceof ClientPut) { ClientPut cp = (ClientPut) req; if(cp.hasSucceeded()) { completedUpload.add(cp); } else if(cp.hasFinished()) { failedUpload.add(cp); } else { uncompletedUpload.add(cp); } } else if(req instanceof ClientPutDir) { ClientPutDir cp = (ClientPutDir) req; if(cp.hasSucceeded()) { completedDirUpload.add(cp); } else if(cp.hasFinished()) { failedDirUpload.add(cp); } else { uncompletedDirUpload.add(cp); } } } Comparator identifierComparator = new Comparator() { public int compare(Object first, Object second) { ClientRequest firstRequest = (ClientRequest) first; ClientRequest secondRequest = (ClientRequest) second; short firstPrio = firstRequest.getPriority(); short secondPrio = secondRequest.getPriority(); if(firstPrio > secondPrio) return 1; if(secondPrio > firstPrio) return -1; return firstRequest.getIdentifier().compareTo(secondRequest.getIdentifier()); } }; Collections.sort(completedDownloadToDisk, identifierComparator); Collections.sort(completedDownloadToTemp, identifierComparator); Collections.sort(completedUpload, identifierComparator); Collections.sort(completedDirUpload, identifierComparator); Collections.sort(failedDownload, identifierComparator); Collections.sort(failedUpload, identifierComparator); Collections.sort(failedDirUpload, identifierComparator); Collections.sort(uncompletedDownload, identifierComparator); Collections.sort(uncompletedUpload, identifierComparator); Collections.sort(uncompletedDirUpload, identifierComparator); HTMLNode pageNode = pageMaker.getPageNode("(" + (uncompletedDirUpload.size() + uncompletedDownload.size() + uncompletedUpload.size()) + '/' + (failedDirUpload.size() + failedDownload.size() + failedUpload.size()) + '/' + (completedDirUpload.size() + completedDownloadToDisk.size() + completedDownloadToTemp.size() + completedUpload.size()) + ") Queued Requests of " + core.getMyName()); HTMLNode contentNode = pageMaker.getContentNode(pageNode); /* add alert summary box */ contentNode.addChild(core.alerts.createSummary()); /* add file insert box */ contentNode.addChild(createInsertBox(pageMaker)); /* navigation bar */ HTMLNode navigationBar = pageMaker.getInfobox("navbar", "Request Navigation"); HTMLNode navigationContent = pageMaker.getContentNode(navigationBar).addChild("ul"); boolean includeNavigationBar = false; if (!completedDownloadToTemp.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedDownloadToTemp", "Completed downloads to temp"); includeNavigationBar = true; } if (!completedDownloadToDisk.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedDownloadToDisk", "Completed downloads to disk"); includeNavigationBar = true; } if (!completedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedUpload", "Completed uploads"); includeNavigationBar = true; } if (!completedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completeDirUpload", "Completed directory uploads"); includeNavigationBar = true; } if (!failedDownload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedDownload", "Failed downloads"); includeNavigationBar = true; } if (!failedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedUpload", "Failed uploads"); includeNavigationBar = true; } if (!failedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedDirUpload", "Failed directory uploads"); includeNavigationBar = true; } if (!uncompletedDownload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedDownload", "Downloads in progress"); includeNavigationBar = true; } if (!uncompletedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedUpload", "Uploads in progress"); includeNavigationBar = true; } if (!uncompletedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedDirUpload", "Directory uploads in progress"); includeNavigationBar = true; } if (includeNavigationBar) { contentNode.addChild(navigationBar); } HTMLNode legendBox = contentNode.addChild(pageMaker.getInfobox("legend", "Legend")); HTMLNode legendContent = pageMaker.getContentNode(legendBox); HTMLNode legendTable = legendContent.addChild("table", "class", "queue"); HTMLNode legendRow = legendTable.addChild("tr"); for(int i=0; i<7; i++){ legendRow.addChild("td", "class", "priority" + i, "Priority " + i); } if (reqs.length > 1 && SimpleToadletServer.isPanicButtonToBeShown) { contentNode.addChild(createPanicBox(pageMaker)); } boolean advancedEnabled = core.isAdvancedDarknetEnabled(); if (!completedDownloadToTemp.isEmpty()) { contentNode.addChild("a", "name", "completedDownloadToTemp"); HTMLNode completedDownloadsTempInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Downloads to temporary directory (" + completedDownloadToTemp.size() + ')')); HTMLNode completedDownloadsToTempContent = pageMaker.getContentNode(completedDownloadsTempInfobox); if (advancedEnabled) { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_IDENTIFIER, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedDownloadToDisk.isEmpty()) { contentNode.addChild("a", "name", "completedDownloadToDisk"); HTMLNode completedToDiskInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Downloads to download directory (" + completedDownloadToDisk.size() + ')')); HTMLNode completedToDiskInfoboxContent = pageMaker.getContentNode(completedToDiskInfobox); if (advancedEnabled) { completedToDiskInfoboxContent.addChild(createRequestTable(pageMaker, completedDownloadToDisk, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedToDiskInfoboxContent.addChild(createRequestTable(pageMaker, completedDownloadToDisk, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedUpload.isEmpty()) { contentNode.addChild("a", "name", "completedUpload"); HTMLNode completedUploadInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Uploads (" + completedUpload.size() + ')')); HTMLNode completedUploadInfoboxContent = pageMaker.getContentNode(completedUploadInfobox); if (advancedEnabled) { completedUploadInfoboxContent.addChild(createRequestTable(pageMaker, completedUpload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PERSISTENCE, LIST_KEY })); } else { completedUploadInfoboxContent.addChild(createRequestTable(pageMaker, completedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "completedDirUpload"); HTMLNode completedUploadDirInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Directory Uploads (" + completedDirUpload.size() + ')')); HTMLNode completedUploadDirContent = pageMaker.getContentNode(completedUploadDirInfobox); if (advancedEnabled) { completedUploadDirContent.addChild(createRequestTable(pageMaker, completedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_TOTAL_SIZE, LIST_PERSISTENCE, LIST_KEY })); } else { completedUploadDirContent.addChild(createRequestTable(pageMaker, completedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedDownload.isEmpty()) { contentNode.addChild("a", "name", "failedDownload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Downloads (" + failedDownload.size() + ')')); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedDownload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedDownload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedUpload.isEmpty()) { contentNode.addChild("a", "name", "failedUpload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Uploads (" + failedUpload.size() + ')')); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedUpload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "failedDirUpload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Directory Uploads (" + failedDirUpload.size() + ')')); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedDownload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedDownload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: Downloads (" + uncompletedDownload.size() + ')')); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDownload, new int[] { LIST_IDENTIFIER, LIST_PRIORITY, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_FILENAME, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDownload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedUpload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedUpload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: Uploads (" + uncompletedUpload.size() + ')')); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedUpload, new int[] { LIST_IDENTIFIER, LIST_PRIORITY, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_FILENAME, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedDirUpload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: DirUploads (" + uncompletedDirUpload.size() + ')')); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_PRIORITY, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } MultiValueTable pageHeaders = new MultiValueTable(); this.writeReply(ctx, 200, "text/html", "OK", pageHeaders, pageNode.generate()); }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
225,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
759,
1660,
3387,
716,
732,
1240,
279,
478,
4258,
1438,
3549,
202,
202,
430,
12,
5,
74,
4057,
18,
5745,
15329,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
42,
4258,
1438,
353,
3315,
3113,
315,
6225,
1608,
358,
4237,
326,
478,
4258,
1438,
358,
2006,
333,
1363,
8863,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
446,
16,
1103,
1769,
202,
202,
780,
23691,
273,
590,
18,
588,
743,
7675,
28023,
2932,
19,
4000,
4898,
18,
2469,
10663,
9506,
202,
430,
261,
2293,
743,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
20308,
21194,
16,
1915,
353,
5943,
316,
326,
589,
16,
866,
518,
18,
1195,
1082,
202,
698,
288,
9506,
202,
42,
2842,
278,
3098,
498,
273,
394,
478,
2842,
278,
3098,
12,
2293,
743,
1769,
6862,
9506,
202,
20308,
10627,
590,
1195,
9506,
202,
1227,
691,
8526,
1004,
6421,
273,
284,
4057,
18,
588,
5160,
6421,
5621,
9506,
202,
1884,
261,
474,
590,
1016,
273,
374,
16,
590,
1380,
273,
1004,
6421,
18,
2469,
31,
590,
1016,
411,
590,
1380,
31,
590,
1016,
27245,
288,
6862,
202,
1227,
691,
1004,
691,
273,
1004,
6421,
63,
2293,
1016,
15533,
6862,
202,
430,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
225,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
759,
1660,
3387,
716,
732,
1240,
279,
478,
4258,
1438,
3549,
202,
202,
430,
12,
5,
74,
4057,
18,
5745,
15329,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
42,
4258,
1438,
353,
3315,
3113,
315,
6225,
1608,
358,
4237,
326,
478,
4258,
1438,
358,
2006,
333,
1363,
8863,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
446,
16,
1103,
1769,
202,
202,
780,
23691,
273,
590,
18,
2
] |
IBindingFactory bfact = BindingDirectory .getFactory(Household.class); IUnmarshallingContext uctx = bfact.createUnmarshallingContext(); Household obj = (Household) uctx .unmarshalDocument(dataStream, null);
|
BindingSelector select = new BindingSelector(null, VERSION_ATTRIBUTE_NAME, VERSION_TEXTS, VERSION_BINDINGS); IUnmarshallingContext context = select.getContext(); context.setDocument(dataStream, null); Household obj = (Household) select .unmarshalVersioned(Household.class);
|
public Household loadData(InputStream dataStream) throws IOException, UnsupportedFileVersionException, IllegalArgumentException { try { IBindingFactory bfact = BindingDirectory .getFactory(Household.class); IUnmarshallingContext uctx = bfact.createUnmarshallingContext(); Household obj = (Household) uctx .unmarshalDocument(dataStream, null); return obj; } catch (JiBXException e) { LogFactory.getLog(getClass()).error("Error while JiBIxing", e); throw new IllegalArgumentException(e.getLocalizedMessage()); } }
|
13936 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13936/9cd0fd94c5396a228d1245a629253d7f8b6ccadf/JiBXPersistence.java/buggy/Housekeeper/trunk/housekeeper/src/java/net/sf/housekeeper/persistence/jibx/JiBXPersistence.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
670,
3793,
21056,
29422,
12,
4348,
501,
1228,
13,
1216,
1860,
16,
5411,
7221,
812,
1444,
503,
16,
2754,
565,
288,
3639,
775,
3639,
288,
5411,
467,
5250,
1733,
324,
3493,
273,
15689,
2853,
10792,
263,
588,
1733,
12,
44,
3793,
21056,
18,
1106,
1769,
5411,
467,
984,
12201,
310,
1042,
582,
5900,
273,
324,
3493,
18,
2640,
984,
12201,
310,
1042,
5621,
5411,
670,
3793,
21056,
1081,
273,
261,
44,
3793,
21056,
13,
582,
5900,
10792,
263,
318,
3108,
2519,
12,
892,
1228,
16,
446,
1769,
5411,
327,
1081,
31,
3639,
289,
1044,
261,
46,
17632,
60,
503,
425,
13,
3639,
288,
5411,
1827,
1733,
18,
588,
1343,
12,
588,
797,
1435,
2934,
1636,
2932,
668,
1323,
804,
17632,
45,
92,
310,
3113,
425,
1769,
5411,
604,
394,
2754,
12,
73,
18,
588,
2042,
1235,
1079,
10663,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
670,
3793,
21056,
29422,
12,
4348,
501,
1228,
13,
1216,
1860,
16,
5411,
7221,
812,
1444,
503,
16,
2754,
565,
288,
3639,
775,
3639,
288,
5411,
467,
5250,
1733,
324,
3493,
273,
15689,
2853,
10792,
263,
588,
1733,
12,
44,
3793,
21056,
18,
1106,
1769,
5411,
467,
984,
12201,
310,
1042,
582,
5900,
273,
324,
3493,
18,
2640,
984,
12201,
310,
1042,
5621,
5411,
670,
3793,
21056,
1081,
273,
261,
44,
3793,
21056,
13,
582,
5900,
10792,
263,
318,
3108,
2519,
12,
892,
1228,
16,
446,
1769,
5411,
327,
1081,
31,
3639,
289,
1044,
261,
46,
17632,
60,
503,
425,
13,
3639,
288,
5411,
1827,
1733,
18,
588,
1343,
12,
588,
797,
1435,
2934,
1636,
2932,
668,
2
] |
public AttributeDescr xor_group() throws RecognitionException { AttributeDescr d; Token loc=null; Token name=null; d = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:17: (loc= 'xor-group' opt_eol name= STRING ( ';' )? opt_eol ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:17: loc= 'xor-group' opt_eol name= STRING ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,34,FOLLOW_34_in_xor_group912); following.push(FOLLOW_opt_eol_in_xor_group914); opt_eol(); following.pop(); name=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_xor_group918); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:53: ( ';' )? int alt31=2; int LA31_0 = input.LA(1); if ( LA31_0==15 ) { alt31=1; } else if ( LA31_0==EOL||LA31_0==21||LA31_0==28||LA31_0==30||(LA31_0>=32 && LA31_0<=36) ) { alt31=2; } else { NoViableAltException nvae = new NoViableAltException("298:53: ( \';\' )?", 31, 0, input); throw nvae; } switch (alt31) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:53: ';' { match(input,15,FOLLOW_15_in_xor_group920); } break; } following.push(FOLLOW_opt_eol_in_xor_group923); opt_eol(); following.pop(); d = new AttributeDescr( "xor-group", getString( name ) ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/98b0281519badd8cb1b48eb12934438a300e99b8/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
17586,
67,
1655,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
508,
33,
2011,
31,
540,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
5540,
28,
30,
4033,
30,
261,
1829,
33,
296,
31346,
17,
1655,
11,
2153,
67,
30951,
508,
33,
9469,
261,
7554,
7851,
2153,
67,
30951,
262,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
5540,
28,
30,
4033,
30,
1515,
33,
296,
31346,
17,
1655,
11,
2153,
67,
30951,
508,
33,
9469,
261,
7554,
7851,
2153,
67,
30951,
5411,
288,
5411,
1515,
28657,
1345,
13,
2630,
18,
12050,
12,
21,
1769,
5411,
845,
12,
2630,
16,
5026,
16,
29890,
67,
5026,
67,
267,
67,
31346,
67,
1655,
29,
2138,
1769,
2398,
3751,
18,
6206,
12,
29890,
67,
3838,
67,
30951,
67,
267,
67,
31346,
67,
1655,
29,
3461,
1769,
5411,
2153,
67,
30951,
5621,
5411,
3751,
18,
5120,
5621,
5411,
508,
28657,
1345,
13,
2630,
18,
12050,
12,
21,
1769,
5411,
845,
12,
2630,
16,
5804,
16,
29890,
67,
5804,
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,
377,
1071,
3601,
16198,
17586,
67,
1655,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
508,
33,
2011,
31,
540,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
5540,
28,
30,
4033,
30,
261,
1829,
33,
296,
31346,
17,
1655,
11,
2153,
67,
30951,
508,
33,
9469,
261,
7554,
7851,
2153,
67,
30951,
262,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
2
] |
||
public ComponentException(String str) { super(str);
|
public ComponentException() { super();
|
public ComponentException(String str) { super(str); }
|
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/674ac0aaae1138d72aab8865ac87ed037c31ca37/ComponentException.java/buggy/framework/base/src/base/org/ofbiz/base/component/ComponentException.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5435,
503,
12,
780,
609,
13,
288,
3639,
2240,
12,
701,
1769,
565,
289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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5435,
503,
12,
780,
609,
13,
288,
3639,
2240,
12,
701,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.out.println("** linkDown(): " + r + ':' + rp); }
|
System.out.println("** linkDown(): " + r + ':' + rp); }
|
public synchronized void linkDown(InetAddress l, int lp, InetAddress r, int rp) { System.out.println("** linkDown(): " + r + ':' + rp); }
|
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/13de68466e3cf7fde6ee0bde0cee09a33e837e89/LogicalLink.java/buggy/src/org/jgroups/blocks/LogicalLink.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1692,
4164,
12,
382,
278,
1887,
328,
16,
509,
12423,
16,
14218,
436,
16,
509,
8715,
13,
288,
202,
565,
2332,
18,
659,
18,
8222,
2932,
636,
1692,
4164,
13332,
315,
397,
436,
397,
3921,
397,
8715,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1692,
4164,
12,
382,
278,
1887,
328,
16,
509,
12423,
16,
14218,
436,
16,
509,
8715,
13,
288,
202,
565,
2332,
18,
659,
18,
8222,
2932,
636,
1692,
4164,
13332,
315,
397,
436,
397,
3921,
397,
8715,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Plugin plugin = au.getPlugin();
|
public CachedUrlSet findCachedUrlSet(PollSpec spec) { if (log.isDebug3()) log.debug3(this +".findCachedUrlSet2("+spec+")"); String auId = spec.getAuId(); ArchivalUnit au = getAuFromId(auId); if (log.isDebug3()) log.debug3("au: " + au); if (au == null) return null; Plugin plugin = au.getPlugin(); String url = spec.getUrl(); CachedUrlSet cus; if (AuUrl.isAuUrl(url)) { cus = au.getAuCachedUrlSet(); } else if ((spec.getLwrBound()!=null) && (spec.getLwrBound().equals(PollSpec.SINGLE_NODE_LWRBOUND))) { cus = plugin.makeCachedUrlSet(au, new SingleNodeCachedUrlSetSpec(url)); } else { RangeCachedUrlSetSpec rcuss = new RangeCachedUrlSetSpec(url, spec.getLwrBound(), spec.getUprBound()); cus = plugin.makeCachedUrlSet(au, rcuss); } if (log.isDebug3()) log.debug3("ret cus: " + cus); return cus; }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/2fb32b4753ab4cc6fd32a766af32b94f15059b7f/PluginManager.java/clean/src/org/lockss/plugin/PluginManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
15771,
1489,
694,
1104,
9839,
1489,
694,
12,
19085,
1990,
857,
13,
288,
565,
309,
261,
1330,
18,
291,
2829,
23,
10756,
613,
18,
4148,
23,
12,
2211,
397,
9654,
4720,
9839,
1489,
694,
22,
2932,
15,
2793,
9078,
2225,
1769,
565,
514,
20309,
548,
273,
857,
18,
588,
37,
89,
548,
5621,
565,
16959,
5162,
2802,
20309,
273,
4506,
89,
1265,
548,
12,
8377,
548,
1769,
565,
309,
261,
1330,
18,
291,
2829,
23,
10756,
613,
18,
4148,
23,
2932,
8377,
30,
315,
397,
20309,
1769,
565,
309,
261,
8377,
422,
446,
13,
327,
446,
31,
4202,
514,
880,
273,
857,
18,
588,
1489,
5621,
565,
15771,
1489,
694,
27964,
31,
565,
309,
261,
37,
89,
1489,
18,
291,
37,
89,
1489,
12,
718,
3719,
288,
1377,
27964,
273,
20309,
18,
588,
37,
89,
9839,
1489,
694,
5621,
565,
289,
469,
309,
14015,
2793,
18,
588,
48,
91,
86,
3499,
1435,
5,
33,
2011,
13,
597,
202,
4202,
261,
2793,
18,
588,
48,
91,
86,
3499,
7675,
14963,
12,
19085,
1990,
18,
20184,
67,
8744,
67,
48,
7181,
19318,
20349,
288,
1377,
27964,
273,
1909,
18,
6540,
9839,
1489,
694,
12,
8377,
16,
394,
10326,
907,
9839,
1489,
694,
1990,
12,
718,
10019,
565,
289,
469,
288,
1377,
8086,
9839,
1489,
694,
1990,
4519,
5567,
273,
202,
2704,
8086,
9839,
1489,
694,
1990,
12,
718,
16,
857,
18,
588,
48,
91,
86,
3499,
9334,
857,
18,
588,
57,
683,
3499,
10663,
1377,
27964,
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,
282,
1071,
15771,
1489,
694,
1104,
9839,
1489,
694,
12,
19085,
1990,
857,
13,
288,
565,
309,
261,
1330,
18,
291,
2829,
23,
10756,
613,
18,
4148,
23,
12,
2211,
397,
9654,
4720,
9839,
1489,
694,
22,
2932,
15,
2793,
9078,
2225,
1769,
565,
514,
20309,
548,
273,
857,
18,
588,
37,
89,
548,
5621,
565,
16959,
5162,
2802,
20309,
273,
4506,
89,
1265,
548,
12,
8377,
548,
1769,
565,
309,
261,
1330,
18,
291,
2829,
23,
10756,
613,
18,
4148,
23,
2932,
8377,
30,
315,
397,
20309,
1769,
565,
309,
261,
8377,
422,
446,
13,
327,
446,
31,
4202,
514,
880,
273,
857,
18,
588,
1489,
5621,
565,
15771,
1489,
694,
27964,
31,
565,
309,
261,
37,
89,
2
] |
|
List<Category> categories = (List<Category>) ServiceUtils.executeService(userView,
|
Collection<Category> categories = (Collection<Category>) ServiceUtils.executeService(userView,
|
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws NumberFormatException, FenixFilterException, FenixServiceException { IUserView userView = SessionUtils.getUserView(request); Integer executionPeriodID = Integer.valueOf(request.getParameter("executionPeriodId")); ExecutionPeriod executionPeriod = (ExecutionPeriod) ServiceUtils.executeService(userView, "ReadDomainExecutionPeriodByOID", new Object[] { executionPeriodID }); List<Category> categories = (List<Category>) ServiceUtils.executeService(userView, "ReadAllDomainObjects", new Object[] { Category.class }); List<Category> monitorCategories = (List<Category>) CollectionUtils.select(categories, new Predicate(){ public boolean evaluate(Object object) { Category category = (Category) object; return category.getCode().equals("MNL") || category.getCode().equals("MNT"); }}); List<TeacherWithCreditsDTO> teachersCredits = new ArrayList<TeacherWithCreditsDTO>(); for (Department department : userView.getPerson().getManageableDepartmentCredits()) { List<Teacher> teachers = department.getTeachers(executionPeriod.getBeginDate(), executionPeriod.getEndDate()); for (Teacher teacher : teachers) { double managementCredits = teacher.getManagementFunctionsCredits(executionPeriod); double serviceExemptionsCredits = teacher.getServiceExemptionCredits(executionPeriod); int mandatoryLessonHours = 0; Category category = teacher.getCategoryForCreditsByPeriod(executionPeriod); if(!monitorCategories.contains(category)){ mandatoryLessonHours = teacher.getMandatoryLessonHours(executionPeriod); } TeacherService teacherService = teacher .getTeacherServiceByExecutionPeriod(executionPeriod); CreditLineDTO creditLineDTO = new CreditLineDTO(executionPeriod, teacherService, managementCredits, serviceExemptionsCredits, mandatoryLessonHours); TeacherWithCreditsDTO teacherWithCreditsDTO = new TeacherWithCreditsDTO(teacher, category, creditLineDTO); teachersCredits.add(teacherWithCreditsDTO); } } String sortBy = request.getParameter("sortBy"); request.setAttribute("teachersCreditsListSize", teachersCredits.size()); Iterator orderedTeacherCredits = orderList(sortBy, teachersCredits.iterator()); request.setAttribute("departmentsList", userView.getPerson().getManageableDepartmentCredits()); request.setAttribute("teachersCreditsList", orderedTeacherCredits); request.setAttribute("executionPeriodId", executionPeriodID); return mapping.findForward("show-teachers-credits-list"); }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b46f9f59f27bf5df967d7a65111dd90b815449ff/ShowTeachersCreditsDepartmentListAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/department/ShowTeachersCreditsDepartmentListAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1836,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
12100,
16,
478,
275,
697,
1586,
503,
16,
5411,
478,
275,
697,
15133,
288,
3639,
467,
1299,
1767,
729,
1767,
273,
3877,
1989,
18,
588,
1299,
1767,
12,
2293,
1769,
3639,
2144,
4588,
5027,
734,
273,
2144,
18,
1132,
951,
12,
2293,
18,
588,
1662,
2932,
16414,
5027,
548,
7923,
1769,
3639,
8687,
5027,
4588,
5027,
273,
261,
3210,
5027,
13,
1956,
1989,
18,
8837,
1179,
12,
1355,
1767,
16,
7734,
315,
1994,
3748,
3210,
5027,
858,
12945,
3113,
394,
1033,
8526,
288,
4588,
5027,
734,
15549,
3639,
2200,
32,
4457,
34,
6477,
273,
261,
2532,
32,
4457,
23429,
1956,
1989,
18,
8837,
1179,
12,
1355,
1767,
16,
7734,
315,
1994,
1595,
3748,
4710,
3113,
394,
1033,
8526,
288,
9856,
18,
1106,
15549,
3639,
987,
32,
4457,
34,
6438,
10487,
273,
261,
682,
32,
4457,
23429,
26777,
18,
4025,
12,
8995,
16,
394,
10202,
1435,
95,
5411,
1071,
1250,
5956,
12,
921,
733,
13,
288,
7734,
9856,
3150,
273,
261,
4457,
13,
733,
31,
7734,
327,
3150,
18,
588,
1085,
7675,
14963,
2932,
49,
24924,
7923,
747,
3150,
18,
588,
1085,
7675,
14963,
2932,
49,
1784,
8863,
5411,
10523,
1769,
7734,
987,
32,
56,
13798,
264,
1190,
24201,
1282,
19792,
34,
6489,
497,
414,
24201,
1282,
273,
394,
2407,
32,
56,
13798,
264,
1190,
24201,
1282,
19792,
34,
5621,
3639,
364,
261,
30358,
443,
15750,
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,
4382,
8514,
1836,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
12100,
16,
478,
275,
697,
1586,
503,
16,
5411,
478,
275,
697,
15133,
288,
3639,
467,
1299,
1767,
729,
1767,
273,
3877,
1989,
18,
588,
1299,
1767,
12,
2293,
1769,
3639,
2144,
4588,
5027,
734,
273,
2144,
18,
1132,
951,
12,
2293,
18,
588,
1662,
2932,
16414,
5027,
548,
7923,
1769,
3639,
8687,
5027,
4588,
5027,
273,
261,
3210,
5027,
13,
1956,
1989,
18,
8837,
1179,
12,
1355,
1767,
16,
7734,
315,
1994,
3748,
3210,
5027,
858,
12945,
3113,
394,
1033,
8526,
288,
4588,
5027,
734,
15549,
3639,
2200,
32,
4457,
34,
6477,
273,
261,
2532,
32,
2
] |
gapInsertionArray = new boolean[k+totalGapChars];
|
gapInsertionArray = new int[k+totalGapChars];
|
private long[][] recoverAlignment (AlignmentHelperLinearSpace helper) { int i=0,j, k=0; long[][] alignment = new long[lengthA + lengthB][2]; for (j = 0; j<lengthB; j++) { //gap in B while (i < lastAWhenBAligned[j]) { alignment[k][0] = CategoricalState.makeSet(A[i]); alignment[k][1] = CategoricalState.inapplicable; i++; k++; } //now we're ready to burn off a letter from B, and possibly a letter from A if diagonal. if (shapeWhenBAligned[j] == helper.noGap) { alignment[k][0] = CategoricalState.makeSet(A[i]); alignment[k][1] = CategoricalState.makeSet(B[j]); i++; } else { // gapInA alignment[k][0] = CategoricalState.inapplicable; alignment[k][1] = CategoricalState.makeSet(B[j]); } k++; } while (i < lengthA) { alignment[k][0] = CategoricalState.makeSet(A[i]); alignment[k][1] = CategoricalState.inapplicable; i++; k++; } //trim off all the empty space at the end long seq2return[][] = new long[k][2]; int ii=0; for (i=0; i<k; i++) { if (seqsWereExchanged) {//exhange the sequences seq2return[i][0] = alignment[i][1]; seq2return[i][1] = alignment[i][0]; } else { seq2return[i][0] = alignment[i][0]; seq2return[i][1] = alignment[i][1]; } } if (keepGaps) { long finalSeq2return[][] = new long[k+totalGapChars][2]; gapInsertionArray = new boolean[k+totalGapChars]; for(i=0; i<k+totalGapChars; i++) { gapInsertionArray[i] =false; } int usedGaps=0; int recentGapRunLength=0; j=0; // counts the number of letters in A seen so far for (i=0; i<k; i++) { if(seq2return[i][0] == CategoricalState.inapplicable) { recentGapRunLength++; gapInsertionArray[i+usedGaps]=true; } else { for (int m=0 ; m < followsGapSize[j]-recentGapRunLength; m++){ finalSeq2return[i+usedGaps][0] = CategoricalState.inapplicable; finalSeq2return[i+usedGaps][1] = CategoricalState.inapplicable; usedGaps++; } j++; recentGapRunLength=0; } finalSeq2return[i+usedGaps][0] = seq2return[i][0] ; finalSeq2return[i+usedGaps][1] = seq2return[i][1] ; } return finalSeq2return; } return seq2return; }
|
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/a39b1631489579c7e2d8a1aab6e0bce6d7cdb330/PairwiseAligner.java/buggy/trunk/Mesquite Project/Source/mesquite/align/lib/PairwiseAligner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1525,
63,
6362,
65,
5910,
11535,
261,
11535,
2276,
15982,
3819,
4222,
13,
288,
202,
202,
474,
277,
33,
20,
16,
78,
16,
417,
33,
20,
31,
9506,
202,
5748,
63,
6362,
65,
8710,
273,
394,
1525,
63,
2469,
37,
397,
769,
38,
6362,
22,
15533,
202,
202,
1884,
261,
78,
273,
374,
31,
525,
32,
2469,
38,
31,
525,
27245,
288,
1082,
202,
759,
14048,
316,
605,
1082,
202,
17523,
261,
77,
411,
1142,
37,
9434,
38,
28495,
63,
78,
5717,
288,
9506,
202,
14409,
63,
79,
6362,
20,
65,
273,
385,
14341,
1119,
18,
6540,
694,
12,
37,
63,
77,
19226,
9506,
202,
14409,
63,
79,
6362,
21,
65,
273,
385,
14341,
1119,
18,
267,
438,
10120,
31,
9506,
202,
77,
9904,
31,
9506,
202,
79,
9904,
31,
6862,
9506,
202,
97,
1082,
202,
759,
3338,
732,
4565,
5695,
358,
18305,
3397,
279,
9471,
628,
605,
16,
471,
10016,
279,
9471,
628,
432,
309,
15425,
18,
1082,
202,
430,
261,
4867,
9434,
38,
28495,
63,
78,
65,
422,
4222,
18,
2135,
14001,
13,
288,
9506,
202,
14409,
63,
79,
6362,
20,
65,
273,
385,
14341,
1119,
18,
6540,
694,
12,
37,
63,
77,
19226,
9506,
202,
14409,
63,
79,
6362,
21,
65,
273,
385,
14341,
1119,
18,
6540,
694,
12,
38,
63,
78,
19226,
9506,
202,
77,
9904,
31,
1082,
202,
97,
469,
288,
202,
202,
759,
9300,
382,
37,
6862,
6862,
9506,
202,
14409,
63,
79,
6362,
20,
65,
273,
385,
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,
1525,
63,
6362,
65,
5910,
11535,
261,
11535,
2276,
15982,
3819,
4222,
13,
288,
202,
202,
474,
277,
33,
20,
16,
78,
16,
417,
33,
20,
31,
9506,
202,
5748,
63,
6362,
65,
8710,
273,
394,
1525,
63,
2469,
37,
397,
769,
38,
6362,
22,
15533,
202,
202,
1884,
261,
78,
273,
374,
31,
525,
32,
2469,
38,
31,
525,
27245,
288,
1082,
202,
759,
14048,
316,
605,
1082,
202,
17523,
261,
77,
411,
1142,
37,
9434,
38,
28495,
63,
78,
5717,
288,
9506,
202,
14409,
63,
79,
6362,
20,
65,
273,
385,
14341,
1119,
18,
6540,
694,
12,
37,
63,
77,
19226,
9506,
202,
14409,
63,
79,
6362,
21,
65,
273,
385,
14341,
1119,
18,
2
] |
throwableClass, true, true, null);
|
throwableClass, true, true, null);
|
public void actionPerformed(ActionEvent e) { final PsiClass throwableClass = PsiManager.getInstance(myProject).findClass("java.lang.Throwable", GlobalSearchScope.allScope(myProject)); TreeClassChooser chooser = TreeClassChooserFactory.getInstance(myProject).createInheritanceClassChooser( DebuggerBundle.message("add.exception.breakpoint.classchooser.title"), GlobalSearchScope.allScope(myProject), throwableClass, true, true, null); chooser.showDialog(); PsiClass selectedClass = chooser.getSelectedClass(); String qName = (selectedClass != null)? selectedClass.getQualifiedName() : null; if (qName != null && qName.length() > 0) { ExceptionBreakpoint breakpoint = DebuggerManagerEx.getInstanceEx(myProject).getBreakpointManager().addExceptionBreakpoint(qName, ((PsiJavaFile)selectedClass.getContainingFile()).getPackageName()); getPanel().addBreakpoint(breakpoint); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/c185097763506f95b21376899c010b6b17464d2d/ExceptionBreakpointFactory.java/clean/debugger/impl/com/intellij/debugger/ui/breakpoints/ExceptionBreakpointFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1377,
727,
453,
7722,
797,
10132,
797,
273,
453,
7722,
1318,
18,
588,
1442,
12,
4811,
4109,
2934,
4720,
797,
2932,
6290,
18,
4936,
18,
15155,
3113,
8510,
2979,
3876,
18,
454,
3876,
12,
4811,
4109,
10019,
1377,
4902,
797,
17324,
5011,
13164,
273,
3639,
4902,
797,
17324,
1733,
18,
588,
1442,
12,
4811,
4109,
2934,
2640,
28255,
797,
17324,
12,
1850,
28645,
3405,
18,
2150,
2932,
1289,
18,
4064,
18,
8820,
1153,
18,
1106,
2599,
13164,
18,
2649,
6,
3631,
8510,
2979,
3876,
18,
454,
3876,
12,
4811,
4109,
3631,
28524,
5397,
10132,
797,
16,
638,
16,
638,
16,
446,
1769,
1377,
5011,
13164,
18,
4500,
6353,
5621,
1377,
453,
7722,
797,
3170,
797,
273,
5011,
13164,
18,
588,
7416,
797,
5621,
1377,
514,
22914,
273,
261,
8109,
797,
480,
446,
9945,
3170,
797,
18,
588,
12345,
1435,
294,
446,
31,
1377,
309,
261,
85,
461,
480,
446,
597,
22914,
18,
2469,
1435,
405,
374,
13,
288,
3639,
1185,
20552,
18820,
273,
28645,
1318,
424,
18,
588,
1442,
424,
12,
4811,
4109,
2934,
588,
20552,
1318,
7675,
1289,
503,
20552,
12,
85,
461,
16,
14015,
52,
7722,
5852,
812,
13,
8109,
797,
18,
588,
24344,
812,
1435,
2934,
588,
18308,
10663,
3639,
1689,
30427,
7675,
1289,
20552,
12,
8820,
1153,
1769,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
425,
13,
288,
1377,
727,
453,
7722,
797,
10132,
797,
273,
453,
7722,
1318,
18,
588,
1442,
12,
4811,
4109,
2934,
4720,
797,
2932,
6290,
18,
4936,
18,
15155,
3113,
8510,
2979,
3876,
18,
454,
3876,
12,
4811,
4109,
10019,
1377,
4902,
797,
17324,
5011,
13164,
273,
3639,
4902,
797,
17324,
1733,
18,
588,
1442,
12,
4811,
4109,
2934,
2640,
28255,
797,
17324,
12,
1850,
28645,
3405,
18,
2150,
2932,
1289,
18,
4064,
18,
8820,
1153,
18,
1106,
2599,
13164,
18,
2649,
6,
3631,
8510,
2979,
3876,
18,
454,
3876,
12,
4811,
4109,
3631,
28524,
5397,
10132,
797,
16,
638,
16,
638,
16,
446,
1769,
1377,
5011,
13164,
18,
4500,
6353,
5621,
2
] |
public AC_Exception (String anExplaination) { super (anExplaination);
|
public AC_Exception () { super ();
|
public AC_Exception (String anExplaination) { super (anExplaination); }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/9fc08ba0be9ed03b89cc0a864abdd1a27083e671/AC_Exception.java/buggy/grendel/addressbook/addresscard/AC_Exception.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12048,
67,
503,
261,
780,
392,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12048,
67,
503,
261,
780,
392,
424,
7446,
367,
13,
288,
3639,
2240,
261,
304,
424,
7446,
367,
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
] |
return getTestsSupport().getSystemLanguage(this);
|
return SVGTestsSupport.getSystemLanguage(this);
|
public SVGStringList getSystemLanguage() { return getTestsSupport().getSystemLanguage(this); }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/c894adcdabbe67baf55a0333571ad839739df615/SVGGraphicsElement.java/clean/sources/org/apache/batik/dom/svg/SVGGraphicsElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11281,
780,
682,
12996,
3779,
1435,
288,
202,
2463,
11281,
14650,
6289,
18,
588,
3163,
3779,
12,
2211,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11281,
780,
682,
12996,
3779,
1435,
288,
202,
2463,
11281,
14650,
6289,
18,
588,
3163,
3779,
12,
2211,
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
] |
onError(getMessage("wscompile.missingOptionArgument", "-nd"));
|
onError(getMessage("wscompile.missingOptionArgument", "-r"));
|
protected boolean parseArguments(String[] args) { for (int i = 0; i < args.length; i++) { if (args[i].equals("")) { args[i] = null; } else if (args[i].equals("-g")) { compilerDebug = true; args[i] = null; } /*else if (args[i].equals("-O")) { compilerOptimize = true; args[i] = null; }*/ else if (args[i].equals("-verbose")) { verbose = true; args[i] = null; } else if (args[i].equals("-b")) { if(program.equals(WSGEN)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i] = null; String file = args[++i]; args[i] = null; bindingFiles.add(JAXWSUtils.absolutize(JAXWSUtils.getFileOrURLName(file))); } else { onError(getMessage("wscompile.missingOptionArgument", "-b")); usage(); return false; } } else if (args[i].equals("-version")) { report(ToolVersion.VERSION.BUILD_VERSION); doNothing = true; args[i] = null; return true; } else if (args[i].equals("-keep")) { keepGenerated = true; args[i] = null; } else if(args[i].equals("-wsdllocation")){ if(program.equals(WSGEN)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i]=null; wsdlLocation = args[++i]; args[i]=null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].equals(SERVICENAME_OPTION)) { if(program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i] = null; serviceName = QName.valueOf(args[++i]); if (serviceName.getNamespaceURI() == null || serviceName.getNamespaceURI().length() == 0) { onError(getMessage("wsgen.servicename.missing.namespace", args[i])); usage(); return false; } if (serviceName.getLocalPart() == null || serviceName.getLocalPart().length() == 0) { onError(getMessage("wsgen.servicename.missing.localname", args[i])); usage(); return false; } args[i] = null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].equals(PORTNAME_OPTION)) { if(program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i] = null; portName = QName.valueOf(args[++i]); if (portName.getNamespaceURI() == null || portName.getNamespaceURI().length() == 0) { onError(getMessage("wsgen.portname.missing.namespace", args[i])); usage(); return false; } if (portName.getLocalPart() == null || portName.getLocalPart().length() == 0) { onError(getMessage("wsgen.portname.missing.localname", args[i])); usage(); return false; } args[i] = null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].equals("-d")) { if ((i + 1) < args.length) { if (destDir != null) { onError(getMessage("wscompile.duplicateOption", "-d")); usage(); return false; } args[i] = null; destDir = new File(args[++i]); args[i] = null; if (!destDir.exists()) { onError(getMessage("wscompile.noSuchDirectory", destDir.getPath())); usage(); return false; } } else { onError(getMessage("wscompile.missingOptionArgument", "-d")); usage(); return false; } } else if (args[i].equals("-nd")) { if (program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { if (nonclassDestDir != null) { onError(getMessage("wscompile.duplicateOption", "-nd")); usage(); return false; } args[i] = null; nonclassDestDir = new File(args[++i]); args[i] = null; if (!nonclassDestDir.exists()) { onError(getMessage("wscompile.noSuchDirectory", nonclassDestDir.getPath())); usage(); return false; } } else { onError(getMessage("wscompile.missingOptionArgument", "-nd")); usage(); return false; } } else if (args[i].equals("-s")) { if ((i + 1) < args.length) { if (sourceDir != null) { onError(getMessage("wscompile.duplicateOption", "-s")); usage(); return false; } args[i] = null; sourceDir = new File(args[++i]); args[i] = null; if (!sourceDir.exists()) { onError(getMessage("wscompile.noSuchDirectory", sourceDir.getPath())); usage(); return false; } } else { onError(getMessage("wscompile.missingOptionArgument", "-s")); usage(); return false; } } else if (args[i].equals("-classpath") || args[i].equals("-cp")) { if (program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { if (userClasspath != null) { onError(getMessage("wscompile.duplicateOption", args[i])); usage(); return false; } args[i] = null; userClasspath = args[++i]; args[i] = null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].startsWith("-httpproxy:")) { if(program.equals(WSGEN)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } String value = args[i].substring(11); if (value.length() == 0) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } int index = value.indexOf(':'); if (index == -1) { System.setProperty("proxySet", TRUE); System.setProperty("proxyHost", value); System.setProperty("proxyPort", "8080"); } else { System.setProperty("proxySet", TRUE); System.setProperty("proxyHost", value.substring(0, index)); System.setProperty("proxyPort", value.substring(index + 1)); } args[i] = null; } else if (args[i].startsWith("-wsdl")) { if (program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } genWsdl = true; String value = args[i].substring(5); int index = value.indexOf(':'); if (index == 0) { value = value.substring(1); index = value.indexOf('/'); if (index == -1) { protocol = value; //.toLowerCase(); transport = HTTP; } else { protocol = value.substring(0, index);//.toLowerCase(); transport = value.substring(index + 1); } if (!isValidProtocol(protocol)) { onError(getMessage("wsgen.invalid.protocol", protocol, VALID_PROTOCOLS)); } if (!isValidTransport(transport)) { onError(getMessage("wsgen.invalid.transport", transport, VALID_TRANSPORTS)); } } args[i] = null; } else if (args[i].equals("-extension")) { extensions = true; args[i] = null; } else if (args[i].startsWith("-help")) { help(); return false; } } for (String arg : args) { if (arg != null) { if (arg.startsWith("-")) { onError(getMessage("wscompile.invalidOption", arg)); usage(); return false; } // the input source could be a local file or a URL,get the // abolutized URL string String fileName = arg; if (program.equals(WSGEN)) { if (!isClass(fileName)) { onError(getMessage("wsgen.class.not.found", fileName)); return false; } } else { //fileName = JAXWSUtils.absolutize(JAXWSUtils.getFileOrURLName(args[i])); } inputFiles.add(fileName); } } if (inputFiles.isEmpty()) { onError(getMessage(program+".missingFile")); usage(); return false; } if (!extensions && hasExtensions()) return false; // put jaxws and jaxb binding files properties.put(ProcessorOptions.BINDING_FILES, bindingFiles); if (!validateArguments()) { usage(); return false; } return true; }
|
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/d6866c5c44f3dfc7c3631526a7c56fedfe38a588/CompileTool.java/buggy/jaxws-ri/tools/wscompile/src/com/sun/tools/ws/wscompile/CompileTool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1109,
4628,
12,
780,
8526,
833,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
309,
261,
1968,
63,
77,
8009,
14963,
2932,
6,
3719,
288,
7734,
833,
63,
77,
65,
273,
446,
31,
5411,
289,
469,
309,
261,
1968,
63,
77,
8009,
14963,
2932,
17,
75,
6,
3719,
288,
7734,
5274,
2829,
273,
638,
31,
7734,
833,
63,
77,
65,
273,
446,
31,
5411,
289,
1748,
12107,
309,
261,
1968,
63,
77,
8009,
14963,
2932,
17,
51,
6,
3719,
288,
7734,
5274,
6179,
10153,
273,
638,
31,
7734,
833,
63,
77,
65,
273,
446,
31,
5411,
289,
5549,
469,
309,
261,
1968,
63,
77,
8009,
14963,
2932,
17,
11369,
6,
3719,
288,
7734,
3988,
273,
638,
31,
7734,
833,
63,
77,
65,
273,
446,
31,
5411,
289,
469,
309,
261,
1968,
63,
77,
8009,
14963,
2932,
17,
70,
6,
3719,
288,
7734,
309,
12,
12890,
18,
14963,
12,
2651,
16652,
3719,
288,
10792,
13509,
12,
24906,
2932,
4749,
11100,
18,
5387,
1895,
3113,
833,
63,
77,
5717,
1769,
10792,
4084,
5621,
10792,
327,
629,
31,
7734,
289,
7734,
309,
14015,
77,
397,
404,
13,
411,
833,
18,
2469,
13,
288,
10792,
833,
63,
77,
65,
273,
446,
31,
10792,
514,
585,
273,
833,
63,
9904,
77,
15533,
10792,
833,
63,
77,
65,
273,
446,
31,
10792,
5085,
2697,
18,
1289,
12,
17368,
2651,
1989,
18,
5113,
355,
322,
554,
12,
17368,
2651,
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,
1250,
1109,
4628,
12,
780,
8526,
833,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
309,
261,
1968,
63,
77,
8009,
14963,
2932,
6,
3719,
288,
7734,
833,
63,
77,
65,
273,
446,
31,
5411,
289,
469,
309,
261,
1968,
63,
77,
8009,
14963,
2932,
17,
75,
6,
3719,
288,
7734,
5274,
2829,
273,
638,
31,
7734,
833,
63,
77,
65,
273,
446,
31,
5411,
289,
1748,
12107,
309,
261,
1968,
63,
77,
8009,
14963,
2932,
17,
51,
6,
3719,
288,
7734,
5274,
6179,
10153,
273,
638,
31,
7734,
833,
63,
77,
65,
273,
446,
31,
5411,
289,
5549,
469,
309,
261,
1968,
63,
77,
2
] |
Method method = factory.newMethod(METHOD_NAME, ARG_TYPES, RETURN_TYPE, EXCEPTION_TYPES);
|
Method method = factory.newMethod(METHOD_NAME, ARG_TYPES, RETURN_TYPE, EXCEPTION_TYPES);
|
public void testCreatesMethodInNewNamedClass() { Method method = factory.newMethod(METHOD_NAME, ARG_TYPES, RETURN_TYPE, EXCEPTION_TYPES); assertTrue("is public", Modifier.isPublic(method.getModifiers())); assertEquals("invokedMethod name", METHOD_NAME, method.getName()); assertAllSame("arg types", ARG_TYPES, method.getParameterTypes()); assertSame("return type", RETURN_TYPE, method.getReturnType()); assertAllSame("exception types", EXCEPTION_TYPES, method.getExceptionTypes()); }
|
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/MethodFactoryTest.java/clean/jmock/core/src/test/jmock/core/testsupport/MethodFactoryTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2729,
1305,
382,
1908,
7604,
797,
1435,
288,
202,
202,
1305,
707,
273,
3272,
18,
2704,
1305,
12,
5327,
67,
1985,
16,
13984,
67,
10564,
16,
14780,
67,
2399,
16,
23136,
67,
10564,
1769,
202,
202,
11231,
5510,
2932,
291,
1071,
3113,
12832,
18,
291,
4782,
12,
2039,
18,
588,
11948,
1435,
10019,
202,
202,
11231,
8867,
2932,
5768,
14276,
1305,
508,
3113,
10152,
67,
1985,
16,
707,
18,
17994,
10663,
202,
202,
11231,
1595,
8650,
2932,
3175,
1953,
3113,
13984,
67,
10564,
16,
707,
18,
588,
1662,
2016,
10663,
202,
202,
11231,
8650,
2932,
2463,
618,
3113,
14780,
67,
2399,
16,
707,
18,
588,
9102,
10663,
202,
202,
11231,
1595,
8650,
2932,
4064,
1953,
3113,
23136,
67,
10564,
16,
707,
18,
588,
503,
2016,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1842,
2729,
1305,
382,
1908,
7604,
797,
1435,
288,
202,
202,
1305,
707,
273,
3272,
18,
2704,
1305,
12,
5327,
67,
1985,
16,
13984,
67,
10564,
16,
14780,
67,
2399,
16,
23136,
67,
10564,
1769,
202,
202,
11231,
5510,
2932,
291,
1071,
3113,
12832,
18,
291,
4782,
12,
2039,
18,
588,
11948,
1435,
10019,
202,
202,
11231,
8867,
2932,
5768,
14276,
1305,
508,
3113,
10152,
67,
1985,
16,
707,
18,
17994,
10663,
202,
202,
11231,
1595,
8650,
2932,
3175,
1953,
3113,
13984,
67,
10564,
16,
707,
18,
588,
1662,
2016,
10663,
202,
202,
11231,
8650,
2932,
2463,
618,
3113,
14780,
67,
2399,
16,
707,
18,
588,
9102,
10663,
202,
202,
11231,
1595,
8650,
2932,
4064,
2
] |
Matrix covariance = centeredMatrix.transpose().times(centeredMatrix); return covariance;
|
return centeredMatrix.transpose().times(centeredMatrix);
|
public static Matrix covarianceMatrix(Database<DoubleVector> database, List<Integer> ids) { // centroid DoubleVector centroid = centroid(database, ids); // covariance matrixArray int columns = centroid.getDimensionality(); int rows = ids.size(); double[][] matrixArray = new double[rows][columns]; for (int i = 0; i < rows; i++) { DoubleVector obj = database.get(ids.get(i)); for (int d = 0; d < columns; d++) { matrixArray[i][d] = obj.getValue(d + 1) - centroid.getValue(d + 1); } } Matrix centeredMatrix = new Matrix(matrixArray); Matrix covariance = centeredMatrix.transpose().times(centeredMatrix); return covariance; }
|
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/ea679fae9ebe2fc20a84c550fc74729ca2c92c3f/Util.java/buggy/src/de/lmu/ifi/dbs/utilities/Util.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
7298,
17366,
4635,
12,
4254,
32,
27047,
34,
2063,
16,
987,
32,
4522,
34,
3258,
13,
288,
565,
368,
16767,
565,
3698,
5018,
16767,
273,
16767,
12,
6231,
16,
3258,
1769,
565,
368,
17366,
3148,
1076,
565,
509,
2168,
273,
16767,
18,
588,
8611,
7919,
5621,
565,
509,
2595,
273,
3258,
18,
1467,
5621,
565,
1645,
63,
6362,
65,
3148,
1076,
273,
394,
1645,
63,
3870,
6362,
5112,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2595,
31,
277,
27245,
288,
1377,
3698,
5018,
1081,
273,
2063,
18,
588,
12,
2232,
18,
588,
12,
77,
10019,
1377,
364,
261,
474,
302,
273,
374,
31,
302,
411,
2168,
31,
302,
27245,
288,
3639,
3148,
1076,
63,
77,
6362,
72,
65,
273,
1081,
18,
24805,
12,
72,
397,
404,
13,
300,
16767,
18,
24805,
12,
72,
397,
404,
1769,
1377,
289,
565,
289,
565,
7298,
25340,
4635,
273,
394,
7298,
12,
5667,
1076,
1769,
565,
7298,
17366,
273,
25340,
4635,
18,
2338,
4150,
7675,
8293,
12,
5693,
329,
4635,
1769,
565,
327,
17366,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
7298,
17366,
4635,
12,
4254,
32,
27047,
34,
2063,
16,
987,
32,
4522,
34,
3258,
13,
288,
565,
368,
16767,
565,
3698,
5018,
16767,
273,
16767,
12,
6231,
16,
3258,
1769,
565,
368,
17366,
3148,
1076,
565,
509,
2168,
273,
16767,
18,
588,
8611,
7919,
5621,
565,
509,
2595,
273,
3258,
18,
1467,
5621,
565,
1645,
63,
6362,
65,
3148,
1076,
273,
394,
1645,
63,
3870,
6362,
5112,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2595,
31,
277,
27245,
288,
1377,
3698,
5018,
1081,
273,
2063,
18,
588,
12,
2232,
18,
588,
12,
77,
10019,
1377,
364,
261,
474,
302,
273,
374,
31,
302,
411,
2168,
31,
302,
27245,
288,
3639,
3148,
2
] |
EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack(); int currentOffset = envStack.getOffset();
|
CocoonComponentManager.enterEnvironment(this.environment, this.manager, this.pipelineProcessor);
|
protected void init() { this.systemIdForCaching = this.systemId; try { this.processKey = CocoonComponentManager.startProcessing(this.environment); this.processingPipeline = this.processor.buildPipeline(this.environment); this.pipelineProcessor = CocoonComponentManager.getLastProcessor(this.environment); this.environment.changeToLastContext(); String redirectURL = this.environment.getRedirectURL(); if (redirectURL == null) { EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack(); int currentOffset = envStack.getOffset(); try { CocoonComponentManager.enterEnvironment(this.environment, this.manager, this.pipelineProcessor); envStack.resetOffset(0); this.processingPipeline.prepareInternal(this.environment); this.sourceValidity = this.processingPipeline.getValidityForEventPipeline(); final String eventPipelineKey = this.processingPipeline.getKeyForEventPipeline(); if ( eventPipelineKey != null ) { StringBuffer buffer = new StringBuffer(this.systemId); if ( this.systemId.indexOf('?') == -1) { buffer.append('?'); } else { buffer.append('&'); } buffer.append("pipelinehash="); buffer.append(eventPipelineKey); this.systemIdForCaching = buffer.toString(); } else { this.systemIdForCaching = this.systemId; } } finally { CocoonComponentManager.leaveEnvironment(); envStack.resetOffset(currentOffset); } } else { if (redirectURL.indexOf(":") == -1) { redirectURL = this.protocol + ":/" + redirectURL; } this.redirectSource = this.environment.resolveURI(redirectURL); this.redirectValidity = this.redirectSource.getValidity(); } } catch (SAXException e) { reset(); this.exception = e; } catch (Exception e) { reset(); this.exception = new SAXException("Could not get sitemap source " + this.systemId, e); } this.needsRefresh = false; }
|
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/cf4015805a4f5769793984c6edeef3fe317c1453/SitemapSource.java/buggy/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
1435,
288,
3639,
333,
18,
4299,
548,
1290,
17712,
273,
333,
18,
4299,
548,
31,
3639,
775,
288,
5411,
333,
18,
2567,
653,
273,
385,
29571,
265,
1841,
1318,
18,
1937,
7798,
12,
2211,
18,
10274,
1769,
5411,
333,
18,
10632,
8798,
273,
333,
18,
8700,
18,
3510,
8798,
12,
2211,
18,
10274,
1769,
5411,
333,
18,
14511,
5164,
273,
385,
29571,
265,
1841,
1318,
18,
588,
3024,
5164,
12,
2211,
18,
10274,
1769,
2398,
333,
18,
10274,
18,
3427,
774,
3024,
1042,
5621,
5411,
514,
3136,
1785,
273,
333,
18,
10274,
18,
588,
5961,
1785,
5621,
5411,
309,
261,
7590,
1785,
422,
446,
13,
288,
7734,
7518,
2624,
1550,
2624,
273,
385,
29571,
265,
1841,
1318,
18,
588,
3935,
5494,
2624,
5621,
7734,
509,
783,
2335,
273,
1550,
2624,
18,
588,
2335,
5621,
7734,
775,
288,
10792,
385,
29571,
265,
1841,
1318,
18,
2328,
5494,
12,
2211,
18,
10274,
16,
4766,
18701,
333,
18,
4181,
16,
4766,
18701,
333,
18,
14511,
5164,
1769,
10792,
1550,
2624,
18,
6208,
2335,
12,
20,
1769,
10792,
333,
18,
10632,
8798,
18,
9366,
3061,
12,
2211,
18,
10274,
1769,
10792,
333,
18,
3168,
19678,
273,
333,
18,
10632,
8798,
18,
588,
19678,
1290,
1133,
8798,
5621,
10792,
727,
514,
871,
8798,
653,
273,
333,
18,
10632,
8798,
18,
588,
653,
1290,
1133,
8798,
5621,
10792,
309,
261,
871,
8798,
653,
480,
446,
262,
288,
13491,
6674,
1613,
273,
394,
6674,
12,
2211,
18,
4299,
548,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
1435,
288,
3639,
333,
18,
4299,
548,
1290,
17712,
273,
333,
18,
4299,
548,
31,
3639,
775,
288,
5411,
333,
18,
2567,
653,
273,
385,
29571,
265,
1841,
1318,
18,
1937,
7798,
12,
2211,
18,
10274,
1769,
5411,
333,
18,
10632,
8798,
273,
333,
18,
8700,
18,
3510,
8798,
12,
2211,
18,
10274,
1769,
5411,
333,
18,
14511,
5164,
273,
385,
29571,
265,
1841,
1318,
18,
588,
3024,
5164,
12,
2211,
18,
10274,
1769,
2398,
333,
18,
10274,
18,
3427,
774,
3024,
1042,
5621,
5411,
514,
3136,
1785,
273,
333,
18,
10274,
18,
588,
5961,
1785,
5621,
5411,
309,
261,
7590,
1785,
422,
446,
13,
288,
7734,
7518,
2624,
1550,
2624,
273,
385,
29571,
265,
2
] |
public static final String[] getTreeStrings(TreeItem ti) { int nrlevels = getTreeLevel(ti) + 1; String retval[] = new String[nrlevels]; int level = 0; retval[nrlevels-1] = ti.getText(); TreeItem parent = ti.getParentItem(); while (parent!=null) { level++; retval[nrlevels-level-1]=parent.getText(); parent = parent.getParentItem(); } return retval; }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/3d662b2c7ebea403aa0721885d4e8b2ec43e4e62/Const.java/buggy/kettle/src/be/ibridge/kettle/core/Const.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
8526,
15867,
7957,
12,
2471,
1180,
11374,
13,
202,
95,
202,
202,
474,
9884,
12095,
273,
15867,
2355,
12,
9096,
13,
397,
404,
31,
202,
202,
780,
5221,
8526,
273,
394,
514,
63,
11611,
12095,
15533,
202,
202,
474,
1801,
273,
374,
31,
9506,
202,
18341,
63,
11611,
12095,
17,
21,
65,
273,
11374,
18,
588,
1528,
5621,
202,
202,
2471,
1180,
982,
273,
11374,
18,
588,
3054,
1180,
5621,
202,
202,
17523,
261,
2938,
5,
33,
2011,
13,
202,
202,
95,
1082,
202,
2815,
9904,
31,
1082,
202,
18341,
63,
11611,
12095,
17,
2815,
17,
21,
65,
33,
2938,
18,
588,
1528,
5621,
1082,
202,
2938,
273,
982,
18,
588,
3054,
1180,
5621,
202,
202,
97,
9506,
202,
2463,
5221,
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,
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0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
8526,
15867,
7957,
12,
2471,
1180,
11374,
13,
202,
95,
202,
202,
474,
9884,
12095,
273,
15867,
2355,
12,
9096,
13,
397,
404,
31,
202,
202,
780,
5221,
8526,
273,
394,
514,
63,
11611,
12095,
15533,
202,
202,
474,
1801,
273,
374,
31,
9506,
202,
18341,
63,
11611,
12095,
17,
21,
65,
273,
11374,
18,
588,
1528,
5621,
202,
202,
2471,
1180,
982,
273,
11374,
18,
588,
3054,
1180,
5621,
202,
202,
17523,
261,
2938,
5,
33,
2011,
13,
202,
202,
95,
1082,
202,
2815,
9904,
31,
1082,
202,
18341,
63,
11611,
12095,
17,
2815,
17,
21,
65,
33,
2938,
18,
588,
1528,
5621,
1082,
202,
2938,
273,
982,
18,
588,
3054,
1180,
2
] |
||
CommonUtils.getResourceFile("com/limegroup/gnutella/mp3/mpg1layIII_0h_58k-VBRq30_frame1211_44100hz_joint_XingTAG_sample.mp3");
|
CommonUtils.getResourceFile("com/limegroup/gnutella/metadata/mpg1layIII_0h_58k-VBRq30_frame1211_44100hz_joint_XingTAG_sample.mp3");
|
private static void doSettings() { ConnectionSettings.PORT.setValue(PORT); ConnectionSettings.CONNECT_ON_STARTUP.setValue(false); UltrapeerSettings.EVER_ULTRAPEER_CAPABLE.setValue(false); UltrapeerSettings.DISABLE_ULTRAPEER_MODE.setValue(true); UltrapeerSettings.FORCE_ULTRAPEER_MODE.setValue(false); ConnectionSettings.NUM_CONNECTIONS.setValue(0); ConnectionSettings.LOCAL_IS_PRIVATE.setValue(false); SharingSettings.EXTENSIONS_TO_SHARE.setValue("txt;mp3"); // get the resource file for com/limegroup/gnutella File berkeley = CommonUtils.getResourceFile("com/limegroup/gnutella/berkeley.txt"); File susheel = CommonUtils.getResourceFile("com/limegroup/gnutella/susheel.txt"); File mp3 = CommonUtils.getResourceFile("com/limegroup/gnutella/mp3/mpg1layIII_0h_58k-VBRq30_frame1211_44100hz_joint_XingTAG_sample.mp3"); // now move them to the share dir CommonUtils.copy(berkeley, new File(_sharedDir, "berkeley.txt")); CommonUtils.copy(susheel, new File(_sharedDir, "susheel.txt")); CommonUtils.copy(mp3, new File(_sharedDir, "metadata.mp3")); // make sure results get through SearchSettings.MINIMUM_SEARCH_QUALITY.setValue(-2); }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/3c2399e1bf502c0555b2c78a6faba59492effcc5/CreationTimeCacheTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/CreationTimeCacheTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
741,
2628,
1435,
288,
3639,
4050,
2628,
18,
6354,
18,
542,
620,
12,
6354,
1769,
202,
202,
1952,
2628,
18,
11032,
67,
673,
67,
7570,
3079,
18,
542,
620,
12,
5743,
1769,
202,
202,
57,
80,
313,
1273,
264,
2628,
18,
41,
2204,
67,
2274,
2849,
1423,
654,
67,
17296,
2782,
18,
542,
620,
12,
5743,
1769,
202,
202,
57,
80,
313,
1273,
264,
2628,
18,
13498,
2782,
67,
2274,
2849,
1423,
654,
67,
7038,
18,
542,
620,
12,
3767,
1769,
202,
202,
57,
80,
313,
1273,
264,
2628,
18,
27817,
67,
2274,
2849,
1423,
654,
67,
7038,
18,
542,
620,
12,
5743,
1769,
202,
202,
1952,
2628,
18,
6069,
67,
15461,
55,
18,
542,
620,
12,
20,
1769,
202,
202,
1952,
2628,
18,
14922,
67,
5127,
67,
20055,
18,
542,
620,
12,
5743,
1769,
202,
202,
22897,
2628,
18,
12796,
55,
67,
4296,
67,
8325,
862,
18,
542,
620,
2932,
5830,
31,
1291,
23,
8863,
3639,
368,
336,
326,
1058,
585,
364,
532,
19,
80,
494,
1655,
19,
1600,
322,
1165,
69,
3639,
1387,
27965,
79,
292,
402,
273,
2398,
5658,
1989,
18,
588,
1420,
812,
2932,
832,
19,
80,
494,
1655,
19,
1600,
322,
1165,
69,
19,
744,
79,
292,
402,
18,
5830,
8863,
3639,
1387,
11375,
11648,
273,
2398,
5658,
1989,
18,
588,
1420,
812,
2932,
832,
19,
80,
494,
1655,
19,
1600,
322,
1165,
69,
19,
87,
407,
11648,
18,
5830,
8863,
3639,
1387,
6749,
23,
273,
2398,
5658,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
741,
2628,
1435,
288,
3639,
4050,
2628,
18,
6354,
18,
542,
620,
12,
6354,
1769,
202,
202,
1952,
2628,
18,
11032,
67,
673,
67,
7570,
3079,
18,
542,
620,
12,
5743,
1769,
202,
202,
57,
80,
313,
1273,
264,
2628,
18,
41,
2204,
67,
2274,
2849,
1423,
654,
67,
17296,
2782,
18,
542,
620,
12,
5743,
1769,
202,
202,
57,
80,
313,
1273,
264,
2628,
18,
13498,
2782,
67,
2274,
2849,
1423,
654,
67,
7038,
18,
542,
620,
12,
3767,
1769,
202,
202,
57,
80,
313,
1273,
264,
2628,
18,
27817,
67,
2274,
2849,
1423,
654,
67,
7038,
18,
542,
620,
12,
5743,
1769,
202,
202,
1952,
2628,
18,
6069,
67,
15461,
55,
18,
542,
2
] |
public boolean hasDomainSource(final String aType, final String aName, final int aLevel)
|
public boolean hasDomainSource(final String aType, final String aName, final int aLevel)
|
public boolean hasDomainSource(final String aType, final String aName, final int aLevel) { final String aKey = aType + "|" + aName + "|" + aLevel; return domainSourceMap.containsKey(aKey); }
|
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
711,
3748,
1830,
12,
6385,
514,
279,
559,
16,
727,
514,
279,
461,
16,
727,
509,
279,
2355,
13,
202,
95,
202,
202,
6385,
514,
279,
653,
273,
279,
559,
397,
15710,
397,
279,
461,
397,
15710,
397,
279,
2355,
31,
202,
202,
2463,
2461,
1830,
863,
18,
12298,
653,
12,
69,
653,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
711,
3748,
1830,
12,
6385,
514,
279,
559,
16,
727,
514,
279,
461,
16,
727,
509,
279,
2355,
13,
202,
95,
202,
202,
6385,
514,
279,
653,
273,
279,
559,
397,
15710,
397,
279,
461,
397,
15710,
397,
279,
2355,
31,
202,
202,
2463,
2461,
1830,
863,
18,
12298,
653,
12,
69,
653,
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
] |
public ReportQueryBuilder() {
|
public ReportQueryBuilder( ) {
|
public ReportQueryBuilder() { }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/457851dcc056d96f2ec05106ceba68d3c8f9162c/ReportQueryBuilder.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8706,
9073,
1435,
288,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8706,
9073,
1435,
288,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
num_triangles = triangulator.triangulateConcavePolygon(charCoords, start_vtx, vtx_count, triOutputIndex, FACE_NORMAL); if(num_triangles != -1)
|
if(contourCounts.length == n_contours)
|
private void createNewGlyph(char character) {// GlyphVector glyph_vec =// font.layoutGlyphVector(fontContext, new_chars); sourceChar[0] = character; GlyphVector glyph_vec = font.createGlyphVector(fontContext, sourceChar); // Font Y-axis is downwards, so create an affine transform to flip it. Rectangle2D v_bounds = glyph_vec.getVisualBounds(); double tx = v_bounds.getX() + 0.5 * v_bounds.getWidth(); double ty = v_bounds.getY() + 0.5 * v_bounds.getHeight(); AffineTransform neg_trans = new AffineTransform(); neg_trans.setToTranslation(-tx, -ty); neg_trans.scale(1.0, -1.0); neg_trans.translate(tx, -ty); int vtx_count = 0; int start_vtx = 0; int total_coords = 0; int total_index = 0; boolean just_closed = false; CharacterData ch_data = new CharacterData(); Rectangle2D l_bounds = glyph_vec.getLogicalBounds(); Shape glyph_shape = glyph_vec.getOutline(); PathIterator glyph_path = glyph_shape.getPathIterator(neg_trans, flatness); int num_triangles; float scale = 1 / (float)l_bounds.getHeight(); ch_data.bounds = new Rectangle2D.Float((float)l_bounds.getX() * scale, (float)l_bounds.getY() * scale, (float)l_bounds.getWidth() * scale, 1); total_coords = 0; total_index = 0; while(!glyph_path.isDone()) { switch(glyph_path.currentSegment(newCoords)) { case PathIterator.SEG_MOVETO: // end of one outline, move to the next. So, // let's close the polygon and triangulate it // before moving onto the next. // Java can sometimes issue a CLOSE before doing a // MOVETO. We want to check for that and make sure // we don't unnecessarily do a double // triangulation. if(charCoords.length < total_coords + 2) { float[] tmp = new float[total_coords + 256]; System.arraycopy(charCoords, 0, tmp, 0, total_coords); charCoords = tmp; } charCoords[total_coords++] = newCoords[0] * scale; charCoords[total_coords++] = newCoords[1] * scale; charCoords[total_coords++] = 0;//System.out.println("moveto " + newCoords[0] + " " + newCoords[1] + " " + just_closed); if(!just_closed && total_coords != 3) { if(triOutputIndex.length < vtx_count * 3) triOutputIndex = new int[vtx_count * 3]; num_triangles = triangulator.triangulateConcavePolygon(charCoords, start_vtx, vtx_count, triOutputIndex, FACE_NORMAL); if(num_triangles != -1) { num_triangles *= 3; for(int i = 0; i < num_triangles; i++) triOutputIndex[i] /= 3; if(charIndex.length < total_index + num_triangles) { int[] tmp = new int[total_index + num_triangles]; System.arraycopy(charIndex, 0, tmp, 0, total_index); charIndex = tmp; } System.arraycopy(triOutputIndex, 0, charIndex, total_index, num_triangles); total_index += num_triangles; } start_vtx = vtx_count * 3; vtx_count = 1; just_closed = false; } break; case PathIterator.SEG_LINETO: charCoords[total_coords++] = newCoords[0] * scale; charCoords[total_coords++] = newCoords[1] * scale; charCoords[total_coords++] = 0; vtx_count++;//System.out.println("coord " + newCoords[0] + " " + newCoords[1]); break; case PathIterator.SEG_CLOSE: just_closed = true; if(triOutputIndex.length < vtx_count * 3) triOutputIndex = new int[vtx_count * 3];//System.out.println("close at " + start_vtx + " " + vtx_count); num_triangles = triangulator.triangulateConcavePolygon(charCoords, start_vtx, vtx_count, triOutputIndex, FACE_NORMAL);//System.out.println("num index post triangle = " + num_triangles); if(num_triangles != -1) { num_triangles *= 3; for(int i = 0; i < num_triangles; i++) triOutputIndex[i] /= 3; if(charIndex.length < total_index + num_triangles) { int[] tmp = new int[total_index + num_triangles]; System.arraycopy(charIndex, 0, tmp, 0, total_index); charIndex = tmp; } System.arraycopy(triOutputIndex, 0, charIndex, total_index, num_triangles); total_index += num_triangles; } start_vtx = vtx_count * 3; vtx_count = 0; break; // Javadoc guarantees that no other types are used on fonts } glyph_path.next(); } // Change the Y coordinate to reflect the normal Y orientation of up // in 3D land, where Y is down in 2D land. Also, turn the triangles // around now too as they'll be changed to clockwise when ccw is needed. for(int i = 0; i < total_index / 3; i++) { int tmp = charIndex[i * 3]; charIndex[i * 3] = charIndex[i * 3 + 2]; charIndex[i * 3 + 2] = tmp; } ch_data.coordinates = createFloatBuffer(total_coords); ch_data.coordinates.put(charCoords, 0, total_coords); ch_data.coordIndex = createIntBuffer(total_index); ch_data.coordIndex.put(charIndex, 0, total_index); ch_data.numIndex = total_index; charDataMap.put(character, ch_data); }
|
46075 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46075/165d3fd6b1a9d1c275e0fba174df640e11333374/CharacterCreator.java/clean/src/java/org/j3d/geom/CharacterCreator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
15291,
15141,
12,
3001,
3351,
13,
565,
288,
759,
5411,
31572,
5018,
9440,
67,
8799,
273,
759,
7734,
3512,
18,
6741,
15141,
5018,
12,
5776,
1042,
16,
394,
67,
7549,
1769,
3639,
1084,
2156,
63,
20,
65,
273,
3351,
31,
3639,
31572,
5018,
9440,
67,
8799,
273,
5411,
3512,
18,
2640,
15141,
5018,
12,
5776,
1042,
16,
1084,
2156,
1769,
3639,
368,
10063,
1624,
17,
4890,
353,
2588,
6397,
16,
1427,
752,
392,
28381,
2510,
358,
9668,
518,
18,
3639,
13264,
22,
40,
331,
67,
10576,
273,
9440,
67,
8799,
18,
588,
25780,
5694,
5621,
3639,
1645,
2229,
273,
331,
67,
10576,
18,
588,
60,
1435,
397,
374,
18,
25,
380,
331,
67,
10576,
18,
588,
2384,
5621,
3639,
1645,
13806,
273,
331,
67,
10576,
18,
588,
61,
1435,
397,
374,
18,
25,
380,
331,
67,
10576,
18,
588,
2686,
5621,
3639,
23906,
558,
4059,
4251,
67,
2338,
273,
394,
23906,
558,
4059,
5621,
3639,
4251,
67,
2338,
18,
542,
774,
6717,
19236,
978,
16,
300,
4098,
1769,
3639,
4251,
67,
2338,
18,
5864,
12,
21,
18,
20,
16,
300,
21,
18,
20,
1769,
3639,
4251,
67,
2338,
18,
13929,
12,
978,
16,
300,
4098,
1769,
3639,
509,
331,
978,
67,
1883,
273,
374,
31,
3639,
509,
787,
67,
90,
978,
273,
374,
31,
3639,
509,
2078,
67,
9076,
273,
374,
31,
3639,
509,
2078,
67,
1615,
273,
374,
31,
3639,
1250,
2537,
67,
12204,
273,
629,
31,
3639,
6577,
751,
462,
67,
892,
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,
15291,
15141,
12,
3001,
3351,
13,
565,
288,
759,
5411,
31572,
5018,
9440,
67,
8799,
273,
759,
7734,
3512,
18,
6741,
15141,
5018,
12,
5776,
1042,
16,
394,
67,
7549,
1769,
3639,
1084,
2156,
63,
20,
65,
273,
3351,
31,
3639,
31572,
5018,
9440,
67,
8799,
273,
5411,
3512,
18,
2640,
15141,
5018,
12,
5776,
1042,
16,
1084,
2156,
1769,
3639,
368,
10063,
1624,
17,
4890,
353,
2588,
6397,
16,
1427,
752,
392,
28381,
2510,
358,
9668,
518,
18,
3639,
13264,
22,
40,
331,
67,
10576,
273,
9440,
67,
8799,
18,
588,
25780,
5694,
5621,
3639,
1645,
2229,
273,
331,
67,
10576,
18,
588,
60,
1435,
397,
374,
18,
25,
380,
331,
67,
10576,
18,
588,
2
] |
public void encode(Tag implicitTag, OutputStream ostream) throws IOException { if( ! implicitTag.equals(tag) ) { Assert.notReached("No implicit tags allowed for ANY"); }
|
public void encode(OutputStream ostream) throws IOException {
|
public void encode(Tag implicitTag, OutputStream ostream) throws IOException { if( ! implicitTag.equals(tag) ) { Assert.notReached("No implicit tags allowed for ANY"); } ostream.write(encoded); }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3634d4d94b208431471fe506f413f97d460c7602/ANY.java/buggy/security/jss/org/mozilla/jss/asn1/ANY.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2017,
12,
1805,
10592,
1805,
16,
8962,
320,
3256,
13,
3639,
1216,
1860,
565,
288,
3639,
309,
12,
401,
10592,
1805,
18,
14963,
12,
2692,
13,
262,
288,
5411,
5452,
18,
902,
23646,
2932,
2279,
10592,
2342,
2935,
364,
16743,
8863,
3639,
289,
3639,
320,
3256,
18,
2626,
12,
10787,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2017,
12,
1805,
10592,
1805,
16,
8962,
320,
3256,
13,
3639,
1216,
1860,
565,
288,
3639,
309,
12,
401,
10592,
1805,
18,
14963,
12,
2692,
13,
262,
288,
5411,
5452,
18,
902,
23646,
2932,
2279,
10592,
2342,
2935,
364,
16743,
8863,
3639,
289,
3639,
320,
3256,
18,
2626,
12,
10787,
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
] |
setStringProperty( TableItem.CAPTION_KEY_PROP, captionKey );
|
setStringProperty( ITableItemModel.CAPTION_KEY_PROP, captionKey );
|
public void setCaptionKey( String captionKey ) throws SemanticException { setStringProperty( TableItem.CAPTION_KEY_PROP, captionKey ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d802c33711e0d111551ae23575895cd060f085b6/TableHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/TableHandle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
11440,
13507,
653,
12,
514,
11006,
653,
262,
1216,
24747,
503,
202,
95,
202,
202,
542,
780,
1396,
12,
3555,
1180,
18,
3587,
3725,
67,
3297,
67,
15811,
16,
11006,
653,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
11440,
13507,
653,
12,
514,
11006,
653,
262,
1216,
24747,
503,
202,
95,
202,
202,
542,
780,
1396,
12,
3555,
1180,
18,
3587,
3725,
67,
3297,
67,
15811,
16,
11006,
653,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
m_theInstances = data;
|
m_theInstances = new Instances(data); m_theInstances.deleteWithMissingClass(); if (m_theInstances.numInstances() == 0) { throw new Exception("No training instances without missing class!"); } if (m_theInstances.checkForStringAttributes()) { throw new Exception("Can't handle string attributes!"); }
|
public void buildClassifier(Instances data) throws Exception { int i; m_rr = new Random(1); m_theInstances = data; m_disTransform = new DiscretizeFilter(); if (m_theInstances.classAttribute().isNumeric()) { m_classIsNominal = false; // use binned discretisation if the class is numeric m_disTransform.setUseMDL(false); m_disTransform.setBins(10); m_disTransform.setInvertSelection(true); // Discretize all attributes EXCEPT the class String rangeList = ""; rangeList+=(m_theInstances.classIndex()+1); System.out.println("The class col: "+m_theInstances.classIndex()); m_disTransform.setAttributeIndices(rangeList); } else { m_disTransform.setUseBetterEncoding(true); m_classIsNominal = true; } m_disTransform.inputFormat(m_theInstances); m_theInstances = Filter.useFilter(m_theInstances, m_disTransform); m_numAttributes = m_theInstances.numAttributes(); m_numInstances = m_theInstances.numInstances(); m_majority = m_theInstances.meanOrMode(m_theInstances.classAttribute()); best_first(); // reduce instances to selected features m_delTransform = new DeleteFilter(); m_delTransform.setInvertSelection(true); // set features to keep m_delTransform.setAttributeIndicesArray(m_decisionFeatures); m_delTransform.inputFormat(m_theInstances); m_theInstances = Filter.useFilter(m_theInstances, m_delTransform); // reset the number of attributes m_numAttributes = m_theInstances.numAttributes(); // create hash table m_entries = new Hashtable((int)(m_theInstances.numInstances() * 1.5)); // insert instances into the hash table for (i=0;i<m_numInstances;i++) { Instance inst = m_theInstances.instance(i); insertIntoTable(inst, null); } // Replace the global table majority with nearest neighbour? if (m_useIBk) { m_ibk = new IBk(); m_ibk.buildClassifier(m_theInstances); } // Save memory m_theInstances = new Instances(m_theInstances, 0); }
|
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/5a67514c4d5c4fc3fa7a8c909b19b0a2e5c0c206/DecisionTable.java/buggy/trunk/weka/classifiers/DecisionTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1361,
13860,
12,
5361,
501,
13,
1216,
1185,
225,
288,
565,
509,
277,
31,
565,
312,
67,
523,
273,
394,
8072,
12,
21,
1769,
565,
312,
67,
5787,
5361,
273,
394,
18357,
12,
892,
1769,
312,
67,
5787,
5361,
18,
3733,
1190,
4841,
797,
5621,
309,
261,
81,
67,
5787,
5361,
18,
2107,
5361,
1435,
422,
374,
13,
288,
604,
394,
1185,
2932,
2279,
8277,
3884,
2887,
3315,
667,
4442,
1769,
289,
309,
261,
81,
67,
5787,
5361,
18,
1893,
1290,
780,
2498,
10756,
288,
604,
394,
1185,
2932,
2568,
1404,
1640,
533,
1677,
4442,
1769,
289,
3639,
312,
67,
2251,
4059,
273,
394,
3035,
71,
1349,
554,
1586,
5621,
565,
309,
261,
81,
67,
5787,
5361,
18,
1106,
1499,
7675,
291,
9902,
10756,
565,
288,
1377,
312,
67,
1106,
2520,
26685,
1490,
273,
629,
31,
1377,
368,
999,
4158,
11748,
19169,
1349,
10742,
309,
326,
667,
353,
6389,
1377,
312,
67,
2251,
4059,
18,
542,
3727,
6188,
48,
12,
5743,
1769,
1377,
312,
67,
2251,
4059,
18,
542,
38,
2679,
12,
2163,
1769,
1377,
312,
67,
2251,
4059,
18,
542,
382,
1097,
6233,
12,
3767,
1769,
2398,
368,
3035,
71,
1349,
554,
777,
1677,
5675,
14514,
326,
667,
4202,
514,
1048,
682,
273,
1408,
31,
1377,
1048,
682,
15,
28657,
81,
67,
5787,
5361,
18,
1106,
1016,
1435,
15,
21,
1769,
1377,
2332,
18,
659,
18,
8222,
2932,
1986,
667,
645,
30,
13773,
81,
67,
5787,
5361,
18,
1106,
1016,
10663,
2398,
312,
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,
1361,
13860,
12,
5361,
501,
13,
1216,
1185,
225,
288,
565,
509,
277,
31,
565,
312,
67,
523,
273,
394,
8072,
12,
21,
1769,
565,
312,
67,
5787,
5361,
273,
394,
18357,
12,
892,
1769,
312,
67,
5787,
5361,
18,
3733,
1190,
4841,
797,
5621,
309,
261,
81,
67,
5787,
5361,
18,
2107,
5361,
1435,
422,
374,
13,
288,
604,
394,
1185,
2932,
2279,
8277,
3884,
2887,
3315,
667,
4442,
1769,
289,
309,
261,
81,
67,
5787,
5361,
18,
1893,
1290,
780,
2498,
10756,
288,
604,
394,
1185,
2932,
2568,
1404,
1640,
533,
1677,
4442,
1769,
289,
3639,
312,
67,
2251,
4059,
273,
394,
3035,
71,
1349,
554,
1586,
5621,
565,
309,
261,
81,
67,
5787,
2
] |
return null;
|
return ((NestedGraphRootEditPart)viewer.getRootEditPart()).getZoomManager();
|
protected ZoomManager getZoomManager() { //@tag.bug.156286-Zooming.todo : ? Add zooming here ? return null; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7c7f1a63f3e87f7cee769d500ab069b927901adf/NestedGraphViewer.java/buggy/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/viewers/NestedGraphViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2285,
4252,
1318,
336,
11497,
1318,
1435,
288,
202,
202,
759,
36,
2692,
18,
925,
18,
3600,
8898,
5292,
17,
11497,
310,
18,
9012,
294,
692,
1436,
7182,
310,
2674,
692,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2285,
4252,
1318,
336,
11497,
1318,
1435,
288,
202,
202,
759,
36,
2692,
18,
925,
18,
3600,
8898,
5292,
17,
11497,
310,
18,
9012,
294,
692,
1436,
7182,
310,
2674,
692,
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
] |
if (desc != null) return cacheImage(desc);
|
if (desc != null) { return cacheImage(desc); }
|
public Image getImage(Object element) { if (element instanceof IViewDescriptor) { ImageDescriptor desc = ((IViewDescriptor) element) .getImageDescriptor(); if (desc != null) return cacheImage(desc); } else if (element instanceof IViewCategory) { ImageDescriptor desc = WorkbenchImages .getImageDescriptor(ISharedImages.IMG_OBJ_FOLDER); return cacheImage(desc); } return null; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ViewLabelProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ViewLabelProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3421,
10567,
12,
921,
930,
13,
288,
3639,
309,
261,
2956,
1276,
467,
1767,
3187,
13,
288,
5411,
3421,
3187,
3044,
273,
14015,
45,
1767,
3187,
13,
930,
13,
10792,
263,
588,
2040,
3187,
5621,
5411,
309,
261,
5569,
480,
446,
13,
7734,
327,
1247,
2040,
12,
5569,
1769,
3639,
289,
469,
309,
261,
2956,
1276,
467,
1767,
4457,
13,
288,
5411,
3421,
3187,
3044,
273,
4147,
22144,
8946,
10792,
263,
588,
2040,
3187,
12,
45,
7887,
8946,
18,
3445,
43,
67,
24547,
67,
17357,
1769,
5411,
327,
1247,
2040,
12,
5569,
1769,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3421,
10567,
12,
921,
930,
13,
288,
3639,
309,
261,
2956,
1276,
467,
1767,
3187,
13,
288,
5411,
3421,
3187,
3044,
273,
14015,
45,
1767,
3187,
13,
930,
13,
10792,
263,
588,
2040,
3187,
5621,
5411,
309,
261,
5569,
480,
446,
13,
7734,
327,
1247,
2040,
12,
5569,
1769,
3639,
289,
469,
309,
261,
2956,
1276,
467,
1767,
4457,
13,
288,
5411,
3421,
3187,
3044,
273,
4147,
22144,
8946,
10792,
263,
588,
2040,
3187,
12,
45,
7887,
8946,
18,
3445,
43,
67,
24547,
67,
17357,
1769,
5411,
327,
1247,
2040,
12,
5569,
1769,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IN_INORNOTIN_EXPR.set(Boolean.FALSE);
|
public Object visit(SimpleNode node, Object data) { IN_INORNOTIN_EXPR.set(Boolean.FALSE); node.jjtGetChild(0).jjtAccept(this, data); IN_INORNOTIN_EXPR.set(null); return data; }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/45c7db5b9c3d703ed4fabee51cebb349a8ffec67/CflowIdentifierLookupVisitor.java/buggy/aspectwerkz2/src/main/org/codehaus/aspectwerkz/definition/expression/visitor/CflowIdentifierLookupVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3757,
12,
5784,
907,
756,
16,
1033,
501,
13,
288,
7734,
756,
18,
78,
78,
88,
967,
1763,
12,
20,
2934,
78,
78,
88,
5933,
12,
2211,
16,
501,
1769,
3639,
2120,
67,
706,
916,
4400,
706,
67,
2294,
8025,
18,
542,
12,
2011,
1769,
3639,
327,
501,
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,
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12,
5784,
907,
756,
16,
1033,
501,
13,
288,
7734,
756,
18,
78,
78,
88,
967,
1763,
12,
20,
2934,
78,
78,
88,
5933,
12,
2211,
16,
501,
1769,
3639,
2120,
67,
706,
916,
4400,
706,
67,
2294,
8025,
18,
542,
12,
2011,
1769,
3639,
327,
501,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
Enumeration enum = hash.keys();
|
Enumeration enum = m_Hashtable.keys();
|
final void delete(int index) { if (!isNominal() && !isString()) throw new IllegalArgumentException("Can only remove value of" + "nominal or string attribute!"); else { m_Values = (FastVector)m_Values.copy(); m_Values.removeElementAt(index); Hashtable hash = new Hashtable(m_Hashtable.size()); Enumeration enum = hash.keys(); while (enum.hasMoreElements()) { String string = (String)enum.nextElement(); Integer valIndexObject = (Integer)m_Hashtable.get(string); int valIndex = valIndexObject.intValue(); if (valIndex > index) { hash.put(string, new Integer(valIndex - 1)); } else if (valIndex < index) { hash.put(string, valIndexObject); } } m_Hashtable = hash; }
|
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/7d8013ee395aa808e9620691e98c9bc014423b37/Attribute.java/buggy/trunk/weka/core/Attribute.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
1430,
12,
474,
770,
13,
288,
3639,
309,
16051,
291,
26685,
1490,
1435,
597,
401,
291,
780,
10756,
4202,
604,
394,
2754,
2932,
2568,
1338,
1206,
460,
434,
6,
397,
29159,
315,
12306,
1490,
578,
533,
1566,
4442,
1769,
565,
469,
288,
1377,
312,
67,
1972,
273,
261,
12305,
5018,
13,
81,
67,
1972,
18,
3530,
5621,
1377,
312,
67,
1972,
18,
4479,
1046,
861,
12,
1615,
1769,
1377,
18559,
1651,
273,
394,
18559,
12,
81,
67,
5582,
14544,
18,
1467,
10663,
1377,
13864,
2792,
273,
312,
67,
5582,
14544,
18,
2452,
5621,
1377,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
288,
202,
780,
533,
273,
261,
780,
13,
7924,
18,
4285,
1046,
5621,
202,
4522,
1244,
1016,
921,
273,
261,
4522,
13,
81,
67,
5582,
14544,
18,
588,
12,
1080,
1769,
202,
474,
1244,
1016,
273,
1244,
1016,
921,
18,
474,
620,
5621,
202,
430,
261,
1125,
1016,
405,
770,
13,
288,
202,
225,
1651,
18,
458,
12,
1080,
16,
394,
2144,
12,
1125,
1016,
300,
404,
10019,
202,
97,
469,
309,
261,
1125,
1016,
411,
770,
13,
288,
202,
225,
1651,
18,
458,
12,
1080,
16,
1244,
1016,
921,
1769,
202,
97,
1377,
289,
1377,
312,
67,
5582,
14544,
273,
1651,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
1430,
12,
474,
770,
13,
288,
3639,
309,
16051,
291,
26685,
1490,
1435,
597,
401,
291,
780,
10756,
4202,
604,
394,
2754,
2932,
2568,
1338,
1206,
460,
434,
6,
397,
29159,
315,
12306,
1490,
578,
533,
1566,
4442,
1769,
565,
469,
288,
1377,
312,
67,
1972,
273,
261,
12305,
5018,
13,
81,
67,
1972,
18,
3530,
5621,
1377,
312,
67,
1972,
18,
4479,
1046,
861,
12,
1615,
1769,
1377,
18559,
1651,
273,
394,
18559,
12,
81,
67,
5582,
14544,
18,
1467,
10663,
1377,
13864,
2792,
273,
312,
67,
5582,
14544,
18,
2452,
5621,
1377,
1323,
261,
7924,
18,
5332,
7417,
3471,
10756,
288,
202,
780,
533,
273,
261,
780,
13,
7924,
18,
4285,
1046,
5621,
202,
2
] |
if (fieldAccess.isWriter()) { body.append("$args,");
|
if (Modifier.isStatic(fieldAccess.getField().getModifiers())) { body.append("(Object)null");
|
public void edit(FieldAccess fieldAccess) throws CannotCompileException { try { CtBehavior where = null; try { where = fieldAccess.where(); } catch (RuntimeException e) { // <clinit> access leads to a bug in Javassist where = ctClass.getClassInitializer(); } // filter caller context if (methodFilter(where)) { return; } // get field accessed information final String fieldName = fieldAccess.getFieldName(); final String fieldSignature = fieldAccess.getField().getType().getName() + " " + fieldName; FieldMetaData fieldMetaData = JavassistMetaDataMaker.createFieldMetaData( fieldAccess.getField() ); if ((fieldAccess.isReader() && !getFieldFilter(definition, classMetaData, fieldMetaData)) || !setFieldFilter(definition, classMetaData, fieldMetaData)) { // check the declaring class for the field is not the same as target class, // if that is the case then we have have class loaded and set in the ___AW_clazz already String declaringClassFieldName = TransformationUtil.STATIC_CLASS_FIELD; CtClass declaringClass = fieldAccess.getField().getDeclaringClass(); if (!declaringClass.getName().equals(where.getDeclaringClass().getName())) { declaringClassFieldName = addFieldAccessDeclaringClassField( declaringClass, fieldAccess.getField() ); } StringBuffer body = new StringBuffer(); if (fieldAccess.isReader()) { body.append("$_ = ($r)"); body.append(TransformationUtil.JOIN_POINT_MANAGER_FIELD); body.append('.'); body.append(TransformationUtil.PROCEED_WITH_GET_JOIN_POINT_METHOD); } else { body.append(TransformationUtil.JOIN_POINT_MANAGER_FIELD); body.append('.'); body.append(TransformationUtil.PROCEED_WITH_SET_JOIN_POINT_METHOD); } body.append('('); body.append(TransformationUtil.calculateHash(fieldAccess.getField())); body.append(','); if (fieldAccess.isWriter()) { body.append("$args,"); } if (Modifier.isStatic(fieldAccess.getField().getModifiers())) { body.append("(Object)null"); } else { body.append("$0"); } body.append(','); body.append(declaringClassFieldName); body.append(",\""); body.append(fieldSignature); body.append("\");"); fieldAccess.replace(body.toString()); context.markAsAdvised(); } } catch (NotFoundException nfe) { nfe.printStackTrace(); } }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/8267838a66280752a1e0cc8d75fe9f6c391bbc8e/FieldSetGetTransformer.java/clean/aspectwerkz2/src/main/org/codehaus/aspectwerkz/transform/FieldSetGetTransformer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3874,
12,
974,
1862,
652,
1862,
13,
1216,
14143,
9937,
503,
288,
10792,
775,
288,
13491,
30714,
9212,
1625,
273,
446,
31,
13491,
775,
288,
18701,
1625,
273,
652,
1862,
18,
6051,
5621,
13491,
289,
13491,
1044,
261,
11949,
425,
13,
288,
18701,
368,
411,
830,
2738,
34,
2006,
5871,
87,
358,
279,
7934,
316,
804,
842,
428,
376,
18701,
1625,
273,
5691,
797,
18,
588,
797,
14729,
5621,
13491,
289,
13491,
368,
1034,
4894,
819,
13491,
309,
261,
2039,
1586,
12,
6051,
3719,
288,
18701,
327,
31,
13491,
289,
13491,
368,
336,
652,
15539,
1779,
13491,
727,
514,
4289,
273,
652,
1862,
18,
588,
7287,
5621,
13491,
727,
514,
652,
5374,
273,
652,
1862,
18,
588,
974,
7675,
588,
559,
7675,
17994,
1435,
397,
315,
315,
397,
4289,
31,
13491,
2286,
6998,
652,
6998,
273,
804,
842,
428,
376,
6998,
12373,
18,
2640,
974,
6998,
12,
27573,
652,
1862,
18,
588,
974,
1435,
13491,
11272,
13491,
309,
14015,
1518,
1862,
18,
291,
2514,
1435,
597,
401,
588,
974,
1586,
12,
6907,
16,
667,
6998,
16,
652,
6998,
3719,
747,
27573,
401,
542,
974,
1586,
12,
6907,
16,
667,
6998,
16,
652,
6998,
3719,
288,
18701,
368,
866,
326,
20845,
667,
364,
326,
652,
353,
486,
326,
1967,
487,
1018,
667,
16,
18701,
368,
309,
716,
353,
326,
648,
1508,
732,
1240,
1240,
667,
4203,
471,
444,
316,
326,
19608,
12999,
67,
830,
3638,
1818,
18701,
514,
3496,
14682,
7287,
273,
21274,
1304,
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,
1171,
1071,
918,
3874,
12,
974,
1862,
652,
1862,
13,
1216,
14143,
9937,
503,
288,
10792,
775,
288,
13491,
30714,
9212,
1625,
273,
446,
31,
13491,
775,
288,
18701,
1625,
273,
652,
1862,
18,
6051,
5621,
13491,
289,
13491,
1044,
261,
11949,
425,
13,
288,
18701,
368,
411,
830,
2738,
34,
2006,
5871,
87,
358,
279,
7934,
316,
804,
842,
428,
376,
18701,
1625,
273,
5691,
797,
18,
588,
797,
14729,
5621,
13491,
289,
13491,
368,
1034,
4894,
819,
13491,
309,
261,
2039,
1586,
12,
6051,
3719,
288,
18701,
327,
31,
13491,
289,
13491,
368,
336,
652,
15539,
1779,
13491,
727,
514,
4289,
273,
652,
1862,
18,
588,
7287,
5621,
13491,
727,
514,
652,
5374,
273,
652,
1862,
18,
2
] |
if ( format == null ) super.setOutputFormat( new OutputFormat( Method.HTML, null, false ) ); else super.setOutputFormat( format );
|
super.setOutputFormat( format != null ? format : new OutputFormat( Method.HTML, null, false ) );
|
public void setOutputFormat( OutputFormat format ) { if ( format == null ) super.setOutputFormat( new OutputFormat( Method.HTML, null, false ) ); else super.setOutputFormat( format ); }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1e1ce544975980cfc9bc8941ab7c8166d350c04d/HTMLSerializer.java/clean/src/org/apache/xml/serialize/HTMLSerializer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18113,
1630,
12,
3633,
1630,
740,
262,
565,
288,
3639,
309,
261,
740,
422,
446,
262,
5411,
2240,
18,
542,
1447,
1630,
12,
394,
3633,
1630,
12,
2985,
18,
4870,
16,
446,
16,
629,
262,
11272,
3639,
469,
5411,
2240,
18,
542,
1447,
1630,
12,
740,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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1447,
1630,
12,
740,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public int getNumCallsToIteratorNext() {
|
public int getNumCallsToIteratorNext(){
|
public int getNumCallsToIteratorNext() { return numCallsToIteratorNext; }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForCanBeForeachInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/ForCanBeForeachInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
11187,
10125,
774,
3198,
2134,
1435,
95,
5411,
327,
818,
10125,
774,
3198,
2134,
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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,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
11187,
10125,
774,
3198,
2134,
1435,
95,
5411,
327,
818,
10125,
774,
3198,
2134,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
wbTable=new Button(wTableComp, SWT.PUSH| SWT.CENTER);
|
wbTable=new Button(shell, SWT.PUSH| SWT.CENTER);
|
public String open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN); props.setLook(shell); ModifyListener lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { input.setChanged(); } }; backupChanged = input.hasChanged(); backupUpdate = input.isUpdate(); backupAutoInc = input.isAutoIncrement(); ci = input.getDatabaseMeta(); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText(Messages.getString("DimensionLookupDialog.Shell.Title")); //$NON-NLS-1$ int middle = props.getMiddlePct(); int margin = Const.MARGIN; int width = Const.RIGHT; // Stepname line wlStepname=new Label(shell, SWT.RIGHT); wlStepname.setText(Messages.getString("DimensionLookupDialog.Stepname.Label")); //$NON-NLS-1$ props.setLook(wlStepname); fdlStepname=new FormData(); fdlStepname.left = new FormAttachment(0, 0); fdlStepname.right= new FormAttachment(middle, -margin); fdlStepname.top = new FormAttachment(0, margin); wlStepname.setLayoutData(fdlStepname); wStepname=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wStepname.setText(stepname); props.setLook(wStepname); wStepname.addModifyListener(lsMod); fdStepname=new FormData(); fdStepname.left = new FormAttachment(middle, 0); fdStepname.top = new FormAttachment(0, margin); fdStepname.right= new FormAttachment(100, 0); wStepname.setLayoutData(fdStepname); wTabFolder = new CTabFolder(shell, SWT.BORDER); props.setLook(wTabFolder, Props.WIDGET_STYLE_TAB); ////////////////////////// // START OF TABLE TAB/// /// wTableTab=new CTabItem(wTabFolder, SWT.NONE); wTableTab.setText(Messages.getString("DimensionLookupDialog.TableTab.Title")); //$NON-NLS-1$ Composite wTableComp = new Composite(wTabFolder, SWT.NONE); props.setLook(wTableComp); FormLayout tableLayout = new FormLayout(); tableLayout.marginWidth = 3; tableLayout.marginHeight = 3; wTableComp.setLayout(tableLayout); // Connection line wConnection = addConnectionLine(wTableComp, null, middle, margin); if (input.getDatabaseMeta()==null && transMeta.nrDatabases()==1) wConnection.select(0); wConnection.addModifyListener(lsMod); wConnection.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { // We have new content: change ci connection: ci = transMeta.findDatabase(wConnection.getText()); setFlags(); } }); // Table line... wlTable=new Label(wTableComp, SWT.RIGHT); wlTable.setText(Messages.getString("DimensionLookupDialog.TargeTable.Label")); //$NON-NLS-1$ props.setLook(wlTable); fdlTable=new FormData(); fdlTable.left = new FormAttachment(0, 0); fdlTable.right= new FormAttachment(middle, -margin); fdlTable.top = new FormAttachment(wConnection, margin); wlTable.setLayoutData(fdlTable); wbTable=new Button(wTableComp, SWT.PUSH| SWT.CENTER); props.setLook(wbTable); wbTable.setText(Messages.getString("DimensionLookupDialog.Browse.Button")); //$NON-NLS-1$ fdbTable=new FormData(); fdbTable.right= new FormAttachment(100, 0); fdbTable.top = new FormAttachment(wConnection, margin); wbTable.setLayoutData(fdbTable); wTable=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTable); wTable.addModifyListener(lsMod); fdTable=new FormData(); fdTable.left = new FormAttachment(middle, 0); fdTable.top = new FormAttachment(wConnection, margin); fdTable.right= new FormAttachment(wbTable, 0); wTable.setLayoutData(fdTable); // Commit size ... wlCommit=new Label(wTableComp, SWT.RIGHT); wlCommit.setText(Messages.getString("DimensionLookupDialog.Commit.Label")); //$NON-NLS-1$ props.setLook(wlCommit); fdlCommit=new FormData(); fdlCommit.left = new FormAttachment(0, 0); fdlCommit.right= new FormAttachment(middle, -margin); fdlCommit.top = new FormAttachment(wTable, margin); wlCommit.setLayoutData(fdlCommit); wCommit=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wCommit); wCommit.addModifyListener(lsMod); fdCommit=new FormData(); fdCommit.left = new FormAttachment(middle, 0); fdCommit.top = new FormAttachment(wTable, margin); fdCommit.right= new FormAttachment(100, 0); wCommit.setLayoutData(fdCommit); // Technical key field: wlTk=new Label(wTableComp, SWT.RIGHT); wlTk.setText(Messages.getString("DimensionLookupDialog.TechnicalKeyField.Label")); //$NON-NLS-1$ props.setLook(wlTk); fdlTk=new FormData(); fdlTk.left = new FormAttachment(0, 0); fdlTk.right= new FormAttachment(middle, -margin); fdlTk.top = new FormAttachment(wCommit, margin); wlTk.setLayoutData(fdlTk); wTk=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTk); wTk.addModifyListener(lsMod); fdTk=new FormData(); fdTk.left = new FormAttachment(middle, 0); fdTk.top = new FormAttachment(wCommit, margin); fdTk.right= new FormAttachment(50+middle/2, 0); wTk.setLayoutData(fdTk); wlTkRename=new Label(wTableComp, SWT.RIGHT); wlTkRename.setText(Messages.getString("DimensionLookupDialog.NewName.Label")); //$NON-NLS-1$ props.setLook(wlTkRename); fdlTkRename=new FormData(); fdlTkRename.left = new FormAttachment(50+middle/2, margin); fdlTkRename.top = new FormAttachment(wCommit, margin); wlTkRename.setLayoutData(fdlTkRename); wTkRename=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTkRename); wTkRename.addModifyListener(lsMod); fdTkRename=new FormData(); fdTkRename.left = new FormAttachment(wlTkRename, margin); fdTkRename.top = new FormAttachment(wCommit, margin); fdTkRename.right= new FormAttachment(100, 0); wTkRename.setLayoutData(fdTkRename); //////////////////////////////////////////////////// // The key creation box //////////////////////////////////////////////////// gTechGroup = new Group(wTableComp, SWT.SHADOW_ETCHED_IN); gTechGroup.setText(Messages.getString("DimensionLookupDialog.TechGroup.Label")); //$NON-NLS-1$; GridLayout gridLayout = new GridLayout(3, false); gTechGroup.setLayout(gridLayout); fdTechGroup=new FormData(); fdTechGroup.left = new FormAttachment(middle, 0); fdTechGroup.top = new FormAttachment(wTk, margin); fdTechGroup.right = new FormAttachment(100, 0); gTechGroup.setBackground(shell.getBackground()); // the default looks ugly gTechGroup.setLayoutData(fdTechGroup); // Use maximum of table + 1 wTableMax=new Button(gTechGroup, SWT.RADIO); props.setLook(wTableMax); wTableMax.setSelection(false); gdTableMax=new GridData(); wTableMax.setLayoutData(gdTableMax); wTableMax.setToolTipText(Messages.getString("DimensionLookupDialog.TableMaximum.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ wlTableMax=new Label(gTechGroup, SWT.LEFT); wlTableMax.setText(Messages.getString("DimensionLookupDialog.TableMaximum.Label")); //$NON-NLS-1$ props.setLook(wlTableMax); gdlTableMax = new GridData(GridData.FILL_BOTH); gdlTableMax.horizontalSpan = 2; gdlTableMax.verticalSpan = 1; wlTableMax.setLayoutData(gdlTableMax); // Sequence Check Button wSeqButton=new Button(gTechGroup, SWT.RADIO); props.setLook(wSeqButton); wSeqButton.setSelection(false); gdSeqButton=new GridData(); wSeqButton.setLayoutData(gdSeqButton); wSeqButton.setToolTipText(Messages.getString("DimensionLookupDialog.Sequence.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ wlSeqButton=new Label(gTechGroup, SWT.LEFT); wlSeqButton.setText(Messages.getString("DimensionLookupDialog.Sequence.Label")); //$NON-NLS-1$ props.setLook(wlSeqButton); gdlSeqButton=new GridData(); wlSeqButton.setLayoutData(gdlSeqButton); wSeq=new Text(gTechGroup, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wSeq); wSeq.addModifyListener(lsMod); gdSeq=new GridData(GridData.FILL_HORIZONTAL); wSeq.setLayoutData(gdSeq); wSeq.addFocusListener(new FocusListener() { public void focusGained(FocusEvent arg0) { input.setTechKeyCreation(DimensionLookupMeta.CREATION_METHOD_SEQUENCE); wSeqButton.setSelection(true); wAutoinc.setSelection(false); wTableMax.setSelection(false); } public void focusLost(FocusEvent arg0) { } }); // Use an autoincrement field? wAutoinc=new Button(gTechGroup, SWT.RADIO); props.setLook(wAutoinc); wAutoinc.setSelection(false); gdAutoinc=new GridData(); wAutoinc.setLayoutData(gdAutoinc); wAutoinc.setToolTipText(Messages.getString("DimensionLookupDialog.AutoincButton.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ wlAutoinc=new Label(gTechGroup, SWT.LEFT); wlAutoinc.setText(Messages.getString("DimensionLookupDialog.Autoincrement.Label")); //$NON-NLS-1$ props.setLook(wlAutoinc); gdlAutoinc=new GridData(); wlAutoinc.setLayoutData(gdlAutoinc); setTableMax(); setSequence(); setAutoincUse(); /* // Use an autoincrement field? wlAutoinc=new Label(wTableComp, SWT.RIGHT); wlAutoinc.setText(Messages.getString("DimensionLookupDialog.AutoInc.Label")); //$NON-NLS-1$ props.setLook(wlAutoinc); fdlAutoinc=new FormData(); fdlAutoinc.left = new FormAttachment(0, 0); fdlAutoinc.right= new FormAttachment(middle, -margin); fdlAutoinc.top = new FormAttachment(wTk, margin); wlAutoinc.setLayoutData(fdlAutoinc); wAutoinc=new Button(wTableComp, SWT.CHECK); props.setLook(wAutoinc); fdAutoinc=new FormData(); fdAutoinc.left = new FormAttachment(middle, 0); fdAutoinc.top = new FormAttachment(wTk, margin); fdAutoinc.right= new FormAttachment(100, 0); wAutoinc.setLayoutData(fdAutoinc); wAutoinc.setToolTipText(Messages.getString("DimensionLookupDialog.AutoInc.ToolTip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ // Clicking on update changes the options in the update combo boxes! wAutoinc.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { input.setAutoIncrement( !input.isAutoIncrement() ); input.setChanged(); setFlags(); } } ); // Sequence key field: wlSeq=new Label(wTableComp, SWT.RIGHT); wlSeq.setText(Messages.getString("DimensionLookupDialog.Sequence.Label")); //$NON-NLS-1$ props.setLook(wlSeq); fdlSeq=new FormData(); fdlSeq.left = new FormAttachment(0, 0); fdlSeq.right= new FormAttachment(middle, -margin); fdlSeq.top = new FormAttachment(wlAutoinc, margin); wlSeq.setLayoutData(fdlSeq); wSeq=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wSeq); wSeq.addModifyListener(lsMod); fdSeq=new FormData(); fdSeq.left = new FormAttachment(middle, 0); fdSeq.top = new FormAttachment(wlAutoinc, margin); fdSeq.right= new FormAttachment(100, 0); wSeq.setLayoutData(fdSeq);*/ // Version key field: wlVersion=new Label(wTableComp, SWT.RIGHT); wlVersion.setText(Messages.getString("DimensionLookupDialog.Version.Label")); //$NON-NLS-1$ props.setLook(wlVersion); fdlVersion=new FormData(); fdlVersion.left = new FormAttachment(0, 0); fdlVersion.right= new FormAttachment(middle, -margin); fdlVersion.top = new FormAttachment(gTechGroup, margin); wlVersion.setLayoutData(fdlVersion); wVersion=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wVersion); wVersion.addModifyListener(lsMod); fdVersion=new FormData(); fdVersion.left = new FormAttachment(middle, 0); fdVersion.top = new FormAttachment(gTechGroup, margin); fdVersion.right= new FormAttachment(100, 0); wVersion.setLayoutData(fdVersion); // Datefield line wlDatefield=new Label(wTableComp, SWT.RIGHT); wlDatefield.setText(Messages.getString("DimensionLookupDialog.Datefield.Label")); //$NON-NLS-1$ props.setLook(wlDatefield); fdlDatefield=new FormData(); fdlDatefield.left = new FormAttachment(0, 0); fdlDatefield.right= new FormAttachment(middle, -margin); fdlDatefield.top = new FormAttachment(wVersion, margin); wlDatefield.setLayoutData(fdlDatefield); wDatefield=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wDatefield); wDatefield.addModifyListener(lsMod); fdDatefield=new FormData(); fdDatefield.left = new FormAttachment(middle, 0); fdDatefield.top = new FormAttachment(wVersion, margin); fdDatefield.right= new FormAttachment(100, 0); wDatefield.setLayoutData(fdDatefield); // Fromdate line // // 0 [wlFromdate] middle [wFromdate] (100-middle)/3 [wlMinyear] 2*(100-middle)/3 [wMinyear] 100% // wlFromdate=new Label(wTableComp, SWT.RIGHT); wlFromdate.setText(Messages.getString("DimensionLookupDialog.Fromdate.Label")); //$NON-NLS-1$ props.setLook(wlFromdate); fdlFromdate=new FormData(); fdlFromdate.left = new FormAttachment(0, 0); fdlFromdate.right= new FormAttachment(middle, -margin); fdlFromdate.top = new FormAttachment(wDatefield, margin); wlFromdate.setLayoutData(fdlFromdate); wFromdate=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wFromdate); wFromdate.addModifyListener(lsMod); fdFromdate=new FormData(); fdFromdate.left = new FormAttachment(middle, 0); fdFromdate.right= new FormAttachment(middle+(100-middle)/3, -margin); fdFromdate.top = new FormAttachment(wDatefield, margin); wFromdate.setLayoutData(fdFromdate); // Minyear line wlMinyear=new Label(wTableComp, SWT.RIGHT); wlMinyear.setText(Messages.getString("DimensionLookupDialog.Minyear.Label")); //$NON-NLS-1$ props.setLook(wlMinyear); fdlMinyear=new FormData(); fdlMinyear.left = new FormAttachment(wFromdate, margin); fdlMinyear.right = new FormAttachment(middle+2*(100-middle)/3, -margin); fdlMinyear.top = new FormAttachment(wDatefield, margin); wlMinyear.setLayoutData(fdlMinyear); wMinyear=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wMinyear); wMinyear.addModifyListener(lsMod); fdMinyear=new FormData(); fdMinyear.left = new FormAttachment(wlMinyear, margin); fdMinyear.right= new FormAttachment(100, 0); fdMinyear.top = new FormAttachment(wDatefield, margin); wMinyear.setLayoutData(fdMinyear); wMinyear.setToolTipText(Messages.getString("DimensionLookupDialog.Minyear.ToolTip")); //$NON-NLS-1$ // Todate line wlTodate=new Label(wTableComp, SWT.RIGHT); wlTodate.setText(Messages.getString("DimensionLookupDialog.Todate.Label")); //$NON-NLS-1$ props.setLook(wlTodate); fdlTodate=new FormData(); fdlTodate.left = new FormAttachment(0, 0); fdlTodate.right= new FormAttachment(middle, -margin); fdlTodate.top = new FormAttachment(wFromdate, margin); wlTodate.setLayoutData(fdlTodate); wTodate=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTodate); wTodate.addModifyListener(lsMod); fdTodate=new FormData(); fdTodate.left = new FormAttachment(middle, 0); fdTodate.right= new FormAttachment(middle+(100-middle)/3, -margin); fdTodate.top = new FormAttachment(wFromdate, margin); wTodate.setLayoutData(fdTodate); // Maxyear line wlMaxyear=new Label(wTableComp, SWT.RIGHT); wlMaxyear.setText(Messages.getString("DimensionLookupDialog.Maxyear.Label")); //$NON-NLS-1$ props.setLook(wlMaxyear); fdlMaxyear=new FormData(); fdlMaxyear.left = new FormAttachment(wTodate, margin); fdlMaxyear.right = new FormAttachment(middle+2*(100-middle)/3, -margin); fdlMaxyear.top = new FormAttachment(wFromdate, margin); wlMaxyear.setLayoutData(fdlMaxyear); wMaxyear=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wMaxyear); wMaxyear.addModifyListener(lsMod); fdMaxyear=new FormData(); fdMaxyear.left = new FormAttachment(wlMaxyear, margin); fdMaxyear.right= new FormAttachment(100, 0); fdMaxyear.top = new FormAttachment(wFromdate, margin); wMaxyear.setLayoutData(fdMaxyear); wMaxyear.setToolTipText(Messages.getString("DimensionLookupDialog.Maxyear.ToolTip")); //$NON-NLS-1$ // Update the dimension? wlUpdate=new Label(wTableComp, SWT.RIGHT); wlUpdate.setText(Messages.getString("DimensionLookupDialog.Update.Label")); //$NON-NLS-1$ props.setLook(wlUpdate); fdlUpdate=new FormData(); fdlUpdate.left = new FormAttachment(0, 0); fdlUpdate.right= new FormAttachment(middle, -margin); fdlUpdate.top = new FormAttachment(wMaxyear, margin); wlUpdate.setLayoutData(fdlUpdate); wUpdate=new Button(wTableComp, SWT.CHECK); props.setLook(wUpdate); fdUpdate=new FormData(); fdUpdate.left = new FormAttachment(middle, 0); fdUpdate.right= new FormAttachment(0, middle+width); fdUpdate.top = new FormAttachment(wMaxyear, margin); wUpdate.setLayoutData(fdUpdate); fdTableComp=new FormData(); fdTableComp.left = new FormAttachment(0, 0); fdTableComp.top = new FormAttachment(0, 0); fdTableComp.right = new FormAttachment(100, 0); fdTableComp.bottom= new FormAttachment(100, 0); wTableComp.setLayoutData(fdTableComp); wTableComp.layout(); wTableTab.setControl(wTableComp); ///////////////////////////////////////////////////////////// /// END OF TABLE TAB ///////////////////////////////////////////////////////////// ////////////////////////// // START OF KEY TAB /// /// wKeyTab=new CTabItem(wTabFolder, SWT.NONE); wKeyTab.setText(Messages.getString("DimensionLookupDialog.KeyTab.CTabItem")); //$NON-NLS-1$ FormLayout keyLayout = new FormLayout (); keyLayout.marginWidth = 3; keyLayout.marginHeight = 3; Composite wKeyComp = new Composite(wTabFolder, SWT.NONE); props.setLook(wKeyComp); wKeyComp.setLayout(keyLayout); // The Lookup fields: usualy the key // wlKey=new Label(wKeyComp, SWT.NONE); wlKey.setText(Messages.getString("DimensionLookupDialog.KeyFields.Label")); //$NON-NLS-1$ props.setLook(wlKey); fdlKey=new FormData(); fdlKey.left = new FormAttachment(0, 0); fdlKey.top = new FormAttachment(0, margin); fdlKey.right = new FormAttachment(100, 0); wlKey.setLayoutData(fdlKey); int nrKeyCols=2; int nrKeyRows=(input.getKeyStream()!=null?input.getKeyStream().length:1); ColumnInfo[] ciKey=new ColumnInfo[nrKeyCols]; ciKey[0]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.DimensionField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciKey[1]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.FieldInStream"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ wKey=new TableView(wKeyComp, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL, ciKey, nrKeyRows, lsMod, props ); fdKey=new FormData(); fdKey.left = new FormAttachment(0, 0); fdKey.top = new FormAttachment(wlKey, margin); fdKey.right = new FormAttachment(100, 0); fdKey.bottom= new FormAttachment(100, 0); wKey.setLayoutData(fdKey); fdKeyComp = new FormData(); fdKeyComp.left = new FormAttachment(0, 0); fdKeyComp.top = new FormAttachment(0, 0); fdKeyComp.right = new FormAttachment(100, 0); fdKeyComp.bottom= new FormAttachment(100, 0); wKeyComp.setLayoutData(fdKeyComp); wKeyComp.layout(); wKeyTab.setControl(wKeyComp); ///////////////////////////////////////////////////////////// /// END OF KEY TAB ///////////////////////////////////////////////////////////// // Fields tab... // wFieldsTab = new CTabItem(wTabFolder, SWT.NONE); wFieldsTab.setText(Messages.getString("DimensionLookupDialog.FieldsTab.CTabItem.Title")); //$NON-NLS-1$ FormLayout fieldsLayout = new FormLayout (); fieldsLayout.marginWidth = Const.FORM_MARGIN; fieldsLayout.marginHeight = Const.FORM_MARGIN; Composite wFieldsComp = new Composite(wTabFolder, SWT.NONE); wFieldsComp.setLayout(fieldsLayout); props.setLook(wFieldsComp); wGet=new Button(wFieldsComp, SWT.PUSH); wGet.setText(Messages.getString("DimensionLookupDialog.GetFields.Button")); //$NON-NLS-1$ setButtonPositions(new Button[] { wGet }, margin, null); // THE UPDATE/INSERT TABLE wlUpIns=new Label(wFieldsComp, SWT.NONE); wlUpIns.setText(Messages.getString("DimensionLookupDialog.UpdateOrInsertFields.Label")); //$NON-NLS-1$ props.setLook(wlUpIns); fdlUpIns=new FormData(); fdlUpIns.left = new FormAttachment(0, 0); fdlUpIns.top = new FormAttachment(0, margin); wlUpIns.setLayoutData(fdlUpIns); int UpInsCols=3; int UpInsRows= (input.getFieldStream()!=null?input.getFieldStream().length:1); final ColumnInfo[] ciUpIns=new ColumnInfo[UpInsCols]; ciUpIns[0]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.DimensionField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciUpIns[1]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.StreamField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciUpIns[2]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.TypeOfDimensionUpdate"), ColumnInfo.COLUMN_TYPE_CCOMBO, input.isUpdate()?DimensionLookupMeta.typeDesc:DimensionLookupMeta.typeDescLookup ); //$NON-NLS-1$ wUpIns=new TableView(wFieldsComp, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL, ciUpIns, UpInsRows, lsMod, props ); fdUpIns=new FormData(); fdUpIns.left = new FormAttachment(0, 0); fdUpIns.top = new FormAttachment(wlUpIns, margin); fdUpIns.right = new FormAttachment(100, 0); fdUpIns.bottom= new FormAttachment(wGet, -margin); wUpIns.setLayoutData(fdUpIns); // Clicking on update changes the options in the update combo boxes! wUpdate.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { input.setUpdate(!input.isUpdate()); input.setChanged(); setFlags(); } } ); fdFieldsComp=new FormData(); fdFieldsComp.left = new FormAttachment(0, 0); fdFieldsComp.top = new FormAttachment(0, 0); fdFieldsComp.right = new FormAttachment(100, 0); fdFieldsComp.bottom= new FormAttachment(100, 0); wFieldsComp.setLayoutData(fdFieldsComp); wFieldsComp.layout(); wFieldsTab.setControl(wFieldsComp); fdTabFolder = new FormData(); fdTabFolder.left = new FormAttachment(0, 0); fdTabFolder.top = new FormAttachment(wStepname, margin); fdTabFolder.right = new FormAttachment(100, 0); fdTabFolder.bottom= new FormAttachment(100, -50); wTabFolder.setLayoutData(fdTabFolder); // THE BUTTONS wOK=new Button(shell, SWT.PUSH); wOK.setText(Messages.getString("System.Button.OK")); //$NON-NLS-1$ wCreate=new Button(shell, SWT.PUSH); wCreate.setText(Messages.getString("DimensionLookupDialog.SQL.Button")); //$NON-NLS-1$ wCancel=new Button(shell, SWT.PUSH); wCancel.setText(Messages.getString("System.Button.Cancel")); //$NON-NLS-1$ setButtonPositions(new Button[] { wOK, wCreate, wCancel }, margin, wTabFolder); // Add listeners lsOK = new Listener() { public void handleEvent(Event e) { ok(); } }; lsGet = new Listener() { public void handleEvent(Event e) { get(); } }; lsCreate = new Listener() { public void handleEvent(Event e) { create(); } }; lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } }; wOK.addListener (SWT.Selection, lsOK ); wGet.addListener (SWT.Selection, lsGet ); wCreate.addListener(SWT.Selection, lsCreate); wCancel.addListener(SWT.Selection, lsCancel); lsDef=new SelectionAdapter() { public void widgetDefaultSelected(SelectionEvent e) { ok(); } }; wStepname.addSelectionListener( lsDef ); wTable.addSelectionListener( lsDef ); wCommit.addSelectionListener( lsDef ); wTk.addSelectionListener( lsDef ); wTkRename.addSelectionListener( lsDef ); wSeq.addSelectionListener( lsDef ); wVersion.addSelectionListener( lsDef ); wDatefield.addSelectionListener( lsDef ); wFromdate.addSelectionListener( lsDef ); wMinyear.addSelectionListener( lsDef ); wTodate.addSelectionListener( lsDef ); wMaxyear.addSelectionListener( lsDef ); // Detect X or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } ); wbTable.addSelectionListener ( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { getTableName(); } } ); wTabFolder.setSelection(0); // Set the shell size, based upon previous time... setSize(); getData(); input.setChanged(backupChanged); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return stepname; }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/3197c6629f2cd950b363a8e949a3fa1451d2d42d/DimensionLookupDialog.java/clean/kettle/src/be/ibridge/kettle/trans/step/dimensionlookup/DimensionLookupDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1696,
1435,
202,
95,
202,
202,
13220,
982,
273,
5089,
5621,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
5621,
202,
202,
10304,
273,
394,
19433,
12,
2938,
16,
348,
8588,
18,
2565,
18683,
67,
6566,
49,
571,
348,
8588,
18,
862,
4574,
571,
348,
8588,
18,
6694,
571,
348,
8588,
18,
6236,
1769,
3196,
202,
9693,
18,
542,
9794,
12,
10304,
1769,
202,
202,
11047,
2223,
7180,
1739,
273,
394,
9518,
2223,
1435,
202,
202,
95,
1082,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
1082,
202,
95,
9506,
202,
2630,
18,
542,
5033,
5621,
1082,
202,
97,
202,
202,
20451,
202,
202,
9572,
5033,
273,
810,
18,
5332,
5033,
5621,
202,
202,
9572,
1891,
273,
810,
18,
291,
1891,
5621,
202,
202,
9572,
4965,
14559,
273,
810,
18,
291,
4965,
10798,
5621,
202,
202,
8450,
273,
810,
18,
588,
4254,
2781,
5621,
202,
202,
1204,
3744,
646,
3744,
273,
394,
2748,
3744,
261,
1769,
202,
202,
687,
3744,
18,
10107,
2384,
225,
273,
9333,
18,
4983,
67,
19772,
7702,
31,
202,
202,
687,
3744,
18,
10107,
2686,
273,
9333,
18,
4983,
67,
19772,
7702,
31,
202,
202,
10304,
18,
542,
3744,
12,
687,
3744,
1769,
202,
202,
10304,
18,
542,
1528,
12,
5058,
18,
588,
780,
2932,
8611,
6609,
6353,
18,
13220,
18,
4247,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
474,
7689,
273,
3458,
18,
588,
21924,
52,
299,
5621,
202,
202,
474,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1696,
1435,
202,
95,
202,
202,
13220,
982,
273,
5089,
5621,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
5621,
202,
202,
10304,
273,
394,
19433,
12,
2938,
16,
348,
8588,
18,
2565,
18683,
67,
6566,
49,
571,
348,
8588,
18,
862,
4574,
571,
348,
8588,
18,
6694,
571,
348,
8588,
18,
6236,
1769,
3196,
202,
9693,
18,
542,
9794,
12,
10304,
1769,
202,
202,
11047,
2223,
7180,
1739,
273,
394,
9518,
2223,
1435,
202,
202,
95,
1082,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
1082,
202,
95,
9506,
202,
2630,
18,
542,
5033,
5621,
1082,
202,
97,
202,
202,
20451,
202,
202,
9572,
5033,
273,
810,
18,
5332,
5033,
5621,
2
] |
out.println("<tr>");
|
out.println("<tr >");
|
protected void doRenderMenu(GridSphereEvent event, String[] links) throws PortletLayoutException, IOException { PortletResponse res = event.getPortletResponse(); PrintWriter out = res.getWriter(); // Render tabs titles out.println("<table class=\"tab-pane\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"); out.println("<tr>"); out.println("<td class=\"tab-empty\"> </td>"); PortletTab tab; for (int i = 0; i < tabs.size(); i++) { String title = getTitleAt(i); tab = (PortletTab) tabs.get(i); if (tab.isSelected()) { out.println("<td><img src=\"themes/" + theme + "/images/tab-active-left.gif\"/></td>"); out.println("<td class=\"tab-active\">" + title + "</td>"); out.println("<td><img src=\"themes/" + theme + "/images/tab-active-right.gif\"/></td>"); } else { out.println("<td><img src=\"themes/" + theme + "/images/tab-inactive-left.gif\"/></td>"); out.println("<td class=\"tab-inactive\"><a class=\"tab-menu\" href=\"" + links[i] + "\" >" + title + "</a>"); out.println("<td><img src=\"themes/" + theme + "/images/tab-inactive-right.gif\"/></td>"); } out.println("<td class=\"tab-empty\"> </td>"); } out.println("<td class=\"tab-fillup\"> </td></tr></table>"); PortletTab selectedTab = (PortletTab) tabs.get(selectedIndex); if (selectedTab != null) selectedTab.doRender(event); }
|
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/fc65cc45960f8664776aed23dc05e72e3ba54b42/PortletTabbedPane.java/buggy/src/org/gridlab/gridsphere/layout/PortletTabbedPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
3420,
4599,
12,
6313,
22747,
1133,
871,
16,
514,
8526,
4716,
13,
1216,
21305,
3744,
503,
16,
1860,
288,
3639,
21305,
1064,
400,
273,
871,
18,
588,
18566,
1064,
5621,
3639,
14071,
596,
273,
400,
18,
588,
2289,
5621,
3639,
368,
6987,
10920,
14693,
3639,
596,
18,
8222,
2932,
32,
2121,
667,
5189,
7032,
17,
29009,
2412,
5795,
5189,
20,
2412,
2484,
14080,
5189,
20,
2412,
2484,
9598,
5189,
20,
21121,
1769,
3639,
596,
18,
8222,
2932,
32,
313,
405,
8863,
3639,
596,
18,
8222,
2932,
32,
4465,
667,
5189,
7032,
17,
5531,
2412,
22393,
10600,
27922,
4465,
2984,
1769,
3639,
21305,
5661,
3246,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
10920,
18,
1467,
5621,
277,
27245,
288,
5411,
514,
2077,
273,
10786,
861,
12,
77,
1769,
5411,
3246,
273,
261,
18566,
5661,
13,
10920,
18,
588,
12,
77,
1769,
5411,
309,
261,
7032,
18,
291,
7416,
10756,
288,
7734,
596,
18,
8222,
2932,
32,
4465,
4438,
6081,
1705,
5189,
17328,
4898,
397,
5006,
397,
2206,
7369,
19,
7032,
17,
3535,
17,
4482,
18,
13905,
2412,
19,
4695,
4465,
2984,
1769,
7734,
596,
18,
8222,
2932,
32,
4465,
667,
5189,
7032,
17,
3535,
21121,
397,
2077,
397,
6823,
4465,
2984,
1769,
7734,
596,
18,
8222,
2932,
32,
4465,
4438,
6081,
1705,
5189,
17328,
4898,
397,
5006,
397,
2206,
7369,
19,
7032,
17,
3535,
17,
4083,
18,
13905,
2412,
19,
4695,
4465,
2984,
1769,
5411,
289,
469,
288,
7734,
596,
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,
741,
3420,
4599,
12,
6313,
22747,
1133,
871,
16,
514,
8526,
4716,
13,
1216,
21305,
3744,
503,
16,
1860,
288,
3639,
21305,
1064,
400,
273,
871,
18,
588,
18566,
1064,
5621,
3639,
14071,
596,
273,
400,
18,
588,
2289,
5621,
3639,
368,
6987,
10920,
14693,
3639,
596,
18,
8222,
2932,
32,
2121,
667,
5189,
7032,
17,
29009,
2412,
5795,
5189,
20,
2412,
2484,
14080,
5189,
20,
2412,
2484,
9598,
5189,
20,
21121,
1769,
3639,
596,
18,
8222,
2932,
32,
313,
405,
8863,
3639,
596,
18,
8222,
2932,
32,
4465,
667,
5189,
7032,
17,
5531,
2412,
22393,
10600,
27922,
4465,
2984,
1769,
3639,
21305,
5661,
3246,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2
] |
log.error(e);
|
System.err.println(e);
|
public static void main(String[] args) { try { Topology top=new Topology(); top.setLayout(null); top.setSize(240, 507); top.start(); } catch(Exception e) { log.error(e); e.printStackTrace(); System.exit(0); } }
|
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/13de68466e3cf7fde6ee0bde0cee09a33e837e89/Topology.java/buggy/src/org/jgroups/demos/Topology.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
775,
288,
5411,
19726,
1760,
33,
2704,
19726,
5621,
5411,
1760,
18,
542,
3744,
12,
2011,
1769,
5411,
1760,
18,
542,
1225,
12,
28784,
16,
6437,
27,
1769,
5411,
1760,
18,
1937,
5621,
3639,
289,
3639,
1044,
12,
503,
425,
13,
288,
5411,
2332,
18,
370,
18,
8222,
12,
73,
1769,
5411,
425,
18,
1188,
6332,
5621,
5411,
2332,
18,
8593,
12,
20,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
19726,
5621,
5411,
1760,
18,
542,
3744,
12,
2011,
1769,
5411,
1760,
18,
542,
1225,
12,
28784,
16,
6437,
27,
1769,
5411,
1760,
18,
1937,
5621,
3639,
289,
3639,
1044,
12,
503,
425,
13,
288,
5411,
2332,
18,
370,
18,
8222,
12,
73,
1769,
5411,
425,
18,
1188,
6332,
5621,
5411,
2332,
18,
8593,
12,
20,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(i < blocks.size()) {
|
if(i < blocks.size()) {
|
protected final int findViewGap(int indx) { int i = blocks.size() / 2; int imin = 0; int imax = blocks.size() - 1; do { Block b = (Block) blocks.get(i); if(b.viewStart <= indx && b.viewEnd >= indx) { return -2; } else { if(b.viewStart < indx) { imin = i+1; i = imin + (imax - imin) / 2; } else { imax = i-1; i = imin + (imax - imin) / 2; } } } while(imin <= imax); if(i < blocks.size()) { Block b = (Block) blocks.get(i); if(b.viewEnd < indx) { return i; } else { return i-1; } } else { return i-1; } }
|
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/2832923aaa480545045a81778c041b53a9dcb1ff/SimpleGappedSymbolList.java/clean/src/org/biojava/bio/symbol/SimpleGappedSymbolList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
509,
28778,
14001,
12,
474,
24732,
13,
288,
565,
509,
277,
273,
4398,
18,
1467,
1435,
342,
576,
31,
565,
509,
709,
267,
273,
374,
31,
565,
509,
27749,
273,
4398,
18,
1467,
1435,
300,
404,
31,
3639,
741,
288,
1377,
3914,
324,
273,
261,
1768,
13,
4398,
18,
588,
12,
77,
1769,
1377,
309,
12,
70,
18,
1945,
1685,
1648,
24732,
597,
324,
18,
1945,
1638,
1545,
24732,
13,
288,
3639,
327,
300,
22,
31,
1377,
289,
469,
288,
3639,
309,
12,
70,
18,
1945,
1685,
411,
24732,
13,
288,
1850,
709,
267,
273,
277,
15,
21,
31,
1850,
277,
273,
709,
267,
397,
261,
381,
651,
300,
709,
267,
13,
342,
576,
31,
3639,
289,
469,
288,
1850,
27749,
273,
277,
17,
21,
31,
1850,
277,
273,
709,
267,
397,
261,
381,
651,
300,
709,
267,
13,
342,
576,
31,
3639,
289,
1377,
289,
565,
289,
1323,
12,
381,
267,
1648,
27749,
1769,
565,
309,
12,
77,
411,
4398,
18,
1467,
10756,
288,
1850,
3914,
324,
273,
261,
1768,
13,
4398,
18,
588,
12,
77,
1769,
1377,
309,
12,
70,
18,
1945,
1638,
411,
24732,
13,
288,
3639,
327,
277,
31,
1377,
289,
469,
288,
3639,
327,
277,
17,
21,
31,
1377,
289,
565,
289,
469,
288,
1377,
327,
277,
17,
21,
31,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
509,
28778,
14001,
12,
474,
24732,
13,
288,
565,
509,
277,
273,
4398,
18,
1467,
1435,
342,
576,
31,
565,
509,
709,
267,
273,
374,
31,
565,
509,
27749,
273,
4398,
18,
1467,
1435,
300,
404,
31,
3639,
741,
288,
1377,
3914,
324,
273,
261,
1768,
13,
4398,
18,
588,
12,
77,
1769,
1377,
309,
12,
70,
18,
1945,
1685,
1648,
24732,
597,
324,
18,
1945,
1638,
1545,
24732,
13,
288,
3639,
327,
300,
22,
31,
1377,
289,
469,
288,
3639,
309,
12,
70,
18,
1945,
1685,
411,
24732,
13,
288,
1850,
709,
267,
273,
277,
15,
21,
31,
1850,
277,
273,
709,
267,
397,
261,
381,
651,
300,
709,
267,
13,
342,
576,
31,
3639,
2
] |
{ UIUtilities.centerAndShow(dialog); }
|
{ UIUtilities.centerAndShow(dialog); }
|
public void showDialog(JDialog dialog) { UIUtilities.centerAndShow(dialog); }
|
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/a81a5a58f8e54d006d057455465766c8d3d72998/ViewerCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2405,
6353,
12,
46,
6353,
6176,
13,
202,
95,
202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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2405,
6353,
12,
46,
6353,
6176,
13,
202,
95,
202,
202,
5370,
11864,
18,
5693,
1876,
5706,
12,
12730,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dos.close();
|
void dumpBDDConfig(String fileName) throws IOException { DataOutputStream dos = new DataOutputStream(new FileOutputStream(fileName)); for (int i = 0; i < bdd.numberOfDomains(); ++i) { BDDDomain d = bdd.getDomain(i); dos.writeBytes(d.getName()+" "+d.size()+"\n"); } dos.close(); }
|
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/b43e068069ef682f091dc7531466761863db32b6/BuildBDDIR.java/buggy/joeq_core/joeq/Compiler/Analysis/BDD/BuildBDDIR.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4657,
38,
5698,
809,
12,
780,
3968,
13,
1216,
1860,
288,
3639,
28680,
16153,
273,
394,
28680,
12,
2704,
12942,
12,
17812,
10019,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
324,
449,
18,
2696,
951,
15531,
5621,
965,
77,
13,
288,
5411,
605,
5698,
3748,
302,
273,
324,
449,
18,
588,
3748,
12,
77,
1769,
5411,
16153,
18,
2626,
2160,
12,
72,
18,
17994,
1435,
9078,
13773,
72,
18,
1467,
1435,
9078,
64,
82,
8863,
3639,
289,
6647,
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,
918,
4657,
38,
5698,
809,
12,
780,
3968,
13,
1216,
1860,
288,
3639,
28680,
16153,
273,
394,
28680,
12,
2704,
12942,
12,
17812,
10019,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
324,
449,
18,
2696,
951,
15531,
5621,
965,
77,
13,
288,
5411,
605,
5698,
3748,
302,
273,
324,
449,
18,
588,
3748,
12,
77,
1769,
5411,
16153,
18,
2626,
2160,
12,
72,
18,
17994,
1435,
9078,
13773,
72,
18,
1467,
1435,
9078,
64,
82,
8863,
3639,
289,
6647,
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
] |
|
Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getDesignTimeSeries();
|
Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)) .getSeriesDefinitions().get(0)).getDesignTimeSeries();
|
private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) { Chart helperModel = (Chart) EcoreUtil.copy(currentChart); if((currentChart instanceof ChartWithAxes)) // Chart is ChartWithAxes { if(currentChart.getType().equals(sType)) // Original chart is of this type (BarChart) { if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series.setStacked(false); } } } } else if(currentChart.getType().equals("Line Chart") || currentChart.getType().equals("Bar Chart") || currentChart.getType().equals("Scatter Chart")) { if(!currentChart.getType().equals("Stock Chart")) { currentChart.setSampleData(getConvertedSampleData(currentChart.getSampleData())); } currentChart.setType(sType); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.DATE_TIME_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(true); if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is not of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().set(j, series); } } } } else { return null; } } else { // Create a new instance of the correct type and set initial properties currentChart = ChartWithAxesImpl.create(); currentChart.setType(sType); currentChart.setSubType(sNewSubType); ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.DATE_TIME_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(true); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); // Copy generic chart properties from the old chart currentChart.setBlock(helperModel.getBlock()); currentChart.setDescription(helperModel.getDescription()); currentChart.setGridColumnCount(helperModel.getGridColumnCount()); currentChart.setSampleData(getConvertedSampleData(helperModel.getSampleData())); currentChart.setScript(helperModel.getScript()); currentChart.setSeriesThickness(helperModel.getSeriesThickness()); currentChart.setUnits(helperModel.getUnits()); if(helperModel.getType().equals("Pie Chart")) { // Clear existing series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().clear(); // Copy base series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().add(((ChartWithoutAxes) helperModel).getSeriesDefinitions().get(0)); // Clear existing series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().clear(); // Copy orthogonal series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().addAll(((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeriesDefinitions()); // Update the base series Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getDesignTimeSeries(); series = getConvertedSeries(series); // Clear existing series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().clear(); // Add converted series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().add(series); // Update the orthogonal series EList seriesdefinitions = ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); // Clear any existing series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); // Add the new series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } else { return null; } } if(currentChart instanceof ChartWithAxes && !((ChartWithAxes) currentChart).getOrientation().equals(newOrientation)) { ((ChartWithAxes) currentChart).setOrientation(newOrientation); } if(!currentChart.getDimension().equals(getDimensionFor(sNewDimension))) { currentChart.setDimension(getDimensionFor(sNewDimension)); } return currentChart; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/33aaa1a97f4ae29f5607eeb332deeff2384cc2e3/StockChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14804,
336,
22063,
7984,
12,
7984,
783,
7984,
16,
514,
272,
1908,
30511,
16,
531,
12556,
394,
14097,
16,
514,
272,
1908,
8611,
13,
565,
288,
3639,
14804,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
2972,
7984,
1769,
3639,
309,
12443,
2972,
7984,
1276,
14804,
1190,
26494,
3719,
202,
759,
14804,
353,
14804,
1190,
26494,
3639,
288,
5411,
309,
12,
2972,
7984,
18,
588,
559,
7675,
14963,
12,
87,
559,
3719,
202,
759,
19225,
4980,
353,
434,
333,
618,
261,
5190,
7984,
13,
5411,
288,
7734,
309,
12,
5,
2972,
7984,
18,
588,
30511,
7675,
14963,
12,
87,
1908,
30511,
3719,
202,
759,
19225,
4980,
353,
434,
326,
1931,
12308,
7734,
288,
10792,
783,
7984,
18,
542,
30511,
12,
87,
1908,
30511,
1769,
10792,
17021,
6515,
273,
14015,
6558,
13,
14015,
7984,
1190,
26494,
13,
783,
7984,
2934,
588,
26494,
7675,
588,
12,
20,
13,
2934,
588,
19233,
26494,
5621,
10792,
364,
12,
474,
277,
273,
374,
31,
277,
411,
6515,
18,
1467,
5621,
277,
27245,
10792,
288,
13491,
14015,
6558,
13,
6515,
18,
588,
12,
77,
13,
2934,
542,
8410,
12,
5743,
1769,
13491,
17021,
4166,
13314,
273,
14015,
6558,
13,
6515,
18,
588,
12,
77,
13,
2934,
588,
6485,
7130,
5621,
13491,
364,
12,
474,
525,
273,
374,
31,
525,
411,
4166,
13314,
18,
1467,
5621,
525,
27245,
13491,
288,
18701,
9225,
4166,
273,
14015,
6485,
1852,
13,
4166,
13314,
18,
588,
12,
78,
13,
2934,
588,
15478,
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,
14804,
336,
22063,
7984,
12,
7984,
783,
7984,
16,
514,
272,
1908,
30511,
16,
531,
12556,
394,
14097,
16,
514,
272,
1908,
8611,
13,
565,
288,
3639,
14804,
4222,
1488,
273,
261,
7984,
13,
512,
3644,
1304,
18,
3530,
12,
2972,
7984,
1769,
3639,
309,
12443,
2972,
7984,
1276,
14804,
1190,
26494,
3719,
202,
759,
14804,
353,
14804,
1190,
26494,
3639,
288,
5411,
309,
12,
2972,
7984,
18,
588,
559,
7675,
14963,
12,
87,
559,
3719,
202,
759,
19225,
4980,
353,
434,
333,
618,
261,
5190,
7984,
13,
5411,
288,
7734,
309,
12,
5,
2972,
7984,
18,
588,
30511,
7675,
14963,
12,
87,
1908,
30511,
3719,
202,
759,
19225,
4980,
353,
434,
326,
1931,
12308,
7734,
288,
2
] |
private static Method extractSetMethod(Class type, NativeJavaMethod njm, boolean isStatic)
|
private static MemberBox extractSetMethod(Class type, MemberBox[] methods, boolean isStatic)
|
private static Method extractSetMethod(Class type, NativeJavaMethod njm, boolean isStatic) { // // Note: it may be preferable to allow NativeJavaMethod.findFunction() // to find the appropriate setter; unfortunately, it requires an // instance of the target arg to determine that. // // Make two passes: one to find a method with direct type assignment, // and one to find a widening conversion. Method[] methods = njm.methods; for (int pass = 1; pass <= 2; ++pass) { for (int i = 0; i < methods.length; ++i) { Method method = methods[i]; if (!isStatic || Modifier.isStatic(method.getModifiers())) { if (method.getReturnType() == Void.TYPE) { Class[] params = njm.methodTypes[i]; if (params != null && params.length == 1) { if (pass == 1) { if (params[0] == type) { return method; } } else { if (pass != 2) Context.codeBug(); if (params[0].isAssignableFrom(type)) { return method; } } } } } } } return null; }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/004397fe5ef540e453f60552849d0320b106ace4/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
2985,
2608,
694,
1305,
12,
797,
618,
16,
4766,
6647,
16717,
5852,
1305,
290,
78,
81,
16,
4766,
6647,
1250,
16116,
13,
565,
288,
3639,
368,
3639,
368,
3609,
30,
518,
2026,
506,
13256,
429,
358,
1699,
16717,
5852,
1305,
18,
4720,
2083,
1435,
3639,
368,
4202,
358,
1104,
326,
5505,
7794,
31,
640,
24233,
16,
518,
4991,
392,
3639,
368,
4202,
791,
434,
326,
1018,
1501,
358,
4199,
716,
18,
3639,
368,
3639,
368,
4344,
2795,
11656,
30,
1245,
358,
1104,
279,
707,
598,
2657,
618,
6661,
16,
3639,
368,
471,
1245,
358,
1104,
279,
15481,
275,
310,
4105,
18,
3639,
2985,
8526,
2590,
273,
290,
78,
81,
18,
5163,
31,
3639,
364,
261,
474,
1342,
273,
404,
31,
1342,
1648,
576,
31,
965,
5466,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2590,
18,
2469,
31,
965,
77,
13,
288,
7734,
2985,
707,
273,
2590,
63,
77,
15533,
7734,
309,
16051,
291,
5788,
747,
12832,
18,
291,
5788,
12,
2039,
18,
588,
11948,
1435,
3719,
288,
10792,
309,
261,
2039,
18,
588,
9102,
1435,
422,
6988,
18,
2399,
13,
288,
13491,
1659,
8526,
859,
273,
290,
78,
81,
18,
2039,
2016,
63,
77,
15533,
13491,
309,
261,
2010,
480,
446,
597,
859,
18,
2469,
422,
404,
13,
288,
18701,
309,
261,
5466,
422,
404,
13,
288,
27573,
309,
261,
2010,
63,
20,
65,
422,
618,
13,
288,
4766,
565,
327,
707,
31,
27573,
289,
18701,
289,
469,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
2985,
2608,
694,
1305,
12,
797,
618,
16,
4766,
6647,
16717,
5852,
1305,
290,
78,
81,
16,
4766,
6647,
1250,
16116,
13,
565,
288,
3639,
368,
3639,
368,
3609,
30,
518,
2026,
506,
13256,
429,
358,
1699,
16717,
5852,
1305,
18,
4720,
2083,
1435,
3639,
368,
4202,
358,
1104,
326,
5505,
7794,
31,
640,
24233,
16,
518,
4991,
392,
3639,
368,
4202,
791,
434,
326,
1018,
1501,
358,
4199,
716,
18,
3639,
368,
3639,
368,
4344,
2795,
11656,
30,
1245,
358,
1104,
279,
707,
598,
2657,
618,
6661,
16,
3639,
368,
471,
1245,
358,
1104,
279,
15481,
275,
310,
4105,
18,
3639,
2985,
8526,
2590,
273,
290,
78,
81,
18,
5163,
31,
3639,
364,
261,
474,
2
] |
if (o instanceof File ) { File f = (File)o; this._diagram = diagram; this._import = _import; startImport(p, f); }
|
if (o instanceof File ) { File f = (File) o; this._diagram = diagram; this._import = _import; startImport(p, f); }
|
public void parseFile( Project p, Object o, DiagramInterface diagram, Import _import) throws Exception { if (o instanceof File ) { File f = (File)o; this._diagram = diagram; this._import = _import; startImport(p, f); } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/ClassfileImport.java/buggy/modules/classfile/src/org/argouml/uml/reveng/classfile/ClassfileImport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
31986,
12,
5420,
293,
16,
1033,
320,
16,
14539,
1940,
1358,
19750,
16,
6164,
389,
5666,
13,
202,
15069,
1185,
288,
202,
202,
430,
261,
83,
1276,
1387,
262,
288,
10792,
1387,
284,
273,
261,
812,
13,
83,
31,
10792,
333,
6315,
12264,
1940,
273,
19750,
31,
10792,
333,
6315,
5666,
273,
389,
5666,
31,
10792,
787,
5010,
12,
84,
16,
284,
1769,
7734,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
31986,
12,
5420,
293,
16,
1033,
320,
16,
14539,
1940,
1358,
19750,
16,
6164,
389,
5666,
13,
202,
15069,
1185,
288,
202,
202,
430,
261,
83,
1276,
1387,
262,
288,
10792,
1387,
284,
273,
261,
812,
13,
83,
31,
10792,
333,
6315,
12264,
1940,
273,
19750,
31,
10792,
333,
6315,
5666,
273,
389,
5666,
31,
10792,
787,
5010,
12,
84,
16,
284,
1769,
7734,
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
] |
RubyArray ary = RubyArray.newArray(getRuntime());
|
RubyArray ary = getRuntime().newArray();
|
public IRubyObject scan(IRubyObject arg) { RubyRegexp pat = RubyRegexp.regexpValue(arg); int start = 0; if (!getRuntime().isBlockGiven()) { RubyArray ary = RubyArray.newArray(getRuntime()); while (pat.search(this, start) != -1) { RubyMatchData md = (RubyMatchData) getRuntime().getBackref(); if (md.getSize() == 1) { ary.append(md.group(0)); } else { ary.append(md.subseq(1, md.getSize())); } if (md.matchEndPosition() == md.matchStartPosition()) { start++; } else { start = md.matchEndPosition(); } } return ary; } while (pat.search(this, start) != -1) { RubyMatchData md = (RubyMatchData) getRuntime().getBackref(); if (md.getSize() == 1) { getRuntime().yield(md.group(0)); } else { getRuntime().yield(md.subseq(1, md.getSize())); } if (md.matchEndPosition() == md.matchStartPosition()) { start++; } else { start = md.matchEndPosition(); } } return this; }
|
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyString.java/buggy/src/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
4135,
12,
7937,
10340,
921,
1501,
13,
288,
202,
202,
54,
10340,
14621,
9670,
273,
19817,
14621,
18,
17745,
620,
12,
3175,
1769,
202,
202,
474,
787,
273,
374,
31,
202,
202,
430,
16051,
588,
5576,
7675,
291,
1768,
6083,
10756,
288,
1082,
202,
54,
10340,
1076,
11841,
273,
19817,
1076,
18,
2704,
1076,
12,
588,
5576,
10663,
1082,
202,
17523,
261,
16330,
18,
3072,
12,
2211,
16,
787,
13,
480,
300,
21,
13,
288,
9506,
202,
54,
10340,
2060,
751,
3481,
273,
261,
54,
10340,
2060,
751,
13,
18814,
7675,
588,
2711,
1734,
5621,
9506,
202,
430,
261,
1264,
18,
588,
1225,
1435,
422,
404,
13,
288,
6862,
202,
814,
18,
6923,
12,
1264,
18,
1655,
12,
20,
10019,
9506,
202,
97,
469,
288,
6862,
202,
814,
18,
6923,
12,
1264,
18,
1717,
5436,
12,
21,
16,
3481,
18,
588,
1225,
1435,
10019,
9506,
202,
97,
9506,
202,
430,
261,
1264,
18,
1916,
30037,
1435,
422,
3481,
18,
1916,
23785,
10756,
288,
6862,
202,
1937,
9904,
31,
9506,
202,
97,
469,
288,
6862,
202,
1937,
273,
3481,
18,
1916,
30037,
5621,
9506,
202,
97,
1082,
202,
97,
1082,
202,
2463,
11841,
31,
202,
202,
97,
202,
202,
17523,
261,
16330,
18,
3072,
12,
2211,
16,
787,
13,
480,
300,
21,
13,
288,
1082,
202,
54,
10340,
2060,
751,
3481,
273,
261,
54,
10340,
2060,
751,
13,
18814,
7675,
588,
2711,
1734,
5621,
1082,
202,
430,
261,
1264,
18,
588,
1225,
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,
15908,
10340,
921,
4135,
12,
7937,
10340,
921,
1501,
13,
288,
202,
202,
54,
10340,
14621,
9670,
273,
19817,
14621,
18,
17745,
620,
12,
3175,
1769,
202,
202,
474,
787,
273,
374,
31,
202,
202,
430,
16051,
588,
5576,
7675,
291,
1768,
6083,
10756,
288,
1082,
202,
54,
10340,
1076,
11841,
273,
19817,
1076,
18,
2704,
1076,
12,
588,
5576,
10663,
1082,
202,
17523,
261,
16330,
18,
3072,
12,
2211,
16,
787,
13,
480,
300,
21,
13,
288,
9506,
202,
54,
10340,
2060,
751,
3481,
273,
261,
54,
10340,
2060,
751,
13,
18814,
7675,
588,
2711,
1734,
5621,
9506,
202,
430,
261,
1264,
18,
588,
1225,
1435,
422,
404,
13,
288,
6862,
202,
814,
18,
6923,
2
] |
if(property.isOneToMany()) {
|
if(property.isOneToMany() || property.isManyToMany()) {
|
private static void bindCollection(GrailsDomainClassProperty property, Collection collection, PersistentClass owner, Mappings mappings) { // set role collection.setRole( StringHelper.qualify( property.getDomainClass().getFullName() , property.getName() ) ); // TODO: add code to configure optimistic locking // TODO: configure fetch strategy collection.setFetchMode( FetchMode.DEFAULT ); // if its a one-to-many mapping if(property.isOneToMany()) { OneToMany oneToMany = new OneToMany( collection.getOwner() ); collection.setElement( oneToMany );/* if(property.isBidirectional()) { collection.setReferencedPropertyName( property.getOtherSide().getName() ); }*/ bindOneToMany( property, oneToMany, mappings ); } else { String referencedClassName = property.getReferencedDomainClass().getFullName(); Table table = mappings.addTable( mappings.getSchemaName(), mappings.getCatalogName(), namingStrategy.classToTableName(referencedClassName), null, false ); collection.setCollectionTable(table); } // setup second pass mappings.addSecondPass( new GrailsCollectionSecondPass(property, mappings, collection) ); }
|
50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/6c47cbe485713fe8d2b500632651590033abed59/GrailsDomainBinder.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1993,
2532,
12,
14571,
14573,
3748,
797,
1396,
1272,
16,
2200,
1849,
16,
11049,
797,
3410,
16,
1635,
4675,
7990,
13,
288,
9506,
202,
759,
444,
2478,
202,
202,
5548,
18,
542,
2996,
12,
21494,
18,
3369,
1164,
12,
1272,
18,
588,
3748,
797,
7675,
588,
19223,
1435,
269,
1272,
18,
17994,
1435,
262,
11272,
9506,
202,
759,
2660,
30,
527,
981,
358,
5068,
5213,
5846,
18887,
9506,
202,
759,
2660,
30,
5068,
2158,
6252,
202,
202,
5548,
18,
542,
5005,
2309,
12,
8065,
2309,
18,
5280,
11272,
9506,
202,
759,
309,
2097,
279,
1245,
17,
869,
17,
9353,
2874,
202,
202,
430,
12,
4468,
18,
291,
3335,
12601,
10756,
288,
25083,
202,
3335,
12601,
1245,
12601,
273,
394,
6942,
12601,
12,
1849,
18,
588,
5541,
1435,
11272,
1082,
202,
5548,
18,
542,
1046,
12,
1245,
12601,
11272,
20308,
1082,
202,
430,
12,
4468,
18,
291,
17763,
24699,
10756,
288,
9506,
202,
5548,
18,
542,
22344,
13073,
12,
1272,
18,
588,
8290,
8895,
7675,
17994,
1435,
11272,
1082,
202,
97,
5549,
25083,
202,
4376,
3335,
12601,
12,
1272,
16,
1245,
12601,
16,
7990,
11272,
6862,
202,
97,
202,
202,
12107,
288,
1082,
202,
780,
8042,
3834,
273,
1272,
18,
588,
22344,
3748,
797,
7675,
588,
19223,
5621,
25083,
202,
1388,
1014,
273,
7990,
18,
1289,
1388,
12,
6862,
9506,
202,
16047,
18,
588,
3078,
461,
9334,
6862,
9506,
202,
16047,
18,
588,
9769,
461,
9334,
6862,
9506,
202,
82,
7772,
4525,
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,
760,
918,
1993,
2532,
12,
14571,
14573,
3748,
797,
1396,
1272,
16,
2200,
1849,
16,
11049,
797,
3410,
16,
1635,
4675,
7990,
13,
288,
9506,
202,
759,
444,
2478,
202,
202,
5548,
18,
542,
2996,
12,
21494,
18,
3369,
1164,
12,
1272,
18,
588,
3748,
797,
7675,
588,
19223,
1435,
269,
1272,
18,
17994,
1435,
262,
11272,
9506,
202,
759,
2660,
30,
527,
981,
358,
5068,
5213,
5846,
18887,
9506,
202,
759,
2660,
30,
5068,
2158,
6252,
202,
202,
5548,
18,
542,
5005,
2309,
12,
8065,
2309,
18,
5280,
11272,
9506,
202,
759,
309,
2097,
279,
1245,
17,
869,
17,
9353,
2874,
202,
202,
430,
12,
4468,
18,
291,
3335,
12601,
10756,
288,
25083,
202,
3335,
2
] |
return cols[col]; }
|
return cols[col]; }
|
public String getColumnName(int col) { return cols[col]; }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d2b23250c95f45ef098e021cba0d970cd4733e3e/Connect.java/buggy/tn5250j/src/org/tn5250j/Connect.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
514,
20248,
12,
474,
645,
13,
288,
3639,
327,
5347,
63,
1293,
15533,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
( (EditorRuler) ruler ).setMarginOff( !( (Boolean) evt.getNewValue( ) ).booleanValue( ) );
|
( (EditorRuler) ruler ) .setMarginOff( !( (Boolean) evt .getNewValue( ) ).booleanValue( ) );
|
public void propertyChange( PropertyChangeEvent evt ) { String property = evt.getPropertyName( ); if ( DeferredGraphicalViewer.PROPERTY_MARGIN_VISIBILITY.equals( property ) ) { Object obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER ) ); if ( obj instanceof EditorRulerProvider ) { Object ruler = ( (RulerProvider) obj ).getRuler( ); if ( ruler instanceof EditorRuler ) { ( (EditorRuler) ruler ).setMarginOff( !( (Boolean) evt.getNewValue( ) ).booleanValue( ) ); setMargin( TOP_LEFT ); setMargin( TOP_RIGHT ); } } obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_VERTICAL_RULER ) ); if ( obj instanceof EditorRulerProvider ) { Object ruler = ( (RulerProvider) obj ).getRuler( ); if ( ruler instanceof EditorRuler ) { ( (EditorRuler) ruler ).setMarginOff( !( (Boolean) evt.getNewValue( ) ).booleanValue( ) ); setMargin( LEFT_TOP ); setMargin( LEFT_BOTTOM ); } } } else if ( DeferredGraphicalViewer.LAYOUT_SIZE.equals( property ) ) { processProvider( ); } else if ( RulerProvider.PROPERTY_HORIZONTAL_RULER.equals( property ) ) { setRuler( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER ), PositionConstants.NORTH ); } else if ( RulerProvider.PROPERTY_VERTICAL_RULER.equals( property ) ) { setRuler( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_VERTICAL_RULER ), PositionConstants.WEST ); } else if ( RulerProvider.PROPERTY_RULER_VISIBILITY.equals( property ) ) setRulerVisibility( ( (Boolean) diagramViewer.getProperty( RulerProvider.PROPERTY_RULER_VISIBILITY ) ).booleanValue( ) ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/61cce071e25248ce85d293e05344845aab740350/EditorRulerComposite.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/rulers/EditorRulerComposite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1272,
3043,
12,
4276,
20930,
6324,
262,
1082,
202,
95,
9506,
202,
780,
1272,
273,
6324,
18,
588,
13073,
12,
11272,
9506,
202,
430,
261,
12816,
4137,
1706,
18415,
18,
9900,
67,
19772,
7702,
67,
4136,
30310,
18,
14963,
12,
1272,
262,
262,
9506,
202,
95,
6862,
202,
921,
1081,
273,
261,
261,
54,
17040,
2249,
13,
19750,
18415,
18,
588,
1396,
12,
534,
17040,
2249,
18,
9900,
67,
44,
20344,
67,
54,
1506,
654,
262,
11272,
6862,
202,
430,
261,
1081,
1276,
18451,
54,
17040,
2249,
262,
6862,
202,
95,
25083,
202,
921,
436,
17040,
273,
261,
261,
54,
17040,
2249,
13,
1081,
262,
18,
588,
54,
17040,
12,
11272,
25083,
202,
430,
261,
436,
17040,
1276,
18451,
54,
17040,
262,
25083,
202,
95,
6862,
1082,
202,
12,
261,
6946,
54,
17040,
13,
436,
17040,
262,
18,
542,
9524,
7210,
12,
401,
12,
261,
5507,
13,
6324,
18,
588,
1908,
620,
12,
262,
262,
18,
6494,
620,
12,
262,
11272,
6862,
1082,
202,
542,
9524,
12,
18680,
67,
10066,
11272,
6862,
1082,
202,
542,
9524,
12,
18680,
67,
11847,
11272,
25083,
202,
97,
6862,
202,
97,
6862,
202,
2603,
273,
261,
261,
54,
17040,
2249,
13,
19750,
18415,
18,
588,
1396,
12,
534,
17040,
2249,
18,
9900,
67,
21654,
10109,
67,
54,
1506,
654,
262,
11272,
6862,
202,
430,
261,
1081,
1276,
18451,
54,
17040,
2249,
262,
6862,
202,
95,
25083,
202,
921,
436,
17040,
273,
261,
261,
54,
17040,
2249,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1272,
3043,
12,
4276,
20930,
6324,
262,
1082,
202,
95,
9506,
202,
780,
1272,
273,
6324,
18,
588,
13073,
12,
11272,
9506,
202,
430,
261,
12816,
4137,
1706,
18415,
18,
9900,
67,
19772,
7702,
67,
4136,
30310,
18,
14963,
12,
1272,
262,
262,
9506,
202,
95,
6862,
202,
921,
1081,
273,
261,
261,
54,
17040,
2249,
13,
19750,
18415,
18,
588,
1396,
12,
534,
17040,
2249,
18,
9900,
67,
44,
20344,
67,
54,
1506,
654,
262,
11272,
6862,
202,
430,
261,
1081,
1276,
18451,
54,
17040,
2249,
262,
6862,
202,
95,
25083,
202,
921,
436,
17040,
273,
261,
261,
54,
17040,
2249,
13,
1081,
262,
18,
588,
54,
17040,
12,
11272,
25083,
202,
430,
261,
2
] |
public Collection getSubPackages(String packageName)
|
public SortedSet getSubPackages(String packageName)
|
public Collection getSubPackages(String packageName) { Collection subPackages = new HashSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); if (packageData.getName().equals(packageName)) subPackages.add(packageData); } return subPackages; }
|
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/7f42310aa94d3450acefa63804376619941a31c5/ProjectData.java/clean/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
7040,
11425,
12,
780,
9929,
13,
202,
95,
202,
202,
2532,
720,
11425,
273,
394,
6847,
5621,
202,
202,
3198,
1400,
273,
333,
18,
5906,
18,
2372,
7675,
9838,
5621,
202,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
202,
202,
95,
1082,
202,
2261,
751,
2181,
751,
273,
261,
2261,
751,
13,
2165,
18,
4285,
5621,
1082,
202,
430,
261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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2200,
7040,
11425,
12,
780,
9929,
13,
202,
95,
202,
202,
2532,
720,
11425,
273,
394,
6847,
5621,
202,
202,
3198,
1400,
273,
333,
18,
5906,
18,
2372,
7675,
9838,
5621,
202,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
202,
202,
95,
1082,
202,
2261,
751,
2181,
751,
273,
261,
2261,
751,
13,
2165,
18,
4285,
5621,
1082,
202,
430,
261,
5610,
751,
18,
17994,
7675,
14963,
12,
5610,
461,
3719,
9506,
202,
1717,
11425,
18,
1289,
12,
5610,
751,
1769,
202,
202,
97,
202,
202,
2463,
720,
11425,
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
] |
closeSearcher(); closeWriter();
|
callPostCommitCallbacks(); if (cmd.optimize) { callPostOptimizeCallbacks(); } core.getSearcher(true,false,waitSearcher);
|
public void commit(CommitUpdateCommand cmd) throws IOException { if (cmd.optimize) { optimizeCommands.incrementAndGet(); } else { commitCommands.incrementAndGet(); } Future[] waitSearcher = null; if (cmd.waitSearcher) { waitSearcher = new Future[1]; } boolean error=true; try { synchronized (this) { log.info("start "+cmd); doDeletions(); if (cmd.optimize) { closeSearcher(); openWriter(); writer.optimize(); } closeSearcher(); closeWriter(); callPostCommitCallbacks(); if (cmd.optimize) { callPostOptimizeCallbacks(); } // open a new searcher in the sync block to avoid opening it // after a deleteByQuery changed the index, or in between deletes // and adds of another commit being done. core.getSearcher(true,false,waitSearcher); log.info("end_commit_flush"); } // end synchronized block error=false; } finally { addCommands.set(0); deleteByIdCommands.set(0); deleteByQueryCommands.set(0); numErrors.set(error ? 1 : 0); } // if we are supposed to wait for the searcher to be registered, then we should do it // outside of the synchronized block so that other update operations can proceed. if (waitSearcher!=null && waitSearcher[0] != null) { try { waitSearcher[0].get(); } catch (InterruptedException e) { SolrException.log(log,e); } catch (ExecutionException e) { SolrException.log(log,e); } } return; }
|
50005 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50005/4e9426b94eeb8a4bc96bcb1c88885c8f9c99731b/DirectUpdateHandler2.java/buggy/src/java/org/apache/solr/update/DirectUpdateHandler2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3294,
12,
5580,
1891,
2189,
1797,
13,
1216,
1860,
288,
565,
309,
261,
4172,
18,
29155,
13,
288,
1377,
10979,
9127,
18,
15016,
14042,
5621,
565,
289,
469,
288,
1377,
3294,
9127,
18,
15016,
14042,
5621,
565,
289,
565,
9108,
8526,
2529,
2979,
264,
273,
446,
31,
565,
309,
261,
4172,
18,
7048,
2979,
264,
13,
288,
1377,
2529,
2979,
264,
273,
394,
9108,
63,
21,
15533,
565,
289,
565,
1250,
555,
33,
3767,
31,
565,
775,
288,
1377,
3852,
261,
2211,
13,
288,
3639,
613,
18,
1376,
2932,
1937,
13773,
4172,
1769,
3639,
741,
9019,
1115,
5621,
3639,
309,
261,
4172,
18,
29155,
13,
288,
1850,
1746,
2979,
264,
5621,
1850,
1696,
2289,
5621,
1850,
2633,
18,
29155,
5621,
3639,
289,
3639,
1746,
2979,
264,
5621,
3639,
1746,
2289,
5621,
3639,
745,
3349,
5580,
10617,
5621,
3639,
309,
261,
4172,
18,
29155,
13,
288,
1850,
745,
3349,
6179,
10153,
10617,
5621,
3639,
289,
3639,
368,
1696,
279,
394,
27349,
316,
326,
3792,
1203,
358,
4543,
10890,
518,
3639,
368,
1839,
279,
1430,
26749,
3550,
326,
770,
16,
578,
316,
3086,
9792,
3639,
368,
471,
4831,
434,
4042,
3294,
3832,
2731,
18,
3639,
2922,
18,
588,
2979,
264,
12,
3767,
16,
5743,
16,
7048,
2979,
264,
1769,
3639,
613,
18,
1376,
2932,
409,
67,
7371,
67,
11330,
8863,
1377,
289,
225,
368,
679,
3852,
1203,
1377,
555,
33,
5743,
31,
565,
289,
565,
3095,
288,
1377,
527,
9127,
18,
542,
12,
20,
1769,
1377,
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,
3294,
12,
5580,
1891,
2189,
1797,
13,
1216,
1860,
288,
565,
309,
261,
4172,
18,
29155,
13,
288,
1377,
10979,
9127,
18,
15016,
14042,
5621,
565,
289,
469,
288,
1377,
3294,
9127,
18,
15016,
14042,
5621,
565,
289,
565,
9108,
8526,
2529,
2979,
264,
273,
446,
31,
565,
309,
261,
4172,
18,
7048,
2979,
264,
13,
288,
1377,
2529,
2979,
264,
273,
394,
9108,
63,
21,
15533,
565,
289,
565,
1250,
555,
33,
3767,
31,
565,
775,
288,
1377,
3852,
261,
2211,
13,
288,
3639,
613,
18,
1376,
2932,
1937,
13773,
4172,
1769,
3639,
741,
9019,
1115,
5621,
3639,
309,
261,
4172,
18,
29155,
13,
288,
1850,
1746,
2979,
264,
5621,
1850,
1696,
2289,
5621,
1850,
2
] |
return RubyString.newString(getRuntime(), buf);
|
return getRuntime().newString(buf);
|
public IRubyObject sysread(RubyFixnum number) { String buf = handler.sysread(RubyFixnum.fix2int(number)); return RubyString.newString(getRuntime(), buf); }
|
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/buggy/src/org/jruby/RubyIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2589,
896,
12,
54,
10340,
8585,
2107,
1300,
13,
288,
3639,
514,
1681,
273,
1838,
18,
9499,
896,
12,
54,
10340,
8585,
2107,
18,
904,
22,
474,
12,
2696,
10019,
7734,
327,
18814,
7675,
2704,
780,
12,
4385,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15908,
10340,
921,
2589,
896,
12,
54,
10340,
8585,
2107,
1300,
13,
288,
3639,
514,
1681,
273,
1838,
18,
9499,
896,
12,
54,
10340,
8585,
2107,
18,
904,
22,
474,
12,
2696,
10019,
7734,
327,
18814,
7675,
2704,
780,
12,
4385,
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
] |
public String apply( String elem ) { if( from == null || to == null ) { throw new BuildException( "Both 'from' and 'to' must be set " + "in a map entry" );
|
public String apply(String elem) { if (from == null || to == null) { throw new BuildException("Both 'from' and 'to' must be set " + "in a map entry");
|
public String apply( String elem ) { if( from == null || to == null ) { throw new BuildException( "Both 'from' and 'to' must be set " + "in a map entry" ); } // If we're on windows, then do the comparison ignoring case String cmpElem = onWindows ? elem.toLowerCase() : elem; String cmpFrom = onWindows ? from.toLowerCase() : from; // If the element starts with the configured prefix, then // convert the prefix to the configured 'to' value. if( cmpElem.startsWith( cmpFrom ) ) { int len = from.length(); if( len >= elem.length() ) { elem = to; } else { elem = to + elem.substring( len ); } } return elem; }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0dab862ee09d706c3f373fc18bedbf17caf427b9/PathConvert.java/clean/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
2230,
12,
514,
3659,
262,
288,
5411,
309,
12,
628,
422,
446,
747,
358,
422,
446,
262,
288,
7734,
604,
394,
18463,
12,
315,
20240,
296,
2080,
11,
471,
296,
869,
11,
1297,
506,
444,
315,
4766,
1850,
397,
315,
267,
279,
852,
1241,
6,
11272,
5411,
289,
5411,
368,
971,
732,
4565,
603,
9965,
16,
1508,
741,
326,
5826,
14398,
648,
5411,
514,
9411,
7498,
273,
603,
10399,
692,
3659,
18,
869,
5630,
1435,
294,
3659,
31,
5411,
514,
9411,
1265,
273,
603,
10399,
692,
628,
18,
869,
5630,
1435,
294,
628,
31,
5411,
368,
971,
326,
930,
2542,
598,
326,
4351,
1633,
16,
1508,
5411,
368,
1765,
326,
1633,
358,
326,
4351,
296,
869,
11,
460,
18,
5411,
309,
12,
9411,
7498,
18,
17514,
1190,
12,
9411,
1265,
262,
262,
288,
7734,
509,
562,
273,
628,
18,
2469,
5621,
7734,
309,
12,
562,
1545,
3659,
18,
2469,
1435,
262,
288,
10792,
3659,
273,
358,
31,
7734,
289,
469,
288,
10792,
3659,
273,
358,
397,
3659,
18,
28023,
12,
562,
11272,
7734,
289,
5411,
289,
5411,
327,
3659,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
2230,
12,
514,
3659,
262,
288,
5411,
309,
12,
628,
422,
446,
747,
358,
422,
446,
262,
288,
7734,
604,
394,
18463,
12,
315,
20240,
296,
2080,
11,
471,
296,
869,
11,
1297,
506,
444,
315,
4766,
1850,
397,
315,
267,
279,
852,
1241,
6,
11272,
5411,
289,
5411,
368,
971,
732,
4565,
603,
9965,
16,
1508,
741,
326,
5826,
14398,
648,
5411,
514,
9411,
7498,
273,
603,
10399,
692,
3659,
18,
869,
5630,
1435,
294,
3659,
31,
5411,
514,
9411,
1265,
273,
603,
10399,
692,
628,
18,
869,
5630,
1435,
294,
628,
31,
5411,
368,
971,
326,
930,
2542,
598,
326,
4351,
1633,
16,
1508,
5411,
368,
1765,
326,
1633,
358,
326,
4351,
296,
869,
2
] |
return index < 0 ? null : name.substring(0, index);
|
return index < 0 ? null : name.substring(0, index);
|
public String getPrefix() { if (needsSyncData()) { synchronizeData(); } int index = name.indexOf(':'); return index < 0 ? null : name.substring(0, index); }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/39bb7f6f50e7b98f13cc703c50da536dce255a27/ElementNSImpl.java/buggy/src/org/apache/xerces/dom/ElementNSImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
16182,
1435,
565,
288,
7734,
309,
261,
20600,
4047,
751,
10756,
288,
5411,
16978,
751,
5621,
3639,
289,
3639,
509,
770,
273,
508,
18,
31806,
2668,
2497,
1769,
3639,
327,
770,
411,
374,
692,
446,
294,
508,
18,
28023,
12,
20,
16,
770,
1769,
377,
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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,
7734,
309,
261,
20600,
4047,
751,
10756,
288,
5411,
16978,
751,
5621,
3639,
289,
3639,
509,
770,
273,
508,
18,
31806,
2668,
2497,
1769,
3639,
327,
770,
411,
374,
692,
446,
294,
508,
18,
28023,
12,
20,
16,
770,
1769,
377,
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
] |
return returnval; }
|
return returnval; }
|
public boolean existsKeys(Admin admin, X509Certificate certificate) { debug(">existsKeys()"); boolean returnval = false; final String hexSerial = certificate.getSerialNumber().toString(16); final String dn = CertTools.getIssuerDN(certificate); try { KeyRecoveryDataLocal krd = keyrecoverydatahome.findByPrimaryKey(new KeyRecoveryDataPK( hexSerial, dn)); returnval = true; } catch (FinderException e) { } debug("<existsKeys(" + returnval + ")"); return returnval; } // existsKeys
|
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/eacf4dd5b0993e24e9a5988e58f9a0cbb200450b/LocalKeyRecoverySessionBean.java/clean/src/java/se/anatom/ejbca/keyrecovery/LocalKeyRecoverySessionBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1704,
2396,
12,
4446,
3981,
16,
1139,
5995,
4719,
4944,
13,
288,
202,
202,
4148,
2932,
34,
1808,
2396,
1435,
8863,
202,
202,
6494,
327,
1125,
273,
629,
31,
3639,
727,
514,
3827,
6342,
273,
4944,
18,
588,
6342,
1854,
7675,
10492,
12,
2313,
1769,
3639,
727,
514,
8800,
273,
11921,
10348,
18,
588,
16667,
8609,
12,
14108,
1769,
202,
202,
698,
288,
1082,
202,
653,
11548,
751,
2042,
417,
13623,
273,
498,
23963,
892,
8712,
18,
4720,
858,
11575,
12,
2704,
1929,
11548,
751,
8784,
12,
25083,
202,
7118,
6342,
16,
8800,
10019,
1082,
202,
2463,
1125,
273,
638,
31,
202,
202,
97,
1044,
261,
8441,
503,
425,
13,
288,
202,
202,
97,
202,
202,
4148,
2932,
32,
1808,
2396,
2932,
397,
327,
1125,
397,
7310,
1769,
202,
202,
2463,
327,
1125,
31,
202,
97,
368,
1704,
2396,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1704,
2396,
12,
4446,
3981,
16,
1139,
5995,
4719,
4944,
13,
288,
202,
202,
4148,
2932,
34,
1808,
2396,
1435,
8863,
202,
202,
6494,
327,
1125,
273,
629,
31,
3639,
727,
514,
3827,
6342,
273,
4944,
18,
588,
6342,
1854,
7675,
10492,
12,
2313,
1769,
3639,
727,
514,
8800,
273,
11921,
10348,
18,
588,
16667,
8609,
12,
14108,
1769,
202,
202,
698,
288,
1082,
202,
653,
11548,
751,
2042,
417,
13623,
273,
498,
23963,
892,
8712,
18,
4720,
858,
11575,
12,
2704,
1929,
11548,
751,
8784,
12,
25083,
202,
7118,
6342,
16,
8800,
10019,
1082,
202,
2463,
1125,
273,
638,
31,
202,
202,
97,
1044,
261,
8441,
503,
425,
13,
288,
202,
202,
97,
202,
2
] |
public Iterator iterator() {
|
public NodeSetIterator iterator() {
|
public Iterator iterator() { return EMPTY_ITERATOR; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/aa97f4d76531893721258680bba3894385e96e08/EmptyNodeSet.java/clean/src/org/exist/dom/EmptyNodeSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
2775,
1435,
288,
202,
565,
327,
8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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4498,
2775,
1435,
288,
202,
565,
327,
8984,
67,
11844,
3575,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
firePropertyChange("width", oldWidth, width);
|
changeSupport.firePropertyChange("width", oldWidth, width);
|
public void setWidth(int newWidth) { int oldWidth = width; if (newWidth < minWidth) width = minWidth; else if (newWidth > maxWidth) width = maxWidth; else width = newWidth; if (width == oldWidth) return; // We do have a constant field COLUMN_WIDTH_PROPERTY, // however, tests show that the actual fired property name is 'width' // and even Sun's API docs say that this constant field is obsolete and // not used. firePropertyChange("width", oldWidth, width); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/TableColumn.java/clean/core/src/classpath/javax/javax/swing/table/TableColumn.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
20855,
12,
474,
23542,
13,
225,
288,
565,
509,
202,
1673,
2384,
273,
1835,
31,
565,
309,
261,
2704,
2384,
411,
1131,
2384,
13,
1377,
1835,
273,
1131,
2384,
31,
565,
469,
309,
261,
2704,
2384,
405,
17681,
13,
1377,
1835,
273,
17681,
31,
565,
469,
1377,
1835,
273,
23542,
31,
565,
309,
261,
2819,
422,
1592,
2384,
13,
1377,
327,
31,
565,
368,
1660,
741,
1240,
279,
5381,
652,
13473,
67,
10023,
67,
9900,
16,
565,
368,
14025,
16,
7434,
2405,
716,
326,
3214,
15950,
1272,
508,
353,
296,
2819,
11,
565,
368,
471,
5456,
31608,
1807,
1491,
3270,
12532,
716,
333,
5381,
652,
353,
27191,
471,
565,
368,
486,
1399,
18,
565,
2549,
6289,
18,
12179,
1396,
3043,
2932,
2819,
3113,
1592,
2384,
16,
1835,
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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17681,
13,
1377,
1835,
273,
17681,
31,
565,
469,
1377,
1835,
273,
23542,
31,
565,
309,
261,
2819,
422,
1592,
2384,
13,
1377,
327,
31,
565,
368,
1660,
741,
1240,
279,
5381,
652,
13473,
67,
10023,
67,
9900,
16,
565,
368,
14025,
16,
7434,
2405,
716,
326,
3214,
15950,
1272,
508,
353,
296,
2819,
11,
565,
368,
471,
5456,
31608,
1807,
1491,
3270,
12532,
716,
333,
5381,
652,
353,
27191,
471,
565,
368,
486,
1399,
18,
565,
2549,
6289,
2
] |
throw new NoSuchAlgorithmException(
|
throw new InvalidKeyException(
|
public void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { try { CryptoToken token = TokenSupplierManager.getTokenSupplier().getThreadToken(); sig = token.getSignatureContext(alg); // convert the public key into a JSS public key if necessary if( ! (publicKey instanceof org.mozilla.jss.pkcs11.PK11PubKey) ) { KeyFactory fact = KeyFactory.getInstance( publicKey.getAlgorithm(), "Mozilla-JSS"); if( ! publicKey.getFormat().equalsIgnoreCase("X.509") ) { throw new NoSuchAlgorithmException( "Unsupported public key format: " + publicKey.getFormat()); } X509EncodedKeySpec encodedKey = new X509EncodedKeySpec(publicKey.getEncoded()); publicKey = fact.generatePublic(encodedKey); } sig.initVerify(publicKey); } catch(NoSuchProviderException e) { throw new InvalidKeyException("Unable to convert non-JSS key " + "to JSS key"); } catch(java.security.spec.InvalidKeySpecException e) { throw new InvalidKeyException("Unable to convert non-JSS key " + "to JSS key"); } catch(java.security.NoSuchAlgorithmException e) { throw new InvalidKeyException("Algorithm not supported"); } catch(TokenException e) { throw new InvalidKeyException("Token exception occurred"); } }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/a32141f5d2f462926adacbc0643c3e5543893750/JSSSignatureSpi.java/clean/security/jss/org/mozilla/jss/provider/java/security/JSSSignatureSpi.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4073,
2570,
8097,
12,
9632,
12085,
13,
3639,
1216,
28885,
565,
288,
3639,
775,
288,
5411,
15629,
1345,
1147,
273,
2868,
3155,
13254,
1318,
18,
588,
1345,
13254,
7675,
588,
3830,
1345,
5621,
5411,
3553,
273,
1147,
18,
588,
5374,
1042,
12,
18413,
1769,
5411,
368,
1765,
326,
1071,
498,
1368,
279,
29686,
1071,
498,
309,
4573,
5411,
309,
12,
401,
261,
482,
653,
1276,
2358,
18,
8683,
15990,
18,
78,
1049,
18,
5465,
2143,
2499,
18,
8784,
2499,
17924,
13,
262,
288,
7734,
1929,
1733,
5410,
273,
1929,
1733,
18,
588,
1442,
12,
10792,
12085,
18,
588,
6801,
9334,
315,
49,
11142,
10745,
17,
46,
1260,
8863,
7734,
309,
12,
401,
12085,
18,
588,
1630,
7675,
14963,
5556,
2932,
60,
18,
5995,
7923,
262,
288,
10792,
604,
394,
28885,
12,
13491,
315,
8544,
1071,
498,
740,
30,
315,
397,
13491,
12085,
18,
588,
1630,
10663,
7734,
289,
7734,
1139,
5995,
10397,
653,
1990,
3749,
653,
273,
10792,
394,
1139,
5995,
10397,
653,
1990,
12,
482,
653,
18,
588,
10397,
10663,
7734,
12085,
273,
5410,
18,
7163,
4782,
12,
10787,
653,
1769,
5411,
289,
5411,
3553,
18,
2738,
8097,
12,
482,
653,
1769,
3639,
289,
1044,
12,
28341,
2249,
503,
425,
13,
288,
5411,
604,
394,
28885,
2932,
3370,
358,
1765,
1661,
17,
46,
1260,
498,
315,
397,
7734,
315,
869,
29686,
498,
8863,
3639,
289,
1044,
12,
6290,
18,
7462,
18,
2793,
18,
1941,
653,
1990,
503,
425,
13,
288,
5411,
604,
394,
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,
4073,
2570,
8097,
12,
9632,
12085,
13,
3639,
1216,
28885,
565,
288,
3639,
775,
288,
5411,
15629,
1345,
1147,
273,
2868,
3155,
13254,
1318,
18,
588,
1345,
13254,
7675,
588,
3830,
1345,
5621,
5411,
3553,
273,
1147,
18,
588,
5374,
1042,
12,
18413,
1769,
5411,
368,
1765,
326,
1071,
498,
1368,
279,
29686,
1071,
498,
309,
4573,
5411,
309,
12,
401,
261,
482,
653,
1276,
2358,
18,
8683,
15990,
18,
78,
1049,
18,
5465,
2143,
2499,
18,
8784,
2499,
17924,
13,
262,
288,
7734,
1929,
1733,
5410,
273,
1929,
1733,
18,
588,
1442,
12,
10792,
12085,
18,
588,
6801,
9334,
315,
49,
11142,
10745,
17,
46,
1260,
8863,
7734,
309,
12,
401,
12085,
18,
588,
1630,
2
] |
protected void setProperty(Context _context, String _name, String _value) throws Exception {
|
protected void setProperty(final String _name, final String _value) throws CacheReloadException {
|
protected void setProperty(Context _context, String _name, String _value) throws Exception { if (_name.equals("SelectionColRef")) { setSelectableColRef(Attribute.get(_value)); } else { super.setProperty(_context, _name, _value); } }
|
50266 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50266/398deca4d2f670170df358e7685a3efeb32cab57/Table.java/buggy/kernel/src/main/java/org/efaps/admin/ui/Table.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
7486,
12,
6385,
514,
389,
529,
16,
727,
514,
389,
1132,
13,
1216,
4379,
13013,
503,
225,
288,
565,
309,
261,
67,
529,
18,
14963,
2932,
6233,
914,
1957,
6,
3719,
225,
288,
1377,
444,
31544,
914,
1957,
12,
1499,
18,
588,
24899,
1132,
10019,
565,
289,
469,
225,
288,
1377,
2240,
18,
542,
1396,
24899,
2472,
16,
389,
529,
16,
389,
1132,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
7486,
12,
6385,
514,
389,
529,
16,
727,
514,
389,
1132,
13,
1216,
4379,
13013,
503,
225,
288,
565,
309,
261,
67,
529,
18,
14963,
2932,
6233,
914,
1957,
6,
3719,
225,
288,
1377,
444,
31544,
914,
1957,
12,
1499,
18,
588,
24899,
1132,
10019,
565,
289,
469,
225,
288,
1377,
2240,
18,
542,
1396,
24899,
2472,
16,
389,
529,
16,
389,
1132,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, ResourcesPlugin.getWorkspace()); page = window.openPage(SessionPerspective.ID, ResourcesPlugin .getWorkspace());
|
window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, getPageInput()); page = window.openPage(SessionPerspective.ID, getPageInput());
|
public void testSessionCreation() throws Throwable { IWorkbenchWindow window; IWorkbenchPage page; // Save the original windows. We close all of // these at the end, after the test windows have // been created. saveOriginalWindows(); // Create test window with empty perspective. window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, ResourcesPlugin.getWorkspace()); // Create test window with empty perspective and // session perspective. window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, ResourcesPlugin.getWorkspace()); page = window.openPage(SessionPerspective.ID, ResourcesPlugin .getWorkspace()); // Create test window with two session perspectives. window = fWorkbench.openWorkbenchWindow(SessionPerspective.ID, ResourcesPlugin.getWorkspace()); page = window.openPage(SessionPerspective.ID, ResourcesPlugin .getWorkspace()); // Open 3 editors in last page. IProject proj = FileUtil.createProject(TEST_PROJ); IFile file = FileUtil.createFile(TEST_FILE_1, proj); page.openEditor(new FileEditorInput(file), MockEditorPart.ID1); file = FileUtil.createFile(TEST_FILE_2, proj); page.openEditor(new FileEditorInput(file), MockEditorPart.ID1); file = FileUtil.createFile(TEST_FILE_3, proj); page.openEditor(new FileEditorInput(file), MockEditorPart.ID1); // Close the original windows. closeOriginalWindows(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d702bd12f55dda09eb7a17f2c12be9ad40fc1ee4/SessionCreateTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/SessionCreateTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2157,
9906,
1435,
1216,
4206,
288,
3639,
467,
2421,
22144,
3829,
2742,
31,
3639,
467,
2421,
22144,
1964,
1363,
31,
3639,
368,
7074,
326,
2282,
9965,
18,
225,
1660,
1746,
777,
434,
3639,
368,
4259,
622,
326,
679,
16,
1839,
326,
1842,
9965,
1240,
3639,
368,
2118,
2522,
18,
3639,
1923,
8176,
10399,
5621,
3639,
368,
1788,
1842,
2742,
598,
1008,
26651,
18,
3639,
2742,
273,
284,
2421,
22144,
18,
3190,
2421,
22144,
3829,
12,
1921,
14781,
16772,
18,
3194,
3118,
67,
734,
16,
7734,
8128,
3773,
18,
588,
8241,
10663,
3639,
368,
1788,
1842,
2742,
598,
1008,
26651,
471,
3639,
368,
1339,
26651,
18,
3639,
2742,
273,
284,
2421,
22144,
18,
3190,
2421,
22144,
3829,
12,
1921,
14781,
16772,
18,
3194,
3118,
67,
734,
16,
7734,
8128,
3773,
18,
588,
8241,
10663,
3639,
1363,
273,
2742,
18,
3190,
1964,
12,
2157,
14781,
16772,
18,
734,
16,
8128,
3773,
7734,
263,
588,
8241,
10663,
3639,
368,
1788,
1842,
2742,
598,
2795,
1339,
13508,
1181,
3606,
18,
3639,
2742,
273,
284,
2421,
22144,
18,
3190,
2421,
22144,
3829,
12,
2157,
14781,
16772,
18,
734,
16,
7734,
8128,
3773,
18,
588,
8241,
10663,
3639,
1363,
273,
2742,
18,
3190,
1964,
12,
2157,
14781,
16772,
18,
734,
16,
8128,
3773,
7734,
263,
588,
8241,
10663,
3639,
368,
3502,
890,
29431,
316,
1142,
1363,
18,
3639,
467,
4109,
10296,
273,
1387,
1304,
18,
2640,
4109,
12,
16961,
67,
3373,
46,
1769,
3639,
467,
812,
585,
273,
1387,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2157,
9906,
1435,
1216,
4206,
288,
3639,
467,
2421,
22144,
3829,
2742,
31,
3639,
467,
2421,
22144,
1964,
1363,
31,
3639,
368,
7074,
326,
2282,
9965,
18,
225,
1660,
1746,
777,
434,
3639,
368,
4259,
622,
326,
679,
16,
1839,
326,
1842,
9965,
1240,
3639,
368,
2118,
2522,
18,
3639,
1923,
8176,
10399,
5621,
3639,
368,
1788,
1842,
2742,
598,
1008,
26651,
18,
3639,
2742,
273,
284,
2421,
22144,
18,
3190,
2421,
22144,
3829,
12,
1921,
14781,
16772,
18,
3194,
3118,
67,
734,
16,
7734,
8128,
3773,
18,
588,
8241,
10663,
3639,
368,
1788,
1842,
2742,
598,
1008,
26651,
471,
3639,
368,
1339,
26651,
18,
3639,
2742,
273,
284,
2421,
22144,
18,
3190,
2421,
22144,
2
] |
Node node = document.createElement(tagName); return new W3CDOMWrapper(node); }
|
Node node = document.createElement(tagName); return new W3CDOMWrapper(node); }
|
public DOMWrapper create(String tagName) { Node node = document.createElement(tagName); return new W3CDOMWrapper(node); }
|
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/XercesDOMParser.java/buggy/src/main/mondrian/xom/wrappers/XercesDOMParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4703,
3611,
752,
12,
780,
7196,
13,
288,
202,
202,
907,
756,
273,
1668,
18,
2640,
1046,
12,
2692,
461,
1769,
202,
202,
2463,
394,
678,
23,
39,
8168,
3611,
12,
2159,
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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,
326,
981,
30,
225,
202,
482,
4703,
3611,
752,
12,
780,
7196,
13,
288,
202,
202,
907,
756,
273,
1668,
18,
2640,
1046,
12,
2692,
461,
1769,
202,
202,
2463,
394,
678,
23,
39,
8168,
3611,
12,
2159,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { org.quickfix.field.UnderlyingCurrency value = new org.quickfix.field.UnderlyingCurrency();
|
public quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { quickfix.field.UnderlyingCurrency value = new quickfix.field.UnderlyingCurrency();
|
public org.quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { org.quickfix.field.UnderlyingCurrency value = new org.quickfix.field.UnderlyingCurrency(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinitionRequest.java/buggy/src/java/src/quickfix/fix42/SecurityDefinitionRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
7623,
10833,
765,
6291,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
7623,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
7623,
10833,
765,
6291,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
7623,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
7623,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return;
|
return false;
|
void scrollHorizontalBar(int pixels) { if (pixels == 0) { return; } ScrollBar horizontalBar = getHorizontalBar(); if (horizontalBar != null) { horizontalBar.setSelection(horizontalScrollOffset + pixels); } scrollHorizontal(pixels);}
|
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/b5d04fbc070a732aaaea3bf20786a0b122a46481/StyledText.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
5532,
14457,
5190,
12,
474,
8948,
13,
288,
202,
430,
261,
21084,
422,
374,
13,
288,
202,
202,
2463,
31,
202,
97,
202,
6806,
5190,
10300,
5190,
273,
7628,
6359,
5190,
5621,
202,
430,
261,
18396,
5190,
480,
446,
13,
288,
202,
202,
18396,
5190,
18,
542,
6233,
12,
18396,
6806,
2335,
397,
8948,
1769,
202,
97,
202,
12033,
14457,
12,
21084,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
5532,
14457,
5190,
12,
474,
8948,
13,
288,
202,
430,
261,
21084,
422,
374,
13,
288,
202,
202,
2463,
31,
202,
97,
202,
6806,
5190,
10300,
5190,
273,
7628,
6359,
5190,
5621,
202,
430,
261,
18396,
5190,
480,
446,
13,
288,
202,
202,
18396,
5190,
18,
542,
6233,
12,
18396,
6806,
2335,
397,
8948,
1769,
202,
97,
202,
12033,
14457,
12,
21084,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Updater.update(myVcs, myRootManager.getContentRoots());
|
Updater.update(myVcs, myFileFilter, myRootManager.getContentRoots());
|
private void updateRoots() { try { Updater.update(myVcs, myRootManager.getContentRoots()); } catch (IOException e) { throw new RuntimeException(e); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/df4e4df7f9848c9856eabd3e1f05b48377a55a5c/LocalVcsService.java/clean/LocalVcs/src/com/intellij/localvcs/integration/LocalVcsService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1089,
17540,
1435,
288,
565,
775,
288,
1377,
27254,
2045,
18,
2725,
12,
4811,
58,
2143,
16,
3399,
29837,
16,
3399,
2375,
1318,
18,
588,
1350,
17540,
10663,
565,
289,
565,
1044,
261,
14106,
425,
13,
288,
1377,
604,
394,
3235,
12,
73,
1769,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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1044,
261,
14106,
425,
13,
288,
1377,
604,
394,
3235,
12,
73,
1769,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return handlers.iterator().next();
|
return handlers.values().iterator().next();
|
public Method getDefaultHandler(Class<? extends ActionBean> bean) throws StripesServletException { Collection<Method> handlers = this.eventMappings.get(bean).values(); if (handlers.size() == 1) { return handlers.iterator().next(); } else { for (Method handler : handlers) { if (handler.getAnnotation(DefaultHandler.class) != null) { return handler; } } } // If we got this far there is no default handler throw new StripesServletException("No default handler could be found for ActionBean of " + "type: " + bean.getName()); }
|
9306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9306/1965786bc616302a789f634396d04e27911160ec/AnnotatedClassActionResolver.java/clean/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2985,
4829,
1503,
12,
797,
12880,
3231,
4382,
3381,
34,
3931,
13,
1216,
15589,
281,
4745,
503,
288,
3639,
2200,
32,
1305,
34,
4919,
273,
333,
18,
2575,
7742,
18,
588,
12,
14496,
2934,
2372,
5621,
3639,
309,
261,
11046,
18,
1467,
1435,
422,
404,
13,
288,
5411,
327,
4919,
18,
2372,
7675,
9838,
7675,
4285,
5621,
3639,
289,
3639,
469,
288,
5411,
364,
261,
1305,
1838,
294,
4919,
13,
288,
7734,
309,
261,
4176,
18,
588,
3257,
12,
1868,
1503,
18,
1106,
13,
480,
446,
13,
288,
10792,
327,
1838,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
368,
971,
732,
2363,
333,
10247,
1915,
353,
1158,
805,
1838,
3639,
604,
394,
15589,
281,
4745,
503,
2932,
2279,
805,
1838,
3377,
506,
1392,
364,
4382,
3381,
434,
315,
397,
5411,
315,
723,
30,
315,
397,
3931,
18,
17994,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
2985,
4829,
1503,
12,
797,
12880,
3231,
4382,
3381,
34,
3931,
13,
1216,
15589,
281,
4745,
503,
288,
3639,
2200,
32,
1305,
34,
4919,
273,
333,
18,
2575,
7742,
18,
588,
12,
14496,
2934,
2372,
5621,
3639,
309,
261,
11046,
18,
1467,
1435,
422,
404,
13,
288,
5411,
327,
4919,
18,
2372,
7675,
9838,
7675,
4285,
5621,
3639,
289,
3639,
469,
288,
5411,
364,
261,
1305,
1838,
294,
4919,
13,
288,
7734,
309,
261,
4176,
18,
588,
3257,
12,
1868,
1503,
18,
1106,
13,
480,
446,
13,
288,
10792,
327,
1838,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
368,
971,
732,
2363,
333,
10247,
1915,
353,
1158,
805,
1838,
3639,
604,
394,
15589,
281,
4745,
503,
2
] |
public boolean isSet(org.quickfix.field.OrigClOrdID field)
|
public boolean isSet(quickfix.field.OrigClOrdID field)
|
public boolean isSet(org.quickfix.field.OrigClOrdID field) { return isSetField(field); }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassCancelReport.java/buggy/src/java/src/quickfix/fix43/OrderMassCancelReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
4741,
2009,
15383,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
4741,
2009,
15383,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
viewer.setContentProvider(new SectionContentProvider()); viewer.setLabelProvider(new SectionLabelProvider()); Section tree = createTree();
|
viewer.setContentProvider(new NodeContentProvider()); viewer.setLabelProvider(new NodeLabelProvider()); Node tree = createTree();
|
public void createControl(Composite parent) { super.createControl(parent); TreeViewer viewer = getTreeViewer(); viewer.setContentProvider(new SectionContentProvider()); viewer.setLabelProvider(new SectionLabelProvider()); Section tree = createTree(); viewer.setInput(tree); Tree treeControl = (Tree) viewer.getControl(); if (tree.size() > 0) { TreeItem item = treeControl.getItem(0); treeControl.setSelection(new TreeItem[] { item }); } viewer.expandAll(); // IToolBarManager manager = getSite().getActionBars().getToolBarManager();// manager.add(new ShowDefinitionsOnlyAction());// manager.add(new ShowHeadersOnlyAction()); }
|
53665 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53665/ef892c9bc881eec5bc83474e595b83638a451b16/SchemeOutlinePage.java/buggy/src/org/schemeway/plugins/schemescript/editor/SchemeOutlinePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
2240,
18,
2640,
3367,
12,
2938,
1769,
7734,
4902,
18415,
14157,
273,
15867,
18415,
5621,
3639,
14157,
18,
542,
1350,
2249,
12,
2704,
10092,
1350,
2249,
10663,
3639,
14157,
18,
542,
2224,
2249,
12,
2704,
10092,
2224,
2249,
10663,
3639,
10092,
2151,
273,
752,
2471,
5621,
3639,
14157,
18,
542,
1210,
12,
3413,
1769,
3639,
4902,
2151,
3367,
273,
261,
2471,
13,
14157,
18,
588,
3367,
5621,
3639,
309,
261,
3413,
18,
1467,
1435,
405,
374,
13,
288,
540,
202,
2471,
1180,
761,
273,
2151,
3367,
18,
588,
1180,
12,
20,
1769,
540,
202,
3413,
3367,
18,
542,
6233,
12,
2704,
4902,
1180,
8526,
288,
761,
15549,
3639,
289,
3639,
14157,
18,
12320,
1595,
5621,
7734,
368,
3639,
467,
6364,
5190,
1318,
3301,
273,
11021,
7675,
588,
1803,
5190,
87,
7675,
588,
6364,
5190,
1318,
5621,
759,
3639,
3301,
18,
1289,
12,
2704,
9674,
7130,
3386,
1803,
10663,
759,
3639,
3301,
18,
1289,
12,
2704,
9674,
3121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8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
2240,
18,
2640,
3367,
12,
2938,
1769,
7734,
4902,
18415,
14157,
273,
15867,
18415,
5621,
3639,
14157,
18,
542,
1350,
2249,
12,
2704,
10092,
1350,
2249,
10663,
3639,
14157,
18,
542,
2224,
2249,
12,
2704,
10092,
2224,
2249,
10663,
3639,
10092,
2151,
273,
752,
2471,
5621,
3639,
14157,
18,
542,
1210,
12,
3413,
1769,
3639,
4902,
2151,
3367,
273,
261,
2471,
13,
14157,
18,
588,
3367,
5621,
3639,
309,
261,
3413,
18,
1467,
1435,
405,
374,
13,
288,
540,
202,
2471,
1180,
761,
273,
2151,
3367,
18,
588,
1180,
12,
20,
1769,
540,
202,
3413,
3367,
18,
542,
6233,
12,
2704,
4902,
1180,
8526,
288,
761,
15549,
3639,
2
] |
if (x < 0.5) {
|
if (x < 0.5) {
|
public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1645,
487,
267,
12,
9056,
619,
13,
288,
202,
202,
6494,
6092,
273,
619,
411,
374,
31,
202,
202,
430,
261,
13258,
13,
1082,
202,
92,
273,
300,
92,
31,
202,
202,
430,
16051,
12,
92,
1648,
404,
3719,
1082,
202,
2463,
3698,
18,
21172,
31,
202,
202,
430,
261,
92,
422,
404,
13,
1082,
202,
2463,
6092,
692,
300,
1102,
342,
576,
294,
7024,
342,
576,
31,
202,
202,
430,
261,
92,
411,
374,
18,
25,
13,
288,
1082,
202,
430,
261,
92,
411,
404,
342,
24722,
51,
67,
5324,
13,
9506,
202,
2463,
6092,
692,
300,
92,
294,
619,
31,
1082,
202,
9056,
268,
273,
619,
380,
619,
31,
1082,
202,
9056,
293,
273,
268,
380,
261,
5857,
20,
397,
268,
380,
261,
5857,
21,
397,
268,
380,
261,
5857,
22,
397,
268,
380,
261,
5857,
23,
397,
268,
380,
261,
5857,
24,
397,
268,
380,
26320,
25,
3719,
3719,
1769,
1082,
202,
9056,
1043,
273,
404,
397,
268,
380,
261,
21185,
21,
397,
268,
380,
261,
21185,
22,
397,
268,
380,
261,
21185,
23,
397,
268,
380,
2238,
55,
24,
3719,
1769,
1082,
202,
2463,
6092,
692,
300,
92,
300,
619,
380,
261,
84,
342,
1043,
13,
294,
619,
397,
619,
380,
261,
84,
342,
1043,
1769,
202,
202,
97,
202,
202,
9056,
341,
273,
404,
300,
619,
31,
368,
404,
34,
96,
92,
96,
34,
33,
20,
18,
25,
18,
202,
202,
9056,
268,
273,
341,
380,
374,
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,
760,
1645,
487,
267,
12,
9056,
619,
13,
288,
202,
202,
6494,
6092,
273,
619,
411,
374,
31,
202,
202,
430,
261,
13258,
13,
1082,
202,
92,
273,
300,
92,
31,
202,
202,
430,
16051,
12,
92,
1648,
404,
3719,
1082,
202,
2463,
3698,
18,
21172,
31,
202,
202,
430,
261,
92,
422,
404,
13,
1082,
202,
2463,
6092,
692,
300,
1102,
342,
576,
294,
7024,
342,
576,
31,
202,
202,
430,
261,
92,
411,
374,
18,
25,
13,
288,
1082,
202,
430,
261,
92,
411,
404,
342,
24722,
51,
67,
5324,
13,
9506,
202,
2463,
6092,
692,
300,
92,
294,
619,
31,
1082,
202,
9056,
268,
273,
619,
380,
619,
31,
1082,
202,
9056,
293,
2
] |
StatisticsView cumulativeStatisticsView) { m_newStatisticsViewsCalled = true; m_intervalStatisticsView = intervalStatisticsView; m_cumulativeStatisticsView = cumulativeStatisticsView; }
|
StatisticsView cumulativeStatisticsView) { m_newStatisticsViewsCalled = true; m_intervalStatisticsView = intervalStatisticsView; m_cumulativeStatisticsView = cumulativeStatisticsView; }
|
public void newStatisticsViews(StatisticsView intervalStatisticsView, StatisticsView cumulativeStatisticsView) { m_newStatisticsViewsCalled = true; m_intervalStatisticsView = intervalStatisticsView; m_cumulativeStatisticsView = cumulativeStatisticsView; }
|
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/d5095282593ea1fa8c83b82db02d2aef4eb27594/TestSwingDispatchedModelListener.java/buggy/tests-src/net/grinder/console/swingui/TestSwingDispatchedModelListener.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
394,
8569,
9959,
12,
8569,
1767,
3673,
8569,
1767,
16,
6862,
4202,
22964,
1767,
15582,
8569,
1767,
13,
202,
95,
202,
565,
312,
67,
2704,
8569,
9959,
8185,
273,
638,
31,
202,
565,
312,
67,
6624,
8569,
1767,
273,
3673,
8569,
1767,
31,
202,
565,
312,
67,
71,
11276,
8569,
1767,
273,
15582,
8569,
1767,
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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,
326,
981,
30,
225,
202,
482,
918,
394,
8569,
9959,
12,
8569,
1767,
3673,
8569,
1767,
16,
6862,
4202,
22964,
1767,
15582,
8569,
1767,
13,
202,
95,
202,
565,
312,
67,
2704,
8569,
9959,
8185,
273,
638,
31,
202,
565,
312,
67,
6624,
8569,
1767,
273,
3673,
8569,
1767,
31,
202,
565,
312,
67,
71,
11276,
8569,
1767,
273,
15582,
8569,
1767,
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
] |
addSubCommand( child, parent, screen );
|
screen.addSubCommand( child, parent );
|
public static void addSubCommand( Command child, Command parent, Screen screen ) { //#style menuitem? addSubCommand( child, parent, screen ); }
|
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/c14555b08d15c3121416578aa7bbfa65ee40378e/UiAccess.java/buggy/j2me/source/src/de/enough/polish/ui/UiAccess.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
25716,
2189,
12,
225,
3498,
1151,
16,
3498,
982,
16,
10146,
5518,
225,
262,
288,
202,
202,
759,
7,
4060,
3824,
1726,
35,
202,
202,
1289,
1676,
2189,
12,
1151,
16,
982,
16,
5518,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
25716,
2189,
12,
225,
3498,
1151,
16,
3498,
982,
16,
10146,
5518,
225,
262,
288,
202,
202,
759,
7,
4060,
3824,
1726,
35,
202,
202,
1289,
1676,
2189,
12,
1151,
16,
982,
16,
5518,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
save(false);
|
if(!save(false)) { getToolkit().beep(); return; }
|
public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == closeBtn) cancel(); else if(source == findBtn || source == find || source == replace) { ok(); } else if(source == replaceAndFindBtn) { save(false); if(SearchAndReplace.replace(view)) ok(); else getToolkit().beep(); } else if(source == replaceAllBtn) { if(searchSelection.isSelected() && view.getTextArea().getSelectionCount() == 0) { GUIUtilities.error(view,"search-no-selection",null); return; } setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); save(false); if(searchSelection.isSelected()) { if(SearchAndReplace.replace(view)) closeOrKeepDialog(); else getToolkit().beep(); } else { if(SearchAndReplace.replaceAll(view)) closeOrKeepDialog(); else getToolkit().beep(); } setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); } }
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/d5d36d3c9a7e3996df6c5d6e7cd7c5da12102fff/SearchDialog.java/buggy/org/gjt/sp/jedit/search/SearchDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1746,
20541,
13,
9506,
202,
10996,
5621,
1082,
202,
12107,
309,
12,
3168,
422,
1104,
20541,
747,
1084,
422,
1104,
9506,
202,
20081,
1084,
422,
1453,
13,
1082,
202,
95,
9506,
202,
601,
5621,
1082,
202,
97,
1082,
202,
12107,
309,
12,
3168,
422,
1453,
1876,
3125,
20541,
13,
1082,
202,
95,
9506,
202,
5688,
12,
5743,
1769,
9506,
202,
430,
12,
2979,
1876,
5729,
18,
2079,
12,
1945,
3719,
6862,
202,
601,
5621,
9506,
202,
12107,
6862,
202,
588,
6364,
8691,
7675,
2196,
881,
5621,
1082,
202,
97,
1082,
202,
12107,
309,
12,
3168,
422,
10344,
20541,
13,
1082,
202,
95,
9506,
202,
430,
12,
3072,
6233,
18,
291,
7416,
1435,
597,
6862,
202,
1945,
18,
588,
1528,
5484,
7675,
588,
6233,
1380,
1435,
6862,
202,
631,
374,
13,
9506,
202,
95,
6862,
202,
43,
5370,
11864,
18,
1636,
12,
1945,
10837,
3072,
17,
2135,
17,
10705,
3113,
2011,
1769,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
542,
6688,
12,
6688,
18,
588,
1386,
2178,
6688,
12,
6688,
18,
19046,
67,
7509,
55,
916,
10019,
9506,
202,
5688,
12,
5743,
1769,
9506,
202,
430,
12,
3072,
6233,
18,
291,
7416,
10756,
9506,
202,
95,
6862,
202,
430,
12,
2979,
1876,
5729,
18,
2079,
12,
1945,
3719,
25083,
202,
4412,
1162,
11523,
6353,
5621,
6862,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1746,
20541,
13,
9506,
202,
10996,
5621,
1082,
202,
12107,
309,
12,
3168,
422,
1104,
20541,
747,
1084,
422,
1104,
9506,
202,
20081,
1084,
422,
1453,
13,
1082,
202,
95,
9506,
202,
601,
5621,
1082,
202,
97,
1082,
202,
12107,
309,
12,
3168,
422,
1453,
1876,
3125,
20541,
13,
1082,
202,
95,
9506,
202,
5688,
12,
5743,
1769,
9506,
202,
430,
12,
2979,
1876,
5729,
18,
2079,
12,
1945,
3719,
6862,
202,
601,
5621,
9506,
202,
12107,
6862,
202,
588,
6364,
8691,
7675,
2196,
881,
5621,
1082,
202,
97,
1082,
2
] |
animator.stop(); System.exit(0);
|
new Thread(new Runnable() { public void run() { animator.stop(); System.exit(0); } }).start();
|
public void windowClosing(WindowEvent e) { animator.stop(); System.exit(0); }
|
6783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6783/69ca977ccf8d329cd72dced5ebb92501da460561/VertexBufferObject.java/clean/src/demos/vertexBufferObject/VertexBufferObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2742,
15745,
12,
3829,
1133,
425,
13,
288,
1850,
10536,
639,
18,
5681,
5621,
1850,
2332,
18,
8593,
12,
20,
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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,
3829,
1133,
425,
13,
288,
1850,
10536,
639,
18,
5681,
5621,
1850,
2332,
18,
8593,
12,
20,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 paramString();
|
return this.getClass().getName() + "[" + paramString() + "]";
|
public String toString() { return paramString(); }
|
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/14a46ad9e70e8baeb4a720508e0a04f9df8b41f5/Component.java/clean/libjava/java/awt/Component.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
225,
288,
565,
327,
333,
18,
588,
797,
7675,
17994,
1435,
397,
13626,
397,
579,
780,
1435,
397,
9870,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
514,
1762,
1435,
225,
288,
565,
327,
333,
18,
588,
797,
7675,
17994,
1435,
397,
13626,
397,
579,
780,
1435,
397,
9870,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else
|
try { return new File(path).getCanonicalPath(); } catch(Exception e) {
|
private static String canonPath(String path) { if(File.separatorChar == '\\') { // get rid of mixed paths on Windows return path.replace('/','\\'); } else return path; }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/74edffa405f3d7df1919e13f861617a2be9f2c5c/MiscUtilities.java/clean/org/gjt/sp/jedit/MiscUtilities.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
29147,
743,
12,
780,
589,
13,
202,
95,
202,
202,
430,
12,
812,
18,
11287,
2156,
422,
5282,
13,
202,
202,
95,
1082,
202,
759,
336,
10911,
434,
7826,
2953,
603,
8202,
1082,
202,
2463,
589,
18,
2079,
2668,
19,
17023,
1695,
8284,
202,
202,
97,
202,
202,
12107,
1082,
202,
2463,
589,
31,
202,
97,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
514,
29147,
743,
12,
780,
589,
13,
202,
95,
202,
202,
430,
12,
812,
18,
11287,
2156,
422,
5282,
13,
202,
202,
95,
1082,
202,
759,
336,
10911,
434,
7826,
2953,
603,
8202,
1082,
202,
2463,
589,
18,
2079,
2668,
19,
17023,
1695,
8284,
202,
202,
97,
202,
202,
12107,
1082,
202,
2463,
589,
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
] |
void doGlobal(Function funObj, int count) throws JavaScriptException {
|
void doGlobal(Context cx, Function funObj, int count, RegExpImpl reImpl) throws JavaScriptException {
|
void doGlobal(Function funObj, int count) throws JavaScriptException { MatchData mdata; Object v; mdata = this; Context cx = Context.getCurrentContext(); RegExpImpl reImpl = RegExpImpl.getRegExpImpl(cx); if (arrayobj == null) { Scriptable s = ScriptableObject.getTopLevelScope(funObj); arrayobj = ScriptRuntime.newObject(cx, s, "Array", null); } SubString matchsub = reImpl.lastMatch; String matchstr = matchsub.toString(); arrayobj.put(count, arrayobj, matchstr); }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/8b34980fb3adc3beae5bcea5913d426dc2e366c8/RegExpImpl.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/RegExpImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
741,
5160,
12,
1042,
9494,
16,
4284,
9831,
2675,
16,
509,
1056,
16,
10679,
2828,
283,
2828,
13,
1216,
11905,
503,
288,
3639,
4639,
751,
312,
892,
31,
3639,
1033,
331,
31,
3639,
312,
892,
273,
333,
31,
3639,
1772,
9494,
273,
1772,
18,
588,
3935,
1042,
5621,
3639,
10679,
2828,
283,
2828,
273,
10679,
2828,
18,
588,
13673,
2828,
12,
71,
92,
1769,
3639,
309,
261,
1126,
2603,
422,
446,
13,
288,
5411,
22780,
272,
273,
22780,
921,
18,
588,
27046,
3876,
12,
12125,
2675,
1769,
5411,
526,
2603,
273,
7739,
5576,
18,
2704,
921,
12,
71,
92,
16,
272,
16,
315,
1076,
3113,
446,
1769,
3639,
289,
3639,
2592,
780,
845,
1717,
273,
283,
2828,
18,
2722,
2060,
31,
3639,
514,
845,
701,
273,
845,
1717,
18,
10492,
5621,
3639,
526,
2603,
18,
458,
12,
1883,
16,
526,
2603,
16,
845,
701,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
741,
5160,
12,
1042,
9494,
16,
4284,
9831,
2675,
16,
509,
1056,
16,
10679,
2828,
283,
2828,
13,
1216,
11905,
503,
288,
3639,
4639,
751,
312,
892,
31,
3639,
1033,
331,
31,
3639,
312,
892,
273,
333,
31,
3639,
1772,
9494,
273,
1772,
18,
588,
3935,
1042,
5621,
3639,
10679,
2828,
283,
2828,
273,
10679,
2828,
18,
588,
13673,
2828,
12,
71,
92,
1769,
3639,
309,
261,
1126,
2603,
422,
446,
13,
288,
5411,
22780,
272,
273,
22780,
921,
18,
588,
27046,
3876,
12,
12125,
2675,
1769,
5411,
526,
2603,
273,
7739,
5576,
18,
2704,
921,
12,
71,
92,
16,
272,
16,
315,
1076,
3113,
446,
1769,
3639,
289,
3639,
2592,
780,
845,
1717,
273,
283,
2828,
2
] |
if (true) {
|
private String getSimpleCallName(Node callNode) /* Find call trees that look like this : (they arise from simple function invocations) CALL <-- this is the callNode node GETPROP NEWTEMP [USES: 1] GETBASE 'name' STRING 'name' GETTHIS USETEMP [TEMP: NEWTEMP [USES: 1]] <-- arguments would be here and return the name found. */ {if (true) { Node callBase = callNode.getFirstChild(); if (callBase.getType() == TokenStream.GETPROP) { Node callBaseChild = callBase.getFirstChild(); if (callBaseChild.getType() == TokenStream.NEWTEMP) { Node callBaseID = callBaseChild.getNextSibling(); Node tempChild = callBaseChild.getFirstChild(); if (tempChild.getType() == TokenStream.GETBASE) { String functionName = tempChild.getString(); if ((callBaseID != null) && (callBaseID.getType() == TokenStream.STRING)) { if (functionName.equals(callBaseID.getString())) { Node thisChild = callBase.getNextSibling(); if (thisChild.getType() == TokenStream.GETTHIS) { Node useChild = thisChild.getFirstChild(); if (useChild.getType() == TokenStream.USETEMP) { Node temp = (Node)useChild.getProp(Node.TEMP_PROP); if (temp == callBaseChild) { return functionName; } } } } } } } }} return null; }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/0470e048abb345f567d5fda1e9564715a9f4d5d7/Codegen.java/clean/js/rhino/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
8120,
1477,
461,
12,
907,
745,
907,
13,
565,
1748,
3639,
4163,
745,
11491,
716,
2324,
3007,
333,
294,
3639,
261,
451,
402,
419,
784,
628,
4143,
445,
27849,
13,
7734,
22753,
5397,
411,
413,
333,
353,
326,
745,
907,
756,
7734,
4978,
15811,
10792,
12887,
10258,
306,
8001,
55,
30,
404,
65,
13491,
4978,
8369,
296,
529,
11,
10792,
9469,
296,
529,
11,
7734,
17788,
1470,
44,
5127,
10792,
14988,
10258,
306,
10258,
30,
12887,
10258,
306,
8001,
55,
30,
404,
13563,
7734,
411,
413,
1775,
4102,
506,
2674,
5411,
471,
327,
326,
508,
1392,
18,
3639,
1195,
565,
288,
9079,
2029,
745,
2171,
273,
745,
907,
18,
588,
3759,
1763,
5621,
3639,
309,
261,
1991,
2171,
18,
588,
559,
1435,
422,
3155,
1228,
18,
3264,
15811,
13,
288,
5411,
2029,
745,
2171,
1763,
273,
745,
2171,
18,
588,
3759,
1763,
5621,
5411,
309,
261,
1991,
2171,
1763,
18,
588,
559,
1435,
422,
3155,
1228,
18,
12917,
10258,
13,
288,
7734,
2029,
745,
2171,
734,
273,
745,
2171,
1763,
18,
588,
2134,
10291,
5621,
7734,
2029,
1906,
1763,
273,
745,
2171,
1763,
18,
588,
3759,
1763,
5621,
7734,
309,
261,
5814,
1763,
18,
588,
559,
1435,
422,
3155,
1228,
18,
3264,
8369,
13,
288,
10792,
514,
14117,
273,
1906,
1763,
18,
588,
780,
5621,
10792,
309,
14015,
1991,
2171,
734,
480,
446,
13,
597,
18701,
261,
1991,
2171,
734,
18,
588,
559,
1435,
422,
3155,
1228,
18,
5804,
3719,
288,
13491,
309,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
8120,
1477,
461,
12,
907,
745,
907,
13,
565,
1748,
3639,
4163,
745,
11491,
716,
2324,
3007,
333,
294,
3639,
261,
451,
402,
419,
784,
628,
4143,
445,
27849,
13,
7734,
22753,
5397,
411,
413,
333,
353,
326,
745,
907,
756,
7734,
4978,
15811,
10792,
12887,
10258,
306,
8001,
55,
30,
404,
65,
13491,
4978,
8369,
296,
529,
11,
10792,
9469,
296,
529,
11,
7734,
17788,
1470,
44,
5127,
10792,
14988,
10258,
306,
10258,
30,
12887,
10258,
306,
8001,
55,
30,
404,
13563,
7734,
411,
413,
1775,
4102,
506,
2674,
5411,
471,
327,
326,
508,
1392,
18,
3639,
1195,
565,
288,
9079,
2029,
745,
2171,
273,
745,
907,
18,
588,
3759,
1763,
5621,
3639,
309,
261,
2
] |
|
public void setTarget(SizeCache target) { setTargetControl(target.getControl()); }
|
public void setTarget(SizeCache cache) { targetCache = cache; if (targetCache != null) { setTargetControl(cache.getControl()); } else { setTargetControl(null); } }
|
public void setTarget(SizeCache target) { setTargetControl(target.getControl()); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/aaa67ee0d5b82c6c46eb51216d63b2b2927d58b7/ProxyControl.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/util/ProxyControl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18367,
12,
1225,
1649,
1018,
13,
288,
202,
565,
18367,
3367,
12,
3299,
18,
588,
3367,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18367,
12,
1225,
1649,
1018,
13,
288,
202,
565,
18367,
3367,
12,
3299,
18,
588,
3367,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new MuleMessage(result[0], invocation.getMessage().getProperties());
|
return new MuleMessage(result[0], invocation.getMessage());
|
public UMOMessage before(Invocation invocation) throws UMOException { if (beforeExpressions != null && beforeExpressionsList.size() > 0) { JXPathContext ctx = JXPathContext.newContext(getOriginalPayload()); Object[] result = new Object[beforeExpressionsList.size()]; for (int i = 0; i < result.length; i++) { result[i] = ctx.getValue((String) beforeExpressionsList.get(i)); } if (result.length == 1) { return new MuleMessage(result[0], invocation.getMessage().getProperties()); } else { return new MuleMessage(result, invocation.getMessage().getProperties()); } } return null; }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/1c16135aeffdc8654133a2cfd4e29e2561335937/JXPathNormalizerInterceptor.java/buggy/mule/src/java/org/mule/interceptors/JXPathNormalizerInterceptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
1079,
1865,
12,
9267,
9495,
13,
1216,
587,
5980,
503,
565,
288,
3639,
309,
261,
5771,
8927,
480,
446,
597,
1865,
8927,
682,
18,
1467,
1435,
405,
374,
13,
288,
5411,
804,
14124,
1042,
1103,
273,
804,
14124,
1042,
18,
2704,
1042,
12,
588,
8176,
6110,
10663,
5411,
1033,
8526,
563,
273,
394,
1033,
63,
5771,
8927,
682,
18,
1467,
1435,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
563,
18,
2469,
31,
277,
27245,
288,
7734,
563,
63,
77,
65,
273,
1103,
18,
24805,
12443,
780,
13,
1865,
8927,
682,
18,
588,
12,
77,
10019,
5411,
289,
5411,
309,
261,
2088,
18,
2469,
422,
404,
13,
288,
7734,
327,
394,
490,
725,
1079,
12,
2088,
63,
20,
6487,
9495,
18,
24906,
10663,
5411,
289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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
587,
5980,
1079,
1865,
12,
9267,
9495,
13,
1216,
587,
5980,
503,
565,
288,
3639,
309,
261,
5771,
8927,
480,
446,
597,
1865,
8927,
682,
18,
1467,
1435,
405,
374,
13,
288,
5411,
804,
14124,
1042,
1103,
273,
804,
14124,
1042,
18,
2704,
1042,
12,
588,
8176,
6110,
10663,
5411,
1033,
8526,
563,
273,
394,
1033,
63,
5771,
8927,
682,
18,
1467,
1435,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
563,
18,
2469,
31,
277,
27245,
288,
7734,
563,
63,
77,
65,
273,
1103,
18,
24805,
12443,
780,
13,
1865,
8927,
682,
18,
588,
12,
77,
10019,
5411,
289,
5411,
309,
261,
2088,
18,
2469,
422,
404,
13,
288,
7734,
327,
394,
490,
2
] |
return 1;
|
return ncol;
|
public int getColumnCount() { return 1; }
|
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/7c72a3bbe18af95caf51f070fe40781e018c817e/ArrayBrowser.java/clean/treeview/src/main/uk/ac/starlink/treeview/ArrayBrowser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
509,
6716,
1380,
1435,
288,
10792,
327,
290,
1293,
31,
7734,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1171,
1071,
509,
6716,
1380,
1435,
288,
10792,
327,
290,
1293,
31,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (m instanceof MModelElement) { MModelElement me = (MModelElement) m;
|
if (m != null && m instanceof MModelElement) { MModelElement me = (MModelElement) m;
|
public static void setStereotype(Object m, Object stereo) { if (m instanceof MModelElement) { MModelElement me = (MModelElement) m; if (stereo != null && stereo instanceof MStereotype && me.getModel() != ((MStereotype) stereo).getModel()) { ((MStereotype) stereo).setNamespace(me.getModel()); } me.setStereotype((MStereotype) stereo); } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/8abd8d64ef14558fa4b1e37c632b2e9220b8a889/ModelFacade.java/clean/src_new/org/argouml/model/ModelFacade.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
13928,
387,
73,
10570,
12,
921,
312,
16,
1033,
29558,
13,
288,
3639,
309,
261,
81,
1276,
490,
1488,
1046,
13,
288,
202,
565,
490,
1488,
1046,
1791,
273,
261,
49,
1488,
1046,
13,
312,
31,
5411,
309,
261,
334,
822,
83,
480,
446,
7734,
597,
29558,
1276,
9238,
387,
73,
10570,
7734,
597,
1791,
18,
588,
1488,
1435,
480,
14015,
3537,
387,
73,
10570,
13,
29558,
2934,
588,
1488,
10756,
202,
565,
288,
7734,
14015,
3537,
387,
73,
10570,
13,
29558,
2934,
542,
3402,
12,
3501,
18,
588,
1488,
10663,
5411,
289,
5411,
1791,
18,
542,
55,
387,
73,
10570,
12443,
3537,
387,
73,
10570,
13,
29558,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
13928,
387,
73,
10570,
12,
921,
312,
16,
1033,
29558,
13,
288,
3639,
309,
261,
81,
1276,
490,
1488,
1046,
13,
288,
202,
565,
490,
1488,
1046,
1791,
273,
261,
49,
1488,
1046,
13,
312,
31,
5411,
309,
261,
334,
822,
83,
480,
446,
7734,
597,
29558,
1276,
9238,
387,
73,
10570,
7734,
597,
1791,
18,
588,
1488,
1435,
480,
14015,
3537,
387,
73,
10570,
13,
29558,
2934,
588,
1488,
10756,
202,
565,
288,
7734,
14015,
3537,
387,
73,
10570,
13,
29558,
2934,
542,
3402,
12,
3501,
18,
588,
1488,
10663,
5411,
289,
5411,
1791,
18,
542,
55,
387,
73,
10570,
12443,
3537,
387,
73,
10570,
13,
29558,
1769,
3639,
289,
565,
289,
2,
-100,
-100
] |
private String removeColon(String s) { StringTokenizer st = new StringTokenizer(s,":",false); String t=""; while (st.hasMoreElements()) t += st.nextElement(); return t; }
|
private String removeColon(String s) { StringTokenizer st = new StringTokenizer(s, ":", false); String t = ""; while (st.hasMoreElements()) t += st.nextElement(); return t; }
|
private String removeColon(String s) { StringTokenizer st = new StringTokenizer(s,":",false); String t=""; while (st.hasMoreElements()) t += st.nextElement(); return t; }
|
51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/d944969a05e2e329c0b042b33835750c3716bd1d/TooltipPanel.java/clean/wicket-contrib-dojo/src/main/java/wicket/contrib/markup/html/tooltip/TooltipPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
1206,
19636,
12,
780,
272,
13,
288,
1082,
225,
16370,
384,
273,
394,
16370,
12,
87,
10837,
2773,
16,
5743,
1769,
1082,
225,
514,
268,
1546,
14432,
1082,
225,
1323,
261,
334,
18,
5332,
7417,
3471,
10756,
268,
1011,
384,
18,
4285,
1046,
5621,
1082,
225,
327,
268,
31,
202,
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,
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261,
334,
18,
5332,
7417,
3471,
10756,
268,
1011,
384,
18,
4285,
1046,
5621,
1082,
225,
327,
268,
31,
202,
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
] |
else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) )
|
else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) )
|
public Chart getModel( String sSubType, Orientation orientation, String sDimension, Chart currentChart ) { ChartWithAxes newChart = null; if ( currentChart != null ) { newChart = (ChartWithAxes) getConvertedChart( currentChart, sSubType, orientation, sDimension ); if ( newChart != null ) { return newChart; } } newChart = ChartWithAxesImpl.create( ); newChart.setType( TYPE_LITERAL ); newChart.setSubType( sSubType ); newChart.setOrientation( orientation ); newChart.setDimension( getDimensionFor( sDimension ) ); newChart.setUnits( "Points" ); //$NON-NLS-1$ ( (Axis) newChart.getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) newChart.getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) newChart.getAxes( ).get( 0 ) ).setCategoryAxis( true ); SeriesDefinition sdX = SeriesDefinitionImpl.create( ); Series categorySeries = SeriesImpl.create( ); sdX.getSeries( ).add( categorySeries ); sdX.getSeriesPalette( ).update( 0 ); ( (Axis) newChart.getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( sdX ); newChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); if ( sSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) ) { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = AreaSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (AreaSeries) valueSeries ).getMarker( ).setVisible( false ); ( (AreaSeries) valueSeries ).getLineAttributes( ) .setColor( ColorDefinitionImpl.BLUE( ) ); ( (AreaSeries) valueSeries ).setStacked( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setPercent( true ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = AreaSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (AreaSeries) valueSeries ).getMarker( ).setVisible( false ); ( (AreaSeries) valueSeries ).getLineAttributes( ) .setColor( ColorDefinitionImpl.BLUE( ) ); ( (AreaSeries) valueSeries ).setStacked( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( OVERLAY_SUBTYPE_LITERAL ) ) { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = AreaSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (AreaSeries) valueSeries ).getMarker( ).setVisible( false ); ( (AreaSeries) valueSeries ).getLineAttributes( ) .setColor( ColorDefinitionImpl.BLUE( ) ); ( (AreaSeries) valueSeries ).setStacked( false ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } if ( sDimension.equals( THREE_DIMENSION_TYPE ) ) { newChart.setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); newChart.setUnitSpacing( 50 ); newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ).clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); newChart.getPrimaryOrthogonalAxis( newChart.getPrimaryBaseAxes( )[0] ) .getTitle( ) .getCaption( ) .getFont( ) .setRotation( 0 ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); } addSampleData( newChart ); return newChart; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/182827fe6ad4e223adc4bf4bcf44d469847b773d/AreaChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/AreaChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14804,
7454,
12,
514,
272,
30511,
16,
531,
12556,
9820,
16,
1082,
202,
780,
272,
8611,
16,
14804,
783,
7984,
262,
202,
95,
202,
202,
7984,
1190,
26494,
394,
7984,
273,
446,
31,
202,
202,
430,
261,
783,
7984,
480,
446,
262,
202,
202,
95,
1082,
202,
2704,
7984,
273,
261,
7984,
1190,
26494,
13,
336,
22063,
7984,
12,
783,
7984,
16,
6862,
202,
87,
30511,
16,
6862,
202,
19235,
16,
6862,
202,
87,
8611,
11272,
1082,
202,
430,
261,
394,
7984,
480,
446,
262,
1082,
202,
95,
9506,
202,
2463,
394,
7984,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2704,
7984,
273,
14804,
1190,
26494,
2828,
18,
2640,
12,
11272,
202,
202,
2704,
7984,
18,
542,
559,
12,
3463,
67,
23225,
11272,
202,
202,
2704,
7984,
18,
542,
30511,
12,
272,
30511,
11272,
202,
202,
2704,
7984,
18,
542,
14097,
12,
9820,
11272,
202,
202,
2704,
7984,
18,
542,
8611,
12,
20283,
1290,
12,
272,
8611,
262,
11272,
202,
202,
2704,
7984,
18,
542,
7537,
12,
315,
5636,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
12,
261,
6558,
13,
394,
7984,
18,
588,
26494,
12,
262,
18,
588,
12,
374,
262,
262,
18,
542,
14097,
12,
531,
12556,
18,
44,
20344,
67,
23225,
11272,
202,
202,
12,
261,
6558,
13,
394,
7984,
18,
588,
26494,
12,
262,
18,
588,
12,
374,
262,
262,
18,
542,
559,
12,
15509,
559,
18,
5151,
67,
23225,
11272,
202,
202,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14804,
7454,
12,
514,
272,
30511,
16,
531,
12556,
9820,
16,
1082,
202,
780,
272,
8611,
16,
14804,
783,
7984,
262,
202,
95,
202,
202,
7984,
1190,
26494,
394,
7984,
273,
446,
31,
202,
202,
430,
261,
783,
7984,
480,
446,
262,
202,
202,
95,
1082,
202,
2704,
7984,
273,
261,
7984,
1190,
26494,
13,
336,
22063,
7984,
12,
783,
7984,
16,
6862,
202,
87,
30511,
16,
6862,
202,
19235,
16,
6862,
202,
87,
8611,
11272,
1082,
202,
430,
261,
394,
7984,
480,
446,
262,
1082,
202,
95,
9506,
202,
2463,
394,
7984,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2704,
7984,
273,
14804,
1190,
26494,
2828,
18,
2640,
12,
11272,
202,
202,
2704,
2
] |
+ TaskRepositoriesView.NAME + ".");
|
+ TaskRepositoriesView.NAME + ".\n\n"); MylarStatusHandler.log(e, "Failed to retrieve products from server");
|
private void initProducts() { // try to get the list of products from the server if (!bugWizard.model.hasParsedProducts()) { String repositoryUrl = repository.getUrl(); try { String[] storedProducts = BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_PRODUCT, null, repositoryUrl); if (storedProducts.length > 0) { products = Arrays.asList(storedProducts); } else { products = BugzillaServerFacade.getProductList(repository.getUrl(), TasksUiPlugin.getDefault() .getProxySettings(), repository.getUserName(), repository.getPassword(), repository .getCharacterEncoding()); } bugWizard.model.setConnected(true); bugWizard.model.setParsedProductsStatus(true); } catch (Exception e) { bugWizard.model.setConnected(false); PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openError(Display.getDefault().getActiveShell(), NEW_BUGZILLA_TASK_ERROR_TITLE, "Unable to get products. Ensure proper repository configuration in " + TaskRepositoriesView.NAME + "."); } }); } } }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/3cadf1d4fe7ee5bfe2841c88dcb73dc0d1c1f333/BugzillaProductPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
13344,
1435,
288,
202,
202,
759,
775,
358,
336,
326,
666,
434,
10406,
628,
326,
1438,
202,
202,
430,
16051,
925,
27130,
18,
2284,
18,
5332,
11257,
13344,
10756,
288,
1082,
202,
780,
3352,
1489,
273,
3352,
18,
588,
1489,
5621,
1082,
202,
698,
288,
9506,
202,
780,
8526,
4041,
13344,
273,
16907,
15990,
13943,
3773,
18,
588,
1138,
1320,
12,
13450,
637,
15990,
2918,
18,
16386,
67,
25883,
16,
446,
16,
25083,
202,
9071,
1489,
1769,
9506,
202,
430,
261,
22601,
13344,
18,
2469,
405,
374,
13,
288,
6862,
202,
18736,
273,
5647,
18,
345,
682,
12,
22601,
13344,
1769,
9506,
202,
97,
469,
288,
6862,
202,
18736,
273,
16907,
15990,
2081,
12467,
18,
588,
4133,
682,
12,
9071,
18,
588,
1489,
9334,
20350,
13943,
3773,
18,
588,
1868,
1435,
6862,
1082,
202,
18,
588,
3886,
2628,
9334,
3352,
18,
588,
15296,
9334,
3352,
18,
588,
3913,
9334,
3352,
6862,
1082,
202,
18,
588,
7069,
4705,
10663,
9506,
202,
97,
9506,
202,
925,
27130,
18,
2284,
18,
542,
8932,
12,
3767,
1769,
9506,
202,
925,
27130,
18,
2284,
18,
542,
11257,
13344,
1482,
12,
3767,
1769,
1082,
202,
97,
1044,
261,
503,
425,
13,
288,
9506,
202,
925,
27130,
18,
2284,
18,
542,
8932,
12,
5743,
1769,
9506,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
4236,
7675,
3810,
1905,
12,
2704,
10254,
1435,
288,
6862,
202,
482,
918,
1086,
1435,
288,
25083,
202,
1079,
6353,
18,
3190,
668,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
13344,
1435,
288,
202,
202,
759,
775,
358,
336,
326,
666,
434,
10406,
628,
326,
1438,
202,
202,
430,
16051,
925,
27130,
18,
2284,
18,
5332,
11257,
13344,
10756,
288,
1082,
202,
780,
3352,
1489,
273,
3352,
18,
588,
1489,
5621,
1082,
202,
698,
288,
9506,
202,
780,
8526,
4041,
13344,
273,
16907,
15990,
13943,
3773,
18,
588,
1138,
1320,
12,
13450,
637,
15990,
2918,
18,
16386,
67,
25883,
16,
446,
16,
25083,
202,
9071,
1489,
1769,
9506,
202,
430,
261,
22601,
13344,
18,
2469,
405,
374,
13,
288,
6862,
202,
18736,
273,
5647,
18,
345,
682,
12,
22601,
13344,
1769,
9506,
202,
97,
469,
288,
6862,
202,
18736,
273,
16907,
15990,
2081,
12467,
2
] |
String name = event.getTask().getTaskName();
|
String name = event.getTask().getName();
|
public void messageLogged( BuildEvent event ) { // Filter out messages based on priority if( event.getPriority() <= msgOutputLevel ) { StringBuffer message = new StringBuffer(); // Print out the name of the task if we're in one if( event.getTask() != null ) { String name = event.getTask().getTaskName(); if( !emacsMode ) { String label = "[" + name + "] "; for( int i = 0; i < ( LEFT_COLUMN_SIZE - label.length() ); i++ ) { message.append( " " ); } message.append( label ); } } message.append( event.getMessage() ); String msg = message.toString(); if( event.getPriority() != Project.MSG_ERR ) { out.println( msg ); } else { err.println( msg ); } log( msg ); } }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/a7e57725e0310ca20182465f2ab2aa877ac5b9b5/DefaultLogger.java/clean/proposal/myrmidon/src/todo/org/apache/tools/ant/DefaultLogger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
883,
19862,
12,
3998,
1133,
871,
262,
565,
288,
3639,
368,
4008,
596,
2743,
2511,
603,
4394,
3639,
309,
12,
871,
18,
588,
8183,
1435,
1648,
1234,
1447,
2355,
262,
3639,
288,
5411,
6674,
883,
273,
394,
6674,
5621,
5411,
368,
3038,
596,
326,
508,
434,
326,
1562,
309,
732,
4565,
316,
1245,
5411,
309,
12,
871,
18,
588,
2174,
1435,
480,
446,
262,
5411,
288,
7734,
514,
508,
273,
871,
18,
588,
2174,
7675,
17994,
5621,
7734,
309,
12,
401,
351,
28965,
2309,
262,
7734,
288,
10792,
514,
1433,
273,
13626,
397,
508,
397,
9850,
13636,
10792,
364,
12,
509,
277,
273,
374,
31,
277,
411,
261,
9686,
67,
11009,
67,
4574,
300,
1433,
18,
2469,
1435,
11272,
277,
9904,
262,
10792,
288,
13491,
883,
18,
6923,
12,
315,
315,
11272,
10792,
289,
10792,
883,
18,
6923,
12,
1433,
11272,
7734,
289,
5411,
289,
5411,
883,
18,
6923,
12,
871,
18,
24906,
1435,
11272,
5411,
514,
1234,
273,
883,
18,
10492,
5621,
5411,
309,
12,
871,
18,
588,
8183,
1435,
480,
5420,
18,
11210,
67,
9712,
262,
5411,
288,
7734,
596,
18,
8222,
12,
1234,
11272,
5411,
289,
5411,
469,
5411,
288,
7734,
393,
18,
8222,
12,
1234,
11272,
5411,
289,
5411,
613,
12,
1234,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
883,
19862,
12,
3998,
1133,
871,
262,
565,
288,
3639,
368,
4008,
596,
2743,
2511,
603,
4394,
3639,
309,
12,
871,
18,
588,
8183,
1435,
1648,
1234,
1447,
2355,
262,
3639,
288,
5411,
6674,
883,
273,
394,
6674,
5621,
5411,
368,
3038,
596,
326,
508,
434,
326,
1562,
309,
732,
4565,
316,
1245,
5411,
309,
12,
871,
18,
588,
2174,
1435,
480,
446,
262,
5411,
288,
7734,
514,
508,
273,
871,
18,
588,
2174,
7675,
17994,
5621,
7734,
309,
12,
401,
351,
28965,
2309,
262,
7734,
288,
10792,
514,
1433,
273,
13626,
397,
508,
397,
9850,
13636,
10792,
364,
12,
509,
277,
273,
374,
31,
277,
411,
261,
9686,
67,
11009,
67,
4574,
300,
1433,
18,
2
] |
return getContextClassLoader().loadClass(className, true).asClass();
|
return getContextClassLoader().asClassLoader().loadClass(className);
|
public static Class forName(String className) throws ClassNotFoundException { return getContextClassLoader().loadClass(className, true).asClass(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/VmSystem.java/buggy/core/src/core/org/jnode/vm/VmSystem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1659,
11595,
12,
780,
2658,
13,
1216,
10403,
288,
202,
202,
2463,
23384,
7675,
945,
797,
12,
12434,
16,
638,
2934,
345,
797,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1659,
11595,
12,
780,
2658,
13,
1216,
10403,
288,
202,
202,
2463,
23384,
7675,
945,
797,
12,
12434,
16,
638,
2934,
345,
797,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
AttributedCharacterIterator iter = las.getIterator();
|
AttributedCharacterIterator iter = las.getIterator();
|
protected List buildAttributedStrings(BridgeContext ctx, Element element, GraphicsNode node, boolean top, LinkedList result) { // !!! return two lists Map m = getAttributeMap(ctx, element, node); String s = XMLSupport.getXMLSpace(element); boolean preserve = s.equals("preserve"); boolean first = true; boolean last; boolean stripFirst = !preserve; boolean stripLast = !preserve; Element nodeElement = element; AttributedString as = null; if (!result.isEmpty()) { as = (AttributedString) result.getLast(); } for (Node n = element.getFirstChild(); n != null; n = n.getNextSibling()) { last = n.getNextSibling() == null; int lastChar = (as != null) ? (as.getIterator().last()) : CharacterIterator.DONE; stripFirst = !preserve && first && (top || (lastChar == ' ') || (lastChar == CharacterIterator.DONE)); switch (n.getNodeType()) { case Node.ELEMENT_NODE: nodeElement = (Element)n; if (n.getLocalName().equals("tspan")) { buildAttributedStrings(ctx, nodeElement, node, false, result); } else if (n.getLocalName().equals("tref")) { try { String uriStr = XLinkSupport.getXLinkHref((Element)n); SVGDocument svgDoc = (SVGDocument)element.getOwnerDocument(); URL baseURL = ((SVGOMDocument)svgDoc).getURLObject(); URL url = new URL(baseURL, uriStr); DocumentLoader loader = ctx.getDocumentLoader(); URIResolver resolver = new URIResolver(svgDoc, loader); Element ref = (Element)resolver.getNode(url.toString()); s = getElementContent(ref); Map map = getAttributeMap(ctx, nodeElement, node); int[] indexMap = new int[s.length()]; as = createAttributedString(s, map, indexMap, preserve, stripFirst, last && top); if (as != null) { addGlyphPositionAttributes( as, true, indexMap, ctx, nodeElement); stripLast = !preserve && (as.getIterator().first() == ' '); if (stripLast) { AttributedString las = (AttributedString) result.removeLast(); if (las != null) { AttributedCharacterIterator iter = las.getIterator(); int endIndex = iter.getEndIndex()-1; if (iter.setIndex(endIndex) == ' ') { las = new AttributedString( las.getIterator(null, iter.getBeginIndex(), endIndex)); } result.add(las); } } result.add(as); } } catch(MalformedURLException ex) { throw new IllegalAttributeValueException( Messages.formatMessage("tref.xlinkHref.badURL", null)); } catch (Exception ex) { /* Nothing to do */ } } break; case Node.TEXT_NODE: s = n.getNodeValue(); int[] indexMap = new int[s.length()]; as = createAttributedString( s, m, indexMap, preserve, stripFirst, last && top); if (as != null) { if (first) { addGlyphPositionAttributes(as, !top, indexMap, ctx, element); } stripLast = !preserve && (as.getIterator().first() == ' '); if (stripLast && !result.isEmpty()) { AttributedString las = (AttributedString) result.removeLast(); if (las != null) { AttributedCharacterIterator iter = las.getIterator(); int endIndex = iter.getEndIndex()-1; if (iter.setIndex(endIndex) == ' ') { las = new AttributedString( las.getIterator(null, iter.getBeginIndex(), endIndex)); } result.add(las); } } result.add(as); } } first = false; } return result; }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/53cdbea418666ebb910c6f217e648b1581a19135/SVGTextElementBridge.java/buggy/sources/org/apache/batik/bridge/SVGTextElementBridge.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
987,
1361,
861,
11050,
7957,
12,
13691,
1042,
1103,
16,
4766,
1850,
3010,
930,
16,
4766,
1850,
16830,
907,
756,
16,
4766,
1850,
1250,
1760,
16,
4766,
1850,
10688,
563,
13,
288,
3639,
368,
401,
8548,
327,
2795,
6035,
3639,
1635,
312,
273,
4061,
863,
12,
5900,
16,
930,
16,
756,
1769,
3639,
514,
272,
273,
3167,
6289,
18,
588,
4201,
3819,
12,
2956,
1769,
3639,
1250,
9420,
273,
272,
18,
14963,
2932,
27297,
8863,
3639,
1250,
1122,
273,
638,
31,
3639,
1250,
1142,
31,
3639,
1250,
2569,
3759,
273,
401,
27297,
31,
3639,
1250,
2569,
3024,
273,
401,
27297,
31,
3639,
3010,
756,
1046,
273,
930,
31,
3639,
2380,
11050,
780,
487,
273,
446,
31,
3639,
309,
16051,
2088,
18,
291,
1921,
10756,
288,
5411,
487,
273,
261,
861,
11050,
780,
13,
563,
18,
588,
3024,
5621,
3639,
289,
3639,
364,
261,
907,
290,
273,
930,
18,
588,
3759,
1763,
5621,
2398,
290,
480,
446,
31,
2398,
290,
273,
290,
18,
588,
2134,
10291,
10756,
288,
5411,
1142,
273,
290,
18,
588,
2134,
10291,
1435,
422,
446,
31,
5411,
509,
23914,
273,
261,
345,
480,
446,
13,
692,
5375,
261,
345,
18,
588,
3198,
7675,
2722,
10756,
294,
6577,
3198,
18,
26875,
31,
5411,
2569,
3759,
273,
401,
27297,
597,
1122,
597,
5375,
261,
3669,
747,
5375,
261,
2722,
2156,
422,
296,
8624,
747,
5375,
261,
2722,
2156,
422,
6577,
3198,
18,
26875,
10019,
5411,
1620,
261,
82,
18,
588,
15101,
10756,
288,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
987,
1361,
861,
11050,
7957,
12,
13691,
1042,
1103,
16,
4766,
1850,
3010,
930,
16,
4766,
1850,
16830,
907,
756,
16,
4766,
1850,
1250,
1760,
16,
4766,
1850,
10688,
563,
13,
288,
3639,
368,
401,
8548,
327,
2795,
6035,
3639,
1635,
312,
273,
4061,
863,
12,
5900,
16,
930,
16,
756,
1769,
3639,
514,
272,
273,
3167,
6289,
18,
588,
4201,
3819,
12,
2956,
1769,
3639,
1250,
9420,
273,
272,
18,
14963,
2932,
27297,
8863,
3639,
1250,
1122,
273,
638,
31,
3639,
1250,
1142,
31,
3639,
1250,
2569,
3759,
273,
401,
27297,
31,
3639,
1250,
2569,
3024,
273,
401,
27297,
31,
3639,
3010,
756,
1046,
273,
930,
31,
3639,
2380,
11050,
780,
487,
273,
446,
31,
3639,
2
] |
if ( user.canAccess( document ) && imcref.checkDocAdminRights( intMetaId, user ) ) {
|
if ( user.canEdit( document ) ) {
|
public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets get the parameters and validate them Properties params = this.getParameters( req ); UserDomainObject user = Utility.getLoggedOnUser( req ); if ( !isUserAuthorized( req, res, user ) ) { return; } // Lets get the replylist from DB String discId = params.getProperty( "DISC_ID" ); String userId = ""; // Lets update the sessions DISC_ID HttpSession session = req.getSession( false ); if ( session != null ) { session.setAttribute( "Conference.disc_id", discId ); userId = (String)session.getAttribute( "Conference.user_id" ); } // Lets get serverinformation ImcmsServices imcref = Imcms.getServices(); String[][] sqlAnswer = imcref.sqlProcedureMulti( "A_GetAllRepliesInDisc", new String[]{discId, userId} ); // Lets get the discussion header String discHeader = imcref.sqlProcedureStr( "A_GetDiscussionHeader", new String[]{discId} ); if ( discHeader == null || discId.equalsIgnoreCase( "-1" ) ) discHeader = " "; // THIS CODE IS USED IF WE WANT RADIOBUTTONS // UsersSortOrderRadioButtons String metaId = params.getProperty( "META_ID" ); int intMetaId = Integer.parseInt( metaId ); String sortOrderValue = imcref.sqlProcedureStr( "A_ConfUsersGetReplyOrderSel", new String[]{metaId, userId} ); String ascState = ""; String descState = ""; String ascVal = "0"; if ( sortOrderValue.equalsIgnoreCase( "1" ) ) ascState = "checked"; else descState = "checked"; // SYNTAX: date first_name last_name headline text reply_level // Lets build our variable list Vector tagsV = new Vector(); tagsV.add( "#REPLY_DATE#" ); tagsV.add( "#FIRST_NAME#" ); tagsV.add( "#LAST_NAME#" ); tagsV.add( "#REPLY_HEADER#" ); tagsV.add( "#REPLY_TEXT#" ); tagsV.add( "#REPLY_LEVEL#" ); // Lets get path to the imagefolder. http://dev.imcode.com/images/102/ConfDiscNew.gif String imagePath = super.getExternalImageFolder( req ) + "ConfExpert.gif"; // Lets get the part of the expert html // Lets get the part of an html page, wich will be parsed for every a Href reference File templateLib = super.getExternalTemplateFolder( req ); File aSnippetFile = new File( templateLib, RECS_HTML ); // Lets update the discussion list this.updateDiscFlagList( req, discId ); // Lets preparse all records String allRecs = " "; if ( sqlAnswer != null ) allRecs = preParse( sqlAnswer, tagsV, aSnippetFile, imagePath ); // Lets build the Responsepage //lets generate the buttons that should appear String commentButton = " "; //lets show comment button if user has more than readrights DocumentMapper documentMapper = imcref.getDocumentMapper(); DocumentDomainObject document = documentMapper.getDocument(intMetaId); if ( user.canAccess( document ) && imcref.checkDocAdminRights( intMetaId, user ) ) { VariableManager vmButtons = new VariableManager(); vmButtons.addProperty( "#SERVLET_URL#", "" ); vmButtons.addProperty( "#IMAGE_URL#", this.getExternalImageFolder( req ) ); commentButton = getTemplate( NEW_COMMENT_TEMPLATE, user, vmButtons.getTagsAndData() ); } VariableManager vm = new VariableManager(); vm.addProperty( "NEW_COMMENT", commentButton ); vm.addProperty( "USER_SORT_ORDER", ascVal ); vm.addProperty( "CHECKBOX_STATE_ASC", ascState ); vm.addProperty( "CHECKBOX_STATE_DESC", descState ); vm.addProperty( "REPLIES_RECORDS", allRecs ); vm.addProperty( "CURRENT_DISCUSSION_HEADER", discHeader ); vm.addProperty( "ADMIN_LINK_HTML", ADMIN_LINK_TEMPLATE ); this.sendHtml( req, res, vm, HTML_TEMPLATE ); }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/962b9fbccc20a9dc1f7559965c2b0b91e0712a46/ConfReply.java/clean/server/src/com/imcode/imcms/servlet/conference/ConfReply.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
336,
326,
1472,
471,
1954,
2182,
3639,
6183,
859,
273,
333,
18,
588,
2402,
12,
1111,
11272,
3639,
2177,
3748,
921,
729,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
1111,
11272,
3639,
309,
261,
401,
291,
1299,
15341,
12,
1111,
16,
400,
16,
729,
262,
262,
288,
5411,
327,
31,
3639,
289,
3639,
368,
511,
2413,
336,
326,
4332,
1098,
628,
2383,
3639,
514,
19169,
548,
273,
859,
18,
588,
1396,
12,
315,
2565,
2312,
67,
734,
6,
11272,
3639,
514,
6249,
273,
1408,
31,
3639,
368,
511,
2413,
1089,
326,
8856,
3690,
2312,
67,
734,
3639,
26166,
1339,
273,
1111,
18,
588,
2157,
12,
629,
11272,
3639,
309,
261,
1339,
480,
446,
262,
288,
5411,
1339,
18,
542,
1499,
12,
315,
23870,
18,
2251,
71,
67,
350,
3113,
19169,
548,
11272,
5411,
6249,
273,
261,
780,
13,
3184,
18,
588,
1499,
12,
315,
23870,
18,
1355,
67,
350,
6,
11272,
3639,
289,
3639,
368,
511,
2413,
336,
1438,
13117,
3639,
2221,
6851,
5676,
709,
71,
1734,
273,
2221,
6851,
18,
588,
5676,
5621,
3639,
514,
63,
6362,
65,
1847,
13203,
273,
709,
71,
1734,
18,
4669,
17213,
5002,
12,
315,
37,
67,
21413,
17647,
382,
28912,
3113,
394,
514,
63,
7073,
2251,
71,
548,
16,
6249,
97,
11272,
3639,
368,
511,
2413,
336,
326,
14716,
1446,
3639,
514,
19169,
1864,
273,
709,
71,
1734,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
336,
326,
1472,
471,
1954,
2182,
3639,
6183,
859,
273,
333,
18,
588,
2402,
12,
1111,
11272,
3639,
2177,
3748,
921,
729,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
1111,
11272,
3639,
309,
261,
401,
291,
1299,
15341,
12,
1111,
16,
400,
16,
729,
262,
262,
288,
5411,
327,
31,
3639,
289,
3639,
368,
511,
2413,
336,
326,
4332,
1098,
628,
2383,
3639,
514,
19169,
548,
273,
859,
18,
588,
1396,
12,
315,
2565,
2312,
67,
734,
6,
11272,
3639,
514,
6249,
273,
1408,
31,
3639,
368,
511,
2413,
1089,
326,
8856,
3690,
2312,
67,
734,
3639,
26166,
2
] |
if (jj_scan_token(NEW)) return true;
|
if (jj_scan_token(DOT)) return true;
|
final private boolean jj_3_24() { if (jj_scan_token(NEW)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_56()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_234()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
3247,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
17591,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4313,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
17959,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
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,
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,
10684,
67,
23,
67,
3247,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
17591,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4313,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
17959,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
2
] |
final Object o = (oOutputIdentifier instanceof String) ? new File((String) oOutputIdentifier) : oOutputIdentifier;
|
final Object o = (_oOutputIdentifier instanceof String) ? new File((String) _oOutputIdentifier) : _oOutputIdentifier;
|
public final void after() throws RenderingException { super.after(); // SEARCH FOR WRITER USING FORMAT Iterator it = null; String s = getFormat(); if (s != null) { it = ImageIO.getImageWritersByFormatName(s); if (!it.hasNext()) { it = null; // GET INTO NEXT CONSTRUCT; SEARCH BY MIME TYPE } } // SEARCH FOR WRITER USING MIME TYPE if (it == null) { s = getMimeType(); if (s == null) { throw new RenderingException("Unable to find any registered image writers for mime type [" + getMimeType() + "] and format [" + getFormat() + "] for " + getClass().getName()); } it = ImageIO.getImageWritersByMIMEType(s); if (!it.hasNext()) { throw new RenderingException("Unable to find any registered image writers for mime type [" + getMimeType() + "]"); } } final ImageWriter iw = (ImageWriter) it.next(); DefaultLoggerImpl.instance().log(ILogger.INFORMATION, "Using "+getFormat()+" image writer " + iw.getClass().getName()); final Object o = (oOutputIdentifier instanceof String) ? new File((String) oOutputIdentifier) : oOutputIdentifier; try { final ImageOutputStream ios = ImageIO.createImageOutputStream(o); updateWriterParameters(iw.getDefaultWriteParam()); // SET ANY OUTPUT FORMAT SPECIFIC PARAMETERS IF NEEDED iw.setOutput(ios); iw.write((BufferedImage) img); ios.close(); } catch (Exception ex) { throw new RenderingException(ex); } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/33beeddc227788afba30169ba3caf62900be93f8/JavaxImageIOWriter.java/clean/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/JavaxImageIOWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1839,
1435,
1216,
18018,
503,
565,
288,
377,
202,
9565,
18,
5205,
5621,
377,
202,
377,
202,
759,
24053,
12108,
12984,
11844,
11836,
1360,
10449,
377,
202,
3198,
518,
273,
446,
31,
377,
202,
780,
272,
273,
10959,
5621,
377,
202,
430,
261,
87,
480,
446,
13,
377,
202,
95,
5411,
518,
273,
3421,
4294,
18,
588,
2040,
27508,
858,
1630,
461,
12,
87,
1769,
5411,
309,
16051,
305,
18,
5332,
2134,
10756,
5411,
288,
7734,
518,
273,
446,
31,
368,
4978,
12421,
19252,
3492,
13915,
31,
24053,
6953,
13195,
3463,
5411,
289,
377,
202,
97,
377,
202,
377,
202,
759,
24053,
12108,
12984,
11844,
11836,
1360,
13195,
3463,
377,
202,
430,
261,
305,
422,
446,
13,
377,
202,
95,
377,
202,
565,
272,
273,
21078,
5621,
377,
202,
565,
309,
261,
87,
422,
446,
13,
377,
202,
565,
288,
7734,
604,
394,
18018,
503,
2932,
3370,
358,
1104,
1281,
4104,
1316,
18656,
364,
4892,
618,
8247,
397,
21078,
1435,
397,
9850,
471,
740,
8247,
397,
10959,
1435,
397,
9850,
364,
315,
397,
2900,
7675,
17994,
10663,
377,
202,
565,
289,
5411,
518,
273,
3421,
4294,
18,
588,
2040,
27508,
858,
18178,
559,
12,
87,
1769,
5411,
309,
16051,
305,
18,
5332,
2134,
10756,
5411,
288,
7734,
604,
394,
18018,
503,
2932,
3370,
358,
1104,
1281,
4104,
1316,
18656,
364,
4892,
618,
8247,
397,
21078,
1435,
397,
9870,
1769,
5411,
289,
377,
202,
97,
3639,
727,
3421,
2289,
25522,
273,
261,
2040,
2289,
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,
727,
918,
1839,
1435,
1216,
18018,
503,
565,
288,
377,
202,
9565,
18,
5205,
5621,
377,
202,
377,
202,
759,
24053,
12108,
12984,
11844,
11836,
1360,
10449,
377,
202,
3198,
518,
273,
446,
31,
377,
202,
780,
272,
273,
10959,
5621,
377,
202,
430,
261,
87,
480,
446,
13,
377,
202,
95,
5411,
518,
273,
3421,
4294,
18,
588,
2040,
27508,
858,
1630,
461,
12,
87,
1769,
5411,
309,
16051,
305,
18,
5332,
2134,
10756,
5411,
288,
7734,
518,
273,
446,
31,
368,
4978,
12421,
19252,
3492,
13915,
31,
24053,
6953,
13195,
3463,
5411,
289,
377,
202,
97,
377,
202,
377,
202,
759,
24053,
12108,
12984,
11844,
11836,
1360,
13195,
3463,
377,
202,
430,
261,
305,
422,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.