rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pushInput(new Input(in, null, systemId, null)); | pushInput(new Input(in, null, null, systemId, null, null, false)); | public XMLParser(InputStream in, String systemId, boolean validating, boolean namespaceAware, boolean coalescing, boolean replaceERefs, boolean externalEntities, boolean supportDTD, boolean baseAware, boolean stringInterning, XMLReporter reporter, XMLResolver resolver) { this.validating = validating; this.namespaceAware = namespaceAware; this.coalescing = coalescing; this.replaceERefs = replaceERefs; this.externalEntities = externalEntities; this.supportDTD = supportDTD; this.baseAware = baseAware; this.stringInterning = stringInterning; this.reporter = reporter; this.resolver = resolver; if (validating) { validationStack = new LinkedList(); ids = new HashSet(); idrefs = new HashSet(); } pushInput(new Input(in, null, systemId, null)); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/04c1b36b98ba98b0efae9ad0b948798f7346549f/XMLParser.java/buggy/gnu/xml/stream/XMLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3167,
2678,
12,
4348,
316,
16,
514,
30083,
16,
10402,
1250,
18075,
16,
10402,
1250,
1981,
10155,
16,
10402,
1250,
1825,
287,
742,
310,
16,
10402,
1250,
1453,
41,
9837,
16,
10402,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3167,
2678,
12,
4348,
316,
16,
514,
30083,
16,
10402,
1250,
18075,
16,
10402,
1250,
1981,
10155,
16,
10402,
1250,
1825,
287,
742,
310,
16,
10402,
1250,
1453,
41,
9837,
16,
10402,
12... |
if (jj_3R_42()) jj_scanpos = xsp; | if (jj_3R_43()) jj_scanpos = xsp; | static final private boolean jj_3R_32() { Token xsp; xsp = jj_scanpos; if (jj_scan_token(27)) { jj_scanpos = xsp; if (jj_scan_token(28)) return true; } xsp = jj_scanpos; if (jj_3R_42()) jj_scanpos = xsp; return false; } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/773e62df340910756fa4992c37d1a6531e796a5c/ExpressionParser.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/expression/ast/ExpressionParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
1578,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
1578,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
... |
System.out.println( Thread.currentThread().getName() + " took a self-signal off the queue!" ); | public Signal getNextSignal() throws LemRuntimeException { synchronized( instanceInObject ) { while ( true ) { if ( signalSelfQueue.size() > 0 ) { System.out.println( Thread.currentThread().getName() + " took a self-signal off the queue!" ); return (Signal) signalSelfQueue.remove( 0 ); } else if ( signalQueue.size() > 0 ) { System.out.println( Thread.currentThread().getName() + " took a signal off the queue!" ); return (Signal) signalQueue.remove( 0 ); } System.out.println( Thread.currentThread().getName() + " propogating a signal" ); if ( instanceInObject.propogateNextSignal() ) { /** Have a signal */ System.out.println( Thread.currentThread().getName() + " has a signal!" ); continue; } try { System.out.println( Thread.currentThread().getName() + " waiting patiently for a signal." ); instanceInObject.wait(); System.out.println( Thread.currentThread().getName() + " woke up! Any signals?" ); /** * After taking instanceInObject's lock, we must * always recheck this Instance's queue because * another instance may have propogated a signal * from the runtime.Object. * * So go back to the top. */ } catch ( Exception e ) { System.out.println( "Some weirdo exception occurred" ); e.printStackTrace(); } } } } | 10434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10434/d6c8a38156925e4a09b1fa8d0835e99b076a3f78/Instance.java/buggy/trunk/src/runtime/Instance.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12032,
6927,
11208,
1435,
1216,
511,
351,
11949,
288,
202,
202,
22043,
12,
791,
382,
921,
262,
288,
9506,
202,
17523,
261,
638,
262,
288,
9506,
202,
430,
261,
4277,
10084,
3183,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12032,
6927,
11208,
1435,
1216,
511,
351,
11949,
288,
202,
202,
22043,
12,
791,
382,
921,
262,
288,
9506,
202,
17523,
261,
638,
262,
288,
9506,
202,
430,
261,
4277,
10084,
3183,... | |
Object result; try { result = interpret(cx, frame, null); } finally { cx.interpreterLineCounting = null; } return result; | return interpretLoop(cx, frame, null); | static Object interpret(InterpretedFunction ifun, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!ScriptRuntime.hasTopCall(cx)) { return ScriptRuntime.doTopCall(ifun, cx, scope, thisObj, args); } if (cx.interpreterSecurityDomain != ifun.securityDomain) { Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = ifun.securityDomain; try { return ifun.securityController.callWithDomain( ifun.securityDomain, cx, ifun, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } CallFrame frame = new CallFrame(); initFrame(cx, scope, thisObj, args, null, 0, args.length, ifun, null, frame); Object result; try { result = interpret(cx, frame, null); } finally { // Always clenup interpreterLineCounting to avoid memory leaks // throgh stored in Context frame cx.interpreterLineCounting = null; } return result; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/bfa8309763e2523e019dce764cbca002cf6f54ad/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
2465,
15089,
329,
2083,
309,
318,
16,
18701,
1772,
9494,
16,
22780,
2146,
16,
18701,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
309,
16051,
3651,
5576,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
2465,
15089,
329,
2083,
309,
318,
16,
18701,
1772,
9494,
16,
22780,
2146,
16,
18701,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
309,
16051,
3651,
5576,
1... |
actionPropertyChange(event); | update(event.getProperty()); | public void propertyChange(PropertyChangeEvent event) { actionPropertyChange(event); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/da62d07d65d14601a24bc2d132072bc969f41838/ActionContributionItem.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1272,
3043,
12,
1396,
20930,
871,
13,
288,
5411,
1089,
12,
2575,
18,
588,
1396,
10663,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1272,
3043,
12,
1396,
20930,
871,
13,
288,
5411,
1089,
12,
2575,
18,
588,
1396,
10663,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
addByteCode(ByteCode.ACONST_NULL); | cfw.add(ByteCode.ACONST_NULL); | private void generateCodeFromNode(Node node, Node parent) { // System.out.println("gen code for " + node.toString()); int type = node.getType(); Node child = node.getFirstChild(); switch (type) { case Token.LOOP: case Token.WITH: case Token.LABEL: visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } break; case Token.CASE: case Token.DEFAULT: // XXX shouldn't these be StatementNodes? case Token.SCRIPT: case Token.BLOCK: case Token.EMPTY: case Token.NOP: // no-ops. visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } break; case Token.FUNCTION: if (inFunction || parent.getType() != Token.SCRIPT) { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); OptFunctionNode fn; fn = (OptFunctionNode)scriptOrFn.getFunctionNode(fnIndex); int t = fn.getFunctionType(); if (t != FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, t); } } break; case Token.NAME: visitName(node); break; case Token.NEW: case Token.CALL: visitCall(node, type, child); break; case Token.NUMBER: case Token.STRING: visitLiteral(node); break; case Token.THIS: aload(thisObjLocal); break; case Token.THISFN: classFile.add(ByteCode.ALOAD_0); break; case Token.NULL: addByteCode(ByteCode.ACONST_NULL); break; case Token.TRUE: classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); break; case Token.FALSE: classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); break; case Token.UNDEFINED: pushUndefined(); break; case Token.REGEXP: visitObject(node); break; case Token.TRY: visitTryCatchFinally(node, child); break; case Token.THROW: visitThrow(node, child); break; case Token.RETURN: visitReturn(node, child); break; case Token.SWITCH: visitSwitch(node, child); break; case Token.COMMA: { Node next = child.getNext(); while (next != null) { generateCodeFromNode(child, node); addByteCode(ByteCode.POP); child = next; next = next.getNext(); } generateCodeFromNode(child, node); break; } case Token.NEWSCOPE: addScriptRuntimeInvoke("newScope", "()Lorg/mozilla/javascript/Scriptable;"); break; case Token.ENTERWITH: visitEnterWith(node, child); break; case Token.LEAVEWITH: visitLeaveWith(node, child); break; case Token.ENUMINIT: visitEnumInit(node, child); break; case Token.ENUMNEXT: visitEnumNext(node, child); break; case Token.ENUMDONE: visitEnumDone(node, child); break; case Token.POP: visitStatement(node); if (child.getType() == Token.SETVAR) { /* special case this so as to avoid unnecessary load's & pop's */ visitSetVar(child, child.getFirstChild(), false); } else { while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) addByteCode(ByteCode.POP2); else addByteCode(ByteCode.POP); } break; case Token.POPV: visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } astore(scriptResultLocal); break; case Token.TARGET: visitTarget(node); break; case Token.JSR: case Token.GOTO: case Token.IFEQ: case Token.IFNE: visitGOTO(node, type, child); break; case Token.NOT: { int trueTarget = acquireLabel(); int falseTarget = acquireLabel(); int beyond = acquireLabel(); generateIfJump(child, node, trueTarget, falseTarget); markLabel(trueTarget); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); addByteCode(ByteCode.GOTO, beyond); markLabel(falseTarget); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); markLabel(beyond); classFile.adjustStackTop(-1); break; } case Token.BITNOT: addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node); addScriptRuntimeInvoke("toInt32", "(Ljava/lang/Object;)I"); push(-1); // implement ~a as (a ^ -1) addByteCode(ByteCode.IXOR); addByteCode(ByteCode.I2D); addDoubleConstructor(); break; case Token.VOID: generateCodeFromNode(child, node); addByteCode(ByteCode.POP); pushUndefined(); break; case Token.TYPEOF: generateCodeFromNode(child, node); addScriptRuntimeInvoke("typeof", "(Ljava/lang/Object;" +")Ljava/lang/String;"); break; case Token.TYPEOFNAME: visitTypeofname(node); break; case Token.INC: visitIncDec(node, true); break; case Token.DEC: visitIncDec(node, false); break; case Token.OR: case Token.AND: { generateCodeFromNode(child, node); addByteCode(ByteCode.DUP); addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); int falseTarget = acquireLabel(); if (type == Token.AND) addByteCode(ByteCode.IFEQ, falseTarget); else addByteCode(ByteCode.IFNE, falseTarget); addByteCode(ByteCode.POP); generateCodeFromNode(child.getNext(), node); markLabel(falseTarget); } break; case Token.ADD: { generateCodeFromNode(child, node); generateCodeFromNode(child.getNext(), node); switch (node.getIntProp(Node.ISNUMBER_PROP, -1)) { case Node.BOTH: addByteCode(ByteCode.DADD); break; case Node.LEFT: addOptRuntimeInvoke("add", "(DLjava/lang/Object;)Ljava/lang/Object;"); break; case Node.RIGHT: addOptRuntimeInvoke("add", "(Ljava/lang/Object;D)Ljava/lang/Object;"); break; default: addScriptRuntimeInvoke("add", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); } } break; case Token.MUL: visitArithmetic(node, ByteCode.DMUL, child, parent); break; case Token.SUB: visitArithmetic(node, ByteCode.DSUB, child, parent); break; case Token.DIV: case Token.MOD: visitArithmetic(node, type == Token.DIV ? ByteCode.DDIV : ByteCode.DREM, child, parent); break; case Token.BITOR: case Token.BITXOR: case Token.BITAND: case Token.LSH: case Token.RSH: case Token.URSH: visitBitOp(node, type, child); break; case Token.POS: case Token.NEG: addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)D"); if (type == Token.NEG) { addByteCode(ByteCode.DNEG); } addDoubleConstructor(); break; case Optimizer.TO_DOUBLE: // cnvt to double (not Double) generateCodeFromNode(child, node); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)D"); break; case Optimizer.TO_OBJECT: { // convert from double int prop = -1; if (child.getType() == Token.NUMBER) { prop = child.getIntProp(Node.ISNUMBER_PROP, -1); } if (prop != -1) { child.removeProp(Node.ISNUMBER_PROP); generateCodeFromNode(child, node); child.putIntProp(Node.ISNUMBER_PROP, prop); } else { addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node); addDoubleConstructor(); } break; } case Token.IN: case Token.INSTANCEOF: case Token.LE: case Token.LT: case Token.GE: case Token.GT: // need a result Object visitRelOp(node, child); break; case Token.EQ: case Token.NE: case Token.SHEQ: case Token.SHNE: visitEqOp(node, child); break; case Token.GETPROP: visitGetProp(node, child); break; case Token.GETELEM: while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } aload(variableObjectLocal); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { addOptRuntimeInvoke( "getElem", "(Ljava/lang/Object;D" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { addScriptRuntimeInvoke( "getElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } break; case Token.GETVAR: { OptLocalVariable lVar = (OptLocalVariable)(node.getProp(Node.VARIABLE_PROP)); visitGetVar(lVar, node.getIntProp(Node.ISNUMBER_PROP, -1) != -1, node.getString()); } break; case Token.SETVAR: visitSetVar(node, child, true); break; case Token.SETNAME: visitSetName(node, child); break; case Token.SETPROP: visitSetProp(node, child); break; case Token.SETELEM: while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } aload(variableObjectLocal); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { addOptRuntimeInvoke( "setElem", "(Ljava/lang/Object;" +"D" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { addScriptRuntimeInvoke( "setElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } break; case Token.DELPROP: aload(contextLocal); aload(variableObjectLocal); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } addScriptRuntimeInvoke("delete", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); break; case Token.BINDNAME: case Token.GETBASE: visitBind(node, type, child); break; case Token.GETTHIS: generateCodeFromNode(child, node); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); break; case Token.PARENT: generateCodeFromNode(child, node); addScriptRuntimeInvoke("getParent", "(Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); break; case Token.NEWTEMP: visitNewTemp(node, child); break; case Token.USETEMP: visitUseTemp(node, child); break; case Token.NEWLOCAL: visitNewLocal(node, child); break; case Token.USELOCAL: visitUseLocal(node, child); break; default: throw new RuntimeException("Unexpected node type "+type); } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
28570,
12,
907,
756,
16,
2029,
982,
13,
565,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
4507,
981,
364,
315,
397,
756,
18,
10492,
10663,
3639,
509,
618,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
28570,
12,
907,
756,
16,
2029,
982,
13,
565,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
4507,
981,
364,
315,
397,
756,
18,
10492,
10663,
3639,
509,
618,
273,
... |
public void handleException(Throwable e) { super.handleException(e); removeListener(l); } | 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); //If and unexpected exception happens, remove it //to make sure the workbench keeps running. removeListener(l); } }); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e8477e9d466ef58559b76fa62a3c7e84260a1416/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,
6459,
4452,
5583,
12,
6385,
5287,
2249,
27553,
871,
13,
288,
202,
202,
921,
5378,
526,
273,
4679,
18,
588,
5583,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
4452,
5583,
12,
6385,
5287,
2249,
27553,
871,
13,
288,
202,
202,
921,
5378,
526,
273,
4679,
18,
588,
5583,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
526,
... | |
"http: | "http: | public DescriptorSpecification getSpecification() { return new DescriptorSpecification( "http://qsar.sourceforge.net/dicts/qsar-descriptors:LargestPiSystem", this.getClass().getName(), "$Id$", "The Chemistry Development Kit"); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/e4d8df51acdc4001b3a539f04e0156e76d56d6b3/LargestPiSystemDescriptor.java/clean/src/org/openscience/cdk/qsar/descriptors/molecular/LargestPiSystemDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12823,
8615,
20189,
1480,
1435,
288,
3639,
327,
394,
12823,
8615,
12,
7734,
315,
2505,
2207,
12926,
297,
18,
3168,
1884,
908,
18,
2758,
19,
16287,
19,
12926,
297,
17,
72,
8379,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12823,
8615,
20189,
1480,
1435,
288,
3639,
327,
394,
12823,
8615,
12,
7734,
315,
2505,
2207,
12926,
297,
18,
3168,
1884,
908,
18,
2758,
19,
16287,
19,
12926,
297,
17,
72,
8379,
30,
... |
System.err.println(name); | public static void main (String args[]) throws Exception { DefaultHandler handler = new DefaultHandler(); XSDHandler me = new XSDHandler(new XSGrammarResolver(), new XMLErrorReporter(), new EntityResolverWrapper(new org.apache.xerces.impl.v2.XSDHandler.DummyResolver()), new SymbolTable()); me.parseSchema(args[0], args[1]); Enumeration types = me.fUnparsedTypeRegistry.keys(); String name = null; while(types.hasMoreElements()) { name = (String)types.nextElement(); System.err.println(name); } System.err.println("traversing completed!"); } // main | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/3618bca0a04de9dccc91c9be85b335ec71742d27/XSDHandler.java/clean/src/org/apache/xerces/impl/v2/XSDHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
833,
63,
5717,
1216,
1185,
288,
3639,
2989,
1503,
1838,
273,
394,
2989,
1503,
5621,
3639,
26462,
1503,
1791,
273,
394,
26462,
1503,
12,
2704,
1139,
55,
185... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2774,
261,
780,
833,
63,
5717,
1216,
1185,
288,
3639,
2989,
1503,
1838,
273,
394,
2989,
1503,
5621,
3639,
26462,
1503,
1791,
273,
394,
26462,
1503,
12,
2704,
1139,
55,
185... | |
Config.dbTag.set(originMA.toString()); | Config.dbTag.set(dbName); | void initDB() { String juddiHomeDirProperty = System.getProperty("juddi.homeDir", ""); File juddiHomeDir = new File(juddiHomeDirProperty, originMA.toString()); if(!juddiHomeDir.isDirectory()) { if (!juddiHomeDir.mkdirs()) { logger.fatal("Unable to access jUDDI home directory " + juddiHomeDir.getAbsolutePath()); return; } } File confDir = new File(juddiHomeDir, "conf"); if(!confDir.isDirectory()) { if (!confDir.mkdirs()) { logger.fatal("Unable to access jUDDI configuration directory " + confDir.getAbsolutePath()); return; } } copyFiles("conf", confDir.toString()); Config.dbTag.set(originMA.toString()); if (logger.isDebugEnabled()) { // verify that we agree with juddi on home and config directories logger.debug(originMA.toString() + ": juddi home = " + Config.getHomeDir() + " YPServer thinks juddi home = " + juddiHomeDir); logger.debug(originMA.toString() + ": juddi config = " + Config.getConfigDir() + " YPServer thinks juddi config = " + confDir); } dbDirectory = new File(Config.getHomeDir(), "hsql"); dbDirectory.mkdirs(); synchronized (databaseLocker) { if (databaseEnvelope!=null) { // rehydrate! try { databaseEnvelope.dumpPayload(dbDirectory); snapshotDatabase(); // re-snapshot to avoid keeping a big array around // Note that this call re-syncs on databaseLocker // but we don't want a gap. return; // done - all is well } catch (IOException ioe) { logger.error("Unrecoverable database snapshot "+dbDirectory, ioe); } } // no successful recovery, so we'll have to start over org.juddi.datastore.jdbc.HSQLDataStoreFactory.getURL(); copyFiles("hsql", dbDirectory.getPath()); snapshotDatabase(); // take a snapshot immediately } //hack(); } | 6378 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6378/3308560229777ec650839df6d3bc748d57c56f00/YPServer.java/buggy/yp/src/org/cougaar/yp/YPServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1208,
2290,
1435,
288,
565,
514,
525,
20567,
77,
8684,
1621,
1396,
225,
273,
2332,
18,
588,
1396,
2932,
78,
20567,
77,
18,
8712,
1621,
3113,
1408,
1769,
5411,
1387,
525,
20567,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1208,
2290,
1435,
288,
565,
514,
525,
20567,
77,
8684,
1621,
1396,
225,
273,
2332,
18,
588,
1396,
2932,
78,
20567,
77,
18,
8712,
1621,
3113,
1408,
1769,
5411,
1387,
525,
20567,
77,
... |
public RaiseException newNoMethodError(String message) { return newRaiseException(getClass("NoMethodError"), message); | public RaiseException newNoMethodError(String message, String name) { return new RaiseException(new RubyNameError(this, this.getClass("NoMethodError"), message, name), true); | public RaiseException newNoMethodError(String message) { return newRaiseException(getClass("NoMethodError"), message); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/1278c5bb3507a052d150d814f15453542ae41aed/Ruby.java/buggy/src/org/jruby/Ruby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
20539,
503,
394,
2279,
1305,
668,
12,
780,
883,
13,
288,
377,
202,
2463,
394,
30570,
503,
12,
588,
797,
2932,
2279,
1305,
668,
6,
3631,
883,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20539,
503,
394,
2279,
1305,
668,
12,
780,
883,
13,
288,
377,
202,
2463,
394,
30570,
503,
12,
588,
797,
2932,
2279,
1305,
668,
6,
3631,
883,
1769,
565,
289,
2,
-100,
-100,
-100,
... |
return; | return; | private IProgressMonitorWithBlocking getBlockingProgressMonitor() { return new IProgressMonitorWithBlocking() { /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#beginTask(java.lang.String, * int) */ public void beginTask(String name, int totalWork) { final String finalName = name; final int finalWork = totalWork; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { getProgressMonitor().beginTask(finalName, finalWork); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#clearBlocked() */ public void clearBlocked() { runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { ((IProgressMonitorWithBlocking) getProgressMonitor()) .clearBlocked(); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#done() */ public void done() { runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { getProgressMonitor().done(); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#internalWorked(double) */ public void internalWorked(double work) { final double finalWork = work; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { getProgressMonitor().internalWorked(finalWork); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#isCanceled() */ public boolean isCanceled() { return getProgressMonitor().isCanceled(); } /** * Run the runnable as an asyncExec if we are already open. * * @param runnable */ private void runAsync(final Runnable runnable) { if (alreadyClosed) { return; } Shell currentShell = getShell(); Display display; if (currentShell == null) { display = Display.getDefault(); } else { if(currentShell.isDisposed())//Don't bother if it has been closed return; display = currentShell.getDisplay(); } display.asyncExec(new Runnable(){ /* (non-Javadoc) * @see java.lang.Runnable#run() */ public void run() { if (alreadyClosed) { return;//Check again as the async may come too late } Shell shell = getShell(); if(shell != null && shell.isDisposed()) return; runnable.run(); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#setBlocked(org.eclipse.core.runtime.IStatus) */ public void setBlocked(IStatus reason) { final IStatus finalReason = reason; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { ((IProgressMonitorWithBlocking) getProgressMonitor()) .setBlocked(finalReason); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#setCanceled(boolean) */ public void setCanceled(boolean value) { // Just a listener - doesn't matter. } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#setTaskName(java.lang.String) */ public void setTaskName(String name) { final String finalName = name; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { getProgressMonitor().setTaskName(finalName); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#subTask(java.lang.String) */ public void subTask(String name) { final String finalName = name; runAsync(new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { getProgressMonitor().subTask(finalName); } }); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.IProgressMonitor#worked(int) */ public void worked(int work) { internalWorked(work); } }; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/35d15f71cf899f7392f14dee1944aa390f1a1388/ProgressMonitorFocusJobDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorFocusJobDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
5491,
7187,
1190,
8728,
336,
8728,
5491,
7187,
1435,
288,
202,
202,
2463,
394,
467,
5491,
7187,
1190,
8728,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
5491,
7187,
1190,
8728,
336,
8728,
5491,
7187,
1435,
288,
202,
202,
2463,
394,
467,
5491,
7187,
1190,
8728,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
1... |
public void initDrawAttributes(GraphStructure graphStruct, Rectangle bounds) { (graphStruct.getAttributes()).put(this, this.attributes); GraphConstants.setAutoSize(this.attributes, true); GraphConstants.setVerticalTextPosition(this.attributes, JLabel.CENTER); GraphConstants.setBounds(this.attributes, bounds); try { ImageIcon icon = ImageLoader.getImageIcon("filter.GIF"); GraphConstants.setIcon(this.attributes, icon); } catch (Exception ex) { ex.printStackTrace(); } this.port = new DefaultPort(); this.add(this.port); // graphStruct.getCells().add(this); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/9574bffa88473a3796b28f590b1c66b1a1a61c01/GEPhasedFilter.java/buggy/streams/src/streamit/eclipse/grapheditor/graph/GEPhasedFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
6493,
2498,
12,
4137,
6999,
2667,
3823,
16,
13264,
4972,
13,
202,
95,
202,
202,
12,
4660,
3823,
18,
588,
2498,
1435,
2934,
458,
12,
2211,
16,
333,
18,
4350,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
6493,
2498,
12,
4137,
6999,
2667,
3823,
16,
13264,
4972,
13,
202,
95,
202,
202,
12,
4660,
3823,
18,
588,
2498,
1435,
2934,
458,
12,
2211,
16,
333,
18,
4350,
1769,
... | ||
setupLex(Parser.JAVADOCTAGMARK); setupLex(Parser.JAVADOCTOKEN, "mock"); | setupLex(Parser.JAVADOCTAG, "@mock"); | public void testMultipleJavaDocTags() throws Exception { // setup values setupLex(Parser.JAVADOCSTART); setupLex(Parser.JAVADOCNEWLINE); setupLex(Parser.JAVADOCTAGMARK); setupLex(Parser.JAVADOCTOKEN, "This"); setupLex(Parser.JAVADOCTOKEN, "is"); setupLex(Parser.JAVADOCTOKEN, "great!"); setupLex(Parser.JAVADOCNEWLINE); setupLex(Parser.JAVADOCTAGMARK); setupLex(Parser.JAVADOCTOKEN, "mock"); setupLex(Parser.JAVADOCTOKEN, "generate"); setupLex(Parser.JAVADOCNEWLINE); setupLex(Parser.JAVADOCEND); setupLex(0); // expectations builder.addExpectedAddJavaDocValues(""); builder.addExpectedAddJavaDocTagValues("This", "is great!"); builder.addExpectedAddJavaDocTagValues("mock", "generate"); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); } | 2045 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2045/145f451ef926e63f0552aa1026ac26bce61857e0/ParserTest.java/buggy/qdox/src/test/com/thoughtworks/qdox/parser/ParserTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8438,
5852,
1759,
3453,
1435,
1216,
1185,
288,
3639,
368,
3875,
924,
3639,
3875,
14756,
12,
2678,
18,
46,
5856,
1880,
10809,
7570,
1769,
3639,
3875,
14756,
12,
2678,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8438,
5852,
1759,
3453,
1435,
1216,
1185,
288,
3639,
368,
3875,
924,
3639,
3875,
14756,
12,
2678,
18,
46,
5856,
1880,
10809,
7570,
1769,
3639,
3875,
14756,
12,
2678,
18,
... |
private void sqlInsertMenu( TextDocumentDomainObject textDocument, int menuIndex, MenuDomainObject menu ) { | private void sqlInsertMenu(TextDocumentDomainObject textDocument, int menuIndex, MenuDomainObject menu) { | private void sqlInsertMenu( TextDocumentDomainObject textDocument, int menuIndex, MenuDomainObject menu ) { String sqlInsertMenu = "INSERT INTO menus (meta_id, menu_index, sort_order) VALUES(?,?,?) SELECT @@IDENTITY"; String menuIdString = service.sqlQueryStr( sqlInsertMenu, new String[]{ "" + textDocument.getId(), "" + menuIndex, "" + menu.getSortOrder() } ); int menuId = Integer.parseInt( menuIdString ); menu.setId( menuId ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/426e02922134692191843388e801681038ccfaaa/DocumentStoringVisitor.java/clean/server/src/imcode/server/document/DocumentStoringVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1847,
4600,
4599,
12,
3867,
2519,
3748,
921,
977,
2519,
16,
509,
3824,
1016,
16,
27573,
9809,
3748,
921,
3824,
262,
288,
3639,
514,
1847,
4600,
4599,
273,
315,
11356,
12421,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1847,
4600,
4599,
12,
3867,
2519,
3748,
921,
977,
2519,
16,
509,
3824,
1016,
16,
27573,
9809,
3748,
921,
3824,
262,
288,
3639,
514,
1847,
4600,
4599,
273,
315,
11356,
12421,
21... |
public static RubyHash unmarshalFrom(UnmarshalStream input) throws java.io.IOException { | public static RubyHash unmarshalFrom(UnmarshalStream input) throws IOException { | public static RubyHash unmarshalFrom(UnmarshalStream input) throws java.io.IOException { RubyHash result = newHash(input.getRuntime()); input.registerLinkTarget(result); int size = input.unmarshalInt(); for (int i = 0; i < size; i++) { IRubyObject key = input.unmarshalObject(); IRubyObject value = input.unmarshalObject(); result.aset(key, value); } return result; } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/d70012034b8795a6917f9e3b903281a59f12d372/RubyHash.java/buggy/src/org/jruby/RubyHash.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
2310,
11401,
1265,
12,
9593,
1228,
810,
13,
1216,
1860,
288,
3639,
19817,
2310,
563,
273,
394,
2310,
12,
2630,
18,
588,
5576,
10663,
3639,
810,
18,
4861,
2098,
2326,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2310,
11401,
1265,
12,
9593,
1228,
810,
13,
1216,
1860,
288,
3639,
19817,
2310,
563,
273,
394,
2310,
12,
2630,
18,
588,
5576,
10663,
3639,
810,
18,
4861,
2098,
2326,
12,... |
Map parameters = new HashMap(); | mojo.setOutputDirectory( outputDirectory.getAbsolutePath() ); | public void testModelloJPoxMojo() throws Exception { ModelloCore modelloCore = (ModelloCore) lookup( ModelloCore.ROLE ); ModelloJPoxJdoMappingMojo mojo = new ModelloJPoxJdoMappingMojo(); File outputDirectory = getTestFile( "target/jpox-jdo-mapping-test" ); if ( outputDirectory.exists() ) { FileUtils.deleteDirectory( outputDirectory ); } assertTrue( outputDirectory.mkdirs() ); // ---------------------------------------------------------------------- // Call the mojo // ---------------------------------------------------------------------- Map parameters = new HashMap(); parameters.put( "outputDirectory", outputDirectory.getAbsolutePath() ); parameters.put( "model", getTestPath( "src/test/resources/jpox-model.mdo" ) ); parameters.put( "version", "1.0.0" ); parameters.put( "packageWithVersion", Boolean.FALSE.toString() ); parameters.put( "modelloCore", modelloCore ); PluginExecutionRequest request = new PluginExecutionRequest( parameters ); PluginExecutionResponse response = new PluginExecutionResponse(); mojo.execute( request, response ); // ---------------------------------------------------------------------- // Assert // ---------------------------------------------------------------------- File configuration = new File( outputDirectory, "META-INF/package.jdo" ); assertTrue( "Could not read the jpox configuration.", configuration.canRead() ); } | 47828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47828/f3a18a3eac35f7a4bd902ca51b3d1dc5fb722c2a/ModelloJPoxJdoMappingMojoTest.java/clean/modello-maven-plugin/src/test/java/org/codehaus/modello/ModelloJPoxJdoMappingMojoTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1488,
383,
29532,
2409,
49,
10007,
1435,
3639,
1216,
1185,
565,
288,
3639,
3164,
383,
4670,
938,
383,
4670,
273,
261,
1488,
383,
4670,
13,
3689,
12,
3164,
383,
4670,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1488,
383,
29532,
2409,
49,
10007,
1435,
3639,
1216,
1185,
565,
288,
3639,
3164,
383,
4670,
938,
383,
4670,
273,
261,
1488,
383,
4670,
13,
3689,
12,
3164,
383,
4670,
18,
... |
public CallableStatement fireCallableOperation(Operation op, | public CallableStatement fireCallableOperation(Operation op, | public CallableStatement fireCallableOperation(Operation op, DataContainer source, List variables) { Element el = Element.parse(op.getSQL()); StringBuffer sql = new StringBuffer("{"); List leafs = el.getLeafElements(); for (int i = 0; i < leafs.size(); i++) { Element leaf = (Element) leafs.get(i); if (leaf.isBindVar()) { // we need the substring call to get rid of the leading ":" variables.add(((Identifier) leaf).toString().substring(1)); sql.append("?"); if (i == 0) { sql.append(" = call "); i++; } } else { if (i == 0) { sql.append("call "); } sql.append(" " + leaf + " "); } } sql.append("}"); String sqlString = sql.toString(); com.arsdigita.db.CallableStatement cs; // This will only work correctly if conn is really of type // com.arsdigita.db.Connection. try { cs = (com.arsdigita.db.CallableStatement)getConnection() .prepareCall(sqlString); } catch (SQLException e) { throw PersistenceException.newInstance(e); } catch (ClassCastException e) { throw PersistenceException.newInstance(e); } // this close after use will be automatically set to false if any // out params are registered, since we can't know when // to close if there are out parameters. cs.setCloseAfterUse(true); try { for (int i = 0; i < variables.size(); i++) { String variable = (String) variables.get(i); cs.registerOutParameter(i + 1, op.getBindType(variable)); Object value = source.lookupValue(new String[] {variable}); if (value != null) { // the next IF statement allows us to allow users // to pass in java.util.Date instead of having to // pass in java.sql.Date (and loose the seconds) or // the java.sql.Timestamp if (value instanceof java.util.Date) { value = new java.sql.Timestamp (((java.util.Date)value).getTime()); } cs.setObject(i + 1, value); } } } catch (Exception e) { throw PersistenceException.newInstance ("Error preparing CallableStatement: " + Utilities.LINE_BREAK + sql.toString() + Utilities.LINE_BREAK + "Variables: " + variables, e); } if ((!el.isSelect() || el.isSelectForUpdate()) && !el.isDDL()) { cs.setNeedsAutoCommitOff(true); } else { cs.setNeedsAutoCommitOff(false); } try { cs.execute(); return cs; } catch (SQLException e) { throw PersistenceException.newInstance ("Error executing SQL: " + Utilities.LINE_BREAK + sqlString, e); } } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/558097820abc0198518796cedde797658cda9a5e/DataStore.java/buggy/archive/core-platform/src/com/arsdigita/persistence/DataStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10464,
3406,
4452,
11452,
2988,
12,
2988,
1061,
16,
4766,
10792,
1910,
2170,
1084,
16,
4766,
10402,
987,
3152,
13,
288,
3639,
3010,
415,
273,
3010,
18,
2670,
12,
556,
18,
588,
3997,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10464,
3406,
4452,
11452,
2988,
12,
2988,
1061,
16,
4766,
10792,
1910,
2170,
1084,
16,
4766,
10402,
987,
3152,
13,
288,
3639,
3010,
415,
273,
3010,
18,
2670,
12,
556,
18,
588,
3997,... |
} | } | private void initTable() //ok -- !!ima za dovyr6wane - skrivane na koloni!! { try { countriesT.setFlag(flag_pm); rs = countriesT.getTable(); //columnsNames = null; model = new imakante.com.CustomTableModel(conn,rs, columnsNames); table = new imakante.com.CustomTable(model); } catch(Exception e) { e.printStackTrace(); } table.requestFocus(); try { table.setEditingRow(0); } catch(Exception ex) { } // HideColumns(getColumnIndex("id_pm")); HideColumns(getColumnIndex("id_pp")); HideColumns(getColumnIndex("id_ppp")); HideColumns(getColumnIndex("id_pd")); HideColumns(getColumnIndex("id_pf")); HideColumns(getColumnIndex("m1_pd")); HideColumns(getColumnIndex("m2_pd")); HideColumns(getColumnIndex("m3_pd")); HideColumns(getColumnIndex("v1_pd")); HideColumns(getColumnIndex("v2_pd")); HideColumns(getColumnIndex("v3_pd")); HideColumns(getColumnIndex("flag_pm")); HideColumns(getColumnIndex("id_sl_curs")); HideColumns(getColumnIndex("id_n_group")); } | 12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/7faacb2f15fd2a7082ec1a40f155d879f6a11b69/FrmProduct.java/buggy/src/nom/FrmProduct.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
1208,
1388,
1435,
368,
601,
225,
1493,
401,
5,
13888,
25001,
741,
29139,
86,
26,
91,
8806,
300,
4343,
86,
427,
8806,
9583,
417,
355,
265,
77,
8548,
565,
288,
1377,
775,
3639,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
1208,
1388,
1435,
368,
601,
225,
1493,
401,
5,
13888,
25001,
741,
29139,
86,
26,
91,
8806,
300,
4343,
86,
427,
8806,
9583,
417,
355,
265,
77,
8548,
565,
288,
1377,
775,
3639,
288,... |
{ int sql_type = getField(column).getSQLType(); switch (sql_type) { case Types.SMALLINT: return 0; case Types.INTEGER: return 0; case Types.REAL: return 8; case Types.FLOAT: return 16; case Types.DOUBLE: return 16; default: throw new SQLException("no scale for non-numeric data types"); } } | { int sql_type = getField(column).getSQLType(); switch (sql_type) { case Types.SMALLINT: return 0; case Types.INTEGER: return 0; case Types.REAL: return 8; case Types.FLOAT: return 16; case Types.DOUBLE: return 16; default: throw new SQLException("no scale for non-numeric data types"); } } | public int getScale(int column) throws SQLException { int sql_type = getField(column).getSQLType(); switch (sql_type) { case Types.SMALLINT: return 0; case Types.INTEGER: return 0; case Types.REAL: return 8; case Types.FLOAT: return 16; case Types.DOUBLE: return 16; default: throw new SQLException("no scale for non-numeric data types"); } } | 49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSetMetaData.java/buggy/src/interfaces/jdbc/postgresql/ResultSetMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
1322,
1869,
12,
474,
1057,
13,
1216,
6483,
202,
95,
202,
202,
474,
1847,
67,
723,
273,
5031,
12,
2827,
2934,
588,
3997,
559,
5621,
202,
202,
9610,
261,
4669,
67,
723,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
1322,
1869,
12,
474,
1057,
13,
1216,
6483,
202,
95,
202,
202,
474,
1847,
67,
723,
273,
5031,
12,
2827,
2934,
588,
3997,
559,
5621,
202,
202,
9610,
261,
4669,
67,
723,
1... |
return contentType; } | return contentType; } | public String getContentType() { return contentType; } | 47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/c94b7421a32b1583fb8dd65d3de21fd43b09dc90/WebClient.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
514,
17470,
1435,
288,
7734,
327,
5064,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
514,
17470,
1435,
288,
7734,
327,
5064,
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... |
} else if (fValue > b.fValue) { | } else if (value > b.value) { | public int compareTo(Double b) { if (fValue < b.fValue) { return -1; } else if (fValue > b.fValue) { return 1; } else { return 0; } } | 25979 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25979/3df67a1be8e33d1ba411241de9fc6873bac67590/Double.java/buggy/user/super/com/google/gwt/emul/java/lang/Double.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
9292,
12,
5265,
324,
13,
288,
565,
309,
261,
74,
620,
411,
324,
18,
74,
620,
13,
288,
1377,
327,
300,
21,
31,
565,
289,
469,
309,
261,
1132,
405,
324,
18,
1132,
13,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
9292,
12,
5265,
324,
13,
288,
565,
309,
261,
74,
620,
411,
324,
18,
74,
620,
13,
288,
1377,
327,
300,
21,
31,
565,
289,
469,
309,
261,
1132,
405,
324,
18,
1132,
13,
288,
... |
final String contentVariableName; final String finalString; final PsiStatement statementToSkip; | private String createCollectionIterationText(PsiForStatement forStatement, Project project) throws IncorrectOperationException{ final int length = forStatement.getText().length(); final StringBuffer out = new StringBuffer(length); final PsiStatement body = forStatement.getBody(); final PsiStatement firstStatement = getFirstStatement(body); final String contentVariableName; final String finalString; final PsiStatement statementToSkip; final PsiStatement initialization = forStatement.getInitialization(); final PsiDeclarationStatement declaration = (PsiDeclarationStatement) initialization; final PsiLocalVariable iterator = (PsiLocalVariable) declaration.getDeclaredElements()[0]; final PsiMethodCallExpression initializer = (PsiMethodCallExpression) iterator.getInitializer(); final PsiExpression collection = initializer.getMethodExpression() .getQualifierExpression(); final PsiClassType type = (PsiClassType) collection.getType(); final PsiType[] parameters = type.getParameters(); final String contentTypeString; if(parameters.length == 1){ final PsiType parameterType = parameters[0]; if(parameterType instanceof PsiWildcardType){ final PsiWildcardType wildcardType = (PsiWildcardType) parameterType; final PsiType bound = wildcardType.getExtendsBound(); contentTypeString = bound.getCanonicalText(); } else{ contentTypeString = parameterType.getCanonicalText(); } } else{ contentTypeString = "java.lang.Object"; } final PsiManager psiManager = PsiManager.getInstance(project); final PsiElementFactory elementFactory = psiManager.getElementFactory(); final PsiType contentType = elementFactory.createTypeFromText(contentTypeString, forStatement); final String iteratorName = iterator.getName(); final boolean isDeclaration = isIteratorNextDeclaration(firstStatement, iteratorName, contentTypeString); if(isDeclaration){ final PsiDeclarationStatement decl = (PsiDeclarationStatement) firstStatement; assert decl != null; final PsiElement[] declaredElements = decl.getDeclaredElements(); final PsiLocalVariable localVar = (PsiLocalVariable) declaredElements[0]; contentVariableName = localVar.getName(); statementToSkip = decl; if(localVar.hasModifierProperty(PsiModifier.FINAL)){ finalString = "final "; } else{ finalString = ""; } } else{ if(collection instanceof PsiReferenceExpression){ final String collectionName = ((PsiReferenceExpression) collection).getReferenceName(); contentVariableName = createNewVarName(project, forStatement, contentType, collectionName); } else{ contentVariableName = createNewVarName(project, forStatement, contentType, null); } if(CodeStyleSettingsManager.getSettings(project).GENERATE_FINAL_LOCALS){ finalString = "final "; } else{ finalString = ""; } statementToSkip = null; } out.append("for(" + finalString + contentTypeString + ' ' + contentVariableName + ": " + collection.getText() + ')'); replaceIteratorNext(body, contentVariableName, iteratorName, statementToSkip, out, contentTypeString); return out.toString(); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/fca4a2a7b3bb9b4ae2848f026d06eb262318948d/ForCanBeForeachInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/ForCanBeForeachInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
514,
752,
2532,
10795,
1528,
12,
52,
7722,
1290,
3406,
364,
3406,
16,
4766,
5397,
5420,
1984,
13,
7734,
1216,
657,
6746,
10602,
95,
5411,
727,
509,
769,
273,
364,
3406,
18,
588,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
514,
752,
2532,
10795,
1528,
12,
52,
7722,
1290,
3406,
364,
3406,
16,
4766,
5397,
5420,
1984,
13,
7734,
1216,
657,
6746,
10602,
95,
5411,
727,
509,
769,
273,
364,
3406,
18,
588,
1... | |
ttp.getProxyTreeFactory().setProxyFactory(new ProxyFactory()); | ttp.getProxyTreeFactory().setProxyFactory(new PrintFactory()); | public void testTreeProxy() { LoadableScene ls = new Icosahedra(); SceneProxyTreeBuilder ttp = new SceneProxyTreeBuilder(ls.makeWorld()); ttp.setProxyTreeFactory(new ProxyTreeFactory()); ttp.getProxyTreeFactory().setProxyFactory(new ProxyFactory()); ttp.setProxyConnector(new ProxyConnector()); SceneTreeNode tn = ttp.createProxyTree(); new TreeDumper().dumpTree(tn); System.out.println("++++++++++++++++++++++"); } | 25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/0521bc6724dfd837547f8c3554b06cb098cd25f2/TreeProxyTest.java/buggy/test/de/jreality/scene/proxy/tree/TreeProxyTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
2471,
3886,
1435,
288,
565,
4444,
429,
14370,
7180,
273,
394,
467,
14445,
9795,
329,
354,
5621,
565,
29347,
3886,
25060,
3574,
84,
273,
394,
29347,
3886,
25060,
12,
3251,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
2471,
3886,
1435,
288,
565,
4444,
429,
14370,
7180,
273,
394,
467,
14445,
9795,
329,
354,
5621,
565,
29347,
3886,
25060,
3574,
84,
273,
394,
29347,
3886,
25060,
12,
3251,
... |
public org.quickfix.field.EncodedLegIssuer getEncodedLegIssuer() throws FieldNotFound { org.quickfix.field.EncodedLegIssuer value = new org.quickfix.field.EncodedLegIssuer(); | public quickfix.field.EncodedLegIssuer getEncodedLegIssuer() throws FieldNotFound { quickfix.field.EncodedLegIssuer value = new quickfix.field.EncodedLegIssuer(); | public org.quickfix.field.EncodedLegIssuer getEncodedLegIssuer() throws FieldNotFound { org.quickfix.field.EncodedLegIssuer value = new org.quickfix.field.EncodedLegIssuer(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MultilegOrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix43/MultilegOrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
8329,
16667,
28799,
8329,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
8329,
16667,
460,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
8329,
16667,
28799,
8329,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
8329,
16667,
460,
273,
394,
... |
if (x != readByte()) throw new StreamCorruptedException(); | if (x != readByte()) throw new StreamCorruptedException("Not a GIF!"); | public final void checkByte(int x) throws IOException { if (x != readByte()) throw new StreamCorruptedException(); } | 1353 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1353/e64ad4e0c3f911bed234fefe9a9a2589beae4c33/GIFInputStream.java/clean/src/haui/gif/GIFInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
866,
3216,
12,
474,
619,
13,
1216,
1860,
288,
565,
309,
261,
92,
480,
22301,
10756,
604,
394,
3961,
22701,
329,
503,
2932,
1248,
279,
31978,
4442,
1769,
225,
289,
2,
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,
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,
727,
918,
866,
3216,
12,
474,
619,
13,
1216,
1860,
288,
565,
309,
261,
92,
480,
22301,
10756,
604,
394,
3961,
22701,
329,
503,
2932,
1248,
279,
31978,
4442,
1769,
225,
289,
2,
-10... |
276, 277, 278, -1, | 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 126, 346, 347, 348, 349, 350, 351, 33, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, 336, 41, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, | private static final short[] yyCheck3() { return new short[] { -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, 333, 334, -1, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, 93, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, 93, 94, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, 44, 45, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, 326, 62, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, 44, 45, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 124, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 38, -1, 338, 41, -1, -1, 44, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 37, 38, -1, 93, 94, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, 60, 41, 62, 63, 44, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, -1, 44, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 124, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, 94, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, 60, -1, 62, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 318, 319, 320, 321, 322, 323, 324, 93, 94, 327, 328, -1, -1, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 125, -1, -1, -1, -1, -1, 281, 282, -1, 94, -1, 96, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 0, 293, 294, 295, 296, 297, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 41, -1, -1, 44, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, 58, 59, 60, -1, 62, 63, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 0, 293, 294, 295, 296, 297, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 41, -1, -1, 44, -1, 338, -1, 125, -1, -1, 343, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, 0, -1, 327, -1, -1, -1, 331, 332, 333, 334, 10, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, 41, -1, -1, 44, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, -1, -1, 93, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 125, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, -1, -1, -1, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 93, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, 125, -1, 41, -1, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, 41, -1, -1, 44, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, 0, -1, -1, -1, -1, -1, -1, 58, 59, -1, 10, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 41, 93, -1, 44, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 58, 59, -1, 10, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 125, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, 41, 93, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 93, -1, -1, 58, 59, -1, -1, -1, 63, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 325, 326, -1, -1, 329, 330, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 125, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 0, -1, 262, 263, 264, -1, -1, 267, 268, 269, 10, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 0, -1, 338, 41, -1, -1, 44, 343, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 338, 41, -1, -1, 44, 343, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 41, -1, -1, 44, -1, -1, -1, 125, 10, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 41, -1, -1, 44, -1, -1, 125, 10, -1, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 41, -1, -1, 44, -1, -1, -1, 125, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 125, -1, 281, 282, -1, -1, -1, 93, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 262, 263, 264, 343, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 0, 343, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 0, -1, -1, 343, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 41, 343, -1, 44, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 93, 58, 59, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 125, -1, -1, 41, 93, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 125, -1, -1, 41, -1, -1, 44, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, 125, -1, -1, -1, 93, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, 125, -1, -1, 10, 93, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 41, -1, 125, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, 93, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, -1, -1, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, 41, -1, -1, 44, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, 93, 58, 59, 338, -1, -1, -1, -1, 343, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, 94, -1, 125, -1, -1, -1, 93, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, -1, -1, -1, -1, -1, -1, -1, 125, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 0, 91, -1, -1, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 91, -1, -1, 94, 290, 291, -1, 293, 294, 295, 296, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 125, -1, -1, -1, -1, -1, -1, -1, 281, 282, 124, 125, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, -1, -1, -1, -1, 333, 334, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 343, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 290, 291, 281, 293, 294, 295, 296, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 37, 38, 338, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, 0, 47, -1, -1, -1, -1, 91, -1, -1, 94, 10, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 124, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 91, -1, 0, 94, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, 41, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 91, -1, -1, 94, 10, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, 124, 125, 41, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 125, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 0, -1, 338, 93, -1, -1, -1, -1, -1, -1, 10, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 318, 319, 320, 321, 322, 323, 324, 325, -1, 327, 328, -1, -1, -1, 125, 333, 334, -1, 290, 291, 41, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 337, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 290, 291, -1, 293, 294, 295, 296, 297, 281, 0, 125, -1, -1, -1, -1, -1, -1, 290, 291, 10, 293, 294, 295, 296, 297, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 59, 60, 61, 62, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 0, -1, 290, 291, -1, 293, 294, 295, 296, 297, 10, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, 91, 290, 291, 94, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 124, 125, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 336, -1, -1, 339, 340, 341, 342, -1, 126, -1, 346, 347, 348, 349, 350, 351, 33, -1, 290, 291, 356, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 256, 257, 258, 259, 260, 261, 59, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, }; } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
1728,
16,
282,
300,
21,
16,
225,
890,
8942,
16,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
1728,
16,
282,
300,
21,
16,
225,
890,
8942,
16,
282,
... |
method.addParameter(new JParameter(JType.Int, "index")); | method.addParameter(new JParameter(JType.INT, "index")); | protected void createInsertMethod(JClass jClass) { JMethod method = new JMethod(null, this.getWriteMethodName()); method.addException(SGTypes.IndexOutOfBoundsException); method.addParameter(new JParameter(JType.Int, "index")); final JParameter parameter = new JParameter(this.getContentType().getJType(), this.getContentName()); method.addParameter(parameter); JSourceCode sourceCode = method.getSourceCode(); this.addMaxSizeCheck(method.getName(), sourceCode); sourceCode.add("this."); sourceCode.append(this.getName()); sourceCode.append(".add(index, "); sourceCode.append(this.getContentType().createToJavaObjectCode(parameter.getName())); sourceCode.append(");"); if (this.isBound()) { this.createBoundPropertyCode(sourceCode); } jClass.addMethod(method); } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/34c708e3c0e8dd4b42534f5834f9a280e0c9968b/CollectionInfo.java/clean/castor/trunk/src/main/java/org/exolab/castor/builder/CollectionInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
4600,
1305,
12,
46,
797,
525,
797,
13,
288,
3639,
804,
1305,
707,
273,
394,
804,
1305,
12,
2011,
16,
333,
18,
588,
3067,
11666,
10663,
3639,
707,
18,
1289,
503,
12,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
4600,
1305,
12,
46,
797,
525,
797,
13,
288,
3639,
804,
1305,
707,
273,
394,
804,
1305,
12,
2011,
16,
333,
18,
588,
3067,
11666,
10663,
3639,
707,
18,
1289,
503,
12,
30... |
public boolean canContain( DesignElement content ) | public boolean canContain( IElementDefn type ) | public boolean canContain( DesignElement content ) { return canContain( content.getDefn( ) ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/99be7a628d41e2d0a01f81aba61ded46fe3c43a0/SlotDefn.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/SlotDefn.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
848,
22928,
12,
29703,
1046,
913,
262,
202,
95,
202,
202,
2463,
848,
22928,
12,
913,
18,
588,
3262,
82,
12,
262,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
848,
22928,
12,
29703,
1046,
913,
262,
202,
95,
202,
202,
2463,
848,
22928,
12,
913,
18,
588,
3262,
82,
12,
262,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
throw getRuntime().newTypeError(name + " is not a module."); } | throw getRuntime().newTypeError(name + " is not a module."); } | public RubyModule defineModuleUnder(String name) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyModule) setConstant(name, getRuntime().defineModuleUnder(name, cref)); } if (!(type instanceof RubyModule)) { throw getRuntime().newTypeError(name + " is not a module."); } return (RubyModule) type; } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4426,
3120,
14655,
12,
780,
508,
13,
288,
3639,
15908,
10340,
921,
618,
273,
24337,
861,
12,
529,
1769,
7734,
309,
261,
723,
422,
446,
13,
288,
5411,
327,
261,
54,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4426,
3120,
14655,
12,
780,
508,
13,
288,
3639,
15908,
10340,
921,
618,
273,
24337,
861,
12,
529,
1769,
7734,
309,
261,
723,
422,
446,
13,
288,
5411,
327,
261,
54,
10... |
{ return PG_USER; } | { return PG_USER; } | public String getUserName() throws SQLException { return PG_USER; } | 45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/e25c93c7eb4a9a1a50b771cc33448b9d3519f403/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
30456,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
22116,
67,
4714,
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,... | [
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
30456,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
22116,
67,
4714,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if (useTls) | if (useTls) { | public static URLConnection getUrlConnection(URL url, Proxy proxy, boolean useTls) throws IOException, NoSuchAlgorithmException, KeyManagementException { SSLContext ctx; if (useTls) ctx = SSLContext.getInstance("TLS"); else ctx = SSLContext.getInstance("SSL"); javax.net.ssl.TrustManager[] tm = new javax.net.ssl.TrustManager[] { new RepositoryTrustManager() }; ctx.init(null, tm, null); HttpsURLConnection.setDefaultSSLSocketFactory(ctx.getSocketFactory()); if (proxy == null) { proxy = Proxy.NO_PROXY; } URLConnection connection = url.openConnection(proxy); return connection; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/925c56cd29a486a51cfd56ee2c309ee45ca25183/WebClientUtil.java/buggy/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/WebClientUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1976,
1952,
8928,
1952,
12,
1785,
880,
16,
7659,
2889,
16,
1250,
999,
26115,
13,
1216,
1860,
16,
1082,
202,
28341,
17293,
16,
1929,
10998,
503,
288,
202,
202,
6745,
1042,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1976,
1952,
8928,
1952,
12,
1785,
880,
16,
7659,
2889,
16,
1250,
999,
26115,
13,
1216,
1860,
16,
1082,
202,
28341,
17293,
16,
1929,
10998,
503,
288,
202,
202,
6745,
1042,
... |
if ( fields[columnIndex - 1].getOID() == 26) { LargeObjectManager lom = connection.getLargeObjectAPI(); LargeObject lob = lom.open(getInt(columnIndex)); byte buf[] = lob.read(lob.size()); lob.close(); return buf; } | LargeObjectManager lom = connection.getLargeObjectAPI(); LargeObject lob = lom.open(getInt(columnIndex)); byte buf[] = lob.read(lob.size()); lob.close(); return buf; | public byte[] getBytes(int columnIndex) throws SQLException { if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); //If the data is already binary then just return it if (binaryCursor) return this_row[columnIndex - 1]; if (connection.haveMinimumCompatibleVersion("7.2")) { //Version 7.2 supports the bytea datatype for byte arrays return PGbytea.toBytes(getString(columnIndex)); } else { //Version 7.1 and earlier supports LargeObjects for byte arrays wasNullFlag = (this_row[columnIndex - 1] == null); // Handle OID's as BLOBS if (!wasNullFlag) { if ( fields[columnIndex - 1].getOID() == 26) { LargeObjectManager lom = connection.getLargeObjectAPI(); LargeObject lob = lom.open(getInt(columnIndex)); byte buf[] = lob.read(lob.size()); lob.close(); return buf; } } } return null; } | 46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/512a3aef36591386640f34866c1acbe58c20ca6e/ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
8425,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
8425,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
29... |
void withContext() { | private void withContext() { | void withContext() { dim.contextFactory.call(this); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/2d4fc75b74d717c754829dde488ff0a7456682cc/Dim.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
598,
1042,
1435,
3639,
288,
5411,
2464,
18,
2472,
1733,
18,
1991,
12,
2211,
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,
... | [
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
598,
1042,
1435,
3639,
288,
5411,
2464,
18,
2472,
1733,
18,
1991,
12,
2211,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
} | protected Error[] setClasspath ( IJavaProject _javaProject, IClasspathEntry[] _entries, String _classpath) throws Exception { String classpath = IOUtils.toString(new FileInputStream(_classpath)); List errors = new ArrayList(); for(int ii = 0; ii < _entries.length; ii++){ IJavaModelStatus status = JavaConventions.validateClasspathEntry( _javaProject, _entries[ii], true); if(!status.isOK()){ errors.add(createErrorFromStatus(_classpath, classpath, status)); } } IJavaModelStatus status = JavaConventions.validateClasspath( _javaProject, _entries, _javaProject.getOutputLocation()); if(status.isOK() && errors.isEmpty()){ _javaProject.setRawClasspath(_entries, null); _javaProject.makeConsistent(null); } if(!status.isOK()){ errors.add(createErrorFromStatus(_classpath, classpath, status)); } return (Error[])errors.toArray(new Error[errors.size()]); } | 46034 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46034/3ce07e7efa7590f2c89463924125d6d9e3d3f6a3/ProjectUpdateCommand.java/clean/src/java/org/eclim/command/project/ProjectUpdateCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1068,
8526,
444,
17461,
261,
1377,
467,
5852,
4109,
389,
6290,
4109,
16,
467,
17461,
1622,
8526,
389,
8219,
16,
514,
389,
26302,
13,
565,
1216,
1185,
225,
288,
565,
514,
10006,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1068,
8526,
444,
17461,
261,
1377,
467,
5852,
4109,
389,
6290,
4109,
16,
467,
17461,
1622,
8526,
389,
8219,
16,
514,
389,
26302,
13,
565,
1216,
1185,
225,
288,
565,
514,
10006,
273,... | |
length1 = offset - temp_offset - 2 * increment; | length1 = offset - temp_offset - (increment<<1); | private int process_end_comment()throws ParseException { int length1; while (true) { ch = getChar(); if (XMLChar.isValidChar(ch)) { if (ch == '-' && skipChar('-')) { length1 = offset - temp_offset - 2 * increment; break; } } else throw new ParseException( "Error in comment: Invalid Char" + formatLineNumber()); } if (getChar() == '>') { //System.out.println(" " + temp_offset + " " + length1 // + " comment " + depth); if (encoding < FORMAT_UTF_16BE) writeVTD(temp_offset, length1, TOKEN_COMMENT, depth); else writeVTD(temp_offset >> 1, length1 >> 1, TOKEN_COMMENT, depth); //length1 = 0; return STATE_DOC_END; //break; } throw new ParseException("Error in comment: '-->' expected" + formatLineNumber()); } | 3680 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3680/1f2b80b4cb76c470bdfde885252e2a9cff56206e/VTDGen.java/clean/com/ximpleware/VTDGen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1207,
67,
409,
67,
3469,
1435,
15069,
10616,
288,
202,
202,
474,
769,
21,
31,
202,
202,
17523,
261,
3767,
13,
288,
1082,
202,
343,
273,
23577,
5621,
1082,
202,
430,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1207,
67,
409,
67,
3469,
1435,
15069,
10616,
288,
202,
202,
474,
769,
21,
31,
202,
202,
17523,
261,
3767,
13,
288,
1082,
202,
343,
273,
23577,
5621,
1082,
202,
430,
261,... |
grp.enumerate(ts,false); | AccessController.doPrivileged(new PrivilegedAction() { public Object run() { grp.enumerate(ts,false); return null; } }); | private void addGroup(ThreadGroup grp) { final int max = grp.activeCount() * 2; final Thread[] ts = new Thread[max]; grp.enumerate(ts,false); for (int i = 0; i < max; i++) { final Thread t = ts[i]; if (t != null) { JIFSFile F = new JIFSFthread(t.getName(),t, this); addFSE(F); } } final int gmax = grp.activeGroupCount() * 2; final ThreadGroup[] tgs = new ThreadGroup[gmax]; grp.enumerate(tgs, false); for (int i = 0; i < gmax; i++) { final ThreadGroup tg = tgs[i]; if (tg != null) { addGroup(tg); } } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/77d5336d9baa2efd535e4d83393c0986c025ccf7/JIFSDthreads.java/clean/fs/src/fs/org/jnode/fs/jifs/directories/JIFSDthreads.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
18899,
12,
3830,
1114,
14295,
13,
288,
202,
202,
6385,
509,
943,
273,
14295,
18,
3535,
1380,
1435,
380,
576,
31,
202,
202,
6385,
4884,
8526,
3742,
273,
394,
4884,
63,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
18899,
12,
3830,
1114,
14295,
13,
288,
202,
202,
6385,
509,
943,
273,
14295,
18,
3535,
1380,
1435,
380,
576,
31,
202,
202,
6385,
4884,
8526,
3742,
273,
394,
4884,
63,
18... |
root = getLocalApiDocRoot(className); | root = apiDocRoot; | private String mapApiDocRoot(String className) { String root = null; if (specifiedPackages.isEmpty() || isSpecifiedPackage(className)) root = getLocalApiDocRoot(className); else root = getExternalApiDocRoot(className); if (root == null) root = ""; return root; } | 47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/79a8c001740f08d96264606e9d548d69f12a9fbf/StringUtil.java/buggy/src/gr/spinellis/umlgraph/doclet/StringUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
852,
3064,
1759,
2375,
12,
780,
2658,
13,
288,
202,
202,
780,
1365,
273,
446,
31,
202,
202,
430,
261,
13827,
11425,
18,
291,
1921,
1435,
747,
353,
17068,
2261,
12,
12434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
852,
3064,
1759,
2375,
12,
780,
2658,
13,
288,
202,
202,
780,
1365,
273,
446,
31,
202,
202,
430,
261,
13827,
11425,
18,
291,
1921,
1435,
747,
353,
17068,
2261,
12,
12434... |
if (rsType == -1 && fetch == null) rsType = ResultSet.TYPE_FORWARD_ONLY; else if (rsType == -1) rsType = fetch.getResultSetType(); if (rsConcur == -1) rsConcur = ResultSet.CONCUR_READ_ONLY; PreparedStatement stmnt; if (rsType == ResultSet.TYPE_FORWARD_ONLY && rsConcur == ResultSet.CONCUR_READ_ONLY) stmnt = conn.prepareStatement(getSQL()); else stmnt = conn.prepareStatement(getSQL(), rsType, rsConcur); try { setParameters(stmnt); if (fetch != null) { if (fetch.getFetchBatchSize() > 0) stmnt.setFetchSize(fetch.getFetchBatchSize()); if (rsType != ResultSet.TYPE_FORWARD_ONLY && fetch.getFetchDirection() != ResultSet.FETCH_FORWARD) stmnt.setFetchDirection(fetch.getFetchDirection()); } return stmnt; } catch (SQLException se) { try { stmnt.close(); } catch (SQLException se2) { } throw se; } | return prepareStatement(conn, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); | public PreparedStatement prepareStatement(Connection conn, JDBCFetchConfiguration fetch, int rsType, int rsConcur) throws SQLException { if (rsType == -1 && fetch == null) rsType = ResultSet.TYPE_FORWARD_ONLY; else if (rsType == -1) rsType = fetch.getResultSetType(); if (rsConcur == -1) rsConcur = ResultSet.CONCUR_READ_ONLY; PreparedStatement stmnt; if (rsType == ResultSet.TYPE_FORWARD_ONLY && rsConcur == ResultSet.CONCUR_READ_ONLY) stmnt = conn.prepareStatement(getSQL()); else stmnt = conn.prepareStatement(getSQL(), rsType, rsConcur); try { setParameters(stmnt); if (fetch != null) { if (fetch.getFetchBatchSize() > 0) stmnt.setFetchSize(fetch.getFetchBatchSize()); if (rsType != ResultSet.TYPE_FORWARD_ONLY && fetch.getFetchDirection() != ResultSet.FETCH_FORWARD) stmnt.setFetchDirection(fetch.getFetchDirection()); } return stmnt; } catch (SQLException se) { try { stmnt.close(); } catch (SQLException se2) { } throw se; } } | 47053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47053/fb770599b09eb179ec9b9a9815941290468175e7/SQLBuffer.java/buggy/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16913,
21406,
12,
1952,
1487,
16,
3639,
16364,
5005,
1750,
2158,
16,
509,
3597,
559,
16,
509,
3597,
442,
1397,
13,
3639,
1216,
6483,
288,
3639,
309,
261,
5453,
559,
422,
300,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16913,
21406,
12,
1952,
1487,
16,
3639,
16364,
5005,
1750,
2158,
16,
509,
3597,
559,
16,
509,
3597,
442,
1397,
13,
3639,
1216,
6483,
288,
3639,
309,
261,
5453,
559,
422,
300,
21,
... |
NativeError result = new NativeError(); if (args.length >= 1) result.messageValue = ScriptRuntime.toString(args[0]); result.setPrototype(getClassPrototype(scope, "Error")); return result; | return make(cx, scope, f, args); | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { if (methodId == Id_constructor) { NativeError result = new NativeError(); if (args.length >= 1) result.messageValue = ScriptRuntime.toString(args[0]); result.setPrototype(getClassPrototype(scope, "Error")); return result; } else if (methodId == Id_toString) { return js_toString(thisObj); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/b5a9ce9cefb92cb99beb398d17a1d7320876a0f8/NativeError.java/clean/js/rhino/src/org/mozilla/javascript/NativeError.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... |
return getRuntime().getNil(); | if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx)); } else if (args[0] instanceof RubyRegexp) { return RubyRegexp.regexpValue(args[0]).search(this, 0) >= 0 ? RubyRegexp.last_match(getRuntime().getBackref()) : getRuntime().getNil(); } else if (args[0] instanceof RubyString) { return getValue().indexOf(stringValue(args[0]).getValue()) != -1 ? args[0] : getRuntime().getNil(); } else if (args[0] instanceof RubyRange) { long[] begLen = ((RubyRange) args[0]).getBeginLength(getValue().length(), true, false); return begLen == null ? getRuntime().getNil() : substr((int) begLen[0], (int) begLen[1]); } int idx = (int) RubyNumeric.num2long(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx)); | public IRubyObject aref(IRubyObject[] args) { try { return arefWithErrors(args); } catch (IndexError e) { } catch (RangeError e) { } return getRuntime().getNil(); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/c3988bcedc9973ff7f8c24ac6423ecb89f3ada35/RubyString.java/clean/src/org/jruby/RubyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
854,
74,
12,
7937,
10340,
921,
8526,
833,
13,
288,
202,
565,
775,
288,
202,
3639,
327,
854,
74,
1190,
4229,
12,
1968,
1769,
202,
565,
289,
1044,
261,
1016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
854,
74,
12,
7937,
10340,
921,
8526,
833,
13,
288,
202,
565,
775,
288,
202,
3639,
327,
854,
74,
1190,
4229,
12,
1968,
1769,
202,
565,
289,
1044,
261,
1016,
... |
private static HtmlTag getLastCrumbAsLink(String[] crumbs, String trail) throws Exception | private static HtmlTag getLastCrumbAsLink(String[] crumbs, String trail) throws Exception | private static HtmlTag getLastCrumbAsLink(String[] crumbs, String trail) throws Exception { String crumb = crumbs[crumbs.length - 1]; HtmlTag link = makeLink("/" + trail + crumb, crumb); link.head = HtmlUtil.BR.html(); link.addAttribute("class", "page_title"); return link; } | 6058 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6058/3155676b2f8325f44dd5f6b23a1202cb270efa4a/HtmlUtil.java/buggy/src/fitnesse/html/HtmlUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
27153,
7595,
12893,
3592,
1463,
2098,
12,
780,
8526,
4422,
10099,
16,
514,
15569,
13,
202,
225,
1216,
1185,
202,
95,
202,
202,
780,
28044,
273,
4422,
10099,
63,
3353,
1009... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
27153,
7595,
12893,
3592,
1463,
2098,
12,
780,
8526,
4422,
10099,
16,
514,
15569,
13,
202,
225,
1216,
1185,
202,
95,
202,
202,
780,
28044,
273,
4422,
10099,
63,
3353,
1009... |
for (int i = 0; i < theFrames.length; i++) { if (theFrames[i] instanceof RuleEditor) { ((RuleEditor)theFrames[i]).recolorSyntax(); } | JInternalFrame[] theFrames = DesktopPane.getAllFrames(); | public void actionPerformed(ActionEvent e) { PreferencesDialog theDialog = new PreferencesDialog(MainFrame.getMainFrame()); theDialog.setVisible(true); //to realize the change immediately... takes too long /* if (theDialog.wasApproved()) { // make the change realized... JInternalFrame[] theFrames = DesktopPane.getAllFrames(); for (int i = 0; i < theFrames.length; i++) { if (theFrames[i] instanceof RuleEditor) { ((RuleEditor)theFrames[i]).recolorSyntax(); } } }*/ } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/b614d4abef68545f39b6afc1e8521d6ccc484b8e/MainFrame.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1082,
202,
12377,
6353,
202,
5787,
6353,
273,
394,
28310,
6353,
12,
6376,
3219,
18,
588,
6376,
3219,
10663,
1082,
202,
5787,
6353,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1082,
202,
12377,
6353,
202,
5787,
6353,
273,
394,
28310,
6353,
12,
6376,
3219,
18,
588,
6376,
3219,
10663,
1082,
202,
5787,
6353,
18,... |
public ASTEnumerationSpecifier(IASTScope scope, String name, int startingOffset, int nameOffset) | public ASTEnumerationSpecifier(IASTScope scope, String name, int startingOffset, int nameOffset, int nameEndOffset ) | public ASTEnumerationSpecifier(IASTScope scope, String name, int startingOffset, int nameOffset) { super( scope, name ); this.name = name; offsets.setNameOffset( nameOffset ); offsets.setStartingOffset( startingOffset); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e95da4dadebf96c72bbb248f97571b58e92fb39c/ASTEnumerationSpecifier.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTEnumerationSpecifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9183,
21847,
21416,
12,
45,
9053,
3876,
2146,
16,
514,
508,
16,
509,
5023,
2335,
16,
509,
508,
2335,
16,
509,
508,
1638,
2335,
262,
565,
288,
377,
202,
9565,
12,
2146,
16,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9183,
21847,
21416,
12,
45,
9053,
3876,
2146,
16,
514,
508,
16,
509,
5023,
2335,
16,
509,
508,
2335,
16,
509,
508,
1638,
2335,
262,
565,
288,
377,
202,
9565,
12,
2146,
16,
508,
... |
text.append("()"); | text.append("()"); | protected String constructBodyFileContent(String lineDelimiter){ StringBuffer text = new StringBuffer(); text.append("#include \""); text.append(getCreatedClassHeaderFile().getElementName()); text.append("\""); text.append(lineDelimiter); text.append(lineDelimiter); if(isInline()) return text.toString(); // constructor text.append(getNewClassName()); text.append("::"); text.append(getNewClassName()); text.append("()"); text.append(lineDelimiter); text.append("{}"); text.append(lineDelimiter); // destructor text.append(getNewClassName()); text.append("::~"); text.append(getNewClassName()); text.append("()"); text.append(lineDelimiter); text.append("{}"); text.append(lineDelimiter); return text.toString(); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1738ff26440cb838b4d42f49cb8d29c4cc9babdf/NewClassWizardPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
4872,
2250,
25391,
12,
780,
980,
12007,
15329,
202,
202,
780,
1892,
977,
273,
394,
6674,
5621,
202,
202,
955,
18,
6923,
2932,
7,
6702,
1239,
8863,
202,
202,
955,
18,
692... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
4872,
2250,
25391,
12,
780,
980,
12007,
15329,
202,
202,
780,
1892,
977,
273,
394,
6674,
5621,
202,
202,
955,
18,
6923,
2932,
7,
6702,
1239,
8863,
202,
202,
955,
18,
692... |
mb.push(cd.getConglomerateName()); | pushIndexName(cd, mb); | private void generateDistinctScan ( ExpressionClassBuilder acb, MethodBuilder mb ) throws StandardException { ConglomerateDescriptor cd = getTrulyTheBestAccessPath().getConglomerateDescriptor(); CostEstimate costEstimate = getFinalCostEstimate(); int colRefItem = (referencedCols == null) ? -1 : acb.addItem(referencedCols); boolean tableLockGranularity = tableDescriptor.getLockGranularity() == TableDescriptor.TABLE_LOCK_GRANULARITY; /* ** getDistinctScanResultSet ** ( ** activation, ** resultSetNumber, ** resultRowAllocator, ** conglomereNumber, ** tableName, ** indexName, ** colRefItem, ** lockMode, ** tableLocked, ** isolationLevel, ** optimizerEstimatedRowCount, ** optimizerEstimatedRowCost, ** closeCleanupMethod ** ); */ /* Get the hash key columns and wrap them in a formattable */ int[] hashKeyColumns; hashKeyColumns = new int[resultColumns.size()]; if (referencedCols == null) { for (int index = 0; index < hashKeyColumns.length; index++) { hashKeyColumns[index] = index; } } else { int index = 0; for (int colNum = referencedCols.anySetBit(); colNum != -1; colNum = referencedCols.anySetBit(colNum)) { hashKeyColumns[index++] = colNum; } } FormatableIntHolder[] fihArray = FormatableIntHolder.getFormatableIntHolders(hashKeyColumns); FormatableArrayHolder hashKeyHolder = new FormatableArrayHolder(fihArray); int hashKeyItem = acb.addItem(hashKeyHolder); long conglomNumber = cd.getConglomerateNumber(); StaticCompiledOpenConglomInfo scoci = getLanguageConnectionContext(). getTransactionCompile(). getStaticCompiledConglomInfo(conglomNumber); acb.pushGetResultSetFactoryExpression(mb); acb.pushThisAsActivation(mb); mb.push(conglomNumber); mb.push(acb.addItem(scoci)); resultColumns.generateHolder(acb, mb, referencedCols, (FormatableBitSet) null); mb.push(getResultSetNumber()); mb.push(hashKeyItem); mb.push(tableDescriptor.getName()); //User may have supplied optimizer overrides in the sql //Pass them onto execute phase so it can be shown in //run time statistics. if (tableProperties != null) mb.push(org.apache.derby.iapi.util.PropertyUtil.sortProperties(tableProperties)); else mb.pushNull("java.lang.String"); mb.push(cd.getConglomerateName()); mb.push(cd.isConstraint()); mb.push(colRefItem); mb.push(getTrulyTheBestAccessPath().getLockMode()); mb.push(tableLockGranularity); mb.push(getCompilerContext().getScanIsolationLevel()); mb.push(costEstimate.singleScanRowCount()); mb.push(costEstimate.getEstimatedCost()); closeMethodArgument(acb, mb); mb.callMethod(VMOpcode.INVOKEINTERFACE, (String) null, "getDistinctScanResultSet", ClassName.NoPutResultSet, 17); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/fee55d87f3fc069978517ad5ae20dd461e478e05/FromBaseTable.java/buggy/java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2103,
23402,
7972,
202,
12,
202,
202,
2300,
797,
1263,
202,
1077,
70,
16,
202,
202,
1305,
1263,
4903,
202,
13,
1216,
8263,
503,
202,
95,
202,
202,
442,
7043,
362,
12600,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
23402,
7972,
202,
12,
202,
202,
2300,
797,
1263,
202,
1077,
70,
16,
202,
202,
1305,
1263,
4903,
202,
13,
1216,
8263,
503,
202,
95,
202,
202,
442,
7043,
362,
12600,... |
assertEquals(JavaUtil.convertJavaToRuby(ruby, null, Object.class).type().toName(), "NilClass"); assertEquals(JavaUtil.convertJavaToRuby(ruby, new Integer(1000), Integer.TYPE).type().toName(), "Fixnum"); assertEquals(JavaUtil.convertJavaToRuby(ruby, new Double(1.0), Double.TYPE).type().toName(), "Float"); assertEquals(JavaUtil.convertJavaToRuby(ruby, Boolean.TRUE, Boolean.TYPE).type().toName(), "TrueClass"); assertEquals(JavaUtil.convertJavaToRuby(ruby, Boolean.FALSE, Boolean.TYPE).type().toName(), "FalseClass"); assertEquals(JavaUtil.convertJavaToRuby(ruby, "AString", String.class).type().toName(), "String"); | assertEquals(JavaUtil.convertJavaToRuby(ruby, null).type().toName(), "NilClass"); assertEquals(JavaUtil.convertJavaToRuby(ruby, new Integer(1000)).type().toName(), "Fixnum"); assertEquals(JavaUtil.convertJavaToRuby(ruby, new Double(1.0)).type().toName(), "Float"); assertEquals(JavaUtil.convertJavaToRuby(ruby, Boolean.TRUE).type().toName(), "TrueClass"); assertEquals(JavaUtil.convertJavaToRuby(ruby, Boolean.FALSE).type().toName(), "FalseClass"); assertEquals(JavaUtil.convertJavaToRuby(ruby, "AString").type().toName(), "String"); | public void testConvertJavaToRuby() { assertEquals(JavaUtil.convertJavaToRuby(ruby, null, Object.class).type().toName(), "NilClass"); assertEquals(JavaUtil.convertJavaToRuby(ruby, new Integer(1000), Integer.TYPE).type().toName(), "Fixnum"); assertEquals(JavaUtil.convertJavaToRuby(ruby, new Double(1.0), Double.TYPE).type().toName(), "Float"); assertEquals(JavaUtil.convertJavaToRuby(ruby, Boolean.TRUE, Boolean.TYPE).type().toName(), "TrueClass"); assertEquals(JavaUtil.convertJavaToRuby(ruby, Boolean.FALSE, Boolean.TYPE).type().toName(), "FalseClass"); assertEquals(JavaUtil.convertJavaToRuby(ruby, "AString", String.class).type().toName(), "String"); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/0a526b01cbfccc8f939ebe1c3b73363469a0bfd5/TestJavaUtil.java/buggy/org/jruby/test/TestJavaUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2723,
5852,
774,
54,
10340,
1435,
288,
3639,
1815,
8867,
12,
5852,
1304,
18,
6283,
5852,
774,
54,
10340,
12,
27768,
16,
446,
16,
1033,
18,
1106,
2934,
723,
7675,
869,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2723,
5852,
774,
54,
10340,
1435,
288,
3639,
1815,
8867,
12,
5852,
1304,
18,
6283,
5852,
774,
54,
10340,
12,
27768,
16,
446,
16,
1033,
18,
1106,
2934,
723,
7675,
869,
4... |
public String getSelectedText() | public String getSelectedText(Selection s) | public String getSelectedText() { return getSelectedText("\n"); } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/03e75008b5af800755476fc92bf9a72bf3f931f4/JEditTextArea.java/buggy/org/gjt/sp/jedit/textarea/JEditTextArea.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
16625,
1528,
1435,
202,
95,
202,
202,
2463,
16625,
1528,
31458,
82,
8863,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
16625,
1528,
1435,
202,
95,
202,
202,
2463,
16625,
1528,
31458,
82,
8863,
202,
97,
368,
9090,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public void invoke(MessageContext msgctx) throws AxisFault {// if (msgctx.getServiceContext() == null) {// EndpointReference toEPR = msgctx.getTo();// QName serviceName = new QName(toEPR.getAddress());// AxisService service =// msgctx.getEngineContext().getEngineConfig().getService(serviceName);//// if (service != null) {// EngineContext engineContext = msgctx.getEngineContext();// ServiceContext serviceContext = engineContext.getService(service.getName());// if (serviceContext == null) {// serviceContext = new ServiceContext(service,engineContext);// }// msgctx.setServiceContext(serviceContext);// // let add the Handlers// ExecutionChain chain = msgctx.getExecutionChain();// chain.addPhases(serviceContext.getPhases(EngineConfiguration.INFLOW));//// } else {// throw new AxisFault("No service found under the " + toEPR.getAddress());// }//// }//// if (msgctx.getoperationConfig() == null) {// AxisService service = msgctx.getServiceContext().getServiceConfig();// String action = (String) msgctx.getWSAAction();// if (action != null) {// QName operationName = new QName(action);// AxisOperation op = service.getOperation(operationName);// if (op != null) {// msgctx.setOperationConfig(op);// } else{// throw new AxisFault("No Operation named "+ operationName + " Not found" );// }// //if no operation found let it go, this is for a handler may be. e.g. Create Sequance in RM// } else {// throw new AxisFault("Operation not found, WSA Action is Null");// }//// } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/300f5888904c5abbc97474bfee7c9727b7c7451a/AddressingBasedDispatcher.java/clean/modules/core/src/org/apache/axis/engine/AddressingBasedDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4356,
12,
1079,
1042,
1234,
5900,
13,
1216,
15509,
7083,
288,
759,
3639,
309,
261,
3576,
5900,
18,
588,
1179,
1042,
1435,
422,
446,
13,
288,
759,
5411,
6961,
2404,
358,
41,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4356,
12,
1079,
1042,
1234,
5900,
13,
1216,
15509,
7083,
288,
759,
3639,
309,
261,
3576,
5900,
18,
588,
1179,
1042,
1435,
422,
446,
13,
288,
759,
5411,
6961,
2404,
358,
41,
8... | ||
public void actionPerformed(ActionEvent e) { JComboBox cb = (JComboBox)e.getSource(); ColoredObject item = ((ColoredObject)cb.getSelectedItem()); if(item != null) cb.setForeground(item.getColor()); | public void actionPerformed(ActionEvent event) { if(XJFileChooser.shared().displayChooseDirectory(getJavaContainer())) { downloadPathField.setText(XJFileChooser.shared().getSelectedFilePath()); EditorPreferences.setDownloadPath(downloadPathField.getText()); } | public void actionPerformed(ActionEvent e) { JComboBox cb = (JComboBox)e.getSource(); ColoredObject item = ((ColoredObject)cb.getSelectedItem()); if(item != null) cb.setForeground(item.getColor()); } | 51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/73cd349bb31b15b43b1fa12d3c7fb8ceb7d58642/DialogPrefs.java/buggy/src/org/antlr/works/dialog/DialogPrefs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
804,
22199,
2875,
273,
261,
46,
22199,
13,
73,
18,
588,
1830,
5621,
7734,
1558,
7653,
921,
761,
273,
14015,
914,
7653,
921,
13,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
804,
22199,
2875,
273,
261,
46,
22199,
13,
73,
18,
588,
1830,
5621,
7734,
1558,
7653,
921,
761,
273,
14015,
914,
7653,
921,
13,
73... |
if (sb == null) | } if (sb == null) { | void addStr(int row, int col, String str, boolean ischar) { if (debug) getLogger().debug("TXTRenderer.addStr(" + row + ", " + col + ", \"" + str + "\", " + ischar + ")"); if (suppressGraphics &&!ischar) return; StringBuffer sb; if (row < 0) row = 0; if (ischar) sb = charData[row]; else sb = decoData[row]; if (sb == null) sb = new StringBuffer(); if ((col + str.length()) > maxX) col = maxX - str.length(); if (col < 0) { col = 0; if (str.length() > maxX) str = str.substring(0, maxX); } // Pad to col for (int countr = sb.length(); countr < col; countr++) sb.append(' '); if (debug) getLogger().debug("TXTRenderer.addStr() sb.length()=" + sb.length()); for (int countr = col; countr < (col + str.length()); countr++) { if (countr >= sb.length()) sb.append(str.charAt(countr - col)); else { if (debug) getLogger().debug("TXTRenderer.addStr() sb.length()=" + sb.length() + " countr=" + countr); sb.setCharAt(countr, str.charAt(countr - col)); } } if (ischar) charData[row] = sb; else decoData[row] = sb; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/080758135d662b79c2d14b02e74dae860afd3161/TXTRenderer.java/clean/src/org/apache/fop/render/txt/TXTRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
527,
1585,
12,
474,
1027,
16,
509,
645,
16,
514,
609,
16,
1250,
353,
3001,
13,
288,
3639,
309,
261,
4148,
13,
5411,
7156,
7675,
4148,
2932,
29399,
6747,
18,
1289,
1585,
2932,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
527,
1585,
12,
474,
1027,
16,
509,
645,
16,
514,
609,
16,
1250,
353,
3001,
13,
288,
3639,
309,
261,
4148,
13,
5411,
7156,
7675,
4148,
2932,
29399,
6747,
18,
1289,
1585,
2932,
397,
... |
rect.x - boardRect.x, boardRect.height - (int)(36*scale), rect.width, (int)(36*scale)); | rect.x - boardRect.x, boardRect.height - (int)(36*scale), rect.width, (int)(36*scale)); | private void drawHexes(Rectangle rect) { // rect is the view int drawX = (int)(rect.x / (HEX_WC*scale))-1; int drawY = (int)(rect.y / (HEX_H*scale))-1; int drawWidth = (int)(rect.width / (HEX_WC*scale))+3; int drawHeight = (int)(rect.height / (HEX_H*scale))+3; // only draw what we came to draw boardGraph.setClip(rect.x - boardRect.x, rect.y - boardRect.y, rect.width, rect.height); // clear, if we need to if (rect.x < (21*scale)) { boardGraph.clearRect( rect.x - boardRect.x, rect.y - boardRect.y, (int)(21*scale) - rect.x, rect.height); } if (rect.y < (36*scale)) { boardGraph.clearRect( rect.x - boardRect.x, rect.y - boardRect.y, rect.width, (int)(36*scale) - rect.y); } if (rect.x > boardSize.width - view.width - (21*scale)) { boardGraph.clearRect( boardRect.width - (int)(21*scale), rect.y - boardRect.y, (int)(21*scale), rect.height); } if (rect.y > boardSize.height - view.height - (int)(36*scale)) { boardGraph.clearRect( rect.x - boardRect.x, boardRect.height - (int)(36*scale), rect.width, (int)(36*scale)); } // draw some hexes for (int i = 0; i < drawHeight; i++) { for (int j = 0; j < drawWidth; j++) { drawHex(new Coords(j + drawX, i + drawY)); } } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/18ec0036f3c5df3d8fbef60e9dd53cc153fc889e/BoardView1.java/buggy/megamek/src/megamek/client/ui/AWT/BoardView1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3724,
7037,
281,
12,
19463,
4917,
13,
288,
377,
202,
377,
202,
759,
4917,
353,
326,
1476,
3639,
509,
3724,
60,
273,
261,
474,
21433,
2607,
18,
92,
342,
261,
20661,
67,
59,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
7037,
281,
12,
19463,
4917,
13,
288,
377,
202,
377,
202,
759,
4917,
353,
326,
1476,
3639,
509,
3724,
60,
273,
261,
474,
21433,
2607,
18,
92,
342,
261,
20661,
67,
59,
... |
String reason = Verifier.checkNamespaceCollision(additional, this); | final String reason = Verifier.checkNamespaceCollision(additional, this); | public void addNamespaceDeclaration(Namespace additional) { // Verify the new namespace prefix doesn't collide with another // declared namespace, an attribute prefix, or this element's prefix String reason = Verifier.checkNamespaceCollision(additional, this); if (reason != null) { throw new IllegalAddException(this, additional, reason); } if (additionalNamespaces == null) { additionalNamespaces = new ArrayList(INITIAL_ARRAY_SIZE); } additionalNamespaces.add(additional); } | 49530 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49530/b48373d95cd91986f83ac5345566258d80e88027/Element.java/buggy/core/src/java/org/jdom/Element.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
3402,
6094,
12,
3402,
3312,
13,
288,
3639,
368,
8553,
326,
394,
1981,
1633,
3302,
1404,
645,
8130,
598,
4042,
3639,
368,
7886,
1981,
16,
392,
1566,
1633,
16,
578,
333,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
3402,
6094,
12,
3402,
3312,
13,
288,
3639,
368,
8553,
326,
394,
1981,
1633,
3302,
1404,
645,
8130,
598,
4042,
3639,
368,
7886,
1981,
16,
392,
1566,
1633,
16,
578,
333,
9... |
String getBorderTopColor(); | String getBorderTopColor( ); | String getBorderTopColor(); | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/418b538dedc46927b62e9d884dd3fc2419ed5e34/IScriptStyle.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/instance/IScriptStyle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
2882,
1019,
3401,
2957,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
2882,
1019,
3401,
2957,
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,
-1... |
return new JavaRefactoringDescriptor(ID_INTRODUCE_PARAMETER, extended.getProject(), NLS.bind(RefactoringCoreMessages.IntroduceParameterRefactoring_descriptor_description, new String[] { fParameter.getNewName(), signature, ASTNodes.asString(fSelectedExpression)}), getComment(), arguments, extended.getFlags()); | public final ChangeDescriptor getDescriptor() { final ChangeDescriptor descriptor= getChildren()[0].getDescriptor(); if (descriptor instanceof JavaRefactoringDescriptor) { final JavaRefactoringDescriptor extended= (JavaRefactoringDescriptor) descriptor; final Map arguments= new HashMap(); arguments.put(ATTRIBUTE_ARGUMENT, fParameter.getNewName()); arguments.put(ATTRIBUTE_SELECTION, new Integer(fSelectionStart).toString() + " " + new Integer(fSelectionLength).toString()); //$NON-NLS-1$ arguments.putAll(extended.getArguments()); String signature= fChangeSignatureRefactoring.getMethodName(); try { signature= fChangeSignatureRefactoring.getOldMethodSignature(); } catch (JavaModelException exception) { JavaPlugin.log(exception); } return new JavaRefactoringDescriptor(ID_INTRODUCE_PARAMETER, extended.getProject(), NLS.bind(RefactoringCoreMessages.IntroduceParameterRefactoring_descriptor_description, new String[] { fParameter.getNewName(), signature, ASTNodes.asString(fSelectedExpression)}), getComment(), arguments, extended.getFlags()); } return null; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/0432e0d7c5a62e819812c87710ddd951922b9dd2/IntroduceParameterRefactoring.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceParameterRefactoring.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
727,
7576,
3187,
22161,
1435,
288,
9506,
202,
6385,
7576,
3187,
4950,
33,
10268,
1435,
63,
20,
8009,
588,
3187,
5621,
9506,
202,
430,
261,
12628,
1276,
5110,
426,
3493,
6053,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
727,
7576,
3187,
22161,
1435,
288,
9506,
202,
6385,
7576,
3187,
4950,
33,
10268,
1435,
63,
20,
8009,
588,
3187,
5621,
9506,
202,
430,
261,
12628,
1276,
5110,
426,
3493,
6053,
3... | |
this.languageRange = language.getLanguage(); | if ( "".equals(language.getCountry())) { this.languageRange = language.getLanguage(); } else { this.languageRange = language.getLanguage() + '-' + language.getCountry(); } | public void setAcceptLanguage(Locale language) { this.languageRange = language.getLanguage(); } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/AcceptLanguage.java/clean/trunk/src/gov/nist/javax/sip/header/AcceptLanguage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
5933,
3779,
12,
3916,
2653,
13,
288,
202,
202,
2211,
18,
4923,
2655,
273,
2653,
18,
588,
3779,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
5933,
3779,
12,
3916,
2653,
13,
288,
202,
202,
2211,
18,
4923,
2655,
273,
2653,
18,
588,
3779,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
localVarsList.set(j, argsList.get(j)); | localVarsList.set(j, args.get(j)); | public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { CRefNode savedCref = ruby.getCRef(); // +++ = null; // VALUE[] localVars = null; RubyPointer argsList = new RubyPointer(args); RubyPointer localVarsList = null; ruby.getRubyScope().push(); if (getRefValue() != null) { // savedCref = ruby.getCRef(); s.a. ruby.setCRef(getRefValue()); ruby.getRubyFrame().setCbase(getRefValue()); } if (getTable() != null) { // ? +++ // List tmpList = Collections.nCopies(body.nd_tbl()[0].intValue() + 1, getRuby().getNil()); // ? --- // localVarsList = new ShiftableList(new ArrayList(tmpList)); // localVarsList.set(0, body); // localVarsList.shift(1); localVarsList = new RubyPointer(ruby.getNil(), getTable().getId(0).intValue() + 1); localVarsList.set(0, this); // +++ // localVarsList.set(3, argsList, argsList.size()); // --- localVarsList.inc(); ruby.getRubyScope().setLocalVars(localVarsList); ruby.getRubyScope().setLocalTbl(getTable()); } else { localVarsList = ruby.getRubyScope().getLocalVars(); ruby.getRubyScope().setLocalVars(null); ruby.getRubyScope().setLocalTbl(null); } Node body = getNextNode(); RubyVarmap.push(ruby); // PUSH_TAG(PROT_FUNC); RubyObject result = ruby.getNil(); try { Node node = null; int i; if (body.getType() == Constants.NODE_ARGS) { node = body; body = null; } else if (body.getType() == Constants.NODE_BLOCK) { node = body.getHeadNode(); body = body.getNextNode(); } if (node != null) { if (node.getType() != Constants.NODE_ARGS) { // rb_bug("no argument-node"); } i = node.getCount(); if (i > (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + i + ")"); } if (node.getRest() == -1) { int opt = i; Node optNode = node.getOptNode(); while (optNode != null) { opt++; optNode = optNode.getNextNode(); } if (opt < (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + opt + ")"); } ruby.getRubyFrame().setArgs(localVarsList != null ? localVarsList.getPointer(2) : null); } if (localVarsList != null) { if (i > 0) { localVarsList.inc(2); for (int j = 0; j < i; j++ ) { localVarsList.set(j, argsList.get(j)); } localVarsList.dec(2); } argsList.inc(i); if (node.getOptNode() != null) { Node optNode = node.getOptNode(); while (optNode != null && argsList.size() != 0) { ((AssignableNode)optNode.getHeadNode()).assign(ruby, recv, argsList.getRuby(0), true); argsList.inc(1); optNode = optNode.getNextNode(); } recv.eval(optNode); } if (node.getRest() >= 0) { RubyArray array = null; if (argsList.size() > 0) { array = RubyArray.m_newArray(ruby, argsList); } else { array = RubyArray.m_newArray(ruby, 0); } localVarsList.set(node.getRest(), array); } } } result = recv.eval(body); } catch (ReturnException rExcptn) { } RubyVarmap.pop(ruby); ruby.getRubyScope().pop(); ruby.setCRef(savedCref); return result; } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/f629550c5947df9c1dbe414645f3dc76bcb70df4/ScopeNode.java/clean/org/jruby/nodes/ScopeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
745,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
19817,
548,
612,
16,
19817,
921,
8526,
833,
16,
1250,
1158,
8051,
13,
288,
3639,
385,
1957,
907,
5198,
39,
1734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
745,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
19817,
548,
612,
16,
19817,
921,
8526,
833,
16,
1250,
1158,
8051,
13,
288,
3639,
385,
1957,
907,
5198,
39,
1734,
... |
public TA_RetCode CDLTHRUSTING( int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[] ){ double EqualPeriodTotal, BodyLongPeriodTotal; int i, outIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLTHRUSTING_Lookback (); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } EqualPeriodTotal = 0; EqualTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) ; BodyLongPeriodTotal = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) ; i = EqualTrailingIdx; while( i < startIdx ) { EqualPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; i++; } i = BodyLongTrailingIdx; while( i < startIdx ) { BodyLongPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; i++; } i = startIdx; outIdx = 0; do { if( ( inClose[i-1] >= inOpen[i-1] ? 1 : -1 ) == -1 && ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) != 0.0? BodyLongPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( inClose[i] >= inOpen[i] ? 1 : -1 ) == 1 && inOpen[i] < inLow[i-1] && inClose[i] > inClose[i-1] + ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) != 0.0? EqualPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && inClose[i] <= inClose[i-1] + ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) * 0.5 ) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; EqualPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[EqualTrailingIdx-1] - inOpen[EqualTrailingIdx-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[EqualTrailingIdx-1] - inLow[EqualTrailingIdx-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[EqualTrailingIdx-1] - ( inClose[EqualTrailingIdx-1] >= inOpen[EqualTrailingIdx-1] ? inClose[EqualTrailingIdx-1] : inOpen[EqualTrailingIdx-1] ) ) + ( ( inClose[EqualTrailingIdx-1] >= inOpen[EqualTrailingIdx-1] ? inOpen[EqualTrailingIdx-1] : inClose[EqualTrailingIdx-1] ) - inLow[EqualTrailingIdx-1] ) : 0 ) ) ) ; BodyLongPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[BodyLongTrailingIdx-1] - inOpen[BodyLongTrailingIdx-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[BodyLongTrailingIdx-1] - inLow[BodyLongTrailingIdx-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[BodyLongTrailingIdx-1] - ( inClose[BodyLongTrailingIdx-1] >= inOpen[BodyLongTrailingIdx-1] ? inClose[BodyLongTrailingIdx-1] : inOpen[BodyLongTrailingIdx-1] ) ) + ( ( inClose[BodyLongTrailingIdx-1] >= inOpen[BodyLongTrailingIdx-1] ? inOpen[BodyLongTrailingIdx-1] : inClose[BodyLongTrailingIdx-1] ) - inLow[BodyLongTrailingIdx-1] ) : 0 ) ) ) ; i++; EqualTrailingIdx++; BodyLongTrailingIdx++; } while( i <= endIdx ); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode. TA_SUCCESS;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
385,
8914,
2455,
54,
5996,
1360,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
3678,
63,
6487,
1645,
316,
8573,
63,
6487,
1645,
316,
10520,
63,
6487,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
399,
37,
67,
7055,
1085,
385,
8914,
2455,
54,
5996,
1360,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
3678,
63,
6487,
1645,
316,
8573,
63,
6487,
1645,
316,
10520,
63,
6487,... | ||
trayIcon = new TrayIcon(offIcon, "Jive Messenger", menu); | trayIcon = new TrayIcon(offIcon, appName, menu); | public Launcher() { // Initialize the SystemTray now (to avoid a bug!) final SystemTray tray = SystemTray.getDefaultSystemTray(); // Use the native look and feel. try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { e.printStackTrace(); } String title = "Jive Messenger"; frame = new DroppableFrame() { public void fileDropped(File file) { String fileName = file.getName(); if (fileName.endsWith(".jar") || fileName.endsWith(".war")) { installPlugin(file); } } }; frame.setTitle(title); ImageIcon splash = null; JLabel splashLabel = null; // Set the icon. try { splash = new ImageIcon(getClass().getClassLoader().getResource("splash.gif")); splashLabel = new JLabel("", splash, JLabel.LEFT); onIcon = new ImageIcon(getClass().getClassLoader().getResource("messenger_on-16x16.gif")); offIcon = new ImageIcon(getClass().getClassLoader().getResource("messenger_off-16x16.gif")); frame.setIconImage(offIcon.getImage()); } catch (Exception e) { } JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); // Add buttons final JButton startButton = new JButton("Start"); startButton.setActionCommand("Start"); final JButton stopButton = new JButton("Stop"); stopButton.setActionCommand("Stop"); final JButton browserButton = new JButton("Launch Admin"); browserButton.setActionCommand("Launch Admin"); final JButton quitButton = new JButton("Quit"); quitButton.setActionCommand("Quit"); toolbar.setLayout(new GridBagLayout()); toolbar.add(startButton, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); toolbar.add(stopButton, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); toolbar.add(browserButton, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); toolbar.add(quitButton, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); if (splashLabel != null) { mainPanel.add(splashLabel, BorderLayout.CENTER); } mainPanel.add(toolbar, BorderLayout.SOUTH); // create the main menu of the system tray icon JPopupMenu menu = new JPopupMenu("Messenger Menu"); final JMenuItem showMenuItem = new JMenuItem("Hide"); showMenuItem.setActionCommand("Hide/Show"); menu.add(showMenuItem); final JMenuItem startMenuItem = new JMenuItem("Start"); startMenuItem.setActionCommand("Start"); menu.add(startMenuItem); final JMenuItem stopMenuItem = new JMenuItem("Stop"); stopMenuItem.setActionCommand("Stop"); menu.add(stopMenuItem); final JMenuItem browserMenuItem = new JMenuItem("Launch Admin"); browserMenuItem.setActionCommand("Launch Admin"); menu.add(browserMenuItem); menu.addSeparator(); final JMenuItem quitMenuItem = new JMenuItem("Quit"); quitMenuItem.setActionCommand("Quit"); menu.add(quitMenuItem); browserButton.setEnabled(false); stopButton.setEnabled(false); browserMenuItem.setEnabled(false); stopMenuItem.setEnabled(false); ActionListener actionListener = new ActionListener() { public void actionPerformed(ActionEvent e) { if ("Start".equals(e.getActionCommand())) { frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); // Adjust button and menu items. startApplication(); startButton.setEnabled(false); stopButton.setEnabled(true); startMenuItem.setEnabled(false); stopMenuItem.setEnabled(true); // Change to the "on" icon. frame.setIconImage(onIcon.getImage()); trayIcon.setIcon(onIcon); // Start a thread to enable the admin button after 8 seconds. Thread thread = new Thread() { public void run() { try { sleep(8000); } catch (Exception e) { } // Enable the Launch Admin button/menu item only if the // server has started. if (stopButton.isEnabled()) { browserButton.setEnabled(true); browserMenuItem.setEnabled(true); frame.setCursor(Cursor.getDefaultCursor()); } } }; thread.start(); } else if ("Stop".equals(e.getActionCommand())) { stopApplication(); // Change to the "off" button. frame.setIconImage(offIcon.getImage()); trayIcon.setIcon(offIcon); // Adjust buttons and menu items. frame.setCursor(Cursor.getDefaultCursor()); browserButton.setEnabled(false); startButton.setEnabled(true); stopButton.setEnabled(false); browserMenuItem.setEnabled(false); startMenuItem.setEnabled(true); stopMenuItem.setEnabled(false); } else if ("Launch Admin".equals(e.getActionCommand())) { launchBrowser(); } else if ("Quit".equals(e.getActionCommand())) { stopApplication(); System.exit(0); } else if ("Hide/Show".equals(e.getActionCommand()) || "PressAction".equals(e.getActionCommand())) { // Hide/Unhide the window if the user clicked in the system tray icon or // selected the menu option if (frame.isVisible()) { frame.setVisible(false); frame.setState(Frame.ICONIFIED); showMenuItem.setText("Show"); } else { frame.setVisible(true); frame.setState(Frame.NORMAL); showMenuItem.setText("Hide"); } } } }; // Register a listener for the radio buttons. startButton.addActionListener(actionListener); stopButton.addActionListener(actionListener); browserButton.addActionListener(actionListener); quitButton.addActionListener(actionListener); // Register a listener for the menu items. quitMenuItem.addActionListener(actionListener); browserMenuItem.addActionListener(actionListener); stopMenuItem.addActionListener(actionListener); startMenuItem.addActionListener(actionListener); showMenuItem.addActionListener(actionListener); // Set the system tray icon with the menu trayIcon = new TrayIcon(offIcon, "Jive Messenger", menu); trayIcon.setIconAutoSize(true); trayIcon.addActionListener(actionListener); tray.addTrayIcon(trayIcon); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { stopApplication(); System.exit(0); } public void windowIconified(WindowEvent e) { // Make the window disappear when minimized frame.setVisible(false); showMenuItem.setText("Show"); } }); frame.getContentPane().add(mainPanel); frame.pack(); // frame.setSize(539,418); frame.setResizable(false); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); // Start the app. startButton.doClick(); } | 6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/92a7f09233601a55e057ecc58d2c460e0e68f33a/Launcher.java/clean/src/java/org/jivesoftware/messenger/launcher/Launcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14643,
264,
1435,
288,
3639,
368,
9190,
326,
2332,
56,
435,
2037,
261,
869,
4543,
279,
7934,
24949,
3639,
727,
2332,
56,
435,
268,
435,
273,
2332,
56,
435,
18,
588,
1868,
3163,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14643,
264,
1435,
288,
3639,
368,
9190,
326,
2332,
56,
435,
2037,
261,
869,
4543,
279,
7934,
24949,
3639,
727,
2332,
56,
435,
268,
435,
273,
2332,
56,
435,
18,
588,
1868,
3163,
56... |
SpringConfig config = new SpringConfig(application); ConfigurableApplicationContext appCtx = (ConfigurableApplicationContext) new XmlApplicationContextDriver().getApplicationContext( config.getBeanReferences(), parent); | GrailsRuntimeConfigurator config = new GrailsRuntimeConfigurator(application,parent); ConfigurableApplicationContext appCtx = (ConfigurableApplicationContext)config.configure(new MockServletContext()); | public static void main(String[] args) throws Exception { if(args.length < 2) return; String type = args[0]; String domainClassName = args[1]; ApplicationContext parent = new ClassPathXmlApplicationContext("applicationContext.xml"); GrailsApplication application = (DefaultGrailsApplication)parent.getBean("grailsApplication", DefaultGrailsApplication.class); GrailsDomainClass domainClass = getDomainCallFromApplication(application,domainClassName); // bootstrap application to try hibernate domain classes if(domainClass == null) { SpringConfig config = new SpringConfig(application); ConfigurableApplicationContext appCtx = (ConfigurableApplicationContext) new XmlApplicationContextDriver().getApplicationContext( config.getBeanReferences(), parent); Assert.notNull(appCtx); } // retry domainClass = getDomainCallFromApplication(application,domainClassName); if(domainClass == null) { LOG.debug("Unable to generate ["+type+"] domain class not found for name ["+domainClassName+"]"); return; } GroovyClassLoader gcl = new GroovyClassLoader(Thread.currentThread().getContextClassLoader()); GrailsTemplateGenerator generator = (GrailsTemplateGenerator)gcl.parseClass(gcl.getResourceAsStream("org/codehaus/groovy/grails/scaffolding/DefaultGrailsTemplateGenerator.groovy")) .newInstance(); if(VIEWS.equals(type) || ALL.equals(type)) { LOG.info("Generating views for domain class ["+domainClass.getName()+"]"); generator.generateViews(domainClass,"."); } else if(CONTROLLER.equals(type)|| ALL.equals(type)) { LOG.info("Generating controller for domain class ["+domainClass.getName()+"]"); generator.generateController(domainClass,"."); } else { LOG.info("Grails was unable to generate templates for unsupported type ["+type+"]"); } } | 46315 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46315/329f94375a619df71514910099d6faf66b35eae8/GenerateUtils.java/buggy/grails/src/commons/grails/util/GenerateUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
3639,
309,
12,
1968,
18,
2469,
411,
576,
13,
5411,
327,
31,
3639,
514,
618,
273,
833,
63,
20,
15533,
3639,
514,
2461,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
3639,
309,
12,
1968,
18,
2469,
411,
576,
13,
5411,
327,
31,
3639,
514,
618,
273,
833,
63,
20,
15533,
3639,
514,
2461,
38... |
public HabitatPortal(String habitatName, Enumeration services) { // Data struRctures /////////////////////////////////////////////////// _portals = new Hashtable(); // GUI stuff ///////////////////////////////////////////////////////// setTitle(habitatName); setSize(HabitatPortal.WIDTH, HabitatPortal.HEIGHT); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); _mainPanel = new JPanel(new BorderLayout()); _ctrlPanel = new JPanel(new GridLayout(2, 1, 5, 5)); _dataLabel = new JLabel(""); _portalPanel = new JPanel(_cardLayout = new CardLayout()); _logPane = new JScrollPane(_logArea = new JTextArea("some text", 8, 10)); _logArea.setEditable(false); if (services != null) { Vector servicesListing = new Vector(); while (services.hasMoreElements()) { ServiceInterface si = (ServiceInterface) services.nextElement(); String serviceDesc = si.getDescription(); servicesListing.add(serviceDesc); _portalPanel.add(si.startDisplay(), serviceDesc); _portals.put(serviceDesc, si); } _servicesList = new JList(servicesListing.toArray()); } else _servicesList = new JList(new String[] { "hello", "there" }); _servicesList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent lse) { String service = "" + _servicesList.getSelectedValue(); try { _dataLabel.setText(generateHTML(_portals.get(service))); _cardLayout.show(_portalPanel, service); } catch (Exception e) { } } }); _mainPanel.add(_ctrlPanel, BorderLayout.WEST); _mainPanel.add(_portalPanel, BorderLayout.CENTER); _mainPanel.add(_logPane, BorderLayout.SOUTH); _ctrlPanel.add(_servicesList); _ctrlPanel.add(new JScrollPane(_dataLabel)); _ctrlPanel.setMinimumSize(new Dimension(CTRL_WIDTH, HEIGHT)); getContentPane().add(_mainPanel); show(); } | 14653 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14653/5f44205561a219c3740ab95da1db0183a3b94415/HabitatPortal.java/clean/portal/HabitatPortal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
670,
30258,
270,
24395,
12,
780,
366,
30258,
270,
461,
16,
13864,
4028,
13,
288,
3639,
368,
1910,
609,
89,
54,
299,
1823,
23415,
3517,
19,
565,
389,
655,
1031,
273,
394,
18559,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
670,
30258,
270,
24395,
12,
780,
366,
30258,
270,
461,
16,
13864,
4028,
13,
288,
3639,
368,
1910,
609,
89,
54,
299,
1823,
23415,
3517,
19,
565,
389,
655,
1031,
273,
394,
18559,
56... | ||
switch ( eDerivedStructuralFeatureID( eFeature ) ) | switch ( featureID ) | public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case ComponentPackage.MARKER_LINE__LINE_ATTRIBUTES : setLineAttributes( (LineAttributes) null ); return; case ComponentPackage.MARKER_LINE__VALUE : setValue( (DataElement) null ); return; case ComponentPackage.MARKER_LINE__LABEL : setLabel( (Label) null ); return; case ComponentPackage.MARKER_LINE__LABEL_ANCHOR : unsetLabelAnchor( ); return; case ComponentPackage.MARKER_LINE__FORMAT_SPECIFIER : setFormatSpecifier( (FormatSpecifier) null ); return; } eDynamicUnset( eFeature ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/MarkerLineImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/MarkerLineImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
5435,
226... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
5435,
226... |
preferences.clear(); | public void reset(String key) throws ReadOnlyException { if(isReadOnly(key)) { throw new ReadOnlyException( EXCEPTIONS.getString("error.preference.readonly", "Preference key ") ); } preferences.clear(); for(int i=0;i<defaultPreferences.length;i++) { if(key.equals(defaultPreferences[i].getName())) { preferences.put(key, defaultPreferences[i]); } } } | 51810 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51810/599dbcbe5380e2279d2da3106562ae3b06d2a11c/PortletPreferencesImpl.java/buggy/pluto-container/src/main/java/org/apache/pluto/core/impl/PortletPreferencesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
12,
780,
498,
13,
1216,
20617,
503,
288,
3639,
309,
12,
291,
12066,
12,
856,
3719,
288,
5411,
604,
394,
20617,
503,
12,
7734,
23136,
55,
18,
588,
780,
2932,
1636,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
12,
780,
498,
13,
1216,
20617,
503,
288,
3639,
309,
12,
291,
12066,
12,
856,
3719,
288,
5411,
604,
394,
20617,
503,
12,
7734,
23136,
55,
18,
588,
780,
2932,
1636,
18,
... | |
super( sharedScope, baseQueryDefn, aggrTable ); | super( sharedScope, baseQueryDefn, aggrTable, engine.getSession( ) ); | IVDataSourceExecutor( Scriptable sharedScope, IBaseQueryDefinition baseQueryDefn, AggregateTable aggrTable ) { super( sharedScope, baseQueryDefn, aggrTable ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/0049044a5bef6d7cacb43d07aaac96e021a89ed5/PreparedIVDataSourceQuery.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedIVDataSourceQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
8188,
8597,
6325,
12,
22780,
5116,
3876,
16,
9506,
202,
45,
2171,
1138,
1852,
1026,
1138,
3262,
82,
16,
18059,
1388,
1737,
3197,
1388,
262,
202,
202,
95,
1082,
202,
9565,
12,
5116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
8188,
8597,
6325,
12,
22780,
5116,
3876,
16,
9506,
202,
45,
2171,
1138,
1852,
1026,
1138,
3262,
82,
16,
18059,
1388,
1737,
3197,
1388,
262,
202,
202,
95,
1082,
202,
9565,
12,
5116,
... |
return new BignumDefinition(ruby).getType(); | RubyClass result = ruby.defineClass("Bignum", ruby.getClasses().getIntegerClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); result.defineMethod("~", callbackFactory.getMethod(RubyBignum.class, "op_invert")); result.defineMethod("&", callbackFactory.getMethod(RubyBignum.class, "op_and", RubyNumeric.class)); result.defineMethod("<<", callbackFactory.getMethod(RubyBignum.class, "op_lshift", RubyNumeric.class)); result.defineMethod("%", callbackFactory.getMethod(RubyBignum.class, "op_mod", RubyNumeric.class)); result.defineMethod("+", callbackFactory.getMethod(RubyBignum.class, "op_plus", RubyNumeric.class)); result.defineMethod("*", callbackFactory.getMethod(RubyBignum.class, "op_mul", RubyNumeric.class)); result.defineMethod("**", callbackFactory.getMethod(RubyBignum.class, "op_pow", RubyNumeric.class)); result.defineMethod("-", callbackFactory.getMethod(RubyBignum.class, "op_minus", RubyNumeric.class)); result.defineMethod("modulo", callbackFactory.getMethod(RubyBignum.class, "op_mod", RubyNumeric.class)); result.defineMethod("/", callbackFactory.getMethod(RubyBignum.class, "op_div", RubyNumeric.class)); result.defineMethod(">>", callbackFactory.getMethod(RubyBignum.class, "op_rshift", RubyNumeric.class)); result.defineMethod("|", callbackFactory.getMethod(RubyBignum.class, "op_or", RubyNumeric.class)); result.defineMethod("^", callbackFactory.getMethod(RubyBignum.class, "op_xor", RubyNumeric.class)); result.defineMethod("-@", callbackFactory.getMethod(RubyBignum.class, "op_uminus")); result.defineMethod("[]", callbackFactory.getMethod(RubyBignum.class, "aref", RubyNumeric.class)); result.defineMethod("coerce", callbackFactory.getMethod(RubyBignum.class, "coerce", RubyNumeric.class)); result.defineMethod("remainder", callbackFactory.getMethod(RubyBignum.class, "remainder", RubyNumeric.class)); result.defineMethod("hash", callbackFactory.getMethod(RubyBignum.class, "hash")); result.defineMethod("size", callbackFactory.getMethod(RubyBignum.class, "size")); result.defineMethod("to_f", callbackFactory.getMethod(RubyBignum.class, "to_f")); result.defineMethod("to_i", callbackFactory.getMethod(RubyBignum.class, "to_i")); result.defineMethod("to_s", callbackFactory.getMethod(RubyBignum.class, "to_s")); return result; | public static RubyClass createBignumClass(Ruby ruby) { return new BignumDefinition(ruby).getType(); } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
38,
724,
379,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
563,
273,
22155,
18,
11255,
797,
2932,
38,
724,
379,
3113,
22155,
18,
588,
4818,
7675,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
38,
724,
379,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
563,
273,
22155,
18,
11255,
797,
2932,
38,
724,
379,
3113,
22155,
18,
588,
4818,
7675,
58... |
if(log.isInfoEnabled()) log.info("mbr=" + mbr + " (size=" + suspected_mbrs.size() + ")"); | if(log.isDebugEnabled()) log.debug("mbr=" + mbr + " (size=" + suspected_mbrs.size() + ")"); | void addSuspectedMember(Address mbr) { if(mbr == null) return; if(!members.contains(mbr)) return; synchronized(suspected_mbrs) { if(!suspected_mbrs.contains(mbr)) { suspected_mbrs.addElement(mbr); if(log.isInfoEnabled()) log.info("mbr=" + mbr + " (size=" + suspected_mbrs.size() + ")"); } if(stopped && suspected_mbrs.size() > 0) { stopped=false; timer.add(this, true); } } } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/FD.java/clean/src/org/jgroups/protocols/FD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
527,
55,
407,
1789,
4419,
12,
1887,
312,
2848,
13,
288,
5411,
309,
12,
1627,
86,
422,
446,
13,
327,
31,
5411,
309,
12,
5,
7640,
18,
12298,
12,
1627,
86,
3719,
327,
31,
5411,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
527,
55,
407,
1789,
4419,
12,
1887,
312,
2848,
13,
288,
5411,
309,
12,
1627,
86,
422,
446,
13,
327,
31,
5411,
309,
12,
5,
7640,
18,
12298,
12,
1627,
86,
3719,
327,
31,
5411,
38... |
} else if (session.isCoreSession()){ | } else if (session.isCoreSession() && !isTerminated()){ | public void terminate() throws MIException { // An inferior will be destroy():interrupt and kill if // - For attach session: // the inferior was not disconnected yet (no need to try // to kill a disconnected program). // - For Program session: // if the inferior was not terminated. // - For PostMortem(Core): send event // else noop if ((session.isAttachSession() && isConnected()) || (session.isProgramSession() && !isTerminated())) { CommandFactory factory = session.getCommandFactory(); MIExecAbort abort = factory.createMIExecAbort(); // Try to interrupt the inferior, first. interrupt(); session.postCommand(abort); abort.getMIInfo(); setTerminated(abort.getToken(), true); } else if (session.isCoreSession()){ setTerminated(0, true); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/2b910440821f0f58e5364b3436106216523e6431/MIInferior.java/buggy/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/MIInferior.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10850,
1435,
1216,
20806,
503,
288,
202,
202,
759,
1922,
12455,
9659,
903,
506,
5546,
13332,
31847,
471,
8673,
309,
202,
202,
759,
300,
2457,
3306,
1339,
30,
202,
202,
759,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10850,
1435,
1216,
20806,
503,
288,
202,
202,
759,
1922,
12455,
9659,
903,
506,
5546,
13332,
31847,
471,
8673,
309,
202,
202,
759,
300,
2457,
3306,
1339,
30,
202,
202,
759,... |
final Member member0 = getMemberArg(evaluator, args, 0, true); final Member member1 = getMemberArg(evaluator, args, 1, true); if (member0.isNull() || member1.isNull()) { return Collections.EMPTY_LIST; } if (member0.getLevel() != member1.getLevel()) { throw newEvalException(this, "Members must belong to the same level"); } return FunUtil.memberRange(evaluator, member0, member1); } | List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, false, n.doubleValue()); } | public Object evaluate(Evaluator evaluator, Exp[] args) { final Member member0 = getMemberArg(evaluator, args, 0, true); final Member member1 = getMemberArg(evaluator, args, 1, true); if (member0.isNull() || member1.isNull()) { return Collections.EMPTY_LIST; } if (member0.getLevel() != member1.getLevel()) { throw newEvalException(this, "Members must belong to the same level"); } return FunUtil.memberRange(evaluator, member0, member1); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/8ce2540c398f87f14f1a0a792bb7fcaef78a148a/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
7734,
727,
8596,
3140,
20,
273,
18925,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
638,
1769,
7734,
727,
8596,
3140,
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,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
7734,
727,
8596,
3140,
20,
273,
18925,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
638,
1769,
7734,
727,
8596,
3140,
2... |
tabs[i] = new EnvironmentTab(); tabs[i++].setLaunchConfigurationDialog(dialog); tabs[i] = new JavaJRETab(); tabs[i++].setLaunchConfigurationDialog(dialog); tabs[i] = new CommonTab(); tabs[i++].setLaunchConfigurationDialog(dialog); | public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[10]; int i = 0; tabs[i] = new JavaArgumentsTab2(); tabs[i++].setLaunchConfigurationDialog(dialog);// tabs[i] = new JavaClasspathTab();// tabs[i++].setLaunchConfigurationDialog(dialog); tabs[i] = new SourceLookupTab(); tabs[i++].setLaunchConfigurationDialog(dialog);// tabs[i] = new EnvironmentTab();// tabs[i++].setLaunchConfigurationDialog(dialog);// tabs[i] = new JavaJRETab();// tabs[i++].setLaunchConfigurationDialog(dialog); // tabs[i] = new CommonTab();// tabs[i++].setLaunchConfigurationDialog(dialog); ILaunchConfigurationTab[] tabs2 = new ILaunchConfigurationTab[i]; System.arraycopy(tabs, 0, tabs2, 0, i); setTabs(tabs2); } | 56633 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56633/45cb231c6f5e0fedbe2d6cbf9f171fcc45696eeb/JBossLaunchConfigurationTabGroup.java/clean/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/config/JBossLaunchConfigurationTabGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
17348,
12,
2627,
4760,
1750,
6353,
6176,
16,
514,
1965,
13,
288,
202,
202,
2627,
4760,
1750,
5661,
8526,
10920,
273,
394,
467,
9569,
1750,
5661,
63,
2163,
15533,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
17348,
12,
2627,
4760,
1750,
6353,
6176,
16,
514,
1965,
13,
288,
202,
202,
2627,
4760,
1750,
5661,
8526,
10920,
273,
394,
467,
9569,
1750,
5661,
63,
2163,
15533,
202,
... | |
if ( controls.getReturningAttributes() == null ) { | public boolean accept( LdapContext ctx, SearchResult result, SearchControls controls ) throws NamingException { if ( controls.getReturningAttributes() == null ) { return filter( result.getAttributes() ); } return true; } | 10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/02f6306db73367b7b358c6907b8aadc6a4024c8a/CollectiveAttributeService.java/buggy/core/src/main/java/org/apache/ldap/server/collective/CollectiveAttributeService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
2791,
12,
18053,
1042,
1103,
16,
29740,
563,
16,
5167,
16795,
11022,
262,
7734,
1216,
26890,
3639,
288,
5411,
309,
261,
11022,
18,
588,
28365,
2498,
1435,
422,
446,
262,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
1071,
1250,
2791,
12,
18053,
1042,
1103,
16,
29740,
563,
16,
5167,
16795,
11022,
262,
7734,
1216,
26890,
3639,
288,
5411,
309,
261,
11022,
18,
588,
28365,
2498,
1435,
422,
446,
262,
5411,
... | |
if(j + nextWordLen > 60) { | if (j + nextWordLen > 60) { | static void showMessageDialog(Component parent, String msg, String title, int flags) { if(msg.length() > 60) { StringBuffer buf = new StringBuffer(); int len = msg.length(); int j = 0; int i; for(i = 0; i < len; i++, j++) { char c = msg.charAt(i); buf.append(c); if(Character.isWhitespace(c)) { int remainder = len - i; int k; for(k = i + 1; k < len; k++) { if(Character.isWhitespace(msg.charAt(k))) { break; } } if(k < len) { int nextWordLen = k - i; if(j + nextWordLen > 60) { buf.append('\n'); j = 0; } } } } msg = buf.toString(); } JOptionPane.showMessageDialog(parent, msg, title, flags); } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
2405,
1079,
6353,
12,
1841,
982,
16,
514,
1234,
16,
21394,
514,
2077,
16,
509,
2943,
13,
288,
3639,
309,
12,
3576,
18,
2469,
1435,
405,
4752,
13,
288,
5411,
6674,
1681,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
2405,
1079,
6353,
12,
1841,
982,
16,
514,
1234,
16,
21394,
514,
2077,
16,
509,
2943,
13,
288,
3639,
309,
12,
3576,
18,
2469,
1435,
405,
4752,
13,
288,
5411,
6674,
1681,
273,
... |
public void run() { Task newTask = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), DESCRIPTION_DEFAULT, true); scheduleNewTask(newTask); Object selectedObject = null; TaskListView view = TaskListView.getFromActivePerspective(); if (view != null) { selectedObject = ((IStructuredSelection) view.getViewer().getSelection()).getFirstElement(); } if (selectedObject instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) selectedObject); } else if (selectedObject instanceof ITask) { ITask task = (ITask) selectedObject; if (task.getContainer() instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) task.getContainer()); } else if (view != null && view.getDrilledIntoCategory() instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) view.getDrilledIntoCategory()); } else { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, TasksUiPlugin.getTaskListManager().getTaskList().getRootCategory()); } } else if (view != null && view.getDrilledIntoCategory() instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) view.getDrilledIntoCategory()); } else { if (view != null && view.getDrilledIntoCategory() != null) { MessageDialog .openInformation(Display.getCurrent().getActiveShell(), TasksUiPlugin.TITLE_DIALOG, "The new task has been added to the root of the list, since tasks can not be added to a query."); } TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, TasksUiPlugin.getTaskListManager().getTaskList().getRootCategory()); } TaskUiUtil.openEditor(newTask, true); if (view != null) { view.getViewer().refresh(); view.setInRenameAction(true); view.getViewer().editElement(newTask, 4); view.setInRenameAction(false); } | public void run(IAction action) { run(); | public void run() { Task newTask = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), DESCRIPTION_DEFAULT, true); scheduleNewTask(newTask); Object selectedObject = null; TaskListView view = TaskListView.getFromActivePerspective(); if (view != null) { selectedObject = ((IStructuredSelection) view.getViewer().getSelection()).getFirstElement(); } if (selectedObject instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) selectedObject); } else if (selectedObject instanceof ITask) { ITask task = (ITask) selectedObject; if (task.getContainer() instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) task.getContainer()); } else if (view != null && view.getDrilledIntoCategory() instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) view.getDrilledIntoCategory()); } else { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, TasksUiPlugin.getTaskListManager().getTaskList().getRootCategory()); } } else if (view != null && view.getDrilledIntoCategory() instanceof TaskCategory) { TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, (TaskCategory) view.getDrilledIntoCategory()); } else { if (view != null && view.getDrilledIntoCategory() != null) { MessageDialog .openInformation(Display.getCurrent().getActiveShell(), TasksUiPlugin.TITLE_DIALOG, "The new task has been added to the root of the list, since tasks can not be added to a query."); } TasksUiPlugin.getTaskListManager().getTaskList().addTask(newTask, TasksUiPlugin.getTaskListManager().getTaskList().getRootCategory()); } TaskUiUtil.openEditor(newTask, true); if (view != null) { view.getViewer().refresh(); view.setInRenameAction(true); view.getViewer().editElement(newTask, 4); view.setInRenameAction(false); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/361c6ec2e7073ec246d53febe37ad9c793dafa31/NewLocalTaskAction.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewLocalTaskAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
2174,
394,
2174,
273,
394,
3837,
12,
6685,
13943,
3773,
18,
588,
2174,
682,
1318,
7675,
4507,
6303,
2174,
3259,
9334,
21736,
67,
5280,
16,
638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
202,
202,
2174,
394,
2174,
273,
394,
3837,
12,
6685,
13943,
3773,
18,
588,
2174,
682,
1318,
7675,
4507,
6303,
2174,
3259,
9334,
21736,
67,
5280,
16,
638,
... |
+ " requires a lock of type " + lockType + " for user " | + " requires must be locked to user " | public void assertLock(CmsObject cms, String resourceName, int lockType) { try { // get the actual resource from the VFS CmsResource res = cms.readResource(resourceName, CmsResourceFilter.ALL); CmsLock lock = cms.getLock(res); if (lockType == CmsLock.TYPE_UNLOCKED) { if (!lock.isNullLock()) { fail("[Lock " + resourceName + " must be unlocked]"); } } else if (lock.isNullLock() || lock.getType() != lockType || !lock.getUserId().equals(cms.getRequestContext().currentUser().getId())) { fail("[Lock " + resourceName + " requires a lock of type " + lockType + " for user " + cms.getRequestContext().currentUser().getId() + " but has a lock of type " + lock.getType() + " for user " + lock.getUserId() + "]"); } } catch (CmsException e) { fail("cannot read resource " + resourceName + " " + CmsException.getStackTraceAsString(e)); } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0a325deda5c054061b5c35a9c0aa5deed3c6eaad/OpenCmsTestCase.java/buggy/test/org/opencms/test/OpenCmsTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1815,
2531,
12,
4747,
921,
6166,
16,
514,
9546,
16,
509,
2176,
559,
13,
288,
3639,
775,
288,
5411,
368,
336,
326,
3214,
1058,
628,
326,
23567,
5411,
7630,
400,
273,
6166,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1815,
2531,
12,
4747,
921,
6166,
16,
514,
9546,
16,
509,
2176,
559,
13,
288,
3639,
775,
288,
5411,
368,
336,
326,
3214,
1058,
628,
326,
23567,
5411,
7630,
400,
273,
6166,
18,... |
if (ordinalExp != null) { if (ordinalExp instanceof MondrianDef.Column) { checkColumn((MondrianDef.Column) ordinalExp); } this.ordinalExp = ordinalExp; } else { this.ordinalExp = this.keyExp; } this.parentExp = parentExp; if (parentExp != null) { Util.assertTrue(!isAll, "'All' level '" + this + "' must not be parent-child"); Util.assertTrue(unique, "Parent-child level '" + this + "' must have uniqueMembers=\"true\""); } this.nullParentValue = nullParentValue; Util.assertPrecondition(parentExp != null || nullParentValue == null, | if (ordinalExp != null) { if (ordinalExp instanceof MondrianDef.Column) { checkColumn((MondrianDef.Column) ordinalExp); } this.ordinalExp = ordinalExp; } else { this.ordinalExp = this.keyExp; } this.parentExp = parentExp; if (parentExp != null) { Util.assertTrue(!isAll, "'All' level '" + this + "' must not be parent-child"); Util.assertTrue(unique, "Parent-child level '" + this + "' must have uniqueMembers=\"true\""); } this.nullParentValue = nullParentValue; Util.assertPrecondition(parentExp != null || nullParentValue == null, | RolapLevel(RolapHierarchy hierarchy, int depth, String name, MondrianDef.Expression keyExp, MondrianDef.Expression nameExp, MondrianDef.Expression ordinalExp, MondrianDef.Expression parentExp, String nullParentValue, MondrianDef.Closure xmlClosure, RolapProperty[] properties, int flags, HideMemberCondition hideMemberCondition, LevelType levelType) { Util.assertPrecondition(properties != null, "properties != null"); Util.assertPrecondition(hideMemberCondition != null, "hideMemberCondition != null"); Util.assertPrecondition(levelType != null, "levelType != null"); this.hierarchy = hierarchy; this.name = name; this.uniqueName = Util.makeFqName(hierarchy, name); if (keyExp instanceof MondrianDef.Column) { checkColumn((MondrianDef.Column) keyExp); } this.flags = flags; final boolean isAll = (flags & ALL) == ALL; this.unique = (flags & UNIQUE) == UNIQUE; this.depth = depth; this.keyExp = keyExp; if (nameExp != null) { if (nameExp instanceof MondrianDef.Column) { checkColumn((MondrianDef.Column) nameExp); } } this.nameExp = nameExp; if (ordinalExp != null) { if (ordinalExp instanceof MondrianDef.Column) { checkColumn((MondrianDef.Column) ordinalExp); } this.ordinalExp = ordinalExp; } else { this.ordinalExp = this.keyExp; } this.parentExp = parentExp; if (parentExp != null) { Util.assertTrue(!isAll, "'All' level '" + this + "' must not be parent-child"); Util.assertTrue(unique, "Parent-child level '" + this + "' must have uniqueMembers=\"true\""); } this.nullParentValue = nullParentValue; Util.assertPrecondition(parentExp != null || nullParentValue == null, "parentExp != null || nullParentValue == null"); this.xmlClosure = xmlClosure; for (int i = 0; i < properties.length; i++) { RolapProperty property = properties[i]; if (property.exp instanceof MondrianDef.Column) { checkColumn((MondrianDef.Column) property.exp); } } this.properties = properties; ArrayList list = new ArrayList(); for (Level level = this; level != null; level = level.getParentLevel()) { final Property[] levelProperties = level.getProperties(); for (int i = 0; i < levelProperties.length; i++) { final Property levelProperty = levelProperties[i]; Property existingProperty = lookupProperty( list, levelProperty.getName()); if (existingProperty == null) { list.add(levelProperty); } else if (existingProperty.getType() != levelProperty.getType()) { throw Util.newError( "Property " + this.getName() + "." + levelProperty.getName() + " overrides a " + "property with the same name but different type"); } } } this.inheritedProperties = (RolapProperty[]) list.toArray( RolapProperty.emptyArray); this.levelType = levelType; Dimension dim = hierarchy.getDimension(); if (dim.getDimensionType() == DimensionType.TimeDimension) { if (!levelType.isTime() && !isAll) { throw MondrianResource.instance() .newNonTimeLevelInTimeHierarchy(getUniqueName()); } } else if (dim.getDimensionType() == null) { // there was no dimension type assigned to the dimension // - check later } else { if (levelType.isTime()) { throw MondrianResource.instance() .newTimeLevelInNonTimeHierarchy(getUniqueName()); } } this.hideMemberCondition = hideMemberCondition; this.closedPeer = null; } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/RolapLevel.java/clean/src/main/mondrian/rolap/RolapLevel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
4984,
438,
2355,
12,
4984,
438,
12074,
9360,
16,
3639,
509,
3598,
16,
3639,
514,
508,
16,
3639,
490,
1434,
566,
304,
3262,
18,
2300,
498,
2966,
16,
3639,
490,
1434,
566,
304,
3262,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4984,
438,
2355,
12,
4984,
438,
12074,
9360,
16,
3639,
509,
3598,
16,
3639,
514,
508,
16,
3639,
490,
1434,
566,
304,
3262,
18,
2300,
498,
2966,
16,
3639,
490,
1434,
566,
304,
3262,... |
public org.quickfix.field.Factor getFactor() throws FieldNotFound { org.quickfix.field.Factor value = new org.quickfix.field.Factor(); | public quickfix.field.Factor getFactor() throws FieldNotFound { quickfix.field.Factor value = new quickfix.field.Factor(); | public org.quickfix.field.Factor getFactor() throws FieldNotFound { org.quickfix.field.Factor value = new org.quickfix.field.Factor(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatus.java/clean/src/java/src/quickfix/fix44/SecurityStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
6837,
2812,
3362,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
6837,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6837,
2812,
3362,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
6837,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18... |
if (typesToExportField == null) return initialTypesFieldValue; | if (typesToExportField == null) { return initialTypesFieldValue; } | public String getTypesFieldValue() { if (typesToExportField == null) return initialTypesFieldValue; return typesToExportField.getText(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WizardExportPage.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
20780,
13559,
1435,
288,
3639,
309,
261,
2352,
774,
6144,
974,
422,
446,
13,
5411,
327,
2172,
2016,
13559,
31,
3639,
327,
1953,
774,
6144,
974,
18,
588,
1528,
5621,
565,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
20780,
13559,
1435,
288,
3639,
309,
261,
2352,
774,
6144,
974,
422,
446,
13,
5411,
327,
2172,
2016,
13559,
31,
3639,
327,
1953,
774,
6144,
974,
18,
588,
1528,
5621,
565,
289,
... |
result = CONVERSION_NONTRIVIAL; | return CONVERSION_NONTRIVIAL; | public static int getConversionWeight(Object fromObj, Class to) { int fromCode = getJSTypeCode(fromObj); int result = CONVERSION_NONE; switch (fromCode) { case JSTYPE_UNDEFINED: if (to == ScriptRuntime.StringClass || to == ScriptRuntime.ObjectClass) { result = 1; } break; case JSTYPE_NULL: if (!to.isPrimitive()) { result = 1; } break; case JSTYPE_BOOLEAN: // "boolean" is #1 if (to == Boolean.TYPE) { result = 1; } else if (to == ScriptRuntime.BooleanClass) { result = 2; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_NUMBER: if (to.isPrimitive()) { if (to == Double.TYPE) { result = 1; } else if (to != Boolean.TYPE) { result = 1 + getSizeRank(to); } } else { if (to == ScriptRuntime.StringClass) { // native numbers are #1-8 result = 9; } else if (to == ScriptRuntime.ObjectClass) { result = 10; } else if (ScriptRuntime.NumberClass.isAssignableFrom(to)) { // "double" is #1 result = 2; } } break; case JSTYPE_STRING: if (to == ScriptRuntime.StringClass) { result = 1; } else if (to.isInstance(fromObj)) { result = 2; } else if (to.isPrimitive()) { if (to == Character.TYPE) { result = 3; } else if (to != Boolean.TYPE) { result = 4; } } break; case JSTYPE_JAVA_CLASS: if (to == ScriptRuntime.ClassClass) { result = 1; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_JAVA_OBJECT: case JSTYPE_JAVA_ARRAY: if (to == ScriptRuntime.StringClass) { result = 2; } else if (to.isPrimitive() && to != Boolean.TYPE) { result = (fromCode == JSTYPE_JAVA_ARRAY) ? CONVERSION_NONTRIVIAL : 2 + getSizeRank(to); } else { Object javaObj = fromObj; if (javaObj instanceof Wrapper) { javaObj = ((Wrapper)javaObj).unwrap(); } if (to.isInstance(javaObj)) { result = CONVERSION_NONTRIVIAL; } } break; case JSTYPE_OBJECT: // Other objects takes #1-#3 spots if (to.isArray()) { if (fromObj instanceof NativeArray) { // This is a native array conversion to a java array // Array conversions are all equal, and preferable to object // and string conversion, per LC3. result = 1; } } else if (to == ScriptRuntime.ObjectClass) { result = 2; } else if (to == ScriptRuntime.StringClass) { result = 3; } else if (to == ScriptRuntime.DateClass) { if (fromObj instanceof NativeDate) { // This is a native date to java date conversion result = 1; } } else if (to.isPrimitive() || to != Boolean.TYPE) { result = 3 + getSizeRank(to); } break; } return result; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/11eddf0c611b2537267e99835d22096964c80528/NativeJavaObject.java/buggy/src/org/mozilla/javascript/NativeJavaObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
30257,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273,
3492,
5757,
67,
9826,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
30257,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273,
3492,
5757,
67,
9826,
31... |
if (gb != null) gb.firePropertyChange(this, Component.PROPERTY_VISIBLE, oldVisible, visible); | if (gb != null) gb.firePropertyChange(this, PROPERTY_COLUMN_VISIBLE, oldVisible, visible); | public void setVisible(boolean visible) { boolean oldVisible = this.visible; GridBox gb = (GridBox) getParent(); this.visible = visible; if (gb != null) gb.firePropertyChange(this, Component.PROPERTY_VISIBLE, oldVisible, visible); } | 51553 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51553/f1f0c95a57d8d7a88b8db0d8dac14769628aba36/GridBox.java/buggy/src/thinwire/ui/GridBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
16697,
12,
6494,
6021,
13,
288,
5411,
1250,
1592,
6207,
273,
333,
18,
8613,
31,
5411,
7145,
3514,
21649,
273,
261,
6313,
3514,
13,
5089,
5621,
5411,
333,
18,
8613,
273,
6021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16697,
12,
6494,
6021,
13,
288,
5411,
1250,
1592,
6207,
273,
333,
18,
8613,
31,
5411,
7145,
3514,
21649,
273,
261,
6313,
3514,
13,
5089,
5621,
5411,
333,
18,
8613,
273,
6021,
... |
this.cellsFitPage = fitPage; | this.cellsFitPage = fitPage; | public void setCellsFitPage(boolean fitPage) { this.cellsFitPage = fitPage; } | 3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/ed86dfb474e6fa22e1797452482e751a297a7e1f/Table.java/clean/itext/src/com/lowagie/text/Table.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
10505,
14219,
1964,
12,
6494,
4845,
1964,
13,
288,
3639,
333,
18,
14741,
14219,
1964,
273,
4845,
1964,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
10505,
14219,
1964,
12,
6494,
4845,
1964,
13,
288,
3639,
333,
18,
14741,
14219,
1964,
273,
4845,
1964,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return new EntityReferenceImpl(location, name, null, null, null, replacementText); | return new EntityReferenceImpl(location, declaration, name); | public EntityReference createEntityReference(String name, //EntityDeclaration declaration) String replacementText) { //return new EntityReferenceImpl(location, declaration, name); return new EntityReferenceImpl(location, name, null, null, null, replacementText); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/85b35b1bda7ca489cbe770303289ed28c2a49363/XMLEventFactoryImpl.java/buggy/gnu/xml/stream/XMLEventFactoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3887,
2404,
752,
1943,
2404,
12,
780,
508,
16,
4766,
9079,
368,
1943,
6094,
8266,
13,
4766,
9079,
514,
6060,
1528,
13,
225,
288,
565,
368,
2463,
394,
3887,
2404,
2828,
12,
3562,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3887,
2404,
752,
1943,
2404,
12,
780,
508,
16,
4766,
9079,
368,
1943,
6094,
8266,
13,
4766,
9079,
514,
6060,
1528,
13,
225,
288,
565,
368,
2463,
394,
3887,
2404,
2828,
12,
3562,
1... |
if (methodName == VM_MagicNames.getMemoryWord) { | if (methodName == VM_MagicNames.getMemoryInt || methodName == VM_MagicNames.getMemoryWord || methodName == VM_MagicNames.getMemoryAddress) { | private final boolean genMagic (VM_MethodReference m) { VM_Atom methodName = m.getName(); if (methodName == VM_MagicNames.attempt) { // attempt gets called with four arguments // base // offset // oldVal // newVal // returns ([base+offset] == oldVal) // if ([base+offset] == oldVal) [base+offset] := newVal // (operation on memory is atomic) asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPXCNG asm.emitPOP_Reg (S0); // S0 = offset asm.emitADD_Reg_RegInd(S0, SP); // S0 += base if (VM.BuildForSingleVirtualProcessor) { asm.emitMOV_RegInd_Reg (S0, T1); // simply a store on uniprocessor (need not be atomic or cmp/xchg) asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) } else { asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); } return true; } if (methodName == VM_MagicNames.invokeMain) { // invokeMain gets "called" with two arguments: // String[] mainArgs // the arguments to the main method // INSTRUCTION[] mainCode // the code for the main method asm.emitPOP_Reg (S0); // genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_Reg(S0); // branches to mainCode with mainArgs on the stack return true; } if (methodName == VM_MagicNames.saveThreadState) { int offset = VM_Entrypoints.saveThreadStateInstructionsField.getOffset(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.threadSwitch) { int offset = VM_Entrypoints.threadSwitchInstructionsField.getOffset(); genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.restoreHardwareExceptionState) { int offset = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField.getOffset(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeClassInitializer) { asm.emitPOP_Reg (S0); asm.emitCALL_Reg(S0); // call address just popped return true; } /* * sysCall0, sysCall1, sysCall2, sysCall3 and sysCall4 return * an integer (32 bits). * * hi mem * branch address <- SP * * before call to C * hi mem * branch address * saved ebx * saved pr * saved jtoc <- SP */ if (methodName == VM_MagicNames.sysCall0) { asm.emitMOV_Reg_Reg(T0, SP); // T0 <- SP asm.emitPUSH_Reg(EBX); // save three nonvolatiles: EBX asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(JTOC); // JTOC aka EDI asm.emitCALL_RegInd(T0); // branch to C code asm.emitPOP_Reg(JTOC); // restore the three nonvolatiles asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); asm.emitMOV_RegInd_Reg(SP, T0); // store return value return true; } if (methodName == VM_MagicNames.sysCall1) { asm.emitPOP_Reg(S0); // first and only argument asm.emitMOV_Reg_Reg(T0, SP); // T0 <- SP asm.emitPUSH_Reg(EBX); // save three nonvolatiles: EBX asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(JTOC); // JTOC aka EDI asm.emitPUSH_Reg(S0); // push arg on stack asm.emitCALL_RegInd(T0); // branch to C code asm.emitPOP_Reg(S0); // pop the argument asm.emitPOP_Reg(JTOC); // restore the three nonvolatiles asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); asm.emitMOV_RegInd_Reg(SP, T0); // store return value return true; } if (methodName == VM_MagicNames.sysCall2) { // C require its arguments reversed asm.emitPOP_Reg(T1); // second arg asm.emitPOP_Reg(S0); // first arg asm.emitMOV_Reg_Reg(T0, SP); // T0 <- SP asm.emitPUSH_Reg(EBX); // save three nonvolatiles: EBX asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(JTOC); // JTOC aka EDI asm.emitPUSH_Reg(T1); // reorder arguments for C asm.emitPUSH_Reg(S0); // reorder arguments for C asm.emitCALL_RegInd(T0); // branch to C code asm.emitADD_Reg_Imm(SP, WORDSIZE*2); // pop the arguments asm.emitPOP_Reg(JTOC); // restore the three nonvolatiles asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); asm.emitMOV_RegInd_Reg(SP, T0); // store return value return true; } if (methodName == VM_MagicNames.sysCall3) { // C require its arguments reversed asm.emitMOV_Reg_RegInd(T0, SP); // load 3rd arg asm.emitMOV_RegDisp_Reg(SP, -1*WORDSIZE, T0); // store 3rd arg asm.emitMOV_Reg_RegDisp(T0, SP, WORDSIZE); // load 2nd arg asm.emitMOV_RegDisp_Reg(SP, -2*WORDSIZE, T0); // store 2nd arg asm.emitMOV_Reg_RegDisp(T0, SP, 2*WORDSIZE); // load 1st arg asm.emitMOV_RegDisp_Reg(SP, -3*WORDSIZE, T0); // store 1st arg asm.emitMOV_Reg_Reg(T0, SP); // T0 <- SP asm.emitMOV_RegDisp_Reg(SP, 2*WORDSIZE, EBX); // save three nonvolatiles: EBX asm.emitMOV_RegDisp_Reg(SP, 1*WORDSIZE, ESI); asm.emitMOV_RegInd_Reg(SP, JTOC); // JTOC aka EDI asm.emitADD_Reg_Imm(SP, -3*WORDSIZE); // grow the stack asm.emitCALL_RegDisp(T0, 3*WORDSIZE); // fourth arg on stack is address to call asm.emitADD_Reg_Imm(SP, WORDSIZE*3); // pop the arguments asm.emitPOP_Reg(JTOC); // restore the three nonvolatiles asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); asm.emitMOV_RegInd_Reg(SP, T0); // store return value return true; } if (methodName == VM_MagicNames.sysCall4) { // C require its arguments reversed asm.emitMOV_Reg_RegDisp(T0, SP, WORDSIZE); // load 3rd arg asm.emitMOV_RegDisp_Reg(SP, -1*WORDSIZE, T0); // store 3th arg asm.emitMOV_Reg_RegDisp(T0, SP, 2*WORDSIZE); // load 2nd arg asm.emitMOV_RegDisp_Reg(SP, -2*WORDSIZE, T0); // store 2nd arg asm.emitMOV_Reg_RegDisp(T0, SP, 3*WORDSIZE); // load 1st arg asm.emitMOV_RegDisp_Reg(SP, -3*WORDSIZE, T0); // store 1st arg asm.emitMOV_Reg_Reg(T0, SP); // T0 <- SP asm.emitMOV_RegDisp_Reg(SP, 3*WORDSIZE, EBX); // save three nonvolatiles: EBX asm.emitMOV_RegDisp_Reg(SP, 2*WORDSIZE, ESI); asm.emitMOV_RegDisp_Reg(SP, 1*WORDSIZE, JTOC); // JTOC aka EDI asm.emitADD_Reg_Imm(SP, -3*WORDSIZE); // grow the stack asm.emitCALL_RegDisp(T0, 4*WORDSIZE); // fifth arg on stack is address to call asm.emitADD_Reg_Imm(SP, WORDSIZE*4); // pop the arguments asm.emitPOP_Reg(JTOC); // restore the three nonvolatiles asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); asm.emitMOV_RegInd_Reg(SP, T0); // store return value return true; } /* * sysCall_L_0 returns a long and takes no arguments */ if (methodName == VM_MagicNames.sysCall_L_0) { asm.emitMOV_Reg_Reg(T0, SP); asm.emitPUSH_Reg(EBX); // save three nonvolatiles: EBX asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(JTOC); // JTOC aka EDI asm.emitCALL_RegInd(T0); // first arg on stack is address to call asm.emitPOP_Reg(JTOC); // restore the three nonvolatiles asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); asm.emitMOV_RegInd_Reg(SP, T1); // store return value: hi half asm.emitPUSH_Reg(T0); // low half return true; } /* * sysCall_L_I returns a long and takes an integer argument */ if (methodName == VM_MagicNames.sysCall_L_I) { asm.emitPOP_Reg(S0); // the one integer argument asm.emitMOV_Reg_Reg(T0, SP); // T0 <- SP asm.emitPUSH_Reg(EBX); // save three nonvolatiles: EBX asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(JTOC); // JTOC aka EDI asm.emitPUSH_Reg(S0); // push arg on stack asm.emitCALL_RegInd(T0); // branch to C code asm.emitPOP_Reg(S0); // pop the argument asm.emitPOP_Reg(JTOC); // restore the three nonvolatiles asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); asm.emitMOV_RegInd_Reg(SP, T1); // store return value: hi half asm.emitPUSH_Reg(T0); // low half return true; } if (methodName == VM_MagicNames.sysCallAD) { // address, double // C require its arguments reversed asm.emitMOV_Reg_RegInd(T0, SP); // load 2nd arg asm.emitMOV_RegDisp_Reg(SP, -2*WORDSIZE, T0); // store 2nd arg asm.emitMOV_Reg_RegDisp(T0, SP, WORDSIZE); // load 2nd arg asm.emitMOV_RegDisp_Reg(SP, -1*WORDSIZE, T0); // store 2nd arg asm.emitMOV_Reg_RegDisp(T0, SP, 2*WORDSIZE); // load 1st arg asm.emitMOV_RegDisp_Reg(SP, -3*WORDSIZE, T0); // store 1st arg asm.emitMOV_Reg_Reg(T0, SP); // T0 <- SP asm.emitMOV_RegDisp_Reg(SP, 2*WORDSIZE, EBX); // save three nonvolatiles: EBX asm.emitMOV_RegDisp_Reg(SP, 1*WORDSIZE, ESI); asm.emitMOV_RegInd_Reg(SP, JTOC); // JTOC aka EDI asm.emitADD_Reg_Imm(SP, -3*WORDSIZE); // grow the stack asm.emitCALL_RegDisp(T0, 3*WORDSIZE); // 4th word on orig. stack is address to call asm.emitADD_Reg_Imm(SP, WORDSIZE*3); // pop the arguments asm.emitPOP_Reg(JTOC); // restore the three nonvolatiles asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); asm.emitMOV_RegInd_Reg(SP, T0); // store return value return true; } /* * A special version of sysCall2, for invoking sigWait and allowing * collection of the frame making the call. The signature of the * magic is shared between powerPC and intel to simplify the caller. * The signature is * address to "call" * toc or undefined for intel * address of a lock/barrier which will be passed to sigWait * value to store into the lock/barrier, also passed to sigWait. * the VM_Register object of the executing thread. * * The magic stores the current ip/fp into the VM_Register, to * allow collection of this thread from the current frame and below. * It then reverses the order of the two parameters on the stack to * conform to C calling convention, and finally invokes sigwait. * * stack: * low memory * ip -- address of sysPthreadSigWait in sys.C * toc -- * p1 -- address of lockword * p2 -- value to store in lockword * address of VM_Register object for this thread * high mem * This to be invoked from baseline code only. */ if (methodName == VM_MagicNames.sysCallSigWait) { int fpOffset = VM_Entrypoints.registersFPField.getOffset(); int ipOffset = VM_Entrypoints.registersIPField.getOffset(); int gprsOffset = VM_Entrypoints.registersGPRsField.getOffset(); asm.emitMOV_Reg_RegInd(T0, SP); // T0 <- context register obj @ asm.emitLEA_Reg_RegDisp(S0, SP, fp2spOffset(0)); // compute FP asm.emitMOV_RegDisp_Reg(T0, fpOffset, S0); // store fp in context asm.emitCALL_Imm (asm.getMachineCodeIndex() + 5); asm.emitPOP_Reg(T1); // T1 <- IP asm.emitMOV_RegDisp_Reg(T0, ipOffset, T1); // store ip in context asm.emitMOV_Reg_RegDisp(T0, T0, gprsOffset); // T0 <- grps array @ asm.emitMOV_Reg_RegDisp(T1, SP, WORDSIZE); // second arg asm.emitMOV_Reg_RegDisp(S0, SP, 2*WORDSIZE); // first arg asm.emitMOV_Reg_Reg(T0, SP); // T0 <- [sysPthreadSigWait @] asm.emitADD_Reg_Imm(T0, 4*WORDSIZE); asm.emitPUSH_Reg(JTOC); // save JTOC aka EDI asm.emitPUSH_Reg(T1); // reorder arguments for C asm.emitPUSH_Reg(S0); // reorder arguments for C asm.emitCALL_RegInd(T0); // branch to C code asm.emitADD_Reg_Imm(SP, WORDSIZE*2); // pop the arguments asm.emitPOP_Reg(JTOC); // restore JTOC asm.emitADD_Reg_Imm(SP, WORDSIZE*4); // pop all but last asm.emitMOV_RegInd_Reg(SP, T0); // overwrite last with return value return true; } if (methodName == VM_MagicNames.getFramePointer) { asm.emitLEA_Reg_RegDisp(S0, SP, fp2spOffset(0)); asm.emitPUSH_Reg (S0); return true; } if (methodName == VM_MagicNames.getCallerFramePointer) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_FRAME_POINTER_OFFSET); // Caller FP return true; } if (methodName == VM_MagicNames.setCallerFramePointer) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_FRAME_POINTER_OFFSET, T0); // [S0+SFPO] <- T0 return true; } if (methodName == VM_MagicNames.getCompiledMethodID) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_METHOD_ID_OFFSET); // Callee CMID return true; } if (methodName == VM_MagicNames.setCompiledMethodID) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_METHOD_ID_OFFSET, T0); // [S0+SMIO] <- T0 return true; } if (methodName == VM_MagicNames.getReturnAddressLocation) { asm.emitPOP_Reg(T0); // Callee FP asm.emitADD_Reg_Imm(T0, STACKFRAME_RETURN_ADDRESS_OFFSET); // location containing callee return address asm.emitPUSH_Reg(T0); // Callee return address return true; } if (methodName == VM_MagicNames.getTocPointer || methodName == VM_MagicNames.getJTOC ) { asm.emitPUSH_Reg(JTOC); return true; } if (methodName == VM_MagicNames.getThreadId) { VM_ProcessorLocalState.emitPushField(asm,VM_Entrypoints.threadIdField.getOffset()); return true; } // set the Thread id register (not really a register) if (methodName == VM_MagicNames.setThreadId) { VM_ProcessorLocalState.emitPopField(asm,VM_Entrypoints.threadIdField.getOffset()); return true; } // get the processor register (PR) if (methodName == VM_MagicNames.getProcessorRegister) { asm.emitPUSH_Reg(PR); return true; } // set the processor register (PR) if (methodName == VM_MagicNames.setProcessorRegister) { asm.emitPOP_Reg(PR); return true; } // Get the value in ESI if (methodName == VM_MagicNames.getESIAsProcessor) { asm.emitPUSH_Reg(ESI); return true; } // Set the value in ESI if (methodName == VM_MagicNames.setESIAsProcessor) { asm.emitPOP_Reg(ESI); return true; } if (methodName == VM_MagicNames.getIntAtOffset || methodName == VM_MagicNames.getObjectAtOffset || methodName == VM_MagicNames.getObjectArrayAtOffset || methodName == VM_MagicNames.prepare) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.getByteAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOV_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.setIntAtOffset || methodName == VM_MagicNames.setObjectAtOffset ) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 return true; } if (methodName == VM_MagicNames.setByteAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 return true; } if (methodName == VM_MagicNames.getLongAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if ((methodName == VM_MagicNames.setLongAtOffset) || (methodName == VM_MagicNames.setDoubleAtOffset)) { asm.emitMOV_Reg_RegInd (T0, SP); // value high asm.emitMOV_Reg_RegDisp(S0, SP, +8 ); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // obj ref asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +4 ); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations return true; } if (methodName == VM_MagicNames.getMemoryWord) { asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] return true; } if (methodName == VM_MagicNames.getMemoryAddress) { asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] return true; } if (methodName == VM_MagicNames.setMemoryWord) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 return true; } if (methodName == VM_MagicNames.setMemoryAddress) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 return true; } if (methodName == VM_MagicNames.objectAsAddress || methodName == VM_MagicNames.addressAsByteArray || methodName == VM_MagicNames.addressAsIntArray || methodName == VM_MagicNames.addressAsObject || methodName == VM_MagicNames.addressAsObjectArray || methodName == VM_MagicNames.addressAsType || methodName == VM_MagicNames.objectAsType || methodName == VM_MagicNames.objectAsShortArray || methodName == VM_MagicNames.objectAsByteArray || methodName == VM_MagicNames.objectAsIntArray || methodName == VM_MagicNames.addressAsThread || methodName == VM_MagicNames.objectAsThread || methodName == VM_MagicNames.objectAsProcessor ||//-#if RVM_WITH_JIKESRVM_MEMORY_MANAGERS methodName == VM_MagicNames.addressAsBlockControl || methodName == VM_MagicNames.addressAsSizeControl || methodName == VM_MagicNames.addressAsSizeControlArray ||//-#endif methodName == VM_MagicNames.threadAsCollectorThread || methodName == VM_MagicNames.addressAsRegisters || methodName == VM_MagicNames.addressAsStack || methodName == VM_MagicNames.floatAsIntBits || methodName == VM_MagicNames.intBitsAsFloat || methodName == VM_MagicNames.doubleAsLongBits || methodName == VM_MagicNames.longBitsAsDouble) { // no-op (a type change, not a representation change) return true; } // code for VM_Type VM_Magic.getObjectType(Object object) if (methodName == VM_MagicNames.getObjectType) { asm.emitPOP_Reg (T0); // object ref VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T0); asm.emitPUSH_RegDisp(S0, TIB_TYPE_INDEX<<LG_WORDSIZE); // push VM_Type slot of TIB return true; } if (methodName == VM_MagicNames.getArrayLength) { asm.emitPOP_Reg(T0); // object ref asm.emitPUSH_RegDisp(T0, VM_ObjectModel.getArrayLengthOffset()); return true; } if (methodName == VM_MagicNames.sync) { // nothing required on IA32 return true; } if (methodName == VM_MagicNames.isync) { // nothing required on IA32 return true; } // baseline compiled invocation only: all paramaters on the stack // hi mem // Code // GPRs // FPRs // Spills // low-mem if (methodName == VM_MagicNames.invokeMethodReturningVoid) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeMethodReturningInt) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningLong) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); // high half asm.emitPUSH_Reg(T1); // low half return true; } if (methodName == VM_MagicNames.invokeMethodReturningFloat) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningDouble) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningObject) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } // baseline invocation // one paramater, on the stack -- actual code if (methodName == VM_MagicNames.dynamicBridgeTo) { if (VM.VerifyAssertions) VM._assert(klass.isDynamicBridge()); // save the branch address for later asm.emitPOP_Reg (S0); // S0<-code address asm.emitADD_Reg_Imm(SP, fp2spOffset(0) - 4); // just popped 4 bytes above. // restore FPU state asm.emitFRSTOR_RegDisp(SP, FPU_SAVE_OFFSET); // restore GPRs asm.emitMOV_Reg_RegDisp (T0, SP, T0_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (T1, SP, T1_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); // pop frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffset()); // FP<-previous FP // branch asm.emitJMP_Reg (S0); return true; } if (methodName == VM_MagicNames.returnToNewStack) { // SP gets frame pointer for new stack asm.emitPOP_Reg (SP); // restore nonvolatile registers asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); // discard current stack frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffset()); // return to caller- pop parameters from stack asm.emitRET_Imm(parameterWords << LG_WORDSIZE); return true; } if (methodName == VM_MagicNames.roundToZero) { // Store the FPU Control Word to a JTOC slot asm.emitFNSTCW_RegDisp(JTOC, VM_Entrypoints.FPUControlWordField.getOffset()); // Set the bits in the status word that control round to zero. // Note that we use a 32-bit OR, even though we only care about the // low-order 16 bits asm.emitOR_RegDisp_Imm(JTOC,VM_Entrypoints.FPUControlWordField.getOffset(), 0x00000c00); // Now store the result back into the FPU Control Word asm.emitFLDCW_RegDisp(JTOC,VM_Entrypoints.FPUControlWordField.getOffset()); return true; } if (methodName == VM_MagicNames.clearFloatingPointState) { // Clear the hardware floating-point state asm.emitFNINIT(); return true; } if (methodName == VM_MagicNames.getTime) { VM.sysWrite("WARNING: VM_Compiler compiling unimplemented magic: getTime in " + method + "\n"); asm.emitMOV_RegInd_Imm(SP, 0); // TEMP!! for now, return 0 return true; } if (methodName == VM_MagicNames.getTimeBase) { asm.emitRDTSC(); // read timestamp counter instruction asm.emitPUSH_Reg(EDX); // upper 32 bits asm.emitPUSH_Reg(EAX); // lower 32 bits return true; } if (methodName == VM_MagicNames.wordFromInt || methodName == VM_MagicNames.wordToInt || methodName == VM_MagicNames.wordToAddress || methodName == VM_MagicNames.wordToWord) { // no-op return true; } if (methodName == VM_MagicNames.wordAnd) { asm.emitPOP_Reg(T0); asm.emitAND_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordOr) { asm.emitPOP_Reg(T0); asm.emitOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordXor) { asm.emitPOP_Reg(T0); asm.emitXOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordNot) { asm.emitNOT_RegInd (SP); return true; } if (methodName == VM_MagicNames.wordAdd) { asm.emitPOP_Reg(T0); asm.emitADD_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordSub || methodName == VM_MagicNames.wordDiff) { asm.emitPOP_Reg(T0); asm.emitSUB_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordZero) { asm.emitPUSH_Imm(0); return true; } if (methodName == VM_MagicNames.wordMax) { asm.emitPUSH_Imm(-1); return true; } if (methodName == VM_MagicNames.wordLT) { generateAddrComparison(asm.LLT); return true; } if (methodName == VM_MagicNames.wordLE) { generateAddrComparison(asm.LLE); return true; } if (methodName == VM_MagicNames.wordGT) { generateAddrComparison(asm.LGT); return true; } if (methodName == VM_MagicNames.wordGE) { generateAddrComparison(asm.LGE); return true; } if (methodName == VM_MagicNames.wordEQ) { generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordNE) { generateAddrComparison(asm.NE); return true; } if (methodName == VM_MagicNames.wordIsZero) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsMax) { asm.emitPUSH_Imm(-1); generateAddrComparison(asm.EQ); return true; } return false; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/82b734510ac9600511c6996f7cd13904a6e62ef7/VM_Compiler.java/buggy/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
3157,
19289,
261,
7397,
67,
1305,
2404,
312,
13,
288,
565,
8251,
67,
3641,
4918,
273,
312,
18,
17994,
5621,
565,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
1250,
3157,
19289,
261,
7397,
67,
1305,
2404,
312,
13,
288,
565,
8251,
67,
3641,
4918,
273,
312,
18,
17994,
5621,
565,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
11... |
warn("PMP Convention error: " + e.toString()); | logger.debug("PMP Convention error: " + e.toString()); | public void characterData (char ch[], int start, int length) { String s = toString(ch, start, length).trim(); System.out.println("Start PMP chardata (" + CurrentElement + ") :" + s); System.out.println(" ElTitle: " + elementTitle); if (CurrentElement == STRING && BUILTIN.equals("spacegroup")) { cdo.setObjectProperty("Crystal", "spacegroup", s); } else if (CurrentElement == FLOATARRAY && (elementTitle.equals("a") || elementTitle.equals("b") || elementTitle.equals("c"))) { String axis = elementTitle + "-axis"; cdo.startObject(axis); try { StringTokenizer st = new StringTokenizer(s); System.out.println("Tokens: " + st.countTokens()); if (st.countTokens() > 2) { String token = st.nextToken(); warn("FloatArray (Token): " + token); cdo.setObjectProperty(axis, "x", token); token = st.nextToken(); warn("FloatArray (Token): " + token); cdo.setObjectProperty(axis, "y", token); token = st.nextToken(); warn("FloatArray (Token): " + token); cdo.setObjectProperty(axis, "z", token); } else { warn("PMP Convention error: incorrect number of cell axis fractions!\n"); } } catch (Exception e) { warn("PMP Convention error: " + e.toString()); } cdo.endObject(axis); } else { super.characterData(ch, start, length); } System.out.println("End PMP chardata"); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/e04a2bbd6afdac34488441c1ce22ad5f73d254ff/PMPConvention.java/clean/org/openscience/cdk/io/cml/PMPConvention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3351,
751,
261,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
288,
202,
780,
272,
273,
1762,
12,
343,
16,
787,
16,
769,
2934,
5290,
5621,
202,
3163,
18,
659,
18,
8222,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3351,
751,
261,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
288,
202,
780,
272,
273,
1762,
12,
343,
16,
787,
16,
769,
2934,
5290,
5621,
202,
3163,
18,
659,
18,
8222,
... |
JOptionPane pane = new JOptionPane(message, messageType); | JOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE); | public static String showInputDialog(Component parentComponent, Object message, String title, int messageType) { JOptionPane pane = new JOptionPane(message, messageType); pane.setWantsInput(true); JDialog dialog = pane.createDialog(parentComponent, title); dialog.pack(); dialog.show(); return (String) pane.getInputValue(); } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/a0a040160e6587688c585243fc9558a7195ab5d7/JOptionPane.java/buggy/libjava/javax/swing/JOptionPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
2405,
1210,
6353,
12,
1841,
982,
1841,
16,
4766,
4202,
1033,
883,
16,
514,
2077,
16,
4766,
4202,
509,
22402,
13,
225,
288,
565,
804,
1895,
8485,
13618,
273,
394,
804,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
2405,
1210,
6353,
12,
1841,
982,
1841,
16,
4766,
4202,
1033,
883,
16,
514,
2077,
16,
4766,
4202,
509,
22402,
13,
225,
288,
565,
804,
1895,
8485,
13618,
273,
394,
804,
18... |
public org.quickfix.field.StrikeCurrency getStrikeCurrency() throws FieldNotFound { org.quickfix.field.StrikeCurrency value = new org.quickfix.field.StrikeCurrency(); | public quickfix.field.StrikeCurrency getStrikeCurrency() throws FieldNotFound { quickfix.field.StrikeCurrency value = new quickfix.field.StrikeCurrency(); | public org.quickfix.field.StrikeCurrency getStrikeCurrency() throws FieldNotFound { org.quickfix.field.StrikeCurrency value = new org.quickfix.field.StrikeCurrency(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassStatusRequest.java/clean/src/java/src/quickfix/fix44/OrderMassStatusRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1585,
2547,
7623,
24017,
2547,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1585,
2547,
7623,
460,
273,
394,
2358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1585,
2547,
7623,
24017,
2547,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1585,
2547,
7623,
460,
273,
394,
2358,... |
printCellContents(crosstab, header, grx, x, y, false, y == 0 && crosstab.getHeaderCell() == null); | printCellContents(header, grx, x, y, false, y == 0 && crosstab.getHeaderCell() == null); | private void printCrosstabRows(JRCrosstab crosstab, Graphics2D grx, int rowHeadersXOffset) { JRCrosstabRowGroup[] groups = crosstab.getRowGroups(); for (int i = 0, x = 0, y = 0; i < groups.length; i++) { JRCrosstabRowGroup group = groups[i]; if (group.getTotalPosition() == BucketDefinition.TOTAL_POSITION_START) { JRCellContents totalHeader = group.getTotalHeader(); printCellContents(crosstab, totalHeader, grx, x, y, false, y == 0 && crosstab.getHeaderCell() == null); printCrosstabDataCellsRow(crosstab, grx, rowHeadersXOffset, y, i); y += totalHeader.getHeight(); } JRCellContents header = group.getHeader(); printCellContents(crosstab, header, grx, x, y, false, y == 0 && crosstab.getHeaderCell() == null); if (i == groups.length - 1) { printCrosstabDataCellsRow(crosstab, grx, rowHeadersXOffset, y, groups.length); } if (group.getTotalPosition() == BucketDefinition.TOTAL_POSITION_END) { JRCellContents totalHeader = group.getTotalHeader(); printCellContents(crosstab, totalHeader, grx, x, y + header.getHeight(), false, false); printCrosstabDataCellsRow(crosstab, grx, rowHeadersXOffset, y + header.getHeight(), i); } x += group.getWidth(); } } | 10789 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10789/199132b357dfd806a918766349632b1a08fa5ab7/JRDesignViewer.java/clean/jasperreports/src/net/sf/jasperreports/view/JRDesignViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1172,
39,
6973,
334,
378,
4300,
12,
46,
11529,
6973,
334,
378,
30783,
334,
378,
16,
16830,
22,
40,
3821,
92,
16,
509,
1027,
3121,
60,
2335,
13,
202,
95,
202,
202,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
39,
6973,
334,
378,
4300,
12,
46,
11529,
6973,
334,
378,
30783,
334,
378,
16,
16830,
22,
40,
3821,
92,
16,
509,
1027,
3121,
60,
2335,
13,
202,
95,
202,
202,
46,
... |
if (event.getJob().getResult().equals(Status.OK_STATUS)) { | if (event.getJob().getResult().getCode() == Status.OK && event.getJob().getResult().getMessage() != null) { | public void submitBug() { if (isDirty()) { this.doSave(new NullProgressMonitor()); } updateBug(); submitButton.setEnabled(false); ExistingBugEditor.this.showBusy(true); BugzillaReportSubmitForm bugzillaReportSubmitForm; try { if (taskData.isLocallyCreated()) { boolean wrap = IBugzillaConstants.BugzillaServerVersion.SERVER_218.equals(repository.getVersion()); bugzillaReportSubmitForm = BugzillaReportSubmitForm.makeNewBugPost(repository.getUrl(), repository .getUserName(), repository.getPassword(), editorInput.getProxySettings(), repository .getCharacterEncoding(), taskData, wrap); } else { bugzillaReportSubmitForm = BugzillaReportSubmitForm.makeExistingBugPost(taskData, repository.getUrl(), repository.getUserName(), repository.getPassword(), editorInput.getProxySettings(), removeCC, repository.getCharacterEncoding()); } } catch (UnsupportedEncodingException e) { // should never get here but just in case... MessageDialog.openError(null, "Posting Error", "Ensure proper encoding selected in " + TaskRepositoriesView.NAME + "."); return; } final BugzillaRepositoryConnector bugzillaRepositoryClient = (BugzillaRepositoryConnector) MylarTaskListPlugin .getRepositoryManager().getRepositoryConnector(BugzillaPlugin.REPOSITORY_KIND); IJobChangeListener closeEditorListener = new IJobChangeListener() { public void done(final IJobChangeEvent event) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if (event.getJob().getResult().equals(Status.OK_STATUS)) { close(); } else { submitButton.setEnabled(true); ExistingBugEditor.this.showBusy(false); } } }); } public void aboutToRun(IJobChangeEvent event) { // ignore } public void awake(IJobChangeEvent event) { // ignore } public void running(IJobChangeEvent event) { // ignore } public void scheduled(IJobChangeEvent event) { // ignore } public void sleeping(IJobChangeEvent event) { // ignore } }; bugzillaRepositoryClient.submitBugReport(taskData, bugzillaReportSubmitForm, closeEditorListener); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/1d2c54ecf6f4ebb7f907c065bf563708a0cddbb6/ExistingBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4879,
19865,
1435,
288,
202,
202,
430,
261,
291,
10785,
10756,
288,
1082,
202,
2211,
18,
2896,
4755,
12,
2704,
4112,
5491,
7187,
10663,
202,
202,
97,
202,
202,
2725,
19865,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4879,
19865,
1435,
288,
202,
202,
430,
261,
291,
10785,
10756,
288,
1082,
202,
2211,
18,
2896,
4755,
12,
2704,
4112,
5491,
7187,
10663,
202,
202,
97,
202,
202,
2725,
19865,... |
assertEquals("length getBytes", 2, result.length); assertEquals("first byte getBytes", 0x34, result[0]); assertEquals("second byte getBytes", 0x12, result[1]); | assertEquals( "length getBytes", 2, result.length ); assertEquals( "first byte getBytes", 0x34, result[ 0 ] ); assertEquals( "second byte getBytes", 0x12, result[ 1 ] ); | public void testToBytes() { ZipShort zs = new ZipShort(0x1234); byte[] result = zs.getBytes(); assertEquals("length getBytes", 2, result.length); assertEquals("first byte getBytes", 0x34, result[0]); assertEquals("second byte getBytes", 0x12, result[1]); } | 10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/ZipShortTest.java/clean/src/test/java/org/codehaus/plexus/archiver/zip/ZipShortTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
21033,
1435,
288,
3639,
8603,
4897,
998,
87,
273,
394,
8603,
4897,
12,
20,
92,
28462,
1769,
3639,
1160,
8526,
563,
273,
998,
87,
18,
588,
2160,
5621,
3639,
1815,
8867,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21033,
1435,
288,
3639,
8603,
4897,
998,
87,
273,
394,
8603,
4897,
12,
20,
92,
28462,
1769,
3639,
1160,
8526,
563,
273,
998,
87,
18,
588,
2160,
5621,
3639,
1815,
8867,
... |
public String getReadonlyExpr() { return (readonlyExpr); } | public String getReadonlyExpr() { return (readonlyExpr); } | public String getReadonlyExpr() { return (readonlyExpr); } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELTextareaTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextareaTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
514,
282,
19900,
3700,
4742,
1435,
288,
327,
261,
16365,
4742,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
514,
282,
19900,
3700,
4742,
1435,
288,
327,
261,
16365,
4742,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public Container getContainer(); | Container getContainer(); | public Container getContainer(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/BeanContextContainerProxy.java/buggy/core/src/classpath/java/java/beans/beancontext/BeanContextContainerProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4039,
9272,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4039,
9272,
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,
-1... |
InsertHandler rh = new InsertHandler(m, id, node); | InsertHandler rh = new InsertHandler(m, id, node, now); | private boolean handleInsertRequest(Message m) { long id = m.getLong(DMT.UID); if(node.recentlyCompleted(id)) { Message rejected = DMT.createFNPRejectedLoop(id); try { ((PeerNode)(m.getSource())).sendAsync(rejected, null); } catch (NotConnectedException e) { Logger.normal(this, "Rejecting insert request: "+e); } } if(!node.lockUID(id)) { Logger.minor(this, "Could not lock ID "+id); return false; } InsertHandler rh = new InsertHandler(m, id, node); Thread t = new Thread(rh, "InsertHandler for "+id+" on "+node.portNumber); t.setDaemon(true); t.start(); Logger.minor(this, "Started InsertHandler for "+id); return true; } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/f82d43713da81d5da5e7d7bf206d70f81e40f4ea/NodeDispatcher.java/buggy/src/freenet/node/NodeDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1640,
4600,
691,
12,
1079,
312,
13,
288,
3639,
1525,
612,
273,
312,
18,
588,
3708,
12,
40,
6152,
18,
3060,
1769,
3639,
309,
12,
2159,
18,
20872,
715,
9556,
12,
350,
3719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1640,
4600,
691,
12,
1079,
312,
13,
288,
3639,
1525,
612,
273,
312,
18,
588,
3708,
12,
40,
6152,
18,
3060,
1769,
3639,
309,
12,
2159,
18,
20872,
715,
9556,
12,
350,
3719,
... |
public void transfer(BasicBlock basicBlock, InstructionHandle end, IsNullValueFrame start, IsNullValueFrame result) | public void transfer(BasicBlock basicBlock, @CheckForNull InstructionHandle end, IsNullValueFrame start, IsNullValueFrame result) | public void transfer(BasicBlock basicBlock, InstructionHandle end, IsNullValueFrame start, IsNullValueFrame result) throws DataflowAnalysisException { startTransfer(); super.transfer(basicBlock, end, start, result); endTransfer(basicBlock, end, result); ValueNumberFrame vnaFrameAfter = vnaDataflow.getFactAfterLocation(Location.getLastLocation(basicBlock)); // purge stale information if (!vnaFrameAfter.isTop()) result.cleanStaleKnowledge(vnaFrameAfter); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/6b26802f2cdc35f27067407c799b0a04b6ad1e50/IsNullValueAnalysis.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/npe/IsNullValueAnalysis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7412,
12,
8252,
1768,
5337,
1768,
16,
24605,
3259,
679,
16,
30230,
620,
3219,
787,
16,
30230,
620,
3219,
563,
13,
202,
15069,
1910,
2426,
9418,
503,
288,
202,
202,
1937,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
12,
8252,
1768,
5337,
1768,
16,
24605,
3259,
679,
16,
30230,
620,
3219,
787,
16,
30230,
620,
3219,
563,
13,
202,
15069,
1910,
2426,
9418,
503,
288,
202,
202,
1937,
... |
public org.quickfix.field.LegInstrRegistry getLegInstrRegistry() throws FieldNotFound { org.quickfix.field.LegInstrRegistry value = new org.quickfix.field.LegInstrRegistry(); | public quickfix.field.LegInstrRegistry getLegInstrRegistry() throws FieldNotFound { quickfix.field.LegInstrRegistry value = new quickfix.field.LegInstrRegistry(); | public org.quickfix.field.LegInstrRegistry getLegInstrRegistry() throws FieldNotFound { org.quickfix.field.LegInstrRegistry value = new org.quickfix.field.LegInstrRegistry(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix44/CrossOrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
336,
8329,
382,
701,
4243,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
336,
8329,
382,
701,
4243,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
382,
701,
4243,
46... |
&& field.declarationSourceStart <= scanner.initialPosition && scanner.initialPosition <= field.declarationSourceEnd && scanner.eofPosition <= field.declarationSourceEnd+1){ | && field.declarationSourceStart <= this.scanner.initialPosition && this.scanner.initialPosition <= field.declarationSourceEnd && this.scanner.eofPosition <= field.declarationSourceEnd+1){ | public RecoveredElement buildInitialRecoveryState(){ /* initialize recovery by retrieving available reduced nodes * also rebuild bracket balance */ lastCheckPoint = 0; RecoveredElement element = null; if (referenceContext instanceof CompilationUnitDeclaration){ element = new RecoveredUnit(compilationUnit, 0, this); /* ignore current stack state, since restarting from the beginnning since could not trust simple brace count */ if (true){ // experimenting restart recovery from scratch compilationUnit.currentPackage = null; compilationUnit.imports = null; compilationUnit.types = null; currentToken = 0; listLength = 0; endPosition = 0; endStatementPosition = 0; return element; } if (compilationUnit.currentPackage != null){ lastCheckPoint = compilationUnit.currentPackage.declarationSourceEnd+1; } if (compilationUnit.imports != null){ lastCheckPoint = compilationUnit.imports[compilationUnit.imports.length -1].declarationSourceEnd+1; } } else { if (referenceContext instanceof AbstractMethodDeclaration){ element = new RecoveredMethod((AbstractMethodDeclaration) referenceContext, null, 0, this); lastCheckPoint = ((AbstractMethodDeclaration) referenceContext).bodyStart; } else { /* Initializer bodies are parsed in the context of the type declaration, we must thus search it inside */ if (referenceContext instanceof TypeDeclaration){ TypeDeclaration type = (TypeDeclaration) referenceContext; for (int i = 0; i < type.fields.length; i++){ FieldDeclaration field = type.fields[i]; if (field != null && !field.isField() && field.declarationSourceStart <= scanner.initialPosition && scanner.initialPosition <= field.declarationSourceEnd && scanner.eofPosition <= field.declarationSourceEnd+1){ element = new RecoveredInitializer(field, null, 1, this); lastCheckPoint = field.declarationSourceStart; break; } } } } } if (element == null) return element; for(int i = 0; i <= astPtr; i++){ ASTNode node = astStack[i]; if (node instanceof AbstractMethodDeclaration){ AbstractMethodDeclaration method = (AbstractMethodDeclaration) node; if (method.declarationSourceEnd == 0){ element = element.add(method, 0); lastCheckPoint = method.bodyStart; } else { element = element.add(method, 0); lastCheckPoint = method.declarationSourceEnd + 1; } continue; } if (node instanceof Initializer){ Initializer initializer = (Initializer) node; if (initializer.declarationSourceEnd == 0){ element = element.add(initializer, 1); lastCheckPoint = initializer.sourceStart; } else { element = element.add(initializer, 0); lastCheckPoint = initializer.declarationSourceEnd + 1; } continue; } if (node instanceof FieldDeclaration){ FieldDeclaration field = (FieldDeclaration) node; if (field.declarationSourceEnd == 0){ element = element.add(field, 0); if (field.initialization == null){ lastCheckPoint = field.sourceEnd + 1; } else { lastCheckPoint = field.initialization.sourceEnd + 1; } } else { element = element.add(field, 0); lastCheckPoint = field.declarationSourceEnd + 1; } continue; } if (node instanceof TypeDeclaration){ TypeDeclaration type = (TypeDeclaration) node; if (type.declarationSourceEnd == 0){ element = element.add(type, 0); lastCheckPoint = type.bodyStart; } else { element = element.add(type, 0); lastCheckPoint = type.declarationSourceEnd + 1; } continue; } if (node instanceof ImportReference){ ImportReference importRef = (ImportReference) node; element = element.add(importRef, 0); lastCheckPoint = importRef.declarationSourceEnd + 1; } } return element;} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/72d09911302484497c2776b017dc226fd10250ec/Parser.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
868,
16810,
1046,
1361,
4435,
11548,
1119,
1435,
95,
202,
20308,
4046,
11044,
635,
17146,
2319,
13162,
2199,
3196,
380,
2546,
13419,
9843,
11013,
3196,
1195,
202,
2722,
1564,
2148,
273,
374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
868,
16810,
1046,
1361,
4435,
11548,
1119,
1435,
95,
202,
20308,
4046,
11044,
635,
17146,
2319,
13162,
2199,
3196,
380,
2546,
13419,
9843,
11013,
3196,
1195,
202,
2722,
1564,
2148,
273,
374,... |
Driver.debug("nullPlusNonNullIsNull " + true); | if (Driver.logDebug) Driver.debug("nullPlusNonNullIsNull " + true); | public boolean nullPlusNonNullIsNull() throws SQLException { Driver.debug("nullPlusNonNullIsNull " + true); return true; } | 46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
446,
13207,
8921,
2520,
2041,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
2011,
13207,
8921,
2520,
2041,
315,
397,
638,
1769,
202,
202,
2463,
638,
31,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
446,
13207,
8921,
2520,
2041,
1435,
1216,
6483,
202,
95,
202,
202,
4668,
18,
4148,
2932,
2011,
13207,
8921,
2520,
2041,
315,
397,
638,
1769,
202,
202,
2463,
638,
31,
202,
... |
ObservableTracker.getterCalled(this); | getterCalled(); | public Set keySet() { ObservableTracker.getterCalled(this); return wrappedMap.keySet(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/646de6c1228ca0820a97e225df84d75e3993e272/ObservableMap.java/clean/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/map/ObservableMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1000,
7685,
1435,
288,
202,
202,
15279,
8135,
18,
11990,
8185,
12,
2211,
1769,
202,
202,
2463,
5805,
863,
18,
856,
694,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
1000,
7685,
1435,
288,
202,
202,
15279,
8135,
18,
11990,
8185,
12,
2211,
1769,
202,
202,
2463,
5805,
863,
18,
856,
694,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
new OPT_BranchProfileOperand(1.0f - 1.0f / unrollFactor))); | new OPT_BranchProfileOperand(1.0f - 1.0f / (unrollFactor/2)))); | static boolean unrollLeaf(OPT_LSTNode t, OPT_IR ir) { int instructionsInLoop = 0; OPT_BasicBlock exitBlock = null, succBlock = null, predBlock = null; OPT_BitVector nloop = t.loop; OPT_BasicBlock header = t.header; OPT_Instruction tmp; if (nloop == null) return false; // examine what we got... report ("Leaf loop in " + ir.method + ": "+nloop+"\n"); if (ir.hasReachableExceptionHandlers()){ report ("0 IR may have exception handlers\n"); return false;} // determine loop structure by looking at its blocks OPT_BasicBlockEnumeration loopBlocks = ir.getBasicBlocks(nloop); int blocks = 0; while (loopBlocks.hasMoreElements()) { OPT_BasicBlock b = loopBlocks.next(); blocks++; // check infrequency if (false && b.getInfrequent()) { report("no unrolling in infrequent code\n"); return false; } // check for size instructionsInLoop += b.getNumberOfRealInstructions(); if (instructionsInLoop > MaxInstructions) { report ("1 is too big\n"); return false;} // look at the in edges. We want the header to be the only // block with out of loop incoming edges. OPT_BasicBlockEnumeration e = b.getIn(); if (b != header) { while (e.hasMoreElements()) { OPT_BasicBlock o = e.next(); if (!OPT_CFGTransformations.inLoop (o, nloop)) { report ("2 interior pointers.\n"); return true;} } } else { // check the headers predecessors: there should be // one out of loop input and one backedge. // We can extend this for loops with several backedges, // if they all have the same conditions. int inEdges = 0; while (e.hasMoreElements()) { inEdges++; OPT_BasicBlock o = e.next(); if (!OPT_CFGTransformations.inLoop (o, nloop)) { if (predBlock == null) predBlock = o; else {report ("3 multi entry header.\n"); return true;} } else { if (exitBlock == null) exitBlock = o; else {report ("4 multiple back edges.\n"); return true;} } } } } // exitBlock must exit //while (exitBlock.getNumberOfOut() == 1 && exitBlock.getNumberOfIn() == 1) // exitBlock = exitBlock.getIn().next(); OPT_BasicBlockEnumeration e = exitBlock.getOut(); boolean exits = false; while (e.hasMoreElements()) { OPT_BasicBlock b = e.next(); if (!OPT_CFGTransformations.inLoop (b, nloop)) {exits = true; break;} } if (!exits) {report ("5 exitBlock doesn't exit\n"); return true;} if (exitBlock == header && blocks > 1) { report("6 while loop? ("+blocks+")\n"); return true;} // So far, so good. Examine the exit test. OPT_Instruction origBranch = exitBlock.firstBranchInstruction(); if (origBranch != exitBlock.lastRealInstruction()) { OPT_Instruction aGoto = origBranch.nextInstructionInCodeOrder(); if (aGoto.operator.opcode != GOTO_opcode) { report ("7 too complex exit\n"); return true;} succBlock = Label.getBlock(Goto.getTarget(aGoto).target).block; if (VM.VerifyAssertions) VM.assert (aGoto == exitBlock.lastRealInstruction()); } else { succBlock = exitBlock.getFallThroughBlock(); } if (origBranch.operator.opcode != INT_IFCMP_opcode) { report("8 branch isn't int_ifcmp: "+origBranch.operator+".\n"); return true;} // examine operands: OPT_Operand op1 = follow(IfCmp.getVal1(origBranch)); OPT_Operand op2 = follow(IfCmp.getVal2(origBranch)); OPT_ConditionOperand cond = (OPT_ConditionOperand)IfCmp.getCond(origBranch).copy(); OPT_RegisterOperand ifcmpGuard = IfCmp.getGuardResult(origBranch); float backBranchProbability = IfCmp.getBranchProfile (origBranch).takenProbability; if (!loopInvariant (op2, nloop)) { if (loopInvariant (op1, nloop)) { OPT_Operand op = op1; op1 = op2; op2 = op; cond.flipOperands(); } else { if (DEBUG) { printDefs (op1); printDefs (op2); VM.sysWrite (""+origBranch+"\n"); } report ("8a op1 and op2 may not be loop invariant\n"); return true; } } OPT_BasicBlock target = Label.getBlock(IfCmp.getTarget(origBranch).target).block; if (!(op1 instanceof OPT_RegisterOperand)) { report ("9 op1 of ifcmp isn't a register\n"); return true;} OPT_RegisterOperand rop1 = (OPT_RegisterOperand) op1; OPT_Register reg = rop1.register; if (reg.isPhysical()) {report("10 loops over physical register\n"); return false;} if (succBlock == header && !OPT_CFGTransformations.inLoop (target, nloop)) { succBlock = target; target = header; cond.flipCode(); } if (target != header) {report("11 ifcmp doesn't jump to header\n");return true;} OPT_Instruction iterator = null; OPT_OperandEnumeration defs = new RealDefs (rop1); while (defs.hasMoreElements()) { OPT_Operand def = defs.next(); OPT_Instruction inst = def.instruction; OPT_BasicBlock block = inst.getBasicBlock(); //VM.sysWrite (""+block+": "+inst+"\n"); if (OPT_CFGTransformations.inLoop (block, nloop)) { if (iterator == null) { iterator = inst; } else {report("12 iterator not unique.\n"); return true;} } } if (iterator == null) {report ("15 iterator not found.\n"); return true;} if (iterator.operator.opcode != INT_ADD_opcode) { //dumpIR (ir, "malformed"); report ("16 iterator is no addition: "+iterator.operator+"\n"); return true;} if (!rop1.similar(follow(Binary.getVal1(iterator)))) { //dumpIR (ir, "malformed"); report ("17 malformed iterator.\n"+iterator+"\n"); return true;} OPT_Operand strideOp = follow (Binary.getVal2(iterator)); if (!(strideOp instanceof OPT_IntConstantOperand)) { report ("18 stride not constant\n"); return true;} int stride = ((OPT_IntConstantOperand)strideOp).value; if (stride != 1 && stride != -1) { report ("18b stride != +/-1 ("+stride+")\n"); return true;} if (( stride == 1 && (( cond.value != OPT_ConditionOperand.LESS) && cond.value != OPT_ConditionOperand.LESS_EQUAL && cond.value != OPT_ConditionOperand.NOT_EQUAL )) || (stride == -1 && (( cond.value != OPT_ConditionOperand.GREATER) && cond.value != OPT_ConditionOperand.GREATER_EQUAL && cond.value != OPT_ConditionOperand.NOT_EQUAL ))) { report ("19 unexpected condition: "+cond+"\n"+iterator+"\n" +origBranch+"\n\n"); return true; } OPT_RegisterOperand outerGuard; OPT_BasicBlock outer = predBlock; while (outer.getNumberOfOut() == 1 && outer.getNumberOfIn() >= 1) { if (outer.getNumberOfIn() == 0) break; outer = outer.getIn().next(); } if (outer.getNumberOfIn() > 0 && outer.getNumberOfOut() < 2) { report ("23 no suitable outer guard found.\n"); return true;} tmp = outer.firstBranchInstruction(); if (tmp != null && GuardResultCarrier.conforms(tmp)) outerGuard = GuardResultCarrier.getGuardResult(tmp); else { outerGuard = ir.regpool.makeTempValidation(); } //////////// // transfom // transform this: // // Orig: // B // if i CC b goto Orig // else goto exit // // exit: // // into this: ////// stride == 1: common: stride == -1://--------------------------------------------------------------------------// guard0:// limit = b;// if a > b goto Orig if b > a goto Orig// else guard1 // // // guard 1: // remainder = b - a; remainder = a - b;// if cond == '<=' if cond == '>='// remainder++; remainder++;// remainder = remainder & 3 // limit = a + remainder limit = a - remainder// if cond == '<=' if cond == '>='// limit--; limit++;// if remainder == 0 goto mllp // goto Orig // // Orig: // LOOP; // if i CC limit goto Orig // else guard2 // // guard2: if i CC b goto mllp // else exit// // mllp: // landing pad// goto ml// // ml: // LOOP;LOOP;LOOP;LOOP; // if i CC b goto ml // else exit// // exit://-------------------------------------------------------------------------- report ("...transforming.\n"); if (DEBUG && ir.options.hasMETHOD_TO_PRINT() && ir.options.fuzzyMatchMETHOD_TO_PRINT(ir.method.toString())) dumpIR(ir, "before unroll"); OPT_CFGTransformations.killFallThroughs (ir, nloop); OPT_BasicBlock handles[] = makeSomeCopies(unrollFactor, ir, nloop, blocks, header, exitBlock, exitBlock); OPT_BasicBlock mainHeader = handles[0]; OPT_BasicBlock mainExit = handles[1]; // test block for well formed bounds OPT_BasicBlock guardBlock0 = header.createSubBlock(header.firstInstruction().bcIndex, ir); predBlock.redirectOuts (header, guardBlock0, ir); // test block for iteration alignemnt OPT_BasicBlock guardBlock1 = header.createSubBlock(header.firstInstruction().bcIndex, ir); // landing pad for orig loop OPT_BasicBlock olp = header.createSubBlock(header.firstInstruction().bcIndex, ir); olp.setLandingPad(); OPT_BasicBlock predSucc = predBlock.nextBasicBlockInCodeOrder(); if (predSucc != null) { ir.cfg.breakCodeOrder(predBlock, predSucc); ir.cfg.linkInCodeOrder(olp, predSucc); } ir.cfg.linkInCodeOrder(predBlock, guardBlock0); ir.cfg.linkInCodeOrder(guardBlock0, guardBlock1); ir.cfg.linkInCodeOrder(guardBlock1, olp); // guard block for main loop OPT_BasicBlock guardBlock2 = header.createSubBlock(header.firstInstruction().bcIndex, ir); // landing pad for main loop OPT_BasicBlock landingPad = header.createSubBlock(header.firstInstruction().bcIndex, ir); landingPad.setLandingPad(); OPT_BasicBlock mainLoop = exitBlock.nextBasicBlockInCodeOrder(); ir.cfg.breakCodeOrder (exitBlock, mainLoop); ir.cfg.linkInCodeOrder(exitBlock, guardBlock2); ir.cfg.linkInCodeOrder(guardBlock2, landingPad); ir.cfg.linkInCodeOrder(landingPad, mainLoop); OPT_RegisterOperand remainder = ir.regpool.makeTemp(rop1.type); OPT_RegisterOperand limit = ir.regpool.makeTemp(rop1.type); // test whether a <= b for stride == 1 and a >= b for stride == -1 tmp = guardBlock0.lastInstruction(); tmp.insertBefore (Move.create (INT_MOVE, limit, op2.copy())); OPT_ConditionOperand g0cond = OPT_ConditionOperand.GREATER_EQUAL(); if (stride == -1) g0cond = OPT_ConditionOperand.LESS_EQUAL(); tmp.insertBefore (IfCmp.create(INT_IFCMP, outerGuard.copyD2D(), rop1.copyD2U(), op2.copy(), g0cond, olp.makeJumpTarget(), OPT_BranchProfileOperand.unlikely())); tmp.insertBefore(Goto.create(GOTO, guardBlock1.makeJumpTarget())); // align the loop iterations tmp = guardBlock1.lastInstruction(); if (stride == 1) tmp.insertBefore (Binary.create(INT_SUB, remainder, op2.copy(), rop1.copyD2U())); else tmp.insertBefore (Binary.create(INT_SUB, remainder, rop1.copyD2U(), op2.copy())); if (cond.isGREATER_EQUAL() || cond.isLESS_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(1))); tmp.insertBefore (Binary.create(INT_ADD, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(-1))); tmp.insertBefore (Binary.create(INT_AND, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(unrollFactor-1))); tmp.insertBefore (Binary.create(INT_ADD, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(1))); if (stride == 1) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2U(), op1.copy(), remainder.copyD2U())); else tmp.insertBefore (Binary.create(INT_SUB, limit.copyD2U(), op1.copy(), remainder.copyD2U())); if (cond.isLESS_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2D(), limit.copyD2U(), new OPT_IntConstantOperand(-1))); if (cond.isGREATER_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2D(), limit.copyD2U(), new OPT_IntConstantOperand(1))); tmp.insertBefore(Goto.create(GOTO, olp.makeJumpTarget())); // build landing pad for original loop tmp = olp.lastInstruction(); tmp.insertBefore(Goto.create(GOTO, header.makeJumpTarget())); // change the back branch in the original loop deleteBranches (exitBlock); tmp = exitBlock.lastInstruction(); tmp.insertBefore (IfCmp.create (INT_IFCMP, outerGuard.copyD2D(), rop1.copyU2U(), limit.copyD2U(), (OPT_ConditionOperand) cond.copy(), header.makeJumpTarget(), new OPT_BranchProfileOperand(1.0f - 1.0f / unrollFactor))); tmp.insertBefore (Goto.create(GOTO,guardBlock2.makeJumpTarget())); // jump over main loop if no iterations left tmp = guardBlock2.lastInstruction(); tmp.insertBefore (IfCmp.create (INT_IFCMP, outerGuard.copyD2D(), rop1.copyU2U(), op2.copy(), (OPT_ConditionOperand) cond.copy(), landingPad.makeJumpTarget(), new OPT_BranchProfileOperand(1.0f-backBranchProbability))); tmp.insertBefore (Goto.create (GOTO, succBlock.makeJumpTarget())); // landing pad jumps to mainHeader tmp = landingPad.lastInstruction(); tmp.insertBefore (Goto.create(GOTO, mainHeader.makeJumpTarget())); // repair back edge in mainExit if (VM.VerifyAssertions) VM.assert (mainExit != null); tmp = mainExit.lastInstruction(); if (VM.VerifyAssertions) VM.assert (( mainExit.lastRealInstruction() == null) || !mainExit.lastRealInstruction().isBranch()); tmp.insertBefore (IfCmp.create (INT_IFCMP, ifcmpGuard.copyU2U(), rop1.copyU2U(), op2.copy(), (OPT_ConditionOperand) cond.copy(), mainHeader.makeJumpTarget(), new OPT_BranchProfileOperand(1.0f - (1.0f-backBranchProbability) * unrollFactor))); tmp.insertBefore (Goto.create (GOTO, succBlock.makeJumpTarget())); if (mainHeader.firstInstruction().position.getMethod().isInterruptible()) { mainHeader.prependInstruction (Empty.create (YIELDPOINT_BACKEDGE)); } // recompute normal outs guardBlock0.recomputeNormalOut(ir); guardBlock1.recomputeNormalOut(ir); olp.recomputeNormalOut(ir); guardBlock2.recomputeNormalOut(ir); exitBlock.recomputeNormalOut(ir); landingPad.recomputeNormalOut(ir); mainExit.recomputeNormalOut(ir); if (DEBUG && ir.options.hasMETHOD_TO_PRINT() && ir.options.fuzzyMatchMETHOD_TO_PRINT(ir.method.toString())) dumpIR(ir, "after unroll"); return false; } private static void naiveUnroller (OPT_LSTNode t, OPT_IR ir) { OPT_BitVector nloop = t.loop; OPT_BasicBlock seqStart = null; report ("Naively unrolling loop in " + ir.method + ": "+nloop+"\n"); OPT_CFGTransformations.killFallThroughs (ir, nloop); // first, capture the blocks in the loop body. int bodyBlocks = 0; OPT_BasicBlockEnumeration bs = ir.getBasicBlocks (nloop); while (bs.hasMoreElements()) {bodyBlocks++; bs.next();} OPT_BasicBlock body[] = new OPT_BasicBlock[bodyBlocks]; { int i = 0; bs = ir.getBasicBlocks (nloop); while (bs.hasMoreElements()) { OPT_BasicBlock b = bs.next(); if (b instanceof OPT_ExceptionHandlerBasicBlock) { VM.sysWrite ("ARGL!!"+ir.method); return; } body[i++] = b; OPT_BasicBlock next = b.nextBasicBlockInCodeOrder(); if (next == null || !OPT_CFGTransformations.inLoop (next, nloop)); seqStart = b; // end of loop in code order } } OPT_BasicBlock seqEnd = seqStart.nextBasicBlockInCodeOrder(); if (seqEnd != null) ir.cfg.breakCodeOrder(seqStart, seqEnd); OPT_BasicBlock seqLast = seqStart; OPT_BasicBlock firstHeaderCopy = null; for (int i = 1; i < unrollFactor ; ++i) { // copy body for (int k = 0; k < body.length; ++k) { seqLast = copyAndLinkBlock (ir, seqLast, body[k]); if (body[k] == t.header) { if (firstHeaderCopy == null) { firstHeaderCopy = seqLast; } } } // redirect internal branches OPT_BasicBlock cb = seqLast; for (int j = 0; j < bodyBlocks; ++j) { cb.recomputeNormalOut(ir); OPT_BasicBlockEnumeration be = cb.getOut(); while (be.hasMoreElements()) { OPT_BasicBlock out = be.next(); if (out != t.header && OPT_CFGTransformations.inLoop (out, nloop)) { cb.redirectOuts (out, (OPT_BasicBlock) out.scratchObject, ir); } } cb.recomputeNormalOut(ir); cb = cb.prevBasicBlockInCodeOrder(); } if (i != 1) { // redirect the branches to the header in the (i-1)th copy for (int j = 0; j < bodyBlocks; ++j) { OPT_BasicBlockEnumeration be = cb.getOut(); while (be.hasMoreElements()) { OPT_BasicBlock out = be.next(); if (out == t.header) { cb.redirectOuts (t.header, (OPT_BasicBlock) t.header.scratchObject, ir); } } cb.recomputeNormalOut(ir); cb = cb.prevBasicBlockInCodeOrder(); } } } // redirect the branches to the header in the original loop for (int j = 0; j < bodyBlocks; ++j) { OPT_BasicBlockEnumeration be = body[j].getOut(); while (be.hasMoreElements()) { OPT_BasicBlock out = be.next(); if (out == t.header) { body[j].redirectOuts (t.header, firstHeaderCopy, ir); } } body[j].recomputeNormalOut(ir); } if (seqEnd != null) ir.cfg.linkInCodeOrder (seqLast, seqEnd); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/c427de29a8e8e29cd69c8b35a843751fd16c34e9/OPT_LoopUnrolling.java/buggy/rvm/src/vm/compilers/optimizing/optimizations/control/OPT_LoopUnrolling.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
640,
2693,
9858,
12,
15620,
67,
48,
882,
907,
268,
16,
16456,
67,
7937,
9482,
13,
288,
565,
509,
12509,
382,
6452,
273,
374,
31,
565,
16456,
67,
8252,
1768,
2427,
1768,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
640,
2693,
9858,
12,
15620,
67,
48,
882,
907,
268,
16,
16456,
67,
7937,
9482,
13,
288,
565,
509,
12509,
382,
6452,
273,
374,
31,
565,
16456,
67,
8252,
1768,
2427,
1768,
273,
... |
{ | { | public int write (ByteBuffer src) throws IOException { int w = 0; if (buf == null) { throw new EOFException ("file not mapped"); } while (src.hasRemaining ()) { buf.put (src.get ()); w++; } return w; } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/8cef25e737d97238751152631de70237a2aabaa4/FileChannelImpl.java/buggy/libjava/gnu/java/nio/FileChannelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1045,
261,
12242,
1705,
13,
1216,
1860,
225,
288,
565,
509,
341,
273,
374,
31,
565,
309,
261,
4385,
422,
446,
13,
202,
565,
288,
3639,
604,
394,
30051,
7566,
768,
486,
5525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
1045,
261,
12242,
1705,
13,
1216,
1860,
225,
288,
565,
509,
341,
273,
374,
31,
565,
309,
261,
4385,
422,
446,
13,
202,
565,
288,
3639,
604,
394,
30051,
7566,
768,
486,
5525,
... |
if (destDir == null) { throw new BuildException("destdir attribute must be set!"); } | if (destDir == null) { throw new BuildException("destdir attribute must be set!"); } | public void execute() throws BuildException { // first off, make sure that we've got a destdir if (destDir == null) { throw new BuildException("destdir attribute must be set!"); } VAJWorkspaceScanner ds = this.getWorkspaceScanner(); Package[] packages = ds.getIncludedPackages(); export(packages); } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/fcd6548344aa3f590435beff55530cfdb6983588/VAJExport.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJExport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
368,
1122,
3397,
16,
1221,
3071,
716,
732,
8081,
2363,
279,
1570,
1214,
3639,
309,
261,
10488,
1621,
422,
446,
13,
288,
5411,
604,
394,
1846... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1216,
18463,
288,
3639,
368,
1122,
3397,
16,
1221,
3071,
716,
732,
8081,
2363,
279,
1570,
1214,
3639,
309,
261,
10488,
1621,
422,
446,
13,
288,
5411,
604,
394,
1846... |
public void run() { PrintStream ps=new PrintStream(outpipe, true); ps.println("<html>"); ps.println("<head>"); ps.println("</head>"); ps.println("<body>"); try { ps.println(objectRenderer(message, null, message).toString()); } catch (Exception e) { e.printStackTrace(); e.printStackTrace(ps); } ps.println("</body>"); ps.println("</html>"); ps.close(); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/b13c667b376deb4a8f2c235ffd847b57616d23c4/Renderer.java/clean/grendel/sources/grendel/renderer/Renderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
225,
288,
565,
21677,
4250,
33,
2704,
21677,
12,
659,
14772,
16,
638,
1769,
565,
4250,
18,
8222,
2932,
32,
2620,
2984,
1769,
565,
4250,
18,
8222,
2932,
32,
1978,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1435,
225,
288,
565,
21677,
4250,
33,
2704,
21677,
12,
659,
14772,
16,
638,
1769,
565,
4250,
18,
8222,
2932,
32,
2620,
2984,
1769,
565,
4250,
18,
8222,
2932,
32,
1978,
... | ||
values.add(newPos+""); | values.add(newPos + ""); | public static String buildNavPosSelector(CmsObject cms, String filename, String attributes, CmsWorkplaceMessages messages) { List navList = new ArrayList(); List options = new ArrayList(); List values = new ArrayList(); // get current file navigation element CmsJspNavElement curNav = CmsJspNavBuilder.getNavigationForResource(cms, filename); // get the parent folder of the current file filename = CmsResource.getParentFolder(filename); // get navigation of the current folder navList = CmsJspNavBuilder.getNavigationForFolder(cms, filename); float maxValue = 0; float nextPos = 0; // calculate value for the first navigation position float firstValue = 1; try { CmsJspNavElement ne = (CmsJspNavElement)navList.get(0); maxValue = ne.getNavPosition(); } catch (Exception e) { // should usually never happen if (OpenCms.getLog(CmsChnav.class).isInfoEnabled()) { OpenCms.getLog(CmsChnav.class).info(e); } } if (maxValue != 0) { firstValue = maxValue / 2; } // add the first entry: before first element options.add(messages.key("input.firstelement")); values.add(firstValue+""); // show all present navigation elements in box for (int i=0; i<navList.size(); i++) { CmsJspNavElement ne = (CmsJspNavElement)navList.get(i); String navText = ne.getNavText(); float navPos = ne.getNavPosition(); // get position of next nav element nextPos = navPos + 2; if ((i+1) < navList.size()) { nextPos = ((CmsJspNavElement)navList.get(i+1)).getNavPosition(); } // calculate new position of current nav element float newPos = (navPos + nextPos) / 2; // check new maxValue of positions and increase it if (navPos > maxValue) { maxValue = navPos; } // if the element is the current file, mark it in selectbox if (curNav.getNavText().equals(navText) && curNav.getNavPosition() == navPos) { options.add(CmsEncoder.escapeHtml(messages.key("input.currentposition")+" ["+ne.getFileName()+"]")); values.add("-1"); } else { options.add(CmsEncoder.escapeHtml(navText+" ["+ne.getFileName()+"]")); values.add(newPos+""); } } // add the entry: at the last position options.add(messages.key("input.lastelement")); values.add((maxValue+1)+""); // add the entry: no change options.add(messages.key("input.nochange")); values.add("-1"); if (attributes != null && !"".equals(attributes.trim())) { attributes = " " + attributes; } else { attributes = ""; } CmsDialog wp = new CmsDialog(null); return wp.buildSelect("name=\""+PARAM_NAVPOS+"\"" + attributes, options, values, values.size()-1, true); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/c80cbf84d3454cc1f3b1cbd81ab2f9c1a25a001c/CmsChnav.java/clean/src/org/opencms/workplace/commons/CmsChnav.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1361,
12599,
1616,
4320,
12,
4747,
921,
6166,
16,
514,
1544,
16,
514,
1677,
16,
27755,
5058,
2743,
13,
288,
3639,
987,
8775,
682,
273,
394,
2407,
5621,
3639,
987,
702,
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,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1361,
12599,
1616,
4320,
12,
4747,
921,
6166,
16,
514,
1544,
16,
514,
1677,
16,
27755,
5058,
2743,
13,
288,
3639,
987,
8775,
682,
273,
394,
2407,
5621,
3639,
987,
702,
2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.