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 |
|---|---|---|---|---|---|---|
case Id_getUTCMilliseconds: { double t = realThis(thisObj, f).date; | case Id_getUTCMilliseconds: | public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(DATE_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); switch (id) { case ConstructorId_now: return wrap_double(now()); case ConstructorId_parse: { String dataStr = ScriptRuntime.toString(args, 0); return wrap_double(date_parseString(dataStr)); } case ConstructorId_UTC: return wrap_double(jsStaticFunction_UTC(args)); case Id_constructor: { // if called as a function, just return a string // representing the current time. if (thisObj != null) return date_format(now(), Id_toString); return jsConstructor(args); } case Id_toString: case Id_toTimeString: case Id_toDateString: return date_format(realThis(thisObj, f).date, id); case Id_toLocaleString: case Id_toLocaleTimeString: case Id_toLocaleDateString: return toLocale_helper(realThis(thisObj, f).date, id); case Id_toUTCString: { double t = realThis(thisObj, f).date; if (t == t) { return js_toUTCString(t); } return js_NaN_date_str; } case Id_toSource: { double t = realThis(thisObj, f).date; return "(new Date("+ScriptRuntime.toString(t)+"))"; } case Id_valueOf: case Id_getTime: return wrap_double(realThis(thisObj, f).date); case Id_getYear: case Id_getFullYear: case Id_getUTCFullYear: { double t = realThis(thisObj, f).date; if (t == t) { if (id != Id_getUTCFullYear) t = LocalTime(t); t = YearFromTime(t); if (id == Id_getYear) { if (cx.hasFeature(Context.FEATURE_NON_ECMA_GET_YEAR)) { if (1900 <= t && t < 2000) { t -= 1900; } } else { t -= 1900; } } } return wrap_double(t); } case Id_getMonth: case Id_getUTCMonth: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getMonth) t = LocalTime(t); t = MonthFromTime(t); } return wrap_double(t); } case Id_getDate: case Id_getUTCDate: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getDate) t = LocalTime(t); t = DateFromTime(t); } return wrap_double(t); } case Id_getDay: case Id_getUTCDay: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getDay) t = LocalTime(t); t = WeekDay(t); } return wrap_double(t); } case Id_getHours: case Id_getUTCHours: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getHours) t = LocalTime(t); t = HourFromTime(t); } return wrap_double(t); } case Id_getMinutes: case Id_getUTCMinutes: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getMinutes) t = LocalTime(t); t = MinFromTime(t); } return wrap_double(t); } case Id_getSeconds: case Id_getUTCSeconds: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getSeconds) t = LocalTime(t); t = SecFromTime(t); } return wrap_double(t); } case Id_getMilliseconds: case Id_getUTCMilliseconds: { double t = realThis(thisObj, f).date; if (t == t) { if (id == Id_getMilliseconds) t = LocalTime(t); t = msFromTime(t); } return wrap_double(t); } case Id_getTimezoneOffset: { double t = realThis(thisObj, f).date; if (t == t) { t = (t - LocalTime(t)) / msPerMinute; } return wrap_double(t); } case Id_setTime: { NativeDate real = realThis(thisObj, f); double t = ScriptRuntime.toNumber(args, 0); real.date = TimeClip(t); return wrap_double(real.date); } case Id_setMilliseconds: case Id_setUTCMilliseconds: case Id_setSeconds: case Id_setUTCSeconds: case Id_setMinutes: case Id_setUTCMinutes: case Id_setHours: case Id_setUTCHours: return wrap_double(realThis(thisObj, f).makeTime(args, id)); case Id_setDate: case Id_setUTCDate: case Id_setMonth: case Id_setUTCMonth: case Id_setFullYear: case Id_setUTCFullYear: return wrap_double(realThis(thisObj, f).makeDate(args, id)); case Id_setYear: { double year = ScriptRuntime.toNumber(args, 0); return wrap_double(realThis(thisObj, f).js_setYear(year)); } default: throw new IllegalArgumentException(String.valueOf(id)); } } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/ef2adbe0e46291a57bc6c6eda9ce45275f62985c/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
548,
1477,
12,
548,
2083,
921,
284,
16,
1772,
9494,
16,
22780,
2146,
16,
11794,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
309,
16051,
74,
18,
5332,
1805,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
548,
1477,
12,
548,
2083,
921,
284,
16,
1772,
9494,
16,
22780,
2146,
16,
11794,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
309,
16051,
74,
18,
5332,
1805,
... |
if ((directType & XSTypeDecl.SIMPLE_TYPE) != 0) { | if (directBase.getXSType() == XSTypeDecl.SIMPLE_TYPE) { | private static boolean checkComplexDerivation(XSComplexTypeDecl derived, XSTypeDecl base, int block) { // 2.1 B and D must be the same type definition. if (derived == base) return true; // 1 If B and D are not the same type definition, then the {derivation method} of D must not be in the subset. if ((derived.fDerivedBy & block) != 0) return false; // 2 One of the following must be true: XSTypeDecl directBase = derived.fBaseType; // 2.2 B must be D's {base type definition}. if (directBase == base) return true; // 2.3 All of the following must be true: int directType = directBase.getXSType(); // 2.3.1 D's {base type definition} must not be the ur-type definition. if ((directType & XSTypeDecl.UR_TYPE) != 0) return false; // 2.3.2 The appropriate case among the following must be true: // 2.3.2.1 If D's {base type definition} is complex, then it must be validly derived from B given the subset as defined by this constraint. if ((directType & XSTypeDecl.COMPLEX_TYPE) != 0) return checkComplexDerivation((XSComplexTypeDecl)directBase, base, block); // 2.3.2.2 If D's {base type definition} is simple, then it must be validly derived from B given the subset as defined in Type Derivation OK (Simple) (3.14.6). if ((directType & XSTypeDecl.SIMPLE_TYPE) != 0) { // if base is complex type if ((base.getXSType() & XSTypeDecl.COMPLEX_TYPE) != 0) { // if base is anyType, change base to anySimpleType, // otherwise, not valid if (base.getXSType() == XSTypeDecl.ANY_TYPE) base = SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_ANYSIMPLETYPE); else return false; } return checkSimpleDerivation((DatatypeValidator)derived, (DatatypeValidator)base, block); } return false; } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/4b0def86a1a96df8c8cbd5bf50c757023d94325b/XSConstraints.java/buggy/src/org/apache/xerces/impl/v2/XSConstraints.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
866,
12795,
12041,
8482,
12,
60,
55,
12795,
559,
3456,
10379,
16,
1139,
55,
559,
3456,
1026,
16,
509,
1203,
13,
288,
3639,
368,
576,
18,
21,
605,
471,
463,
1297,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
866,
12795,
12041,
8482,
12,
60,
55,
12795,
559,
3456,
10379,
16,
1139,
55,
559,
3456,
1026,
16,
509,
1203,
13,
288,
3639,
368,
576,
18,
21,
605,
471,
463,
1297,
506,
... |
int size, boolean isScalar) | int size) | public static void initializeHeaderBootTime(int ref, Object[] tib, int size, boolean isScalar) throws VM_PragmaUninterruptible { // nothing to do for boot image objects } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/fa7c084890229aa14b7d09f3663b41447333cc2d/RCBaseHeader.java/buggy/rvm/src/vm/memoryManagers/JMTk/header/RCBaseHeader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
4046,
1864,
15817,
950,
12,
474,
1278,
16,
1033,
8526,
268,
495,
16,
4766,
9079,
509,
963,
13,
565,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
368,
5083,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
4046,
1864,
15817,
950,
12,
474,
1278,
16,
1033,
8526,
268,
495,
16,
4766,
9079,
509,
963,
13,
565,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
368,
5083,
35... |
if (index < input.length) { if (ren.bitmap == null) { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); ren.buildBitmap(state, source, ((state.flags & FOLD) != 0)); } char c = input[index]; int b = (c >>> 3); if (b >= ren.bmsize) { if (ren.kid2 == -1) index++; else return -1; } else { int bit = c & 7; bit = 1 << bit; if ((ren.bitmap[b] & bit) != 0) index++; else return -1; } } else return -1; | if (index >= input.length) { return state.noMoreInput(); } if (ren.bitmap == null) { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); ren.buildBitmap(state, source, ((state.flags & FOLD) != 0)); } char c = input[index]; int b = (c >>> 3); if (b >= ren.bmsize) { if (ren.kid2 == -1) index++; else return -1; } else { int bit = c & 7; bit = 1 << bit; if ((ren.bitmap[b] & bit) != 0) index++; else return -1; } | int matchRENodes(MatchState state, RENode ren, RENode stop, int index) { int num; char[] input = state.input; while ((ren != stop) && (ren != null)) { switch (ren.op) { case REOP_EMPTY: break; case REOP_ALT: { if (ren.next.op != REOP_ALT) { ren = (RENode)ren.kid; continue; } else { num = state.parenCount; int kidMatch = matchRENodes(state, (RENode)ren.kid, stop, index); if (kidMatch != -1) return kidMatch; for (int i = num; i < state.parenCount; i++) state.parens[i].length = 0; state.parenCount = num; } } break; case REOP_QUANT: { int lastKid = -1; for (num = 0; num < ren.min; num++) { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; else { lastKid = index; index = kidMatch; } } if (num == ren.max) // Have matched the exact count required, // need to match the rest of the regexp. break; if ((ren.flags & RENode.MINIMAL) == 0) { int kidMatch = matchGreedyKid(state, ren, stop, num, index, lastKid); if (kidMatch != -1) index = kidMatch; } else { index = matchNonGreedyKid(state, ren, num, ren.max, index); if (index == -1) return -1; } } break; case REOP_PLUS: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; if ((ren.flags & RENode.MINIMAL) == 0) { index = matchGreedyKid(state, ren, stop, 1, kidMatch, index); if (index == -1) index = kidMatch; } else index = matchNonGreedyKid(state, ren, 1, 0, kidMatch); if (index == -1) return -1; } break; case REOP_STAR: if ((ren.flags & RENode.MINIMAL) == 0) { int kidMatch = matchGreedyKid(state, ren, stop, 0, index, -1); if (kidMatch != -1) index = kidMatch; } else { index = matchNonGreedyKid(state, ren, 0, 0, index); if (index == -1) return -1; } break; case REOP_OPT: { int saveNum = state.parenCount; if (((ren.flags & RENode.MINIMAL) != 0)) { int restMatch = matchRENodes(state, ren.next, stop, index); if (restMatch != -1) return restMatch; } int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) { state.parenCount = saveNum; break; } else { int restMatch = matchRENodes(state, ren.next, stop, kidMatch); if (restMatch == -1) { // need to undo the result of running the kid state.parenCount = saveNum; break; } else return restMatch; } } case REOP_LPARENNON: ren = (RENode)ren.kid; continue; case REOP_RPARENNON: break; case REOP_LPAREN: { num = ren.num; ren = (RENode)ren.kid; SubString parsub = state.parens[num]; if (parsub == null) { parsub = state.parens[num] = new SubString(); parsub.charArray = input; } parsub.index = index; parsub.length = 0; if (num >= state.parenCount) state.parenCount = num + 1; continue; } case REOP_RPAREN: { num = ren.num; SubString parsub = state.parens[num]; if (parsub == null) throw new RuntimeException("Paren problem"); parsub.length = index - parsub.index; break; } case REOP_ASSERT: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch == -1) return -1; break; } case REOP_ASSERT_NOT: { int kidMatch = matchRENodes(state, (RENode)ren.kid, ren.next, index); if (kidMatch != -1) return -1; break; } case REOP_BACKREF: { num = ren.num; if (num >= state.parens.length) { Context.reportError( ScriptRuntime.getMessage( "msg.bad.backref", null)); return -1; } SubString parsub = state.parens[num]; if (parsub == null) parsub = state.parens[num] = new SubString(); int length = parsub.length; if ((input.length - index) < length) return -1; else { for (int i = 0; i < length; i++, index++) { if (!matchChar(state.flags, input[index], parsub.charArray[parsub.index + i])) return -1; } } } break; case REOP_CCLASS: if (index < input.length) { if (ren.bitmap == null) { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); ren.buildBitmap(state, source, ((state.flags & FOLD) != 0)); } char c = input[index]; int b = (c >>> 3); if (b >= ren.bmsize) { if (ren.kid2 == -1) // a ^ class index++; else return -1; } else { int bit = c & 7; bit = 1 << bit; if ((ren.bitmap[b] & bit) != 0) index++; else return -1; } } else return -1; break; case REOP_DOT: if ((index < input.length) && (input[index] != '\n')) index++; else return -1; break; case REOP_DOTSTARMIN: { int cp2; for (cp2 = index; cp2 < input.length; cp2++) { int cp3 = matchRENodes(state, ren.next, stop, cp2); if (cp3 != -1) return cp3; if (input[cp2] == '\n') return -1; } return -1; } case REOP_DOTSTAR: { int cp2; for (cp2 = index; cp2 < input.length; cp2++) if (input[cp2] == '\n') break; while (cp2 >= index) { int cp3 = matchRENodes(state, ren.next, stop, cp2); if (cp3 != -1) { index = cp2; break; } cp2--; } break; } case REOP_WBDRY: if (((index == 0) || !isWord(input[index-1])) ^ ((index >= input.length) || !isWord(input[index]))) ; // leave index else return -1; break; case REOP_WNONBDRY: if (((index == 0) || !isWord(input[index-1])) ^ ((index < input.length) && isWord(input[index]))) ; // leave index else return -1; break; case REOP_EOLONLY: case REOP_EOL: { if (index == input.length) ; // leave index; else { Context cx = Context.getCurrentContext(); RegExpImpl reImpl = getImpl(cx); if ((reImpl.multiline) || ((state.flags & MULTILINE) != 0)) if (input[index] == '\n') ;// leave index else return -1; else return -1; } } break; case REOP_BOL: { Context cx = Context.getCurrentContext(); RegExpImpl reImpl = getImpl(cx); if (index != 0) { if ((index < input.length) && (reImpl.multiline || ((state.flags & MULTILINE) != 0))) { if (input[index - 1] == '\n') { break; } } return -1; } // leave index } break; case REOP_DIGIT: if ((index < input.length) && isDigit(input[index])) index++; else return -1; break; case REOP_NONDIGIT: if ((index < input.length) && !isDigit(input[index])) index++; else return -1; break; case REOP_ALNUM: if ((index < input.length) && isWord(input[index])) index++; else return -1; break; case REOP_NONALNUM: if ((index < input.length) && !isWord(input[index])) index++; else return -1; break; case REOP_SPACE: if ((index < input.length) && (TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index]))) index++; else return -1; break; case REOP_NONSPACE: if ((index < input.length) && !(TokenStream.isJSSpace(input[index]) || TokenStream.isJSLineTerminator(input[index]))) index++; else return -1; break; case REOP_FLAT1: if ((index < input.length) && matchChar(state.flags, ren.chr, input[index])) index++; else return -1; break; case REOP_FLAT: { char[] source = (ren.s != null) ? ren.s : this.source.toCharArray(); int start = ((Integer)ren.kid).intValue(); int length = ren.kid2 - start; if ((input.length - index) < length) return -1; else { for (int i = 0; i < length; i++, index++) { if (!matchChar(state.flags, input[index], source[start + i])) return -1; } } } break; case REOP_JUMP: break; case REOP_END: break; default : throw new RuntimeException("Unsupported by node matcher"); } ren = ren.next; } return index; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/4aee7d25d756bce350cfec71216aff6e8c8bbc4b/NativeRegExp.java/buggy/js/rhino/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
845,
862,
3205,
12,
2060,
1119,
919,
16,
2438,
907,
1654,
16,
2438,
907,
2132,
16,
509,
770,
13,
288,
3639,
509,
818,
31,
3639,
1149,
8526,
810,
273,
919,
18,
2630,
31,
3639,
132... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
845,
862,
3205,
12,
2060,
1119,
919,
16,
2438,
907,
1654,
16,
2438,
907,
2132,
16,
509,
770,
13,
288,
3639,
509,
818,
31,
3639,
1149,
8526,
810,
273,
919,
18,
2630,
31,
3639,
132... |
try { Data data = (Data) super.clone(); return data; } catch (CloneNotSupportedException e) { throw new InternalError(e.toString()); } | try { Data data = (Data) super.clone(); return data; } catch (CloneNotSupportedException e) { throw new InternalError(e.toString()); } | public Object clone() throws CloneNotSupportedException { try { Data data = (Data) super.clone(); return data; } catch (CloneNotSupportedException e) { throw new InternalError(e.toString()); } } | 47105 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47105/8d068727feb8f2aa82272a3fd7ef1dce7f828cfb/FloatData.java/buggy/sphinx4/src/sphinx4/edu/cmu/sphinx/frontend/FloatData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3236,
1435,
1216,
12758,
25482,
288,
202,
698,
288,
202,
565,
1910,
501,
273,
261,
751,
13,
2240,
18,
14056,
5621,
202,
565,
327,
501,
31,
202,
97,
1044,
261,
10930,
25482,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3236,
1435,
1216,
12758,
25482,
288,
202,
698,
288,
202,
565,
1910,
501,
273,
261,
751,
13,
2240,
18,
14056,
5621,
202,
565,
327,
501,
31,
202,
97,
1044,
261,
10930,
25482,
... |
public org.quickfix.field.CFICode getCFICode() throws FieldNotFound { org.quickfix.field.CFICode value = new org.quickfix.field.CFICode(); | public quickfix.field.CFICode getCFICode() throws FieldNotFound { quickfix.field.CFICode value = new quickfix.field.CFICode(); | public org.quickfix.field.CFICode getCFICode() throws FieldNotFound { org.quickfix.field.CFICode value = new org.quickfix.field.CFICode(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelRequest.java/clean/src/java/src/quickfix/fix43/OrderCancelRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
1927,
1653,
1085,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
460,
273,
394,
2358,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
1927,
1653,
1085,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
460,
273,
394,
2358,
18... |
FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle( NotationPackage.eINSTANCE.getFontStyle()); | FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(NotationPackage.eINSTANCE.getFontStyle()); | protected void refreshUnderline() { FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle( NotationPackage.eINSTANCE.getFontStyle()); if (style != null && getFigure() instanceof WrapLabel) { ((WrapLabel) getFigure()).setTextUnderline(style.isUnderline()); } } | 56962 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56962/816096641504ba96db7bef449fe01a4b67ff0d37/OpaqueActionNameEditPart.java/buggy/plugins/org.eclipse.uml2.diagram.activity/src/org/eclipse/uml2/diagram/activity/edit/parts/OpaqueActionNameEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4460,
14655,
1369,
1435,
288,
202,
202,
5711,
2885,
2154,
273,
261,
5711,
2885,
13,
18776,
2885,
5541,
1767,
7675,
588,
2885,
12,
9506,
202,
14818,
2261,
18,
73,
13341,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4460,
14655,
1369,
1435,
288,
202,
202,
5711,
2885,
2154,
273,
261,
5711,
2885,
13,
18776,
2885,
5541,
1767,
7675,
588,
2885,
12,
9506,
202,
14818,
2261,
18,
73,
13341,
18... |
assertTrue("Insert test failed", testBuffer.toString().equals( "This is a test STRING buffer")); | assertEquals("Insert test failed", "This is a test STRING buffer", testBuffer.toString()); | public void test_insertILjava_lang_String() { // Test for method java.lang.StringBuffer // java.lang.StringBuffer.insert(int, java.lang.String) testBuffer.insert(15, "STRING "); assertTrue("Insert test failed", testBuffer.toString().equals( "This is a test STRING buffer")); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/StringBufferTest.java/buggy/modules/luni/src/test/java/tests/api/java/lang/StringBufferTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
6387,
2627,
6290,
67,
4936,
67,
780,
1435,
288,
202,
202,
759,
7766,
364,
707,
2252,
18,
4936,
18,
780,
1892,
202,
202,
759,
2252,
18,
4936,
18,
780,
1892,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
6387,
2627,
6290,
67,
4936,
67,
780,
1435,
288,
202,
202,
759,
7766,
364,
707,
2252,
18,
4936,
18,
780,
1892,
202,
202,
759,
2252,
18,
4936,
18,
780,
1892,
18... |
final VmClassLoader systemLoader = VmSystem.systemLoader; | final VmSystemClassLoader systemLoader = VmSystem.systemLoader; | protected static AbstractVmClassLoader getContextClassLoader() { final VmStackReader reader = Unsafe.getCurrentProcessor().getArchitecture().getStackReader(); final VmClassLoader systemLoader = VmSystem.systemLoader; Address f = Unsafe.getCurrentFrame(); while (reader.isValid(f)) { final VmMethod method = reader.getMethod(f); final AbstractVmClassLoader loader = method.getDeclaringClass().getLoader(); if ((loader != null) && (loader != systemLoader)) { return loader; } else { f = reader.getPrevious(f); } } return systemLoader; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/c2a519140737c4d249f6c5d568256db2030112e9/VmSystem.java/clean/core/src/core/org/jnode/vm/VmSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
4115,
22143,
7805,
23384,
1435,
288,
202,
202,
6385,
776,
81,
2624,
2514,
2949,
273,
27476,
18,
588,
3935,
5164,
7675,
588,
12269,
18123,
7675,
588,
2624,
2514,
5621,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
4115,
22143,
7805,
23384,
1435,
288,
202,
202,
6385,
776,
81,
2624,
2514,
2949,
273,
27476,
18,
588,
3935,
5164,
7675,
588,
12269,
18123,
7675,
588,
2624,
2514,
5621,
202,
... |
super(templates); } | super(templates); } | public OCLExpander(Map templates) { super(templates); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/OCLExpander.java/buggy/src_new/org/argouml/ocl/OCLExpander.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
531,
5017,
12271,
264,
12,
863,
5539,
13,
288,
565,
2240,
12,
8502,
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,
... | [
1,
1,
1,
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,
1071,
531,
5017,
12271,
264,
12,
863,
5539,
13,
288,
565,
2240,
12,
8502,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
{ return 32; } | { return 32; } | public int getMaxProcedureNameLength() throws SQLException { return 32; } | 45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
7288,
17213,
461,
1782,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
3847,
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,
... | [
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
7288,
17213,
461,
1782,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
3847,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
i2pSocketOS.write(buf, 0, read); | else if (read > 0) i2pSocketOS.write(buf, 0, read); | public boolean sendBytes(InputStream in, int size) { // byte[] data) { if (_log.shouldLog(Log.DEBUG)) { _log.debug("Handler " + id + ": sending " + size + " bytes"); } ByteCache cache = ByteCache.getInstance(1024, 4); ByteArray ba = cache.acquire(); try { int remaining = size; byte buf[] = ba.getData(); while (remaining > 0) { int read = in.read(buf, 0, remaining > buf.length ? buf.length : remaining); if (read == -1) throw new IOException("Insufficient data from the SAM client (" + remaining + "/" + size + ")"); i2pSocketOS.write(buf, 0, read); remaining -= read; } //i2pSocketOS.flush(); } catch (IOException e) { _log.error("Error sending data through I2P socket", e); return false; } finally { cache.release(ba); } return true; } | 45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/88bb176f3be2e771833e45c45e892033a431ef90/SAMStreamSession.java/clean/apps/sam/java/src/net/i2p/sam/SAMStreamSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
1366,
2160,
12,
4348,
316,
16,
509,
963,
13,
288,
368,
1160,
8526,
501,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
288,
7734,
389,
1330,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
1366,
2160,
12,
4348,
316,
16,
509,
963,
13,
288,
368,
1160,
8526,
501,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
288,
7734,
389,
1330,
... |
} | } | public void openFile(String path, long revision) { } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/3a40ca6f0ab232eaf2a43043ef50e1369399a30a/SVNSequenceDeltaGeneratorTest.java/buggy/javasvn-test/src/org/tmatesoft/svn/core/io/diff/SVNSequenceDeltaGeneratorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
31622,
12,
780,
589,
16,
1525,
6350,
13,
288,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
31622,
12,
780,
589,
16,
1525,
6350,
13,
288,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
where.add("(" + filter + ")"); | addWhere("(", filter, ")"); | private boolean addFromTable( String schema, String table, String alias, String filter, boolean failIfExists) { if (fromAliases.contains(alias)) { if (failIfExists) { throw Util.newInternal( "query already contains alias '" + alias + "'"); } else { return false; } } buf.setLength(0); buf.append(quoteIdentifier(schema, table)); if (alias != null) { Util.assertTrue(!alias.equals("")); if (allowsAs()) { buf.append(" as "); } else { buf.append(" "); } buf.append(quoteIdentifier(alias)); fromAliases.add(alias); } from.add(buf.toString()); if (filter != null) { // append filter condition to where clause where.add("(" + filter + ")"); } return true; } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/0cc18052c959f8014f772086b193e28d7a6dd66a/SqlQuery.java/buggy/src/main/mondrian/rolap/sql/SqlQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
527,
1265,
1388,
12,
5411,
514,
1963,
16,
514,
1014,
16,
514,
2308,
16,
514,
1034,
16,
1250,
2321,
20014,
13,
288,
3639,
309,
261,
2080,
9667,
18,
12298,
12,
4930,
3719,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
527,
1265,
1388,
12,
5411,
514,
1963,
16,
514,
1014,
16,
514,
2308,
16,
514,
1034,
16,
1250,
2321,
20014,
13,
288,
3639,
309,
261,
2080,
9667,
18,
12298,
12,
4930,
3719,
288... |
q = q1; | q = q1; | private static Locale setLocale(LocaleInfo localeInfo, int category, String localeName) { String language = null; String country = null; String variant = null; int p = localeName.indexOf('_'); int p1 = localeName.indexOf('-'); if (p1 > 0 && (p1 < p || p < 0)) p = p1; Locale locale; if (p > 0) { language = localeName.substring(0, p); int q = localeName.indexOf('-', p + 1); int q1 = localeName.indexOf('.', p + 1); // XXX: '.' should be charset? if (q1 > 0 && (q1 < q || q < 0)) q = q1; q1 = localeName.indexOf('@', p + 1); // XXX: '@' is ?? if (q1 > 0 && (q1 < q || q < 0)) q = q1; q1 = localeName.indexOf('_', p + 1); if (q1 > 0 && (q1 < q || q < 0)) q = q1; if (q > 0) { country = localeName.substring(p + 1, q); variant = localeName.substring(q + 1); locale = new Locale(language, country, variant); } else { country = localeName.substring(p + 1); locale = new Locale(language, country); } } else locale = new Locale(localeName); if (! isValidLocale(locale)) return null; switch (category) { case LC_ALL: localeInfo.setAll(locale); return localeInfo.getMessages(); case LC_COLLATE: localeInfo.setCollate(locale); return localeInfo.getCollate(); case LC_CTYPE: localeInfo.setCtype(locale); return localeInfo.getCtype(); case LC_MONETARY: localeInfo.setMonetary(locale); return localeInfo.getMonetary(); case LC_NUMERIC: localeInfo.setNumeric(locale); return localeInfo.getNumeric(); case LC_TIME: localeInfo.setTime(locale); return localeInfo.getTime(); case LC_MESSAGES: localeInfo.setMessages(locale); return localeInfo.getMessages(); default: return null; } } | 3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/48fe9243c00516c06c9e56df71ec1e8552ee00db/QuercusStringModule.java/buggy/quercus/src/main/java/com/caucho/quercus/lib/QuercusStringModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
6458,
19848,
12,
3916,
966,
2573,
966,
16,
6862,
225,
509,
3150,
16,
6862,
225,
514,
2573,
461,
13,
225,
288,
565,
514,
2653,
273,
446,
31,
565,
514,
5251,
273,
446,
31,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6458,
19848,
12,
3916,
966,
2573,
966,
16,
6862,
225,
509,
3150,
16,
6862,
225,
514,
2573,
461,
13,
225,
288,
565,
514,
2653,
273,
446,
31,
565,
514,
5251,
273,
446,
31,
56... |
JList messageList = new UMLLinkedList(new UMLAssociationRoleMessageListModel()); addField(Argo.localize("UMLMenu", "label.messages"), new JScrollPane(messageList)); | JList messageList = new UMLLinkedList(new UMLAssociationRoleMessageListModel()); addField(Argo.localize("UMLMenu", "label.messages"), new JScrollPane(messageList)); | public PropPanelAssociationRole() { super("Association Role", ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), getStereotypeBox()); addField(Argo.localize("UMLMenu", "label.namespace"), getNamespaceScroll()); JComboBox baseComboBox = new UMLComboBox2(new UMLAssociationRoleBaseComboBoxModel(), ActionSetAssociationRoleBase.SINGLETON); addField(Argo.localize("UMLMenu", "label.base"), baseComboBox); addSeperator(); JList assocEndList = new UMLLinkedList(new UMLAssociationRoleAssociationEndRoleListModel()); assocEndList.setVisibleRowCount(2); // only binary associationroles are allowed addField(Argo.localize("UMLMenu", "label.associationrole-ends"), new JScrollPane(assocEndList)); JList messageList = new UMLLinkedList(new UMLAssociationRoleMessageListModel()); addField(Argo.localize("UMLMenu", "label.messages"), new JScrollPane(messageList)); new PropPanelButton(this, buttonPanel, _navUpIcon, Argo.localize("UMLMenu", "button.go-up"), "navigateUp", null); new PropPanelButton(this, buttonPanel, _deleteIcon, localize("Delete"), "removeElement", null); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/180aae2a6e4359d416ad1610ef18fe4836df91b8/PropPanelAssociationRole.java/buggy/src_new/org/argouml/uml/ui/behavior/collaborations/PropPanelAssociationRole.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10484,
5537,
7174,
2996,
1435,
288,
3639,
2240,
2932,
7174,
6204,
3113,
1903,
2886,
18,
588,
5661,
5047,
14097,
10663,
3639,
11742,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10484,
5537,
7174,
2996,
1435,
288,
3639,
2240,
2932,
7174,
6204,
3113,
1903,
2886,
18,
588,
5661,
5047,
14097,
10663,
3639,
11742,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,... |
} finally { if (containingDocument != null) { final ObjectPool objectPool = containingDocument.getObjectPool(); if (objectPool != null) { try { objectPool.returnObject(containingDocument); } catch (Exception e) { throw new OXFException(e); } | } catch (Throwable e) { final ObjectPool sourceObjectPool = containingDocument.getSourceObjectPool(); if (sourceObjectPool != null) { logger.debug("XForms - containing document cache: throwable caught, discarding document from pool."); try { sourceObjectPool.invalidateObject(containingDocument); containingDocument.setSourceObjectPool(null); } catch (Exception e1) { throw new OXFException(e1); | private void doIt(final PipelineContext pipelineContext, ContentHandler contentHandler) { // Extract information from request final Document requestDocument = readInputAsDOM4J(pipelineContext, INPUT_REQUEST); // Get static state final String staticStateString; { final Element staticStateElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_STATIC_STATE_QNAME); staticStateString = staticStateElement.getTextTrim(); } // Get dynamic state final String dynamicStateString; { final Element dynamicStateElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_DYNAMIC_STATE_QNAME); dynamicStateString = dynamicStateElement.getTextTrim(); } // Get action final Element actionElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_ACTION_QNAME); // Get files if any final Element filesElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_FILES_QNAME); XFormsContainingDocument containingDocument = null; // Try to obtain containing document from cache first if (isCacheContexts()) { containingDocument = getContainingDocument(pipelineContext, staticStateString, dynamicStateString, filesElement); } else { containingDocument = createXFormsContainingDocument(null, pipelineContext, staticStateString, dynamicStateString, filesElement); } try { // Run event if any boolean isInitializationRun = true; { final List eventElements = actionElement.elements(XFormsConstants.XXFORMS_EVENT_QNAME); if (eventElements != null && eventElements.size() > 0) { for (Iterator i = eventElements.iterator(); i.hasNext();) { final Element eventElement = (Element) i.next(); final String sourceControlId = eventElement.attributeValue("source-control-id"); final String otherControlId = eventElement.attributeValue("other-control-id"); final String eventName = eventElement.attributeValue("name"); final String value = eventElement.getText(); if (sourceControlId != null && eventName != null) { // An event is passed containingDocument.executeExternalEvent(pipelineContext, eventName, sourceControlId, otherControlId, value, null); isInitializationRun = false; } else if (!(sourceControlId == null && eventName == null)) { throw new OXFException("<event> element must either have source-control-id and name attributes, or no attribute."); } } } else { isInitializationRun = true; } } // Create resulting document if there is a ContentHandler if (contentHandler != null) { final XFormsControls xFormsControls = containingDocument.getXFormsControls(); xFormsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xFormsControls.getCurrentControlsState(); try { final ContentHandlerHelper ch = new ContentHandlerHelper(contentHandler); ch.startDocument(); contentHandler.startPrefixMapping("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI); ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "event-response"); // NOTE: Static state is produced externally during initialization only // Output dynamic state boolean requireClientSubmission = false; { final Document dynamicStateDocument = Dom4jUtils.createDocument(); final Element dynamicStateElement = dynamicStateDocument.addElement("dynamic-state"); // Output updated instances { final Element instancesElement = dynamicStateElement.addElement("instances"); for (Iterator i = containingDocument.getModels().iterator(); i.hasNext();) { final XFormsModel currentModel = (XFormsModel) i.next(); for (Iterator j = currentModel.getInstances().iterator(); j.hasNext();) { final XFormsInstance currentInstance = (XFormsInstance) j.next(); instancesElement.add((currentInstance).getDocument().getRootElement().createCopy()); // Log instance if needed if (logger.isDebugEnabled()) { logger.debug("XForms - resulting instance: model id='" + currentModel.getId() + "', instance id= '" + currentInstance.getId() + "'\n" + Dom4jUtils.domToString(currentInstance.getDocument())); } } } } // Output divs information { final Element divsElement = dynamicStateElement.addElement("divs"); outputSwitchDivs(divsElement, currentControlsState); } // Output repeat index information { final Map repeatIdToIndex = currentControlsState.getRepeatIdToIndex(); if (repeatIdToIndex != null && repeatIdToIndex.size() != 0) { final Element repeatIndexesElement = dynamicStateElement.addElement("repeat-indexes"); for (Iterator i = repeatIdToIndex.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String repeatId = (String) currentEntry.getKey(); final Integer index = (Integer) currentEntry.getValue(); final Element newElement = repeatIndexesElement.addElement("repeat-index"); newElement.addAttribute("id", repeatId); newElement.addAttribute("index", index.toString()); } } } // Submission automatic event if needed { // Check for xxforms-submit event { final XFormsModelSubmission activeSubmission = containingDocument.getActiveSubmission(); if (activeSubmission != null) { final Element eventElement = dynamicStateElement.addElement("event"); eventElement.addAttribute("source-control-id", activeSubmission.getId()); eventElement.addAttribute("name", XFormsEvents.XXFORMS_SUBMIT); requireClientSubmission = true; } } // Check for xxforms-load event { final List loads = containingDocument.getClientLoads(); if (loads != null) { for (Iterator i = loads.iterator(); i.hasNext();) { final XFormsContainingDocument.Load load = (XFormsContainingDocument.Load) i.next(); if (load.isReplace() && load.isPortletLoad() && !NetUtils.urlHasProtocol(load.getResource())) { // We need to submit the event so that the portlet can load the new path final Element eventElement = dynamicStateElement.addElement("event"); eventElement.addAttribute("source-control-id", XFormsContainingDocument.CONTAINING_DOCUMENT_PSEUDO_ID); eventElement.addAttribute("resource", load.getResource()); eventElement.addAttribute("name", XFormsEvents.XXFORMS_LOAD); requireClientSubmission = true; break; } } } } } // Encode dynamic state final String newEncodedDynamicState = XFormsUtils.encodeXMLAsDOM(pipelineContext, dynamicStateDocument); ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "dynamic-state"); ch.text(newEncodedDynamicState); ch.endElement(); // Cache if requested and possible if (isCacheContexts() && !requireClientSubmission) { // NOTE: We check on requireClientSubmission because the event is encoded // in the dynamic state. But if we stored the event separately, then we // could still cache the containing document. cacheContainingDocument(pipelineContext, staticStateString, newEncodedDynamicState, containingDocument); } } // Output action { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "action"); // Output new controls values and associated information { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control-values"); diffControlsState(ch, isInitializationRun ? null : xFormsControls.getInitialControlsState().getChildren(), currentControlsState.getChildren()); ch.endElement(); } // Output divs information { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "divs"); outputSwitchDivs(ch, currentControlsState); ch.endElement(); } // Output repeats information { if (isInitializationRun) { // Output initial repeat information outputInitialRepeatInfo(ch, currentControlsState); } else { // Output index updates final Map initialRepeatIdToIndex = xFormsControls.getInitialControlsState().getRepeatIdToIndex(); final Map currentRepeatIdToIndex = currentControlsState.getRepeatIdToIndex(); if (currentRepeatIdToIndex != null && currentRepeatIdToIndex.size() != 0) { boolean found = false; for (Iterator i = initialRepeatIdToIndex.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String repeatId = (String) currentEntry.getKey(); final Integer index = (Integer) currentEntry.getValue(); // Output information if there is a difference final Integer newIndex = (Integer) currentRepeatIdToIndex.get(repeatId); if (!index.equals(newIndex)) { if (!found) { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-indexes"); found = true; } ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-index", new String[] {"id", repeatId, "old-index", index.toString(), "new-index", newIndex.toString()}); } } if (found) ch.endElement(); } } } // Output itemset information { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "itemsets"); if (isInitializationRun) { outputItemsets(ch, xFormsControls.getItemsetFull()); } else { outputItemsets(ch, xFormsControls.getItemsetUpdate()); } ch.endElement(); } // Check if we want to require the client to perform a form submission { if (requireClientSubmission) outputSubmissionInfo(pipelineContext, ch); } // Output messages to display { final List messages = containingDocument.getClientMessages(); if (messages != null) { outputMessagesInfo(ch, messages); } } // Output loads { final List loads = containingDocument.getClientLoads(); if (loads != null) { outputLoadsInfo(ch, loads); } } // Output focus instructions { final String focusEffectiveControlId = containingDocument.getClientFocusEffectiveControlId(); if (focusEffectiveControlId != null) { outputFocusInfo(ch, focusEffectiveControlId); } } ch.endElement(); } ch.endElement(); contentHandler.endPrefixMapping("xxf"); ch.endDocument(); } catch (SAXException e) { throw new OXFException(e); } } } finally { // This must be done whatever happens if (containingDocument != null) { final ObjectPool objectPool = containingDocument.getObjectPool(); if (objectPool != null) { try { objectPool.returnObject(containingDocument); } catch (Exception e) { throw new OXFException(e); } } } } } | 54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/a6eb47de417fd6cf006fa4e9c8c250cb033f744f/XFormsServer.java/clean/src/java/org/orbeon/oxf/xforms/XFormsServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
7193,
12,
6385,
13671,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
13,
288,
3639,
368,
8152,
1779,
628,
590,
3639,
727,
4319,
590,
2519,
273,
855,
1210,
1463,
8168,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
7193,
12,
6385,
13671,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
13,
288,
3639,
368,
8152,
1779,
628,
590,
3639,
727,
4319,
590,
2519,
273,
855,
1210,
1463,
8168,
24,
... |
myJdkName = null; | setJdkName(null); setJdkType(null); | public void jdkAdded(ProjectJdk jdk) { if (myJdk == null && getJdkName().equals(jdk.getName())) { myJdk = jdk; myJdkName = null; updateFromRootProviderAndSubscribe(getRootProvider()); } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/0fbd9215ceaf4861563f4ac803043c372346957f/ModuleJdkOrderEntryImpl.java/buggy/source/com/intellij/openapi/roots/impl/ModuleJdkOrderEntryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
525,
2883,
8602,
12,
4109,
46,
2883,
525,
2883,
13,
288,
565,
309,
261,
4811,
46,
2883,
422,
446,
597,
9285,
2883,
461,
7675,
14963,
12,
78,
2883,
18,
17994,
1435,
3719,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
525,
2883,
8602,
12,
4109,
46,
2883,
525,
2883,
13,
288,
565,
309,
261,
4811,
46,
2883,
422,
446,
597,
9285,
2883,
461,
7675,
14963,
12,
78,
2883,
18,
17994,
1435,
3719,
288,... |
crack43((org.quickfix.fix43.Message)message, sessionID); | crack43((quickfix.fix43.Message)message, sessionID); | public void crack( org.quickfix.Message message, SessionID sessionID ) throws UnsupportedMessageType, FieldNotFound, IncorrectTagValue { BeginString beginString = new BeginString(); message.getHeader().getField(beginString); String value = beginString.getValue(); if(value.equals("FIX.4.0")) crack40((org.quickfix.fix40.Message)message, sessionID); else if(value.equals("FIX.4.1")) crack41((org.quickfix.fix41.Message)message, sessionID); else if(value.equals("FIX.4.2")) crack42((org.quickfix.fix42.Message)message, sessionID); else if(value.equals("FIX.4.3")) crack43((org.quickfix.fix43.Message)message, sessionID); else if(value.equals("FIX.4.4")) crack44((org.quickfix.fix44.Message)message, sessionID); else onMessage(message, sessionID); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/685f43bca015f003857cf8f3236f49f80c1abd1c/MessageCracker.java/clean/src/java/src/quickfix/MessageCracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
276,
21580,
12,
2358,
18,
19525,
904,
18,
1079,
883,
16,
3877,
734,
13737,
262,
565,
1216,
7221,
24563,
16,
2286,
2768,
16,
657,
6746,
1805,
620,
288,
3639,
14323,
780,
2376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
276,
21580,
12,
2358,
18,
19525,
904,
18,
1079,
883,
16,
3877,
734,
13737,
262,
565,
1216,
7221,
24563,
16,
2286,
2768,
16,
657,
6746,
1805,
620,
288,
3639,
14323,
780,
2376,
... |
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); legacy = new LegacyZVIReader(); OLEParser parser = new OLEParser(id); parser.parse(0); Vector[] files = parser.getFiles(); headerData = new Hashtable(); pixelData = new Hashtable(); int largest = 0; int largestIndex = 0; int nextItem = 0; Vector itemNames = parser.getNames(); for (int i=0; i<files[0].size(); i++) { byte[] data = (byte[]) files[1].get(i); if (data.length > largest) largestIndex = i; String pathName = ((String) files[0].get(i)).trim(); pathName = DataTools.stripString(pathName); boolean isContents = pathName.endsWith("Contents"); boolean isImage = pathName.endsWith("Image"); try { if (((isContents && ((pathName.indexOf("Item") != -1) || pathName.indexOf("Image") != -1) && data.length > 6000)) || (data.length == dataLength)) { header = data; while ((dataLength != 0) && (data.length < dataLength) && isContents && ((pathName.indexOf("Item") != -1) || pathName.indexOf("Image") != -1)) { i++; data = (byte[]) files[1].get(i); if (data.length > largest) largestIndex = i; pathName = ((String) files[0].get(i)).trim(); pathName = DataTools.stripString(pathName); isContents = pathName.endsWith("Contents"); } int imageNum = 0; if (pathName.indexOf("Item") != -1) { String num = pathName.substring(pathName.lastIndexOf("Item") + 5, pathName.lastIndexOf(")")); imageNum = Integer.parseInt(num); } if (nextItem < itemNames.size()) { String num = ((String) itemNames.get(nextItem)).trim(); if (num.length() > 1) num = DataTools.stripString(num); int n = Integer.parseInt(num); // choose whether to use imageNum or n if (n != imageNum) { if (pixelData.containsKey(new Integer(imageNum))) { imageNum = n; } } if (pathName.indexOf("Item") != -1) { num = pathName.substring(0, pathName.lastIndexOf("Item")); while (pixelData.containsKey(new Integer(imageNum)) && (num.indexOf("Item") != -1)) { String s = num.substring(num.lastIndexOf("Item") + 5, num.lastIndexOf(")")); imageNum = Integer.parseInt(s); num = num.substring(0, num.lastIndexOf("Item")); } } // if we *still* don't find a valid key, give up and use // the legacy reader if (pixelData.containsKey(new Integer(imageNum))) { if (legacy.getImageCount(id) == 1) break; needLegacy = true; legacy.initFile(id); return; } nextItem++; } int byteCount = 2; byteCount += 4; // version field byteCount += 6; // type field byteCount += 2; int numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; byteCount += 2; imageWidth = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 6; imageHeight = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4; byteCount += 6; // depth byteCount += 6; // pixel format byteCount += 6; // count byteCount += 2; bitsPerSample = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // plugin CLSID byteCount += 38; // not sure what this is for byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // layers byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // scaling byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // root folder name byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // display item name byteCount += 28; // streamed header data // get pixel data if (header.length > byteCount) { byte[] head = new byte[byteCount]; System.arraycopy(header, 0, head, 0, head.length); headerData.put(new Integer(imageNum), (Object) head); byte[] px = new byte[header.length - byteCount]; System.arraycopy(header, byteCount, px, 0, px.length); if (!pixelData.containsKey(new Integer(imageNum))) { shuffle = parser.shuffle(); // nasty special case...I pity the person who finds a bug in this if (shuffle > 0) { byte[] chunkOne = new byte[shuffle]; byte[] chunkTwo = new byte[parser.length() - shuffle + 11700]; System.arraycopy(px, 0, chunkOne, 0, chunkOne.length); System.arraycopy(px, chunkOne.length, chunkTwo, 0, chunkTwo.length); byte[] tct = new byte[chunkOne.length]; int bpp = bitsPerSample / 8; int mul = (int) (imageWidth - (imageWidth * 0.01)); mul *= bpp; mul += 2; for (int k=0; k<(chunkOne.length / (bpp*imageWidth)); k++) { System.arraycopy(chunkOne, k*bpp*imageWidth, tct, (k+1)*bpp*imageWidth - mul, mul); System.arraycopy(chunkOne, k*bpp*imageWidth+mul, tct, k*bpp*imageWidth, bpp*imageWidth - mul); } chunkOne = tct; byte[] tco = new byte[chunkTwo.length]; mul = (int) (imageWidth * 0.14); mul *= bpp; for (int k=0; k<(chunkTwo.length / (bpp*imageWidth)); k++) { System.arraycopy(chunkTwo, k*bpp*imageWidth, tco, (k+1)*bpp*imageWidth - mul, mul); System.arraycopy(chunkTwo, k*bpp*imageWidth+mul, tco, k*bpp*imageWidth, bpp*imageWidth - mul); } chunkTwo = tco; px = new byte[px.length]; System.arraycopy(chunkTwo, 0, px, 0, chunkTwo.length); System.arraycopy(chunkOne, 0, px, chunkTwo.length, chunkOne.length); // now we have to shift the whole array to the right by // 0.01 * width pixels mul = imageWidth - ((int) (imageWidth * 0.01)); mul *= bpp; byte[] tmp = new byte[px.length]; for (int k=0; k<imageHeight; k++) { System.arraycopy(px, k*bpp*imageWidth, tmp, (k+1)*bpp*imageWidth - mul, mul); System.arraycopy(px, k*bpp*imageWidth+mul, tmp, k*bpp*imageWidth, bpp*imageWidth - mul); } px = tmp; } pixelData.put(new Integer(imageNum), (Object) px); dataLength = px.length + head.length; nImages++; } } else break; } else if (isContents && isImage) { // we've found the header data header = data; int pointer = 14; int length = DataTools.bytesToInt(header, pointer, 2, true); pointer += 4 + length; imageWidth = DataTools.bytesToInt(header, pointer, 4, true); pointer += 6; imageHeight = DataTools.bytesToInt(header, pointer, 4, true); pointer += 6; pointer += 6; pixelFormat = DataTools.bytesToInt(header, pointer, 4, true); pointer += 6; switch (pixelFormat) { case 1: bytesPerPixel = 3; break; case 2: bytesPerPixel = 4; break; case 3: bytesPerPixel = 1; break; case 4: bytesPerPixel = 2; break; case 6: bytesPerPixel = 4; break; case 8: bytesPerPixel = 6; break; default: bytesPerPixel = 1; } if ((bytesPerPixel % 2) != 0) channels = 3; } else if (pathName.endsWith("Tags") && pathName.startsWith("Root Entry")) { // the main tags stream tags = data; } } catch (Exception e) { } } if (nImages == 0) { // HACK // just grab the largest file header = (byte[]) files[1].get(largestIndex); String pathName = (String) files[0].get(largestIndex); int imageNum = 0; if (pathName.indexOf("Item") != -1) { String num = pathName.substring(pathName.indexOf("Item") + 5, pathName.indexOf(")")); imageNum = Integer.parseInt(num); } int byteCount = 166; byteCount += 2; imageWidth = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 6; imageHeight = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4; byteCount += 6; // depth byteCount += 6; // pixel format byteCount += 6; // count byteCount += 2; bytesPerPixel = DataTools.bytesToInt(header, byteCount, 4, true) / 8; byteCount += 4; int numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // plugin CLSID byteCount += 38; // not sure what this is for byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // layers byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // scaling byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // root folder name byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // display item name byteCount += 28; // streamed header data // get pixel data if (header.length > byteCount) { byte[] head = new byte[byteCount]; System.arraycopy(header, 0, head, 0, head.length); headerData.put(new Integer(nImages), (Object) head); byte[] px = new byte[header.length - byteCount]; System.arraycopy(header, byteCount, px, 0, px.length); pixelData.put(new Integer(nImages), (Object) px); nImages++; } } initMetadata(); } | 55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/f8fea5aec2de454fd84e68759019ac47d99be52a/ZeissZVIReader.java/buggy/loci/formats/ZeissZVIReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
8866,
273,
394,
22781,
62,
4136,
2514,
5621,
4202,
531,
900,
2678,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
8866,
273,
394,
22781,
62,
4136,
2514,
5621,
4202,
531,
900,
2678,
... | ||
exception, null, viewparams.viewID); | exception, null, viewparams.viewID, tmessage); | private Object handleError(Object actionresult, Exception exception, TargettedMessageList messages) { // an ARIResult is at the end-of-line. if (actionresult != null && !(actionresult instanceof String)) return actionresult; Object newcode = actionerrorstrategy.handleError((String) actionresult, exception, null, viewparams.viewID); if (newcode != null && !(newcode instanceof String)) return actionresult; for (int i = 0; i < messages.size(); ++i) { TargettedMessage message = messages.messageAt(i); if (message.exception != null) { Throwable target = message.exception instanceof UniversalRuntimeException? ((UniversalRuntimeException)message.exception).getTargetException() : message.exception; newcode = actionerrorstrategy.handleError((String) newcode, (Exception) target, null, viewparams.viewID); if (newcode instanceof TargettedMessage) { TargettedMessage retarget = (TargettedMessage) newcode; retarget.targetid = message.targetid; messages.setMessageAt(i, (TargettedMessage) newcode); } newcode = null; } } return newcode; } | 45809 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45809/01de9da258f9211c8ed93d21b116f3254966c711/RSFActionHandler.java/buggy/src/uk/org/ponder/rsf/processor/RSFActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
15676,
12,
921,
1301,
2088,
16,
1185,
1520,
16,
1377,
5916,
2344,
1079,
682,
2743,
13,
288,
565,
368,
392,
432,
2259,
1253,
353,
622,
326,
679,
17,
792,
17,
1369,
18,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
15676,
12,
921,
1301,
2088,
16,
1185,
1520,
16,
1377,
5916,
2344,
1079,
682,
2743,
13,
288,
565,
368,
392,
432,
2259,
1253,
353,
622,
326,
679,
17,
792,
17,
1369,
18,
565,
... |
super.unload(); | removeAllAdvertisers(); | public void unload() { super.unload(); if (advertiseService != null) { sb.releaseService( advertiseClient, AdvertiseService.class, advertiseService); advertiseService = null; } if (threadService != null) { // halt our threads? sb.releaseService(this, ThreadService.class, threadService); threadService = null; } if (log != null) { sb.releaseService( this, LoggingService.class, log); log = null; } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/19961c7fdcf9133a43ef2c98eada072ee6c9c279/AdvertiseBase.java/buggy/core/src/org/cougaar/core/wp/bootstrap/AdvertiseBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
27060,
1435,
288,
565,
12787,
1871,
1097,
291,
414,
5621,
565,
309,
261,
361,
25530,
1179,
480,
446,
13,
288,
1377,
2393,
18,
9340,
1179,
12,
1850,
31553,
1227,
16,
4052,
25530... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27060,
1435,
288,
565,
12787,
1871,
1097,
291,
414,
5621,
565,
309,
261,
361,
25530,
1179,
480,
446,
13,
288,
1377,
2393,
18,
9340,
1179,
12,
1850,
31553,
1227,
16,
4052,
25530... |
public ViewsPlugin(IPluginDescriptor descriptor) { super(descriptor); | public ViewsPlugin() { super(); | public ViewsPlugin(IPluginDescriptor descriptor) { super(descriptor); instance = this; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0694eccfbe031ada7c90d8bdca8e6184aa3b5b2c/ViewsPlugin.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/internal/views/ViewsPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
31117,
3773,
12,
45,
3773,
3187,
4950,
13,
288,
202,
202,
9565,
12,
12628,
1769,
202,
202,
1336,
273,
333,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
31117,
3773,
12,
45,
3773,
3187,
4950,
13,
288,
202,
202,
9565,
12,
12628,
1769,
202,
202,
1336,
273,
333,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if (currentTime - releaseTime > 1000.0) { | if (currentTime - releaseTime > 1.0f) { | public void update(float secondsPassed) { secondsPassed *= getSpeed(); if (isActive()) { currentTime += secondsPassed; if (currentTime >= getMinTime() && currentTime <= getMaxTime()) { Vector3f speed = new Vector3f(); if (controlFlow) { if (currentTime - releaseTime > 1000.0) { released = 0; releaseTime = currentTime; } particlesToCreate = (int) ( (float) releaseRate * secondsPassed * (1.0f + releaseVariance * (FastMath.nextRandomFloat() - 0.5f))); if (particlesToCreate <= 0) particlesToCreate = 1; if (releaseRate - released <= 0) particlesToCreate = 0; } int i = 0; while (i < noParticles) { if (particles[i].updateAndCheck(secondsPassed) && (!controlFlow || particlesToCreate > 0)) { if (particles[i].status == RenParticle.DEAD && getRepeatType() == RT_CLAMP) { ; } else { if (controlFlow) { released++; particlesToCreate--; } getRandomSpeed(speed); particles[i].recreateParticle(speed, getRandomLifeSpan()); particles[i].status = RenParticle.ALIVE; switch (getGeometry()) { case 1: particles[i].initialLocation.set(getLine().random()); break; case 2: particles[i].initialLocation.set(getRectangle().random()); break; default: particles[i].initialLocation.set(originCenter); break; } particles[i].location.set(particles[i].initialLocation); particles[i].updateVerts(); } } i++; } particlesGeometry.setVertices(geometryCoordinates); particlesGeometry.setColors(appearanceColors); } } } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/c194f5f13060d42e9bad1df9b12ae08aebc688d1/RenParticleManager.java/buggy/src/com/jme/effects/RenParticleManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
12,
5659,
3974,
22530,
13,
288,
565,
3974,
22530,
6413,
1322,
5868,
5621,
565,
309,
261,
291,
3896,
10756,
288,
1377,
6680,
1011,
3974,
22530,
31,
1377,
309,
261,
2972,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
12,
5659,
3974,
22530,
13,
288,
565,
3974,
22530,
6413,
1322,
5868,
5621,
565,
309,
261,
291,
3896,
10756,
288,
1377,
6680,
1011,
3974,
22530,
31,
1377,
309,
261,
2972,
9... |
System.out.println("Drawing image"); | private void addControlListeners() { control.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { dispose(); } }); control.addFocusListener(new FocusListener() { public void focusGained(FocusEvent event) { hasFocus = true; if (showOnlyOnFocus) { update(); } } public void focusLost(FocusEvent event) { hasFocus = false; if (showOnlyOnFocus) { update(); } } }); // Listener for painting the decoration paintListener = new PaintListener() { public void paintControl(PaintEvent event) { Control control = (Control) event.widget; Rectangle rect = getDecorationRectangle(control); if (shouldShowDecoration()) { event.gc.drawImage(decoration.getImage(), rect.x, rect.y); System.out.println("Drawing image"); //$NON-NLS-1$ } } }; // Listener for tracking the end of a hover. Only installed // after a hover begins. mouseMoveListener = new MouseMoveListener() { public void mouseMove(MouseEvent event) { if (showHover) { if (!decorationRectangle.contains(event.x, event.y)) { hideHover(); ((Control) event.widget) .removeMouseMoveListener(mouseMoveListener); } } } }; // Listener for tracking the beginning of a hover. Always installed. mouseListener = new MouseTrackListener() { public void mouseExit(MouseEvent event) { // Just in case we didn't catch it before. ((Control) event.widget) .removeMouseMoveListener(mouseMoveListener); hideHover(); } public void mouseHover(MouseEvent event) { if (showHover) { decorationRectangle = getDecorationRectangle((Control) event.widget); if (decorationRectangle.contains(event.x, event.y)) { showHoverText(decoration.getDescription()); ((Control) event.widget) .addMouseMoveListener(mouseMoveListener); } } } public void mouseEnter(MouseEvent event) { // Nothing to do until a hover occurs. } }; // We are never quite sure which parent in the control hierarchy // is providing the margin space, so hook all the way up. Control c = control.getParent(); while (c != null) { c.addPaintListener(paintListener); c.addMouseTrackListener(mouseListener); c.redraw(); if (c instanceof Shell) break; c = c.getParent(); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a35b4342bcb72b08139991a25639f7288451a819/ControlDecoration.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
3367,
5583,
1435,
288,
202,
202,
7098,
18,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
1435,
288,
1082,
202,
482,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
3367,
5583,
1435,
288,
202,
202,
7098,
18,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
1435,
288,
1082,
202,
482,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,... | |
if (connection.haveMinimumCompatibleVersion("7.2")) { | } else if (connection.haveMinimumCompatibleVersion("7.2")) { | public byte[] getBytes(int columnIndex) throws SQLException { if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); //If the data is already binary then just return it if (binaryCursor) return this_row[columnIndex - 1]; if (connection.haveMinimumCompatibleVersion("7.2")) { //Version 7.2 supports the bytea datatype for byte arrays return PGbytea.toBytes(getString(columnIndex)); } else { //Version 7.1 and earlier supports LargeObjects for byte arrays wasNullFlag = (this_row[columnIndex - 1] == null); // Handle OID's as BLOBS if (!wasNullFlag) { if ( fields[columnIndex - 1].getOID() == 26) { LargeObjectManager lom = connection.getLargeObjectAPI(); LargeObject lob = lom.open(getInt(columnIndex)); byte buf[] = lob.read(lob.size()); lob.close(); return buf; } } } return null; } | 46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/512a3aef36591386640f34866c1acbe58c20ca6e/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
8425,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
8425,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
29... |
public void doNotReport(B b) { // The B interface declared arg 2 to be @PossiblyNull, so this is OK b.f(new Object(), null); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/4197555a423bbc478b3c5e6dc844d5bb0be155d5/TestNonNull.java/clean/findbugs/test/nonnull/TestNonNull.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
1248,
4820,
12,
38,
324,
13,
288,
202,
202,
759,
1021,
605,
1560,
7886,
225,
1501,
576,
358,
506,
632,
1616,
8781,
2041,
16,
1427,
333,
353,
7791,
202,
202,
70,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
1248,
4820,
12,
38,
324,
13,
288,
202,
202,
759,
1021,
605,
1560,
7886,
225,
1501,
576,
358,
506,
632,
1616,
8781,
2041,
16,
1427,
333,
353,
7791,
202,
202,
70,
18... | ||
Properties mappings = new Properties(); for (int i = 0; i < application.getControllers().length; i++) { GrailsControllerClass simpleController = application.getControllers()[i]; for (int x = 0; x < simpleController.getURIs().length; x++) { if(!mappings.containsKey(simpleController.getURIs()[x])) mappings.put(simpleController.getURIs()[x], SimpleGrailsController.APPLICATION_CONTEXT_ID); } } for (int i = 0; i < application.getPageFlows().length; i++) { GrailsPageFlowClass pageFlow = application.getPageFlows()[i]; mappings.put(pageFlow.getUri(), pageFlow.getFullName() + "Controller"); } | HotSwappableTargetSource urlMappingsTargetSource = (HotSwappableTargetSource)context.getBean(GrailsUrlHandlerMapping.APPLICATION_CONTEXT_TARGET_SOURCE); | private void loadControllerClass(Class loadedClass, boolean isNew) { GrailsControllerClass controllerClass = application.addControllerClass(loadedClass); if(controllerClass != null) { // regenerate controller urlMap Properties mappings = new Properties(); for (int i = 0; i < application.getControllers().length; i++) { GrailsControllerClass simpleController = application.getControllers()[i]; for (int x = 0; x < simpleController.getURIs().length; x++) { if(!mappings.containsKey(simpleController.getURIs()[x])) mappings.put(simpleController.getURIs()[x], SimpleGrailsController.APPLICATION_CONTEXT_ID); } } for (int i = 0; i < application.getPageFlows().length; i++) { GrailsPageFlowClass pageFlow = application.getPageFlows()[i]; mappings.put(pageFlow.getUri(), pageFlow.getFullName() + "Controller"); } HotSwappableTargetSource urlMappingsTargetSource = (HotSwappableTargetSource)context.getBean(GrailsUrlHandlerMapping.APPLICATION_CONTEXT_TARGET_SOURCE); GrailsUrlHandlerMapping urlMappings = new GrailsUrlHandlerMapping(); urlMappings.setApplicationContext(context); urlMappings.setMappings(mappings); urlMappings.initApplicationContext(); urlMappingsTargetSource.swap(urlMappings); // swap target source in app context HotSwappableTargetSource controllerTargetSource = (HotSwappableTargetSource)context.getBean(controllerClass.getFullName() + "TargetSource"); controllerTargetSource.swap(controllerClass); // if its a new controller re-generate web.xml, reload app context if(isNew) { // TODO re-generate web.xml reloadApplicationContext(); } } } | 52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/92bf3211fba13e0246158d71ba4084d9733d7759/GrailsReloadServletFilter.java/clean/src/web/org/codehaus/groovy/grails/web/servlet/filter/GrailsReloadServletFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
2933,
797,
12,
797,
4203,
797,
16,
1250,
10783,
13,
288,
3639,
10812,
14573,
2933,
797,
29345,
273,
2521,
18,
1289,
2933,
797,
12,
4230,
797,
1769,
3639,
309,
12,
5723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
2933,
797,
12,
797,
4203,
797,
16,
1250,
10783,
13,
288,
3639,
10812,
14573,
2933,
797,
29345,
273,
2521,
18,
1289,
2933,
797,
12,
4230,
797,
1769,
3639,
309,
12,
5723,
... |
"14:18: Home interface 'InputHomeInterface' must have method 'findByPrimaryKey()'.", | public void testDefault() throws Exception { final DefaultConfiguration checkConfig = createCheckConfig(RemoteHomeInterfaceCheck.class); final String[] expected = { "14:18: Home interface 'InputHomeInterface' must have method 'findByPrimaryKey()'.", "20:19: Method 'createSomething' must be non-void.", "20:19: Method 'createSomething' must throw 'java.rmi.RemoteException'.", "20:19: Method 'createSomething' must throw 'javax.ejb.CreateException'.", "22:19: Method 'findSomething' must be non-void.", "22:19: Method 'findSomething' must throw 'java.rmi.RemoteException'.", "22:19: Method 'findSomething' must throw 'javax.ejb.FinderException'.", }; verify(checkConfig, getPath("j2ee/InputHomeInterface.java"), expected); } | 50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/95373ba5b5c5d34d13793ccf657ed55d05a866cd/HomeInterfaceCheckTest.java/buggy/src/tests/com/puppycrawl/tools/checkstyle/checks/j2ee/HomeInterfaceCheckTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1868,
1435,
5411,
1216,
1185,
565,
288,
3639,
727,
2989,
1750,
866,
809,
273,
5411,
752,
1564,
809,
12,
5169,
8684,
1358,
1564,
18,
1106,
1769,
3639,
727,
514,
8526,
2665... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1868,
1435,
5411,
1216,
1185,
565,
288,
3639,
727,
2989,
1750,
866,
809,
273,
5411,
752,
1564,
809,
12,
5169,
8684,
1358,
1564,
18,
1106,
1769,
3639,
727,
514,
8526,
2665... | |
if (encoding.startsWith("UTF")) { | if (encoding.startsWith("UTF") || encoding.startsWith("UNICODE")) { | public static TextWriter getTextWriter( Writer out, String encoding) { encoding = encoding.toUpperCase(); if (encoding.startsWith("UTF")) { return new UnicodeWriter(out, encoding); } else if (encoding.startsWith("UCS")) { return new UnicodeWriter(out, encoding); } else if (encoding.startsWith("ISO-10646")) { return new UnicodeWriter(out, encoding); } else if (encoding.startsWith("UNICODE")) { return new UnicodeWriter(out, encoding); } else if (encoding.equals("ISO-8859-1")) { return new Latin1Writer(out, encoding); } else if (encoding.equals("ISO-8859-2")) { return new Latin2Writer(out, encoding); } else if (encoding.equals("ISO-8859-3")) { return new Latin3Writer(out, encoding); } else if (encoding.equals("ISO-8859-4")) { return new Latin4Writer(out, encoding); } else if (encoding.equals("ISO-8859-5")) { return new ISOCyrillicWriter(out, encoding); } else if (encoding.equals("ISO-8859-6")) { return new ISOArabicWriter(out, encoding); } else if (encoding.equals("ISO-8859-7")) { return new ISOGreekWriter(out, encoding); } else if (encoding.equals("ISO-8859-8")) { return new ISOHebrewWriter(out, encoding); } else if (encoding.equals("ISO-8859-9")) { return new Latin5Writer(out, encoding); } else if (encoding.equals("ISO-8859-10")) { return new Latin6Writer(out, encoding); } else if (encoding.equals("ISO-8859-11") || encoding.equals("TIS-620") || encoding.equals("TIS620")) { return new ISOThaiWriter(out, encoding); } // There's no such thing as ISO-8859-12 // nor is there likely to be one in the future. else if (encoding.equals("ISO-8859-13")) { return new Latin7Writer(out, encoding); } else if (encoding.equals("ISO-8859-14")) { return new Latin8Writer(out, encoding); } else if (encoding.equals("ISO-8859-15")) { return new Latin9Writer(out, encoding); } else if (encoding.equals("ISO-8859-16")) { return new Latin10Writer(out, encoding); } else if (encoding.equals("IBM037") || encoding.equals("CP037") || encoding.equals("EBCDIC-CP-US") || encoding.equals("EBCDIC-CP-CA") || encoding.equals("EBCDIC-CP-WA") || encoding.equals("EBCDIC-CP-NL") || encoding.equals("CSIBM037")) { // EBCDIC-37 has same character set as ISO-8859-1; // just at different code points. // Need to fix this to use an EBCDICWriter instead???? // but tricky since that really need to start with // an OutputStream. Possibly requires some rejiggering of // internal interfaces, and when and where the writer is created return new Latin1Writer(out, encoding); } else { // I'm assuming here that all character sets can // handle the ASCII character set; even if not at the // same code points. This is not technically true. // There are some very old character sets that aren't, // but no one is likely to be using them for XML. return new ASCIIWriter(out, encoding); } } | 8327 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8327/c803cf8cf363bc9c036fa7959ab17cabac2776da/TextWriterFactory.java/clean/src/nu/xom/TextWriterFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3867,
2289,
6701,
2289,
12,
1377,
5497,
596,
16,
514,
2688,
13,
288,
5411,
2688,
273,
2688,
18,
869,
8915,
5621,
3639,
309,
261,
5999,
18,
17514,
1190,
2932,
5159,
7923,
747,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3867,
2289,
6701,
2289,
12,
1377,
5497,
596,
16,
514,
2688,
13,
288,
5411,
2688,
273,
2688,
18,
869,
8915,
5621,
3639,
309,
261,
5999,
18,
17514,
1190,
2932,
5159,
7923,
747,
... |
setMethodVisibility(args, Constants.NOEX_PRIVATE); | setMethodVisibility(args, Visibility.PRIVATE); | public RubyModule rbPrivate(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuntime(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuntime().setCurrentMethodScope(Constants.SCOPE_PRIVATE); } else { setMethodVisibility(args, Constants.NOEX_PRIVATE); } return this; } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/buggy/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
7138,
6014,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
588,
5576,
7675,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
288,
5411,
604,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
3120,
7138,
6014,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
588,
5576,
7675,
588,
9890,
2355,
1435,
1545,
1059,
597,
401,
291,
29048,
10756,
288,
5411,
604,
3... |
synPredMatched44 = false; } rewind(_m44); | synPredMatched953 = false; } rewind(_m953); | public final Expression function_call( PathExpr expr ) throws RecognitionException, TokenStreamException, PermissionDeniedException,EXistException { Expression step; Token l = null; Token l2 = null; Token arg = null; Token l3 = null; Token l4 = null; Token i = null; Token f1 = null; Token f2 = null; step = null; PathExpr path = new PathExpr(pool); PathExpr arg1 = new PathExpr(pool); PathExpr arg2 = null; Function fun = null; int distance = 1; switch ( LA(1)) { case 32: { match(32); match(LPAREN); or_expr(path); match(COMMA); l = LT(1); match(CONST); match(RPAREN); if ( inputState.guessing==0 ) { if(path.returnsType() == Constants.TYPE_NODELIST) { String val = l.getText() + "%"; step = new OpEquals(pool, path, new Literal(val), Constants.EQ); expr.add(step); } else { step = new FunStartsWith(pool, path, new Literal(l.getText())); expr.add(step); } } break; } case 33: { match(33); match(LPAREN); or_expr(path); match(COMMA); l2 = LT(1); match(CONST); match(RPAREN); if ( inputState.guessing==0 ) { if(path.returnsType() == Constants.TYPE_NODELIST) { String val = l2.getText(); step = new OpEquals(pool, path, new Literal(l2.getText()), Constants.EQ); expr.add(step); } else { step = new FunEndsWith(pool, path, new Literal(l2.getText())); expr.add(step); } } break; } case LITERAL_contains: { match(LITERAL_contains); match(LPAREN); or_expr(path); match(COMMA); arg = LT(1); match(CONST); match(RPAREN); if ( inputState.guessing==0 ) { String term = "%" + arg.getText() + "%"; step = new OpEquals(pool, path, new Literal(term), Constants.EQ); System.out.println(step.pprint()); expr.add(step); } break; } default: if ((LA(1)==LITERAL_text) && (LA(2)==LPAREN)) { match(LITERAL_text); match(LPAREN); match(RPAREN); if ( inputState.guessing==0 ) { step = new LocationStep(pool, -1, new TypeTest(Constants.TEXT_NODE)); expr.add(step); } } else if ((LA(1)==LITERAL_text) && (_tokenSet_1.member(LA(2)))) { match(LITERAL_text); { switch ( LA(1)) { case SLASH: { match(SLASH); break; } case DSLASH: { match(DSLASH); break; } case EOF: { match(Token.EOF_TYPE); break; } case LPPAREN: { match(LPPAREN); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } if ( inputState.guessing==0 ) { step = new LocationStep( pool, -1, new NameTest("text")); expr.add(step); } } else if ((LA(1)==LITERAL_match) && (LA(2)==LPAREN)) { match(LITERAL_match); match(LPAREN); or_expr(path); match(COMMA); l3 = LT(1); match(CONST); match(RPAREN); if ( inputState.guessing==0 ) { if(path.returnsType() == Constants.TYPE_NODELIST) { step = new OpEquals(pool, path, new Literal(l3.getText()), Constants.REGEXP); expr.add(step); } } } else if ((LA(1)==LITERAL_match) && (_tokenSet_1.member(LA(2)))) { match(LITERAL_match); { switch ( LA(1)) { case SLASH: { match(SLASH); break; } case DSLASH: { match(DSLASH); break; } case EOF: { match(Token.EOF_TYPE); break; } case LPPAREN: { match(LPPAREN); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } if ( inputState.guessing==0 ) { step = new LocationStep( pool, -1, new NameTest("match")); expr.add(step); } } else if ((LA(1)==LITERAL_near) && (LA(2)==LPAREN)) { match(LITERAL_near); match(LPAREN); or_expr(path); match(COMMA); l4 = LT(1); match(CONST); { switch ( LA(1)) { case COMMA: { match(COMMA); i = LT(1); match(INT); if ( inputState.guessing==0 ) { distance = Integer.parseInt(i.getText()); } break; } case RPAREN: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(RPAREN); if ( inputState.guessing==0 ) { FunNear near = new FunNear(pool); near.setDistance(distance); near.setPath(path); DBBroker broker = null; try { broker = pool.get(); Tokenizer tok = broker.getTextEngine().getTokenizer(); tok.setText(l4.getText()); org.exist.storage.analysis.TextToken token; String next; while((token = tok.nextToken(true)) != null) { next = token.getText(); near.addTerm(next); } } finally { pool.release(broker); } expr.addPath(near); } } else if ((LA(1)==LITERAL_near) && (_tokenSet_1.member(LA(2)))) { match(LITERAL_near); { switch ( LA(1)) { case SLASH: { match(SLASH); break; } case DSLASH: { match(DSLASH); break; } case EOF: { match(Token.EOF_TYPE); break; } case LPPAREN: { match(LPPAREN); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } if ( inputState.guessing==0 ) { step = new LocationStep( pool, -1, new NameTest("text")); expr.add(step); } } else { boolean synPredMatched44 = false; if (((LA(1)==FUNC) && (LA(2)==LPAREN))) { int _m44 = mark(); synPredMatched44 = true; inputState.guessing++; try { { match(FUNC); match(LPAREN); match(RPAREN); } } catch (RecognitionException pe) { synPredMatched44 = false; } rewind(_m44); inputState.guessing--; } if ( synPredMatched44 ) { f1 = LT(1); match(FUNC); if (!( env.hasFunction(f1.getText()) )) throw new SemanticException(" env.hasFunction(f1.getText()) "); match(LPAREN); match(RPAREN); if ( inputState.guessing==0 ) { fun = Function.createFunction(pool, env.getFunction(f1.getText())); expr.addPath(fun); } } else if ((LA(1)==FUNC) && (LA(2)==LPAREN)) { f2 = LT(1); match(FUNC); if (!( env.hasFunction(f2.getText()) )) throw new SemanticException(" env.hasFunction(f2.getText()) "); if ( inputState.guessing==0 ) { fun = Function.createFunction(pool, env.getFunction(f2.getText())); expr.addPath(fun); } match(LPAREN); or_expr(arg1); if ( inputState.guessing==0 ) { fun.addArgument(arg1); } { _loop46: do { if ((LA(1)==COMMA)) { match(COMMA); if ( inputState.guessing==0 ) { arg2 = new PathExpr(pool); } or_expr(arg2); if ( inputState.guessing==0 ) { fun.addArgument(arg2); } } else { break _loop46; } } while (true); } match(RPAREN); } else { throw new NoViableAltException(LT(1), getFilename()); } }} return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1c0cc42431436631d1b2e9ea8af63bb6dd883496/XPathParser.java/buggy/src/org/exist/parser/XPathParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
445,
67,
1991,
12,
202,
202,
743,
4742,
3065,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
16,
8509,
15877,
16,
2294,
376,
503,
288,
202,
202,
2300,
2235,
31,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
445,
67,
1991,
12,
202,
202,
743,
4742,
3065,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
16,
8509,
15877,
16,
2294,
376,
503,
288,
202,
202,
2300,
2235,
31,
9... |
protected void actOnResult(int exitValue, boolean wasKilled) { if(exitValue == -1) { executeHaltTarget(exitValue); throw new BuildException("an error occured when running TestNG tests"); } if((exitValue & TestNG.HAS_NO_TEST) == TestNG.HAS_NO_TEST) { if(m_haltOnFailure) { executeHaltTarget(exitValue); throw new BuildException("No tests were run"); } else { if(null != m_failurePropertyName) { getProject().setNewProperty(m_failurePropertyName, "true"); } log("TestNG haven't found any tests to be run", Project.MSG_DEBUG); } } boolean failed = ((exitValue & TestNG.HAS_FAILURE) == TestNG.HAS_FAILURE) || wasKilled; if(failed) { final String msg = wasKilled ? "The tests timed out and were killed." : "The tests failed."; if(m_haltOnFailure) { executeHaltTarget(exitValue); throw new BuildException(msg); } else { if(null != m_failurePropertyName) { getProject().setNewProperty(m_failurePropertyName, "true"); } log(msg, Project.MSG_DEBUG); } } if((exitValue & TestNG.HAS_SKIPPED) == TestNG.HAS_SKIPPED) { if(m_haltOnSkipped) { executeHaltTarget(exitValue); throw new BuildException("There are TestNG SKIPPED tests"); } else { if(null != m_skippedPropertyName) { getProject().setNewProperty(m_skippedPropertyName, "true"); } log("There are TestNG SKIPPED tests", Project.MSG_DEBUG); } } if((exitValue & TestNG.HAS_FSP) == TestNG.HAS_FSP) { if(m_haltOnFSP) { executeHaltTarget(exitValue); throw new BuildException("There are TestNG FAILED WITHIN SUCCESS PERCENTAGE tests"); } else { if(null != m_fspPropertyName) { getProject().setNewProperty(m_fspPropertyName, "true"); } log("There are TestNG FAILED WITHIN SUCCESS PERCENTAGE tests", Project.MSG_DEBUG); } } } | 47060 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47060/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/TestNGAntTask.java/buggy/src/main/org/testng/TestNGAntTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1328,
1398,
1253,
12,
474,
2427,
620,
16,
1250,
1703,
47,
13148,
13,
288,
565,
309,
12,
8593,
620,
422,
300,
21,
13,
288,
1377,
1836,
27034,
2326,
12,
8593,
620,
1769,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1328,
1398,
1253,
12,
474,
2427,
620,
16,
1250,
1703,
47,
13148,
13,
288,
565,
309,
12,
8593,
620,
422,
300,
21,
13,
288,
1377,
1836,
27034,
2326,
12,
8593,
620,
1769,
1377,
... | ||
if (ClassUtils.isPrimitive(fieldType)) { | if(ClassUtils.isPrimitive(fieldType)){ | public void visitField(@NotNull PsiField field) { if (field.hasModifierProperty(PsiModifier.STATIC)) { return; } if (field.getInitializer() != null) { return; } if (m_ignorePrimitives) { final PsiType fieldType = field.getType(); if (ClassUtils.isPrimitive(fieldType)) { return; } } final PsiClass aClass = field.getContainingClass(); if (aClass == null) { return; } final PsiManager manager = field.getManager(); final PsiSearchHelper searchHelper = manager.getSearchHelper(); if (searchHelper.isFieldBoundToForm(field)) { return; } if (isInitializedInInitializer(field)) { return; } final PsiMethod[] constructors = aClass.getConstructors(); if (constructors == null || constructors.length == 0) { registerFieldError(field); return; } for(final PsiMethod constructor : constructors){ final PsiCodeBlock body = constructor.getBody(); if(!InitializationUtils.blockMustAssignVariableOrFail(field, body)){ registerFieldError(field); return; } } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/bd57f07c33c419f20715b114b71a7e93425b34c9/InstanceVariableInitializationInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/initialization/InstanceVariableInitializationInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
974,
26964,
5962,
453,
7722,
974,
652,
13,
288,
5411,
309,
261,
1518,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
974,
26964,
5962,
453,
7722,
974,
652,
13,
288,
5411,
309,
261,
1518,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
30... |
translations = ResourceBundle.getBundle("jmu.data.i18n.Translations"); | translations = win.getTranslations(); | public ConnectMenu(MainWindow win, String title) { super(title); translations = ResourceBundle.getBundle("jmu.data.i18n.Translations"); main = win; connect = new JMenuItem(translations.getString("ConnectDialog")); connect.addActionListener(this); add(connect); exit = new JMenuItem(translations.getString("Exit")); exit.addActionListener(this); add(exit); } | 10423 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10423/d2bb871af68bcf228d21ffb0d46604a61a1e0731/ConnectMenu.java/buggy/trunk/src/jmu/gui/menu/ConnectMenu.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8289,
4599,
12,
6376,
3829,
5657,
16,
514,
2077,
13,
288,
202,
202,
9565,
12,
2649,
1769,
202,
202,
13457,
273,
19198,
18,
588,
3405,
2932,
78,
13297,
18,
892,
18,
77,
2643,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8289,
4599,
12,
6376,
3829,
5657,
16,
514,
2077,
13,
288,
202,
202,
9565,
12,
2649,
1769,
202,
202,
13457,
273,
19198,
18,
588,
3405,
2932,
78,
13297,
18,
892,
18,
77,
2643,
... |
public PatternDescr lhs_unary() throws RecognitionException { PatternDescr d; PatternDescr u = null; d = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:17: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) int alt36=5; switch ( input.LA(1) ) { case 40: alt36=1; break; case 41: alt36=2; break; case 42: alt36=3; break; case ID: alt36=4; break; case 28: alt36=5; break; default: NoViableAltException nvae = new NoViableAltException("425:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | \'(\' u= lhs \')\' )", 36, 0, input); throw nvae; } switch (alt36) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:425:25: u= lhs_exist { following.push(FOLLOW_lhs_exist_in_lhs_unary1514); u=lhs_exist(); following.pop(); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:426:25: u= lhs_not { following.push(FOLLOW_lhs_not_in_lhs_unary1522); u=lhs_not(); following.pop(); } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:427:25: u= lhs_eval { following.push(FOLLOW_lhs_eval_in_lhs_unary1530); u=lhs_eval(); following.pop(); } break; case 4 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:428:25: u= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_unary1538); u=lhs_column(); following.pop(); } break; case 5 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:429:25: '(' u= lhs ')' { match(input,28,FOLLOW_28_in_lhs_unary1544); following.push(FOLLOW_lhs_in_lhs_unary1548); u=lhs(); following.pop(); match(input,29,FOLLOW_29_in_lhs_unary1550); } break; } d = u; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/23e6345ce1df19444a51fe623f6e8f8a637abc8b/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
582,
273,
446,
31,
540,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6830,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
582,
273,
446,
31,
540,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288... | ||
repaint(); | PlotPanel.this.repaint(); | public void actionPerformed(ActionEvent e) { cancelShapes(); repaint(); } | 4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/92c461ef37c8d7aa7f9ff51988eede7ee5e2a72a/VisualizePanel.java/clean/trunk/weka/gui/explorer/VisualizePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
225,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
565,
3755,
30080,
5621,
202,
565,
24962,
5621,
202,
225,
289,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
225,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
565,
3755,
30080,
5621,
202,
565,
24962,
5621,
202,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public BugInstance addMethod(String className, String methodName, String methodSig) { addMethod(new MethodAnnotation(className, methodName, methodSig)); | public BugInstance addMethod(String className, String methodName, String methodSig, boolean isStatic) { addMethod(new MethodAnnotation(className, methodName, methodSig, isStatic)); | public BugInstance addMethod(String className, String methodName, String methodSig) { addMethod(new MethodAnnotation(className, methodName, methodSig)); return this; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/c8efa0af361f5ac1482956ece155fd2c777d6863/BugInstance.java/clean/findbugs/src/java/edu/umd/cs/findbugs/BugInstance.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16907,
1442,
18223,
12,
780,
2658,
16,
514,
4918,
16,
514,
707,
8267,
13,
288,
202,
202,
1289,
1305,
12,
2704,
2985,
3257,
12,
12434,
16,
4918,
16,
707,
8267,
10019,
202,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16907,
1442,
18223,
12,
780,
2658,
16,
514,
4918,
16,
514,
707,
8267,
13,
288,
202,
202,
1289,
1305,
12,
2704,
2985,
3257,
12,
12434,
16,
4918,
16,
707,
8267,
10019,
202,
202,... |
if ( _cnt370>=1 ) { break _loop370; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} | if ( _cnt371>=1 ) { break _loop371; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} | protected final void mHEX_DIGITS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = HEX_DIGITS; int _saveIndex; { int _cnt370=0; _loop370: do { switch ( LA(1)) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { matchRange('0','9'); break; } case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': { matchRange('a','f'); break; } case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': { matchRange('A','F'); break; } default: { if ( _cnt370>=1 ) { break _loop370; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } } _cnt370++; } while (true); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/10544e5ec103a411822c6180ed81ef38eab15de8/XQueryLexer.java/clean/src/org/exist/xquery/parser/XQueryLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
20661,
67,
21243,
10158,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
20661,
67,
21243,
10158,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
... |
m_prevBP = (BreakPoss)m_vecInlineBreaks.get(((LineBreakPosition)resetPos).getLeafPos()); while (m_vecInlineBreaks.get(m_vecInlineBreaks.size() - 1) != m_prevBP) | prevBP = (BreakPoss)vecInlineBreaks.get(((LineBreakPosition)resetPos).getLeafPos()); while (vecInlineBreaks.get(vecInlineBreaks.size() - 1) != prevBP) | public void resetPosition(Position resetPos) { if (resetPos == null) { iStartPos = 0; reset(null); m_vecInlineBreaks.clear(); m_prevBP = null; } else { m_prevBP = (BreakPoss)m_vecInlineBreaks.get(((LineBreakPosition)resetPos).getLeafPos()); while (m_vecInlineBreaks.get(m_vecInlineBreaks.size() - 1) != m_prevBP){ m_vecInlineBreaks.remove(m_vecInlineBreaks.size() - 1); } reset(m_prevBP.getPosition()); } } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/a62f977d812bb273863a574255920ca141eec969/LineLayoutManager.java/buggy/src/org/apache/fop/layoutmgr/LineLayoutManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
2555,
12,
2555,
2715,
1616,
13,
288,
3639,
309,
261,
6208,
1616,
422,
446,
13,
288,
5411,
277,
1685,
1616,
273,
374,
31,
5411,
2715,
12,
2011,
1769,
5411,
312,
67,
8799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2715,
2555,
12,
2555,
2715,
1616,
13,
288,
3639,
309,
261,
6208,
1616,
422,
446,
13,
288,
5411,
277,
1685,
1616,
273,
374,
31,
5411,
2715,
12,
2011,
1769,
5411,
312,
67,
8799... |
} | void persistProperty(Connection conn, int feature_id, Object key, Object value, boolean removeFirst) throws SQLException { String keyString = key.toString(); if (removeFirst) { int id = seqDB.intern_ontology_term(conn, keyString); PreparedStatement remove_old_value = conn.prepareStatement("delete from seqfeature_qualifier_value " + " where seqfeature_id = ? and term_id = ?"); remove_old_value.setInt(1, feature_id); remove_old_value.setInt(2, id); remove_old_value.executeUpdate(); remove_old_value.close(); } if (value != null) { PreparedStatement insert_new; if (seqDB.isSPASupported()) { insert_new = conn.prepareStatement("insert into seqfeature_qualifier_value " + " (seqfeature_id, term_id, rank, value) " + "values (?, intern_ontology_term( ? ), ?, ?)"); if (value instanceof Collection) { int cnt = 0; for (Iterator i = ((Collection) value).iterator(); i.hasNext(); ) { insert_new.setInt(1, feature_id); insert_new.setString(2, keyString); insert_new.setInt(3, ++cnt); insert_new.setString(4, i.next().toString()); insert_new.executeUpdate(); } } else { insert_new.setInt(1, feature_id); insert_new.setString(2, keyString); insert_new.setInt(3, 1); insert_new.setString(4, value.toString()); insert_new.executeUpdate(); } insert_new.close(); } else { insert_new = conn.prepareStatement("insert into seqfeature_qualifier_value " + " (seqfeature_id, term_id, rank, value) " + "values (?, ?, ?, ?)"); int sfq = seqDB.intern_ontology_term(conn, keyString); if (value instanceof Collection) { int cnt = 0; for (Iterator i = ((Collection) value).iterator(); i.hasNext(); ) { insert_new.setInt(1, feature_id); insert_new.setInt(2, sfq); insert_new.setInt(3, ++cnt); insert_new.setString(4, i.next().toString()); insert_new.executeUpdate(); } } else { insert_new.setInt(1, feature_id); insert_new.setInt(2, sfq); insert_new.setInt(3, 1); insert_new.setString(4, value.toString()); insert_new.executeUpdate(); } insert_new.close(); } } } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/a7e0c7cf325994968c20178ee5f780a7978f1a42/FeaturesSQL.java/clean/src/org/biojava/bio/seq/db/biosql/FeaturesSQL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3898,
1396,
12,
1952,
1487,
16,
9506,
509,
2572,
67,
350,
16,
9506,
1033,
498,
16,
9506,
1033,
460,
16,
9506,
1250,
1206,
3759,
13,
3639,
1216,
6483,
565,
288,
202,
780,
498,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
3898,
1396,
12,
1952,
1487,
16,
9506,
509,
2572,
67,
350,
16,
9506,
1033,
498,
16,
9506,
1033,
460,
16,
9506,
1250,
1206,
3759,
13,
3639,
1216,
6483,
565,
288,
202,
780,
498,
780,
... | |
return list.remove(listener); } | return list.remove(listener); } | public boolean remove(ProActiveListener listener) { return list.remove(listener); } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/c171c3550f70b496c1228bbed45f5f8feea45a9c/AbstractEventProducer.java/buggy/src/org/objectweb/proactive/core/event/AbstractEventProducer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1206,
12,
626,
3896,
2223,
2991,
13,
288,
1377,
327,
666,
18,
4479,
12,
12757,
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... | [
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1206,
12,
626,
3896,
2223,
2991,
13,
288,
1377,
327,
666,
18,
4479,
12,
12757,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Object provider = ProviderManager.getExtensionProvider(elementName, namespace); if (provider != null) { if (provider instanceof PacketExtensionProvider) { iqPacket = ((IQProvider)provider).parseIQ(parser); } else if (provider instanceof Class) { iqPacket = parseIQWithIntrospection((Class)provider, parser); } } | message.addExtension(parsePacketExtension(elementName, namespace, parser)); | private Packet parseMessage(XmlPullParser parser) throws Exception { Message message = new Message(); message.setTo(parser.getAttributeValue("", "to")); message.setFrom(parser.getAttributeValue("", "from")); message.setType(Message.Type.fromString(parser.getAttributeValue("", "type"))); // Parse sub-elements. We include extra logic to make sure the values // are only read once. This is because it's possible for the names to appear // in arbitrary sub-elements. boolean done = false; String subject = null; String body = null; String thread = null; Map properties = null; while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { String elementName = parser.getName(); String namespace = parser.getNamespace(); if (elementName.equals("subject")) { if (subject == null) { subject = parser.nextText(); } } else if (elementName.equals("body")) { if (body == null) { body = parser.nextText(); } } else if (elementName.equals("thread")) { if (thread == null) { thread = parser.nextText(); } } else if (elementName.equals("error")) { message.setError(parseError(parser)); } else if (elementName.equals("properties") && namespace.equals(PROPERTIES_NAMESPACE)) { properties = parseProperties(parser); } // Otherwise, see if there is a registered provider for // this element name and namespace. else { Object provider = ProviderManager.getExtensionProvider(elementName, namespace); if (provider != null) { if (provider instanceof PacketExtensionProvider) { iqPacket = ((IQProvider)provider).parseIQ(parser); } else if (provider instanceof Class) { iqPacket = parseIQWithIntrospection((Class)provider, parser); } } } } else if (eventType == XmlPullParser.END_TAG) { if (parser.getName().equals("message")) { done = true; } } } message.setSubject(subject); message.setBody(body); message.setThread(thread); // Set packet properties. if (properties != null) { for (Iterator i=properties.keySet().iterator(); i.hasNext(); ) { String name = (String)i.next(); message.setProperty(name, properties.get(name)); } } return message; } | 1538 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1538/d3bd50a1e4cedf89e8507df5fe2f5721ed9de918/PacketReader.java/clean/source/org/jivesoftware/smack/PacketReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
11114,
1109,
1079,
12,
4432,
9629,
2678,
2082,
13,
1216,
1185,
288,
3639,
2350,
883,
273,
394,
2350,
5621,
3639,
883,
18,
542,
774,
12,
4288,
18,
588,
14942,
2932,
3113,
315,
869,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11114,
1109,
1079,
12,
4432,
9629,
2678,
2082,
13,
1216,
1185,
288,
3639,
2350,
883,
273,
394,
2350,
5621,
3639,
883,
18,
542,
774,
12,
4288,
18,
588,
14942,
2932,
3113,
315,
869,
... |
data.horizontalIndent = FieldDecorationRegistry.getDefault().getMaximumDecorationWidth(); | public void createControl(Composite parent) { Font font = parent.getFont(); Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); setControl(composite); PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IIDEHelpContextIds.WORKING_SET_RESOURCE_PAGE); Label label = new Label(composite, SWT.WRAP); label.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_message); GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); label.setLayoutData(data); label.setFont(font); DecoratedField field = new DecoratedField(composite, SWT.SINGLE | SWT.BORDER, new TextControlCreator()); field.addFieldDecoration(FieldDecorationRegistry.getDefault().getFieldDecoration( FieldDecorationRegistry.DEC_REQUIRED), SWT.BOTTOM | SWT.LEFT, false); text = (Text)field.getControl(); field.getLayoutControl().setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL)); text.setFont(font); text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { validateInput(); } }); text.addFocusListener(new RequiredFieldColorer(text, new TextContentAdapter())); text.setFocus(); label = new Label(composite, SWT.WRAP); label.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_label_tree); data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); label.setLayoutData(data); label.setFont(font); tree = new CheckboxTreeViewer(composite); tree.setUseHashlookup(true); final ITreeContentProvider treeContentProvider = new WorkbenchContentProvider(); tree.setContentProvider(treeContentProvider); tree.setLabelProvider(new DecoratingLabelProvider( new WorkbenchLabelProvider(), IDEWorkbenchPlugin.getDefault() .getWorkbench().getDecoratorManager() .getLabelDecorator())); tree.setInput(IDEWorkbenchPlugin.getPluginWorkspace().getRoot()); tree.setSorter(new ResourceSorter(ResourceSorter.NAME)); data = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL); data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; data.horizontalIndent = FieldDecorationRegistry.getDefault().getMaximumDecorationWidth(); tree.getControl().setLayoutData(data); tree.getControl().setFont(font); tree.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { handleCheckStateChange(event); } }); tree.addTreeListener(new ITreeViewerListener() { public void treeCollapsed(TreeExpansionEvent event) { } public void treeExpanded(TreeExpansionEvent event) { final Object element = event.getElement(); if (tree.getGrayed(element) == false) { BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() { public void run() { setSubtreeChecked((IContainer) element, tree.getChecked(element), false); } }); } } }); // Add select / deselect all buttons for bug 46669 Composite buttonComposite = new Composite(composite, SWT.NONE); buttonComposite.setLayout(new GridLayout(2, false)); buttonComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); Button selectAllButton = new Button(buttonComposite, SWT.PUSH); selectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_label); selectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_toolTip); selectAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent selectionEvent) { tree.setCheckedElements(treeContentProvider.getElements(tree.getInput())); validateInput(); } }); selectAllButton.setFont(font); setButtonLayoutData(selectAllButton); Button deselectAllButton = new Button(buttonComposite, SWT.PUSH); deselectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_deselectAll_label); deselectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_deselectAll_toolTip); deselectAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent selectionEvent) { tree.setCheckedElements(new Object[0]); validateInput(); } }); deselectAllButton.setFont(font); setButtonLayoutData(deselectAllButton); initializeCheckedState(); if (workingSet != null) { text.setText(workingSet.getName()); } setPageComplete(false); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7a6a8ce3202daa07ef577d476a9c29e36846737d/ResourceWorkingSetPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceWorkingSetPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
10063,
3512,
273,
982,
18,
588,
5711,
5621,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
3639,
9635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3367,
12,
9400,
982,
13,
288,
3639,
10063,
3512,
273,
982,
18,
588,
5711,
5621,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
3639,
9635,
... | |
loadListButton = new JButton(I18n.getMessage("thaw.plugin.fetch.loadKeyListFromFile")); loadListButton.addActionListener(this); | this.loadListButton = new JButton(I18n.getMessage("thaw.plugin.fetch.loadKeyListFromFile")); this.loadListButton.addActionListener(this); | public FetchPanel(Core core, FetchPlugin fetchPlugin) { this.core = core; this.fetchPlugin = fetchPlugin; advancedMode = Boolean.valueOf(core.getConfig().getValue("advancedMode")).booleanValue(); mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout(20, 20)); centeredPart = new JPanel(); centeredPart.setLayout(new BorderLayout(10, 10)); validationButton = new JButton(I18n.getMessage("thaw.common.fetch")); validationButton.setPreferredSize(new Dimension(300, 40)); validationButton.addActionListener(this); filePanel = new JPanel(); filePanel.setLayout(new BorderLayout()); /* FILE LIST */ fileList = new JTextArea(); fileLabel = new JLabel(I18n.getMessage("thaw.plugin.fetch.keyList")); loadListButton = new JButton(I18n.getMessage("thaw.plugin.fetch.loadKeyListFromFile")); loadListButton.addActionListener(this); pasteButton = new JButton(I18n.getMessage("thaw.plugin.fetch.pasteFromClipboard")); pasteButton.addActionListener(this); JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new GridLayout(1,2)); buttonPanel.add(pasteButton); buttonPanel.add(loadListButton); filePanel.add(fileLabel, BorderLayout.NORTH); filePanel.add(new JScrollPane(fileList), BorderLayout.CENTER); filePanel.add(buttonPanel, BorderLayout.SOUTH); /* below panel */ belowPanel = new JPanel(); if(advancedMode) belowPanel.setLayout(new GridLayout(2, 2, 10, 10)); else belowPanel.setLayout(new GridLayout(1, 2, 10, 10)); /* PRIORITY */ priorityPanel = new JPanel(); priorityPanel.setLayout(new GridLayout(2, 1, 5, 5)); priorityLabel = new JLabel(I18n.getMessage("thaw.common.priority")); priorities = new String[] { I18n.getMessage("thaw.plugin.priority.p0"), I18n.getMessage("thaw.plugin.priority.p1"), I18n.getMessage("thaw.plugin.priority.p2"), I18n.getMessage("thaw.plugin.priority.p3"), I18n.getMessage("thaw.plugin.priority.p4"), I18n.getMessage("thaw.plugin.priority.p5"), I18n.getMessage("thaw.plugin.priority.p6") }; prioritySelecter = new JComboBox(priorities); prioritySelecter.setSelectedItem(I18n.getMessage("thaw.plugin.priority.p4")); priorityPanel.add(priorityLabel); priorityPanel.add(prioritySelecter); /* QUEUE */ queuePanel = new JPanel(); queuePanel.setLayout(new GridLayout(2, 1, 5, 5)); queueLabel = new JLabel(I18n.getMessage("thaw.common.globalQueue")); queues = new String [] { I18n.getMessage("thaw.common.true"), I18n.getMessage("thaw.common.false"), }; queueSelecter = new JComboBox(queues); queuePanel.add(queueLabel); queuePanel.add(queueSelecter); /* DESTINATION */ destinationLabel = new JLabel(I18n.getMessage("thaw.plugin.fetch.destinationDirectory")); dstChoosePanel = new JPanel(); dstChoosePanel.setLayout(new GridLayout(3,1, 5, 5)); destinationField = new JTextField(""); if(core.getConfig().getValue("lastDestinationDirectory") != null) destinationField.setText(core.getConfig().getValue("lastDestinationDirectory")); destinationField.setEditable(true); destinationButton = new JButton(I18n.getMessage("thaw.plugin.fetch.chooseDestination")); destinationButton.addActionListener(this); dstChoosePanel.add(destinationLabel); dstChoosePanel.add(destinationField); dstChoosePanel.add(destinationButton); if(advancedMode) { belowPanel.add(priorityPanel); //belowPanel.add(persistencePanel); belowPanel.add(queuePanel); } belowPanel.add(dstChoosePanel); if(!advancedMode) { belowPanel.add(new JPanel()); } centeredPart.add(filePanel, BorderLayout.CENTER); centeredPart.add(belowPanel, BorderLayout.SOUTH); mainPanel.add(centeredPart, BorderLayout.CENTER); mainPanel.add(validationButton, BorderLayout.SOUTH); } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/FetchPanel.java/clean/src/thaw/plugins/fetchPlugin/FetchPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8065,
5537,
12,
4670,
2922,
16,
8065,
3773,
2158,
3773,
13,
288,
202,
202,
2211,
18,
3644,
273,
2922,
31,
202,
202,
2211,
18,
5754,
3773,
273,
2158,
3773,
31,
202,
202,
27080,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8065,
5537,
12,
4670,
2922,
16,
8065,
3773,
2158,
3773,
13,
288,
202,
202,
2211,
18,
3644,
273,
2922,
31,
202,
202,
2211,
18,
5754,
3773,
273,
2158,
3773,
31,
202,
202,
27080,... |
artifactList = new ArrayList(); | public List search( Query query ) throws RepositoryIndexSearchException { org.apache.lucene.search.Query luceneQuery; try { luceneQuery = createLuceneQuery( query ); } catch ( ParseException e ) { throw new RepositoryIndexSearchException( "Unable to construct query: " + e.getMessage(), e ); } IndexSearcher searcher; try { searcher = new IndexSearcher( index.getIndexPath() ); } catch ( IOException e ) { throw new RepositoryIndexSearchException( "Unable to open index: " + e.getMessage(), e ); } List docs; try { Hits hits = searcher.search( luceneQuery ); docs = buildList( hits ); } catch ( IOException e ) { throw new RepositoryIndexSearchException( "Unable to search index: " + e.getMessage(), e ); } catch ( XmlPullParserException xe ) { throw new RepositoryIndexSearchException( "Unable to parse metadata file: " + xe.getMessage(), xe ); } finally { try { searcher.close(); } catch ( IOException e ) { getLogger().error( "Unable to close index searcher", e ); } } return docs; } | 28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/edd8a998aa6006fddaf4d4a404bbdd6ddfd246d7/DefaultRepositoryIndexSearcher.java/clean/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/DefaultRepositoryIndexSearcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6462,
682,
273,
394,
2407,
5621,
6462,
682,
273,
394,
2407,
5621,
6462,
682,
273,
394,
2407,
5621,
6462,
682,
273,
394,
2407,
5621,
1071,
17706,
682,
273,
394,
2407,
5621,
987,
17706,
682,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6462,
682,
273,
394,
2407,
5621,
6462,
682,
273,
394,
2407,
5621,
6462,
682,
273,
394,
2407,
5621,
6462,
682,
273,
394,
2407,
5621,
1071,
17706,
682,
273,
394,
2407,
5621,
987,
17706,
682,
273... | |
bytes = data.getBytes("ISO-8859-1"); | bytes = data.getBytes("UTF-8"); | public static String encodeBase64(String data) { byte[] bytes = null; try { bytes = data.getBytes("ISO-8859-1"); } catch (UnsupportedEncodingException uee) { Log.error(uee); } return encodeBase64(bytes); } | 6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/d064c3ee6a9c01ddf85f1bfb9b8a9e5319116d57/StringUtils.java/buggy/src/java/org/jivesoftware/util/StringUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2017,
2171,
1105,
12,
780,
501,
13,
288,
3639,
1160,
8526,
1731,
273,
446,
31,
3639,
775,
288,
5411,
1731,
273,
501,
18,
588,
2160,
2932,
5159,
17,
28,
8863,
3639,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2017,
2171,
1105,
12,
780,
501,
13,
288,
3639,
1160,
8526,
1731,
273,
446,
31,
3639,
775,
288,
5411,
1731,
273,
501,
18,
588,
2160,
2932,
5159,
17,
28,
8863,
3639,
289,
... |
/* * Use ifIndex to lookup the IfInfo object from the interface * map. */ IfInfo ifInfo = (IfInfo) m_agent.getIfMap().get(new Integer(ifEntry.getIfIndex().intValue())); if (ifInfo == null) { continue; } validateDsList(ifInfo); | validateAttrList(ifInfo); | private void saveInterfaceData() { if (getIfCollector() != null) { logIfAliasConfig(); /* * Retrieve list of SNMP collector entries generated for the remote * node's interfaces. */ if (!getIfCollector().hasData()) { log().warn("updateRRDs: No data retrieved for the agent at " + m_agent.getHostAddress()); } // Iterate over the SNMP collector entries Iterator iter = getIfCollector().getEntries().iterator(); while (iter.hasNext()) { SNMPCollectorEntry ifEntry = (SNMPCollectorEntry) iter.next(); // TODO: This will send rescans for entries that have no IfInfo... so moving below IfInfo may fail to catch all the cases // However... since we send an event if ifNumber changed maybe we don't need these? if (currentAliasIsOutOfDate(ifEntry)) { m_forceRescanState.rescanIndicated(); logForceRescan(ifEntry); } /* * Use ifIndex to lookup the IfInfo object from the interface * map. */ IfInfo ifInfo = (IfInfo) m_agent.getIfMap().get(new Integer(ifEntry.getIfIndex().intValue())); if (ifInfo == null) { // no data needed for this interface continue; } validateDsList(ifInfo); if (notScheduledForCollection(ifEntry, ifInfo) && !forceStoreByAlias(getAliasDirName(ifEntry))) { logSkip(ifEntry, ifInfo); continue; } if (notScheduledForCollection(ifEntry, ifInfo) && forceStoreByAlias(getAliasDirName(ifEntry))) { logStore(ifEntry, ifInfo); } /* * Iterate over the interface datasource list and issue RRD * update commands to update each datasource which has a * corresponding value in the collected SNMP data. */ Iterator i = ifInfo.getDsList().iterator(); while (i.hasNext()) { DataSource ds = (DataSource) i.next(); try { String dsVal = ds.getRRDValue(ifEntry); // Build RRD update command if (dsVal == null) { logNoDataRetrieved(ifEntry, ds); } else { if (shouldStoreByNode(ifEntry, ifInfo)) { storeByNode(ifEntry, ifInfo, ds, dsVal); } if (shouldStoreByAlias()) { storeByAlias(ifEntry, getAliasDirName(ifEntry), ds, dsVal); } } } catch (IllegalArgumentException e) { logUpdateFailed(ifEntry, ds, e); } } // end while(more datasources) } // end while(more SNMP collector entries) } // end if(ifCollector != null) } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/7d3dd9c5c505cae507a7524a6d4504bb28f24852/UpdateRRDs.java/clean/src/services/org/opennms/netmgt/collectd/UpdateRRDs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
1358,
751,
1435,
288,
3639,
309,
261,
588,
2047,
7134,
1435,
480,
446,
13,
288,
1171,
202,
202,
1330,
2047,
2936,
809,
5621,
540,
202,
202,
20308,
377,
1082,
380,
10708,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
1358,
751,
1435,
288,
3639,
309,
261,
588,
2047,
7134,
1435,
480,
446,
13,
288,
1171,
202,
202,
1330,
2047,
2936,
809,
5621,
540,
202,
202,
20308,
377,
1082,
380,
10708,
... |
if (isKnownPrimitive(fun.symbol())) { | if (isJumpingPrimitive(fun.symbol())) { | protected void genCond(Context ctx, Tree tree, JCode.Label target, boolean when) throws JCode.OffsetTooBigException { switch (tree) { case Apply(Tree fun, Tree[] args): if (isKnownPrimitive(fun.symbol())) { Primitive prim = prims.getPrimitive(fun.symbol()); Tree[] allArgs = extractPrimitiveArgs((Tree.Apply)tree); switch (prim) { case ID: case EQ: case NE: assert allArgs.length == 2; Tree unbox1 = unbox(allArgs[0]); Tree unbox2 = unbox(allArgs[1]); if (!getMaxType(unbox1, unbox2).isReferenceType()) { allArgs[0] = unbox1; allArgs[1] = unbox2; genCompPrim(ctx, prim, allArgs, target, when); } else { genEqPrim(ctx, prim, allArgs, target, when); } return; case LT: case LE: case GE: case GT: assert allArgs.length == 2; allArgs[0] = unbox(allArgs[0]); genCompPrim(ctx, prim, allArgs, target, when); return; case ZNOT: assert allArgs.length == 1; genCond(ctx, unbox(allArgs[0]), target, !when); return; case ZOR: case ZAND: if (when ^ (prim == Primitive.ZAND)) { // x || y jump if true -or- x && y jump if false genCond(ctx, unbox(allArgs[0]), target, when); genCond(ctx, allArgs[1], target, when); } else { // x || y jump if false -or- x && y jump if true JCode.Label afterLabel = ctx.code.newLabel(); genCond(ctx, unbox(allArgs[0]), afterLabel, !when); genCond(ctx, allArgs[1], target, when); afterLabel.anchorToNext(); } return; } } } // Default case: the condition is not a comparison or logical // primitive. genLoad(ctx, tree, JType.BOOLEAN); if (when) ctx.code.emitIFNE(target); else ctx.code.emitIFEQ(target); } | 5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/5a2d05e009964b20081f242b8a8218ad6d8258c3/GenJVM.java/clean/sources/scalac/backend/jvm/GenJVM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3157,
12441,
12,
1042,
1103,
16,
21821,
4902,
2151,
16,
21821,
804,
1085,
18,
2224,
1018,
16,
21821,
1250,
1347,
13,
3639,
1216,
804,
1085,
18,
2335,
10703,
9901,
503,
288,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
12441,
12,
1042,
1103,
16,
21821,
4902,
2151,
16,
21821,
804,
1085,
18,
2224,
1018,
16,
21821,
1250,
1347,
13,
3639,
1216,
804,
1085,
18,
2335,
10703,
9901,
503,
288,
363... |
{ | { | public void setText(String text) { try { doc.remove(0, doc.getLength()); doc.insertString(0, text, null); } catch (BadLocationException e) { // This can never happen. } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7883,
12,
780,
977,
13,
565,
288,
565,
775,
565,
288,
202,
2434,
18,
4479,
12,
20,
16,
997,
18,
588,
1782,
10663,
202,
2434,
18,
6387,
780,
12,
20,
16,
977,
16,
446,
1769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7883,
12,
780,
977,
13,
565,
288,
565,
775,
565,
288,
202,
2434,
18,
4479,
12,
20,
16,
997,
18,
588,
1782,
10663,
202,
2434,
18,
6387,
780,
12,
20,
16,
977,
16,
446,
1769... |
break; | continue Loop; | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; 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; Loop: for (;;) { try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcNew >= 0) { // Has catch block doCatch = true; } } if (pcNew < 0) { pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and 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 = pcNew; continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); javaException = new JavaScriptException(value, idata.itsSourceFile, sourceLine); exceptionPC = pc - 1; if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); stack[stackTop--] = null; continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case Token.POP : stack[stackTop] = null; stackTop--; break; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; break; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; break; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); break; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); break; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; break; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Icode_TYPEOFNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Icode_NAME_AND_THIS : { String name = strings[getIndex(iCode, pc)]; boolean skipGetThis = (0 != iCode[pc + 2]); stackTop = do_nameAndThis(stack, stackTop, scope, name, skipGetThis); pc += 3; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Icode_NAMEINC : case Icode_NAMEDEC : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, name, op == Icode_NAMEINC); pc += 2; break; } case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; break; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case Token.NULL : stack[++stackTop] = null; break; case Token.THIS : stack[++stackTop] = thisObj; break; case Token.THISFN : stack[++stackTop] = fnOrScript; break; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; break; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; break; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case Token.CATCH_SCOPE : { String name = strings[getIndex(iCode, pc)]; stack[stackTop] = ScriptRuntime.newCatchScope(name, stack[stackTop]); pc += 2; break; } case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; break; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; break; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; break; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; break; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; break; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; break; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; break; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } // end of interpreter switch } } 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; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/369d8e109106915195bef3af1282543ab09e3869/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701... |
public void testDataExtractionWithFilter( ) { | public void testDataExtractionWithFilter() { | public void testDataExtractionWithFilter( ) { report_design = inputPath + "DataExtraction_table.rptdesign"; report_document = outputPath + "DataExtraction_table.rptdocument"; try { createReportDocument( report_design, report_document ); reportDoc = engine.openReportDocument( report_document ); IDataExtractionTask extractTask = engine .createDataExtractionTask( reportDoc ); extractTask.selectResultSet( "t1" ); IFilterDefinition[] filterExpression = new IFilterDefinition[1]; filterExpression[0] = new FilterDefinition( new ConditionalExpression( "row[\"territory\"]", ConditionalExpression.OP_EQ, "\"EMEA\"", null ) ); extractTask.setFilters( filterExpression ); IExtractionResults result = extractTask.extract( ); if ( result != null ) { int officecode = 0; IDataIterator data = result.nextResultIterator( ); if ( data != null ) { data.next( ); officecode = Integer.parseInt( data.getValue( "code" ) .toString( ) ); assertEquals( "Fail to extract filtered data", 4, officecode ); if ( data.next( ) ) { officecode = Integer.parseInt( data.getValue( "code" ) .toString( ) ); assertEquals( "Fail to extract filtered data", 7, officecode ); } } } else { fail( "Fail to extract filtered data" ); } } catch ( Exception e ) { e.printStackTrace( ); fail( "Fail to extract filtered data" ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4bce1ae0cad8677a83e260503bb7af276ddd5e48/DataExtractionTaskTest.java/clean/testsuites/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/DataExtractionTaskTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
751,
25757,
1190,
1586,
12,
262,
202,
95,
202,
202,
6006,
67,
16934,
273,
810,
743,
397,
315,
751,
25757,
67,
2121,
18,
86,
337,
16934,
14432,
202,
202,
6006,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
751,
25757,
1190,
1586,
12,
262,
202,
95,
202,
202,
6006,
67,
16934,
273,
810,
743,
397,
315,
751,
25757,
67,
2121,
18,
86,
337,
16934,
14432,
202,
202,
6006,
67,
... |
public void visitCode(Code obj) { visit(obj); } | public void visitCode(Code obj) { visit(obj); } | public void visitCode(Code obj) { visit(obj); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/BetterVisitor.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
1085,
12,
1085,
1081,
13,
3196,
202,
95,
3757,
12,
2603,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
1085,
12,
1085,
1081,
13,
3196,
202,
95,
3757,
12,
2603,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
final String schemaName = action.getUnionTableSchema() == null ? action | final String schemaName = action.getTargetTableSchema() == null ? action | public void doUnion(final Union action, final List statements) throws Exception { final String schemaName = action.getUnionTableSchema() == null ? action .getDataSetSchemaName() : ((JDBCSchema) action .getUnionTableSchema()).getDatabaseSchema(); final String tableName = action.getUnionTableName(); final StringBuffer sb = new StringBuffer(); sb.append("create table " + schemaName + "." + tableName + " as select * from "); for (int i = 0; i < action.getTargetTableSchemas().size(); i++) { if (i > 0) sb.append(" union select * from "); final String targetSchemaName = action.getTargetTableSchemas().get( i) == null ? action.getDataSetSchemaName() : ((Schema) action.getTargetTableSchemas().get(i)) .getName(); final String targetTableName = (String) action .getTargetTableNames().get(i); sb.append(targetSchemaName); sb.append('.'); sb.append(targetTableName); } statements.add(sb.toString()); } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/697fc52b912bb5a1524113edc0e15bf091f78336/OracleDialect.java/buggy/src/java/org/biomart/builder/controller/dialects/OracleDialect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
14325,
12,
6385,
9589,
1301,
16,
727,
987,
6317,
13,
1082,
202,
15069,
1185,
288,
202,
202,
6385,
514,
21960,
273,
1301,
18,
588,
14325,
1388,
3078,
1435,
422,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
14325,
12,
6385,
9589,
1301,
16,
727,
987,
6317,
13,
1082,
202,
15069,
1185,
288,
202,
202,
6385,
514,
21960,
273,
1301,
18,
588,
14325,
1388,
3078,
1435,
422,
446,
... |
} else if (parameter.getName().equals(W_INT)) { | } else if (parameter.getName().equals(W_INT)) { | public static Object getSimpleTypeObject(Class parameter, OMElement value) { if (parameter.getName().equals(STRING)) { return value.getText(); } else if (parameter.getName().equals(INT)) { return new Integer(value.getText()); } else if (parameter.getName().equals(BOOLEAN)) { return Boolean.valueOf(value.getText()); } else if (parameter.getName().equals(BYTE)) { return new Byte(value.getText()); } else if (parameter.getName().equals(DOUBLE)) { return new Double(value.getText()); } else if (parameter.getName().equals(SHORT)) { return new Short(value.getText()); } else if (parameter.getName().equals(LONG)) { return new Long(value.getText()); } else if (parameter.getName().equals(FLOAT)) { return new Float(value.getText()); } else if (parameter.getName().equals(CHAR)) { return new Character(value.getText().toCharArray()[0]); } else if (parameter.getName().equals(W_INT)) { return new Integer(value.getText()); } else if (parameter.getName().equals(W_BOOLEAN)) { return Boolean.valueOf(value.getText()); } else if (parameter.getName().equals(W_BYTE)) { return new Byte(value.getText()); } else if (parameter.getName().equals(W_DOUBLE)) { return new Double(value.getText()); } else if (parameter.getName().equals(W_SHORT)) { return new Short(value.getText()); } else if (parameter.getName().equals(W_LONG)) { return new Long(value.getText()); } else if (parameter.getName().equals(W_FLOAT)) { return new Float(value.getText()); } else if (parameter.getName().equals(W_CHAR)) { return new Character(value.getText().toCharArray()[0]); } else if (parameter.getName().equals(W_CALANDER)) { return makeCalendar(value.getText(),false); }else { return null; } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/0c55dce5f6dd8b13760d304fba333313a5af841e/SimpleTypeMapper.java/buggy/modules/adb/src/org/apache/axis2/databinding/typemapping/SimpleTypeMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
8120,
559,
921,
12,
797,
1569,
16,
531,
12310,
460,
13,
288,
3639,
309,
261,
6775,
18,
17994,
7675,
14963,
12,
5804,
3719,
288,
5411,
327,
460,
18,
588,
1528,
5621,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8120,
559,
921,
12,
797,
1569,
16,
531,
12310,
460,
13,
288,
3639,
309,
261,
6775,
18,
17994,
7675,
14963,
12,
5804,
3719,
288,
5411,
327,
460,
18,
588,
1528,
5621,
363... |
if (rel.additionalTables != null) { tables.append(',').append(rel.additionalTables); } | rel.appendAdditionalTables(tables); | public Vector getPropertyNames(Node home, Relation rel) throws Exception { // Transactor tx = (Transactor) Thread.currentThread (); // tx.timer.beginEvent ("getNodeIDs "+home); if ((rel == null) || (rel.otherType == null) || !rel.otherType.isRelational()) { // this should never be called for embedded nodes throw new RuntimeException("NodeMgr.getPropertyNames called for non-relational node " + home); } else { Vector retval = new Vector(); // if we do a groupby query (creating an intermediate layer of groupby nodes), // retrieve the value of that field instead of the primary key String namefield = (rel.groupby == null) ? rel.accessName : rel.groupby; Connection con = rel.otherType.getConnection(); // set connection to read-only mode if (!con.isReadOnly()) con.setReadOnly(true); String table = rel.otherType.getTableName(); Statement stmt = null; StringBuffer tables = new StringBuffer(table); if (rel.additionalTables != null) { tables.append(',').append(rel.additionalTables); } try { // NOTE: we explicitly convert tables StringBuffer to a String // before appending to be compatible with JDK 1.3 StringBuffer q = new StringBuffer("SELECT ").append(namefield) .append(" FROM ") .append(tables.toString()); if (home.getSubnodeRelation() != null) { q.append(" ").append(home.getSubnodeRelation()); } else { // let relation object build the query q.append(rel.buildQuery(home, home.getNonVirtualParent(), null, " WHERE ", true)); } stmt = con.createStatement(); long logTimeStart = logSql ? System.currentTimeMillis() : 0; ResultSet rs = stmt.executeQuery(q.toString()); if (logSql) { long logTimeStop = System.currentTimeMillis(); logSqlStatement("SQL SELECT_ACCESSNAMES", table, logTimeStart, logTimeStop, q.toString()); } while (rs.next()) { String n = rs.getString(1); if (n != null) { retval.addElement(n); } } } finally { // tx.timer.endEvent ("getNodeIDs "+home); if (stmt != null) { try { stmt.close(); } catch (Exception ignore) { } } } return retval; } } | 46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/0f3d15cee5cb035a77e018622d225ff454779d99/NodeManager.java/buggy/src/helma/objectmodel/db/NodeManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
3911,
1557,
12,
907,
6382,
16,
7317,
1279,
13,
18701,
1216,
1185,
288,
3639,
368,
2604,
3362,
2229,
273,
261,
1429,
3362,
13,
4884,
18,
2972,
3830,
261,
1769,
3639,
368,
2229,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
3911,
1557,
12,
907,
6382,
16,
7317,
1279,
13,
18701,
1216,
1185,
288,
3639,
368,
2604,
3362,
2229,
273,
261,
1429,
3362,
13,
4884,
18,
2972,
3830,
261,
1769,
3639,
368,
2229,... |
response.getWriter().print(startsWith == null ? "" : startsWith); | response.getWriter().print(prefix == null ? "" : prefix); | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int limit = MAX_LENGTH; try { limit = Integer.parseInt(request.getParameter("limit")); } catch (Throwable ignored) {} String pathInfo = request.getPathInfo(); String[] path = new String[0]; if(!StringUtils.isEmpty(pathInfo)) { path = StringUtils.split(pathInfo, '/'); } Roller roller = RollerFactory.getRoller(); try { response.setContentType("text/html; charset=utf-8"); WeblogManager wmgr = roller.getWeblogManager(); WebsiteData website = null; String startsWith = null; // website handle is always the first path segment, // only throw an exception when not found if we have a tag prefix if(path.length > 0) { try { UserManager umgr = RollerFactory.getRoller().getUserManager(); website = umgr.getWebsiteByHandle(path[0], Boolean.TRUE); if (website == null && path.length > 1) throw new RollerException(); } catch (RollerException ex) { response.sendError(HttpServletResponse.SC_NOT_FOUND, "Weblog handle not found."); return; } } if(path.length == 2) { startsWith = path[1].trim(); } else if(path.length == 1 && website == null) { startsWith = path[0].trim(); } List tags = wmgr.getTags(website, null, startsWith, limit); response.getWriter().println("{"); response.getWriter().print(" prefix : \""); response.getWriter().print(startsWith == null ? "" : startsWith); response.getWriter().println("\","); response.getWriter().print(" weblog : \""); response.getWriter().print(website != null ? website.getHandle() : ""); response.getWriter().println("\","); response.getWriter().println(" tagcounts : ["); for(Iterator it = tags.iterator(); it.hasNext();) { TagStat stat = (TagStat) it.next(); response.getWriter().print(" { tag : \""); response.getWriter().print(stat.getName()); response.getWriter().print("\", "); response.getWriter().print("count : "); response.getWriter().print(stat.getCount()); response.getWriter().print(" }"); if(it.hasNext()) response.getWriter().println(", "); } response.getWriter().println("\n ]\n}"); response.flushBuffer(); } catch (RollerException e) { throw new ServletException(e.getMessage()); } } | 46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/14b28b1942e203ec021b2c6bbb2490d2dec41ca7/TagStatsServlet.java/clean/src/org/apache/roller/webservices/json/TagStatsServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
2940,
18572,
590,
16,
12446,
766,
13,
5411,
1216,
16517,
16,
1860,
288,
10792,
509,
1800,
273,
4552,
67,
7096,
31,
9079,
775,
288,
2398,
1800,
273,
2144,
18,
2670,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2940,
18572,
590,
16,
12446,
766,
13,
5411,
1216,
16517,
16,
1860,
288,
10792,
509,
1800,
273,
4552,
67,
7096,
31,
9079,
775,
288,
2398,
1800,
273,
2144,
18,
2670,
... |
public void setAuxiliaryFiles(List<? extends DocFile> aux); | public void setAuxiliaryFiles(List<DocFile> aux); | public void setAuxiliaryFiles(List<? extends DocFile> aux); | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/ac147bfd47d7e558bfd3f0afa39ad091a35b6f6f/ProjectFileIR.java/buggy/drjava/src/edu/rice/cs/drjava/project/ProjectFileIR.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
21981,
20606,
2697,
12,
682,
12880,
3231,
3521,
812,
34,
9397,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
21981,
20606,
2697,
12,
682,
12880,
3231,
3521,
812,
34,
9397,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public org.quickfix.field.RawDataLength getRawDataLength() throws FieldNotFound { org.quickfix.field.RawDataLength value = new org.quickfix.field.RawDataLength(); | public quickfix.field.RawDataLength getRawDataLength() throws FieldNotFound { quickfix.field.RawDataLength value = new quickfix.field.RawDataLength(); | public org.quickfix.field.RawDataLength getRawDataLength() throws FieldNotFound { org.quickfix.field.RawDataLength value = new org.quickfix.field.RawDataLength(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/News.java/buggy/src/java/src/quickfix/fix41/News.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
31733,
1782,
10547,
751,
1782,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
31733,
1782,
460,
273,
394,
2358,
18,
19525,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
31733,
1782,
10547,
751,
1782,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
31733,
1782,
460,
273,
394,
2358,
18,
19525,... |
{ } | { } | protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { } | 51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/8c7fded16a75ce2a1f0300235fd1af96b502ea2e/ExternalImage.java/buggy/wicket-library/src/java/wicket/addons/utils/ExternalImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
603,
1841,
1805,
2250,
12,
6385,
26420,
1228,
9813,
1228,
16,
727,
5435,
1805,
28059,
13,
565,
288,
565,
289,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
603,
1841,
1805,
2250,
12,
6385,
26420,
1228,
9813,
1228,
16,
727,
5435,
1805,
28059,
13,
565,
288,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return RubyFixnum.newFixnum(getRuntime(), i); | return getRuntime().newFixnum(i); | public IRubyObject index(IRubyObject obj) { for (int i = 0, len = getLength(); i < len; i++) { if (obj.callMethod("==", entry(i)).isTrue()) { return RubyFixnum.newFixnum(getRuntime(), i); } } return getRuntime().getNil(); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArray.java/buggy/src/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
770,
12,
7937,
10340,
921,
1081,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
16,
562,
273,
9888,
5621,
277,
411,
562,
31,
277,
27245,
288,
5411,
309,
261,
2603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
770,
12,
7937,
10340,
921,
1081,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
16,
562,
273,
9888,
5621,
277,
411,
562,
31,
277,
27245,
288,
5411,
309,
261,
2603... |
result.write(latestLines[index].getBytes()); | writeLineAndEol(result, latestLines[index]); | private int createConflict(OutputStream result, QSequenceDifferenceBlock localStart, QSequenceDifferenceBlock localEnd, QSequenceDifferenceBlock latestStart, QSequenceDifferenceBlock latestEnd, SVNSequenceLine[] baseLines, SVNSequenceLine[] localLines, SVNSequenceLine[] latestLines, int baseLineIndex) throws IOException { final int minBaseFrom = Math.min(localStart.getLeftFrom(), latestStart.getLeftFrom()); final int maxBaseTo = Math.max(localEnd.getLeftTo(), latestEnd.getLeftTo()); for (baseLineIndex++; baseLineIndex < minBaseFrom; baseLineIndex++) { writeLineAndEol(result, baseLines[baseLineIndex]); } final int localFrom = Math.max(0, localStart.getRightFrom() - (localStart.getLeftFrom() - minBaseFrom)); final int localTo = Math.min(localLines.length - 1, localEnd.getRightTo() + (maxBaseTo - localEnd.getLeftTo())); final int latestFrom = Math.max(0, latestStart.getRightFrom() - (latestStart.getLeftFrom() - minBaseFrom)); final int latestTo = Math.min(latestLines.length - 1, latestEnd.getRightTo() + (maxBaseTo - latestEnd.getLeftTo())); writeBytesAndEol(result, myConflictStart); for (int index = localFrom; index <= localTo; index++) { if (index < localTo) { writeLineAndEol(result, localLines[index]); } else { result.write(localLines[index].getBytes()); } } writeBytesAndEol(result, myConflictSeparator); for (int index = latestFrom; index <= latestTo; index++) { if (index < latestTo) { writeLineAndEol(result, latestLines[index]); } else { result.write(latestLines[index].getBytes()); } } writeBytesAndEol(result, myConflictEnd); return maxBaseTo; } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/bdb9ea4dfcd7170aff92fa95da2183571616b4d1/FSMergerBySequence.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/ws/fs/FSMergerBySequence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
752,
10732,
12,
4632,
563,
16,
2238,
4021,
16220,
1768,
1191,
1685,
16,
2238,
4021,
16220,
1768,
1191,
1638,
16,
2238,
4021,
16220,
1768,
4891,
1685,
16,
2238,
4021,
16220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
752,
10732,
12,
4632,
563,
16,
2238,
4021,
16220,
1768,
1191,
1685,
16,
2238,
4021,
16220,
1768,
1191,
1638,
16,
2238,
4021,
16220,
1768,
4891,
1685,
16,
2238,
4021,
16220,
... |
double median = DiscreteStatistics.median(values); tree.setNodeAttribute(node, label, new Double(median)); | double median = DiscreteStatistics.median(values); tree.setNodeAttribute(node, label, new Double(median)); | private void annotateMedianAttribute(MutableTree tree, NodeRef node, String label, double[] values) { double median = DiscreteStatistics.median(values); tree.setNodeAttribute(node, label, new Double(median)); } | 51824 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51824/4d3679b1480cd31578aa6667987b40643898c07f/TreeAnnotator.java/buggy/src/dr/app/tools/TreeAnnotator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
13795,
13265,
2779,
1499,
12,
19536,
2471,
2151,
16,
2029,
1957,
756,
16,
514,
1433,
16,
1645,
8526,
924,
13,
288,
5411,
1645,
12644,
273,
3035,
6883,
8569,
18,
22410,
12,
2372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
13795,
13265,
2779,
1499,
12,
19536,
2471,
2151,
16,
2029,
1957,
756,
16,
514,
1433,
16,
1645,
8526,
924,
13,
288,
5411,
1645,
12644,
273,
3035,
6883,
8569,
18,
22410,
12,
2372... |
w.write( ")).floatValue()"); | w.write( ").floatValue()"); | public void translate ( LocalContext c, CodeWriter w) { Type rtype = expr.getCheckedType(); Type ltype = type.getType(); if( ltype.isPrimitive()) { if( rtype.equals(c.getTypeSystem().getObject())) { if( ltype.equals( c.getTypeSystem().getBoolean())) { w.write( "((java.lang.Boolean)("); } else if( ltype.equals( c.getTypeSystem().getChar())) { w.write( "((java.lang.Character)("); } else if( ltype.equals( c.getTypeSystem().getShort())) { w.write( "((java.lang.Short)("); } else if( ltype.equals( c.getTypeSystem().getInt())) { w.write( "((java.lang.Integer)("); } else if( ltype.equals( c.getTypeSystem().getLong())) { w.write( "((java.lang.Long)("); } else if( ltype.equals( c.getTypeSystem().getFloat())) { w.write( "((java.lang.Float)("); } else if( ltype.equals( c.getTypeSystem().getDouble())) { w.write( "((java.lang.Double)("); } expr.translate( c, w); if( ltype.equals( c.getTypeSystem().getBoolean())) { w.write( ")).booleanValue()"); } else if( ltype.equals( c.getTypeSystem().getChar())) { w.write( ")).charValue()"); } else if( ltype.equals( c.getTypeSystem().getShort())) { w.write( ")).shortValue()"); } else if( ltype.equals( c.getTypeSystem().getInt())) { w.write( ")).intValue()"); } else if( ltype.equals( c.getTypeSystem().getLong())) { w.write( ")).longValue()"); } else if( ltype.equals( c.getTypeSystem().getFloat())) { w.write( ")).floatValue()"); } else if( ltype.equals( c.getTypeSystem().getDouble())) { w.write( ")).floatValue()"); } } else { super.translate( c, w); } } else if( ltype.equals( c.getTypeSystem().getObject())) { if( rtype.isPrimitive()) { if( rtype.equals( c.getTypeSystem().getBoolean())) { w.write( "(java.lang.Object)new Boolean( "); } else if( rtype.equals( c.getTypeSystem().getChar())) { w.write( "(java.lang.Object)new Character( "); } else if( rtype.equals( c.getTypeSystem().getShort())) { w.write( "(java.lang.Object)new Short( "); } else if( rtype.equals( c.getTypeSystem().getInt())) { w.write( "(java.lang.Object)new Integer( "); } else if( rtype.equals( c.getTypeSystem().getLong())) { w.write( "(java.lang.Object)new Long( "); } else if( rtype.equals( c.getTypeSystem().getFloat())) { w.write( "(java.lang.Object)new Float( "); } else if( rtype.equals( c.getTypeSystem().getDouble())) { w.write( "(java.lang.Object)new Double( "); } expr.translate( c, w); w.write( ")"); } else { super.translate( c, w); } } else { super.translate( c, w); } } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/46f164284b4c476b23700f47d7d82a18a0c7d4f0/ObjectPrimitiveCastExpression.java/buggy/src/polyglot/ast/ObjectPrimitiveCastExpression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4204,
261,
3566,
1042,
276,
16,
3356,
2289,
341,
13,
225,
288,
565,
1412,
9328,
273,
3065,
18,
588,
11454,
559,
5621,
565,
1412,
328,
723,
273,
618,
18,
588,
559,
5621,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4204,
261,
3566,
1042,
276,
16,
3356,
2289,
341,
13,
225,
288,
565,
1412,
9328,
273,
3065,
18,
588,
11454,
559,
5621,
565,
1412,
328,
723,
273,
618,
18,
588,
559,
5621,
565,
... |
ImageDescriptor image = WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_HOME_NAV); homeAction.setImageDescriptor(image); homeAction.setHoverImageDescriptor(image); | homeAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_HOME_NAV)); homeAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_HOME_NAV_HOVER)); | private void createActions() { // Only do this once. if (homeAction != null) return; // Home. homeAction = new Action(WorkbenchMessages.getString("GoHome.text")) { //$NON-NLS-1$ public void run() { goHome(); } }; homeAction.setToolTipText(WorkbenchMessages.getString("GoHome.toolTip")); //$NON-NLS-1$ ImageDescriptor image = WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_HOME_NAV); homeAction.setImageDescriptor(image); homeAction.setHoverImageDescriptor(image); // Back. backAction = new Action(WorkbenchMessages.getString("GoBack.text")) { //$NON-NLS-1$ public void run() { goBack(); } }; backAction.setToolTipText(WorkbenchMessages.getString("GoBack.toolTip")); //$NON-NLS-1$ image = WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_BACKWARD_NAV); backAction.setImageDescriptor(image); backAction.setHoverImageDescriptor(image); // Forward. forwardAction = new Action(WorkbenchMessages.getString("GoInto.text")) { //$NON-NLS-1$ public void run() { goInto(); } }; forwardAction.setToolTipText(WorkbenchMessages.getString("GoInto.toolTip")); //$NON-NLS-1$ image = WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_FORWARD_NAV); forwardAction.setImageDescriptor(image); forwardAction.setHoverImageDescriptor(image); // Update the buttons when a selection change occurs. fChildTree.addSelectionChangedListener(this); updateNavigationButtons();} | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3dbcb97a3b12576d92ad6fa398989706c853e7b0/DrillDownAdapter.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/DrillDownAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
752,
6100,
1435,
288,
202,
759,
5098,
741,
333,
3647,
18,
202,
430,
261,
8712,
1803,
480,
446,
13,
202,
202,
2463,
31,
202,
759,
21321,
18,
202,
202,
8712,
1803,
273,
394,
4382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
752,
6100,
1435,
288,
202,
759,
5098,
741,
333,
3647,
18,
202,
430,
261,
8712,
1803,
480,
446,
13,
202,
202,
2463,
31,
202,
759,
21321,
18,
202,
202,
8712,
1803,
273,
394,
4382,
... |
final StringBuffer sb = new StringBuffer(); | log( "Generating Key for " + alias ); final ExecTask cmd = (ExecTask)project.createTask( "exec" ); cmd.setExecutable( "keytool" ); | public void execute() throws TaskException { if( project.getJavaVersion().equals( Project.JAVA_1_1 ) ) { throw new TaskException( "The genkey task is only available on JDK" + " versions 1.2 or greater" ); } if( null == alias ) { throw new TaskException( "alias attribute must be set" ); } if( null == storepass ) { throw new TaskException( "storepass attribute must be set" ); } if( null == dname && null == expandedDname ) { throw new TaskException( "dname must be set" ); } final StringBuffer sb = new StringBuffer(); sb.append( "keytool -genkey " ); if( verbose ) { sb.append( "-v " ); } sb.append( "-alias \"" ); sb.append( alias ); sb.append( "\" " ); if( null != dname ) { sb.append( "-dname \"" ); sb.append( dname ); sb.append( "\" " ); } if( null != expandedDname ) { sb.append( "-dname \"" ); sb.append( expandedDname ); sb.append( "\" " ); } if( null != keystore ) { sb.append( "-keystore \"" ); sb.append( keystore ); sb.append( "\" " ); } if( null != storepass ) { sb.append( "-storepass \"" ); sb.append( storepass ); sb.append( "\" " ); } if( null != storetype ) { sb.append( "-storetype \"" ); sb.append( storetype ); sb.append( "\" " ); } sb.append( "-keypass \"" ); if( null != keypass ) { sb.append( keypass ); } else { sb.append( storepass ); } sb.append( "\" " ); if( null != sigalg ) { sb.append( "-sigalg \"" ); sb.append( sigalg ); sb.append( "\" " ); } if( null != keyalg ) { sb.append( "-keyalg \"" ); sb.append( keyalg ); sb.append( "\" " ); } if( 0 < keysize ) { sb.append( "-keysize \"" ); sb.append( keysize ); sb.append( "\" " ); } if( 0 < validity ) { sb.append( "-validity \"" ); sb.append( validity ); sb.append( "\" " ); } log( "Generating Key for " + alias ); final ExecTask cmd = (ExecTask)project.createTask( "exec" ); cmd.setCommand( new Commandline( sb.toString() ) ); cmd.setFailonerror( true ); cmd.execute(); } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/89c618a4ba5166ec11651fd7dc29807eb861650e/GenerateKey.java/buggy/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/GenerateKey.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
3837,
503,
565,
288,
3639,
309,
12,
1984,
18,
588,
5852,
1444,
7675,
14963,
12,
5420,
18,
27264,
67,
21,
67,
21,
262,
262,
3639,
288,
5411,
604,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
1435,
3639,
1216,
3837,
503,
565,
288,
3639,
309,
12,
1984,
18,
588,
5852,
1444,
7675,
14963,
12,
5420,
18,
27264,
67,
21,
67,
21,
262,
262,
3639,
288,
5411,
604,
394,
... |
public SVGFilterDescriptor toSVG(RescaleOp rescaleOp){ SVGFilterDescriptor filterDesc = (SVGFilterDescriptor)descMap.get(rescaleOp); if(filterDesc == null){ Element filterDef = domFactory.createElement(SVG_FILTER_TAG); Element feComponentTransferDef = domFactory.createElement(SVG_FE_COMPONENT_TRANSFER_TAG); float offsets[] = rescaleOp.getOffsets(null); float scaleFactors[] = rescaleOp.getScaleFactors(null); if(offsets.length != scaleFactors.length) throw new IllegalArgumentException(ERROR_SCALE_FACTORS_AND_OFFSETS_MISMATCH); if(offsets.length != 1 && offsets.length != 3 && offsets.length != 4) throw new IllegalArgumentException(ERROR_ILLEGAL_BUFFERED_IMAGE_RESCALE_OP); Element feFuncR = domFactory.createElement(SVG_FE_FUNC_R_TAG); Element feFuncG = domFactory.createElement(SVG_FE_FUNC_G_TAG); Element feFuncB = domFactory.createElement(SVG_FE_FUNC_B_TAG); Element feFuncA = null; String type = VALUE_TYPE_LINEAR; if(offsets.length == 1){ String slope = doubleString(scaleFactors[0]); String intercept = doubleString(offsets[0]); feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, slope); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, slope); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, slope); feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, intercept); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, intercept); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, intercept); } else if(offsets.length >= 3){ feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, doubleString(scaleFactors[0])); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, doubleString(scaleFactors[1])); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, doubleString(scaleFactors[2])); feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, doubleString(offsets[0])); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, doubleString(offsets[1])); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, doubleString(offsets[2])); if(offsets.length == 4){ feFuncA = domFactory.createElement(SVG_FE_FUNC_A_TAG); feFuncA.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncA.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, doubleString(scaleFactors[3])); feFuncA.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, doubleString(offsets[3])); } } feComponentTransferDef.appendChild(feFuncR); feComponentTransferDef.appendChild(feFuncG); feComponentTransferDef.appendChild(feFuncB); if(feFuncA != null) feComponentTransferDef.appendChild(feFuncA); filterDef.appendChild(feComponentTransferDef); filterDef.setAttributeNS(SVG_NAMESPACE_URI, ATTR_ID, SVGIDGenerator.generateID(ID_PREFIX_FE_COMPONENT_TRANSFER)); StringBuffer filterAttrBuf = new StringBuffer(URL_PREFIX); filterAttrBuf.append(SIGN_POUND); filterAttrBuf.append(filterDef.getAttributeNS(SVG_NAMESPACE_URI, ATTR_ID)); filterAttrBuf.append(URL_SUFFIX); filterDesc = new SVGFilterDescriptor(filterAttrBuf.toString(), filterDef); defSet.add(filterDef); descMap.put(rescaleOp, filterDesc); } return filterDesc; | public SVGFilterDescriptor toSVG(BufferedImageOp filter, Rectangle filterRect){ if(filter instanceof RescaleOp) return toSVG((RescaleOp)filter); else return null; | public SVGFilterDescriptor toSVG(RescaleOp rescaleOp){ // Reuse definition if rescaleOp has already been converted SVGFilterDescriptor filterDesc = (SVGFilterDescriptor)descMap.get(rescaleOp); if(filterDesc == null){ // // First time filter is converted: create its corresponding // SVG filter // Element filterDef = domFactory.createElement(SVG_FILTER_TAG); Element feComponentTransferDef = domFactory.createElement(SVG_FE_COMPONENT_TRANSFER_TAG); // Append transfer function for each component, setting // the attributes corresponding to the scale and offset. // Because we are using a RescaleOp as a BufferedImageOp, // the scaleFactors must be either: // + 1, in which case the same scale is applied to the // Red, Green and Blue components, // + 3, in which case the scale factors apply to the // Red, Green and Blue components // + 4, in which case the scale factors apply to the // Red, Green, Blue and Alpha components float offsets[] = rescaleOp.getOffsets(null); float scaleFactors[] = rescaleOp.getScaleFactors(null); if(offsets.length != scaleFactors.length) throw new IllegalArgumentException(ERROR_SCALE_FACTORS_AND_OFFSETS_MISMATCH); if(offsets.length != 1 && offsets.length != 3 && offsets.length != 4) throw new IllegalArgumentException(ERROR_ILLEGAL_BUFFERED_IMAGE_RESCALE_OP); Element feFuncR = domFactory.createElement(SVG_FE_FUNC_R_TAG); Element feFuncG = domFactory.createElement(SVG_FE_FUNC_G_TAG); Element feFuncB = domFactory.createElement(SVG_FE_FUNC_B_TAG); Element feFuncA = null; String type = VALUE_TYPE_LINEAR; if(offsets.length == 1){ String slope = doubleString(scaleFactors[0]); String intercept = doubleString(offsets[0]); feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, slope); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, slope); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, slope); feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, intercept); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, intercept); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, intercept); } else if(offsets.length >= 3){ feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, doubleString(scaleFactors[0])); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, doubleString(scaleFactors[1])); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, doubleString(scaleFactors[2])); feFuncR.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, doubleString(offsets[0])); feFuncG.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, doubleString(offsets[1])); feFuncB.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, doubleString(offsets[2])); if(offsets.length == 4){ feFuncA = domFactory.createElement(SVG_FE_FUNC_A_TAG); feFuncA.setAttributeNS(SVG_NAMESPACE_URI, SVG_TYPE_ATTRIBUTE, type); feFuncA.setAttributeNS(SVG_NAMESPACE_URI, SVG_SLOPE_ATTRIBUTE, doubleString(scaleFactors[3])); feFuncA.setAttributeNS(SVG_NAMESPACE_URI, SVG_INTERCEPT_ATTRIBUTE, doubleString(offsets[3])); } } feComponentTransferDef.appendChild(feFuncR); feComponentTransferDef.appendChild(feFuncG); feComponentTransferDef.appendChild(feFuncB); if(feFuncA != null) feComponentTransferDef.appendChild(feFuncA); filterDef.appendChild(feComponentTransferDef); filterDef.setAttributeNS(SVG_NAMESPACE_URI, ATTR_ID, SVGIDGenerator.generateID(ID_PREFIX_FE_COMPONENT_TRANSFER)); // // Create a filter descriptor // // Process filter attribute StringBuffer filterAttrBuf = new StringBuffer(URL_PREFIX); filterAttrBuf.append(SIGN_POUND); filterAttrBuf.append(filterDef.getAttributeNS(SVG_NAMESPACE_URI, ATTR_ID)); filterAttrBuf.append(URL_SUFFIX); filterDesc = new SVGFilterDescriptor(filterAttrBuf.toString(), filterDef); defSet.add(filterDef); descMap.put(rescaleOp, filterDesc); } return filterDesc; } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/644951f7b5112b718013f802070f80f7db698d2c/SVGRescaleOp.java/buggy/sources/org/apache/batik/svggen/SVGRescaleOp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11281,
1586,
3187,
358,
26531,
12,
607,
1869,
3817,
30323,
3817,
15329,
3639,
368,
868,
1202,
2379,
309,
30323,
3817,
711,
1818,
2118,
5970,
3639,
11281,
1586,
3187,
1034,
4217,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11281,
1586,
3187,
358,
26531,
12,
607,
1869,
3817,
30323,
3817,
15329,
3639,
368,
868,
1202,
2379,
309,
30323,
3817,
711,
1818,
2118,
5970,
3639,
11281,
1586,
3187,
1034,
4217,
273,
... |
}catch(Exception e){ | } catch (Exception e) { | private void doAddRule(){ Object sel = _ruleLibraryList.getSelectedValue(); try{ String ruleName = sel.getClass().getName(); PerspectiveRule newRule = (PerspectiveRule)Class.forName(ruleName).newInstance(); _perspectiveRulesListModel.insertElementAt(newRule,0); ((ExplorerPerspective)_perspectiveList .getSelectedValue()).addRule(newRule); }catch(Exception e){ cat.error("problem adding rule"); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/2bca90cd19361bbc94b4bf9813d1e3efd96e52fe/PerspectiveConfigurator.java/buggy/src_new/org/argouml/ui/explorer/PerspectiveConfigurator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
986,
2175,
1435,
95,
3639,
1033,
357,
273,
389,
5345,
9313,
682,
18,
588,
7416,
620,
5621,
3639,
775,
95,
5411,
514,
23285,
273,
357,
18,
588,
797,
7675,
17994,
5621,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
986,
2175,
1435,
95,
3639,
1033,
357,
273,
389,
5345,
9313,
682,
18,
588,
7416,
620,
5621,
3639,
775,
95,
5411,
514,
23285,
273,
357,
18,
588,
797,
7675,
17994,
5621,
54... |
public final Object getContent() throws IOException | public Object getContent() throws IOException | public final Object getContent() throws IOException { return openConnection().getContent(); } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/2a81deb9769ceea4775c22641c27bc9bc5399c18/URL.java/clean/libjava/java/net/URL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
5154,
1435,
1216,
1860,
225,
288,
565,
327,
24982,
7675,
588,
1350,
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,
... | [
1,
1,
1,
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,
1071,
1033,
5154,
1435,
1216,
1860,
225,
288,
565,
327,
24982,
7675,
588,
1350,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public LispObject execute (LispObject first, LispObject second) throws ConditionThrowable | public LispObject execute (LispObject[] args) throws ConditionThrowable | public LispObject execute (LispObject first, LispObject second) throws ConditionThrowable { int n = Fixnum.getValue(first); if (n < 0 || n > 255) throw new ConditionThrowable(new TypeError(first, "unsigned byte")); final BinaryOutputStream out = checkBinaryOutputStream(second); out.writeByte(n); return first; } | 8279 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8279/e15bb4df9c5817583e4227bb9a7c8cb68d23e4f3/Primitives.java/clean/j/src/org/armedbear/lisp/Primitives.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
511,
23831,
921,
1836,
261,
48,
23831,
921,
1122,
16,
511,
23831,
921,
2205,
13,
5411,
1216,
7949,
15155,
3639,
288,
5411,
509,
290,
273,
12139,
2107,
18,
24805,
12,
3645,
1769,
541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
511,
23831,
921,
1836,
261,
48,
23831,
921,
1122,
16,
511,
23831,
921,
2205,
13,
5411,
1216,
7949,
15155,
3639,
288,
5411,
509,
290,
273,
12139,
2107,
18,
24805,
12,
3645,
1769,
541... |
assignment = oldAssignment; | setAssignment(oldAssignment); | private final boolean perturbConfiguration(double T) { // the cost of the new layout and the old layout double e_new, e_old = placementCost(false); //the old assignment HashMap oldAssignment = (HashMap)assignment.clone(); // find 2 suitable nodes to swap while (true) { swapAssignment(); //get the new placement codes e_new = placementCost(false); if (e_new < 0.0) { // illegal tile assignment so revert the assignment assignment = oldAssignment; continue; } else // found a successful new layout break; } double P = 1.0; double R = random.nextDouble(); if (e_new >= e_old) P = Math.exp((((double) e_old) - ((double) e_new)) / T); if (R < P) { return true; } else { //don't accept the new state, //revert.. assignment = oldAssignment; return false; } } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/71d75e09ae45d2b9033d87aeed3f6caf0054c6be/SimulatedAnnealing.java/buggy/streams/src/at/dms/kjc/common/SimulatedAnnealing.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
1250,
24445,
15850,
1750,
12,
9056,
399,
13,
288,
3639,
368,
326,
6991,
434,
326,
394,
3511,
471,
326,
1592,
3511,
3639,
1645,
425,
67,
2704,
16,
425,
67,
1673,
273,
12607,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
1250,
24445,
15850,
1750,
12,
9056,
399,
13,
288,
3639,
368,
326,
6991,
434,
326,
394,
3511,
471,
326,
1592,
3511,
3639,
1645,
425,
67,
2704,
16,
425,
67,
1673,
273,
12607,
8... |
notifyAll(); | private void finish(int code, PeerNode next) { Logger.minor(this, "Finished: "+code+" on "+this, new Exception("debug")); if(status != NOT_FINISHED) throw new IllegalStateException("finish() called with "+code+" when was already "+status); setStatusTime = System.currentTimeMillis(); if(code == ROUTE_NOT_FOUND && !sentRequest) code = ROUTE_REALLY_NOT_FOUND; status = code; synchronized(this) { notifyAll(); } Logger.minor(this, "Set status code: "+getStatusString()+" on "+uid); // Now wait for transfers, or for downstream transfer notifications. if(cw != null) { while(!allTransfersCompleted) { try { wait(10*1000); } catch (InterruptedException e) { // Try again } } } else { // There weren't any transfers synchronized(this) { allTransfersCompleted = true; } } notifyAll(); Logger.minor(this, "Returning from finish()"); } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/30ad937435e0a871533e6523884264602ef0e8c8/CHKInsertSender.java/buggy/src/freenet/node/CHKInsertSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4076,
12,
474,
981,
16,
10669,
907,
1024,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
10577,
30,
13773,
710,
9078,
603,
13773,
2211,
16,
394,
1185,
2932,
4148,
7923,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4076,
12,
474,
981,
16,
10669,
907,
1024,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
10577,
30,
13773,
710,
9078,
603,
13773,
2211,
16,
394,
1185,
2932,
4148,
7923,
1... | |
Logger.minor(this, "Rejecting phase "+phase+" handshake - already running one"); | Logger.minor(this, "Rejecting phase "+phase+" handshake on "+pn+" - already running one"); | private DiffieHellmanContext processDHZeroOrOne(int phase, byte[] payload, PeerNode pn) { if(phase == 0 && pn.hasLiveHandshake(System.currentTimeMillis())) { Logger.minor(this, "Rejecting phase "+phase+" handshake - already running one"); return null; } // First, get the BigInteger int length = DiffieHellman.modulusLengthInBytes(); if(payload.length < length + 3) { Logger.error(this, "Packet too short: "+payload.length+" after decryption in DH("+phase+"), should be "+(length + 3)); return null; } byte[] aAsBytes = new byte[length]; System.arraycopy(payload, 3, aAsBytes, 0, length); NativeBigInteger a = new NativeBigInteger(1, aAsBytes); DiffieHellmanContext ctx; if(phase == 1) { ctx = pn.getDHContext(); } else { ctx = DiffieHellman.generateContext(); // Don't calculate the key until we need it pn.setDHContext(ctx); } ctx.setOtherSideExponential(a); Logger.minor(this, "His exponential: "+a.toHexString()); // REDFLAG: This is of course easily DoS'ed if you know the node. // We will fix this by means of JFKi. return ctx; } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/fca9ba5f973505f068ca3a1bb65e2b2721f1d254/FNPPacketMangler.java/buggy/src/freenet/node/FNPPacketMangler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
13008,
1385,
44,
1165,
4728,
1042,
1207,
16501,
7170,
1162,
3335,
12,
474,
6855,
16,
1160,
8526,
2385,
16,
10669,
907,
11059,
13,
288,
7734,
309,
12,
13961,
422,
374,
597,
11059,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13008,
1385,
44,
1165,
4728,
1042,
1207,
16501,
7170,
1162,
3335,
12,
474,
6855,
16,
1160,
8526,
2385,
16,
10669,
907,
11059,
13,
288,
7734,
309,
12,
13961,
422,
374,
597,
11059,
18... |
os.write(RtfRow.tableBorder); | os.write(bStyle); | public boolean writeCellSettings(ByteArrayOutputStream os) throws DocumentException { try { // <!-- steffen if (mergeType == MERGE_HORIZ_PREV || mergeType == MERGE_BOTH_PREV) { return true; } switch(mergeType) { case MERGE_VERT_FIRST : os.write(RtfWriter.escape); os.write(cellVMergeFirst); break; case MERGE_BOTH_FIRST : os.write(RtfWriter.escape); os.write(cellVMergeFirst); break; case MERGE_HORIZ_PREV : os.write(RtfWriter.escape); os.write(cellMergePrev); break; case MERGE_VERT_PREV : os.write(RtfWriter.escape); os.write(cellVMergePrev); break; case MERGE_BOTH_PREV : os.write(RtfWriter.escape); os.write(cellMergeFirst); break; } // --> switch(store.verticalAlignment()) { case Element.ALIGN_BOTTOM : os.write(RtfWriter.escape); os.write(cellVerticalAlignBottom); break; case Element.ALIGN_CENTER : os.write(RtfWriter.escape); os.write(cellVerticalAlignCenter); break; case Element.ALIGN_TOP : os.write(RtfWriter.escape); os.write(cellVerticalAlignTop); break; } if(((store.border() & Rectangle.LEFT) == Rectangle.LEFT) && (store.borderWidth() > 0)) { os.write(RtfWriter.escape); os.write(cellBorderLeft); os.write(RtfWriter.escape); os.write(RtfRow.tableBorder); os.write(RtfWriter.escape); os.write(RtfRow.tableBorderWidth); writeInt(os, (int) (store.borderWidth() * writer.twipsFactor)); os.write(RtfWriter.escape); os.write(RtfRow.tableBorderColor); if(store.borderColor() == null) writeInt(os, writer.addColor(new Color(0,0,0))); else writeInt(os, writer.addColor(store.borderColor())); os.write((byte) '\n'); } if(((store.border() & Rectangle.TOP) == Rectangle.TOP) && (store.borderWidth() > 0)) { os.write(RtfWriter.escape); os.write(cellBorderTop); os.write(RtfWriter.escape); os.write(RtfRow.tableBorder); os.write(RtfWriter.escape); os.write(RtfRow.tableBorderWidth); writeInt(os, (int) (store.borderWidth() * writer.twipsFactor)); os.write(RtfWriter.escape); os.write(RtfRow.tableBorderColor); if(store.borderColor() == null) writeInt(os, writer.addColor(new Color(0,0,0))); else writeInt(os, writer.addColor(store.borderColor())); os.write((byte) '\n'); } if(((store.border() & Rectangle.BOTTOM) == Rectangle.BOTTOM) && (store.borderWidth() > 0)) { os.write(RtfWriter.escape); os.write(cellBorderBottom); os.write(RtfWriter.escape); os.write(RtfRow.tableBorder); os.write(RtfWriter.escape); os.write(RtfRow.tableBorderWidth); writeInt(os, (int) (store.borderWidth() * writer.twipsFactor)); os.write(RtfWriter.escape); os.write(RtfRow.tableBorderColor); if(store.borderColor() == null) writeInt(os, writer.addColor(new Color(0,0,0))); else writeInt(os, writer.addColor(store.borderColor())); os.write((byte) '\n'); } if(((store.border() & Rectangle.RIGHT) == Rectangle.RIGHT) && (store.borderWidth() > 0)) { os.write(RtfWriter.escape); os.write(cellBorderRight); os.write(RtfWriter.escape); os.write(RtfRow.tableBorder); os.write(RtfWriter.escape); os.write(RtfRow.tableBorderWidth); writeInt(os, (int) (store.borderWidth() * writer.twipsFactor)); os.write(RtfWriter.escape); os.write(RtfRow.tableBorderColor); if(store.borderColor() == null) writeInt(os, writer.addColor(new Color(0,0,0))); else writeInt(os, writer.addColor(store.borderColor())); os.write((byte) '\n'); } os.write(RtfWriter.escape); os.write(cellBackgroundColor); if(store.backgroundColor() == null) writeInt(os, writer.addColor(new Color(255,255,255))); else writeInt(os, writer.addColor(store.backgroundColor())); os.write((byte) '\n'); os.write(RtfWriter.escape); os.write(cellWidthStyle); os.write((byte) '\n'); os.write(RtfWriter.escape); os.write(cellWidthTag); writeInt(os, cellWidth); os.write((byte) '\n'); if (cellpadding > 0) { // values os.write( RtfWriter.escape ); os.write( cellPaddingLeft ); writeInt( os, cellpadding / 2 ); os.write( RtfWriter.escape ); os.write( cellPaddingTop ); writeInt( os, cellpadding / 2 ); os.write( RtfWriter.escape ); os.write( cellPaddingRight ); writeInt( os, cellpadding / 2 ); os.write( RtfWriter.escape ); os.write( cellPaddingBottom ); writeInt( os, cellpadding / 2 ); // unit os.write( RtfWriter.escape ); os.write( cellPaddingLeftUnit ); os.write( RtfWriter.escape ); os.write( cellPaddingTopUnit ); os.write( RtfWriter.escape ); os.write( cellPaddingRightUnit ); os.write( RtfWriter.escape ); os.write( cellPaddingBottomUnit ); } os.write(RtfWriter.escape); os.write(cellRightBorder); writeInt(os, cellRight); } catch(IOException e) { return false; } return true; } | 3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/cb5248fca2fc0c6577ac98dbe52ff08df6d9bb32/RtfCell.java/buggy/itext/src/com/lowagie/text/rtf/RtfCell.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1045,
4020,
2628,
12,
8826,
4632,
1140,
13,
1216,
4319,
503,
565,
288,
3639,
775,
3639,
288,
5411,
368,
5719,
413,
384,
17098,
275,
5411,
309,
261,
2702,
559,
422,
490,
654,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1045,
4020,
2628,
12,
8826,
4632,
1140,
13,
1216,
4319,
503,
565,
288,
3639,
775,
3639,
288,
5411,
368,
5719,
413,
384,
17098,
275,
5411,
309,
261,
2702,
559,
422,
490,
654,
... |
Logger.normal(this, "Can't read /dev/random: "+t, t); | Logger.normal(this, "Can't read /dev/urandom: "+t, t); | public void seedFromExternalStuff() { // SecureRandom hopefully acts as a proxy for CAPI on Windows byte[] buf = sr.generateSeed(20); consumeBytes(buf); buf = sr.generateSeed(20); consumeBytes(buf); if(File.separatorChar == '/') { // Read some bits from /dev/random FileInputStream fis = null; try { fis = new FileInputStream("/dev/random"); DataInputStream dis = new DataInputStream(fis); dis.readFully(buf); consumeBytes(buf); dis.readFully(buf); consumeBytes(buf); } catch (Throwable t) { Logger.normal(this, "Can't read /dev/random: "+t, t); } finally { if(fis != null) try { fis.close(); } catch (IOException e) { // Ignore } } fis = null; File hwrng = new File("/dev/hwrng"); if(hwrng.exists() && hwrng.canRead()) { try { fis = new FileInputStream(hwrng); DataInputStream dis = new DataInputStream(fis); dis.readFully(buf); consumeBytes(buf); dis.readFully(buf); consumeBytes(buf); } catch (Throwable t) { Logger.normal(this, "Can't read /dev/hwrng even though exists and is readable: "+t, t); } finally { if(fis != null) try { fis.close(); } catch (IOException e) { // Ignore } } } } // A few more bits consumeString(Long.toHexString(Runtime.getRuntime().freeMemory())); consumeString(Long.toHexString(Runtime.getRuntime().totalMemory())); } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/bc50c0ab3552700dd11500ebecd9c37ad70a191e/Yarrow.java/clean/src/freenet/crypt/Yarrow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5009,
1265,
6841,
510,
3809,
1435,
288,
202,
565,
368,
15653,
8529,
27370,
4095,
22668,
487,
279,
2889,
364,
385,
2557,
603,
8202,
202,
565,
1160,
8526,
1681,
273,
9133,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5009,
1265,
6841,
510,
3809,
1435,
288,
202,
565,
368,
15653,
8529,
27370,
4095,
22668,
487,
279,
2889,
364,
385,
2557,
603,
8202,
202,
565,
1160,
8526,
1681,
273,
9133,
18... |
String createPath = repository.getBasedir() + "/" + destinationDirectory; try { wdresource.mkcolMethod( createPath ); } catch (IOException e) { throw new TransferFailedException( "Failed to create remote directory: " + createPath + " : " | String createPath = repository.getBasedir() + "/" + destinationDirectory; try { wdresource.mkcolMethod( createPath ); } catch ( IOException e ) { throw new TransferFailedException( "Failed to create remote directory: " + createPath + " : " | public void putDirectory( File sourceDirectory, String destinationDirectory ) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { String createPath = repository.getBasedir() + "/" + destinationDirectory; try { wdresource.mkcolMethod( createPath ); } catch (IOException e) { throw new TransferFailedException( "Failed to create remote directory: " + createPath + " : " + e.getMessage(), e ); } try { wdresource.setPath( repository.getBasedir() ); } catch (IOException e) { throw new TransferFailedException( "An error occurred while preparing to copy to remote repository: " + e.getMessage(), e ); } File [] list_files = sourceDirectory.listFiles(); for(int i=0; i<list_files.length; i++) { if ( list_files[i].isDirectory() ) { putDirectory( list_files[i], destinationDirectory + "/" + list_files[i].getName() ); } else { String target = createPath + "/" + list_files[i].getName(); try { wdresource.putMethod( target, list_files[i] ); } catch( IOException e ) { throw new TransferFailedException( "Failed to upload to remote repository: " + target + " : " + e.getMessage(), e ); } } } } | 51920 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51920/c3fc4cf7bb5ebe6018be7c14a1a4f2fa07d73764/WebDavWagon.java/clean/wagon-providers/wagon-webdav/src/main/java/org/apache/maven/wagon/providers/webdav/WebDavWagon.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
2853,
12,
1387,
1084,
2853,
16,
514,
2929,
2853,
262,
1377,
202,
15069,
12279,
12417,
16,
2591,
26621,
16,
10234,
503,
565,
288,
377,
202,
780,
752,
743,
273,
3352,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
2853,
12,
1387,
1084,
2853,
16,
514,
2929,
2853,
262,
1377,
202,
15069,
12279,
12417,
16,
2591,
26621,
16,
10234,
503,
565,
288,
377,
202,
780,
752,
743,
273,
3352,
18,
... |
if(PA.getBogusSummaryProvider().getReplacementMethod(m) != null) { | if(false /* && PA.getBogusSummaryProvider().getReplacementMethod(m) != null*/) { | public void visitInvoke(Quad obj) { if (TRACE_INTRA) out.println("Visiting: "+obj); Invoke.getMethod(obj).resolve(); jq_Method m = Invoke.getMethod(obj).getMethod(); ProgramLocation mc = new ProgramLocation.QuadProgramLocation(method, obj); if (m == joeq.Runtime.Arrays._multinewarray) { // special case: multi-dimensional array. RegisterOperand dest = Invoke.getDest(obj); if (dest != null) { Register dest_r = dest.getRegister(); // todo: get the real type. jq_Reference type = PrimordialClassLoader.getJavaLangObject().getArrayTypeForElementType(); Node n = ConcreteTypeNode.get(type, new QuadProgramLocation(method, obj)); setRegister(dest_r, n); } return; } this.methodCalls.add(mc); jq_Type[] params = m.getParamTypes(); ParamListOperand plo = Invoke.getParamList(obj); Assert._assert(m == joeq.Runtime.Arrays._multinewarray || params.length == plo.length(), obj + " calling " + m + ": params.length: " + params.length + ", plo: " + plo);// System.out.println("plo: " + plo); for (int i=0; i<params.length; ++i) { if (!params[i].isReferenceType() /*|| params[i].isAddressType()*/ ) continue; Assert._assert(plo.get(i) != null, "Element " + i + " of plo " + plo + " is bogus"); Register r = plo.get(i).getRegister(); passParameter(r, mc, i); } if (m.getReturnType().isReferenceType() /*&& !m.getReturnType().isAddressType()*/ ) { if(PA.getBogusSummaryProvider().getReplacementMethod(m) != null) {// special case: replaced methods. RegisterOperand dest = Invoke.getDest(obj); if (dest != null) { Register dest_r = dest.getRegister(); // todo: get the real type. Node n = ConcreteTypeNode.get((jq_Reference) m.getReturnType(), new QuadProgramLocation(method, obj)); setRegister(dest_r, n); } } else { RegisterOperand dest = Invoke.getDest(obj); if (dest != null) { Register dest_r = dest.getRegister(); ReturnValueNode n = (ReturnValueNode)callToRVN.get(mc); if (n == null) { callToRVN.put(mc, n = new ReturnValueNode(mc)); passedAsParameter.add(n); } setRegister(dest_r, n); } } } // exceptions are handled by visitExceptionThrower. } | 3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/6c700a44da5bc4cebecadfc799ed52147b0c98cf/MethodSummary.java/buggy/joeq_core/joeq/Compiler/Analysis/FlowInsensitive/MethodSummary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
10969,
12,
24483,
1081,
13,
288,
5411,
309,
261,
23827,
67,
3217,
2849,
13,
596,
18,
8222,
2932,
10432,
310,
30,
13773,
2603,
1769,
5411,
14373,
18,
588,
1305,
12,
2603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
10969,
12,
24483,
1081,
13,
288,
5411,
309,
261,
23827,
67,
3217,
2849,
13,
596,
18,
8222,
2932,
10432,
310,
30,
13773,
2603,
1769,
5411,
14373,
18,
588,
1305,
12,
2603,
... |
p = getString( this.lexbuf, i + 13, len ); | p = getString(this.lexbuf, i + 13, len); | public short findGivenVersion(Node doctype) { String p, s; int i, j; int len; String str1; String str2; /* if root tag for doctype isn't html give up now */ str1 = getString(this.lexbuf, doctype.start, 5); if (wstrcasecmp(str1, "html ") != 0) return 0; if (!checkDocTypeKeyWords(doctype)) Report.warning(this, doctype, null, Report.DTYPE_NOT_UPPER_CASE); /* give up if all we are given is the system id for the doctype */ str1 = getString(this.lexbuf, doctype.start + 5, 7); if (wstrcasecmp(str1, "SYSTEM ") == 0) { /* but at least ensure the case is correct */ if (!str1.substring(0, 6).equals("SYSTEM")) System.arraycopy( getBytes("SYSTEM"), 0, this.lexbuf, doctype.start + 5, 6 ); return 0; /* unrecognized */ } if (wstrcasecmp(str1, "PUBLIC ") == 0) { if (!str1.substring(0, 6).equals("PUBLIC")) System.arraycopy( getBytes("PUBLIC "), 0, this.lexbuf, doctype.start + 5, 6 ); } else this.badDoctype = true; for (i = doctype.start; i < doctype.end; ++i) { if (this.lexbuf[i] == (byte)'"') { str1 = getString( this.lexbuf, i + 1, 12 ); str2 = getString( this.lexbuf, i + 1, 13 ); if (str1.equals("-//W3C//DTD ")) { /* compute length of identifier e.g. "HTML 4.0 Transitional" */ for (j = i + 13; j < doctype.end && this.lexbuf[j] != (byte)'/'; ++j); len = j - i - 13; p = getString( this.lexbuf, i + 13, len ); for (j = 1; j < W3CVersion.length; ++j) { s = W3CVersion[j].name; if (len == s.length() && s.equals(p)) return W3CVersion[j].code; } /* else unrecognized version */ } else if (str2.equals("-//IETF//DTD ")) { /* compute length of identifier e.g. "HTML 2.0" */ for (j = i + 14; j < doctype.end && this.lexbuf[j] != (byte)'/'; ++j); len = j - i - 14; p = getString( this.lexbuf, i + 14, len ); s = W3CVersion[0].name; if (len == s.length() && s.equals(p)) return W3CVersion[0].code; /* else unrecognized version */ } break; } } return 0; } | 3308 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3308/996a78dda16e68e3ae71e3f24fde1a98bd1c0178/Lexer.java/clean/src/main/org/w3c/tidy/Lexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3025,
1104,
6083,
1444,
12,
907,
24909,
13,
565,
288,
3639,
514,
293,
16,
272,
31,
3639,
509,
277,
16,
525,
31,
3639,
509,
562,
31,
3639,
514,
609,
21,
31,
3639,
514,
609,
22,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
1104,
6083,
1444,
12,
907,
24909,
13,
565,
288,
3639,
514,
293,
16,
272,
31,
3639,
509,
277,
16,
525,
31,
3639,
509,
562,
31,
3639,
514,
609,
21,
31,
3639,
514,
609,
22,
... |
assertEquals("This returns 'teststring'", config.getString("string"), "teststring"); | assertEquals("This returns 'teststring'", "teststring", config.getString("string")); | public void testExtendedPropertiesToConfiguration() { ExtendedProperties eprops = new ExtendedProperties(); eprops.setProperty("string", "teststring"); eprops.setProperty("int", "123"); eprops.addProperty("list", "item 1"); eprops.addProperty("list", "item 2"); Configuration config = ConfigurationConverter.getConfiguration(eprops); assertEquals("This returns 'teststring'", config.getString("string"), "teststring"); List item1 = config.getList("list"); assertEquals("This returns 'item 1'", (String) item1.get(0), "item 1"); Vector item2 = config.getVector("list"); assertEquals("This returns 'item 1'", (String) item2.get(0), "item 1"); assertEquals("This returns 123", config.getInt("int"), 123); } | 56523 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56523/3f0abe94efd4f80316c0632c6e088df5adbb5886/TestConfigurationConverter.java/buggy/src/test/org/apache/commons/configuration/TestConfigurationConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11456,
2297,
774,
1750,
1435,
565,
288,
3639,
14094,
2297,
425,
9693,
273,
394,
14094,
2297,
5621,
3639,
425,
9693,
18,
542,
1396,
2932,
1080,
3113,
315,
3813,
1080,
8863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11456,
2297,
774,
1750,
1435,
565,
288,
3639,
14094,
2297,
425,
9693,
273,
394,
14094,
2297,
5621,
3639,
425,
9693,
18,
542,
1396,
2932,
1080,
3113,
315,
3813,
1080,
8863,
... |
try { /* Disconnect */ ggzMod.set_state(ModState.GGZMOD_STATE_DONE); log.fine("Client disconnected."); } catch (IOException ex) { ex.printStackTrace(); } e.getWindow().dispose(); | quit(); | public void handle_launch() throws IOException { ggzMod.set_state(ModState.GGZMOD_STATE_CONNECTED); JFrame frame = new JFrame(); frame.getContentPane().add(this, BorderLayout.CENTER); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { try { /* Disconnect */ ggzMod.set_state(ModState.GGZMOD_STATE_DONE); // mod.disconnect(); // ggz_error_msg_exit("Couldn't disconnect from ggz."); log.fine("Client disconnected."); } catch (IOException ex) { ex.printStackTrace(); } e.getWindow().dispose(); } }); frame.setSize(800, 540); // frame.setLocationByPlatform(true); frame.setLocationRelativeTo(null); frame.setVisible(true); } | 45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/686fd63f220aa50720439ca7c62cd8f49bb56224/GamePanel.java/buggy/java/src/ggz/games/GamePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
67,
20738,
1435,
1216,
1860,
288,
3639,
314,
9764,
1739,
18,
542,
67,
2019,
12,
1739,
1119,
18,
19491,
62,
6720,
67,
7998,
67,
29011,
1769,
3639,
804,
3219,
2623,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
67,
20738,
1435,
1216,
1860,
288,
3639,
314,
9764,
1739,
18,
542,
67,
2019,
12,
1739,
1119,
18,
19491,
62,
6720,
67,
7998,
67,
29011,
1769,
3639,
804,
3219,
2623,
273,
... |
String topicId = ParamUtil.getString(req, "topicId"); | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { try { String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil.getString(req, "messageId"); MBMessageDisplay messageDisplay = MBMessageLocalServiceUtil.getMessageDisplay( topicId, messageId, req.getRemoteUser()); req.setAttribute(WebKeys.MESSAGE_BOARDS_MESSAGE, messageDisplay); return mapping.findForward("portlet.message_boards.view_message"); } catch (Exception e) { if (e != null && e instanceof NoSuchMessageException || e instanceof PrincipalException) { SessionErrors.add(req, e.getClass().getName()); return mapping.findForward("portlet.message_boards.error"); } else { throw e; } } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/ViewMessageAction.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/action/ViewMessageAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
1743,
12,
1082,
202,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
21305,
809,
642,
16,
1082,
202,
3420,
691,
1111,
16,
6987,
1064,
400,
13,
202,
202,
15069,
1185,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4382,
8514,
1743,
12,
1082,
202,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
21305,
809,
642,
16,
1082,
202,
3420,
691,
1111,
16,
6987,
1064,
400,
13,
202,
202,
15069,
1185,
28... | |
public NotDescr lhs_not() throws RecognitionException { NotDescr d; Token loc=null; PatternDescr column = null; d = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:650:17: (loc= 'not' column= lhs_column ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:650:17: loc= 'not' column= lhs_column { loc=(Token)input.LT(1); match(input,51,FOLLOW_51_in_lhs_not2167); following.push(FOLLOW_lhs_column_in_lhs_not2171); column=lhs_column(); following.pop(); d = new NotDescr( (ColumnDescr) column ); 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,
2288,
16198,
8499,
67,
902,
1435,
1216,
9539,
288,
6647,
2288,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
6830,
16198,
1057,
273,
446,
31,
540,
202,
202,
72,
273,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2288,
16198,
8499,
67,
902,
1435,
1216,
9539,
288,
6647,
2288,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
6830,
16198,
1057,
273,
446,
31,
540,
202,
202,
72,
273,
446,
... | ||
PartnerLinkPartnerRoleImpl partnerRole = new PartnerLinkPartnerRoleImpl(pl, initialPartners.get(pl)); | PartnerLinkPartnerRoleImpl partnerRole = new PartnerLinkPartnerRoleImpl(pl, conf.getInvokeEndpoints().get(pl)); | public BpelProcess(QName pid, OProcess oprocess, Map<OPartnerLink, Endpoint> myRoleEndpointNames, Map<OPartnerLink, Endpoint> initialPartners, BpelEventListener debugger, ExpressionLanguageRuntimeRegistry expLangRuntimeRegistry, List<MessageExchangeInterceptor> localMexInterceptors, ProcessStore store) { _pid = pid; _replacementMap = new ReplacementMapImpl(oprocess); _oprocess = oprocess; _expLangRuntimeRegistry = expLangRuntimeRegistry; _mexInterceptors.addAll(localMexInterceptors); _store = store; _inMemory = store.getProcessConfiguration(_pid).isInMemory(); for (OPartnerLink pl : _oprocess.getAllPartnerLinks()) { if (pl.hasMyRole()) { Endpoint endpoint = myRoleEndpointNames.get(pl); if (endpoint == null) throw new IllegalArgumentException("No service name for myRole plink " + pl.getName()); PartnerLinkMyRoleImpl myRole = new PartnerLinkMyRoleImpl(pl, endpoint); _myRoles.put(pl, myRole); _endpointToMyRoleMap.put(endpoint, myRole); } if (pl.hasPartnerRole()) { PartnerLinkPartnerRoleImpl partnerRole = new PartnerLinkPartnerRoleImpl(pl, initialPartners.get(pl)); _partnerRoles.put(pl, partnerRole); } } } | 47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/5f138028c4f2f9da31f4670375dc15a4f70fbe3a/BpelProcess.java/clean/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
605,
84,
292,
2227,
12,
13688,
4231,
16,
531,
2227,
320,
2567,
16,
1635,
32,
51,
1988,
1224,
2098,
16,
6961,
34,
3399,
2996,
3293,
1557,
16,
15604,
1635,
32,
51,
1988,
1224,
2098,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
84,
292,
2227,
12,
13688,
4231,
16,
531,
2227,
320,
2567,
16,
1635,
32,
51,
1988,
1224,
2098,
16,
6961,
34,
3399,
2996,
3293,
1557,
16,
15604,
1635,
32,
51,
1988,
1224,
2098,... |
final Integer runCount = (Integer) totalRunCount.get(inspectionID); | final Integer runCount = totalRunCount.get(inspectionID); | public int getRunCountForInspection(String inspectionID) { synchronized(lock){ final Integer runCount = (Integer) totalRunCount.get(inspectionID); if(runCount == null) { return 0; } return runCount.intValue(); } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/InspectionGadgetsTelemetry.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/telemetry/InspectionGadgetsTelemetry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
1997,
1380,
1290,
14985,
12,
780,
2763,
7017,
734,
13,
565,
288,
3639,
3852,
12,
739,
15329,
5411,
727,
2144,
1086,
1380,
273,
2078,
1997,
1380,
18,
588,
12,
2679,
7017,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
336,
1997,
1380,
1290,
14985,
12,
780,
2763,
7017,
734,
13,
565,
288,
3639,
3852,
12,
739,
15329,
5411,
727,
2144,
1086,
1380,
273,
2078,
1997,
1380,
18,
588,
12,
2679,
7017,
... |
public ICPPField[] getDeclaredFields() throws DOMException { throw new PDOMNotImplementedError(); } | public ICPPField[] getDeclaredFields() throws DOMException {fail();return null;} | public ICPPField[] getDeclaredFields() throws DOMException { throw new PDOMNotImplementedError(); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d54cf4d243d6aeda192e76f691fe9cf9a3ee7c50/PDOMCPPClassType.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPClassType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
4258,
52,
974,
8526,
31202,
1435,
1216,
4703,
503,
288,
202,
202,
12849,
394,
453,
8168,
1248,
8644,
668,
5621,
202,
97,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
4258,
52,
974,
8526,
31202,
1435,
1216,
4703,
503,
288,
202,
202,
12849,
394,
453,
8168,
1248,
8644,
668,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for(int i = 0; i < list.length; i++){ final PsiJavaCodeReferenceElement referenceElement = list[i]; | for(final PsiJavaCodeReferenceElement referenceElement : list){ | private static void calculateExceptionsThrownForMethodCall(PsiMethodCallExpression methExp, Set exceptionTypes, PsiElementFactory factory){ final PsiExpressionList argumentList = methExp.getArgumentList(); if(argumentList != null){ final PsiExpression[] expressions = argumentList.getExpressions(); for(int i = 0; i < expressions.length; i++){ calculateExceptionsThrown(expressions[i], exceptionTypes, factory); } } final PsiReferenceExpression methodExpression = methExp.getMethodExpression(); calculateExceptionsThrown(methodExpression, exceptionTypes, factory); final PsiMethod method = methExp.resolveMethod(); if(method != null){ final PsiReferenceList throwsList = method.getThrowsList(); final PsiJavaCodeReferenceElement[] list = throwsList.getReferenceElements(); for(int i = 0; i < list.length; i++){ final PsiJavaCodeReferenceElement referenceElement = list[i]; final PsiClass exceptionClass = (PsiClass) referenceElement.resolve(); final PsiClassType exceptionType = factory.createType(exceptionClass); exceptionTypes.add(exceptionType); } } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/e4329a48065fe37b7b5d3d9883a02a38ec8f42fa/ExceptionUtils.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/exceptions/ExceptionUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4604,
11416,
29591,
1290,
12592,
12,
52,
7722,
12592,
2300,
7917,
2966,
16,
4766,
1171,
9079,
1000,
1520,
2016,
16,
4766,
1171,
9079,
453,
7722,
1046,
1733,
3272,
15329,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
11416,
29591,
1290,
12592,
12,
52,
7722,
12592,
2300,
7917,
2966,
16,
4766,
1171,
9079,
1000,
1520,
2016,
16,
4766,
1171,
9079,
453,
7722,
1046,
1733,
3272,
15329,
363... |
public boolean edit( Object input, int handleCount ) { boolean result = false; CommandStack stack = SessionHandleAdapter.getInstance( ) .getCommandStack( ); try { stack.startTrans( Messages.getString( "HighlightsPage.trans.Edit" ) ); //$NON-NLS-1$ HighlightRuleBuilder builder = new HighlightRuleBuilder( UIUtil.getDefaultShell( ), Messages.getString( "HighlightsPage.Dialog.EditHighlight" ), //$NON-NLS-1$ this ); HighlightRuleHandle handle = (HighlightRuleHandle) input; builder.updateHandle( handle, handleCount ); builder.setDesignHandle( getDesignElementHandle( ) ); if ( builder.open( ) == Window.OK ) { result = true; } stack.commit( ); refreshRestoreProperty( ); } catch ( Exception e ) { stack.rollback( ); ExceptionHandler.handle( e ); result = false; } return result; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/61206e16d4577e047c9690eaab1f596d6239ab72/HighlightDescriptorProvider.java/clean/UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/attributes/provider/HighlightDescriptorProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3874,
12,
1033,
810,
16,
509,
1640,
1380,
262,
202,
95,
202,
202,
6494,
563,
273,
629,
31,
202,
202,
2189,
2624,
2110,
273,
3877,
3259,
4216,
18,
588,
1442,
12,
262,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3874,
12,
1033,
810,
16,
509,
1640,
1380,
262,
202,
95,
202,
202,
6494,
563,
273,
629,
31,
202,
202,
2189,
2624,
2110,
273,
3877,
3259,
4216,
18,
588,
1442,
12,
262,
9... | ||
public MCharactersDistribution getCurrentMatrix(Tree tree, CommandRecord commandRec){ if (tree==null) return null; else return getCurrentMatrix(tree.getTaxa(), commandRec); } | public abstract MCharactersDistribution getCurrentMatrix(Taxa taxa, CommandRecord commandRec); | public MCharactersDistribution getCurrentMatrix(Tree tree, CommandRecord commandRec){ if (tree==null) return null; else return getCurrentMatrix(tree.getTaxa(), commandRec); } | 57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/88e3c75ba71c7c3e23478b1c3ff126ef3c6fe3ab/MatrixSourceCoord.java/buggy/branches/Mesquite1.x/Mesquite Project/Source/mesquite/lib/duties/MatrixSourceCoord.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
202,
482,
490,
11600,
9003,
5175,
4635,
12,
2471,
2151,
16,
3498,
2115,
1296,
5650,
15329,
565,
202,
202,
430,
261,
3413,
631,
2011,
13,
327,
446,
31,
565,
202,
202,
12107,
327,
5175,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
202,
482,
490,
11600,
9003,
5175,
4635,
12,
2471,
2151,
16,
3498,
2115,
1296,
5650,
15329,
565,
202,
202,
430,
261,
3413,
631,
2011,
13,
327,
446,
31,
565,
202,
202,
12107,
327,
5175,
4... |
sbNewRepresentation.append( String.valueOf( value + 1 ) ); | sbNewRepresentation.append( String.valueOf( value - 1 ) ); | private String getConvertedOrthogonalSampleDataRepresentation( String sOldRepresentation ) { StringTokenizer strtok = new StringTokenizer( sOldRepresentation, "," ); //$NON-NLS-1$ NumberFormat nf = NumberFormat.getNumberInstance( ); StringBuffer sbNewRepresentation = new StringBuffer( "" ); //$NON-NLS-1$ int iValueCount = 0; while ( strtok.hasMoreTokens( ) ) { String sElement = strtok.nextToken( ).trim( ); double value; try { value = nf.parse( sElement ).doubleValue( ); if ( value < 0 ) { // If the value is negative, use an arbitrary positive value value = 4.0 + iValueCount; iValueCount++; } } catch ( ParseException e ) { value = 4.0 + iValueCount; iValueCount++; } sbNewRepresentation.append( "H" ); //$NON-NLS-1$ sbNewRepresentation.append( String.valueOf( value + 2 ) ); sbNewRepresentation.append( " " ); //$NON-NLS-1$ sbNewRepresentation.append( " L" ); //$NON-NLS-1$ sbNewRepresentation.append( String.valueOf( value - 1 ) ); sbNewRepresentation.append( " " ); //$NON-NLS-1$ sbNewRepresentation.append( " O" ); //$NON-NLS-1$ sbNewRepresentation.append( String.valueOf( value ) ); sbNewRepresentation.append( " " ); //$NON-NLS-1$ sbNewRepresentation.append( " C" ); //$NON-NLS-1$ sbNewRepresentation.append( String.valueOf( value + 1 ) ); sbNewRepresentation.append( "," ); //$NON-NLS-1$ } return sbNewRepresentation.toString( ).substring( 0, sbNewRepresentation.length( ) - 1 ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/c569581367793a8abdb1734b929e924728d36185/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,
225,
202,
1152,
514,
336,
22063,
1162,
451,
28396,
8504,
751,
13742,
12,
1082,
202,
780,
272,
7617,
13742,
262,
202,
95,
202,
202,
780,
10524,
609,
17692,
273,
394,
16370,
12,
272,
7617,
13742... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
336,
22063,
1162,
451,
28396,
8504,
751,
13742,
12,
1082,
202,
780,
272,
7617,
13742,
262,
202,
95,
202,
202,
780,
10524,
609,
17692,
273,
394,
16370,
12,
272,
7617,
13742... |
public Object next() { checkConcurrentMod(); if (!hasNext()) throw new NoSuchElementException(); IdentityHashMapEntry result = new IdentityHashMapEntry( associatedMap.elementData[position], associatedMap.elementData[position + 1]); lastPosition = position; position += 2; canRemove = true; return type.get(result); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/772afaff9e7a524c440e0fb24407fe12c0c402b2/IdentityHashMap.java/clean/modules/luni/src/main/java/java/util/IdentityHashMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
1024,
1435,
288,
1082,
202,
1893,
18521,
1739,
5621,
1082,
202,
430,
16051,
5332,
2134,
10756,
9506,
202,
12849,
394,
23104,
5621,
1082,
202,
4334,
8658,
1622,
563,
273,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
1024,
1435,
288,
1082,
202,
1893,
18521,
1739,
5621,
1082,
202,
430,
16051,
5332,
2134,
10756,
9506,
202,
12849,
394,
23104,
5621,
1082,
202,
4334,
8658,
1622,
563,
273,
39... | ||
public static String jsFunction_concat(Context cx, Scriptable thisObj, Object[] args, Function funObj) { | private static String jsFunction_concat(String target, Object[] args) { int N = args.length; if (N == 0) { return target; } | public static String jsFunction_concat(Context cx, Scriptable thisObj, Object[] args, Function funObj) { StringBuffer result = new StringBuffer(); result.append(ScriptRuntime.toString(thisObj)); for (int i = 0; i < args.length; i++) result.append(ScriptRuntime.toString(args[i])); return result.toString(); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/b631b3e8574543a4d24a0048cc710f305deb8ff5/NativeString.java/clean/src/org/mozilla/javascript/NativeString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3828,
2083,
67,
16426,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
6647,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3828,
2083,
67,
16426,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
6647,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
... |
if (name.equals(ModelFacade.getName(ae))) { | if (name.equals(ModelFacade.getName(ae)) && ModelFacade.getType(ModelFacade.getOppositeEnd(ae)) == parseState .getClassifier()) { | private Object getAssociationEnd(String name, Object mClassifier) { Object mAssociationEnd = null; for (Iterator i = ModelFacade.getAssociationEnds(mClassifier).iterator(); i.hasNext(); ) { Object ae = i.next(); if (name.equals(ModelFacade.getName(ae))) { mAssociationEnd = ae; } } if (mAssociationEnd == null && !noAssociations) { String newName = ModelFacade.getName(parseState.getClassifier()) + " -> " + ModelFacade.getName(mClassifier); Object mAssociation = CoreFactory.getFactory() .buildAssociation(mClassifier, true, parseState.getClassifier(), false, newName); mAssociationEnd = ModelFacade.getAssociationEnd(mClassifier, mAssociation); } return mAssociationEnd; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/e8e01c906963e4ae9df60a642a60d7b9221c15c6/Modeller.java/clean/src_new/org/argouml/uml/reveng/java/Modeller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
29403,
1638,
12,
780,
508,
16,
19694,
1033,
312,
13860,
13,
565,
288,
3639,
1033,
312,
7174,
1638,
273,
446,
31,
3639,
364,
261,
3198,
277,
273,
1082,
3164,
12467,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
29403,
1638,
12,
780,
508,
16,
19694,
1033,
312,
13860,
13,
565,
288,
3639,
1033,
312,
7174,
1638,
273,
446,
31,
3639,
364,
261,
3198,
277,
273,
1082,
3164,
12467,
18,
588,
... |
for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_USHORT: { DataBufferUShort out = (DataBufferUShort) data; short[] in = (short[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_SHORT: { DataBufferShort out = (DataBufferShort) data; short[] in = (short[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_INT: { DataBufferInt out = (DataBufferInt) data; int[] in = (int[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_FLOAT: { DataBufferFloat out = (DataBufferFloat) data; float[] in = (float[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_DOUBLE: { DataBufferDouble out = (DataBufferDouble) data; double[] in = (double[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } default: throw new UnsupportedOperationException("transfer type not " + "implemented"); | int inOffset = 0; Object outArray = Buffers.getData(data); for (int yd = 0; yd<h; yd++) { System.arraycopy(obj, inOffset, outArray, outOffset, rowSize); outOffset += scanlineStride; inOffset += rowSize; | public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = pixelStride*x + scanlineStride*y; int[] totalBandDataOffsets = new int[numBands]; int[] bankOffsets = data.getOffsets(); for (int b=0; b<numBands; b++) totalBandDataOffsets[b] = bandOffsets[b]+bankOffsets[bankIndices[b]] + offset; switch (getTransferType()) { case DataBuffer.TYPE_BYTE: { DataBufferByte out = (DataBufferByte) data; byte[] in = (byte[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_USHORT: { DataBufferUShort out = (DataBufferUShort) data; short[] in = (short[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_SHORT: { DataBufferShort out = (DataBufferShort) data; short[] in = (short[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_INT: { DataBufferInt out = (DataBufferInt) data; int[] in = (int[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_FLOAT: { DataBufferFloat out = (DataBufferFloat) data; float[] in = (float[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_DOUBLE: { DataBufferDouble out = (DataBufferDouble) data; double[] in = (double[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } default: throw new UnsupportedOperationException("transfer type not " + "implemented"); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/91f4232dfb8a5dff7627558a11285391ca44ebfd/ComponentSampleModel.java/buggy/core/src/classpath/java/java/awt/image/ComponentSampleModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7929,
3471,
12,
474,
619,
16,
509,
677,
16,
1033,
1081,
16,
1910,
1892,
501,
13,
225,
288,
565,
509,
1384,
273,
4957,
1585,
831,
14,
92,
397,
4135,
1369,
1585,
831,
14,
93,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7929,
3471,
12,
474,
619,
16,
509,
677,
16,
1033,
1081,
16,
1910,
1892,
501,
13,
225,
288,
565,
509,
1384,
273,
4957,
1585,
831,
14,
92,
397,
4135,
1369,
1585,
831,
14,
93,... |
fail( e.getLocalizedMessage() ); | public void testExitState_Invalid_WrongState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.enterState( this.state1 ); try { this.processContext.exitState( this.state2 ); fail( "Should have thrown InvalidMotionException" ); } catch (InvalidMotionException e) { // expected and correct } } catch (InvalidMotionException e) { fail( e.getLocalizedMessage() ); } } | 4520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4520/7f657df1e798ae8dc4b5bce7475d85219d56a2f2/ProcessContextTest.java/buggy/blissed-core/src/java/test/com/werken/blissed/ProcessContextTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6767,
1119,
67,
1941,
67,
13634,
1119,
1435,
565,
288,
3639,
333,
18,
2567,
1042,
18,
1937,
2227,
12,
333,
18,
2567,
11272,
3639,
1815,
8650,
12,
333,
18,
2567,
16,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6767,
1119,
67,
1941,
67,
13634,
1119,
1435,
565,
288,
3639,
333,
18,
2567,
1042,
18,
1937,
2227,
12,
333,
18,
2567,
11272,
3639,
1815,
8650,
12,
333,
18,
2567,
16,
107... | |
if ( (address >= 0) && (address < 128) ) { | if ( (address >= 0) && (address < 256) ) { | public void setNodeAddress(int address) { if ( (address >= 0) && (address < 128) ) { nodeAddress = address; } else { log.error("illegal node address: "+Integer.toString(address)); nodeAddress = 0; } } | 213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/99b7b22315da47b053cf505fb1c152029f792f09/SerialNode.java/clean/jmri/jmrix/oaktree/SerialNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26250,
1887,
12,
474,
1758,
13,
288,
3639,
309,
261,
261,
2867,
1545,
374,
13,
597,
261,
2867,
411,
8303,
13,
262,
288,
5411,
756,
1887,
273,
1758,
31,
3639,
289,
3639,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26250,
1887,
12,
474,
1758,
13,
288,
3639,
309,
261,
261,
2867,
1545,
374,
13,
597,
261,
2867,
411,
8303,
13,
262,
288,
5411,
756,
1887,
273,
1758,
31,
3639,
289,
3639,
469,
... |
InetAddress addr; | FreenetInetAddress addr; | public void set(String val) throws InvalidConfigValueException { // FIXME do we need to tell anyone? if(val.length() == 0) { // Set to null overrideIPAddress = null; lastIPAddress = null; redetectAddress(); shouldInsertARK(); return; } InetAddress addr; try { addr = InetAddress.getByName(val); } catch (UnknownHostException e) { throw new InvalidConfigValueException("Unknown host: "+e.getMessage()); } overrideIPAddress = addr; lastIPAddress = null; redetectAddress(); shouldInsertARK(); } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/474d190c633c367c5c3ff7fbe0f75a1ea669294b/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
444,
12,
780,
1244,
13,
1216,
1962,
809,
9738,
288,
9506,
202,
759,
9852,
741,
732,
1608,
358,
9276,
1281,
476,
35,
9506,
202,
430,
12,
1125,
18,
2469,
1435,
422,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
12,
780,
1244,
13,
1216,
1962,
809,
9738,
288,
9506,
202,
759,
9852,
741,
732,
1608,
358,
9276,
1281,
476,
35,
9506,
202,
430,
12,
1125,
18,
2469,
1435,
422,
374,
... |
return null; | return "\""; | public String getIdentifierQuoteString() throws SQLException { return null; } | 46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/879639b5bef881277eaf01c9d94c45f358558c2d/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
9650,
10257,
780,
1435,
1216,
6483,
225,
288,
565,
327,
11143,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
9650,
10257,
780,
1435,
1216,
6483,
225,
288,
565,
327,
11143,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public ActionManager(EventBus bus) { | public ActionManager(EventBus bus, ResourceManager resources) { | public ActionManager(EventBus bus) { _bus = bus; bus.addMember(EventBus.RESPONDING, new Enabler()); _mapper = new EventToActionMapper(); // Configure the set of actions. String toTok = _resources.getString("actions"); StringTokenizer tok = new StringTokenizer(toTok, ", "); _actionIDs = new String[tok.countTokens()]; for(int i = 0; i < _actionIDs.length; i++) { _actionIDs[i] = tok.nextToken(); AntAction action = new AntAction(_resources, _bus, _actionIDs[i]); _actions.put(_actionIDs[i], action); // For each action we need to add the reverse event trigger // lookup. _mapper.addAction(action); } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/1cf34e10947b9de2fb345578caed557b5777345f/ActionManager.java/buggy/src/antidote/org/apache/tools/ant/gui/core/ActionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
1318,
12,
1133,
7086,
5766,
16,
2591,
1318,
2703,
13,
288,
3639,
389,
9274,
273,
5766,
31,
3639,
5766,
18,
1289,
4419,
12,
1133,
7086,
18,
862,
10789,
40,
1360,
16,
394,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1318,
12,
1133,
7086,
5766,
16,
2591,
1318,
2703,
13,
288,
3639,
389,
9274,
273,
5766,
31,
3639,
5766,
18,
1289,
4419,
12,
1133,
7086,
18,
862,
10789,
40,
1360,
16,
394,
137... |
if (formatspecifier instanceof DateFormatSpecifier || formatspecifier instanceof JavaDateFormatSpecifier) | if (formatspecifier == null) | private void populateLists() { this.bEnableEvents = false; cmbDataType.add("Date/Time"); cmbDataType.add("Number"); if (formatspecifier instanceof DateFormatSpecifier || formatspecifier instanceof JavaDateFormatSpecifier) { cmbDataType.select(0); if (formatspecifier instanceof DateFormatSpecifier) { btnStandard.setSelection(true); } else if (formatspecifier instanceof JavaDateFormatSpecifier) { btnAdvanced.setSelection(true); } else { btnUndefined.setSelection(true); } slStandardDetails.topControl = this.cmpStandardDateDetails; slAdvancedDetails.topControl = this.cmpAdvancedDateDetails; } else { cmbDataType.select(1); if (formatspecifier instanceof NumberFormatSpecifier) { btnStandard.setSelection(true); } else if (formatspecifier instanceof JavaNumberFormatSpecifier) { btnAdvanced.setSelection(true); } else { btnUndefined.setSelection(true); } slStandardDetails.topControl = this.cmpStandardNumberDetails; slAdvancedDetails.topControl = this.cmpAdvancedNumberDetails; } updateUIState(); // Populate Date Types Object[] oArrDT = DateFormatType.VALUES.toArray(); for (int iDT = 0; iDT < oArrDT.length; iDT++) { cmbDateType.add(((DateFormatType) oArrDT[iDT]).getName()); if (formatspecifier instanceof DateFormatSpecifier && ((DateFormatSpecifier) formatspecifier).getType().equals(oArrDT[iDT])) { cmbDateType.select(iDT); } } // Populate Date Details Object[] oArrDD = DateFormatDetail.VALUES.toArray(); for (int iDD = 0; iDD < oArrDD.length; iDD++) { cmbDateForm.add(((DateFormatDetail) oArrDD[iDD]).getName()); if (formatspecifier instanceof DateFormatSpecifier && ((DateFormatSpecifier) formatspecifier).getDetail().equals(oArrDD[iDD])) { cmbDateForm.select(iDD); } } String str = ""; if (formatspecifier instanceof JavaDateFormatSpecifier) { str = ((JavaDateFormatSpecifier) formatspecifier).getPattern(); if (str == null) { str = ""; } txtDatePattern.setText(str); } if (formatspecifier instanceof NumberFormatSpecifier) { str = ((NumberFormatSpecifier) formatspecifier).getPrefix(); if (str == null) { str = ""; } txtPrefix.setText(str); str = ((NumberFormatSpecifier) formatspecifier).getSuffix(); if (str == null) { str = ""; } txtSuffix.setText(str); str = String.valueOf(((NumberFormatSpecifier) formatspecifier).getMultiplier()); if (str == null || !((NumberFormatSpecifier) formatspecifier).eIsSet(AttributePackage.eINSTANCE .getNumberFormatSpecifier_Multiplier())) { str = ""; } txtMultiplier.setText(str); iscFractionDigits.setValue(((NumberFormatSpecifier) formatspecifier).getFractionDigits()); } if (formatspecifier instanceof JavaNumberFormatSpecifier) { str = String.valueOf(((JavaNumberFormatSpecifier) formatspecifier).getMultiplier()); if (str == null) { str = ""; } txtAdvMultiplier.setText(str); str = ((JavaNumberFormatSpecifier) formatspecifier).getPattern(); if (str == null) { str = ""; } txtNumberPattern.setText(str); } this.layout(); this.bEnableEvents = true; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7793e94b4d7fab5891f226c6c937e37d85bebad8/FormatSpecifierComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6490,
7432,
1435,
565,
288,
3639,
333,
18,
70,
8317,
3783,
273,
629,
31,
3639,
276,
1627,
6273,
18,
1289,
2932,
1626,
19,
950,
8863,
3639,
276,
1627,
6273,
18,
1289,
2932,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
7432,
1435,
565,
288,
3639,
333,
18,
70,
8317,
3783,
273,
629,
31,
3639,
276,
1627,
6273,
18,
1289,
2932,
1626,
19,
950,
8863,
3639,
276,
1627,
6273,
18,
1289,
2932,
18... |
VM.sysWriteln("WAITED LONG TIME FOR PRECEEDING GC TO FINISH"); VM.sysWriteln(" len = ", len); VM.sysWriteln(" maxCollTh = ", maxCollectorThreads); | VM.sysWriteln("GCWarning: WAITED LONG TIME FOR PRECEEDING GC TO FINISH"); VM.sysWriteln("GCWarning: len = ", len); VM.sysWriteln("GCWarning: maxCollTh = ", maxCollectorThreads); | private int waitForPrecedingGC() throws VM_PragmaUninterruptible { /* * Get the number of GC threads. Include NativeDaemonProcessor * collector thread in the count. If it exists, check for null to * allow builds without a NativeDaemon (see VM_Scheduler) */ int maxCollectorThreads = VM_Scheduler.numProcessors; if (!VM.BuildForSingleVirtualProcessor && VM_Scheduler.processors[VM_Scheduler.nativeDPndx] != null ) maxCollectorThreads++; /* Wait for all gc threads to finish preceeding collection cycle */ if (verbose >= 1) { VM.sysWrite("GC Message: VM_Handshake.initiateCollection "); VM.sysWriteln("checking if previous collection is finished"); } int count = 0; while (true) { VM_Scheduler.collectorMutex.lock(); int len = VM_Scheduler.collectorQueue.length(); if (count++ == 100000) { VM.sysWriteln("WAITED LONG TIME FOR PRECEEDING GC TO FINISH"); VM.sysWriteln(" len = ", len); VM.sysWriteln(" maxCollTh = ", maxCollectorThreads); VM_Scheduler.collectorQueue.dump(); } VM_Scheduler.collectorMutex.unlock(); if (len < maxCollectorThreads) { if (verbose >= 1) VM.sysWrite("GC Message: VM_Handshake.initiateCollection waiting for previous collection to finish"); lock.release(); // release lock so other threads can make progress VM_Thread.getCurrentThread().yield(); lock.acquire(); // acquire lock to make progress } else break; } return maxCollectorThreads; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/d0c6b5bdba2930710a16ff10df530e093dc057b6/VM_Handshake.java/clean/rvm/src/vm/memoryManagers/JMTk/vmInterface/VM_Handshake.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
10712,
1386,
3263,
310,
15396,
1435,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
1748,
377,
380,
968,
326,
1300,
434,
15085,
7403,
18,
225,
12672,
16717,
12858,
5164,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
10712,
1386,
3263,
310,
15396,
1435,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
1748,
377,
380,
968,
326,
1300,
434,
15085,
7403,
18,
225,
12672,
16717,
12858,
5164,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.