rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
PluggableMapIO p = (PluggableMapIO) c.newInstance(); String clname = c.toString(); clname = clname.substring(clname.indexOf(' ')+1); String filter = p.getFilter(); String[] ext = filter.split(","); if (isReader(c)) { for(int i = 0; i < ext.length; i++) { readerFormats.put(ext[i], clname); } } else { for (int i = 0; i < ext.length; i++){ writerFormats.put(ext[i], clname); } } | try{ PluggableMapIO p = (PluggableMapIO) c.newInstance(); String clname = c.toString(); clname = clname.substring(clname.indexOf(' ')+1); String filter = p.getFilter(); String[] ext = filter.split(","); if (isReader(c)) { for(int i = 0; i < ext.length; i++) { readerFormats.put(ext[i], clname); } } else { for (int i = 0; i < ext.length; i++){ writerFormats.put(ext[i], clname); } } }catch (NoClassDefFoundError e) { System.err.println("**Failed loading plugin: "+e.toString()); } | private void _add(Class c) throws Exception{ PluggableMapIO p = (PluggableMapIO) c.newInstance(); String clname = c.toString(); clname = clname.substring(clname.indexOf(' ')+1); String filter = p.getFilter(); String[] ext = filter.split(","); if (isReader(c)) { for(int i = 0; i < ext.length; i++) { readerFormats.put(ext[i], clname); } } else { for (int i = 0; i < ext.length; i++){ writerFormats.put(ext[i], clname); } } } | 6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/9c4bad23e791ad6cab98a509bd7b7a2e6677b6f3/PluginClassLoader.java/clean/tiled/mapeditor/plugin/PluginClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
389,
1289,
12,
797,
276,
13,
1216,
1185,
95,
3639,
3008,
30382,
863,
4294,
293,
273,
261,
1749,
30382,
863,
4294,
13,
276,
18,
2704,
1442,
5621,
3639,
514,
927,
529,
273,
276,
18,
10492,
5621,
3639,
927,
529,
273,
927,
529,
18,
28023,
12,
830,
529,
18,
31806,
2668,
8624,
15,
21,
1769,
3639,
514,
1034,
273,
293,
18,
588,
1586,
5621,
3639,
514,
8526,
1110,
273,
1034,
18,
4939,
2932,
16,
8863,
3639,
309,
261,
291,
2514,
12,
71,
3719,
288,
5411,
364,
12,
474,
277,
273,
374,
31,
277,
411,
1110,
18,
2469,
31,
277,
27245,
288,
7734,
2949,
8976,
18,
458,
12,
408,
63,
77,
6487,
927,
529,
1769,
5411,
289,
3639,
289,
469,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1110,
18,
2469,
31,
277,
27245,
95,
7734,
2633,
8976,
18,
458,
12,
408,
63,
77,
6487,
927,
529,
1769,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
918,
389,
1289,
12,
797,
276,
13,
1216,
1185,
95,
3639,
3008,
30382,
863,
4294,
293,
273,
261,
1749,
30382,
863,
4294,
13,
276,
18,
2704,
1442,
5621,
3639,
514,
927,
529,
273,
276,
18,
10492,
5621,
3639,
927,
529,
273,
927,
529,
18,
28023,
12,
830,
529,
18,
31806,
2668,
8624,
15,
21,
1769,
3639,
514,
1034,
273,
293,
18,
588,
1586,
5621,
3639,
514,
8526,
1110,
273,
1034,
18,
4939,
2932,
16,
8863,
3639,
309,
261,
291,
2514,
12,
71,
3719,
288,
5411,
364,
12,
474,
277,
273,
374,
31,
277,
411,
1110,
18,
2469,
31,
277,
27245,
288,
7734,
2949,
8976,
18,
458,
12,
408,
63,
77,
6487,
927,
529,
1769,
5411,
289,
3639,
2
] |
iCodeTop = addByte(Token.THROW, iCodeTop); | iCodeTop = addToken(Token.THROW, iCodeTop); | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.itsFunctionType != FunctionNode.FUNCTION_STATEMENT) { // 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 iCodeTop = addByte(Token.CLOSURE, iCodeTop); iCodeTop = addIndex(fnIndex, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNext(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.VOID : case Token.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.WITH : ++itsWithDepth; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsWithDepth; break; case Token.COMMA : iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(Token.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.SHEQ, iCodeTop); itsStackDepth--; Node target = new Node(Token.TARGET); thisCase.addChildAfter(target, first); iCodeTop = addGoto(target, Token.IFEQ, iCodeTop); } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(Token.TARGET); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : { markTargetLabel(node, iCodeTop); break; } case Token.EQOP : case Token.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int op = node.getOperation(); if (version == Context.VERSION_1_2) { if (op == Token.EQ) { op = Token.SHEQ; } else if (op == Token.NE) { op = Token.SHNE; } } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; break; } case Token.NEW : case Token.CALL : { int childCount = 0; String functionName = null; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (functionName == null) { int childType = child.getType(); if (childType == Token.NAME || childType == Token.GETPROP) { functionName = lastAddString; } } child = child.getNext(); childCount++; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addByte(Icode_CALLSPECIAL, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(functionName, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == Token.NEW) { childCount -= 1; } else { childCount -= 2; } iCodeTop = addIndex(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; break; } case Token.NEWLOCAL : case Token.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); break; } case Token.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) { iCodeTop = addByte(Icode_RETSUB, iCodeTop); } else { iCodeTop = addByte(Token.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); break; } case Token.USETEMP : { iCodeTop = addByte(Token.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(falseJumpStart, iCodeTop); break; } case Token.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); break; } case Token.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_GETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_GETSCOPEPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } break; } case Token.DELPROP : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.ADD : case Token.SUB : case Token.MOD : case Token.DIV : case Token.MUL : case Token.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) { iCodeTop = addByte(Token.POS, iCodeTop); } else { badTree(node); } break; } case Token.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getOperation()) { case Token.VOID : iCodeTop = addByte(Token.POP, iCodeTop); iCodeTop = addByte(Token.UNDEFINED, iCodeTop); break; case Token.NOT : { int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.TRUE, iCodeTop); int beyondJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); iCodeTop = addByte(Token.FALSE, iCodeTop); resolveForwardGoto(beyondJumpStart, iCodeTop); break; } case Token.BITNOT : iCodeTop = addByte(Token.BITNOT, iCodeTop); break; case Token.TYPEOF : iCodeTop = addByte(Token.TYPEOF, iCodeTop); break; case Token.SUB : iCodeTop = addByte(Token.NEG, iCodeTop); break; case Token.ADD : iCodeTop = addByte(Token.POS, iCodeTop); break; default: badTree(node); break; } break; case Token.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_SETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_SETPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { iCodeTop = addByte(Token.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(Token.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_GETPARENT, iCodeTop); break; case Token.GETBASE : case Token.BINDNAME : case Token.NAME : case Token.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.INC : case Token.DEC : { int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(type == Token.INC ? Token.VARINC : Token.VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == Token.GETPROP) { iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); } else { iCodeTop = addByte(type == Token.INC ? Token.ELEMINC : Token.ELEMDEC, iCodeTop); } itsStackDepth--; break; } default : { iCodeTop = addByte(type == Token.INC ? Token.NAMEINC : Token.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(Token.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(Token.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.POP : case Token.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case Token.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case Token.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case Token.TRY : { Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd >= 0) Context.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Catch code has exception object on the stack itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } else if (child == finallyTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Adjust stack for finally code: on the top of the // stack it has either a PC value when called from // GOSUB or exception object to rethrow when called // from exception handler itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) { itsData.itsMaxStack = itsStackDepth; } } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } itsStackDepth = 0; // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth); break; } case Token.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.THROW, iCodeTop); itsStackDepth--; break; case Token.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(Icode_RETUNDEF, iCodeTop); } break; case Token.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.PRIMARY: iCodeTop = addByte(node.getOperation(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case Token.ENUMNEXT : { iCodeTop = addByte(Token.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.ENUMDONE : // could release the local here?? break; case Token.REGEXP : { int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(Token.REGEXP, iCodeTop); iCodeTop = addIndex(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } default : badTree(node); break; } return iCodeTop; } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/faf2a30c39fc508f2635416a94f9662c4ae41ad3/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
18,
7788,
294,
288,
7734,
509,
2295,
1016,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
7734,
4284,
907,
2295,
273,
2728,
1162,
5372,
18,
588,
2083,
907,
12,
4293,
1016,
1769,
7734,
309,
261,
4293,
18,
1282,
2083,
559,
480,
4284,
907,
18,
7788,
67,
28411,
13,
288,
10792,
368,
5098,
445,
8041,
578,
445,
2652,
10792,
368,
6317,
4260,
7213,
981,
4979,
394,
445,
10792,
368,
733,
603,
2110,
487,
445,
6317,
854,
6454,
10792,
368,
622,
2728,
19,
915,
787,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1345,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
277,
1085,
3401,
273,
26794,
12,
4293,
1016,
16,
277,
1085,
3401,
1769,
10792,
2097,
2624,
6148,
9904,
31,
10792,
309,
261,
1282,
2624,
6148,
405,
2097,
751,
18,
1282,
2747,
2624,
13,
13491,
2097,
751,
18,
1282,
2747,
2624,
273,
2097,
2624,
6148,
31,
7734,
289,
7734,
898,
31,
5411,
289,
5411,
648,
3155,
18,
10885,
294,
7734,
277,
1085,
3401,
273,
1089,
31063,
12,
2159,
16,
277,
1085,
3401,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
309,
261,
3624,
18,
588,
559,
1435,
480,
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,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
18,
7788,
294,
288,
7734,
509,
2295,
1016,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
7734,
4284,
907,
2295,
273,
2728,
1162,
5372,
18,
588,
2083,
907,
12,
4293,
1016,
1769,
7734,
309,
261,
4293,
18,
1282,
2083,
559,
480,
4284,
907,
18,
7788,
67,
28411,
13,
288,
10792,
368,
5098,
445,
8041,
578,
445,
2652,
10792,
368,
6317,
4260,
7213,
981,
2
] |
public OMNamespace getNamespace() throws OMException { if (ns == null && parent != null) { ns = parent.getNamespace(); } if (ns == null) throw new OMException("all elements in a soap message must be namespace qualified"); return ns; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/af7717d39bf334b9910718812650d5561f1cbe1c/OMNamedNodeImpl.java/clean/modules/om/src/java/org/apache/axis/om/impl/llom/OMNamedNodeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1872,
3402,
588,
3402,
1435,
15069,
1872,
503,
95,
430,
12,
2387,
631,
2011,
10,
10,
2938,
5,
33,
2011,
15329,
2387,
33,
2938,
18,
588,
3402,
5621,
97,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1872,
3402,
588,
3402,
1435,
15069,
1872,
503,
95,
430,
12,
2387,
631,
2011,
10,
10,
2938,
5,
33,
2011,
15329,
2387,
33,
2938,
18,
588,
3402,
5621,
97,
430,
12,
2387,
631,
2011,
13,
12849,
2704,
1872,
503,
2932,
454,
6274,
267,
345,
83,
438,
81,
403,
346,
351,
641,
70,
6809,
909,
19724,
8863,
2463,
2387,
31,
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
] |
||
return (current_row == rows_size - 1 && rows_size > 0); | if (rows_size == 0) return false; if (current_row != (rows_size - 1)) return false; String cursorName = statement.getFetchingCursorName(); if (cursorName == null || lastFetchSize == 0 || rows_size < lastFetchSize) { return true; } byte[][] saveThisRow = this_row; String[] sql = new String[] { fetchSize == 0 ? ("FETCH FORWARD ALL FROM " + cursorName) : "FETCH FORWARD " + fetchSize + " FROM " + cursorName }; QueryExecutor.execute(sql, new String[0], this); rows.insertElementAt(saveThisRow, 0); current_row = 0; this_row = saveThisRow; row_offset += (rows_size - 1); lastFetchSize = (fetchSize == 0 ? 0 : fetchSize + 1); return (rows.size() == 1); | public boolean isLast() throws SQLException { final int rows_size = rows.size(); return (current_row == rows_size - 1 && rows_size > 0); } | 49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/d9216a27dc4ef3f9c2223a6add07c4bfc9a0903e/AbstractJdbc2ResultSet.java/buggy/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
23075,
1435,
1216,
6483,
202,
95,
202,
202,
6385,
509,
2595,
67,
1467,
273,
2595,
18,
1467,
5621,
202,
202,
2463,
261,
2972,
67,
492,
422,
2595,
67,
1467,
300,
404,
597,
2595,
67,
1467,
405,
374,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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261,
2972,
67,
492,
422,
2595,
67,
1467,
300,
404,
597,
2595,
67,
1467,
405,
374,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void updateUI() { ButtonUI b = (ButtonUI) UIManager.getUI(this); setUI(b); } | public void updateUI() { ButtonUI b = (ButtonUI)UIManager.getUI(this); setUI(b); } | public void updateUI() { ButtonUI b = (ButtonUI) UIManager.getUI(this); setUI(b); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2703ae3b51c371a2a79d28271cd57b4046c647d0/JToggleButton.java/buggy/core/src/classpath/javax/javax/swing/JToggleButton.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
5370,
1435,
288,
202,
202,
3616,
5370,
324,
273,
261,
3616,
5370,
13,
6484,
1318,
18,
588,
5370,
12,
2211,
1769,
202,
202,
542,
5370,
12,
70,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
5370,
1435,
288,
202,
202,
3616,
5370,
324,
273,
261,
3616,
5370,
13,
6484,
1318,
18,
588,
5370,
12,
2211,
1769,
202,
202,
542,
5370,
12,
70,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
PriorsClassSon[i][j]=m_CondiCounts[i][sIndex+j][sIndex+j]/m_NumInstances; | PriorsClassSon[i][j]=m_ClassAttAttCounts[i][sIndex+j][sIndex+j]/m_NumInstances; | private double conditionalMutualInfo(int son, int parent)throws Exception{ double CondiMutualInfo=0; int sIndex=m_StartAttIndex[son]; int pIndex=m_StartAttIndex[parent]; double[] PriorsClass = new double[m_NumClasses]; double[][] PriorsClassSon=new double[m_NumClasses][m_NumAttValues[son]]; double[][] PriorsClassParent=new double[m_NumClasses][m_NumAttValues[parent]]; double[][][] PriorsClassParentSon=new double[m_NumClasses][m_NumAttValues[parent]][m_NumAttValues[son]]; for(int i=0;i<m_NumClasses;i++){ PriorsClass[i]=m_ClassCounts[i]/m_NumInstances; } for(int i=0;i<m_NumClasses;i++){ for(int j=0;j<m_NumAttValues[son];j++){ PriorsClassSon[i][j]=m_CondiCounts[i][sIndex+j][sIndex+j]/m_NumInstances; } } for(int i=0;i<m_NumClasses;i++){ for(int j=0;j<m_NumAttValues[parent];j++){ PriorsClassParent[i][j]=m_CondiCounts[i][pIndex+j][pIndex+j]/m_NumInstances; } } for(int i=0;i<m_NumClasses;i++){ for(int j=0;j<m_NumAttValues[parent];j++){ for(int k=0;k<m_NumAttValues[son];k++){ PriorsClassParentSon[i][j][k]=m_CondiCounts[i][pIndex+j][sIndex+k]/m_NumInstances; } } } for(int i=0;i<m_NumClasses;i++){ for(int j=0;j<m_NumAttValues[parent];j++){ for(int k=0;k<m_NumAttValues[son];k++){ CondiMutualInfo+=PriorsClassParentSon[i][j][k]*log2(PriorsClassParentSon[i][j][k]*PriorsClass[i],PriorsClassParent[i][j]*PriorsClassSon[i][k]); } } } return CondiMutualInfo; } | 4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/acb76c66a79a41aa2598fae461f79648f63f8e5f/HNB.java/buggy/trunk/weka/classifiers/bayes/HNB.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1645,
11139,
7420,
1462,
966,
12,
474,
18882,
16,
509,
982,
13,
15069,
1185,
95,
565,
1645,
735,
3211,
7420,
1462,
966,
33,
20,
31,
565,
509,
272,
1016,
33,
81,
67,
1685,
3075,
1016,
63,
816,
15533,
565,
509,
293,
1016,
33,
81,
67,
1685,
3075,
1016,
63,
2938,
15533,
565,
1645,
8526,
453,
566,
1383,
797,
273,
394,
1645,
63,
81,
67,
2578,
4818,
15533,
565,
1645,
63,
6362,
65,
453,
566,
1383,
797,
55,
265,
33,
2704,
1645,
63,
81,
67,
2578,
4818,
6362,
81,
67,
2578,
3075,
1972,
63,
816,
13563,
31,
565,
1645,
63,
6362,
65,
453,
566,
1383,
797,
3054,
33,
2704,
1645,
63,
81,
67,
2578,
4818,
6362,
81,
67,
2578,
3075,
1972,
63,
2938,
13563,
31,
565,
1645,
63,
6362,
6362,
65,
453,
566,
1383,
797,
3054,
55,
265,
33,
2704,
1645,
63,
81,
67,
2578,
4818,
6362,
81,
67,
2578,
3075,
1972,
63,
2938,
65,
6362,
81,
67,
2578,
3075,
1972,
63,
816,
13563,
31,
565,
364,
12,
474,
277,
33,
20,
31,
77,
32,
81,
67,
2578,
4818,
31,
77,
27245,
95,
1377,
453,
566,
1383,
797,
63,
77,
65,
33,
81,
67,
797,
9211,
63,
77,
18537,
81,
67,
2578,
5361,
31,
565,
289,
565,
364,
12,
474,
277,
33,
20,
31,
77,
32,
81,
67,
2578,
4818,
31,
77,
27245,
95,
1377,
364,
12,
474,
525,
33,
20,
31,
78,
32,
81,
67,
2578,
3075,
1972,
63,
816,
15533,
78,
27245,
95,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1645,
11139,
7420,
1462,
966,
12,
474,
18882,
16,
509,
982,
13,
15069,
1185,
95,
565,
1645,
735,
3211,
7420,
1462,
966,
33,
20,
31,
565,
509,
272,
1016,
33,
81,
67,
1685,
3075,
1016,
63,
816,
15533,
565,
509,
293,
1016,
33,
81,
67,
1685,
3075,
1016,
63,
2938,
15533,
565,
1645,
8526,
453,
566,
1383,
797,
273,
394,
1645,
63,
81,
67,
2578,
4818,
15533,
565,
1645,
63,
6362,
65,
453,
566,
1383,
797,
55,
265,
33,
2704,
1645,
63,
81,
67,
2578,
4818,
6362,
81,
67,
2578,
3075,
1972,
63,
816,
13563,
31,
565,
1645,
63,
6362,
65,
453,
566,
1383,
797,
3054,
33,
2704,
1645,
63,
81,
67,
2578,
4818,
6362,
81,
67,
2
] |
return true; } | return true; } | public boolean hasDescription() { return true; } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/InvokeCountMatcher.java/buggy/jmock/examples/timed-cache/src/test/jmock/examples/timedcache/InvokeCountMatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
3291,
1435,
288,
3639,
327,
638,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
3291,
1435,
288,
3639,
327,
638,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { | throws JDOMException { | public Document createDocument() throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { // We need DOM Level 2 and thus JAXP 1.1. // If JAXP 1.0 is all that's available then we error out. Class.forName("javax.xml.transform.Transformer"); // Try JAXP 1.1 calls to build the document Class factoryClass = Class.forName("javax.xml.parsers.DocumentBuilderFactory"); // factory = DocumentBuilderFactory.newInstance(); Method newParserInstance = factoryClass.getMethod("newInstance", null); Object factory = newParserInstance.invoke(null, null); // jaxpParser = factory.newDocumentBuilder(); Method newDocBuilder = factoryClass.getMethod("newDocumentBuilder", null); Object jaxpParser = newDocBuilder.invoke(factory, null); // domDoc = jaxpParser.newDocument(); Class parserClass = jaxpParser.getClass(); Method newDoc = parserClass.getMethod("newDocument", null); org.w3c.dom.Document domDoc = (org.w3c.dom.Document) newDoc.invoke(jaxpParser, null); return domDoc; // System.out.println("Using jaxp " + // domDoc.getClass().getName()); // Allow all exceptions to pass through } | 49530 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49530/10afc7e2bf09908695ad07beab9d457703ab65fe/JAXPDOMAdapter.java/buggy/core/src/java/org/jdom/adapters/JAXPDOMAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4319,
27569,
1435,
540,
1216,
10403,
16,
15959,
16,
7734,
11900,
16,
15342,
288,
3639,
368,
1660,
1608,
4703,
4557,
576,
471,
12493,
7431,
52,
404,
18,
21,
18,
3639,
368,
971,
7431,
52,
404,
18,
20,
353,
777,
716,
1807,
2319,
1508,
732,
555,
596,
18,
3639,
1659,
18,
1884,
461,
2932,
28384,
18,
2902,
18,
6547,
18,
8319,
8863,
3639,
368,
6161,
7431,
52,
404,
18,
21,
4097,
358,
1361,
326,
1668,
3639,
1659,
3272,
797,
273,
5411,
1659,
18,
1884,
461,
2932,
28384,
18,
2902,
18,
11104,
18,
2519,
20692,
8863,
3639,
368,
3272,
273,
30236,
18,
2704,
1442,
5621,
3639,
2985,
394,
2678,
1442,
273,
5411,
3272,
797,
18,
588,
1305,
2932,
2704,
1442,
3113,
446,
1769,
3639,
1033,
3272,
273,
394,
2678,
1442,
18,
14407,
12,
2011,
16,
446,
1769,
3639,
368,
20516,
84,
2678,
273,
3272,
18,
2704,
2519,
1263,
5621,
3639,
2985,
394,
1759,
1263,
273,
5411,
3272,
797,
18,
588,
1305,
2932,
2704,
2519,
1263,
3113,
446,
1769,
3639,
1033,
20516,
84,
2678,
225,
273,
394,
1759,
1263,
18,
14407,
12,
6848,
16,
446,
1769,
3639,
368,
4092,
1759,
273,
20516,
84,
2678,
18,
2704,
2519,
5621,
3639,
1659,
2082,
797,
273,
20516,
84,
2678,
18,
588,
797,
5621,
3639,
2985,
394,
1759,
273,
2082,
797,
18,
588,
1305,
2932,
2704,
2519,
3113,
446,
1769,
3639,
2358,
18,
91,
23,
71,
18,
9859,
18,
2519,
4092,
1759,
273,
5411,
261,
3341,
18,
91,
23,
71,
18,
9859,
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,
4319,
27569,
1435,
540,
1216,
10403,
16,
15959,
16,
7734,
11900,
16,
15342,
288,
3639,
368,
1660,
1608,
4703,
4557,
576,
471,
12493,
7431,
52,
404,
18,
21,
18,
3639,
368,
971,
7431,
52,
404,
18,
20,
353,
777,
716,
1807,
2319,
1508,
732,
555,
596,
18,
3639,
1659,
18,
1884,
461,
2932,
28384,
18,
2902,
18,
6547,
18,
8319,
8863,
3639,
368,
6161,
7431,
52,
404,
18,
21,
4097,
358,
1361,
326,
1668,
3639,
1659,
3272,
797,
273,
5411,
1659,
18,
1884,
461,
2932,
28384,
18,
2902,
18,
11104,
18,
2519,
20692,
8863,
3639,
368,
3272,
273,
30236,
18,
2704,
1442,
5621,
3639,
2985,
394,
2678,
1442,
273,
5411,
3272,
797,
18,
588,
1305,
2932,
2704,
2
] |
ExecSQL("rollback; " + getIsolationLevelSQL()); | execSQL("rollback; " + getIsolationLevelSQL()); | public void rollback() throws SQLException { if (autoCommit) return ; if (haveMinimumServerVersion("7.3")) { //we don't automatically start a transaction //but let the server functionality automatically start //one when the first statement is executed ExecSQL("rollback; " + getIsolationLevelSQL()); } else if (haveMinimumServerVersion("7.1")) { ExecSQL("rollback; begin;" + getIsolationLevelSQL()); } else { ExecSQL("rollback"); ExecSQL("begin"); ExecSQL(getIsolationLevelSQL()); } } | 47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/16a30346c86590fbdcd83cacd2a0a9dbd2cd00dc/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8006,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
6079,
5580,
13,
1082,
202,
2463,
274,
202,
202,
430,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
23,
6,
3719,
202,
202,
95,
1082,
202,
759,
1814,
2727,
1404,
6635,
787,
279,
2492,
1875,
202,
759,
12885,
2231,
326,
1438,
14176,
6635,
787,
1082,
202,
759,
476,
1347,
326,
1122,
3021,
353,
7120,
1082,
202,
1905,
3997,
2932,
20050,
31,
315,
397,
14279,
12255,
2355,
3997,
10663,
202,
202,
97,
202,
202,
12107,
309,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
21,
6,
3719,
202,
202,
95,
1082,
202,
1905,
3997,
2932,
20050,
31,
2376,
4868,
397,
14279,
12255,
2355,
3997,
10663,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1905,
3997,
2932,
20050,
8863,
1082,
202,
1905,
3997,
2932,
10086,
8863,
1082,
202,
1905,
3997,
12,
588,
22982,
2355,
3997,
10663,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8006,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
6079,
5580,
13,
1082,
202,
2463,
274,
202,
202,
430,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
23,
6,
3719,
202,
202,
95,
1082,
202,
759,
1814,
2727,
1404,
6635,
787,
279,
2492,
1875,
202,
759,
12885,
2231,
326,
1438,
14176,
6635,
787,
1082,
202,
759,
476,
1347,
326,
1122,
3021,
353,
7120,
1082,
202,
1905,
3997,
2932,
20050,
31,
315,
397,
14279,
12255,
2355,
3997,
10663,
202,
202,
97,
202,
202,
12107,
309,
261,
21516,
13042,
2081,
1444,
2932,
27,
18,
21,
6,
3719,
202,
202,
95,
1082,
202,
1905,
3997,
2932,
20050,
31,
2376,
4868,
397,
14279,
12255,
2355,
3997,
10663,
202,
2
] |
isInGlobalElement = true; | mIsInGlobalElement = true; | public void startElement(String aNamespaceURI, String aLocalName, String aQName, Attributes aAtts) { mBuf.setLength(0); if ("global".equals(aQName)) { isInGlobalElement = true; } else if ("check".equals(aQName)) { //first apply overriding properties if (!isInCheckMode) { isInCheckMode = true; for (Enumeration enum = mOverrideProps.keys(); enum.hasMoreElements();) { final String key = (String)enum.nextElement(); final String value = (String)mOverrideProps.get(key); mProps.setProperty(key, value); } } mCurrent = new CheckConfiguration(); mCurrent.setClassname(aAtts.getValue("classname")); } | 31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/303352fe2d7b467edce0bf02064e0a519a139250/ConfigurationLoader.java/buggy/src/checkstyle/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
780,
279,
3402,
3098,
16,
11794,
514,
279,
29583,
16,
11794,
514,
279,
13688,
16,
11794,
9055,
279,
3075,
87,
13,
565,
288,
3639,
312,
5503,
18,
542,
1782,
12,
20,
1769,
3639,
309,
7566,
6347,
9654,
14963,
12,
69,
13688,
3719,
288,
5411,
312,
2520,
382,
5160,
1046,
273,
638,
31,
3639,
289,
3639,
469,
309,
7566,
1893,
9654,
14963,
12,
69,
13688,
3719,
288,
5411,
368,
3645,
2230,
19488,
1790,
5411,
309,
16051,
291,
382,
1564,
2309,
13,
288,
7734,
8048,
1564,
2309,
273,
638,
31,
7734,
364,
261,
21847,
2792,
273,
312,
6618,
5047,
18,
2452,
5621,
8227,
2792,
18,
5332,
7417,
3471,
5621,
13,
7734,
288,
10792,
727,
514,
498,
273,
261,
780,
13,
7924,
18,
4285,
1046,
5621,
10792,
727,
514,
460,
273,
261,
780,
13,
81,
6618,
5047,
18,
588,
12,
856,
1769,
10792,
312,
5047,
18,
542,
1396,
12,
856,
16,
460,
1769,
7734,
289,
5411,
289,
5411,
28326,
273,
394,
2073,
1750,
5621,
5411,
28326,
18,
542,
20531,
12,
69,
3075,
87,
18,
24805,
2932,
18340,
7923,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
780,
279,
3402,
3098,
16,
11794,
514,
279,
29583,
16,
11794,
514,
279,
13688,
16,
11794,
9055,
279,
3075,
87,
13,
565,
288,
3639,
312,
5503,
18,
542,
1782,
12,
20,
1769,
3639,
309,
7566,
6347,
9654,
14963,
12,
69,
13688,
3719,
288,
5411,
312,
2520,
382,
5160,
1046,
273,
638,
31,
3639,
289,
3639,
469,
309,
7566,
1893,
9654,
14963,
12,
69,
13688,
3719,
288,
5411,
368,
3645,
2230,
19488,
1790,
5411,
309,
16051,
291,
382,
1564,
2309,
13,
288,
7734,
8048,
1564,
2309,
273,
638,
31,
7734,
364,
261,
21847,
2792,
273,
312,
6618,
5047,
18,
2452,
5621,
8227,
2792,
18,
5332,
7417,
3471,
5621,
13,
7734,
288,
10792,
727,
514,
498,
2
] |
private void processSeries( GeoSeries series ) throws IOException { log.info( "Processing series " + series ); // fetch series referred to by the dataset. Collection<LocalFile> fullSeries = seriesFetcher.fetch( series.getGeoAccession() ); LocalFile seriesFile = ( fullSeries.iterator() ).next(); String seriesPath; try { seriesPath = ( new URI( seriesFile.getLocalURI() ) ).getPath(); } catch ( URISyntaxException e ) { throw new IllegalStateException( e ); } gfp.parse( seriesPath ); doneSeries.add( series.getGeoAccession() ); } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/a9d21f563f33630429aa61a8c001469349ecdb16/GeoDomainObjectGenerator.java/clean/src/impl/edu/columbia/gemma/loader/expression/geo/GeoDomainObjectGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
2567,
6485,
12,
12447,
827,
77,
403,
3924,
13,
15069,
14106,
95,
1330,
18,
1376,
2932,
7798,
10222,
6,
15,
10222,
1769,
759,
5754,
10222,
266,
4193,
869,
1637,
451,
329,
270,
2759,
18,
2532,
32,
2042,
812,
34,
2854,
6485,
33,
10222,
16855,
18,
5754,
12,
10222,
18,
588,
12447,
1862,
285,
10663,
2042,
2697,
3924,
812,
28657,
2854,
6485,
18,
9838,
1435,
2934,
4285,
5621,
780,
10222,
743,
31,
698,
95,
10222,
743,
28657,
2704,
3098,
12,
10222,
812,
18,
588,
2042,
3098,
10756,
2934,
588,
743,
5621,
97,
14683,
12,
3098,
14714,
73,
15329,
12849,
2704,
12195,
5060,
12,
73,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
2567,
6485,
12,
12447,
827,
77,
403,
3924,
13,
15069,
14106,
95,
1330,
18,
1376,
2932,
7798,
10222,
6,
15,
10222,
1769,
759,
5754,
10222,
266,
4193,
869,
1637,
451,
329,
270,
2759,
18,
2532,
32,
2042,
812,
34,
2854,
6485,
33,
10222,
16855,
18,
5754,
12,
10222,
18,
588,
12447,
1862,
285,
10663,
2042,
2697,
3924,
812,
28657,
2854,
6485,
18,
9838,
1435,
2934,
4285,
5621,
780,
10222,
743,
31,
698,
95,
10222,
743,
28657,
2704,
3098,
12,
10222,
812,
18,
588,
2042,
3098,
10756,
2934,
588,
743,
5621,
97,
14683,
12,
3098,
14714,
73,
15329,
12849,
2704,
12195,
5060,
12,
73,
1769,
97,
75,
7944,
18,
2670,
12,
10222,
743,
1769,
8734,
6485,
18,
1289,
2
] |
||
getToolBar().setBackground(control.getInteriorColor()); | protected void createChildControls() { int newSide = getSide(); int flags = Geometry.isHorizontal(newSide) ? SWT.HORIZONTAL : SWT.VERTICAL; fastViewBar = new ToolBarManager(SWT.FLAT | SWT.WRAP | flags); fastViewBar.add(new ShowFastViewContribution(window)); control.setOrientation(newSide); CellLayout controlLayout; if (Geometry.isHorizontal(newSide)) { controlLayout = new CellLayout(0) .setMargins(0, 0) .setDefaultRow(Row.growing()) .setDefaultColumn(Row.fixed()) .setColumn(1, Row.growing()); } else { controlLayout = new CellLayout(1) .setMargins(0, 3) .setDefaultColumn(Row.growing()) .setDefaultRow(Row.fixed()) .setRow(1, Row.growing()); } control.setLayout(controlLayout); String tip = WorkbenchMessages.FastViewBar_0; control.setToolTipText(tip); dragHandle = new DragHandle(control); dragHandle.setHorizontal(!Geometry.isHorizontal(newSide)); dragHandle.setLayoutData(new CellData()); dragHandle.setBackground(control.getInteriorColor()); dragHandle.addListener(SWT.MenuDetect, menuListener); dragHandle.setToolTipText(tip); fastViewBar.createControl(control); getToolBar().setBackground(control.getInteriorColor()); getToolBar().addListener(SWT.MenuDetect, menuListener); IDragOverListener fastViewDragTarget = new IDragOverListener() { public IDropTarget drag(Control currentControl, Object draggedObject, Point position, Rectangle dragRectangle) { ToolItem targetItem = getToolItem(position); if (draggedObject instanceof ViewPane) { ViewPane pane = (ViewPane) draggedObject; // Can't drag views between windows if (pane.getWorkbenchWindow() != window) { return null; } List newList = new ArrayList(1); newList.add(draggedObject); return createDropTarget(newList, targetItem); } if (draggedObject instanceof ViewStack) { ViewStack folder = (ViewStack) draggedObject; if (folder.getWorkbenchWindow() != window) { return null; } List viewList = new ArrayList(folder.getItemCount()); LayoutPart[] children = folder.getChildren(); for (int idx = 0; idx < children.length; idx++) { if (!(children[idx] instanceof PartPlaceholder)) { viewList.add(children[idx]); } } return createDropTarget(viewList, targetItem); } return null; } }; toolBarData = new CellData(); toolBarData.align(SWT.FILL, SWT.FILL); getToolBar().setLayoutData(toolBarData); PresentationUtil.addDragListener(getToolBar(), dragListener); DragUtil.addDragTarget(getControl(), fastViewDragTarget); if (dragHandle != null) { PresentationUtil.addDragListener(dragHandle, dragListener); } update(true); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/be641b78754f5c68409eb40001d92c984c331698/FastViewBar.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
1763,
16795,
1435,
288,
3639,
509,
394,
8895,
273,
1322,
831,
5621,
3639,
509,
2943,
273,
8344,
18,
291,
14457,
12,
2704,
8895,
13,
692,
348,
8588,
18,
44,
20344,
7734,
294,
348,
8588,
18,
21654,
10109,
31,
3639,
4797,
1767,
5190,
273,
394,
13288,
5190,
1318,
12,
55,
8588,
18,
42,
12190,
571,
348,
8588,
18,
27664,
571,
2943,
1769,
3639,
4797,
1767,
5190,
18,
1289,
12,
2704,
9674,
12305,
1767,
442,
4027,
12,
5668,
10019,
3639,
3325,
18,
542,
14097,
12,
2704,
8895,
1769,
3639,
8614,
3744,
3325,
3744,
31,
7734,
309,
261,
9823,
18,
291,
14457,
12,
2704,
8895,
3719,
288,
540,
202,
7098,
3744,
273,
394,
8614,
3744,
12,
20,
13,
540,
202,
202,
18,
542,
28528,
12,
20,
16,
374,
13,
540,
202,
202,
18,
542,
1868,
1999,
12,
1999,
18,
75,
492,
310,
10756,
540,
202,
202,
18,
542,
1868,
1494,
12,
1999,
18,
12429,
10756,
540,
202,
202,
18,
542,
1494,
12,
21,
16,
6556,
18,
75,
492,
310,
10663,
3639,
289,
469,
288,
540,
202,
7098,
3744,
273,
394,
8614,
3744,
12,
21,
13,
540,
202,
202,
18,
542,
28528,
12,
20,
16,
890,
13,
540,
202,
202,
18,
542,
1868,
1494,
12,
1999,
18,
75,
492,
310,
10756,
540,
202,
202,
18,
542,
1868,
1999,
12,
1999,
18,
12429,
10756,
540,
202,
202,
18,
542,
1999,
12,
21,
16,
6556,
18,
75,
492,
310,
10663,
3639,
289,
3639,
3325,
18,
542,
3744,
12,
7098,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
1763,
16795,
1435,
288,
3639,
509,
394,
8895,
273,
1322,
831,
5621,
3639,
509,
2943,
273,
8344,
18,
291,
14457,
12,
2704,
8895,
13,
692,
348,
8588,
18,
44,
20344,
7734,
294,
348,
8588,
18,
21654,
10109,
31,
3639,
4797,
1767,
5190,
273,
394,
13288,
5190,
1318,
12,
55,
8588,
18,
42,
12190,
571,
348,
8588,
18,
27664,
571,
2943,
1769,
3639,
4797,
1767,
5190,
18,
1289,
12,
2704,
9674,
12305,
1767,
442,
4027,
12,
5668,
10019,
3639,
3325,
18,
542,
14097,
12,
2704,
8895,
1769,
3639,
8614,
3744,
3325,
3744,
31,
7734,
309,
261,
9823,
18,
291,
14457,
12,
2704,
8895,
3719,
288,
540,
202,
7098,
3744,
273,
394,
8614,
3744,
12,
20,
13,
2
] |
|
throws NotImplementedException | protected boolean isFixedRowHeight() throws NotImplementedException { return false; // TODO } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8e6a933c7311b8af73a149d26777089b7dc8bd68/AbstractLayoutCache.java/clean/core/src/classpath/javax/javax/swing/tree/AbstractLayoutCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
353,
7505,
1999,
2686,
1435,
1377,
1216,
10051,
503,
202,
95,
202,
202,
2463,
629,
31,
368,
2660,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
353,
7505,
1999,
2686,
1435,
1377,
1216,
10051,
503,
202,
95,
202,
202,
2463,
629,
31,
368,
2660,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
smtpOutboundJSpinner.setModel( new SpinnerNumberModel((Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MAX, | smtpOutboundJSpinner.setModel( new SpinnerNumberModel((Long)(MailTransformSettings.TIMEOUT_MIN/1000l), (Long)(MailTransformSettings.TIMEOUT_MIN/1000l), (Long)(MailTransformSettings.TIMEOUT_MAX/1000l), | public MCasingJPanel(TransformContext transformContext) { super(transformContext); initComponents(); smtpInboundJSpinner.setModel( new SpinnerNumberModel((Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MAX, (Long)1l) ); smtpOutboundJSpinner.setModel( new SpinnerNumberModel((Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MAX, (Long)1l) ); popInboundJSpinner.setModel( new SpinnerNumberModel((Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MAX, (Long)1l) ); popOutboundJSpinner.setModel( new SpinnerNumberModel((Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MAX, (Long)1l) ); imapInboundJSpinner.setModel( new SpinnerNumberModel((Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MAX, (Long)1l) ); imapOutboundJSpinner.setModel( new SpinnerNumberModel((Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MIN, (Long)MailTransformSettings.TIMEOUT_MAX, (Long)1l) ); timeoutLimitsJLabel.setText("(max=" + MailTransformSettings.TIMEOUT_MAX + " min=" + MailTransformSettings.TIMEOUT_MIN + ")"); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/859a94087ee502f88cd17cf1254b514b266ca3f7/MCasingJPanel.java/clean/tran/mail/main/com/metavize/tran/mail/gui/MCasingJPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
24105,
11730,
46,
5537,
12,
4059,
1042,
2510,
1042,
13,
288,
3639,
2240,
12,
6547,
1042,
1769,
3639,
1208,
7171,
5621,
7734,
17660,
20571,
46,
31676,
18,
542,
1488,
12,
394,
5878,
7872,
1854,
1488,
12443,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6236,
16,
6862,
9506,
377,
261,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6236,
16,
6862,
9506,
377,
261,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6694,
16,
6862,
9506,
377,
261,
3708,
13,
21,
80,
13,
11272,
3639,
17660,
17873,
46,
31676,
18,
542,
1488,
12,
394,
5878,
7872,
1854,
1488,
12443,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6236,
16,
6862,
9506,
1377,
261,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6236,
16,
6862,
9506,
1377,
261,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6694,
16,
6862,
9506,
1377,
261,
3708,
13,
21,
80,
13,
11272,
3639,
1843,
20571,
46,
31676,
18,
542,
1488,
12,
394,
5878,
7872,
1854,
1488,
12443,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6236,
16,
6862,
9506,
565,
261,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6236,
16,
6862,
9506,
565,
261,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6694,
16,
6862,
9506,
565,
261,
3708,
13,
21,
80,
13,
11272,
3639,
1843,
17873,
46,
31676,
18,
542,
1488,
12,
394,
5878,
7872,
1854,
1488,
12443,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6236,
16,
6862,
9506,
377,
261,
3708,
13,
6759,
4059,
2628,
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,
24105,
11730,
46,
5537,
12,
4059,
1042,
2510,
1042,
13,
288,
3639,
2240,
12,
6547,
1042,
1769,
3639,
1208,
7171,
5621,
7734,
17660,
20571,
46,
31676,
18,
542,
1488,
12,
394,
5878,
7872,
1854,
1488,
12443,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6236,
16,
6862,
9506,
377,
261,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6236,
16,
6862,
9506,
377,
261,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6694,
16,
6862,
9506,
377,
261,
3708,
13,
21,
80,
13,
11272,
3639,
17660,
17873,
46,
31676,
18,
542,
1488,
12,
394,
5878,
7872,
1854,
1488,
12443,
3708,
13,
6759,
4059,
2628,
18,
9503,
67,
6236,
16,
6862,
9506,
1377,
261,
3708,
13,
6759,
4059,
2
] |
if(client_sock != null) { try { client_sock.close(); } catch(Exception ex) { } client_sock=null; } | Util.close(client_sock); client_sock=null; | void closeClientSocket() { synchronized(mutex) { if(client_sock != null) { try { client_sock.close(); } catch(Exception ex) { } client_sock=null; } } } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/87060ba56ffd3be3e449afa753756e5aefc422c8/FD_SOCK.java/clean/src/org/jgroups/protocols/FD_SOCK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
1746,
1227,
4534,
1435,
288,
5411,
3852,
12,
29946,
13,
288,
7734,
309,
12,
2625,
67,
15031,
480,
446,
13,
288,
10792,
775,
288,
13491,
1004,
67,
15031,
18,
4412,
5621,
10792,
289,
10792,
1044,
12,
503,
431,
13,
288,
10792,
289,
10792,
1004,
67,
15031,
33,
2011,
31,
7734,
289,
5411,
289,
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,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0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
1746,
1227,
4534,
1435,
288,
5411,
3852,
12,
29946,
13,
288,
7734,
309,
12,
2625,
67,
15031,
480,
446,
13,
288,
10792,
775,
288,
13491,
1004,
67,
15031,
18,
4412,
5621,
10792,
289,
10792,
1044,
12,
503,
431,
13,
288,
10792,
289,
10792,
1004,
67,
15031,
33,
2011,
31,
7734,
289,
5411,
289,
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
] |
public int getHeight() { return this.height; } | public int getHeight() { return this.height; } | public int getHeight() { return this.height; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/fe302eef0057017f9891673b61061cff2145065a/GifJpegImage.java/buggy/src/org/apache/fop/image/GifJpegImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
9263,
1435,
288,
202,
202,
2463,
333,
18,
4210,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
9263,
1435,
288,
202,
202,
2463,
333,
18,
4210,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new SourceManipulationInfo(this); | return new FieldInfo(this); | protected CElementInfo createElementInfo () { return new SourceManipulationInfo(this); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/dd13b8fe53c9269fb5ffac50641980c7978ca066/Field.java/buggy/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Field.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
385,
1046,
966,
6310,
966,
1832,
288,
202,
202,
2463,
394,
4998,
19308,
6234,
966,
12,
2211,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
385,
1046,
966,
6310,
966,
1832,
288,
202,
202,
2463,
394,
4998,
19308,
6234,
966,
12,
2211,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this(source, BeanToolFactory.thresholdEvaluator(propertyName)); } | this(source, BeanToolFactory.thresholdEvaluator(propertyName)); } | public ThresholdList(EventList source, String propertyName) { this(source, BeanToolFactory.thresholdEvaluator(propertyName)); } | 10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/d5fe1cf2a54004ff45231e6255697083d5175af4/ThresholdList.java/buggy/source/ca/odell/glazedl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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27139,
682,
12,
1133,
682,
1084,
16,
514,
5470,
13,
288,
202,
202,
2211,
12,
3168,
16,
7704,
6364,
1733,
18,
8699,
15876,
12,
4468,
461,
10019,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sd.addCheckbox(seriesStrings[i], series[i]); } addScrollBars(sd); sd.showDialog(); if (sd.wasCanceled()) { | gd.addCheckbox(seriesStrings[i], series[i]); } addScrollBars(gd); gd.showDialog(); if (gd.wasCanceled()) { | public void run(String arg) { boolean quiet = arg != null && !arg.equals(""); String options = Macro.getOptions(); // -- Step 1: get filename to open -- String id = null; // try to get filename from argument if (quiet) id = arg; if (id == null) { // try to get filename from macro options if (options != null) { String open = Macro.getValue(options, "open", null); if (open != null) id = open; } } // if necessary, prompt the user for the filename OpenDialog od = new OpenDialog("Open", id); String directory = od.getDirectory(); String fileName = od.getFileName(); if (fileName == null) { plugin.canceled = true; return; } id = directory + fileName; // if no valid filename, give up if (id == null || !new File(id).exists()) { if (!quiet) { IJ.error("LOCI Bio-Formats", "The specified file " + (id == null ? "" : ("(" + id + ") ")) + "does not exist."); } return; } // -- Step 2: identify file -- IJ.showStatus("Identifying " + fileName); // determine whether we can handle this file ImageReader reader = new ImageReader(); IFormatReader r = null; try { r = reader.getReader(id); } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); if (!quiet) { String msg = exc.getMessage(); IJ.error("LOCI Bio-Formats", "Sorry, there was a problem " + "reading the file" + (msg == null ? "." : (":\n" + msg))); } return; } // -- Step 3: get parameter values -- IJ.showStatus(""); final String mergeString = "Merge channels to RGB"; final String ignoreString = "Ignore color lookup table"; final String colorizeString = "Colorize channels"; final String splitString = "Open each channel in its own window"; final String metadataString = "Display associated metadata"; final String stitchString = "Stitch files with similar names"; final String rangeString = "Specify range for each series"; final String stackString = "View stack with: "; Vector stackTypes = new Vector(); stackTypes.add(VIEW_STANDARD); if (Util.checkClass("loci.plugins.browser.LociDataBrowser")) { stackTypes.add(VIEW_BROWSER); } if (Util.checkClass("i5d.Image5D")) stackTypes.add(VIEW_IMAGE_5D); stackTypes.add(VIEW_VIEW_5D); final String[] stackFormats = new String[stackTypes.size()]; stackTypes.copyInto(stackFormats); // load preferences from IJ_Prefs.txt boolean mergeChannels = Prefs.get("bioformats.mergeChannels", false); boolean ignoreTables = Prefs.get("bioformats.ignoreTable", false); boolean colorize = Prefs.get("bioformats.colorize", false); boolean splitWindows = Prefs.get("bioformats.splitWindows", true); boolean showMetadata = Prefs.get("bioformats.showMetadata", false); boolean stitchFiles = Prefs.get("bioformats.stitchFiles", false); boolean specifyRanges = Prefs.get("bioformats.specifyRanges", false); stackFormat = Prefs.get("bioformats.stackFormat", VIEW_STANDARD); // prompt for parameters, if necessary GenericDialog pd = new GenericDialog("LOCI Bio-Formats Import Options"); pd.addCheckbox(mergeString, mergeChannels); pd.addCheckbox(ignoreString, ignoreTables); pd.addCheckbox(colorizeString, colorize); pd.addCheckbox(splitString, splitWindows); pd.addCheckbox(metadataString, showMetadata); pd.addCheckbox(stitchString, stitchFiles); pd.addCheckbox(rangeString, specifyRanges); pd.addChoice(stackString, stackFormats, stackFormats[0]); pd.showDialog(); if (pd.wasCanceled()) { plugin.canceled = true; return; } mergeChannels = pd.getNextBoolean(); ignoreTables = pd.getNextBoolean(); colorize = pd.getNextBoolean(); splitWindows = pd.getNextBoolean(); showMetadata = pd.getNextBoolean(); stitchFiles = pd.getNextBoolean(); specifyRanges = pd.getNextBoolean(); stackFormat = stackFormats[pd.getNextChoiceIndex()]; // -- Step 4: open file -- IJ.showStatus("Analyzing " + fileName); try { // -- Step 4a: do some preparatory work -- if (stitchFiles) r = new FileStitcher(r); if (mergeChannels) r = new ChannelMerger(r); else r = new ChannelSeparator(r); r.setColorTableIgnored(ignoreTables); // store OME metadata into OME-XML structure, if available OMEXMLMetadataStore store = new OMEXMLMetadataStore(); store.createRoot(); r.setMetadataStore(store); int seriesCount = r.getSeriesCount(id); boolean[] series = new boolean[seriesCount]; series[0] = true; // build descriptive string and range for each series String[] seriesStrings = new String[seriesCount]; int[] num = new int[seriesCount]; int[] sizeC = new int[seriesCount]; int[] sizeZ = new int[seriesCount]; int[] sizeT = new int[seriesCount]; boolean[] certain = new boolean[seriesCount]; int[] cBegin = new int[seriesCount]; int[] cEnd = new int[seriesCount]; int[] cStep = new int[seriesCount]; int[] zBegin = new int[seriesCount]; int[] zEnd = new int[seriesCount]; int[] zStep = new int[seriesCount]; int[] tBegin = new int[seriesCount]; int[] tEnd = new int[seriesCount]; int[] tStep = new int[seriesCount]; for (int i=0; i<seriesCount; i++) { r.setSeries(id, i); num[i] = r.getImageCount(id); sizeC[i] = r.getSizeC(id); if (r.isRGB(id)) sizeC[i] = sizeC[i] < 3 ? 1 : (sizeC[i] / 3); sizeZ[i] = r.getSizeZ(id); sizeT[i] = r.getSizeT(id); certain[i] = r.isOrderCertain(id); cBegin[i] = zBegin[i] = tBegin[i] = 0; if (certain[i]) { cEnd[i] = sizeC[i] - 1; zEnd[i] = sizeZ[i] - 1; tEnd[i] = sizeT[i] - 1; } else cEnd[i] = num[i] - 1; cStep[i] = zStep[i] = tStep[i] = 1; StringBuffer sb = new StringBuffer(); sb.append("Series_"); sb.append(i + 1); sb.append(" - "); String name = store.getImageName(new Integer(i)); if (name != null && name.length() > 0) { sb.append(name); sb.append(": "); } sb.append(r.getSizeX(id)); sb.append(" x "); sb.append(r.getSizeY(id)); sb.append("; "); sb.append(num[i]); sb.append(" planes"); if (certain[i]) { sb.append(" ("); boolean first = true; if (sizeC[i] > 1) { sb.append(sizeC[i]); sb.append("C"); first = false; } if (sizeZ[i] > 1) { if (!first) sb.append(" x "); sb.append(sizeZ[i]); sb.append("Z"); first = false; } if (sizeT[i] > 1) { if (!first) sb.append(" x "); sb.append(sizeT[i]); sb.append("T"); first = false; } sb.append(")"); } seriesStrings[i] = sb.toString(); } // -- Step 4a: prompt for the series to open, if necessary -- if (seriesCount > 1) { IJ.showStatus(""); GenericDialog sd = new GenericDialog("LOCI Bio-Formats Series Options"); for (int i=0; i<seriesCount; i++) { sd.addCheckbox(seriesStrings[i], series[i]); } addScrollBars(sd); sd.showDialog(); if (sd.wasCanceled()) { plugin.canceled = true; return; } for (int i=0; i<seriesCount; i++) series[i] = sd.getNextBoolean(); } // -- Step 4b: prompt for the range of planes to import, if necessary -- if (specifyRanges) { boolean needRange = false; for (int i=0; i<seriesCount; i++) { if (series[i] && num[i] > 1) needRange = true; } if (needRange) { IJ.showStatus(""); GenericDialog rd = new GenericDialog("LOCI Bio-Formats Range Options"); for (int i=0; i<seriesCount; i++) { if (!series[i]) continue; rd.addMessage(seriesStrings[i].replaceAll("_", " ")); String s = "_" + (i + 1); if (certain[i]) { if (sizeC[i] > 1) { rd.addNumericField("C_Begin" + s, cBegin[i] + 1, 0); rd.addNumericField("C_End" + s, cEnd[i] + 1, 0); rd.addNumericField("C_Step" + s, cStep[i], 0); } if (sizeZ[i] > 1) { rd.addNumericField("Z_Begin" + s, zBegin[i] + 1, 0); rd.addNumericField("Z_End" + s, zEnd[i] + 1, 0); rd.addNumericField("Z_Step" + s, zStep[i], 0); } if (sizeT[i] > 1) { rd.addNumericField("T_Begin" + s, tBegin[i] + 1, 0); rd.addNumericField("T_End" + s, tEnd[i] + 1, 0); rd.addNumericField("T_Step" + s, tStep[i], 0); } } else { rd.addNumericField("Begin" + s, cBegin[i] + 1, 0); rd.addNumericField("End" + s, cEnd[i] + 1, 0); rd.addNumericField("Step" + s, cStep[i], 0); } } addScrollBars(rd); rd.showDialog(); if (rd.wasCanceled()) { plugin.canceled = true; return; } for (int i=0; i<seriesCount; i++) { if (!series[i]) continue; if (certain[i]) { if (sizeC[i] > 1) { cBegin[i] = (int) rd.getNextNumber() - 1; cEnd[i] = (int) rd.getNextNumber() - 1; cStep[i] = (int) rd.getNextNumber(); } if (sizeZ[i] > 1) { zBegin[i] = (int) rd.getNextNumber() - 1; zEnd[i] = (int) rd.getNextNumber() - 1; zStep[i] = (int) rd.getNextNumber(); } if (sizeT[i] > 1) { tBegin[i] = (int) rd.getNextNumber() - 1; tEnd[i] = (int) rd.getNextNumber() - 1; tStep[i] = (int) rd.getNextNumber(); } } else { cBegin[i] = (int) rd.getNextNumber() - 1; cEnd[i] = (int) rd.getNextNumber() - 1; cStep[i] = (int) rd.getNextNumber(); } int maxC = certain[i] ? sizeC[i] : num[i]; if (cBegin[i] < 0) cBegin[i] = 0; if (cBegin[i] >= maxC) cBegin[i] = maxC - 1; if (cEnd[i] < cBegin[i]) cEnd[i] = cBegin[i]; if (cEnd[i] >= maxC) cEnd[i] = maxC - 1; if (cStep[i] < 1) cStep[i] = 1; if (zBegin[i] < 0) zBegin[i] = 0; if (zBegin[i] >= sizeZ[i]) zBegin[i] = sizeZ[i] - 1; if (zEnd[i] < zBegin[i]) zEnd[i] = zBegin[i]; if (zEnd[i] >= sizeZ[i]) zEnd[i] = sizeZ[i] - 1; if (zStep[i] < 1) zStep[i] = 1; if (tBegin[i] < 0) tBegin[i] = 0; if (tBegin[i] >= sizeT[i]) tBegin[i] = sizeT[i] - 1; if (tEnd[i] < tBegin[i]) tEnd[i] = tBegin[i]; if (tEnd[i] >= sizeT[i]) tEnd[i] = sizeT[i] - 1; if (tStep[i] < 1) tStep[i] = 1; } } } // -- Step 4c: display metadata, when appropriate -- if (showMetadata) { IJ.showStatus("Populating metadata"); // display standard metadata in a table in its own window Hashtable meta = r.getMetadata(id); meta.put("\tSizeX", new Integer(r.getSizeX(id))); meta.put("\tSizeY", new Integer(r.getSizeY(id))); meta.put("\tSizeZ", new Integer(r.getSizeZ(id))); meta.put("\tSizeT", new Integer(r.getSizeT(id))); meta.put("\tSizeC", new Integer(r.getSizeC(id))); meta.put("\tIsRGB", new Boolean(r.isRGB(id))); meta.put("\tPixelType", FormatReader.getPixelTypeString(r.getPixelType(id))); meta.put("\tLittleEndian", new Boolean(r.isLittleEndian(id))); meta.put("\tDimensionOrder", r.getDimensionOrder(id)); meta.put("\tIsInterleaved", new Boolean(r.isInterleaved(id))); MetadataPane mp = new MetadataPane(meta); JFrame frame = new JFrame(id + " Metadata"); frame.setContentPane(mp); frame.pack(); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); WindowManager.addWindow(frame); } // -- Step 4d: read pixel data -- IJ.showStatus("Reading " + fileName); for (int i=0; i<seriesCount; i++) { if (!series[i]) continue; r.setSeries(id, i); String name = store.getImageName(new Integer(i)); String imageName = fileName; if (name != null && name.length() > 0) imageName += " - " + name; boolean[] load = new boolean[num[i]]; if (certain[i]) { for (int c=cBegin[i]; c<=cEnd[i]; c+=cStep[i]) { for (int z=zBegin[i]; z<=zEnd[i]; z+=zStep[i]) { for (int t=tBegin[i]; t<=tEnd[i]; t+=tStep[i]) { int index = r.getIndex(id, z, c, t); load[index] = true; } } } } else { for (int j=cBegin[i]; j<=cEnd[i]; j+=cStep[i]) load[j] = true; } int total = 0; for (int j=0; j<num[i]; j++) if (load[j]) total++; // dump OME-XML to ImageJ's description field, if available FileInfo fi = new FileInfo(); fi.description = store.dumpXML(); long startTime = System.currentTimeMillis(); long time = startTime; ImageStack stackB = null, stackS = null, stackF = null, stackO = null; int q = 0; for (int j=0; j<num[i]; j++) { if (!load[j]) continue; // limit message update rate long clock = System.currentTimeMillis(); if (clock - time >= 100) { IJ.showStatus("Reading " + (seriesCount > 1 ? ("series " + (i + 1) + ", ") : "") + "plane " + (j + 1) + "/" + num[i]); time = clock; } IJ.showProgress((double) q++ / total); byte[] b = r.openBytes(id, j); int w = r.getSizeX(id); int h = r.getSizeY(id); int c = r.isRGB(id) ? r.getSizeC(id) : 1; int type = r.getPixelType(id); // construct image processor and add to stack ImageProcessor ip = null; int bpp = 0; switch (type) { case FormatReader.INT8: case FormatReader.UINT8: bpp = 1; break; case FormatReader.INT16: case FormatReader.UINT16: bpp = 2; break; case FormatReader.INT32: case FormatReader.UINT32: case FormatReader.FLOAT: bpp = 4; break; case FormatReader.DOUBLE: bpp = 8; break; } if (b.length != w * h * c * bpp) { // HACK - byte array dimensions are incorrect - image is probably // a different size, but we have no way of knowing what size; // so open this plane as a BufferedImage instead BufferedImage bi = r.openImage(id, j); b = ImageTools.padImage(b, r.isInterleaved(id), c, bi.getWidth() * bpp, w, h); } Object pixels = DataTools.makeDataArray(b, bpp, type == FormatReader.FLOAT || type == FormatReader.DOUBLE, r.isLittleEndian(id)); if (pixels instanceof byte[]) { byte[] bytes = (byte[]) pixels; if (bytes.length > w*h*c) { byte[] tmp = bytes; bytes = new byte[w*h*c]; System.arraycopy(tmp, 0, bytes, 0, bytes.length); } if (c == 1) { ip = new ByteProcessor(w, h, bytes, null); if (stackB == null) stackB = new ImageStack(w, h); stackB.addSlice(imageName + ":" + (j + 1), ip); } else { if (stackO == null) stackO = new ImageStack(w, h); ip = new ColorProcessor(w, h); byte[][] pix = new byte[c][w*h]; for (int k=0; k<c; k++) { System.arraycopy(bytes, k*pix[k].length, pix[k], 0, pix[k].length); } ((ColorProcessor) ip).setRGB(pix[0], pix[1], pix.length >= 3 ? pix[2] : new byte[w*h]); stackO.addSlice(imageName + ":" + (j + 1), ip); } } else if (pixels instanceof short[]) { short[] s = (short[]) pixels; if (s.length > w*h*c) { short[] tmp = s; s = new short[w*h*c]; System.arraycopy(tmp, 0, s, 0, s.length); } if (c == 1) { ip = new ShortProcessor(w, h, s, null); if (stackS == null) stackS = new ImageStack(w, h); stackS.addSlice(imageName + ":" + (j + 1), ip); } else { if (stackO == null) stackO = new ImageStack(w, h); short[][] pix = new short[c][w*h]; for (int k=0; k<c; k++) { System.arraycopy(s, k*pix[k].length, pix[k], 0, pix[k].length); } byte[][] bytes = new byte[c][w*h]; for (int k=0; k<c; k++) { ip = new ShortProcessor(w, h, pix[k], null); ip = ip.convertToByte(true); bytes[k] = (byte[]) ip.getPixels(); } ip = new ColorProcessor(w, h); ((ColorProcessor) ip).setRGB(bytes[0], bytes[1], pix.length >= 3 ? bytes[2] : new byte[w*h]); stackO.addSlice(imageName + ":" + (j + 1), ip); } } else if (pixels instanceof int[]) { int[] s = (int[]) pixels; if (s.length > w*h*c) { int[] tmp = s; s = new int[w*h*c]; System.arraycopy(tmp, 0, s, 0, s.length); } if (c == 1) { ip = new FloatProcessor(w, h, s); if (stackF == null) stackF = new ImageStack(w, h); stackF.addSlice(imageName + ":" + (j + 1), ip); } else { if (stackO == null) stackO = new ImageStack(w, h); int[][] pix = new int[c][w*h]; for (int k=0; k<c; k++) { System.arraycopy(s, k*pix[k].length, pix[k], 0, pix[k].length); } byte[][] bytes = new byte[c][w*h]; for (int k=0; k<c; k++) { ip = new FloatProcessor(w, h, pix[k]); ip = ip.convertToByte(true); bytes[k] = (byte[]) ip.getPixels(); } ip = new ColorProcessor(w, h); ((ColorProcessor) ip).setRGB(bytes[0], bytes[1], pix.length >= 3 ? bytes[2] : new byte[w*h]); stackO.addSlice(imageName + ":" + (j + 1), ip); } } else if (pixels instanceof float[]) { float[] f = (float[]) pixels; if (f.length > w*h*c) { float[] tmp = f; f = new float[w*h*c]; System.arraycopy(tmp, 0, f, 0, f.length); } if (c == 1) { ip = new FloatProcessor(w, h, f, null); if (stackF == null) stackF = new ImageStack(w, h); if (stackB != null) { ip = ip.convertToByte(true); stackB.addSlice(imageName + ":" + (j + 1), ip); stackF = null; } else if (stackS != null) { ip = ip.convertToShort(true); stackS.addSlice(imageName + ":" + (j + 1), ip); stackF = null; } else stackF.addSlice(imageName + ":" + (j + 1), ip); } else { if (stackO == null) stackO = new ImageStack(w, h); float[][] pix = new float[c][w*h]; if (!r.isInterleaved(id)) { for (int k=0; k<f.length; k+=c) { for (int l=0; l<c; l++) { pix[l][k / 3] = f[k + l]; } } } else { for (int k=0; k<c; k++) { System.arraycopy(f, k*pix[k].length, pix[k], 0, pix[k].length); } } byte[][] bytes = new byte[c][w*h]; for (int k=0; k<c; k++) { ip = new FloatProcessor(w, h, pix[k], null); ip = ip.convertToByte(true); bytes[k] = (byte[]) ip.getPixels(); } ip = new ColorProcessor(w, h); ((ColorProcessor) ip).setRGB(bytes[0], bytes[1], pix.length >= 3 ? bytes[2] : new byte[w*h]); stackO.addSlice(imageName + ":" + (j + 1), ip); } } else if (pixels instanceof double[]) { double[] d = (double[]) pixels; if (d.length > w*h*c) { double[] tmp = d; d = new double[w*h*c]; System.arraycopy(tmp, 0, d, 0, d.length); } if (c == 1) { ip = new FloatProcessor(w, h, d); if (stackF == null) stackF = new ImageStack(w, h); stackF.addSlice(imageName + ":" + (j + 1), ip); } else { if (stackO == null) stackO = new ImageStack(w, h); double[][] pix = new double[c][w*h]; for (int k=0; k<c; k++) { System.arraycopy(d, k*pix[k].length, pix[k], 0, pix[k].length); } byte[][] bytes = new byte[c][w*h]; for (int k=0; k<c; k++) { ip = new FloatProcessor(w, h, pix[k]); ip = ip.convertToByte(true); bytes[k] = (byte[]) ip.getPixels(); } ip = new ColorProcessor(w, h); ((ColorProcessor) ip).setRGB(bytes[0], bytes[1], pix.length >= 3 ? bytes[2] : new byte[w*h]); stackO.addSlice(imageName + ":" + (j + 1), ip); } } } IJ.showStatus("Creating image"); IJ.showProgress(1); ImagePlus imp = null; if (stackB != null) { if (!mergeChannels && splitWindows) { slice(stackB, id, sizeZ[i], sizeC[i], sizeT[i], fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackB); } if (stackS != null) { if (!mergeChannels && splitWindows) { slice(stackS, id, sizeZ[i], sizeC[i], sizeT[i], fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackS); } if (stackF != null) { if (!mergeChannels && splitWindows) { slice(stackF, id, sizeZ[i], sizeC[i], sizeT[i], fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackF); } if (stackO != null) { if (!mergeChannels && splitWindows) { slice(stackO, id, sizeZ[i], sizeC[i], sizeT[i], fi, r, specifyRanges, colorize); } else imp = new ImagePlus(imageName, stackO); } if (imp != null) { // retrieve the spatial calibration information, if available applyCalibration(store, imp, i); imp.setFileInfo(fi); int c = r.getSizeC(id); displayStack(imp, r, id); r.close(); } long endTime = System.currentTimeMillis(); double elapsed = (endTime - startTime) / 1000.0; if (num[i] == 1) { IJ.showStatus("LOCI Bio-Formats: " + elapsed + " seconds"); } else { long average = (endTime - startTime) / num[i]; IJ.showStatus("LOCI Bio-Formats: " + elapsed + " seconds (" + average + " ms per plane)"); } } r.close(); plugin.success = true; // save parameter values to IJ_Prefs.txt Prefs.set("bioformats.mergeChannels", mergeChannels); Prefs.set("bioformats.ignoreTables", ignoreTables); Prefs.set("bioformats.colorize", colorize); Prefs.set("bioformats.splitWindows", splitWindows); Prefs.set("bioformats.showMetadata", showMetadata); Prefs.set("bioformats.stitchFiles", stitchFiles); Prefs.set("bioformats.specifyRanges", specifyRanges); Prefs.set("bioformats.stackFormat", stackFormat); } catch (Exception exc) { exc.printStackTrace(); IJ.showStatus(""); if (!quiet) { String msg = exc.getMessage(); IJ.error("LOCI Bio-Formats", "Sorry, there was a problem " + "reading the data" + (msg == null ? "." : (":\n" + msg))); } } } | 55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/aa8e13dd3b099c042e6177720abecf966d5fc287/Importer.java/clean/loci/plugins/Importer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
12,
780,
1501,
13,
288,
565,
1250,
10902,
273,
1501,
480,
446,
597,
401,
3175,
18,
14963,
2932,
8863,
565,
514,
702,
273,
31203,
18,
588,
1320,
5621,
565,
368,
1493,
8693,
404,
30,
336,
1544,
358,
1696,
1493,
565,
514,
612,
273,
446,
31,
565,
368,
775,
358,
336,
1544,
628,
1237,
565,
309,
261,
20380,
13,
612,
273,
1501,
31,
565,
309,
261,
350,
422,
446,
13,
288,
1377,
368,
775,
358,
336,
1544,
628,
11522,
702,
1377,
309,
261,
2116,
480,
446,
13,
288,
3639,
514,
1696,
273,
31203,
18,
24805,
12,
2116,
16,
315,
3190,
3113,
446,
1769,
3639,
309,
261,
3190,
480,
446,
13,
612,
273,
1696,
31,
1377,
289,
565,
289,
565,
368,
309,
4573,
16,
6866,
326,
729,
364,
326,
1544,
565,
3502,
6353,
28541,
273,
394,
3502,
6353,
2932,
3678,
3113,
612,
1769,
565,
514,
1867,
273,
28541,
18,
588,
2853,
5621,
565,
514,
3968,
273,
28541,
18,
588,
4771,
5621,
565,
309,
261,
17812,
422,
446,
13,
288,
1377,
1909,
18,
10996,
329,
273,
638,
31,
1377,
327,
31,
565,
289,
565,
612,
273,
1867,
397,
3968,
31,
565,
368,
309,
1158,
923,
1544,
16,
8492,
731,
565,
309,
261,
350,
422,
446,
747,
401,
2704,
1387,
12,
350,
2934,
1808,
10756,
288,
1377,
309,
16051,
20380,
13,
288,
3639,
467,
46,
18,
1636,
2932,
1502,
7266,
21209,
17,
8976,
3113,
315,
1986,
1269,
585,
315,
397,
1850,
261,
350,
422,
446,
692,
1408,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
12,
780,
1501,
13,
288,
565,
1250,
10902,
273,
1501,
480,
446,
597,
401,
3175,
18,
14963,
2932,
8863,
565,
514,
702,
273,
31203,
18,
588,
1320,
5621,
565,
368,
1493,
8693,
404,
30,
336,
1544,
358,
1696,
1493,
565,
514,
612,
273,
446,
31,
565,
368,
775,
358,
336,
1544,
628,
1237,
565,
309,
261,
20380,
13,
612,
273,
1501,
31,
565,
309,
261,
350,
422,
446,
13,
288,
1377,
368,
775,
358,
336,
1544,
628,
11522,
702,
1377,
309,
261,
2116,
480,
446,
13,
288,
3639,
514,
1696,
273,
31203,
18,
24805,
12,
2116,
16,
315,
3190,
3113,
446,
1769,
3639,
309,
261,
3190,
480,
446,
13,
612,
273,
1696,
31,
1377,
289,
2
] |
if (!isEnabled()) | if (!isEnabled()) { | public boolean isApplicableForSelection() { if (!isEnabled()) return false; return isApplicableForSelection(getStructuredSelection()); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/PropertyDialogAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/PropertyDialogAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
27873,
1290,
6233,
1435,
288,
202,
202,
430,
16051,
291,
1526,
10756,
1082,
202,
2463,
629,
31,
202,
202,
2463,
353,
27873,
1290,
6233,
12,
588,
30733,
6233,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
27873,
1290,
6233,
1435,
288,
202,
202,
430,
16051,
291,
1526,
10756,
1082,
202,
2463,
629,
31,
202,
202,
2463,
353,
27873,
1290,
6233,
12,
588,
30733,
6233,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public String getValueForNode(Node currentNode) { | public static String getValueForNode(Node currentNode) { | public String getValueForNode(Node currentNode) { if (currentNode instanceof Element) { Element elementnode = (Element) currentNode; return elementnode.getStringValue(); } else if (currentNode instanceof Attribute) { Attribute attributenode = (Attribute) currentNode; return attributenode.getStringValue(); } else { throw new OXFException("Invalid node type: " + currentNode.getNodeTypeName()); } } | 54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/58badea7b41a81c1141da92958d77078af531e67/XFormsInstance.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsInstance.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2366,
31058,
12,
907,
13425,
13,
288,
3639,
309,
261,
2972,
907,
1276,
3010,
13,
288,
5411,
3010,
930,
2159,
273,
261,
1046,
13,
13425,
31,
5411,
327,
930,
2159,
18,
588,
19733,
5621,
3639,
289,
469,
309,
261,
2972,
907,
1276,
3601,
13,
288,
5411,
3601,
5885,
322,
20680,
273,
261,
1499,
13,
13425,
31,
5411,
327,
5885,
322,
20680,
18,
588,
19733,
5621,
3639,
289,
469,
288,
5411,
604,
394,
531,
60,
42,
503,
2932,
1941,
756,
618,
30,
315,
397,
13425,
18,
588,
907,
7947,
10663,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
514,
2366,
31058,
12,
907,
13425,
13,
288,
3639,
309,
261,
2972,
907,
1276,
3010,
13,
288,
5411,
3010,
930,
2159,
273,
261,
1046,
13,
13425,
31,
5411,
327,
930,
2159,
18,
588,
19733,
5621,
3639,
289,
469,
309,
261,
2972,
907,
1276,
3601,
13,
288,
5411,
3601,
5885,
322,
20680,
273,
261,
1499,
13,
13425,
31,
5411,
327,
5885,
322,
20680,
18,
588,
19733,
5621,
3639,
289,
469,
288,
5411,
604,
394,
531,
60,
42,
503,
2932,
1941,
756,
618,
30,
315,
397,
13425,
18,
588,
907,
7947,
10663,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Iterator i = collection.iterator(); Object[] array = new Object[collection.size()]; Object[] clone = new Object[collection.size()]; int index = 0; Object obj; while (i.hasNext()) { obj = i.next(); array[index] = obj; clone[index] = obj; index++; } shuttlesort(clone, array, 0, array.length); results = new ArrayList(); for (int j = 0; j < array.length; j++) results.add(array[j]); return results; | this.collection = collection; return sort(); | public List sort() { if (collection == null) throw new NullPointerException("No collection to sort."); Iterator i = collection.iterator(); Object[] array = new Object[collection.size()]; Object[] clone = new Object[collection.size()]; int index = 0; Object obj; while (i.hasNext()) { obj = i.next(); array[index] = obj; clone[index] = obj; index++; } shuttlesort(clone, array, 0, array.length); results = new ArrayList(); for (int j = 0; j < array.length; j++) results.add(array[j]); return results; } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/6af4fe52d7d6045034e88f4dfb4499ac42397e2f/ViewerSorter.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/ViewerSorter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
1524,
1435,
565,
288,
3639,
309,
261,
5548,
422,
446,
13,
2398,
604,
394,
10108,
2932,
2279,
1849,
358,
1524,
1199,
1769,
3639,
4498,
277,
273,
1849,
18,
9838,
5621,
3639,
1033,
8526,
225,
526,
273,
394,
1033,
63,
5548,
18,
1467,
1435,
15533,
3639,
1033,
8526,
225,
3236,
273,
394,
1033,
63,
5548,
18,
1467,
1435,
15533,
3639,
509,
770,
273,
374,
31,
3639,
1033,
1081,
31,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
5411,
1081,
273,
277,
18,
4285,
5621,
5411,
526,
63,
1615,
65,
273,
1081,
31,
5411,
3236,
63,
1615,
65,
273,
1081,
31,
5411,
770,
9904,
31,
3639,
289,
3639,
9171,
88,
1040,
499,
12,
14056,
16,
526,
16,
374,
16,
526,
18,
2469,
1769,
3639,
1686,
273,
394,
2407,
5621,
3639,
364,
261,
474,
525,
273,
374,
31,
525,
411,
526,
18,
2469,
31,
525,
27245,
2868,
1686,
18,
1289,
12,
1126,
63,
78,
19226,
3639,
327,
1686,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
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
981,
30,
377,
1071,
987,
1524,
1435,
565,
288,
3639,
309,
261,
5548,
422,
446,
13,
2398,
604,
394,
10108,
2932,
2279,
1849,
358,
1524,
1199,
1769,
3639,
4498,
277,
273,
1849,
18,
9838,
5621,
3639,
1033,
8526,
225,
526,
273,
394,
1033,
63,
5548,
18,
1467,
1435,
15533,
3639,
1033,
8526,
225,
3236,
273,
394,
1033,
63,
5548,
18,
1467,
1435,
15533,
3639,
509,
770,
273,
374,
31,
3639,
1033,
1081,
31,
3639,
1323,
261,
77,
18,
5332,
2134,
10756,
288,
5411,
1081,
273,
277,
18,
4285,
5621,
5411,
526,
63,
1615,
65,
273,
1081,
31,
5411,
3236,
63,
1615,
65,
273,
1081,
31,
5411,
770,
9904,
31,
3639,
289,
3639,
9171,
88,
1040,
499,
12,
14056,
16,
526,
16,
2
] |
public String diagnose( Throwable error ) { MojoExecutionException mee = (MojoExecutionException) DiagnosisUtils.getFromCausality( error, MojoExecutionException.class ); StringBuffer message = new StringBuffer(); message.append( "Error executing mojo" ); Object source = mee.getSource(); if ( source != null ) { message.append( ": " ).append( mee.getSource() ).append( "\n" ); } else { message.append( ".\n" ); } message.append( "\n" ).append( mee.getMessage() ); String longMessage = mee.getLongMessage(); if ( longMessage != null ) { message.append( "\n\n" ).append( longMessage ); } Throwable directCause = mee.getCause(); if ( directCause != null ) { message.append( "\n" ); String directCauseMessage = directCause.getMessage(); if ( directCauseMessage != null && mee.getMessage().indexOf( directCauseMessage ) < 0 ) { message.append( "\nEmbedded error: " ).append( directCauseMessage ); } DiagnosisUtils.appendRootCauseIfPresentAndUnique( directCause, message, false ); } return message.toString(); } | 47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/ca0e872a5ad574d1dc383eab01107d0c1c0a7169/MojoExecutionExceptionDiagnoser.java/clean/maven-core/src/main/java/org/apache/maven/usability/MojoExecutionExceptionDiagnoser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
6643,
2135,
307,
12,
4206,
555,
262,
565,
288,
3639,
18780,
312,
1340,
273,
5411,
261,
49,
10007,
14576,
13,
14539,
18050,
291,
1989,
18,
588,
1265,
23508,
407,
7919,
12,
555,
16,
18780,
18,
1106,
11272,
3639,
6674,
883,
273,
394,
6674,
5621,
3639,
883,
18,
6923,
12,
315,
668,
11274,
312,
10007,
6,
11272,
3639,
1033,
1084,
273,
312,
1340,
18,
588,
1830,
5621,
3639,
309,
261,
1084,
480,
446,
262,
3639,
288,
5411,
883,
18,
6923,
12,
6398,
315,
262,
18,
6923,
12,
312,
1340,
18,
588,
1830,
1435,
262,
18,
6923,
12,
1548,
82,
6,
11272,
3639,
289,
3639,
469,
3639,
288,
5411,
883,
18,
6923,
12,
3552,
64,
82,
6,
11272,
3639,
289,
3639,
883,
18,
6923,
12,
1548,
82,
6,
262,
18,
6923,
12,
312,
1340,
18,
24906,
1435,
11272,
3639,
514,
1525,
1079,
273,
312,
1340,
18,
588,
3708,
1079,
5621,
3639,
309,
261,
1525,
1079,
480,
446,
262,
3639,
288,
5411,
883,
18,
6923,
12,
1548,
82,
64,
82,
6,
262,
18,
6923,
12,
1525,
1079,
11272,
3639,
289,
7734,
4206,
2657,
10683,
273,
312,
1340,
18,
588,
10683,
5621,
7734,
309,
261,
2657,
10683,
480,
446,
262,
3639,
288,
5411,
883,
18,
6923,
12,
1548,
82,
6,
11272,
13491,
514,
2657,
10683,
1079,
273,
2657,
10683,
18,
24906,
5621,
13491,
309,
261,
2657,
10683,
1079,
480,
446,
597,
312,
1340,
18,
24906,
7675,
31806,
12,
2657,
10683,
1079,
262,
411,
374,
262,
5411,
288,
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,
514,
6643,
2135,
307,
12,
4206,
555,
262,
565,
288,
3639,
18780,
312,
1340,
273,
5411,
261,
49,
10007,
14576,
13,
14539,
18050,
291,
1989,
18,
588,
1265,
23508,
407,
7919,
12,
555,
16,
18780,
18,
1106,
11272,
3639,
6674,
883,
273,
394,
6674,
5621,
3639,
883,
18,
6923,
12,
315,
668,
11274,
312,
10007,
6,
11272,
3639,
1033,
1084,
273,
312,
1340,
18,
588,
1830,
5621,
3639,
309,
261,
1084,
480,
446,
262,
3639,
288,
5411,
883,
18,
6923,
12,
6398,
315,
262,
18,
6923,
12,
312,
1340,
18,
588,
1830,
1435,
262,
18,
6923,
12,
1548,
82,
6,
11272,
3639,
289,
3639,
469,
3639,
288,
5411,
883,
18,
6923,
12,
3552,
64,
82,
6,
11272,
2
] |
||
public void testCallableSetNull1() throws Exception { Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #callablesetnull1 (data CHAR(1) NULL)"); stmt.close(); try { stmt = con.createStatement(); stmt.execute("create procedure callableSetNull1 @data char(1) " + "as INSERT INTO #callablesetnull1 (data) VALUES (@data)"); stmt.close(); CallableStatement cstmt = con.prepareCall("{call callableSetNull1(?)}"); // Test CallableStatement.setNull(int,Types.NULL) cstmt.setNull(1, Types.NULL); cstmt.execute(); cstmt.close(); stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT data FROM #callablesetnull1"); assertTrue(rs.next()); // Test ResultSet.getString() assertNull(rs.getString(1)); assertTrue(rs.wasNull()); assertTrue(!rs.next()); stmt.close(); rs.close(); } finally { stmt = con.createStatement(); stmt.execute("drop procedure callableSetNull1"); stmt.close(); } } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/652c051efa4b30c605d0754c2aca1050213b5c11/CallableStatementTest.java/clean/src/test/net/sourceforge/jtds/test/CallableStatementTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11452,
694,
2041,
21,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
1991,
1538,
278,
2011,
21,
261,
892,
12090,
12,
21,
13,
3206,
2225,
1769,
3639,
3480,
18,
4412,
5621,
377,
202,
3639,
775,
288,
5411,
3480,
273,
356,
18,
2640,
3406,
5621,
5411,
3480,
18,
8837,
2932,
2640,
12131,
4140,
694,
2041,
21,
632,
892,
1149,
12,
21,
13,
315,
2398,
202,
202,
15,
315,
345,
14834,
12421,
468,
1991,
1538,
278,
2011,
21,
261,
892,
13,
13477,
261,
36,
892,
2225,
1769,
5411,
3480,
18,
4412,
5621,
5411,
10464,
3406,
276,
10589,
273,
356,
18,
9366,
1477,
2932,
95,
1991,
4140,
694,
2041,
21,
3680,
23778,
1769,
5411,
368,
7766,
10464,
3406,
18,
542,
2041,
12,
474,
16,
2016,
18,
8560,
13,
5411,
276,
10589,
18,
542,
2041,
12,
21,
16,
7658,
18,
8560,
1769,
5411,
276,
10589,
18,
8837,
5621,
5411,
276,
10589,
18,
4412,
5621,
13491,
3480,
273,
356,
18,
2640,
3406,
5621,
5411,
10842,
3597,
273,
3480,
18,
8837,
1138,
2932,
4803,
501,
4571,
468,
1991,
1538,
278,
2011,
21,
8863,
5411,
1815,
5510,
12,
5453,
18,
4285,
10663,
5411,
368,
7766,
10842,
18,
588,
780,
1435,
5411,
1815,
2041,
12,
5453,
18,
588,
780,
12,
21,
10019,
5411,
1815,
5510,
12,
5453,
18,
17416,
2041,
10663,
5411,
1815,
5510,
12,
5,
5453,
18,
4285,
10663,
5411,
3480,
18,
4412,
5621,
5411,
3597,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11452,
694,
2041,
21,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
1991,
1538,
278,
2011,
21,
261,
892,
12090,
12,
21,
13,
3206,
2225,
1769,
3639,
3480,
18,
4412,
5621,
377,
202,
3639,
775,
288,
5411,
3480,
273,
356,
18,
2640,
3406,
5621,
5411,
3480,
18,
8837,
2932,
2640,
12131,
4140,
694,
2041,
21,
632,
892,
1149,
12,
21,
13,
315,
2398,
202,
202,
15,
315,
345,
14834,
12421,
468,
1991,
1538,
278,
2011,
21,
261,
892,
13,
13477,
261,
36,
892,
2225,
1769,
5411,
3480,
18,
4412,
5621,
5411,
10464,
3406,
276,
10589,
273,
356,
18,
9366,
1477,
2932,
95,
2
] |
||
BigInteger rv; do { rv = new NativeBigInteger(bits, r).setBit(0).setBit(bits - 1); } while (!isPrime(rv, confidence)); return rv; | BigInteger rv; do { rv = new NativeBigInteger(bits, r).setBit(0).setBit(bits - 1); } while (!isPrime(rv, confidence)); return rv; | public static BigInteger makePrime(int bits, int confidence, Random r) { BigInteger rv; do { // FIXME: is this likely to get modPow()ed? // I don't suppose it matters, there isn't much overhead rv = new NativeBigInteger(bits, r).setBit(0).setBit(bits - 1); } while (!isPrime(rv, confidence)); return rv; } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/0400e73e7503ab43211657c44d8448afd6346cce/DSAGroup.java/clean/src/freenet/crypt/DSAGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
10246,
1221,
23327,
12,
474,
4125,
16,
509,
15588,
16,
8072,
436,
13,
288,
202,
24198,
5633,
31,
202,
2896,
288,
1082,
565,
368,
9852,
30,
353,
333,
10374,
358,
336,
681,
28289,
1435,
329,
35,
1082,
565,
368,
467,
2727,
1404,
1169,
4150,
518,
4834,
5432,
16,
1915,
5177,
1404,
9816,
23188,
1082,
202,
4962,
273,
394,
16717,
24198,
12,
6789,
16,
436,
2934,
542,
5775,
12,
20,
2934,
542,
5775,
12,
6789,
300,
404,
1769,
202,
97,
1323,
16051,
291,
23327,
12,
4962,
16,
15588,
10019,
202,
2463,
5633,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
10246,
1221,
23327,
12,
474,
4125,
16,
509,
15588,
16,
8072,
436,
13,
288,
202,
24198,
5633,
31,
202,
2896,
288,
1082,
565,
368,
9852,
30,
353,
333,
10374,
358,
336,
681,
28289,
1435,
329,
35,
1082,
565,
368,
467,
2727,
1404,
1169,
4150,
518,
4834,
5432,
16,
1915,
5177,
1404,
9816,
23188,
1082,
202,
4962,
273,
394,
16717,
24198,
12,
6789,
16,
436,
2934,
542,
5775,
12,
20,
2934,
542,
5775,
12,
6789,
300,
404,
1769,
202,
97,
1323,
16051,
291,
23327,
12,
4962,
16,
15588,
10019,
202,
2463,
5633,
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
] |
public org.quickfix.field.PutOrCall getPutOrCall() throws FieldNotFound { org.quickfix.field.PutOrCall value = new org.quickfix.field.PutOrCall(); | public quickfix.field.PutOrCall getPutOrCall() throws FieldNotFound { quickfix.field.PutOrCall value = new quickfix.field.PutOrCall(); | public org.quickfix.field.PutOrCall getPutOrCall() throws FieldNotFound { org.quickfix.field.PutOrCall value = new org.quickfix.field.PutOrCall(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix41/OrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
6426,
1162,
1477,
1689,
322,
1162,
1477,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
6426,
1162,
1477,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
6426,
1162,
1477,
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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
18,
1518,
18,
6426,
1162,
1477,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public long getTime(); | long getTime(); | public long getTime(); | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/edfbbd9ac4b0509913ee0d047a6b893c082271af/DeadlineTimerEvent.java/clean/csmart/src/org/cougaar/tools/csmart/ldm/event/DeadlineTimerEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
6135,
5621,
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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
1525,
6135,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
table.addValue(new Value("DIRECTORY_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); | table.addValue(new Value("DIRECTORY_NAME", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); | public void createRepositorySchema(IProgressMonitor monitor, boolean upgrade) throws KettleDatabaseException { Row table; String sql; String tablename; String indexname; String keyfield[]; String user[], pass[], code[], desc[], prof[]; int KEY = 9; // integer, no need for bigint! log.logBasic(toString(), "Starting to create or modify the repository tables..."); if (monitor!=null) monitor.beginTask((upgrade?"Upgrading ":"Creating")+" the Kettle repository...", 31); setAutoCommit(true); ////////////////////////////////////////////////////////////////////////////////// // R_DATABASE_TYPE // // Create table... // boolean ok_database_type = true; table = new Row(); tablename = "R_DATABASE_TYPE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DATABASE_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DATABASE_TYPE", false); if (sql != null && sql.length() > 0) { try { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created/altered table " + tablename); } catch (KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to create or modify table " + tablename, dbe); } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_database_type) { // // Populate... // code = DatabaseMeta.getDBTypeDescList(); desc = DatabaseMeta.getDBTypeDescLongList(); database.prepareInsert(table, tablename); for (int i = 1; i < code.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_DATABASE_TYPE FROM " + tablename + " WHERE CODE = '" + code[i] + "'"); if (lookup == null) { long nextid = getNextDatabaseTypeID(); table = new Row(); table.addValue(new Value("ID_DATABASE_TYPE", nextid)); table.addValue(new Value("CODE", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); database.setValuesInsert(table); database.insertRow(); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch (KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_DATABASE_CONTYPE // // Create table... // boolean ok_database_contype = true; table = new Row(); tablename = "R_DATABASE_CONTYPE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DATABASE_CONTYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DATABASE_CONTYPE", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_database_contype) { // // Populate with data... // code = DatabaseMeta.access_type_desc; desc = DatabaseMeta.db_access_desc_long; database.prepareInsert(table, tablename); for (int i = 0; i < code.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_DATABASE_CONTYPE FROM " + tablename + " WHERE CODE = '" + code[i] + "'"); if (lookup == null) { long nextid = getNextDatabaseConnectionTypeID(); table = new Row(); table.addValue(new Value("ID_DATABASE_CONTYPE", nextid)); table.addValue(new Value("CODE", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); database.setValuesInsert(table); database.insertRow(); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_NOTE // // Create table... table = new Row(); tablename = "R_NOTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_NOTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("GUI_LOCATION_X", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_LOCATION_Y", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_LOCATION_WIDTH", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_LOCATION_HEIGHT", Value.VALUE_TYPE_INTEGER, 6, 0)); sql = database.getDDL(tablename, table, null, false, "ID_NOTE", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_DATABASE // // Create table... table = new Row(); tablename = "R_DATABASE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DATABASE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_DATABASE_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DATABASE_CONTYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("HOST_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DATABASE_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("PORT", Value.VALUE_TYPE_INTEGER, 7, 0)); table.addValue(new Value("USERNAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("PASSWORD", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("SERVERNAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DATA_TBS", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("INDEX_TBS", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DATABASE", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_DATABASE_ATTRIBUTE // // Create table... table = new Row(); tablename = "R_DATABASE_ATTRIBUTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DATABASE_ATTRIBUTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DATABASE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DATABASE_ATTRIBUTE", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_AK"; keyfield = new String[] { "ID_DIRECTORY_PARENT", "DIRECTORY_NAME" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_DIRECTORY // // Create table... table = new Row(); tablename = "R_DIRECTORY"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DIRECTORY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DIRECTORY_PARENT", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("DIRECTORY_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DIRECTORY", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_AK"; keyfield = new String[] { "ID_DIRECTORY_PARENT", "DIRECTORY_NAME" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_TRANSFORMATION // // Create table... table = new Row(); tablename = "R_TRANSFORMATION"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DIRECTORY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_STEP_READ", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_WRITE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_INPUT", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_OUTPUT", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_UPDATE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DATABASE_LOG", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("TABLE_NAME_LOG", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("USE_BATCHID", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("USE_LOGFIELD", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("ID_DATABASE_MAXDATE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("TABLE_NAME_MAXDATE", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("FIELD_NAME_MAXDATE", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("OFFSET_MAXDATE", Value.VALUE_TYPE_NUMBER, 12, 2)); table.addValue(new Value("DIFF_MAXDATE", Value.VALUE_TYPE_NUMBER, 12, 2)); table.addValue(new Value("MODIFIED_USER", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("MODIFIED_DATE", Value.VALUE_TYPE_DATE, 20, 0)); table.addValue(new Value("SIZE_ROWSET", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, "ID_TRANSFORMATION", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } // In case of an update, the added column R_TRANSFORMATION.ID_DIRECTORY == NULL!!! database.execStatement("UPDATE " + tablename + " SET ID_DIRECTORY=0 WHERE ID_DIRECTORY IS NULL"); if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_TRANS_ATTRIBUTE // // Create table... table = new Row(); tablename = "R_TRANS_ATTRIBUTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_TRANS_ATTRIBUTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NR", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("VALUE_NUM", Value.VALUE_TYPE_NUMBER, 13, 2)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_TRANS_ATTRIBUTE", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_TRANS_ATTRIBUTE_LOOKUP"; keyfield = new String[] { "ID_TRANSFORMATION", "CODE", "NR" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_DEPENDENCY // // Create table... table = new Row(); tablename = "R_DEPENDENCY"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DEPENDENCY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DATABASE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("TABLE_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("FIELD_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DEPENDENCY", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); // // R_TRANS_HOP // // Create table... table = new Row(); tablename = "R_TRANS_HOP"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_TRANS_HOP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_FROM", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_TO", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ENABLED", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_TRANS_HOP", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); /////////////////////////////////////////////////////////////////////////////// // R_TRANS_STEP_CONDITION // table = new Row(); tablename = "R_TRANS_STEP_CONDITION"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_CONDITION", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, null, false); if (sql != null && sql.length() > 0) // Doesn't exists: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); /////////////////////////////////////////////////////////////////////////////// // R_CONDITION // table = new Row(); tablename = "R_CONDITION"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_CONDITION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_CONDITION_PARENT", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NEGATED", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("OPERATOR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("LEFT_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("CONDITION_FUNCTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("RIGHT_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_VALUE_RIGHT", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_CONDITION", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); /////////////////////////////////////////////////////////////////////////////// // R_VALUE // tablename = "R_VALUE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table = new Row(); table.addValue(new Value("ID_VALUE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("VALUE_TYPE", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("IS_NULL", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_VALUE", false); if (sql != null && sql.length() > 0) // Doesn't exists: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_STEP_TYPE // // Create table... boolean ok_step_type = true; table = new Row(); tablename = "R_STEP_TYPE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_STEP_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("HELPTEXT", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_STEP_TYPE", false); if (sql != null && sql.length() > 0) // Doesn't exists: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_step_type) { updateStepTypes(); log.logDetailed(toString(), "Populated table " + tablename); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_STEP // // Create table table = new Row(); tablename = "R_STEP"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_STEP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_STEP_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("DISTRIBUTE", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("COPIES", Value.VALUE_TYPE_INTEGER, 3, 0)); table.addValue(new Value("GUI_LOCATION_X", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_LOCATION_Y", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_DRAW", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_STEP", false); if (sql != null && sql.length() > 0) // Doesn't exists: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_STEP_ATTRIBUTE // // Create table... tablename = "R_STEP_ATTRIBUTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table = new Row(); table.addValue(new Value("ID_STEP_ATTRIBUTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NR", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("VALUE_NUM", Value.VALUE_TYPE_NUMBER, 13, 2)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_STEP_ATTRIBUTE", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_LOOKUP"; keyfield = new String[] { "ID_STEP", "CODE", "NR" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_STEP_DATABASE // // Keeps the links between transformation steps and databases. // That way investigating dependencies becomes easier to program. // // Create table... tablename = "R_STEP_DATABASE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table = new Row(); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DATABASE", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, null, false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_LU1"; keyfield = new String[] { "ID_TRANSFORMATION" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, false, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } try { indexname = "IDX_" + tablename.substring(2) + "_LU2"; keyfield = new String[] { "ID_DATABASE" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, false, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_TRANS_NOTE // // Create table... table = new Row(); tablename = "R_TRANS_NOTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_NOTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, null, false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_LOGLEVEL // // Create table... boolean ok_loglevel = true; tablename = "R_LOGLEVEL"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table = new Row(); table.addValue(new Value("ID_LOGLEVEL", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_LOGLEVEL", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_loglevel) { // // Populate with data... // code = LogWriter.logLevelDescription; desc = LogWriter.log_level_desc_long; database.prepareInsert(table, tablename); for (int i = 1; i < code.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_LOGLEVEL FROM " + tablename + " WHERE CODE = '" + code[i] + "'"); if (lookup == null) { long nextid = getNextLoglevelID(); table = new Row(); table.addValue(new Value("ID_LOGLEVEL", nextid)); table.addValue(new Value("CODE", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); database.setValuesInsert(table); database.insertRow(); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_LOG // // Create table... table = new Row(); tablename = "R_LOG"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_LOG", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_LOGLEVEL", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("LOGTYPE", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("FILENAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("FILEEXTENTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ADD_DATE", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("ADD_TIME", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("ID_DATABASE_LOG", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("TABLE_NAME_LOG", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_LOG", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOB // // Create table... table = new Row(); tablename = "R_JOB"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DIRECTORY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_DATABASE_LOG", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("TABLE_NAME_LOG", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("MODIFIED_USER", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("MODIFIED_DATE", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOB", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOBENTRY_TYPE // // Create table... boolean ok_jobentry_type = true; table = new Row(); tablename = "R_JOBENTRY_TYPE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOBENTRY_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOBENTRY_TYPE", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_jobentry_type) { // // Populate with data... // updateJobEntryTypes(); log.logDetailed(toString(), "Populated table " + tablename); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOBENTRY // // Create table... table = new Row(); tablename = "R_JOBENTRY"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOBENTRY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOBENTRY", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOBENTRY_COPY // // Create table... table = new Row(); tablename = "R_JOBENTRY_COPY"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOBENTRY_COPY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NR", Value.VALUE_TYPE_INTEGER, 4, 0)); table.addValue(new Value("GUI_LOCATION_X", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_LOCATION_Y", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_DRAW", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("PARALLEL", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOBENTRY_COPY", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOBENTRY_ATTRIBUTE // // Create table... table = new Row(); tablename = "R_JOBENTRY_ATTRIBUTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOBENTRY_ATTRIBUTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NR", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("VALUE_NUM", Value.VALUE_TYPE_NUMBER, 13, 2)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOBENTRY_ATTRIBUTE", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_LOOKUP"; keyfield = new String[] { "ID_JOBENTRY_ATTRIBUTE", "CODE", "NR" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOB_HOP // // Create table... table = new Row(); tablename = "R_JOB_HOP"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOB_HOP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY_COPY_FROM", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY_COPY_TO", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ENABLED", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("EVALUATION", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("UNCONDITIONAL", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOB_HOP", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOB_NOTE // // Create table... table = new Row(); tablename = "R_JOB_NOTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_NOTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, null, false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); /////////////////////////////////////////////////////////////////////////////////// // // User tables... // /////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////// // // R_PROFILE // // Create table... Map profiles = new Hashtable(); boolean ok_profile = true; tablename = "R_PROFILE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table = new Row(); table.addValue(new Value("ID_PROFILE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_PROFILE", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_profile) { // // Populate with data... // code = new String[] { "Administrator", "User", "Read-only" }; desc = new String[] { "Administrator profile, manage users", "Normal user, all tools", "Read-only users" }; database.prepareInsert(table, tablename); for (int i = 0; i < code.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_PROFILE FROM " + tablename + " WHERE NAME = '" + code[i] + "'"); if (lookup == null) { long nextid = getNextProfileID(); table = new Row(); table.addValue(new Value("ID_PROFILE", nextid)); table.addValue(new Value("NAME", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); database.setValuesInsert(table); database.insertRow(); log.logDetailed(toString(), "Inserted new row into table "+tablename+" : "+table); profiles.put(code[i], new Long(nextid)); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_USER // // Create table... Map users = new Hashtable(); boolean ok_user = true; table = new Row(); tablename = "R_USER"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_USER", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_PROFILE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("LOGIN", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("PASSWORD", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ENABLED", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_USER", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_user) { // // Populate with data... // user = new String[] { "admin", "guest" }; pass = new String[] { "admin", "guest" }; code = new String[] { "Administrator", "Guest account" }; desc = new String[] { "User manager", "Read-only guest account" }; prof = new String[] { "Administrator", "Read-only" }; database.prepareInsert(table, tablename); for (int i = 0; i < user.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_USER FROM " + tablename + " WHERE LOGIN = '" + user[i] + "'"); if (lookup == null) { long nextid = getNextUserID(); String password = Encr.encryptPassword(pass[i]); Long profileID = (Long)profiles.get( prof[i] ); long id_profile = -1L; if (profileID!=null) id_profile = profileID.longValue(); table = new Row(); table.addValue(new Value("ID_USER", nextid)); table.addValue(new Value("ID_PROFILE", id_profile)); table.addValue(new Value("LOGIN", user[i])); table.addValue(new Value("PASSWORD", password)); table.addValue(new Value("NAME", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); table.addValue(new Value("ENABLED", true)); database.setValuesInsert(table); database.insertRow(); users.put(user[i], new Long(nextid)); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_PERMISSION // // Create table... Map permissions = new Hashtable(); boolean ok_permission = true; table = new Row(); tablename = "R_PERMISSION"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_PERMISSION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_PERMISSION", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_permission) { // // Populate with data... // code = PermissionMeta.permission_type_desc; desc = PermissionMeta.permissionTypeLongDesc; database.prepareInsert(table, tablename); for (int i = 1; i < code.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_PERMISSION FROM " + tablename + " WHERE CODE = '" + code[i] + "'"); if (lookup == null) { long nextid = getNextPermissionID(); table = new Row(); table.addValue(new Value("ID_PERMISSION", nextid)); table.addValue(new Value("CODE", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); database.setValuesInsert(table); database.insertRow(); log.logDetailed(toString(), "Inserted new row into table "+tablename+" : "+table); permissions.put(code[i], new Long(nextid)); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_PROFILE_PERMISSION // // Create table... boolean ok_profile_permission = true; table = new Row(); tablename = "R_PROFILE_PERMISSION"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_PROFILE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_PERMISSION", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, null, false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_PK"; keyfield = new String[] { "ID_PROFILE", "ID_PERMISSION" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_profile_permission) { database.prepareInsert(table, tablename); // Administrator default: Long profileID = (Long)profiles.get( "Administrator"); long id_profile = -1L; if (profileID!=null) id_profile = profileID.longValue(); log.logDetailed(toString(), "Administrator profile id = "+id_profile); String perms[] = new String[] { PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_ADMIN], PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_TRANSFORMATION], PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_JOB], PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_SCHEMA] }; for (int i=0;i < perms.length ; i++) { Long permissionID = (Long) permissions.get(perms[i]); long id_permission = -1L; if (permissionID!=null) id_permission = permissionID.longValue(); log.logDetailed(toString(), "Permission id for '"+perms[i]+"' = "+id_permission); Row lookup = null; if (upgrade) { String lookupSQL = "SELECT ID_PROFILE FROM " + tablename + " WHERE ID_PROFILE=" + id_profile + " AND ID_PERMISSION=" + id_permission; log.logDetailed(toString(), "Executing SQL: "+lookupSQL); lookup = database.getOneRow(lookupSQL); } if (lookup == null) // if the combination is not yet there, insert... { String insertSQL="INSERT INTO "+tablename+"(ID_PROFILE, ID_PERMISSION) VALUES("+id_profile+","+id_permission+")"; database.execStatement(insertSQL); log.logDetailed(toString(), "insertSQL = ["+insertSQL+"]"); } else { log.logDetailed(toString(), "Found id_profile="+id_profile+", id_permission="+id_permission); } } // User profile profileID = (Long)profiles.get( "User" ); id_profile = -1L; if (profileID!=null) id_profile = profileID.longValue(); log.logDetailed(toString(), "User profile id = "+id_profile); perms = new String[] { PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_TRANSFORMATION], PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_JOB], PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_SCHEMA] }; for (int i = 0; i < perms.length; i++) { Long permissionID = (Long) permissions.get(perms[i]); long id_permission = -1L; if (permissionID!=null) id_permission = permissionID.longValue(); Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_PROFILE FROM " + tablename + " WHERE ID_PROFILE=" + id_profile + " AND ID_PERMISSION=" + id_permission); if (lookup == null) // if the combination is not yet there, insert... { table = new Row(); table.addValue(new Value("ID_PROFILE", id_profile)); table.addValue(new Value("ID_PERMISSION", id_permission)); database.setValuesInsert(table); database.insertRow(); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); if (monitor!=null) monitor.done(); log.logBasic(toString(), (upgrade?"Upgraded":"Created")+ " "+repositoryTableNames.length+" repository tables."); } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/6c73aa3e89e2f72b6cdd60a000c66c35321e01a2/Repository.java/clean/kettle/src/be/ibridge/kettle/repository/Repository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3305,
3078,
12,
45,
5491,
7187,
6438,
16,
1250,
8400,
13,
1216,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
1999,
1014,
31,
202,
202,
780,
1847,
31,
202,
202,
780,
19096,
31,
202,
202,
780,
770,
529,
31,
202,
202,
780,
498,
1518,
8526,
31,
202,
202,
780,
729,
63,
6487,
1342,
63,
6487,
981,
63,
6487,
3044,
63,
6487,
9214,
8526,
31,
202,
202,
474,
5311,
273,
2468,
31,
368,
3571,
16,
1158,
1608,
364,
5446,
474,
5,
202,
202,
1330,
18,
1330,
8252,
12,
10492,
9334,
315,
11715,
358,
752,
578,
5612,
326,
3352,
4606,
7070,
1769,
202,
202,
430,
261,
10259,
5,
33,
2011,
13,
6438,
18,
10086,
2174,
12443,
15097,
7225,
1211,
15210,
6153,
11092,
7923,
9078,
326,
1475,
278,
5929,
3352,
7070,
16,
8231,
1769,
7734,
21780,
5580,
12,
3767,
1769,
9506,
202,
14300,
3517,
759,
202,
202,
759,
534,
67,
22366,
67,
2399,
202,
202,
759,
202,
202,
759,
1788,
1014,
2777,
202,
202,
759,
202,
202,
6494,
1529,
67,
6231,
67,
723,
273,
638,
31,
202,
202,
2121,
273,
394,
6556,
5621,
202,
202,
7032,
14724,
273,
315,
54,
67,
22366,
67,
2399,
14432,
202,
202,
430,
261,
10259,
5,
33,
2011,
13,
6438,
18,
1717,
2174,
2932,
14294,
1014,
13773,
7032,
14724,
1769,
202,
202,
2121,
18,
1289,
620,
12,
2704,
1445,
2932,
734,
67,
22366,
67,
2399,
3113,
1445,
18,
4051,
67,
2399,
67,
14217,
16,
5311,
16,
374,
10019,
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,
752,
3305,
3078,
12,
45,
5491,
7187,
6438,
16,
1250,
8400,
13,
1216,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
1999,
1014,
31,
202,
202,
780,
1847,
31,
202,
202,
780,
19096,
31,
202,
202,
780,
770,
529,
31,
202,
202,
780,
498,
1518,
8526,
31,
202,
202,
780,
729,
63,
6487,
1342,
63,
6487,
981,
63,
6487,
3044,
63,
6487,
9214,
8526,
31,
202,
202,
474,
5311,
273,
2468,
31,
368,
3571,
16,
1158,
1608,
364,
5446,
474,
5,
202,
202,
1330,
18,
1330,
8252,
12,
10492,
9334,
315,
11715,
358,
752,
578,
5612,
326,
3352,
4606,
7070,
1769,
202,
202,
430,
261,
10259,
5,
33,
2011,
13,
6438,
18,
10086,
2174,
2
] |
public InteropGBean(String objectName, String strprop, Properties properties) { this.objectName = objectName; | public InteropGBean(String name, String strprop, Properties properties) { this.name = name; | public InteropGBean(String objectName, String strprop, Properties properties) { this.objectName = objectName; this.strprop = strprop; this.properties = (properties == null ? new Properties() : properties); } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/InteropGBean.java/buggy/modules/interop/src/java/org/apache/geronimo/interop/InteropGBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5294,
556,
43,
3381,
12,
780,
12282,
16,
514,
609,
5986,
16,
6183,
1790,
13,
288,
3639,
333,
18,
1612,
461,
273,
12282,
31,
3639,
333,
18,
701,
5986,
273,
609,
5986,
31,
3639,
333,
18,
4738,
273,
261,
4738,
422,
446,
692,
394,
6183,
1435,
294,
1790,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5294,
556,
43,
3381,
12,
780,
12282,
16,
514,
609,
5986,
16,
6183,
1790,
13,
288,
3639,
333,
18,
1612,
461,
273,
12282,
31,
3639,
333,
18,
701,
5986,
273,
609,
5986,
31,
3639,
333,
18,
4738,
273,
261,
4738,
422,
446,
692,
394,
6183,
1435,
294,
1790,
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
] |
GeronimoServer server = (GeronimoServer) getServer().getAdapter(GeronimoServer.class); | GeronimoServer server = (GeronimoServer) getServer().getAdapter( GeronimoServer.class); | private String getPassword() { GeronimoServer server = (GeronimoServer) getServer().getAdapter(GeronimoServer.class); return server.getAdminPassword(); } | 10123 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10123/f0379f8bdbd16177c59938ae9cc120c66d007e75/GeronimoServerBehaviour.java/clean/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerBehaviour.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
17397,
1435,
288,
3639,
611,
264,
265,
381,
83,
2081,
1438,
273,
261,
43,
264,
265,
381,
83,
2081,
13,
11543,
7675,
588,
4216,
12,
611,
264,
265,
381,
83,
2081,
18,
1106,
1769,
3639,
327,
1438,
18,
588,
4446,
3913,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1152,
514,
17397,
1435,
288,
3639,
611,
264,
265,
381,
83,
2081,
1438,
273,
261,
43,
264,
265,
381,
83,
2081,
13,
11543,
7675,
588,
4216,
12,
611,
264,
265,
381,
83,
2081,
18,
1106,
1769,
3639,
327,
1438,
18,
588,
4446,
3913,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int k_c = Math.min(database.size(), 25 * k); | int k_c = Math.min(database.size(), 15 * k); | public void runInTime(Database<DoubleVector> database) throws IllegalStateException { try { if (database.dimensionality() < dim) throw new IllegalStateException("Dimensionality of data < parameter l! " + "(" + database.dimensionality() + " < " + dim + ")"); // current number of seeds // todo int k_c = Math.min(database.size(), 25 * k); // current dimensionality associated with each seed int dim_c = database.dimensionality(); // pick k0 > k points from the database List<Cluster> clusters = initialSeeds(database, k_c); double beta = Math.exp(-Math.log((double) dim_c / (double) dim) * Math.log(1 / alpha) / Math.log((double) k_c / (double) k)); while (k_c > k) { if (isVerbose()) { System.out.println("\rCurrent number of clusters: " + clusters.size() + ". "); } // find partitioning induced by the seeds of the clusters assign(database, clusters); // determine current subspace associated with each cluster for (Cluster cluster : clusters) { if (cluster.objectIDs.size() > 0) cluster.basis = findBasis(database, cluster, dim_c); } // reduce number of seeds and dimensionality associated with each seed k_c = (int) Math.max(k, k_c * alpha); dim_c = (int) Math.max(dim, dim_c * beta); merge(database, clusters, k_c, dim_c); } assign(database, clusters); if (isVerbose()) { System.out.println("\nNumber of clusters: " + clusters.size() + ". "); } // get the result Integer[][] ids = new Integer[clusters.size()][]; int i = 0; for (Cluster c : clusters) { ids[i++] = c.objectIDs.toArray(new Integer[c.objectIDs.size()]); } this.result = new Clusters<DoubleVector>(ids, database); } catch (Exception e) { e.printStackTrace(); throw new IllegalStateException(e); } } | 5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/03e4237bca6fc6fbf2c040ef249f2e22f2937e03/ORCLUS.java/clean/src/de/lmu/ifi/dbs/algorithm/ORCLUS.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
382,
950,
12,
4254,
32,
27047,
34,
2063,
13,
1216,
5477,
288,
565,
775,
288,
1377,
309,
261,
6231,
18,
11808,
7919,
1435,
411,
2464,
13,
3639,
604,
394,
5477,
2932,
8611,
7919,
434,
501,
411,
1569,
328,
5,
315,
397,
4766,
3639,
12452,
397,
2063,
18,
11808,
7919,
1435,
397,
315,
411,
315,
397,
2464,
397,
7310,
1769,
1377,
368,
783,
1300,
434,
19076,
1377,
368,
10621,
1377,
509,
417,
67,
71,
273,
2361,
18,
1154,
12,
6231,
18,
1467,
9334,
4711,
380,
417,
1769,
1377,
368,
783,
29912,
3627,
598,
1517,
5009,
1377,
509,
2464,
67,
71,
273,
2063,
18,
11808,
7919,
5621,
1377,
368,
6002,
417,
20,
405,
417,
3143,
628,
326,
2063,
1377,
987,
32,
3629,
34,
9566,
273,
2172,
1761,
9765,
12,
6231,
16,
417,
67,
71,
1769,
1377,
1645,
6796,
273,
2361,
18,
2749,
19236,
10477,
18,
1330,
12443,
9056,
13,
2464,
67,
71,
342,
261,
9056,
13,
2464,
13,
380,
2361,
18,
1330,
12,
21,
342,
4190,
13,
342,
11794,
2361,
18,
1330,
12443,
9056,
13,
417,
67,
71,
342,
261,
9056,
13,
417,
10019,
1377,
1323,
261,
79,
67,
71,
405,
417,
13,
288,
3639,
309,
261,
291,
14489,
10756,
288,
1850,
2332,
18,
659,
18,
8222,
31458,
86,
3935,
1300,
434,
9566,
30,
315,
397,
9566,
18,
1467,
1435,
397,
3552,
21821,
315,
1769,
3639,
289,
3639,
368,
1104,
3590,
310,
1547,
26372,
635,
326,
19076,
434,
326,
9566,
3639,
2683,
12,
6231,
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,
282,
1071,
918,
1086,
382,
950,
12,
4254,
32,
27047,
34,
2063,
13,
1216,
5477,
288,
565,
775,
288,
1377,
309,
261,
6231,
18,
11808,
7919,
1435,
411,
2464,
13,
3639,
604,
394,
5477,
2932,
8611,
7919,
434,
501,
411,
1569,
328,
5,
315,
397,
4766,
3639,
12452,
397,
2063,
18,
11808,
7919,
1435,
397,
315,
411,
315,
397,
2464,
397,
7310,
1769,
1377,
368,
783,
1300,
434,
19076,
1377,
368,
10621,
1377,
509,
417,
67,
71,
273,
2361,
18,
1154,
12,
6231,
18,
1467,
9334,
4711,
380,
417,
1769,
1377,
368,
783,
29912,
3627,
598,
1517,
5009,
1377,
509,
2464,
67,
71,
273,
2063,
18,
11808,
7919,
5621,
1377,
368,
6002,
417,
20,
405,
417,
3143,
628,
326,
2
] |
final int CODES_PER_PAGE = 51; int count = 0; int dispCount = 0; int total = 0; int skip = 0; | public void doLocaleCodeList(WebContext ctx, String xpath, NodeSet.NodeSetTexter tx, Set fullSet) { final int CODES_PER_PAGE = 51; int count = 0; int dispCount = 0; int total = 0; int skip = 0; NodeSet mySet = NodeSet.loadFromPath(ctx, xpath, fullSet); total = mySet.count(); boolean sortAlpha = ctx.prefBool(PREF_SORTALPHA); Map sortedMap = mySet.getSorted(sortAlpha?tx:new DraftFirstTexter(tx)); Hashtable changes = (Hashtable)ctx.getByLocale(xpath); if(tx == null) { tx = new NullTexter(); } // prepare a new hashtable if(changes==null) { changes = new Hashtable(); // ?? TODO: do we need to create a hashtable here? } // NAVIGATION .. calculate skips.. String str = ctx.field("skip"); if((str!=null)&&(str.length()>0)) { skip = new Integer(str).intValue(); } if(skip<=0) { skip = 0; } else { int prevSkip = skip - CODES_PER_PAGE; if(prevSkip<0) { prevSkip = 0; } ctx.println("<a href=\"" + ctx.url() + "&skip=" + new Integer(prevSkip) + "\">" + "Back..." + "</a><br/> "); if(skip>=total) { skip = 0; } } // calculat nextSkip int from = skip+1; int nextSkip = skip + CODES_PER_PAGE; if(nextSkip >= total) { nextSkip = -1; } else { ctx.println("<a href=\"" + ctx.url() + "&skip=" + new Integer(nextSkip) + "\">" + "More..." + "</a> "); } int to = from + CODES_PER_PAGE-1; if(to >= total) { to = total; } // Print navigation ctx.println("Displaying items " + from + " to " + to + " of " + total + "<br/>"); { WebContext nuCtx = new WebContext(ctx); nuCtx.addQuery(PREF_SORTALPHA, !sortAlpha); nuCtx.println("Sorted <a href='" + nuCtx.url() + "'>" + ((sortAlpha)?"Alphabetically":"Draft-first") + "</a><br/>"); } // Form: ctx.println("<form method=POST action='" + ctx.base() + "'>"); ctx.printUrlAsHiddenFields(); ctx.println("<table class='list' border=1>"); if(ctx.session.user != null) { ctx.println("<input type=submit value=Save>"); } ctx.println("<tr>"); ctx.println(" <th class='heading' bgcolor='#DDDDDD' colspan=2>Name<br/><tt>Code</tt></th>"); ctx.println(" <th class='heading' bgcolor='#DDDDDD' colspan=1>Best<br/>"); ctx.printHelpLink("/Best"); ctx.println("</th>"); ctx.println(" <th class='heading' bgcolor='#DDDDDD' colspan=1>Contents</th>"); ctx.println("</tr>"); // process items.. for(Iterator e = sortedMap.values().iterator();e.hasNext();) { NodeSet.NodeSetEntry f = (NodeSet.NodeSetEntry)e.next(); count++; if(skip > 0) { --skip; continue; } dispCount++; String type = f.type; String main = null; String mainFallback = null; int mainDraft = 0; // count String prop = null; if(f.main != null) { main = LDMLUtilities.getNodeValue(f.main); if(LDMLUtilities.isNodeDraft(f.main)) { mainDraft = 1; // for now: one draft } } int nRows = 1; // the 'new' line (user edited) nRows ++; // 'main' // are we showing a fallback locale in the 'current' slot? if( (f.fallback != null) && // if we have a fallback ( (mainDraft > 0) || (f.main == null) ) ) { mainFallback = f.fallbackLocale; if(mainDraft > 0) { nRows ++; // fallback } }else if (mainDraft > 0) { nRows ++; // for the Draft entry } if(f.proposed != null) { nRows ++; prop = LDMLUtilities.getNodeValue(f.proposed); } // Analyze user input. String checked = null; // What option has the user checked? String newString = null; // What option has the user checked? if(changes != null) { checked = (String)changes.get(type + SUBVETTING); // fetch VETTING data newString = (String)changes.get(type + SUBNEW); // fetch NEW data } if(checked == null) { checked = NOCHANGE; } ctx.println("<tr>"); // 1. name/code ctx.println("<th valign=top align=left class='name' colspan=2 rowspan=" + (nRows-1) + ">" + tx.text(f) + ""); if(f.key != null) { ctx.println("<br/><tt>(" + f.key + ")</tt>"); } ctx.println("</th>"); // Now there are a pair of columns for each of the following. // 2. fallback if(mainFallback != null) { ctx.println("<td align=right class='fallback'>"); ctx.println("from " + "<a href=\"" + ctx.base() + "?x=" + ctx.field("x") + "&_=" + mainFallback + "\">" + new ULocale(mainFallback).getDisplayName(new ULocale("en_US")) + "</a>"); writeRadio(ctx,xpath,type,CURRENT,checked); ctx.println("</td>"); ctx.println("<td class='fallback'>"); ctx.println(LDMLUtilities.getNodeValue(f.fallback)); ctx.println("</td>"); } else if((main!=null)&&(mainDraft==0)) { ctx.println("<td align=right class='current'>"); ctx.println("current"); writeRadio(ctx,xpath,type,CURRENT,checked); ctx.println("</td>"); ctx.println("<td class='current'>"); ctx.println(main); ctx.println("</td>"); } else /* if(main == null) */ { ctx.println("<td align=right class='missing'>"); ctx.println("<i>current</i>"); writeRadio(ctx,xpath,type,CURRENT,checked); ctx.println("</td>"); ctx.println("<td title=\"Data missing - raw code shown.\" class='missing'><tt>"); ctx.println(type); // in typewriter <tt> to show that it is a code. ctx.println("</tt></td>"); } ctx.println("</tr>"); ctx.println("<tr>"); // Draft item if(mainDraft > 0) { ctx.println("<td align=right class='draft'>"); ctx.println("draft"); writeRadio(ctx,xpath,type,DRAFT,checked); ctx.println("</td>"); ctx.println("<td class='draft'>"); ctx.println(main); ctx.println("</td>"); ctx.println("</tr>"); ctx.println("<tr>"); } // Proposed item if(prop != null) { ctx.println("<td align=right class='proposed'>"); ctx.println("proposed"); writeRadio(ctx,xpath,type,PROPOSED,checked); ctx.println("</td>"); ctx.println("<td class='proposed'>"); ctx.println(prop); ctx.println("</td>"); ctx.println("</tr>"); ctx.println("<tr>"); } //'nochange' and type ctx.println("<th class='type'>"); ctx.println("<tt>" + type + "</tt>"); ctx.println("</th"); ctx.println("<td class='nochange'>"); writeRadio(ctx,xpath,type,NOCHANGE,checked); ctx.println("<font size=-2>No change</font>"); ctx.println("</td>"); // edit text ctx.println("<td align=right class='new'>"); ctx.println("change"); writeRadio(ctx,xpath,type,NEW,checked); ctx.println("</td>"); ctx.println("<td class='new'>"); String change = ""; if(changes != null) { // change = (String)changes.get(type + "//n"); } ctx.print("<input size=50 class='inputbox' "); ctx.print("onblur=\"if (value == '') {value = '" + UNKNOWNCHANGE + "'}\" onfocus=\"if (value == '" + UNKNOWNCHANGE + "') {value =''}\" "); ctx.print("value=\"" + ( (newString!=null) ? newString : UNKNOWNCHANGE ) + "\" name=\"" + xpath +"/" + type + SUBNEW + "\">"); ctx.println("</td>"); ctx.println("</tr>"); ctx.println("<tr class='sep'><td class='sep' style='height: 3px; overflow: hidden;' colspan=4 bgcolor=\"#CCCCDD\"></td></tr>"); // ----- if(dispCount >= CODES_PER_PAGE) { break; } } ctx.println("</table>"); if(ctx.session.user != null) { ctx.println("<input type=submit value=Save>"); } ctx.println("</form>"); if(nextSkip >= 0) { ctx.println("<a href=\"" + ctx.url() + "&skip=" + new Integer(nextSkip) + "\">" + "More..." + "</a> "); } } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/d7cb81a96592629f35ea9136f49db7073b606290/SurveyMain.java/buggy/tools/java/org/unicode/cldr/web/SurveyMain.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3916,
1085,
682,
12,
4079,
1042,
1103,
16,
514,
6748,
16,
2029,
694,
18,
907,
694,
16733,
387,
2229,
16,
1000,
1983,
694,
13,
288,
3639,
727,
509,
11128,
55,
67,
3194,
67,
11219,
273,
21119,
31,
3639,
509,
1056,
273,
374,
31,
3639,
509,
16232,
1380,
273,
374,
31,
3639,
509,
2078,
273,
374,
31,
3639,
509,
2488,
273,
374,
31,
3639,
2029,
694,
3399,
694,
273,
2029,
694,
18,
945,
23064,
12,
5900,
16,
6748,
16,
1983,
694,
1769,
3639,
2078,
273,
3399,
694,
18,
1883,
5621,
3639,
1250,
1524,
9690,
273,
1103,
18,
25724,
7464,
12,
3670,
42,
67,
23988,
26313,
1769,
3639,
1635,
3115,
863,
273,
3399,
694,
18,
588,
11739,
12,
3804,
9690,
35,
978,
30,
2704,
463,
5015,
3759,
16733,
387,
12,
978,
10019,
3639,
18559,
3478,
273,
261,
5582,
14544,
13,
5900,
18,
588,
858,
3916,
12,
18644,
1769,
7734,
309,
12,
978,
422,
446,
13,
288,
5411,
2229,
273,
394,
4112,
16733,
387,
5621,
3639,
289,
7734,
368,
2911,
279,
394,
711,
14544,
3639,
309,
12,
6329,
631,
2011,
13,
288,
2398,
3478,
273,
394,
18559,
5621,
225,
368,
5317,
2660,
30,
741,
732,
1608,
358,
752,
279,
711,
14544,
2674,
35,
3639,
289,
3639,
368,
423,
5856,
3047,
2689,
6116,
4604,
24646,
838,
540,
514,
609,
273,
1103,
18,
1518,
2932,
7457,
8863,
3639,
309,
12443,
701,
5,
33,
2011,
13,
10,
10,
12,
701,
18,
2469,
1435,
34,
20,
3719,
288,
5411,
2488,
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,
741,
3916,
1085,
682,
12,
4079,
1042,
1103,
16,
514,
6748,
16,
2029,
694,
18,
907,
694,
16733,
387,
2229,
16,
1000,
1983,
694,
13,
288,
3639,
727,
509,
11128,
55,
67,
3194,
67,
11219,
273,
21119,
31,
3639,
509,
1056,
273,
374,
31,
3639,
509,
16232,
1380,
273,
374,
31,
3639,
509,
2078,
273,
374,
31,
3639,
509,
2488,
273,
374,
31,
3639,
2029,
694,
3399,
694,
273,
2029,
694,
18,
945,
23064,
12,
5900,
16,
6748,
16,
1983,
694,
1769,
3639,
2078,
273,
3399,
694,
18,
1883,
5621,
3639,
1250,
1524,
9690,
273,
1103,
18,
25724,
7464,
12,
3670,
42,
67,
23988,
26313,
1769,
3639,
1635,
3115,
863,
273,
3399,
694,
18,
588,
11739,
2
] |
|
ByteBuffer getUnmappedByteBuffer() throws UnsupportedEncodingException { // TODO how onmap? return null; } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/2cec5530a621926a458d3d367b5aaac9e2b005de/ISOCharsetDecoderTest.java/buggy/modules/nio_char/src/test/java/tests/api/java/nio/charset/ISOCharsetDecoderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
12242,
10833,
13654,
12242,
1435,
1216,
15367,
288,
202,
202,
759,
2660,
3661,
603,
1458,
35,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
12242,
10833,
13654,
12242,
1435,
1216,
15367,
288,
202,
202,
759,
2660,
3661,
603,
1458,
35,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
descriptionGroup = new DescriptionGroup(composite, mnemonics); severityGroup = new SeverityGroup(composite, mnemonics); | descriptionGroup = new DescriptionGroup(composite); severityGroup = new SeverityGroup(composite); | protected void createAttributesArea(Composite parent, MnemonicAssigner mnemonics) { Composite composite = new Composite(parent, SWT.NONE); composite.setFont(parent.getFont()); composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); GridLayout layout = new GridLayout(5, false); layout.verticalSpacing = 7; composite.setLayout(layout); descriptionGroup = new DescriptionGroup(composite, mnemonics); severityGroup = new SeverityGroup(composite, mnemonics); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/a9c33432fa2d46b64162d8fe154f421013d753bd/DialogProblemFilter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogProblemFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
2498,
5484,
12,
9400,
982,
16,
23851,
20918,
4910,
264,
12883,
4758,
2102,
13,
288,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
9635,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
9635,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
12,
25,
16,
629,
1769,
3639,
3511,
18,
17824,
18006,
273,
2371,
31,
3639,
9635,
18,
542,
3744,
12,
6741,
1769,
3639,
2477,
1114,
273,
394,
6507,
1114,
12,
27676,
16,
12883,
4758,
2102,
1769,
3639,
11426,
1114,
273,
394,
23760,
1114,
12,
27676,
16,
12883,
4758,
2102,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
2498,
5484,
12,
9400,
982,
16,
23851,
20918,
4910,
264,
12883,
4758,
2102,
13,
288,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
9635,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
3639,
9635,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
3639,
7145,
3744,
3511,
273,
394,
7145,
3744,
12,
25,
16,
629,
1769,
3639,
3511,
18,
17824,
18006,
273,
2371,
31,
3639,
9635,
18,
542,
3744,
12,
6741,
1769,
3639,
2477,
1114,
273,
394,
6507,
1114,
12,
27676,
16,
12883,
4758,
2102,
1769,
3639,
11426,
1114,
273,
394,
23760,
1114,
12,
27676,
16,
12883,
4758,
2102,
2
] |
public org.quickfix.field.NoNestedPartyIDs getNoNestedPartyIDs() throws FieldNotFound { org.quickfix.field.NoNestedPartyIDs value = new org.quickfix.field.NoNestedPartyIDs(); | public quickfix.field.NoNestedPartyIDs getNoNestedPartyIDs() throws FieldNotFound { quickfix.field.NoNestedPartyIDs value = new quickfix.field.NoNestedPartyIDs(); | public org.quickfix.field.NoNestedPartyIDs getNoNestedPartyIDs() throws FieldNotFound { org.quickfix.field.NoNestedPartyIDs value = new org.quickfix.field.NoNestedPartyIDs(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/buggy/src/java/src/quickfix/fix44/NewOrderCross.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
8649,
17619,
5103,
336,
2279,
8649,
17619,
5103,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
8649,
17619,
5103,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
8649,
17619,
5103,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
8649,
17619,
5103,
336,
2279,
8649,
17619,
5103,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
8649,
17619,
5103,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
8649,
17619,
5103,
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
] |
butOkay.setEnabled( editable && client != null ); | butOkay.setEnabled( editable ); | public void setEditable( boolean editable ) { // Set enabled state of all of the option components in the dialog. for ( Enumeration i = optionComps.elements(); i.hasMoreElements(); ) { DialogOptionComponent comp = (DialogOptionComponent) i.nextElement(); comp.setEditable( editable ); } // If the panel is editable, the player can commit or reset. texPass.setEnabled( editable ); butOkay.setEnabled( editable && client != null ); butDefaults.setEnabled( editable ); // Update our data element. this.editable = editable; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/6ee90664d830519543dcca969bdacd892b6a2594/GameOptionsDialog.java/clean/megamek/src/megamek/client/ui/AWT/GameOptionsDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
15470,
12,
1250,
13754,
262,
288,
3639,
368,
1000,
3696,
919,
434,
777,
434,
326,
1456,
4085,
316,
326,
6176,
18,
3639,
364,
261,
13864,
277,
273,
1456,
799,
1121,
18,
6274,
5621,
277,
18,
5332,
7417,
3471,
5621,
262,
288,
5411,
17242,
1895,
1841,
1161,
273,
1171,
261,
6353,
1895,
1841,
13,
277,
18,
4285,
1046,
5621,
5411,
1161,
18,
542,
15470,
12,
13754,
11272,
3639,
289,
3639,
368,
971,
326,
6594,
353,
13754,
16,
326,
7291,
848,
3294,
578,
2715,
18,
3639,
16573,
6433,
18,
542,
1526,
12,
13754,
11272,
3639,
1496,
8809,
528,
18,
542,
1526,
12,
13754,
11272,
3639,
1496,
7019,
18,
542,
1526,
12,
13754,
11272,
3639,
368,
2315,
3134,
501,
930,
18,
3639,
333,
18,
19653,
273,
13754,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
444,
15470,
12,
1250,
13754,
262,
288,
3639,
368,
1000,
3696,
919,
434,
777,
434,
326,
1456,
4085,
316,
326,
6176,
18,
3639,
364,
261,
13864,
277,
273,
1456,
799,
1121,
18,
6274,
5621,
277,
18,
5332,
7417,
3471,
5621,
262,
288,
5411,
17242,
1895,
1841,
1161,
273,
1171,
261,
6353,
1895,
1841,
13,
277,
18,
4285,
1046,
5621,
5411,
1161,
18,
542,
15470,
12,
13754,
11272,
3639,
289,
3639,
368,
971,
326,
6594,
353,
13754,
16,
326,
7291,
848,
3294,
578,
2715,
18,
3639,
16573,
6433,
18,
542,
1526,
12,
13754,
11272,
3639,
1496,
8809,
528,
18,
542,
1526,
12,
13754,
11272,
3639,
1496,
7019,
18,
542,
1526,
12,
13754,
11272,
3639,
368,
2315,
3134,
2
] |
for (int i = 0; i < workBenchModules.size(); i++) { | for (int i = 0; i < components.length; i++) { IVirtualComponent component = components[i]; | protected List createModuleDelegates(EList workBenchModules, IProject project) { EnterpriseApplicationDeployable moduleDelegate = null; IModule module = null; List moduleList = new ArrayList(workBenchModules.size()); // J2EENature nature = (J2EENature)project.getNature(getNatureID()); for (int i = 0; i < workBenchModules.size(); i++) { try { WorkbenchComponent wbModule = (WorkbenchComponent) workBenchModules.get(i); if (wbModule.getComponentType() == null || wbModule.getComponentType().getComponentTypeId() == null || !wbModule.getComponentType().getComponentTypeId().equals(EnterpriseApplicationDeployable.EAR_MODULE_TYPE)) continue; moduleDelegate = new EnterpriseApplicationDeployable(project, ID, wbModule); //moduleDelegate.getModules(); module = createModule(wbModule.getName(), wbModule.getName(), moduleDelegate.getType(), moduleDelegate.getVersion(), moduleDelegate.getProject()); moduleList.add(module); moduleDelegate.initialize(module); // adapt(moduleDelegate, (WorkbenchComponent) workBenchModules.get(i)); } catch (Exception e) { Logger.getLogger().write(e); } finally { if (module != null) { if (getModuleDelegate(module) == null) moduleDelegates.add(moduleDelegate); } } } return moduleList; } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/9980ea56c9d8ef2f10ae147e3c1a5ee466d02341/EnterpriseApplicationDeployableFactory.java/buggy/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/deployables/EnterpriseApplicationDeployableFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
752,
3120,
15608,
815,
12,
41,
682,
1440,
38,
7382,
7782,
16,
467,
4109,
1984,
13,
288,
202,
202,
30699,
3208,
10015,
429,
1605,
9586,
273,
446,
31,
202,
202,
45,
3120,
1605,
273,
446,
31,
202,
202,
682,
1605,
682,
273,
394,
2407,
12,
1252,
38,
7382,
7782,
18,
1467,
10663,
202,
202,
759,
804,
22,
41,
1157,
1231,
28700,
273,
261,
46,
22,
41,
1157,
1231,
13,
4406,
18,
588,
50,
1231,
12,
588,
50,
1231,
734,
10663,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1440,
38,
7382,
7782,
18,
1467,
5621,
277,
27245,
288,
1082,
202,
698,
288,
9506,
202,
2421,
22144,
1841,
17298,
3120,
273,
261,
2421,
22144,
1841,
13,
1440,
38,
7382,
7782,
18,
588,
12,
77,
1769,
9506,
202,
430,
261,
9464,
3120,
18,
588,
28116,
1435,
422,
446,
747,
17298,
3120,
18,
588,
28116,
7675,
588,
1841,
11731,
1435,
422,
446,
747,
401,
9464,
3120,
18,
588,
28116,
7675,
588,
1841,
11731,
7675,
14963,
12,
30699,
3208,
10015,
429,
18,
9250,
67,
12194,
67,
2399,
3719,
6862,
202,
17143,
31,
9506,
202,
2978,
9586,
273,
394,
26919,
3208,
10015,
429,
12,
4406,
16,
1599,
16,
17298,
3120,
1769,
9506,
202,
759,
2978,
9586,
18,
588,
7782,
5621,
9506,
202,
2978,
273,
752,
3120,
12,
9464,
3120,
18,
17994,
9334,
17298,
3120,
18,
17994,
9334,
1605,
9586,
18,
588,
559,
9334,
1605,
9586,
18,
588,
1444,
9334,
1605,
9586,
18,
588,
4109,
10663,
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,
987,
752,
3120,
15608,
815,
12,
41,
682,
1440,
38,
7382,
7782,
16,
467,
4109,
1984,
13,
288,
202,
202,
30699,
3208,
10015,
429,
1605,
9586,
273,
446,
31,
202,
202,
45,
3120,
1605,
273,
446,
31,
202,
202,
682,
1605,
682,
273,
394,
2407,
12,
1252,
38,
7382,
7782,
18,
1467,
10663,
202,
202,
759,
804,
22,
41,
1157,
1231,
28700,
273,
261,
46,
22,
41,
1157,
1231,
13,
4406,
18,
588,
50,
1231,
12,
588,
50,
1231,
734,
10663,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1440,
38,
7382,
7782,
18,
1467,
5621,
277,
27245,
288,
1082,
202,
698,
288,
9506,
202,
2421,
22144,
1841,
17298,
3120,
273,
261,
2421,
2
] |
public org.quickfix.field.DeliveryType getDeliveryType() throws FieldNotFound { org.quickfix.field.DeliveryType value = new org.quickfix.field.DeliveryType(); | public quickfix.field.DeliveryType getDeliveryType() throws FieldNotFound { quickfix.field.DeliveryType value = new quickfix.field.DeliveryType(); | public org.quickfix.field.DeliveryType getDeliveryType() throws FieldNotFound { org.quickfix.field.DeliveryType value = new org.quickfix.field.DeliveryType(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralAssignment.java/buggy/src/java/src/quickfix/fix44/CollateralAssignment.java | [
1,
8585,
326,
22398,
316,
326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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8909,
559,
31518,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8909,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8909,
559,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int oldLen = attributes.getLength(); attributes.addAttribute(fAttributeQName, XMLSymbols.fCDATASymbol, null); | int oldLen = attributes.getLength(); attributes.addAttribute(fAttributeQName, XMLSymbols.fCDATASymbol, null); | protected void scanAttribute(XMLAttributesImpl attributes) throws IOException, XNIException { if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanAttribute()"); // name fEntityScanner.scanQName(fAttributeQName); // equals fEntityScanner.skipSpaces(); if (!fEntityScanner.skipChar('=')) { reportFatalError("EqRequiredInAttribute", new Object[]{fCurrentElement.rawname,fAttributeQName.rawname}); } fEntityScanner.skipSpaces(); // content int oldLen = attributes.getLength(); attributes.addAttribute(fAttributeQName, XMLSymbols.fCDATASymbol, null); // WFC: Unique Att Spec if (oldLen == attributes.getLength()) { reportFatalError("AttributeNotUnique", new Object[]{fCurrentElement.rawname, fAttributeQName.rawname}); } //REVISIT: one more case needs to be included: external PE and standalone is no boolean isVC = fHasExternalDTD && !fStandalone; // REVISIT: it seems that this function should not take attributes, and length scanAttributeValue(this.fTempString, fTempString2, fAttributeQName.rawname, attributes, oldLen, isVC,fCurrentElement.rawname); String value = fTempString.toString(); attributes.setValue(oldLen, value); attributes.setNonNormalizedValue(oldLen, fTempString2.toString()); attributes.setSpecified(oldLen, true); // record namespace declarations if any. if (fBindNamespaces) { String localpart = fAttributeQName.localpart; String prefix = fAttributeQName.prefix != null ? fAttributeQName.prefix : XMLSymbols.EMPTY_STRING; // when it's of form xmlns="..." or xmlns:prefix="...", // it's a namespace declaration. but prefix:xmlns="..." isn't. if (prefix == XMLSymbols.PREFIX_XMLNS || prefix == XMLSymbols.EMPTY_STRING && localpart == XMLSymbols.PREFIX_XMLNS) { // get the internalized value of this attribute String uri = fSymbolTable.addSymbol(value); // 1. "xmlns" can't be bound to any namespace if (prefix == XMLSymbols.PREFIX_XMLNS && localpart == XMLSymbols.PREFIX_XMLNS) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXMLNS", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } // 2. the namespace for "xmlns" can't be bound to any prefix if (uri == NamespaceContext.XMLNS_URI) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXMLNS", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } // 3. "xml" can't be bound to any other namespace than it's own if (localpart == XMLSymbols.PREFIX_XML) { if (uri != NamespaceContext.XML_URI) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXML", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } // 4. the namespace for "xml" can't be bound to any other prefix else { if (uri ==NamespaceContext.XML_URI) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXML", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } prefix = localpart != XMLSymbols.PREFIX_XMLNS ? localpart : XMLSymbols.EMPTY_STRING; // Declare prefix in context. Removing the association between a prefix and a // namespace name is permitted in XML 1.1, so if the uri value is the empty string, // the prefix is being unbound. -- mrglavas fNamespaceContext.declarePrefix(prefix, uri.length() != 0 ? uri : null); // bind namespace attribute to a namespace attributes.setURI(oldLen, fNamespaceContext.getURI(XMLSymbols.PREFIX_XMLNS)); } else { // attempt to bind attribute if (fAttributeQName.prefix != null) { attributes.setURI(oldLen, fNamespaceContext.getURI(fAttributeQName.prefix)); } } } if (DEBUG_CONTENT_SCANNING) System.out.println("<<< scanAttribute()"); } // scanAttribute(XMLAttributes) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/d954abe66b7b1e4cc31b4a4cd05201210fc8aa4a/XML11NSDocumentScannerImpl.java/buggy/src/org/apache/xerces/impl/XML11NSDocumentScannerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4135,
1499,
12,
4201,
2498,
2828,
1677,
13,
202,
15069,
1860,
16,
1139,
50,
45,
503,
288,
202,
202,
430,
261,
9394,
67,
9689,
67,
2312,
11489,
1360,
13,
2332,
18,
659,
18,
8222,
2932,
23012,
4135,
1499,
1435,
8863,
202,
202,
759,
508,
202,
202,
74,
1943,
11338,
18,
9871,
13688,
12,
74,
1499,
13688,
1769,
202,
202,
759,
1606,
202,
202,
74,
1943,
11338,
18,
7457,
12077,
5621,
202,
202,
430,
16051,
74,
1943,
11338,
18,
7457,
2156,
2668,
2218,
3719,
288,
1082,
202,
6006,
19593,
668,
2932,
19508,
3705,
382,
1499,
3113,
6862,
9506,
394,
1033,
63,
7073,
74,
3935,
1046,
18,
1899,
529,
16,
74,
1499,
13688,
18,
1899,
529,
22938,
202,
202,
97,
202,
202,
74,
1943,
11338,
18,
7457,
12077,
5621,
202,
202,
759,
913,
202,
202,
474,
1592,
2891,
273,
1677,
18,
588,
1782,
5621,
202,
202,
4350,
18,
1289,
1499,
12,
74,
1499,
13688,
16,
3167,
14821,
18,
74,
10160,
789,
3033,
3284,
16,
446,
1769,
202,
202,
759,
678,
4488,
30,
14584,
6020,
4185,
202,
202,
430,
261,
1673,
2891,
422,
1677,
18,
588,
1782,
10756,
288,
1082,
202,
6006,
19593,
668,
2932,
1499,
1248,
6303,
3113,
6862,
9506,
394,
1033,
63,
7073,
74,
3935,
1046,
18,
1899,
529,
16,
6862,
6862,
284,
1499,
13688,
18,
1899,
529,
22938,
202,
202,
97,
202,
202,
759,
862,
26780,
1285,
30,
1245,
1898,
648,
4260,
358,
506,
5849,
30,
3903,
16628,
471,
17676,
353,
1158,
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,
1117,
918,
4135,
1499,
12,
4201,
2498,
2828,
1677,
13,
202,
15069,
1860,
16,
1139,
50,
45,
503,
288,
202,
202,
430,
261,
9394,
67,
9689,
67,
2312,
11489,
1360,
13,
2332,
18,
659,
18,
8222,
2932,
23012,
4135,
1499,
1435,
8863,
202,
202,
759,
508,
202,
202,
74,
1943,
11338,
18,
9871,
13688,
12,
74,
1499,
13688,
1769,
202,
202,
759,
1606,
202,
202,
74,
1943,
11338,
18,
7457,
12077,
5621,
202,
202,
430,
16051,
74,
1943,
11338,
18,
7457,
2156,
2668,
2218,
3719,
288,
1082,
202,
6006,
19593,
668,
2932,
19508,
3705,
382,
1499,
3113,
6862,
9506,
394,
1033,
63,
7073,
74,
3935,
1046,
18,
1899,
529,
16,
74,
1499,
13688,
18,
1899,
529,
22938,
2
] |
oldDeveloperNode.setJspUri(workspace.getResourceURI()); | String jspPath = iwma.getBundle("com.idega.workspace").getJSPURI("workspace.jsp"); oldDeveloperNode.setJspUri(jspPath); | private ViewNode initalizeDeveloperNode(IWBundle iwb) { ViewManager viewManager = ViewManager.getInstance(iwma); ViewNode workspace = viewManager.getWorkspaceRoot(); Collection roles = new ArrayList(); roles.add(StandardRoles.ROLE_KEY_DEVELOPER); DefaultViewNode devNode = new WorkspaceApplicationNode("developer",workspace,roles); //devNode.setName("#{localizedStrings['com.idega.developer']['developer']}"); devNode.setKeyboardShortcut(new KeyboardShortcut("3")); WorkspaceClassViewNode localizerNode = new WorkspaceClassViewNode("localizer",devNode); localizerNode.setName("Localizer"); localizerNode.setComponentClass(Localizer.class); localizerNode.setMaximizeBlockVertically(true); WorkspaceClassViewNode localeSwitcher = new WorkspaceClassViewNode("localswitcher",devNode); localeSwitcher.setName("Switch Current Locale"); localeSwitcher.setComponentClass(LocaleSwitcher.class); localeSwitcher.setMaximizeBlockVertically(true); WorkspaceClassViewNode localeSetter = new WorkspaceClassViewNode("localesetter",devNode); localeSetter.setName("Set Locale"); localeSetter.setComponentClass(LocaleSetter.class); localeSetter.setMaximizeBlockVertically(true); WorkspaceClassViewNode objectTypes = new WorkspaceClassViewNode("objecttypes",devNode); objectTypes.setName("Object Types"); objectTypes.setComponentClass(ObjectTypeManager.class); objectTypes.setMaximizeBlockVertically(true); WorkspaceClassViewNode bundleCreator = new WorkspaceClassViewNode("bundlecreator",devNode); bundleCreator.setName("Create Bundle"); bundleCreator.setComponentClass(BundleCreator.class); bundleCreator.setMaximizeBlockVertically(true); WorkspaceClassViewNode bundlepropertysetter = new WorkspaceClassViewNode("bundleproperties",devNode); bundlepropertysetter.setComponentClass(BundlePropertySetter.class); bundlepropertysetter.setName("Bundle Properties"); bundlepropertysetter.setMaximizeBlockVertically(true); WorkspaceClassViewNode bundleresourcemanager = new WorkspaceClassViewNode("bundleresources",devNode); bundleresourcemanager.setName("Bundle Resources"); bundleresourcemanager.setComponentClass(BundleResourceManager.class); bundleresourcemanager.setMaximizeBlockVertically(true); WorkspaceClassViewNode componentmanager = new WorkspaceClassViewNode("componentmanager",devNode); componentmanager.setName("Component Manager"); componentmanager.setComponentClass(ComponentManager.class); componentmanager.setMaximizeBlockVertically(true); WorkspaceClassViewNode registercomponent = new WorkspaceClassViewNode("registercomponent",devNode); registercomponent.setName("Register Component"); registercomponent.setComponentClass(BundleComponentManager.class); registercomponent.setMaximizeBlockVertically(true); WorkspaceClassViewNode dbpool = new WorkspaceClassViewNode("dbpool",devNode); dbpool.setName("Database Pool"); dbpool.setComponentClass(DBPoolStatusViewer.class); dbpool.setMaximizeBlockVertically(true); WorkspaceClassViewNode sqlquery = new WorkspaceClassViewNode("sqlquery",devNode); sqlquery.setName("Query Database (SQL)"); sqlquery.setComponentClass(SQLQueryer.class); sqlquery.setMaximizeBlockVertically(true); WorkspaceClassViewNode appstatus = new WorkspaceClassViewNode("applicationstatus",devNode); appstatus.setName("Application Status"); appstatus.setComponentClass(ApplicationStatus.class); appstatus.setMaximizeBlockVertically(true); WorkspaceClassViewNode caches = new WorkspaceClassViewNode("caches",devNode); caches.setName("Caches"); caches.setComponentClass(Caches.class); caches.setMaximizeBlockVertically(true); WorkspaceClassViewNode logs = new WorkspaceClassViewNode("logs",devNode); logs.setName("Logs"); logs.setComponentClass(Logs.class); logs.setMaximizeBlockVertically(true); WorkspaceClassViewNode versions = new WorkspaceClassViewNode("versions",devNode); versions.setName("Module Versions"); versions.setComponentClass(Versions.class); versions.setMaximizeBlockVertically(true); /*WorkspaceClassViewNode updateManager = new WorkspaceClassViewNode("updatemanager",devNode); updateManager.setName("Update manager"); updateManager.setComponentClass(UpdateManager.class); updateManager.setMaximizeBlockVertically(true);*/ WorkspaceClassViewNode homepageGenerator = new WorkspaceClassViewNode("homepagegenerator",devNode); homepageGenerator.setName("Generate Homepages"); homepageGenerator.setComponentClass(HomePageGenerator.class); homepageGenerator.setMaximizeBlockVertically(true); WorkspaceClassViewNode pageobjects = new WorkspaceClassViewNode("pageobjects",devNode); pageobjects.setName("Page Objects"); pageobjects.setComponentClass(PageObjects.class); pageobjects.setMaximizeBlockVertically(true); WorkspaceClassViewNode scriptmanager = new WorkspaceClassViewNode("scriptmanager",devNode); scriptmanager.setName("Script Manager"); scriptmanager.setComponentClass(ScriptManager.class); scriptmanager.setMaximizeBlockVertically(true); WorkspaceClassViewNode ldap = new WorkspaceClassViewNode("ldap",devNode); ldap.setName("LDAP Manager"); ldap.setComponentClass(LDAPManager.class); ldap.setMaximizeBlockVertically(true); WorkspaceClassViewNode appPropertiesNode = new WorkspaceClassViewNode("applicationproperties",devNode); appPropertiesNode.setName("Application Properties"); appPropertiesNode.setComponentClass(ApplicationPropertySetter.class); appPropertiesNode.setMaximizeBlockVertically(true); Class applicationClass = IWDeveloper.class; FramedWindowClassViewNode oldDeveloperNode = new FramedWindowClassViewNode("olddeveloper",devNode); oldDeveloperNode.setName("Old Developer"); oldDeveloperNode.setWindowClass(applicationClass); oldDeveloperNode.setJspUri(workspace.getResourceURI()); return devNode; } | 11362 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11362/39dc9256a1c34c45ce1e9bb63da7fbeb4f296115/DeveloperViewManager.java/buggy/src/java/com/idega/developer/DeveloperViewManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
4441,
907,
1208,
287,
554,
28145,
907,
12,
45,
59,
3405,
277,
9464,
13,
288,
202,
202,
1767,
1318,
1476,
1318,
273,
4441,
1318,
18,
588,
1442,
12,
22315,
2540,
1769,
202,
202,
1767,
907,
6003,
273,
1476,
1318,
18,
588,
8241,
2375,
5621,
9506,
202,
2532,
4900,
273,
394,
2407,
5621,
202,
202,
7774,
18,
1289,
12,
8336,
6898,
18,
16256,
67,
3297,
67,
31771,
3194,
1769,
9506,
202,
1868,
1767,
907,
4461,
907,
273,
394,
14396,
3208,
907,
2932,
23669,
3113,
14915,
16,
7774,
1769,
202,
202,
759,
5206,
907,
18,
542,
461,
2932,
3642,
3729,
1235,
7957,
3292,
832,
18,
831,
15833,
18,
23669,
21712,
23669,
17966,
1769,
202,
202,
5206,
907,
18,
542,
17872,
15576,
12,
2704,
16535,
15576,
2932,
23,
7923,
1769,
9506,
202,
8241,
797,
1767,
907,
1191,
1824,
907,
273,
394,
14396,
797,
1767,
907,
2932,
3729,
1824,
3113,
5206,
907,
1769,
202,
202,
3729,
1824,
907,
18,
542,
461,
2932,
2042,
1824,
8863,
202,
202,
3729,
1824,
907,
18,
542,
1841,
797,
12,
2042,
1824,
18,
1106,
1769,
202,
202,
3729,
1824,
907,
18,
542,
2747,
10153,
1768,
4828,
6478,
12,
3767,
1769,
9506,
202,
8241,
797,
1767,
907,
2573,
10200,
264,
273,
394,
14396,
797,
1767,
907,
2932,
3729,
9610,
264,
3113,
5206,
907,
1769,
202,
202,
6339,
10200,
264,
18,
542,
461,
2932,
10200,
6562,
6458,
8863,
202,
202,
6339,
10200,
264,
18,
542,
1841,
797,
12,
3916,
10200,
264,
18,
1106,
1769,
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,
1152,
4441,
907,
1208,
287,
554,
28145,
907,
12,
45,
59,
3405,
277,
9464,
13,
288,
202,
202,
1767,
1318,
1476,
1318,
273,
4441,
1318,
18,
588,
1442,
12,
22315,
2540,
1769,
202,
202,
1767,
907,
6003,
273,
1476,
1318,
18,
588,
8241,
2375,
5621,
9506,
202,
2532,
4900,
273,
394,
2407,
5621,
202,
202,
7774,
18,
1289,
12,
8336,
6898,
18,
16256,
67,
3297,
67,
31771,
3194,
1769,
9506,
202,
1868,
1767,
907,
4461,
907,
273,
394,
14396,
3208,
907,
2932,
23669,
3113,
14915,
16,
7774,
1769,
202,
202,
759,
5206,
907,
18,
542,
461,
2932,
3642,
3729,
1235,
7957,
3292,
832,
18,
831,
15833,
18,
23669,
21712,
23669,
17966,
1769,
202,
202,
5206,
907,
18,
2
] |
max, | max, | static Object coerceToNumber(Class type, Object value, boolean useErrorHandler) { Class valueClass = value.getClass(); // Character if (type == Character.TYPE || type == ScriptRuntime.CharacterClass) { if (valueClass == ScriptRuntime.CharacterClass) { return value; } return new Character((char)toInteger(value, ScriptRuntime.CharacterClass, (double)Character.MIN_VALUE, (double)Character.MAX_VALUE, useErrorHandler)); } // Double, Float if (type == ScriptRuntime.ObjectClass || type == ScriptRuntime.DoubleClass || type == Double.TYPE) { return valueClass == ScriptRuntime.DoubleClass ? value : new Double(toDouble(value, useErrorHandler)); } if (type == ScriptRuntime.FloatClass || type == Float.TYPE) { if (valueClass == ScriptRuntime.FloatClass) { return value; } else { double number = toDouble(value, useErrorHandler); if (Double.isInfinite(number) || Double.isNaN(number) || number == 0.0) { return new Float((float)number); } else { double absNumber = Math.abs(number); if (absNumber < (double)Float.MIN_VALUE) { return new Float((number > 0.0) ? +0.0 : -0.0); } else if (absNumber > (double)Float.MAX_VALUE) { return new Float((number > 0.0) ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY); } else { return new Float((float)number); } } } } // Integer, Long, Short, Byte if (type == ScriptRuntime.IntegerClass || type == Integer.TYPE) { if (valueClass == ScriptRuntime.IntegerClass) { return value; } else { return new Integer((int)toInteger(value, ScriptRuntime.IntegerClass, (double)Integer.MIN_VALUE, (double)Integer.MAX_VALUE, useErrorHandler)); } } if (type == ScriptRuntime.LongClass || type == Long.TYPE) { if (valueClass == ScriptRuntime.LongClass) { return value; } else { /* Long values cannot be expressed exactly in doubles. * We thus use the largest and smallest double value that * has a value expressible as a long value. We build these * numerical values from their hexidecimal representations * to avoid any problems caused by attempting to parse a * decimal representation. */ final double max = Double.longBitsToDouble(0x43dfffffffffffffL); final double min = Double.longBitsToDouble(0xc3e0000000000000L); return new Long(toInteger(value, ScriptRuntime.LongClass, min, max, useErrorHandler)); } } if (type == ScriptRuntime.ShortClass || type == Short.TYPE) { if (valueClass == ScriptRuntime.ShortClass) { return value; } else { return new Short((short)toInteger(value, ScriptRuntime.ShortClass, (double)Short.MIN_VALUE, (double)Short.MAX_VALUE, useErrorHandler)); } } if (type == ScriptRuntime.ByteClass || type == Byte.TYPE) { if (valueClass == ScriptRuntime.ByteClass) { return value; } else { return new Byte((byte)toInteger(value, ScriptRuntime.ByteClass, (double)Byte.MIN_VALUE, (double)Byte.MAX_VALUE, useErrorHandler)); } } return new Double(toDouble(value, useErrorHandler)); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/e7a091bc74e520ab13a98072c3cd881fc01d8687/NativeJavaObject.java/buggy/js/rhino/src/org/mozilla/javascript/NativeJavaObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
12270,
774,
1854,
12,
797,
618,
16,
1033,
460,
16,
1250,
999,
17729,
13,
288,
3639,
1659,
460,
797,
273,
460,
18,
588,
797,
5621,
3639,
368,
6577,
3639,
309,
261,
723,
422,
6577,
18,
2399,
747,
618,
422,
7739,
5576,
18,
7069,
797,
13,
288,
5411,
309,
261,
1132,
797,
422,
7739,
5576,
18,
7069,
797,
13,
288,
7734,
327,
460,
31,
5411,
289,
5411,
327,
394,
6577,
12443,
3001,
13,
869,
4522,
12,
1132,
16,
4766,
1171,
7739,
5576,
18,
7069,
797,
16,
4766,
1171,
261,
9056,
13,
7069,
18,
6236,
67,
4051,
16,
4766,
1171,
261,
9056,
13,
7069,
18,
6694,
67,
4051,
16,
4766,
1171,
999,
17729,
10019,
3639,
289,
3639,
368,
3698,
16,
5450,
3639,
309,
261,
723,
422,
7739,
5576,
18,
921,
797,
747,
5411,
618,
422,
7739,
5576,
18,
5265,
797,
747,
618,
422,
3698,
18,
2399,
13,
288,
5411,
327,
460,
797,
422,
7739,
5576,
18,
5265,
797,
7734,
692,
460,
7734,
294,
394,
3698,
12,
869,
5265,
12,
1132,
16,
999,
17729,
10019,
3639,
289,
3639,
309,
261,
723,
422,
7739,
5576,
18,
4723,
797,
747,
618,
422,
5450,
18,
2399,
13,
288,
5411,
309,
261,
1132,
797,
422,
7739,
5576,
18,
4723,
797,
13,
288,
7734,
327,
460,
31,
5411,
289,
5411,
469,
288,
7734,
1645,
1300,
273,
358,
5265,
12,
1132,
16,
999,
17729,
1769,
7734,
309,
261,
5265,
18,
291,
382,
9551,
12,
2696,
13,
747,
3698,
18,
291,
21172,
12,
2696,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
12270,
774,
1854,
12,
797,
618,
16,
1033,
460,
16,
1250,
999,
17729,
13,
288,
3639,
1659,
460,
797,
273,
460,
18,
588,
797,
5621,
3639,
368,
6577,
3639,
309,
261,
723,
422,
6577,
18,
2399,
747,
618,
422,
7739,
5576,
18,
7069,
797,
13,
288,
5411,
309,
261,
1132,
797,
422,
7739,
5576,
18,
7069,
797,
13,
288,
7734,
327,
460,
31,
5411,
289,
5411,
327,
394,
6577,
12443,
3001,
13,
869,
4522,
12,
1132,
16,
4766,
1171,
7739,
5576,
18,
7069,
797,
16,
4766,
1171,
261,
9056,
13,
7069,
18,
6236,
67,
4051,
16,
4766,
1171,
261,
9056,
13,
7069,
18,
6694,
67,
4051,
16,
4766,
1171,
999,
17729,
10019,
3639,
289,
3639,
368,
2
] |
for (int i = 0; i < type.length; ++i) { | for (int i = 0; i < type.length; ++i) { | public void extractFrom(DateTimeMatcher source, int fieldMask) { pattern = source.pattern = null; // nuke the patterns, no longer valid for (int i = 0; i < type.length; ++i) { if ((fieldMask & (1<<i)) != 0) { type[i] = source.type[i]; original[i] = source.original[i]; } else { type[i] = NONE; original[i] = null; } } } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/1dcdb8a09bf3cb95da23c78c42b06683584fae9c/FlexibleDateTime.java/buggy/tools/java/org/unicode/cldr/test/FlexibleDateTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
2608,
1265,
12,
5096,
6286,
1084,
16,
509,
652,
5796,
13,
288,
5411,
1936,
273,
1084,
18,
4951,
273,
446,
31,
368,
9244,
4491,
326,
6884,
16,
1158,
7144,
923,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
618,
18,
2469,
31,
965,
77,
13,
288,
7734,
309,
14015,
1518,
5796,
473,
261,
21,
17685,
77,
3719,
480,
374,
13,
288,
10792,
618,
63,
77,
65,
273,
1084,
18,
723,
63,
77,
15533,
10792,
2282,
63,
77,
65,
273,
1084,
18,
8830,
63,
77,
15533,
7734,
289,
469,
288,
10792,
618,
63,
77,
65,
273,
11829,
31,
10792,
2282,
63,
77,
65,
273,
446,
31,
7734,
289,
5411,
289,
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,
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368,
9244,
4491,
326,
6884,
16,
1158,
7144,
923,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
618,
18,
2469,
31,
965,
77,
13,
288,
7734,
309,
14015,
1518,
5796,
473,
261,
21,
17685,
77,
3719,
480,
374,
13,
288,
10792,
618,
63,
77,
65,
273,
1084,
18,
723,
63,
77,
15533,
10792,
2282,
63,
77,
65,
273,
1084,
18,
8830,
63,
77,
15533,
7734,
289,
469,
288,
10792,
618,
63,
77,
65,
273,
11829,
31,
10792,
2282,
63,
77,
65,
273,
446,
31,
7734,
289,
5411,
289,
202,
202,
97,
2
] |
public void createControl(Composite parent) { // whether the priority exists or not boolean priExist = false; String url = null; // get the model for the new bug AbstractBugWizard wizard = (AbstractBugWizard) getWizard(); NewBugModel nbm = wizard.model; // Attributes Composite- this holds all the combo fields and text // fields Composite attributesComposite = new Composite(parent, SWT.NONE); GridLayout attributesLayout = new GridLayout(); attributesLayout.numColumns = 4; attributesLayout.horizontalSpacing = 14; attributesLayout.verticalSpacing = 6; attributesComposite.setLayout(attributesLayout); GridData attributesData = new GridData(GridData.FILL_BOTH); attributesData.horizontalSpan = 1; attributesData.grabExcessVerticalSpace = false; attributesComposite.setLayoutData(attributesData); // End Attributes Composite GridLayout attributesTitleLayout = new GridLayout(); attributesTitleLayout.horizontalSpacing = 0; attributesTitleLayout.marginWidth = 0; GridData attributesTitleData = new GridData( GridData.HORIZONTAL_ALIGN_FILL); attributesTitleData.horizontalSpan = 4; attributesTitleData.grabExcessVerticalSpace = false; // Add the product to the composite newLayout(attributesComposite, 1, "Product", PROPERTY); newLayout(attributesComposite, 1, nbm.getProduct(), VALUE); // Populate Attributes for (Iterator<Attribute> it = nbm.getAttributes().iterator(); it.hasNext();) { Attribute attribute = it.next(); String key = attribute.getParameterName(); String name = attribute.getName(); String value = checkText(attribute.getValue()); Map<String, String> values = attribute.getOptionValues(); // if it is a hidden field, don't try to display it if (attribute.isHidden()) continue; if (key == null) key = ""; if (values == null) values = new HashMap<String, String>(); GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 1; data.horizontalIndent = HORZ_INDENT; // create and populate the combo fields for the attributes if (key.equals("op_sys")) { newLayout(attributesComposite, 1, name, PROPERTY); oSCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); oSCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { oSCombo.add(a[i]); } int index; if ((index = oSCombo.indexOf(value)) == -1) index = 0; oSCombo.select(index); oSCombo.addListener(SWT.Modify, this); } else if (key.equals("version")) { newLayout(attributesComposite, 1, name, PROPERTY); versionCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); versionCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { versionCombo.add(a[i]); } int index; if ((index = versionCombo.indexOf(value)) == -1) index = 0; versionCombo.select(index); versionCombo.addListener(SWT.Modify, this); } else if (key.equals("bug_severity")) { newLayout(attributesComposite, 1, name, PROPERTY); severityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); severityCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { severityCombo.add(a[i]); } int index; if ((index = severityCombo.indexOf(value)) == -1) index = 0; severityCombo.select(index); severityCombo.addListener(SWT.Modify, this); } else if (key.equals("rep_platform")) { newLayout(attributesComposite, 1, name, PROPERTY); platformCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); platformCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { platformCombo.add(a[i]); } int index; if ((index = platformCombo.indexOf(value)) == -1) index = 0; platformCombo.select(index); platformCombo.addListener(SWT.Modify, this); } else if (key.equals("component")) { newLayout(attributesComposite, 1, name, PROPERTY); componentCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); componentCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { componentCombo.add(a[i]); } int index; if ((index = componentCombo.indexOf(value)) == -1) index = 0; componentCombo.select(index); componentCombo.addListener(SWT.Modify, this); } else if (key.equals("priority")) { newLayout(attributesComposite, 1, name, PROPERTY); priorityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); priorityCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { priorityCombo.add(a[i]); } int index; if ((index = priorityCombo.indexOf(value)) == -1) index = 0; priorityCombo.select(index); priorityCombo.addListener(SWT.Modify, this); priExist = true; } else if (key.equals("bug_file_loc")) { url = value; }else { // do nothing if it isn't a standard value to change } } if (priExist) { newLayout(attributesComposite, 1, "", PROPERTY); newLayout(attributesComposite, 1, "", PROPERTY); } GridData summaryTextData; if (url != null) { // add the assigned to text field newLayout(attributesComposite, 1, "URL", PROPERTY); urlText = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 3; summaryTextData.widthHint = 200; urlText.setLayoutData(summaryTextData); urlText.setText(url); urlText.addListener(SWT.FocusOut, this); } newLayout(attributesComposite, 1, "Assigned To", PROPERTY); Label l = new Label(attributesComposite, SWT.NONE); l.setText("NOTE: If e-mail incorrect, submit will fail silently"); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 2; l.setLayoutData(summaryTextData); assignedToText = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 1; summaryTextData.widthHint = 200; assignedToText.setLayoutData(summaryTextData); assignedToText.setText(""); // add the summary text field newLayout(attributesComposite, 1, "Summary", PROPERTY); summaryText = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 3; summaryTextData.widthHint = 200; summaryText.setLayoutData(summaryTextData); summaryText.setText(nbm.getSummary()); summaryText.addListener(SWT.Modify, this); // Description Text Composite descriptionComposite = new Composite(attributesComposite, SWT.NONE); descriptionComposite.setLayout(attributesTitleLayout); GridData descriptionData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); descriptionData.horizontalSpan = 4; descriptionData.grabExcessVerticalSpace = false; descriptionComposite.setLayoutData(descriptionData); newLayout(descriptionComposite, 4, "Description:", HEADER); // add the description text field descriptionText = new Text(attributesComposite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP); descriptionText.setFont(AbstractBugEditor.COMMENT_FONT); GridData descriptionTextData = new GridData( GridData.HORIZONTAL_ALIGN_FILL); descriptionTextData.horizontalSpan = 4; descriptionTextData.widthHint = AbstractBugEditor.DESCRIPTION_WIDTH; descriptionTextData.heightHint = AbstractBugEditor.DESCRIPTION_HEIGHT; descriptionText.setLayoutData(descriptionTextData); descriptionText.addListener(SWT.Modify, this); serverButton = new Button(attributesComposite, SWT.RADIO); serverButton.setText("Submit bug report to the server."); GridData toServerButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); toServerButtonData.horizontalSpan = 4; serverButton.setLayoutData(toServerButtonData); serverButton.setSelection(true); offlineButton = new Button(attributesComposite, SWT.RADIO); offlineButton.setText("Save bug report offline."); GridData offlineButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); offlineButtonData.horizontalSpan = 4; offlineButton.setLayoutData(offlineButtonData); offlineButton.setSelection(false); if(wizard.fromDialog) offlineButton.setEnabled(false); setControl(attributesComposite); return; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c7e8842aaf630b312c422f4e2f0ef3bd5ed6453d/AbstractWizardDataPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/AbstractWizardDataPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
759,
2856,
326,
4394,
1704,
578,
486,
202,
202,
6494,
14705,
4786,
273,
629,
31,
202,
202,
780,
880,
273,
446,
31,
202,
202,
759,
336,
326,
938,
364,
326,
394,
7934,
202,
202,
7469,
19865,
27130,
24204,
273,
261,
7469,
19865,
27130,
13,
13876,
13412,
5621,
202,
202,
1908,
19865,
1488,
4264,
81,
273,
24204,
18,
2284,
31,
202,
202,
759,
9055,
14728,
17,
333,
14798,
777,
326,
16778,
1466,
471,
977,
202,
202,
759,
1466,
202,
202,
9400,
1677,
9400,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
4350,
3744,
18,
18396,
18006,
273,
5045,
31,
202,
202,
4350,
3744,
18,
17824,
18006,
273,
1666,
31,
202,
202,
4350,
9400,
18,
542,
3744,
12,
4350,
3744,
1769,
202,
202,
6313,
751,
1677,
751,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
1769,
202,
202,
4350,
751,
18,
18396,
6952,
273,
404,
31,
202,
202,
4350,
751,
18,
2752,
70,
424,
614,
15704,
3819,
273,
629,
31,
202,
202,
4350,
9400,
18,
542,
3744,
751,
12,
4350,
751,
1769,
202,
202,
759,
4403,
9055,
14728,
202,
202,
6313,
3744,
1677,
4247,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
4350,
4247,
3744,
18,
18396,
18006,
273,
374,
31,
202,
202,
4350,
4247,
3744,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
759,
2856,
326,
4394,
1704,
578,
486,
202,
202,
6494,
14705,
4786,
273,
629,
31,
202,
202,
780,
880,
273,
446,
31,
202,
202,
759,
336,
326,
938,
364,
326,
394,
7934,
202,
202,
7469,
19865,
27130,
24204,
273,
261,
7469,
19865,
27130,
13,
13876,
13412,
5621,
202,
202,
1908,
19865,
1488,
4264,
81,
273,
24204,
18,
2284,
31,
202,
202,
759,
9055,
14728,
17,
333,
14798,
777,
326,
16778,
1466,
471,
977,
202,
202,
759,
1466,
202,
202,
9400,
1677,
9400,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
1677,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
2
] |
||
return getMarkerCounts()[IMarker.SEVERITY_INFO]; } | return getMarkerCounts()[IMarker.SEVERITY_INFO]; } | public int getInfos() { return getMarkerCounts()[IMarker.SEVERITY_INFO]; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/37b8e551c368c0ea13a0c34840143e15ad8d93db/MarkerList.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
7655,
1435,
288,
3639,
327,
23232,
264,
9211,
1435,
63,
3445,
1313,
264,
18,
1090,
2204,
4107,
67,
5923,
15533,
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,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
7655,
1435,
288,
3639,
327,
23232,
264,
9211,
1435,
63,
3445,
1313,
264,
18,
1090,
2204,
4107,
67,
5923,
15533,
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
] |
Atom[] atoms = bondInRange.getAtoms(); for (int i=0; i<atoms.length; i++) { selected.addAtom(atoms[i]); | if (bondInRange != null) { Atom[] atoms = bondInRange.getAtoms(); for (int i=0; i<atoms.length; i++) { selected.addAtom(atoms[i]); } r2dm.setSelectedPart(selected); | public void mousePressed(MouseEvent e) { logger.debug("Mouse pressed in mode: " + c2dm.getDrawModeString()); Atom atomInRange; int mouseX = getWorldCoordinate(e.getX()); int mouseY = getWorldCoordinate(e.getY()); int startX = 0, startY = 0; r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); atomInRange = getAtomInRange(mouseX, mouseY); if (atomInRange != null) { startX = (int)atomInRange.getX2D(); startY = (int)atomInRange.getY2D(); r2dm.setPointerVectorStart(new Point(startX, startY)); } else { r2dm.setPointerVectorStart(new Point(mouseX, mouseY)); } if (c2dm.getDrawMode() == c2dm.MOVE) { AtomContainer container = r2dm.getSelectedPart(); if (container == null || (container.getAtomCount() == 0)) { // if no atoms are selected, then temporarily select nearest // to make sure to original state is reached again when the // mouse is released, the draggingSelected boolean is set logger.warn("No atoms selected: temporarily selecting nearest atom/bond"); draggingSelected = false; AtomContainer selected = new AtomContainer(); if (atomInRange != null) { selected.addAtom(atomInRange); r2dm.setSelectedPart(selected); } else { Bond bondInRange = getBondInRange(mouseX, mouseY); // because only atoms are dragged, select the atoms // in the bond, instead of the bond itself Atom[] atoms = bondInRange.getAtoms(); for (int i=0; i<atoms.length; i++) { selected.addAtom(atoms[i]); } r2dm.setSelectedPart(selected); } logger.debug("Selected: " + selected.toString()); fireChange(); } } } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/5abaf4772c7ed189cd8f2960728d6e8a1ac20c99/JCPController2D.java/clean/src/org/openscience/cdk/controller/JCPController2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
288,
5411,
1194,
18,
4148,
2932,
9186,
19504,
316,
1965,
30,
315,
397,
276,
22,
10956,
18,
588,
6493,
2309,
780,
10663,
5411,
7149,
3179,
25277,
31,
5411,
509,
7644,
60,
273,
13876,
6245,
13503,
12,
73,
18,
588,
60,
10663,
2398,
509,
7644,
61,
273,
13876,
6245,
13503,
12,
73,
18,
588,
61,
10663,
5411,
509,
787,
60,
273,
374,
16,
787,
61,
273,
374,
31,
5411,
436,
22,
10956,
18,
542,
4926,
5018,
1685,
12,
2011,
1769,
5411,
436,
22,
10956,
18,
542,
4926,
5018,
1638,
12,
2011,
1769,
5411,
3179,
25277,
273,
12358,
25277,
12,
11697,
60,
16,
7644,
61,
1769,
5411,
309,
261,
7466,
25277,
480,
446,
13,
288,
10792,
787,
60,
273,
261,
474,
13,
7466,
25277,
18,
588,
60,
22,
40,
5621,
10792,
787,
61,
273,
261,
474,
13,
7466,
25277,
18,
588,
61,
22,
40,
5621,
10792,
436,
22,
10956,
18,
542,
4926,
5018,
1685,
12,
2704,
4686,
12,
1937,
60,
16,
787,
61,
10019,
5411,
289,
469,
288,
10792,
436,
22,
10956,
18,
542,
4926,
5018,
1685,
12,
2704,
4686,
12,
11697,
60,
16,
7644,
61,
10019,
5411,
289,
13491,
309,
261,
71,
22,
10956,
18,
588,
6493,
2309,
1435,
422,
276,
22,
10956,
18,
16537,
13,
288,
7734,
7149,
2170,
1478,
273,
436,
22,
10956,
18,
588,
7416,
1988,
5621,
7734,
309,
261,
3782,
422,
446,
747,
261,
3782,
18,
588,
3641,
1380,
1435,
422,
374,
3719,
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,
540,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
288,
5411,
1194,
18,
4148,
2932,
9186,
19504,
316,
1965,
30,
315,
397,
276,
22,
10956,
18,
588,
6493,
2309,
780,
10663,
5411,
7149,
3179,
25277,
31,
5411,
509,
7644,
60,
273,
13876,
6245,
13503,
12,
73,
18,
588,
60,
10663,
2398,
509,
7644,
61,
273,
13876,
6245,
13503,
12,
73,
18,
588,
61,
10663,
5411,
509,
787,
60,
273,
374,
16,
787,
61,
273,
374,
31,
5411,
436,
22,
10956,
18,
542,
4926,
5018,
1685,
12,
2011,
1769,
5411,
436,
22,
10956,
18,
542,
4926,
5018,
1638,
12,
2011,
1769,
5411,
3179,
25277,
273,
12358,
25277,
12,
11697,
60,
16,
7644,
61,
1769,
5411,
309,
261,
7466,
25277,
2
] |
if (marker != null) editBookmark(); | if (marker != null) { editBookmark(); } | public void run() { if (marker != null) editBookmark(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/EditBookmarkAction.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/EditBookmarkAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
309,
261,
11145,
480,
446,
13,
5411,
3874,
22966,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
309,
261,
11145,
480,
446,
13,
5411,
3874,
22966,
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
] |
if (atoms.length > 0) { AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(atomCon, atoms); } | if (atoms.length > 0) { AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(atomCon, atoms); } | public void mouseReleased(MouseEvent event) { isUndoableChange = false; logger.debug("MouseReleased Event Props: mode=", c2dm.getDrawModeString()); if (logger.isDebugEnabled()) { logger.debug(" trigger=" + event.isPopupTrigger(), ", Click count: " + event.getClickCount()); } if ((event.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) { int[] screenCoords = {event.getX(), event.getY()}; int[] mouseCoords = getWorldCoordinates(screenCoords); int mouseX = mouseCoords[0]; int mouseY = mouseCoords[1]; if (c2dm.getDrawMode() == c2dm.SYMBOL) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { if(currentCommonElement.get(atomInRange)==null) currentCommonElement.put(atomInRange, new Integer(1)); int oldCommonElement=((Integer)currentCommonElement.get(atomInRange)).intValue(); String symbol = (String)commonElements.elementAt(oldCommonElement); if (!(atomInRange.getSymbol().equals(symbol))) { // only change symbol if needed atomInRange.setSymbol(symbol); // configure the atom, so that the atomic number matches the symbol try { IsotopeFactory.getInstance().configure(atomInRange); } catch (Exception exception) { logger.error("Error while configuring atom"); logger.debug(exception); } // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } oldCommonElement++; if (oldCommonElement == commonElements.size()) oldCommonElement = 0; currentCommonElement.put(atomInRange, new Integer(oldCommonElement)); } } if (c2dm.getDrawMode() == c2dm.ELEMENT) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { String symbol = c2dm.getDrawElement(); if (!(atomInRange.getSymbol().equals(symbol))) { // only change symbol if needed atomInRange.setSymbol(symbol); // configure the atom, so that the atomic number matches the symbol try { IsotopeFactory.getInstance().configure(atomInRange); } catch (Exception exception) { logger.error("Error while configuring atom"); logger.debug(exception); } // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } } if (c2dm.getDrawMode() == c2dm.INCCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() + 1); // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom charge */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } if (c2dm.getDrawMode() == c2dm.DECCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() - 1); // update atom AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); updateAtom(container, atomInRange); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } } if (c2dm.getDrawMode() == c2dm.MAPATOMATOM) { logger.debug("Should make new mapping..."); if (wasDragged) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; Atom mappedToAtom = getAtomInRange(endX, endY); if (mappedToAtom != null) { int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; Atom mappedFromAtom = getAtomInRange(startX, startY); if (mappedFromAtom != null) { Mapping mapping = new Mapping(mappedFromAtom, mappedToAtom); logger.debug("Created mapping: ", mapping); logger.debug(" between ", mappedFromAtom); logger.debug(" and ", mappedToAtom); // ok, now figure out if they are in one reaction Reaction reaction1 = ChemModelManipulator.getRelevantReaction(chemModel, mappedFromAtom); Reaction reaction2 = ChemModelManipulator.getRelevantReaction(chemModel, mappedToAtom); if (reaction1 != null && reaction2 != null && reaction1 == reaction2) { logger.debug("Adding mapping to reaction: ", reaction1.getID()); reaction1.addMapping(mapping); } else { logger.warn("Reactions do not match, or one or both are reactions are null"); } } else { logger.debug("Dragging did not start in atom..."); } } else { logger.debug("Dragging did not end in atom..."); } } else { logger.debug("Not dragged in mapping mode"); } } if (c2dm.getDrawMode() == c2dm.DRAWBOND) { Atom atomInRange; Atom newAtom1; Atom newAtom2; Bond newBond; int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; Bond bondInRange = r2dm.getHighlightedBond(); atomInRange = r2dm.getHighlightedAtom(); if (bondInRange != null) { // increase Bond order double order = bondInRange.getOrder(); if (order >= CDKConstants.BONDORDER_TRIPLE) { bondInRange.setOrder(CDKConstants.BONDORDER_SINGLE); } else { bondInRange.setOrder(order + 1.0); // this is tricky as it depends on the fact that the // constants are unidistant, i.e. {1.0, 2.0, 3.0}. } ; // update atoms Atom[] atoms = bondInRange.getAtoms(); AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(container, atoms); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { if (atomInRange != null) { newAtom1 = atomInRange; } else { // create a new molecule newAtom1 = new Atom(c2dm.getDrawElement(), new Point2d(startX, startY)); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.addAtom(newAtom1); // update atoms updateAtom(atomCon, newAtom1); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } if (wasDragged) { if (dragMode == DRAG_DRAWING_PROPOSED_BOND) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; atomInRange = getAtomInRange(endX, endY); AtomContainer atomCon = null; if (atomInRange != null) { newAtom2 = atomInRange; atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom2); } else { newAtom2 = new Atom(c2dm.getDrawElement(), new Point2d(endX, endY)); atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom1); atomCon.addAtom(newAtom2); } newBond = new Bond(newAtom1, newAtom2, 1); atomCon.addBond(newBond); // update atoms updateAtom(atomCon, newAtom2); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } } else if (atomInRange != null) { // add a new atom to the current atom in some random // direction AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); newAtom2 = new Atom(c2dm.getDrawElement(), atomInRange.getPoint2d()); // now create 2D coords for new atom double bondLength = r2dm.getBondLength(); Atom[] connectedAtoms = atomCon.getConnectedAtoms(atomInRange); AtomContainer placedAtoms = new AtomContainer(); placedAtoms.addAtom(atomInRange); for (int i = 0; i < connectedAtoms.length; i++) { placedAtoms.addAtom(connectedAtoms[i]); } AtomContainer unplacedAtoms = new AtomContainer(); unplacedAtoms.addAtom(newAtom2); AtomPlacer atomPlacer = new AtomPlacer(); atomPlacer.setMolecule(new Molecule(atomCon)); Point2d center2D = GeometryTools.get2DCenter(placedAtoms); atomPlacer.distributePartners(atomInRange, placedAtoms, center2D, unplacedAtoms, bondLength); // now add the new atom atomCon.addAtom(newAtom2); atomCon.addBond(new Bond(atomInRange, newAtom2, 1.0)); // update atoms updateAtom(atomCon, atomInRange); updateAtom(atomCon, newAtom2); } } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.UP_BOND) { Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_UP) { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP_INV); } else if (stereo == CDKConstants.STEREO_BOND_UP_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP); } ; /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.DOWN_BOND) { logger.info("Toggling stereo bond down"); Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_DOWN) { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN_INV); } else if (stereo == CDKConstants.STEREO_BOND_DOWN_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN); } ; /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.SELECT && wasDragged) { logger.info("User asks to selected atoms"); AtomContainer selectedPart = new AtomContainer(); r2dm.setSelectedPart(selectedPart); r2dm.setSelectedPart(getContainedAtoms(r2dm.getSelectRect())); r2dm.setSelectRect(null); logger.debug("selected stuff ", selectedPart); } if (c2dm.getDrawMode() == c2dm.ERASER) { Atom highlightedAtom = r2dm.getHighlightedAtom(); Bond highlightedBond = r2dm.getHighlightedBond(); if (highlightedAtom != null) { logger.info("User asks to delete an Atom"); AtomContainer container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: ", container.getAtomCount()); ChemModelManipulator.removeAtomAndConnectedElectronContainers(chemModel, highlightedAtom); container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: ", container.getAtomCount()); // update atoms Atom[] atoms = container.getConnectedAtoms(highlightedAtom); if (atoms.length > 0) { AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(atomCon, atoms); } } else if (highlightedBond != null) { logger.info("User asks to delete a Bond"); ChemModelManipulator.removeElectronContainer(chemModel, highlightedBond); // update atoms Atom[] atoms = highlightedBond.getAtoms(); AtomContainer container = ChemModelManipulator.getRelevantAtomContainer(chemModel, atoms[0]); updateAtoms(container, atoms); } else { logger.warn("Cannot deleted if nothing is highlighted"); return; } /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.RING || c2dm.getDrawMode() == c2dm.BENZENERING) { Ring newRing; Point2d sharedAtomsCenter; Vector2d ringCenterVector; double bondLength; int pointerMarkX; int pointerMarkY; double ringRadius; double angle; double xDiff; double yDiff; double distance1 = 0; double distance2 = 0; Atom firstAtom; Atom secondAtom; Atom spiroAtom; Point2d conAtomsCenter = null; Point2d newPoint1; Point2d newPoint2; RingPlacer ringPlacer = new RingPlacer(); int ringSize = c2dm.getRingSize(); String symbol = c2dm.getDrawElement(); AtomContainer sharedAtoms = getHighlighted(); if (sharedAtoms.getAtomCount() == 0) { sharedAtoms = new AtomContainer(); newRing = new Ring(ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); ringRadius = (bondLength / 2) / Math.sin(Math.PI / c2dm.getRingSize()); sharedAtomsCenter = new Point2d(mouseX, mouseY - ringRadius); firstAtom = newRing.getAtomAt(0); firstAtom.setPoint2d(sharedAtomsCenter); sharedAtoms.addAtom(firstAtom); ringCenterVector = new Vector2d(new Point2d(mouseX, mouseY)); ringCenterVector.sub(sharedAtomsCenter); ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.add(newRing); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else if (sharedAtoms.getAtomCount() == 1) { spiroAtom = sharedAtoms.getAtomAt(0); sharedAtomsCenter = GeometryTools.get2DCenter(sharedAtoms); newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); if (conAtomsCenter.equals(spiroAtom.getPoint2d())) { ringCenterVector = new Vector2d(0, 1); } else { ringCenterVector = new Vector2d(sharedAtomsCenter); ringCenterVector.sub(conAtomsCenter); } ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed atom from the ring to add only the new placed // atoms to the AtomContainer. try { newRing.removeAtom(spiroAtom); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, spiroAtom); atomCon.add(newRing); /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } else if (sharedAtoms.getAtomCount() == 2) { sharedAtomsCenter = GeometryTools.get2DCenter(sharedAtoms); // calculate two points that are perpendicular to the highlighted bond // and have a certain distance from the bondcenter firstAtom = sharedAtoms.getAtomAt(0); secondAtom = sharedAtoms.getAtomAt(1); xDiff = secondAtom.getX2d() - firstAtom.getX2d(); yDiff = secondAtom.getY2d() - firstAtom.getY2d(); bondLength = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)); angle = GeometryTools.getAngle(xDiff, yDiff); newPoint1 = new Point2d((Math.cos(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); newPoint2 = new Point2d((Math.cos(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); if (wasDragged) { // check which one of the two points is nearest to the endpoint of the pointer // vector that was dragged to make the ringCenterVector point into the right direction. pointerMarkX = r2dm.getPointerVectorEnd().x; pointerMarkY = r2dm.getPointerVectorEnd().y; distance1 = -1 * (Math.sqrt(Math.pow(newPoint1.x - pointerMarkX, 2) + Math.pow(newPoint1.y - pointerMarkY, 2))); distance2 = -1 * (Math.sqrt(Math.pow(newPoint2.x - pointerMarkX, 2) + Math.pow(newPoint2.y - pointerMarkY, 2))); r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } else { // check which one of the two points is nearest to the center of the // connected atoms to make the ringCenterVector point into the right direction. conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); distance1 = Math.sqrt(Math.pow(newPoint1.x - conAtomsCenter.x, 2) + Math.pow(newPoint1.y - conAtomsCenter.y, 2)); distance2 = Math.sqrt(Math.pow(newPoint2.x - conAtomsCenter.x, 2) + Math.pow(newPoint2.y - conAtomsCenter.y, 2)); } ringCenterVector = new Vector2d(sharedAtomsCenter); // no ring is attached if the two ditances are equal if (distance1 == distance2) { logger.warn("don't know where to draw the new Ring"); } else { if (distance1 < distance2) { ringCenterVector.sub(newPoint1); } else if (distance2 < distance1) { ringCenterVector.sub(newPoint2); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, firstAtom); // construct a new Ring that contains the highlighted bond an its two atoms newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond existingBond = atomCon.getBond(firstAtom, secondAtom); Bond[] bonds = newRing.getBonds(); if (existingBond.getOrder() == 1.0) { if (existingBond.getFlag(CDKConstants.ISAROMATIC)) { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } else { bonds[1].setOrder(2.0); bonds[3].setOrder(2.0); bonds[5].setOrder(2.0); } } else { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } makeRingAromatic(newRing); } // place the new atoms of the new ring to the right position ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed bond and its atoms from the ring to add only // the new placed atoms to the AtomContainer. try { newRing.remove(sharedAtoms); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } atomCon.add(newRing); } /* * PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* * --- */ } r2dm.fireChange(); fireChange(); } if (c2dm.getDrawMode() == c2dm.LASSO) { // first deselect all atoms r2dm.setSelectedPart(new AtomContainer()); // now select new atoms if (wasDragged) { Vector lassoPoints = r2dm.getLassoPoints(); r2dm.addLassoPoint(new Point((Point) lassoPoints.elementAt(0))); int number = lassoPoints.size(); logger.debug("# lasso points: ", number); int[] screenLassoCoords = new int[number * 2]; Point currentPoint; for (int i = 0; i < number; i++) { currentPoint = (Point) lassoPoints.elementAt(i); screenLassoCoords[i * 2] = currentPoint.x; screenLassoCoords[i * 2 + 1] = currentPoint.y; logger.debug("ScreenLasso.x = ", screenLassoCoords[i * 2]); logger.debug("ScreenLasso.y = ", screenLassoCoords[i * 2 + 1]); } /* * Convert points to world coordinates as they are * in screen coordinates in the vector */ int[] worldCoords = getWorldCoordinates(screenLassoCoords); logger.debug("Returned coords: ", worldCoords.length); logger.debug(" # points: ", number); int[] xPoints = new int[number]; int[] yPoints = new int[number]; for (int i = 0; i < number; i++) { xPoints[i] = worldCoords[i * 2]; yPoints[i] = worldCoords[i * 2 + 1]; logger.debug("WorldCoords.x = ", worldCoords[i * 2]); logger.debug("WorldCoords.y = ", worldCoords[i * 2 + 1]); logger.debug("Polygon.x = ", xPoints[i]); logger.debug("Polygon.y = ", yPoints[i]); } Polygon polygon = new Polygon(xPoints, yPoints, number); r2dm.setSelectedPart(getContainedAtoms(polygon)); r2dm.getLassoPoints().removeAllElements(); r2dm.fireChange(); } else { // one atom clicked or one bond clicked ChemObject chemObj = getChemObjectInRange(mouseX, mouseY); AtomContainer container = new AtomContainer(); if (chemObj instanceof Atom) { container.addAtom((Atom) chemObj); logger.debug("selected one atom in lasso mode"); r2dm.setSelectedPart(container); } else if (chemObj instanceof Bond) { Bond bond = (Bond) chemObj; container.addBond(bond); logger.debug("selected one bond in lasso mode"); Atom[] atoms = bond.getAtoms(); for (int i = 0; i < atoms.length; i++) { container.addAtom(atoms[i]); } r2dm.setSelectedPart(container); } } fireChange(); } if (c2dm.getDrawMode() == c2dm.MOVE) { if (draggingSelected == false) { // then it was dragging nearest Bond or Atom r2dm.setSelectedPart(new AtomContainer()); } } if (wasDragged) { prevDragCoordX = 0; prevDragCoordY = 0; wasDragged = false; } dragMode = DRAG_UNSET; r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/81f64c41697e064b62e064b62677261a78168623/Controller2D.java/buggy/src/org/openscience/cdk/controller/Controller2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7644,
26363,
12,
9186,
1133,
871,
13,
202,
95,
565,
20488,
2896,
429,
3043,
273,
629,
31,
202,
202,
4901,
18,
4148,
2932,
9186,
26363,
2587,
1186,
1121,
30,
1965,
1546,
16,
276,
22,
10956,
18,
588,
6493,
2309,
780,
10663,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
282,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
9334,
7682,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
3639,
289,
3639,
309,
14015,
2575,
18,
588,
11948,
1435,
473,
17013,
1133,
18,
20068,
21,
67,
11704,
13,
480,
374,
13,
288,
1082,
202,
474,
8526,
5518,
13089,
273,
288,
2575,
18,
588,
60,
9334,
871,
18,
588,
61,
17767,
31,
1082,
202,
474,
8526,
7644,
13089,
273,
13876,
6245,
13431,
12,
9252,
13089,
1769,
1082,
202,
474,
7644,
60,
273,
7644,
13089,
63,
20,
15533,
1082,
202,
474,
7644,
61,
273,
7644,
13089,
63,
21,
15533,
1082,
202,
430,
261,
71,
22,
10956,
18,
588,
6493,
2309,
1435,
422,
276,
22,
10956,
18,
22093,
13,
288,
9506,
202,
3641,
3179,
25277,
273,
436,
22,
10956,
18,
588,
16205,
329,
3641,
5621,
9506,
202,
430,
261,
7466,
25277,
480,
446,
13,
288,
10792,
309,
12,
2972,
6517,
1046,
18,
588,
12,
7466,
25277,
13,
631,
2011,
13,
8227,
783,
6517,
1046,
18,
458,
12,
7466,
25277,
16,
394,
2144,
12,
21,
10019,
10792,
509,
1592,
6517,
1046,
33,
12443,
4522,
13,
2972,
6517,
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,
7644,
26363,
12,
9186,
1133,
871,
13,
202,
95,
565,
20488,
2896,
429,
3043,
273,
629,
31,
202,
202,
4901,
18,
4148,
2932,
9186,
26363,
2587,
1186,
1121,
30,
1965,
1546,
16,
276,
22,
10956,
18,
588,
6493,
2309,
780,
10663,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
282,
3080,
1546,
397,
871,
18,
291,
13770,
6518,
9334,
7682,
3104,
18417,
1056,
30,
315,
397,
871,
18,
588,
6563,
1380,
10663,
3639,
289,
3639,
309,
14015,
2575,
18,
588,
11948,
1435,
473,
17013,
1133,
18,
20068,
21,
67,
11704,
13,
480,
374,
13,
288,
1082,
202,
474,
8526,
5518,
13089,
273,
288,
2575,
18,
588,
60,
9334,
2
] |
if (e instanceof EvaluatorException) { throw (EvaluatorException)e; } if (e instanceof EcmaError) { throw (EcmaError)e; | if (e instanceof RhinoException) { throw (RhinoException)e; | public static RuntimeException throwAsScriptRuntimeEx(Throwable e) { while ((e instanceof InvocationTargetException)) { e = ((InvocationTargetException) e).getTargetException(); } // special handling of Error so scripts would not catch them if (e instanceof Error) { throw (Error)e; } if (e instanceof EvaluatorException) { throw (EvaluatorException)e; } if (e instanceof EcmaError) { throw (EcmaError)e; } throw new WrappedException(e); } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/90061174d2ebc0464c79dadc2907aa4d22199c65/Context.java/clean/src/org/mozilla/javascript/Context.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3235,
604,
1463,
3651,
5576,
424,
12,
15155,
425,
13,
565,
288,
3639,
1323,
14015,
73,
1276,
15342,
3719,
288,
5411,
425,
273,
14015,
9267,
14950,
13,
425,
2934,
588,
14950,
5621,
3639,
289,
3639,
368,
4582,
5057,
434,
1068,
1427,
8873,
4102,
486,
1044,
2182,
3639,
309,
261,
73,
1276,
1068,
13,
288,
5411,
604,
261,
668,
13,
73,
31,
3639,
289,
3639,
309,
261,
73,
1276,
31956,
503,
13,
288,
5411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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3235,
604,
1463,
3651,
5576,
424,
12,
15155,
425,
13,
565,
288,
3639,
1323,
14015,
73,
1276,
15342,
3719,
288,
5411,
425,
273,
14015,
9267,
14950,
13,
425,
2934,
588,
14950,
5621,
3639,
289,
3639,
368,
4582,
5057,
434,
1068,
1427,
8873,
4102,
486,
1044,
2182,
3639,
309,
261,
73,
1276,
1068,
13,
288,
5411,
604,
261,
668,
13,
73,
31,
3639,
289,
3639,
309,
261,
73,
1276,
31956,
503,
13,
288,
5411,
604,
261,
15876,
503,
13,
73,
31,
3639,
289,
3639,
309,
261,
73,
1276,
20840,
2540,
668,
13,
288,
5411,
604,
261,
23057,
2540,
668,
13,
73,
31,
3639,
289,
3639,
604,
394,
24506,
503,
12,
73,
1769,
565,
289,
2,
-100,
-100,
-100
] |
if ((targetUnderwater || wtype.getAmmoType() == AmmoType.T_LRM_TORPEDO || wtype .getAmmoType() == AmmoType.T_SRM_TORPEDO) | if ((targetUnderwater || wtype.getAmmoType() == AmmoType.T_LRM_TORPEDO || wtype.getAmmoType() == AmmoType.T_SRM_TORPEDO) | public static ToHitData getRangeMods(IGame game, Entity ae, int weaponId, Targetable target) { Mounted weapon = ae.getEquipment(weaponId); WeaponType wtype = (WeaponType) weapon.getType(); int[] weaponRanges = wtype.getRanges(); boolean isAttackerInfantry = (ae instanceof Infantry); boolean isWeaponInfantry = wtype.hasFlag(WeaponType.F_INFANTRY); boolean isLRMInfantry = isWeaponInfantry && wtype.getAmmoType() == AmmoType.T_LRM; boolean isIndirect = ((wtype.getAmmoType() == AmmoType.T_LRM) || (wtype.getAmmoType() == AmmoType.T_EXLRM) || (wtype.getAmmoType() == AmmoType.T_TBOLT5) || (wtype.getAmmoType() == AmmoType.T_TBOLT10) || (wtype.getAmmoType() == AmmoType.T_TBOLT15) || (wtype.getAmmoType() == AmmoType.T_TBOLT20) || (wtype.getAmmoType() == AmmoType.T_LRM_TORPEDO)) && weapon.curMode().equals("Indirect"); boolean useExtremeRange = game.getOptions().booleanOption( "maxtech_range"); ToHitData mods = new ToHitData(); // modify the ranges for ATM missile systems based on the ammo selected // TODO: this is not the right place to hardcode these if (wtype.getAmmoType() == AmmoType.T_ATM) { AmmoType atype = (AmmoType) weapon.getLinked().getType(); if ((atype.getAmmoType() == AmmoType.T_ATM) && atype.getMunitionType() == AmmoType.M_EXTENDED_RANGE) { weaponRanges = new int[] { 4, 9, 18, 27, 36 }; } else if ((atype.getAmmoType() == AmmoType.T_ATM) && atype.getMunitionType() == AmmoType.M_HIGH_EXPLOSIVE) { weaponRanges = new int[] { 0, 3, 6, 9, 12 }; } } // // modifiy the ranges for PPCs when field inhibitors are turned off // TODO: See above, it should be coded elsewhere... // if (wtype.getName().equals("Particle Cannon")) { if (game.getOptions().booleanOption("maxtech_ppc_inhibitors")) { if (weapon.curMode().equals("Field Inhibitor OFF")) { weaponRanges[0] = 0; } } } // is water involved? IHex attHex = game.getBoard().getHex(ae.getPosition()); IHex targHex = game.getBoard().getHex(target.getPosition()); int targTop = 0; int targBottom = 0; if (target != null) { targTop = target.absHeight(); targBottom = target.getElevation(); } boolean targetInPartialWater = false; boolean targetUnderwater = false; boolean weaponUnderwater = (ae.getLocationStatus(weapon.getLocation()) == ILocationExposureStatus.WET); if (targHex.containsTerrain(Terrains.WATER) && targBottom < 0) { if (targTop >= 0) targetInPartialWater = true; else targetUnderwater = true; } // allow naval units on surface to be attacked from above or below Entity te = null; if (target instanceof Entity) { te = (Entity) target; if (targBottom == 0 && UnitType.determineUnitTypeCode(te) == UnitType.NAVAL) { targetInPartialWater = true; } } // allow naval units to target underwater units, // torpedo tubes are mounted underwater if ((targetUnderwater || wtype.getAmmoType() == AmmoType.T_LRM_TORPEDO || wtype .getAmmoType() == AmmoType.T_SRM_TORPEDO) && UnitType.determineUnitTypeCode(ae) == UnitType.NAVAL) { weaponUnderwater = true; weaponRanges = wtype.getWRanges(); } // allow ice to be cleared from below if(targHex.containsTerrain(Terrains.WATER) && target.getTargetType() == Targetable.TYPE_HEX_CLEAR) { targetInPartialWater = true; } if (weaponUnderwater) { weaponRanges = wtype.getWRanges(); // HACK on ranges: for those without underwater range, // long == medium; iteration in rangeBracket() allows this if (weaponRanges[RangeType.RANGE_SHORT] == 0) { return new ToHitData(ToHitData.IMPOSSIBLE, "Weapon cannot fire underwater."); } if (!targetUnderwater && !targetInPartialWater) { // target on land or over water return new ToHitData(ToHitData.IMPOSSIBLE, "Weapon underwater, but not target."); } // special case: mechs can only fire upper body weapons at surface // naval if (te != null && UnitType.determineUnitTypeCode(te) == UnitType.NAVAL && ae instanceof Mech && ae.height() > 0 && ae.getElevation() == -1) { return new ToHitData(ToHitData.IMPOSSIBLE, "Partially submerged mech cannot fire leg weapons at surface naval vessels."); } } else if (targetUnderwater) { return new ToHitData(ToHitData.IMPOSSIBLE, "Target underwater, but not weapon."); } else if (wtype.getAmmoType() == AmmoType.T_LRM_TORPEDO || wtype.getAmmoType() == AmmoType.T_SRM_TORPEDO) { // Torpedos only fire underwater. return new ToHitData(ToHitData.IMPOSSIBLE, "Weapon can only fire underwater."); } // determine base distance & range bracket int distance = effectiveDistance(game, ae, target); int range = RangeType.rangeBracket(distance, weaponRanges, useExtremeRange); // short circuit if at zero range or out of range if (range == RangeType.RANGE_OUT) { return new ToHitData(ToHitData.AUTOMATIC_FAIL, "Target out of range"); } if (distance == 0 && !isAttackerInfantry && !(ae instanceof Mech && ((Mech)ae).getGrappled() == target.getTargetId())) { return new ToHitData(ToHitData.AUTOMATIC_FAIL, "Only infantry shoot at zero range"); } // find any c3 spotters that could help Entity c3spotter = findC3Spotter(game, ae, target); if (isIndirect) { c3spotter = ae; // no c3 when using indirect fire } if (isIndirect && game.getOptions().booleanOption("indirect_fire") && !game.getOptions().booleanOption("indirect_always_possible") && LosEffects.calculateLos(game, ae.getId(), target).canSee()) { return new ToHitData(ToHitData.IMPOSSIBLE, "Indirect fire impossible with direct LOS"); } int c3dist = effectiveDistance(game, c3spotter, target); int c3range = RangeType.rangeBracket(c3dist, weaponRanges, useExtremeRange); // determine which range we're using int usingRange = Math.min(range, c3range); String targSysType = ""; // Get the targeting system type string ready, if necessary if ((ae.getTargSysType() == MiscType.T_TARGSYS_LONGRANGE) && (ae.getTargSysType() == MiscType.T_TARGSYS_SHORTRANGE)) { targSysType = " (w/" + MiscType.getTargetSysName(ae.getTargSysType()) + ")"; } // add range modifier if (usingRange == range) { // no c3 adjustment if ((range == RangeType.RANGE_SHORT || range == RangeType.RANGE_MINIMUM) && (ae.getShortRangeModifier() != 0)) { mods.addModifier(ae.getShortRangeModifier(), "short range" + targSysType); } else if (range == RangeType.RANGE_MEDIUM) { // Right now, the range-mod affecting targeting systems DON'T // affect medium range, so we won't add that here ever. mods.addModifier(ae.getMediumRangeModifier(), "medium range"); } else if (range == RangeType.RANGE_LONG) { // Protos that loose head sensors can't shoot long range. if ((ae instanceof Protomech) && (2 == ((Protomech) ae) .getCritsHit(Protomech.LOC_HEAD))) { mods .addModifier(ToHitData.IMPOSSIBLE, "No long range attacks with destroyed head sensors."); } else { mods.addModifier(ae.getLongRangeModifier(), "long range" + targSysType); } } else if (range == RangeType.RANGE_EXTREME) { // Protos that loose head sensors can't shoot extreme range. if ((ae instanceof Protomech) && (2 == ((Protomech) ae) .getCritsHit(Protomech.LOC_HEAD))) { mods .addModifier(ToHitData.IMPOSSIBLE, "No extreme range attacks with destroyed head sensors."); } else { mods.addModifier(ae.getExtremeRangeModifier(), "extreme range" + targSysType); } } } else { // report c3 adjustment if (c3range == RangeType.RANGE_SHORT || range == RangeType.RANGE_MINIMUM) { mods.addModifier(ae.getShortRangeModifier(), "short range due to C3 spotter" + targSysType); } else if (c3range == RangeType.RANGE_MEDIUM) { mods.addModifier(ae.getMediumRangeModifier(), "medium range due to C3 spotter" + targSysType); } else if (c3range == RangeType.RANGE_LONG) { mods.addModifier(ae.getLongRangeModifier(), "long range due to C3 spotter" + targSysType); } } // add infantry LRM maximum range penalty if (isLRMInfantry && distance == weaponRanges[RangeType.RANGE_LONG]) { mods.addModifier(1, "infantry LRM maximum range"); } // add infantry zero-range modifier // TODO: this is not the right place to hardcode these if (isWeaponInfantry && distance == 0) { // Infantry platoons attacking with infantry weapons can attack // in the same hex with a base of 2, except for flamers and // SRMs, which have a base of 3 and LRMs, which suffer badly. if (wtype.hasFlag(WeaponType.F_FLAMER)) { mods.addModifier(-1, "infantry flamer assault"); } else if (wtype.getAmmoType() == AmmoType.T_SRM) { mods.addModifier(-1, "infantry SRM assault"); } else if (wtype.getAmmoType() != AmmoType.T_LRM) { mods.addModifier(-2, "infantry assault"); } } // add minimum range modifier int minRange = weaponRanges[RangeType.RANGE_MINIMUM]; if (minRange > 0 && distance <= minRange) { int minPenalty = (minRange - distance) + 1; // Infantry LRMs suffer double minimum range penalties. if (isLRMInfantry) { mods.addModifier(minPenalty * 2, "infantry LRM minimum range"); } else { mods.addModifier(minPenalty, "minimum range"); } } // add any target stealth modifier if (target instanceof Entity) { TargetRoll tmpTR = ((Entity)target).getStealthModifier(usingRange); if (tmpTR.getValue() != 0) mods.append(((Entity)target).getStealthModifier(usingRange)); } return mods; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/171118f9106c6a3efb6ef10616c1099a904cf58f/Compute.java/buggy/megamek/src/megamek/common/Compute.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2974,
13616,
751,
22373,
1739,
87,
12,
3047,
339,
7920,
16,
3887,
14221,
16,
509,
732,
28629,
548,
16,
5411,
5916,
429,
1018,
13,
288,
3639,
13076,
329,
732,
28629,
273,
14221,
18,
588,
13142,
11568,
12,
1814,
28629,
548,
1769,
3639,
1660,
28629,
559,
341,
723,
273,
261,
3218,
28629,
559,
13,
732,
28629,
18,
588,
559,
5621,
3639,
509,
8526,
732,
28629,
9932,
273,
341,
723,
18,
588,
9932,
5621,
3639,
1250,
353,
3075,
484,
264,
13149,
304,
698,
273,
261,
8906,
1276,
13648,
304,
698,
1769,
3639,
1250,
353,
3218,
28629,
13149,
304,
698,
273,
341,
723,
18,
5332,
4678,
12,
3218,
28629,
559,
18,
42,
67,
19212,
1258,
17805,
1769,
3639,
1250,
28601,
8717,
13149,
304,
698,
273,
353,
3218,
28629,
13149,
304,
698,
7734,
597,
341,
723,
18,
588,
37,
7020,
83,
559,
1435,
422,
3986,
8683,
559,
18,
56,
67,
48,
8717,
31,
3639,
1250,
353,
24943,
273,
14015,
91,
723,
18,
588,
37,
7020,
83,
559,
1435,
422,
3986,
8683,
559,
18,
56,
67,
48,
8717,
13,
7734,
747,
261,
91,
723,
18,
588,
37,
7020,
83,
559,
1435,
422,
3986,
8683,
559,
18,
56,
67,
2294,
48,
8717,
13,
7734,
747,
261,
91,
723,
18,
588,
37,
7020,
83,
559,
1435,
422,
3986,
8683,
559,
18,
56,
67,
25730,
1741,
56,
25,
13,
1171,
747,
261,
91,
723,
18,
588,
37,
7020,
83,
559,
1435,
422,
3986,
8683,
559,
18,
56,
67,
25730,
1741,
56,
2163,
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,
2974,
13616,
751,
22373,
1739,
87,
12,
3047,
339,
7920,
16,
3887,
14221,
16,
509,
732,
28629,
548,
16,
5411,
5916,
429,
1018,
13,
288,
3639,
13076,
329,
732,
28629,
273,
14221,
18,
588,
13142,
11568,
12,
1814,
28629,
548,
1769,
3639,
1660,
28629,
559,
341,
723,
273,
261,
3218,
28629,
559,
13,
732,
28629,
18,
588,
559,
5621,
3639,
509,
8526,
732,
28629,
9932,
273,
341,
723,
18,
588,
9932,
5621,
3639,
1250,
353,
3075,
484,
264,
13149,
304,
698,
273,
261,
8906,
1276,
13648,
304,
698,
1769,
3639,
1250,
353,
3218,
28629,
13149,
304,
698,
273,
341,
723,
18,
5332,
4678,
12,
3218,
28629,
559,
18,
42,
67,
19212,
1258,
17805,
1769,
3639,
1250,
2
] |
parseAllOptions(); | public boolean performOk() { // Do the super-class thang boolean result = super.performOk(); //parse and store all build options in the corresponding preference store parseAllOptions(); // Write the preference store values back to the build model ITool[] tools = configuration.getTools(); for (int i = 0; i < tools.length; ++i) { if (tools[i] instanceof ToolReference) { if (((ToolReference) tools[i]).references(tool)) { tool = tools[i]; break; } } else if (tools[i].equals(tool)) { break; } } IOption[] options = tool.getOptions(); for (int i = 0; i < options.length; i++) { IOption option = options[i]; // Transfer value from preference store to options switch (option.getValueType()) { case IOption.BOOLEAN : boolean boolVal = getPreferenceStore().getBoolean(option.getId()); ManagedBuildManager.setOption(configuration, option, boolVal); break; case IOption.ENUMERATED : String enumVal = getPreferenceStore().getString(option.getId()); String enumId = option.getEnumeratedId(enumVal); ManagedBuildManager.setOption(configuration, option, (enumId != null && enumId.length() > 0) ? enumId : enumVal); break; case IOption.STRING : String strVal = getPreferenceStore().getString(option.getId()); ManagedBuildManager.setOption(configuration, option, strVal); break; case IOption.STRING_LIST : case IOption.INCLUDE_PATH : case IOption.PREPROCESSOR_SYMBOLS : case IOption.LIBRARIES : case IOption.OBJECTS : String listStr = getPreferenceStore().getString(option.getId()); String[] listVal = BuildToolsSettingsStore.parseString(listStr); ManagedBuildManager.setOption(configuration, option, listVal); break; default : break; } } // Get the actual value out of the field editor String command = getPreferenceStore().getString(tool.getId()); if (command.length() == 0) { return result; } // Ask the build system manager to change the tool command ManagedBuildManager.setToolCommand(configuration, tool, command); return result; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/18b49394c46cbbecf041078a70e83e4975d004a7/BuildToolSettingsPage.java/buggy/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolSettingsPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
202,
202,
759,
2256,
326,
2240,
17,
1106,
286,
539,
202,
202,
6494,
563,
273,
225,
2240,
18,
16092,
8809,
5621,
9506,
202,
759,
2670,
471,
1707,
777,
1361,
702,
316,
326,
4656,
11555,
1707,
202,
202,
2670,
1595,
1320,
5621,
202,
202,
759,
2598,
326,
11555,
1707,
924,
1473,
358,
326,
1361,
938,
202,
202,
45,
6364,
8526,
8513,
273,
1664,
18,
588,
10348,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
8513,
18,
2469,
31,
965,
77,
13,
288,
1082,
202,
430,
261,
6642,
63,
77,
65,
1276,
13288,
2404,
13,
288,
9506,
202,
430,
261,
12443,
6364,
2404,
13,
8513,
63,
77,
65,
2934,
14353,
12,
6738,
3719,
288,
6862,
202,
6738,
273,
8513,
63,
77,
15533,
6862,
202,
8820,
31,
9506,
202,
97,
1082,
202,
97,
469,
309,
261,
6642,
63,
77,
8009,
14963,
12,
6738,
3719,
288,
9506,
202,
8820,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
45,
1895,
8526,
702,
273,
5226,
18,
588,
1320,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
702,
18,
2469,
31,
277,
27245,
288,
1082,
202,
45,
1895,
1456,
273,
702,
63,
77,
15533,
1082,
202,
759,
12279,
460,
628,
11555,
1707,
358,
702,
1082,
202,
9610,
261,
3482,
18,
588,
17930,
10756,
288,
9506,
202,
3593,
1665,
375,
18,
17900,
294,
6862,
202,
6494,
1426,
3053,
273,
336,
9624,
2257,
7675,
588,
5507,
12,
3482,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
202,
202,
759,
2256,
326,
2240,
17,
1106,
286,
539,
202,
202,
6494,
563,
273,
225,
2240,
18,
16092,
8809,
5621,
9506,
202,
759,
2670,
471,
1707,
777,
1361,
702,
316,
326,
4656,
11555,
1707,
202,
202,
2670,
1595,
1320,
5621,
202,
202,
759,
2598,
326,
11555,
1707,
924,
1473,
358,
326,
1361,
938,
202,
202,
45,
6364,
8526,
8513,
273,
1664,
18,
588,
10348,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
8513,
18,
2469,
31,
965,
77,
13,
288,
1082,
202,
430,
261,
6642,
63,
77,
65,
1276,
13288,
2404,
13,
288,
9506,
202,
430,
261,
12443,
6364,
2404,
13,
8513,
63,
77,
65,
2934,
2
] |
|
setModified(true); | public void setShippingCountry(String shippingCountry) { if (((shippingCountry == null) && (_shippingCountry != null)) || ((shippingCountry != null) && (_shippingCountry == null)) || ((shippingCountry != null) && (_shippingCountry != null) && !shippingCountry.equals(_shippingCountry))) { if (!XSS_ALLOW_SHIPPINGCOUNTRY) { shippingCountry = XSSUtil.strip(shippingCountry); } _shippingCountry = shippingCountry; setModified(true); } } | 53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingOrderModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingOrderModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
10373,
8142,
12,
780,
11252,
8142,
13,
288,
202,
202,
430,
261,
12443,
15076,
8142,
422,
446,
13,
597,
261,
67,
15076,
8142,
480,
446,
3719,
747,
9506,
202,
12443,
15076,
8142,
480,
446,
13,
597,
261,
67,
15076,
8142,
422,
446,
3719,
747,
9506,
202,
12443,
15076,
8142,
480,
446,
13,
597,
261,
67,
15076,
8142,
480,
446,
13,
597,
9506,
202,
5,
15076,
8142,
18,
14963,
24899,
15076,
8142,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
20101,
20002,
7240,
9590,
13,
288,
9506,
202,
15076,
8142,
273,
1139,
1260,
1304,
18,
6406,
12,
15076,
8142,
1769,
1082,
202,
97,
1082,
202,
67,
15076,
8142,
273,
11252,
8142,
31,
1082,
202,
542,
4575,
12,
3767,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
918,
444,
10373,
8142,
12,
780,
11252,
8142,
13,
288,
202,
202,
430,
261,
12443,
15076,
8142,
422,
446,
13,
597,
261,
67,
15076,
8142,
480,
446,
3719,
747,
9506,
202,
12443,
15076,
8142,
480,
446,
13,
597,
261,
67,
15076,
8142,
422,
446,
3719,
747,
9506,
202,
12443,
15076,
8142,
480,
446,
13,
597,
261,
67,
15076,
8142,
480,
446,
13,
597,
9506,
202,
5,
15076,
8142,
18,
14963,
24899,
15076,
8142,
20349,
288,
1082,
202,
430,
16051,
60,
1260,
67,
13511,
67,
20101,
20002,
7240,
9590,
13,
288,
9506,
202,
15076,
8142,
273,
1139,
1260,
1304,
18,
6406,
12,
15076,
8142,
1769,
1082,
202,
97,
1082,
202,
67,
15076,
8142,
273,
11252,
8142,
31,
2
] |
|
ResourceManager.getI18NString("resource.policy_EXC_"), | EMFCoreMessages.resource_policy_EXC_, | public void postSeparate(ILogicalResource resource, EObject eObject, URI uri) { ILogicalResourcePolicy[] policies = getPolicies(eObject); for (int i = 0; i < policies.length; i++) { try { if (Trace.isEnabled(MSLDebugOptions.RESOURCES)) { Trace.trace( MSLDebugOptions.RESOURCES, "Invoking postSeparate() on policy: " + policies[i]); //$NON-NLS-1$ } policies[i].postSeparate(resource, eObject, uri); } catch (RuntimeException e) { Trace.catching(getClass(), "postSeparate", e); //$NON-NLS-1$ Log.warning( MSLPlugin.getDefault(), MSLStatusCodes.LOGICAL_POLICY_FAILED, ResourceManager.getI18NString("resource.policy_EXC_"), //$NON-NLS-1$ e); } } } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/cfbbc380135d56e72a92fb10b8d52c0cf04e3554/LogicalResourcePolicyManager.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.emf.core/src/org/eclipse/gmf/runtime/emf/core/internal/resources/LogicalResourcePolicyManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1603,
16842,
340,
12,
45,
17955,
1420,
1058,
16,
8091,
425,
921,
16,
3699,
2003,
13,
288,
202,
202,
45,
17955,
1420,
2582,
8526,
8923,
273,
1689,
5117,
12,
73,
921,
1769,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
8923,
18,
2469,
31,
277,
27245,
288,
1082,
202,
698,
288,
9506,
202,
430,
261,
3448,
18,
291,
1526,
12,
3537,
48,
2829,
1320,
18,
11395,
55,
3719,
288,
6862,
202,
3448,
18,
5129,
12,
25083,
202,
3537,
48,
2829,
1320,
18,
11395,
55,
16,
25083,
202,
6,
11354,
310,
1603,
16842,
340,
1435,
603,
3329,
30,
315,
397,
8923,
63,
77,
19226,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
97,
6862,
9506,
202,
17407,
63,
77,
8009,
2767,
16842,
340,
12,
3146,
16,
425,
921,
16,
2003,
1769,
1082,
202,
97,
1044,
261,
11949,
425,
13,
288,
9506,
202,
3448,
18,
14683,
310,
12,
588,
797,
9334,
315,
2767,
16842,
340,
3113,
425,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
1343,
18,
8551,
12,
6862,
202,
3537,
48,
3773,
18,
588,
1868,
9334,
6862,
202,
3537,
48,
1482,
6295,
18,
29249,
67,
26366,
67,
11965,
16,
6862,
202,
3375,
4488,
479,
5058,
18,
3146,
67,
5086,
67,
2294,
39,
67,
16,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
73,
1769,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1603,
16842,
340,
12,
45,
17955,
1420,
1058,
16,
8091,
425,
921,
16,
3699,
2003,
13,
288,
202,
202,
45,
17955,
1420,
2582,
8526,
8923,
273,
1689,
5117,
12,
73,
921,
1769,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
8923,
18,
2469,
31,
277,
27245,
288,
1082,
202,
698,
288,
9506,
202,
430,
261,
3448,
18,
291,
1526,
12,
3537,
48,
2829,
1320,
18,
11395,
55,
3719,
288,
6862,
202,
3448,
18,
5129,
12,
25083,
202,
3537,
48,
2829,
1320,
18,
11395,
55,
16,
25083,
202,
6,
11354,
310,
1603,
16842,
340,
1435,
603,
3329,
30,
315,
397,
8923,
63,
77,
19226,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2
] |
return ts.isSame(toType, ts.Object()) || | return ts.equals(toType, ts.Object()) || | public boolean isImplicitCastValidImpl(Type toType) { return ts.isSame(toType, ts.Object()) || super.isImplicitCastValidImpl(toType); } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/eb41c91b2ac49c29bfb3cdd7b6e97d3e89f86e23/PaoPrimitiveType_c.java/clean/examples/pao/compiler/src/pao/types/PaoPrimitiveType_c.java | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
15787,
9735,
1556,
2828,
12,
559,
28234,
13,
288,
3639,
327,
3742,
18,
14963,
12,
869,
559,
16,
3742,
18,
921,
10756,
747,
9079,
2240,
18,
291,
15787,
9735,
1556,
2828,
12,
869,
559,
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
] |
description = toolkit.createText(container, task.getDescription(), SWT.BORDER); | description = toolkit.createText(container, task.getDescription(), SWT.NONE); description.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); | private void createSummarySection(Composite parent, FormToolkit toolkit) { Section section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR | Section.DESCRIPTION | Section.TWISTIE); section.setText(DESCRIPTION_OVERVIEW); section.setExpanded(true); if (!task.isLocal()) { section.setDescription("To modify these fields use the repository editor."); } section.setLayout(new GridLayout()); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); Composite container = toolkit.createComposite(section); section.setClient(container); GridLayout compLayout = new GridLayout(); compLayout.numColumns = 2; container.setLayout(compLayout); container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Label l = toolkit.createLabel(container, "Description:"); l.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); description = toolkit.createText(container, task.getDescription(), SWT.BORDER); description.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); if (!task.isLocal()) { description.setEnabled(false); } else { description.addKeyListener(new KeyListener() { public void keyPressed(KeyEvent e) { markDirty(true); } public void keyReleased(KeyEvent e) { // ignore } }); } Label urlLabel = toolkit.createLabel(container, "Web Link:"); urlLabel.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); issueReportURL = toolkit.createText(container, task.getUrl(), SWT.BORDER); issueReportURL.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); if (!task.isLocal()) { issueReportURL.setEditable(false); } else { issueReportURL.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(true); } }); } Label label = toolkit.createLabel(container, "Status:"); label.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); Composite statusComposite = toolkit.createComposite(container); statusComposite.setLayout(new GridLayout(2, false)); priorityCombo = new Combo(statusComposite, SWT.READ_ONLY); // Populate the combo box with priority levels for (String priorityLevel : TaskListView.PRIORITY_LEVELS) { priorityCombo.add(priorityLevel); } int prioritySelectionIndex = priorityCombo.indexOf(task.getPriority()); priorityCombo.select(prioritySelectionIndex); if (!task.isLocal()) { priorityCombo.setEnabled(false); } else { priorityCombo.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { TaskInfoEditor.this.markDirty(true); } public void widgetDefaultSelected(SelectionEvent e) { // do nothing } }); } statusCombo = new Combo(statusComposite, SWT.READ_ONLY); for (TaskStatus status : Task.TaskStatus.values()) { statusCombo.add(status.toString()); } int selectionIndex = statusCombo.indexOf(task.getStatus().toString()); statusCombo.select(selectionIndex); if (!task.isLocal()) { statusCombo.setEnabled(false); } else { statusCombo.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { TaskInfoEditor.this.markDirty(true); } public void widgetDefaultSelected(SelectionEvent e) { // do nothing } }); } statusCombo.setEnabled(false); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/2265a34a2358ae09552e2b2504408e9941a6004d/TaskInfoEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskInfoEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
4733,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
2938,
16,
16429,
429,
9400,
18,
14123,
67,
21908,
571,
10092,
18,
15911,
571,
10092,
18,
18869,
5511,
8732,
1769,
202,
202,
3464,
18,
542,
1528,
12,
15911,
67,
12959,
12145,
1769,
202,
202,
3464,
18,
542,
17957,
12,
3767,
1769,
202,
202,
430,
16051,
4146,
18,
291,
2042,
10756,
288,
1082,
202,
3464,
18,
542,
3291,
2932,
774,
5612,
4259,
1466,
999,
326,
3352,
4858,
1199,
1769,
202,
202,
97,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
3464,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
288,
1082,
202,
482,
918,
17965,
1119,
782,
18183,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
1082,
202,
482,
918,
17965,
1119,
5033,
12,
2966,
12162,
1133,
425,
13,
288,
9506,
202,
687,
18,
1734,
821,
12,
3767,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
9400,
1478,
273,
5226,
8691,
18,
2640,
9400,
12,
3464,
1769,
202,
202,
3464,
18,
542,
1227,
12,
3782,
1769,
202,
202,
6313,
3744,
1161,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
2919,
3744,
18,
2107,
3380,
273,
576,
31,
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,
1152,
918,
752,
4733,
5285,
12,
9400,
982,
16,
2748,
6364,
8691,
5226,
8691,
13,
288,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
2938,
16,
16429,
429,
9400,
18,
14123,
67,
21908,
571,
10092,
18,
15911,
571,
10092,
18,
18869,
5511,
8732,
1769,
202,
202,
3464,
18,
542,
1528,
12,
15911,
67,
12959,
12145,
1769,
202,
202,
3464,
18,
542,
17957,
12,
3767,
1769,
202,
202,
430,
16051,
4146,
18,
291,
2042,
10756,
288,
1082,
202,
3464,
18,
542,
3291,
2932,
774,
5612,
4259,
1466,
999,
326,
3352,
4858,
1199,
1769,
202,
202,
97,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2
] |
public void loadFileList(Element rootEl) { this.purgeFileList(); | public void loadFileList(final Element rootEl) { purgeFileList(); | public void loadFileList(Element rootEl) { this.purgeFileList(); Element filesEl = (Element)rootEl.getElementsByTagName("files").item(0); if (filesEl == null) return; NodeList list = filesEl.getChildNodes(); for(int i = 0; i < list.getLength() ; i++) { if(list.item(i).getNodeType() == Node.ELEMENT_NODE) { Element e = (Element)list.item(i); thaw.plugins.index.File file = new thaw.plugins.index.File(this.db, e, this); this.addFile(file); } } this.setChanged(); this.notifyObservers(); } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/Index.java/buggy/src/thaw/plugins/index/Index.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1262,
26098,
12,
1046,
1365,
4958,
13,
288,
202,
202,
2211,
18,
26422,
26098,
5621,
202,
202,
1046,
1390,
4958,
273,
261,
1046,
13,
3085,
4958,
18,
588,
3471,
10401,
2932,
2354,
20387,
1726,
12,
20,
1769,
202,
202,
430,
261,
2354,
4958,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
19914,
666,
273,
1390,
4958,
18,
588,
22460,
5621,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
666,
18,
588,
1782,
1435,
274,
277,
27245,
288,
1082,
202,
430,
12,
1098,
18,
1726,
12,
77,
2934,
588,
15101,
1435,
422,
2029,
18,
10976,
67,
8744,
13,
288,
9506,
202,
1046,
425,
273,
261,
1046,
13,
1098,
18,
1726,
12,
77,
1769,
9506,
202,
451,
2219,
18,
8057,
18,
1615,
18,
812,
585,
273,
394,
286,
2219,
18,
8057,
18,
1615,
18,
812,
12,
2211,
18,
1966,
16,
425,
16,
333,
1769,
9506,
202,
2211,
18,
1289,
812,
12,
768,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2211,
18,
542,
5033,
5621,
202,
202,
2211,
18,
12336,
29393,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1262,
26098,
12,
1046,
1365,
4958,
13,
288,
202,
202,
2211,
18,
26422,
26098,
5621,
202,
202,
1046,
1390,
4958,
273,
261,
1046,
13,
3085,
4958,
18,
588,
3471,
10401,
2932,
2354,
20387,
1726,
12,
20,
1769,
202,
202,
430,
261,
2354,
4958,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
19914,
666,
273,
1390,
4958,
18,
588,
22460,
5621,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
666,
18,
588,
1782,
1435,
274,
277,
27245,
288,
1082,
202,
430,
12,
1098,
18,
1726,
12,
77,
2934,
588,
15101,
1435,
422,
2029,
18,
10976,
67,
8744,
13,
288,
9506,
202,
1046,
425,
273,
261,
1046,
13,
1098,
18,
1726,
12,
77,
2
] |
doubles[i] = Double.longBitsToDouble( DataTools.bytesToLong(data, i*bps, bps, little)); | doubles[i] = Double.longBitsToDouble( DataTools.bytesToLong(data, i*bps, bps, little)); | public static BufferedImage makeImage(byte[] data, int w, int h, int c, boolean interleaved, int bps, boolean little) { if (bps == 1) return makeImage(data, w, h, c, interleaved); else if (bps == 2) { short[] shorts = new short[data.length / bps]; for (int i=0; i<shorts.length; i++) { shorts[i] = DataTools.bytesToShort(data, i*2, 2, little); } return makeImage(shorts, w, h, c, interleaved); } else if (bps == 3) { return ImageTools.makeImage(data, w, h, 3, interleaved); } else if (bps == 4) { float[] floats = new float[data.length / bps]; for (int i=0; i<floats.length; i++) { floats[i] = Float.intBitsToFloat(DataTools.bytesToInt(data, i*4, 4, little)); } return makeImage(floats, w, h, c, interleaved); } else if (bps == 6) { short[][] shorts = new short[3][data.length / 6]; int next = 0; if (interleaved) { for (int i=0; i<shorts[0].length; i++) { for (int j=0; j<shorts.length; j++) { shorts[j][i] = DataTools.bytesToShort(data, next, 2, little); next += 2; } } } else { for (int i=0; i<shorts.length; i++) { for (int j=0; j<shorts[i].length; j++) { shorts[i][j] = DataTools.bytesToShort(data, next, 2, little); next += 2; } } } return makeImage(shorts, w, h); } else { double[] doubles = new double[data.length / bps]; for (int i=0; i<doubles.length; i++) { doubles[i] = Double.longBitsToDouble( DataTools.bytesToLong(data, i*bps, bps, little)); } return makeImage(doubles, w, h, c, interleaved); } } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/76f0f24f6d6757c1f4133a42b987de82878422c1/ImageTools.java/clean/loci/formats/ImageTools.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
12362,
1221,
2040,
12,
7229,
8526,
501,
16,
509,
341,
16,
509,
366,
16,
509,
276,
16,
565,
1250,
1554,
22593,
16,
509,
324,
1121,
16,
1250,
12720,
13,
225,
288,
565,
309,
261,
70,
1121,
422,
404,
13,
327,
1221,
2040,
12,
892,
16,
341,
16,
366,
16,
276,
16,
1554,
22593,
1769,
565,
469,
309,
261,
70,
1121,
422,
576,
13,
288,
1377,
3025,
8526,
3025,
87,
273,
394,
3025,
63,
892,
18,
2469,
342,
324,
1121,
15533,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
6620,
87,
18,
2469,
31,
277,
27245,
288,
3639,
3025,
87,
63,
77,
65,
273,
1910,
10348,
18,
3890,
774,
4897,
12,
892,
16,
277,
14,
22,
16,
576,
16,
12720,
1769,
1377,
289,
1377,
327,
1221,
2040,
12,
6620,
87,
16,
341,
16,
366,
16,
276,
16,
1554,
22593,
1769,
565,
289,
565,
469,
309,
261,
70,
1121,
422,
890,
13,
288,
1377,
327,
3421,
10348,
18,
6540,
2040,
12,
892,
16,
341,
16,
366,
16,
890,
16,
1554,
22593,
1769,
565,
289,
565,
469,
309,
261,
70,
1121,
422,
1059,
13,
288,
1377,
1431,
8526,
19172,
273,
394,
1431,
63,
892,
18,
2469,
342,
324,
1121,
15533,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
5659,
87,
18,
2469,
31,
277,
27245,
288,
3639,
19172,
63,
77,
65,
273,
1850,
5450,
18,
474,
6495,
774,
4723,
12,
751,
10348,
18,
3890,
17864,
12,
892,
16,
277,
14,
24,
16,
1059,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
12362,
1221,
2040,
12,
7229,
8526,
501,
16,
509,
341,
16,
509,
366,
16,
509,
276,
16,
565,
1250,
1554,
22593,
16,
509,
324,
1121,
16,
1250,
12720,
13,
225,
288,
565,
309,
261,
70,
1121,
422,
404,
13,
327,
1221,
2040,
12,
892,
16,
341,
16,
366,
16,
276,
16,
1554,
22593,
1769,
565,
469,
309,
261,
70,
1121,
422,
576,
13,
288,
1377,
3025,
8526,
3025,
87,
273,
394,
3025,
63,
892,
18,
2469,
342,
324,
1121,
15533,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
6620,
87,
18,
2469,
31,
277,
27245,
288,
3639,
3025,
87,
63,
77,
65,
273,
1910,
10348,
18,
3890,
774,
4897,
12,
892,
16,
277,
14,
2
] |
if(null == m_whitespaceStrippingElements) | if (null == m_whitespaceStrippingElements) | public void setStripSpaces(Vector v) { if(null == m_whitespaceStrippingElements) { m_whitespaceStrippingElements = v; } else { int n = v.size(); for(int i = 0; i < n; i++) m_whitespaceStrippingElements.addElement(v.elementAt(i)); } } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/Stylesheet.java/buggy/src/org/apache/xalan/templates/Stylesheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
16632,
12077,
12,
5018,
331,
13,
225,
288,
377,
309,
261,
2011,
422,
312,
67,
18777,
1585,
6771,
3471,
13,
565,
288,
1377,
312,
67,
18777,
1585,
6771,
3471,
273,
331,
31,
565,
289,
565,
469,
565,
288,
1377,
509,
290,
273,
331,
18,
1467,
5621,
1377,
364,
12,
474,
277,
273,
374,
31,
277,
411,
290,
31,
277,
27245,
3639,
312,
67,
18777,
1585,
6771,
3471,
18,
1289,
1046,
12,
90,
18,
2956,
861,
12,
77,
10019,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
16632,
12077,
12,
5018,
331,
13,
225,
288,
377,
309,
261,
2011,
422,
312,
67,
18777,
1585,
6771,
3471,
13,
565,
288,
1377,
312,
67,
18777,
1585,
6771,
3471,
273,
331,
31,
565,
289,
565,
469,
565,
288,
1377,
509,
290,
273,
331,
18,
1467,
5621,
1377,
364,
12,
474,
277,
273,
374,
31,
277,
411,
290,
31,
277,
27245,
3639,
312,
67,
18777,
1585,
6771,
3471,
18,
1289,
1046,
12,
90,
18,
2956,
861,
12,
77,
10019,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Object test = testConstructor.newInstance(new Object[] { factory }); | Object test = testConstructor.newInstance(new Object[] { factory }); | public static TestSuite suite() throws Exception { Class testClass = ClassLoader.getSystemClassLoader().loadClass( "org.w3c.domts.level2.events.alltests"); Constructor testConstructor = testClass.getConstructor( new Class[] { DOMTestDocumentBuilderFactory.class }); DocumentBuilderFactory oracleFactory = (DocumentBuilderFactory) ClassLoader .getSystemClassLoader() .loadClass("oracle.xml.jaxp.JXDocumentBuilderFactory") .newInstance(); DOMTestDocumentBuilderFactory factory = new JAXPDOMTestDocumentBuilderFactory( oracleFactory, JAXPDOMTestDocumentBuilderFactory.getConfiguration2()); Object test = testConstructor.newInstance(new Object[] { factory }); return new JUnitTestSuiteAdapter((DOMTestSuite) test); } | 55441 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55441/19ecf80dd539cb3920fc52530e5ddff6102cf9f2/TestOracleAltConfig.java/buggy/java/junit/org/w3c/domts/level2/events/TestOracleAltConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
13587,
11371,
1435,
1216,
1185,
288,
202,
202,
797,
1842,
797,
273,
1082,
202,
7805,
18,
588,
3163,
7805,
7675,
945,
797,
12,
9506,
202,
6,
3341,
18,
91,
23,
71,
18,
9859,
3428,
18,
2815,
22,
18,
5989,
18,
454,
16341,
8863,
202,
202,
6293,
1842,
6293,
273,
1082,
202,
3813,
797,
18,
588,
6293,
12,
9506,
202,
2704,
1659,
8526,
288,
4703,
4709,
2519,
20692,
18,
1106,
15549,
202,
202,
2519,
20692,
20865,
1733,
273,
1082,
202,
12,
2519,
20692,
13,
9403,
9506,
202,
18,
588,
3163,
7805,
1435,
9506,
202,
18,
945,
797,
2932,
280,
16066,
18,
2902,
18,
6482,
84,
18,
46,
60,
2519,
20692,
7923,
9506,
202,
18,
2704,
1442,
5621,
202,
202,
8168,
4709,
2519,
20692,
3272,
273,
1082,
202,
2704,
7431,
52,
8168,
4709,
2519,
20692,
12,
9506,
202,
280,
16066,
1733,
16,
9506,
202,
17368,
52,
8168,
4709,
2519,
20692,
18,
588,
1750,
22,
10663,
202,
202,
921,
1842,
273,
1842,
6293,
18,
2704,
1442,
12,
2704,
1033,
8526,
288,
3272,
15549,
202,
202,
2463,
394,
804,
2802,
4709,
13587,
4216,
12443,
8168,
4709,
13587,
13,
1842,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7766,
13587,
11371,
1435,
1216,
1185,
288,
202,
202,
797,
1842,
797,
273,
1082,
202,
7805,
18,
588,
3163,
7805,
7675,
945,
797,
12,
9506,
202,
6,
3341,
18,
91,
23,
71,
18,
9859,
3428,
18,
2815,
22,
18,
5989,
18,
454,
16341,
8863,
202,
202,
6293,
1842,
6293,
273,
1082,
202,
3813,
797,
18,
588,
6293,
12,
9506,
202,
2704,
1659,
8526,
288,
4703,
4709,
2519,
20692,
18,
1106,
15549,
202,
202,
2519,
20692,
20865,
1733,
273,
1082,
202,
12,
2519,
20692,
13,
9403,
9506,
202,
18,
588,
3163,
7805,
1435,
9506,
202,
18,
945,
797,
2932,
280,
16066,
18,
2902,
18,
6482,
84,
18,
46,
60,
2519,
20692,
7923,
9506,
202,
18,
2704,
2
] |
keyGeneratorMap.put(di.getDeploymentID(), kg); | di.setKeyGenerator( kg ); | public void init(Object id, HashMap registry, Properties properties) throws org.openejb.OpenEJBException { containerID = id; deploymentRegistry = registry; if ( properties == null ) properties = new Properties(); SafeToolkit toolkit = SafeToolkit.getToolkit("CastorCMP11_EntityContainer"); SafeProperties safeProps = toolkit.getSafeProperties(properties); poolsize = safeProps.getPropertyAsInt("PoolSize", 100); Global_TX_Database = safeProps.getProperty("Global_TX_Database"); Local_TX_Database = safeProps.getProperty("Local_TX_Database"); String globalTxLogName = safeProps.getProperty("Global_TX_Log", "castor_global_tx.log"); String localTxLogName = safeProps.getProperty("Local_TX_Log", "castor_local_tx.log"); try { globalTransactionLogWriter = new java.io.PrintWriter( new java.io.FileWriter( globalTxLogName ) ); localTransactionLogWriter = new java.io.PrintWriter( new java.io.FileWriter( localTxLogName ) ); } catch ( java.io.IOException e ) { // TODO:1: Log this warning. // log( "Warning: Cannot open the log files "+localTxLogName+" and "+globalTxLogName+", using system out instead." ); globalTransactionLogWriter = new java.io.PrintWriter( new java.io.OutputStreamWriter( System.out ) ); localTransactionLogWriter = new java.io.PrintWriter( new java.io.OutputStreamWriter( System.out ) ); } /* * Castor JDO obtains a reference to the TransactionManager throught the InitialContext. * The new InitialContext will use the deployment's JNDI Context, which is normal inside * the container system, so we need to bind the TransactionManager to the deployment's name space * The biggest problem with this is that the bean itself may access the TransactionManager if it * knows the JNDI name, so we bind the TransactionManager into dynamically created transient name * space based every time the container starts. It nearly impossible for the bean to anticipate * and use the binding directly. It may be possible, however, to locate it using a Context listing method. */ String transactionManagerJndiName = "java:openejb/"+(new java.rmi.dgc.VMID()).toString().replace(':', '_'); /* * Because the Tyrex root (used by Castor) is different from the IntraVM root, * we have to bind the TxMgr under env in the IntraVM/comp * IntraVM/comp is bound under TyrexRoot/comp so beans can use java:comp indifferently. */ String transactionManagerJndiNameTyrex = "env/"+(new java.rmi.dgc.VMID()).toString().replace(':', '_'); /* * This container uses two different JDO objects. One whose transactions are managed by a tx manager * and which is not. The following code configures both. */ jdo_ForGlobalTransaction = new JDO(); jdo_ForGlobalTransaction.setLogWriter( globalTransactionLogWriter ); // Assign the TransactionManager JNDI name to the dynamically generated JNDI name jdo_ForGlobalTransaction.setTransactionManager("java:comp/"+transactionManagerJndiNameTyrex); jdo_ForGlobalTransaction.setDatabasePooling( true ); jdo_ForGlobalTransaction.setConfiguration(Global_TX_Database); jdo_ForGlobalTransaction.setDatabaseName("Global_TX_Database"); jdo_ForGlobalTransaction.setCallbackInterceptor(this); jdo_ForGlobalTransaction.setInstanceFactory(this); // Make sure the DB is registered as a as synchronization object before the transaction begins. jdo_ForLocalTransaction = new JDO(); jdo_ForLocalTransaction.setLogWriter( localTransactionLogWriter ); jdo_ForLocalTransaction.setConfiguration(Local_TX_Database); jdo_ForLocalTransaction.setDatabaseName("Local_TX_Database"); jdo_ForLocalTransaction.setCallbackInterceptor(this); jdo_ForLocalTransaction.setInstanceFactory(this); /* * This block of code is necessary to avoid a chicken and egg problem. The DeploymentInfo * objects must have a reference to their container during this assembly process, but the * container is created after the DeploymentInfo necessitating this loop to assign all * deployment info object's their containers. * * In addition the loop is leveraged for other oprations like creating the method ready pool * and the keyGenerator pool. */ org.openejb.DeploymentInfo [] deploys = this.deployments(); /* * the JndiTxReference will dynamically obtian a reference to the TransactionManger the first * time it used. The same Reference is shared by all deployments, which is not a problem. */ JndiTxReference txReference = new JndiTxReference(); for ( int x = 0; x < deploys.length; x++ ) { org.openejb.core.DeploymentInfo di = (org.openejb.core.DeploymentInfo)deploys[x]; di.setContainer(this); // also added this line to create the Method Ready Pool for each deployment methodReadyPoolMap.put(di.getDeploymentID(),new LinkedListStack(poolsize/2)); KeyGenerator kg = null; try { kg = KeyGeneratorFactory.createKeyGenerator(di); keyGeneratorMap.put(di.getDeploymentID(), kg); } catch ( Exception e ) { e.printStackTrace(); throw new org.openejb.SystemException("Unable to create KeyGenerator for deployment id = "+di.getDeploymentID(), e); } // bind the TransactionManager to the dynamically generated JNDI name try { if ( di instanceof org.openejb.tyrex.TyrexDeploymentInfo ) { ((javax.naming.Context)di.getJndiEnc().lookup("java:comp")).bind("comp/"+transactionManagerJndiNameTyrex,txReference); } else { di.getJndiEnc().bind(transactionManagerJndiName,txReference); jdo_ForGlobalTransaction.setTransactionManager(transactionManagerJndiName); } } catch ( Exception e ) { e.printStackTrace(); throw new org.openejb.SystemException("Unable to bind TransactionManager to deployment id = "+di.getDeploymentID()+" using JNDI name = \""+transactionManagerJndiName+"\"", e); } try { /** * The following code adds a findByPrimaryKey query-statement to the list of queries * held by the deployment descriptor. The container is required to generate this query * automatically, which is what this code does. */ String findByPrimarKeyQuery = "SELECT e FROM "+di.getBeanClass().getName()+" e WHERE "; if ( kg.isKeyComplex() ) { Field [] pkFields = di.getPrimaryKeyClass().getFields(); for ( int i = 1; i <= pkFields.length; i++ ) { findByPrimarKeyQuery += "e."+pkFields[i-1].getName()+" = $"+i; if ( (i+1)<=pkFields.length ) findByPrimarKeyQuery += " AND "; } } else { findByPrimarKeyQuery += "e."+di.getPrimaryKeyField().getName()+" = $1"; } Method findByPrimaryKeyMethod = di.getHomeInterface().getMethod("findByPrimaryKey", new Class []{di.getPrimaryKeyClass()}); di.addQuery(findByPrimaryKeyMethod, findByPrimarKeyQuery); } catch ( Exception e ) { throw new org.openejb.SystemException("Could not generate a query statement for the findByPrimaryKey method of the deployment = "+di.getDeploymentID(),e); } } } | 47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/3672264daeda35528fc1545391d5f3b38764b0ff/CastorCMP11_EntityContainer.java/clean/openejb0/src/facilities/org/openejb/alt/containers/castor_cmp11/CastorCMP11_EntityContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
921,
612,
16,
4317,
4023,
16,
6183,
1790,
13,
565,
1216,
2358,
18,
3190,
73,
10649,
18,
3678,
22719,
503,
565,
288,
3639,
24257,
273,
612,
31,
3639,
6314,
4243,
273,
4023,
31,
3639,
309,
261,
1790,
422,
446,
262,
1790,
273,
394,
6183,
5621,
3639,
14060,
6364,
8691,
5226,
8691,
273,
14060,
6364,
8691,
18,
588,
6364,
8691,
2932,
9735,
280,
39,
4566,
2499,
67,
1943,
2170,
8863,
3639,
14060,
2297,
4183,
5047,
273,
5226,
8691,
18,
588,
9890,
2297,
12,
4738,
1769,
3639,
2845,
1467,
273,
4183,
5047,
18,
588,
1396,
31720,
2932,
18834,
3113,
2130,
1769,
3639,
8510,
67,
16556,
67,
4254,
273,
4183,
5047,
18,
588,
1396,
2932,
5160,
67,
16556,
67,
4254,
8863,
3639,
3566,
67,
16556,
67,
4254,
273,
4183,
5047,
18,
588,
1396,
2932,
2042,
67,
16556,
67,
4254,
8863,
3639,
514,
2552,
4188,
1343,
461,
273,
4183,
5047,
18,
588,
1396,
2932,
5160,
67,
16556,
67,
1343,
3113,
315,
4155,
280,
67,
6347,
67,
978,
18,
1330,
8863,
3639,
514,
1191,
4188,
1343,
461,
225,
273,
4183,
5047,
18,
588,
1396,
2932,
2042,
67,
16556,
67,
1343,
3113,
315,
4155,
280,
67,
3729,
67,
978,
18,
1330,
8863,
3639,
775,
288,
5411,
2552,
3342,
1343,
2289,
273,
394,
2252,
18,
1594,
18,
5108,
2289,
12,
394,
2252,
18,
1594,
18,
812,
2289,
12,
2552,
4188,
1343,
461,
262,
11272,
5397,
1191,
3342,
1343,
2289,
225,
273,
394,
2252,
18,
1594,
18,
5108,
2289,
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,
918,
1208,
12,
921,
612,
16,
4317,
4023,
16,
6183,
1790,
13,
565,
1216,
2358,
18,
3190,
73,
10649,
18,
3678,
22719,
503,
565,
288,
3639,
24257,
273,
612,
31,
3639,
6314,
4243,
273,
4023,
31,
3639,
309,
261,
1790,
422,
446,
262,
1790,
273,
394,
6183,
5621,
3639,
14060,
6364,
8691,
5226,
8691,
273,
14060,
6364,
8691,
18,
588,
6364,
8691,
2932,
9735,
280,
39,
4566,
2499,
67,
1943,
2170,
8863,
3639,
14060,
2297,
4183,
5047,
273,
5226,
8691,
18,
588,
9890,
2297,
12,
4738,
1769,
3639,
2845,
1467,
273,
4183,
5047,
18,
588,
1396,
31720,
2932,
18834,
3113,
2130,
1769,
3639,
8510,
67,
16556,
67,
4254,
273,
4183,
5047,
18,
588,
1396,
2932,
5160,
67,
2
] |
public org.quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { org.quickfix.field.UnderlyingCFICode value = new org.quickfix.field.UnderlyingCFICode(); | public quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { quickfix.field.UnderlyingCFICode value = new quickfix.field.UnderlyingCFICode(); | public org.quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { org.quickfix.field.UnderlyingCFICode value = new org.quickfix.field.UnderlyingCFICode(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionReport.java/clean/src/java/src/quickfix/fix44/PositionReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
39,
1653,
1085,
10833,
765,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
39,
1653,
1085,
10833,
765,
6291,
39,
1653,
1085,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
39,
1653,
1085,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
39,
1653,
1085,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (pathVariablesBlock.performOk()) { String[] variableNames = pathVariablesBlock.getSelection(); | if (pathVariablesGroup.performOk()) { String[] variableNames = pathVariablesGroup.getSelection(); | protected void okPressed() { if (pathVariablesBlock.performOk()) { String[] variableNames = pathVariablesBlock.getSelection(); setSelectionResult(variableNames); } else { setSelectionResult(null); } super.okPressed();} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3ac66e2765c6ad8a4a8a57286110b5d7b993a62d/PathVariableSelectionDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/PathVariableSelectionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
1529,
24624,
1435,
288,
202,
430,
261,
803,
6158,
1768,
18,
16092,
8809,
10756,
288,
202,
202,
780,
8526,
2190,
1557,
273,
589,
6158,
1768,
18,
588,
6233,
5621,
3196,
202,
542,
6233,
1253,
12,
6105,
1557,
1769,
202,
97,
202,
12107,
288,
202,
202,
542,
6233,
1253,
12,
2011,
1769,
202,
97,
202,
9565,
18,
601,
24624,
5621,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
1529,
24624,
1435,
288,
202,
430,
261,
803,
6158,
1768,
18,
16092,
8809,
10756,
288,
202,
202,
780,
8526,
2190,
1557,
273,
589,
6158,
1768,
18,
588,
6233,
5621,
3196,
202,
542,
6233,
1253,
12,
6105,
1557,
1769,
202,
97,
202,
12107,
288,
202,
202,
542,
6233,
1253,
12,
2011,
1769,
202,
97,
202,
9565,
18,
601,
24624,
5621,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void doAction(int oldStep) { switch (oldStep) { case 1: // Just completed the first step where we make our choices. First // see if we have a choice. We always should, so print a rude // message if we don't int choice = -1; if (_step1Choice != null) { choice = _step1Choice.getSelectedIndex(); } if (choice == -1) { cat.warn("WizAssocComposite: nothing selected, " + "should not get here"); return; } // It is quite possible that the cause of the problem has by now // been deleted, in which case we will throw an exception if we try // to change things. Catch this tidily. try { // Set the appropriate aggregation on each end Iterator iter = _getTriggerAsc().getConnections().iterator(); MAssociationEnd ae0 = (MAssociationEnd) iter.next(); MAssociationEnd ae1 = (MAssociationEnd) iter.next(); switch (choice) { case 0: // Start is a composite aggregation of end ae0.setAggregation(MAggregationKind.COMPOSITE); ae1.setAggregation(MAggregationKind.NONE); break ; case 1: // Start is a shared aggregation of end ae0.setAggregation(MAggregationKind.AGGREGATE); ae1.setAggregation(MAggregationKind.NONE); break ; case 2: // End is a composite aggregation of start ae0.setAggregation(MAggregationKind.NONE); ae1.setAggregation(MAggregationKind.COMPOSITE); break ; case 3: // End is a shared aggregation of start ae0.setAggregation(MAggregationKind.NONE); ae1.setAggregation(MAggregationKind.AGGREGATE); break ; case 4: // No aggregation ae0.setAggregation(MAggregationKind.NONE); ae1.setAggregation(MAggregationKind.NONE); break ; } } catch (Exception pve) { // Someone took our association away. cat.error("WizAssocComposite: could not set " + "aggregation.", pve); } } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/WizAssocComposite.java/clean/src_new/org/argouml/uml/cognitive/critics/WizAssocComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
741,
1803,
12,
474,
1592,
4160,
13,
288,
9610,
261,
1673,
4160,
13,
288,
3593,
404,
2207,
12526,
5951,
326,
1122,
2235,
1625,
732,
1221,
3134,
7246,
18,
5783,
759,
2621,
309,
732,
1240,
279,
6023,
18,
1660,
3712,
1410,
16,
1427,
1172,
279,
436,
1317,
759,
883,
309,
732,
2727,
1404,
474,
6023,
273,
300,
21,
31,
430,
261,
67,
4119,
21,
10538,
480,
446,
13,
288,
11569,
273,
389,
4119,
21,
10538,
18,
588,
7416,
1016,
5621,
97,
430,
261,
11569,
422,
300,
21,
13,
288,
2574,
18,
8935,
2932,
59,
452,
16974,
9400,
30,
5083,
3170,
16,
315,
397,
315,
13139,
486,
336,
2674,
8863,
2463,
31,
97,
759,
2597,
353,
25102,
3323,
716,
326,
4620,
434,
326,
6199,
711,
635,
2037,
759,
2118,
4282,
16,
316,
1492,
648,
732,
903,
604,
392,
1520,
309,
732,
775,
759,
358,
2549,
9198,
18,
21984,
333,
11594,
3220,
18,
698,
288,
759,
1000,
326,
5505,
10163,
603,
1517,
679,
3198,
1400,
273,
389,
588,
6518,
13665,
7675,
588,
9314,
7675,
9838,
5621,
49,
7174,
1638,
14221,
20,
273,
261,
49,
7174,
1638,
13,
1400,
18,
4285,
5621,
49,
7174,
1638,
14221,
21,
273,
261,
49,
7174,
1638,
13,
1400,
18,
4285,
5621,
9610,
261,
11569,
13,
288,
3593,
374,
2207,
3603,
353,
279,
9635,
10163,
434,
679,
8906,
20,
18,
542,
12089,
12,
49,
12089,
5677,
18,
4208,
24595,
1769,
8906,
21,
18,
542,
12089,
12,
49,
12089,
5677,
18,
9826,
1769,
8820,
274,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
741,
1803,
12,
474,
1592,
4160,
13,
288,
9610,
261,
1673,
4160,
13,
288,
3593,
404,
2207,
12526,
5951,
326,
1122,
2235,
1625,
732,
1221,
3134,
7246,
18,
5783,
759,
2621,
309,
732,
1240,
279,
6023,
18,
1660,
3712,
1410,
16,
1427,
1172,
279,
436,
1317,
759,
883,
309,
732,
2727,
1404,
474,
6023,
273,
300,
21,
31,
430,
261,
67,
4119,
21,
10538,
480,
446,
13,
288,
11569,
273,
389,
4119,
21,
10538,
18,
588,
7416,
1016,
5621,
97,
430,
261,
11569,
422,
300,
21,
13,
288,
2574,
18,
8935,
2932,
59,
452,
16974,
9400,
30,
5083,
3170,
16,
315,
397,
315,
13139,
486,
336,
2674,
8863,
2463,
31,
97,
759,
2597,
353,
25102,
3323,
716,
2
] |
||
event = generateEpisode(id, minDuration, "msdt.partactive.xsd", | event = generateEpisode(minDuration, "msdt.partactive.xsd", | public ValidEventPacket analyse(ValidEventPacket packet, int id, long minDuration) { ValidEventPacket event = null; String msdt = packet.getMicroSensorDataType().getName(); try { if (msdt.equals("msdt.part.xsd") || msdt.equals("msdt.editor.xsd") || msdt.equals("msdt.window.xsd")) { Document document = packet.getDocument(); Date timestamp = packet.getTimeStamp(); if (msdt.equals("msdt.part.xsd")) { String activity = ECGParser.getSingleNodeValue("activity", document); String partname = ECGParser.getSingleNodeValue("partname", document); if (state == PartActiveEpisodeState.START && activity.equals("activated")) { state = PartActiveEpisodeState.PARTACTIVE; activePartName = partname; startDate = timestamp; } else if (state == PartActiveEpisodeState.PARTACTIVE && activity.equals("deactivated") && this.isSamePart(partname, activePartName)) { // normal deactivate of this view event = generateEpisode(id, minDuration, "msdt.partactive.xsd", ECGParser.getSingleNodeValue("username", document), ECGParser.getSingleNodeValue("projectname", document), timestamp, startDate, activePartName); activePartName = null; startDate = null; state = PartActiveEpisodeState.STOP; } else if (state == PartActiveEpisodeState.PARTACTIVE && (activity.equals("activated") || activity.equals("opened")) && !this.isSamePart(partname, activePartName)) { // activation of another view = more reliable to tell that this one is deactivated event = generateEpisode(id, minDuration, "msdt.partactive.xsd", ECGParser.getSingleNodeValue("username", document), ECGParser.getSingleNodeValue("projectname", document), timestamp, startDate, activePartName); activePartName = null; startDate = null; state = PartActiveEpisodeState.STOP; } else if ((state == PartActiveEpisodeState.PARTHOLD) && activity.equals("deactivated") && this.isSamePart(partname, activePartName)) { // View has been silently deactivated, discard it activePartName = null; startDate = null; state = PartActiveEpisodeState.STOP; } } else if (msdt.equals("msdt.editor.xsd")) { String activity = ECGParser.getSingleNodeValue("activity", document); if (state == PartActiveEpisodeState.PARTACTIVE && (activity.equals("activated") || activity.equals("opened"))) { // activation of editor means deactivation of this part event = generateEpisode(id, minDuration, "msdt.partactive.xsd", ECGParser.getSingleNodeValue("username", document), ECGParser.getSingleNodeValue("projectname", document), timestamp, startDate, activePartName); activePartName = null; startDate = null; state = PartActiveEpisodeState.STOP; } } else if (msdt.equals("msdt.window.xsd")) { String activity = ECGParser.getSingleNodeValue("activity", document); if (state == PartActiveEpisodeState.PARTACTIVE && activity.equals("deactivated")) { state = PartActiveEpisodeState.PARTHOLD; event = generateEpisode(id, minDuration, "msdt.partactive.xsd", ECGParser.getSingleNodeValue("username", document), ECGParser.getSingleNodeValue("projectname", document), timestamp, startDate, activePartName); startDate = null; } else if (state == PartActiveEpisodeState.PARTHOLD && activity.equals("activated")) { state = PartActiveEpisodeState.PARTACTIVE; startDate = timestamp; } } } } catch (NodeException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } return event; } | 10374 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10374/043eda55d371a9351fcb49f63482e00ccd49a01c/PartActiveEpisodeRecognizer.java/clean/trunk/modules/ECG_EpisodeRecognizerIntermediateModule/src/org/electrocodeogram/module/intermediate/implementation/recognizers/PartActiveEpisodeRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2364,
1133,
6667,
31087,
12,
1556,
1133,
6667,
4414,
16,
509,
612,
16,
1525,
1131,
5326,
13,
288,
202,
202,
1556,
1133,
6667,
871,
273,
446,
31,
202,
202,
780,
4086,
7510,
273,
4414,
18,
588,
13617,
22294,
6273,
7675,
17994,
5621,
202,
202,
698,
288,
1082,
202,
430,
261,
959,
7510,
18,
14963,
2932,
959,
7510,
18,
2680,
18,
19144,
7923,
747,
7734,
4086,
7510,
18,
14963,
2932,
959,
7510,
18,
9177,
18,
19144,
7923,
747,
7734,
4086,
7510,
18,
14963,
2932,
959,
7510,
18,
5668,
18,
19144,
6,
3719,
288,
9506,
202,
2519,
1668,
273,
4414,
18,
588,
2519,
5621,
9506,
202,
1626,
2858,
273,
4414,
18,
588,
21536,
5621,
6862,
1171,
309,
261,
959,
7510,
18,
14963,
2932,
959,
7510,
18,
2680,
18,
19144,
6,
3719,
288,
10792,
514,
5728,
273,
7773,
43,
2678,
18,
588,
5281,
907,
620,
2932,
9653,
3113,
1668,
1769,
377,
9506,
202,
780,
1087,
529,
273,
7773,
43,
2678,
18,
588,
5281,
907,
620,
2932,
2680,
529,
3113,
1668,
1769,
377,
6862,
377,
9506,
202,
430,
261,
2019,
422,
6393,
3896,
18918,
11802,
1119,
18,
7570,
597,
5728,
18,
14963,
2932,
18836,
6,
3719,
288,
377,
6862,
202,
2019,
273,
6393,
3896,
18918,
11802,
1119,
18,
15055,
13301,
31,
377,
6862,
202,
3535,
1988,
461,
273,
1087,
529,
31,
377,
6862,
202,
1937,
1626,
273,
2858,
31,
377,
9506,
202,
97,
377,
9506,
202,
12107,
309,
261,
2019,
422,
6393,
3896,
18918,
11802,
1119,
18,
15055,
13301,
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,
2364,
1133,
6667,
31087,
12,
1556,
1133,
6667,
4414,
16,
509,
612,
16,
1525,
1131,
5326,
13,
288,
202,
202,
1556,
1133,
6667,
871,
273,
446,
31,
202,
202,
780,
4086,
7510,
273,
4414,
18,
588,
13617,
22294,
6273,
7675,
17994,
5621,
202,
202,
698,
288,
1082,
202,
430,
261,
959,
7510,
18,
14963,
2932,
959,
7510,
18,
2680,
18,
19144,
7923,
747,
7734,
4086,
7510,
18,
14963,
2932,
959,
7510,
18,
9177,
18,
19144,
7923,
747,
7734,
4086,
7510,
18,
14963,
2932,
959,
7510,
18,
5668,
18,
19144,
6,
3719,
288,
9506,
202,
2519,
1668,
273,
4414,
18,
588,
2519,
5621,
9506,
202,
1626,
2858,
273,
4414,
18,
588,
21536,
5621,
6862,
1171,
309,
261,
959,
2
] |
ret.append(name).append("=").append(_payload.get(name)); | ret.append(name).append('=').append(_payload.get(name)); | public String toString() { StringBuffer ret = new StringBuffer(1000); String comma = ""; ret.append(_spec.getName()).append(" {"); for (Iterator i = _spec.getFields().keySet().iterator(); i.hasNext();) { ret.append(comma); String name = (String) i.next(); ret.append(name).append("=").append(_payload.get(name)); comma = ", "; } ret.append("}"); return ret.toString(); } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Message.java/buggy/src/freenet/io/comm/Message.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
780,
1892,
325,
273,
394,
6674,
12,
18088,
1769,
202,
202,
780,
8716,
273,
1408,
31,
3639,
325,
18,
6923,
24899,
2793,
18,
17994,
1435,
2934,
6923,
2932,
288,
8863,
202,
202,
1884,
261,
3198,
277,
273,
389,
2793,
18,
588,
2314,
7675,
856,
694,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
1349,
18,
6923,
12,
25034,
1769,
1082,
202,
780,
508,
273,
261,
780,
13,
277,
18,
4285,
5621,
5411,
325,
18,
6923,
12,
529,
2934,
6923,
2932,
1546,
2934,
6923,
24899,
7648,
18,
588,
12,
529,
10019,
1082,
202,
25034,
273,
3104,
13636,
202,
202,
97,
202,
202,
1349,
18,
6923,
2932,
1532,
1769,
202,
202,
2463,
325,
18,
10492,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
780,
1892,
325,
273,
394,
6674,
12,
18088,
1769,
202,
202,
780,
8716,
273,
1408,
31,
3639,
325,
18,
6923,
24899,
2793,
18,
17994,
1435,
2934,
6923,
2932,
288,
8863,
202,
202,
1884,
261,
3198,
277,
273,
389,
2793,
18,
588,
2314,
7675,
856,
694,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
1349,
18,
6923,
12,
25034,
1769,
1082,
202,
780,
508,
273,
261,
780,
13,
277,
18,
4285,
5621,
5411,
325,
18,
6923,
12,
529,
2934,
6923,
2932,
1546,
2934,
6923,
24899,
7648,
18,
588,
12,
529,
10019,
1082,
202,
25034,
273,
3104,
13636,
202,
202,
97,
202,
202,
1349,
18,
6923,
2932,
1532,
2
] |
String sendLink = link.getProtocolClass().getName(); | String sendLink = getName (link); | private static int getBestRTTForLink (DestinationLink link, String node, boolean includeNodeTime) { synchronized (roundtripTable) { String sendLink = link.getProtocolClass().getName(); String key = sendLink +"-"+ node; Hashtable table = (Hashtable) roundtripTable.get (key); if (table != null) { // Go through the table and find the smallest non-zero average roundtrip time int rtt, smallestRTT = Integer.MAX_VALUE; for (Enumeration e=table.elements(); e.hasMoreElements(); ) { Averages avgs = (Averages) e.nextElement(); rtt = (int) (avgs.commRTT.getAverage() + (includeNodeTime ? avgs.nodeTme.getAverage() : 0.0)); if (rtt > 0 && rtt < smallestRTT) smallestRTT = rtt; } if (smallestRTT != Integer.MAX_VALUE) return smallestRTT; } return 0; // no non-zero rtt average available } } | 11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/15975c2ad36eae4bbcae53cfd4eca46118d997e4/RTTAspect.java/buggy/msglog/src/org/cougaar/core/mts/RTTAspect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
28782,
54,
1470,
1290,
2098,
261,
5683,
2098,
1692,
16,
514,
756,
16,
1250,
2341,
907,
950,
13,
225,
288,
565,
3852,
261,
2260,
25125,
1388,
13,
565,
288,
1377,
514,
1366,
2098,
273,
1723,
261,
1232,
1769,
1377,
514,
498,
273,
1366,
2098,
397,
6,
10951,
15,
756,
31,
1377,
18559,
1014,
273,
261,
5582,
14544,
13,
3643,
25125,
1388,
18,
588,
261,
856,
1769,
1377,
309,
261,
2121,
480,
446,
13,
1377,
288,
3639,
368,
225,
4220,
3059,
326,
1014,
471,
1104,
326,
13541,
1661,
17,
7124,
8164,
3643,
25125,
813,
3639,
509,
31525,
16,
13541,
54,
1470,
273,
2144,
18,
6694,
67,
4051,
31,
2868,
364,
261,
21847,
425,
33,
2121,
18,
6274,
5621,
425,
18,
5332,
7417,
3471,
5621,
262,
3639,
288,
1850,
432,
502,
1023,
1712,
564,
273,
261,
37,
502,
1023,
13,
425,
18,
4285,
1046,
5621,
1850,
31525,
273,
261,
474,
13,
261,
842,
564,
18,
5702,
54,
1470,
18,
588,
17115,
1435,
397,
261,
6702,
907,
950,
692,
1712,
564,
18,
2159,
56,
3501,
18,
588,
17115,
1435,
294,
374,
18,
20,
10019,
1850,
309,
261,
86,
748,
405,
374,
597,
31525,
411,
13541,
54,
1470,
13,
13541,
54,
1470,
273,
31525,
31,
3639,
289,
3639,
309,
261,
12019,
395,
54,
1470,
480,
2144,
18,
6694,
67,
4051,
13,
327,
13541,
54,
1470,
31,
1377,
289,
5411,
327,
374,
31,
225,
368,
1158,
1661,
17,
7124,
31525,
8164,
2319,
565,
289,
225,
289,
2,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
28782,
54,
1470,
1290,
2098,
261,
5683,
2098,
1692,
16,
514,
756,
16,
1250,
2341,
907,
950,
13,
225,
288,
565,
3852,
261,
2260,
25125,
1388,
13,
565,
288,
1377,
514,
1366,
2098,
273,
1723,
261,
1232,
1769,
1377,
514,
498,
273,
1366,
2098,
397,
6,
10951,
15,
756,
31,
1377,
18559,
1014,
273,
261,
5582,
14544,
13,
3643,
25125,
1388,
18,
588,
261,
856,
1769,
1377,
309,
261,
2121,
480,
446,
13,
1377,
288,
3639,
368,
225,
4220,
3059,
326,
1014,
471,
1104,
326,
13541,
1661,
17,
7124,
8164,
3643,
25125,
813,
3639,
509,
31525,
16,
13541,
54,
1470,
273,
2144,
18,
6694,
67,
4051,
31,
2868,
364,
261,
21847,
425,
33,
2121,
18,
2
] |
launch(LauncherUtils.getDefaultHTMLSuiteUrl(browserURL, suiteUrl, multiWindow)); | launch(LauncherUtils.getDefaultHTMLSuiteUrl(browserURL, suiteUrl, multiWindow, 0)); | public void launchHTMLSuite(String suiteUrl, String browserURL, boolean multiWindow) { launch(LauncherUtils.getDefaultHTMLSuiteUrl(browserURL, suiteUrl, multiWindow)); } | 5066 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5066/77f7c04f7cd7f67e780bc07ed4971929a8d63e2b/AbstractBrowserLauncher.java/buggy/server-coreless/src/main/java/org/openqa/selenium/server/browserlaunchers/AbstractBrowserLauncher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8037,
4870,
13587,
12,
780,
11371,
1489,
16,
514,
4748,
1785,
16,
1250,
3309,
3829,
13,
288,
3639,
8037,
12,
28820,
1989,
18,
588,
1868,
4870,
13587,
1489,
12,
11213,
1785,
16,
11371,
1489,
16,
3309,
3829,
16,
374,
10019,
565,
289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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8037,
4870,
13587,
12,
780,
11371,
1489,
16,
514,
4748,
1785,
16,
1250,
3309,
3829,
13,
288,
3639,
8037,
12,
28820,
1989,
18,
588,
1868,
4870,
13587,
1489,
12,
11213,
1785,
16,
11371,
1489,
16,
3309,
3829,
16,
374,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Token xsp; xsp = jj_scanpos; if (jj_3R_250()) { jj_scanpos = xsp; if (jj_3R_251()) { jj_scanpos = xsp; if (jj_3R_252()) { jj_scanpos = xsp; if (jj_3R_253()) { jj_scanpos = xsp; if (jj_3R_254()) { jj_scanpos = xsp; if (jj_3R_255()) { jj_scanpos = xsp; if (jj_3R_256()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | if (jj_scan_token(TEMPLATE)) return true; if (jj_scan_token(LESSTHAN)) return true; if (jj_3R_216()) return true; if (jj_scan_token(GREATERTHAN)) return true; return false; } | static final private boolean jj_3R_136() { Token xsp; xsp = jj_scanpos; if (jj_3R_250()) { jj_scanpos = xsp; if (jj_3R_251()) { jj_scanpos = xsp; if (jj_3R_252()) { jj_scanpos = xsp; if (jj_3R_253()) { jj_scanpos = xsp; if (jj_3R_254()) { jj_scanpos = xsp; if (jj_3R_255()) { jj_scanpos = xsp; if (jj_3R_256()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
26959,
1435,
288,
3639,
3155,
619,
1752,
31,
3639,
619,
1752,
273,
10684,
67,
9871,
917,
31,
3639,
309,
261,
78,
78,
67,
23,
54,
67,
26520,
10756,
288,
5411,
10684,
67,
9871,
917,
273,
619,
1752,
31,
5411,
309,
261,
78,
78,
67,
23,
54,
67,
2947,
21,
10756,
288,
7734,
10684,
67,
9871,
917,
273,
619,
1752,
31,
7734,
309,
261,
78,
78,
67,
23,
54,
67,
2947,
22,
10756,
288,
10792,
10684,
67,
9871,
917,
273,
619,
1752,
31,
10792,
309,
261,
78,
78,
67,
23,
54,
67,
30304,
10756,
288,
13491,
10684,
67,
9871,
917,
273,
619,
1752,
31,
13491,
309,
261,
78,
78,
67,
23,
54,
67,
26261,
10756,
288,
18701,
10684,
67,
9871,
917,
273,
619,
1752,
31,
18701,
309,
261,
78,
78,
67,
23,
54,
67,
10395,
10756,
288,
27573,
10684,
67,
9871,
917,
273,
619,
1752,
31,
27573,
309,
261,
78,
78,
67,
23,
54,
67,
5034,
10756,
327,
638,
31,
27573,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
18701,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
13491,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
10792,
289,
469,
309,
261,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
26959,
1435,
288,
3639,
3155,
619,
1752,
31,
3639,
619,
1752,
273,
10684,
67,
9871,
917,
31,
3639,
309,
261,
78,
78,
67,
23,
54,
67,
26520,
10756,
288,
5411,
10684,
67,
9871,
917,
273,
619,
1752,
31,
5411,
309,
261,
78,
78,
67,
23,
54,
67,
2947,
21,
10756,
288,
7734,
10684,
67,
9871,
917,
273,
619,
1752,
31,
7734,
309,
261,
78,
78,
67,
23,
54,
67,
2947,
22,
10756,
288,
10792,
10684,
67,
9871,
917,
273,
619,
1752,
31,
10792,
309,
261,
78,
78,
67,
23,
54,
67,
30304,
10756,
288,
13491,
10684,
67,
9871,
917,
273,
619,
1752,
31,
13491,
309,
261,
78,
78,
67,
2
] |
f[0] = new Field(connection,new String("TABLE_CAT"),iVarcharOid,32); | f[0] = new Field(connection,"TABLE_CAT",iVarcharOid,32); | public java.sql.ResultSet getCatalogs() throws SQLException { // We don't use catalogs, so we simply return a single catalog name "". Field f[] = new Field[1]; Vector v = new Vector(); byte[][] tuple = new byte[1][0]; f[0] = new Field(connection,new String("TABLE_CAT"),iVarcharOid,32); tuple[0] = "".getBytes(); v.addElement(tuple); return new ResultSet(connection,f,v,"OK",1); } | 47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/7f171b599a50d471d4791c768b538978b4a2dc95/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
1927,
21836,
1435,
1216,
6483,
225,
288,
565,
368,
1660,
2727,
1404,
999,
26455,
16,
1427,
732,
8616,
327,
279,
2202,
6222,
508,
1408,
18,
565,
2286,
284,
8526,
273,
394,
2286,
63,
21,
15533,
565,
5589,
331,
273,
394,
5589,
5621,
565,
1160,
63,
6362,
65,
3193,
273,
394,
1160,
63,
21,
6362,
20,
15533,
565,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
10837,
7775,
67,
14130,
3113,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
3193,
63,
20,
65,
273,
1408,
18,
588,
2160,
5621,
565,
331,
18,
1289,
1046,
12,
8052,
1769,
565,
327,
394,
10842,
12,
4071,
16,
74,
16,
90,
10837,
3141,
3113,
21,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
2252,
18,
4669,
18,
13198,
1927,
21836,
1435,
1216,
6483,
225,
288,
565,
368,
1660,
2727,
1404,
999,
26455,
16,
1427,
732,
8616,
327,
279,
2202,
6222,
508,
1408,
18,
565,
2286,
284,
8526,
273,
394,
2286,
63,
21,
15533,
565,
5589,
331,
273,
394,
5589,
5621,
565,
1160,
63,
6362,
65,
3193,
273,
394,
1160,
63,
21,
6362,
20,
15533,
565,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
10837,
7775,
67,
14130,
3113,
77,
58,
22483,
19105,
16,
1578,
1769,
565,
3193,
63,
20,
65,
273,
1408,
18,
588,
2160,
5621,
565,
331,
18,
1289,
1046,
12,
8052,
1769,
565,
327,
394,
10842,
12,
4071,
16,
74,
16,
90,
10837,
3141,
3113,
21,
1769,
2
] |
return 0; | return -1; | public int getArity() { return 0; } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/7b4144d109e833088b99fef35098efa1ab482436/TopSelfFactory.java/buggy/org/jruby/TopSelfFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
509,
336,
686,
560,
1435,
288,
7734,
327,
300,
21,
31,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
509,
336,
686,
560,
1435,
288,
7734,
327,
300,
21,
31,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public WSDLBasedProcessor(ScuflModel model, String name, String wsdlLocation, String operationName) throws ProcessorCreationException, DuplicateProcessorNameException { super(model, name); this.wsdlLocation = wsdlLocation; this.operationName = operationName; // Load the WSDL document try { wsdlParser = new Parser(); int retryCount = 3; int retryDelay = 1000; boolean loaded = false; while (retryCount > 0 && !loaded) { try { wsdlParser.run(wsdlLocation); loaded = true; } catch (Exception ex2) { retryCount--; if (retryCount > 0) { Thread.sleep(retryDelay); } else { throw ex2; } } } } catch (Exception ex) { ProcessorCreationException pce = new ProcessorCreationException("Unable to load wsdl at "+wsdlLocation); pce.initCause(ex); pce.printStackTrace(); throw pce; } // Set up input and output vectors and create the Call object configureFor(operationName); // Build ports from the input and output vectors try { for (int i = 0; i < outNames.size(); i++) { String outName = (String)outNames.get(i); OutputPort outputPort = new OutputPort(this, outName); // Check whether there's a base type (which we can handle) or not... if (((Parameter)outTypes.get(i)).getType().isBaseType() || ((Parameter)outTypes.get(i)).getType().getQName().getLocalPart().startsWith("ArrayOf")) { outputPort.setSyntacticType(xsdTypeToInternalType(((Parameter)outTypes.get(i)).getType().getQName().getLocalPart())); } else { // Register the serializer for the element ((org.apache.axis.client.Call)call).registerTypeMapping(org.w3c.dom.Element.class, ((Parameter)outTypes.get(i)).getType().getQName(), new ElementSerializerFactory(), new ElementDeserializerFactory()); outputPort.setSyntacticType("'text/xml'"); } addPort(outputPort); } for (int i = 0; i < inNames.size(); i++) { String inName = (String)inNames.get(i); InputPort inputPort = new InputPort(this, inName); inputPort.setSyntacticType(xsdTypeToInternalType(((Parameter)inTypes.get(i)).getType().getQName().getLocalPart())); addPort(inputPort); } } catch (DuplicatePortNameException dpne) { ProcessorCreationException pce = new ProcessorCreationException("Duplicate port names!"); pce.initCause(dpne); throw pce; } catch (PortCreationException portce) { ProcessorCreationException pce = new ProcessorCreationException("Port creation failure!"); pce.initCause(portce); throw pce; } } | 7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/d60fd35398095515d1b9479de60edad26b0de4f5/WSDLBasedProcessor.java/buggy/trunk/taverna1.0/src/org/embl/ebi/escience/scuflworkers/wsdl/WSDLBasedProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2651,
8914,
9802,
5164,
12,
1541,
696,
80,
1488,
2284,
16,
780,
529,
16,
780,
4749,
5761,
2735,
16,
780,
7624,
461,
13,
202,
15069,
5164,
9906,
503,
16,
202,
11826,
5164,
26771,
95,
202,
9565,
12,
2284,
16,
529,
1769,
202,
2211,
18,
4749,
5761,
2735,
33,
4749,
5761,
2735,
31,
202,
2211,
18,
7624,
461,
33,
7624,
461,
31,
202,
759,
2563,
5787,
2651,
8914,
5457,
202,
698,
95,
202,
4749,
5761,
2678,
33,
2704,
2678,
5621,
202,
474,
9620,
1380,
33,
23,
31,
202,
474,
9620,
6763,
33,
18088,
31,
202,
6494,
4230,
33,
5743,
31,
202,
17523,
12,
9620,
1380,
34,
20,
10,
10,
5,
4230,
15329,
202,
202,
698,
95,
202,
202,
4749,
5761,
2678,
18,
2681,
12,
4749,
5761,
2735,
1769,
202,
202,
4230,
33,
3767,
31,
202,
202,
97,
202,
202,
14683,
12,
503,
338,
22,
15329,
202,
202,
9620,
1380,
413,
31,
202,
202,
430,
12,
9620,
1380,
34,
20,
15329,
1082,
202,
3830,
18,
19607,
12,
9620,
6763,
1769,
202,
202,
97,
202,
202,
12107,
95,
1082,
202,
12849,
338,
22,
31,
202,
202,
97,
202,
202,
97,
202,
97,
202,
97,
202,
14683,
12,
503,
338,
15329,
202,
5164,
9906,
503,
84,
311,
33,
2704,
5164,
9906,
503,
2932,
984,
378,
1810,
10565,
4749,
72,
4801,
6,
15,
4749,
5761,
2735,
1769,
202,
84,
311,
18,
2738,
10683,
12,
338,
1769,
202,
84,
311,
18,
1188,
6332,
5621,
202,
12849,
84,
311,
31,
202,
97,
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,
1071,
2651,
8914,
9802,
5164,
12,
1541,
696,
80,
1488,
2284,
16,
780,
529,
16,
780,
4749,
5761,
2735,
16,
780,
7624,
461,
13,
202,
15069,
5164,
9906,
503,
16,
202,
11826,
5164,
26771,
95,
202,
9565,
12,
2284,
16,
529,
1769,
202,
2211,
18,
4749,
5761,
2735,
33,
4749,
5761,
2735,
31,
202,
2211,
18,
7624,
461,
33,
7624,
461,
31,
202,
759,
2563,
5787,
2651,
8914,
5457,
202,
698,
95,
202,
4749,
5761,
2678,
33,
2704,
2678,
5621,
202,
474,
9620,
1380,
33,
23,
31,
202,
474,
9620,
6763,
33,
18088,
31,
202,
6494,
4230,
33,
5743,
31,
202,
17523,
12,
9620,
1380,
34,
20,
10,
10,
5,
4230,
15329,
202,
202,
698,
95,
202,
202,
4749,
2
] |
||
public JavaScriptException(Object value) { | public JavaScriptException(Object value) { | public JavaScriptException(Object value) { super(ScriptRuntime.toString(value)); if (value instanceof Throwable && initCauseMethod != null) { try { initCauseMethod.invoke(this, new Object[] {value}); } catch (Exception e) { // Ignore any exceptions } } this.value = value; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/10e5abd5a19b72e9c2545091ffe6117854fc79c8/JavaScriptException.java/buggy/js/rhino/src/org/mozilla/javascript/JavaScriptException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11905,
503,
12,
921,
460,
13,
288,
3639,
2240,
12,
3651,
5576,
18,
10492,
12,
1132,
10019,
3639,
309,
261,
1132,
1276,
4206,
597,
28057,
1305,
480,
446,
13,
288,
5411,
775,
288,
7734,
28057,
1305,
18,
14407,
12,
2211,
16,
394,
1033,
8526,
288,
1132,
22938,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
368,
8049,
1281,
4798,
2398,
289,
3639,
289,
3639,
333,
18,
1132,
273,
460,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11905,
503,
12,
921,
460,
13,
288,
3639,
2240,
12,
3651,
5576,
18,
10492,
12,
1132,
10019,
3639,
309,
261,
1132,
1276,
4206,
597,
28057,
1305,
480,
446,
13,
288,
5411,
775,
288,
7734,
28057,
1305,
18,
14407,
12,
2211,
16,
394,
1033,
8526,
288,
1132,
22938,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
368,
8049,
1281,
4798,
2398,
289,
3639,
289,
3639,
333,
18,
1132,
273,
460,
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
] |
final List aList = aObject.getSpellSupport().getCharacterSpell(null, bookName, levelNum); | final List<CharacterSpell> aList = aObject.getSpellSupport().getCharacterSpell(null, bookName, levelNum); | int countSpellsInBook(final String aString) { final StringTokenizer aTok = new StringTokenizer(aString, "."); final int classNum = Integer.parseInt(aTok.nextToken()); final int sbookNum = Integer.parseInt(aTok.nextToken()); final int levelNum; if (sbookNum >= getSpellBooks().size()) { return 0; } if (aTok.hasMoreTokens()) { levelNum = Integer.parseInt(aTok.nextToken()); } else { levelNum = -1; } String bookName = Globals.getDefaultSpellBook(); if (sbookNum > 0) { bookName = (String) getSpellBooks().get(sbookNum); } final PObject aObject = getSpellClassAtIndex(classNum); if (aObject != null) { final List aList = aObject.getSpellSupport().getCharacterSpell(null, bookName, levelNum); return aList.size(); } return 0; } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/eb5f93299afbba8e2b27cdc67dfddc016c5d86a9/PlayerCharacter.java/buggy/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
1056,
3389,
1165,
87,
382,
9084,
12,
6385,
514,
279,
780,
13,
202,
95,
202,
202,
6385,
16370,
279,
20477,
273,
394,
16370,
12,
69,
780,
16,
4585,
1769,
202,
202,
6385,
509,
667,
2578,
273,
2144,
18,
2670,
1702,
12,
69,
20477,
18,
4285,
1345,
10663,
202,
202,
6385,
509,
272,
3618,
2578,
273,
2144,
18,
2670,
1702,
12,
69,
20477,
18,
4285,
1345,
10663,
202,
202,
6385,
509,
1801,
2578,
31,
202,
202,
430,
261,
87,
3618,
2578,
1545,
1322,
84,
1165,
9084,
87,
7675,
1467,
10756,
202,
202,
95,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
430,
261,
69,
20477,
18,
5332,
7417,
5157,
10756,
202,
202,
95,
1082,
202,
2815,
2578,
273,
2144,
18,
2670,
1702,
12,
69,
20477,
18,
4285,
1345,
10663,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
2815,
2578,
273,
300,
21,
31,
202,
202,
97,
202,
202,
780,
6978,
461,
273,
18901,
1031,
18,
588,
1868,
3389,
1165,
9084,
5621,
202,
202,
430,
261,
87,
3618,
2578,
405,
374,
13,
202,
202,
95,
1082,
202,
3618,
461,
273,
261,
780,
13,
1322,
84,
1165,
9084,
87,
7675,
588,
12,
87,
3618,
2578,
1769,
202,
202,
97,
202,
202,
6385,
453,
921,
279,
921,
273,
1322,
84,
1165,
797,
24499,
12,
1106,
2578,
1769,
202,
202,
430,
261,
69,
921,
480,
446,
13,
202,
202,
95,
1082,
202,
6385,
987,
279,
682,
273,
279,
921,
18,
588,
3389,
1165,
6289,
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,
474,
1056,
3389,
1165,
87,
382,
9084,
12,
6385,
514,
279,
780,
13,
202,
95,
202,
202,
6385,
16370,
279,
20477,
273,
394,
16370,
12,
69,
780,
16,
4585,
1769,
202,
202,
6385,
509,
667,
2578,
273,
2144,
18,
2670,
1702,
12,
69,
20477,
18,
4285,
1345,
10663,
202,
202,
6385,
509,
272,
3618,
2578,
273,
2144,
18,
2670,
1702,
12,
69,
20477,
18,
4285,
1345,
10663,
202,
202,
6385,
509,
1801,
2578,
31,
202,
202,
430,
261,
87,
3618,
2578,
1545,
1322,
84,
1165,
9084,
87,
7675,
1467,
10756,
202,
202,
95,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
430,
261,
69,
20477,
18,
5332,
7417,
5157,
10756,
202,
202,
95,
1082,
202,
2
] |
+ OBJ16_PATH + "row.gif" ); | + OBJ16_PATH + "row.gif" ); | private final static void declareImages( ) { // common icons declareImage( ISharedImages.IMG_OBJS_ERROR_TSK, ICONS_PATH + PROGRESS_PATH + "error_tsk.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_OBJ_FOLDER, ICONS_PATH + OBJ16_PATH + "fldr_obj.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_COPY, ICONS_PATH + ETOOL16_PATH + "copy_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_CUT, ICONS_PATH + ETOOL16_PATH + "cut_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_UNDO, ICONS_PATH + ETOOL16_PATH + "undo_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_REDO, ICONS_PATH + ETOOL16_PATH + "redo_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_PASTE, ICONS_PATH + ETOOL16_PATH + "paste_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_DELETE, ICONS_PATH + ETOOL16_PATH + "delete_edit.gif" ); //$NON-NLS-1$ declareImage(IReportGraphicConstants.ICON_ELEMENT_TEMPLATEITEM,ICONS_PATH + OBJ16_PATH + "templatereportitem.gif"); declareImage( IReportGraphicConstants.ICON_NEW_REPORT, ICONS_PATH + OBJ16_PATH + "new_report.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NEW_LIBRARY, ICONS_PATH + OBJ16_PATH + "new_library.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NEW_TEMPLATE, ICONS_PATH + OBJ16_PATH + "new_template.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_FILE, ICONS_PATH + EVIEW16_PATH + "report.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_QUIK_EDIT, ICONS_PATH + EVIEW16_PATH + "quick_edit.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_PERSPECTIVE, ICONS_PATH + EVIEW16_PATH + "report_perspective.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_PROJECT, ICONS_PATH + OBJ16_PATH + "report_project.gif" ); //$NON-NLS-1$ // element icons declareImage( IReportGraphicConstants.ICON_ELEMENT_CELL, ICONS_PATH + OBJ16_PATH + "cell.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA, ICONS_PATH + OBJ16_PATH + "data.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ODA_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ODA_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCRIPT_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCRIPT_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_GRID, ICONS_PATH + PAL_PATH + "grid.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TEXTDATA, ICONS_PATH + PAL_PATH + "textdata.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_GROUP, ICONS_PATH + OBJ16_PATH + "group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_IMAGE, ICONS_PATH + PAL_PATH + "image.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LABEL, ICONS_PATH + PAL_PATH + "label.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LINE, ICONS_PATH + OBJ16_PATH + "line.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIST, ICONS_PATH + PAL_PATH + "list.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIST_GROUP, ICONS_PATH + OBJ16_PATH + "list_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_MASTERPAGE, ICONS_PATH + OBJ16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_GRAPHICMASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_PARAMETER, ICONS_PATH + OBJ16_PATH + "parameter.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_PARAMETER_GROUP, ICONS_PATH + OBJ16_PATH + "parameter_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_CASCADING_PARAMETER_GROUP, ICONS_PATH + OBJ16_PATH + "parameter_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ROW, ICONS_PATH + OBJ16_PATH + "row.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCALAR_PARAMETER, ICONS_PATH + OBJ16_PATH + "parameter.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_SIMPLE_MASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_STYLE, ICONS_PATH + OBJ16_PATH + "style.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TABLE, ICONS_PATH + PAL_PATH + "table.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TABLE_GROUP, ICONS_PATH + OBJ16_PATH + "table_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TEXT, ICONS_PATH + PAL_PATH + "text.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIBRARY, ICONS_PATH + OBJ16_PATH + "library.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIBRARY_REFERENCED, ICONS_PATH + OBJ16_PATH + "library_referenced.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_THEME, ICONS_PATH + OBJ16_PATH + "theme.gif" ); //$NON-NLS-1$ // outline icons declareImage( IReportGraphicConstants.ICON_NODE_BODY, ICONS_PATH + OBJ16_PATH + "body_icon.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_MASTERPAGES, ICONS_PATH + OBJ16_PATH + "master_pages.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_STYLES, ICONS_PATH + OBJ16_PATH + "styles.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_HEADER, ICONS_PATH + OBJ16_PATH + "header.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DETAILS, ICONS_PATH + OBJ16_PATH + "details.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_FOOTER, ICONS_PATH + OBJ16_PATH + "footer.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUPS, ICONS_PATH + OBJ16_PATH + "group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUP_HEADER, ICONS_PATH + OBJ16_PATH + "group_header.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUP_FOOTER, ICONS_PATH + OBJ16_PATH + "group_footer.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_LIBRARIES, ICONS_PATH + OBJ16_PATH + "library_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_THEMES, ICONS_PATH + OBJ16_PATH + "theme.gif" ); //$NON-NLS-1$ // layout icons declareImage( IReportGraphicConstants.ICON_LAYOUT_NORMAL, ICONS_PATH + EVIEW16_PATH + "normal_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_LAYOUT_MASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_LAYOUT_RULER, ICONS_PATH + EVIEW16_PATH + "show_rulers.gif" ); //$NON-NLS-1$ // border icons declareImage( IReportGraphicConstants.ICON_BORDER_ALL, ICONS_PATH + OBJ16_PATH + "borders_frame.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_BOTTOM, ICONS_PATH + OBJ16_PATH + "border_bottom.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_TOP, ICONS_PATH + OBJ16_PATH + "border_top.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_LEFT, ICONS_PATH + OBJ16_PATH + "border_left.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_RIGHT, ICONS_PATH + OBJ16_PATH + "border_right.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_NOBORDER, ICONS_PATH + OBJ16_PATH + "border_none.gif" ); //$NON-NLS-1$ // missing image icons declareImage( IReportGraphicConstants.ICON_MISSING_IMG, ICONS_PATH + PROGRESS_PATH + "missing_image.gif" ); //$NON-NLS-1$ // data explore icons declareImage( IReportGraphicConstants.ICON_DATA_EXPLORER_VIEW, ICONS_PATH + EVIEW16_PATH + "data_explorer_view.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DATA_SETS, ICONS_PATH + OBJ16_PATH + "data_set_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DATA_SOURCES, ICONS_PATH + OBJ16_PATH + "data_source_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_PARAMETERS, ICONS_PATH + OBJ16_PATH + "parameter_folder.gif" ); //$NON-NLS-1$ // ********************************************************** // expression icons declareImage( IReportGraphicConstants.ICON_EXPRESSION_DATA_TABLE, ICONS_PATH + OBJ16_PATH + "data_table.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_DATA_COLUMN, ICONS_PATH + OBJ16_PATH + "data_column.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_OPERATOR, ICONS_PATH + OBJ16_PATH + "operator.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_GLOBAL, ICONS_PATH + OBJ16_PATH + "global.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_METHOD, ICONS_PATH + OBJ16_PATH + "method.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_STATIC_METHOD, ICONS_PATH + OBJ16_PATH + "static_method.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_MEMBER, ICONS_PATH + OBJ16_PATH + "property.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_STATIC_MEMBER, ICONS_PATH + OBJ16_PATH + "static_property.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_BUILDER, ICONS_PATH + OBJ16_PATH + "expression.gif" ); //$NON-NLS-1$ // data wizards declareImage( IReportGraphicConstants.ICON_WIZARD_DATASOURCE, ICONS_PATH + WIZBAN_PATH + "datasource_wizard.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_WIZARD_DATASET, ICONS_PATH + WIZBAN_PATH + "dataset_wizard.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_WIZARDPAGE_DATASETSELECTION, ICONS_PATH + WIZBAN_PATH + "dataset_wizard_table.gif" ); //$NON-NLS-1$ // ///////////////////attribute image declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_WIDTH, ICONS_PATH + OBJ16_PATH + "bold.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_WIDTH + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "bold_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_STYLE, ICONS_PATH + OBJ16_PATH + "italic.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_STYLE + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "italic_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_UNDERLINE, ICONS_PATH + OBJ16_PATH + "underline.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_UNDERLINE + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "underline_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_LINE_THROUGH, ICONS_PATH + OBJ16_PATH + "lineSthrough.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_LINE_THROUGH + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "lineSthrough_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_NONE, ICONS_PATH + OBJ16_PATH + "border_none.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_FRAME, ICONS_PATH + OBJ16_PATH + "border_frame.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_LEFT, ICONS_PATH + OBJ16_PATH + "border_left.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_RIGHT, ICONS_PATH + OBJ16_PATH + "border_right.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_TOP, ICONS_PATH + OBJ16_PATH + "border_top.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_BOTTOM, ICONS_PATH + OBJ16_PATH + "border_bottom.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_CENTER, ICONS_PATH + OBJ16_PATH + "center_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_CENTER + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "center_align_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_JUSTIFY, ICONS_PATH + OBJ16_PATH + "justified_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_JUSTIFY + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "justified_align_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_LEFT, ICONS_PATH + OBJ16_PATH + "left_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_LEFT + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "left_align_disabled.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_RIGHT, ICONS_PATH + OBJ16_PATH + "right_align.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_RIGHT + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "right_align_disabled.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TOP_MARGIN, ICONS_PATH + MISC_PATH + "top_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BOTTOM_MARGIN, ICONS_PATH + MISC_PATH + "bottom_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_LEFT_MARGIN, ICONS_PATH + MISC_PATH + "left_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_RIGHT_MARGIN, ICONS_PATH + MISC_PATH + "right_margin.gif" ); //$NON-NLS-1$ // ********************************************************** // Preview icons declareImage( IReportGraphicConstants.ICON_PREVIEW_PARAMETERS, ICONS_PATH + PROGRESS_PATH + "params_ecl_show.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_PREVIEW_PARAMETERS_HIDE, ICONS_PATH + PROGRESS_PATH + "params_ecl_hide.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_PREVIEW_REFRESH, ICONS_PATH + ETOOL16_PATH + "refresh.gif" ); //$NON-NLS-1$ // Auto Text Icon declareImage( IReportGraphicConstants.ICON_AUTOTEXT, ICONS_PATH + OBJ16_PATH + "autotext.gif" ); //$NON-NLS-1$ // Parameter dialog icon declareImage( IReportGraphicConstants.ICON_DEFAULT, ICONS_PATH + OBJ16_PATH + "default.gif" ); //$NON-NLS-1$ // Data editor dialog icons declareImage( IReportGraphicConstants.ICON_DATAEDIT_DLG_TITLE_BANNER, ICONS_PATH + OBJ16_PATH + "prop_dialog_title.gif" ); //$NON-NLS-1$ // Open file icon declareImage( IReportGraphicConstants.ICON_OPEN_FILE, ICONS_PATH + ETOOL16_PATH + "open_file.gif" ); //$NON-NLS-1$ declareImage( "TableRowSelector", ICONS_PATH + OBJ16_PATH + "tablerowselector.gif" ); //$NON-NLS-1$ //$NON-NLS-2$ declareImage( IReportGraphicConstants.ICON_ENABLE_LOCAL_PROPERTIES, ICONS_PATH + OBJ16_PATH + "property_reference.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_TEMPLATE_NO_PREVIEW, ICONS_PATH + MISC_PATH + "no_preview.gif" ); //$NON-NLS-1$ } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/fc4e6f5b2530a52954d5ca28772ebf46d133b052/ReportPlatformUIImages.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/ReportPlatformUIImages.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
760,
918,
14196,
8946,
12,
262,
202,
95,
202,
202,
759,
2975,
17455,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
5704,
6479,
67,
3589,
67,
8047,
47,
16,
467,
2248,
55,
67,
4211,
9506,
202,
15,
4629,
19126,
67,
4211,
397,
315,
1636,
67,
3428,
79,
18,
13905,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
24547,
67,
17357,
16,
467,
2248,
55,
67,
4211,
397,
9730,
46,
2313,
67,
4211,
9506,
202,
15,
315,
74,
14796,
67,
2603,
18,
13905,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
26263,
67,
24875,
16,
467,
2248,
55,
67,
4211,
397,
512,
26263,
2313,
67,
4211,
9506,
202,
15,
315,
3530,
67,
4619,
18,
13905,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
26263,
67,
39,
1693,
16,
467,
2248,
55,
67,
4211,
397,
512,
26263,
2313,
67,
4211,
9506,
202,
15,
315,
5150,
67,
4619,
18,
13905,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
26263,
67,
2124,
3191,
16,
467,
2248,
55,
67,
4211,
397,
512,
26263,
2313,
67,
4211,
9506,
202,
15,
315,
31226,
67,
4619,
18,
13905,
6,
11272,
4329,
3993,
17,
5106,
17,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
760,
918,
14196,
8946,
12,
262,
202,
95,
202,
202,
759,
2975,
17455,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
5704,
6479,
67,
3589,
67,
8047,
47,
16,
467,
2248,
55,
67,
4211,
9506,
202,
15,
4629,
19126,
67,
4211,
397,
315,
1636,
67,
3428,
79,
18,
13905,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
24547,
67,
17357,
16,
467,
2248,
55,
67,
4211,
397,
9730,
46,
2313,
67,
4211,
9506,
202,
15,
315,
74,
14796,
67,
2603,
18,
13905,
6,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
29554,
2040,
12,
467,
7887,
2
] |
runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "comparison to Double.NaN", 1, rule), new TestDescriptor(TEST2, "ok equality comparison", 0, rule), new TestDescriptor(TEST3, "comparison to Float.NaN", 1, rule), }); } | runTests(rule); } | public void testAll() { runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "comparison to Double.NaN", 1, rule), new TestDescriptor(TEST2, "ok equality comparison", 0, rule), new TestDescriptor(TEST3, "comparison to Float.NaN", 1, rule), }); } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/BadComparisonTest.java/clean/pmd/regress/test/net/sourceforge/pmd/rules/BadComparisonTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1595,
1435,
288,
3639,
1086,
14650,
12,
2704,
7766,
3187,
63,
7073,
5411,
394,
7766,
3187,
12,
16961,
21,
16,
315,
23050,
358,
3698,
18,
21172,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
22,
16,
315,
601,
14958,
5826,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
23,
16,
315,
23050,
358,
5450,
18,
21172,
3113,
404,
16,
1720,
3631,
3639,
15549,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1595,
1435,
288,
3639,
1086,
14650,
12,
2704,
7766,
3187,
63,
7073,
5411,
394,
7766,
3187,
12,
16961,
21,
16,
315,
23050,
358,
3698,
18,
21172,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
22,
16,
315,
601,
14958,
5826,
3113,
374,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
23,
16,
315,
23050,
358,
5450,
18,
21172,
3113,
404,
16,
1720,
3631,
3639,
15549,
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
] |
sb.append( "-validity \"" ); sb.append( validity ); sb.append( "\" " ); | cmd.createArg().setValue( "-validity" ); cmd.createArg().setValue( "" + validity ); | public void execute() throws TaskException { if( project.getJavaVersion().equals( Project.JAVA_1_1 ) ) { throw new TaskException( "The genkey task is only available on JDK" + " versions 1.2 or greater" ); } if( null == alias ) { throw new TaskException( "alias attribute must be set" ); } if( null == storepass ) { throw new TaskException( "storepass attribute must be set" ); } if( null == dname && null == expandedDname ) { throw new TaskException( "dname must be set" ); } final StringBuffer sb = new StringBuffer(); sb.append( "keytool -genkey " ); if( verbose ) { sb.append( "-v " ); } sb.append( "-alias \"" ); sb.append( alias ); sb.append( "\" " ); if( null != dname ) { sb.append( "-dname \"" ); sb.append( dname ); sb.append( "\" " ); } if( null != expandedDname ) { sb.append( "-dname \"" ); sb.append( expandedDname ); sb.append( "\" " ); } if( null != keystore ) { sb.append( "-keystore \"" ); sb.append( keystore ); sb.append( "\" " ); } if( null != storepass ) { sb.append( "-storepass \"" ); sb.append( storepass ); sb.append( "\" " ); } if( null != storetype ) { sb.append( "-storetype \"" ); sb.append( storetype ); sb.append( "\" " ); } sb.append( "-keypass \"" ); if( null != keypass ) { sb.append( keypass ); } else { sb.append( storepass ); } sb.append( "\" " ); if( null != sigalg ) { sb.append( "-sigalg \"" ); sb.append( sigalg ); sb.append( "\" " ); } if( null != keyalg ) { sb.append( "-keyalg \"" ); sb.append( keyalg ); sb.append( "\" " ); } if( 0 < keysize ) { sb.append( "-keysize \"" ); sb.append( keysize ); sb.append( "\" " ); } if( 0 < validity ) { sb.append( "-validity \"" ); sb.append( validity ); sb.append( "\" " ); } log( "Generating Key for " + alias ); final ExecTask cmd = (ExecTask)project.createTask( "exec" ); cmd.setCommand( new Commandline( sb.toString() ) ); cmd.setFailonerror( true ); cmd.execute(); } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/89c618a4ba5166ec11651fd7dc29807eb861650e/GenerateKey.java/buggy/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/GenerateKey.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
3837,
503,
565,
288,
3639,
309,
12,
1984,
18,
588,
5852,
1444,
7675,
14963,
12,
5420,
18,
27264,
67,
21,
67,
21,
262,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
1986,
3157,
856,
1562,
353,
1338,
2319,
603,
24387,
6,
397,
19694,
315,
5244,
404,
18,
22,
578,
6802,
6,
11272,
3639,
289,
3639,
309,
12,
446,
422,
2308,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
4930,
1566,
1297,
506,
444,
6,
11272,
3639,
289,
3639,
309,
12,
446,
422,
1707,
5466,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
2233,
5466,
1566,
1297,
506,
444,
6,
11272,
3639,
289,
3639,
309,
12,
446,
422,
302,
529,
597,
446,
422,
8406,
40,
529,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
72,
529,
1297,
506,
444,
6,
11272,
3639,
289,
3639,
727,
6674,
2393,
273,
394,
6674,
5621,
3639,
2393,
18,
6923,
12,
315,
856,
6738,
300,
4507,
856,
315,
11272,
3639,
309,
12,
3988,
262,
3639,
288,
5411,
2393,
18,
6923,
12,
3701,
90,
315,
11272,
3639,
289,
3639,
2393,
18,
6923,
12,
3701,
4930,
11843,
11272,
3639,
2393,
18,
6923,
12,
2308,
11272,
3639,
2393,
18,
6923,
12,
7023,
315,
11272,
3639,
309,
12,
446,
480,
302,
529,
262,
3639,
288,
5411,
2393,
18,
6923,
12,
3701,
72,
529,
11843,
11272,
5411,
2393,
18,
6923,
12,
302,
529,
11272,
5411,
2393,
18,
6923,
12,
7023,
315,
11272,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
3837,
503,
565,
288,
3639,
309,
12,
1984,
18,
588,
5852,
1444,
7675,
14963,
12,
5420,
18,
27264,
67,
21,
67,
21,
262,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
1986,
3157,
856,
1562,
353,
1338,
2319,
603,
24387,
6,
397,
19694,
315,
5244,
404,
18,
22,
578,
6802,
6,
11272,
3639,
289,
3639,
309,
12,
446,
422,
2308,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
4930,
1566,
1297,
506,
444,
6,
11272,
3639,
289,
3639,
309,
12,
446,
422,
1707,
5466,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
2233,
5466,
1566,
1297,
506,
444,
6,
11272,
3639,
289,
3639,
309,
12,
446,
2
] |
private void fireListeners(LabelProviderChangedEvent event) { Iterator iterator = listeners.iterator(); while (iterator.hasNext()) { ILabelProviderListener listener = (ILabelProviderListener) iterator.next(); listener.labelProviderChanged(event); } | private void fireListeners(final LabelProviderChangedEvent event) { Object [] array = listeners.getListeners(); for (int i = 0; i < array.length; i ++) { final ILabelProviderListener l = (ILabelProviderListener)array[i]; Platform.run(new SafeRunnable() { public void run() { l.labelProviderChanged(event); } public void handleException(Throwable e) { super.handleException(e); removeListener(l); } }); } | private void fireListeners(LabelProviderChangedEvent event) { Iterator iterator = listeners.iterator(); while (iterator.hasNext()) { ILabelProviderListener listener = (ILabelProviderListener) iterator.next(); listener.labelProviderChanged(event); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/75cf57f2af2f39e062e4b2d7f104f731ee34bcf7/DecoratorManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecoratorManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4452,
5583,
12,
2224,
2249,
27553,
871,
13,
288,
202,
202,
3198,
2775,
273,
4679,
18,
9838,
5621,
202,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
1082,
202,
45,
2224,
2249,
2223,
2991,
273,
9506,
202,
12,
45,
2224,
2249,
2223,
13,
2775,
18,
4285,
5621,
1082,
202,
12757,
18,
1925,
2249,
5033,
12,
2575,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4452,
5583,
12,
2224,
2249,
27553,
871,
13,
288,
202,
202,
3198,
2775,
273,
4679,
18,
9838,
5621,
202,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
1082,
202,
45,
2224,
2249,
2223,
2991,
273,
9506,
202,
12,
45,
2224,
2249,
2223,
13,
2775,
18,
4285,
5621,
1082,
202,
12757,
18,
1925,
2249,
5033,
12,
2575,
1769,
202,
202,
97,
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
] |
WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT)); | sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_CUT)); | private void makeActions() { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem // Get services for notification. IPartService partService = getWindow().getPartService(); WWinKeyBindingService keyBindingService = getWindow().getKeyBindingService(); // Many actions need the workbench. IWorkbench workbench = getWindow().getWorkbench(); newWizardAction = new NewWizardAction(); // images for this action are set in its constructor keyBindingService.registerGlobalAction(newWizardAction); newWizardDropDownAction = new NewWizardDropDownAction(workbench, newWizardAction); newWizardDropDownAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ)); newWizardDropDownAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ_HOVER)); newWizardDropDownAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ_DISABLED)); importResourcesAction = new ImportResourcesAction(workbench); importResourcesAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ)); importResourcesAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ_HOVER)); importResourcesAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ_DISABLED)); exportResourcesAction = new ExportResourcesAction(workbench, WorkbenchMessages.getString("ExportResourcesAction.fileMenuText")); //$NON-NLS-1$ exportResourcesAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ)); exportResourcesAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ_HOVER)); exportResourcesAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ_DISABLED)); rebuildAllAction = new GlobalBuildAction(window, IncrementalProjectBuilder.FULL_BUILD); rebuildAllAction.setActionDefinitionId(rebuildAllActionDefId); keyBindingService.registerGlobalAction(rebuildAllAction); buildAllAction = new GlobalBuildAction( window, IncrementalProjectBuilder.INCREMENTAL_BUILD); buildAllAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC)); buildAllAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC_HOVER)); buildAllAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC_DISABLED)); buildAllAction.setActionDefinitionId(buildAllActionDefId); keyBindingService.registerGlobalAction(buildAllAction); saveAction = new SaveAction(window); saveAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT)); saveAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT_HOVER)); saveAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT_DISABLED)); partService.addPartListener(saveAction); saveAction.setActionDefinitionId(saveActionDefId); keyBindingService.registerGlobalAction(saveAction); saveAsAction = new SaveAsAction(window); saveAsAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT)); saveAsAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT_HOVER)); saveAsAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT_DISABLED)); partService.addPartListener(saveAsAction); saveAllAction = new SaveAllAction(window); saveAllAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT)); saveAllAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT_HOVER)); saveAllAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT_DISABLED)); partService.addPartListener(saveAllAction); saveAllAction.setActionDefinitionId(saveAllActionDefId); keyBindingService.registerGlobalAction(saveAllAction); undoAction = createGlobalAction(IWorkbenchActionConstants.UNDO, "edit", true); //$NON-NLS-1$ undoAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT)); undoAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT_HOVER)); undoAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT_DISABLED)); redoAction = createGlobalAction(IWorkbenchActionConstants.REDO, "edit", true); //$NON-NLS-1$ redoAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT)); redoAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT_HOVER)); redoAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT_DISABLED)); cutAction = createGlobalAction(IWorkbenchActionConstants.CUT, "edit", false); //$NON-NLS-1$ cutAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT)); cutAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT_HOVER)); cutAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT_DISABLED)); copyAction = createGlobalAction(IWorkbenchActionConstants.COPY, "edit", false); //$NON-NLS-1$ copyAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT)); copyAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT_HOVER)); copyAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT_DISABLED)); pasteAction = createGlobalAction(IWorkbenchActionConstants.PASTE, "edit", false); //$NON-NLS-1$ pasteAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT)); pasteAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT_HOVER)); pasteAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT_DISABLED)); printAction = createGlobalAction(IWorkbenchActionConstants.PRINT, "file", false); //$NON-NLS-1$ printAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT)); printAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT_HOVER)); printAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT_DISABLED)); selectAllAction = createGlobalAction(IWorkbenchActionConstants.SELECT_ALL, "edit", false); //$NON-NLS-1$ findAction = createGlobalAction(IWorkbenchActionConstants.FIND, "findReplace", "edit", "findReplace", false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ // Find's images are commented out due to a conflict with Search. // See bug 16412. // findAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC)); // findAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC_HOVER)); // findAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC_DISABLED)); closeAction = new CloseEditorAction(window); partService.addPartListener(closeAction); closeAction.setActionDefinitionId(closeActionDefId); keyBindingService.registerGlobalAction(closeAction); closeAllAction = new CloseAllAction(window); partService.addPartListener(closeAllAction); closeAllAction.setActionDefinitionId(closeAllActionDefId); keyBindingService.registerGlobalAction(closeAllAction); closeAllSavedAction = new CloseAllSavedAction(window); partService.addPartListener(closeAllSavedAction); closeAllSavedAction.setActionDefinitionId(closeAllSavedActionDefId); keyBindingService.registerGlobalAction(closeAllSavedAction); pinEditorAction = new PinEditorAction(window); partService.addPartListener(pinEditorAction); pinEditorAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR)); pinEditorAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR_HOVER)); pinEditorAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR_DISABLED)); aboutAction = new AboutAction(window); aboutAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_OBJS_DEFAULT_PROD)); openPreferencesAction = new OpenPreferencesAction(window); addBookmarkAction = createGlobalAction(IWorkbenchActionConstants.BOOKMARK, "addBookMark", "edit", "addBookmark", false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ addTaskAction = createGlobalAction(IWorkbenchActionConstants.ADD_TASK, "edit", false); //$NON-NLS-1$ showInAction = new WorkbenchShowInAction(window); partService.addPartListener(showInAction); showInAction.setActionDefinitionId(showInActionDefId); keyBindingService.registerGlobalAction(showInAction); // can't use createGlobalAction convenience since deleteAction is not registered with the key binding service deleteAction = new RetargetAction(IWorkbenchActionConstants.DELETE, WorkbenchMessages.getString("Workbench.delete")); //$NON-NLS-1$ deleteAction.setToolTipText(WorkbenchMessages.getString("Workbench.deleteToolTip")); //$NON-NLS-1$ deleteAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT)); deleteAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT_HOVER)); deleteAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT_DISABLED)); deleteAction.enableAccelerator(false); WorkbenchHelp.setHelp( deleteAction, IHelpContextIds.DELETE_RETARGET_ACTION); partService.addPartListener(deleteAction); deleteAction.setActionDefinitionId(deleteActionDefId); // don't register the delete action with the key binding service. // doing so would break cell editors that listen for keyPressed SWT // events. //keyBindingService.registerGlobalAction(deleteAction); AboutInfo[] infos = ((Workbench) workbench).getConfigurationInfo().getFeaturesInfo(); // See if a welcome page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = new QuickStartAction(workbench); break; } } // See if a tips and tricks page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getTipsAndTricksHref() != null) { tipsAndTricksAction = new TipsAndTricksAction(workbench); break; } } // Actions for invisible accelerators showViewMenuAction = new ShowViewMenuAction(window); showViewMenuAction.setActionDefinitionId(showViewMenuActionDefId); keyBindingService.registerGlobalAction(showViewMenuAction); showPartPaneMenuAction = new ShowPartPaneMenuAction(window); showPartPaneMenuAction.setActionDefinitionId( showPartPaneMenuActionDefId); keyBindingService.registerGlobalAction(showPartPaneMenuAction); nextEditorAction = new CycleEditorAction(window, true); nextEditorAction.setActionDefinitionId(nextEditorActionDefId); keyBindingService.registerGlobalAction(nextEditorAction); prevEditorAction = new CycleEditorAction(window, false); prevEditorAction.setActionDefinitionId(prevEditorActionDefId); keyBindingService.registerGlobalAction(prevEditorAction); nextPartAction = new CyclePartAction(window, true); nextPartAction.setActionDefinitionId(nextPartActionDefId); keyBindingService.registerGlobalAction(nextPartAction); prevPartAction = new CyclePartAction(window, false); prevPartAction.setActionDefinitionId(prevPartActionDefId); keyBindingService.registerGlobalAction(prevPartAction); nextPerspectiveAction = new CyclePerspectiveAction(window, true); nextPerspectiveAction.setActionDefinitionId(nextPerspectiveActionDefId); keyBindingService.registerGlobalAction(nextPerspectiveAction); prevPerspectiveAction = new CyclePerspectiveAction(window, false); prevPerspectiveAction.setActionDefinitionId(prevPerspectiveActionDefId); keyBindingService.registerGlobalAction(prevPerspectiveAction); activateEditorAction = new ActivateEditorAction(window); activateEditorAction.setActionDefinitionId(activateEditorActionDefId); keyBindingService.registerGlobalAction(activateEditorAction); workbenchEditorsAction = new WorkbenchEditorsAction(window); workbenchEditorsAction.setActionDefinitionId( workbenchEditorsActionDefId); keyBindingService.registerGlobalAction(workbenchEditorsAction); hideShowEditorAction = new ToggleEditorsVisibilityAction(window); savePerspectiveAction = new SavePerspectiveAction(window); editActionSetAction = new EditActionSetsAction(window); lockToolBarAction = new LockToolBarAction(window); resetPerspectiveAction = new ResetPerspectiveAction(window); closePerspAction = new ClosePerspectiveAction(window); closeAllPerspsAction = new CloseAllPerspectivesAction(window); //Must change/copy the image. It is using a local toolbar image and colored. backwardHistoryAction = new NavigationHistoryAction(window, false); backwardHistoryAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BACKWARD_NAV)); backwardHistoryAction.setActionDefinitionId(backwardHistoryActionDefId); keyBindingService.registerGlobalAction(backwardHistoryAction); forwardHistoryAction = new NavigationHistoryAction(window, true); forwardHistoryAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_FORWARD_NAV)); forwardHistoryAction.setActionDefinitionId(forwardHistoryActionDefId); keyBindingService.registerGlobalAction(forwardHistoryAction); revertAction = createGlobalAction(IWorkbenchActionConstants.REVERT, "file", false); //$NON-NLS-1$ refreshAction = createGlobalAction(IWorkbenchActionConstants.REFRESH, "file", false); //$NON-NLS-1$ propertiesAction = createGlobalAction(IWorkbenchActionConstants.PROPERTIES, "file", false); //$NON-NLS-1$ moveAction = createGlobalAction(IWorkbenchActionConstants.MOVE, "edit", false); //$NON-NLS-1$ renameAction = createGlobalAction(IWorkbenchActionConstants.RENAME, "edit", false); //$NON-NLS-1$ goIntoAction = createGlobalAction(IWorkbenchActionConstants.GO_INTO, "navigate", false); //$NON-NLS-1$ backAction = createGlobalAction(IWorkbenchActionConstants.BACK, "navigate", true); //$NON-NLS-1$ forwardAction = createGlobalAction(IWorkbenchActionConstants.FORWARD, "navigate", true); //$NON-NLS-1$ upAction = createGlobalAction(IWorkbenchActionConstants.UP, "navigate", true); //$NON-NLS-1$ nextAction = createGlobalAction(IWorkbenchActionConstants.NEXT, "navigate", true); //$NON-NLS-1$ nextAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEXT_NAV)); previousAction = createGlobalAction(IWorkbenchActionConstants.PREVIOUS, "navigate", true); //$NON-NLS-1$ previousAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PREVIOUS_NAV)); buildProjectAction = createGlobalAction(IWorkbenchActionConstants.BUILD_PROJECT, "project", false); //$NON-NLS-1$ rebuildProjectAction = createGlobalAction(IWorkbenchActionConstants.REBUILD_PROJECT, "project", false); //$NON-NLS-1$ openProjectAction = createGlobalAction(IWorkbenchActionConstants.OPEN_PROJECT, "project", false); //$NON-NLS-1$ closeProjectAction = createGlobalAction(IWorkbenchActionConstants.CLOSE_PROJECT, "project", false); //$NON-NLS-1$ } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5468a1edd56cfcaa9d93679f82ede8fa030e37c7/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1221,
6100,
1435,
288,
202,
202,
759,
1021,
4209,
316,
525,
865,
741,
486,
1240,
3824,
6195,
18,
4237,
16,
6195,
18,
4056,
6195,
18,
2036,
202,
202,
759,
6149,
854,
4209,
316,
2674,
3832,
2275,
326,
1440,
22144,
300,
6199,
3196,
202,
759,
968,
4028,
364,
3851,
18,
202,
202,
45,
1988,
1179,
1087,
1179,
273,
26156,
7675,
588,
1988,
1179,
5621,
202,
202,
59,
18049,
653,
5250,
1179,
498,
5250,
1179,
273,
1082,
202,
588,
3829,
7675,
588,
653,
5250,
1179,
5621,
202,
202,
759,
19903,
4209,
1608,
326,
1440,
22144,
18,
202,
202,
45,
2421,
22144,
1440,
22144,
273,
26156,
7675,
588,
2421,
22144,
5621,
202,
202,
2704,
27130,
1803,
273,
394,
1166,
27130,
1803,
5621,
202,
202,
759,
4602,
364,
333,
1301,
854,
444,
316,
2097,
3885,
202,
202,
856,
5250,
1179,
18,
4861,
5160,
1803,
12,
2704,
27130,
1803,
1769,
202,
202,
2704,
27130,
7544,
4164,
1803,
273,
1082,
202,
2704,
1166,
27130,
7544,
4164,
1803,
12,
1252,
22144,
16,
394,
27130,
1803,
1769,
202,
202,
2704,
27130,
7544,
4164,
1803,
18,
542,
2040,
3187,
12,
1082,
202,
2421,
22144,
8946,
18,
588,
2040,
3187,
12,
9506,
202,
45,
2421,
22144,
29459,
2918,
18,
3445,
43,
67,
1268,
51,
1741,
67,
12917,
67,
59,
6867,
10019,
202,
202,
2704,
27130,
7544,
4164,
1803,
18,
542,
21184,
2040,
3187,
12,
1082,
202,
2421,
22144,
8946,
18,
588,
2040,
3187,
12,
9506,
202,
45,
2421,
22144,
29459,
2918,
18,
3445,
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,
1221,
6100,
1435,
288,
202,
202,
759,
1021,
4209,
316,
525,
865,
741,
486,
1240,
3824,
6195,
18,
4237,
16,
6195,
18,
4056,
6195,
18,
2036,
202,
202,
759,
6149,
854,
4209,
316,
2674,
3832,
2275,
326,
1440,
22144,
300,
6199,
3196,
202,
759,
968,
4028,
364,
3851,
18,
202,
202,
45,
1988,
1179,
1087,
1179,
273,
26156,
7675,
588,
1988,
1179,
5621,
202,
202,
59,
18049,
653,
5250,
1179,
498,
5250,
1179,
273,
1082,
202,
588,
3829,
7675,
588,
653,
5250,
1179,
5621,
202,
202,
759,
19903,
4209,
1608,
326,
1440,
22144,
18,
202,
202,
45,
2421,
22144,
1440,
22144,
273,
26156,
7675,
588,
2421,
22144,
5621,
202,
202,
2704,
27130,
1803,
273,
394,
2
] |
{ return ICON_SIZE; } | { return ICON_SIZE; } | public int getIconHeight() { return ICON_SIZE; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/312ed3a41bc121830464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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
21724,
2686,
1435,
565,
288,
1377,
327,
467,
2248,
67,
4574,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return member.getDeclaringType().equals(getDeclaringClass()) && ! queue.contains(member) && isPushable(member); | return member.getDeclaringType().equals(getDeclaringType()) && ! queue.contains(member) && isPushable(member); | private boolean isRequiredPushableMember(List queue, IMember member) throws JavaModelException { return member.getDeclaringType().equals(getDeclaringClass()) && ! queue.contains(member) && isPushable(member); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4c432e231311c8cf3a59a661132d21bc0ea55380/PushDownRefactoring.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoring.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
14967,
7621,
429,
4419,
12,
682,
2389,
16,
467,
4419,
3140,
13,
1216,
5110,
1488,
503,
288,
202,
202,
2463,
3140,
18,
588,
3456,
5968,
559,
7675,
14963,
12,
588,
3456,
14682,
10756,
597,
401,
2389,
18,
12298,
12,
5990,
13,
597,
353,
7621,
429,
12,
5990,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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3140,
18,
588,
3456,
5968,
559,
7675,
14963,
12,
588,
3456,
14682,
10756,
597,
401,
2389,
18,
12298,
12,
5990,
13,
597,
353,
7621,
429,
12,
5990,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
options = super.getOptions(); for (i = 0; i < options.length; i++) result.add(options[i]); | public String[] getOptions() { Vector result; String[] options; int i; result = new Vector(); options = super.getOptions(); for (i = 0; i < options.length; i++) result.add(options[i]); if (getDebug()) result.add("-D"); result.add("-P"); result.add("" + m_Method); result.add("-A"); result.add("" + m_WeightMethod); return (String[]) result.toArray(new String[result.size()]); } | 6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/971843d11c4dca3e2e7b0278bdd8af48e24a81fd/MIWrapper.java/buggy/classifiers/mi/MIWrapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8526,
9849,
1435,
288,
565,
5589,
3639,
563,
31,
565,
514,
8526,
1377,
702,
31,
565,
509,
6647,
277,
31,
3639,
563,
225,
273,
394,
5589,
5621,
565,
702,
273,
2240,
18,
588,
1320,
5621,
565,
364,
261,
77,
273,
374,
31,
277,
411,
702,
18,
2469,
31,
277,
27245,
1377,
563,
18,
1289,
12,
2116,
63,
77,
19226,
565,
309,
261,
588,
2829,
10756,
1377,
563,
18,
1289,
2932,
17,
40,
8863,
3639,
563,
18,
1289,
2932,
17,
52,
8863,
565,
563,
18,
1289,
2932,
6,
397,
312,
67,
1305,
1769,
565,
563,
18,
1289,
2932,
17,
37,
8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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8526,
9849,
1435,
288,
565,
5589,
3639,
563,
31,
565,
514,
8526,
1377,
702,
31,
565,
509,
6647,
277,
31,
3639,
563,
225,
273,
394,
5589,
5621,
565,
702,
273,
2240,
18,
588,
1320,
5621,
565,
364,
261,
77,
273,
374,
31,
277,
411,
702,
18,
2469,
31,
277,
27245,
1377,
563,
18,
1289,
12,
2116,
63,
77,
19226,
565,
309,
261,
588,
2829,
10756,
1377,
563,
18,
1289,
2932,
17,
40,
8863,
3639,
563,
18,
1289,
2932,
17,
52,
8863,
565,
563,
18,
1289,
2932,
6,
397,
312,
67,
1305,
1769,
565,
563,
18,
1289,
2932,
17,
37,
8863,
565,
563,
18,
1289,
2932,
6,
397,
312,
67,
6544,
1305,
1769,
565,
327,
261,
780,
2
] |
|
public synchronized StringBuffer append(String str) | public StringBuffer append(Object obj) | public synchronized StringBuffer append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity_unsynchronized(count + len); str.getChars(0, len, value, count); count += len; return this; } | 45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/450177e0156131c4865e7edb8c9f3883032aa5f9/StringBuffer.java/buggy/libjava/java/lang/StringBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6674,
714,
12,
921,
1081,
13,
225,
288,
565,
309,
261,
701,
422,
446,
13,
1377,
609,
273,
315,
2011,
14432,
565,
509,
562,
273,
609,
18,
1883,
31,
565,
3387,
7437,
67,
318,
22043,
12,
1883,
397,
562,
1769,
565,
609,
18,
588,
7803,
12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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6674,
714,
12,
921,
1081,
13,
225,
288,
565,
309,
261,
701,
422,
446,
13,
1377,
609,
273,
315,
2011,
14432,
565,
509,
562,
273,
609,
18,
1883,
31,
565,
3387,
7437,
67,
318,
22043,
12,
1883,
397,
562,
1769,
565,
609,
18,
588,
7803,
12,
20,
16,
562,
16,
460,
16,
1056,
1769,
565,
1056,
1011,
562,
31,
565,
327,
333,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (jj_3R_269()) { jj_scanpos = xsp; break; } | if (jj_3R_270()) { jj_scanpos = xsp; break; } | final private boolean jj_3R_250() { Token xsp; if (jj_3R_269()) return true; while (true) { xsp = jj_scanpos; if (jj_3R_269()) { jj_scanpos = xsp; break; } } if (jj_3R_153()) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/ac9207dcb7a8bbf54f85da7f1bdae7d7162b86b3/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
26520,
1435,
288,
565,
3155,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5558,
29,
10756,
327,
638,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
20,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
309,
261,
78,
78,
67,
23,
54,
67,
30305,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
26520,
1435,
288,
565,
3155,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5558,
29,
10756,
327,
638,
31,
565,
1323,
261,
3767,
13,
288,
1377,
619,
1752,
273,
10684,
67,
9871,
917,
31,
1377,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
20,
10756,
288,
10684,
67,
9871,
917,
273,
619,
1752,
31,
898,
31,
289,
565,
289,
565,
309,
261,
78,
78,
67,
23,
54,
67,
30305,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String projectName = bundleProject.getName(); monitor.beginTask("Creating " + projectName, 5); IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IProject project = root.getProject(projectName); if (project.exists()) { throwCoreException("Project \"" + projectName + "\" already exists."); | BundleProject project = BundleProject.create( projectPage.getProjectName(), projectPage.getProjectLocation(), projectPage.getSourceFolder(), projectPage.getOutputFolder()); BundleManifest manifest = project.getBundleManifest(); manifest.setSymbolicName(bundlePage.getBundleSymbolicName()); manifest.setName(bundlePage.getBundleName()); manifest.setVersion(bundlePage.getBundleVersion()); manifest.setVendor(bundlePage.getBundleVendor()); manifest.setDescription(bundlePage.getBundleDescription()); if (bundlePage.isCreateBundleActivator()) { String activator = bundlePage.getActivatorClassName(); String packageName = bundlePage.getActivatorPackageName(); if (packageName != null) { activator = packageName+"."+activator; } manifest.setActivator(activator); | private void doFinish(BundleProject bundleProject, IProgressMonitor monitor) throws CoreException { // Create project String projectName = bundleProject.getName(); monitor.beginTask("Creating " + projectName, 5); IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IProject project = root.getProject(projectName); if (project.exists()) { throwCoreException("Project \"" + projectName + "\" already exists."); } // Create project description IProjectDescription projectDescription = ResourcesPlugin.getWorkspace().newProjectDescription(projectName); // Set project location projectDescription.setLocation(bundleProject.getLocation()); IPath location = projectDescription.getLocation(); // Create project project.create(projectDescription, monitor); monitor.worked(1); // Open project project.open(null); //monitor.worked(1); // Set project natures projectDescription = project.getDescription(); projectDescription.setNatureIds(new String[] {Osgi.NATURE_ID, JavaCore.NATURE_ID}); project.setDescription(projectDescription, monitor); // Create source folder IFolder srcFolder = project.getFolder(bundleProject.getSourceFolder()); srcFolder.create(true, true, monitor); monitor.worked(1); Path projectFolder = new Path("/"+projectName); // Set default classpath IJavaProject javaProject = JavaCore.create(project); // Set output location javaProject.setOutputLocation(projectFolder.append(bundleProject.getOutputFolder()), monitor); monitor.worked(1); // Source folder IClasspathEntry srcEntry = JavaCore.newSourceEntry(projectFolder.append(bundleProject.getSourceFolder())); // Lib folder IOsgiInstall osgiInstall = bundleProject.getOsgiInstall(); IOsgiLibrary [] osgiLibraries = osgiInstall.getLibraries(); IClasspathEntry[] newClasspath = new IClasspathEntry[2+(osgiLibraries != null ? osgiLibraries.length : 0)]; newClasspath[0] = srcEntry; newClasspath[1] = JavaRuntime.getDefaultJREContainerEntry(); if (osgiLibraries != null) { for (int i=0; i<osgiLibraries.length; i++) { newClasspath[i+2]= JavaCore.newLibraryEntry( new Path(osgiLibraries[i].getPath()), new Path(osgiLibraries[i].getSourceDirectory()), null, //no source false); //not exported } } // Set build path javaProject.setRawClasspath(newClasspath, monitor); monitor.worked(1); // Check if bundle activator shall be created if (bundleProject.isCreateBundleActivator()) { String className = bundleProject.getActivatorClassName(); String packageName = bundleProject.getActivatorPackageName(); createActivator(javaProject, srcFolder, packageName, className, monitor); } // Create manifest final IFile manifest = createManifest(javaProject, bundleProject, monitor); // Open manifest getShell().getDisplay().asyncExec(new Runnable() { public void run() { IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); try { IDE.openEditor(page, manifest, true); } catch (PartInitException e) { } } }); } | 14547 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14547/c47a7f2616c12043b7d9877aa33aae915c4e72ef/BundleProjectWizard.java/clean/org.knopflerfish.eclipse.core.ui/src/org/knopflerfish/eclipse/core/ui/wizards/BundleProjectWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
11641,
12,
3405,
4109,
3440,
4109,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
759,
1788,
1984,
565,
514,
17234,
273,
3440,
4109,
18,
17994,
5621,
202,
202,
10259,
18,
10086,
2174,
2932,
11092,
315,
397,
17234,
16,
1381,
1769,
202,
202,
45,
8241,
2375,
1365,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
5621,
565,
467,
4109,
1984,
273,
1365,
18,
588,
4109,
12,
4406,
461,
1769,
565,
309,
261,
4406,
18,
1808,
10756,
288,
1377,
604,
25341,
2932,
4109,
11843,
397,
17234,
397,
7023,
1818,
1704,
1199,
1769,
565,
289,
3639,
368,
1788,
1984,
2477,
565,
467,
4109,
3291,
1984,
3291,
273,
8128,
3773,
18,
588,
8241,
7675,
2704,
4109,
3291,
12,
4406,
461,
1769,
3639,
368,
1000,
1984,
2117,
565,
1984,
3291,
18,
542,
2735,
12,
9991,
4109,
18,
588,
2735,
10663,
565,
467,
743,
2117,
273,
1984,
3291,
18,
588,
2735,
5621,
565,
368,
1788,
1984,
565,
1984,
18,
2640,
12,
4406,
3291,
16,
6438,
1769,
565,
6438,
18,
1252,
329,
12,
21,
1769,
4202,
368,
3502,
1984,
565,
1984,
18,
3190,
12,
2011,
1769,
565,
368,
10259,
18,
1252,
329,
12,
21,
1769,
565,
368,
1000,
1984,
290,
2790,
565,
1984,
3291,
273,
1984,
18,
588,
3291,
5621,
565,
1984,
3291,
18,
542,
50,
1231,
2673,
12,
2704,
514,
8526,
288,
51,
17537,
18,
50,
10511,
67,
734,
16,
5110,
4670,
18,
50,
10511,
67,
734,
22938,
565,
1984,
18,
542,
3291,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
11641,
12,
3405,
4109,
3440,
4109,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
759,
1788,
1984,
565,
514,
17234,
273,
3440,
4109,
18,
17994,
5621,
202,
202,
10259,
18,
10086,
2174,
2932,
11092,
315,
397,
17234,
16,
1381,
1769,
202,
202,
45,
8241,
2375,
1365,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
5621,
565,
467,
4109,
1984,
273,
1365,
18,
588,
4109,
12,
4406,
461,
1769,
565,
309,
261,
4406,
18,
1808,
10756,
288,
1377,
604,
25341,
2932,
4109,
11843,
397,
17234,
397,
7023,
1818,
1704,
1199,
1769,
565,
289,
3639,
368,
1788,
1984,
2477,
565,
467,
4109,
3291,
1984,
3291,
273,
8128,
3773,
18,
588,
8241,
7675,
2
] |
myRow.setColumn("resource_filter_arg" ,myid); | myRow.setColumn("container_id" ,myid); | public void setContainerID( int myid ) { myRow.setColumn("resource_filter_arg" ,myid); } | 47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/e8079eed13f705dec376caebbd1b641ac3415bec/ResourcePolicy.java/clean/dspace/src/org/dspace/authorize/ResourcePolicy.java | [
1,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
28331,
734,
12,
509,
3399,
350,
262,
565,
288,
3639,
3399,
1999,
18,
542,
1494,
2932,
3782,
67,
350,
6,
269,
4811,
350,
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
] |
decls = tu.getDeclarations(name_point.resolveBinding()); | decls = tu.getDeclarationsInAST(name_point.resolveBinding()); | public void testDesignatedInitializers() throws ParserException { StringBuffer buffer = new StringBuffer("typedef struct {\n"); //$NON-NLS-1$ buffer.append(" int x;\n"); //$NON-NLS-1$ buffer.append(" int y;\n"); //$NON-NLS-1$ buffer.append("} Coord;\n"); //$NON-NLS-1$ buffer.append("typedef struct {\n"); //$NON-NLS-1$ buffer.append("Coord *pos;\n"); //$NON-NLS-1$ buffer.append("int width;\n"); //$NON-NLS-1$ buffer.append("} Point;\n"); //$NON-NLS-1$ buffer.append("int main(int argc, char *argv[])\n"); //$NON-NLS-1$ buffer.append("{\n"); //$NON-NLS-1$ buffer.append("Coord xy = {.y = 10, .x = 11};\n"); //$NON-NLS-1$ buffer.append("Point point = {.width = 100, .pos = &xy};\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.C); assertNotNull(tu); IASTDeclaration[] declarations = tu.getDeclarations(); IASTName name_Coord = ((IASTSimpleDeclaration) declarations[0]) .getDeclarators()[0].getName(); IASTName name_x = ((IASTSimpleDeclaration) ((IASTCompositeTypeSpecifier) ((IASTSimpleDeclaration) declarations[0]) .getDeclSpecifier()).getMembers()[0]).getDeclarators()[0] .getName(); IASTName name_y = ((IASTSimpleDeclaration) ((IASTCompositeTypeSpecifier) ((IASTSimpleDeclaration) declarations[0]) .getDeclSpecifier()).getMembers()[1]).getDeclarators()[0] .getName(); IASTName name_Point = ((IASTSimpleDeclaration) declarations[1]) .getDeclarators()[0].getName(); IASTName name_pos = ((IASTSimpleDeclaration) ((IASTCompositeTypeSpecifier) ((IASTSimpleDeclaration) declarations[1]) .getDeclSpecifier()).getMembers()[0]).getDeclarators()[0] .getName(); IASTName name_width = ((IASTSimpleDeclaration) ((IASTCompositeTypeSpecifier) ((IASTSimpleDeclaration) declarations[1]) .getDeclSpecifier()).getMembers()[1]).getDeclarators()[0] .getName(); IASTFunctionDefinition main = (IASTFunctionDefinition) declarations[2]; IASTStatement[] statements = ((IASTCompoundStatement) main.getBody()) .getStatements(); IASTSimpleDeclaration xy = (IASTSimpleDeclaration) ((IASTDeclarationStatement) statements[0]) .getDeclaration(); IASTName name_Coord2 = ((IASTNamedTypeSpecifier) xy.getDeclSpecifier()) .getName(); IASTName name_xy = xy.getDeclarators()[0].getName(); IASTDeclarator declarator_xy = xy.getDeclarators()[0]; IASTInitializer[] initializers1 = ((IASTInitializerList) declarator_xy .getInitializer()).getInitializers(); IASTName name_y2 = ((ICASTFieldDesignator) ((ICASTDesignatedInitializer) initializers1[0]) .getDesignators()[0]).getName(); // test bug 87649 assertEquals(((ASTNode) (ICASTDesignatedInitializer) initializers1[0]) .getLength(), 7); IASTName name_x2 = ((ICASTFieldDesignator) ((ICASTDesignatedInitializer) initializers1[1]) .getDesignators()[0]).getName(); IASTSimpleDeclaration point = (IASTSimpleDeclaration) ((IASTDeclarationStatement) statements[1]) .getDeclaration(); IASTName name_Point2 = ((IASTNamedTypeSpecifier) point .getDeclSpecifier()).getName(); IASTName name_point = point.getDeclarators()[0].getName(); IASTDeclarator declarator_point = point.getDeclarators()[0]; IASTInitializer[] initializers2 = ((IASTInitializerList) declarator_point .getInitializer()).getInitializers(); IASTName name_width2 = ((ICASTFieldDesignator) ((ICASTDesignatedInitializer) initializers2[0]) .getDesignators()[0]).getName(); IASTName name_pos2 = ((ICASTFieldDesignator) ((ICASTDesignatedInitializer) initializers2[1]) .getDesignators()[0]).getName(); IASTName name_xy2 = ((IASTIdExpression) ((IASTUnaryExpression) ((IASTInitializerExpression) ((ICASTDesignatedInitializer) initializers2[1]) .getOperandInitializer()).getExpression()).getOperand()) .getName(); for (int i = 0; i < 2; ++i) { ICASTDesignatedInitializer designatedInitializer = (ICASTDesignatedInitializer) initializers1[i]; assertEquals(designatedInitializer.getDesignators().length, 1); ICASTFieldDesignator fieldDesignator = (ICASTFieldDesignator) designatedInitializer .getDesignators()[0]; assertNotNull(fieldDesignator.getName().toString()); } // test tu.getDeclarations(IBinding) IASTName[] decls = tu.getDeclarations(name_Coord2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_Coord); decls = tu.getDeclarations(name_xy.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_xy); decls = tu.getDeclarations(name_y2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_y); decls = tu.getDeclarations(name_x2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_x); decls = tu.getDeclarations(name_Point2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_Point); decls = tu.getDeclarations(name_point.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_point); decls = tu.getDeclarations(name_width2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_width); decls = tu.getDeclarations(name_pos2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_pos); decls = tu.getDeclarations(name_xy2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_xy); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/75cbff035e927043ff1116bbd1e33e89ab93b9cb/AST2Tests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15478,
690,
4435,
8426,
1435,
1216,
27990,
288,
3639,
6674,
1613,
273,
394,
6674,
2932,
723,
536,
1958,
18890,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
509,
619,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
509,
677,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
97,
10320,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
723,
536,
1958,
18890,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
5401,
380,
917,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
474,
1835,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
97,
4686,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
474,
2774,
12,
474,
1501,
71,
16,
1149,
380,
19485,
8526,
5153,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
23241,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
5401,
7668,
273,
288,
18,
93,
273,
1728,
16,
263,
92,
273,
4648,
97,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
2148,
1634,
273,
288,
18,
2819,
273,
2130,
16,
263,
917,
273,
473,
1698,
97,
9747,
82,
8863,
4329,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15478,
690,
4435,
8426,
1435,
1216,
27990,
288,
3639,
6674,
1613,
273,
394,
6674,
2932,
723,
536,
1958,
18890,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
509,
619,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
509,
677,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
97,
10320,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
723,
536,
1958,
18890,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1613,
18,
6923,
2932,
5401,
380,
917,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
2
] |
integerClass.defineMethod("integer?", getMethodIntP()); | integerClass.defineMethod("chr", new ReflectionCallbackMethod(RubyInteger.class, "m_chr")); integerClass.defineMethod("downto", new ReflectionCallbackMethod(RubyInteger.class, "m_downto", RubyNumeric.class)); integerClass.defineMethod("integer?", new ReflectionCallbackMethod(RubyInteger.class, "m_int_p")); integerClass.defineMethod("next", new ReflectionCallbackMethod(RubyInteger.class, "m_succ")); integerClass.defineMethod("step", new ReflectionCallbackMethod(RubyInteger.class, "m_step", new Class[] {RubyNumeric.class, RubyNumeric.class})); integerClass.defineMethod("succ", new ReflectionCallbackMethod(RubyInteger.class, "m_succ")); integerClass.defineMethod("times", new ReflectionCallbackMethod(RubyInteger.class, "m_times")); integerClass.defineMethod("upto", new ReflectionCallbackMethod(RubyInteger.class, "m_upto", RubyNumeric.class)); | public static RubyClass createIntegerClass(Ruby ruby) { RubyClass integerClass = ruby.defineClass("Integer", ruby.getNumericClass()); integerClass.defineMethod("integer?", getMethodIntP()); integerClass.defineMethod("times", getMethodTimes()); return integerClass; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/09d14a481cf7e28332c61c038c7d4b468854d38d/RbInteger.java/buggy/org/jruby/core/RbInteger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
4522,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
3571,
797,
273,
22155,
18,
11255,
797,
2932,
4522,
3113,
22155,
18,
588,
9902,
797,
10663,
2398,
3571,
797,
18,
11255,
1305,
2932,
15182,
3113,
394,
5685,
2428,
1305,
12,
54,
10340,
4522,
18,
1106,
16,
315,
81,
67,
15182,
7923,
1769,
3571,
797,
18,
11255,
1305,
2932,
72,
543,
496,
83,
3113,
394,
5685,
2428,
1305,
12,
54,
10340,
4522,
18,
1106,
16,
315,
81,
67,
72,
543,
496,
83,
3113,
19817,
9902,
18,
1106,
10019,
3571,
797,
18,
11255,
1305,
2932,
7745,
35,
3113,
394,
5685,
2428,
1305,
12,
54,
10340,
4522,
18,
1106,
16,
315,
81,
67,
474,
67,
84,
7923,
1769,
3571,
797,
18,
11255,
1305,
2932,
4285,
3113,
394,
5685,
2428,
1305,
12,
54,
10340,
4522,
18,
1106,
16,
315,
81,
67,
26560,
952,
7923,
1769,
3571,
797,
18,
11255,
1305,
2932,
4119,
3113,
394,
5685,
2428,
1305,
12,
54,
10340,
4522,
18,
1106,
16,
315,
81,
67,
4119,
3113,
394,
1659,
8526,
288,
54,
10340,
9902,
18,
1106,
16,
19817,
9902,
18,
1106,
6792,
1769,
3571,
797,
18,
11255,
1305,
2932,
26560,
952,
3113,
394,
5685,
2428,
1305,
12,
54,
10340,
4522,
18,
1106,
16,
315,
81,
67,
26560,
952,
7923,
1769,
3571,
797,
18,
11255,
1305,
2932,
8293,
3113,
394,
5685,
2428,
1305,
12,
54,
10340,
4522,
18,
1106,
16,
315,
81,
67,
8293,
7923,
1769,
3571,
797,
18,
11255,
1305,
2932,
3648,
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,
19817,
797,
752,
4522,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
3571,
797,
273,
22155,
18,
11255,
797,
2932,
4522,
3113,
22155,
18,
588,
9902,
797,
10663,
2398,
3571,
797,
18,
11255,
1305,
2932,
15182,
3113,
394,
5685,
2428,
1305,
12,
54,
10340,
4522,
18,
1106,
16,
315,
81,
67,
15182,
7923,
1769,
3571,
797,
18,
11255,
1305,
2932,
72,
543,
496,
83,
3113,
394,
5685,
2428,
1305,
12,
54,
10340,
4522,
18,
1106,
16,
315,
81,
67,
72,
543,
496,
83,
3113,
19817,
9902,
18,
1106,
10019,
3571,
797,
18,
11255,
1305,
2932,
7745,
35,
3113,
394,
5685,
2428,
1305,
12,
54,
10340,
4522,
18,
1106,
16,
315,
81,
67,
474,
67,
2
] |
addedFiles.clear(); filesets.clear(); | addedFiles.removeAllElements(); filesets.removeAllElements(); | protected void cleanUp() { addedDirs.clear(); addedFiles.clear(); filesets.clear(); zipFile = null; baseDir = null; entries.clear(); groupfilesets.clear(); duplicate = "add"; archiveType = "zip"; doCompress = true; emptyBehavior = "skip"; doUpdate = false; doFilesonly = false; addingNewFiles = false; encoding = null; } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/732df7532e22b0472690663897388f4b89ca9eb6/Zip.java/buggy/src/main/org/apache/tools/ant/taskdefs/Zip.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
26384,
1435,
288,
3639,
3096,
9872,
18,
8507,
5621,
3639,
3096,
2697,
18,
8507,
5621,
3639,
1390,
2413,
18,
8507,
5621,
3639,
19450,
273,
446,
31,
3639,
14078,
273,
446,
31,
3639,
3222,
18,
8507,
5621,
3639,
1041,
2354,
2413,
18,
8507,
5621,
3639,
6751,
273,
315,
1289,
14432,
3639,
5052,
559,
273,
315,
4450,
14432,
3639,
741,
16552,
273,
638,
31,
3639,
1008,
9212,
273,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
26384,
1435,
288,
3639,
3096,
9872,
18,
8507,
5621,
3639,
3096,
2697,
18,
8507,
5621,
3639,
1390,
2413,
18,
8507,
5621,
3639,
19450,
273,
446,
31,
3639,
14078,
273,
446,
31,
3639,
3222,
18,
8507,
5621,
3639,
1041,
2354,
2413,
18,
8507,
5621,
3639,
6751,
273,
315,
1289,
14432,
3639,
5052,
559,
273,
315,
4450,
14432,
3639,
741,
16552,
273,
638,
31,
3639,
1008,
9212,
273,
315,
7457,
14432,
3639,
741,
1891,
273,
629,
31,
3639,
741,
2697,
3700,
273,
629,
31,
3639,
6534,
1908,
2697,
273,
629,
31,
3639,
2688,
273,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int c1 = decodeIntLittleEndian(encode); int c2 = decodeIntLittleEndian(encode); | int c1 = decodeIntLittleEndian(encode); int c2 = decodeIntLittleEndian(encode); | private static long decodeLongLittleEndian(PtrList encode) { int c1 = decodeIntLittleEndian(encode); int c2 = decodeIntLittleEndian(encode); return ((long) c2 << 32) + (c1 & 0xffffffffL); } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/buggy/src/org/jruby/util/Pack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1525,
2495,
3708,
48,
10609,
12,
5263,
682,
2017,
13,
288,
202,
565,
509,
276,
21,
273,
2495,
1702,
48,
10609,
12,
3015,
1769,
202,
565,
509,
276,
22,
273,
2495,
1702,
48,
10609,
12,
3015,
1769,
202,
565,
327,
14015,
5748,
13,
276,
22,
2296,
3847,
13,
397,
261,
71,
21,
473,
374,
28857,
48,
1769,
225,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1525,
2495,
3708,
48,
10609,
12,
5263,
682,
2017,
13,
288,
202,
565,
509,
276,
21,
273,
2495,
1702,
48,
10609,
12,
3015,
1769,
202,
565,
509,
276,
22,
273,
2495,
1702,
48,
10609,
12,
3015,
1769,
202,
565,
327,
14015,
5748,
13,
276,
22,
2296,
3847,
13,
397,
261,
71,
21,
473,
374,
28857,
48,
1769,
225,
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
] |
args = ArgsUtil.setupArgs(threadContext, this, iVisited.getArgsNode()); | args = ArgsUtil.setupArgs(runtime, threadContext, this, iVisited.getArgsNode()); | public void visitSuperNode(SuperNode iVisited) { if (threadContext.getCurrentFrame().getLastClass() == null) { throw new NameError(runtime, "Superclass method '" + threadContext.getCurrentFrame().getLastFunc() + "' disabled."); } Block tmpBlock = ArgsUtil.beginCallArgs(threadContext); IRubyObject[] args = null; try { args = ArgsUtil.setupArgs(threadContext, this, iVisited.getArgsNode()); } finally { ArgsUtil.endCallArgs(threadContext, tmpBlock); } result = threadContext.callSuper(args); } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/f5c9a1ebd775712f2dc086acfce1a14a123ec632/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
8051,
907,
12,
8051,
907,
277,
30019,
13,
288,
3639,
309,
261,
5930,
1042,
18,
588,
3935,
3219,
7675,
588,
3024,
797,
1435,
422,
446,
13,
288,
5411,
604,
394,
25473,
12,
9448,
16,
315,
28471,
707,
2119,
397,
2650,
1042,
18,
588,
3935,
3219,
7675,
588,
3024,
2622,
1435,
397,
2491,
5673,
1199,
1769,
3639,
289,
3639,
3914,
1853,
1768,
273,
6634,
1304,
18,
10086,
1477,
2615,
12,
5930,
1042,
1769,
3639,
15908,
10340,
921,
8526,
833,
273,
446,
31,
3639,
775,
288,
5411,
833,
273,
6634,
1304,
18,
8401,
2615,
12,
9448,
16,
2650,
1042,
16,
333,
16,
277,
30019,
18,
588,
2615,
907,
10663,
3639,
289,
3095,
288,
5411,
6634,
1304,
18,
409,
1477,
2615,
12,
5930,
1042,
16,
1853,
1768,
1769,
3639,
289,
3639,
563,
273,
2650,
1042,
18,
1991,
8051,
12,
1968,
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,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,
316,
326,
981,
30,
377,
1071,
918,
3757,
8051,
907,
12,
8051,
907,
277,
30019,
13,
288,
3639,
309,
261,
5930,
1042,
18,
588,
3935,
3219,
7675,
588,
3024,
797,
1435,
422,
446,
13,
288,
5411,
604,
394,
25473,
12,
9448,
16,
315,
28471,
707,
2119,
397,
2650,
1042,
18,
588,
3935,
3219,
7675,
588,
3024,
2622,
1435,
397,
2491,
5673,
1199,
1769,
3639,
289,
3639,
3914,
1853,
1768,
273,
6634,
1304,
18,
10086,
1477,
2615,
12,
5930,
1042,
1769,
3639,
15908,
10340,
921,
8526,
833,
273,
446,
31,
3639,
775,
288,
5411,
833,
273,
6634,
1304,
18,
8401,
2615,
12,
9448,
16,
2650,
1042,
16,
333,
16,
277,
30019,
18,
588,
2615,
907,
10663,
3639,
289,
3095,
288,
5411,
6634,
1304,
18,
2
] |
userLayouts.put(user, page); | sessionManager.addSessionListener(sessionId, this); userLayouts.put(sessionId, page); | public PortletPage createFromNewUserLayoutXML(PortletRequest req) throws PersistenceManagerException, IOException { User user = req.getUser(); String layoutPath = userLayoutDir + user.getID(); File f = new File(layoutPath); if (!f.exists()) { f.createNewFile(); copyFile(new File(newuserLayoutPath), f); } PortletPage page = PortletLayoutDescriptor.loadPortletPage(layoutPath, layoutMappingFile); userLayouts.put(user, page); return page; } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/0ae975da0a7c455e75c4dd3a68a53af56d495d1a/PortletPageFactory.java/clean/src/org/gridlab/gridsphere/layout/PortletPageFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21305,
1964,
9492,
1908,
1299,
3744,
4201,
12,
18566,
691,
1111,
13,
1216,
13381,
28020,
16,
1860,
288,
3639,
2177,
729,
273,
1111,
18,
588,
1299,
5621,
3639,
514,
3511,
743,
273,
729,
3744,
1621,
397,
729,
18,
588,
734,
5621,
3639,
1387,
284,
273,
394,
1387,
12,
6741,
743,
1769,
3639,
309,
16051,
74,
18,
1808,
10756,
288,
5411,
284,
18,
2640,
1908,
812,
5621,
5411,
26955,
12,
2704,
1387,
12,
2704,
1355,
3744,
743,
3631,
284,
1769,
3639,
289,
3639,
21305,
1964,
1363,
273,
21305,
3744,
3187,
18,
945,
18566,
1964,
12,
6741,
743,
16,
3511,
3233,
812,
1769,
3639,
1339,
1318,
18,
1289,
2157,
2223,
12,
3184,
548,
16,
333,
1769,
729,
3744,
87,
18,
458,
12,
3184,
548,
16,
1363,
1769,
3639,
327,
1363,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21305,
1964,
9492,
1908,
1299,
3744,
4201,
12,
18566,
691,
1111,
13,
1216,
13381,
28020,
16,
1860,
288,
3639,
2177,
729,
273,
1111,
18,
588,
1299,
5621,
3639,
514,
3511,
743,
273,
729,
3744,
1621,
397,
729,
18,
588,
734,
5621,
3639,
1387,
284,
273,
394,
1387,
12,
6741,
743,
1769,
3639,
309,
16051,
74,
18,
1808,
10756,
288,
5411,
284,
18,
2640,
1908,
812,
5621,
5411,
26955,
12,
2704,
1387,
12,
2704,
1355,
3744,
743,
3631,
284,
1769,
3639,
289,
3639,
21305,
1964,
1363,
273,
21305,
3744,
3187,
18,
945,
18566,
1964,
12,
6741,
743,
16,
3511,
3233,
812,
1769,
3639,
1339,
1318,
18,
1289,
2157,
2223,
12,
3184,
548,
16,
333,
1769,
729,
3744,
87,
2
] |
public ActionForward prepareInsertStudentsInAttendsSet(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW); String groupPropertiesCodeString = request.getParameter("groupPropertiesCode"); Integer groupPropertiesCode = new Integer(groupPropertiesCodeString); String attendsSetCodeString = request.getParameter("attendsSetCode"); Integer attendsSetCode = new Integer(attendsSetCodeString); Integer objectCode = getObjectCode(request); readSiteView(request, null, null, null, null); Object args[] = {objectCode, groupPropertiesCode, attendsSetCode}; List infoStudentList = null; try { infoStudentList = (List) ServiceManagerServiceFactory.executeService(userView, "PrepareEditAttendsSetMembers", args); } catch (FenixServiceException e) { throw new FenixActionException(e); } Collections.sort(infoStudentList, new BeanComparator("number")); request.setAttribute("infoStudentList", infoStudentList); return mapping.findForward("insertStudentsInAttendsSet"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/51b6ac2293210675b11702dcd353d11f8f6541bc/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
2911,
4600,
19943,
4877,
382,
3075,
5839,
694,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
565,
1216,
478,
275,
697,
1803,
503,
16,
478,
275,
697,
1586,
503,
565,
288,
7734,
26166,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
7734,
467,
1299,
1767,
729,
1767,
273,
261,
45,
1299,
1767,
13,
1339,
18,
588,
1499,
12,
2157,
2918,
18,
57,
67,
12145,
1769,
7734,
514,
1041,
2297,
1085,
780,
273,
590,
18,
588,
1662,
2932,
1655,
2297,
1085,
8863,
3639,
2144,
1041,
2297,
1085,
273,
394,
2144,
12,
1655,
2297,
1085,
780,
1769,
7734,
514,
2403,
5839,
694,
1085,
780,
273,
590,
18,
588,
1662,
2932,
4558,
5839,
694,
1085,
8863,
3639,
2144,
2403,
5839,
694,
1085,
273,
394,
2144,
12,
4558,
5839,
694,
1085,
780,
1769,
7734,
2144,
733,
1085,
273,
6455,
1085,
12,
2293,
1769,
7734,
855,
4956,
1767,
12,
2293,
16,
446,
16,
446,
16,
446,
16,
446,
1769,
7734,
1033,
833,
8526,
273,
288,
1612,
1085,
16,
1041,
2297,
1085,
16,
2403,
5839,
694,
1085,
20451,
3639,
987,
1123,
19943,
319,
682,
273,
446,
31,
3639,
775,
3639,
288,
5411,
1123,
19943,
319,
682,
273,
261,
682,
13,
1956,
1318,
1179,
1733,
18,
8837,
1179,
12,
1355,
1767,
16,
10792,
315,
7543,
4666,
3075,
5839,
694,
6918,
3113,
833,
1769,
3639,
289,
1044,
261,
42,
275,
697,
15133,
425,
13,
3639,
288,
5411,
604,
394,
478,
275,
697,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
2911,
4600,
19943,
4877,
382,
3075,
5839,
694,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
565,
1216,
478,
275,
697,
1803,
503,
16,
478,
275,
697,
1586,
503,
565,
288,
7734,
26166,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
7734,
467,
1299,
1767,
729,
1767,
273,
261,
45,
1299,
1767,
13,
1339,
18,
588,
1499,
12,
2157,
2918,
18,
57,
67,
12145,
1769,
7734,
514,
1041,
2297,
1085,
780,
273,
590,
18,
588,
1662,
2932,
1655,
2297,
1085,
8863,
3639,
2144,
1041,
2297,
1085,
273,
394,
2144,
12,
1655,
2297,
1085,
780,
1769,
7734,
514,
2403,
5839,
694,
1085,
780,
273,
590,
18,
588,
2
] |
||
return systemClipboard; | SecurityManager secman = System.getSecurityManager(); if (secman != null) secman.checkSystemClipboardAccess(); return GtkClipboard.getInstance(); | public Clipboard getSystemClipboard() { return systemClipboard; } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/6e1add318c96d8155f1e4fd6ab65b4917e27da8b/GtkToolkit.java/buggy/libraries/javalib/gnu/java/awt/peer/gtk/GtkToolkit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
385,
3169,
3752,
12996,
15339,
3752,
1435,
282,
288,
565,
6036,
1318,
1428,
4728,
273,
2332,
18,
588,
4368,
1318,
5621,
309,
261,
3321,
4728,
480,
446,
13,
1428,
4728,
18,
1893,
3163,
15339,
3752,
1862,
5621,
225,
327,
22132,
15339,
3752,
18,
588,
1442,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
385,
3169,
3752,
12996,
15339,
3752,
1435,
282,
288,
565,
6036,
1318,
1428,
4728,
273,
2332,
18,
588,
4368,
1318,
5621,
309,
261,
3321,
4728,
480,
446,
13,
1428,
4728,
18,
1893,
3163,
15339,
3752,
1862,
5621,
225,
327,
22132,
15339,
3752,
18,
588,
1442,
5621,
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
] |
else updatePropsField(); | public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == ok) ok(); else if(source == cancel) cancel(); else if(source == mode) { Mode _mode = jEdit.getMode((String) mode.getSelectedItem()); tabSize.setSelectedItem(_mode.getProperty( "tabSize")); indentSize.setSelectedItem(_mode.getProperty( "indentSize")); maxLineLen.setSelectedItem(_mode.getProperty( "maxLineLen")); softWrap.setSelected(_mode.getBooleanProperty( "softWrap")); indentOnTab.setSelected(_mode.getBooleanProperty( "indentOnTab")); indentOnEnter.setSelected(_mode.getBooleanProperty( "indentOnEnter")); noTabs.setSelected(_mode.getBooleanProperty( "noTabs")); updatePropsField(); } else updatePropsField(); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/75f860d41ada6e94e8961fbea0bb3a06c855a15c/BufferOptions.java/buggy/org/gjt/sp/jedit/gui/BufferOptions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1529,
13,
9506,
202,
601,
5621,
1082,
202,
12107,
309,
12,
3168,
422,
3755,
13,
9506,
202,
10996,
5621,
1082,
202,
12107,
309,
12,
3168,
422,
1965,
13,
1082,
202,
95,
9506,
202,
2309,
389,
3188,
273,
525,
4666,
18,
588,
2309,
12443,
780,
13,
6862,
202,
3188,
18,
588,
7416,
1180,
10663,
9506,
202,
7032,
1225,
18,
542,
7416,
1180,
24899,
3188,
18,
588,
1396,
12,
6862,
202,
6,
7032,
1225,
7923,
1769,
9506,
202,
9355,
1225,
18,
542,
7416,
1180,
24899,
3188,
18,
588,
1396,
12,
6862,
202,
6,
9355,
1225,
7923,
1769,
9506,
202,
1896,
1670,
2891,
18,
542,
7416,
1180,
24899,
3188,
18,
588,
1396,
12,
6862,
202,
6,
1896,
1670,
2891,
7923,
1769,
9506,
202,
9269,
2964,
18,
542,
7416,
24899,
3188,
18,
588,
5507,
1396,
12,
6862,
202,
6,
9269,
2964,
7923,
1769,
9506,
202,
9355,
1398,
5661,
18,
542,
7416,
24899,
3188,
18,
588,
5507,
1396,
12,
6862,
202,
6,
9355,
1398,
5661,
7923,
1769,
9506,
202,
9355,
1398,
10237,
18,
542,
7416,
24899,
3188,
18,
588,
5507,
1396,
12,
6862,
202,
6,
9355,
1398,
10237,
7923,
1769,
9506,
202,
2135,
17348,
18,
542,
7416,
24899,
3188,
18,
588,
5507,
1396,
12,
6862,
202,
6,
2135,
17348,
7923,
1769,
9506,
202,
2725,
5047,
974,
5621,
1082,
202,
97,
1082,
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,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1529,
13,
9506,
202,
601,
5621,
1082,
202,
12107,
309,
12,
3168,
422,
3755,
13,
9506,
202,
10996,
5621,
1082,
202,
12107,
309,
12,
3168,
422,
1965,
13,
1082,
202,
95,
9506,
202,
2309,
389,
3188,
273,
525,
4666,
18,
588,
2309,
12443,
780,
13,
6862,
202,
3188,
18,
588,
7416,
1180,
10663,
9506,
202,
7032,
1225,
18,
542,
7416,
1180,
24899,
3188,
18,
588,
1396,
12,
6862,
202,
6,
7032,
1225,
7923,
1769,
9506,
202,
9355,
1225,
18,
542,
7416,
1180,
24899,
3188,
18,
588,
1396,
12,
6862,
202,
2
] |
|
sql = "SELECT SETVAL('" + sequenceName + "', (SELECT MAX(" + priKeyAttribute.columnName() +") FROM " + entity.externalName() +") INTO TEMP EOF_TMP_TABLE"; | sql = "SELECT SETVAL('" + sequenceName + "', (SELECT MAX(" + priKeyAttribute.columnName() +") FROM " + entity.externalName() +")) INTO TEMP EOF_TMP_TABLE"; | public NSArray primaryKeySupportStatementsForEntityGroup(NSArray entityGroup) { EOEntity entity; int count; int i; NSMutableArray results; NSArray priKeyAttributes; EOAttribute priKeyAttribute; String sequenceName; results = new NSMutableArray(); count = entityGroup.count(); for ( i = 0 ; i < count ; i++ ) { entity = (EOEntity)entityGroup.objectAtIndex(i); priKeyAttributes = entity.primaryKeyAttributes(); if ( priKeyAttributes.count() == 1 ) { priKeyAttribute = (EOAttribute) priKeyAttributes.objectAtIndex(0); String sql; sequenceName = PostgresqlPlugIn.sequenceNameForEntity(entity); sql = "CREATE SEQUENCE " + sequenceName; results.addObject(createExpression(entity, sql)); sql = "SELECT SETVAL('" + sequenceName + "', (SELECT MAX(" + priKeyAttribute.columnName() +") FROM " + entity.externalName() +") INTO TEMP EOF_TMP_TABLE"; results.addObject(createExpression(entity, sql)); sql = "DROP TABLE EOF_TMP_TABLE"; results.addObject(createExpression(entity, sql)); sql = "ALTER TABLE "+ entity.externalName() +" ALTER COLUMN "+ priKeyAttribute.columnName() +" SET DEFAULT nextval( '"+ sequenceName+ "' )" ; results.addObject(createExpression(entity, sql)); } } return results; } | 46145 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46145/e5b3a844dbeb85520b1591006a67010141edc3af/PostgresqlSynchronizationFactory.java/buggy/PlugIns/PostgresqlPlugIn/Sources/com/webobjects/jdbcadaptor/PostgresqlSynchronizationFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11472,
1076,
8841,
6289,
14663,
1290,
1943,
1114,
12,
3156,
1076,
1522,
1114,
13,
288,
3639,
512,
51,
1943,
1522,
31,
3639,
509,
1056,
31,
3639,
509,
277,
31,
3639,
423,
7303,
3050,
1076,
1686,
31,
3639,
11472,
1076,
14705,
653,
2498,
31,
3639,
512,
51,
1499,
14705,
653,
1499,
31,
3639,
514,
3102,
461,
31,
3639,
1686,
273,
394,
423,
7303,
3050,
1076,
5621,
3639,
1056,
273,
1522,
1114,
18,
1883,
5621,
3639,
364,
261,
277,
273,
374,
274,
277,
411,
1056,
274,
277,
9904,
262,
288,
5411,
1522,
273,
261,
41,
51,
1943,
13,
1096,
1114,
18,
1612,
24499,
12,
77,
1769,
5411,
14705,
653,
2498,
273,
1522,
18,
8258,
653,
2498,
5621,
5411,
309,
261,
14705,
653,
2498,
18,
1883,
1435,
422,
404,
262,
288,
7734,
14705,
653,
1499,
273,
261,
41,
51,
1499,
13,
14705,
653,
2498,
18,
1612,
24499,
12,
20,
1769,
7734,
514,
1847,
31,
7734,
3102,
461,
273,
5616,
24330,
1749,
637,
382,
18,
6178,
461,
1290,
1943,
12,
1096,
1769,
7734,
1847,
273,
315,
9344,
27118,
315,
397,
3102,
461,
31,
7734,
1686,
18,
1289,
921,
12,
2640,
2300,
12,
1096,
16,
1847,
10019,
27573,
1847,
273,
315,
4803,
7855,
2669,
22076,
397,
3102,
461,
397,
14912,
261,
4803,
4552,
2932,
397,
14705,
653,
1499,
18,
2827,
461,
1435,
397,
7923,
4571,
315,
397,
1522,
18,
9375,
461,
1435,
397,
6,
3719,
12421,
24401,
6431,
67,
28259,
67,
7775,
14432,
7734,
1686,
18,
1289,
921,
12,
2640,
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,
11472,
1076,
8841,
6289,
14663,
1290,
1943,
1114,
12,
3156,
1076,
1522,
1114,
13,
288,
3639,
512,
51,
1943,
1522,
31,
3639,
509,
1056,
31,
3639,
509,
277,
31,
3639,
423,
7303,
3050,
1076,
1686,
31,
3639,
11472,
1076,
14705,
653,
2498,
31,
3639,
512,
51,
1499,
14705,
653,
1499,
31,
3639,
514,
3102,
461,
31,
3639,
1686,
273,
394,
423,
7303,
3050,
1076,
5621,
3639,
1056,
273,
1522,
1114,
18,
1883,
5621,
3639,
364,
261,
277,
273,
374,
274,
277,
411,
1056,
274,
277,
9904,
262,
288,
5411,
1522,
273,
261,
41,
51,
1943,
13,
1096,
1114,
18,
1612,
24499,
12,
77,
1769,
5411,
14705,
653,
2498,
273,
1522,
18,
8258,
653,
2498,
5621,
5411,
309,
2
] |
int b = ((total_blue + (unique >> 1)) / unique); cube.colormap[cube.colors] = ((( 0xFF) << 24) | ((r & 0xFF) << 16) | ((g & 0xFF) << 8) | ((b & 0xFF) << 0)); | int b = ((total_blue + (unique >> 1)) / unique); cube.colormap[cube.colors] = (((0xFF) << 24) | ((r & 0xFF) << 16) | ((g & 0xFF) << 8) | ((b & 0xFF) << 0)); | void colormap() { if (nchild != 0) { for (int id = 0; id < 8; id++) { if (child[id] != null) { child[id].colormap(); } } } if (unique != 0) { int r = ((total_red + (unique >> 1)) / unique); int g = ((total_green + (unique >> 1)) / unique); int b = ((total_blue + (unique >> 1)) / unique); cube.colormap[cube.colors] = ((( 0xFF) << 24) | ((r & 0xFF) << 16) | ((g & 0xFF) << 8) | ((b & 0xFF) << 0)); color_number = cube.colors++; } } | 57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/f1a2e8bd347e294e5391728379b76d4500a7093d/Quantize.java/clean/freehep-graphicsio/src/main/java/org/freehep/graphicsio/gif/Quantize.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
918,
24806,
1435,
288,
7734,
309,
261,
82,
3624,
480,
374,
13,
288,
10792,
364,
261,
474,
612,
273,
374,
31,
612,
411,
1725,
31,
612,
27245,
288,
13491,
309,
261,
3624,
63,
350,
65,
480,
446,
13,
288,
18701,
1151,
63,
350,
8009,
1293,
18804,
5621,
13491,
289,
10792,
289,
7734,
289,
7734,
309,
261,
6270,
480,
374,
13,
288,
10792,
509,
436,
273,
14015,
4963,
67,
1118,
282,
397,
261,
6270,
1671,
404,
3719,
342,
3089,
1769,
10792,
509,
314,
273,
14015,
4963,
67,
11571,
397,
261,
6270,
1671,
404,
3719,
342,
3089,
1769,
10792,
509,
324,
273,
14015,
4963,
67,
14081,
225,
397,
261,
6270,
1671,
404,
3719,
342,
3089,
1769,
10792,
18324,
18,
1293,
18804,
63,
21186,
18,
9724,
65,
273,
261,
12443,
565,
374,
6356,
13,
2296,
4248,
13,
571,
4766,
5375,
14015,
86,
473,
374,
6356,
13,
2296,
2872,
13,
571,
4766,
5375,
14015,
75,
473,
374,
6356,
13,
2296,
225,
1725,
13,
571,
4766,
5375,
14015,
70,
473,
374,
6356,
13,
2296,
225,
374,
10019,
10792,
2036,
67,
2696,
273,
18324,
18,
9724,
9904,
31,
7734,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
918,
24806,
1435,
288,
7734,
309,
261,
82,
3624,
480,
374,
13,
288,
10792,
364,
261,
474,
612,
273,
374,
31,
612,
411,
1725,
31,
612,
27245,
288,
13491,
309,
261,
3624,
63,
350,
65,
480,
446,
13,
288,
18701,
1151,
63,
350,
8009,
1293,
18804,
5621,
13491,
289,
10792,
289,
7734,
289,
7734,
309,
261,
6270,
480,
374,
13,
288,
10792,
509,
436,
273,
14015,
4963,
67,
1118,
282,
397,
261,
6270,
1671,
404,
3719,
342,
3089,
1769,
10792,
509,
314,
273,
14015,
4963,
67,
11571,
397,
261,
6270,
1671,
404,
3719,
342,
3089,
1769,
10792,
509,
324,
273,
14015,
4963,
67,
14081,
225,
397,
261,
6270,
1671,
404,
3719,
342,
3089,
1769,
10792,
18324,
18,
1293,
2
] |
if (_type == Type.NodeSet) { getXSLTC().setMultiDocument(true); } return _type; | if (_type == Type.NodeSet) { getXSLTC().setMultiDocument(true); } return _type; | public Type typeCheckExternal(SymbolTable stable) throws TypeCheckError { int nArgs = _arguments.size(); final String name = _fname.getLocalPart(); // check if function is a contructor 'new' if (_fname.getLocalPart().equals("new")) { return typeCheckConstructor(stable); } // check if we are calling an instance method else { boolean hasThisArgument = false; if (nArgs == 0) _isStatic = true; if (!_isStatic) { if (_namespace_format == NAMESPACE_FORMAT_JAVA || _namespace_format == NAMESPACE_FORMAT_PACKAGE) hasThisArgument = true; Expression firstArg = (Expression)_arguments.elementAt(0); Type firstArgType = (Type)firstArg.typeCheck(stable); if (_namespace_format == NAMESPACE_FORMAT_CLASS && firstArgType instanceof ObjectType && ((ObjectType)firstArgType).getJavaClassName().equals(_className)) hasThisArgument = true; if (hasThisArgument) { _thisArgument = (Expression) _arguments.elementAt(0); _arguments.remove(0); nArgs--; if (firstArgType instanceof ObjectType) { _className = ((ObjectType) firstArgType).getJavaClassName(); } else throw new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, name); } } else if (_className.length() == 0) { /* * Warn user if external function could not be resolved. * Warning will _NOT_ be issued is the call is properly * wrapped in an <xsl:if> or <xsl:when> element. For details * see If.parserContents() and When.parserContents() */ final Parser parser = getParser(); if (parser != null) { reportWarning(this, parser, ErrorMsg.FUNCTION_RESOLVE_ERR, _fname.toString()); } unresolvedExternal = true; return _type = Type.Int; // use "Int" as "unknown" } } final Vector methods = findMethods(); if (methods == null) { // Method not found in this class throw new TypeCheckError(ErrorMsg.METHOD_NOT_FOUND_ERR, _className + "." + name); } Class extType = null; final int nMethods = methods.size(); final Vector argsType = typeCheckArgs(stable); // Try all methods to identify the best fit int bestMethodDistance = Integer.MAX_VALUE; _type = null; // reset internal type for (int j, i = 0; i < nMethods; i++) { // Check if all paramteters to this method can be converted final Method method = (Method)methods.elementAt(i); final Class[] paramTypes = method.getParameterTypes(); int currMethodDistance = 0; for (j = 0; j < nArgs; j++) { // Convert from internal (translet) type to external (Java) type extType = paramTypes[j]; final Type intType = (Type)argsType.elementAt(j); Object match = _internal2Java.maps(intType, extType); if (match != null) { currMethodDistance += ((JavaType)match).distance; } else { // no mapping available if (intType instanceof ObjectType) { ObjectType object = (ObjectType)intType; if (extType.getName().equals(object.getJavaClassName())) currMethodDistance += 0; else if (extType.isAssignableFrom(object.getJavaClass())) currMethodDistance += 1; else { currMethodDistance = Integer.MAX_VALUE; break; } } else { currMethodDistance = Integer.MAX_VALUE; break; } } } if (j == nArgs) { // Check if the return type can be converted extType = method.getReturnType(); _type = (Type) _java2Internal.get(extType); if (_type == null) { _type = new ObjectType(extType); } // Use this method if all parameters & return type match if (_type != null && currMethodDistance < bestMethodDistance) { _chosenMethod = method; bestMethodDistance = currMethodDistance; } } } // It is an error if the chosen method is an instance menthod but we don't // have a this argument. if (_chosenMethod != null && _thisArgument == null && !Modifier.isStatic(_chosenMethod.getModifiers())) { throw new TypeCheckError(ErrorMsg.NO_JAVA_FUNCT_THIS_REF, getMethodSignature(argsType)); } if (_type != null) { if (_type == Type.NodeSet) { getXSLTC().setMultiDocument(true); } return _type; } throw new TypeCheckError(ErrorMsg.ARGUMENT_CONVERSION_ERR, getMethodSignature(argsType)); } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/f2269251d2d2151ef6399c06a210c39e047c7fe0/FunctionCall.java/buggy/src/org/apache/xalan/xsltc/compiler/FunctionCall.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1412,
618,
1564,
6841,
12,
5335,
1388,
14114,
13,
1216,
1412,
1564,
668,
288,
202,
474,
290,
2615,
273,
389,
7099,
18,
1467,
5621,
202,
6385,
514,
508,
273,
389,
12749,
18,
588,
2042,
1988,
5621,
1377,
202,
759,
866,
309,
445,
353,
279,
356,
8813,
280,
296,
2704,
11,
202,
430,
261,
67,
12749,
18,
588,
2042,
1988,
7675,
14963,
2932,
2704,
6,
3719,
288,
202,
565,
327,
618,
1564,
6293,
12,
15021,
1769,
202,
97,
202,
759,
866,
309,
732,
854,
4440,
392,
791,
707,
202,
12107,
202,
95,
202,
225,
1250,
711,
2503,
1379,
273,
629,
31,
202,
21114,
225,
309,
261,
82,
2615,
422,
374,
13,
202,
565,
389,
291,
5788,
273,
638,
31,
202,
21114,
225,
309,
16051,
67,
291,
5788,
13,
202,
225,
288,
202,
282,
202,
430,
261,
67,
4937,
67,
2139,
422,
18494,
67,
7254,
67,
27264,
747,
202,
21114,
565,
389,
4937,
67,
2139,
422,
18494,
67,
7254,
67,
19077,
13,
202,
21114,
225,
711,
2503,
1379,
273,
638,
31,
202,
21114,
21114,
282,
202,
2300,
1122,
4117,
273,
261,
2300,
13,
67,
7099,
18,
2956,
861,
12,
20,
1769,
202,
282,
202,
559,
1122,
4117,
559,
273,
261,
559,
13,
3645,
4117,
18,
723,
1564,
12,
15021,
1769,
202,
26924,
282,
202,
430,
261,
67,
4937,
67,
2139,
422,
18494,
67,
7254,
67,
5237,
597,
202,
21114,
565,
1122,
4117,
559,
1276,
21338,
597,
3196,
21114,
565,
14015,
17610,
13,
3645,
4117,
559,
2934,
588,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1412,
618,
1564,
6841,
12,
5335,
1388,
14114,
13,
1216,
1412,
1564,
668,
288,
202,
474,
290,
2615,
273,
389,
7099,
18,
1467,
5621,
202,
6385,
514,
508,
273,
389,
12749,
18,
588,
2042,
1988,
5621,
1377,
202,
759,
866,
309,
445,
353,
279,
356,
8813,
280,
296,
2704,
11,
202,
430,
261,
67,
12749,
18,
588,
2042,
1988,
7675,
14963,
2932,
2704,
6,
3719,
288,
202,
565,
327,
618,
1564,
6293,
12,
15021,
1769,
202,
97,
202,
759,
866,
309,
732,
854,
4440,
392,
791,
707,
202,
12107,
202,
95,
202,
225,
1250,
711,
2503,
1379,
273,
629,
31,
202,
21114,
225,
309,
261,
82,
2615,
422,
374,
13,
202,
565,
389,
291,
5788,
273,
638,
2
] |
return _properties; | return properties; | public PropertyMap getProperties() { return _properties; } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/UrlInfo.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/client/UrlInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4276,
863,
9392,
1435,
288,
3639,
327,
1790,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4276,
863,
9392,
1435,
288,
3639,
327,
1790,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
float adj = (float)((offset.getY()-initY)*yScale); offset = new Point2D.Float((float) offset.getX(), (float)initY+adj+dy); } else { float adj = (float)((offset.getX()-initX)*xScale); offset = new Point2D.Float((float)initX+adj+dx, (float) offset.getY()); } | float adj = (float)((offset.getY()-shiftY)*yScale); offset = new Point2D.Float((float)absX, (float)absY+adj+dy); } else { float adj = (float)((offset.getX()-shiftX)*xScale); offset = new Point2D.Float((float)absX+adj+dx, (float)absY); } | private void adjustChunkOffsets(List textRuns, TextChunk chunk) { TextRun r = (TextRun) textRuns.get(chunk.begin); int anchorType = r.getAnchorType(); Float length = r.getLength(); Integer lengthAdj = r.getLengthAdjust(); Point2D advance = chunk.advance; boolean doAdjust = true; if ((length == null) || length.isNaN()) doAdjust = false; int numChars = 0; for (int n=chunk.begin; n<chunk.end; ++n) { r = (TextRun) textRuns.get(n); AttributedCharacterIterator aci = r.getACI(); numChars += aci.getEndIndex()-aci.getBeginIndex(); } if ((lengthAdj == GVTAttributedCharacterIterator.TextAttribute.ADJUST_SPACING) && (numChars == 1)) doAdjust = false; float xScale = 1; float yScale = 1; if (doAdjust) { // We have to do this here since textLength needs to be // handled at the text chunk level. Otherwise tspans get // messed up. float delta = 0; r = (TextRun)textRuns.get(chunk.end-1); TextSpanLayout layout = r.getLayout(); GVTGlyphMetrics lastMetrics = layout.getGlyphMetrics(layout.getGlyphCount()-1); Rectangle2D lastBounds = lastMetrics.getBounds2D(); if (layout.isVertical()) { if (lengthAdj == ADJUST_SPACING) { yScale = (float) ((length.floatValue()-lastBounds.getHeight())/ (advance.getY()-lastMetrics.getVerticalAdvance())); } else { double adv = (advance.getY()- lastMetrics.getVerticalAdvance() + lastBounds.getHeight()); xScale = (float)(length.floatValue()/adv); } } else { if (lengthAdj == ADJUST_SPACING) { xScale = (float) ((length.floatValue()-lastBounds.getWidth())/ (advance.getX()-lastMetrics.getHorizontalAdvance())); } else { double adv = (advance.getX()- lastMetrics.getHorizontalAdvance() + lastBounds.getWidth()); xScale = (float)(length.floatValue()/adv); } } // System.out.println("Adv: " + advance + " Len: " + length + // " scale: [" + xScale + ", " + yScale + "]"); Point2D.Float adv = new Point2D.Float(0,0); for (int n=chunk.begin; n<chunk.end; ++n) { r = (TextRun) textRuns.get(n); layout = r.getLayout(); layout.setScale(xScale, yScale, lengthAdj==ADJUST_SPACING); Point2D lAdv = layout.getAdvance2D(); adv.x += lAdv.getX(); adv.y += lAdv.getY(); } chunk.advance = adv; } advance = chunk.advance; float dx = 0f; float dy = 0f; switch(anchorType){ case TextNode.Anchor.ANCHOR_MIDDLE: dx = (float) (-advance.getX()/2d); dy = (float) (-advance.getY()/2d); break; case TextNode.Anchor.ANCHOR_END: dx = (float) (-advance.getX()); dy = (float) (-advance.getY()); break; default: break; // leave untouched } r = (TextRun) textRuns.get(chunk.begin); TextSpanLayout layout = r.getLayout(); Point2D offset = layout.getOffset(); float initX = (float)offset.getX(); float initY = (float)offset.getY(); for (int n=chunk.begin; n<chunk.end; ++n) { r = (TextRun) textRuns.get(n); layout = r.getLayout(); offset = layout.getOffset(); if (layout.isVertical()) { float adj = (float)((offset.getY()-initY)*yScale); offset = new Point2D.Float((float) offset.getX(), (float)initY+adj+dy); } else { float adj = (float)((offset.getX()-initX)*xScale); offset = new Point2D.Float((float)initX+adj+dx, (float) offset.getY()); } layout.setOffset(offset); } } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/29a29b7079501f40905d35ddf6490c3256f89a34/StrokingTextPainter.java/buggy/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5765,
5579,
13830,
12,
682,
977,
9361,
16,
19694,
3867,
5579,
2441,
13,
288,
3639,
3867,
1997,
436,
1850,
273,
261,
1528,
1997,
13,
977,
9361,
18,
588,
12,
6551,
18,
10086,
1769,
3639,
509,
377,
6984,
559,
273,
436,
18,
588,
11605,
559,
5621,
3639,
5450,
282,
769,
377,
273,
436,
18,
588,
1782,
5621,
3639,
2144,
769,
17886,
225,
273,
436,
18,
588,
1782,
10952,
5621,
3639,
4686,
22,
40,
8312,
565,
273,
2441,
18,
361,
5882,
31,
3639,
1250,
741,
10952,
273,
638,
31,
3639,
309,
14015,
2469,
422,
446,
13,
747,
769,
18,
291,
21172,
10756,
5411,
741,
10952,
273,
629,
31,
7734,
509,
818,
7803,
273,
374,
31,
3639,
364,
261,
474,
290,
33,
6551,
18,
10086,
31,
290,
32,
6551,
18,
409,
31,
965,
82,
13,
288,
5411,
436,
273,
261,
1528,
1997,
13,
977,
9361,
18,
588,
12,
82,
1769,
5411,
2380,
11050,
7069,
3198,
1721,
77,
273,
436,
18,
588,
2226,
45,
5621,
5411,
818,
7803,
1011,
1721,
77,
18,
588,
24152,
1435,
17,
1077,
77,
18,
588,
8149,
1016,
5621,
3639,
289,
3639,
309,
14015,
2469,
17886,
422,
2868,
611,
58,
56,
861,
11050,
7069,
3198,
18,
1528,
1499,
18,
1880,
46,
5996,
67,
3118,
2226,
1360,
13,
597,
5411,
261,
2107,
7803,
422,
404,
3719,
2398,
741,
10952,
273,
629,
31,
3639,
1431,
619,
5587,
273,
404,
31,
3639,
1431,
677,
5587,
273,
404,
31,
3639,
309,
261,
2896,
10952,
13,
288,
5411,
368,
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,
5765,
5579,
13830,
12,
682,
977,
9361,
16,
19694,
3867,
5579,
2441,
13,
288,
3639,
3867,
1997,
436,
1850,
273,
261,
1528,
1997,
13,
977,
9361,
18,
588,
12,
6551,
18,
10086,
1769,
3639,
509,
377,
6984,
559,
273,
436,
18,
588,
11605,
559,
5621,
3639,
5450,
282,
769,
377,
273,
436,
18,
588,
1782,
5621,
3639,
2144,
769,
17886,
225,
273,
436,
18,
588,
1782,
10952,
5621,
3639,
4686,
22,
40,
8312,
565,
273,
2441,
18,
361,
5882,
31,
3639,
1250,
741,
10952,
273,
638,
31,
3639,
309,
14015,
2469,
422,
446,
13,
747,
769,
18,
291,
21172,
10756,
5411,
741,
10952,
273,
629,
31,
7734,
509,
818,
7803,
273,
374,
31,
3639,
364,
261,
2
] |
leftTuple.addTupleMatch( handle, tupleMatch ); | public void modifyTuple(final ReteTuple leftTuple, final PropagationContext context, final ReteooWorkingMemory workingMemory) { final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( this ); // We remove the tuple as now its modified it needs to go to the top of // the stack, which is added back in else where memory.remove( workingMemory, leftTuple ); // ensure the tuple is at the top of the memory memory.add( workingMemory, leftTuple ); final Map matches = leftTuple.getTupleMatches(); final int previous = matches.size(); final BetaNodeBinder binder = getJoinNodeBinder(); for ( final Iterator rightIterator = memory.rightObjectIterator( workingMemory, leftTuple ); rightIterator.hasNext(); ) { final ObjectMatches objectMatches = (ObjectMatches) rightIterator.next(); final DefaultFactHandle handle = objectMatches.getFactHandle(); if ( binder.isAllowed( handle, leftTuple, workingMemory ) ) { // test passes TupleMatch tupleMatch = (TupleMatch) leftTuple.getTupleMatches().get( handle ); if ( tupleMatch == null ) { // no previous matches so add a match now tupleMatch = objectMatches.add( leftTuple ); leftTuple.addTupleMatch( handle, tupleMatch ); } } else { final TupleMatch tupleMatch = leftTuple.removeMatch( handle ); if ( tupleMatch != null ) { // use to match and doesn't any more, so remove match objectMatches.remove( tupleMatch ); } } } if ( previous == 0 && leftTuple.matchesSize() == 0 ) { propagateModifyTuple( leftTuple, context, workingMemory ); } else if ( previous != 0 && leftTuple.matchesSize() == 0 ) { propagateAssertTuple( leftTuple, context, workingMemory ); } else if ( previous == 0 && leftTuple.matchesSize() != 0 ) { propagateRetractTuple( leftTuple, context, workingMemory ); } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/aa63ac45ff9471accf62a4e70724c4459617d679/NotNode.java/buggy/drools-core/src/main/java/org/drools/reteoo/NotNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5612,
9038,
12,
6385,
534,
12865,
9038,
2002,
9038,
16,
18701,
727,
1186,
9095,
367,
1042,
819,
16,
18701,
727,
17100,
4361,
83,
14836,
6031,
5960,
6031,
13,
288,
3639,
727,
16393,
6031,
3778,
273,
261,
38,
1066,
6031,
13,
5960,
6031,
18,
588,
907,
6031,
12,
333,
11272,
3639,
368,
1660,
1206,
326,
3193,
487,
2037,
2097,
4358,
518,
4260,
358,
1960,
358,
326,
1760,
434,
3639,
368,
326,
2110,
16,
1492,
353,
3096,
1473,
316,
469,
1625,
3639,
3778,
18,
4479,
12,
5960,
6031,
16,
15604,
2002,
9038,
11272,
3639,
368,
3387,
326,
3193,
353,
622,
326,
1760,
434,
326,
3778,
3639,
3778,
18,
1289,
12,
5960,
6031,
16,
10792,
2002,
9038,
11272,
3639,
727,
1635,
1885,
273,
2002,
9038,
18,
588,
9038,
6869,
5621,
3639,
727,
509,
2416,
273,
1885,
18,
1467,
5621,
3639,
727,
16393,
907,
17700,
18135,
273,
25762,
907,
17700,
5621,
3639,
364,
261,
727,
4498,
2145,
3198,
273,
3778,
18,
4083,
921,
3198,
12,
5960,
6031,
16,
28524,
540,
2002,
9038,
11272,
2145,
3198,
18,
5332,
2134,
5621,
262,
288,
5411,
727,
1033,
6869,
733,
6869,
273,
261,
921,
6869,
13,
2145,
3198,
18,
4285,
5621,
5411,
727,
2989,
9766,
3259,
1640,
273,
733,
6869,
18,
588,
9766,
3259,
5621,
5411,
309,
261,
18135,
18,
291,
5042,
12,
1640,
16,
4766,
282,
2002,
9038,
16,
4766,
282,
5960,
6031,
262,
262,
288,
7734,
368,
1842,
11656,
7734,
7257,
2060,
3193,
2060,
273,
261,
9038,
2060,
13,
2002,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5612,
9038,
12,
6385,
534,
12865,
9038,
2002,
9038,
16,
18701,
727,
1186,
9095,
367,
1042,
819,
16,
18701,
727,
17100,
4361,
83,
14836,
6031,
5960,
6031,
13,
288,
3639,
727,
16393,
6031,
3778,
273,
261,
38,
1066,
6031,
13,
5960,
6031,
18,
588,
907,
6031,
12,
333,
11272,
3639,
368,
1660,
1206,
326,
3193,
487,
2037,
2097,
4358,
518,
4260,
358,
1960,
358,
326,
1760,
434,
3639,
368,
326,
2110,
16,
1492,
353,
3096,
1473,
316,
469,
1625,
3639,
3778,
18,
4479,
12,
5960,
6031,
16,
15604,
2002,
9038,
11272,
3639,
368,
3387,
326,
3193,
353,
622,
326,
1760,
434,
326,
3778,
3639,
3778,
18,
1289,
12,
5960,
6031,
16,
10792,
2002,
9038,
11272,
3639,
2
] |
|
} else if (parts.size() == 1) { | } else if (1 == parts.size()) { | static public Twine fromParts(ConstList parts) { if (parts.size() == 0) { return EmptyTwine.THE_ONE; } else if (parts.size() == 1) { return (Twine)parts.get(0); } else { AtomicTwine[] atoms = (AtomicTwine[])parts.getArray(AtomicTwine.class); return new CompositeTwine(atoms); } } | 48789 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48789/31438388ca8b2d50dd072b526e08fd0a4f2c0103/Twine.java/clean/src/jsrc/org/erights/e/elib/tables/Twine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
12694,
558,
628,
4305,
12,
9661,
682,
2140,
13,
288,
3639,
309,
261,
6019,
18,
1467,
1435,
422,
374,
13,
288,
5411,
327,
8953,
23539,
558,
18,
24644,
67,
5998,
31,
3639,
289,
469,
309,
261,
21,
422,
2140,
18,
1467,
10756,
288,
5411,
327,
261,
23539,
558,
13,
6019,
18,
588,
12,
20,
1769,
3639,
289,
469,
288,
5411,
11553,
23539,
558,
8526,
9006,
273,
2868,
261,
23102,
23539,
558,
63,
5717,
6019,
18,
588,
1076,
12,
23102,
23539,
558,
18,
1106,
1769,
5411,
327,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
12694,
558,
628,
4305,
12,
9661,
682,
2140,
13,
288,
3639,
309,
261,
6019,
18,
1467,
1435,
422,
374,
13,
288,
5411,
327,
8953,
23539,
558,
18,
24644,
67,
5998,
31,
3639,
289,
469,
309,
261,
21,
422,
2140,
18,
1467,
10756,
288,
5411,
327,
261,
23539,
558,
13,
6019,
18,
588,
12,
20,
1769,
3639,
289,
469,
288,
5411,
11553,
23539,
558,
8526,
9006,
273,
2868,
261,
23102,
23539,
558,
63,
5717,
6019,
18,
588,
1076,
12,
23102,
23539,
558,
18,
1106,
1769,
5411,
327,
394,
14728,
23539,
558,
12,
14937,
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
] |
Subsets and Splits