rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
lasttarget = -1; jpc = NO_JUMP; h = new Hashtable();
FuncState(Syntax ls) { f = new Proto(ls.source()); L = ls.L ; prev = ls.linkfs(this); this.ls = ls; // pc = 0; lasttarget = -1; jpc = NO_JUMP; // freereg = 0; // nk = 0; // np = 0; // nlocvars = 0; // nactvar = 0; // bl = null; h = new Hashtable(); }
47685 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47685/39c804eea03b754b9527c4834d29873104c539a1/FuncState.java/buggy/code/FuncState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 6165, 1119, 12, 8070, 7180, 13, 225, 288, 565, 284, 273, 394, 7440, 12, 3251, 18, 3168, 10663, 565, 511, 273, 7180, 18, 48, 274, 565, 2807, 273, 7180, 18, 1232, 2556, 12, 2211, 1769, 565, 333, 18, 3251, 273, 7180, 31, 565, 368, 6125, 273, 374, 31, 565, 1142, 3299, 273, 300, 21, 31, 565, 525, 2436, 273, 3741, 67, 46, 23942, 31, 565, 368, 22010, 11877, 273, 374, 31, 565, 368, 29402, 273, 374, 31, 565, 368, 1130, 273, 374, 31, 565, 368, 290, 1829, 4699, 273, 374, 31, 565, 368, 290, 621, 1401, 273, 374, 31, 565, 368, 2811, 273, 446, 31, 565, 366, 273, 394, 18559, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 6165, 1119, 12, 8070, 7180, 13, 225, 288, 565, 284, 273, 394, 7440, 12, 3251, 18, 3168, 10663, 565, 511, 273, 7180, 18, 48, 274, 565, 2807, 273, 7180, 18, 1232, 2556, 12, 2211, 1769, 565, 333, 18, 3251, 273, 7180, 31, 565, 368, 6125, 273, 374, 31, 565, 1142, 3299, 273, 300, 21, 31, 565, 525, 2436, 273, 3741, 67, 46, 23942, 31, 565, 368, 22010, 11877, 273, 374, 31, 565, 368, 29402, 273, 374, 31, 565, 368, 1130, 273, 374, 31, 565, 368, 290, 1829, 4699, 273, 374, 31, 565, 368, 290, 621, 1401, 273, 374, 31, 565, 368, 2811, 273, 446, 31, 565, 366, 273, 394, 18559, 5621, 225, 289, 2, -100, -100, -100, -100, -100 ]
Node.Target finallyTarget = tryNode.getFinally();
Node finallyTarget = tryNode.getFinally();
private void visitStatement(Node node) { int type = node.getType(); Node child = node.getFirstChild(); switch (type) { case Token.FUNCTION: { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); int fnType = scriptOrFn.getFunctionNode(fnIndex). getFunctionType(); // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start // In addition function expression can not present here // at statement level, they must only present as expressions. if (fnType == FunctionNode.FUNCTION_EXPRESSION_STATEMENT) { addIndexOp(Icode_CLOSURE_STMT, fnIndex); } else { if (fnType != FunctionNode.FUNCTION_STATEMENT) { throw Kit.codeBug(); } } } break; case Token.SCRIPT: case Token.LABEL: case Token.LOOP: case Token.BLOCK: case Token.EMPTY: case Token.WITH: updateLineNumber(node); while (child != null) { visitStatement(child); child = child.getNext(); } break; case Token.ENTERWITH: visitExpression(child, 0); addToken(Token.ENTERWITH); stackChange(-1); break; case Token.LEAVEWITH: addToken(Token.LEAVEWITH); break; case Token.LOCAL_BLOCK: { int local = allocLocal(); node.putIntProp(Node.LOCAL_PROP, local); updateLineNumber(node); while (child != null) { visitStatement(child); child = child.getNext(); } addIndexOp(Icode_LOCAL_CLEAR, local); releaseLocal(local); } break; case Token.SWITCH: updateLineNumber(node); // See comments in IRFactory.createSwitch() for description // of SWITCH node { Node switchNode = (Node.Jump)node; visitExpression(child, 0); for (Node.Jump caseNode = (Node.Jump)child.getNext(); caseNode != null; caseNode = (Node.Jump)caseNode.getNext()) { if (caseNode.getType() != Token.CASE) throw badTree(caseNode); Node test = caseNode.getFirstChild(); addIcode(Icode_DUP); stackChange(1); visitExpression(test, 0); addToken(Token.SHEQ); stackChange(-1); // If true, Icode_IFEQ_POP will jump and remove case // value from stack addGoto(caseNode.target, Icode_IFEQ_POP); stackChange(-1); } addIcode(Icode_POP); stackChange(-1); } break; case Token.TARGET: markTargetLabel((Node.Target)node); break; case Token.IFEQ : case Token.IFNE : { Node.Target target = ((Node.Jump)node).target; visitExpression(child, 0); addGoto(target, type); stackChange(-1); } break; case Token.GOTO: { Node.Target target = ((Node.Jump)node).target; addGoto(target, type); } break; case Token.JSR: { Node.Target target = ((Node.Jump)node).target; addGoto(target, Icode_GOSUB); } break; case Token.FINALLY: { // Account for incomming GOTOSUB address stackChange(1); int finallyRegister = getLocalBlockRef(node); addIndexOp(Icode_STARTSUB, finallyRegister); stackChange(-1); while (child != null) { visitStatement(child); child = child.getNext(); } addIndexOp(Icode_RETSUB, finallyRegister); } break; case Token.EXPR_VOID: case Token.EXPR_RESULT: updateLineNumber(node); visitExpression(child, 0); addIcode((type == Token.EXPR_VOID) ? Icode_POP : Icode_POP_RESULT); stackChange(-1); break; case Token.TRY: { Node.Jump tryNode = (Node.Jump)node; int exceptionObjectLocal = getLocalBlockRef(tryNode); int scopeLocal = allocLocal(); addIndexOp(Icode_SCOPE_SAVE, scopeLocal); int tryStart = itsICodeTop; while (child != null) { visitStatement(child); child = child.getNext(); } Node.Target catchTarget = tryNode.target; if (catchTarget != null) { int catchStartPC = itsLabelTable[getTargetLabel(catchTarget)]; addExceptionHandler( tryStart, catchStartPC, catchStartPC, false, exceptionObjectLocal, scopeLocal); } Node.Target finallyTarget = tryNode.getFinally(); if (finallyTarget != null) { int finallyStartPC = itsLabelTable[getTargetLabel(finallyTarget)]; addExceptionHandler( tryStart, finallyStartPC, finallyStartPC, true, exceptionObjectLocal, scopeLocal); } addIndexOp(Icode_LOCAL_CLEAR, scopeLocal); releaseLocal(scopeLocal); } break; case Token.CATCH_SCOPE: { int localIndex = getLocalBlockRef(node); int scopeIndex = node.getExistingIntProp(Node.CATCH_SCOPE_PROP); String name = child.getString(); child = child.getNext(); visitExpression(child, 0); // load expression object addStringPrefix(name); addIndexPrefix(localIndex); addToken(Token.CATCH_SCOPE); addUint8(scopeIndex != 0 ? 1 : 0); stackChange(-1); } break; case Token.THROW: updateLineNumber(node); visitExpression(child, 0); addToken(Token.THROW); addUint16(itsLineNumber & 0xFFFF); stackChange(-1); break; case Token.RETHROW: updateLineNumber(node); addIndexOp(Token.RETHROW, getLocalBlockRef(node)); break; case Token.RETURN: updateLineNumber(node); if (child != null) { visitExpression(child, ECF_TAIL); addToken(Token.RETURN); stackChange(-1); } else { addIcode(Icode_RETUNDEF); } break; case Token.RETURN_RESULT: updateLineNumber(node); addToken(Token.RETURN_RESULT); break; case Token.ENUM_INIT_KEYS: case Token.ENUM_INIT_VALUES : visitExpression(child, 0); addIndexOp(type, getLocalBlockRef(node)); stackChange(-1); break; default: throw badTree(node); } if (itsStackDepth != 0) { throw Kit.codeBug(); } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/bef182034b96d54a2938fe141217e83b8644cf25/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 3406, 12, 907, 756, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 1620, 261, 723, 13, 288, 1850, 648, 3155, 18, 7788, 30, 5411, 288, 7734, 509, 2295, 1016, 273, 756, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 7734, 509, 2295, 559, 273, 2728, 1162, 5372, 18, 588, 2083, 907, 12, 4293, 1016, 2934, 4766, 18697, 559, 5621, 7734, 368, 5098, 445, 8041, 578, 445, 2652, 7734, 368, 6317, 4260, 7213, 981, 4979, 394, 445, 7734, 368, 733, 603, 2110, 487, 445, 6317, 854, 6454, 7734, 368, 622, 2728, 19, 915, 787, 7734, 368, 657, 2719, 445, 2652, 848, 486, 3430, 2674, 7734, 368, 622, 3021, 1801, 16, 2898, 1297, 1338, 3430, 487, 8041, 18, 7734, 309, 261, 4293, 559, 422, 4284, 907, 18, 7788, 67, 19111, 67, 28411, 13, 288, 10792, 26794, 3817, 12, 45, 710, 67, 22693, 55, 4830, 67, 882, 6152, 16, 2295, 1016, 1769, 7734, 289, 469, 288, 10792, 309, 261, 4293, 559, 480, 4284, 907, 18, 7788, 67, 28411, 13, 288, 13491, 604, 1475, 305, 18, 710, 19865, 5621, 10792, 289, 7734, 289, 5411, 289, 5411, 898, 31, 1850, 648, 3155, 18, 10885, 30, 1850, 648, 3155, 18, 13545, 30, 1850, 648, 3155, 18, 28677, 30, 1850, 648, 3155, 18, 11403, 30, 1850, 648, 3155, 18, 13625, 30, 1850, 648, 3155, 18, 9147, 30, 5411, 1089, 31063, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 3406, 12, 907, 756, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 1620, 261, 723, 13, 288, 1850, 648, 3155, 18, 7788, 30, 5411, 288, 7734, 509, 2295, 1016, 273, 756, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 7734, 509, 2295, 559, 273, 2728, 1162, 5372, 18, 588, 2083, 907, 12, 4293, 1016, 2934, 4766, 18697, 559, 5621, 7734, 368, 5098, 445, 8041, 578, 445, 2652, 7734, 368, 6317, 4260, 7213, 981, 4979, 394, 445, 7734, 368, 733, 603, 2110, 487, 445, 6317, 854, 6454, 7734, 368, 622, 2728, 19, 915, 787, 7734, 368, 657, 2 ]
return os.toString();
try { return os.toString("UTF-8"); } catch (UnsupportedEncodingException ex) { s_log.error("UTF-8 encoding not supported!!!"); return os.toString(); }
public static String toString(org.w3c.dom.Document document, boolean indent) { Transformer identity; ByteArrayOutputStream os = new ByteArrayOutputStream(); try { StreamSource identitySource = new StreamSource(new StringReader(identityXSL)); identity = TransformerFactory.newInstance() .newTransformer(identitySource); if (indent) { identity.setOutputProperty("method", "xml"); identity.setOutputProperty("indent", "yes"); } identity.transform(new DOMSource(document), new StreamResult(os)); } catch (javax.xml.transform.TransformerException e) { s_log.error("error in toString", e); return document.toString(); } return os.toString(); }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/92eea7f366546d8233d38e25dda883294e21e707/Document.java/buggy/archive/core-platform/src/com/arsdigita/xml/Document.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1762, 12, 3341, 18, 91, 23, 71, 18, 9859, 18, 2519, 1668, 16, 21394, 1250, 3504, 13, 288, 3639, 11519, 4215, 31, 3639, 11559, 1140, 273, 394, 11559, 5621, 3639, 775, 288, 5411, 3961, 1830, 4215, 1830, 273, 7734, 394, 3961, 1830, 12, 2704, 26227, 12, 10781, 60, 4559, 10019, 5411, 4215, 273, 11519, 1733, 18, 2704, 1442, 1435, 7734, 263, 2704, 8319, 12, 10781, 1830, 1769, 5411, 309, 261, 9355, 13, 288, 7734, 4215, 18, 542, 1447, 1396, 2932, 2039, 3113, 315, 2902, 8863, 7734, 4215, 18, 542, 1447, 1396, 2932, 9355, 3113, 315, 9707, 8863, 5411, 289, 5411, 4215, 18, 6547, 12, 2704, 4703, 1830, 12, 5457, 3631, 394, 3961, 1253, 12, 538, 10019, 3639, 289, 1044, 261, 28384, 18, 2902, 18, 6547, 18, 8319, 503, 425, 13, 288, 5411, 272, 67, 1330, 18, 1636, 2932, 1636, 316, 1762, 3113, 425, 1769, 5411, 327, 1668, 18, 10492, 5621, 3639, 289, 540, 775, 288, 327, 1140, 18, 10492, 2932, 5159, 17, 28, 8863, 289, 1044, 261, 8544, 13836, 431, 13, 288, 272, 67, 1330, 18, 1636, 2932, 5159, 17, 28, 2688, 486, 3260, 8548, 4442, 1769, 327, 1140, 18, 10492, 5621, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1762, 12, 3341, 18, 91, 23, 71, 18, 9859, 18, 2519, 1668, 16, 21394, 1250, 3504, 13, 288, 3639, 11519, 4215, 31, 3639, 11559, 1140, 273, 394, 11559, 5621, 3639, 775, 288, 5411, 3961, 1830, 4215, 1830, 273, 7734, 394, 3961, 1830, 12, 2704, 26227, 12, 10781, 60, 4559, 10019, 5411, 4215, 273, 11519, 1733, 18, 2704, 1442, 1435, 7734, 263, 2704, 8319, 12, 10781, 1830, 1769, 5411, 309, 261, 9355, 13, 288, 7734, 4215, 18, 542, 1447, 1396, 2932, 2039, 3113, 315, 2902, 8863, 7734, 4215, 18, 542, 1447, 1396, 2932, 9355, 3113, 315, 9707, 8863, 5411, 289, 5411, 4215, 18, 6547, 12, 2704, 4703, 1830, 12, 5457, 3631, 394, 3961, 1253, 12, 538, 2 ]
RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PRIVATE) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 509, 1836, 12, 921, 498, 16, 1033, 460, 16, 1033, 1501, 13, 288, 9506, 202, 759, 4812, 833, 9506, 202, 54, 10340, 548, 612, 273, 261, 54, 10340, 548, 13, 498, 31, 9506, 202, 1305, 907, 1417, 273, 261, 1305, 907, 13, 460, 31, 9506, 202, 54, 10340, 1076, 11841, 273, 261, 54, 10340, 1076, 13, 1501, 31, 9506, 202, 430, 261, 3432, 18, 588, 2250, 907, 1435, 422, 446, 13, 288, 6862, 202, 814, 18, 6206, 12, 588, 54, 10340, 7675, 588, 12616, 10663, 6862, 202, 814, 18, 6206, 12, 54, 10340, 780, 18, 81, 67, 2704, 780, 12, 588, 54, 10340, 9334, 612, 18, 869, 461, 1435, 10019, 9506, 202, 97, 469, 309, 14015, 3432, 18, 588, 2279, 338, 1435, 473, 5245, 18, 3417, 2294, 67, 20055, 13, 480, 374, 13, 288, 6862, 202, 54, 10340, 780, 508, 273, 19817, 780, 18, 81, 67, 2704, 780, 12, 588, 54, 10340, 9334, 612, 18, 869, 461, 10663, 6862, 202, 430, 261, 814, 18, 81, 67, 18499, 12, 529, 2934, 291, 8381, 10756, 288, 25083, 202, 814, 18, 6206, 12, 529, 1769, 6862, 202, 97, 9506, 202, 97, 469, 309, 261, 3432, 18, 588, 2250, 907, 1435, 1276, 2285, 8051, 907, 13, 288, 6862, 202, 814, 18, 6206, 12, 588, 54, 10340, 7675, 588, 12616, 10663, 6862, 202, 814, 18, 6206, 12, 54, 10340, 780, 18, 81, 67, 2704, 780, 12, 588, 54, 10340, 9334, 612, 18, 869, 461, 1435, 10019, 9506, 202, 97, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 509, 1836, 12, 921, 498, 16, 1033, 460, 16, 1033, 1501, 13, 288, 9506, 202, 759, 4812, 833, 9506, 202, 54, 10340, 548, 612, 273, 261, 54, 10340, 548, 13, 498, 31, 9506, 202, 1305, 907, 1417, 273, 261, 1305, 907, 13, 460, 31, 9506, 202, 54, 10340, 1076, 11841, 273, 261, 54, 10340, 1076, 13, 1501, 31, 9506, 202, 430, 261, 3432, 18, 588, 2250, 907, 1435, 422, 446, 13, 288, 6862, 202, 814, 18, 6206, 12, 588, 54, 10340, 7675, 588, 12616, 10663, 6862, 202, 814, 18, 6206, 12, 54, 10340, 780, 18, 81, 67, 2704, 780, 12, 588, 54, 10340, 9334, 612, 18, 869, 461, 1435, 10019, 9506, 202, 97, 469, 309, 14015, 2 ]
case GE:
case Operators.GE:
public void translateDesynthesized(ClassGenerator classGen, MethodGenerator methodGen) { if (hasNodeSetArgs() || hasReferenceArgs()) { translate(classGen, methodGen); desynthesize(classGen, methodGen); } else { BranchInstruction bi = null; final InstructionList il = methodGen.getInstructionList(); _left.translate(classGen, methodGen); _right.translate(classGen, methodGen); // TODO: optimize if one of the args is 0 boolean tozero = false; Type tleft = _left.getType(); if (tleft instanceof RealType) { il.append(tleft.CMP(_op == LT || _op == LE)); tleft = Type.Int; tozero = true; } switch (_op) { case LT: bi = tleft.GE(tozero); break; case GT: bi = tleft.LE(tozero); break; case LE: bi = tleft.GT(tozero); break; case GE: bi = tleft.LT(tozero); break; default: ErrorMsg msg = new ErrorMsg(ErrorMsg.ILLEGAL_RELAT_OP_ERR,this); getParser().reportError(Constants.FATAL, msg); } _falseList.add(il.append(bi)); // must be backpatched } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/2d07c253b814672a82d969836d58577bfa628b88/RelationalExpr.java/clean/src/org/apache/xalan/xsltc/compiler/RelationalExpr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4204, 6305, 878, 7915, 1235, 12, 797, 3908, 667, 7642, 16, 6862, 4202, 2985, 3908, 707, 7642, 13, 288, 202, 430, 261, 5332, 907, 694, 2615, 1435, 747, 711, 2404, 2615, 10756, 288, 202, 565, 4204, 12, 1106, 7642, 16, 707, 7642, 1769, 202, 565, 2832, 878, 7915, 554, 12, 1106, 7642, 16, 707, 7642, 1769, 202, 97, 202, 12107, 288, 202, 565, 15449, 11983, 10054, 273, 446, 31, 202, 565, 727, 24605, 682, 14254, 273, 707, 7642, 18, 588, 11983, 682, 5621, 202, 565, 389, 4482, 18, 13929, 12, 1106, 7642, 16, 707, 7642, 1769, 202, 565, 389, 4083, 18, 13929, 12, 1106, 7642, 16, 707, 7642, 1769, 202, 565, 368, 2660, 30, 10979, 309, 1245, 434, 326, 833, 353, 374, 202, 565, 1250, 358, 7124, 273, 629, 31, 202, 565, 1412, 268, 4482, 273, 389, 4482, 18, 588, 559, 5621, 3196, 565, 309, 261, 88, 4482, 1276, 15987, 559, 13, 288, 202, 202, 330, 18, 6923, 12, 88, 4482, 18, 39, 4566, 24899, 556, 422, 11807, 747, 389, 556, 422, 5380, 10019, 202, 202, 88, 4482, 273, 1412, 18, 1702, 31, 202, 202, 869, 7124, 273, 638, 31, 202, 565, 289, 202, 565, 1620, 261, 67, 556, 13, 288, 202, 565, 648, 11807, 30, 202, 202, 13266, 273, 268, 4482, 18, 7113, 12, 869, 7124, 1769, 1082, 202, 8820, 31, 9506, 565, 648, 19688, 30, 202, 202, 13266, 273, 268, 4482, 18, 900, 12, 869, 7124, 1769, 202, 202, 8820, 31, 9506, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4204, 6305, 878, 7915, 1235, 12, 797, 3908, 667, 7642, 16, 6862, 4202, 2985, 3908, 707, 7642, 13, 288, 202, 430, 261, 5332, 907, 694, 2615, 1435, 747, 711, 2404, 2615, 10756, 288, 202, 565, 4204, 12, 1106, 7642, 16, 707, 7642, 1769, 202, 565, 2832, 878, 7915, 554, 12, 1106, 7642, 16, 707, 7642, 1769, 202, 97, 202, 12107, 288, 202, 565, 15449, 11983, 10054, 273, 446, 31, 202, 565, 727, 24605, 682, 14254, 273, 707, 7642, 18, 588, 11983, 682, 5621, 202, 565, 389, 4482, 18, 13929, 12, 1106, 7642, 16, 707, 7642, 1769, 202, 565, 389, 4083, 18, 13929, 12, 1106, 7642, 16, 707, 7642, 1769, 202, 565, 368, 2660, 30, 10979, 309, 2 ]
ruby.getLastCallStatus().setPrivate(); return callMethodMissing(recv, name, args);
public final IRubyObject call(IRubyObject recv, String name, IRubyObject[] args, int scope) { if (args == null) { args = new IRubyObject[0]; } CacheEntry ent = getRuntime().getMethodCache().getEntry(this, name); if (ent == null) { ent = getMethodBody(name); } if (ent == null || ent.getMethod().isUndefined()) { if (scope == 3) { throw new NameError(ruby, "super: no superclass method '" + name + "'"); } IRubyObject[] newArgs = new IRubyObject[args.length + 1]; newArgs[0] = RubySymbol.newSymbol(getRuntime(), name); System.arraycopy(args, 0, newArgs, 1, args.length); return recv.callMethod("method_missing", newArgs); } RubyModule klass = ent.getOrigin(); name = ent.getOriginalName(); ICallable method = ent.getMethod(); if (!name.equals("method_missing")) { if (method.getVisibility().isPrivate() && scope == 0) { // return undefinedMethod(name, args, Visibility.PRIVATE); } else if (method.getVisibility().isProtected()) { RubyModule defined = klass; while (defined.isIncluded()) { defined = defined.getInternalClass(); } if (!ruby.getCurrentFrame().getSelf().isKindOf(defined)) { // return undefinedMethod(name, args, Visibility.PROTECTED); } } } // ... return klass.call0(recv, name, args, method, false); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/cfb1b4132c30e5186c41e9dbf0b92acca72fcf81/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 22155, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 22155, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 22155, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 22155, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 1071, 27768, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 727, 27768, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 15908, 10340, 921, 27768, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 745, 12, 7937, 10340, 921, 27768, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 10665, 16, 27768, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 514, 27768, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 508, 16, 27768, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 15908, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 22155, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 22155, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 22155, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 22155, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 1071, 27768, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 1305, 4841, 12, 18334, 16, 508, 16, 833, 1769, 727, 27768, 18, 588, 3024, 1477, 1482, 7675, 542, 6014, 5621, 327, 745, 2 ]
return null; }
return null; }
public final Component get(final String path) { // Reference to this container if (path == null || path.trim().equals("")) { return this; } // Get child's name, if any final String childName = Strings.firstPathComponent(path, '.'); // Get child by name final Component child = (Component) childForName.get(childName); // Found child? if (child != null) { // Recurse on latter part of path return child.get(Strings.afterFirstPathComponent(path, '.')); } // No child by that name return null; }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/ea253df0f24068fbb4fbff6339c23005e16c95ad/Container.java/buggy/wicket/src/java/wicket/Container.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 5435, 336, 12, 6385, 514, 589, 13, 565, 288, 3639, 368, 6268, 358, 333, 1478, 3639, 309, 261, 803, 422, 446, 747, 589, 18, 5290, 7675, 14963, 2932, 6, 3719, 3639, 288, 5411, 327, 333, 31, 3639, 289, 3639, 368, 968, 1151, 1807, 508, 16, 309, 1281, 3639, 727, 514, 27440, 273, 8139, 18, 3645, 743, 1841, 12, 803, 16, 2611, 1769, 3639, 368, 968, 1151, 635, 508, 3639, 727, 5435, 1151, 273, 261, 1841, 13, 1151, 1290, 461, 18, 588, 12, 3624, 461, 1769, 3639, 368, 10750, 1151, 35, 3639, 309, 261, 3624, 480, 446, 13, 3639, 288, 5411, 368, 868, 17682, 603, 23740, 1087, 434, 589, 5411, 327, 1151, 18, 588, 12, 7957, 18, 5205, 3759, 743, 1841, 12, 803, 16, 2611, 10019, 3639, 289, 3639, 368, 2631, 1151, 635, 716, 508, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 5435, 336, 12, 6385, 514, 589, 13, 565, 288, 3639, 368, 6268, 358, 333, 1478, 3639, 309, 261, 803, 422, 446, 747, 589, 18, 5290, 7675, 14963, 2932, 6, 3719, 3639, 288, 5411, 327, 333, 31, 3639, 289, 3639, 368, 968, 1151, 1807, 508, 16, 309, 1281, 3639, 727, 514, 27440, 273, 8139, 18, 3645, 743, 1841, 12, 803, 16, 2611, 1769, 3639, 368, 968, 1151, 635, 508, 3639, 727, 5435, 1151, 273, 261, 1841, 13, 1151, 1290, 461, 18, 588, 12, 3624, 461, 1769, 3639, 368, 10750, 1151, 35, 3639, 309, 261, 3624, 480, 446, 13, 3639, 288, 5411, 368, 868, 17682, 603, 23740, 1087, 434, 589, 5411, 327, 1151, 18, 588, 12, 7957, 18, 2 ]
CellHandle handle = ( CellHandle ) cellDesign.getHandle( ); if ( handle != null ) { ICellEventHandler eh = ( ICellEventHandler ) getInstance( ( CellHandle ) cellDesign .getHandle( ) ); if ( eh != null ) eh.onCreate( cell, rowData, context.getReportContext( ) ); }
ICellEventHandler eh = getEventHandler( cellDesign, context ); if ( eh != null ) eh.onCreate( cell, rowData, context.getReportContext( ) );
public static void handleOnCreate( CellContent content, IRowData rowData, ExecutionContext context ) { try { ReportItemDesign cellDesign = ( ReportItemDesign ) content .getGenerateBy( ); ICellInstance cell = new CellInstance( content, context ); if ( handleJS( cell, cellDesign.getOnCreate( ), context ).didRun( ) ) return; CellHandle handle = ( CellHandle ) cellDesign.getHandle( ); if ( handle != null ) { ICellEventHandler eh = ( ICellEventHandler ) getInstance( ( CellHandle ) cellDesign .getHandle( ) ); if ( eh != null ) eh.onCreate( cell, rowData, context.getReportContext( ) ); } } catch ( Exception e ) { log.log( Level.WARNING, e.getMessage( ), e ); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c0422a1db84842d1e332663c3d4c7e2a8109aca8/CellScriptExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/CellScriptExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 1398, 1684, 12, 8614, 1350, 913, 16, 467, 1999, 751, 24124, 16, 1082, 202, 3210, 1042, 819, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 4820, 1180, 15478, 2484, 15478, 273, 261, 8706, 1180, 15478, 262, 913, 6862, 202, 18, 588, 4625, 858, 12, 11272, 1082, 202, 2871, 1165, 1442, 2484, 273, 394, 8614, 1442, 12, 913, 16, 819, 11272, 1082, 202, 430, 261, 1640, 6479, 12, 2484, 16, 2484, 15478, 18, 588, 1398, 1684, 12, 262, 16, 819, 262, 18, 14044, 1997, 12, 262, 262, 9506, 202, 2463, 31, 1082, 202, 4020, 3259, 1640, 273, 261, 8614, 3259, 262, 2484, 15478, 18, 588, 3259, 12, 11272, 1082, 202, 430, 261, 1640, 480, 446, 262, 1082, 202, 95, 9506, 202, 2871, 1165, 16402, 20124, 273, 261, 467, 4020, 16402, 262, 3694, 12, 261, 8614, 3259, 262, 2484, 15478, 25083, 202, 18, 588, 3259, 12, 262, 11272, 9506, 202, 430, 261, 20124, 480, 446, 262, 6862, 202, 73, 76, 18, 265, 1684, 12, 2484, 16, 24124, 16, 819, 18, 588, 4820, 1042, 12, 262, 11272, 1082, 202, 97, 202, 202, 97, 1044, 261, 1185, 425, 262, 202, 202, 95, 1082, 202, 1330, 18, 1330, 12, 4557, 18, 9511, 16, 425, 18, 24906, 12, 262, 16, 425, 11272, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 1398, 1684, 12, 8614, 1350, 913, 16, 467, 1999, 751, 24124, 16, 1082, 202, 3210, 1042, 819, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 4820, 1180, 15478, 2484, 15478, 273, 261, 8706, 1180, 15478, 262, 913, 6862, 202, 18, 588, 4625, 858, 12, 11272, 1082, 202, 2871, 1165, 1442, 2484, 273, 394, 8614, 1442, 12, 913, 16, 819, 11272, 1082, 202, 430, 261, 1640, 6479, 12, 2484, 16, 2484, 15478, 18, 588, 1398, 1684, 12, 262, 16, 819, 262, 18, 14044, 1997, 12, 262, 262, 9506, 202, 2463, 31, 1082, 202, 4020, 3259, 1640, 273, 261, 8614, 3259, 262, 2484, 15478, 18, 588, 3259, 12, 11272, 1082, 202, 430, 2 ]
BattleEndMessage msg = new BattleEndMessage(m_defender.getName() + " win"); bridge.sendMessage(msg, m_attacker); bridge.sendMessage(msg, m_defender);
getDisplay(bridge).battleEnd(m_battleID, m_defender.getName()+ " win");
private void defenderWins(IDelegateBridge bridge) { BattleEndMessage msg = new BattleEndMessage(m_defender.getName() + " win"); bridge.sendMessage(msg, m_attacker); bridge.sendMessage(msg, m_defender); bridge.getHistoryWriter() .addChildToEvent(m_defender.getName() + " win"); showCasualties(bridge); checkDefendingPlanesCanLand(bridge, m_defender); }
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/94dcbc456ee416c732facb9e512450d43ee98531/MustFightBattle.java/buggy/src/games/strategy/triplea/delegate/MustFightBattle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1652, 2345, 59, 2679, 12, 734, 292, 4784, 13691, 10105, 13, 565, 288, 3639, 605, 4558, 298, 1638, 1079, 1234, 273, 394, 605, 4558, 298, 1638, 1079, 12, 81, 67, 536, 2345, 18, 17994, 1435, 7734, 397, 315, 5657, 8863, 3639, 10105, 18, 4661, 1079, 12, 3576, 16, 312, 67, 4558, 484, 264, 1769, 3639, 10105, 18, 4661, 1079, 12, 3576, 16, 312, 67, 536, 2345, 1769, 3639, 10105, 18, 588, 5623, 2289, 1435, 7734, 263, 1289, 1763, 774, 1133, 12, 81, 67, 536, 2345, 18, 17994, 1435, 397, 315, 5657, 8863, 3639, 2405, 39, 345, 1462, 88, 606, 12, 18337, 1769, 3639, 866, 3262, 2846, 5365, 281, 2568, 29398, 12, 18337, 16, 312, 67, 536, 2345, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1652, 2345, 59, 2679, 12, 734, 292, 4784, 13691, 10105, 13, 565, 288, 3639, 605, 4558, 298, 1638, 1079, 1234, 273, 394, 605, 4558, 298, 1638, 1079, 12, 81, 67, 536, 2345, 18, 17994, 1435, 7734, 397, 315, 5657, 8863, 3639, 10105, 18, 4661, 1079, 12, 3576, 16, 312, 67, 4558, 484, 264, 1769, 3639, 10105, 18, 4661, 1079, 12, 3576, 16, 312, 67, 536, 2345, 1769, 3639, 10105, 18, 588, 5623, 2289, 1435, 7734, 263, 1289, 1763, 774, 1133, 12, 81, 67, 536, 2345, 18, 17994, 1435, 397, 315, 5657, 8863, 3639, 2405, 39, 345, 1462, 88, 606, 12, 18337, 1769, 3639, 866, 3262, 2846, 5365, 281, 2568, 29398, 12, 18337, 16, 312, 67, 536, 2 ]
}
}
public boolean isCellEditable(int row,int col) { if (col == 0) return true; else return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6a23de0d5ab12f72eb326ce880d79c3f8f62a42f/XTFRFile.java/buggy/tn5250j/src/org/tn5250j/tools/XTFRFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 1250, 353, 4020, 15470, 12, 474, 1027, 16, 474, 645, 13, 288, 540, 309, 261, 1293, 422, 374, 13, 5411, 327, 638, 31, 540, 469, 5411, 327, 629, 31, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 1250, 353, 4020, 15470, 12, 474, 1027, 16, 474, 645, 13, 288, 540, 309, 261, 1293, 422, 374, 13, 5411, 327, 638, 31, 540, 469, 5411, 327, 629, 31, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
VFSManager.error(browser,"vfs.browser.mkdir-error",args);
VFSManager.error(browser,path1,"ioerror.mkdir-error",null);
private void mkdir() { try { setAbortable(true); String[] args = { path1 }; setStatus(jEdit.getProperty("vfs.status.mkdir",args)); try { path1 = vfs._canonPath(session,path1,browser); if(!vfs._mkdir(session,path1,browser)) VFSManager.error(browser,"vfs.browser.mkdir-error",args); } catch(IOException io) { args[0] = io.toString(); VFSManager.error(browser,"ioerror",args); } } catch(WorkThread.Abort a) { } finally { try { vfs._endVFSSession(session,browser); } catch(IOException io) { String[] args = { io.toString() }; VFSManager.error(browser,"ioerror",args); } } } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/b20a306d85153e340b55107bf8a75f3d1c48f5bb/BrowserIORequest.java/clean/org/gjt/sp/jedit/browser/BrowserIORequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6535, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 542, 13572, 429, 12, 3767, 1769, 1082, 202, 780, 8526, 833, 273, 288, 589, 21, 289, 31, 1082, 202, 542, 1482, 12, 78, 4666, 18, 588, 1396, 2932, 90, 2556, 18, 2327, 18, 26686, 3113, 1968, 10019, 1082, 202, 698, 1082, 202, 95, 9506, 202, 803, 21, 273, 20682, 6315, 4169, 265, 743, 12, 3184, 16, 803, 21, 16, 11213, 1769, 9506, 202, 430, 12, 5, 90, 2556, 6315, 26686, 12, 3184, 16, 803, 21, 16, 11213, 3719, 6862, 202, 58, 4931, 1318, 18, 1636, 12, 11213, 10837, 90, 2556, 18, 11213, 18, 26686, 17, 1636, 3113, 1968, 1769, 1082, 202, 97, 1082, 202, 14683, 12, 14106, 2527, 13, 1082, 202, 95, 9506, 202, 1968, 63, 20, 65, 273, 2527, 18, 10492, 5621, 9506, 202, 58, 4931, 1318, 18, 1636, 12, 11213, 10837, 1594, 1636, 3113, 1968, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 14683, 12, 2421, 3830, 18, 13572, 279, 13, 202, 202, 95, 202, 202, 97, 202, 202, 23417, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 90, 2556, 6315, 409, 58, 42, 1260, 893, 12, 3184, 16, 11213, 1769, 1082, 202, 97, 1082, 202, 14683, 12, 14106, 2527, 13, 1082, 202, 95, 9506, 202, 780, 8526, 833, 273, 288, 2527, 18, 10492, 1435, 289, 31, 9506, 202, 58, 4931, 1318, 18, 1636, 12, 11213, 10837, 1594, 1636, 3113, 1968, 1769, 1082, 202, 97, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6535, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 542, 13572, 429, 12, 3767, 1769, 1082, 202, 780, 8526, 833, 273, 288, 589, 21, 289, 31, 1082, 202, 542, 1482, 12, 78, 4666, 18, 588, 1396, 2932, 90, 2556, 18, 2327, 18, 26686, 3113, 1968, 10019, 1082, 202, 698, 1082, 202, 95, 9506, 202, 803, 21, 273, 20682, 6315, 4169, 265, 743, 12, 3184, 16, 803, 21, 16, 11213, 1769, 9506, 202, 430, 12, 5, 90, 2556, 6315, 26686, 12, 3184, 16, 803, 21, 16, 11213, 3719, 6862, 202, 58, 4931, 1318, 18, 1636, 12, 11213, 10837, 90, 2556, 18, 11213, 18, 26686, 17, 1636, 3113, 1968, 1769, 1082, 202, 97, 1082, 2 ]
SchemaGrammar grammar = findSchemaGrammar( XSDDescription.CONTEXT_ATTRIBUTE , fTempQName.uri , element , fTempQName , attributes);
SchemaGrammar grammar = findSchemaGrammar( XSDDescription.CONTEXT_ATTRIBUTE , fTempQName.uri , element , fTempQName , attributes);
void processAttributes(QName element, XMLAttributes attributes, XSAttributeGroupDecl attrGrp) { // REVISIT: should we assume that XMLAttributeImpl removes // all augmentations from Augmentations? if yes.. we loose objects // if no - we always produce attribute psvi objects which may not be filled in // in this case we need to create/reset here all objects Augmentations augs = null; AttributePSVImpl attrPSVI = null; for (int k=0;k<attributes.getLength();k++) { augs = attributes.getAugmentations(k); attrPSVI = (AttributePSVImpl) augs.getItem(Constants.ATTRIBUTE_PSVI); if (attrPSVI != null) { attrPSVI.reset(); } else { attrPSVI= new AttributePSVImpl(); augs.putItem(Constants.ATTRIBUTE_PSVI, attrPSVI); } // PSVI attribute: validation context attrPSVI.fValidationContext = element.rawname; } // add default attributes if (attrGrp != null) { addDefaultAttributes(element, attributes, attrGrp); } // if we don't do validation, we don't need to validate the attributes if (!fDoValidation){ // PSVI: validity is unknown, and validation attempted is none // this is a default value thus we should not set anything else here. return; } // Element Locally Valid (Type) // 3.1.1 The element information item's [attributes] must be empty, excepting those // whose [namespace name] is identical to http://www.w3.org/2001/XMLSchema-instance and // whose [local name] is one of type, nil, schemaLocation or noNamespaceSchemaLocation. if (fCurrentType == null || fCurrentType.getXSType() == XSTypeDecl.SIMPLE_TYPE) { int attCount = attributes.getLength(); // REVISIT: what should be PSVI info for those? for (int index = 0; index < attCount; index++) { attributes.getName(index, fTempQName); // get attribute PSVI attrPSVI = (AttributePSVImpl)attributes.getAugmentations(index).getItem(Constants.ATTRIBUTE_PSVI); // PSVI: validation attempted, validity attrPSVI.fValidationAttempted = AttributePSVI.FULL_VALIDATION; attrPSVI.fValidity = AttributePSVI.VALID_VALIDITY; // PSVI: normalized value is equal to the one supplied by xmlattributes attrPSVI.fNormalizedValue = attributes.getValue(index); if (fTempQName.uri == URI_XSI) { if (fTempQName.localpart != XSI_SCHEMALOCATION && fTempQName.localpart != XSI_NONAMESPACESCHEMALOCATION && fTempQName.localpart != XSI_NIL && fTempQName.localpart != XSI_TYPE) { // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-type.3.1.1"); reportSchemaError("cvc-type.3.1.1", new Object[]{element.rawname}); } } else if (fTempQName.rawname != XMLNS && !fTempQName.rawname.startsWith("xmlns:")) { // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-type.3.1.1"); reportSchemaError("cvc-type.3.1.1", new Object[]{element.rawname}); } } return; } XSAttributeUse attrUses[] = attrGrp.getAttributeUses(); int useCount = attrUses.length; XSWildcardDecl attrWildcard = attrGrp.fAttributeWC; // whether we have seen a Wildcard ID. String wildcardIDName = null; // for each present attribute int attCount = attributes.getLength(); // Element Locally Valid (Complex Type) // 3 For each attribute information item in the element information item's [attributes] excepting those whose [namespace name] is identical to http://www.w3.org/2001/XMLSchema-instance and whose [local name] is one of type, nil, schemaLocation or noNamespaceSchemaLocation, the appropriate case among the following must be true: // get the corresponding attribute decl for (int index = 0; index < attCount; index++) { // get attribute PSVI attrPSVI = (AttributePSVImpl)attributes.getAugmentations(index).getItem(Constants.ATTRIBUTE_PSVI); // PSVI: set Attribute valid and attempted validation to full. attrPSVI.fValidationAttempted = AttributePSVI.FULL_VALIDATION; attrPSVI.fValidity = AttributePSVI.VALID_VALIDITY; // PSVI: normalized value is equal to the one supplied by xmlattributes // need to fill in for xsi: attributes attrPSVI.fNormalizedValue = attributes.getValue(index); attributes.getName(index, fTempQName); // if it's from xsi namespace, it must be one of the four if (fTempQName.uri == URI_XSI) { if (fTempQName.localpart == XSI_SCHEMALOCATION || fTempQName.localpart == XSI_NONAMESPACESCHEMALOCATION || fTempQName.localpart == XSI_NIL || fTempQName.localpart == XSI_TYPE) { continue; } } else if (fTempQName.rawname == XMLNS || fTempQName.rawname.startsWith("xmlns:")) { continue; } // it's not xmlns, and not xsi, then we need to find a decl for it XSAttributeUse currUse = null; for (int i = 0; i < useCount; i++) { if (attrUses[i].fAttrDecl.fName == fTempQName.localpart && attrUses[i].fAttrDecl.fTargetNamespace == fTempQName.uri) { currUse = attrUses[i]; break; } } // 3.2 otherwise all of the following must be true: // 3.2.1 There must be an {attribute wildcard}. // 3.2.2 The attribute information item must be valid with respect to it as defined in Item Valid (Wildcard) (3.10.4). // if failed, get it from wildcard if (currUse == null) { //if (attrWildcard == null) // reportSchemaError("cvc-complex-type.3.2.1", new Object[]{element.rawname, fTempQName.rawname}); if (attrWildcard == null || !attrWildcard.allowNamespace(fTempQName.uri)) { // so this attribute is not allowed reportSchemaError("cvc-complex-type.3.2.2", new Object[]{element.rawname, fTempQName.rawname}); // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-complex-type.3.2.2"); continue; } } XSAttributeDecl currDecl = null; if (currUse != null) { currDecl = currUse.fAttrDecl; } else { // which means it matches a wildcard // skip it if processContents is skip if (attrWildcard.fProcessContents == XSWildcardDecl.WILDCARD_SKIP) continue; //try to find grammar by different means... SchemaGrammar grammar = findSchemaGrammar( XSDDescription.CONTEXT_ATTRIBUTE , fTempQName.uri , element , fTempQName , attributes); if (grammar != null){ currDecl = grammar.getGlobalAttributeDecl(fTempQName.localpart); } // if can't find if (currDecl == null) { // if strict, report error if (attrWildcard.fProcessContents == XSWildcardDecl.WILDCARD_STRICT){ reportSchemaError("cvc-complex-type.3.2.2", new Object[]{element.rawname, fTempQName.rawname}); // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-complex-type.3.2.2"); } // then continue to the next attribute continue; } else { // 5 Let [Definition:] the wild IDs be the set of all attribute information item to which clause 3.2 applied and whose validation resulted in a context-determined declaration of mustFind or no context-determined declaration at all, and whose [local name] and [namespace name] resolve (as defined by QName resolution (Instance) (3.15.4)) to an attribute declaration whose {type definition} is or is derived from ID. Then all of the following must be true: // 5.1 There must be no more than one item in wild IDs. if (currDecl.fType.getXSType() == XSTypeDecl.SIMPLE_TYPE && ((XSSimpleType)currDecl.fType).isIDType()) { if (wildcardIDName != null){ reportSchemaError("cvc-complex-type.5.1", new Object[]{element.rawname, currDecl.fName, wildcardIDName}); // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-complex-type.5.1"); } else wildcardIDName = currDecl.fName; } } } // Attribute Locally Valid // For an attribute information item to be locally valid with respect to an attribute declaration all of the following must be true: // 1 The declaration must not be absent (see Missing Sub-components (5.3) for how this can fail to be the case). // 2 Its {type definition} must not be absent. // 3 The item's normalized value must be locally valid with respect to that {type definition} as per String Valid (3.14.4). // get simple type XSSimpleType attDV = currDecl.fType; // PSVI: attribute declaration attrPSVI.fDeclaration = currDecl; // PSVI: attribute type attrPSVI.fTypeDecl = attDV; // PSVI: validation attempted: attrPSVI.fValidationAttempted = AttributePSVI.FULL_VALIDATION; // needed to update type for DOM Parser to implement getElementById if (attributes.getType(index).equals("CDATA")) { String type = (currDecl.fType.isIDType())?"ID":"CDATA"; attributes.setType(index, type); } // get attribute value String attrValue = attributes.getValue(index); Object actualValue = null; try { actualValue = attDV.validate(attrValue, fValidationState, fValidatedInfo); // PSVI: attribute normalized value attrPSVI.fNormalizedValue = fValidatedInfo.normalizedValue; // PSVI: attribute memberType attrPSVI.fMemberType = fValidatedInfo.memberType; // PSVI: element notation if (attDV.getVariety() == XSSimpleType.VARIETY_ATOMIC && ((XSAtomicSimpleType)attDV).getPrimitiveKind() == XSAtomicSimpleType.PRIMITIVE_NOTATION){ QName qName = (QName)actualValue; SchemaGrammar grammar = fGrammarBucket.getGrammar(qName.uri); //REVISIT: is it possible for the notation to be in different namespace than the attribute //with which it is associated, CHECK !! <fof n1:att1 = "n2:notation1" ..> // should we give chance to the application to be able to retrieve a grammar - nb //REVISIT: what would be the triggering component here.. if it is attribute value that // triggered the loading of grammar ?? -nb if (grammar != null) fCurrentPSVI.fNotation = grammar.getNotationDecl(qName.localpart); } } catch (InvalidDatatypeValueException idve) { // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-attribute.3"); reportSchemaError("cvc-attribute.3", new Object[]{element.rawname, fTempQName.rawname, attrValue}); } // get the value constraint from use or decl // 4 The item's actual value must match the value of the {value constraint}, if it is present and fixed. // now check the value against the simpleType if (actualValue != null && currDecl.getConstraintType() == XSAttributeDecl.FIXED_VALUE) { if (!attDV.isEqual(actualValue, currDecl.fDefault.actualValue)){ // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-attribute.4"); reportSchemaError("cvc-attribute.4", new Object[]{element.rawname, fTempQName.rawname, attrValue}); } } // 3.1 If there is among the {attribute uses} an attribute use with an {attribute declaration} whose {name} matches the attribute information item's [local name] and whose {target namespace} is identical to the attribute information item's [namespace name] (where an absent {target namespace} is taken to be identical to a [namespace name] with no value), then the attribute information must be valid with respect to that attribute use as per Attribute Locally Valid (Use) (3.5.4). In this case the {attribute declaration} of that attribute use is the context-determined declaration for the attribute information item with respect to Schema-Validity Assessment (Attribute) (3.2.4) and Assessment Outcome (Attribute) (3.2.5). if (actualValue != null && currUse != null && currUse.fConstraintType == XSAttributeDecl.FIXED_VALUE) { if (!attDV.isEqual(actualValue, currUse.fDefault.actualValue)){ // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-complex-type.3.1"); reportSchemaError("cvc-complex-type.3.1", new Object[]{element.rawname, fTempQName.rawname, attrValue}); } } } // end of for (all attributes) // 5.2 If wild IDs is non-empty, there must not be any attribute uses among the {attribute uses} whose {attribute declaration}'s {type definition} is or is derived from ID. if (attrGrp.fIDAttrName != null && wildcardIDName != null){ // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-complex-type.3.1"); reportSchemaError("cvc-complex-type.5.2", new Object[]{element.rawname, wildcardIDName, attrGrp.fIDAttrName}); } } //processAttributes
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/cf8fca03a702621ccd014c61dde15932b0f3b075/XMLSchemaValidator.java/clean/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1207, 2498, 12, 13688, 930, 16, 3167, 2498, 1677, 16, 1139, 55, 1499, 1114, 3456, 1604, 43, 13832, 13, 288, 3639, 368, 2438, 26780, 1285, 30, 1410, 732, 6750, 716, 3167, 1499, 2828, 7157, 3639, 368, 1850, 777, 18260, 1012, 628, 432, 14870, 1012, 35, 309, 12465, 838, 732, 28393, 2184, 3639, 368, 540, 309, 1158, 300, 732, 3712, 11402, 1566, 4250, 522, 2184, 1492, 2026, 486, 506, 6300, 316, 3639, 368, 540, 316, 333, 648, 732, 1608, 358, 752, 19, 6208, 2674, 777, 2184, 3639, 432, 14870, 1012, 279, 9024, 273, 446, 31, 3639, 3601, 5857, 58, 2828, 1604, 5857, 4136, 273, 446, 31, 3639, 364, 261, 474, 417, 33, 20, 31, 79, 32, 4350, 18, 588, 1782, 5621, 79, 27245, 288, 5411, 279, 9024, 273, 1677, 18, 588, 37, 14870, 1012, 12, 79, 1769, 5411, 1604, 5857, 4136, 273, 261, 1499, 5857, 58, 2828, 13, 279, 9024, 18, 588, 1180, 12, 2918, 18, 11616, 67, 5857, 4136, 1769, 5411, 309, 261, 1747, 5857, 4136, 480, 446, 13, 288, 7734, 1604, 5857, 4136, 18, 6208, 5621, 5411, 289, 469, 288, 7734, 1604, 5857, 4136, 33, 394, 3601, 5857, 58, 2828, 5621, 7734, 279, 9024, 18, 458, 1180, 12, 2918, 18, 11616, 67, 5857, 4136, 16, 1604, 5857, 4136, 1769, 5411, 289, 5411, 368, 26320, 4136, 1566, 30, 3379, 819, 5411, 1604, 5857, 4136, 18, 74, 4354, 1042, 273, 930, 18, 1899, 529, 31, 3639, 289, 3639, 368, 527, 805, 1677, 3639, 309, 261, 1747, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1207, 2498, 12, 13688, 930, 16, 3167, 2498, 1677, 16, 1139, 55, 1499, 1114, 3456, 1604, 43, 13832, 13, 288, 3639, 368, 2438, 26780, 1285, 30, 1410, 732, 6750, 716, 3167, 1499, 2828, 7157, 3639, 368, 1850, 777, 18260, 1012, 628, 432, 14870, 1012, 35, 309, 12465, 838, 732, 28393, 2184, 3639, 368, 540, 309, 1158, 300, 732, 3712, 11402, 1566, 4250, 522, 2184, 1492, 2026, 486, 506, 6300, 316, 3639, 368, 540, 316, 333, 648, 732, 1608, 358, 752, 19, 6208, 2674, 777, 2184, 3639, 432, 14870, 1012, 279, 9024, 273, 446, 31, 3639, 3601, 5857, 58, 2828, 1604, 5857, 4136, 273, 446, 31, 3639, 364, 261, 474, 417, 33, 20, 31, 79, 32, 4350, 18, 2 ]
public void opt_eol() throws RecognitionException { try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:82:17: ( ( EOL )* ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:82:17: ( EOL )* { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:82:17: ( EOL )* loop1: do { int alt1=2; int LA1_0 = input.LA(1); if ( LA1_0==EOL ) { alt1=1; } switch (alt1) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:82:17: EOL { match(input,EOL,FOLLOW_EOL_in_opt_eol40); } break; default : break loop1; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/61acd40072560afada3f7897673309e5b51b402d/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2153, 67, 30951, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 11149, 30, 4033, 30, 261, 261, 19995, 8618, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 11149, 30, 4033, 30, 261, 19995, 8618, 5411, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 11149, 30, 4033, 30, 261, 19995, 8618, 5411, 2798, 21, 30, 5411, 741, 288, 7734, 509, 3770, 21, 33, 22, 31, 7734, 509, 2928, 21, 67, 20, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 21, 67, 20, 631, 5842, 262, 288, 10792, 3770, 21, 33, 21, 31, 7734, 289, 7734, 1620, 261, 2390, 21, 13, 288, 2398, 202, 3593, 404, 294, 2398, 202, 565, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 11149, 30, 4033, 30, 19995, 2398, 202, 565, 288, 2398, 202, 565, 845, 12, 2630, 16, 5842, 16, 29890, 67, 5842, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2153, 67, 30951, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 11149, 30, 4033, 30, 261, 261, 19995, 8618, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 11149, 30, 4033, 30, 261, 19995, 8618, 5411, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 2 ]
assertEquals( IntersectionType.MIN_LITERAL, IntersectionType.get("Min") ); assertEquals( IntersectionType.MAX_LITERAL, IntersectionType.get("Max") ); assertEquals( IntersectionType.VALUE_LITERAL, IntersectionType.get("Value") ); assertNull(IntersectionType.get("No Match") );
assertEquals( IntersectionType.MIN_LITERAL, IntersectionType.get("Min") ); assertEquals( IntersectionType.MAX_LITERAL, IntersectionType.get("Max") ); assertEquals( IntersectionType.VALUE_LITERAL, IntersectionType.get("Value") ); assertNull(IntersectionType.get("No Match") );
public void testGet() { assertEquals( IntersectionType.MIN_LITERAL, IntersectionType.get(IntersectionType.MIN) ); assertEquals( IntersectionType.MAX_LITERAL, IntersectionType.get(IntersectionType.MAX) ); assertEquals( IntersectionType.VALUE_LITERAL, IntersectionType.get(2) ); assertNull(IntersectionType.get("3") ); assertEquals( IntersectionType.MIN_LITERAL, IntersectionType.get("Min") ); assertEquals( IntersectionType.MAX_LITERAL, IntersectionType.get("Max") ); assertEquals( IntersectionType.VALUE_LITERAL, IntersectionType.get("Value") ); assertNull(IntersectionType.get("No Match") ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e757044daa53d502ecf969354d3f5ec94aa76fd1/IntersectionTypeTest.java/clean/chart/org.eclipse.birt.chart.tests/src/org/eclipse/birt/chart/tests/engine/model/attribute/IntersectionTypeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1435, 225, 202, 95, 202, 202, 11231, 8867, 12, 5294, 3464, 559, 18, 6236, 67, 23225, 16, 5294, 3464, 559, 18, 588, 12, 23634, 559, 18, 6236, 13, 11272, 202, 202, 11231, 8867, 12, 5294, 3464, 559, 18, 6694, 67, 23225, 16, 5294, 3464, 559, 18, 588, 12, 23634, 559, 18, 6694, 13, 11272, 202, 202, 11231, 8867, 12, 5294, 3464, 559, 18, 4051, 67, 23225, 16, 5294, 3464, 559, 18, 588, 12, 22, 13, 11272, 202, 202, 11231, 2041, 12, 23634, 559, 18, 588, 2932, 23, 7923, 11272, 9506, 202, 11231, 8867, 12, 5294, 3464, 559, 18, 6236, 67, 23225, 16, 5294, 3464, 559, 18, 588, 2932, 2930, 7923, 11272, 202, 202, 11231, 8867, 12, 5294, 3464, 559, 18, 6694, 67, 23225, 16, 5294, 3464, 559, 18, 588, 2932, 2747, 7923, 11272, 202, 202, 11231, 8867, 12, 5294, 3464, 559, 18, 4051, 67, 23225, 16, 5294, 3464, 559, 18, 588, 2932, 620, 7923, 11272, 202, 202, 11231, 2041, 12, 23634, 559, 18, 588, 2932, 2279, 4639, 7923, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1435, 225, 202, 95, 202, 202, 11231, 8867, 12, 5294, 3464, 559, 18, 6236, 67, 23225, 16, 5294, 3464, 559, 18, 588, 12, 23634, 559, 18, 6236, 13, 11272, 202, 202, 11231, 8867, 12, 5294, 3464, 559, 18, 6694, 67, 23225, 16, 5294, 3464, 559, 18, 588, 12, 23634, 559, 18, 6694, 13, 11272, 202, 202, 11231, 8867, 12, 5294, 3464, 559, 18, 4051, 67, 23225, 16, 5294, 3464, 559, 18, 588, 12, 22, 13, 11272, 202, 202, 11231, 2041, 12, 23634, 559, 18, 588, 2932, 23, 7923, 11272, 9506, 202, 11231, 8867, 12, 5294, 3464, 559, 18, 6236, 67, 23225, 16, 5294, 3464, 559, 18, 588, 2932, 2930, 7923, 11272, 202, 202, 2 ]
index.acquireWriteLock(1); try { codeReaderFactory.clearMacroAttachements();
if (pm.isCanceled()) { return; } codeReaderFactory.clearMacroAttachements();
protected void doParseTU(ITranslationUnit tu) throws CoreException, InterruptedException { IPath path = tu.getLocation(); if (path == null) { return; } ILanguage language = tu.getLanguage(); if (language == null) return; // skip if no scanner info IScannerInfo scanner= tu.getScannerInfo(getIndexAllFiles()); if (scanner == null) { return; } CodeReader codeReader = tu.getCodeReader(); if (codeReader == null) { return; } index.acquireReadLock(); try { // get the AST in a "Fast" way IASTTranslationUnit ast= language.getASTTranslationUnit(codeReader, scanner, codeReaderFactory, index); index.acquireWriteLock(1); try { // Clear the macros codeReaderFactory.clearMacroAttachements(); // Add the new symbols addSymbols(ast); } finally { index.releaseWriteLock(1); } } finally { index.releaseReadLock(); } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/2d8f966f3b06d96391a0bfd91b2bae084e95bcda/PDOMFastIndexerJob.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/fast/PDOMFastIndexerJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 741, 3201, 56, 57, 12, 45, 6717, 2802, 28325, 13, 1216, 30015, 16, 7558, 288, 202, 202, 45, 743, 589, 273, 28325, 18, 588, 2735, 5621, 202, 202, 430, 261, 803, 422, 446, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2627, 1701, 2653, 273, 28325, 18, 588, 3779, 5621, 202, 202, 430, 261, 4923, 422, 446, 13, 1082, 202, 2463, 31, 1082, 202, 759, 2488, 309, 1158, 7683, 1123, 202, 202, 45, 11338, 966, 7683, 33, 28325, 18, 588, 11338, 966, 12, 588, 1016, 1595, 2697, 10663, 202, 202, 430, 261, 26842, 422, 446, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 1085, 2514, 981, 2514, 273, 28325, 18, 588, 1085, 2514, 5621, 202, 202, 430, 261, 710, 2514, 422, 446, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 1615, 18, 1077, 1039, 1994, 2531, 5621, 202, 202, 698, 288, 1082, 202, 759, 336, 326, 9183, 316, 279, 315, 12305, 6, 4031, 1082, 202, 45, 9053, 6717, 2802, 3364, 33, 2653, 18, 588, 9053, 6717, 2802, 12, 710, 2514, 16, 7683, 16, 981, 2514, 1733, 16, 770, 1769, 1082, 202, 1615, 18, 1077, 1039, 3067, 2531, 12, 21, 1769, 1082, 202, 698, 288, 9506, 202, 759, 10121, 326, 24302, 9506, 202, 710, 2514, 1733, 18, 8507, 17392, 4761, 17110, 5621, 6862, 9506, 202, 759, 1436, 326, 394, 7963, 9506, 202, 1289, 14821, 12, 689, 1769, 1082, 202, 97, 3095, 288, 9506, 202, 1615, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 741, 3201, 56, 57, 12, 45, 6717, 2802, 28325, 13, 1216, 30015, 16, 7558, 288, 202, 202, 45, 743, 589, 273, 28325, 18, 588, 2735, 5621, 202, 202, 430, 261, 803, 422, 446, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2627, 1701, 2653, 273, 28325, 18, 588, 3779, 5621, 202, 202, 430, 261, 4923, 422, 446, 13, 1082, 202, 2463, 31, 1082, 202, 759, 2488, 309, 1158, 7683, 1123, 202, 202, 45, 11338, 966, 7683, 33, 28325, 18, 588, 11338, 966, 12, 588, 1016, 1595, 2697, 10663, 202, 202, 430, 261, 26842, 422, 446, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 1085, 2514, 981, 2514, 273, 28325, 2 ]
org.wings.plaf.Utils.write(device, button.getURL());
Utils.write(device, button.getURL());
public void writeContent(final Device device, final SComponent component) throws IOException { final SClickable button = (SClickable) component; if (button.getShowAsFormComponent()) { device.print("<button name=\""); Utils.write(device, button.getEventTarget().getEncodedLowLevelEventId()); device.print("\" value=\""); Utils.write(device, button.getEvent()); device.print("\""); org.wings.plaf.Utils.optAttribute(device, "tabindex", button.getFocusTraversalIndex()); } else { device.print("<a href=\""); org.wings.plaf.Utils.write(device, button.getURL()); device.print("\""); } if (!button.isEnabled()) device.print(" disabled=\"true\""); Utils.writeEvents(device, button); device.print(">"); final String text = button.getText(); final SIcon icon = getIcon(button); if (icon == null && text != null) writeText(device, text); else if (icon != null && text == null) writeIcon(device, icon); else if (icon != null && text != null) { new IconTextCompound() { protected void text(Device d) throws IOException { writeText(d, text); } protected void icon(Device d) throws IOException { writeIcon(d, icon); } }.writeCompound(device, component, button.getHorizontalTextPosition(), button.getVerticalTextPosition()); } if (button.getShowAsFormComponent()) device.print("</button>"); else device.print("</a>"); }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/a13e1e051952689f51f8e2bee7381d6e03645ee4/ClickableCG.java/clean/wings2/src/java/org/wings/plaf/css/ClickableCG.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 1350, 12, 6385, 6077, 2346, 16, 727, 348, 1841, 1794, 13, 5411, 1216, 1860, 288, 3639, 727, 348, 6563, 429, 3568, 273, 261, 55, 6563, 429, 13, 1794, 31, 3639, 309, 261, 5391, 18, 588, 5706, 1463, 1204, 1841, 10756, 288, 5411, 2346, 18, 1188, 2932, 32, 5391, 508, 5189, 8863, 5411, 6091, 18, 2626, 12, 5964, 16, 3568, 18, 588, 1133, 2326, 7675, 588, 10397, 10520, 2355, 21973, 10663, 5411, 2346, 18, 1188, 2932, 2412, 460, 5189, 8863, 5411, 6091, 18, 2626, 12, 5964, 16, 3568, 18, 588, 1133, 10663, 5411, 2346, 18, 1188, 2932, 8530, 1769, 5411, 2358, 18, 91, 899, 18, 412, 1727, 18, 1989, 18, 3838, 1499, 12, 5964, 16, 315, 7032, 1615, 3113, 3568, 18, 588, 9233, 25087, 1016, 10663, 3639, 289, 469, 288, 5411, 2346, 18, 1188, 2932, 32, 69, 3897, 5189, 8863, 5411, 6091, 18, 2626, 12, 5964, 16, 3568, 18, 588, 1785, 10663, 5411, 2346, 18, 1188, 2932, 8530, 1769, 3639, 289, 3639, 309, 16051, 5391, 18, 291, 1526, 10756, 5411, 2346, 18, 1188, 2932, 5673, 5189, 3767, 8530, 1769, 3639, 6091, 18, 2626, 3783, 12, 5964, 16, 3568, 1769, 3639, 2346, 18, 1188, 2932, 2984, 1769, 3639, 727, 514, 977, 273, 3568, 18, 588, 1528, 5621, 3639, 727, 348, 5554, 4126, 273, 21724, 12, 5391, 1769, 3639, 309, 261, 3950, 422, 446, 597, 977, 480, 446, 13, 5411, 1045, 1528, 12, 5964, 16, 977, 1769, 3639, 469, 309, 261, 3950, 480, 446, 597, 977, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 1350, 12, 6385, 6077, 2346, 16, 727, 348, 1841, 1794, 13, 5411, 1216, 1860, 288, 3639, 727, 348, 6563, 429, 3568, 273, 261, 55, 6563, 429, 13, 1794, 31, 3639, 309, 261, 5391, 18, 588, 5706, 1463, 1204, 1841, 10756, 288, 5411, 2346, 18, 1188, 2932, 32, 5391, 508, 5189, 8863, 5411, 6091, 18, 2626, 12, 5964, 16, 3568, 18, 588, 1133, 2326, 7675, 588, 10397, 10520, 2355, 21973, 10663, 5411, 2346, 18, 1188, 2932, 2412, 460, 5189, 8863, 5411, 6091, 18, 2626, 12, 5964, 16, 3568, 18, 588, 1133, 10663, 5411, 2346, 18, 1188, 2932, 8530, 1769, 5411, 2358, 18, 91, 899, 18, 412, 1727, 18, 1989, 18, 3838, 1499, 12, 5964, 16, 315, 2 ]
private void draw_lines(float vertices[][], int max,
private void draw_lines(float vertices[][], int max,
private void draw_lines(float vertices[][], int max, int offset, int increment, int skip) { if (strokeWeight < 2) { for (int i = 0; i < max; i += increment) { if ((skip != 0) && (((i+offset) % skip) == 0)) continue; float a[] = vertices[i]; float b[] = vertices[i+offset]; line.reset(); line.setIntensities(a[SR], a[SG], a[SB], a[SA], b[SR], b[SG], b[SB], b[SA]); line.setVertices(a[X], a[Y], a[Z], b[X], b[Y], b[Z]); line.draw(); } } else { // use old line code for thickness > 1 if ((dimensions != 3) && unchangedZ) { if ((strokeWeight < TWO) && !lighting && !strokeChanged) { // need to set color at least once? // THIS PARTICULAR CASE SHOULD NO LONGER BE REACHABLE for (int i = 0; i < max; i += increment) { if ((skip != 0) && (((i+offset) % skip) == 0)) continue; thin_flat_line((int) vertices[i][X], (int) vertices[i][Y], (int) vertices[i+offset][X], (int) vertices[i+offset][Y]); } } else { for (int i = 0; i < max; i += increment) { if ((skip != 0) && (((i+offset) % skip) == 0)) continue; float v1[] = vertices[i]; float v2[] = vertices[i+offset]; thick_flat_line(v1[X], v1[Y], v1[SR], v1[SG], v1[SB], v1[SA], v2[X], v2[Y], v2[SR], v2[SG], v2[SB], v2[SA]); } } } else { for (int i = 0; i < max; i += increment) { if ((skip != 0) && (((i+offset) % skip) == 0)) continue; float v1[] = vertices[i]; float v2[] = vertices[i+offset]; spatial_line(v1[X], v1[Y], v1[Z], v1[SR], v1[SG], v1[SB], v2[X], v2[Y], v2[Z], v2[SR], v2[SG], v2[SB]); } } } }
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/d877999f6e97d3c619ae60b800d586ac00acf618/PGraphics.java/clean/core/PGraphics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3724, 67, 3548, 12, 5659, 6928, 63, 6362, 6487, 509, 943, 16, 21821, 509, 1384, 16, 509, 5504, 16, 509, 2488, 13, 288, 565, 309, 261, 16181, 6544, 411, 576, 13, 288, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 943, 31, 277, 1011, 5504, 13, 288, 3639, 309, 14015, 7457, 480, 374, 13, 597, 261, 12443, 77, 15, 3348, 13, 738, 2488, 13, 422, 374, 3719, 1324, 31, 3639, 1431, 279, 8526, 273, 6928, 63, 77, 15533, 3639, 1431, 324, 8526, 273, 6928, 63, 77, 15, 3348, 15533, 3639, 980, 18, 6208, 5621, 3639, 980, 18, 542, 1702, 21970, 12, 69, 63, 10090, 6487, 279, 63, 30820, 6487, 279, 63, 14541, 6487, 279, 63, 5233, 6487, 18701, 324, 63, 10090, 6487, 324, 63, 30820, 6487, 324, 63, 14541, 6487, 324, 63, 5233, 19226, 3639, 980, 18, 542, 13371, 12, 69, 63, 60, 6487, 279, 63, 61, 6487, 279, 63, 62, 6487, 7682, 324, 63, 60, 6487, 324, 63, 61, 6487, 324, 63, 62, 19226, 3639, 980, 18, 9446, 5621, 1377, 289, 565, 289, 469, 288, 225, 368, 999, 1592, 980, 981, 364, 27199, 405, 404, 1377, 309, 14015, 14797, 480, 890, 13, 597, 14827, 62, 13, 288, 3639, 309, 14015, 16181, 6544, 411, 24722, 51, 13, 597, 401, 5099, 310, 597, 401, 16181, 5033, 13, 288, 1850, 368, 1608, 358, 444, 2036, 622, 4520, 3647, 35, 1850, 368, 20676, 20814, 2871, 19545, 18403, 6122, 31090, 3741, 511, 673, 3101, 9722, 2438, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3724, 67, 3548, 12, 5659, 6928, 63, 6362, 6487, 509, 943, 16, 21821, 509, 1384, 16, 509, 5504, 16, 509, 2488, 13, 288, 565, 309, 261, 16181, 6544, 411, 576, 13, 288, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 943, 31, 277, 1011, 5504, 13, 288, 3639, 309, 14015, 7457, 480, 374, 13, 597, 261, 12443, 77, 15, 3348, 13, 738, 2488, 13, 422, 374, 3719, 1324, 31, 3639, 1431, 279, 8526, 273, 6928, 63, 77, 15533, 3639, 1431, 324, 8526, 273, 6928, 63, 77, 15, 3348, 15533, 3639, 980, 18, 6208, 5621, 3639, 980, 18, 542, 1702, 21970, 12, 69, 63, 10090, 6487, 279, 63, 30820, 6487, 279, 63, 14541, 6487, 279, 2 ]
for (int i=0; i<numberOfPolys; i++) {
for (int i = 0; i < numberOfPolys; i++) {
public void write(int tagID, EMFOutputStream emf) throws IOException { emf.writeRECTL(bounds); emf.writeDWORD(numberOfPolys); int c = 0; for (int i=0; i<numberOfPolys; i++) { c += numberOfPoints[i]; } emf.writeDWORD(c); for (int i=0; i<numberOfPolys; i++) { emf.writeDWORD(numberOfPoints[i]); } for (int i=0; i<numberOfPolys; i++) { emf.writePOINTS(numberOfPoints[i], points[i]); } }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/de061d5977b00047b242b52aea5bc47538b063c5/PolyPolygon16.java/clean/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/PolyPolygon16.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 12, 474, 1047, 734, 16, 7141, 42, 4632, 801, 74, 13, 1216, 1860, 288, 3639, 801, 74, 18, 2626, 4512, 48, 12, 10576, 1769, 3639, 801, 74, 18, 2626, 40, 7952, 12, 2696, 951, 5850, 1900, 1769, 3639, 509, 276, 273, 374, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 7922, 5850, 1900, 31, 277, 27245, 288, 5411, 276, 1011, 7922, 5636, 63, 77, 15533, 3639, 289, 3639, 801, 74, 18, 2626, 40, 7952, 12, 71, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 7922, 5850, 1900, 31, 277, 27245, 288, 5411, 801, 74, 18, 2626, 40, 7952, 12, 2696, 951, 5636, 63, 77, 19226, 3639, 289, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 7922, 5850, 1900, 31, 277, 27245, 288, 5411, 801, 74, 18, 2626, 8941, 55, 12, 2696, 951, 5636, 63, 77, 6487, 3143, 63, 77, 19226, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 12, 474, 1047, 734, 16, 7141, 42, 4632, 801, 74, 13, 1216, 1860, 288, 3639, 801, 74, 18, 2626, 4512, 48, 12, 10576, 1769, 3639, 801, 74, 18, 2626, 40, 7952, 12, 2696, 951, 5850, 1900, 1769, 3639, 509, 276, 273, 374, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 7922, 5850, 1900, 31, 277, 27245, 288, 5411, 276, 1011, 7922, 5636, 63, 77, 15533, 3639, 289, 3639, 801, 74, 18, 2626, 40, 7952, 12, 71, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 7922, 5850, 1900, 31, 277, 27245, 288, 5411, 801, 74, 18, 2626, 40, 7952, 12, 2696, 951, 5636, 63, 77, 19226, 3639, 289, 3639, 364, 2 ]
valueParam = m_tools.modifyParameter(valueParam, m_servletPrefix);
if (!m_tools.shouldReplaceUrl(m_url,valueParam)) { tempReplaceString = "$parameter$"; } else { valueParam = m_tools.modifyParameter(m_url, valueParam, m_servletPrefix); }
private boolean transformStartElement (Node node,int replaceBlock,int replaceTag) { String tempReplaceString,valueParam; /* remove complete block, interrupt recursion in printDocument */ if (m_tools.checkTag(node.getNodeName(),m_configuration.getRemoveBlocks())) { return true; } /* if tag has to be removed return, otherwise test other cases */ if (!m_tools.checkTag(node.getNodeName(),m_configuration.getRemoveTags())) { /* test if a block has to be replaced */ if (replaceBlock != -1) { m_blockObject = (CmsHtmlConverterObjectReplaceBlocks) m_configuration.getReplaceBlocks().get(replaceBlock); /* if a parameter is used, get it from node attribute value, insert it into replaceString */ tempReplaceString = m_blockObject.getReplaceString(); if (!m_blockObject.getParameter().equals("")) { valueParam = m_tools.scanNodeAttrs(node,m_blockObject.getParameter()); tempReplaceString = m_tools.replaceString(tempReplaceString,"$parameter$",valueParam); } m_tempString.append(tempReplaceString); /* remove temporary object from ArrayList replaceBlocks */ if (replaceBlock > (m_numberReplaceBlocks-1)) { m_configuration.removeObjectReplaceBlock(replaceBlock); } /* ignore child elements in block, interrupt recursion in printDocument */ return true; } else { /* test if actual element (start tag) has to be replaced */ if (replaceTag != -1) { m_tagObject = (CmsHtmlConverterObjectReplaceTags) m_configuration.getReplaceTags().get(replaceTag); tempReplaceString = m_tagObject.getReplaceStartTag(); /* if a parameter is used, get it from node attribute value, insert it into replaceString */ if (!m_tagObject.getParameter().equals("")) { valueParam = m_tools.scanNodeAttrs(node,m_tagObject.getParameter()); // HACK: only replace attribute value of parameter attribute! if (m_tagObject.getReplaceParamAttr()) { valueParam = m_tools.modifyParameter(valueParam, m_servletPrefix); tempReplaceString = m_tools.reconstructTag(tempReplaceString,node,m_tagObject.getParameter(),m_configuration.getQuotationmark()); } tempReplaceString = m_tools.replaceString(tempReplaceString,"$parameter$",valueParam); } m_tempString.append(tempReplaceString); } /* no replacement needed: append original element to output */ else { m_tempString.append("<"); m_tempString.append(node.getNodeName()); NamedNodeMap attrs = node.getAttributes(); for ( int i = attrs.getLength()-1; i >= 0 ; i-- ) { m_tempString.append(" " + attrs.item(i).getNodeName() + "=" + m_configuration.getQuotationmark()); /* scan attribute values and replace subStrings */ String helpString = m_tools.scanChar(attrs.item(i).getNodeValue() ,m_configuration.getReplaceExtendedChars()); helpString = m_tools.scanString(helpString,m_configuration.getReplaceStrings()); m_tempString.append(helpString + m_configuration.getQuotationmark()); } if (m_configuration.getXhtmlOutput() && m_tools.checkTag(node.getNodeName(),m_configuration.getInlineTags())) { m_tempString.append("/"); } m_tempString.append(">"); } } /* OPTION: Here I can add a "\n" after every starttag */ } return false; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/15631bd8423067dd0c5a5c96be16f93bef38faa2/CmsHtmlConverter.java/buggy/src/com/opencms/htmlconverter/CmsHtmlConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2510, 1685, 1046, 261, 907, 756, 16, 474, 1453, 1768, 16, 474, 1453, 1805, 13, 288, 3639, 514, 1906, 5729, 780, 16, 1132, 786, 31, 3639, 1748, 1206, 3912, 1203, 16, 13123, 13917, 316, 1172, 2519, 1195, 3639, 309, 261, 81, 67, 6642, 18, 1893, 1805, 12, 2159, 18, 588, 18948, 9334, 81, 67, 7025, 18, 588, 3288, 6450, 1435, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 1748, 309, 1047, 711, 358, 506, 3723, 327, 16, 3541, 1842, 1308, 6088, 1195, 3639, 309, 16051, 81, 67, 6642, 18, 1893, 1805, 12, 2159, 18, 588, 18948, 9334, 81, 67, 7025, 18, 588, 3288, 3453, 1435, 3719, 288, 5411, 1748, 1842, 309, 279, 1203, 711, 358, 506, 8089, 1195, 5411, 309, 261, 2079, 1768, 480, 300, 21, 13, 288, 7734, 312, 67, 2629, 921, 273, 261, 4747, 4353, 5072, 921, 5729, 6450, 13, 13491, 312, 67, 7025, 18, 588, 5729, 6450, 7675, 588, 12, 2079, 1768, 1769, 7734, 1748, 309, 279, 1569, 353, 1399, 16, 336, 518, 628, 756, 1566, 460, 16, 10402, 2243, 518, 1368, 1453, 780, 1195, 7734, 1906, 5729, 780, 273, 312, 67, 2629, 921, 18, 588, 5729, 780, 5621, 7734, 309, 16051, 81, 67, 2629, 921, 18, 588, 1662, 7675, 14963, 2932, 6, 3719, 288, 10792, 460, 786, 273, 312, 67, 6642, 18, 9871, 907, 8262, 12, 2159, 16, 81, 67, 2629, 921, 18, 588, 1662, 10663, 10792, 1906, 5729, 780, 273, 312, 67, 6642, 18, 2079, 780, 12, 5814, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2510, 1685, 1046, 261, 907, 756, 16, 474, 1453, 1768, 16, 474, 1453, 1805, 13, 288, 3639, 514, 1906, 5729, 780, 16, 1132, 786, 31, 3639, 1748, 1206, 3912, 1203, 16, 13123, 13917, 316, 1172, 2519, 1195, 3639, 309, 261, 81, 67, 6642, 18, 1893, 1805, 12, 2159, 18, 588, 18948, 9334, 81, 67, 7025, 18, 588, 3288, 6450, 1435, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 1748, 309, 1047, 711, 358, 506, 3723, 327, 16, 3541, 1842, 1308, 6088, 1195, 3639, 309, 16051, 81, 67, 6642, 18, 1893, 1805, 12, 2159, 18, 588, 18948, 9334, 81, 67, 7025, 18, 588, 3288, 3453, 1435, 3719, 288, 5411, 1748, 1842, 309, 279, 1203, 711, 358, 2 ]
case TypePackage.SCATTER_SERIES__LABEL : setLabel( (Label) newValue );
case TypePackage.SCATTER_SERIES__LABEL: setLabel((Label)newValue);
public void eSet( EStructuralFeature eFeature, Object newValue ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case TypePackage.SCATTER_SERIES__VISIBLE : setVisible( ( (Boolean) newValue ).booleanValue( ) ); return; case TypePackage.SCATTER_SERIES__LABEL : setLabel( (Label) newValue ); return; case TypePackage.SCATTER_SERIES__DATA_DEFINITION : getDataDefinition( ).clear( ); getDataDefinition( ).addAll( (Collection) newValue ); return; case TypePackage.SCATTER_SERIES__SERIES_IDENTIFIER : setSeriesIdentifier( (Object) newValue ); return; case TypePackage.SCATTER_SERIES__DATA_POINT : setDataPoint( (DataPoint) newValue ); return; case TypePackage.SCATTER_SERIES__DATA_SET : setDataSet( (DataSet) newValue ); return; case TypePackage.SCATTER_SERIES__LABEL_POSITION : setLabelPosition( (Position) newValue ); return; case TypePackage.SCATTER_SERIES__STACKED : setStacked( ( (Boolean) newValue ).booleanValue( ) ); return; case TypePackage.SCATTER_SERIES__TRIGGERS : getTriggers( ).clear( ); getTriggers( ).addAll( (Collection) newValue ); return; case TypePackage.SCATTER_SERIES__TRANSLUCENT : setTranslucent( ( (Boolean) newValue ).booleanValue( ) ); return; case TypePackage.SCATTER_SERIES__MARKER : setMarker( (Marker) newValue ); return; case TypePackage.SCATTER_SERIES__LINE_ATTRIBUTES : setLineAttributes( (LineAttributes) newValue ); return; case TypePackage.SCATTER_SERIES__CURVE : setCurve( ( (Boolean) newValue ).booleanValue( ) ); return; case TypePackage.SCATTER_SERIES__SHADOW_COLOR : setShadowColor( (ColorDefinition) newValue ); return; } eDynamicSet( eFeature, newValue ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/bdab78403751f288b76844a99f50b999c34fb491/ScatterSeriesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/ScatterSeriesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 512, 14372, 4595, 425, 4595, 16, 1033, 6129, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 1412, 2261, 18, 2312, 789, 2560, 67, 2123, 8805, 972, 29588, 294, 9506, 202, 542, 6207, 12, 261, 261, 5507, 13, 6129, 262, 18, 6494, 620, 12, 262, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 2312, 789, 2560, 67, 2123, 8805, 972, 13545, 294, 9506, 202, 542, 2224, 12, 261, 2224, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 2312, 789, 2560, 67, 2123, 8805, 972, 4883, 67, 25312, 294, 9506, 202, 588, 751, 1852, 12, 262, 18, 8507, 12, 11272, 9506, 202, 588, 751, 1852, 12, 262, 18, 1289, 1595, 12, 261, 2532, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 2312, 789, 2560, 67, 2123, 8805, 972, 2123, 8805, 67, 16606, 294, 9506, 202, 542, 6485, 3004, 12, 261, 921, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 2312, 789, 2560, 67, 2123, 8805, 972, 4883, 67, 8941, 294, 9506, 202, 542, 751, 2148, 12, 261, 751, 2148, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 2312, 789, 2560, 67, 2123, 8805, 972, 4883, 67, 4043, 294, 9506, 202, 542, 13676, 12, 261, 13676, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 512, 14372, 4595, 425, 4595, 16, 1033, 6129, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 1412, 2261, 18, 2312, 789, 2560, 67, 2123, 8805, 972, 29588, 294, 9506, 202, 542, 6207, 12, 261, 261, 5507, 13, 6129, 262, 18, 6494, 620, 12, 262, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 2312, 789, 2560, 67, 2123, 8805, 972, 13545, 294, 9506, 202, 542, 2224, 12, 261, 2224, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 2312, 789, 2560, 67, 2123, 8805, 972, 4883, 67, 25312, 294, 9506, 202, 588, 2 ]
Panel main = new Panel(new BorderLayout()); Panel btns = new Panel(new BorderLayout()); txt = new TextArea(); Button clear = new Button("Clear"); Button close = new Button("Close");
txt = new JTextArea(); txt.setEditable(false); scroll = new JScrollPane( txt ); JPanel main = new JPanel(new BorderLayout()); JPanel btns = new JPanel(new BorderLayout()); JButton clear = new JButton("Clear"); JButton close = new JButton("Close");
public KJASConsole() { super("Java Console"); Panel main = new Panel(new BorderLayout()); Panel btns = new Panel(new BorderLayout()); txt = new TextArea(); Button clear = new Button("Clear"); Button close = new Button("Close"); btns.add(clear, "West"); btns.add(close, "East"); main.add(txt, "Center"); main.add(btns, "South"); add(main); txt.setEditable(false); clear.addActionListener ( new ActionListener() { public void actionPerformed(ActionEvent e) { txt.setText(""); } } ); close.addActionListener ( new ActionListener() { public void actionPerformed(ActionEvent e) { setVisible(false); } } ); addWindowListener ( new WindowAdapter() { public void windowClosing(WindowEvent e) { setVisible(false); } } ); setSize(300, 300); PrintStream st = new PrintStream( new KJASConsoleStream(txt) ); System.setOut(st); System.setErr(st); System.out.println( "Java VM version: " + System.getProperty("java.version") ); System.out.println( "Java VM vendor: " + System.getProperty("java.vendor") ); }
45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/e5817d0232fa324d737a75370dab7be2b3032047/KJASConsole.java/buggy/khtml/java/org/kde/kjas/server/KJASConsole.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1475, 46, 3033, 10215, 1435, 565, 288, 3639, 2240, 2932, 5852, 9657, 8863, 3639, 23641, 2774, 273, 394, 23641, 12, 2704, 30814, 10663, 3639, 23641, 10921, 2387, 273, 394, 23641, 12, 2704, 30814, 10663, 3639, 6463, 273, 394, 3867, 5484, 5621, 3639, 12569, 2424, 273, 394, 12569, 2932, 9094, 8863, 3639, 12569, 1746, 273, 394, 12569, 2932, 4605, 8863, 7734, 10921, 2387, 18, 1289, 12, 8507, 16, 315, 59, 395, 8863, 3639, 10921, 2387, 18, 1289, 12, 4412, 16, 315, 41, 689, 8863, 3639, 2774, 18, 1289, 12, 5830, 16, 315, 8449, 8863, 3639, 2774, 18, 1289, 12, 23602, 2387, 16, 315, 55, 15347, 8863, 7734, 527, 12, 5254, 1769, 1171, 6463, 18, 542, 15470, 12, 5743, 1769, 3639, 2424, 18, 1289, 1803, 2223, 3639, 261, 5411, 394, 25962, 1435, 288, 7734, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 10792, 6463, 18, 542, 1528, 2932, 8863, 7734, 289, 5411, 289, 3639, 11272, 3639, 1746, 18, 1289, 1803, 2223, 3639, 261, 5411, 394, 25962, 1435, 288, 7734, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 10792, 16697, 12, 5743, 1769, 7734, 289, 5411, 289, 3639, 11272, 3639, 527, 3829, 2223, 3639, 261, 5411, 394, 6076, 4216, 1435, 288, 7734, 1071, 918, 2742, 15745, 12, 3829, 1133, 425, 13, 288, 10792, 16697, 12, 5743, 1769, 7734, 289, 5411, 289, 3639, 11272, 3639, 19106, 12, 19249, 16, 11631, 1769, 3639, 21677, 384, 273, 394, 21677, 12, 394, 1475, 46, 3033, 10215, 1228, 12, 5830, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1475, 46, 3033, 10215, 1435, 565, 288, 3639, 2240, 2932, 5852, 9657, 8863, 3639, 23641, 2774, 273, 394, 23641, 12, 2704, 30814, 10663, 3639, 23641, 10921, 2387, 273, 394, 23641, 12, 2704, 30814, 10663, 3639, 6463, 273, 394, 3867, 5484, 5621, 3639, 12569, 2424, 273, 394, 12569, 2932, 9094, 8863, 3639, 12569, 1746, 273, 394, 12569, 2932, 4605, 8863, 7734, 10921, 2387, 18, 1289, 12, 8507, 16, 315, 59, 395, 8863, 3639, 10921, 2387, 18, 1289, 12, 4412, 16, 315, 41, 689, 8863, 3639, 2774, 18, 1289, 12, 5830, 16, 315, 8449, 8863, 3639, 2774, 18, 1289, 12, 23602, 2387, 16, 315, 55, 15347, 8863, 7734, 527, 12, 5254, 1769, 1171, 6463, 18, 542, 15470, 12, 5743, 2 ]
public Individual(int numLines) { this.markers = new Vector(numLines); this.zeroed = new boolean[numLines];
public Individual(int numMarkers) { markersa = new byte[numMarkers]; markersb = new byte[numMarkers]; this.zeroed = new boolean[numMarkers];
public Individual(int numLines) { this.markers = new Vector(numLines); //this.zeroed = new Vector(numLines); this.zeroed = new boolean[numLines]; this.currMarker = 0; }
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/f3075d50dec65afcd971e7afa99f36e79b7cfe08/Individual.java/buggy/edu/mit/wi/pedfile/Individual.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24147, 12, 474, 818, 5763, 13, 288, 3639, 333, 18, 22807, 273, 394, 5589, 12, 2107, 5763, 1769, 3639, 368, 2211, 18, 7124, 329, 273, 394, 5589, 12, 2107, 5763, 1769, 3639, 333, 18, 7124, 329, 273, 394, 1250, 63, 2107, 5763, 15533, 3639, 333, 18, 17016, 7078, 273, 374, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24147, 12, 474, 818, 5763, 13, 288, 3639, 333, 18, 22807, 273, 394, 5589, 12, 2107, 5763, 1769, 3639, 368, 2211, 18, 7124, 329, 273, 394, 5589, 12, 2107, 5763, 1769, 3639, 333, 18, 7124, 329, 273, 394, 1250, 63, 2107, 5763, 15533, 3639, 333, 18, 17016, 7078, 273, 374, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected void renderBackground( IPrimitiveRenderer ipr, Plot p ) throws ChartException { // PLOT BLOCK STUFF super.renderBackground( ipr, p ); final ChartWithAxes cwa = (ChartWithAxes) getModel( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); // PLOT CLIENT AREA final ClientArea ca = p.getClientArea( ); Bounds bo = pwa.getPlotBounds( ); final RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), RectangleRenderEvent.class ); rre.setBounds( bo ); rre.setOutline( ca.getOutline( ) ); rre.setBackground( ca.getBackground( ) ); ipr.fillRectangle( rre ); // NOW THAT THE AXES HAVE BEEN COMPUTED, FILL THE INTERNAL PLOT AREA double dSeriesThickness = pwa.getSeriesThickness( ); double[] daX = { bo.getLeft( ) - dSeriesThickness, bo.getLeft( ) + bo.getWidth( ) - dSeriesThickness }; double[] daY = { bo.getTop( ) + bo.getHeight( ) + dSeriesThickness, bo.getTop( ) + dSeriesThickness }; final AllAxes aax = pwa.getAxes( ); AutoScale scPrimaryBase = null; AutoScale scPrimaryOrthogonal = null; AutoScale scAncillaryBase = null; double dXStart = 0; //double dXEnd = 0; double dYStart = 0; //double dYEnd = 0; double dZStart = 0; //double dZEnd = 0; int baseTickCount = 0; int ancillaryTickCount = 0; int orthogonalTickCount = 0; double xStep = 0; double yStep = 0; double zStep = 0; if ( isDimension3D( ) ) { scPrimaryBase = aax.getPrimaryBase( ).getScale( ); scPrimaryOrthogonal = aax.getPrimaryOrthogonal( ).getScale( ); scAncillaryBase = aax.getAncillaryBase( ).getScale( ); dXStart = scPrimaryBase.getNormalizedStart( ); //dXEnd = scPrimaryBase.getNormalizedEnd( ); dYStart = scPrimaryOrthogonal.getNormalizedStart( ); //dYEnd = scPrimaryOrthogonal.getNormalizedEnd( ); dZStart = scAncillaryBase.getNormalizedStart( ); //dZEnd = scAncillaryBase.getNormalizedEnd( ); baseTickCount = scPrimaryBase.getTickCordinates( ).length; ancillaryTickCount = scAncillaryBase.getTickCordinates( ).length; orthogonalTickCount = scPrimaryOrthogonal.getTickCordinates( ).length; xStep = scPrimaryBase.getUnitSize( ); yStep = scPrimaryOrthogonal.getUnitSize( ); zStep = scAncillaryBase.getUnitSize( ); } if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { Location[] loa = null; // DRAW THE LEFT WALL if ( cwa.getWallFill( ) == null ) { renderPlane( ipr, StructureSource.createPlot( p ), new Location[]{ LocationImpl.create( daX[0], daY[0] ), LocationImpl.create( daX[0], daY[1] ) }, ca.getBackground( ), ca.getOutline( ), cwa.getDimension( ), dSeriesThickness, false ); } else { loa = new Location[4]; loa[0] = LocationImpl.create( daX[0], daY[0] ); loa[1] = LocationImpl.create( daX[0], daY[1] ); loa[2] = LocationImpl.create( daX[0] + dSeriesThickness, daY[1] - dSeriesThickness ); loa[3] = LocationImpl.create( daX[0] + dSeriesThickness, daY[0] - dSeriesThickness ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( cwa.getWallFill( ) ); pre.setOutline( ca.getOutline( ) ); ipr.fillPolygon( pre ); ipr.drawPolygon( pre ); } // DRAW THE FLOOR if ( cwa.getFloorFill( ) == null ) { renderPlane( ipr, StructureSource.createPlot( p ), new Location[]{ LocationImpl.create( daX[0], daY[0] ), LocationImpl.create( daX[1], daY[0] ) }, ca.getBackground( ), ca.getOutline( ), cwa.getDimension( ), dSeriesThickness, false ); } else { if ( loa == null ) { loa = new Location[4]; } loa[0] = LocationImpl.create( daX[0], daY[0] ); loa[1] = LocationImpl.create( daX[1], daY[0] ); loa[2] = LocationImpl.create( daX[1] + dSeriesThickness, daY[0] - dSeriesThickness ); loa[3] = LocationImpl.create( daX[0] + dSeriesThickness, daY[0] - dSeriesThickness ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( cwa.getFloorFill( ) ); pre.setOutline( ca.getOutline( ) ); ipr.fillPolygon( pre ); ipr.drawPolygon( pre ); } } else if ( pwa.getDimension( ) == IConstants.THREE_D ) { Location3D[] loa = null; final Polygon3DRenderEvent pre = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), Polygon3DRenderEvent.class ); pre.setDoubleSided( true ); // DRAW THE WALL if ( cwa.getWallFill( ) != null ) { loa = new Location3D[4]; // Left Wall // split to small planes to render. for ( int i = 0; i < orthogonalTickCount - 1; i++ ) { for ( int j = 0; j < ancillaryTickCount - 1; j++ ) { loa[0] = Location3DImpl.create( dXStart, dYStart + yStep * i, dZStart + zStep * j ); loa[1] = Location3DImpl.create( dXStart, dYStart + ( i + 1 ) * yStep, dZStart + j * zStep ); loa[2] = Location3DImpl.create( dXStart, dYStart + ( i + 1 ) * yStep, dZStart + ( j + 1 ) * zStep ); loa[3] = Location3DImpl.create( dXStart, dYStart + i * yStep, dZStart + ( j + 1 ) * zStep ); pre.setPoints3D( loa ); pre.setBackground( cwa.getWallFill( ) ); pre.setOutline( ca.getOutline( ) ); getDeferredCache( ).addPlane( pre, PrimitiveRenderEvent.DRAW | PrimitiveRenderEvent.FILL ); } } // loa[0] = Location3DImpl.create( dXStart, dYStart, dZStart ); // loa[1] = Location3DImpl.create( dXStart, dYEnd, dZStart ); // loa[2] = Location3DImpl.create( dXStart, dYEnd, dZEnd ); // loa[3] = Location3DImpl.create( dXStart, dYStart, dZEnd ); // pre.setPoints3D( loa ); // pre.setBackground( cwa.getWallFill( ) ); // pre.setOutline( ca.getOutline( ) ); // getDeferredCache( ).addPlane( pre, // PrimitiveRenderEvent.DRAW | PrimitiveRenderEvent.FILL ); leftWallFill = true; // Right Wall // split to small planes to render. for ( int i = 0; i < orthogonalTickCount - 1; i++ ) { for ( int j = 0; j < baseTickCount - 1; j++ ) { loa[0] = Location3DImpl.create( dXStart + j * xStep, dYStart + i * yStep, dZStart ); loa[1] = Location3DImpl.create( dXStart + ( j + 1 ) * xStep, dYStart + i * yStep, dZStart ); loa[2] = Location3DImpl.create( dXStart + ( j + 1 ) * xStep, dYStart + ( i + 1 ) * yStep, dZStart ); loa[3] = Location3DImpl.create( dXStart + j * xStep, dYStart + ( i + 1 ) * yStep, dZStart ); pre.setPoints3D( loa ); pre.setBackground( cwa.getWallFill( ) ); pre.setOutline( ca.getOutline( ) ); getDeferredCache( ).addPlane( pre, PrimitiveRenderEvent.DRAW | PrimitiveRenderEvent.FILL ); } } // loa[0] = Location3DImpl.create( dXStart, dYStart, dZStart ); // loa[1] = Location3DImpl.create( dXStart, dYEnd, dZStart ); // loa[2] = Location3DImpl.create( dXEnd, dYEnd, dZStart ); // loa[3] = Location3DImpl.create( dXEnd, dYStart, dZStart ); // pre.setPoints3D( loa ); // pre.setBackground( cwa.getWallFill( ) ); // pre.setOutline( ca.getOutline( ) ); // getDeferredCache( ).addPlane( pre, // PrimitiveRenderEvent.DRAW // | PrimitiveRenderEvent.FILL ); rightWallFill = true; } // DRAW THE FLOOR if ( cwa.getFloorFill( ) != null ) { if ( loa == null ) { loa = new Location3D[4]; } // split to small planes to render. for ( int i = 0; i < baseTickCount - 1; i++ ) { for ( int j = 0; j < ancillaryTickCount - 1; j++ ) { loa[0] = Location3DImpl.create( dXStart + i * xStep, dYStart, dZStart + j * zStep ); loa[1] = Location3DImpl.create( dXStart + i * xStep, dYStart, dZStart + ( j + 1 ) * zStep ); loa[2] = Location3DImpl.create( dXStart + ( i + 1 ) * xStep, dYStart, dZStart + ( j + 1 ) * zStep ); loa[3] = Location3DImpl.create( dXStart + ( i + 1 ) * xStep, dYStart, dZStart + j * zStep ); pre.setPoints3D( loa ); pre.setBackground( cwa.getFloorFill( ) ); pre.setOutline( ca.getOutline( ) ); getDeferredCache( ).addPlane( pre, PrimitiveRenderEvent.DRAW | PrimitiveRenderEvent.FILL ); } } // loa[0] = Location3DImpl.create( dXStart, dYStart, dZStart ); // loa[1] = Location3DImpl.create( dXStart, dYStart, dZEnd ); // loa[2] = Location3DImpl.create( dXEnd, dYStart, dZEnd ); // loa[3] = Location3DImpl.create( dXEnd, dYStart, dZStart ); // pre.setPoints3D( loa ); // pre.setBackground( cwa.getFloorFill( ) ); // pre.setOutline( ca.getOutline( ) ); // getDeferredCache( ).addPlane( pre, // PrimitiveRenderEvent.DRAW // | PrimitiveRenderEvent.FILL ); floorFill = true; } // Draw the Zero plane // IntersectionValue iv = aax.getPrimaryBase( // ).getIntersectionValue( ); // if ( iv != null && iv.getType( ) == IntersectionValue.VALUE ) // { // if ( loa == null ) // { // loa = new Location3D[4]; // } // // double yZeroValue = Methods.getNormalizedLocation( // scPrimaryOrthogonal, // 0 ); // // for ( int i = 0; i < baseTickCount - 1; i++ ) // { // for ( int j = 0; j < ancillaryTickCount - 1; j++ ) // { // loa[0] = Location3DImpl.create( dXStart + i * xStep, // yZeroValue, // dZStart + j * zStep ); // loa[1] = Location3DImpl.create( dXStart + i * xStep, // yZeroValue, // dZStart + ( j + 1 ) * zStep ); // loa[2] = Location3DImpl.create( dXStart // + ( i + 1 ) // * xStep, yZeroValue, dZStart // + ( j + 1 ) // * zStep ); // loa[3] = Location3DImpl.create( dXStart // + ( i + 1 ) // * xStep, yZeroValue, dZStart + j * zStep ); // pre.setPoints3D( loa ); // pre.setBackground( ColorDefinitionImpl.create( 255, // 255, // 255, // 127 ) ); // pre.setOutline( null ); // getDeferredCache( ).addPlane( pre, // PrimitiveRenderEvent.FILL ); // } // } // } } // SETUP AXIS ARRAY final OneAxis[] oaxa = new OneAxis[2 + aax.getOverlayCount( ) + ( aax.getAncillaryBase( ) != null ? 1 : 0 )]; oaxa[0] = aax.getPrimaryBase( ); oaxa[1] = aax.getPrimaryOrthogonal( ); for ( int i = 0; i < aax.getOverlayCount( ); i++ ) { oaxa[2 + i] = aax.getOverlay( i ); } if ( aax.getAncillaryBase( ) != null ) { oaxa[2 + aax.getOverlayCount( )] = aax.getAncillaryBase( ); } // RENDER MARKER RANGES (MARKER LINES ARE DRAWN LATER) renderMarkerRanges( oaxa, bo ); // RENDER GRID LINES (MAJOR=DONE; MINOR=DONE) double x = 0, y = 0; LineAttributes lia; LineRenderEvent lre; final Insets insCA = aax.getInsets( ); // RENDER MINOR GRID LINES FIRST int iCount; Grid g; double[] doaMinor = null; for ( int i = 0; i < oaxa.length; i++ ) { g = oaxa[i].getGrid( ); iCount = g.getMinorCountPerMajor( ); lia = oaxa[i].getGrid( ).getLineAttributes( IConstants.MINOR ); if ( lia == null || !lia.isSetStyle( ) || !lia.isVisible( ) ) { continue; } if ( iCount <= 0 ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.cannot.split.major", //$NON-NLS-1$ new Object[]{ new Integer( iCount ) }, ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getLocale( ) ) ); } AutoScale sc = oaxa[i].getScale( ); doaMinor = sc.getMinorCoordinates( iCount ); if ( isDimension3D( ) ) { Line3DRenderEvent lre3d = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), Line3DRenderEvent.class ); lre3d.setLineAttributes( lia ); switch ( oaxa[i].getAxisType( ) ) { case IConstants.BASE_AXIS : double[] xa = scPrimaryBase.getNormalizedTickCoordinates( ); if ( floorFill ) { for ( int k = 0; k < xa.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < ancillaryTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( xa[k] + doaMinor[j], dYStart, dZStart + n * zStep ) ); lre3d.setEnd3D( Location3DImpl.create( xa[k] + doaMinor[j], dYStart, dZStart + ( n + 1 ) * zStep ) ); getDeferredCache( ).addLine( lre3d ); } } } } if ( rightWallFill ) { for ( int k = 0; k < xa.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < orthogonalTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( xa[k] + doaMinor[j], dYStart + n * yStep, dZStart ) ); lre3d.setEnd3D( Location3DImpl.create( xa[k] + doaMinor[j], dYStart + ( n + 1 ) * yStep, dZStart ) ); getDeferredCache( ).addLine( lre3d ); } } } } break; case IConstants.ORTHOGONAL_AXIS : double[] ya = scPrimaryOrthogonal.getNormalizedTickCoordinates( ); if ( leftWallFill ) { for ( int k = 0; k < ya.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < ancillaryTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart, ya[k] + doaMinor[j], dZStart + n * zStep ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart, ya[k] + doaMinor[j], dZStart + ( n + 1 ) * zStep ) ); getDeferredCache( ).addLine( lre3d ); } } } } if ( rightWallFill ) { for ( int k = 0; k < ya.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < baseTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart + n * xStep, ya[k] + doaMinor[j], dZStart ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart + ( n + 1 ) * xStep, ya[k] + doaMinor[j], dZStart ) ); getDeferredCache( ).addLine( lre3d ); } } } } break; case IConstants.ANCILLARY_AXIS : double[] za = scAncillaryBase.getNormalizedTickCoordinates( ); if ( leftWallFill ) { for ( int k = 0; k < za.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < orthogonalTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart, dYStart + n * yStep, za[k] + doaMinor[j] ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart, dYStart + ( n + 1 ) * yStep, za[k] + doaMinor[j] ) ); getDeferredCache( ).addLine( lre3d ); } } } } if ( floorFill ) { for ( int k = 0; k < za.length - 1; k++ ) { for ( int j = 0; j < doaMinor.length - 1; j++ ) { for ( int n = 0; n < baseTickCount - 1; n++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart + n * xStep, dYStart, za[k] + doaMinor[j] ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart + ( n + 1 ) * xStep, dYStart, za[k] + doaMinor[j] ) ); getDeferredCache( ).addLine( lre3d ); } } } } break; default : break; } } else if ( oaxa[i].getOrientation( ) == IConstants.HORIZONTAL ) { double[] da = sc.getTickCordinates( ); double dY2 = bo.getTop( ) + 1, dY1 = bo.getTop( ) + bo.getHeight( ) - 2; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { for ( int j = 0; j < da.length - 1; j++ ) { x = da[j]; for ( int k = 0; k < doaMinor.length; k++ ) { lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( x + doaMinor[k], dY1 + pwa.getSeriesThickness( ) ) ); lre.setEnd( LocationImpl.create( x + doaMinor[k] + pwa.getSeriesThickness( ), dY1 ) ); ipr.drawLine( lre ); } } } for ( int j = 0; j < da.length - 1; j++ ) { x = da[j]; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { x += pwa.getSeriesThickness( ); } for ( int k = 0; k < doaMinor.length; k++ ) { lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( x + doaMinor[k], dY1 ) ); lre.setEnd( LocationImpl.create( x + doaMinor[k], dY2 ) ); ipr.drawLine( lre ); } } } else if ( oaxa[i].getOrientation( ) == IConstants.VERTICAL ) { double[] da = sc.getTickCordinates( ); double dX1 = bo.getLeft( ) + 1, dX2 = bo.getLeft( ) + bo.getWidth( ) - 2; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { for ( int j = 0; j < da.length - 1; j++ ) { y = ( da[j] - pwa.getSeriesThickness( ) ); for ( int k = 0; k < doaMinor.length; k++ ) { lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX1, y - doaMinor[k] ) ); lre.setEnd( LocationImpl.create( dX1 - pwa.getSeriesThickness( ), y - doaMinor[k] + pwa.getSeriesThickness( ) ) ); ipr.drawLine( lre ); } } } for ( int j = 0; j < da.length - 1; j++ ) { y = da[j]; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { y -= pwa.getSeriesThickness( ); } for ( int k = 0; k < doaMinor.length; k++ ) { lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX1, y - doaMinor[k] ) ); lre.setEnd( LocationImpl.create( dX2, y - doaMinor[k] ) ); ipr.drawLine( lre ); } } } } // RENDER MAJOR GRID LINES NEXT for ( int i = 0; i < oaxa.length; i++ ) { lia = oaxa[i].getGrid( ).getLineAttributes( IConstants.MAJOR ); if ( lia == null || !lia.isSetStyle( ) || !lia.isVisible( ) ) // GRID // LINE // UNDEFINED { continue; } AutoScale sc = oaxa[i].getScale( ); if ( isDimension3D( ) ) { Line3DRenderEvent lre3d = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), Line3DRenderEvent.class ); lre3d.setLineAttributes( lia ); switch ( oaxa[i].getAxisType( ) ) { case IConstants.BASE_AXIS : double[] xa = scPrimaryBase.getNormalizedTickCoordinates( ); if ( floorFill ) { for ( int k = 0; k < xa.length; k++ ) { for ( int j = 0; j < ancillaryTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( xa[k], dYStart, dZStart + j * zStep ) ); lre3d.setEnd3D( Location3DImpl.create( xa[k], dYStart, dZStart + ( j + 1 ) * zStep ) ); getDeferredCache( ).addLine( lre3d ); } } } if ( rightWallFill ) { for ( int k = 0; k < xa.length; k++ ) { for ( int j = 0; j < orthogonalTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( xa[k], dYStart + j * yStep, dZStart ) ); lre3d.setEnd3D( Location3DImpl.create( xa[k], dYStart + ( j + 1 ) * yStep, dZStart ) ); getDeferredCache( ).addLine( lre3d ); } } } break; case IConstants.ORTHOGONAL_AXIS : double[] ya = scPrimaryOrthogonal.getNormalizedTickCoordinates( ); if ( leftWallFill ) { for ( int k = 0; k < ya.length; k++ ) { for ( int j = 0; j < ancillaryTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart, ya[k], dZStart + j * zStep ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart, ya[k], dZStart + ( j + 1 ) * zStep ) ); getDeferredCache( ).addLine( lre3d ); } } } if ( rightWallFill ) { for ( int k = 0; k < ya.length; k++ ) { for ( int j = 0; j < baseTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart + j * xStep, ya[k], dZStart ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart + ( j + 1 ) * xStep, ya[k], dZStart ) ); getDeferredCache( ).addLine( lre3d ); } } } break; case IConstants.ANCILLARY_AXIS : double[] za = scAncillaryBase.getNormalizedTickCoordinates( ); if ( leftWallFill ) { for ( int k = 0; k < za.length; k++ ) { for ( int j = 0; j < orthogonalTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart, dYStart + j * yStep, za[k] ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart, dYStart + ( j + 1 ) * yStep, za[k] ) ); getDeferredCache( ).addLine( lre3d ); } } } if ( floorFill ) { for ( int k = 0; k < za.length; k++ ) { for ( int j = 0; j < baseTickCount - 1; j++ ) { lre3d.setStart3D( Location3DImpl.create( dXStart + j * xStep, dYStart, za[k] ) ); lre3d.setEnd3D( Location3DImpl.create( dXStart + ( j + 1 ) * xStep, dYStart, za[k] ) ); getDeferredCache( ).addLine( lre3d ); } } } break; default : break; } } else if ( oaxa[i].getOrientation( ) == IConstants.HORIZONTAL ) { double[] da = sc.getTickCordinates( ); double dY2 = bo.getTop( ) + 1, dY1 = bo.getTop( ) + bo.getHeight( ) - 2; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { for ( int j = 0; j < da.length; j++ ) { if ( j == 0 && insCA.getBottom( ) < lia.getThickness( ) ) continue; if ( j == da.length - 1 && insCA.getTop( ) < lia.getThickness( ) ) continue; x = da[j]; lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( x, dY1 + pwa.getSeriesThickness( ) ) ); lre.setEnd( LocationImpl.create( x + pwa.getSeriesThickness( ), dY1 ) ); ipr.drawLine( lre ); } } for ( int j = 0; j < da.length; j++ ) { if ( j == 0 && insCA.getBottom( ) < lia.getThickness( ) ) continue; if ( j == da.length - 1 && insCA.getTop( ) < lia.getThickness( ) ) continue; x = da[j]; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { x += pwa.getSeriesThickness( ); } lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( x, dY1 ) ); lre.setEnd( LocationImpl.create( x, dY2 ) ); ipr.drawLine( lre ); } } else if ( oaxa[i].getOrientation( ) == IConstants.VERTICAL ) { double[] da = sc.getTickCordinates( ); double dX1 = bo.getLeft( ) + 1, dX2 = bo.getLeft( ) + bo.getWidth( ) - 2; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { for ( int j = 0; j < da.length; j++ ) { if ( j == 0 && insCA.getLeft( ) < lia.getThickness( ) ) continue; if ( j == da.length - 1 && insCA.getRight( ) < lia.getThickness( ) ) continue; y = (int) ( da[j] - pwa.getSeriesThickness( ) ); lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX1, y ) ); lre.setEnd( LocationImpl.create( dX1 - pwa.getSeriesThickness( ), y + pwa.getSeriesThickness( ) ) ); ipr.drawLine( lre ); } } for ( int j = 0; j < da.length; j++ ) { if ( j == 0 && insCA.getLeft( ) < lia.getThickness( ) ) continue; if ( j == da.length - 1 && insCA.getRight( ) < lia.getThickness( ) ) continue; y = (int) da[j]; if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { y -= pwa.getSeriesThickness( ); } lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createPlot( p ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX1, y ) ); lre.setEnd( LocationImpl.create( dX2, y ) ); ipr.drawLine( lre ); } } } if ( p.getClientArea( ).getOutline( ).isVisible( ) ) { rre.setBounds( bo ); ipr.drawRectangle( rre ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d7e086870fe52851435c652945101a8fea388eb6/AxesRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1743, 8199, 12, 467, 9840, 6747, 277, 683, 16, 15211, 293, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 759, 453, 1502, 56, 14073, 2347, 57, 2246, 202, 202, 9565, 18, 5902, 8199, 12, 277, 683, 16, 293, 11272, 202, 202, 6385, 14804, 1190, 26494, 14098, 69, 273, 261, 7984, 1190, 26494, 13, 7454, 12, 11272, 202, 202, 6385, 15211, 1190, 26494, 8772, 69, 273, 261, 11532, 1190, 26494, 13, 336, 7703, 1012, 12, 11272, 202, 202, 759, 453, 1502, 56, 16395, 432, 29416, 202, 202, 6385, 2445, 5484, 3474, 273, 293, 18, 588, 1227, 5484, 12, 11272, 202, 202, 5694, 800, 273, 8772, 69, 18, 588, 11532, 5694, 12, 11272, 202, 202, 6385, 13264, 3420, 1133, 436, 266, 273, 261, 19463, 3420, 1133, 13, 261, 261, 1133, 921, 1649, 13, 277, 683, 262, 18, 588, 1133, 921, 12, 13348, 1830, 18, 2640, 11532, 12, 293, 262, 16, 9506, 202, 19463, 3420, 1133, 18, 1106, 11272, 202, 202, 86, 266, 18, 542, 5694, 12, 800, 11272, 202, 202, 86, 266, 18, 542, 21805, 12, 3474, 18, 588, 21805, 12, 262, 11272, 202, 202, 86, 266, 18, 542, 8199, 12, 3474, 18, 588, 8199, 12, 262, 11272, 202, 202, 625, 86, 18, 5935, 19463, 12, 436, 266, 11272, 202, 202, 759, 3741, 59, 7662, 789, 12786, 29539, 3991, 21926, 3412, 9722, 1157, 13846, 57, 6404, 16, 8445, 48, 12786, 18139, 453, 1502, 56, 432, 29416, 202, 202, 9056, 302, 6485, 1315, 19517, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1743, 8199, 12, 467, 9840, 6747, 277, 683, 16, 15211, 293, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 759, 453, 1502, 56, 14073, 2347, 57, 2246, 202, 202, 9565, 18, 5902, 8199, 12, 277, 683, 16, 293, 11272, 202, 202, 6385, 14804, 1190, 26494, 14098, 69, 273, 261, 7984, 1190, 26494, 13, 7454, 12, 11272, 202, 202, 6385, 15211, 1190, 26494, 8772, 69, 273, 261, 11532, 1190, 26494, 13, 336, 7703, 1012, 12, 11272, 202, 202, 759, 453, 1502, 56, 16395, 432, 29416, 202, 202, 6385, 2445, 5484, 3474, 273, 293, 18, 588, 1227, 5484, 12, 11272, 202, 202, 5694, 800, 273, 8772, 69, 18, 588, 11532, 5694, 12, 11272, 202, 202, 2 ]
public ConnectorArtifactEdit(ComponentHandle aHandle, boolean toAccessAsReadOnly) throws IllegalArgumentException { super(aHandle, toAccessAsReadOnly);
public ConnectorArtifactEdit() { super();
public ConnectorArtifactEdit(ComponentHandle aHandle, boolean toAccessAsReadOnly) throws IllegalArgumentException { super(aHandle, toAccessAsReadOnly); // TODO Auto-generated constructor stub }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/2c89d8f80942c1486f25d9dd8cc1c14e789ce6b8/ConnectorArtifactEdit.java/buggy/plugins/org.eclipse.jst.j2ee.jca/rarproject/org/eclipse/jst/j2ee/jca/modulecore/util/ConnectorArtifactEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15779, 7581, 4666, 12, 1841, 3259, 279, 3259, 16, 1250, 358, 1862, 1463, 12066, 13, 1216, 2754, 288, 202, 202, 9565, 12, 69, 3259, 16, 358, 1862, 1463, 12066, 1769, 202, 202, 759, 2660, 8064, 17, 11168, 3885, 7168, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15779, 7581, 4666, 12, 1841, 3259, 279, 3259, 16, 1250, 358, 1862, 1463, 12066, 13, 1216, 2754, 288, 202, 202, 9565, 12, 69, 3259, 16, 358, 1862, 1463, 12066, 1769, 202, 202, 759, 2660, 8064, 17, 11168, 3885, 7168, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void addFinalResource(File file) { addResource(finalResources, file);
public void addFinalResource(String name) { addResource(finalResources, name);
public void addFinalResource(File file) { addResource(finalResources, file); }
49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/628adbdc4a3a1116217663710bf591bf73c01fc3/Configuration.java/buggy/src/java/org/apache/hadoop/conf/Configuration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 7951, 1420, 12, 812, 585, 13, 288, 565, 23812, 12, 6385, 3805, 16, 585, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 7951, 1420, 12, 812, 585, 13, 288, 565, 23812, 12, 6385, 3805, 16, 585, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void mBOOL() throws RecognitionException { int BOOL_StartIndex = input.index(); try { int type = BOOL; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 54) ) { return ; } // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1046:17: ( ( 'true' | 'false' ) ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1046:17: ( 'true' | 'false' ) { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1046:17: ( 'true' | 'false' ) int alt11=2; int LA11_0 = input.LA(1); if ( LA11_0=='t' ) { alt11=1; } else if ( LA11_0=='f' ) { alt11=2; } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1046:17: ( \'true\' | \'false\' )", 11, 0, input); throw nvae; } switch (alt11) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1046:18: 'true' { match("true"); if (failed) return ; } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1046:25: 'false' { match("false"); if (failed) return ; } break; } } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 54, BOOL_StartIndex); } } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/fb2f51ad0fb80e03d0cc7f4644cb7a7e17027618/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 19040, 1435, 1216, 9539, 288, 3639, 509, 9784, 1741, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 9784, 1741, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 5411, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 5411, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 22431, 13, 262, 288, 327, 274, 289, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 2163, 8749, 30, 4033, 30, 261, 261, 296, 3767, 11, 571, 296, 5743, 11, 262, 262, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 2163, 8749, 30, 4033, 30, 261, 296, 3767, 11, 571, 296, 5743, 11, 262, 5411, 288, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 2163, 8749, 30, 4033, 30, 261, 296, 3767, 11, 571, 296, 5743, 11, 262, 5411, 509, 3770, 2499, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 19040, 1435, 1216, 9539, 288, 3639, 509, 9784, 1741, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 9784, 1741, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 5411, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 5411, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 22431, 13, 262, 288, 327, 274, 289, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 2 ]
return object.callMethod(context, "to_i");
return object.callMethod(context,"to_i");
public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if(val.length() > 1) { if(val.charAt(1) == 'x') { return recv.getRuntime().newString(val.substring(2)).callMethod(context,"to_i", recv.getRuntime().newFixnum(16)); } else if(val.charAt(1) == 'b') { return recv.getRuntime().newString(val.substring(2)).callMethod(context,"to_i", recv.getRuntime().newFixnum(2)); } else { return recv.getRuntime().newString(val.substring(1)).callMethod(context,"to_i", recv.getRuntime().newFixnum(8)); } } } } return object.callMethod(context, "to_i"); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/a8583bc4b548ea3f09cf86cc0ce0b77670255f40/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 394, 67, 7745, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 733, 13, 288, 3639, 4884, 1042, 819, 273, 10665, 18, 588, 5576, 7675, 588, 3935, 1042, 5621, 7734, 309, 12, 1612, 1276, 19817, 780, 13, 288, 5411, 514, 1244, 273, 733, 18, 10492, 5621, 5411, 309, 12, 1125, 18, 2469, 1435, 405, 374, 597, 1244, 18, 3001, 861, 12, 20, 13, 422, 296, 20, 6134, 288, 7734, 309, 12, 1125, 18, 2469, 1435, 405, 404, 13, 288, 10792, 309, 12, 1125, 18, 3001, 861, 12, 21, 13, 422, 296, 92, 6134, 288, 13491, 327, 10665, 18, 588, 5576, 7675, 2704, 780, 12, 1125, 18, 28023, 12, 22, 13, 2934, 1991, 1305, 12, 2472, 10837, 869, 67, 77, 3113, 10665, 18, 588, 5576, 7675, 2704, 8585, 2107, 12, 2313, 10019, 10792, 289, 469, 309, 12, 1125, 18, 3001, 861, 12, 21, 13, 422, 296, 70, 6134, 288, 13491, 327, 10665, 18, 588, 5576, 7675, 2704, 780, 12, 1125, 18, 28023, 12, 22, 13, 2934, 1991, 1305, 12, 2472, 10837, 869, 67, 77, 3113, 10665, 18, 588, 5576, 7675, 2704, 8585, 2107, 12, 22, 10019, 10792, 289, 469, 288, 13491, 327, 10665, 18, 588, 5576, 7675, 2704, 780, 12, 1125, 18, 28023, 12, 21, 13, 2934, 1991, 1305, 12, 2472, 10837, 869, 67, 77, 3113, 10665, 18, 588, 5576, 7675, 2704, 8585, 2107, 12, 28, 10019, 10792, 289, 7734, 289, 5411, 289, 3639, 289, 3639, 327, 733, 18, 1991, 1305, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 394, 67, 7745, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 733, 13, 288, 3639, 4884, 1042, 819, 273, 10665, 18, 588, 5576, 7675, 588, 3935, 1042, 5621, 7734, 309, 12, 1612, 1276, 19817, 780, 13, 288, 5411, 514, 1244, 273, 733, 18, 10492, 5621, 5411, 309, 12, 1125, 18, 2469, 1435, 405, 374, 597, 1244, 18, 3001, 861, 12, 20, 13, 422, 296, 20, 6134, 288, 7734, 309, 12, 1125, 18, 2469, 1435, 405, 404, 13, 288, 10792, 309, 12, 1125, 18, 3001, 861, 12, 21, 13, 422, 296, 92, 6134, 288, 13491, 327, 10665, 18, 588, 5576, 7675, 2704, 780, 12, 1125, 18, 28023, 12, 22, 13, 2934, 1991, 1305, 2 ]
public void eUnset( EStructuralFeature eFeature )
public void eUnset( int featureID )
public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.EXTENDED_PROPERTY__NAME : setName( NAME_EDEFAULT ); return; case AttributePackage.EXTENDED_PROPERTY__VALUE : setValue( VALUE_EDEFAULT ); return; } eDynamicUnset( eFeature ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/ExtendedPropertyImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/ExtendedPropertyImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 19698, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 3601, 2261, 18, 4142, 22088, 67, 9900, 972, 1985, 294, 9506, 202, 542, 461, 12, 6048, 67, 11236, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 3601, 2261, 18, 4142, 22088, 67, 9900, 972, 4051, 294, 9506, 202, 542, 620, 12, 5848, 67, 11236, 11272, 9506, 202, 2463, 31, 202, 202, 97, 202, 202, 73, 9791, 13250, 12, 425, 4595, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 19698, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 3601, 2261, 18, 4142, 22088, 67, 9900, 972, 1985, 294, 9506, 202, 542, 461, 12, 6048, 67, 11236, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 3601, 2261, 18, 4142, 22088, 67, 9900, 972, 4051, 294, 9506, 202, 542, 620, 12, 5848, 67, 11236, 11272, 9506, 202, 2463, 31, 202, 202, 97, 202, 202, 73, 9791, 13250, 12, 425, 4595, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else if (type == DTM.NAMESPACE_NODE) { handler.namespaceAfterStartElement(getNodeNameX(makeNodeHandle(current)), getNodeValue(makeNodeHandle(current))); } else break; }
public void copyNS(final int nodeID, SerializationHandler handler) throws SAXException { int current = nodeID; try{ while (true) { current++; int eType = _exptype2(current); int type = _exptype2Type(eType); if (type == DTM.ATTRIBUTE_NODE) { continue; } else if (type == DTM.NAMESPACE_NODE) { handler.namespaceAfterStartElement(getNodeNameX(makeNodeHandle(current)), getNodeValue(makeNodeHandle(current))); } else break; } }catch (Exception e) { throw new SAXException(e); } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/50b76a71f76d5227a5d9e45733076ebbd1d5564d/SAX2DTM2.java/buggy/src/org/apache/xml/dtm/ref/sax2dtm/SAX2DTM2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1610, 3156, 12, 6385, 509, 14871, 16, 15253, 1503, 1838, 13, 3639, 1216, 14366, 565, 288, 1377, 509, 783, 273, 14871, 31, 1377, 775, 95, 1850, 1323, 261, 3767, 13, 1850, 288, 2868, 783, 9904, 31, 2868, 509, 425, 559, 273, 389, 338, 27672, 22, 12, 2972, 1769, 2868, 509, 618, 273, 389, 338, 27672, 22, 559, 12, 73, 559, 1769, 15604, 309, 261, 723, 422, 19854, 18, 11616, 67, 8744, 13, 288, 1171, 1324, 31, 2868, 289, 2868, 469, 309, 261, 723, 422, 19854, 18, 11368, 67, 8744, 13, 288, 5375, 1838, 18, 4937, 4436, 1685, 1046, 12, 588, 18948, 60, 12, 6540, 907, 3259, 12, 2972, 13, 3631, 28587, 12, 6540, 907, 3259, 12, 2972, 3719, 1769, 12900, 289, 2868, 469, 5375, 898, 31, 13491, 289, 3639, 289, 14683, 261, 503, 425, 13, 288, 5411, 604, 394, 14366, 12, 73, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1610, 3156, 12, 6385, 509, 14871, 16, 15253, 1503, 1838, 13, 3639, 1216, 14366, 565, 288, 1377, 509, 783, 273, 14871, 31, 1377, 775, 95, 1850, 1323, 261, 3767, 13, 1850, 288, 2868, 783, 9904, 31, 2868, 509, 425, 559, 273, 389, 338, 27672, 22, 12, 2972, 1769, 2868, 509, 618, 273, 389, 338, 27672, 22, 559, 12, 73, 559, 1769, 15604, 309, 261, 723, 422, 19854, 18, 11616, 67, 8744, 13, 288, 1171, 1324, 31, 2868, 289, 2868, 469, 309, 261, 723, 422, 19854, 18, 11368, 67, 8744, 13, 288, 5375, 1838, 18, 4937, 4436, 1685, 1046, 12, 588, 18948, 60, 12, 6540, 907, 3259, 12, 2972, 13, 3631, 28587, 12, 6540, 907, 3259, 12, 2 ]
getContentPane().add(consoleSplitter, java.awt.BorderLayout.CENTER);
gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(consoleSplitter, gridBagConstraints); urlLabel.setFont(new java.awt.Font("Dialog", 0, 12)); urlLabel.setText("FindBugs - http: gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 0); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; getContentPane().add(urlLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(2, 0, 2, 2); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; getContentPane().add(logoLabel, gridBagConstraints);
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; consoleSplitter = new javax.swing.JSplitPane(); viewPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); reportPanel = new javax.swing.JPanel(); editProjectPanel = new javax.swing.JPanel(); jarFileLabel = new javax.swing.JLabel(); jarNameTextField = new javax.swing.JTextField(); addJarButton = new javax.swing.JButton(); jarFileListLabel = new javax.swing.JLabel(); sourceDirLabel = new javax.swing.JLabel(); srcDirTextField = new javax.swing.JTextField(); addSourceDirButton = new javax.swing.JButton(); sourceDirListLabel = new javax.swing.JLabel(); removeJarButton = new javax.swing.JButton(); removeSrcDirButton = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); browseJarButton = new javax.swing.JButton(); browseSrcDirButton = new javax.swing.JButton(); editProjectLabel = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); findBugsButton = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jarFileListScrollPane = new javax.swing.JScrollPane(); jarFileList = new javax.swing.JList(); sourceDirListScrollPane = new javax.swing.JScrollPane(); sourceDirList = new javax.swing.JList(); classpathEntryLabel = new javax.swing.JLabel(); classpathEntryListLabel = new javax.swing.JLabel(); classpathEntryTextField = new javax.swing.JTextField(); browseClasspathEntryButton = new javax.swing.JButton(); addClasspathEntryButton = new javax.swing.JButton(); removeClasspathEntryButton = new javax.swing.JButton(); classpathEntryListScrollPane = new javax.swing.JScrollPane(); classpathEntryList = new javax.swing.JList(); jSeparator5 = new javax.swing.JSeparator(); bugTreePanel = new javax.swing.JPanel(); bugTreeBugDetailsSplitter = new javax.swing.JSplitPane(); groupByTabbedPane = new javax.swing.JTabbedPane(); byClassScrollPane = new javax.swing.JScrollPane(); byClassBugTree = new javax.swing.JTree(); byPackageScrollPane = new javax.swing.JScrollPane(); byPackageBugTree = new javax.swing.JTree(); byBugTypeScrollPane = new javax.swing.JScrollPane(); byBugTypeBugTree = new javax.swing.JTree(); bySummary = new javax.swing.JScrollPane(); bugSummaryEditorPane = new javax.swing.JEditorPane(); bugDetailsTabbedPane = new javax.swing.JTabbedPane(); bugDescriptionScrollPane = new javax.swing.JScrollPane(); bugDescriptionEditorPane = new javax.swing.JEditorPane(); sourceTextAreaScrollPane = new javax.swing.JScrollPane(); sourceTextArea = new javax.swing.JTextArea(); annotationTextAreaScrollPane = new javax.swing.JScrollPane(); annotationTextArea = new javax.swing.JTextArea(); consoleScrollPane = new javax.swing.JScrollPane(); consoleMessageArea = new javax.swing.JTextArea(); theMenuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newProjectItem = new javax.swing.JMenuItem(); openProjectItem = new javax.swing.JMenuItem(); saveProjectItem = new javax.swing.JMenuItem(); saveProjectAsItem = new javax.swing.JMenuItem(); reloadProjectItem = new javax.swing.JMenuItem(); closeProjectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); loadBugsItem = new javax.swing.JMenuItem(); saveBugsItem = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JSeparator(); exitItem = new javax.swing.JMenuItem(); viewMenu = new javax.swing.JMenu(); viewConsoleItem = new javax.swing.JCheckBoxMenuItem(); viewBugDetailsItem = new javax.swing.JCheckBoxMenuItem(); fullDescriptionsItem = new javax.swing.JCheckBoxMenuItem(); jSeparator7 = new javax.swing.JSeparator(); lowPriorityButton = new javax.swing.JRadioButtonMenuItem(); mediumPriorityButton = new javax.swing.JRadioButtonMenuItem(); highPriorityButton = new javax.swing.JRadioButtonMenuItem(); settingsMenu = new javax.swing.JMenu(); configureDetectorsItem = new javax.swing.JMenuItem(); helpMenu = new javax.swing.JMenu(); aboutItem = new javax.swing.JMenuItem(); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); consoleSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); consoleSplitter.setResizeWeight(1.0); consoleSplitter.setOneTouchExpandable(true); consoleSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { consoleSplitterPropertyChange(evt); } }); viewPanel.setLayout(new java.awt.CardLayout()); viewPanel.add(emptyPanel, "EmptyPanel"); viewPanel.add(reportPanel, "ReportPanel"); editProjectPanel.setLayout(new java.awt.GridBagLayout()); jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileLabel.setText("Archive or directory:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileLabel, gridBagConstraints); jarNameTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jarNameTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(jarNameTextField, gridBagConstraints); addJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); addJarButton.setText("Add"); addJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Archives/directories:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source directory:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSourceDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source directories:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeJarButton, gridBagConstraints); removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeSrcDirButton.setText("Remove"); removeSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeSrcDirButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator1, gridBagConstraints); browseJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseJarButton.setText("Browse"); browseJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseJarButton, gridBagConstraints); browseSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseSrcDirButton.setText("Browse"); browseSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseSrcDirButton, gridBagConstraints); editProjectLabel.setBackground(new java.awt.Color(0, 0, 204)); editProjectLabel.setFont(new java.awt.Font("Dialog", 1, 24)); editProjectLabel.setForeground(new java.awt.Color(255, 255, 255)); editProjectLabel.setText("Project"); editProjectLabel.setOpaque(true); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; editProjectPanel.add(editProjectLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator2, gridBagConstraints); findBugsButton.setMnemonic('B'); findBugsButton.setText("Find Bugs!"); findBugsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findBugsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 13; gridBagConstraints.gridwidth = 4; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(findBugsButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator4, gridBagConstraints); jarFileListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); jarFileList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); jarFileList.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jarFileListScrollPane.setViewportView(jarFileList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.6; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListScrollPane, gridBagConstraints); sourceDirListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); sourceDirList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); sourceDirList.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); sourceDirListScrollPane.setViewportView(sourceDirList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.2; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListScrollPane, gridBagConstraints); classpathEntryLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryLabel.setText("Classpath entry:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryLabel, gridBagConstraints); classpathEntryListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryListLabel.setText("Classpath entries:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 10; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryListLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 9; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(classpathEntryTextField, gridBagConstraints); browseClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseClasspathEntryButton.setText("Browse"); browseClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 9; editProjectPanel.add(browseClasspathEntryButton, gridBagConstraints); addClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); addClasspathEntryButton.setText("Add"); addClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(addClasspathEntryButton, gridBagConstraints); removeClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeClasspathEntryButton.setText("Remove"); removeClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 10; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(removeClasspathEntryButton, gridBagConstraints); classpathEntryListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); classpathEntryList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); classpathEntryList.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryListScrollPane.setViewportView(classpathEntryList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 10; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.2; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(classpathEntryListScrollPane, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 12; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0); editProjectPanel.add(jSeparator5, gridBagConstraints); viewPanel.add(editProjectPanel, "EditProjectPanel"); bugTreePanel.setLayout(new java.awt.GridBagLayout()); bugTreeBugDetailsSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); bugTreeBugDetailsSplitter.setResizeWeight(1.0); bugTreeBugDetailsSplitter.setOneTouchExpandable(true); bugTreeBugDetailsSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { bugTreeBugDetailsSplitterPropertyChange(evt); } }); byClassScrollPane.setViewportView(byClassBugTree); groupByTabbedPane.addTab("By Class", byClassScrollPane); byPackageScrollPane.setViewportView(byPackageBugTree); groupByTabbedPane.addTab("By Package", byPackageScrollPane); byBugTypeScrollPane.setViewportView(byBugTypeBugTree); groupByTabbedPane.addTab("By Bug Type", byBugTypeScrollPane); bySummary.setViewportView(bugSummaryEditorPane); groupByTabbedPane.addTab("Summary", bySummary); bugTreeBugDetailsSplitter.setTopComponent(groupByTabbedPane); bugDescriptionEditorPane.setEditable(false); bugDescriptionScrollPane.setViewportView(bugDescriptionEditorPane); bugDetailsTabbedPane.addTab("Details", bugDescriptionScrollPane); sourceTextAreaScrollPane.setMinimumSize(new java.awt.Dimension(22, 180)); sourceTextAreaScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); sourceTextArea.setEditable(false); sourceTextArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); sourceTextArea.setEnabled(false); sourceTextAreaScrollPane.setViewportView(sourceTextArea); bugDetailsTabbedPane.addTab("Source code", sourceTextAreaScrollPane); annotationTextAreaScrollPane.setViewportView(annotationTextArea); bugDetailsTabbedPane.addTab("Annotations", annotationTextAreaScrollPane); bugTreeBugDetailsSplitter.setBottomComponent(bugDetailsTabbedPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; bugTreePanel.add(bugTreeBugDetailsSplitter, gridBagConstraints); viewPanel.add(bugTreePanel, "BugTree"); consoleSplitter.setTopComponent(viewPanel); consoleScrollPane.setMinimumSize(new java.awt.Dimension(22, 100)); consoleScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); consoleMessageArea.setBackground(new java.awt.Color(204, 204, 204)); consoleMessageArea.setEditable(false); consoleMessageArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); consoleMessageArea.setMinimumSize(new java.awt.Dimension(0, 0)); consoleMessageArea.setAutoscrolls(false); consoleScrollPane.setViewportView(consoleMessageArea); consoleSplitter.setBottomComponent(consoleScrollPane); getContentPane().add(consoleSplitter, java.awt.BorderLayout.CENTER); theMenuBar.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setMnemonic('F'); fileMenu.setText("File"); fileMenu.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { fileMenuMenuSelected(evt); } }); newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setMnemonic('N'); newProjectItem.setText("New Project"); newProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newProjectItemActionPerformed(evt); } }); fileMenu.add(newProjectItem); openProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); openProjectItem.setMnemonic('O'); openProjectItem.setText("Open Project"); openProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openProjectItemActionPerformed(evt); } }); fileMenu.add(openProjectItem); saveProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectItem.setMnemonic('S'); saveProjectItem.setText("Save Project"); saveProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectItemActionPerformed(evt); } }); fileMenu.add(saveProjectItem); saveProjectAsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectAsItem.setMnemonic('A'); saveProjectAsItem.setText("Save Project As"); saveProjectAsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectAsItemActionPerformed(evt); } }); fileMenu.add(saveProjectAsItem); reloadProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); reloadProjectItem.setMnemonic('R'); reloadProjectItem.setText("Reload Project"); reloadProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { reloadProjectItemActionPerformed(evt); } }); fileMenu.add(reloadProjectItem); closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); closeProjectItem.setMnemonic('C'); closeProjectItem.setText("Close Project"); closeProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeProjectItemActionPerformed(evt); } }); fileMenu.add(closeProjectItem); fileMenu.add(jSeparator3); loadBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); loadBugsItem.setMnemonic('L'); loadBugsItem.setText("Load Bugs"); loadBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { loadBugsItemActionPerformed(evt); } }); fileMenu.add(loadBugsItem); saveBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveBugsItem.setMnemonic('B'); saveBugsItem.setText("Save Bugs"); saveBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveBugsItemActionPerformed(evt); } }); fileMenu.add(saveBugsItem); fileMenu.add(jSeparator6); exitItem.setFont(new java.awt.Font("Dialog", 0, 12)); exitItem.setMnemonic('X'); exitItem.setText("Exit"); exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); theMenuBar.add(fileMenu); viewMenu.setMnemonic('V'); viewMenu.setText("View"); viewMenu.setFont(new java.awt.Font("Dialog", 0, 12)); viewMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { viewMenuMenuSelected(evt); } }); viewConsoleItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewConsoleItem.setMnemonic('C'); viewConsoleItem.setText("Console"); viewConsoleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewConsoleItemActionPerformed(evt); } }); viewMenu.add(viewConsoleItem); viewBugDetailsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugDetailsItem.setMnemonic('D'); viewBugDetailsItem.setSelected(true); viewBugDetailsItem.setText("Bug Details"); viewBugDetailsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugDetailsItemActionPerformed(evt); } }); viewMenu.add(viewBugDetailsItem); fullDescriptionsItem.setFont(new java.awt.Font("Dialog", 0, 12)); fullDescriptionsItem.setMnemonic('F'); fullDescriptionsItem.setSelected(true); fullDescriptionsItem.setText("Full Descriptions"); fullDescriptionsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fullDescriptionsItemActionPerformed(evt); } }); viewMenu.add(fullDescriptionsItem); viewMenu.add(jSeparator7); lowPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); lowPriorityButton.setMnemonic('L'); lowPriorityButton.setText("Low priority"); lowPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { lowPriorityButtonActionPerformed(evt); } }); viewMenu.add(lowPriorityButton); mediumPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); mediumPriorityButton.setMnemonic('M'); mediumPriorityButton.setSelected(true); mediumPriorityButton.setText("Medium priority"); mediumPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mediumPriorityButtonActionPerformed(evt); } }); viewMenu.add(mediumPriorityButton); highPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); highPriorityButton.setMnemonic('H'); highPriorityButton.setText("High priority"); highPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { highPriorityButtonActionPerformed(evt); } }); viewMenu.add(highPriorityButton); theMenuBar.add(viewMenu); settingsMenu.setMnemonic('S'); settingsMenu.setText("Settings"); settingsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); configureDetectorsItem.setFont(new java.awt.Font("Dialog", 0, 12)); configureDetectorsItem.setMnemonic('C'); configureDetectorsItem.setText("Configure Detectors..."); configureDetectorsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { configureDetectorsItemActionPerformed(evt); } }); settingsMenu.add(configureDetectorsItem); theMenuBar.add(settingsMenu); helpMenu.setMnemonic('H'); helpMenu.setText("Help"); helpMenu.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setMnemonic('A'); aboutItem.setText("About"); aboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aboutItemActionPerformed(evt); } }); helpMenu.add(aboutItem); theMenuBar.add(helpMenu); setJMenuBar(theMenuBar); pack(); }//GEN-END:initComponents
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/f1735350a82bed8583295d11319850cb040559b6/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 2983, 26738, 273, 394, 6863, 18, 5328, 310, 18, 46, 5521, 8485, 5621, 3639, 1476, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 1008, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 2605, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 3874, 4109, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 22588, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 7334, 461, 16157, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 527, 10813, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 22588, 682, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 26844, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 30585, 16157, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 527, 1830, 1621, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 26844, 682, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 1206, 10813, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 1206, 7740, 1621, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 6581, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 6581, 5621, 3639, 21670, 10813, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 2983, 26738, 273, 394, 6863, 18, 5328, 310, 18, 46, 5521, 8485, 5621, 3639, 1476, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 1008, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 2605, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 3874, 4109, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 22588, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 7334, 461, 16157, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 2 ]
new Label( topContainer, SWT.NONE ) .setText( LABEL_FORMAT_DATE_TIME_PAGE );
new Label( topContainer, SWT.NONE ).setText( LABEL_FORMAT_DATE_TIME_PAGE );
protected void createContents( ) { setLayout( UIUtil.createGridLayoutWithoutMargin( ) ); initChoiceArray( ); getFormatTypes( ); Composite topContainer = new Composite( this, SWT.NONE ); GridData data = new GridData( GridData.FILL_HORIZONTAL ); topContainer.setLayoutData( data ); topContainer.setLayout( new GridLayout( 2, false ) ); new Label( topContainer, SWT.NONE ) .setText( LABEL_FORMAT_DATE_TIME_PAGE ); typeChoicer = new Combo( topContainer, SWT.READ_ONLY ); data = new GridData( GridData.FILL_HORIZONTAL ); typeChoicer.setLayoutData( data ); typeChoicer.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { reLayoutSubPages( ); updatePreview( ); } } ); typeChoicer.setItems( getFormatTypes( ) ); typeChoicer.select( 0 ); infoComp = new Composite( this, SWT.NONE ); infoComp.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); infoComp.setLayout( new StackLayout( ) ); createInfoPages( infoComp ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/1123f2b44bade54e4b5714c702c79b94bb65dca3/FormatDateTimePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatDateTimePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 6323, 12, 262, 202, 95, 202, 202, 542, 3744, 12, 6484, 1304, 18, 2640, 6313, 3744, 8073, 9524, 12, 262, 11272, 202, 202, 2738, 10538, 1076, 12, 11272, 202, 202, 588, 1630, 2016, 12, 11272, 202, 202, 9400, 1760, 2170, 273, 394, 14728, 12, 333, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 751, 501, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 11272, 202, 202, 3669, 2170, 18, 542, 3744, 751, 12, 501, 11272, 202, 202, 3669, 2170, 18, 542, 3744, 12, 394, 7145, 3744, 12, 576, 16, 629, 262, 11272, 202, 202, 2704, 5287, 12, 1760, 2170, 16, 348, 8588, 18, 9826, 262, 9506, 202, 18, 542, 1528, 12, 18210, 67, 7254, 67, 4594, 67, 4684, 67, 11219, 11272, 202, 202, 723, 9636, 21349, 273, 394, 1286, 1075, 12, 1760, 2170, 16, 348, 8588, 18, 6949, 67, 10857, 11272, 202, 202, 892, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 11272, 202, 202, 723, 9636, 21349, 18, 542, 3744, 751, 12, 501, 11272, 202, 202, 723, 9636, 21349, 18, 1289, 6233, 2223, 12, 394, 12977, 4216, 12, 262, 288, 1082, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 1082, 202, 95, 9506, 202, 266, 3744, 1676, 5716, 12, 11272, 9506, 202, 2725, 11124, 12, 11272, 1082, 202, 97, 202, 202, 97, 11272, 202, 202, 723, 9636, 21349, 18, 542, 3126, 12, 10959, 2016, 12, 262, 11272, 202, 202, 723, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 6323, 12, 262, 202, 95, 202, 202, 542, 3744, 12, 6484, 1304, 18, 2640, 6313, 3744, 8073, 9524, 12, 262, 11272, 202, 202, 2738, 10538, 1076, 12, 11272, 202, 202, 588, 1630, 2016, 12, 11272, 202, 202, 9400, 1760, 2170, 273, 394, 14728, 12, 333, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 751, 501, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 11272, 202, 202, 3669, 2170, 18, 542, 3744, 751, 12, 501, 11272, 202, 202, 3669, 2170, 18, 542, 3744, 12, 394, 7145, 3744, 12, 576, 16, 629, 262, 11272, 202, 202, 2704, 5287, 12, 1760, 2170, 16, 348, 8588, 18, 9826, 262, 9506, 202, 18, 542, 2 ]
private void importMeta() {
private void importMeta() throws IOException {
private void importMeta() { Properties meta = readProps(new File(_entryDir, EntryExtractor.META)); _format = getInt(meta, "format"); _size = getInt(meta, "size"); _blog = new BlogURI(new Hash(Base64.decode(meta.getProperty("blog"))), getLong(meta, "entry")); }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/20c42a175da627708ee774bfd159b62827258221/CachedEntry.java/buggy/apps/syndie/java/src/net/i2p/syndie/CachedEntry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1930, 2781, 1435, 1216, 1860, 288, 3639, 6183, 2191, 273, 855, 5047, 12, 2704, 1387, 24899, 4099, 1621, 16, 3841, 10958, 18, 19294, 10019, 3639, 389, 2139, 273, 8145, 12, 3901, 16, 315, 2139, 8863, 3639, 389, 1467, 273, 8145, 12, 3901, 16, 315, 1467, 8863, 3639, 389, 11439, 273, 394, 25464, 3098, 12, 2704, 2474, 12, 2171, 1105, 18, 3922, 12, 3901, 18, 588, 1396, 2932, 11439, 6, 3719, 3631, 11105, 12, 3901, 16, 315, 4099, 7923, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1930, 2781, 1435, 1216, 1860, 288, 3639, 6183, 2191, 273, 855, 5047, 12, 2704, 1387, 24899, 4099, 1621, 16, 3841, 10958, 18, 19294, 10019, 3639, 389, 2139, 273, 8145, 12, 3901, 16, 315, 2139, 8863, 3639, 389, 1467, 273, 8145, 12, 3901, 16, 315, 1467, 8863, 3639, 389, 11439, 273, 394, 25464, 3098, 12, 2704, 2474, 12, 2171, 1105, 18, 3922, 12, 3901, 18, 588, 1396, 2932, 11439, 6, 3719, 3631, 11105, 12, 3901, 16, 315, 4099, 7923, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public QueryDescr query() throws RecognitionException { QueryDescr query; Token loc=null; String queryName = null; query = null; try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:372:17: ( opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:372:17: opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol { following.push(FOLLOW_opt_eol_in_query522); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,28,FOLLOW_28_in_query528); following.push(FOLLOW_word_in_query532); queryName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_query534); opt_eol(); following.pop(); query = new QueryDescr( queryName, null ); query.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); AndDescr lhs = new AndDescr(); query.setLhs( lhs ); lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:380:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt17=2; switch ( input.LA(1) ) { case 23: int LA17_1 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("380:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 1, input); throw nvae; } break; case EOL: int LA17_2 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("380:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 2, input); throw nvae; } break; case 29: int LA17_3 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("380:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 3, input); throw nvae; } break; case 56: int LA17_4 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("380:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 4, input); throw nvae; } break; case 57: int LA17_5 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("380:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 5, input); throw nvae; } break; case 58: int LA17_6 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("380:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 6, input); throw nvae; } break; case ID: int LA17_7 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("380:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 7, input); throw nvae; } break; case 15: int LA17_8 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("380:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 8, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 24: case 25: case 26: case 27: case 28: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 59: case 60: case 61: alt17=1; break; default: NoViableAltException nvae = new NoViableAltException("380:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 0, input); throw nvae; } switch (alt17) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:381:25: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "query", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_query550); expander_lhs_block(lhs); following.pop(); } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:382:27: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_query558); normal_lhs_block(lhs); following.pop(); } break; } match(input,29,FOLLOW_29_in_query573); following.push(FOLLOW_opt_eol_in_query575); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return query; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/cb210a30853642e270a3bba6ce570409f6046852/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2770, 16198, 843, 1435, 1216, 9539, 288, 6647, 2770, 16198, 843, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 514, 843, 461, 273, 446, 31, 540, 202, 202, 2271, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 6418, 22, 30, 4033, 30, 261, 2153, 67, 30951, 1515, 33, 296, 2271, 11, 843, 461, 33, 2076, 2153, 67, 30951, 20316, 4542, 264, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 571, 2212, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 262, 296, 409, 11, 2153, 67, 30951, 262, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 6418, 22, 30, 4033, 30, 2153, 67, 30951, 1515, 33, 296, 2271, 11, 843, 461, 33, 2076, 2153, 67, 30951, 20316, 4542, 264, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 571, 2212, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 262, 296, 409, 11, 2153, 67, 30951, 5411, 288, 5411, 3751, 18, 6206, 12, 29890, 67, 3838, 67, 30951, 67, 267, 67, 2271, 25, 3787, 1769, 5411, 2153, 67, 30951, 5621, 5411, 3751, 18, 5120, 5621, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2770, 16198, 843, 1435, 1216, 9539, 288, 6647, 2770, 16198, 843, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 514, 843, 461, 273, 446, 31, 540, 202, 202, 2271, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 6418, 22, 30, 4033, 30, 261, 2153, 67, 30951, 1515, 33, 296, 2271, 11, 843, 461, 33, 2076, 2153, 67, 30951, 20316, 4542, 264, 67, 80, 4487, 67, 2629, 63, 80, 4487, 65, 571, 2212, 67, 80, 4487, 67, 2629, 63, 80, 2 ]
cg = new ClientGet(this, message); requestsByIdentifier.put(id, cg);
try { cg = new ClientGet(this, message); if(!persistent) requestsByIdentifier.put(id, cg); } catch (IdentifierCollisionException e) { success = false; }
public void startClientGet(ClientGetMessage message) { String id = message.identifier; ClientGet cg = null; boolean success; synchronized(this) { if(isClosed) return; success = !requestsByIdentifier.containsKey(id); if(success) { cg = new ClientGet(this, message); requestsByIdentifier.put(id, cg); } } if(!success) { Logger.normal(this, "Identifier collision on "+this); FCPMessage msg = new IdentifierCollisionMessage(id); outputHandler.queue(msg); return; } else { // Register before starting, because it may complete immediately, and if it does, // we may end up with it not being removable because it wasn't registered! if(cg.isPersistent()) { if(cg.isPersistentForever()) server.forceStorePersistentRequests(); } cg.start(); } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/5172c6eaf3d3ff5aaaf0703e2a38ccebe1b75ec3/FCPConnectionHandler.java/buggy/src/freenet/node/fcp/FCPConnectionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1227, 967, 12, 1227, 967, 1079, 883, 13, 288, 202, 202, 780, 612, 273, 883, 18, 5644, 31, 202, 202, 1227, 967, 14947, 273, 446, 31, 202, 202, 6494, 2216, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 291, 7395, 13, 327, 31, 1082, 202, 4768, 273, 401, 11420, 27498, 18, 12298, 653, 12, 350, 1769, 1082, 202, 430, 12, 4768, 13, 288, 9506, 202, 26275, 273, 394, 2445, 967, 12, 2211, 16, 883, 1769, 9506, 202, 11420, 27498, 18, 458, 12, 350, 16, 14947, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 12, 5, 4768, 13, 288, 1082, 202, 3328, 18, 6130, 12, 2211, 16, 315, 3004, 17740, 603, 13773, 2211, 1769, 1082, 202, 42, 4258, 1079, 1234, 273, 394, 10333, 13535, 1951, 1079, 12, 350, 1769, 1082, 202, 2844, 1503, 18, 4000, 12, 3576, 1769, 1082, 202, 2463, 31, 202, 202, 97, 469, 288, 1082, 202, 759, 5433, 1865, 5023, 16, 2724, 518, 2026, 3912, 7636, 16, 471, 309, 518, 1552, 16, 1082, 202, 759, 732, 2026, 679, 731, 598, 518, 486, 3832, 2797, 429, 2724, 518, 14487, 1404, 4104, 5, 1082, 202, 430, 12, 26275, 18, 291, 11906, 10756, 288, 9506, 202, 430, 12, 26275, 18, 291, 11906, 13573, 502, 10756, 6862, 202, 3567, 18, 5734, 2257, 11906, 6421, 5621, 1082, 202, 97, 1082, 202, 26275, 18, 1937, 5621, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1227, 967, 12, 1227, 967, 1079, 883, 13, 288, 202, 202, 780, 612, 273, 883, 18, 5644, 31, 202, 202, 1227, 967, 14947, 273, 446, 31, 202, 202, 6494, 2216, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 291, 7395, 13, 327, 31, 1082, 202, 4768, 273, 401, 11420, 27498, 18, 12298, 653, 12, 350, 1769, 1082, 202, 430, 12, 4768, 13, 288, 9506, 202, 26275, 273, 394, 2445, 967, 12, 2211, 16, 883, 1769, 9506, 202, 11420, 27498, 18, 458, 12, 350, 16, 14947, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 12, 5, 4768, 13, 288, 1082, 202, 3328, 18, 6130, 12, 2211, 16, 315, 3004, 2 ]
this(text, 1, 1);
this(text, text, 1, 1);
public TokenStringLiteral (String text) { this(text, 1, 1); }
5345 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5345/6676d99df452023146df224343fbbc77da7ccc7b/TokenStringLiteral.java/buggy/danga/s2/TokenStringLiteral.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3155, 28565, 261, 780, 977, 13, 288, 202, 2211, 12, 955, 16, 977, 16, 404, 16, 404, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3155, 28565, 261, 780, 977, 13, 288, 202, 2211, 12, 955, 16, 977, 16, 404, 16, 404, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (localFile.exists()) { String bytesString = Long.toString(localFile.length()); return MessageFormat.format(BYTES_LABEL, new Object[] { bytesString }); } return NOT_EXIST_TEXT;
if (localFile.exists()) { String bytesString = Long.toString(localFile.length()); return MessageFormat.format(BYTES_LABEL, new Object[] { bytesString });
private String getSizeString(IFile file) { if (!file.isLocal(IResource.DEPTH_ZERO)) return NOT_LOCAL_TEXT; IPath location = file.getLocation(); if (location == null) { if (file.isLinked()) return MISSING_PATH_VARIABLE_TEXT; return NOT_EXIST_TEXT; } else { File localFile = location.toFile(); if (localFile.exists()) { String bytesString = Long.toString(localFile.length()); return MessageFormat.format(BYTES_LABEL, new Object[] { bytesString }); } return NOT_EXIST_TEXT; } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/647303195df4ad4885ae8f3a3e70f141f1777eb8/ResourceInfoPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 9950, 780, 12, 45, 812, 585, 13, 288, 202, 202, 430, 16051, 768, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 1082, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 202, 45, 743, 2117, 273, 585, 18, 588, 2735, 5621, 202, 202, 430, 261, 3562, 422, 446, 13, 288, 1082, 202, 430, 261, 768, 18, 291, 13174, 10756, 9506, 202, 2463, 28695, 67, 4211, 67, 16444, 67, 5151, 31, 1082, 202, 2463, 4269, 67, 11838, 67, 5151, 31, 202, 202, 97, 469, 288, 1082, 202, 812, 30649, 273, 2117, 18, 869, 812, 5621, 1082, 202, 430, 261, 3729, 812, 18, 1808, 10756, 288, 9506, 202, 780, 1731, 780, 273, 3407, 18, 10492, 12, 3729, 812, 18, 2469, 10663, 9506, 202, 2463, 17377, 18, 2139, 12, 13718, 67, 13545, 16, 25083, 202, 2704, 1033, 8526, 288, 1731, 780, 15549, 1082, 202, 97, 1082, 202, 2463, 4269, 67, 11838, 67, 5151, 31, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 9950, 780, 12, 45, 812, 585, 13, 288, 202, 202, 430, 16051, 768, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 1082, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 202, 45, 743, 2117, 273, 585, 18, 588, 2735, 5621, 202, 202, 430, 261, 3562, 422, 446, 13, 288, 1082, 202, 430, 261, 768, 18, 291, 13174, 10756, 9506, 202, 2463, 28695, 67, 4211, 67, 16444, 67, 5151, 31, 1082, 202, 2463, 4269, 67, 11838, 67, 5151, 31, 202, 202, 97, 469, 288, 1082, 202, 812, 30649, 273, 2117, 18, 869, 812, 5621, 1082, 202, 430, 261, 3729, 812, 18, 1808, 10756, 288, 9506, 202, 780, 1731, 780, 273, 3407, 18, 2 ]
ph.setCommandStart(true);
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\004': // ^D case '\032': // ^Z case -1: //end of script. return 0; // white spaces case ' ': case '\t': case '\f': case '\r': case '\013': // '\v' space_seen = true; continue retry; case '#': // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n': switch (ph.getLexState()) { case LexState.EXPR_BEG: case LexState.EXPR_FNAME: case LexState.EXPR_DOT: continue retry; default: break; } ph.setCommandStart(true); ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*': if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)) { ph.rb_warning("`*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=': if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (; ; ) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<': c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"': return parse_string(c, c, c); case '`': if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'': return parse_qstring(c, 0); case '?': if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.m_newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&': if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+': c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-': c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return start_num(c); case ']': case '}': ph.setLexState(LexState.EXPR_END); return c; case ')': if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':': c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/': if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',': case ';': // ph.setCommandStart(true); ph.setLexState(LexState.EXPR_BEG); return c; case '~': if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(': if (cond_nest > 0) { cond_stack = (cond_stack << 1 ) | 0; } // ph.setCommandStart(true); if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (space_seen) { if (ph.getLexState() == LexState.EXPR_CMDARG) { c = Token.tLPAREN_ARG; } else if (ph.getLexState() == LexState.EXPR_ARG) { ph.rb_warning(tok() + " (...) interpreted as method call"); c = Token.tLPAREN_ARG; } } ph.setLexState(LexState.EXPR_BEG); return c; case '[': if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{': if (!IS_ARG()) { if (space_seen && ph.getLexState() == LexState.EXPR_ENDARG) { c = Token.tLBRACE_ARG; } if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG) { c = Token.tLBRACE; } } ph.setLexState(LexState.EXPR_BEG); return c; case '\\': c = nextc(); if (c == '\n') { space_seen = true; continue retry; // skip \\n } pushback(c); return '\\'; case '%': quotation : for (; ; ) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q': return parse_string('"', term, paren); case 'q': return parse_qstring(term, paren); case 'w': return parse_quotedwords(term, paren); case 'x': return parse_string('`', term, paren); case 'r': return parse_regx(term, paren); default: yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$': ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_': // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~': // $~: match-data ph.local_cnt(c); // fall through case '*': // $*: argv case '$': // $$: pid case '?': // $?: last status case '!': // $!: error string case '@': // $@: error position case '/': // $/: input record separator case '\\':// $\: output record separator case ';': // $;: field separator case ',': // $,: output field separator case '.': // $.: last read line number case '=': // $=: ignorecase case ':': // $:: load path case '<': // $<: reading filename case '>': // $>: default output handle case '\"':// $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = ruby.intern(tok()); return Token.tGVAR; case '-': tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = ruby.intern(tok()); /* * xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&': // $&: last match case '`': // $`: string before last match case '\'':// $': string after last match case '+': // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default: if (!is_identchar(c)) { pushback(c); return '$'; } case '0': tokadd('$'); } break; case '@': c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default: if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); /* * if (ismbchar(c)) { * int i, len = mbclen(c)-1; * for (i = 0; i < len; i++) { * c = nextc(); * tokadd(c); * } * } */ c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$': ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@': ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default: if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P() && state != LexState.EXPR_CMDARG) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG || ph.getLexState() == LexState.EXPR_CMDARG) { if (cmd_state) { ph.setLexState(LexState.EXPR_CMDARG); } else { ph.setLexState(LexState.EXPR_ARG); } } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = /* last_id = */ ruby.intern(tok()); //XXX really overwrite last_id? return result; } }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/clean/org/jruby/parser/DefaultRubyParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 1250, 3476, 67, 15156, 273, 629, 31, 3639, 1250, 1797, 67, 2019, 31, 3639, 5323, 2121, 5323, 31, 3639, 1797, 67, 2019, 273, 1844, 18, 291, 2189, 1685, 5621, 3639, 1844, 18, 542, 2189, 1685, 12, 5743, 1769, 3639, 3300, 294, 3639, 364, 261, 31, 274, 262, 288, 5411, 1620, 261, 71, 273, 1024, 71, 10756, 288, 7734, 648, 2337, 20, 4278, 368, 423, 1506, 7734, 648, 2337, 26565, 4278, 368, 3602, 40, 7734, 648, 2337, 20, 1578, 4278, 368, 3602, 62, 7734, 648, 300, 21, 30, 368, 409, 434, 2728, 18, 10792, 327, 374, 31, 7734, 368, 9578, 7292, 7734, 648, 296, 4290, 7734, 648, 2337, 88, 4278, 7734, 648, 2337, 74, 4278, 7734, 648, 2337, 86, 4278, 7734, 648, 2337, 1611, 23, 4278, 368, 2337, 90, 11, 10792, 3476, 67, 15156, 273, 638, 31, 10792, 1324, 3300, 31, 7734, 648, 2946, 4278, 368, 518, 1807, 279, 2879, 10792, 1323, 14015, 71, 273, 1024, 71, 10756, 480, 2337, 82, 6134, 288, 13491, 309, 261, 71, 422, 300, 21, 13, 288, 18701, 327, 374, 31, 13491, 289, 10792, 289, 10792, 368, 4159, 3059, 7734, 648, 2337, 82, 4278, 10792, 1620, 261, 844, 18, 588, 14756, 1119, 10756, 288, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 5948, 43, 30, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 42, 1985, 30, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 17591, 30, 18701, 1324, 3300, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 1250, 3476, 67, 15156, 273, 629, 31, 3639, 1250, 1797, 67, 2019, 31, 3639, 5323, 2121, 5323, 31, 3639, 1797, 67, 2019, 273, 1844, 18, 291, 2189, 1685, 5621, 3639, 1844, 18, 542, 2189, 1685, 12, 5743, 1769, 3639, 3300, 294, 3639, 364, 261, 31, 274, 262, 288, 5411, 1620, 261, 71, 273, 1024, 71, 10756, 288, 7734, 648, 2337, 20, 4278, 368, 423, 1506, 7734, 648, 2337, 26565, 4278, 368, 3602, 40, 7734, 648, 2337, 20, 1578, 4278, 368, 3602, 62, 7734, 648, 300, 21, 30, 368, 409, 434, 2728, 18, 10792, 327, 374, 31, 7734, 368, 9578, 7292, 7734, 648, 296, 4290, 7734, 648, 2 ]
add(splitter, BorderLayout.CENTER);
add(mySplitter, BorderLayout.CENTER);
public InspectionResultsView(final Project project, InspectionProfile inspectionProfile, AnalysisScope scope) { setLayout(new BorderLayout()); myProject = project; myInspectionProfile = inspectionProfile; myScope = scope; myTree = new InspectionTree(project); myOccurenceNavigator = new OccurenceNavigatorSupport(myTree) { @Nullable protected Navigatable createDescriptorForNode(DefaultMutableTreeNode node) { if (node instanceof RefElementNode) { final RefElementNode refNode = (RefElementNode)node; if (refNode.hasDescriptorsUnder()) return null; final RefElement element = refNode.getElement(); if (element == null || !element.isValid()) return null; final ProblemDescriptor problem = refNode.getProblem(); if (problem != null) { final PsiElement psiElement = problem.getPsiElement(); if (psiElement == null || !psiElement.isValid()) return null; return getOpenFileDescriptor(psiElement); } return getOpenFileDescriptor(element); } else if (node instanceof ProblemDescriptionNode) { if (!((ProblemDescriptionNode)node).getElement().isValid()) return null; final PsiElement psiElement = ((ProblemDescriptionNode)node).getDescriptor().getPsiElement(); if (psiElement == null || !psiElement.isValid()) return null; return getOpenFileDescriptor(psiElement); } return null; } public String getNextOccurenceActionName() { return "Go Next Problem"; } public String getPreviousOccurenceActionName() { return "Go Prev Problem"; } }; myBrowser = new Browser(this); final InspectionManagerEx manager = (InspectionManagerEx)InspectionManager.getInstance(project); final Splitter splitter; splitter = new Splitter(false, manager.getUIOptions().SPLITTER_PROPORTION); splitter.setFirstComponent(ScrollPaneFactory.createScrollPane(myTree)); splitter.setSecondComponent(myBrowser); splitter.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { if (Splitter.PROP_PROPORTION.equals(evt.getPropertyName())) { final InspectionManagerEx manager = (InspectionManagerEx)InspectionManager.getInstance(project); manager.setSplitterProportion(((Float)evt.getNewValue()).floatValue()); } } }); myTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() { public void valueChanged(TreeSelectionEvent e) { syncBrowser(); syncSource(); } }); myTree.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { if (!e.isPopupTrigger() && e.getClickCount() == 2) { OpenSourceUtil.openSourcesFrom(DataManager.getInstance().getDataContext(InspectionResultsView.this), true); } } }); myTree.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ENTER) { OpenSourceUtil.openSourcesFrom(DataManager.getInstance().getDataContext(InspectionResultsView.this), false); } } }); myTree.addMouseListener(new PopupHandler() { public void invokePopup(Component comp, int x, int y) { popupInvoked(comp, x, y); } }); SmartExpander.installOn(myTree); myBrowser.addClickListener(new Browser.ClickListener() { public void referenceClicked(final Browser.ClickEvent e) { if (e.getEventType() == Browser.ClickEvent.REF_ELEMENT) { showSource(e.getClickedElement()); } else if (e.getEventType() == Browser.ClickEvent.FILE_OFFSET) { final VirtualFile file = e.getFile(); OpenFileDescriptor descriptor = new OpenFileDescriptor(project, file, e.getStartOffset()); Editor editor = FileEditorManager.getInstance(project).openTextEditor(descriptor, true); TextAttributes selectionAttributes = EditorColorsManager.getInstance().getGlobalScheme().getAttributes( EditorColors.SEARCH_RESULT_ATTRIBUTES); HighlightManager.getInstance(project).addRangeHighlight(editor, e.getStartOffset(), e.getEndOffset(), selectionAttributes, true, null); } } }); add(splitter, BorderLayout.CENTER); DefaultActionGroup group = new DefaultActionGroup(); group.add(new CloseAction()); group.add(new RerunAction(this)); group.add(manager.createToggleAutoscrollAction()); group.add(manager.createGroupBySeverityAction()); group.add(new PreviousOccurenceToolbarAction(getOccurenceNavigator())); group.add(new NextOccurenceToolbarAction(getOccurenceNavigator())); group.add(new ExportHTMLAction()); group.add(new EditSettingsAction()); group.add(new HelpAction()); group.add(new InvokeQuickFixAction()); ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.CODE_INSPECTION, group, false); add(actionToolbar.getComponent(), BorderLayout.WEST); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/a8c458ccadb63729cc057f72199e325c8e861025/InspectionResultsView.java/buggy/source/com/intellij/codeInspection/ui/InspectionResultsView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 22085, 7017, 3447, 1767, 12, 6385, 5420, 1984, 16, 22085, 7017, 4029, 2763, 7017, 4029, 16, 16318, 3876, 2146, 13, 288, 565, 18479, 12, 2704, 30814, 10663, 565, 3399, 4109, 273, 1984, 31, 565, 3399, 14985, 4029, 273, 2763, 7017, 4029, 31, 565, 3399, 3876, 273, 2146, 31, 565, 3399, 2471, 273, 394, 22085, 7017, 2471, 12, 4406, 1769, 565, 3399, 24269, 25267, 22817, 273, 394, 531, 952, 25267, 22817, 6289, 12, 4811, 2471, 13, 288, 1377, 632, 13349, 1377, 4750, 423, 4911, 8163, 752, 3187, 31058, 12, 1868, 19536, 12513, 756, 13, 288, 3639, 309, 261, 2159, 1276, 3941, 1046, 907, 13, 288, 1850, 727, 3941, 1046, 907, 1278, 907, 273, 261, 1957, 1046, 907, 13, 2159, 31, 1850, 309, 261, 1734, 907, 18, 5332, 12705, 14655, 10756, 327, 446, 31, 1850, 727, 3941, 1046, 930, 273, 1278, 907, 18, 21336, 5621, 1850, 309, 261, 2956, 422, 446, 747, 401, 2956, 18, 26810, 10756, 327, 446, 31, 1850, 727, 21685, 3187, 6199, 273, 1278, 907, 18, 588, 13719, 5621, 1850, 309, 261, 18968, 480, 446, 13, 288, 5411, 727, 453, 7722, 1046, 23921, 1046, 273, 6199, 18, 588, 52, 7722, 1046, 5621, 5411, 309, 261, 24275, 1046, 422, 446, 747, 401, 24275, 1046, 18, 26810, 10756, 327, 446, 31, 5411, 327, 29607, 812, 3187, 12, 24275, 1046, 1769, 1850, 289, 1850, 327, 29607, 812, 3187, 12, 2956, 1769, 3639, 289, 3639, 469, 309, 261, 2159, 1276, 21685, 3291, 907, 13, 288, 1850, 309, 16051, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 22085, 7017, 3447, 1767, 12, 6385, 5420, 1984, 16, 22085, 7017, 4029, 2763, 7017, 4029, 16, 16318, 3876, 2146, 13, 288, 565, 18479, 12, 2704, 30814, 10663, 565, 3399, 4109, 273, 1984, 31, 565, 3399, 14985, 4029, 273, 2763, 7017, 4029, 31, 565, 3399, 3876, 273, 2146, 31, 565, 3399, 2471, 273, 394, 22085, 7017, 2471, 12, 4406, 1769, 565, 3399, 24269, 25267, 22817, 273, 394, 531, 952, 25267, 22817, 6289, 12, 4811, 2471, 13, 288, 1377, 632, 13349, 1377, 4750, 423, 4911, 8163, 752, 3187, 31058, 12, 1868, 19536, 12513, 756, 13, 288, 3639, 309, 261, 2159, 1276, 3941, 1046, 907, 13, 288, 1850, 727, 3941, 1046, 907, 1278, 907, 273, 261, 1957, 1046, 907, 13, 2 ]
Thread.sleep(3000);
Thread.sleep(300000);
public void testLiveReconnect() throws Exception { System.out.println("Please stop and restart the Asterisk server..."); while (true) { Thread.sleep(3000); } }
25582 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25582/defab4e9e16aa25ec263b1b665eae49e6d7d4ddd/TestLiveReconnect.java/clean/src/integrationtest/org/asteriskjava/live/TestLiveReconnect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 12328, 20427, 1435, 1216, 1185, 565, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 8496, 2132, 471, 7870, 326, 432, 8190, 10175, 1438, 7070, 1769, 3639, 1323, 261, 3767, 13, 3639, 288, 5411, 4884, 18, 19607, 12, 23, 11706, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 12328, 20427, 1435, 1216, 1185, 565, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 8496, 2132, 471, 7870, 326, 432, 8190, 10175, 1438, 7070, 1769, 3639, 1323, 261, 3767, 13, 3639, 288, 5411, 4884, 18, 19607, 12, 23, 11706, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
state.bottomInputs.put(outputInfo.getName(), bottomInput);
state.bottomInputs.put(outputName, bottomInput);
public void start(PipelineContext context) { State state = (State) getState(context); if (!state.started) { Processor processor = JavaProcessor.this.getProcessor(context); // Check user processor does not have a config input for (Iterator i = processor.getInputsInfo().iterator(); i.hasNext();) { final ProcessorInputOutputInfo inputInfo = (ProcessorInputOutputInfo) i.next(); if (inputInfo.getName().equals(INPUT_CONFIG)) throw new OXFException("Processor used by Java processor cannot have a config input"); } Map inputMap = getConnectedInputs(); for (Iterator i = inputMap.keySet().iterator(); i.hasNext();) { String inputName = (String) i.next(); List inputsForName = (List) inputMap.get(inputName); for (Iterator j = inputsForName.iterator(); j.hasNext();) { final ProcessorInput javaProcessorInput = (ProcessorInput) j.next(); // Skip our own config input if (inputName.equals(INPUT_CONFIG)) continue; // Delegate ProcessorInput userProcessorInput = processor.createInput(inputName); ProcessorOutput topOutput = new ProcessorImpl.ProcessorOutputImpl(getClass(), inputName) { protected void readImpl(PipelineContext context, ContentHandler contentHandler) { javaProcessorInput.getOutput().read(context, contentHandler); } }; // Connect userProcessorInput.setOutput(topOutput); topOutput.setInput(userProcessorInput); } } boolean hasOutputs = false; // Connect processor outputs for (Iterator i = processor.getOutputsInfo().iterator(); i.hasNext();) { hasOutputs = true; ProcessorInputOutputInfo outputInfo = (ProcessorInputOutputInfo) i.next(); ProcessorOutput processorOutput = processor.createOutput(outputInfo.getName()); ProcessorInput bottomInput = new ProcessorImpl.ProcessorInputImpl(getClass(), outputInfo.getName()); processorOutput.setInput(bottomInput); bottomInput.setOutput(processorOutput); state.bottomInputs.put(outputInfo.getName(), bottomInput); } // Start processor if required if (!hasOutputs) { processor.start(context); } state.started = true; } }
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/0c50d4acf43136ebf44eeddf98996a02a89f939c/JavaProcessor.java/clean/src/java/org/orbeon/oxf/processor/JavaProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 12, 8798, 1042, 819, 13, 288, 3639, 3287, 919, 273, 261, 1119, 13, 8997, 12, 2472, 1769, 3639, 309, 16051, 2019, 18, 14561, 13, 288, 5411, 15476, 6659, 273, 5110, 5164, 18, 2211, 18, 588, 5164, 12, 2472, 1769, 5411, 368, 2073, 729, 6659, 1552, 486, 1240, 279, 642, 810, 5411, 364, 261, 3198, 277, 273, 6659, 18, 588, 10059, 966, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 727, 15476, 1210, 1447, 966, 810, 966, 273, 261, 5164, 1210, 1447, 966, 13, 277, 18, 4285, 5621, 7734, 309, 261, 2630, 966, 18, 17994, 7675, 14963, 12, 15934, 67, 7203, 3719, 10792, 604, 394, 531, 60, 42, 503, 2932, 5164, 1399, 635, 5110, 6659, 2780, 1240, 279, 642, 810, 8863, 5411, 289, 5411, 1635, 810, 863, 273, 336, 8932, 10059, 5621, 5411, 364, 261, 3198, 277, 273, 810, 863, 18, 856, 694, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 514, 31764, 273, 261, 780, 13, 277, 18, 4285, 5621, 7734, 987, 4540, 1290, 461, 273, 261, 682, 13, 810, 863, 18, 588, 12, 2630, 461, 1769, 7734, 364, 261, 3198, 525, 273, 4540, 1290, 461, 18, 9838, 5621, 525, 18, 5332, 2134, 5621, 13, 288, 10792, 727, 15476, 1210, 2252, 5164, 1210, 273, 261, 5164, 1210, 13, 525, 18, 4285, 5621, 10792, 368, 6611, 3134, 4953, 642, 810, 10792, 309, 261, 2630, 461, 18, 14963, 12, 15934, 67, 7203, 3719, 13491, 1324, 31, 10792, 368, 27687, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 12, 8798, 1042, 819, 13, 288, 3639, 3287, 919, 273, 261, 1119, 13, 8997, 12, 2472, 1769, 3639, 309, 16051, 2019, 18, 14561, 13, 288, 5411, 15476, 6659, 273, 5110, 5164, 18, 2211, 18, 588, 5164, 12, 2472, 1769, 5411, 368, 2073, 729, 6659, 1552, 486, 1240, 279, 642, 810, 5411, 364, 261, 3198, 277, 273, 6659, 18, 588, 10059, 966, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 727, 15476, 1210, 1447, 966, 810, 966, 273, 261, 5164, 1210, 1447, 966, 13, 277, 18, 4285, 5621, 7734, 309, 261, 2630, 966, 18, 17994, 7675, 14963, 12, 15934, 67, 7203, 3719, 10792, 604, 394, 531, 60, 42, 503, 2932, 5164, 1399, 635, 2 ]
public OutputHandler(OutputStream out, ServerConnection parent) {
public OutputHandler(OutputStream out) {
public OutputHandler(OutputStream out, ServerConnection parent) { this.out = out; this.parent = parent; this.setName("Output Handler (client -> server)"); keeprunning = true; }
47073 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47073/15e8c540792ed0b7f2128357d3880c352119f47e/ServerConnection.java/clean/src/goat/core/ServerConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3633, 1503, 12, 4632, 596, 13, 288, 5411, 333, 18, 659, 273, 596, 31, 5411, 333, 18, 2938, 273, 982, 31, 5411, 333, 18, 542, 461, 2932, 1447, 4663, 261, 2625, 317, 1438, 2225, 1769, 5411, 417, 1340, 683, 318, 2093, 273, 638, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3633, 1503, 12, 4632, 596, 13, 288, 5411, 333, 18, 659, 273, 596, 31, 5411, 333, 18, 2938, 273, 982, 31, 5411, 333, 18, 542, 461, 2932, 1447, 4663, 261, 2625, 317, 1438, 2225, 1769, 5411, 417, 1340, 683, 318, 2093, 273, 638, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return new Integer(AbstractDynamicMock.this.hashCode()); }
return new Integer(AbstractDynamicMock.this.hashCode()); }
public Object invoke( Invocation invocation ) throws Throwable { return new Integer(AbstractDynamicMock.this.hashCode()); }
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/AbstractDynamicMock.java/clean/jmock/core/src/org/jmock/core/AbstractDynamicMock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1033, 4356, 12, 11298, 9495, 262, 1216, 4206, 288, 5411, 327, 394, 2144, 12, 7469, 9791, 9865, 18, 2211, 18, 2816, 1085, 10663, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1033, 4356, 12, 11298, 9495, 262, 1216, 4206, 288, 5411, 327, 394, 2144, 12, 7469, 9791, 9865, 18, 2211, 18, 2816, 1085, 10663, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return null;
return JaxenConstants.EMPTY_ITERATOR;
public Object getParentNode(Object contextNode) { if ( contextNode instanceof Element ) { return ((Element)contextNode).getParent(); } return null; }
12974 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12974/c4fc5760f694eb94d37e66961a12faa59de78178/DocumentNavigator.java/clean/src/java/main/org/jaxen/javabean/DocumentNavigator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 5089, 907, 12, 921, 819, 907, 13, 565, 288, 3639, 309, 261, 819, 907, 1276, 3010, 262, 3639, 288, 5411, 327, 14015, 1046, 13, 2472, 907, 2934, 588, 3054, 5621, 3639, 289, 3639, 327, 25824, 275, 2918, 18, 13625, 67, 11844, 3575, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 5089, 907, 12, 921, 819, 907, 13, 565, 288, 3639, 309, 261, 819, 907, 1276, 3010, 262, 3639, 288, 5411, 327, 14015, 1046, 13, 2472, 907, 2934, 588, 3054, 5621, 3639, 289, 3639, 327, 25824, 275, 2918, 18, 13625, 67, 11844, 3575, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ParenthesesUtils.stripParentheses(rExpression);
PsiUtil.deparenthesizeExpression(rExpression);
private static String getSystemArrayCopyText( PsiForStatement forStatement) throws IncorrectOperationException { final PsiBinaryExpression condition = (PsiBinaryExpression)forStatement.getCondition(); if (condition == null) { return null; } final PsiExpression limit; if (condition.getOperationTokenType() == JavaTokenType.LT) { limit = condition.getROperand(); } else { limit = condition.getLOperand(); } if (limit == null) { return null; } final PsiStatement initialization = forStatement.getInitialization(); if (initialization == null) { return null; } if (!(initialization instanceof PsiDeclarationStatement)) { return null; } final PsiDeclarationStatement declaration = (PsiDeclarationStatement)initialization; if (declaration.getDeclaredElements().length != 1) { return null; } final PsiLocalVariable variable = (PsiLocalVariable) declaration.getDeclaredElements()[0]; final String lengthText = getLengthText(limit, variable); final PsiExpressionStatement body = getBody(forStatement); if (body == null) { return null; } final PsiAssignmentExpression assignment = (PsiAssignmentExpression)body.getExpression(); final PsiExpression lExpression = assignment.getLExpression(); final PsiArrayAccessExpression lhs = (PsiArrayAccessExpression) ParenthesesUtils.stripParentheses(lExpression); if (lhs == null) { return null; } final PsiExpression lArray = lhs.getArrayExpression(); final String toArrayText = lArray.getText(); final PsiExpression rExpression = assignment.getRExpression(); final PsiArrayAccessExpression rhs = (PsiArrayAccessExpression) ParenthesesUtils.stripParentheses(rExpression); if (rhs == null) { return null; } final PsiExpression rArray = rhs.getArrayExpression(); final String fromArrayText = rArray.getText(); final PsiExpression rhsIndexExpression = rhs.getIndexExpression(); final String fromOffsetText = getOffsetText(rhsIndexExpression, variable); final PsiExpression lhsIndexExpression = lhs.getIndexExpression(); final String toOffsetText = getOffsetText(lhsIndexExpression, variable); @NonNls final StringBuilder buffer = new StringBuilder(60); buffer.append("System.arraycopy("); buffer.append(fromArrayText); buffer.append(", "); buffer.append(fromOffsetText); buffer.append(", "); buffer.append(toArrayText); buffer.append(", "); buffer.append(toOffsetText); buffer.append(", "); buffer.append(lengthText); buffer.append(");"); return buffer.toString(); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3dc9c2dae8f9ce8fcdd13e8c1b00c89c82a53d92/ManualArrayCopyInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/performance/ManualArrayCopyInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 760, 514, 12996, 1076, 2951, 1528, 12, 7734, 453, 7722, 1290, 3406, 364, 3406, 13, 7734, 1216, 657, 6746, 10602, 288, 5411, 727, 453, 7722, 5905, 2300, 2269, 273, 10792, 261, 52, 7722, 5905, 2300, 13, 1884, 3406, 18, 588, 3418, 5621, 5411, 309, 261, 4175, 422, 446, 13, 288, 7734, 327, 446, 31, 5411, 289, 5411, 727, 453, 7722, 2300, 1800, 31, 5411, 309, 261, 4175, 18, 588, 2988, 28675, 1435, 422, 5110, 28675, 18, 12050, 13, 225, 288, 7734, 1800, 273, 2269, 18, 588, 1457, 457, 464, 5621, 5411, 289, 469, 288, 7734, 1800, 273, 2269, 18, 588, 1502, 457, 464, 5621, 5411, 289, 5411, 309, 261, 3595, 422, 446, 13, 288, 7734, 327, 446, 31, 5411, 289, 5411, 727, 453, 7722, 3406, 10313, 273, 10792, 364, 3406, 18, 588, 17701, 5621, 5411, 309, 261, 6769, 1588, 422, 446, 13, 288, 7734, 327, 446, 31, 5411, 289, 5411, 309, 16051, 12, 6769, 1588, 1276, 453, 7722, 6094, 3406, 3719, 288, 7734, 327, 446, 31, 5411, 289, 5411, 727, 453, 7722, 6094, 3406, 8266, 273, 10792, 261, 52, 7722, 6094, 3406, 13, 6769, 1588, 31, 5411, 309, 261, 22448, 18, 588, 18888, 3471, 7675, 2469, 480, 404, 13, 288, 7734, 327, 446, 31, 5411, 289, 5411, 727, 453, 7722, 2042, 3092, 2190, 273, 261, 52, 7722, 2042, 3092, 13, 10792, 8266, 18, 588, 18888, 3471, 1435, 63, 20, 15533, 5411, 727, 514, 769, 1528, 273, 9888, 1528, 12, 3595, 16, 2190, 1769, 5411, 727, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 760, 514, 12996, 1076, 2951, 1528, 12, 7734, 453, 7722, 1290, 3406, 364, 3406, 13, 7734, 1216, 657, 6746, 10602, 288, 5411, 727, 453, 7722, 5905, 2300, 2269, 273, 10792, 261, 52, 7722, 5905, 2300, 13, 1884, 3406, 18, 588, 3418, 5621, 5411, 309, 261, 4175, 422, 446, 13, 288, 7734, 327, 446, 31, 5411, 289, 5411, 727, 453, 7722, 2300, 1800, 31, 5411, 309, 261, 4175, 18, 588, 2988, 28675, 1435, 422, 5110, 28675, 18, 12050, 13, 225, 288, 7734, 1800, 273, 2269, 18, 588, 1457, 457, 464, 5621, 5411, 289, 469, 288, 7734, 1800, 273, 2269, 18, 588, 1502, 457, 464, 5621, 5411, 289, 5411, 309, 261, 3595, 422, 446, 13, 288, 7734, 327, 446, 2 ]
Logger.minor(this, "Headers: "+headerLen+" bytes, hash "+Fields.hashCode(headers));
Logger.minor(this, "Headers: "+headerLen+" bytes, hash "+Fields.hashCode(buf));
public CHKBlock fetch(NodeCHK chk) throws IOException { byte[] data = dataStore.getDataForBlock(chk); if(data == null) { if(headersStore.getDataForBlock(chk) != null) { Logger.normal(this, "Deleting: "+chk+" headers, no data"); headersStore.delete(chk); } return null; } byte[] headers = headersStore.getDataForBlock(chk); if(headers == null) { // No headers, delete Logger.normal(this, "Deleting: "+chk+" data, no headers"); dataStore.delete(chk); } // Decode int headerLen = ((headers[0] & 0xff) << 8) + (headers[1] & 0xff); if(headerLen > HEADER_BLOCK_SIZE-2 || headerLen < 0) { Logger.normal(this, "Invalid header data on "+chk+", deleting"); dataStore.delete(chk); headersStore.delete(chk); return null; } byte[] buf = new byte[headerLen]; System.arraycopy(headers, 2, buf, 0, headerLen); Logger.minor(this, "Raw headers: "+headers.length+" bytes, hash "+Fields.hashCode(headers)); Logger.minor(this, "Headers: "+headerLen+" bytes, hash "+Fields.hashCode(headers)); Logger.minor(this, "Data: "+data.length+" bytes, hash "+Fields.hashCode(data)); try { return new CHKBlock(data, buf, chk); } catch (CHKVerifyException e) { Logger.normal(this, "Does not verify, deleting: "+chk); dataStore.delete(chk); headersStore.delete(chk); return null; } }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/27f407d086a1dbf43da0232680fb0f61503732d4/BaseFreenetStore.java/clean/src/freenet/store/BaseFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6469, 47, 1768, 2158, 12, 907, 1792, 47, 15000, 13, 1216, 1860, 288, 3639, 1160, 8526, 501, 273, 31927, 18, 588, 751, 1290, 1768, 12, 27038, 1769, 3639, 309, 12, 892, 422, 446, 13, 288, 5411, 309, 12, 2485, 2257, 18, 588, 751, 1290, 1768, 12, 27038, 13, 480, 446, 13, 288, 7734, 4242, 18, 6130, 12, 2211, 16, 315, 20433, 30, 13773, 27038, 9078, 1607, 16, 1158, 501, 8863, 7734, 1607, 2257, 18, 3733, 12, 27038, 1769, 5411, 289, 5411, 327, 446, 31, 3639, 289, 3639, 1160, 8526, 1607, 273, 1607, 2257, 18, 588, 751, 1290, 1768, 12, 27038, 1769, 3639, 309, 12, 2485, 422, 446, 13, 288, 5411, 368, 2631, 1607, 16, 1430, 5411, 4242, 18, 6130, 12, 2211, 16, 315, 20433, 30, 13773, 27038, 9078, 501, 16, 1158, 1607, 8863, 5411, 31927, 18, 3733, 12, 27038, 1769, 3639, 289, 3639, 368, 6209, 3639, 509, 1446, 2891, 273, 14015, 2485, 63, 20, 65, 473, 374, 5297, 13, 2296, 1725, 13, 397, 261, 2485, 63, 21, 65, 473, 374, 5297, 1769, 3639, 309, 12, 3374, 2891, 405, 11659, 67, 11403, 67, 4574, 17, 22, 747, 1446, 2891, 411, 374, 13, 288, 5411, 4242, 18, 6130, 12, 2211, 16, 315, 1941, 1446, 501, 603, 13773, 27038, 15, 3113, 12993, 8863, 5411, 31927, 18, 3733, 12, 27038, 1769, 5411, 1607, 2257, 18, 3733, 12, 27038, 1769, 5411, 327, 446, 31, 3639, 289, 3639, 1160, 8526, 1681, 273, 394, 1160, 63, 3374, 2891, 15533, 3639, 2332, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6469, 47, 1768, 2158, 12, 907, 1792, 47, 15000, 13, 1216, 1860, 288, 3639, 1160, 8526, 501, 273, 31927, 18, 588, 751, 1290, 1768, 12, 27038, 1769, 3639, 309, 12, 892, 422, 446, 13, 288, 5411, 309, 12, 2485, 2257, 18, 588, 751, 1290, 1768, 12, 27038, 13, 480, 446, 13, 288, 7734, 4242, 18, 6130, 12, 2211, 16, 315, 20433, 30, 13773, 27038, 9078, 1607, 16, 1158, 501, 8863, 7734, 1607, 2257, 18, 3733, 12, 27038, 1769, 5411, 289, 5411, 327, 446, 31, 3639, 289, 3639, 1160, 8526, 1607, 273, 1607, 2257, 18, 588, 751, 1290, 1768, 12, 27038, 1769, 3639, 309, 12, 2485, 422, 446, 13, 288, 5411, 368, 2631, 1607, 16, 1430, 5411, 4242, 2 ]
public Node apply(ASTFunNode node, Node[] children) throws ParseException { OperatorSet opSet = xj.getOperatorSet(); TreeUtils tu = xj.getTreeUtils(); Operator lhsOp = tu.getOperator(children[0]); int n = tu.intValue(children[1]); Node sub1 = children[0].jjtGetChild(0); Node sub2 = children[0].jjtGetChild(1); if(lhsOp == opSet.getAdd() || lhsOp == opSet.getSubtract()) { /* (a+b)^n --> (a^n+nC1 a^(n-1) b + ....) */ if(n == 0) return nf.buildConstantNode(new Double(1)); if(n == 1) return children[0]; Node vals[] = new Node[(int) n+1]; /* a^n */ vals[0] = nf.buildOperatorNode( opSet.getPower(), xj.deepCopy(sub1), nf.buildConstantNode(new Double(n)) ); if(n==2) { vals[1]=nf.buildOperatorNode( opSet.getMultiply(), nf.buildConstantNode(new Double(2)), nf.buildOperatorNode( opSet.getMultiply(), xj.deepCopy(sub1), xj.deepCopy(sub2))); } else { /* n * a^(n-1) * b */ vals[1]=nf.buildOperatorNode( opSet.getMultiply(), nf.buildConstantNode(new Double(n)), nf.buildOperatorNode( opSet.getMultiply(), nf.buildOperatorNode( opSet.getPower(), xj.deepCopy(sub1), nf.buildConstantNode(new Double(n-1))), xj.deepCopy(sub2))); } /* n * a * b^(n-1) */ if(n>=3) { vals[n-1] = nf.buildOperatorNode( opSet.getMultiply(), nf.buildConstantNode(new Double(n)), nf.buildOperatorNode( opSet.getMultiply(), xj.deepCopy(sub1), nf.buildOperatorNode( opSet.getPower(), xj.deepCopy(sub2), nf.buildConstantNode(new Double(n-1))))); } /* a^n */ vals[n] = nf.buildOperatorNode( opSet.getPower(), xj.deepCopy(sub2), nf.buildConstantNode(new Double(n)) ); for(int i=2;i<n-1;++i) { /* (n,i) * a^(n-i) * b^i */ vals[i]=nf.buildOperatorNode( opSet.getMultiply(), nf.buildConstantNode(new Double(XMath.binomial(n,i))), nf.buildOperatorNode( opSet.getMultiply(), nf.buildOperatorNode( opSet.getPower(), xj.deepCopy(sub1), nf.buildConstantNode(new Double(n-i))), nf.buildOperatorNode( opSet.getPower(), xj.deepCopy(sub2), nf.buildConstantNode(new Double(i))))); }// for(int i=0;i<=n;++i)// {// System.out.print("val["+i+"] ");// xj.println(vals[i]);// } Node sums[] = new Node[n+1]; sums[n]=vals[n]; for(int i=n-1;i>=0;--i) { sums[i] = nf.buildOperatorNode( lhsOp, vals[i], sums[i+1]); }// xj.println(sums[0]); return sums[0]; } throw new ParseException("ExpandBrackets at least one child must be + or -"); }
54194 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54194/5d181473dd1ee3caca86484e98ff7c44ed644489/ExpandPower.java/buggy/src/org/lsmp/djep/rewrite/ExpandPower.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 907, 9010, 12, 9053, 22783, 50, 369, 20680, 16, 907, 8526, 5906, 13, 15069, 13047, 95, 202, 202, 5592, 694, 556, 694, 33, 92, 78, 18, 588, 5592, 694, 5621, 202, 202, 2471, 1304, 334, 89, 33, 92, 78, 18, 588, 2471, 1989, 5621, 9506, 202, 5592, 80, 4487, 3817, 33, 88, 89, 18, 588, 5592, 12, 5906, 63, 20, 19226, 202, 202, 474, 82, 33, 88, 89, 18, 474, 620, 12, 5906, 63, 21, 19226, 202, 202, 3205, 373, 21, 33, 5906, 63, 20, 8009, 78, 78, 88, 967, 1763, 12, 20, 1769, 202, 202, 3205, 373, 22, 33, 5906, 63, 20, 8009, 78, 78, 88, 967, 1763, 12, 21, 1769, 9506, 202, 430, 12, 80, 4487, 3817, 631, 556, 694, 18, 588, 986, 1435, 20081, 80, 4487, 3817, 631, 556, 694, 18, 588, 27904, 10756, 202, 202, 95, 20308, 12, 69, 15, 70, 13, 66, 82, 413, 34, 12, 69, 66, 82, 15, 82, 39, 21, 69, 29020, 82, 17, 21, 13, 70, 15, 6265, 13, 5549, 1082, 202, 430, 12, 82, 631, 20, 13, 2463, 82, 74, 18, 3510, 6902, 907, 12, 2704, 5265, 12, 21, 10019, 1082, 202, 430, 12, 82, 631, 21, 13, 2463, 5906, 63, 20, 15533, 25083, 202, 907, 4524, 8526, 33, 2704, 907, 63, 12, 474, 13, 82, 15, 21, 15533, 1082, 202, 20308, 69, 66, 82, 5549, 1082, 202, 4524, 63, 20, 65, 33, 82, 74, 18, 3510, 5592, 907, 12, 9506, 202, 556, 694, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 907, 9010, 12, 9053, 22783, 50, 369, 20680, 16, 907, 8526, 5906, 13, 15069, 13047, 95, 202, 202, 5592, 694, 556, 694, 33, 92, 78, 18, 588, 5592, 694, 5621, 202, 202, 2471, 1304, 334, 89, 33, 92, 78, 18, 588, 2471, 1989, 5621, 9506, 202, 5592, 80, 4487, 3817, 33, 88, 89, 18, 588, 5592, 12, 5906, 63, 20, 19226, 202, 202, 474, 82, 33, 88, 89, 18, 474, 620, 12, 5906, 63, 21, 19226, 202, 202, 3205, 373, 21, 33, 5906, 63, 20, 8009, 78, 78, 88, 967, 1763, 12, 20, 1769, 202, 202, 3205, 373, 22, 33, 5906, 63, 20, 8009, 78, 78, 88, 967, 1763, 12, 21, 1769, 9506, 202, 430, 12, 2 ]
public void visitReturnStatement(@NotNull PsiReturnStatement statement) { super.visitReturnStatement(statement); if (statement.getContainingFile() instanceof JspFile) { return; } final PsiMethod method = PsiTreeUtil.getParentOfType(statement, PsiMethod.class); if (method == null) { return; } if (!method.isConstructor()) { final PsiType returnType = method.getReturnType(); if (!PsiType.VOID.equals(returnType)) { return;
public void visitReturnStatement( @NotNull PsiReturnStatement statement) { super.visitReturnStatement(statement); if (statement.getContainingFile() instanceof JspFile) { return; } final PsiMethod method = PsiTreeUtil.getParentOfType(statement, PsiMethod.class); if (method == null) { return; } if (!method.isConstructor()) { final PsiType returnType = method.getReturnType(); if (!PsiType.VOID.equals(returnType)) { return; } } final PsiCodeBlock body = method.getBody(); if (body == null) { return; } if (ControlFlowUtils.blockCompletesWithStatement(body, statement)) { registerStatementError(statement); }
public void visitReturnStatement(@NotNull PsiReturnStatement statement) { super.visitReturnStatement(statement); if (statement.getContainingFile() instanceof JspFile) { return; } final PsiMethod method = PsiTreeUtil.getParentOfType(statement, PsiMethod.class); if (method == null) { return; } if (!method.isConstructor()) { final PsiType returnType = method.getReturnType(); if (!PsiType.VOID.equals(returnType)) { return; } } final PsiCodeBlock body = method.getBody(); if (body == null) { return; } if (ControlFlowUtils.blockCompletesWithStatement(body, statement)) { registerStatementError(statement); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/3c14a4501b28727698da3ce9c1f4b1d36ca90baf/UnnecessaryReturnInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/controlflow/UnnecessaryReturnInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 990, 3406, 26964, 5962, 453, 7722, 990, 3406, 3021, 13, 288, 1377, 2240, 18, 11658, 990, 3406, 12, 11516, 1769, 1377, 309, 261, 11516, 18, 588, 24344, 812, 1435, 1276, 19300, 812, 13, 288, 3639, 327, 31, 1377, 289, 1377, 727, 453, 7722, 1305, 707, 273, 3639, 453, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 11516, 16, 453, 7722, 1305, 18, 1106, 1769, 1377, 309, 261, 2039, 422, 446, 13, 288, 3639, 327, 31, 1377, 289, 1377, 309, 16051, 2039, 18, 291, 6293, 10756, 288, 3639, 727, 453, 7722, 559, 9424, 273, 707, 18, 588, 9102, 5621, 3639, 309, 16051, 52, 7722, 559, 18, 58, 12945, 18, 14963, 12, 2463, 559, 3719, 288, 1850, 327, 31, 3639, 289, 1377, 289, 1377, 727, 453, 7722, 1085, 1768, 1417, 273, 707, 18, 588, 2250, 5621, 1377, 309, 261, 3432, 422, 446, 13, 288, 3639, 327, 31, 1377, 289, 1377, 309, 261, 24762, 1989, 18, 2629, 6297, 281, 1190, 3406, 12, 3432, 16, 3021, 3719, 288, 3639, 1744, 3406, 668, 12, 11516, 1769, 1377, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 990, 3406, 26964, 5962, 453, 7722, 990, 3406, 3021, 13, 288, 1377, 2240, 18, 11658, 990, 3406, 12, 11516, 1769, 1377, 309, 261, 11516, 18, 588, 24344, 812, 1435, 1276, 19300, 812, 13, 288, 3639, 327, 31, 1377, 289, 1377, 727, 453, 7722, 1305, 707, 273, 3639, 453, 7722, 2471, 1304, 18, 588, 3054, 18859, 12, 11516, 16, 453, 7722, 1305, 18, 1106, 1769, 1377, 309, 261, 2039, 422, 446, 13, 288, 3639, 327, 31, 1377, 289, 1377, 309, 16051, 2039, 18, 291, 6293, 10756, 288, 3639, 727, 453, 7722, 559, 9424, 273, 707, 18, 588, 9102, 5621, 3639, 309, 16051, 52, 7722, 559, 18, 58, 12945, 18, 14963, 12, 2463, 559, 3719, 288, 1850, 2 ]
return parseResult; }
return parseResult; }
protected IASTTranslationUnit parse(IFile code, ParserLanguage language) throws Exception { InputStream stream = code.getContents(); IScanner scanner = new DOMScanner(new CodeReader(code.getLocation() .toOSString(), stream), SCANNER_INFO, ParserMode.COMPLETE_PARSE, language, NULL_LOG, getScannerConfig(language), factory); ISourceCodeParser parser = null; if (language == ParserLanguage.CPP) { parser = new GNUCPPSourceParser(scanner, ParserMode.COMPLETE_PARSE, NULL_LOG, new GPPParserExtensionConfiguration()); } else { parser = new GNUCSourceParser(scanner, ParserMode.COMPLETE_PARSE, NULL_LOG, new GCCParserExtensionConfiguration()); } stream.close(); IASTTranslationUnit parseResult = parser.parse(); if (parser.encounteredError()) throw new ParserException("FAILURE"); //$NON-NLS-1$ if (language == ParserLanguage.C) { IASTProblem[] problems = CVisitor.getProblems(parseResult); assertEquals(problems.length, 0); } else if (language == ParserLanguage.CPP) { IASTProblem[] problems = CPPVisitor.getProblems(parseResult); assertEquals(problems.length, 0); } return parseResult; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/69d98316f4a76398de5c961029bb4f2f6fa351fe/DOMLocationInclusionTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/DOMLocationInclusionTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 9053, 6717, 2802, 1109, 12, 45, 812, 981, 16, 6783, 3779, 2653, 13, 1082, 202, 15069, 1185, 288, 202, 202, 4348, 1407, 273, 981, 18, 588, 6323, 5621, 202, 202, 45, 11338, 7683, 273, 394, 4703, 11338, 12, 2704, 3356, 2514, 12, 710, 18, 588, 2735, 1435, 9506, 202, 18, 869, 4618, 780, 9334, 1407, 3631, 8795, 11489, 654, 67, 5923, 16, 9506, 202, 2678, 2309, 18, 15795, 67, 21045, 16, 2653, 16, 3206, 67, 4842, 16, 9506, 202, 588, 11338, 809, 12, 4923, 3631, 3272, 1769, 202, 202, 45, 1830, 1085, 2678, 2082, 273, 446, 31, 202, 202, 430, 261, 4923, 422, 6783, 3779, 18, 4258, 52, 13, 288, 1082, 202, 4288, 273, 394, 611, 50, 57, 4258, 52, 1830, 2678, 12, 26842, 16, 6783, 2309, 18, 15795, 67, 21045, 16, 6862, 202, 8560, 67, 4842, 16, 394, 4948, 52, 2678, 3625, 1750, 10663, 202, 202, 97, 469, 288, 1082, 202, 4288, 273, 394, 611, 50, 17479, 1830, 2678, 12, 26842, 16, 6783, 2309, 18, 15795, 67, 21045, 16, 6862, 202, 8560, 67, 4842, 16, 394, 611, 6743, 2678, 3625, 1750, 10663, 202, 202, 97, 202, 202, 3256, 18, 4412, 5621, 202, 202, 45, 9053, 6717, 2802, 1109, 1253, 273, 2082, 18, 2670, 5621, 202, 202, 430, 261, 4288, 18, 1331, 29625, 668, 10756, 1082, 202, 12849, 394, 27990, 2932, 17623, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 430, 261, 4923, 422, 6783, 3779, 18, 39, 13, 288, 1082, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 9053, 6717, 2802, 1109, 12, 45, 812, 981, 16, 6783, 3779, 2653, 13, 1082, 202, 15069, 1185, 288, 202, 202, 4348, 1407, 273, 981, 18, 588, 6323, 5621, 202, 202, 45, 11338, 7683, 273, 394, 4703, 11338, 12, 2704, 3356, 2514, 12, 710, 18, 588, 2735, 1435, 9506, 202, 18, 869, 4618, 780, 9334, 1407, 3631, 8795, 11489, 654, 67, 5923, 16, 9506, 202, 2678, 2309, 18, 15795, 67, 21045, 16, 2653, 16, 3206, 67, 4842, 16, 9506, 202, 588, 11338, 809, 12, 4923, 3631, 3272, 1769, 202, 202, 45, 1830, 1085, 2678, 2082, 273, 446, 31, 202, 202, 430, 261, 4923, 422, 6783, 3779, 18, 4258, 52, 13, 288, 1082, 202, 4288, 273, 394, 2 ]
foundControl = controlInfo; break; } }
} else { newIndex = ((Integer) xformsControls.getCurrentControlsState().getRepeatIdToIndex().get(repeatId)).intValue(); }
public void startVisitControl(XFormsControls.ControlInfo controlInfo) { if (controlInfo instanceof XFormsControls.RepeatControlInfo) { // Found an xforms:repeat final XFormsControls.RepeatControlInfo repeatControlInfo = (XFormsControls.RepeatControlInfo) controlInfo; final String repeatId = repeatControlInfo.getOriginalId(); final List repeatNodeSet = xformsControls.getCurrentNodeset(); if (foundControl == null) { // We are not yet inside a matching xforms:repeat if (repeatNodeSet != null && repeatNodeSet.size() > 0) { // Find whether one node of the repeat node-set contains the inserted node int index = 1; for (Iterator i = repeatNodeSet.iterator(); i.hasNext(); index++) { final Element currentNode = (Element) i.next(); if (currentNode == clonedElement) { // Found xforms:repeat affected by the change // "The index for any repeating sequence that is bound // to the homogeneous collection where the node was // added is updated to point to the newly added node." currentControlsState.updateRepeatIndex(repeatId, index); // First step: set all children indexes to 0 final List nestedRepeatIds = currentControlsState.getNestedRepeatIds(xformsControls, repeatId); if (nestedRepeatIds != null) { for (Iterator j = nestedRepeatIds.iterator(); j.hasNext();) { final String nestedRepeatId = (String) j.next(); currentControlsState.updateRepeatIndex(nestedRepeatId, 0); } } foundControl = controlInfo; break; } } if (foundControl == null) { // Still not found a control. Make sure the bounds of this // xforms:repeat are correct for the rest of the visit. final int adjustedNewIndex; { final int newIndex = ((Integer) currentControlsState.getRepeatIdToIndex().get(repeatId)).intValue(); // Adjust bounds if necessary if (newIndex < 1) adjustedNewIndex = 1; else if (newIndex > repeatNodeSet.size()) adjustedNewIndex = repeatNodeSet.size(); else adjustedNewIndex = newIndex; } // Set index currentControlsState.updateRepeatIndex(repeatId, adjustedNewIndex); } } else { // Make sure the index is set to zero when the node-set is empty currentControlsState.updateRepeatIndex(repeatId, 0); } } else { // This is a child xforms:repeat of a matching xforms:repeat // Second step: update non-empty repeat indexes to the appropriate value // "The indexes for inner nested repeat collections are re-initialized to startindex." // NOTE: We do this, but we also adjust the index: // "The index for this repeating structure is initialized to the // value of startindex. If the initial startindex is less than 1 it // defaults to 1. If the index is greater than the initial node-set // then it defaults to the size of the node-set." if (repeatNodeSet != null && repeatNodeSet.size() > 0) { int newIndex = repeatControlInfo.getStartIndex(); if (newIndex < 1) newIndex = 1; if (newIndex > repeatNodeSet.size()) newIndex = repeatNodeSet.size(); currentControlsState.updateRepeatIndex(repeatId, newIndex); } else { // Make sure the index is set to zero when the node-set is empty // (although this should already have been done above by the // enclosing xforms:repeat) currentControlsState.updateRepeatIndex(repeatId, 0); } } } }
10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/34ec45c59ca9f574ad5456070850b39e527a1d4c/XFormsActionInterpreter.java/buggy/src/java/org/orbeon/oxf/xforms/action/XFormsActionInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 787, 10432, 3367, 12, 60, 18529, 16795, 18, 3367, 966, 3325, 966, 13, 288, 13491, 309, 261, 7098, 966, 1276, 1139, 18529, 16795, 18, 16750, 3367, 966, 13, 288, 18701, 368, 10750, 392, 619, 9741, 30, 9374, 18701, 727, 1139, 18529, 16795, 18, 16750, 3367, 966, 7666, 3367, 966, 273, 261, 60, 18529, 16795, 18, 16750, 3367, 966, 13, 3325, 966, 31, 18701, 727, 514, 7666, 548, 273, 7666, 3367, 966, 18, 588, 8176, 548, 5621, 18701, 727, 987, 7666, 907, 694, 273, 619, 9741, 16795, 18, 588, 3935, 3205, 278, 5621, 18701, 309, 261, 7015, 3367, 422, 446, 13, 288, 27573, 368, 1660, 854, 486, 4671, 4832, 279, 3607, 619, 9741, 30, 9374, 27573, 309, 261, 9374, 907, 694, 480, 446, 597, 7666, 907, 694, 18, 1467, 1435, 405, 374, 13, 288, 4766, 565, 368, 4163, 2856, 1245, 756, 434, 326, 7666, 756, 17, 542, 1914, 326, 9564, 756, 4766, 565, 509, 770, 273, 404, 31, 4766, 565, 364, 261, 3198, 277, 273, 7666, 907, 694, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 770, 27245, 288, 4766, 3639, 727, 3010, 13425, 273, 261, 1046, 13, 277, 18, 4285, 5621, 4766, 3639, 309, 261, 2972, 907, 422, 13027, 1046, 13, 288, 4766, 5411, 368, 10750, 619, 9741, 30, 9374, 9844, 635, 326, 2549, 4766, 5411, 368, 315, 1986, 770, 364, 1281, 30571, 3102, 716, 353, 2489, 4766, 5411, 368, 358, 326, 13995, 30075, 1481, 1849, 1625, 326, 756, 1703, 4766, 5411, 368, 3096, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 787, 10432, 3367, 12, 60, 18529, 16795, 18, 3367, 966, 3325, 966, 13, 288, 13491, 309, 261, 7098, 966, 1276, 1139, 18529, 16795, 18, 16750, 3367, 966, 13, 288, 18701, 368, 10750, 392, 619, 9741, 30, 9374, 18701, 727, 1139, 18529, 16795, 18, 16750, 3367, 966, 7666, 3367, 966, 273, 261, 60, 18529, 16795, 18, 16750, 3367, 966, 13, 3325, 966, 31, 18701, 727, 514, 7666, 548, 273, 7666, 3367, 966, 18, 588, 8176, 548, 5621, 18701, 727, 987, 7666, 907, 694, 273, 619, 9741, 16795, 18, 588, 3935, 3205, 278, 5621, 18701, 309, 261, 7015, 3367, 422, 446, 13, 288, 27573, 368, 1660, 854, 486, 4671, 4832, 279, 3607, 619, 9741, 30, 9374, 27573, 309, 2 ]
} else {
} else if (dataFile.getDataAsString("type")[0].equals("IS Level 1")) { t.setTechLevel(TechConstants.T_IS_LEVEL_1); } else if (dataFile.getDataAsString("type")[0].equals("IS Level 2")) { t.setTechLevel(TechConstants.T_IS_LEVEL_2); } else if (dataFile.getDataAsString("type")[0].equals("IS Level 3")) { t.setTechLevel(TechConstants.T_IS_LEVEL_3); } else if (dataFile.getDataAsString("type")[0].equals("Clan")) {
public Entity getEntity() throws EntityLoadingException { BattleArmor t = new BattleArmor(); if (!dataFile.exists("name")) throw new EntityLoadingException("Could not find name block."); t.setChassis(dataFile.getDataAsString("Name")[0]); // Model is not strictly necessary. if (dataFile.exists("Model") && dataFile.getDataAsString("Model")[0] != null) { t.setModel(dataFile.getDataAsString("Model")[0]); } else { t.setModel(""); } if (!dataFile.exists("year")) throw new EntityLoadingException("Could not find year block."); t.setYear(dataFile.getDataAsInt("year")[0]); if (!dataFile.exists("type")) throw new EntityLoadingException("Could not find type block."); if (dataFile.getDataAsString("type")[0].equals("IS")) { if (t.getYear() == 3025) { t.setTechLevel(TechConstants.T_IS_LEVEL_1); } else { t.setTechLevel(TechConstants.T_IS_LEVEL_2); } } else { t.setTechLevel(TechConstants.T_CLAN_LEVEL_2); } if (!dataFile.exists("tonnage")) throw new EntityLoadingException("Could not find weight block."); t.setWeight(dataFile.getDataAsFloat("tonnage")[0]); if (!dataFile.exists("BV")) throw new EntityLoadingException("Could not find BV block."); t.setBattleValue( dataFile.getDataAsInt("BV")[0] ); if (!dataFile.exists("motion_type")) throw new EntityLoadingException("Could not find movement block."); String sMotion = dataFile.getDataAsString("motion_type")[0]; int nMotion = -1; for (int x = 0; x < MOVES.length; x++) { if (sMotion.equals(MOVES[x])) { nMotion = x; break; } } if (nMotion == -1) throw new EntityLoadingException("Invalid movement type: " + sMotion); t.setMovementMode(nMotion); if (!dataFile.exists("cruiseMP")) throw new EntityLoadingException("Could not find cruiseMP block."); t.setOriginalRunMP(dataFile.getDataAsInt("cruiseMP")[0]); if (dataFile.exists("jumpingMP")) t.setOriginalJumpMP(dataFile.getDataAsInt("jumpingMP")[0]); if (!dataFile.exists("armor") ) throw new EntityLoadingException("Could not find armor block."); int[] armor = dataFile.getDataAsInt("armor"); // Each trooper has the same amount of armor if (armor.length != 1) { throw new EntityLoadingException("Incorrect armor array length"); } // add the body to the armor array for (int x = 1; x < t.locations(); x++) { t.initializeArmor(armor[0], x); } t.autoSetInternal(); loadEquipment(t, "Squad", BattleArmor.LOC_SQUAD); String[] abbrs = t.getLocationAbbrs(); for ( int loop = 1; loop < t.locations(); loop++ ) { loadEquipment( t, abbrs[loop], loop ); } return t; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/27a83ab80db0375151630b6e20acf6b75b8e337d/BLKBattleArmorFile.java/clean/megamek/src/megamek/common/loaders/BLKBattleArmorFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3887, 6352, 1435, 1216, 3887, 10515, 503, 288, 3639, 605, 4558, 298, 25583, 280, 268, 273, 394, 605, 4558, 298, 25583, 280, 5621, 3639, 309, 16051, 892, 812, 18, 1808, 2932, 529, 6, 3719, 604, 394, 3887, 10515, 503, 2932, 4445, 486, 1104, 508, 1203, 1199, 1769, 3639, 268, 18, 542, 782, 24774, 12, 892, 812, 18, 588, 751, 8092, 2932, 461, 7923, 63, 20, 19226, 3639, 368, 3164, 353, 486, 23457, 4573, 18, 3639, 309, 261, 892, 812, 18, 1808, 2932, 1488, 7923, 597, 501, 812, 18, 588, 751, 8092, 2932, 1488, 7923, 63, 20, 65, 480, 446, 13, 288, 2398, 268, 18, 542, 1488, 12, 892, 812, 18, 588, 751, 8092, 2932, 1488, 7923, 63, 20, 19226, 3639, 289, 469, 309, 261, 892, 812, 18, 588, 751, 8092, 2932, 723, 7923, 63, 20, 8009, 14963, 2932, 5127, 4557, 404, 6, 3719, 288, 268, 18, 542, 56, 8987, 2355, 12, 56, 8987, 2918, 18, 56, 67, 5127, 67, 10398, 67, 21, 1769, 289, 469, 309, 261, 892, 812, 18, 588, 751, 8092, 2932, 723, 7923, 63, 20, 8009, 14963, 2932, 5127, 4557, 576, 6, 3719, 288, 268, 18, 542, 56, 8987, 2355, 12, 56, 8987, 2918, 18, 56, 67, 5127, 67, 10398, 67, 22, 1769, 289, 469, 309, 261, 892, 812, 18, 588, 751, 8092, 2932, 723, 7923, 63, 20, 8009, 14963, 2932, 5127, 4557, 890, 6, 3719, 288, 268, 18, 542, 56, 8987, 2355, 12, 56, 8987, 2918, 18, 56, 67, 5127, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3887, 6352, 1435, 1216, 3887, 10515, 503, 288, 3639, 605, 4558, 298, 25583, 280, 268, 273, 394, 605, 4558, 298, 25583, 280, 5621, 3639, 309, 16051, 892, 812, 18, 1808, 2932, 529, 6, 3719, 604, 394, 3887, 10515, 503, 2932, 4445, 486, 1104, 508, 1203, 1199, 1769, 3639, 268, 18, 542, 782, 24774, 12, 892, 812, 18, 588, 751, 8092, 2932, 461, 7923, 63, 20, 19226, 3639, 368, 3164, 353, 486, 23457, 4573, 18, 3639, 309, 261, 892, 812, 18, 1808, 2932, 1488, 7923, 597, 501, 812, 18, 588, 751, 8092, 2932, 1488, 7923, 63, 20, 65, 480, 446, 13, 288, 2398, 268, 18, 542, 1488, 12, 892, 812, 18, 588, 751, 8092, 2932, 1488, 7923, 63, 2 ]
ins.add(Path.fromOSString(paths[i]));
if (paths[i].length() > 0) { ins.add(Path.fromOSString(paths[i])); }
public IPath[] getAdditionalResources() { List ins = new ArrayList(); Iterator typeIter = getAdditionalInputList().iterator(); while (typeIter.hasNext()) { AdditionalInput current = (AdditionalInput)typeIter.next(); int kind = current.getKind(); if (kind == IAdditionalInput.KIND_ADDITIONAL_INPUT || kind == IAdditionalInput.KIND_ADDITIONAL_INPUT_DEPENDENCY) { String[] paths = current.getPaths(); if (paths != null) { for (int i = 0; i < paths.length; i++) { ins.add(Path.fromOSString(paths[i])); } } } } return (IPath[])ins.toArray(new IPath[ins.size()]); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1eb10a46a0557db040085203edd85b33f11279dd/InputType.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/InputType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 743, 8526, 26660, 3805, 1435, 288, 202, 202, 682, 2763, 273, 394, 2407, 5621, 202, 202, 3198, 618, 2360, 273, 26660, 1210, 682, 7675, 9838, 5621, 202, 202, 17523, 261, 723, 2360, 18, 5332, 2134, 10756, 288, 1082, 202, 10552, 1210, 783, 273, 261, 10552, 1210, 13, 723, 2360, 18, 4285, 5621, 1082, 202, 474, 3846, 273, 783, 18, 588, 5677, 5621, 1082, 202, 430, 261, 9224, 422, 467, 10552, 1210, 18, 47, 2356, 67, 8355, 30525, 67, 15934, 747, 9506, 202, 9224, 422, 467, 10552, 1210, 18, 47, 2356, 67, 8355, 30525, 67, 15934, 67, 1639, 25690, 26325, 13, 288, 9506, 202, 780, 8526, 2953, 273, 783, 18, 588, 4466, 5621, 9506, 202, 430, 261, 4481, 480, 446, 13, 288, 6862, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2953, 18, 2469, 31, 277, 27245, 288, 25083, 202, 2679, 18, 1289, 12, 743, 18, 2080, 4618, 780, 12, 4481, 63, 77, 5717, 1769, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 261, 45, 743, 63, 5717, 2679, 18, 31447, 12, 2704, 467, 743, 63, 2679, 18, 1467, 1435, 19226, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 743, 8526, 26660, 3805, 1435, 288, 202, 202, 682, 2763, 273, 394, 2407, 5621, 202, 202, 3198, 618, 2360, 273, 26660, 1210, 682, 7675, 9838, 5621, 202, 202, 17523, 261, 723, 2360, 18, 5332, 2134, 10756, 288, 1082, 202, 10552, 1210, 783, 273, 261, 10552, 1210, 13, 723, 2360, 18, 4285, 5621, 1082, 202, 474, 3846, 273, 783, 18, 588, 5677, 5621, 1082, 202, 430, 261, 9224, 422, 467, 10552, 1210, 18, 47, 2356, 67, 8355, 30525, 67, 15934, 747, 9506, 202, 9224, 422, 467, 10552, 1210, 18, 47, 2356, 67, 8355, 30525, 67, 15934, 67, 1639, 25690, 26325, 13, 288, 9506, 202, 780, 8526, 2953, 273, 783, 18, 588, 4466, 5621, 9506, 202, 430, 2 ]
switch ( eDerivedStructuralFeatureID( eFeature ) )
switch ( featureID )
public void eSet( EStructuralFeature eFeature, Object newValue ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case TypePackage.STOCK_SERIES__VISIBLE : setVisible( ( (Boolean) newValue ).booleanValue( ) ); return; case TypePackage.STOCK_SERIES__LABEL : setLabel( (Label) newValue ); return; case TypePackage.STOCK_SERIES__DATA_DEFINITION : getDataDefinition( ).clear( ); getDataDefinition( ).addAll( (Collection) newValue ); return; case TypePackage.STOCK_SERIES__SERIES_IDENTIFIER : setSeriesIdentifier( (Object) newValue ); return; case TypePackage.STOCK_SERIES__DATA_POINT : setDataPoint( (DataPoint) newValue ); return; case TypePackage.STOCK_SERIES__DATA_SETS : getDataSets( ).clear( ); getDataSets( ).addAll( (Collection) newValue ); return; case TypePackage.STOCK_SERIES__LABEL_POSITION : setLabelPosition( (Position) newValue ); return; case TypePackage.STOCK_SERIES__STACKED : setStacked( ( (Boolean) newValue ).booleanValue( ) ); return; case TypePackage.STOCK_SERIES__TRIGGERS : getTriggers( ).clear( ); getTriggers( ).addAll( (Collection) newValue ); return; case TypePackage.STOCK_SERIES__TRANSLUCENT : setTranslucent( ( (Boolean) newValue ).booleanValue( ) ); return; case TypePackage.STOCK_SERIES__CURVE_FITTING : setCurveFitting( (CurveFitting) newValue ); return; case TypePackage.STOCK_SERIES__FILL : setFill( (Fill) newValue ); return; case TypePackage.STOCK_SERIES__LINE_ATTRIBUTES : setLineAttributes( (LineAttributes) newValue ); return; } eDynamicSet( eFeature, newValue ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/StockSeriesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/StockSeriesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 512, 14372, 4595, 425, 4595, 16, 1033, 6129, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 29588, 294, 9506, 202, 542, 6207, 12, 261, 261, 5507, 13, 6129, 262, 18, 6494, 620, 12, 262, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 13545, 294, 9506, 202, 542, 2224, 12, 261, 2224, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 4883, 67, 25312, 294, 9506, 202, 588, 751, 1852, 12, 262, 18, 8507, 12, 11272, 9506, 202, 588, 751, 1852, 12, 262, 18, 1289, 1595, 12, 261, 2532, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 2123, 8805, 67, 16606, 294, 9506, 202, 542, 6485, 3004, 12, 261, 921, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 4883, 67, 8941, 294, 9506, 202, 542, 751, 2148, 12, 261, 751, 2148, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 4883, 67, 28092, 294, 9506, 202, 588, 751, 2785, 12, 262, 18, 8507, 12, 11272, 9506, 202, 588, 751, 2785, 12, 262, 18, 1289, 1595, 12, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 512, 14372, 4595, 425, 4595, 16, 1033, 6129, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 29588, 294, 9506, 202, 542, 6207, 12, 261, 261, 5507, 13, 6129, 262, 18, 6494, 620, 12, 262, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 13545, 294, 9506, 202, 542, 2224, 12, 261, 2224, 13, 6129, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 1412, 2261, 18, 31487, 3507, 67, 2123, 8805, 972, 4883, 67, 25312, 294, 9506, 202, 588, 751, 1852, 12, 2 ]
while(keys.hasMoreElements()) {
while (keys.hasMoreElements()) {
private Properties loadLinks(Vector fileSets) { Properties finalList = new Properties(); Enumeration keys; String key, value; String[] includedFiles; // loop through the supplied file sets FSLoop: for (int i=0; i<fileSets.size(); i++){ String workingDir; FileSet fsTemp = (FileSet) fileSets.elementAt(i); DirectoryScanner ds; try { File linelength = fsTemp.getDir(this.getProject()); workingDir = linelength.getCanonicalPath(); } catch (IOException ioe) { handleError("Exception caught getting "+ "canonical path of working dir " + "of a FileSet passed to symlink " + "task. FileSet skipped."); continue FSLoop; } ds = fsTemp.getDirectoryScanner(this.getProject()); ds.setFollowSymlinks(false); ds.scan(); includedFiles = ds.getIncludedFiles(); // loop through the files identified by each file set // and load their contents. for (int j=0; j<includedFiles.length; j++){ File inc = new File(workingDir + File.separator + includedFiles[j]); String inDir; Properties propTemp = new Properties(); try { propTemp.load(new FileInputStream(inc)); inDir = inc.getParent(); inDir = (new File(inDir)).getCanonicalPath(); } catch (FileNotFoundException fnfe) { handleError("Unable to find " + includedFiles[j] + "FileSet skipped."); continue FSLoop; } catch (IOException ioe) { handleError("Unable to open " + includedFiles[j] + " or it's parent dir" + "FileSet skipped."); continue FSLoop; } keys = propTemp.keys(); propTemp.list(System.out); // Write the contents to our master list of links // This method assumes that all links are defined in // terms of absolute paths, or paths relative to the // working directory while(keys.hasMoreElements()) { key = (String) keys.nextElement(); value = propTemp.getProperty(key); finalList.put(inDir + File.separator + key, value); } } } return finalList; }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/eb5089ac6ae575212236df47f75c168a3c6d298a/Symlink.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6183, 1262, 7100, 12, 5018, 585, 2785, 13, 288, 3639, 6183, 727, 682, 273, 394, 6183, 5621, 3639, 13864, 1311, 31, 3639, 514, 498, 16, 460, 31, 3639, 514, 8526, 5849, 2697, 31, 3639, 368, 2798, 3059, 326, 4580, 585, 1678, 3639, 9247, 6452, 30, 364, 261, 474, 277, 33, 20, 31, 277, 32, 768, 2785, 18, 1467, 5621, 277, 27245, 95, 5411, 514, 5960, 1621, 31, 5411, 1387, 694, 2662, 7185, 273, 261, 812, 694, 13, 585, 2785, 18, 2956, 861, 12, 77, 1769, 13491, 8930, 11338, 3780, 31, 5411, 775, 288, 7734, 1387, 4739, 292, 1288, 273, 2662, 7185, 18, 588, 1621, 12, 2211, 18, 588, 4109, 10663, 7734, 5960, 1621, 273, 4739, 292, 1288, 18, 588, 15512, 743, 5621, 5411, 289, 1044, 261, 14106, 10847, 13, 288, 7734, 15676, 2932, 503, 13537, 8742, 13773, 18701, 315, 18288, 589, 434, 5960, 1577, 315, 397, 18701, 315, 792, 279, 1387, 694, 2275, 358, 10563, 315, 397, 18701, 315, 4146, 18, 1387, 694, 9700, 1199, 1769, 7734, 1324, 9247, 6452, 31, 5411, 289, 5411, 3780, 273, 2662, 7185, 18, 588, 2853, 11338, 12, 2211, 18, 588, 4109, 10663, 5411, 3780, 18, 542, 8328, 18475, 87, 12, 5743, 1769, 5411, 3780, 18, 9871, 5621, 5411, 5849, 2697, 273, 3780, 18, 588, 19323, 2697, 5621, 13491, 368, 2798, 3059, 326, 1390, 9283, 635, 1517, 585, 444, 5411, 368, 471, 1262, 3675, 2939, 18, 5411, 364, 261, 474, 525, 33, 20, 31, 525, 32, 20405, 2697, 18, 2469, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6183, 1262, 7100, 12, 5018, 585, 2785, 13, 288, 3639, 6183, 727, 682, 273, 394, 6183, 5621, 3639, 13864, 1311, 31, 3639, 514, 498, 16, 460, 31, 3639, 514, 8526, 5849, 2697, 31, 3639, 368, 2798, 3059, 326, 4580, 585, 1678, 3639, 9247, 6452, 30, 364, 261, 474, 277, 33, 20, 31, 277, 32, 768, 2785, 18, 1467, 5621, 277, 27245, 95, 5411, 514, 5960, 1621, 31, 5411, 1387, 694, 2662, 7185, 273, 261, 812, 694, 13, 585, 2785, 18, 2956, 861, 12, 77, 1769, 13491, 8930, 11338, 3780, 31, 5411, 775, 288, 7734, 1387, 4739, 292, 1288, 273, 2662, 7185, 18, 588, 1621, 12, 2211, 18, 588, 4109, 10663, 7734, 5960, 1621, 273, 4739, 292, 1288, 2 ]
for (int i = 0; i < size; i++) { double alpha = pixels[i * numComponents + numColors] * alphaScale; for (int c = 0; c < numColors; c++) { int offset = i * numComponents + c;
for (int i=0; i<size; i++) { double alpha = pixels[i*numComponents+numColors]*alphaScale; for (int c=0; c<numColors; c++) { int offset = i*numComponents+c;
public ColorModel coerceData(WritableRaster raster, boolean isAlphaPremultiplied) { if (this.isAlphaPremultiplied == isAlphaPremultiplied) return this; int w = raster.getWidth(); int h = raster.getHeight(); int x = raster.getMinX(); int y = raster.getMinY(); int size = w * h; int numColors = getNumColorComponents(); int numComponents = getNumComponents(); int alphaScale = (1 << getComponentSize(numColors)) - 1; double[] pixels = raster.getPixels(x, y, w, h, (double[]) null); for (int i = 0; i < size; i++) { double alpha = pixels[i * numComponents + numColors] * alphaScale; for (int c = 0; c < numColors; c++) { int offset = i * numComponents + c; if (isAlphaPremultiplied) pixels[offset] = pixels[offset] / alpha; else pixels[offset] = pixels[offset] * alpha; } } raster.setPixels(0, 0, w, h, pixels); // FIXME: what can we return? return null; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ColorModel.java/buggy/core/src/classpath/java/java/awt/image/ColorModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5563, 1488, 12270, 751, 12, 12061, 18637, 12553, 16, 1250, 353, 9690, 1386, 7027, 3110, 13, 288, 202, 202, 430, 261, 2211, 18, 291, 9690, 1386, 7027, 3110, 422, 353, 9690, 1386, 7027, 3110, 13, 1082, 202, 2463, 333, 31, 202, 202, 474, 341, 273, 12553, 18, 588, 2384, 5621, 202, 202, 474, 366, 273, 12553, 18, 588, 2686, 5621, 202, 202, 474, 619, 273, 12553, 18, 588, 2930, 60, 5621, 202, 202, 474, 677, 273, 12553, 18, 588, 2930, 61, 5621, 202, 202, 474, 963, 273, 341, 380, 366, 31, 202, 202, 474, 818, 12570, 273, 11187, 2957, 7171, 5621, 202, 202, 474, 818, 7171, 273, 11187, 7171, 5621, 202, 202, 474, 4190, 5587, 273, 261, 21, 2296, 10322, 1225, 12, 2107, 12570, 3719, 300, 404, 31, 202, 202, 9056, 8526, 8948, 273, 12553, 18, 588, 18079, 12, 92, 16, 677, 16, 341, 16, 366, 16, 261, 9056, 63, 5717, 446, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 963, 31, 277, 27245, 288, 1082, 202, 9056, 4190, 273, 8948, 63, 77, 380, 818, 7171, 397, 818, 12570, 65, 380, 4190, 5587, 31, 1082, 202, 1884, 261, 474, 276, 273, 374, 31, 276, 411, 818, 12570, 31, 276, 27245, 288, 9506, 202, 474, 1384, 273, 277, 380, 818, 7171, 397, 276, 31, 9506, 202, 430, 261, 291, 9690, 1386, 7027, 3110, 13, 6862, 202, 21084, 63, 3348, 65, 273, 8948, 63, 3348, 65, 342, 4190, 31, 9506, 202, 12107, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5563, 1488, 12270, 751, 12, 12061, 18637, 12553, 16, 1250, 353, 9690, 1386, 7027, 3110, 13, 288, 202, 202, 430, 261, 2211, 18, 291, 9690, 1386, 7027, 3110, 422, 353, 9690, 1386, 7027, 3110, 13, 1082, 202, 2463, 333, 31, 202, 202, 474, 341, 273, 12553, 18, 588, 2384, 5621, 202, 202, 474, 366, 273, 12553, 18, 588, 2686, 5621, 202, 202, 474, 619, 273, 12553, 18, 588, 2930, 60, 5621, 202, 202, 474, 677, 273, 12553, 18, 588, 2930, 61, 5621, 202, 202, 474, 963, 273, 341, 380, 366, 31, 202, 202, 474, 818, 12570, 273, 11187, 2957, 7171, 5621, 202, 202, 474, 818, 7171, 273, 11187, 7171, 5621, 202, 202, 474, 4190, 5587, 273, 2 ]
if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", msg, "<html><head><title>"+msg+"</title></head><body>Error: "+HTMLEncoder.encode(msg)+extra+"</body></html>");
if(e.newURI != null) { this.writePermanentRedirect(ctx, msg, "/"+e.newURI.toString()); } else { if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", msg, "<html><head><title>"+msg+"</title></head><body>Error: "+HTMLEncoder.encode(msg)+extra+"</body></html>"); }
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { //String ks = uri.toString(); String ks = uri.getPath(); HTTPRequest httprequest = new HTTPRequest(uri); if (ks.equals("/")) { if (httprequest.isParameterSet("key")) { MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/"+httprequest.getParam("key")); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } RedirectException re = new RedirectException(); try { String querystring = uri.getQuery(); if (querystring == null) { re.newuri = new URI("/welcome/"); } else { // TODP possibly a proper URLEncode method querystring = querystring.replace(" ", "+"); re.newuri = new URI("/welcome/?"+querystring); } } catch (URISyntaxException e) { // HUH!?! } throw re; } if(ks.startsWith("/")) ks = ks.substring(1); FreenetURI key; try { key = new FreenetURI(ks); } catch (MalformedURLException e) { this.writeReply(ctx, 400, "text/html", "Invalid key", "<html><head><title>Invalid key</title></head><body>Expected a freenet key, but got "+HTMLEncoder.encode(ks)+"</body></html>"); return; } try { Logger.minor(this, "Fproxy fetching "+key); FetchResult result = fetch(key); // Now, is it safe? Bucket data = result.asBucket(); String typeName = result.getMimeType(); String reqParam = httprequest.getParam("type", null); if(reqParam != null) typeName = reqParam; Logger.minor(this, "Type: "+typeName+" ("+result.getMimeType()+" "+reqParam+")"); long now = System.currentTimeMillis(); String forceString = httprequest.getParam("force"); boolean force = false; if(forceString != null) { if(forceString.equals(getForceValue(key, now)) || forceString.equals(getForceValue(key, now-FORCE_GRAIN_INTERVAL))) force = true; } if(typeName.equals("application/x-msdownload")) { // Download to disk, this should be safe, and is set when we do "force download to disk" from a dangerous-content-warning page. force = true; } try { if(!force) data = ContentFilter.filter(data, ctx.getBucketFactory(), typeName); // Send the data, intact writeReply(ctx, 200, typeName, "OK", data); } catch (UnsafeContentTypeException e) { StringBuffer buf = new StringBuffer(); ctx.getPageMaker().makeHead(buf, "Potentially Dangerous Content"); buf.append("<h1>"); buf.append(e.getHTMLEncodedTitle()); buf.append("</h1>\n"); buf.append(e.getExplanation()); buf.append("<p>Your options are:</p><ul>\n"); buf.append("<li><a href=\"/"+key.toString(false)+"?type=text/plain\">Click here</a> to open the file as plain text (this should not be dangerous, but it may be garbled).</li>\n"); // FIXME: is this safe? See bug #131 buf.append("<li><a href=\"/"+key.toString(false)+"?type=application/x-msdownload\">Click here</a> to force your browser to download the file to disk.</li>\n"); buf.append("<li><a href=\"/"+key.toString(false)+"?force="+getForceValue(key, now)+"\">Click here</a> to open the file as "+HTMLEncoder.encode(typeName)+".</li>\n"); buf.append("<li><a href=\"/\">Click here</a> to go to the FProxy home page.</li>\n"); buf.append("</ul>"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); } } catch (FetchException e) { String msg = e.getMessage(); String extra = ""; if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", msg, "<html><head><title>"+msg+"</title></head><body>Error: "+HTMLEncoder.encode(msg)+extra+"</body></html>"); } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + sw.toString() + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/315e01325509f76afb76d8e34c18f27e04549674/FproxyToadlet.java/buggy/src/freenet/clients/http/FproxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1875, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 759, 780, 11654, 273, 2003, 18, 10492, 5621, 202, 202, 780, 11654, 273, 2003, 18, 588, 743, 5621, 9506, 202, 23891, 1062, 2293, 273, 394, 25238, 12, 1650, 1769, 9506, 202, 430, 261, 7904, 18, 14963, 2932, 4898, 3719, 288, 1082, 202, 430, 261, 2022, 1484, 456, 18, 291, 1662, 694, 2932, 856, 6, 3719, 288, 9506, 202, 5002, 620, 1388, 1607, 273, 394, 5991, 620, 1388, 5621, 6862, 9506, 202, 2485, 18, 458, 2932, 2735, 3113, 4016, 15, 2022, 1484, 456, 18, 588, 786, 2932, 856, 7923, 1769, 9506, 202, 5900, 18, 4661, 7817, 3121, 12, 23, 3103, 16, 315, 2043, 3113, 1607, 16, 446, 16, 374, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 25083, 202, 5961, 503, 283, 273, 394, 9942, 503, 5621, 1082, 202, 698, 288, 9506, 202, 780, 20741, 273, 2003, 18, 588, 1138, 5621, 6862, 9506, 202, 430, 261, 2271, 1080, 422, 446, 13, 288, 6862, 202, 266, 18, 2704, 1650, 273, 394, 3699, 2932, 19, 91, 16312, 4898, 1769, 9506, 202, 97, 469, 288, 6862, 202, 759, 399, 1212, 52, 10016, 279, 5338, 1976, 5509, 707, 6862, 202, 2271, 1080, 273, 20741, 18, 2079, 2932, 3104, 13773, 8863, 6862, 202, 266, 18, 2704, 1650, 273, 394, 3699, 2932, 19, 91, 16312, 19, 7225, 15, 2271, 1080, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1875, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 759, 780, 11654, 273, 2003, 18, 10492, 5621, 202, 202, 780, 11654, 273, 2003, 18, 588, 743, 5621, 9506, 202, 23891, 1062, 2293, 273, 394, 25238, 12, 1650, 1769, 9506, 202, 430, 261, 7904, 18, 14963, 2932, 4898, 3719, 288, 1082, 202, 430, 261, 2022, 1484, 456, 18, 291, 1662, 694, 2932, 856, 6, 3719, 288, 9506, 202, 5002, 620, 1388, 1607, 273, 394, 5991, 620, 1388, 5621, 6862, 9506, 202, 2485, 18, 458, 2932, 2735, 3113, 4016, 15, 2022, 1484, 456, 18, 588, 786, 2932, 2 ]
void storeLocations(String sLocation, String nsLocation){ if (sLocation != null) { StringTokenizer t = new StringTokenizer(sLocation, " \n\t\r"); String namespace, location; while (t.hasMoreTokens()) { namespace = fSymbolTable.addSymbol(t.nextToken ()); if (!t.hasMoreTokens()) { fXSIErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "SchemaLocation", new Object[]{sLocation}, XMLErrorReporter.SEVERITY_WARNING); break; } Object locationArray = fLocationPairs.get(namespace) ; if(locationArray == null){ locationArray = new LocationArray() ; //add it into hashtable... fLocationPairs.put(namespace, locationArray); } location = t.nextToken(); ((LocationArray)locationArray).setLocation(location); } } if (nsLocation != null) { fNoNamespaceLocationArray.setLocation(nsLocation); } }//storeLocations
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/f8b05e04b15329b6392d97d9c2a70edc1ee5efba/XMLSchemaValidator.java/clean/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1707, 10985, 12, 780, 272, 2735, 16, 514, 3153, 2735, 15329, 7734, 309, 261, 87, 2735, 480, 446, 13, 288, 5411, 16370, 268, 273, 394, 16370, 12, 87, 2735, 16, 315, 521, 82, 64, 88, 64, 86, 8863, 5411, 514, 1981, 16, 2117, 31, 5411, 1323, 261, 88, 18, 5332, 7417, 5157, 10756, 288, 7734, 1981, 273, 284, 5335, 1388, 18, 1289, 5335, 12, 88, 18, 4285, 1345, 1832, 1769, 27573, 309, 16051, 88, 18, 5332, 7417, 5157, 10756, 288, 10792, 284, 60, 2320, 668, 13289, 18, 6006, 668, 12, 60, 55, 1079, 5074, 18, 14233, 67, 18192, 16, 4766, 5375, 315, 3078, 2735, 3113, 4766, 5375, 394, 1033, 63, 7073, 87, 2735, 5779, 4766, 5375, 3167, 668, 13289, 18, 1090, 2204, 4107, 67, 9511, 1769, 10792, 898, 31, 7734, 289, 27573, 1033, 2117, 1076, 273, 284, 2735, 10409, 18, 588, 12, 4937, 13, 274, 27573, 309, 12, 3562, 1076, 422, 446, 15329, 10792, 2117, 1076, 273, 394, 7050, 1076, 1435, 274, 10792, 368, 1289, 518, 1368, 711, 14544, 2777, 10792, 284, 2735, 10409, 18, 458, 12, 4937, 16, 2117, 1076, 1769, 7734, 289, 4766, 7734, 2117, 273, 268, 18, 4285, 1345, 5621, 7734, 14015, 2735, 1076, 13, 3562, 1076, 2934, 542, 2735, 12, 3562, 1769, 5411, 289, 10792, 289, 3639, 309, 261, 2387, 2735, 480, 446, 13, 288, 540, 202, 74, 2279, 3402, 2735, 1076, 18, 542, 2735, 12, 2387, 2735, 1769, 3639, 289, 7734, 289, 759, 2233, 10985, 2, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1707, 10985, 12, 780, 272, 2735, 16, 514, 3153, 2735, 15329, 7734, 309, 261, 87, 2735, 480, 446, 13, 288, 5411, 16370, 268, 273, 394, 16370, 12, 87, 2735, 16, 315, 521, 82, 64, 88, 64, 86, 8863, 5411, 514, 1981, 16, 2117, 31, 5411, 1323, 261, 88, 18, 5332, 7417, 5157, 10756, 288, 7734, 1981, 273, 284, 5335, 1388, 18, 1289, 5335, 12, 88, 18, 4285, 1345, 1832, 1769, 27573, 309, 16051, 88, 18, 5332, 7417, 5157, 10756, 288, 10792, 284, 60, 2320, 668, 13289, 18, 6006, 668, 12, 60, 55, 1079, 5074, 18, 14233, 67, 18192, 16, 4766, 5375, 315, 3078, 2735, 3113, 4766, 5375, 394, 1033, 63, 7073, 87, 2735, 5779, 4766, 5375, 3167, 2 ]
public RubyFixnum aref(RubyNumeric pos) { boolean isSet = getValue().testBit((int) pos.getLongValue());
public RubyFixnum aref(IRubyObject other) { long pos = num2long(other); boolean isSet = getValue().testBit((int) pos);
public RubyFixnum aref(RubyNumeric pos) { boolean isSet = getValue().testBit((int) pos.getLongValue()); return getRuntime().newFixnum(isSet ? 1 : 0); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/ae3178fbb3656e01c3d379a6255e1af956725271/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 8585, 2107, 854, 74, 12, 54, 10340, 9902, 949, 13, 288, 3639, 1250, 13532, 273, 2366, 7675, 3813, 5775, 12443, 474, 13, 949, 18, 588, 3708, 620, 10663, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 291, 694, 692, 404, 294, 374, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 8585, 2107, 854, 74, 12, 54, 10340, 9902, 949, 13, 288, 3639, 1250, 13532, 273, 2366, 7675, 3813, 5775, 12443, 474, 13, 949, 18, 588, 3708, 620, 10663, 3639, 327, 18814, 7675, 2704, 8585, 2107, 12, 291, 694, 692, 404, 294, 374, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
UpgradeJDialog.this.actionJProgressBar.setString("finished refreshing upgrade table.");
if( Util.isArrayEmpty(upgradable) ){ UpgradeJDialog.this.upgradeJButton.setEnabled(false); } else{ UpgradeJDialog.this.upgradeJButton.setEnabled(true); }
SwingUtilities.invokeAndWait( new Runnable(){ public void run(){ UpgradeJDialog.this.actionJProgressBar.setValue(100); UpgradeJDialog.this.actionJProgressBar.setString("finished refreshing upgrade table."); }});
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/e21d7e0148fc9a508a6a33664a025979e352bccd/UpgradeJDialog.java/buggy/gui/main/com/metavize/gui/upgrade/UpgradeJDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 26145, 11864, 18, 14407, 1876, 5480, 12, 394, 10254, 1435, 95, 1071, 918, 1086, 1435, 95, 10792, 17699, 46, 6353, 18, 2211, 18, 1128, 46, 31547, 18, 542, 620, 12, 6625, 1769, 10792, 309, 12, 3564, 18, 291, 1076, 1921, 12, 416, 9974, 429, 13, 262, 95, 17699, 46, 6353, 18, 2211, 18, 15097, 46, 3616, 18, 542, 1526, 12, 5743, 1769, 289, 469, 95, 17699, 46, 6353, 18, 2211, 18, 15097, 46, 3616, 18, 542, 1526, 12, 3767, 1769, 289, 7734, 10523, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 26145, 11864, 18, 14407, 1876, 5480, 12, 394, 10254, 1435, 95, 1071, 918, 1086, 1435, 95, 10792, 17699, 46, 6353, 18, 2211, 18, 1128, 46, 31547, 18, 542, 620, 12, 6625, 1769, 10792, 309, 12, 3564, 18, 291, 1076, 1921, 12, 416, 9974, 429, 13, 262, 95, 17699, 46, 6353, 18, 2211, 18, 15097, 46, 3616, 18, 542, 1526, 12, 5743, 1769, 289, 469, 95, 17699, 46, 6353, 18, 2211, 18, 15097, 46, 3616, 18, 542, 1526, 12, 3767, 1769, 289, 7734, 10523, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Vector assignmentIds = (Vector) state.getAttribute(DELETE_ASSIGNMENT_IDS); boolean allowRemove = false; for (int i = 0; !allowRemove && i < assignmentIds.size(); i++) { String aReference = AssignmentService.assignmentReference(contextString, (String) assignmentIds.get(i)); if (AssignmentService.allowRemoveAssignment(aReference)) { allowRemove = true; } }
justDelivered(state);
public String buildMainPanelContext(VelocityPortlet portlet, Context context, RunData data, SessionState state) { String template = null; context.put("tlang", rb); context.put("cheffeedbackhelper", this); String contextString = (String) state.getAttribute(STATE_CONTEXT_STRING); // allow add assignment? boolean allowAddAssignment = AssignmentService.allowAddAssignment(contextString); context.put("allowAddAssignment", Boolean.valueOf(allowAddAssignment)); // allow grade assignment? boolean allowGradeSubmission = AssignmentService.allowGradeSubmission(contextString); context.put("allowGradeSubmission", Boolean.valueOf(allowGradeSubmission)); // allow update site? context .put("allowUpdateSite", Boolean .valueOf(SiteService.allowUpdateSite(ToolManager.getCurrentPlacement().getContext()))); // grading option context.put("withGrade", state.getAttribute(WITH_GRADES)); String mode = (String) state.getAttribute(STATE_MODE); if (mode.equals(MODE_LIST_ASSIGNMENTS)) { // build the context for the student assignment view template = build_list_assignments_context(portlet, context, data, state); } else if (mode.equals(MODE_STUDENT_VIEW_ASSIGNMENT)) { // the student view of assignment template = build_student_view_assignment_context(portlet, context, data, state); } else if (mode.equals(MODE_STUDENT_VIEW_SUBMISSION)) { // disable auto-updates while leaving the list view justDelivered(state); // build the context for showing one assignment submission template = build_student_view_submission_context(portlet, context, data, state); } else if (mode.equals(MODE_STUDENT_PREVIEW_SUBMISSION)) { // build the context for showing one assignment submission template = build_student_preview_submission_context(portlet, context, data, state); } else if (mode.equals(MODE_STUDENT_VIEW_GRADE)) { // disable auto-updates while leaving the list view justDelivered(state); // build the context for showing one graded submission template = build_student_view_grade_context(portlet, context, data, state); } else if (mode.equals(MODE_INSTRUCTOR_NEW_EDIT_ASSIGNMENT)) { // allow add assignment? boolean allowAddSiteAssignment = AssignmentService.allowAddSiteAssignment(contextString); context.put("allowAddSiteAssignment", Boolean.valueOf(allowAddSiteAssignment)); // disable auto-updates while leaving the list view justDelivered(state); // build the context for the instructor's create new assignment view template = build_instructor_new_edit_assignment_context(portlet, context, data, state); } else if (mode.equals(MODE_INSTRUCTOR_DELETE_ASSIGNMENT)) { if (state.getAttribute(DELETE_ASSIGNMENT_IDS) != null) { Vector assignmentIds = (Vector) state.getAttribute(DELETE_ASSIGNMENT_IDS); boolean allowRemove = false; for (int i = 0; !allowRemove && i < assignmentIds.size(); i++) { String aReference = AssignmentService.assignmentReference(contextString, (String) assignmentIds.get(i)); if (AssignmentService.allowRemoveAssignment(aReference)) { allowRemove = true; } } // if user can remove at least one assignment if (allowRemove) { // disable auto-updates while leaving the list view justDelivered(state); // build the context for the instructor's delete assignment template = build_instructor_delete_assignment_context(portlet, context, data, state); } } } else if (mode.equals(MODE_INSTRUCTOR_GRADE_ASSIGNMENT) && allowGradeSubmission) { // build the context for the instructor's grade assignment template = build_instructor_grade_assignment_context(portlet, context, data, state); } else if (mode.equals(MODE_INSTRUCTOR_GRADE_SUBMISSION) && allowGradeSubmission) { // disable auto-updates while leaving the list view justDelivered(state); // build the context for the instructor's grade submission template = build_instructor_grade_submission_context(portlet, context, data, state); } else if (mode.equals(MODE_INSTRUCTOR_PREVIEW_GRADE_SUBMISSION) && allowGradeSubmission) { // build the context for the instructor's preview grade submission template = build_instructor_preview_grade_submission_context(portlet, context, data, state); } else if (mode.equals(MODE_INSTRUCTOR_PREVIEW_ASSIGNMENT) && allowAddAssignment) { // build the context for preview one assignment template = build_instructor_preview_assignment_context(portlet, context, data, state); } else if (mode.equals(MODE_INSTRUCTOR_VIEW_ASSIGNMENT) && (allowAddAssignment || allowGradeSubmission)) { // disable auto-updates while leaving the list view justDelivered(state); // build the context for view one assignment template = build_instructor_view_assignment_context(portlet, context, data, state); } else if (mode.equals(MODE_INSTRUCTOR_VIEW_STUDENTS_ASSIGNMENT) && (allowAddAssignment || allowGradeSubmission)) { // build the context for the instructor's create new assignment view template = build_instructor_view_students_assignment_context(portlet, context, data, state); } else if (mode.equals(MODE_INSTRUCTOR_REPORT_SUBMISSIONS) && (allowAddAssignment || allowGradeSubmission)) { // build the context for the instructor's view of report submissions template = build_instructor_report_submissions(portlet, context, data, state); } if (template == null) { // default to student list view state.setAttribute(STATE_MODE, MODE_LIST_ASSIGNMENTS); template = build_list_assignments_context(portlet, context, data, state); } // if group in assignment is allowed, show all the groups in this channal that user has get message in if (AssignmentService.getAllowGroupAssignments()) { Collection groups = AssignmentService.getGroupsAllowAddAssignment(contextString); if (groups != null && groups.size() > 0) { context.put("groups", groups); } } return template; } // buildNormalContext
54270 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54270/e8bafd0f21cb0b792fe782b5d0a94885bca08fd7/AssignmentAction.java/clean/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1361, 6376, 5537, 1042, 12, 27522, 18566, 13114, 16, 1772, 819, 16, 1939, 751, 501, 16, 3877, 1119, 919, 13, 202, 95, 202, 202, 780, 1542, 273, 446, 31, 9506, 202, 2472, 18, 458, 2932, 88, 4936, 3113, 7138, 1769, 202, 202, 2472, 18, 458, 2932, 343, 17098, 73, 329, 823, 4759, 3113, 333, 1769, 202, 202, 780, 819, 780, 273, 261, 780, 13, 919, 18, 588, 1499, 12, 7998, 67, 13181, 67, 5804, 1769, 202, 202, 759, 1699, 527, 6661, 35, 202, 202, 6494, 1699, 986, 7729, 273, 15499, 1179, 18, 5965, 986, 7729, 12, 2472, 780, 1769, 202, 202, 2472, 18, 458, 2932, 5965, 986, 7729, 3113, 3411, 18, 1132, 951, 12, 5965, 986, 7729, 10019, 202, 202, 759, 1699, 7324, 6661, 35, 202, 202, 6494, 1699, 14571, 323, 17865, 273, 15499, 1179, 18, 5965, 14571, 323, 17865, 12, 2472, 780, 1769, 202, 202, 2472, 18, 458, 2932, 5965, 14571, 323, 17865, 3113, 3411, 18, 1132, 951, 12, 5965, 14571, 323, 17865, 10019, 202, 202, 759, 1699, 1089, 2834, 35, 202, 202, 2472, 9506, 202, 18, 458, 2932, 5965, 1891, 4956, 3113, 3411, 25083, 202, 18, 1132, 951, 12, 4956, 1179, 18, 5965, 1891, 4956, 12, 6364, 1318, 18, 588, 3935, 12420, 7675, 29120, 1435, 3719, 1769, 202, 202, 759, 21717, 1456, 202, 202, 2472, 18, 458, 2932, 1918, 14571, 323, 3113, 919, 18, 588, 1499, 12, 9147, 67, 24554, 26463, 10019, 202, 202, 780, 1965, 273, 261, 780, 13, 919, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1361, 6376, 5537, 1042, 12, 27522, 18566, 13114, 16, 1772, 819, 16, 1939, 751, 501, 16, 3877, 1119, 919, 13, 202, 95, 202, 202, 780, 1542, 273, 446, 31, 9506, 202, 2472, 18, 458, 2932, 88, 4936, 3113, 7138, 1769, 202, 202, 2472, 18, 458, 2932, 343, 17098, 73, 329, 823, 4759, 3113, 333, 1769, 202, 202, 780, 819, 780, 273, 261, 780, 13, 919, 18, 588, 1499, 12, 7998, 67, 13181, 67, 5804, 1769, 202, 202, 759, 1699, 527, 6661, 35, 202, 202, 6494, 1699, 986, 7729, 273, 15499, 1179, 18, 5965, 986, 7729, 12, 2472, 780, 1769, 202, 202, 2472, 18, 458, 2932, 5965, 986, 7729, 3113, 3411, 18, 1132, 951, 12, 5965, 2 ]
addTestSuite(DefaultBindSupportFactoryBooleanPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryBytePrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryDoublePrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryFloatPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryIntTest.class); addTestSuite(DefaultBindSupportFactoryLongPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryShortPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryTest.class);
addTestSuite(JavaBeanObservableValueTest.class);
public BindingTestSuite() { //org.eclipse.core.tests.databinding.beans addTestSuite(BeansObservablesTest.class); // org.eclipse.jface.internal.databinding.provisional.conversion addTestSuite(IdentityConverterTest.class); // org.eclipse.jface.internal.databinding.provisional.factories addTestSuite(DefaultBindSupportFactoryBooleanPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryBytePrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryDoublePrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryFloatPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryIntTest.class); addTestSuite(DefaultBindSupportFactoryLongPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryShortPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryTest.class); // org.eclipse.jface.internal.databinding.provisional.validation addTestSuite(ObjectToPrimitiveValidatorTest.class); // org.eclipse.jface.tests.databinding addTestSuite(BindSpecTests.class); addTestSuite(ComputedValueTest.class); addTestSuite(DatabindingContextTest.class); addTestSuite(IDiffsTest.class); addTestSuite(ObservableTest.class); addTestSuite(RandomAccessListIteratorTest.class); // org.eclipse.jface.tests.databinding.mask addTestSuite(EditMaskLexerAndTokenTest.class); addTestSuite(EditMaskParserTest.class); //org.eclipse.jface.tests.databinding.observable addTestSuite(ThreadRealmTest.class); // org.eclipse.jface.tests.databinding.observable.value addTestSuite(WritableValueTest.class); // org.eclipse.jface.tests.databinding.scenarios addTest(BindingScenariosTestSuite.suite()); //The files in this package are in the above test suite //org.eclipse.jface.tests.databinding.swt//FIXME addTestSuite(AbstractGetAndSetSelectionObservableCollectionTest.class);//FIXME addTestSuite(AutoSelectTableViewerCollectionExtendedTest.class); //FIXME addTestSuite(AutoSelectTableViewerCollectionTest.class);//FIXME addTestSuite(CComboObservableCollectionTest.class);//FIXME addTestSuite(ComboObservableCollectionTest.class);//FIXME addTestSuite(CopyOfAutoSelectTableViewerCollectionExtendedTest.class);//FIXME addTestSuite(ListObservableCollectionTest.class);//FIXME addTestSuite(ObservableCollectionViewerTest.class);//FIXME addTestSuite(TableViewerObservableCollectionTest.class); addTestSuite(TextObservableValueTests.class); //org.eclipse.jface.tests.databinding.views addTestSuite(ObservableMapLabelProviderTest.class); addTestSuite(ObservableSetContentProviderTest.class); //org.eclipse.jface.tests.examples.model addTestSuite(PersonTests.class); //org.eclipse.jface.tests.internal.databinding.internal addTestSuite(ListBindingTest.class); addTestSuite(ValueBindingTest.class); //org.eclipse.jface.tests.internal.databinding.internal.observable addTestSuite(UnmodifiableObservableListTest.class); //org.eclipse.jface.tests.internal.databinding.internal.viewers addTestSuite(SelectionProviderSingleSelectionObservableValueTest.class);//FIXME addTestSuite(SVOCWLTest.class); //org.eclipse.jface.tests.internal.databinding.provisional.observable addTestSuite(AbstractObservableTest.class); addTestSuite(ObservablesTest.class); //org.eclipse.jface.tests.internal.databinding.provisional.viewers addTestSuite(SelectionObservableValueTest.class); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c8f2cc5874f2e6247a2cbb9878a80029b7203e0a/BindingTestSuite.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/BindingTestSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15689, 4709, 13587, 1435, 288, 377, 202, 759, 3341, 18, 20416, 18, 3644, 18, 16341, 18, 3404, 378, 728, 310, 18, 2196, 634, 377, 202, 1289, 4709, 13587, 12, 14495, 26199, 1538, 4709, 18, 1106, 1769, 377, 202, 3639, 368, 2358, 18, 20416, 18, 78, 865, 18, 7236, 18, 3404, 378, 728, 310, 18, 17051, 287, 18, 20990, 3639, 527, 4709, 13587, 12, 4334, 5072, 4709, 18, 1106, 1769, 3639, 368, 2358, 18, 20416, 18, 78, 865, 18, 7236, 18, 3404, 378, 728, 310, 18, 17051, 287, 18, 3493, 2401, 3639, 527, 4709, 13587, 12, 1868, 3357, 6289, 1733, 5507, 9840, 4709, 18, 1106, 1769, 3639, 527, 4709, 13587, 12, 1868, 3357, 6289, 1733, 3216, 9840, 4709, 18, 1106, 1769, 3639, 527, 4709, 13587, 12, 1868, 3357, 6289, 1733, 5265, 9840, 4709, 18, 1106, 1769, 3639, 527, 4709, 13587, 12, 1868, 3357, 6289, 1733, 4723, 9840, 4709, 18, 1106, 1769, 3639, 527, 4709, 13587, 12, 1868, 3357, 6289, 1733, 1702, 4709, 18, 1106, 1769, 3639, 527, 4709, 13587, 12, 1868, 3357, 6289, 1733, 3708, 9840, 4709, 18, 1106, 1769, 3639, 527, 4709, 13587, 12, 1868, 3357, 6289, 1733, 4897, 9840, 4709, 18, 1106, 1769, 3639, 527, 4709, 13587, 12, 1868, 3357, 6289, 1733, 4709, 18, 1106, 1769, 3639, 368, 2358, 18, 20416, 18, 78, 865, 18, 7236, 18, 3404, 378, 728, 310, 18, 17051, 287, 18, 8685, 3639, 527, 4709, 13587, 12, 921, 774, 9840, 5126, 4709, 18, 1106, 1769, 3639, 368, 2358, 18, 20416, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15689, 4709, 13587, 1435, 288, 377, 202, 759, 3341, 18, 20416, 18, 3644, 18, 16341, 18, 3404, 378, 728, 310, 18, 2196, 634, 377, 202, 1289, 4709, 13587, 12, 14495, 26199, 1538, 4709, 18, 1106, 1769, 377, 202, 3639, 368, 2358, 18, 20416, 18, 78, 865, 18, 7236, 18, 3404, 378, 728, 310, 18, 17051, 287, 18, 20990, 3639, 527, 4709, 13587, 12, 4334, 5072, 4709, 18, 1106, 1769, 3639, 368, 2358, 18, 20416, 18, 78, 865, 18, 7236, 18, 3404, 378, 728, 310, 18, 17051, 287, 18, 3493, 2401, 3639, 527, 4709, 13587, 12, 1868, 3357, 6289, 1733, 5507, 9840, 4709, 18, 1106, 1769, 3639, 527, 4709, 13587, 12, 1868, 3357, 6289, 1733, 3216, 9840, 4709, 2 ]
if (hashCode == HASH_CODE_NOT_COMPUTED) { hashCode = HASH_INITIAL * HASH_FACTOR + Util.hashCode(child); if (hashCode == HASH_CODE_NOT_COMPUTED) { hashCode++;
if (expressionHashCode == HASH_CODE_NOT_COMPUTED) { expressionHashCode = HASH_INITIAL * HASH_FACTOR + Util.hashCode(child); if (expressionHashCode == HASH_CODE_NOT_COMPUTED) { expressionHashCode++;
public final int hashCode() { if (hashCode == HASH_CODE_NOT_COMPUTED) { hashCode = HASH_INITIAL * HASH_FACTOR + Util.hashCode(child); if (hashCode == HASH_CODE_NOT_COMPUTED) { hashCode++; } } return hashCode; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fbfdc1c13611716bf96a9bb570c014778c84352c/ActionExpression.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 727, 509, 13374, 1435, 288, 1082, 202, 430, 261, 2816, 1085, 422, 20857, 67, 5572, 67, 4400, 67, 10057, 57, 6404, 13, 288, 9506, 202, 2816, 1085, 273, 20857, 67, 28497, 380, 20857, 67, 26835, 397, 3564, 18, 2816, 1085, 12, 3624, 1769, 9506, 202, 430, 261, 2816, 1085, 422, 20857, 67, 5572, 67, 4400, 67, 10057, 57, 6404, 13, 288, 6862, 202, 2816, 1085, 9904, 31, 9506, 202, 97, 1082, 202, 97, 1082, 202, 2463, 13374, 31, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 727, 509, 13374, 1435, 288, 1082, 202, 430, 261, 2816, 1085, 422, 20857, 67, 5572, 67, 4400, 67, 10057, 57, 6404, 13, 288, 9506, 202, 2816, 1085, 273, 20857, 67, 28497, 380, 20857, 67, 26835, 397, 3564, 18, 2816, 1085, 12, 3624, 1769, 9506, 202, 430, 261, 2816, 1085, 422, 20857, 67, 5572, 67, 4400, 67, 10057, 57, 6404, 13, 288, 6862, 202, 2816, 1085, 9904, 31, 9506, 202, 97, 1082, 202, 97, 1082, 202, 2463, 13374, 31, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public ProcessWorker(String workerName,
public ProcessWorker(WorkerIdentity workerIdentity,
public ProcessWorker(String workerName, String[] commandArray, OutputStream outputStream, OutputStream errorStream) throws EngineException { m_workerName = workerName; try { m_process = Runtime.getRuntime().exec(commandArray); } catch (Exception e) { throw new EngineException("Could not start process", e); } m_stdoutRedirectorThread = createRedirectorThread(m_process.getInputStream(), outputStream); m_stderrRedirectorThread = createRedirectorThread(m_process.getErrorStream(), errorStream); }
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/f1e4b2fafbc0269b824bf103bac621a6e06606bc/ProcessWorker.java/buggy/src/net/grinder/engine/agent/ProcessWorker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4389, 6671, 12, 6671, 4334, 4322, 4334, 16, 15604, 514, 8526, 1296, 1076, 16, 15604, 8962, 14956, 16, 15604, 8962, 555, 1228, 13, 565, 1216, 10507, 503, 288, 565, 312, 67, 10124, 461, 273, 4322, 461, 31, 565, 775, 288, 1377, 312, 67, 2567, 273, 2509, 18, 588, 5576, 7675, 4177, 12, 3076, 1076, 1769, 565, 289, 565, 1044, 261, 503, 425, 13, 288, 1377, 604, 394, 10507, 503, 2932, 4445, 486, 787, 1207, 3113, 425, 1769, 565, 289, 565, 312, 67, 10283, 5961, 280, 3830, 273, 1377, 752, 5961, 280, 3830, 12, 81, 67, 2567, 18, 588, 4348, 9334, 14956, 1769, 565, 312, 67, 11241, 5961, 280, 3830, 273, 1377, 752, 5961, 280, 3830, 12, 81, 67, 2567, 18, 588, 668, 1228, 9334, 555, 1228, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4389, 6671, 12, 6671, 4334, 4322, 4334, 16, 15604, 514, 8526, 1296, 1076, 16, 15604, 8962, 14956, 16, 15604, 8962, 555, 1228, 13, 565, 1216, 10507, 503, 288, 565, 312, 67, 10124, 461, 273, 4322, 461, 31, 565, 775, 288, 1377, 312, 67, 2567, 273, 2509, 18, 588, 5576, 7675, 4177, 12, 3076, 1076, 1769, 565, 289, 565, 1044, 261, 503, 425, 13, 288, 1377, 604, 394, 10507, 503, 2932, 4445, 486, 787, 1207, 3113, 425, 1769, 565, 289, 565, 312, 67, 10283, 5961, 280, 3830, 273, 1377, 752, 5961, 280, 3830, 12, 81, 67, 2567, 18, 588, 4348, 9334, 14956, 1769, 565, 312, 67, 11241, 5961, 280, 3830, 273, 1377, 752, 5961, 280, 3830, 12, 81, 2 ]
String keyConfigurationId = memento.getString(TAG_KEY_CONFIGURATION_ID); if (keyConfigurationId == null) keyConfigurationId = memento.getString("value"); String sourceId = sourceIdOverride != null ? sourceIdOverride : memento .getString(TAG_SOURCE_ID); if (sourceIdOverride == null && sourceId == null) sourceId = memento.getString("plugin"); return new ActiveKeyConfigurationDefinition(keyConfigurationId, sourceId);
final String keyConfigurationId = store .getString(IPreferenceConstants.KEY_CONFIGURATION_ID); return new ActiveKeyConfigurationDefinition(keyConfigurationId, null);
static ActiveKeyConfigurationDefinition readActiveKeyConfigurationDefinition( IMemento memento, String sourceIdOverride) { if (memento == null) throw new NullPointerException(); String keyConfigurationId = memento.getString(TAG_KEY_CONFIGURATION_ID); // TODO deprecated start if (keyConfigurationId == null) keyConfigurationId = memento.getString("value"); //$NON-NLS-1$ // TODO deprecated end String sourceId = sourceIdOverride != null ? sourceIdOverride : memento .getString(TAG_SOURCE_ID); // TODO deprecated start if (sourceIdOverride == null && sourceId == null) sourceId = memento.getString("plugin"); //$NON-NLS-1$ // TODO deprecated end return new ActiveKeyConfigurationDefinition(keyConfigurationId, sourceId); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ba9608257e923623d3b8a58d00aa904933ae3144/Persistence.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/Persistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 8857, 653, 1750, 1852, 855, 3896, 653, 1750, 1852, 12, 5411, 6246, 820, 83, 312, 820, 83, 16, 514, 27572, 6618, 13, 288, 3639, 309, 261, 81, 820, 83, 422, 446, 13, 5411, 604, 394, 10108, 5621, 3639, 514, 498, 1750, 548, 273, 312, 820, 83, 18, 588, 780, 12, 7927, 67, 3297, 67, 21200, 67, 734, 1769, 3639, 368, 2660, 6849, 787, 3639, 309, 261, 856, 1750, 548, 422, 446, 13, 5411, 498, 1750, 548, 273, 312, 820, 83, 18, 588, 780, 2932, 1132, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 540, 368, 2660, 6849, 679, 3639, 514, 27572, 273, 27572, 6618, 480, 446, 692, 27572, 6618, 294, 312, 820, 83, 7734, 263, 588, 780, 12, 7927, 67, 6537, 67, 734, 1769, 3639, 368, 2660, 6849, 787, 3639, 309, 261, 3168, 548, 6618, 422, 446, 597, 27572, 422, 446, 13, 5411, 27572, 273, 312, 820, 83, 18, 588, 780, 2932, 4094, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 540, 368, 2660, 6849, 679, 3639, 327, 394, 8857, 653, 1750, 1852, 12, 856, 1750, 548, 16, 7734, 27572, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 8857, 653, 1750, 1852, 855, 3896, 653, 1750, 1852, 12, 5411, 6246, 820, 83, 312, 820, 83, 16, 514, 27572, 6618, 13, 288, 3639, 309, 261, 81, 820, 83, 422, 446, 13, 5411, 604, 394, 10108, 5621, 3639, 514, 498, 1750, 548, 273, 312, 820, 83, 18, 588, 780, 12, 7927, 67, 3297, 67, 21200, 67, 734, 1769, 3639, 368, 2660, 6849, 787, 3639, 309, 261, 856, 1750, 548, 422, 446, 13, 5411, 498, 1750, 548, 273, 312, 820, 83, 18, 588, 780, 2932, 1132, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 540, 368, 2660, 6849, 679, 3639, 514, 27572, 273, 27572, 6618, 480, 446, 692, 27572, 6618, 294, 312, 820, 83, 7734, 263, 588, 780, 2 ]
optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword });
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { //String ks = uri.toString(); String ks = uri.getPath(); HTTPRequest httprequest = new HTTPRequest(uri); if (ks.equals("/")) { if (httprequest.isParameterSet("key")) { MultiValueTable headers = new MultiValueTable(); String k = httprequest.getParam("key"); FreenetURI newURI; try { newURI = new FreenetURI(k); } catch (MalformedURLException e) { sendErrorPage(ctx, 404, "Not found", "Invalid key"); return; } headers.put("Location", "/"+newURI); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } RedirectException re = new RedirectException(); try { String querystring = uri.getQuery(); if (querystring == null) { re.newuri = welcome; } else { // TODP possibly a proper URLEncode method querystring = querystring.replace(' ', '+'); re.newuri = new URI("/welcome/?"+querystring); } } catch (URISyntaxException e) { // HUH!?! } throw re; }else if(ks.equals("/favicon.ico")){ byte[] buf = new byte[1024]; int len; InputStream strm = getClass().getResourceAsStream("staticfiles/favicon.ico"); if (strm == null) { this.sendErrorPage(ctx, 404, "Path not found", "The specified path does not exist."); return; } ctx.sendReplyHeaders(200, "OK", null, "image/x-icon", strm.available()); while ( (len = strm.read(buf)) > 0) { ctx.writeData(buf, 0, len); } return; } if(ks.startsWith("/")) ks = ks.substring(1); long maxSize = httprequest.getLongParam("max-size", MAX_LENGTH); FreenetURI key; try { key = new FreenetURI(ks); } catch (MalformedURLException e) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Invalid key"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode errorInfobox = contentNode.addChild("div", "class", "infobox infobox-error"); errorInfobox.addChild("div", "class", "infobox-header", "Invalid key"); HTMLNode errorContent = errorInfobox.addChild("div", "class", "infobox-content"); errorContent.addChild("#", "Expected a freenet key, but got "); errorContent.addChild("code", ks); errorContent.addChild("br"); errorContent.addChild(ctx.getPageMaker().createBackLink(ctx)); errorContent.addChild("br"); errorContent.addChild("a", new String[] { "href", "title" }, new String[] { "/", "Node homepage" }, "Homepage"); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 400, "text/html", "Invalid key", pageBuffer.toString()); return; } String requestedMimeType = httprequest.getParam("type", null); String override = (requestedMimeType == null) ? "" : "?type="+URLEncoder.encode(requestedMimeType); try { if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "FProxy fetching "+key+" ("+maxSize+ ')'); FetchResult result = fetch(key, maxSize); // Now, is it safe? Bucket data = result.asBucket(); String mimeType = result.getMimeType(); String referer = sanitizeReferer(ctx); handleDownload(ctx, data, ctx.getBucketFactory(), mimeType, requestedMimeType, httprequest.getParam("force", null), httprequest.isParameterSet("forcedownload"), "/", key, maxSize != MAX_LENGTH ? "&max-size="+maxSize : "", referer); } catch (FetchException e) { String msg = e.getMessage(); String extra = ""; if(e.mode == FetchException.NOT_ENOUGH_PATH_COMPONENTS) { this.writePermanentRedirect(ctx, "Not enough meta-strings", '/' + key.toString(false) + '/' + override); } else if(e.newURI != null) { this.writePermanentRedirect(ctx, msg, '/' +e.newURI.toString() + override); } else if(e.mode == FetchException.TOO_BIG) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("File information"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-information"); infobox.addChild("div", "class", "infobox-header", "Large file"); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); HTMLNode fileInformationList = infoboxContent.addChild("ul"); HTMLNode option = fileInformationList.addChild("li"); option.addChild("#", "Filename: "); option.addChild("a", "href", '/' + key.toString(false), getFilename(e, key, e.getExpectedMimeType())); boolean finalized = e.finalizedSize(); if(e.expectedSize > 0) { if (finalized) { fileInformationList.addChild("li", "Size: " + SizeUtil.formatSize(e.expectedSize)); } else { fileInformationList.addChild("li", "Size: " + SizeUtil.formatSize(e.expectedSize) + " (may change)"); } } else { fileInformationList.addChild("li", "Size: unknown"); } String mime = e.getExpectedMimeType(); if(mime != null) { if (finalized) { fileInformationList.addChild("li", "MIME type: " + mime); } else { fileInformationList.addChild("li", "Expected MIME type: " + mime); } } else { fileInformationList.addChild("li", "MIME type: unknown"); } infobox = contentNode.addChild("div", "class", "infobox infobox-information"); infobox.addChild("div", "class", "infobox-header", "Explanation"); infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild("#", "The Freenet key you requested refers to a large file. Files of this size cannot generally be sent directly to your browser since they take too long for your Freenet node to retrieve. The following options are available:"); HTMLNode optionList = infoboxContent.addChild("ul"); option = optionList.addChild("li"); HTMLNode optionForm = option.addChild("form", new String[] { "action", "method" }, new String[] {'/' + key.toString(false), "get" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "max-size", String.valueOf(e.expectedSize == -1 ? Long.MAX_VALUE : e.expectedSize*2) }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "fetch", "Fetch anyway and display file in browser" }); option = optionList.addChild("li"); optionForm = option.addChild("form", new String[] { "action", "method" }, new String[] { "/queue/", "post" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "key", key.toString(false) }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "return-type", "disk" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "persistence", "forever" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); if (mime != null) { optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "type", mime }); } optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "download", "Download in background and store in downloads directory" }); optionList.addChild("li").addChild("a", new String[] { "href", "title" }, new String[] { "/", "FProxy home page" }, "Abort and return to the FProxy home page"); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); } else { if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; HTMLNode pageNode = ctx.getPageMaker().getPageNode(FetchException.getShortMessage(e.mode)); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-error"); infobox.addChild("div", "class", "infobox-header", FetchException.getShortMessage(e.mode)); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild("#", "Error: " + msg + extra); infoboxContent.addChild("br"); infoboxContent.addChild(ctx.getPageMaker().createBackLink(ctx)); infoboxContent.addChild("br"); infoboxContent.addChild("a", new String[] { "href", "title" }, new String[] { "/", "Node homepage" }, "Homepage"); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", FetchException.getShortMessage(e.mode), pageBuffer.toString()); } } catch (SocketException e) { // Probably irrelevant if(e.getMessage().equals("Broken pipe")) { if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "Caught "+e+" while handling GET", e); } else { Logger.normal(this, "Caught "+e); } throw e; } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + HTMLEncoder.encode(sw.toString()) + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/FProxyToadlet.java/clean/src/freenet/clients/http/FProxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1875, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 759, 780, 11654, 273, 2003, 18, 10492, 5621, 202, 202, 780, 11654, 273, 2003, 18, 588, 743, 5621, 9506, 202, 23891, 1062, 2293, 273, 394, 25238, 12, 1650, 1769, 9506, 202, 430, 261, 7904, 18, 14963, 2932, 4898, 3719, 288, 1082, 202, 430, 261, 2022, 1484, 456, 18, 291, 1662, 694, 2932, 856, 6, 3719, 288, 9506, 202, 5002, 620, 1388, 1607, 273, 394, 5991, 620, 1388, 5621, 6862, 9506, 202, 780, 417, 273, 1062, 2293, 18, 588, 786, 2932, 856, 8863, 9506, 202, 42, 2842, 278, 3098, 394, 3098, 31, 9506, 202, 698, 288, 6862, 202, 2704, 3098, 273, 394, 478, 2842, 278, 3098, 12, 79, 1769, 9506, 202, 97, 1044, 261, 18695, 20160, 425, 13, 288, 6862, 202, 4661, 668, 1964, 12, 5900, 16, 7709, 16, 315, 1248, 1392, 3113, 315, 1941, 498, 8863, 6862, 202, 2463, 31, 9506, 202, 97, 6862, 9506, 202, 2485, 18, 458, 2932, 2735, 3113, 4016, 15, 2704, 3098, 1769, 9506, 202, 5900, 18, 4661, 7817, 3121, 12, 23, 3103, 16, 315, 2043, 3113, 1607, 16, 446, 16, 374, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 25083, 202, 5961, 503, 283, 273, 394, 9942, 503, 5621, 1082, 202, 698, 288, 9506, 202, 780, 20741, 273, 2003, 18, 588, 1138, 5621, 6862, 9506, 202, 430, 261, 2271, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1875, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 759, 780, 11654, 273, 2003, 18, 10492, 5621, 202, 202, 780, 11654, 273, 2003, 18, 588, 743, 5621, 9506, 202, 23891, 1062, 2293, 273, 394, 25238, 12, 1650, 1769, 9506, 202, 430, 261, 7904, 18, 14963, 2932, 4898, 3719, 288, 1082, 202, 430, 261, 2022, 1484, 456, 18, 291, 1662, 694, 2932, 856, 6, 3719, 288, 9506, 202, 5002, 620, 1388, 1607, 273, 394, 5991, 620, 1388, 5621, 6862, 9506, 202, 780, 417, 273, 1062, 2293, 18, 588, 786, 2932, 856, 8863, 9506, 202, 42, 2842, 2 ]
getRenderingContext().getTextRenderer().setupGraphics( c.getGraphics() );
getRenderingContext().getTextRenderer().setupGraphics(c.getGraphics());
public void startLayout( Graphics g ) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } // set up CSS Context c = newContext( (Graphics2D)g ); //getContext().setMaxWidth(0); getRenderingContext().getTextRenderer().setupGraphics( c.getGraphics() ); //TODO: maybe temporary hack //Context c = getContext(); body_box = Boxing.layout( c, new DomToplevelNode( doc ) ); XRLog.layout( Level.FINEST, "is a fixed child: " + body_box.isChildrenExceedBounds() ); // if there is a fixed child then we need to set opaque to false // so that the entire viewport will be repainted. this is slower // but that's the hit you get from using fixed layout if ( body_box.isChildrenExceedBounds() ) { setOpaque( false ); } else { setOpaque( true ); } getRenderingContext().setRootBox( body_box ); XRLog.layout( Level.FINEST, "after layout: " + body_box ); intrinsic_size = new Dimension( getContext().getMaxWidth(), body_box.height ); if ( enclosingScrollPane != null ) { XRLog.layout( Level.FINEST, "enclosing scroll pane = " + this.enclosingScrollPane ); int view_height = this.enclosingScrollPane.getViewport().getHeight(); // resize the outter most box incase it is too small for the viewport if ( intrinsic_size.getHeight() < view_height ) { if ( body_box != null ) { body_box.height = view_height; } } } if ( !intrinsic_size.equals( this.getSize() ) ) { this.setPreferredSize( intrinsic_size ); this.revalidate(); } this.fireDocumentLoaded(); }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/b8e7e882552e228be1abb30206bccdead75ecbac/BasicPanel.java/buggy/src/java/org/xhtmlrenderer/swing/BasicPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 3744, 12, 16830, 314, 262, 288, 3639, 333, 18, 4479, 1595, 5621, 3639, 309, 261, 314, 422, 446, 262, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 997, 422, 446, 262, 288, 5411, 327, 31, 3639, 289, 7734, 368, 444, 731, 6765, 3639, 1772, 276, 273, 28210, 12, 261, 17558, 22, 40, 13, 75, 11272, 3639, 368, 29120, 7675, 542, 2747, 2384, 12, 20, 1769, 7734, 336, 14261, 1042, 7675, 588, 1528, 6747, 7675, 8401, 17558, 12, 71, 18, 588, 17558, 10663, 3639, 368, 6241, 30, 6944, 6269, 11769, 3639, 368, 1042, 276, 273, 6474, 5621, 3639, 1417, 67, 2147, 273, 8549, 310, 18, 6741, 12, 276, 16, 394, 12965, 3401, 2815, 907, 12, 997, 262, 11272, 7734, 1139, 54, 1343, 18, 6741, 12, 4557, 18, 42, 3740, 882, 16, 315, 291, 279, 5499, 1151, 30, 315, 397, 1417, 67, 2147, 18, 291, 4212, 424, 5288, 5694, 1435, 11272, 7734, 368, 309, 1915, 353, 279, 5499, 1151, 1508, 732, 1608, 358, 444, 22519, 358, 629, 3639, 368, 1427, 716, 326, 7278, 10482, 903, 506, 24962, 329, 18, 333, 353, 27926, 3639, 368, 1496, 716, 1807, 326, 6800, 1846, 336, 628, 1450, 5499, 3511, 3639, 309, 261, 1417, 67, 2147, 18, 291, 4212, 424, 5288, 5694, 1435, 262, 288, 5411, 444, 3817, 14886, 12, 629, 11272, 3639, 289, 469, 288, 5411, 444, 3817, 14886, 12, 638, 11272, 3639, 289, 7734, 336, 14261, 1042, 7675, 542, 2375, 3514, 12, 1417, 67, 2147, 11272, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 3744, 12, 16830, 314, 262, 288, 3639, 333, 18, 4479, 1595, 5621, 3639, 309, 261, 314, 422, 446, 262, 288, 5411, 327, 31, 3639, 289, 3639, 309, 261, 997, 422, 446, 262, 288, 5411, 327, 31, 3639, 289, 7734, 368, 444, 731, 6765, 3639, 1772, 276, 273, 28210, 12, 261, 17558, 22, 40, 13, 75, 11272, 3639, 368, 29120, 7675, 542, 2747, 2384, 12, 20, 1769, 7734, 336, 14261, 1042, 7675, 588, 1528, 6747, 7675, 8401, 17558, 12, 71, 18, 588, 17558, 10663, 3639, 368, 6241, 30, 6944, 6269, 11769, 3639, 368, 1042, 276, 273, 6474, 5621, 3639, 1417, 67, 2147, 273, 8549, 310, 18, 6741, 12, 276, 16, 394, 12965, 3401, 2815, 907, 12, 2 ]
if ( IReportElementConstants.REPORT_ELEMENT_LABEL.equalsIgnoreCase( (String) request.getNewObjectType( ) ) )
if ( IReportElementConstants.REPORT_ELEMENT_LABEL .equalsIgnoreCase( (String) request.getNewObjectType( ) ) )
public boolean preHandleMouseUp( ) { CreateRequest request = getRequest( ); if ( IReportElementConstants.REPORT_ELEMENT_LABEL.equalsIgnoreCase( (String) request.getNewObjectType( ) ) ) { // LabelHandle labelItemHandle = // SessionHandleAdapter.getInstance( ) // .getReportDesignHandle( ) // .getElementFactory( ) // .newLabel( null ); LabelHandle labelItemHandle = DesignElementFactory.getInstance( ) .newLabel( null ); setModel( labelItemHandle ); return super.preHandleMouseUp( ); } return false; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4f0c26ca98ecbb792f2b5f93329f788413e6ba1a/BasePaletteFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/palette/BasePaletteFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 675, 3259, 9186, 1211, 12, 262, 202, 202, 95, 1082, 202, 1684, 691, 590, 273, 4328, 12, 11272, 1082, 202, 430, 261, 467, 4820, 1046, 2918, 18, 22710, 67, 10976, 67, 13545, 18, 14963, 5556, 12, 261, 780, 13, 590, 18, 588, 1908, 17610, 12, 262, 262, 262, 1082, 202, 95, 9506, 202, 759, 5287, 3259, 1433, 1180, 3259, 273, 9506, 202, 759, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 9506, 202, 759, 263, 588, 4820, 15478, 3259, 12, 262, 9506, 202, 759, 263, 21336, 1733, 12, 262, 9506, 202, 759, 263, 2704, 2224, 12, 446, 11272, 9506, 202, 2224, 3259, 1433, 1180, 3259, 273, 29703, 1046, 1733, 18, 588, 1442, 12, 262, 25083, 202, 18, 2704, 2224, 12, 446, 11272, 9506, 202, 542, 1488, 12, 1433, 1180, 3259, 11272, 9506, 202, 2463, 2240, 18, 1484, 3259, 9186, 1211, 12, 11272, 1082, 202, 97, 1082, 202, 2463, 629, 31, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 675, 3259, 9186, 1211, 12, 262, 202, 202, 95, 1082, 202, 1684, 691, 590, 273, 4328, 12, 11272, 1082, 202, 430, 261, 467, 4820, 1046, 2918, 18, 22710, 67, 10976, 67, 13545, 18, 14963, 5556, 12, 261, 780, 13, 590, 18, 588, 1908, 17610, 12, 262, 262, 262, 1082, 202, 95, 9506, 202, 759, 5287, 3259, 1433, 1180, 3259, 273, 9506, 202, 759, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 9506, 202, 759, 263, 588, 4820, 15478, 3259, 12, 262, 9506, 202, 759, 263, 21336, 1733, 12, 262, 9506, 202, 759, 263, 2704, 2224, 12, 446, 11272, 9506, 202, 2224, 3259, 1433, 1180, 3259, 273, 29703, 1046, 1733, 18, 588, 1442, 12, 262, 25083, 2 ]
RubyObject result = rubyRecv.funcall(method, rubyArgs); return JavaUtil.convertRubyToJava(ruby, result, Object.class);
public Object call(Object recv, String method, Object[] args) throws BSFException { RubyObject rubyRecv = JavaUtil.convertJavaToRuby(ruby, recv, recv.getClass()); RubyObject[] rubyArgs = new RubyObject[args.length]; for (int i = args.length; i >= 0; i--) { rubyArgs[i] = JavaUtil.convertJavaToRuby(ruby, args[i], args[i].getClass()); } RubyObject result = rubyRecv.funcall(method, rubyArgs); return JavaUtil.convertRubyToJava(ruby, result, Object.class); }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/786cea08c1dd2092a02d1254b49fbee371ace5f9/JRubyEngine.java/buggy/org/jruby/javasupport/bsf/JRubyEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 921, 10665, 16, 514, 707, 16, 1033, 8526, 833, 13, 1216, 605, 22395, 503, 288, 3639, 19817, 921, 22155, 28470, 273, 5110, 1304, 18, 6283, 5852, 774, 54, 10340, 12, 27768, 16, 10665, 16, 10665, 18, 588, 797, 10663, 3639, 19817, 921, 8526, 22155, 2615, 273, 394, 19817, 921, 63, 1968, 18, 2469, 15533, 3639, 364, 261, 474, 277, 273, 833, 18, 2469, 31, 277, 1545, 374, 31, 277, 413, 13, 288, 5411, 22155, 2615, 63, 77, 65, 273, 5110, 1304, 18, 6283, 5852, 774, 54, 10340, 12, 27768, 16, 833, 63, 77, 6487, 833, 63, 77, 8009, 588, 797, 10663, 3639, 289, 3639, 19817, 921, 563, 273, 22155, 28470, 18, 644, 454, 12, 2039, 16, 22155, 2615, 1769, 3639, 327, 5110, 1304, 18, 6283, 54, 10340, 774, 5852, 12, 27768, 16, 563, 16, 1033, 18, 1106, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 921, 10665, 16, 514, 707, 16, 1033, 8526, 833, 13, 1216, 605, 22395, 503, 288, 3639, 19817, 921, 22155, 28470, 273, 5110, 1304, 18, 6283, 5852, 774, 54, 10340, 12, 27768, 16, 10665, 16, 10665, 18, 588, 797, 10663, 3639, 19817, 921, 8526, 22155, 2615, 273, 394, 19817, 921, 63, 1968, 18, 2469, 15533, 3639, 364, 261, 474, 277, 273, 833, 18, 2469, 31, 277, 1545, 374, 31, 277, 413, 13, 288, 5411, 22155, 2615, 63, 77, 65, 273, 5110, 1304, 18, 6283, 5852, 774, 54, 10340, 12, 27768, 16, 833, 63, 77, 6487, 833, 63, 77, 8009, 588, 797, 10663, 3639, 289, 3639, 19817, 921, 563, 273, 22155, 28470, 18, 644, 454, 12, 2 ]
CellContextInfo contextInfo = (CellContextInfo) data.getCells( ) .get( 0 ); assertEquals( 2, contextInfo.getRowSpan( ) );
assertEquals( 2, ApiTestUtil.getCopiedCell( data, 0 ).getRowSpan( design ) );
public void testColumnCopy( ) throws Exception { openDesign( fileName ); GridHandle grid = (GridHandle) designHandle.findElement( "My grid1" ); //$NON-NLS-1$ assertNotNull( grid ); ColumnBandData data = grid.copyColumn( 1 ); assertEquals( 2, data.getCells( ).size( ) ); grid = (GridHandle) designHandle.findElement( "My grid2" ); //$NON-NLS-1$ assertNotNull( grid ); data = grid.copyColumn( 2 ); assertEquals( 1, data.getCells( ).size( ) ); TableColumn column = data.getColumn( ); assertEquals( 1, column .getIntProperty( design, TableColumn.REPEAT_PROP ) ); assertEquals( "red", column.getStringProperty( design, Style.COLOR_PROP ) ); //$NON-NLS-1$ CellContextInfo contextInfo = (CellContextInfo) data.getCells( ) .get( 0 ); assertEquals( 2, contextInfo.getRowSpan( ) ); grid = (GridHandle) designHandle.findElement( "My grid3" ); //$NON-NLS-1$ assertNotNull( grid ); try { data = grid.copyColumn( 1 ); fail( ); } catch ( SemanticException e ) { assertEquals( SemanticError.DESIGN_EXCEPTION_COLUMN_COPY_FORBIDDEN, e.getErrorCode( ) ); } try { data = grid.copyColumn( 2 ); fail( ); } catch ( SemanticException e ) { assertEquals( SemanticError.DESIGN_EXCEPTION_COLUMN_COPY_FORBIDDEN, e.getErrorCode( ) ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/de4e32d64d24337e8801521456bb895f21408aa9/GridColumnHandleTest.java/buggy/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/GridColumnHandleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1494, 2951, 12, 262, 1216, 1185, 202, 95, 202, 202, 3190, 15478, 12, 3968, 11272, 202, 202, 6313, 3259, 3068, 273, 261, 6313, 3259, 13, 8281, 3259, 18, 4720, 1046, 12, 315, 12062, 3068, 21, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 5962, 12, 3068, 11272, 202, 202, 1494, 14231, 751, 501, 273, 3068, 18, 3530, 1494, 12, 404, 11272, 202, 202, 11231, 8867, 12, 576, 16, 501, 18, 588, 10505, 12, 262, 18, 1467, 12, 262, 11272, 202, 202, 5222, 273, 261, 6313, 3259, 13, 8281, 3259, 18, 4720, 1046, 12, 315, 12062, 3068, 22, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 5962, 12, 3068, 11272, 202, 202, 892, 273, 3068, 18, 3530, 1494, 12, 576, 11272, 202, 202, 11231, 8867, 12, 404, 16, 501, 18, 588, 10505, 12, 262, 18, 1467, 12, 262, 11272, 202, 202, 1388, 1494, 1057, 273, 501, 18, 588, 1494, 12, 11272, 202, 202, 11231, 8867, 12, 404, 16, 1057, 9506, 202, 18, 588, 1702, 1396, 12, 8281, 16, 3555, 1494, 18, 862, 31804, 67, 15811, 262, 11272, 202, 202, 11231, 8867, 12, 9506, 202, 6, 1118, 3113, 1057, 18, 588, 780, 1396, 12, 8281, 16, 9767, 18, 10989, 67, 15811, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 4020, 1042, 966, 819, 966, 273, 261, 4020, 1042, 966, 13, 501, 18, 588, 10505, 12, 262, 9506, 202, 18, 588, 12, 374, 11272, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1494, 2951, 12, 262, 1216, 1185, 202, 95, 202, 202, 3190, 15478, 12, 3968, 11272, 202, 202, 6313, 3259, 3068, 273, 261, 6313, 3259, 13, 8281, 3259, 18, 4720, 1046, 12, 315, 12062, 3068, 21, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 5962, 12, 3068, 11272, 202, 202, 1494, 14231, 751, 501, 273, 3068, 18, 3530, 1494, 12, 404, 11272, 202, 202, 11231, 8867, 12, 576, 16, 501, 18, 588, 10505, 12, 262, 18, 1467, 12, 262, 11272, 202, 202, 5222, 273, 261, 6313, 3259, 13, 8281, 3259, 18, 4720, 1046, 12, 315, 12062, 3068, 22, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 5962, 2 ]
error = e.getMessage();
error = getStackTrace(e);
public void run() { LOG.info(getName() + ": starting"); SERVER.set(Server.this); while (running) { try { Call call; synchronized (callQueue) { while (running && callQueue.size()==0) { // wait for a call callQueue.wait(timeout); } if (!running) break; call = (Call)callQueue.removeFirst(); // pop the queue } synchronized (callDequeued) { // tell others we've dequeued callDequeued.notify(); } if (LOG.isLoggable(Level.FINE)) LOG.fine(getName() + ": has #" + call.id + " from " + call.connection.socket.getInetAddress().getHostAddress()); String error = null; Writable value = null; try { value = call(call.param); // make the call } catch (IOException e) { LOG.log(Level.INFO, getName() + " call error: " + e, e); error = e.getMessage(); } catch (Exception e) { LOG.log(Level.INFO, getName() + " call error: " + e, e); error = e.toString(); } DataOutputStream out = call.connection.out; synchronized (out) { out.writeInt(call.id); // write call id out.writeBoolean(error!=null); // write error flag if (error != null) value = new UTF8(error); value.write(out); // write value out.flush(); } } catch (Exception e) { LOG.log(Level.INFO, getName() + " caught: " + e, e); } } LOG.info(getName() + ": exiting"); }
51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/0d5fb2926a6aa30b5a0a837e13dea3821024b06c/Server.java/buggy/src/java/org/apache/hadoop/ipc/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 2018, 18, 1376, 12, 17994, 1435, 397, 6398, 5023, 8863, 1377, 15061, 18, 542, 12, 2081, 18, 2211, 1769, 1377, 1323, 261, 8704, 13, 288, 3639, 775, 288, 1850, 3049, 745, 31, 1850, 3852, 261, 1991, 3183, 13, 288, 5411, 1323, 261, 8704, 597, 745, 3183, 18, 1467, 1435, 631, 20, 13, 288, 368, 2529, 364, 279, 745, 2868, 745, 3183, 18, 7048, 12, 4538, 1769, 5411, 289, 5411, 309, 16051, 8704, 13, 898, 31, 5411, 745, 273, 261, 1477, 13, 1991, 3183, 18, 4479, 3759, 5621, 368, 1843, 326, 2389, 1850, 289, 1850, 3852, 261, 1991, 758, 19499, 13, 288, 6647, 368, 9276, 10654, 732, 8081, 443, 19499, 5411, 745, 758, 19499, 18, 12336, 5621, 1850, 289, 1850, 309, 261, 4842, 18, 291, 1343, 8455, 12, 2355, 18, 42, 3740, 3719, 5411, 2018, 18, 74, 558, 12, 17994, 1435, 397, 6398, 711, 31526, 397, 745, 18, 350, 397, 315, 628, 315, 397, 5397, 745, 18, 4071, 18, 7814, 18, 588, 382, 278, 1887, 7675, 588, 2594, 1887, 10663, 10792, 514, 555, 273, 446, 31, 1850, 14505, 460, 273, 446, 31, 1850, 775, 288, 5411, 460, 273, 745, 12, 1991, 18, 891, 1769, 2398, 368, 1221, 326, 745, 1850, 289, 1044, 261, 14106, 425, 13, 288, 5411, 2018, 18, 1330, 12, 2355, 18, 5923, 16, 1723, 1435, 397, 315, 745, 555, 30, 315, 397, 425, 16, 425, 1769, 5411, 555, 273, 22798, 12, 73, 1769, 1850, 289, 1044, 261, 503, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 2018, 18, 1376, 12, 17994, 1435, 397, 6398, 5023, 8863, 1377, 15061, 18, 542, 12, 2081, 18, 2211, 1769, 1377, 1323, 261, 8704, 13, 288, 3639, 775, 288, 1850, 3049, 745, 31, 1850, 3852, 261, 1991, 3183, 13, 288, 5411, 1323, 261, 8704, 597, 745, 3183, 18, 1467, 1435, 631, 20, 13, 288, 368, 2529, 364, 279, 745, 2868, 745, 3183, 18, 7048, 12, 4538, 1769, 5411, 289, 5411, 309, 16051, 8704, 13, 898, 31, 5411, 745, 273, 261, 1477, 13, 1991, 3183, 18, 4479, 3759, 5621, 368, 1843, 326, 2389, 1850, 289, 1850, 3852, 261, 1991, 758, 19499, 13, 288, 6647, 368, 9276, 10654, 732, 8081, 443, 19499, 5411, 745, 758, 2 ]
isStarting = false;
forceOpenPerspective();
private boolean init(Display display) { // setup debug mode if required. if (WorkbenchPlugin.getDefault().isDebugging()) { WorkbenchPlugin.DEBUG = true; ModalContext.setDebugMode(true); } // create workbench window manager windowManager = new WindowManager(); IIntroRegistry introRegistry = WorkbenchPlugin.getDefault() .getIntroRegistry(); if (introRegistry.getIntroCount() > 0) { IProduct product = Platform.getProduct(); if (product != null) { introDescriptor = (IntroDescriptor) introRegistry .getIntroForProduct(product.getId()); } } // begin the initialization of the activity, command, and context // managers workbenchActivitySupport = new WorkbenchActivitySupport(); activityHelper = ActivityPersistanceHelper.getInstance(); /* * TODO This is the beginning of the new services support for commands * and such like. This needs to be further thought out. */ commandManager = new CommandManager(); final ICommandService commandService = new CommandService( commandManager); services[IWorkbenchServices.COMMAND] = commandService; commandService.readRegistryAndPreferences(); ContextManager.DEBUG = Policy.DEBUG_CONTEXTS; contextManager = new ContextManager(); services[IWorkbenchServices.CONTEXT] = new ContextService( contextManager); BindingManager.DEBUG = Policy.DEBUG_KEY_BINDINGS; bindingManager = new BindingManager(contextManager); final IBindingService bindingService = new BindingService( bindingManager); services[IWorkbenchServices.BINDING] = bindingService; bindingService.readRegistryAndPreferences(); /* * TODO This is the deprecated support. It would be nice to pull out all * of this except for the Workbench*Support constructors. */ workbenchContextSupport = new WorkbenchContextSupport(this, contextManager); workbenchCommandSupport = new WorkbenchCommandSupport(this, bindingManager, commandManager, contextManager); workbenchContextSupport.initialize(); // deferred key binding support initializeCommandResolver(); addWindowListener(windowListener); // end the initialization of the activity, command, and context // managers initializeImages(); initializeFonts(); initializeColors(); initializeApplicationColors(); // now that the workbench is sufficiently initialized, let the advisor // have a turn. advisor.internalBasicInitialize(getWorkbenchConfigurer()); // configure use of color icons in toolbars boolean useColorIcons = getPreferenceStore().getBoolean( IPreferenceConstants.COLOR_ICONS); ActionContributionItem.setUseColorIconsInToolbars(useColorIcons); // initialize workbench single-click vs double-click behavior initializeSingleClickOption(); // deadlock code boolean avoidDeadlock = true; String[] commandLineArgs = Platform.getCommandLineArgs(); for (int i = 0; i < commandLineArgs.length; i++) { if (commandLineArgs[i].equalsIgnoreCase("-allowDeadlock")) //$NON-NLS-1$ avoidDeadlock = false; } if (avoidDeadlock) { UILockListener uiLockListener = new UILockListener(display); Platform.getJobManager().setLockListener(uiLockListener); display .setSynchronizer(new UISynchronizer(display, uiLockListener)); } // attempt to restore a previous workbench state try { UIStats.start(UIStats.RESTORE_WORKBENCH, "Workbench"); //$NON-NLS-1$ advisor.preStartup(); if (!advisor.openWindows()) { return false; } } finally { UIStats.end(UIStats.RESTORE_WORKBENCH, this, "Workbench"); //$NON-NLS-1$ } forceOpenPerspective(); isStarting = false; return true; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9337b828e86179850647141c34d497be28275ed2/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1208, 12, 4236, 2562, 13, 288, 3639, 368, 3875, 1198, 1965, 309, 1931, 18, 3639, 309, 261, 2421, 22144, 3773, 18, 588, 1868, 7675, 291, 2829, 1998, 10756, 288, 5411, 4147, 22144, 3773, 18, 9394, 273, 638, 31, 5411, 3431, 287, 1042, 18, 542, 2829, 2309, 12, 3767, 1769, 3639, 289, 3639, 368, 752, 1440, 22144, 2742, 3301, 3639, 2742, 1318, 273, 394, 6076, 1318, 5621, 3639, 467, 1702, 303, 4243, 13079, 4243, 273, 4147, 22144, 3773, 18, 588, 1868, 1435, 7734, 263, 588, 1702, 303, 4243, 5621, 3639, 309, 261, 23342, 4243, 18, 588, 1702, 303, 1380, 1435, 405, 374, 13, 288, 5411, 467, 4133, 3017, 273, 11810, 18, 588, 4133, 5621, 5411, 309, 261, 5896, 480, 446, 13, 288, 7734, 13079, 3187, 273, 261, 1702, 303, 3187, 13, 13079, 4243, 13491, 263, 588, 1702, 303, 1290, 4133, 12, 5896, 18, 26321, 10663, 5411, 289, 3639, 289, 3639, 368, 2376, 326, 10313, 434, 326, 5728, 16, 1296, 16, 471, 819, 3639, 368, 21103, 3639, 1440, 22144, 6193, 6289, 273, 394, 4147, 22144, 6193, 6289, 5621, 3639, 5728, 2276, 273, 9621, 12771, 1359, 2276, 18, 588, 1442, 5621, 3639, 1748, 1082, 380, 2660, 1220, 353, 326, 8435, 434, 326, 394, 4028, 2865, 364, 4364, 1082, 380, 471, 4123, 3007, 18, 1220, 4260, 358, 506, 9271, 286, 83, 9540, 596, 18, 1082, 1195, 202, 202, 3076, 1318, 273, 394, 3498, 1318, 5621, 202, 202, 6385, 467, 2189, 1179, 1296, 1179, 273, 394, 3498, 1179, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1208, 12, 4236, 2562, 13, 288, 3639, 368, 3875, 1198, 1965, 309, 1931, 18, 3639, 309, 261, 2421, 22144, 3773, 18, 588, 1868, 7675, 291, 2829, 1998, 10756, 288, 5411, 4147, 22144, 3773, 18, 9394, 273, 638, 31, 5411, 3431, 287, 1042, 18, 542, 2829, 2309, 12, 3767, 1769, 3639, 289, 3639, 368, 752, 1440, 22144, 2742, 3301, 3639, 2742, 1318, 273, 394, 6076, 1318, 5621, 3639, 467, 1702, 303, 4243, 13079, 4243, 273, 4147, 22144, 3773, 18, 588, 1868, 1435, 7734, 263, 588, 1702, 303, 4243, 5621, 3639, 309, 261, 23342, 4243, 18, 588, 1702, 303, 1380, 1435, 405, 374, 13, 288, 5411, 467, 4133, 3017, 273, 11810, 18, 588, 4133, 5621, 5411, 309, 261, 2 ]
if (!(initialization instanceof PsiDeclarationStatement)) {
if(!(initialization instanceof PsiDeclarationStatement)){
private static boolean updateUsesInitializer(PsiForStatement statement) { final PsiStatement initialization = statement.getInitialization(); final PsiStatement update = statement.getUpdate(); if (initialization == null) { return true; } if (update == null) { return true; } if (!(initialization instanceof PsiDeclarationStatement)) { return true; } final PsiDeclarationStatement declaration = (PsiDeclarationStatement) initialization; final PsiElement[] declaredElements = declaration.getDeclaredElements(); if (declaredElements == null || declaredElements.length != 1) { return true; } if (declaredElements[0] == null || !(declaredElements[0] instanceof PsiLocalVariable)) { return true; } final PsiLocalVariable localVar = (PsiLocalVariable) declaredElements[0]; return statementUsesVariable(update, localVar); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForLoopThatDoesntUseLoopVariableInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/ForLoopThatDoesntUseLoopVariableInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 1089, 15128, 14729, 12, 52, 7722, 1290, 3406, 3021, 13, 288, 3639, 727, 453, 7722, 3406, 10313, 273, 3021, 18, 588, 17701, 5621, 3639, 727, 453, 7722, 3406, 1089, 273, 3021, 18, 588, 1891, 5621, 3639, 309, 261, 6769, 1588, 422, 446, 13, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 261, 2725, 422, 446, 13, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 12, 5, 12, 6769, 1588, 1276, 453, 7722, 6094, 3406, 3719, 95, 5411, 327, 638, 31, 3639, 289, 3639, 727, 453, 7722, 6094, 3406, 8266, 273, 261, 52, 7722, 6094, 3406, 13, 10313, 31, 3639, 727, 453, 7722, 1046, 8526, 7886, 3471, 273, 8266, 18, 588, 18888, 3471, 5621, 3639, 309, 261, 16571, 3471, 422, 446, 747, 7886, 3471, 18, 2469, 480, 404, 13, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 261, 16571, 3471, 63, 20, 65, 422, 446, 747, 401, 12, 16571, 3471, 63, 20, 65, 1276, 453, 7722, 2042, 3092, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 727, 453, 7722, 2042, 3092, 9935, 273, 261, 52, 7722, 2042, 3092, 13, 7886, 3471, 63, 20, 15533, 3639, 327, 3021, 15128, 3092, 12, 2725, 16, 9935, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 1089, 15128, 14729, 12, 52, 7722, 1290, 3406, 3021, 13, 288, 3639, 727, 453, 7722, 3406, 10313, 273, 3021, 18, 588, 17701, 5621, 3639, 727, 453, 7722, 3406, 1089, 273, 3021, 18, 588, 1891, 5621, 3639, 309, 261, 6769, 1588, 422, 446, 13, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 261, 2725, 422, 446, 13, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 12, 5, 12, 6769, 1588, 1276, 453, 7722, 6094, 3406, 3719, 95, 5411, 327, 638, 31, 3639, 289, 3639, 727, 453, 7722, 6094, 3406, 8266, 273, 261, 52, 7722, 6094, 3406, 13, 10313, 31, 3639, 727, 453, 7722, 1046, 8526, 7886, 3471, 273, 8266, 18, 588, 18888, 3471, 5621, 2 ]
this.value = Amoeba.this.f.evaluate(arg);
double val = Amoeba.this.f.evaluate(arg); if (Double.isNaN(val)) { this.value = Double.MAX_VALUE; } else { this.value = val; }
public Point(final double arg[]) { this.arg = (double[]) arg.clone(); this.value = Amoeba.this.f.evaluate(arg); ++Amoeba.this.steps; }
9751 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9751/c042e0d7be9dcfddf469e60ca2aa2143550ff284/Amoeba.java/clean/src/org/gavrog/jane/algorithms/Amoeba.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 4686, 12, 6385, 1645, 1501, 63, 5717, 288, 5411, 333, 18, 3175, 273, 261, 9056, 63, 5717, 1501, 18, 14056, 5621, 5411, 1645, 1244, 273, 3986, 15548, 12124, 18, 2211, 18, 74, 18, 21024, 12, 3175, 1769, 309, 261, 5265, 18, 291, 21172, 12, 1125, 3719, 288, 333, 18, 1132, 273, 3698, 18, 6694, 67, 4051, 31, 289, 469, 288, 333, 18, 1132, 273, 1244, 31, 289, 5411, 965, 37, 8683, 73, 12124, 18, 2211, 18, 8986, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 4686, 12, 6385, 1645, 1501, 63, 5717, 288, 5411, 333, 18, 3175, 273, 261, 9056, 63, 5717, 1501, 18, 14056, 5621, 5411, 1645, 1244, 273, 3986, 15548, 12124, 18, 2211, 18, 74, 18, 21024, 12, 3175, 1769, 309, 261, 5265, 18, 291, 21172, 12, 1125, 3719, 288, 333, 18, 1132, 273, 3698, 18, 6694, 67, 4051, 31, 289, 469, 288, 333, 18, 1132, 273, 1244, 31, 289, 5411, 965, 37, 8683, 73, 12124, 18, 2211, 18, 8986, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void readImpl(PipelineContext context, ContentHandler contentHandler) {
public void readImpl(PipelineContext pipelineContext, ContentHandler contentHandler) {
public ProcessorOutput createOutput(String name) { ProcessorOutput output = new ProcessorImpl.ProcessorOutputImpl(getClass(), name) { public void readImpl(PipelineContext context, ContentHandler contentHandler) { final ExternalContext externalContext = (ExternalContext) context.getAttribute(PipelineContext.EXTERNAL_CONTEXT); if (externalContext == null) throw new OXFException("Can't find external context in pipeline context"); // Read the portal configuration Config config = (Config) readCacheInputAsObject(context, getInputByName(INPUT_PORTAL_CONFIG), new CacheableInputReader() { public Object read(PipelineContext context, ProcessorInput input) { Document configNode = readInputAsDOM4J(context, input); Config config = new Config(); // Check whether an embedded "portlet.xml" is present Node portletAppNode = XPathUtils.selectSingleNode(configNode, "/*/portlet-app"); if (portletAppNode != null) config.setPortletAppNode(portletAppNode); // Get portal id config.setPortalId(XPathUtils.selectStringValueNormalize(configNode, "/*/portal-id")); // Add portlet instances for (Iterator i = XPathUtils.selectIterator(configNode, "/*/portlet-instance"); i.hasNext();) { Node portletNode = (Node) i.next(); String portletName = XPathUtils.selectStringValueNormalize(portletNode, "portlet-name"); String windowState = XPathUtils.selectStringValueNormalize(portletNode, "window-state"); String portletMode = XPathUtils.selectStringValueNormalize(portletNode, "portlet-mode"); config.addPortletInstance(new PortletInstance(portletName, windowState, portletMode)); } return config; } }); // Get instance of PortletContainer final PortletContainer portletContainer = PortletContainer.instance(externalContext, config.getPortalId()); // Initialize once if needed if (!portletContainer.isInitialized()) { Object nativeContext = externalContext.getNativeContext(); if (!(nativeContext instanceof ServletContext)) throw new OXFException("This processor can only be used within a Servlet"); // Try to initialize with embedded "portlet.xml" Node portletAppNode = config.getPortletAppNode(); // Otherwise, read default resource if (portletAppNode == null) { // Initialize our own resource manager to access WEB-INF/portlet.xml Map props = new HashMap(); props.put(WebAppResourceManagerImpl.SERVLET_CONTEXT_KEY, nativeContext); props.put(WebAppResourceManagerImpl.ROOT_DIR, "/"); ResourceManager resourceManager = new WebAppResourceManagerImpl(props); // Get resource portletAppNode = resourceManager.getContentAsDOM4J("/WEB-INF/portlet.xml").getRootElement(); } // Iterate through all portlet configurations for (Iterator i = XPathUtils.selectIterator(portletAppNode, "portlet"); i.hasNext();) { Node portletNode = (Node) i.next(); // Create a new configuration for this portlet PortletConfigImpl portletConfig = new PortletConfigImpl(); portletConfig.setPortletName(XPathUtils.selectStringValueNormalize(portletNode, "portlet-name")); portletConfig.setClassName(XPathUtils.selectStringValueNormalize(portletNode, "portlet-class")); for (Iterator j = XPathUtils.selectIterator(portletNode, "init-param"); j.hasNext();) { Node initParamNode = (Node) j.next(); String name = XPathUtils.selectStringValue(initParamNode, "name"); String value = XPathUtils.selectStringValue(initParamNode, "value"); portletConfig.setInitParameter(name, value); } for (Iterator j = XPathUtils.selectIterator(portletNode, "supports/mime-type"); j.hasNext();) portletConfig.addMimeType(XPathUtils.selectStringValueNormalize((Node) j.next(), ".")); for (Iterator j = XPathUtils.selectIterator(portletNode, "supports/portlet-mode"); j.hasNext();) portletConfig.addPortletMode(XPathUtils.selectStringValueNormalize((Node) j.next(), ".")); for (Iterator j = XPathUtils.selectIterator(portletNode, "portlet-preferences/preference"); j.hasNext();) { Node preferenceNode = (Node) j.next(); String name = XPathUtils.selectStringValue(preferenceNode, "name"); List values = new ArrayList(); for (Iterator k = XPathUtils.selectIterator(preferenceNode, "value"); k.hasNext();) values.add(XPathUtils.selectStringValue((Node) k.next(), ".")); String[] arrayValues = new String[values.size()]; values.toArray(arrayValues); portletConfig.setPreferences(name, arrayValues); } portletConfig.setTitle(XPathUtils.selectStringValueNormalize(portletNode, "portlet-info/title")); portletConfig.setShortTitle(XPathUtils.selectStringValueNormalize(portletNode, "portlet-info/short-title")); portletConfig.setKeywords(XPathUtils.selectStringValueNormalize(portletNode, "portlet-info/keywords")); // Create context and link to config PortletContextImpl portletContext = new PortletContextImpl(externalContext, portletConfig); portletConfig.setPortletContext(portletContext); // Declare this portlet portletContainer.declarePortlet(portletConfig); } // Mark the portlet container as initialized portletContainer.setInitialized(true); } // Instanciate portlets with window states and portlet modes if needed if (!portletContainer.isInstanciated()) { for (Iterator i = config.getPortletInstances().iterator(); i.hasNext();) { PortletInstance portletInstance = (PortletInstance) i.next(); portletContainer.instanciatePortlet(portletInstance.portletName, (portletInstance.windowState == null) ? WindowState.NORMAL : new WindowState(portletInstance.windowState), (portletInstance.portletMode == null) ? PortletMode.VIEW : new PortletMode(portletInstance.portletMode)); } portletContainer.setInstanciated(true); } // Process the action if any boolean redirected = portletContainer.processPortletAction(externalContext, context); // Generate portal status output ContentHandlerHelper helper = new ContentHandlerHelper(contentHandler); helper.startDocument(); String namespace = ""; // PortletIncludeGenerator.PORTLET_NAMESPACE_URI helper.startElement(namespace, "portal-status"); helper.element("redirected", Boolean.toString(redirected)); // For each instanciated portlet, show id, config, and state for (Iterator i = portletContainer.listPortletIds().iterator(); i.hasNext();) { Integer portletIdInteger = (Integer) i.next(); int portletId = portletIdInteger.intValue(); PortletConfigImpl portletConfig = portletContainer.getPortletConfig(portletIdInteger.intValue()); helper.startElement(namespace, "portlet-instance"); // Portlet id helper.element(namespace, "portlet-id", portletId); if (portletConfig != null) { // Configuration parameters helper.element(namespace, "portlet-name", portletConfig.getPortletName()); if (portletConfig.getTitle() != null) helper.element(namespace, "title", portletConfig.getTitle()); if (portletConfig.getShortTitle() != null) helper.element(namespace, "short-title", portletConfig.getShortTitle()); PortletContainer.PortletState portletState = portletContainer.getPortletState(externalContext, portletId); // Current portlet mode and state helper.element(namespace, "portlet-mode", portletState.getPortletMode().toString()); helper.element(namespace, "window-state", portletState.getWindowState().toString()); // Current render parameters Map renderParameters = portletState.getRenderParameters(); if (renderParameters.size() > 0) { helper.startElement(namespace, "render-parameters"); for (Iterator j = renderParameters.keySet().iterator(); j.hasNext();) { String name = (String) j.next(); String[] values = (String[]) renderParameters.get(name); helper.startElement(namespace, "param"); helper.element(namespace, "name", name); for (int k = 0; k < values.length; k++) { helper.element(namespace, "value", values[k]); } helper.endElement(); } helper.endElement(); } } helper.endElement(); } helper.endElement(); helper.endDocument(); } }; addOutput(name, output); return output; }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/ae1d0661cd6881846f830d97929a07c4ee98d979/PortletContainerProcessor.java/buggy/src/java/org/orbeon/oxf/portlet/processor/PortletContainerProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 1447, 752, 1447, 12, 780, 508, 13, 288, 3639, 15476, 1447, 876, 273, 394, 15476, 2828, 18, 5164, 1447, 2828, 12, 588, 797, 9334, 508, 13, 288, 5411, 1071, 918, 855, 2828, 12, 8798, 1042, 5873, 1042, 16, 3697, 1503, 913, 1503, 13, 288, 7734, 727, 11352, 1042, 3903, 1042, 273, 261, 6841, 1042, 13, 819, 18, 588, 1499, 12, 8798, 1042, 18, 2294, 11702, 67, 13181, 1769, 7734, 309, 261, 9375, 1042, 422, 446, 13, 10792, 604, 394, 531, 60, 42, 503, 2932, 2568, 1404, 1104, 3903, 819, 316, 5873, 819, 8863, 7734, 368, 2720, 326, 11899, 1664, 7734, 1903, 642, 273, 261, 809, 13, 855, 1649, 1210, 1463, 921, 12, 2472, 16, 12353, 5911, 12, 15934, 67, 6354, 1013, 67, 7203, 3631, 394, 4379, 429, 1210, 2514, 1435, 288, 10792, 1071, 1033, 855, 12, 8798, 1042, 819, 16, 15476, 1210, 810, 13, 288, 13491, 4319, 642, 907, 273, 855, 1210, 1463, 8168, 24, 46, 12, 2472, 16, 810, 1769, 13491, 1903, 642, 273, 394, 1903, 5621, 13491, 368, 2073, 2856, 392, 7488, 315, 655, 1810, 18, 2902, 6, 353, 3430, 13491, 2029, 13114, 3371, 907, 273, 10172, 1989, 18, 4025, 5281, 907, 12, 1425, 907, 16, 2206, 5549, 655, 1810, 17, 2910, 8863, 13491, 309, 261, 655, 1810, 3371, 907, 480, 446, 13, 18701, 642, 18, 542, 18566, 3371, 907, 12, 655, 1810, 3371, 907, 1769, 13491, 368, 968, 11899, 612, 13491, 642, 18, 542, 24395, 548, 12, 14124, 1989, 18, 4025, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 1447, 752, 1447, 12, 780, 508, 13, 288, 3639, 15476, 1447, 876, 273, 394, 15476, 2828, 18, 5164, 1447, 2828, 12, 588, 797, 9334, 508, 13, 288, 5411, 1071, 918, 855, 2828, 12, 8798, 1042, 5873, 1042, 16, 3697, 1503, 913, 1503, 13, 288, 7734, 727, 11352, 1042, 3903, 1042, 273, 261, 6841, 1042, 13, 819, 18, 588, 1499, 12, 8798, 1042, 18, 2294, 11702, 67, 13181, 1769, 7734, 309, 261, 9375, 1042, 422, 446, 13, 10792, 604, 394, 531, 60, 42, 503, 2932, 2568, 1404, 1104, 3903, 819, 316, 5873, 819, 8863, 7734, 368, 2720, 326, 11899, 1664, 7734, 1903, 642, 273, 261, 809, 13, 855, 1649, 1210, 1463, 921, 12, 2472, 16, 12353, 5911, 2 ]
public MethodCall(String dest, String path, String iface, String member, String sig, Object... args) { super(Message.Endian.BIG, Message.MessageType.METHOD_CALL, (byte) 0); headers.put(Message.HeaderField.PATH,path); headers.put(Message.HeaderField.DESTINATION,dest); headers.put(Message.HeaderField.MEMBER,member); Vector<Object> hargs = new Vector<Object>(); hargs.add(new Object[] { Message.HeaderField.PATH, new Object[] { ArgumentType.OBJECT_PATH_STRING, path } }); hargs.add(new Object[] { Message.HeaderField.DESTINATION, new Object[] { ArgumentType.STRING_STRING, dest } }); if (null != iface) { hargs.add(new Object[] { Message.HeaderField.INTERFACE, new Object[] { ArgumentType.STRING_STRING, iface } }); headers.put(Message.HeaderField.INTERFACE,iface); } hargs.add(new Object[] { Message.HeaderField.MEMBER, new Object[] { ArgumentType. STRING_STRING, member } }); if (null != sig) { hargs.add(new Object[] { Message.HeaderField.SIGNATURE, new Object[] { ArgumentType.SIGNATURE_STRING, sig } }); headers.put(Message.HeaderField.SIGNATURE,sig); this.args = args; } byte[] blen = new byte[4]; appendBytes(blen); append("ua(yv)", serial, hargs.toArray()); pad((byte)8); long c = bytecounter; if (null != sig) append(sig, args); marshallint(bytecounter-c, blen, 0, 4); }
MethodCall() { }
public MethodCall(String dest, String path, String iface, String member, String sig, Object... args) { super(Message.Endian.BIG, Message.MessageType.METHOD_CALL, (byte) 0); headers.put(Message.HeaderField.PATH,path); headers.put(Message.HeaderField.DESTINATION,dest); headers.put(Message.HeaderField.MEMBER,member); Vector<Object> hargs = new Vector<Object>(); hargs.add(new Object[] { Message.HeaderField.PATH, new Object[] { ArgumentType.OBJECT_PATH_STRING, path } }); hargs.add(new Object[] { Message.HeaderField.DESTINATION, new Object[] { ArgumentType.STRING_STRING, dest } }); if (null != iface) { hargs.add(new Object[] { Message.HeaderField.INTERFACE, new Object[] { ArgumentType.STRING_STRING, iface } }); headers.put(Message.HeaderField.INTERFACE,iface); } hargs.add(new Object[] { Message.HeaderField.MEMBER, new Object[] { ArgumentType. STRING_STRING, member } }); if (null != sig) { hargs.add(new Object[] { Message.HeaderField.SIGNATURE, new Object[] { ArgumentType.SIGNATURE_STRING, sig } }); headers.put(Message.HeaderField.SIGNATURE,sig); this.args = args; } byte[] blen = new byte[4]; appendBytes(blen); append("ua(yv)", serial, hargs.toArray()); pad((byte)8); long c = bytecounter; if (null != sig) append(sig, args); marshallint(bytecounter-c, blen, 0, 4); }
5401 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5401/0a09fa0be7cff934fa14dfe85870de0d7755b88a/MethodCall.java/buggy/org/freedesktop/dbus/MethodCall.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 2985, 1477, 12, 780, 1570, 16, 514, 589, 16, 514, 9751, 16, 514, 3140, 16, 514, 3553, 16, 1033, 2777, 833, 13, 565, 288, 1377, 2240, 12, 1079, 18, 7583, 18, 19044, 16, 2350, 18, 24563, 18, 5327, 67, 13730, 16, 261, 7229, 13, 374, 1769, 1377, 1607, 18, 458, 12, 1079, 18, 1864, 974, 18, 4211, 16, 803, 1769, 1377, 1607, 18, 458, 12, 1079, 18, 1864, 974, 18, 29451, 16, 10488, 1769, 1377, 1607, 18, 458, 12, 1079, 18, 1864, 974, 18, 19630, 16, 5990, 1769, 1377, 5589, 32, 921, 34, 366, 1968, 273, 394, 5589, 32, 921, 34, 5621, 1377, 366, 1968, 18, 1289, 12, 2704, 1033, 8526, 288, 2350, 18, 1864, 974, 18, 4211, 16, 394, 1033, 8526, 288, 5067, 559, 18, 9422, 67, 4211, 67, 5804, 16, 589, 289, 15549, 1377, 366, 1968, 18, 1289, 12, 2704, 1033, 8526, 288, 2350, 18, 1864, 974, 18, 29451, 16, 394, 1033, 8526, 288, 5067, 559, 18, 5804, 67, 5804, 16, 1570, 289, 15549, 5411, 309, 261, 2011, 480, 9751, 13, 288, 540, 366, 1968, 18, 1289, 12, 2704, 1033, 8526, 288, 2350, 18, 1864, 974, 18, 18865, 16, 394, 1033, 8526, 288, 5067, 559, 18, 5804, 67, 5804, 16, 9751, 289, 15549, 540, 1607, 18, 458, 12, 1079, 18, 1864, 974, 18, 18865, 16, 31479, 1769, 1377, 289, 5411, 366, 1968, 18, 1289, 12, 2704, 1033, 8526, 288, 2350, 18, 1864, 974, 18, 19630, 16, 394, 1033, 8526, 288, 5067, 559, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 2985, 1477, 12, 780, 1570, 16, 514, 589, 16, 514, 9751, 16, 514, 3140, 16, 514, 3553, 16, 1033, 2777, 833, 13, 565, 288, 1377, 2240, 12, 1079, 18, 7583, 18, 19044, 16, 2350, 18, 24563, 18, 5327, 67, 13730, 16, 261, 7229, 13, 374, 1769, 1377, 1607, 18, 458, 12, 1079, 18, 1864, 974, 18, 4211, 16, 803, 1769, 1377, 1607, 18, 458, 12, 1079, 18, 1864, 974, 18, 29451, 16, 10488, 1769, 1377, 1607, 18, 458, 12, 1079, 18, 1864, 974, 18, 19630, 16, 5990, 1769, 1377, 5589, 32, 921, 34, 366, 1968, 273, 394, 5589, 32, 921, 34, 5621, 1377, 366, 1968, 18, 1289, 12, 2704, 1033, 8526, 288, 2350, 18, 1864, 974, 18, 2 ]
setStringProperty( Style.WIDOWS_PROP, value );
setStringProperty( IStyleModel.WIDOWS_PROP, value );
public void setWidows( String value ) throws SemanticException { setStringProperty( Style.WIDOWS_PROP, value ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/StyleHandle.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/StyleHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 59, 350, 543, 87, 12, 514, 460, 262, 1216, 24747, 503, 202, 95, 202, 202, 542, 780, 1396, 12, 9767, 18, 59, 734, 22973, 67, 15811, 16, 460, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 59, 350, 543, 87, 12, 514, 460, 262, 1216, 24747, 503, 202, 95, 202, 202, 542, 780, 1396, 12, 9767, 18, 59, 734, 22973, 67, 15811, 16, 460, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
e.printStackTrace();
throw new RuntimeException("Interrupted while trying to add connection to pool");
public void put(ManagerConnection connection) { try { connections.put(connection); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
52801 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52801/bc775586138e4f88e52b7ab5068feb494e4f5644/ManagerConnectionPool.java/buggy/src/main/java/org/asteriskjava/live/internal/ManagerConnectionPool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 1318, 1952, 1459, 13, 565, 288, 3639, 775, 3639, 288, 5411, 5921, 18, 458, 12, 4071, 1769, 3639, 289, 3639, 1044, 261, 24485, 503, 425, 13, 3639, 288, 5411, 368, 2660, 8064, 17, 11168, 1044, 1203, 6647, 604, 394, 3235, 2932, 24485, 1323, 8374, 358, 527, 1459, 358, 2845, 8863, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 1318, 1952, 1459, 13, 565, 288, 3639, 775, 3639, 288, 5411, 5921, 18, 458, 12, 4071, 1769, 3639, 289, 3639, 1044, 261, 24485, 503, 425, 13, 3639, 288, 5411, 368, 2660, 8064, 17, 11168, 1044, 1203, 6647, 604, 394, 3235, 2932, 24485, 1323, 8374, 358, 527, 1459, 358, 2845, 8863, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
data[h]=parseInt(buffer, start,stop);
data.hour=parseInt(buffer, start,stop);
protected void getTime (String buffer, int start, int end, int[] data, int[] timeZone) throws RuntimeException{ int stop = start+2; //get hours (hh) data[h]=parseInt(buffer, start,stop); //get minutes (mm) if (buffer.charAt(stop++)!=':') { throw new RuntimeException("Error in parsing time zone" ); } start = stop; stop = stop+2; data[m]=parseInt(buffer, start,stop); //get seconds (ss) if (buffer.charAt(stop++)!=':') { throw new RuntimeException("Error in parsing time zone" ); } start = stop; stop = stop+2; data[s]=parseInt(buffer, start,stop); if (stop == end) return; //get miliseconds (ms) start = stop; int milisec = buffer.charAt(start) == '.' ? start : -1; //find UTC sign if any int sign = findUTCSign(buffer, start, end); //parse miliseconds if ( milisec != -1 ) { // The end of millisecond part is between . and // either the end of the UTC sign start = sign < 0 ? end : sign; data[ms]=parseInt(buffer, milisec+1, start); } //parse UTC time zone (hh:mm) if ( sign>0 ) { if (start != sign) throw new RuntimeException("Error in parsing time zone" ); getTimeZone(buffer, data, sign, end, timeZone); } else if (start != end) { throw new RuntimeException("Error in parsing time zone" ); } }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/7569f1e56b929395f70c2717a33b9ea5e6583d7a/AbstractDateTimeDV.java/buggy/src/org/apache/xerces/impl/dv/xs/AbstractDateTimeDV.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 225, 918, 6135, 261, 780, 1613, 16, 509, 787, 16, 509, 679, 16, 509, 8526, 501, 16, 509, 8526, 17512, 13, 1216, 3235, 95, 3639, 509, 2132, 273, 787, 15, 22, 31, 3639, 368, 588, 7507, 261, 21622, 13, 3639, 501, 18, 12091, 33, 2670, 1702, 12, 4106, 16, 787, 16, 5681, 1769, 3639, 368, 588, 6824, 261, 7020, 13, 3639, 309, 261, 4106, 18, 3001, 861, 12, 5681, 27245, 5, 2218, 2497, 13, 288, 7734, 604, 394, 3235, 2932, 668, 316, 5811, 813, 4157, 6, 11272, 3639, 289, 3639, 787, 273, 2132, 31, 3639, 2132, 273, 2132, 15, 22, 31, 3639, 501, 63, 81, 65, 33, 2670, 1702, 12, 4106, 16, 787, 16, 5681, 1769, 3639, 368, 588, 3974, 261, 1049, 13, 3639, 309, 261, 4106, 18, 3001, 861, 12, 5681, 27245, 5, 2218, 2497, 13, 288, 7734, 604, 394, 3235, 2932, 668, 316, 5811, 813, 4157, 6, 11272, 3639, 289, 3639, 787, 273, 2132, 31, 3639, 2132, 273, 2132, 15, 22, 31, 3639, 501, 63, 87, 65, 33, 2670, 1702, 12, 4106, 16, 787, 16, 5681, 1769, 3639, 309, 261, 5681, 422, 679, 13, 5411, 327, 31, 7734, 368, 588, 312, 330, 291, 20960, 261, 959, 13, 3639, 787, 273, 2132, 31, 3639, 509, 312, 330, 291, 557, 273, 1613, 18, 3001, 861, 12, 1937, 13, 422, 2611, 692, 787, 294, 300, 21, 31, 3639, 368, 4720, 9951, 1573, 309, 1281, 3639, 509, 1573, 273, 1104, 11471, 2766, 12, 4106, 16, 787, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 225, 918, 6135, 261, 780, 1613, 16, 509, 787, 16, 509, 679, 16, 509, 8526, 501, 16, 509, 8526, 17512, 13, 1216, 3235, 95, 3639, 509, 2132, 273, 787, 15, 22, 31, 3639, 368, 588, 7507, 261, 21622, 13, 3639, 501, 18, 12091, 33, 2670, 1702, 12, 4106, 16, 787, 16, 5681, 1769, 3639, 368, 588, 6824, 261, 7020, 13, 3639, 309, 261, 4106, 18, 3001, 861, 12, 5681, 27245, 5, 2218, 2497, 13, 288, 7734, 604, 394, 3235, 2932, 668, 316, 5811, 813, 4157, 6, 11272, 3639, 289, 3639, 787, 273, 2132, 31, 3639, 2132, 273, 2132, 15, 22, 31, 3639, 501, 63, 81, 65, 33, 2670, 1702, 12, 4106, 16, 787, 16, 5681, 1769, 3639, 2 ]
if (zentry.isDirectory()) continue;
if (zentry.isDirectory()) continue;
public StdKunststoffPackager(String outputFilename, PackagerListener plistener) throws Exception { super(outputFilename, plistener); // Copies the Kunststoff library sendMsg("Copying the Kunststoff library ..."); InputStream istream = getClass().getResourceAsStream("/lib/kunststoff.jar"); ZipInputStream skeleton_is; if (istream != null) { skeleton_is = new ZipInputStream(istream); } else { skeleton_is = new JarInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "kunststoff.jar")); } ZipEntry zentry; while ((zentry = skeleton_is.getNextEntry()) != null) { // ugly hack: may not add a directory twice, therefore add no directories if (zentry.isDirectory()) continue; // Puts a new entry outJar.putNextEntry(new ZipEntry(zentry.getName())); // Copy the data copyStream(skeleton_is, outJar); outJar.closeEntry(); skeleton_is.closeEntry(); } }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/StdKunststoffPackager.java/buggy/src/lib/com/izforge/izpack/compiler/StdKunststoffPackager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 6276, 47, 23412, 334, 3674, 4420, 6817, 12, 780, 876, 5359, 16, 7930, 6817, 2223, 21074, 708, 13, 377, 1216, 1185, 225, 288, 565, 2240, 12, 2844, 5359, 16, 21074, 708, 1769, 565, 368, 28506, 606, 326, 1475, 23412, 334, 3674, 5313, 565, 1366, 3332, 2932, 2951, 310, 326, 1475, 23412, 334, 3674, 5313, 1372, 8863, 565, 5037, 277, 3256, 273, 2900, 7675, 588, 1420, 17052, 2932, 19, 2941, 19, 79, 23412, 334, 3674, 18, 11930, 8863, 565, 8603, 4348, 17761, 67, 291, 31, 565, 309, 261, 376, 793, 480, 446, 13, 565, 288, 1377, 17761, 67, 291, 273, 394, 8603, 4348, 12, 376, 793, 1769, 565, 289, 565, 469, 565, 288, 1377, 17761, 67, 291, 273, 394, 15644, 4348, 261, 2704, 11907, 261, 3639, 12972, 18, 6867, 12231, 67, 14209, 397, 315, 2941, 6, 397, 1387, 18, 11287, 397, 315, 79, 23412, 334, 3674, 18, 11930, 7923, 1769, 3639, 289, 3639, 23652, 998, 4099, 31, 6647, 1323, 14015, 94, 4099, 273, 17761, 67, 291, 18, 588, 2134, 1622, 10756, 480, 446, 13, 565, 288, 1377, 368, 26920, 11769, 30, 2026, 486, 527, 279, 1867, 13605, 16, 13526, 527, 1158, 6402, 1377, 309, 261, 94, 4099, 18, 291, 2853, 10756, 1324, 31, 5411, 368, 4399, 87, 279, 394, 1241, 1377, 596, 10813, 18, 458, 2134, 1622, 12, 2704, 23652, 12, 94, 4099, 18, 17994, 1435, 10019, 1377, 368, 5631, 326, 501, 1377, 1610, 1228, 12, 7771, 12143, 67, 291, 16, 596, 10813, 1769, 1377, 596, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 6276, 47, 23412, 334, 3674, 4420, 6817, 12, 780, 876, 5359, 16, 7930, 6817, 2223, 21074, 708, 13, 377, 1216, 1185, 225, 288, 565, 2240, 12, 2844, 5359, 16, 21074, 708, 1769, 565, 368, 28506, 606, 326, 1475, 23412, 334, 3674, 5313, 565, 1366, 3332, 2932, 2951, 310, 326, 1475, 23412, 334, 3674, 5313, 1372, 8863, 565, 5037, 277, 3256, 273, 2900, 7675, 588, 1420, 17052, 2932, 19, 2941, 19, 79, 23412, 334, 3674, 18, 11930, 8863, 565, 8603, 4348, 17761, 67, 291, 31, 565, 309, 261, 376, 793, 480, 446, 13, 565, 288, 1377, 17761, 67, 291, 273, 394, 8603, 4348, 12, 376, 793, 1769, 565, 289, 565, 469, 565, 288, 1377, 17761, 67, 291, 273, 2 ]
s = (String) (data.getTransferData(DataFlavor.stringFlavor));
DataFlavor df = DataFlavor.getTextPlainUnicodeFlavor(); Reader sr = df.getReaderForText(data); s = StringTools.readerToString(sr);
private void restoreFromTray() { // get text from clipboard or selection: Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemSelection(); if (clipboard == null) { // on Windows clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); } String s = null; Transferable data = clipboard.getContents(this); try { s = (String) (data.getTransferData(DataFlavor.stringFlavor)); } catch (Exception ex) { ex.printStackTrace(); s = data.toString(); } // show GUI and check the text from clipboard/selection: frame.setVisible(true); textArea.setText(s); JLanguageTool langTool = getCurrentLanguageTool(); checkTextAndDisplayResults(langTool, getCurrentLanguage().getName()); }
10628 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10628/4c1c0fdf73ded253fd70602667c975738d811da5/Main.java/buggy/trunk/JLanguageTool/src/java/de/danielnaber/languagetool/gui/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 5217, 1265, 56, 435, 1435, 288, 565, 368, 336, 977, 628, 20304, 578, 4421, 30, 565, 385, 3169, 3752, 20304, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 3163, 6233, 5621, 565, 309, 261, 14161, 3752, 422, 446, 13, 288, 565, 368, 603, 8202, 1377, 20304, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 3163, 15339, 3752, 5621, 565, 289, 565, 514, 272, 273, 446, 31, 565, 12279, 429, 501, 273, 20304, 18, 588, 6323, 12, 2211, 1769, 565, 775, 288, 1377, 1910, 2340, 9444, 3013, 273, 1910, 2340, 9444, 18, 588, 1528, 13360, 16532, 2340, 9444, 5621, 5393, 9133, 273, 3013, 18, 588, 2514, 1290, 1528, 12, 892, 1769, 272, 273, 514, 10348, 18, 10530, 5808, 12, 11254, 1769, 565, 289, 1044, 261, 503, 431, 13, 288, 1377, 431, 18, 1188, 6332, 5621, 1377, 272, 273, 501, 18, 10492, 5621, 565, 289, 565, 368, 2405, 10978, 471, 866, 326, 977, 628, 20304, 19, 10705, 30, 565, 2623, 18, 542, 6207, 12, 3767, 1769, 565, 977, 5484, 18, 542, 1528, 12, 87, 1769, 565, 804, 3779, 6364, 3303, 6364, 273, 5175, 3779, 6364, 5621, 565, 866, 1528, 1876, 4236, 3447, 12, 4936, 6364, 16, 5175, 3779, 7675, 17994, 10663, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 5217, 1265, 56, 435, 1435, 288, 565, 368, 336, 977, 628, 20304, 578, 4421, 30, 565, 385, 3169, 3752, 20304, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 3163, 6233, 5621, 565, 309, 261, 14161, 3752, 422, 446, 13, 288, 565, 368, 603, 8202, 1377, 20304, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 3163, 15339, 3752, 5621, 565, 289, 565, 514, 272, 273, 446, 31, 565, 12279, 429, 501, 273, 20304, 18, 588, 6323, 12, 2211, 1769, 565, 775, 288, 1377, 1910, 2340, 9444, 3013, 273, 1910, 2340, 9444, 18, 588, 1528, 13360, 16532, 2340, 9444, 5621, 5393, 9133, 273, 3013, 18, 588, 2514, 1290, 1528, 12, 892, 1769, 272, 273, 2 ]
public org.quickfix.field.RFQReqID getRFQReqID() throws FieldNotFound { org.quickfix.field.RFQReqID value = new org.quickfix.field.RFQReqID();
public quickfix.field.RFQReqID getRFQReqID() throws FieldNotFound { quickfix.field.RFQReqID value = new quickfix.field.RFQReqID();
public org.quickfix.field.RFQReqID getRFQReqID() throws FieldNotFound { org.quickfix.field.RFQReqID value = new org.quickfix.field.RFQReqID(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/RFQRequest.java/buggy/src/java/src/quickfix/fix43/RFQRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 12918, 53, 6113, 734, 4170, 23032, 6113, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 12918, 53, 6113, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 12918, 53, 6113, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 12918, 53, 6113, 734, 4170, 23032, 6113, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 12918, 53, 6113, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 12918, 53, 6113, 734, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) {
if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || support.getCharAt(1) == '>')) {
private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261, 71, 273, 1024, 71, 10756, 288, 7734, 648, 2337, 20, 11, 294, 368, 423, 1506, 7734, 648, 2337, 26565, 11, 294, 368, 3602, 40, 7734, 648, 2337, 20, 1578, 11, 294, 368, 3602, 62, 7734, 648, 300, 21, 294, 368, 409, 434, 2728, 18, 10792, 327, 374, 31, 10792, 368, 9578, 7292, 7734, 648, 296, 296, 294, 7734, 648, 2337, 88, 11, 294, 7734, 648, 2337, 74, 11, 294, 7734, 648, 2337, 86, 11, 294, 7734, 648, 2337, 1611, 23, 11, 294, 368, 2337, 90, 11, 10792, 3476, 67, 15156, 9904, 31, 10792, 1324, 3300, 31, 7734, 648, 6501, 294, 368, 518, 1807, 279, 2879, 10792, 1323, 14015, 71, 273, 1024, 71, 10756, 480, 2337, 82, 6134, 288, 13491, 309, 261, 71, 422, 300, 21, 13, 288, 18701, 327, 374, 31, 13491, 289, 10792, 289, 10792, 368, 4159, 3059, 7734, 648, 2337, 82, 11, 294, 10792, 1620, 261, 844, 18, 588, 14756, 1119, 10756, 288, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 5948, 43, 294, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 42, 1985, 294, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 17591, 294, 18701, 1324, 3300, 31, 13491, 805, 294, 18701, 898, 31, 10792, 289, 10792, 1844, 18, 542, 14756, 1119, 12, 14756, 1119, 18, 2294, 8025, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261, 71, 273, 1024, 71, 10756, 288, 7734, 648, 2337, 20, 11, 294, 368, 423, 1506, 7734, 648, 2337, 26565, 11, 294, 368, 3602, 40, 7734, 648, 2337, 20, 1578, 11, 294, 368, 3602, 62, 7734, 648, 300, 21, 294, 368, 409, 434, 2728, 18, 10792, 327, 374, 31, 10792, 368, 9578, 7292, 7734, 648, 296, 296, 294, 7734, 648, 2337, 88, 11, 294, 7734, 648, 2337, 74, 11, 294, 7734, 648, 2337, 86, 11, 294, 7734, 648, 2337, 1611, 23, 11, 294, 368, 2 ]
elements.add(element);
if (element != null) { elements.add(element); }
protected void restoreState(IMemento memento) { TreeViewer viewer = getTreeViewer(); IMemento frameMemento = memento.getChild(TAG_CURRENT_FRAME); if (frameMemento != null) { TreeFrame frame = new TreeFrame(viewer); frame.restoreState(frameMemento); frame.setName(getFrameName(frame.getInput())); frame.setToolTipText(getFrameToolTipText(frame.getInput())); viewer.setSelection(new StructuredSelection(frame.getInput())); frameList.gotoFrame(frame); } else { IContainer container = ResourcesPlugin.getWorkspace().getRoot(); IMemento childMem = memento.getChild(TAG_EXPANDED); if (childMem != null) { ArrayList elements = new ArrayList(); IMemento[] elementMem = childMem.getChildren(TAG_ELEMENT); for (int i = 0; i < elementMem.length; i++) { Object element = container.findMember(elementMem[i].getString(TAG_PATH)); elements.add(element); } viewer.setExpandedElements(elements.toArray()); } childMem = memento.getChild(TAG_SELECTION); if (childMem != null) { ArrayList list = new ArrayList(); IMemento[] elementMem = childMem.getChildren(TAG_ELEMENT); for (int i = 0; i < elementMem.length; i++) { Object element = container.findMember(elementMem[i].getString(TAG_PATH)); list.add(element); } viewer.setSelection(new StructuredSelection(list)); } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d1dfc320306a2b9a03025db84d18bac161194cbe/ResourceNavigator.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5217, 1119, 12, 3445, 820, 83, 312, 820, 83, 13, 288, 202, 202, 2471, 18415, 14157, 273, 15867, 18415, 5621, 202, 202, 3445, 820, 83, 2623, 49, 820, 83, 273, 312, 820, 83, 18, 588, 1763, 12, 7927, 67, 15487, 67, 15072, 1769, 9506, 202, 430, 261, 3789, 49, 820, 83, 480, 446, 13, 288, 1082, 202, 2471, 3219, 2623, 273, 394, 4902, 3219, 12, 25256, 1769, 1082, 202, 3789, 18, 13991, 1119, 12, 3789, 49, 820, 83, 1769, 1082, 202, 3789, 18, 542, 461, 12, 588, 3219, 461, 12, 3789, 18, 588, 1210, 1435, 10019, 1082, 202, 3789, 18, 542, 29250, 1528, 12, 588, 3219, 29250, 1528, 12, 3789, 18, 588, 1210, 1435, 10019, 1082, 202, 25256, 18, 542, 6233, 12, 2704, 7362, 2862, 6233, 12, 3789, 18, 588, 1210, 1435, 10019, 1082, 202, 3789, 682, 18, 75, 6302, 3219, 12, 3789, 1769, 202, 202, 97, 202, 202, 12107, 288, 6862, 202, 45, 2170, 1478, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 5621, 1082, 202, 3445, 820, 83, 1151, 3545, 273, 312, 820, 83, 18, 588, 1763, 12, 7927, 67, 16109, 1258, 7660, 1769, 1082, 202, 430, 261, 3624, 3545, 480, 446, 13, 288, 9506, 202, 19558, 2186, 273, 394, 2407, 5621, 9506, 202, 3445, 820, 83, 8526, 930, 3545, 273, 1151, 3545, 18, 588, 4212, 12, 7927, 67, 10976, 1769, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 930, 3545, 18, 2469, 31, 277, 27245, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5217, 1119, 12, 3445, 820, 83, 312, 820, 83, 13, 288, 202, 202, 2471, 18415, 14157, 273, 15867, 18415, 5621, 202, 202, 3445, 820, 83, 2623, 49, 820, 83, 273, 312, 820, 83, 18, 588, 1763, 12, 7927, 67, 15487, 67, 15072, 1769, 9506, 202, 430, 261, 3789, 49, 820, 83, 480, 446, 13, 288, 1082, 202, 2471, 3219, 2623, 273, 394, 4902, 3219, 12, 25256, 1769, 1082, 202, 3789, 18, 13991, 1119, 12, 3789, 49, 820, 83, 1769, 1082, 202, 3789, 18, 542, 461, 12, 588, 3219, 461, 12, 3789, 18, 588, 1210, 1435, 10019, 1082, 202, 3789, 18, 542, 29250, 1528, 12, 588, 3219, 29250, 1528, 12, 3789, 18, 588, 1210, 1435, 10019, 2 ]
return (int)Math.ceil(fTons / 5.0);
if (entity.getTechLevel() == TechConstants.T_CLAN_LEVEL_2) { return (int)Math.ceil(fTons / 5.0f); } else { return (int)Math.ceil(fTons / 4.0f); }
public int getCriticals(Entity entity) { if (criticals != CRITICALS_VARIABLE) { return criticals; } // check for known formulas if (hasFlag(F_HATCHET)) { return (int)Math.ceil(entity.getWeight() / 15.0); } else if (hasFlag(F_DOUBLE_HEAT_SINK) && entity.getTechLevel() != TechConstants.T_CLAN_LEVEL_2) { return 3; } else if (hasFlag(F_DOUBLE_HEAT_SINK) && entity.getTechLevel() == TechConstants.T_CLAN_LEVEL_2) { return 2; } else if (hasFlag(F_MASC)) { if (entity.getTechLevel() == TechConstants.T_CLAN_LEVEL_2) { return Math.round(entity.getWeight() / 25.0f); } else { return Math.round(entity.getWeight() / 20.0f); } } else if (hasFlag(F_TARGCOMP)) { // 1 slot for every 5 tons of direct_fire weaponry double fTons = 0.0; for (Enumeration e = entity.getWeapons(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement(); WeaponType wt = (WeaponType)m.getType(); if (wt.hasFlag(WeaponType.F_DIRECT_FIRE)) { fTons += wt.getTonnage(entity); } } return (int)Math.ceil(fTons / 5.0); } // right, well I'll just guess then return 1; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/61e393b7db266bb7eaf84a90c93bd5d7f236dd01/MiscType.java/clean/megamek/src/megamek/common/MiscType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1927, 583, 335, 1031, 12, 1943, 1522, 13, 288, 3639, 309, 261, 27826, 335, 1031, 480, 28588, 55, 67, 16444, 13, 288, 5411, 327, 7921, 335, 1031, 31, 3639, 289, 3639, 368, 866, 364, 4846, 646, 24857, 3639, 309, 261, 5332, 4678, 12, 42, 67, 44, 5858, 1584, 3719, 288, 5411, 327, 261, 474, 13, 10477, 18, 311, 330, 12, 1096, 18, 588, 6544, 1435, 342, 4711, 18, 20, 1769, 3639, 289, 469, 309, 261, 5332, 4678, 12, 42, 67, 17088, 67, 3900, 789, 67, 55, 8476, 13, 597, 1522, 18, 588, 56, 8987, 2355, 1435, 480, 399, 8987, 2918, 18, 56, 67, 5017, 1258, 67, 10398, 67, 22, 13, 288, 5411, 327, 890, 31, 202, 202, 97, 469, 309, 261, 5332, 4678, 12, 42, 67, 17088, 67, 3900, 789, 67, 55, 8476, 13, 597, 1522, 18, 588, 56, 8987, 2355, 1435, 422, 399, 8987, 2918, 18, 56, 67, 5017, 1258, 67, 10398, 67, 22, 13, 288, 1082, 202, 2463, 576, 31, 3639, 289, 469, 309, 261, 5332, 4678, 12, 42, 67, 5535, 2312, 3719, 288, 5411, 309, 261, 1096, 18, 588, 56, 8987, 2355, 1435, 422, 399, 8987, 2918, 18, 56, 67, 5017, 1258, 67, 10398, 67, 22, 13, 288, 7734, 327, 2361, 18, 2260, 12, 1096, 18, 588, 6544, 1435, 342, 6969, 18, 20, 74, 1769, 5411, 289, 5411, 469, 288, 7734, 327, 2361, 18, 2260, 12, 1096, 18, 588, 6544, 1435, 342, 4200, 18, 20, 74, 1769, 5411, 289, 3639, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1927, 583, 335, 1031, 12, 1943, 1522, 13, 288, 3639, 309, 261, 27826, 335, 1031, 480, 28588, 55, 67, 16444, 13, 288, 5411, 327, 7921, 335, 1031, 31, 3639, 289, 3639, 368, 866, 364, 4846, 646, 24857, 3639, 309, 261, 5332, 4678, 12, 42, 67, 44, 5858, 1584, 3719, 288, 5411, 327, 261, 474, 13, 10477, 18, 311, 330, 12, 1096, 18, 588, 6544, 1435, 342, 4711, 18, 20, 1769, 3639, 289, 469, 309, 261, 5332, 4678, 12, 42, 67, 17088, 67, 3900, 789, 67, 55, 8476, 13, 597, 1522, 18, 588, 56, 8987, 2355, 1435, 480, 399, 8987, 2918, 18, 56, 67, 5017, 1258, 67, 10398, 67, 22, 13, 288, 5411, 327, 890, 31, 202, 2 ]
("file:
("file:
public ProcessorTest (String testName, String propertiesFile, String audioSourceFile) throws Exception { context = testName; batchMode = Boolean.getBoolean ("tests.frontend." + testName + ".batchMode"); dumpTimes = Boolean.getBoolean ("tests.frontend." + testName + ".dumpTimes"); dumpValues = Boolean.getBoolean ("tests.frontend." + testName + ".dumpValues"); String pwd = System.getProperty("user.dir"); SphinxProperties.initContext (testName, new URL ("file://" + pwd + File.separatorChar + audioSourceFile)); if (batchMode) { audioSource = (new BatchFileAudioSource ("BatchFileAudioSource", context, audioSourceFile)); } else { audioSource = (new StreamAudioSource ("StreamAudioSource", context, (new FileInputStream(audioSourceFile)))); } }
47105 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47105/204a76687188d0444810174c2ab5c4135c1e859e/ProcessorTest.java/buggy/sphinx4/tests/frontend/ProcessorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 4709, 565, 261, 780, 1842, 461, 16, 514, 1790, 812, 16, 514, 7447, 31150, 13, 1216, 565, 1185, 288, 19694, 819, 273, 1842, 461, 31, 7734, 2581, 2309, 273, 3411, 18, 588, 5507, 5411, 7566, 16341, 18, 19960, 1199, 397, 1842, 461, 397, 3552, 5303, 2309, 8863, 3639, 4657, 10694, 273, 3411, 18, 588, 5507, 5411, 7566, 16341, 18, 19960, 1199, 397, 1842, 461, 397, 3552, 8481, 10694, 8863, 3639, 4657, 1972, 273, 3411, 18, 588, 5507, 5411, 7566, 16341, 18, 19960, 1199, 397, 1842, 461, 397, 3552, 8481, 1972, 8863, 3639, 514, 14720, 273, 2332, 18, 588, 1396, 2932, 1355, 18, 1214, 8863, 3639, 348, 15922, 2297, 18, 2738, 1042, 5411, 261, 3813, 461, 16, 394, 1976, 2398, 7566, 768, 14334, 397, 14720, 397, 1387, 18, 11287, 2156, 397, 7447, 31150, 10019, 7734, 309, 261, 5303, 2309, 13, 288, 5411, 7447, 1830, 273, 1171, 261, 2704, 5982, 812, 12719, 1830, 1171, 7566, 4497, 812, 12719, 1830, 3113, 819, 16, 7447, 31150, 10019, 3639, 289, 469, 288, 5411, 7447, 1830, 273, 7734, 261, 2704, 3961, 12719, 1830, 1171, 7566, 1228, 12719, 1830, 3113, 819, 16, 5375, 261, 2704, 11907, 12, 11509, 31150, 3719, 10019, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 4709, 565, 261, 780, 1842, 461, 16, 514, 1790, 812, 16, 514, 7447, 31150, 13, 1216, 565, 1185, 288, 19694, 819, 273, 1842, 461, 31, 7734, 2581, 2309, 273, 3411, 18, 588, 5507, 5411, 7566, 16341, 18, 19960, 1199, 397, 1842, 461, 397, 3552, 5303, 2309, 8863, 3639, 4657, 10694, 273, 3411, 18, 588, 5507, 5411, 7566, 16341, 18, 19960, 1199, 397, 1842, 461, 397, 3552, 8481, 10694, 8863, 3639, 4657, 1972, 273, 3411, 18, 588, 5507, 5411, 7566, 16341, 18, 19960, 1199, 397, 1842, 461, 397, 3552, 8481, 1972, 8863, 3639, 514, 14720, 273, 2332, 18, 588, 1396, 2932, 1355, 18, 1214, 8863, 3639, 348, 15922, 2297, 18, 2738, 1042, 5411, 261, 3813, 461, 16, 2 ]
if (leftESet) result.append(left); else result.append("<unset>");
if (leftESet) result.append(left); else result.append("<unset>");
public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (left: "); if (leftESet) result.append(left); else result.append("<unset>"); result.append(", top: "); if (topESet) result.append(top); else result.append("<unset>"); result.append(", width: "); if (widthESet) result.append(width); else result.append("<unset>"); result.append(", height: "); if (heightESet) result.append(height); else result.append("<unset>"); result.append(')'); return result.toString(); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/BoundsImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/BoundsImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 565, 288, 3639, 309, 261, 73, 2520, 3886, 10756, 327, 2240, 18, 10492, 5621, 3639, 6674, 563, 273, 394, 6674, 12, 9565, 18, 10492, 10663, 3639, 563, 18, 6923, 2932, 261, 4482, 30, 315, 1769, 3639, 309, 261, 4482, 41, 694, 13, 563, 18, 6923, 12, 4482, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2932, 16, 1760, 30, 315, 1769, 3639, 309, 261, 3669, 41, 694, 13, 563, 18, 6923, 12, 3669, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2932, 16, 1835, 30, 315, 1769, 3639, 309, 261, 2819, 41, 694, 13, 563, 18, 6923, 12, 2819, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2932, 16, 2072, 30, 315, 1769, 3639, 309, 261, 4210, 41, 694, 13, 563, 18, 6923, 12, 4210, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2668, 2506, 1769, 3639, 327, 563, 18, 10492, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 565, 288, 3639, 309, 261, 73, 2520, 3886, 10756, 327, 2240, 18, 10492, 5621, 3639, 6674, 563, 273, 394, 6674, 12, 9565, 18, 10492, 10663, 3639, 563, 18, 6923, 2932, 261, 4482, 30, 315, 1769, 3639, 309, 261, 4482, 41, 694, 13, 563, 18, 6923, 12, 4482, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2932, 16, 1760, 30, 315, 1769, 3639, 309, 261, 3669, 41, 694, 13, 563, 18, 6923, 12, 3669, 1769, 469, 563, 18, 6923, 2932, 32, 18579, 2984, 1769, 3639, 563, 18, 6923, 2932, 16, 1835, 30, 315, 1769, 3639, 309, 261, 2819, 41, 694, 13, 563, 18, 6923, 12, 2819, 1769, 469, 563, 2 ]
public static void logError(Throwable t, String msg, String module) { log(Debug.ERROR, t, msg, module);
public static void logError(String msg, String module) { log(Debug.ERROR, null, msg, module);
public static void logError(Throwable t, String msg, String module) { log(Debug.ERROR, t, msg, module); }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/674ac0aaae1138d72aab8865ac87ed037c31ca37/Debug.java/buggy/framework/base/src/base/org/ofbiz/base/util/Debug.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 20638, 12, 15155, 268, 16, 514, 1234, 16, 514, 1605, 13, 288, 3639, 613, 12, 2829, 18, 3589, 16, 268, 16, 1234, 16, 1605, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 20638, 12, 15155, 268, 16, 514, 1234, 16, 514, 1605, 13, 288, 3639, 613, 12, 2829, 18, 3589, 16, 268, 16, 1234, 16, 1605, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected List<AbstractQueryHit> performQuery(AbstractRepositoryQuery repositoryQuery, final IProgressMonitor monitor, MultiStatus queryStatus) { if (!(repositoryQuery instanceof JiraRepositoryQuery)) { return Collections.emptyList(); } final JiraRepositoryQuery jiraRepositoryQuery = (JiraRepositoryQuery)repositoryQuery; final List<AbstractQueryHit> hits = new ArrayList<AbstractQueryHit>(); try { TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository(MylarJiraPlugin.JIRA_REPOSITORY_KIND, repositoryQuery.getRepositoryUrl()); JiraServerFacade.getDefault().getJiraServer(repository).executeNamedFilter(jiraRepositoryQuery.getNamedFilter(), new IssueCollector() { public void done() {// jiraFilter.setRefreshing(false);// Display.getDefault().asyncExec(new Runnable() {// public void run() {// if (TaskListView.getDefault() != null)// TaskListView.getDefault().refreshAndFocus();// }// }); } public boolean isCancelled() { return monitor.isCanceled(); } public void collectIssue(Issue issue) { int issueId = new Integer(issue.getId()); JiraFilterHit hit = new JiraFilterHit(issue, jiraRepositoryQuery.getRepositoryUrl(), issueId); hits.add(hit);// addHit(hit); } public void start() { } }); } catch (Exception e) {// isRefreshing = false;// jiraFilter.setRefreshing(false);// JiraServerFacade.handleConnectionException(e); queryStatus.add(new Status(IStatus.OK, MylarTaskListPlugin.PLUGIN_ID, IStatus.OK, "Could not log in to server: " + repositoryQuery.getRepositoryUrl() + "\n\nCheck network connection.", e));// queryStatus.add(Status.CANCEL_STATUS); } queryStatus.add(Status.OK_STATUS); return hits; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/61115439d0b1cb89b27e637205643eae4b5b2273/JiraRepositoryConnector.java/buggy/org.eclipse.mylyn.jira.ui/src/org/eclipse/mylyn/internal/jira/JiraRepositoryConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 682, 32, 7469, 1138, 13616, 34, 16092, 1138, 12, 7469, 3305, 1138, 9071, 1138, 16, 6385, 45, 5491, 11415, 305, 535, 4089, 16, 5002, 1482, 2271, 1482, 15329, 202, 202, 430, 12, 5, 12, 9071, 1138, 1336, 792, 46, 11547, 3305, 1138, 3719, 95, 1082, 202, 2463, 15150, 18, 5531, 682, 5621, 202, 202, 97, 202, 202, 6385, 46, 11547, 3305, 1138, 78, 11547, 3305, 1138, 28657, 46, 11547, 3305, 1138, 13, 9071, 1138, 31, 202, 202, 6385, 682, 32, 7469, 1138, 13616, 34, 15173, 33, 2704, 19558, 32, 7469, 1138, 13616, 34, 5621, 202, 202, 698, 95, 1082, 202, 2174, 3305, 9071, 33, 12062, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 3305, 12, 12062, 7901, 46, 11547, 3773, 18, 46, 45, 2849, 67, 862, 30986, 67, 47, 2356, 16, 9071, 1138, 18, 588, 3305, 1489, 10663, 1082, 202, 46, 11547, 2081, 12467, 18, 588, 1868, 7675, 588, 46, 11547, 2081, 12, 9071, 2934, 8837, 7604, 1586, 12, 78, 11547, 3305, 1138, 18, 588, 7604, 1586, 9334, 2704, 12956, 7134, 1435, 95, 9506, 202, 482, 6459, 8734, 1435, 95, 759, 6862, 202, 78, 11547, 1586, 18, 542, 8323, 310, 12, 5743, 1769, 759, 6862, 202, 4236, 18, 588, 1868, 7675, 3810, 1905, 12, 2704, 20013, 1435, 95, 759, 25083, 202, 482, 6459, 2681, 1435, 95, 759, 6862, 1082, 202, 430, 12, 2174, 682, 1767, 18, 588, 1868, 1435, 5, 33, 2011, 13, 759, 6862, 9506, 202, 2174, 682, 1767, 18, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 682, 32, 7469, 1138, 13616, 34, 16092, 1138, 12, 7469, 3305, 1138, 9071, 1138, 16, 6385, 45, 5491, 11415, 305, 535, 4089, 16, 5002, 1482, 2271, 1482, 15329, 202, 202, 430, 12, 5, 12, 9071, 1138, 1336, 792, 46, 11547, 3305, 1138, 3719, 95, 1082, 202, 2463, 15150, 18, 5531, 682, 5621, 202, 202, 97, 202, 202, 6385, 46, 11547, 3305, 1138, 78, 11547, 3305, 1138, 28657, 46, 11547, 3305, 1138, 13, 9071, 1138, 31, 202, 202, 6385, 682, 32, 7469, 1138, 13616, 34, 15173, 33, 2704, 19558, 32, 7469, 1138, 13616, 34, 5621, 202, 202, 698, 95, 1082, 202, 2174, 3305, 9071, 33, 12062, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 3305, 2 ]
case (byte) 'r':
case (byte) 'r':
public java.sql.ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String types[]) throws SQLException { // Handle default value for types if (types == null) types = defaultTableTypes; if (tableNamePattern == null) tableNamePattern = "%"; // the field descriptors for the new ResultSet Field f[] = new Field[5]; java.sql.ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "TABLE_TYPE", iVarcharOid, 32); f[4] = new Field(connection, "REMARKS", iVarcharOid, 32); // Now form the query StringBuffer sql = new StringBuffer("select relname,oid,relkind from pg_class where ("); boolean notFirst = false; for (int i = 0;i < types.length;i++) { for (int j = 0;j < getTableTypes.length;j++) if (getTableTypes[j][0].equals(types[i])) { if (notFirst) sql.append(" or "); sql.append(getTableTypes[j][1]); notFirst = true; } } // Added by Stefan Andreasen <stefan@linux.kapow.dk> // Now take the pattern into account sql.append(") and relname like '"); sql.append(tableNamePattern.toLowerCase()); sql.append("' order by relkind, relname"); // Now run the query r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[5][0]; // Fetch the description for the table (if any) String getDescriptionStatement = connection.haveMinimumServerVersion("7.2") ? "select obj_description(" + r.getInt(2) + ",'pg_class')" : "select description from pg_description where objoid=" + r.getInt(2); java.sql.ResultSet dr = connection.ExecSQL(getDescriptionStatement); byte remarks[] = null; if (((org.postgresql.ResultSet)dr).getTupleCount() == 1) { dr.next(); remarks = dr.getBytes(1); } dr.close(); String relKind; switch (r.getBytes(3)[0]) { case (byte) 'r': if ( r.getString(1).startsWith("pg_") ) { relKind = "SYSTEM TABLE"; } else { relKind = "TABLE"; } break; case (byte) 'i': relKind = "INDEX"; break; case (byte) 'S': relKind = "SEQUENCE"; break; case (byte) 'v': relKind = "VIEW"; break; default: relKind = null; } tuple[0] = null; // Catalog name tuple[1] = null; // Schema name tuple[2] = r.getBytes(1); // Table name tuple[3] = (relKind == null) ? null : relKind.getBytes(); // Table type tuple[4] = remarks; // Remarks v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); }
45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 29002, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 1953, 63, 5717, 1216, 6483, 202, 95, 202, 202, 759, 5004, 805, 460, 364, 1953, 202, 202, 430, 261, 2352, 422, 446, 13, 1082, 202, 2352, 273, 805, 1388, 2016, 31, 202, 202, 430, 261, 18033, 3234, 422, 446, 13, 1082, 202, 18033, 3234, 273, 2213, 14432, 202, 202, 759, 326, 652, 14215, 364, 326, 394, 10842, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 25, 15533, 202, 202, 6290, 18, 4669, 18, 13198, 436, 31, 202, 759, 10842, 364, 326, 3063, 843, 716, 732, 1608, 358, 741, 202, 202, 5018, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 202, 202, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 202, 202, 74, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 202, 202, 74, 63, 22, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 202, 202, 74, 63, 23, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 2399, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 202, 202, 74, 63, 24, 65, 273, 394, 2286, 12, 4071, 16, 315, 862, 12693, 55, 3113, 277, 58, 22483, 19105, 16, 3847, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 29002, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 1953, 63, 5717, 1216, 6483, 202, 95, 202, 202, 759, 5004, 805, 460, 364, 1953, 202, 202, 430, 261, 2352, 422, 446, 13, 1082, 202, 2352, 273, 805, 1388, 2016, 31, 202, 202, 430, 261, 18033, 3234, 422, 446, 13, 1082, 202, 18033, 3234, 273, 2213, 14432, 202, 202, 759, 326, 652, 14215, 364, 326, 394, 10842, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 25, 15533, 202, 202, 6290, 18, 4669, 18, 13198, 436, 31, 202, 759, 10842, 364, 326, 3063, 843, 716, 732, 1608, 358, 741, 202, 202, 5018, 331, 273, 394, 5589, 5621, 2 ]
synchronized (listenersKey) { for (int i = 0; i < listeners.length; i++) { IJobProgressManagerListener listener = listeners[i]; if (!isNonDisplayableJob(info.getJob(), listener.showsDebug())) {
synchronized (listenersKey) { for (int i = 0; i < listeners.length; i++) { IJobProgressManagerListener listener = listeners[i]; if (!isNonDisplayableJob(info.getJob(), listener.showsDebug())) {
public void removeJobInfo(JobInfo info) { Job job = info.getJob(); jobs.remove(job); synchronized (monitorKey) { if (runnableMonitors.containsKey(job)) { runnableMonitors.remove(job); } } synchronized (listenersKey) { for (int i = 0; i < listeners.length; i++) { IJobProgressManagerListener listener = listeners[i]; if (!isNonDisplayableJob(info.getJob(), listener.showsDebug())) { listener.removeJob(info); } } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/82e45bfb168fa5c37a8ced4976d2cc8fef6ce0f2/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 2278, 966, 12, 2278, 966, 1123, 13, 288, 202, 202, 2278, 1719, 273, 1123, 18, 588, 2278, 5621, 202, 202, 10088, 18, 4479, 12, 4688, 1769, 202, 202, 22043, 261, 10259, 653, 13, 288, 1082, 202, 430, 261, 2681, 6914, 11415, 13704, 18, 12298, 653, 12, 4688, 3719, 288, 9506, 202, 2681, 6914, 11415, 13704, 18, 4479, 12, 4688, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 22043, 261, 16072, 653, 13, 288, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 4679, 18, 2469, 31, 277, 27245, 288, 9506, 202, 45, 2278, 5491, 1318, 2223, 2991, 273, 4679, 63, 77, 15533, 9506, 202, 430, 16051, 291, 3989, 4236, 429, 2278, 12, 1376, 18, 588, 2278, 9334, 2991, 18, 4500, 87, 2829, 1435, 3719, 288, 6862, 202, 12757, 18, 4479, 2278, 12, 1376, 1769, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 2278, 966, 12, 2278, 966, 1123, 13, 288, 202, 202, 2278, 1719, 273, 1123, 18, 588, 2278, 5621, 202, 202, 10088, 18, 4479, 12, 4688, 1769, 202, 202, 22043, 261, 10259, 653, 13, 288, 1082, 202, 430, 261, 2681, 6914, 11415, 13704, 18, 12298, 653, 12, 4688, 3719, 288, 9506, 202, 2681, 6914, 11415, 13704, 18, 4479, 12, 4688, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 22043, 261, 16072, 653, 13, 288, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 4679, 18, 2469, 31, 277, 27245, 288, 9506, 202, 45, 2278, 5491, 1318, 2223, 2991, 273, 4679, 63, 77, 15533, 9506, 202, 430, 16051, 291, 3989, 4236, 429, 2278, 2 ]
buf.insert(0, ((PDOMBinding)parent).getName() + "::");
buf.insert(0, ((PDOMBinding)parent).getName() + "::");
public static String getBindingQualifiedName(PDOMBinding pdomBinding) throws CoreException { StringBuffer buf = new StringBuffer(pdomBinding.getName()); PDOMNode parent = pdomBinding.getParentNode(); while (parent != null) { if (parent instanceof PDOMBinding) { buf.insert(0, ((PDOMBinding)parent).getName() + "::"); } parent = parent.getParentNode(); } return buf.toString(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/3acc9f3c5de5259ed001a803cbe9e7d8a74c172d/NewClassWizardUtil.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassWizardUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 29471, 12345, 12, 52, 8168, 5250, 4863, 362, 5250, 13, 1216, 30015, 202, 95, 202, 202, 780, 1892, 1681, 273, 394, 6674, 12, 84, 9859, 5250, 18, 17994, 10663, 1082, 202, 52, 8168, 907, 982, 273, 4863, 362, 5250, 18, 588, 3054, 907, 5621, 202, 202, 17523, 261, 2938, 480, 446, 13, 202, 202, 95, 1082, 202, 430, 261, 2938, 1276, 453, 8168, 5250, 13, 1082, 202, 95, 6862, 6862, 1082, 202, 4385, 18, 6387, 12, 20, 16, 14015, 52, 8168, 5250, 13, 2938, 2934, 17994, 1435, 397, 31120, 1769, 1082, 202, 97, 1082, 202, 2938, 273, 982, 18, 588, 3054, 907, 5621, 202, 202, 97, 202, 202, 2463, 1681, 18, 10492, 5621, 202, 97, 377, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 29471, 12345, 12, 52, 8168, 5250, 4863, 362, 5250, 13, 1216, 30015, 202, 95, 202, 202, 780, 1892, 1681, 273, 394, 6674, 12, 84, 9859, 5250, 18, 17994, 10663, 1082, 202, 52, 8168, 907, 982, 273, 4863, 362, 5250, 18, 588, 3054, 907, 5621, 202, 202, 17523, 261, 2938, 480, 446, 13, 202, 202, 95, 1082, 202, 430, 261, 2938, 1276, 453, 8168, 5250, 13, 1082, 202, 95, 6862, 6862, 1082, 202, 4385, 18, 6387, 12, 20, 16, 14015, 52, 8168, 5250, 13, 2938, 2934, 17994, 1435, 397, 31120, 1769, 1082, 202, 97, 1082, 202, 2938, 273, 982, 18, 588, 3054, 907, 5621, 202, 202, 97, 202, 202, 2463, 1681, 18, 10492, 5621, 202, 2 ]
public int size() {
public int size() {
public int size() { return itsVariables.size(); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/13c17e9f4326e4e47b5e45bd238e7e6dc3c09063/VariableTable.java/buggy/js/rhino/src/org/mozilla/javascript/VariableTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 963, 1435, 565, 288, 3639, 327, 2097, 6158, 18, 1467, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 963, 1435, 565, 288, 3639, 327, 2097, 6158, 18, 1467, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Query query = session.createQuery(queryString); return query.uniqueResult(); }
Query query = session.createQuery(queryString); for (int i = 0; i < queryArgs.length; i++) { query.setParameter(i, queryArgs[i]); } return query.uniqueResult(); }
public Object doInHibernate(Session session) throws HibernateException, SQLException { Query query = session.createQuery(queryString); return query.uniqueResult(); }
51576 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51576/4fccc86f70758d328337f970eedd7c2fbcfc0fdc/GetPersistentMethod.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/GetPersistentMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 1033, 741, 382, 44, 24360, 12, 2157, 1339, 13, 1216, 670, 24360, 503, 16, 6483, 288, 6862, 202, 1138, 843, 273, 1339, 18, 2640, 1138, 12, 2271, 780, 1769, 6862, 202, 2463, 843, 18, 6270, 1253, 5621, 6862, 6862, 202, 97, 9506, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 1033, 741, 382, 44, 24360, 12, 2157, 1339, 13, 1216, 670, 24360, 503, 16, 6483, 288, 6862, 202, 1138, 843, 273, 1339, 18, 2640, 1138, 12, 2271, 780, 1769, 6862, 202, 2463, 843, 18, 6270, 1253, 5621, 6862, 6862, 202, 97, 9506, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Set rows = row_texts.keySet(); do { Random random = new Random(); the_row = random.nextInt(max_row); } while(!rows.contains(new Integer(the_row))); theText = (String)row_texts.get(new Integer(the_row)); } if( type.equals("pic")) { out.println( "<img src=\" " + theText + "\"> "); } else if(type.equals("quot")) { out.println( theText ); out.println("<input type=\"hidden\" name=\"quotrow\" value=\"" + the_row + "\">"); out.println("<input type=\"hidden\" name=\"quot\" value=\"" + theText + "\">"); } else if(type.equals("ques")) { out.println( theText ); out.println("<input type=\"hidden\" name=\"quesrow\" value=\"" + the_row + "\">"); out.println("<input type=\"hidden\" name=\"question\" value=\"" + theText + "\">"); } else { out.println( theText );
out.write( theText );
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; //get todays date Date theDate = new Date(); GregorianCalendar cal = new GregorianCalendar(); int year = cal.get(Calendar.YEAR) - 2000; int month = cal.get(Calendar.MONTH); int day = cal.get(Calendar.DAY_OF_MONTH); int date = year*10000+(month+1)*100+day; //get parameters String type = req.getParameter("type"); inFile = req.getParameter("file"); //gets the filecontent String resFile = IMCServiceRMI.getFortune(imcServer,inFile); //collect the correct questions/citat/pictures HashMap row_texts = new HashMap(50); int row = 0; res.setContentType("text/html"); PrintWriter out = res.getWriter(); //out.println( "resFile = " + resFile ); //the dates int bIndex = 0; int eIndex = 0; while ( resFile.indexOf((int)'#',bIndex) != -1) { eIndex = resFile.indexOf((int)'#',bIndex); int date1 = Integer.parseInt(resFile.substring(bIndex,eIndex)); bIndex = eIndex + 1; eIndex = resFile.indexOf((int)'#',bIndex); int date2 = Integer.parseInt(resFile.substring(bIndex,eIndex)); bIndex = eIndex + 1; eIndex = resFile.indexOf((int)'#',bIndex); if ( date1 <= date && date2 >= date) { row_texts.put(new Integer(row),resFile.substring(bIndex,eIndex)); } bIndex = eIndex + 3; row++; } int max_row = row; //out.println( "maxRow = " + max_row + " <br>"); Collection texts = row_texts.values(); int nr = texts.size(); //get the text and row to return String theText; int the_row; if (!(nr>0)) { theText = "Ingen text kan visas" ; the_row = -1; } else { //get one randomised item Set rows = row_texts.keySet(); do { Random random = new Random(); the_row = random.nextInt(max_row); } while(!rows.contains(new Integer(the_row))); theText = (String)row_texts.get(new Integer(the_row)); } //out.println( "the_row = " + the_row + " <br>" ); //out.println( "theText = " + theText + " <br> <br>"); if( type.equals("pic")) { out.println( "<img src=\" " + theText + "\"> "); } else if(type.equals("quot")) { out.println( theText ); //raden i filen out.println("<input type=\"hidden\" name=\"quotrow\" value=\"" + the_row + "\">"); out.println("<input type=\"hidden\" name=\"quot\" value=\"" + theText + "\">"); } else if(type.equals("ques")) { out.println( theText ); out.println("<input type=\"hidden\" name=\"quesrow\" value=\"" + the_row + "\">"); out.println("<input type=\"hidden\" name=\"question\" value=\"" + theText + "\">"); } else { out.println( theText ); } return ; } // End doGet
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/cd29304b3d5e074ab6bcd5b7551ecf16e3a1a5d1/QEngine.java/clean/servlets/QEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 225, 202, 95, 9506, 202, 780, 1479, 273, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 202, 780, 709, 71, 2081, 273, 13134, 18, 588, 3748, 23218, 2932, 5577, 12330, 3113, 2564, 13, 274, 9506, 202, 759, 588, 358, 9810, 1509, 202, 202, 1626, 326, 1626, 273, 394, 2167, 5621, 6862, 202, 31560, 7335, 1443, 273, 394, 28033, 5621, 9506, 202, 474, 3286, 273, 1443, 18, 588, 12, 7335, 18, 15137, 13, 300, 16291, 31, 202, 202, 474, 3138, 273, 1443, 18, 588, 12, 7335, 18, 13942, 1769, 202, 202, 474, 2548, 273, 1443, 18, 588, 12, 7335, 18, 10339, 67, 3932, 67, 13942, 1769, 9506, 202, 474, 1509, 273, 3286, 14, 23899, 15, 12, 7496, 15, 21, 17653, 6625, 15, 2881, 31, 6862, 202, 759, 588, 1472, 202, 202, 780, 618, 273, 1111, 18, 588, 1662, 2932, 723, 8863, 202, 202, 267, 812, 273, 1111, 18, 588, 1662, 2932, 768, 8863, 9506, 202, 759, 14665, 326, 585, 1745, 3196, 202, 780, 400, 812, 273, 6246, 39, 1179, 54, 7492, 18, 588, 42, 499, 7556, 12, 381, 71, 2081, 16, 267, 812, 1769, 9506, 202, 759, 14676, 326, 3434, 13494, 19, 71, 305, 270, 19, 84, 28636, 202, 202, 8658, 1027, 67, 26256, 273, 394, 4317, 12, 3361, 1769, 9506, 202, 474, 1027, 273, 374, 31, 6862, 202, 455, 18, 542, 8046, 2932, 955, 19, 2620, 8863, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 225, 202, 95, 9506, 202, 780, 1479, 273, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 202, 780, 709, 71, 2081, 273, 13134, 18, 588, 3748, 23218, 2932, 5577, 12330, 3113, 2564, 13, 274, 9506, 202, 759, 588, 358, 9810, 1509, 202, 202, 1626, 326, 1626, 273, 394, 2167, 5621, 6862, 202, 31560, 7335, 1443, 273, 394, 28033, 5621, 9506, 202, 474, 3286, 273, 1443, 18, 588, 12, 7335, 18, 15137, 13, 300, 16291, 31, 202, 202, 474, 3138, 273, 1443, 18, 588, 12, 7335, 18, 13942, 1769, 202, 202, 474, 2548, 273, 1443, 18, 588, 12, 7335, 18, 10339, 2 ]
Class[] args = method.getParameterTypes();
private void generateMethod(String fieldName, Method method, Method invokeSuper, Method afterReturn) { Class[] args = method.getParameterTypes(); Class returnType = method.getReturnType(); boolean returnsValue = !returnType.equals(Void.TYPE); int mod = method.getModifiers(); boolean isAbstract = Modifier.isAbstract(mod); begin_method(method); int outer_eh = begin_handler(); create_arg_array(); store_local("args"); aconst_null(); store_local("resultFromSuper"); push(0); local_type("superInvoked", boolean.class); store_local("superInvoked"); aconst_null(); store_local("error"); if (delegating || !isAbstract) { load_this(); getfield(INTERCEPTOR_FIELD); load_this(); getstatic(fieldName); load_local("args"); invoke(invokeSuper); ifeq("endif"); push(1); store_local("superInvoked"); int eh = begin_handler(); load_this(); if (delegating) { getfield(DELEGATE_FIELD); load_args(); invoke(method); } else { load_args(); super_invoke(); } if (returnsValue) { box(returnType); store_local("resultFromSuper"); } goTo("endif"); end_handler(); handle_exception(eh, Throwable.class); store_local("error"); nop("endif"); } load_this(); getfield(INTERCEPTOR_FIELD); load_this(); getstatic(fieldName); load_local("args"); load_local("superInvoked"); load_local("resultFromSuper"); load_local("error"); invoke(afterReturn); /* generates: if (result == null) { return 0; } else { return ((Number)result).intValue(); } */ return_zero_if_null(); end_handler(); generateHandleUndeclared(method, outer_eh); end_method(); }
1154 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1154/3123214982f515c3fd4771e8b99480517bff054b/EnhancerGenerator.java/buggy/src/proxy/net/sf/cglib/EnhancerGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1305, 12, 780, 4289, 16, 2985, 707, 16, 2985, 4356, 8051, 16, 2985, 1839, 990, 13, 288, 9079, 1659, 9424, 273, 707, 18, 588, 9102, 5621, 3639, 1250, 1135, 620, 273, 401, 2463, 559, 18, 14963, 12, 19038, 18, 2399, 1769, 3639, 509, 681, 273, 707, 18, 588, 11948, 5621, 3639, 1250, 24996, 273, 12832, 18, 291, 7469, 12, 1711, 1769, 3639, 2376, 67, 2039, 12, 2039, 1769, 3639, 509, 6390, 67, 73, 76, 273, 2376, 67, 4176, 5621, 3639, 752, 67, 3175, 67, 1126, 5621, 3639, 1707, 67, 3729, 2932, 1968, 8863, 3639, 279, 10248, 67, 2011, 5621, 3639, 1707, 67, 3729, 2932, 2088, 1265, 8051, 8863, 3639, 1817, 12, 20, 1769, 3639, 1191, 67, 723, 2932, 9565, 26215, 3113, 1250, 18, 1106, 1769, 3639, 1707, 67, 3729, 2932, 9565, 26215, 8863, 3639, 279, 10248, 67, 2011, 5621, 3639, 1707, 67, 3729, 2932, 1636, 8863, 7734, 309, 261, 3771, 1332, 1776, 747, 401, 291, 7469, 13, 288, 5411, 1262, 67, 2211, 5621, 5411, 336, 1518, 12, 9125, 14514, 916, 67, 6776, 1769, 5411, 1262, 67, 2211, 5621, 5411, 336, 3845, 12, 16163, 1769, 5411, 1262, 67, 3729, 2932, 1968, 8863, 5411, 4356, 12, 14407, 8051, 1769, 5411, 309, 11253, 2932, 409, 430, 8863, 5411, 1817, 12, 21, 1769, 5411, 1707, 67, 3729, 2932, 9565, 26215, 8863, 5411, 509, 20124, 273, 2376, 67, 4176, 5621, 5411, 1262, 67, 2211, 5621, 5411, 309, 261, 3771, 1332, 1776, 13, 288, 7734, 336, 1518, 12, 1639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1305, 12, 780, 4289, 16, 2985, 707, 16, 2985, 4356, 8051, 16, 2985, 1839, 990, 13, 288, 9079, 1659, 9424, 273, 707, 18, 588, 9102, 5621, 3639, 1250, 1135, 620, 273, 401, 2463, 559, 18, 14963, 12, 19038, 18, 2399, 1769, 3639, 509, 681, 273, 707, 18, 588, 11948, 5621, 3639, 1250, 24996, 273, 12832, 18, 291, 7469, 12, 1711, 1769, 3639, 2376, 67, 2039, 12, 2039, 1769, 3639, 509, 6390, 67, 73, 76, 273, 2376, 67, 4176, 5621, 3639, 752, 67, 3175, 67, 1126, 5621, 3639, 1707, 67, 3729, 2932, 1968, 8863, 3639, 279, 10248, 67, 2011, 5621, 3639, 1707, 67, 3729, 2932, 2088, 1265, 8051, 8863, 3639, 1817, 12, 20, 1769, 3639, 1191, 2 ]
throws SQLException, IOException, AuthorizeException
throws SQLException
void delete() throws SQLException, IOException, AuthorizeException { // changed to a check on remove // Check authorisation //AuthorizeManager.authorizeAction(bContext, this, Constants.DELETE); log.info(LogManager.getHeader(bContext, "delete_bitstream", "bitstream_id=" + getID())); // Remove from cache bContext.removeCached(this, getID()); // Remove policies AuthorizeManager.removeAllPolicies(bContext, this); // Remove bitstream itself BitstreamStorageManager.delete(bContext, bRow.getIntColumn("bitstream_id")); }
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/b670e5e2a3946a0fd719a9d3f1a67ca275e27fd0/Bitstream.java/clean/dspace/src/org/dspace/content/Bitstream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1430, 1435, 3639, 1216, 6483, 565, 288, 3639, 368, 3550, 358, 279, 866, 603, 1206, 3639, 368, 2073, 2869, 10742, 3639, 368, 18987, 1318, 18, 22488, 1803, 12, 70, 1042, 16, 333, 16, 5245, 18, 6460, 1769, 3639, 613, 18, 1376, 12, 1343, 1318, 18, 588, 1864, 12, 70, 1042, 16, 5411, 315, 3733, 67, 3682, 3256, 3113, 5411, 315, 3682, 3256, 67, 350, 1546, 397, 14744, 1435, 10019, 3639, 368, 3581, 628, 1247, 3639, 324, 1042, 18, 4479, 9839, 12, 2211, 16, 14744, 10663, 3639, 368, 3581, 8923, 3639, 23859, 1318, 18, 4479, 1595, 8825, 12, 70, 1042, 16, 333, 1769, 3639, 368, 3581, 28640, 6174, 3639, 6539, 3256, 3245, 1318, 18, 3733, 12, 70, 1042, 16, 5411, 324, 1999, 18, 588, 1702, 1494, 2932, 3682, 3256, 67, 350, 7923, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1430, 1435, 3639, 1216, 6483, 565, 288, 3639, 368, 3550, 358, 279, 866, 603, 1206, 3639, 368, 2073, 2869, 10742, 3639, 368, 18987, 1318, 18, 22488, 1803, 12, 70, 1042, 16, 333, 16, 5245, 18, 6460, 1769, 3639, 613, 18, 1376, 12, 1343, 1318, 18, 588, 1864, 12, 70, 1042, 16, 5411, 315, 3733, 67, 3682, 3256, 3113, 5411, 315, 3682, 3256, 67, 350, 1546, 397, 14744, 1435, 10019, 3639, 368, 3581, 628, 1247, 3639, 324, 1042, 18, 4479, 9839, 12, 2211, 16, 14744, 10663, 3639, 368, 3581, 8923, 3639, 23859, 1318, 18, 4479, 1595, 8825, 12, 70, 1042, 16, 333, 1769, 3639, 368, 3581, 28640, 6174, 3639, 6539, 3256, 3245, 1318, 18, 3733, 12, 70, 1042, 2 ]
Mock mockProjectService = new Mock(ProjectService.class); ((JiraSoapServiceImpl)service).setProjectService((ProjectService) mockProjectService.proxy());
public void testDelegatedProjectService() throws RemoteException, RemotePermissionException, RemoteAuthenticationException { mockTokenM.expects(atLeastOnce()).method("retrieveUser"); Mock mockProjectService = new Mock(ProjectService.class); ((JiraSoapServiceImpl)service).setProjectService((ProjectService) mockProjectService.proxy()); mockProjectService.expects(once()).method("getProjects"); service.getProjects("token"); mockProjectService.expects(once()).method("getComponents"); service.getComponents("token", "JRA"); mockProjectService.expects(once()).method("getVersions"); service.getVersions("token", "JRA"); }
21772 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/21772/607bcdf5af460e7c19d70bde73c612e1cc8dfd52/TestJiraSoapServiceImpl.java/clean/src/test/java/com/atlassian/jira/rpc/soap/TestJiraSoapServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 15608, 690, 4109, 1179, 1435, 1216, 18361, 16, 6304, 5041, 503, 16, 6304, 6492, 503, 565, 288, 3639, 5416, 1345, 49, 18, 12339, 87, 12, 270, 17319, 12212, 1435, 2934, 2039, 2932, 17466, 1299, 8863, 3639, 7867, 5416, 4109, 1179, 273, 394, 7867, 12, 4109, 1179, 18, 1106, 1769, 3639, 14015, 46, 11547, 20601, 1179, 2828, 13, 3278, 2934, 542, 4109, 1179, 12443, 4109, 1179, 13, 5416, 4109, 1179, 18, 5656, 10663, 3639, 5416, 4109, 1179, 18, 12339, 87, 12, 8243, 1435, 2934, 2039, 2932, 588, 15298, 8863, 3639, 1156, 18, 588, 15298, 2932, 2316, 8863, 3639, 5416, 4109, 1179, 18, 12339, 87, 12, 8243, 1435, 2934, 2039, 2932, 588, 7171, 8863, 3639, 1156, 18, 588, 7171, 2932, 2316, 3113, 315, 46, 2849, 8863, 3639, 5416, 4109, 1179, 18, 12339, 87, 12, 8243, 1435, 2934, 2039, 2932, 588, 5940, 8863, 3639, 1156, 18, 588, 5940, 2932, 2316, 3113, 315, 46, 2849, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 15608, 690, 4109, 1179, 1435, 1216, 18361, 16, 6304, 5041, 503, 16, 6304, 6492, 503, 565, 288, 3639, 5416, 1345, 49, 18, 12339, 87, 12, 270, 17319, 12212, 1435, 2934, 2039, 2932, 17466, 1299, 8863, 3639, 7867, 5416, 4109, 1179, 273, 394, 7867, 12, 4109, 1179, 18, 1106, 1769, 3639, 14015, 46, 11547, 20601, 1179, 2828, 13, 3278, 2934, 542, 4109, 1179, 12443, 4109, 1179, 13, 5416, 4109, 1179, 18, 5656, 10663, 3639, 5416, 4109, 1179, 18, 12339, 87, 12, 8243, 1435, 2934, 2039, 2932, 588, 15298, 8863, 3639, 1156, 18, 588, 15298, 2932, 2316, 8863, 3639, 5416, 4109, 1179, 18, 12339, 87, 12, 8243, 1435, 2934, 2039, 2932, 588, 7171, 8863, 3639, 1156, 18, 2 ]
AuthToken authToken = new AuthToken(context.authAccount); context.authTokenCookie = authToken.getEncoded();
context.authTokenCookie = new AuthToken(context.authAccount).getEncoded();
private void getAccount(Context context) throws IOException, ServletException, UserServletException { try { // check cookie first if (context.cookieAuthAllowed()) { context.authAccount = cookieAuthRequest(context.req, context.resp, true); if (context.authAccount != null) return; } // fallback to basic auth if (context.basicAuthAllowed()) { context.authAccount = basicAuthRequest(context.req, context.resp); if (context.authAccount != null) { context.basicAuthHappened = true; // send cookie back if need be. if (!context.noSetCookie()) { try { AuthToken authToken = new AuthToken(context.authAccount); context.authTokenCookie = authToken.getEncoded(); context.resp.addCookie(new Cookie(COOKIE_ZM_AUTH_TOKEN, context.authTokenCookie)); } catch (AuthTokenException e) { } } } // always return return; } // when we support unauth'd/public things, change this to create the // special "public" account throw new UserServletException(HttpServletResponse.SC_UNAUTHORIZED, "need to authenticate"); } catch (ServiceException e) { throw new ServletException(e); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/4a7cfa65157112bd679b53a1cad54251dea8832c/UserServlet.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/UserServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 23393, 12, 1042, 819, 13, 1216, 1860, 16, 5411, 16517, 16, 2177, 4745, 503, 288, 3639, 775, 288, 5411, 368, 866, 3878, 1122, 5411, 309, 261, 2472, 18, 8417, 1730, 5042, 10756, 288, 7734, 819, 18, 1944, 3032, 273, 3878, 1730, 691, 12, 2472, 18, 3658, 16, 819, 18, 12243, 16, 638, 1769, 7734, 309, 261, 2472, 18, 1944, 3032, 480, 446, 13, 10792, 327, 31, 5411, 289, 5411, 368, 5922, 358, 5337, 1357, 5411, 309, 261, 2472, 18, 13240, 1730, 5042, 10756, 288, 7734, 819, 18, 1944, 3032, 273, 5337, 1730, 691, 12, 2472, 18, 3658, 16, 819, 18, 12243, 1769, 7734, 309, 261, 2472, 18, 1944, 3032, 480, 446, 13, 288, 10792, 819, 18, 13240, 1730, 44, 438, 1907, 329, 273, 638, 31, 10792, 368, 1366, 3878, 1473, 309, 1608, 506, 18, 5397, 309, 16051, 2472, 18, 2135, 694, 6151, 10756, 288, 13491, 775, 288, 18701, 3123, 1345, 24050, 273, 394, 3123, 1345, 12, 2472, 18, 1944, 3032, 1769, 18701, 819, 18, 1944, 1345, 6151, 273, 24050, 18, 588, 10397, 5621, 18701, 819, 18, 12243, 18, 1289, 6151, 12, 2704, 10201, 12, 13584, 67, 62, 49, 67, 7131, 67, 8412, 16, 819, 18, 1944, 1345, 6151, 10019, 13491, 289, 1044, 261, 28967, 503, 425, 13, 288, 13491, 289, 10792, 289, 7734, 289, 7734, 368, 3712, 327, 7734, 327, 31, 5411, 289, 5411, 368, 1347, 732, 2865, 640, 1944, 14271, 19, 482, 9198, 16, 2549, 333, 358, 752, 326, 5411, 368, 4582, 315, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 23393, 12, 1042, 819, 13, 1216, 1860, 16, 5411, 16517, 16, 2177, 4745, 503, 288, 3639, 775, 288, 5411, 368, 866, 3878, 1122, 5411, 309, 261, 2472, 18, 8417, 1730, 5042, 10756, 288, 7734, 819, 18, 1944, 3032, 273, 3878, 1730, 691, 12, 2472, 18, 3658, 16, 819, 18, 12243, 16, 638, 1769, 7734, 309, 261, 2472, 18, 1944, 3032, 480, 446, 13, 10792, 327, 31, 5411, 289, 5411, 368, 5922, 358, 5337, 1357, 5411, 309, 261, 2472, 18, 13240, 1730, 5042, 10756, 288, 7734, 819, 18, 1944, 3032, 273, 5337, 1730, 691, 12, 2472, 18, 3658, 16, 819, 18, 12243, 1769, 7734, 309, 261, 2472, 18, 1944, 3032, 480, 446, 13, 288, 10792, 819, 18, 2 ]
_rtRuns[0] = new RichTextRun(this,0,s.length(), pCol, cCol);
_rtRuns[0] = new RichTextRun(this,0,s.length(), pCol, cCol, false, false);
public synchronized void setText(String s) { // Save the new text to the atoms storeText(s); // Finally, zap and re-do the RichTextRuns for(int i=0; i<_rtRuns.length; i++) { _rtRuns[i] = null; } _rtRuns = new RichTextRun[1]; // Now handle record stylings: // If there isn't styling // no change, stays with no styling // If there is styling: // everthing gets the same style that the first block has if(_styleAtom != null) { LinkedList pStyles = _styleAtom.getParagraphStyles(); while(pStyles.size() > 1) { pStyles.removeLast(); } LinkedList cStyles = _styleAtom.getCharacterStyles(); while(cStyles.size() > 1) { cStyles.removeLast(); } // Note - TextPropCollection's idea of the text length must // be one larger than it actually is! // (This indicates that new text added to the end should // get the same styling as the current text) TextPropCollection pCol = (TextPropCollection)pStyles.getFirst(); TextPropCollection cCol = (TextPropCollection)cStyles.getFirst(); pCol.updateTextSize(s.length()+1); cCol.updateTextSize(s.length()+1); // Recreate rich text run with first styling _rtRuns[0] = new RichTextRun(this,0,s.length(), pCol, cCol); } else { // Recreate rich text run with no styling _rtRuns[0] = new RichTextRun(this,0,s.length()); } }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/c0d50d0c841f4bee76072c5959074fb784e1c74e/TextRun.java/clean/src/scratchpad/src/org/apache/poi/hslf/model/TextRun.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 7883, 12, 780, 272, 13, 288, 202, 202, 759, 7074, 326, 394, 977, 358, 326, 9006, 202, 202, 2233, 1528, 12, 87, 1769, 9506, 202, 759, 15768, 16, 11419, 471, 283, 17, 2896, 326, 534, 1354, 1528, 9361, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 67, 3797, 9361, 18, 2469, 31, 277, 27245, 288, 389, 3797, 9361, 63, 77, 65, 273, 446, 31, 289, 202, 202, 67, 3797, 9361, 273, 394, 534, 1354, 1528, 1997, 63, 21, 15533, 202, 202, 759, 4494, 1640, 1409, 16253, 11603, 30, 202, 202, 759, 971, 1915, 5177, 1404, 16253, 2456, 202, 202, 759, 225, 1158, 2549, 16, 384, 8271, 598, 1158, 16253, 2456, 202, 202, 759, 971, 1915, 353, 16253, 2456, 30, 202, 202, 759, 225, 14103, 4274, 5571, 326, 1967, 2154, 716, 326, 1122, 1203, 711, 202, 202, 430, 24899, 4060, 3641, 480, 446, 13, 288, 1082, 202, 13174, 682, 293, 9725, 273, 389, 4060, 3641, 18, 588, 17719, 9725, 5621, 1082, 202, 17523, 12, 84, 9725, 18, 1467, 1435, 405, 404, 13, 288, 293, 9725, 18, 4479, 3024, 5621, 289, 25083, 202, 13174, 682, 276, 9725, 273, 389, 4060, 3641, 18, 588, 7069, 9725, 5621, 1082, 202, 17523, 12, 71, 9725, 18, 1467, 1435, 405, 404, 13, 288, 276, 9725, 18, 4479, 3024, 5621, 289, 25083, 202, 759, 3609, 300, 3867, 4658, 2532, 1807, 21463, 434, 326, 977, 769, 1297, 1082, 202, 759, 540, 506, 1245, 10974, 2353, 518, 6013, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 7883, 12, 780, 272, 13, 288, 202, 202, 759, 7074, 326, 394, 977, 358, 326, 9006, 202, 202, 2233, 1528, 12, 87, 1769, 9506, 202, 759, 15768, 16, 11419, 471, 283, 17, 2896, 326, 534, 1354, 1528, 9361, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 67, 3797, 9361, 18, 2469, 31, 277, 27245, 288, 389, 3797, 9361, 63, 77, 65, 273, 446, 31, 289, 202, 202, 67, 3797, 9361, 273, 394, 534, 1354, 1528, 1997, 63, 21, 15533, 202, 202, 759, 4494, 1640, 1409, 16253, 11603, 30, 202, 202, 759, 971, 1915, 5177, 1404, 16253, 2456, 202, 202, 759, 225, 1158, 2549, 16, 384, 8271, 598, 1158, 16253, 2456, 202, 2 ]
handlers.append(" disabled=\"true\"");
handlers.append(" disabled=\"disabled\"");
private void prepareFocusEvents(StringBuffer handlers) { if (onblur != null) { handlers.append(" onblur=\""); handlers.append(onblur); handlers.append("\""); } if (onfocus != null) { handlers.append(" onfocus=\""); handlers.append(onfocus); handlers.append("\""); } if (disabled) { handlers.append(" disabled=\"true\""); } if (readonly) { handlers.append(" readonly=\"true\""); } }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/a7f8f9b496877b9652c91fba0d452f3c56b07358/BaseHandlerTag.java/clean/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2911, 9233, 3783, 12, 780, 1892, 4919, 13, 288, 3639, 309, 261, 265, 27065, 480, 446, 13, 288, 5411, 4919, 18, 6923, 2932, 603, 27065, 5189, 8863, 5411, 4919, 18, 6923, 12, 265, 27065, 1769, 5411, 4919, 18, 6923, 2932, 8530, 1769, 3639, 289, 3639, 309, 261, 265, 13923, 480, 446, 13, 288, 5411, 4919, 18, 6923, 2932, 603, 13923, 5189, 8863, 5411, 4919, 18, 6923, 12, 265, 13923, 1769, 5411, 4919, 18, 6923, 2932, 8530, 1769, 3639, 289, 3639, 309, 261, 9278, 13, 288, 5411, 4919, 18, 6923, 2932, 5673, 5189, 9278, 8530, 1769, 3639, 289, 3639, 309, 261, 16365, 13, 288, 5411, 4919, 18, 6923, 2932, 17102, 5189, 3767, 8530, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2911, 9233, 3783, 12, 780, 1892, 4919, 13, 288, 3639, 309, 261, 265, 27065, 480, 446, 13, 288, 5411, 4919, 18, 6923, 2932, 603, 27065, 5189, 8863, 5411, 4919, 18, 6923, 12, 265, 27065, 1769, 5411, 4919, 18, 6923, 2932, 8530, 1769, 3639, 289, 3639, 309, 261, 265, 13923, 480, 446, 13, 288, 5411, 4919, 18, 6923, 2932, 603, 13923, 5189, 8863, 5411, 4919, 18, 6923, 12, 265, 13923, 1769, 5411, 4919, 18, 6923, 2932, 8530, 1769, 3639, 289, 3639, 309, 261, 9278, 13, 288, 5411, 4919, 18, 6923, 2932, 5673, 5189, 9278, 8530, 1769, 3639, 289, 3639, 309, 261, 16365, 13, 288, 5411, 4919, 18, 6923, 2932, 17102, 5189, 3767, 8530, 1769, 3639, 289, 565, 2 ]
cmbBlockColor = new FillChooserComposite( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY, getChart( ).getPlot( ).getBackground( ), true, true );
cmbBlockColor = new FillChooserComposite( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY, getContext( ), getChart( ).getPlot( ) .getBackground( ), true, true );
public void getComponent( Composite parent ) { cmpContent = new Composite( parent, SWT.NONE ); { GridLayout glContent = new GridLayout( 2, false ); cmpContent.setLayout( glContent ); GridData gd = new GridData( GridData.FILL_BOTH ); cmpContent.setLayoutData( gd ); } Composite cmpBasic = new Composite( cmpContent, SWT.NONE ); { cmpBasic.setLayout( new GridLayout( 2, false ) ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); cmpBasic.setLayoutData( gd ); } Label lblIncludingAxes = new Label( cmpBasic, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalSpan = 2; lblIncludingAxes.setLayoutData( gd ); lblIncludingAxes.setFont( JFaceResources.getBannerFont( ) ); lblIncludingAxes.setText( Messages.getString( "ChartPlotSheetImpl.Label.AreaIncludingAxes" ) ); //$NON-NLS-1$ } new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "ChartPlotSheetImpl.Label.Background" ) ); //$NON-NLS-1$ cmbBlockColor = new FillChooserComposite( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY, getChart( ).getPlot( ).getBackground( ), true, true ); { GridData gd = new GridData( ); gd.widthHint = 200; cmbBlockColor.setLayoutData( gd ); cmbBlockColor.addListener( this ); } new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "ChartPlotSheetImpl.Label.Outline" ) ); //$NON-NLS-1$ btnIncludingVisible = new Button( cmpBasic, SWT.CHECK ); { btnIncludingVisible.setText( Messages.getString( "ChartPlotSheetImpl.Label.Visible" ) ); //$NON-NLS-1$ btnIncludingVisible.addSelectionListener( this ); btnIncludingVisible.setSelection( getChart( ).getPlot( ) .getOutline( ) .isVisible( ) ); } Label lblWithinAxes = new Label( cmpBasic, SWT.NONE ); { GridData gd = new GridData( ); gd.horizontalSpan = 2; lblWithinAxes.setLayoutData( gd ); lblWithinAxes.setFont( JFaceResources.getBannerFont( ) ); lblWithinAxes.setText( Messages.getString( "ChartPlotSheetImpl.Label.AreaWithinAxes" ) ); //$NON-NLS-1$ } new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "ChartPlotSheetImpl.Label.Background" ) ); //$NON-NLS-1$ cmbClientAreaColor = new FillChooserComposite( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY, getChart( ).getPlot( ) .getClientArea( ) .getBackground( ), true, true ); { GridData gridData = new GridData( ); gridData.widthHint = 200; cmbClientAreaColor.setLayoutData( gridData ); cmbClientAreaColor.addListener( this ); } new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "ChartPlotSheetImpl.Label.Outline" ) ); //$NON-NLS-1$ btnWithinVisible = new Button( cmpBasic, SWT.CHECK ); { btnWithinVisible.setText( Messages.getString( "ChartPlotSheetImpl.Label.Visible" ) ); //$NON-NLS-1$ btnWithinVisible.addSelectionListener( this ); btnWithinVisible.setSelection( getChart( ).getPlot( ) .getClientArea( ) .getOutline( ) .isVisible( ) ); } createButtonGroup( cmpContent ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/9d8486a7f0171324b11e48825eceffef31458cf9/ChartPlotSheetImpl.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/chart/ChartPlotSheetImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 9625, 1350, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 6313, 3744, 5118, 1350, 273, 394, 7145, 3744, 12, 576, 16, 629, 11272, 1082, 202, 9625, 1350, 18, 542, 3744, 12, 5118, 1350, 11272, 1082, 202, 6313, 751, 15551, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 38, 18307, 11272, 1082, 202, 9625, 1350, 18, 542, 3744, 751, 12, 15551, 11272, 202, 202, 97, 202, 202, 9400, 9411, 8252, 273, 394, 14728, 12, 9411, 1350, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 9625, 8252, 18, 542, 3744, 12, 394, 7145, 3744, 12, 576, 16, 629, 262, 11272, 1082, 202, 6313, 751, 15551, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 11272, 1082, 202, 9625, 8252, 18, 542, 3744, 751, 12, 15551, 11272, 202, 202, 97, 202, 202, 2224, 14284, 382, 18596, 26494, 273, 394, 5287, 12, 9411, 8252, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 6313, 751, 15551, 273, 394, 7145, 751, 12, 11272, 1082, 202, 19016, 18, 18396, 6952, 273, 576, 31, 1082, 202, 31885, 382, 18596, 26494, 18, 542, 3744, 751, 12, 15551, 11272, 1082, 202, 31885, 382, 18596, 26494, 18, 542, 5711, 12, 804, 11824, 3805, 18, 588, 27398, 5711, 12, 262, 11272, 1082, 202, 31885, 382, 18596, 26494, 18, 542, 1528, 12, 4838, 18, 588, 780, 12, 315, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10322, 12, 14728, 982, 262, 202, 95, 202, 202, 9625, 1350, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 6313, 3744, 5118, 1350, 273, 394, 7145, 3744, 12, 576, 16, 629, 11272, 1082, 202, 9625, 1350, 18, 542, 3744, 12, 5118, 1350, 11272, 1082, 202, 6313, 751, 15551, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 38, 18307, 11272, 1082, 202, 9625, 1350, 18, 542, 3744, 751, 12, 15551, 11272, 202, 202, 97, 202, 202, 9400, 9411, 8252, 273, 394, 14728, 12, 9411, 1350, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 9625, 8252, 18, 542, 3744, 12, 394, 7145, 3744, 12, 2 ]