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
case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop];
} case TokenStream.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln;
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/052726b68e684efc593535d50a73767571084837/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
short pc = labelTable[itsHandlerLabel & 0x7FFFFFFF].getPC();
short pc = table.getLabelPC(itsHandlerLabel & 0x7FFFFFFF);
short getHandlerPC(Label labelTable[]) { short pc = labelTable[itsHandlerLabel & 0x7FFFFFFF].getPC(); if (pc == -1) throw new RuntimeException("handler label not defined"); return pc; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/59fedca6b17819e313ac22545d4a0c523cfdf08c/ClassFileWriter.java/clean/js/rhino/src/org/mozilla/classfile/ClassFileWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3025, 18945, 3513, 12, 2224, 1433, 1388, 63, 5717, 565, 288, 3639, 3025, 6125, 273, 1014, 18, 588, 2224, 3513, 12, 1282, 1503, 2224, 473, 374, 92, 27, 18343, 42, 1769, 3639, 309, 261, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3025, 18945, 3513, 12, 2224, 1433, 1388, 63, 5717, 565, 288, 3639, 3025, 6125, 273, 1014, 18, 588, 2224, 3513, 12, 1282, 1503, 2224, 473, 374, 92, 27, 18343, 42, 1769, 3639, 309, 261, 2...
new Label( topContainer, SWT.NONE ).setText( LABEL_FORMAT_DATE_TIME_PAGE );
new Label( topContainer, SWT.NONE ) .setText( LABEL_FORMAT_DATE_TIME_PAGE );
protected void createContentsVirtically( ) { setLayout( UIUtil.createGridLayoutWithoutMargin( ) ); Composite topContainer = new Composite( this, SWT.NONE ); topContainer.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); topContainer.setLayout( new GridLayout( 2, false ) ); new Label( topContainer, SWT.NONE ).setText( LABEL_FORMAT_DATE_TIME_PAGE ); typeChoicer = new Combo( topContainer, SWT.READ_ONLY ); typeChoicer.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); typeChoicer.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { reLayoutSubPages( ); updatePreview( ); notifyFormatChange( ); } } ); typeChoicer.setItems( getFormatTypes( ) ); typeChoicer.select( 0 ); infoComp = new Composite( this, SWT.NONE ); infoComp.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); infoComp.setLayout( new StackLayout( ) ); createCategoryPages( infoComp ); setInput( null, null ); setPreviewText( defaultDateTime ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7a9d1903e4a62501d41fdc20dd59c3d00f4b0a51/FormatDateTimePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatDateTimePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 6323, 58, 2714, 6478, 12, 262, 202, 95, 202, 202, 542, 3744, 12, 6484, 1304, 18, 2640, 6313, 3744, 8073, 9524, 12, 262, 11272, 202, 202, 9400, 1760, 2170, 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, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 6323, 58, 2714, 6478, 12, 262, 202, 95, 202, 202, 542, 3744, 12, 6484, 1304, 18, 2640, 6313, 3744, 8073, 9524, 12, 262, 11272, 202, 202, 9400, 1760, 2170, 273, 394,...
Scriptable scope = getTopLevelScope(funObj);
Scriptable scope = getTopLevelScope(this);
public static Scriptable jsFunction_slice(Context cx, Scriptable thisObj, Object[] args, Function funObj) { Scriptable scope = getTopLevelScope(funObj); Scriptable result = ScriptRuntime.newObject(cx, scope, "Array", null); double length = getLengthProperty(thisObj); double begin = 0; double end = length; if (args.length > 0) { begin = ScriptRuntime.toInteger(args[0]); if (begin < 0) { begin += length; if (begin < 0) begin = 0; } else if (begin > length) { begin = length; } if (args.length > 1) { end = ScriptRuntime.toInteger(args[1]); if (end < 0) { end += length; if (end < 0) end = 0; } else if (end > length) { end = length; } } } long lbegin = (long)begin; long lend = (long)end; for (long slot = lbegin; slot < lend; slot++) { Object temp = getElem(thisObj, slot); setElem(result, slot - lbegin, temp); } return result; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeArray.java/buggy/js/rhino/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 22780, 3828, 2083, 67, 6665, 12, 1042, 9494, 16, 22780, 15261, 16, 4766, 2868, 1033, 8526, 833, 16, 4284, 9831, 2675, 13, 565, 288, 3639, 22780, 2146, 273, 13729, 2355, 3876, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22780, 3828, 2083, 67, 6665, 12, 1042, 9494, 16, 22780, 15261, 16, 4766, 2868, 1033, 8526, 833, 16, 4284, 9831, 2675, 13, 565, 288, 3639, 22780, 2146, 273, 13729, 2355, 3876, 1...
names = new Vector(); objects = new Vector();
_names = new Vector(); _objects = new Vector();
public JNamedMap() { names = new Vector(); objects = new Vector(); } //-- JNamedMap
57307 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57307/639ed93115321ad51c2450f306c4d50d146ede46/JNamedMap.java/buggy/src/main/java/org/exolab/javasource/JNamedMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 804, 7604, 863, 1435, 288, 3639, 1257, 282, 273, 394, 5589, 5621, 3639, 2184, 273, 394, 5589, 5621, 565, 289, 368, 413, 804, 7604, 863, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 804, 7604, 863, 1435, 288, 3639, 1257, 282, 273, 394, 5589, 5621, 3639, 2184, 273, 394, 5589, 5621, 565, 289, 368, 413, 804, 7604, 863, 2, -100, -100, -100, -100, -100, -100, -100, ...
Unit other = (Unit) o; return this.m_uid.equals(other.m_uid); }
Unit other = (Unit) o; return this.m_uid.equals(other.m_uid); }
public boolean equals(Object o) { if(o == null || ! (o instanceof Unit)) return false; Unit other = (Unit) o; return this.m_uid.equals(other.m_uid); }
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/e1a5020113ddad0ff10f57a297d825325e0c63c3/Unit.java/buggy/triplea/src/games/strategy/engine/data/Unit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1606, 12, 921, 320, 13, 202, 95, 202, 202, 430, 12, 83, 422, 446, 747, 401, 261, 83, 1276, 8380, 3719, 1082, 202, 2463, 629, 31, 202, 202, 2802, 1308, 273, 261, 2802, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1606, 12, 921, 320, 13, 202, 95, 202, 202, 430, 12, 83, 422, 446, 747, 401, 261, 83, 1276, 8380, 3719, 1082, 202, 2463, 629, 31, 202, 202, 2802, 1308, 273, 261, 2802, ...
Object id = e.getProperty(ChainsawConstants.LOG4J_ID_KEY);
Object id = e.getProperty(Constants.LOG4J_ID_KEY);
public boolean isAddRow(LoggingEvent e, boolean valueIsAdjusting) { boolean rowAdded = false; Object id = e.getProperty(ChainsawConstants.LOG4J_ID_KEY); if (id == null) { id = new Integer(++uniqueRow); e.setProperty(ChainsawConstants.LOG4J_ID_KEY, id.toString()); } //prevent duplicate rows if (idSet.contains(id)) { return false; } idSet.add(id); unfilteredList.add(e); if ((displayRule == null) || (displayRule.evaluate(e))) { synchronized (filteredList) { filteredList.add(e); rowAdded = true; } } /** * Is this a new Property key we haven't seen before? Remember that now MDC has been merged * into the Properties collection */ boolean newColumn = uniquePropertyKeys.addAll(e.getPropertyKeySet()); if (newColumn) { /** * If so, we should add them as columns and notify listeners. */ for (Iterator iter = e.getPropertyKeySet().iterator(); iter.hasNext();) { Object key = iter.next(); //add all keys except the 'log4jid' key if (!columnNames.contains(key) && !(ChainsawConstants.LOG4J_ID_KEY.equalsIgnoreCase(key.toString()))) { columnNames.add(key); LogLog.debug("Adding col '" + key + "', columNames=" + columnNames); fireNewKeyColumnAdded( new NewKeyEvent( this, columnNames.indexOf(key), key, e.getProperty(key.toString()))); } } } if (!valueIsAdjusting) { int lastAdded = getLastAdded(); fireTableEvent(lastAdded, lastAdded, 1); } return rowAdded; }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/130b3181d10b8f89ee785ff0a0e608b9c3001ca3/ChainsawCyclicBufferTableModel.java/buggy/src/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 986, 1999, 12, 7735, 1133, 425, 16, 1250, 460, 2520, 10952, 310, 13, 288, 565, 1250, 1027, 8602, 273, 629, 31, 565, 1033, 612, 273, 425, 18, 588, 1396, 12, 2918, 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, 1250, 353, 986, 1999, 12, 7735, 1133, 425, 16, 1250, 460, 2520, 10952, 310, 13, 288, 565, 1250, 1027, 8602, 273, 629, 31, 565, 1033, 612, 273, 425, 18, 588, 1396, 12, 2918, 18, ...
AssertMo.assertIncludes( "message should include expected types", supportedReturnTypes[i].toString(), message );
AssertMo.assertIncludes( "message should include names of expected types", supportedReturnTypes[i].getName(), message );
public void testInvocationWithAnUnregisteredReturnTypeCausesAnAssertionFailedError() throws Throwable { Class unsupportedReturnType = Long.class; Class[] supportedReturnTypes = new Class[] { String.class, int.class, Double.class }; try { for( int i = 0; i < supportedReturnTypes.length; i++ ) { stub.addResult( supportedReturnTypes[i], null ); // don't care about return value } stub.invoke( resultCall(unsupportedReturnType) ); } catch( AssertionFailedError ex ) { String message = ex.getMessage(); AssertMo.assertIncludes( "message should include unsupported type", unsupportedReturnType.toString(), message ); for( int i = 0; i < supportedReturnTypes.length; i++ ) { AssertMo.assertIncludes( "message should include expected types", supportedReturnTypes[i].toString(), message ); } } }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/8dd9ac9fc6037bf04b5cb296ac9452723f3b81ab/DefaultResultStubTest.java/buggy/jmock/src/framework/test/jmock/dynamic/stub/DefaultResultStubTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9267, 1190, 979, 984, 14327, 9102, 39, 9608, 979, 14979, 2925, 668, 1435, 3639, 1216, 4206, 565, 288, 3639, 1659, 13248, 9102, 273, 3407, 18, 1106, 31, 3639, 1659, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9267, 1190, 979, 984, 14327, 9102, 39, 9608, 979, 14979, 2925, 668, 1435, 3639, 1216, 4206, 565, 288, 3639, 1659, 13248, 9102, 273, 3407, 18, 1106, 31, 3639, 1659, 85...
assert(ex.getMessage(),false);
fail(ex.getMessage());
public void testAcceptsURL() { try { // Load the driver (note clients should never do it this way!) org.postgresql.Driver drv = new org.postgresql.Driver(); assert(drv!=null); // These are always correct assert(drv.acceptsURL("jdbc:postgresql:test")); assert(drv.acceptsURL("jdbc:postgresql://localhost/test")); assert(drv.acceptsURL("jdbc:postgresql://localhost:5432/test")); assert(drv.acceptsURL("jdbc:postgresql://127.0.0.1/anydbname")); assert(drv.acceptsURL("jdbc:postgresql://127.0.0.1:5433/hidden")); // Badly formatted url's assert(!drv.acceptsURL("jdbc:postgres:test")); assert(!drv.acceptsURL("postgresql:test")); } catch(SQLException ex) { assert(ex.getMessage(),false); } } /** * Tests parseURL (internal) */ /** * Tests the connect method by connecting to the test database */ public void testConnect() { Connection con=null; try { Class.forName("org.postgresql.Driver"); // Test with the url, username & password con = DriverManager.getConnection(JDBC2Tests.getURL(),JDBC2Tests.getUser(),JDBC2Tests.getPassword()); assert(con!=null); con.close(); // Test with the username in the url con = DriverManager.getConnection(JDBC2Tests.getURL()+"?user="+JDBC2Tests.getUser()+"&password="+JDBC2Tests.getPassword()); assert(con!=null); con.close(); } catch(ClassNotFoundException ex) { assert(ex.getMessage(),false); } catch(SQLException ex) { assert(ex.getMessage(),false); } }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/b75814aee320ef2b67ad01ba72c266dbbf94db45/DriverTest.java/buggy/src/interfaces/jdbc/org/postgresql/test/jdbc2/DriverTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 26391, 1785, 1435, 288, 565, 775, 288, 1377, 368, 4444, 326, 3419, 261, 7652, 7712, 1410, 5903, 741, 518, 333, 4031, 24949, 1377, 2358, 18, 2767, 24330, 18, 4668, 302, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26391, 1785, 1435, 288, 565, 775, 288, 1377, 368, 4444, 326, 3419, 261, 7652, 7712, 1410, 5903, 741, 518, 333, 4031, 24949, 1377, 2358, 18, 2767, 24330, 18, 4668, 302, 49...
SetOfAtomContainers som = new SetOfAtomContainers();
SetOfAtomContainers som = builder.newSetOfAtomContainers();
public void testGrowAtomContainerArray() { // this test assumes that the growSize = 5 ! // if not, there is need for the array to grow SetOfAtomContainers som = new SetOfAtomContainers(); som.addAtomContainer(new org.openscience.cdk.AtomContainer()); som.addAtomContainer(new org.openscience.cdk.AtomContainer()); som.addAtomContainer(new org.openscience.cdk.AtomContainer()); som.addAtomContainer(new org.openscience.cdk.AtomContainer()); som.addAtomContainer(new org.openscience.cdk.AtomContainer()); som.addAtomContainer(new org.openscience.cdk.AtomContainer()); som.addAtomContainer(new org.openscience.cdk.AtomContainer()); org.openscience.cdk.interfaces.AtomContainer[] mols = som.getAtomContainers(); assertEquals(7, mols.length); }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/67261c8143759a6ee4feb79dc1687d6dcfa25f40/SetOfAtomContainersTest.java/clean/src/org/openscience/cdk/test/SetOfAtomContainersTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 30948, 3641, 2170, 1076, 1435, 288, 3639, 368, 333, 1842, 13041, 716, 326, 13334, 1225, 273, 1381, 401, 3639, 368, 309, 486, 16, 1915, 353, 1608, 364, 326, 526, 358, 1333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30948, 3641, 2170, 1076, 1435, 288, 3639, 368, 333, 1842, 13041, 716, 326, 13334, 1225, 273, 1381, 401, 3639, 368, 309, 486, 16, 1915, 353, 1608, 364, 326, 526, 358, 1333...
public void delete(int index) { Object target = getTarget(); if(target instanceof MNamespace && _elements != null) { MModelElement element = (MModelElement) _elements.get(index); if(element != null) { if(_elements != null) { _elements.remove(index); } ((MNamespace) target).removeOwnedElement(element); resetSize(); fireIntervalRemoved(this,index,index); } } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLOwnedElementListModel.java/buggy/src_new/org/argouml/uml/ui/UMLOwnedElementListModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3733, 12, 474, 1615, 15329, 921, 3299, 33, 588, 2326, 5621, 430, 12, 3299, 1336, 792, 49, 3402, 10, 10, 67, 6274, 5, 33, 2011, 15329, 49, 1488, 1046, 2956, 28657, 49, 1488, 1046,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 3733, 12, 474, 1615, 15329, 921, 3299, 33, 588, 2326, 5621, 430, 12, 3299, 1336, 792, 49, 3402, 10, 10, 67, 6274, 5, 33, 2011, 15329, 49, 1488, 1046, 2956, 28657, 49, 1488, 1046,...
return collator.compare(loc1, loc2);
return getComparator().compare(loc1, loc2);
private int compareLineAndLocation(IMarker m1, IMarker m2) { int line1 = MarkerUtil.getLineNumber(m1); int line2 = MarkerUtil.getLineNumber(m2); if (line1 != -1 && line2 != -1) { if (line1 != line2) { return line1 - line2; } int start1 = MarkerUtil.getCharStart(m1); int start2 = MarkerUtil.getCharStart(m2); if (start1 != -1 && start2 != -1) { if (start1 != start2) { return start1 - start2; } } String loc1 = MarkerUtil.getLocation(m1); String loc2 = MarkerUtil.getLocation(m2); return collator.compare(loc1, loc2); } if (line1 == -1 && line2 == -1) { String loc1 = MarkerUtil.getLocation(m1); String loc2 = MarkerUtil.getLocation(m2); return collator.compare(loc1, loc2); } String loc1 = MarkerUtil.getLineAndLocation(m1); String loc2 = MarkerUtil.getLineAndLocation(m2); return collator.compare(loc1, loc2); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c3c47afae7a843a6a8b4e13ceac588b24e1efb08/TaskSorter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskSorter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 3400, 1670, 1876, 2735, 12, 3445, 1313, 264, 312, 21, 16, 467, 7078, 312, 22, 13, 288, 3639, 509, 980, 21, 273, 14742, 1304, 18, 588, 31063, 12, 81, 21, 1769, 3639, 509, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 3400, 1670, 1876, 2735, 12, 3445, 1313, 264, 312, 21, 16, 467, 7078, 312, 22, 13, 288, 3639, 509, 980, 21, 273, 14742, 1304, 18, 588, 31063, 12, 81, 21, 1769, 3639, 509, 98...
public void setValue ( int v );
void setValue ( int v );
public void setValue ( int v );
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b37b39a8e8ee762cc74efa7e8d06368d13147150/Adjustable.java/buggy/libraries/javalib/java/awt/Adjustable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 5524, 261, 509, 331, 11272, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 5524, 261, 509, 331, 11272, 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, -1...
stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1));
name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name);
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK, // sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (maxTryDepth != 0) { // catchStack[2 * i]: starting pc of catch block // catchStack[2 * i + 1]: starting pc of finally block catchStack = new int[maxTryDepth * 2]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { cx.interpreterSecurityDomain = null; if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = catchStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = catchStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
cmof.reflection.Object object = new cmof.ConstraintImpl(_501, extent, null, "cmof.ConstraintImpl", new String[]{"cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _203);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.ElementImport.imported_element_is_public");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {_262});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("specification", _262);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("constrainedElement", new java.lang.Object[] {_203});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _203);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("context", _203);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "imported_element_is_public");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _672);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {_262});
cmof.reflection.Object object = new cmof.PropertyImpl(_424, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", _267);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(-1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _615);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_615});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "metaInstances");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _595);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _615);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _615);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _615);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _615);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Classifier.metaInstances");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", _475);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedBehavior", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});
private static cmof.reflection.Object getObject348(hub.sam.mof.reflection.ExtentImpl extent) { cmof.reflection.Object object = new cmof.ConstraintImpl(_501, extent, null, "cmof.ConstraintImpl", new String[]{"cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _203);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.ElementImport.imported_element_is_public");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {_262});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("specification", _262);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("constrainedElement", new java.lang.Object[] {_203});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _203);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("context", _203);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "imported_element_is_public");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _672);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {_262}); return object; }
11562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11562/de04478dee56227ec288b43e5ca731f9bbd84f7c/CMOF.java/buggy/SimpleMOF2/resources/repository/initial-src/cmof/CMOF.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 5003, 792, 18, 26606, 18, 921, 6455, 5026, 28, 12, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 17639, 2828, 11933, 13, 288, 3639, 5003, 792, 18, 26606, 18, 921, 733, 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, 760, 5003, 792, 18, 26606, 18, 921, 6455, 5026, 28, 12, 14986, 18, 20353, 18, 81, 792, 18, 26606, 18, 17639, 2828, 11933, 13, 288, 3639, 5003, 792, 18, 26606, 18, 921, 733, 273, ...
cache.invalidateCache(uid, MessageCache.CONTENT); throw ioe;
if (localPart instanceof MimeMessage) { try { java.io.InputStream is = ((MimeMessage)localPart).getRawInputStream(); return MimeUtility.decode(is, "7bit"); } catch (Exception e) { cache.invalidateCache(uid, MessageCache.CONTENT); throw ioe; } } else { cache.invalidateCache(uid, MessageCache.CONTENT); throw ioe; }
public java.io.InputStream getInputStream() throws java.io.IOException { try { return super.getInputStream(); } catch (java.io.IOException ioe) { cache.invalidateCache(uid, MessageCache.CONTENT); throw ioe; } }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/826bab942eacf705e95d9e1e3fb8d3e909045359/WrappedMimePartDataSource.java/buggy/net/suberic/pooka/cache/WrappedMimePartDataSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 1594, 18, 4348, 14424, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 775, 288, 5411, 327, 2240, 18, 588, 4348, 5621, 1850, 289, 1044, 261, 6290, 18, 1594, 18, 14106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 1594, 18, 4348, 14424, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 775, 288, 5411, 327, 2240, 18, 588, 4348, 5621, 1850, 289, 1044, 261, 6290, 18, 1594, 18, 14106, ...
Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject recv = eval(iVisited.getIterNode()); ArgsUtil.endCallArgs(runtime, tmpBlock); threadContext.setPosition(position);
IRubyObject recv = null; try { recv = eval(iVisited.getIterNode()); } finally { threadContext.setPosition(position); ArgsUtil.endCallArgs(runtime, tmpBlock); }
public void visitForNode(ForNode iVisited) { runtime.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); runtime.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ISourcePosition position = threadContext.getPosition(); Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject recv = eval(iVisited.getIterNode()); ArgsUtil.endCallArgs(runtime, tmpBlock); threadContext.setPosition(position); result = recv.getInternalClass().call(recv, "each", null, CallType.NORMAL); return; } catch (RetryJump rExcptn) { } } } catch (ReturnJump rExcptn) { result = rExcptn.getReturnValue(); } catch (BreakJump bExcptn) { result = runtime.getNil(); } finally { runtime.getIterStack().pop(); runtime.getBlockStack().pop(); } }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/aa3fe2195e86c2c426f4012089ef8c66a66e925c/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 31058, 12, 31058, 277, 30019, 13, 288, 3639, 3099, 18, 588, 1768, 2624, 7675, 6206, 12, 77, 30019, 18, 588, 1537, 907, 9334, 394, 18176, 1305, 12, 77, 30019, 18, 588, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 31058, 12, 31058, 277, 30019, 13, 288, 3639, 3099, 18, 588, 1768, 2624, 7675, 6206, 12, 77, 30019, 18, 588, 1537, 907, 9334, 394, 18176, 1305, 12, 77, 30019, 18, 588, 2...
pos = in.getFilePointer();
in.mark(200);
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); offsets = new Vector(); byte[] list = new byte[4]; String listString; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("RIFF")) { bigChunkSize = size; if (!fcc.equals("AVI ")) { whine("Sorry, AVI RIFF format not found."); } } else { whine("Not an AVI file"); } while (in.read(list) == 4) { in.seek(in.getFilePointer() - 4); listString = new String(list); if (listString.equals("JUNK")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.seek(in.getFilePointer() + size); } } else if (listString.equals("LIST")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); in.seek(in.getFilePointer() - 12); if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("avih")) { pos = in.getFilePointer(); dwMicroSecPerFrame = DataTools.read4SignedBytes(in, little); dwMaxBytesPerSec = DataTools.read4SignedBytes(in, little); dwReserved1 = DataTools.read4SignedBytes(in, little); dwFlags = DataTools.read4SignedBytes(in, little); dwTotalFrames = DataTools.read4SignedBytes(in, little); dwInitialFrames = DataTools.read4SignedBytes(in, little); dwStreams = DataTools.read4SignedBytes(in, little); dwSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwWidth = DataTools.read4SignedBytes(in, little); dwHeight = DataTools.read4SignedBytes(in, little); dwScale = DataTools.read4SignedBytes(in, little); dwRate = DataTools.read4SignedBytes(in, little); dwStart = DataTools.read4SignedBytes(in, little); dwLength = DataTools.read4SignedBytes(in, little); metadata.put("Microseconds per frame", new Integer(dwMicroSecPerFrame)); metadata.put("Max. bytes per second", new Integer(dwMaxBytesPerSec)); metadata.put("Total frames", new Integer(dwTotalFrames)); metadata.put("Initial frames", new Integer(dwInitialFrames)); metadata.put("Frame width", new Integer(dwWidth)); metadata.put("Frame height", new Integer(dwHeight)); metadata.put("Scale factor", new Integer(dwScale)); metadata.put("Frame rate", new Integer(dwRate)); metadata.put("Start time", new Integer(dwStart)); metadata.put("Length", new Integer(dwLength)); in.seek(pos + size); } } } } else if (fcc.equals("strl")) { long startPos = in.getFilePointer(); long streamSize = size; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("strl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strh")) { pos = in.getFilePointer(); String fccStreamTypeOld = fccStreamType; fccStreamType = readStringBytes(); if (!fccStreamType.equals("vids")) { fccStreamType = fccStreamTypeOld; } fccStreamHandler = readStringBytes(); dwStreamFlags = DataTools.read4SignedBytes(in, little); dwStreamReserved1 = DataTools.read4SignedBytes(in, little); dwStreamInitialFrames = DataTools.read4SignedBytes(in, little); dwStreamScale = DataTools.read4SignedBytes(in, little); dwStreamRate = DataTools.read4SignedBytes(in, little); dwStreamStart = DataTools.read4SignedBytes(in, little); dwStreamLength = DataTools.read4SignedBytes(in, little); dwStreamSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwStreamQuality = DataTools.read4SignedBytes(in, little); dwStreamSampleSize = DataTools.read4SignedBytes(in, little); metadata.put("Stream quality", new Integer(dwStreamQuality)); metadata.put("Stream sample size", new Integer(dwStreamSampleSize)); in.seek(pos + size); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strf")) { pos = in.getFilePointer(); bmpSize = DataTools.read4SignedBytes(in, little); bmpWidth = DataTools.read4SignedBytes(in, little); bmpHeight = DataTools.read4SignedBytes(in, little); bmpPlanes = DataTools.read2SignedBytes(in, little); bmpBitsPerPixel = DataTools.read2SignedBytes(in, little); bmpCompression = DataTools.read4SignedBytes(in, little); bmpSizeOfBitmap = DataTools.read4SignedBytes(in, little); bmpHorzResolution = DataTools.read4SignedBytes(in, little); bmpVertResolution = DataTools.read4SignedBytes(in, little); bmpColorsUsed = DataTools.read4SignedBytes(in, little); bmpColorsImportant = DataTools.read4SignedBytes(in, little); bmpTopDown = (bmpHeight < 0); bmpNoOfPixels = bmpWidth * bmpHeight; metadata.put("Bitmap compression value", new Integer(bmpCompression)); metadata.put("Horizontal resolution", new Integer(bmpHorzResolution)); metadata.put("Vertical resolution", new Integer(bmpVertResolution)); metadata.put("Number of colors used", new Integer(bmpColorsUsed)); metadata.put("Bits per pixel", new Integer(bmpBitsPerPixel)); // scan line is padded with zeros to be a multiple of 4 bytes int npad = bmpWidth % 4; if (npad > 0) npad = 4 - npad; bmpScanLineSize = (bmpWidth + npad) * (bmpBitsPerPixel / 8); if (bmpSizeOfBitmap != 0) { bmpActualSize = bmpSizeOfBitmap; } else { // a value of 0 doesn't mean 0 -- it means we have // to calculate it bmpActualSize = bmpScanLineSize * bmpHeight; } if (bmpColorsUsed != 0) { bmpActualColorsUsed = bmpColorsUsed; } else { // a value of 0 means we determine this based on the // bits per pixel if (bmpBitsPerPixel < 16) { bmpActualColorsUsed = 1 << bmpBitsPerPixel; } else { // no palette bmpActualColorsUsed = 0; } } if (bmpCompression != 0) { whine("Sorry, compressed AVI files not supported."); } if (!(bmpBitsPerPixel == 8 || bmpBitsPerPixel == 24 || bmpBitsPerPixel == 32)) { whine("Sorry, " + bmpBitsPerPixel + " bits per pixel not " + "supported"); } if (bmpActualColorsUsed != 0) { // read the palette long pos1 = in.getFilePointer(); pr = new byte[bmpColorsUsed]; pg = new byte[bmpColorsUsed]; pb = new byte[bmpColorsUsed]; for (int i=0; i<bmpColorsUsed; i++) { pb[i] = (byte) in.read(); pg[i] = (byte) in.read(); pr[i] = (byte) in.read(); in.read(); } } in.seek(pos + size); } } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strd")) { in.seek(in.getFilePointer() + size); } else { in.seek(in.getFilePointer() - 8); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strn")) { in.seek(in.getFilePointer() + size); } else { in.seek(in.getFilePointer() - 8); } } in.seek(startPos + 8 + streamSize); } else if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (!(type.equals("LIST") && fcc.equals("rec "))) { in.seek(in.getFilePointer() - 12); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); long startPos = in.getFilePointer(); while (type.substring(2).equals("db") || type.substring(2).equals("dc") || type.substring(2).equals("wb")) { pos = in.getFilePointer(); if (type.substring(2).equals("db") || type.substring(2).equals("dc")) { offsets.add(new Long(in.getFilePointer())); in.skipBytes(bmpHeight * bmpScanLineSize); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.seek(in.getFilePointer() + size); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); } } in.seek(in.getFilePointer() - 8); } } } else { // skipping unknown block in.seek(in.getFilePointer() + 8 + size); } } else { // skipping unknown block type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); in.seek(in.getFilePointer() + size); } } numImages = offsets.size(); initOMEMetadata(); }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/91859a26506b8a1d312b398da2c3ecd94e02fa60/AVIReader.java/clean/loci/formats/AVIReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 26933, 12, 350, 16, 315, 86, 8863, 565, 8738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 26933, 12, 350, 16, 315, 86, 8863, 565, 8738...
executeKeyBinding();
executeKeyBinding(event);
public final void widgetDefaultSelected(final SelectionEvent event) { executeKeyBinding(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/KeyAssistDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/KeyAssistDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 727, 918, 3604, 1868, 7416, 12, 6385, 12977, 1133, 871, 13, 288, 9506, 202, 8837, 653, 5250, 5621, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 727, 918, 3604, 1868, 7416, 12, 6385, 12977, 1133, 871, 13, 288, 9506, 202, 8837, 653, 5250, 5621, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public AddressBook() { super("Address Book","0"); setBackground(Color.lightGray);// setBorderStyle(JPanel.ETCHED); getContentPane().setLayout(new BorderLayout());// addWindowListener(new FrameHider()); //create menubar (top) //merge both the editors commands with this applications commands. //mMenubar = NsMenuManager.createMenuBar("grendel.addressbook.Menus", "grendel.addressbook.MenuLabels", "mainMenubar", defaultActions); // FIXME - need to build the menu bar // (Jeff) // mMenubar = new JMenuBar(); // mMenubar = createMenubar(); mMenubar = buildMenu("menus.xml",defaultActions); setJMenuBar(mMenubar); //collapsble panels holds toolbar. CollapsiblePanel collapsePanel = new CollapsiblePanel(true); collapsePanel.setBorder (new EmptyBorder(5,5,5,5)); //toolbar buttons mTtoolbar = createToolbar(); //collapsible item collapsePanel.add(mTtoolbar); //create status bar (bottom) // mStatusbar = createStatusbar(); JPanel panel1 = new JPanel(); panel1.setLayout(new BorderLayout()); panel1.add(collapsePanel, BorderLayout.NORTH); //hack together the data sources. mDataSourceList = new DataSourceList (); mDataSourceList.addEntry (new DataSource ("Four11 Directory", "ldap.four11.com")); mDataSourceList.addEntry (new DataSource ("InfoSpace Directory", "ldap.infospace.com")); mDataSourceList.addEntry (new DataSource ("WhoWhere Directory", "ldap.whowhere.com")); mDataSourceList.addEntry (new DataSource ("InfoSeek Directory", "ldap.infoseek.com")); //Create address panel AddressPanel addressPanel = new AddressPanel (mDataSourceList); panel1.add(addressPanel, BorderLayout.CENTER); // getContentPane().add(mMenubar, BorderLayout.NORTH); getContentPane().add(panel1, BorderLayout.CENTER); setSize (600, 400); //Create Local Address Book //myLocalAddressBook = new ACS_Personal ("MyAddressBook.nab", true); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/bc05a619d353c84c954f415aec254150f0fa257c/AddressBook.java/buggy/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5267, 9084, 1435, 288, 3639, 2240, 2932, 1887, 20258, 15937, 20, 8863, 3639, 31217, 12, 2957, 18, 5099, 23521, 1769, 759, 3639, 25715, 2885, 12, 46, 5537, 18, 9235, 2056, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5267, 9084, 1435, 288, 3639, 2240, 2932, 1887, 20258, 15937, 20, 8863, 3639, 31217, 12, 2957, 18, 5099, 23521, 1769, 759, 3639, 25715, 2885, 12, 46, 5537, 18, 9235, 2056, 1769, 3639, ...
if (start == this && !isSealed() && dense != null && 0 <= index && index < dense.length) { dense[index] = value; } else { super.put(index, start, value); }
super.put(id, start, value);
public void put(int index, Scriptable start, Object value) { if (start == this && !isSealed() && dense != null && 0 <= index && index < dense.length) { // If start == this && sealed, super will throw exception dense[index] = value; } else { super.put(index, start, value); } if (start == this) { // only set the array length if given an array index (ECMA 15.4.0) if (this.length <= index) { // avoid overflowing index! this.length = (long)index + 1; } } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/08f0cfede0b5665f6b5139b8993251dc3a80ec16/NativeArray.java/buggy/src/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 474, 770, 16, 22780, 787, 16, 1033, 460, 13, 565, 288, 3639, 309, 261, 1937, 422, 333, 597, 401, 291, 1761, 18931, 1435, 5411, 597, 16963, 480, 446, 597, 374, 1648,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 474, 770, 16, 22780, 787, 16, 1033, 460, 13, 565, 288, 3639, 309, 261, 1937, 422, 333, 597, 401, 291, 1761, 18931, 1435, 5411, 597, 16963, 480, 446, 597, 374, 1648,...
String msg = "Internal error, the following type identifier is not handled: " + type;
String msg = "Internal error, the following type identifier is not handled: " + type;
public void setFromBuffer(ByteBuffer buffer, long length) throws AMQFrameDecodingException { final boolean trace = _logger.isTraceEnabled(); int sizeRead = 0; while (sizeRead < length) { int sizeRemaining = buffer.remaining(); final String key = EncodingUtils.readShortString(buffer); byte iType = buffer.get(); Character mapKey = new Character((char) iType); Prefix type = _reverseTypeMap.get(mapKey); if (type == null) { String msg = "Field '" + key + "' - unsupported field table type: " + type + "."; //some extra trace information... msg += " (" + iType + "), length=" + length + ", sizeRead=" + sizeRead + ", sizeRemaining=" + sizeRemaining; throw new AMQFrameDecodingException(msg); } Object value; switch (type) { case AMQP_BOOLEAN_PROPERTY_PREFIX: value = EncodingUtils.readBoolean(buffer); break; case AMQP_BYTE_PROPERTY_PREFIX: value = EncodingUtils.readByte(buffer); break; case AMQP_SHORT_PROPERTY_PREFIX: value = EncodingUtils.readShort(buffer); break; case AMQP_INT_PROPERTY_PREFIX: value = EncodingUtils.readInteger(buffer); break; case AMQP_UNSIGNED_INT_PROPERTY_PREFIX:// This will only fit in a long //Change this type for java lookups type = Prefix.AMQP_LONG_PROPERTY_PREFIX; case AMQP_LONG_PROPERTY_PREFIX: value = EncodingUtils.readLong(buffer); break; case AMQP_FLOAT_PROPERTY_PREFIX: value = EncodingUtils.readFloat(buffer); break; case AMQP_DOUBLE_PROPERTY_PREFIX: value = EncodingUtils.readDouble(buffer); break; case AMQP_WIDE_STRING_PROPERTY_PREFIX: // FIXME: use proper charset encoder case AMQP_ASCII_STRING_PROPERTY_PREFIX: value = EncodingUtils.readLongString(buffer); break; case AMQP_NULL_STRING_PROPERTY_PREFIX: value = null; break; case AMQP_ASCII_CHARACTER_PROPERTY_PREFIX: value = EncodingUtils.readChar((buffer)); break; case AMQP_BINARY_PROPERTY_PREFIX: value = EncodingUtils.readBytes(buffer); break; default: String msg = "Internal error, the following type identifier is not handled: " + type; throw new AMQFrameDecodingException(msg); } sizeRead += (sizeRemaining - buffer.remaining()); if (trace) { _logger.trace("FieldTable::PropFieldTable(buffer," + length + "): Read type '" + type + "', key '" + key + "', value '" + value + "' (now read " + sizeRead + " of " + length + " encoded bytes)..."); } put(type, key, value); } if (trace) { _logger.trace("FieldTable::FieldTable(buffer," + length + "): Done."); } }
45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/5a914f818635425089ea0378120fa27aa6bc211b/PropertyFieldTable.java/clean/qpid/java/common/src/main/java/org/apache/qpid/framing/PropertyFieldTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 22012, 1892, 12, 12242, 1613, 16, 1525, 769, 13, 1216, 16549, 3219, 1799, 4751, 503, 565, 288, 3639, 727, 1250, 2606, 273, 389, 4901, 18, 291, 3448, 1526, 5621, 3639, 509, 963,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22012, 1892, 12, 12242, 1613, 16, 1525, 769, 13, 1216, 16549, 3219, 1799, 4751, 503, 565, 288, 3639, 727, 1250, 2606, 273, 389, 4901, 18, 291, 3448, 1526, 5621, 3639, 509, 963,...
tokfix();
private int parse_quotedwords(int term, int paren) { Node qwords = null; int strstart; int c; int nest = 0; strstart = ruby.getSourceLine(); newtok(); c = nextc(); while (ISSPACE(c)) { c = nextc(); } /* * skip preceding spaces */ pushback(c); while ((c = nextc()) != term || nest > 0) { if (c == -1) { ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } if (c == '\\') { c = nextc(); switch (c) { case '\n' : continue; case '\\' : c = '\\'; break; default : if (c == term || (paren != 0 && c == paren)) { tokadd(c); continue; } if (!ISSPACE(c)) { tokadd('\\'); } break; } } else if (ISSPACE(c)) { tokfix(); Node str = nf.newStr(RubyString.newString(ruby, tok(), toklen())); newtok(); if (qwords == null) { qwords = nf.newList(str); } else { ph.list_append(qwords, str); } c = nextc(); while (ISSPACE(c)) { c = nextc(); } // skip continuous spaces pushback(c); continue; } if (paren != 0) { if (c == paren) { nest++; } if (c == term && nest-- == 0) { break; } } tokadd(c); } tokfix(); if (toklen() > 0) { Node str = nf.newStr(RubyString.newString(ruby, tok(), toklen())); if (qwords == null) { qwords = nf.newList(str); } else { ph.list_append(qwords, str); } } if (qwords == null) { qwords = nf.newZArray(); } yyVal = qwords; ph.setLexState(LexState.EXPR_END); return Token.tDSTRING; }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1109, 67, 15179, 3753, 12, 474, 2481, 16, 509, 22146, 13, 288, 3639, 2029, 1043, 3753, 273, 446, 31, 3639, 509, 609, 1937, 31, 3639, 509, 276, 31, 3639, 509, 15095, 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, 377, 3238, 509, 1109, 67, 15179, 3753, 12, 474, 2481, 16, 509, 22146, 13, 288, 3639, 2029, 1043, 3753, 273, 446, 31, 3639, 509, 609, 1937, 31, 3639, 509, 276, 31, 3639, 509, 15095, 273, 374,...
if (el instanceof IPropertySheetEntry) updateEntry((IPropertySheetEntry) el, childItems[i]); else {
if (el instanceof IPropertySheetEntry) { updateEntry((IPropertySheetEntry) el, childItems[i]); } else {
private void updateChildrenOf(Object node, Widget widget) { // cast the entry or category IPropertySheetEntry entry = null; PropertySheetCategory category = null; if (node instanceof IPropertySheetEntry) entry = (IPropertySheetEntry) node; else category = (PropertySheetCategory) node; // get the current child tree items TreeItem[] childItems = getChildItems(widget); // optimization! prune collapsed subtrees TreeItem item = null; if (widget instanceof TreeItem) { item = (TreeItem) widget; } if (item != null && !item.getExpanded()) { // remove all children for (int i = 0; i < childItems.length; i++) { if (childItems[i].getData() != null) { removeItem(childItems[i]); } } // append a dummy if necessary if (category != null || entry.hasChildEntries()) { // may already have a dummy // It is either a category (which always has at least one child) // or an entry with chidren. // Note that this test is not perfect, if we have filtering on // then there in fact may be no entires to show when the user // presses the "+" expand icon. But this is an acceptable // compromise. childItems = getChildItems(widget); if (childItems.length == 0) { new TreeItem(item, SWT.NULL); } } return; } // get the child entries or categories if (node == rootEntry && isShowingCategories) // update the categories updateCategories(); List children = getChildren(node); // remove items Set set = new HashSet(childItems.length * 2 + 1); for (int i = 0; i < childItems.length; i++) { Object data = childItems[i].getData(); if (data != null) { Object e = data; int ix = children.indexOf(e); if (ix < 0) { // not found removeItem(childItems[i]); } else { // found set.add(e); } } else if (data == null) { // the dummy childItems[i].dispose(); } } // WORKAROUND int oldCnt = -1; if (widget == tree) oldCnt = tree.getItemCount(); // add new items int newSize = children.size(); for (int i = 0; i < newSize; i++) { Object el = children.get(i); if (!set.contains(el)) createItem(el, widget, i); } // WORKAROUND if (widget == tree && oldCnt == 0 && tree.getItemCount() == 1) { tree.setRedraw(false); tree.setRedraw(true); } // get the child tree items after our changes childItems = getChildItems(widget); // update the child items // This ensures that the children are in the correct order // are showing the correct values. for (int i = 0; i < newSize; i++) { Object el = children.get(i); if (el instanceof IPropertySheetEntry) updateEntry((IPropertySheetEntry) el, childItems[i]); else { updateCategory((PropertySheetCategory) el, childItems[i]); updateChildrenOf(el, childItems[i]); } } // The tree's original selection may no longer apply after the update, // so fire the selection changed event. entrySelectionChanged(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3a23c3b9bac4db696a0452560047155775a707b7/PropertySheetViewer.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 4212, 951, 12, 921, 756, 16, 11103, 3604, 13, 288, 3639, 368, 4812, 326, 1241, 578, 3150, 3639, 467, 1396, 8229, 1622, 1241, 273, 446, 31, 3639, 4276, 8229, 4457, 3150, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 4212, 951, 12, 921, 756, 16, 11103, 3604, 13, 288, 3639, 368, 4812, 326, 1241, 578, 3150, 3639, 467, 1396, 8229, 1622, 1241, 273, 446, 31, 3639, 4276, 8229, 4457, 3150, ...
public void testUrlDrop() { assertEquals(0, manager.getTaskList().getRootTasks().size()); String url = "http://eclipse.org "; String title = "Title"; String urlData = url + "\n" + title; dropAdapter.performDrop(urlData); List<ITask> tasks = manager.getTaskList().getRootTasks(); assertNotNull(tasks); assertEquals(1, tasks.size()); assertEquals(title, tasks.get(0).getDescription(false)); assertEquals(url, tasks.get(0).getUrl()); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/f5185d7e1fba2f63d2c2908053bdfa55e753a2d2/TaskListDnDTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskListDnDTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1489, 7544, 1435, 288, 202, 202, 11231, 8867, 12, 20, 16, 3301, 18, 588, 2174, 682, 7675, 588, 2375, 6685, 7675, 1467, 10663, 9506, 202, 780, 880, 273, 315, 2505, 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, 225, 202, 482, 918, 1842, 1489, 7544, 1435, 288, 202, 202, 11231, 8867, 12, 20, 16, 3301, 18, 588, 2174, 682, 7675, 588, 2375, 6685, 7675, 1467, 10663, 9506, 202, 780, 880, 273, 315, 2505, 2...
second += (millisecond / 1000); millisecond = millisecond % 1000;
second += millisecond / 1000; millisecond %= 1000;
public void normalize() { if(millisecond >= 1000) { second += (millisecond / 1000); millisecond = millisecond % 1000; } if(second > 60) { minute += (second / 60); second = second % 60; } if(minute > 60) { hour += (minute / 60); minute = minute % 60; } if(hour > 24) { day += (hour / 24); hour = hour % 24; } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/7bd357e42c22e09336d3527f81c19e6b38a523ec/DayTimeDurationValue.java/buggy/src/org/exist/xquery/value/DayTimeDurationValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3883, 1435, 288, 202, 202, 430, 12, 81, 7710, 1434, 1545, 4336, 13, 288, 1082, 202, 8538, 1011, 261, 81, 7710, 1434, 342, 4336, 1769, 1082, 202, 81, 7710, 1434, 273, 3102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3883, 1435, 288, 202, 202, 430, 12, 81, 7710, 1434, 1545, 4336, 13, 288, 1082, 202, 8538, 1011, 261, 81, 7710, 1434, 342, 4336, 1769, 1082, 202, 81, 7710, 1434, 273, 3102...
protected LayoutPart createStack(LayoutPart sourcePart) {
protected PartStack createStack() {
protected LayoutPart createStack(LayoutPart sourcePart) { ViewStack result = new ViewStack(page); result.add(sourcePart); return result;}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e04a85b80c5ca10481c86bbaa2202b3f2fc194bb/ViewSashContainer.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewSashContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 9995, 1988, 752, 2624, 12, 3744, 1988, 1084, 1988, 13, 288, 202, 1767, 2624, 563, 273, 394, 4441, 2624, 12, 2433, 1769, 202, 2088, 18, 1289, 12, 3168, 1988, 1769, 202, 2463, 563, 31, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 9995, 1988, 752, 2624, 12, 3744, 1988, 1084, 1988, 13, 288, 202, 1767, 2624, 563, 273, 394, 4441, 2624, 12, 2433, 1769, 202, 2088, 18, 1289, 12, 3168, 1988, 1769, 202, 2463, 563, 31, 9...
request = new _createRequest();
request = new CreateRequest();
protected void setUp() throws Exception { request = new _createRequest(); job1 = new JobState(request, null); jobs = new JobRepository(); jobs.assignNameAndUri(job1); jobURI = job1.getUri(); JobState job3 = new JobState(); jobs.assignNameAndUri(job3); otherURI = job3.getUri(); }
4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/6a0bce9a04774f0d574902b90826623e639302b9/JobTest.java/buggy/core/components/cddlm/test/org/smartfrog/services/cddlm/test/unit/api/JobTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 590, 273, 394, 1788, 691, 5621, 3639, 1719, 21, 273, 394, 3956, 1119, 12, 2293, 16, 446, 1769, 3639, 6550, 273, 394, 3956, 3305, 5621, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 590, 273, 394, 1788, 691, 5621, 3639, 1719, 21, 273, 394, 3956, 1119, 12, 2293, 16, 446, 1769, 3639, 6550, 273, 394, 3956, 3305, 5621, 3639,...
return projectBuilder.buildWithDependencies( pom, getLocalRepository(), new TestArtifactResolver.Source( artifactFactory, artifactRepositoryFactory, getContainer() ), Collections.EMPTY_LIST );
return projectBuilder.buildWithDependencies( pom, getLocalRepository(), Collections.EMPTY_LIST );
protected MavenProject getProjectWithDependencies( File pom ) throws Exception { return projectBuilder.buildWithDependencies( pom, getLocalRepository(), new TestArtifactResolver.Source( artifactFactory, artifactRepositoryFactory, getContainer() ), Collections.EMPTY_LIST ); }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/701ef520a30c7b30dcdf2e4a4f06548cc06fbf0b/MavenProjectTestCase.java/clean/maven-project/src/test/java/org/apache/maven/project/MavenProjectTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 17176, 4109, 11080, 1190, 8053, 12, 1387, 21400, 262, 3639, 1216, 1185, 565, 288, 3639, 327, 1984, 1263, 18, 3510, 1190, 8053, 12, 21400, 16, 6993, 3305, 9334, 394, 7766, 7581, 4301, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17176, 4109, 11080, 1190, 8053, 12, 1387, 21400, 262, 3639, 1216, 1185, 565, 288, 3639, 327, 1984, 1263, 18, 3510, 1190, 8053, 12, 21400, 16, 6993, 3305, 9334, 394, 7766, 7581, 4301, ...
ChangeSet[] sets = collector.getSets(); for (int i = 0; i < sets.length; i++) { if (sets[i] instanceof MylarActiveChangeSet) { sets[i].remove(resource);
for (ActiveChangeSetManager collector : collectors) { ChangeSet[] sets = collector.getSets(); for (int i = 0; i < sets.length; i++) { if (sets[i] instanceof MylarActiveChangeSet) { sets[i].remove(resource); }
public void interestChanged(List<IMylarElement> elements) { for (IMylarElement element : elements) { IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element.getContentType()); try { if (bridge.isDocument(element.getHandleIdentifier())) { IResource resource = MylarIdePlugin.getDefault().getResourceForElement(element, false); if (resource != null && resource.exists()) { for (MylarActiveChangeSet activeContextChangeSet : getActiveChangeSets()) { if (!activeContextChangeSet.contains(resource)) { if (element.getInterest().isInteresting()) { activeContextChangeSet.add(new IResource[] { resource }); } } } if (shouldRemove(element)) { ChangeSet[] sets = collector.getSets(); for (int i = 0; i < sets.length; i++) { if (sets[i] instanceof MylarActiveChangeSet) { sets[i].remove(resource); } } } } } } catch (Exception e) { MylarStatusHandler.fail(e, "could not manipulate change set resources", false); } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/abdab4a2f705bee70044e1b050c0465a903b4d20/MylarChangeSetManager.java/buggy/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/team/MylarChangeSetManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16513, 5033, 12, 682, 32, 3445, 93, 7901, 1046, 34, 2186, 13, 288, 202, 202, 1884, 261, 3445, 93, 7901, 1046, 930, 294, 2186, 13, 288, 1082, 202, 3445, 93, 7901, 6999, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16513, 5033, 12, 682, 32, 3445, 93, 7901, 1046, 34, 2186, 13, 288, 202, 202, 1884, 261, 3445, 93, 7901, 1046, 930, 294, 2186, 13, 288, 1082, 202, 3445, 93, 7901, 6999, ...
if (TransformerImpl.S_DEBUG)
if (transformer.getDebug())
public void execute( TransformerImpl transformer) throws TransformerException { if (TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEvent(this); if (transformer.isRecursiveAttrSet(this)) { throw new TransformerException( XSLMessages.createMessage( XSLTErrorResources.ER_XSLATTRSET_USED_ITSELF, new Object[]{ m_qname.getLocalPart() })); //"xsl:attribute-set '"+m_qname.m_localpart+ } transformer.pushElemAttributeSet(this); super.execute(transformer); ElemAttribute attr = (ElemAttribute) getFirstChildElem(); while (null != attr) { attr.execute(transformer); attr = (ElemAttribute) attr.getNextSiblingElem(); } transformer.popElemAttributeSet(); if (TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEndEvent(this); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/2d07c253b814672a82d969836d58577bfa628b88/ElemAttributeSet.java/buggy/src/org/apache/xalan/templates/ElemAttributeSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 12, 1850, 11519, 2828, 8360, 13, 5411, 1216, 21684, 225, 288, 202, 430, 261, 8319, 2828, 18, 55, 67, 9394, 13, 202, 225, 8360, 18, 588, 3448, 1318, 7675, 12179, 3448, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 1850, 11519, 2828, 8360, 13, 5411, 1216, 21684, 225, 288, 202, 430, 261, 8319, 2828, 18, 55, 67, 9394, 13, 202, 225, 8360, 18, 588, 3448, 1318, 7675, 12179, 3448, 1...
return getRelationshipRelationshipLabel_4004Parser();
return getRelationshipRelationshipLabel_6001Parser();
protected IParser getParser(int visualID) { switch (visualID) { case ThreadSubjectEditPart.VISUAL_ID: return getThreadThreadSubject_4001Parser(); case ThreadItemEditPart.VISUAL_ID: return getThreadItemThreadItem_2002Parser(); case TopicNameEditPart.VISUAL_ID: return getTopicTopicName_4002Parser(); case ResourceNameEmailEditPart.VISUAL_ID: return getResourceResourceNameEmail_4003Parser(); case RelationshipLabelEditPart.VISUAL_ID: return getRelationshipRelationshipLabel_4004Parser(); case RelationshipLabel2EditPart.VISUAL_ID: return getRelationshipRelationshipLabel_4005Parser(); case RelationshipLabel3EditPart.VISUAL_ID: return getRelationshipRelationshipLabel_4006Parser(); } return null; }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/c90605b94797aa95ffa039808ae26671d3dd7b1e/MindmapParserProvider.java/clean/examples/org.eclipse.gmf.examples.mindmap.diagram/src/org/eclipse/gmf/examples/mindmap/diagram/providers/MindmapParserProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 2678, 20804, 12, 474, 11623, 734, 13, 288, 202, 202, 9610, 261, 26671, 734, 13, 288, 202, 202, 3593, 4884, 6638, 4666, 1988, 18, 4136, 6639, 1013, 67, 734, 30, 1082, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 2678, 20804, 12, 474, 11623, 734, 13, 288, 202, 202, 9610, 261, 26671, 734, 13, 288, 202, 202, 3593, 4884, 6638, 4666, 1988, 18, 4136, 6639, 1013, 67, 734, 30, 1082, 202...
xpos=100+extpad;
xpos=extpad;
public void mouseClicked(MouseEvent e) { int i=0, j=0, found=0; int xpos=100+extpad, ypos=extpad+2*fm.getHeight(); for(j=m_selectedAttribs.length-1; j>=0; j--) { for(i=0; i<m_selectedAttribs.length; i++) { if(e.getX()>=xpos && e.getX()<=xpos+cellSize+extpad) if(e.getY()>=ypos && e.getY()<=ypos+cellSize+extpad) { found=1; break; } xpos+=cellSize+extpad; } if(found==1) break; xpos=100+extpad; ypos+=cellSize+extpad; } if(found==0) return; JFrame jf = new JFrame("Weka Knowledge Explorer: Visualizing "+m_data.relationName() ); VisualizePanel vp = new VisualizePanel(); try { PlotData2D pd = new PlotData2D(m_data); pd.setPlotName("Master Plot"); vp.setMasterPlot(pd); //System.out.println("x: "+i+" y: "+j); vp.setXIndex(m_selectedAttribs[i]); vp.setYIndex(m_selectedAttribs[j]); vp.m_ColourCombo.setSelectedIndex( m_classIndex ); } catch(Exception ex) { ex.printStackTrace(); } jf.getContentPane().add(vp); jf.setSize(800,600); jf.show(); }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/ae10b559d1a6d6411c854787f8bf62ed18f1596d/MatrixPanel.java/buggy/weka/gui/visualize/MatrixPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7644, 27633, 12, 9186, 1133, 425, 13, 288, 1377, 509, 277, 33, 20, 16, 525, 33, 20, 16, 1392, 33, 20, 31, 202, 3639, 509, 30031, 33, 6625, 15, 408, 6982, 16, 30968, 33, 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, 7644, 27633, 12, 9186, 1133, 425, 13, 288, 1377, 509, 277, 33, 20, 16, 525, 33, 20, 16, 1392, 33, 20, 31, 202, 3639, 509, 30031, 33, 6625, 15, 408, 6982, 16, 30968, 33, 4...
String sql = StringUtils.replaceString(m_authenticateStmt, map); m_log.info(sql);
String sql = StringUtils.replaceString(authenticateStmt, map); log.info(sql);
public synchronized boolean authenticate(String user, String password) throws FtpException { // check input if( (user == null) || (password == null) ) { return false; } Statement stmt = null; ResultSet rs = null; try { // create the sql query HashMap map = new HashMap(); map.put( BaseUser.ATTR_LOGIN, escapeString(user) ); map.put( BaseUser.ATTR_PASSWORD, escapeString(password) ); String sql = StringUtils.replaceString(m_authenticateStmt, map); m_log.info(sql); // execute query prepareConnection(); stmt = m_connection.createStatement(); rs = stmt.executeQuery(sql); return rs.next(); } catch(SQLException ex) { m_log.error("DbUserManager.authenticate()", ex); throw new FtpException("DbUserManager.authenticate()", ex); } finally { if(rs != null) { try { rs.close(); } catch(Exception ex) { m_log.error("DbUserManager.authenticate()", ex); } } if(stmt != null) { try { stmt.close(); } catch(Exception ex) { m_log.error("DbUserManager.authenticate()", ex); } } } }
48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/DbUserManager.java/buggy/src/java/org/apache/ftpserver/usermanager/DbUserManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1250, 8929, 12, 780, 729, 16, 4766, 2868, 514, 2201, 13, 1216, 478, 6834, 503, 288, 7734, 368, 866, 810, 3639, 309, 12, 261, 1355, 422, 446, 13, 747, 261, 3664, 422, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1250, 8929, 12, 780, 729, 16, 4766, 2868, 514, 2201, 13, 1216, 478, 6834, 503, 288, 7734, 368, 866, 810, 3639, 309, 12, 261, 1355, 422, 446, 13, 747, 261, 3664, 422, 446, ...
if (logger.isDebugEnabled()) logger.debug("!!!! [STATUS CHANGED CALLED] on asset="+csce[i].getName()+" with: \n= "+csce[i].toString()+" getCurrentLocation = " + csce[i].getCurrentLocation()+" getPriorLocation = " + csce[i].getPriorLocation());
public void statusChanged(CommunityStatusChangeEvent[] csce) { DefaultAssetTechSpec hostAsset; DefaultAssetTechSpec nodeAsset; DefaultAssetTechSpec agentAsset; String agentName = null; String nodeName = null; String hostName = null; boolean newAgent; boolean movingAgent; boolean removedAsset; //Look at the events for new agent assets for (int i = 0; i < csce.length; i++) { newAgent = false; movingAgent = false; removedAsset = false;//logger.warn("!!!! [STATUS CHANGED CALLED] on asset="+csce[i].getName()+" with: \n= "+csce[i].toString()+" getCurrentLocation = " + csce[i].getCurrentLocation()+" getPriorLocation = " + csce[i].getPriorLocation()); /* logger.warn("!!!! ****************************************************");logger.warn("!!!! [STATUS CHANGED CALLED] asset = "+csce[i].getName());if (csce[i].locationChanged()) logger.warn("!!!! location changed");if (csce[i].membersAdded()) logger.warn("!!!! membersAdded");if (csce[i].leaderChanged()) logger.warn("!!!! leaderChanged");if (csce[i].membersRemoved()) logger.warn("!!!! membersRemoved");if (csce[i].stateChanged()) logger.warn("!!!! stateChanged");if (csce[i].stateExpired()) logger.warn("!!!! stateExpired");logger.warn("!!!! getCurrentLocation = " + csce[i].getCurrentLocation());logger.warn("!!!! getPriorLocation = " + csce[i].getPriorLocation());logger.warn("!!!! **********************************************************");*/ // Is this a new agent? if ( (csce[i].membersAdded() && csce[i].getCurrentLocation() != null) || (csce[i].locationChanged() && csce[i].getPriorLocation() == null) ) { newAgent = true; } else if (csce[i].locationChanged() && csce[i].getPriorLocation() != null) { movingAgent = true; } else if (csce[i].membersRemoved()) { removedAsset = true; } agentName = csce[i].getName(); //*********************************************************************** //******** Ignore if not a new agent or moving agent -- for NOW ********* //*********************************************************************** //Later could monitor other changes in an agent / node. if ( newAgent || movingAgent ) { if ( csce[i].getType() == CommunityStatusModel.AGENT ) { nodeName = csce[i].getCurrentLocation(); hostName = csm.getLocation(nodeName); } else if ( csce[i].getType() == CommunityStatusModel.NODE ) { //node & node agent have the same name nodeName = agentName; hostName = csce[i].getCurrentLocation(); } if (hostName == null || nodeName == null || hostName.length() == 0 || nodeName.length() == 0) { // logger.warn("!!!- [ASSET NOT ADDED] Saw new agent asset ["+agentName+"] without host/node info: hostName = "+hostName + " nodeName = "+nodeName); continue; } else { //continue hostAsset = getHost(hostName); nodeAsset = getNode(hostAsset, nodeName); } //*** Handle a new agent if ( newAgent ) { //Make sure we haven't seen this agent before we create a new one! agentAsset = DefaultAssetTechSpec.findAssetByID(new AssetID(agentName, AssetType.AGENT)); if (agentAsset != null) { if (logger.isDebugEnabled()) logger.debug("************************>>> Saw DUPLICATE agent asset ["+agentName+"] with host/node info: hostName = "+hostName + " nodeName = "+nodeName); continue; } if (logger.isDebugEnabled()) logger.debug("============>>> Saw new agent asset ["+agentName+"] with host/node info: hostName = "+hostName + " nodeName = "+nodeName); agentAsset = new DefaultAssetTechSpec( hostAsset, nodeAsset, agentName, AssetType.AGENT, us.nextUID()); //Use NODE name to assign FWD / REAR property -- doing this also for nodes in getNode() if (nodeName.startsWith("REAR")) { agentAsset.addProperty(new AgentAssetProperty(AgentAssetProperty.location, "REAR")); } else if (nodeName.startsWith("FWD")) { agentAsset.addProperty(new AgentAssetProperty(AgentAssetProperty.location, "FORWARD")); } queueChangeEvent(new AssetChangeEvent( agentAsset, AssetChangeEvent.NEW_ASSET)); //*** Handle an agent moving } else if (movingAgent) { //it's a movingAgent logger.info("Agent location changed: agent=" + agentName + " priorLocation=" + csce[i].getPriorLocation() + " newLocation=" + csce[i].getCurrentLocation()); agentAsset = DefaultAssetTechSpec.findAssetByID(new AssetID(agentName, AssetType.AGENT)); if (agentAsset == null) { // then this is an agent we've never seen before! agentAsset = new DefaultAssetTechSpec( hostAsset, nodeAsset, agentName, AssetType.AGENT, us.nextUID()); } agentAsset.setNewLocation(hostAsset, nodeAsset); queueChangeEvent(new AssetChangeEvent( agentAsset, AssetChangeEvent.MOVED_ASSET)); //Use NODE name to assign FWD / REAR property if (nodeName.startsWith("REAR")) { agentAsset.addProperty(new AgentAssetProperty(AgentAssetProperty.location, "REAR")); } else if (nodeName.startsWith("FWD")) { agentAsset.addProperty(new AgentAssetProperty(AgentAssetProperty.location, "FWD")); } //*** Handle an agent that has been removed } } else if (removedAsset) { //it's a removedAsset //if it's a node agent, remove the node asset. if (csce[i].getType() == CommunityStatusModel.AGENT) { logger.info("Agent REMOVED: agent=" + agentName); agentAsset = DefaultAssetTechSpec.findAssetByID(new AssetID(agentName, AssetType.AGENT)); if (agentAsset != null) { queueChangeEvent(new AssetChangeEvent( agentAsset, AssetChangeEvent.REMOVED_ASSET)); } } else if (csce[i].getType() == CommunityStatusModel.NODE) { //then we must remove both the node asset and the node-agent asset logger.info("NODE AND NODE-AGENT REMOVED: node=" + agentName); nodeAsset = DefaultAssetTechSpec.findAssetByID(new AssetID(agentName, AssetType.NODE)); if (nodeAsset != null) { queueChangeEvent(new AssetChangeEvent( nodeAsset, AssetChangeEvent.REMOVED_ASSET)); } agentAsset = DefaultAssetTechSpec.findAssetByID(new AssetID(agentName, AssetType.AGENT)); if (agentAsset != null) { queueChangeEvent(new AssetChangeEvent( agentAsset, AssetChangeEvent.REMOVED_ASSET)); } } } else { // logger.debug("!!!! [STATUS CHANGED CALLED] - UNKNOWN change"); } } }
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/dc40fb763bae2a9685bb25cd0d044c90a02961c0/AssetManagerPlugin.java/clean/Coordinator/src/org/cougaar/coordinator/techspec/AssetManagerPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 1194, 18, 4148, 2932, 23045, 306, 8608, 6469, 21095, 385, 27751, 65, 603, 3310, 1546, 15, 2143, 311, 63, 77, 8009, 17994, 1435, 9078, 598, 30, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 1194, 18, 4148, 2932, 23045, 306, 8608, 6469, 21095, 385, 27751, 65, 603, 3310, 1546, 15, 2143, 311, 63, 77, 8009, 17994, 1435, 9078, 598, 30, 225, ...
public OMGraphicList loadFile() throws IOException, MIFException { float[] ptarray = null; //Used by region to do the polygon calculation float[] latpts = null; float[] lonpts = null; //Specifies the expected next action in the loop int action = PROCESS_HEADER; int number = 0; int count = 0; int multiple = 0; int multicnt = 0; //setting to true means we don't read the same line again boolean pushback; String empty = ""; StringTokenizer st = null; String tok = null; pushback = false; int idx; OMPoly omp = null; OMLine oml = null; MIFPoint ompoint = null; OMText omtext = null; boolean ismultiple = false; OMGraphicList aList = new OMGraphicList(); // a vector of omgraphics for regions that allows adding and // deleting Vector omgs = new Vector(); MAIN_LOOP: while (true) { if (!pushback) { //if it's null then there's no more if ((st = getTokens(br)) == null) break MAIN_LOOP; tok = st.nextToken(); } else { pushback = false; //pushback was true so make it // false so it doesn't happen twice } SWITCH: switch (action) { case PROCESS_HEADER: if (isSame(tok, DATA_WORD)) { action = PROCESS_DATA; } else if (isSame(tok, VERSION_WORD)) { } else if (isSame(tok, DELIMITER_WORD)) { } else if (isSame(tok, COORDSYS_WORD)) { //check the CoordSys header, OpenMap only // directly //supports LatLong type of coordsys String coordSysLine = COORDSYS_WORD; while (st.hasMoreElements()) { coordSysLine += " " + st.nextElement(); } String goodCoordSys = COORDSYS_WORD + " " + LATLONG_COORDSYS_DEF; if (goodCoordSys.length() < coordSysLine.length()) { coordSysLine = coordSysLine.substring(0, goodCoordSys.length()); } else { goodCoordSys = goodCoordSys.substring(0, coordSysLine.length()); } //check that the CoordSys header matches the MIF //specification for LatLong type if (!isSame(coordSysLine, goodCoordSys)) { Debug.error("MIFLoader file has coordinate system: " + coordSysLine + ", requires " + goodCoordSys); //raise error, as the coordsys header was // invalid throw new MIFException("File appears to contain objects with an incompatible coordinate system (Must be Lat/Lon)."); } } break SWITCH; case PROCESS_DATA: omgs.clear(); if (isSame(tok, PLINE_WORD)) { tok = st.nextToken(); if (isSame(tok, MULTIPLE_WORD)) { multiple = Integer.parseInt(st.nextToken()); multicnt = 0; action = PROCESS_MULTIPLE; ismultiple = true; } else { number = Integer.parseInt(tok); ptarray = new float[number + number]; count = 0; action = PROCESS_PLINE; } } else if (isSame(tok, REGION_WORD)) { multiple = Integer.parseInt(st.nextToken()); multicnt = 0; action = PROCESS_REGION_HEADER; } else if (isSame(tok, LINE_WORD)) { float lon1 = Float.parseFloat(st.nextToken()); float lat1 = Float.parseFloat(st.nextToken()); float lon2 = Float.parseFloat(st.nextToken()); float lat2 = Float.parseFloat(st.nextToken()); oml = new OMLine(lat1, lon1, lat2, lon2, OMGraphicConstants.LINETYPE_STRAIGHT); action = PROCESS_POST_LINE; } else if (isSame(tok, POINT_WORD)) //handle a MIF // POINT primitive { //get the coordinates float lon1 = Float.parseFloat(st.nextToken()); float lat1 = Float.parseFloat(st.nextToken()); //construct the OM graphic ompoint = new MIFPoint(lat1, lon1, pointVisible); st = getTokens(br); //set the graphics attributes this.processSymbolWord(st, ompoint); //add to the graphic list for this layer aList.add(ompoint); action = PROCESS_DATA; } else if (isSame(tok, TEXT_WORD)) //handle a MIF // TEXT primitive { String textString = ""; //if the actual text is not on the same line as // the primitive declaration if (st.countTokens() < 1) { //get the next line st = getTokens(br); } //build up the display text string, while (st.hasMoreTokens()) { textString += st.nextToken(); } if (textString.length() >= 1) { //remove any surrounding " characters textString = textString.substring(1, textString.length() - 1); } //get the next line, it contains the coordinates st = getTokens(br); float lon1 = Float.parseFloat(st.nextToken()); float lat1 = Float.parseFloat(st.nextToken()); float lon2 = Float.parseFloat(st.nextToken()); float lat2 = Float.parseFloat(st.nextToken()); //create the OMGraphic for the text object omtext = new MIFText(lat1, lon1, textString, OMText.JUSTIFY_CENTER, textVisible); //the next line contains the text attributes st = getTokens(br); //set the attributes agains the omgraphic this.processFontWord(st, omtext); //add to the layers graphic list aList.add(omtext); action = PROCESS_DATA; } break SWITCH; //We have a line, tok is the first coord and the next //token is the second case PROCESS_PLINE: idx = count + count; ptarray[idx + 1] = Float.parseFloat(tok); ptarray[idx] = Float.parseFloat(st.nextToken()); count++; if (count == number) { omp = new OMPoly(ptarray, OMGraphic.DECIMAL_DEGREES, OMGraphic.LINETYPE_STRAIGHT); aList.add(omp); if (!ismultiple) { action = PROCESS_POST_PLINE; } else { omgs.add(omp); action = PROCESS_MULTIPLE; } } break SWITCH; case PROCESS_MULTIPLE: multicnt++; if (multicnt > multiple) { //No more multiples so we // can pushback pushback = true; multiple = 0; action = PROCESS_POST_PLINE; break SWITCH; } number = Integer.parseInt(tok); count = 0; ptarray = new float[number + number]; action = PROCESS_PLINE; break SWITCH; case PROCESS_POST_PLINE: if (isSame(tok, PEN_WORD)) { if (ismultiple) { processPenWord(st, omgs); } else { processPenWord(st, omp); } } else if (isSame(tok, SMOOTH_WORD)) { //Smooth unimplemented } else { ismultiple = false; pushback = true; action = PROCESS_DATA; } break SWITCH; // SCN to support lines case PROCESS_POST_LINE: if (isSame(tok, PEN_WORD)) { processPenWord(st, oml); aList.add(oml); } else { ismultiple = false; pushback = true; action = PROCESS_DATA; } break SWITCH; case PROCESS_REGION_HEADER: //This processes the number // at the top of each region // sub-block multicnt++; if (multicnt > multiple) { multiple = 0; action = PROCESS_POST_REGION; //Add this point the region is finished so add // the //vector contents to list int len = omgs.size(); for (int i = 0; i < len; i++) { aList.add((OMGraphic) omgs.elementAt(i)); } break SWITCH; } number = Integer.parseInt(tok); count = 0; ptarray = new float[number + number]; latpts = new float[number]; lonpts = new float[number]; action = PROCESS_REGION; break SWITCH; case PROCESS_REGION: idx = count + count; lonpts[count] = ptarray[idx + 1] = Float.parseFloat(tok); latpts[count] = ptarray[idx] = Float.parseFloat(st.nextToken()); count++; if (count == number) { // This polygon is complete so add it and process // the next //Use this code if we just want polygons which is // much //faster if (accurate) { omgs.add(new OMSubtraction(latpts, lonpts)); } else { // Produces accurate MapInfo type rendering // but very // slow with complex regions like streets int end = latpts.length - 1; for (int i = 0; i < end; i++) { omgs.add(new OMLine(latpts[i], lonpts[i], latpts[i + 1], lonpts[i + 1], OMGraphic.LINETYPE_STRAIGHT)); } omgs.add(new OMLine(latpts[end], lonpts[end], latpts[0], lonpts[0], OMGraphic.LINETYPE_STRAIGHT)); } action = PROCESS_REGION_HEADER; } break SWITCH; // There is one pen,brush,center block at the end of a // region case PROCESS_POST_REGION: if (isSame(tok, PEN_WORD)) { processPenWord(st, omgs); } else if (isSame(tok, BRUSH_WORD)) { processBrushWord(st, omgs); } else if (isSame(tok, CENTER_WORD)) { } else { pushback = true; action = PROCESS_DATA; } break SWITCH; } // end of switch } //end of while loop br.close(); return aList; }
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/5be2809e80f4e82eea332963d111c7258f1dd7bc/MIFLoader.java/clean/src/openmap/com/bbn/openmap/layer/mif/MIFLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28839, 29459, 682, 26953, 1435, 1216, 1860, 16, 490, 5501, 503, 288, 3639, 1431, 8526, 5818, 1126, 273, 446, 31, 3639, 368, 6668, 635, 3020, 358, 741, 326, 7154, 11096, 3639, 1431, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28839, 29459, 682, 26953, 1435, 1216, 1860, 16, 490, 5501, 503, 288, 3639, 1431, 8526, 5818, 1126, 273, 446, 31, 3639, 368, 6668, 635, 3020, 358, 741, 326, 7154, 11096, 3639, 1431, ...
if ((protoProp instanceof Scriptable) && (protoProp != Undefined.instance)) { try { protoProp = ((FlattenedObject)protoProp).getObject(); return ScriptRuntime.jsDelegatesTo(instance, (Scriptable)protoProp); } catch (ClassCastException e) { }
if (protoProp instanceof FlattenedObject) { protoProp = ((FlattenedObject)protoProp).getObject(); if (protoProp != Undefined.instance) return ScriptRuntime.jsDelegatesTo(instance, (Scriptable)protoProp);
public boolean hasInstance(Scriptable instance) { FlattenedObject flat = new FlattenedObject(this); Object protoProp = flat.getProperty("prototype"); if ((protoProp instanceof Scriptable) && (protoProp != Undefined.instance)) { try { protoProp = ((FlattenedObject)protoProp).getObject(); return ScriptRuntime.jsDelegatesTo(instance, (Scriptable)protoProp); } catch (ClassCastException e) { } } Object[] args = { names[0] }; throw NativeGlobal.constructError( Context.getContext(), "TypeError", ScriptRuntime.getMessage("msg.instanceof.bad.prototype", args), instance); }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/92cc537362a2c4d8865665593daaa42cec248179/NativeFunction.java/clean/org/mozilla/javascript/NativeFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 1442, 12, 3651, 429, 791, 13, 288, 3639, 24226, 23016, 3569, 273, 394, 24226, 23016, 12, 2211, 1769, 3639, 1033, 3760, 4658, 273, 3569, 18, 588, 1396, 2932, 18541, 8863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 1442, 12, 3651, 429, 791, 13, 288, 3639, 24226, 23016, 3569, 273, 394, 24226, 23016, 12, 2211, 1769, 3639, 1033, 3760, 4658, 273, 3569, 18, 588, 1396, 2932, 18541, 8863, ...
JOptionPane.showMessageDialog(MainFrame.this,"There is no project to save");
JOptionPane.showMessageDialog(MainFrame.this,edu.umd.cs.findbugs.L10N.getLocalString("dlg.no_proj_save_lbl", "There is no project to save"));
private boolean projectSaveAs(){ if (curProject==null) { JOptionPane.showMessageDialog(MainFrame.this,"There is no project to save"); return false; } FBFileChooser jfc=new FBFileChooser(); jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); jfc.setFileFilter(new FindBugsProjectFileFilter()); jfc.setDialogTitle("Save as..."); boolean exists = false; File dir=null; boolean retry; do { retry = false; int value=jfc.showSaveDialog(MainFrame.this); if (value!=JFileChooser.APPROVE_OPTION) return false; dir = jfc.getSelectedFile(); File xmlFile=new File(dir.getAbsolutePath() + File.separator + dir.getName() + ".xml"); File fasFile=new File(dir.getAbsolutePath() + File.separator + dir.getName() + ".fas"); exists=xmlFile.exists() && fasFile.exists(); if(exists){ int response = JOptionPane.showConfirmDialog(jfc, "This project already exists.\nDo you want to replace it?", "Warning!", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); if(response == JOptionPane.OK_OPTION) retry = false; if(response == JOptionPane.CANCEL_OPTION){ retry = true; continue; } } boolean good=save(dir); if (good==false) { JOptionPane.showMessageDialog(MainFrame.this, "An error occured in saving"); return false; } projectDirectory=dir; } while (retry); curProject.setProjectFileName(projectDirectory.getName()); File xmlFile=new File(dir.getAbsolutePath() + File.separator + dir.getName() + ".xml"); //If the file already existed, its already in the preferences, as well as the recent projects menu items, only add it if they change the name, otherwise everything we're storing is still accurate since all we're storing is the location of the file. if (!exists) { GUISaveState.getInstance().addRecentProject(xmlFile); } MainFrame.this.addRecentProjectToMenu(xmlFile); return true; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/b528d20cfd857d85943a963e25f5af10203aa7b2/MainFrame.java/buggy/findbugs/src/java5/edu/umd/cs/findbugs/gui2/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1984, 4755, 1463, 1435, 95, 202, 202, 430, 261, 1397, 4109, 631, 2011, 13, 202, 202, 95, 1082, 202, 46, 1895, 8485, 18, 4500, 1079, 6353, 12, 6376, 3219, 18, 2211, 1083...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1984, 4755, 1463, 1435, 95, 202, 202, 430, 261, 1397, 4109, 631, 2011, 13, 202, 202, 95, 1082, 202, 46, 1895, 8485, 18, 4500, 1079, 6353, 12, 6376, 3219, 18, 2211, 1083...
setProperty( OdaDataSource.EXTENSION_ID_PROP,
setProperty( IOdaExtendableElementModel.EXTENSION_ID_PROP,
CompatibleOdaDriverPropertyStructureListState( ModuleParserHandler theHandler, DesignElement element ) { super( theHandler, element ); setProperty( OdaDataSource.EXTENSION_ID_PROP, "org.eclipse.birt.report.data.oda.jdbc" ); //$NON-NLS-1$ }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/CompatibleOdaDriverPropertyStructureListState.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CompatibleOdaDriverPropertyStructureListState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 14599, 51, 2414, 4668, 1396, 6999, 682, 1119, 12, 1082, 202, 3120, 2678, 1503, 326, 1503, 16, 29703, 1046, 930, 262, 202, 95, 202, 202, 9565, 12, 326, 1503, 16, 930, 11272, 202, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14599, 51, 2414, 4668, 1396, 6999, 682, 1119, 12, 1082, 202, 3120, 2678, 1503, 326, 1503, 16, 29703, 1046, 930, 262, 202, 95, 202, 202, 9565, 12, 326, 1503, 16, 930, 11272, 202, 20...
BufferedReader reader = KoLDatabase.getReader( new File( "plots/" + filename + ".txt" ) );
BufferedReader reader = KoLDatabase.getReader( new File( "planting/" + filename + ".txt" ) );
public static void loadLayout( String filename, String [][] originalData, String [][] planningData ) { // The easiest file to parse that is already provided is // the text file which was generated automatically. BufferedReader reader = KoLDatabase.getReader( new File( "plots/" + filename + ".txt" ) ); try { String line = ""; int dayIndex = 0; while ( line != null ) { // Skip four lines from the mushroom plot, // which only contain header information. for ( int i = 0; i < 4 && line != null; ++i ) line = reader.readLine(); // Now, split the line into individual units // based on whitespace. if ( line != null ) { for ( int i = 0; i < 4; ++i ) { line = reader.readLine(); if ( line != null ) { String [] pieces = line.trim().split( "[\\s\\*]+" ); for ( int j = 0; j < 4; ++j ) originalData[ dayIndex ][ i * 4 + j ] = pieces[j]; for ( int j = 4; j < 8; ++j ) planningData[ dayIndex ][ i * 4 + j - 4 ] = pieces[j]; } } // Now that you've wrapped up a day, eat // an empty line and continue on with the // next iteration. ++dayIndex; line = reader.readLine(); } } } catch ( Exception e ) { printStackTrace( e ); return; } // Make sure to close the reader after you're done reading // all the data in the file. try { reader.close(); } catch ( Exception e ) { printStackTrace( e ); return; } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/9e10654bccbf68d5d1299d34474b739d82d66241/MushroomPlot.java/buggy/src/net/sourceforge/kolmafia/MushroomPlot.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1262, 3744, 12, 514, 1544, 16, 514, 5378, 8526, 2282, 751, 16, 514, 5378, 8526, 886, 10903, 751, 262, 202, 95, 202, 202, 759, 1021, 7264, 77, 395, 585, 358, 1109, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1262, 3744, 12, 514, 1544, 16, 514, 5378, 8526, 2282, 751, 16, 514, 5378, 8526, 886, 10903, 751, 262, 202, 95, 202, 202, 759, 1021, 7264, 77, 395, 585, 358, 1109, ...
TaskActivityTimer activeListener = timerMap.remove(task); if (activeListener != null) activeListener.stopTimer(); taskList.setActive(task, false);
TaskActivityTimer taskTimer = timerMap.remove(task); if (taskTimer != null) taskTimer.stopTimer(); taskList.setActive(task, false);
public void deactivateTask(ITask task) { TaskActivityTimer activeListener = timerMap.remove(task); if (activeListener != null) activeListener.stopTimer(); taskList.setActive(task, false); for (ITaskActivityListener listener : listeners) listener.taskDeactivated(task); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/8f0efbbcb0138a52fdd2c6f3f7d380788f1ffd64/TaskListManager.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/TaskListManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18790, 2174, 12, 1285, 835, 1562, 13, 288, 202, 202, 2174, 6193, 6777, 2695, 2223, 273, 5441, 863, 18, 4479, 12, 4146, 1769, 202, 202, 430, 261, 3535, 2223, 480, 446, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18790, 2174, 12, 1285, 835, 1562, 13, 288, 202, 202, 2174, 6193, 6777, 2695, 2223, 273, 5441, 863, 18, 4479, 12, 4146, 1769, 202, 202, 430, 261, 3535, 2223, 480, 446, 13,...
getRuntime().getCacheMap().remove(name, existingMethod);
getRuntime().getCacheMap().remove(name, existingMethod);
public void addMethod(String name, ICallable method) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw getRuntime().newSecurityError("Insecure: can't define method"); } testFrozen("class/module"); // We can safely reference methods here instead of doing getMethods() since if we // are adding we are not using a IncludedModuleWrapper. synchronized(getMethods()) { // If we add a method which already is cached in this class, then we should update the // cachemap so it stays up to date. ICallable existingMethod = (ICallable) getMethods().remove(name); if (existingMethod != null) { getRuntime().getCacheMap().remove(name, existingMethod); } getMethods().put(name, method); } }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18223, 12, 780, 508, 16, 467, 11452, 707, 13, 288, 3639, 309, 261, 2211, 422, 18814, 7675, 588, 921, 10756, 288, 5411, 18814, 7675, 8869, 12, 24, 1769, 3639, 289, 3639, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18223, 12, 780, 508, 16, 467, 11452, 707, 13, 288, 3639, 309, 261, 2211, 422, 18814, 7675, 588, 921, 10756, 288, 5411, 18814, 7675, 8869, 12, 24, 1769, 3639, 289, 3639, 309, ...
Object o = c.execute (target); return o;
Object result = null; if (!AbstractProxy.isOneWayCall(mc)) { Object[] paramProxy = new Object[0]; result = MOP.newInstance(mc.getReifiedMethod().getReturnType().getName(), null, Constants.DEFAULT_FUTURE_PROXY_CLASS_NAME, paramProxy); ((org.objectweb.proactive.core.body.future.FutureProxy)((StubObject)result).getProxy()).setResult(mc.execute(target)); } else {result = mc.execute(target); } return result;
public Object reify(MethodCall c) throws InvocationTargetException, IllegalAccessException { try { Object o = c.execute (target); return o; } catch (MethodCallExecutionFailedException e) { e.printStackTrace(); return null; } }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/b5b6b2bb6ded96a8d2ca2db6f12836cec349b290/ProxyForJavaObject.java/clean/src/org/objectweb/proactive/core/group/ProxyForJavaObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 283, 1164, 12, 12592, 276, 13, 1216, 15342, 16, 11900, 565, 288, 202, 698, 202, 565, 288, 202, 202, 921, 320, 273, 276, 18, 8837, 261, 3299, 1769, 202, 202, 2463, 320, 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, 1033, 283, 1164, 12, 12592, 276, 13, 1216, 15342, 16, 11900, 565, 288, 202, 698, 202, 565, 288, 202, 202, 921, 320, 273, 276, 18, 8837, 261, 3299, 1769, 202, 202, 2463, 320, 31, ...
DebuggableEngine engine = cx.getDebuggableEngine(); engine.setDebugger(this); cx.setGeneratingDebug(true); cx.setOptimizationLevel(-1); if(breakFlag || Thread.currentThread() == mainThread) { engine.setBreakNextLine(true); }
synchronized(contexts) { DebuggableEngine engine = cx.getDebuggableEngine(); engine.setDebugger(this); cx.setGeneratingDebug(true); cx.setOptimizationLevel(-1); if(breakFlag || Thread.currentThread() == mainThread) { engine.setBreakNextLine(true); } }
public void contextCreated(Context cx) { DebuggableEngine engine = cx.getDebuggableEngine(); engine.setDebugger(this); cx.setGeneratingDebug(true); cx.setOptimizationLevel(-1); // if the user pressed "Break" or if this thread is the shell's // Main then set the break flag so that when the debugger is run // with a file argument on the command line it will // break at the start of the file if(breakFlag || Thread.currentThread() == mainThread) { engine.setBreakNextLine(true); } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/7ab6840f1ce37eeb4f70fec25f0784a85646788a/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 819, 6119, 12, 1042, 9494, 13, 288, 202, 2829, 8455, 4410, 4073, 273, 9494, 18, 588, 2829, 8455, 4410, 5621, 202, 8944, 18, 542, 24113, 12, 2211, 1769, 202, 71, 92, 18, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 819, 6119, 12, 1042, 9494, 13, 288, 202, 2829, 8455, 4410, 4073, 273, 9494, 18, 588, 2829, 8455, 4410, 5621, 202, 8944, 18, 542, 24113, 12, 2211, 1769, 202, 71, 92, 18, 542, ...
public void execute( ) throws DataException
public void execute( IEventHandler eventHandler ) throws DataException
public void execute( ) throws DataException { logger.logp( Level.FINER, QueryExecutor.class.getName( ), "execute", "Start to execute" ); if(this.isExecuted) return; // Execute the query odiResult = executeOdiQuery( ); // Bind the row object to the odi result set this.dataSet.setResultSet( odiResult, false ); // Calculate aggregate values aggregates = new AggregateCalculator( this.aggrTable, odiResult ); // Calculate aggregate values aggregates.calculate( getQueryScope() ); this.isExecuted = true; logger.logp( Level.FINER, QueryExecutor.class.getName( ), "execute", "Finish executing" ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/83c61e18ec014b0a0d7683b4196d0a84fb37ac77/QueryExecutor.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/QueryExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 262, 1216, 1910, 503, 202, 95, 202, 202, 4901, 18, 1330, 84, 12, 4557, 18, 7263, 654, 16, 9506, 202, 1138, 6325, 18, 1106, 18, 17994, 12, 262, 16, 9506, 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, 1836, 12, 262, 1216, 1910, 503, 202, 95, 202, 202, 4901, 18, 1330, 84, 12, 4557, 18, 7263, 654, 16, 9506, 202, 1138, 6325, 18, 1106, 18, 17994, 12, 262, 16, 9506, 202, ...
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name); if (constant == null) { if (getRuntime().getLoadService().autoload(name) != null) { continue; } } if (constant != null) { if (exclude && p == objectClass && this != objectClass) { getRuntime().getWarnings().warn("toplevel constant " + name + " referenced by " + getName() + "::" + name); } return constant; } p = p.getSuperClass(); } if (!exclude && !retryForModule && getClass().equals(RubyModule.class)) { retryForModule = true; p = getRuntime().getObject(); continue retry; } break; } return callMethod(getRuntime().getCurrentContext(), "const_missing", RubySymbol.newSymbol(getRuntime(), name)); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 24337, 2857, 12, 780, 508, 16, 1250, 4433, 13, 288, 3639, 15908, 10340, 921, 23992, 273, 18814, 7675, 588, 921, 5621, 3639, 1250, 3300, 1290, 3120, 273, 629, 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, 3238, 15908, 10340, 921, 24337, 2857, 12, 780, 508, 16, 1250, 4433, 13, 288, 3639, 15908, 10340, 921, 23992, 273, 18814, 7675, 588, 921, 5621, 3639, 1250, 3300, 1290, 3120, 273, 629, 31, ...
public HandleDispatcher(String hdl)
private HandleDispatcher()
public HandleDispatcher(String hdl) { handle = hdl; }
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/6c35684c85aea40f564514743cf353881f53e165/HandleDispatcher.java/buggy/dspace/src/org/dspace/checker/HandleDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5004, 6681, 1435, 565, 288, 3639, 1640, 273, 366, 5761, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5004, 6681, 1435, 565, 288, 3639, 1640, 273, 366, 5761, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop);
} case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop);
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/7ab2eb958bc5d5b8575262b37554c7e600ccf6e9/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
private int indexOfDuplicate(Object obj) {
private int indexOfDuplicate(Attribute attribute) {
private int indexOfDuplicate(Object obj) { int duplicate = -1; if (obj instanceof Attribute) { Attribute attribute = (Attribute) obj; String name = attribute.getName(); Namespace namespace = attribute.getNamespace(); duplicate = indexOf(name, namespace); } return duplicate; }
49530 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49530/3919cb6a371e73432f33c7fa19c190dfb48aae45/AttributeList.java/buggy/core/src/java/org/jdom/AttributeList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 3133, 11826, 12, 1499, 1566, 13, 288, 3639, 509, 6751, 273, 300, 21, 31, 3639, 309, 261, 2603, 1276, 3601, 13, 288, 5411, 3601, 1566, 273, 261, 1499, 13, 1081, 31, 5411, 514,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 3133, 11826, 12, 1499, 1566, 13, 288, 3639, 509, 6751, 273, 300, 21, 31, 3639, 309, 261, 2603, 1276, 3601, 13, 288, 5411, 3601, 1566, 273, 261, 1499, 13, 1081, 31, 5411, 514,...
center = container.get3DCenter();
center = GeometryTools.get3DCenter(container);
public AcceleratedRenderer3DModel(AtomContainer container) { Atom[] atoms = container.getAtoms(); Bond[] bonds = container.getBonds(); int i,j; Sphere sphere; TransformGroup transformgroup; for(i=0; i<atoms.length; i++) { //System.out.println("OZ["+i+"]="+atoms[i].getElement().getAtomicNumber()); sphere = getAtomObject(0.2, atomcolors[atoms[i].getAtomicNumber()]); atomObjects.addElement(sphere); transformgroup = new TransformGroup(getShiftTransformation(atoms[i].getPoint3d())); transformgroup.addChild(sphere); atomTransfroms.addElement(transformgroup); root.addChild(transformgroup); } Cylinder cylinder; try { double[][] cm = ConnectionMatrix.getMatrix(container); for(i=0; i<cm.length; i++) for(j=0; j<i; j++) if (cm[i][j]>0) { cylinder = getBondObject(0.05, /*Color.darkGray*/Color.gray); bondObjects.addElement(cylinder); transformgroup = new TransformGroup(getStrainTransformation( atoms[i].getPoint3d(), atoms[j].getPoint3d())); transformgroup.addChild(cylinder); atomTransfroms.addElement(transformgroup); root.addChild(transformgroup); } } catch (Exception e) { e.printStackTrace(); } center = container.get3DCenter(); center.negate(); setTransformation(center, 1, 0, 0); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/a711f314772068502a3ee14680a12c3c2be4a630/AcceleratedRenderer3DModel.java/buggy/src/org/openscience/cdk/renderer/AcceleratedRenderer3DModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15980, 292, 19007, 6747, 23, 40, 1488, 12, 3641, 2170, 1478, 13, 202, 95, 202, 202, 3641, 8526, 9006, 273, 1478, 18, 588, 14280, 5621, 202, 202, 9807, 8526, 15692, 273, 1478, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15980, 292, 19007, 6747, 23, 40, 1488, 12, 3641, 2170, 1478, 13, 202, 95, 202, 202, 3641, 8526, 9006, 273, 1478, 18, 588, 14280, 5621, 202, 202, 9807, 8526, 15692, 273, 1478, ...
private static boolean nsRecurseCheckCardinality(SchemaParticle baseModel, SchemaParticle derivedModel, Collection errors, XmlObject context) { // nsRecurseCheckCardinality is called when: // base: ANY, derived: ALL // base: ANY, derived: CHOICE // base: ANY, derived: SEQUENCE assert baseModel.getParticleType() == SchemaParticle.WILDCARD; assert (derivedModel.getParticleType() == SchemaParticle.ALL) || (derivedModel.getParticleType() == SchemaParticle.CHOICE) || (derivedModel.getParticleType() == SchemaParticle.SEQUENCE); boolean nsRecurseCheckCardinality = true; // For a group particle to be a valid restriction of a wildcard particle all of the following must be true: // 1 Every member of the {particles} of the group is a valid restriction of the wildcard as defined by Particle Valid (Restriction) (3.9.6). // Note: not positive what this means. Interpreting to mean that every particle of the group must adhere to wildcard derivation rules // in a recursive manner // Loop thru the children particles of the group and invoke the appropriate function to check for wildcard restriction validity // BAU - an errata should be submitted on this clause of the spec, because the // spec makes no sense, as the xstc particlesR013.xsd test exemplifies. // what we _should_ so is an "as if" on the wildcard, allowing it minOccurs="0" maxOccurs="unbounded" // before recursing SchemaParticleImpl asIfPart = new SchemaParticleImpl(); asIfPart.setParticleType(baseModel.getParticleType()); asIfPart.setWildcardProcess(baseModel.getWildcardProcess()); asIfPart.setWildcardSet(baseModel.getWildcardSet()); asIfPart.setMinOccurs(BigInteger.ZERO); asIfPart.setMaxOccurs(null); asIfPart.setTransitionRules(baseModel.getWildcardSet(), true); asIfPart.setTransitionNotes(baseModel.getWildcardSet(), true); SchemaParticle[] particleChildren = derivedModel.getParticleChildren(); for (int i = 0; i < particleChildren.length; i++) { SchemaParticle particle = particleChildren[i]; switch (particle.getParticleType()) { case SchemaParticle.ELEMENT: // Check for valid Wildcard/Element derivation nsRecurseCheckCardinality = nsCompat(asIfPart, (SchemaLocalElement) particle, errors, context); break; case SchemaParticle.WILDCARD: // Check for valid Wildcard/Wildcard derivation nsRecurseCheckCardinality = nsSubset(asIfPart, particle, errors, context); break; case SchemaParticle.ALL: case SchemaParticle.CHOICE: case SchemaParticle.SEQUENCE: // Check for valid Wildcard/Group derivation nsRecurseCheckCardinality = nsRecurseCheckCardinality(asIfPart, particle, errors, context); break; } // If any particle is invalid then break the loop if (!nsRecurseCheckCardinality) { break; } } // 2 The effective total range of the group, as defined by Effective Total Range (all and sequence) (3.8.6) // (if the group is all or sequence) or Effective Total Range (choice) (3.8.6) (if it is choice) is a valid // restriction of B's occurrence range as defined by Occurrence Range OK (3.9.6). if (nsRecurseCheckCardinality) { nsRecurseCheckCardinality = checkGroupOccurrenceOK(baseModel, derivedModel, errors, context); } return nsRecurseCheckCardinality; }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/2abb5020b672ce690c4e9ee7b7ac4e53b4a084db/StscChecker.java/clean/src/typeimpl/org/apache/xmlbeans/impl/schema/StscChecker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 3153, 426, 17682, 1564, 20091, 12, 3078, 1988, 3711, 1026, 1488, 16, 4611, 1988, 3711, 10379, 1488, 16, 2200, 1334, 16, 5714, 921, 819, 13, 288, 3639, 368, 3153, 426, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 3153, 426, 17682, 1564, 20091, 12, 3078, 1988, 3711, 1026, 1488, 16, 4611, 1988, 3711, 10379, 1488, 16, 2200, 1334, 16, 5714, 921, 819, 13, 288, 3639, 368, 3153, 426, 176...
_log.warn("Invalid outbound bandwidth burst limit [" + outBwStr
_log.warn("Invalid outbound bandwidth burst limit [" + inBwStr
private void updateOutboundPeak() { String outBwStr = _context.getProperty(PROP_OUTBOUND_BANDWIDTH_PEAK); if ( (outBwStr != null) && (outBwStr.trim().length() > 0) && (!(outBwStr.equals(String.valueOf(_limiter.getMaxOutboundBytes())))) ) { // peak bw was specified *and* changed try { int out = Integer.parseInt(outBwStr); if (out >= MIN_OUTBOUND_BANDWIDTH_PEAK) { if (out < _outboundKBytesPerSecond) _limiter.setMaxOutboundBytes(_outboundKBytesPerSecond * 1024); else _limiter.setMaxOutboundBytes(out * 1024); } else { if (MIN_OUTBOUND_BANDWIDTH_PEAK < _outboundKBytesPerSecond) _limiter.setMaxOutboundBytes(_outboundKBytesPerSecond * 1024); else _limiter.setMaxOutboundBytes(MIN_OUTBOUND_BANDWIDTH_PEAK * 1024); } } catch (NumberFormatException nfe) { if (_log.shouldLog(Log.WARN)) _log.warn("Invalid outbound bandwidth burst limit [" + outBwStr + "]"); _limiter.setMaxOutboundBytes(DEFAULT_BURST_SECONDS * _outboundKBytesPerSecond * 1024); } } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("Outbound bandwidth burst limits not specified in the config via " + PROP_OUTBOUND_BANDWIDTH_PEAK); _limiter.setMaxOutboundBytes(DEFAULT_BURST_SECONDS * _outboundKBytesPerSecond * 1024); } }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/a8ecd32b45f5e68ac3be2a5c95f667f1c40146f4/FIFOBandwidthRefiller.java/clean/router/java/src/net/i2p/router/transport/FIFOBandwidthRefiller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 17873, 11227, 581, 1435, 288, 3639, 514, 596, 38, 91, 1585, 273, 389, 2472, 18, 588, 1396, 12, 15811, 67, 5069, 19318, 67, 38, 4307, 10023, 67, 1423, 14607, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 17873, 11227, 581, 1435, 288, 3639, 514, 596, 38, 91, 1585, 273, 389, 2472, 18, 588, 1396, 12, 15811, 67, 5069, 19318, 67, 38, 4307, 10023, 67, 1423, 14607, 1769, 3639, ...
StringBuffer buf = new StringBuffer();
StringBuffer buf = new StringBuffer(); Node n; NodeList nodes = textNode.getChildNodes();
private String unmarshallText(Node textNode) { StringBuffer buf = new StringBuffer(); Node n; NodeList nodes = textNode.getChildNodes(); for (int i = 0; i < nodes.getLength(); i++){ n = nodes.item(i); if (n.getNodeType() == Node.TEXT_NODE) { buf.append(n.getNodeValue()); } else { // expected a text-only node (skip) } } return buf.toString(); }
51906 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51906/eba0fcacbfe5508ae83a3f777c656c3880fbebed/DOMSettingsUnmarshaller.java/clean/src/enginuity/xml/DOMSettingsUnmarshaller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 17606, 1528, 12, 907, 977, 907, 13, 288, 202, 780, 1892, 1681, 273, 394, 6674, 5621, 202, 907, 290, 31, 202, 19914, 2199, 273, 977, 907, 18, 588, 22460, 5621, 202, 1884, 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, 377, 3238, 514, 17606, 1528, 12, 907, 977, 907, 13, 288, 202, 780, 1892, 1681, 273, 394, 6674, 5621, 202, 907, 290, 31, 202, 19914, 2199, 273, 977, 907, 18, 588, 22460, 5621, 202, 1884, 261,...
if (getExpandedTypeID(node) == _nodeType || getNodeType(node) == _nodeType || getIdForNamespace(getStringValueX(node)) == _nodeType) {
if (_nsPrefix.compareTo(getLocalName(node))== 0) {
public int next() { int node; for (node = super.next(); node != END; node = super.next()) { if (getExpandedTypeID(node) == _nodeType || getNodeType(node) == _nodeType || getIdForNamespace(getStringValueX(node)) == _nodeType) { return returnNode(node); } } return (END); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/afaae7de300a99809872e64f8fba16a63f311c09/SAXImpl.java/buggy/src/org/apache/xalan/xsltc/dom/SAXImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 1024, 1435, 288, 5411, 509, 756, 31, 5411, 364, 261, 2159, 273, 2240, 18, 4285, 5621, 756, 480, 7273, 31, 756, 273, 2240, 18, 4285, 10756, 288, 7734, 309, 261, 588, 17957, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 1024, 1435, 288, 5411, 509, 756, 31, 5411, 364, 261, 2159, 273, 2240, 18, 4285, 5621, 756, 480, 7273, 31, 756, 273, 2240, 18, 4285, 10756, 288, 7734, 309, 261, 588, 17957, 55...
} catch (LoginException e) {
} catch (final LoginException e) {
private BugReport downloadReport(final BugzillaTask bugzillaTask) { try { return BugzillaRepositoryUtil.getBug(bugzillaTask.getRepositoryUrl(), TaskRepositoryManager .getTaskIdAsInt(bugzillaTask.getHandleIdentifier())); } catch (LoginException e) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog .openError(Display.getDefault().getActiveShell(), "Report Download Failed", "The bugzilla report failed to be downloaded since your username or password is incorrect."); } }); } catch (IOException e) { if (PlatformUI.getWorkbench() != null && !PlatformUI.getWorkbench().isClosing()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { ((ApplicationWindow) PlatformUI.getWorkbench().getActiveWorkbenchWindow()) .setStatus("Download of bug: " + bugzillaTask + " failed due to I/O exception"); } }); } } return null; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/0ccc1f41860084debe8b7149eb357f30b4d2b038/BugzillaRepositoryClient.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 16907, 4820, 4224, 4820, 12, 6385, 16907, 15990, 2174, 7934, 15990, 2174, 13, 288, 202, 202, 698, 288, 1082, 202, 2463, 16907, 15990, 3305, 1304, 18, 588, 19865, 12, 925, 15990, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16907, 4820, 4224, 4820, 12, 6385, 16907, 15990, 2174, 7934, 15990, 2174, 13, 288, 202, 202, 698, 288, 1082, 202, 2463, 16907, 15990, 3305, 1304, 18, 588, 19865, 12, 925, 15990, ...
if(log.isInfoEnabled()) log.info("consolidated digest=" + new_digest);
if(log.isDebugEnabled()) log.debug("consolidated digest=" + new_digest);
MergeData consolidateMergeData(Vector v) { MergeData ret=null; MergeData tmp_data; long logical_time=0; // for new_vid ViewId new_vid, tmp_vid; MergeView new_view; View tmp_view; Membership new_mbrs=new Membership(); int num_mbrs=0; Digest new_digest=null; Address new_coord; Vector subgroups=new Vector(); // contains a list of Views, each View is a subgroup for(int i=0; i < v.size(); i++) { tmp_data=(MergeData)v.elementAt(i); if(log.isInfoEnabled()) log.info("merge data is " + tmp_data); tmp_view=tmp_data.getView(); if(tmp_view != null) { tmp_vid=tmp_view.getVid(); if(tmp_vid != null) { // compute the new view id (max of all vids +1) logical_time=Math.max(logical_time, tmp_vid.getId()); } } // merge all membership lists into one (prevent duplicates) new_mbrs.add(tmp_view.getMembers()); subgroups.addElement(tmp_view.clone()); } // the new coordinator is the first member of the consolidated & sorted membership list new_mbrs.sort(); num_mbrs=new_mbrs.size(); new_coord=num_mbrs > 0? (Address)new_mbrs.elementAt(0) : null; if(new_coord == null) { if(log.isErrorEnabled()) log.error("new_coord == null"); return null; } new_vid=new ViewId(new_coord, logical_time + 1); // determine the new view new_view=new MergeView(new_vid, new_mbrs.getMembers(), subgroups); if(log.isInfoEnabled()) log.info("new merged view will be " + new_view); // determine the new digest new_digest=consolidateDigests(v, num_mbrs); if(new_digest == null) { if(log.isErrorEnabled()) log.error("digest could not be consolidated"); return null; } if(log.isInfoEnabled()) log.info("consolidated digest=" + new_digest); ret=new MergeData(gms.local_addr, new_view, new_digest); return ret; }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/CoordGmsImpl.java/buggy/src/org/jgroups/protocols/pbcast/CoordGmsImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 8964, 751, 21785, 340, 6786, 751, 12, 5018, 331, 13, 288, 3639, 8964, 751, 325, 33, 2011, 31, 3639, 8964, 751, 1853, 67, 892, 31, 3639, 1525, 6374, 67, 957, 33, 20, 31, 368, 364, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 8964, 751, 21785, 340, 6786, 751, 12, 5018, 331, 13, 288, 3639, 8964, 751, 325, 33, 2011, 31, 3639, 8964, 751, 1853, 67, 892, 31, 3639, 1525, 6374, 67, 957, 33, 20, 31, 368, 364, 394,...
System.err.println("Problem loading a Third Party Filter Extension. Continuing anyway.");
System.err.println(CommonNavigatorMessages.ExtensionFilterViewerRegistry_0);
private void initializeThirdPartyFilterProviders(String navigatorExtensionId, List descriptors) { List thirdPartyExtensionFilterProviders = getThirdPartyFilterProviderRegistry().getThirdPartyFilterProviders(navigatorExtensionId); ExtensionFilterProvider provider = null; for (int i = 0; i < thirdPartyExtensionFilterProviders.size(); i++) { try { provider = ((ThirdPartyFilterProviderRegistry.ThirdPartyFilterProviderDescriptor) thirdPartyExtensionFilterProviders.get(i)).createProvider(); if (provider != null) descriptors.addAll(provider.getExtensionFilterDescriptors(navigatorExtensionId, this.viewerId)); } catch (RuntimeException e) { // TODO Log this more appropriately System.err.println("Problem loading a Third Party Filter Extension. Continuing anyway."); e.printStackTrace(); } catch (NoClassDefFoundError ncdfe) { System.err.println("Problem loading a Third Party Filter Extension. Continuing anyway."); ncdfe.printStackTrace(); } } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1dc6ce9641d9b1d626246712db24ed137425b43b/ExtensionFilterViewerRegistry.java/clean/bundles/org.eclipse.ui.navigator/src-navigator/org/eclipse/ui/navigator/internal/filters/ExtensionFilterViewerRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4046, 31918, 1586, 10672, 12, 780, 19796, 3625, 548, 16, 987, 14215, 13, 288, 202, 202, 682, 12126, 17619, 3625, 1586, 10672, 273, 336, 31918, 1586, 2249, 4243, 7675, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4046, 31918, 1586, 10672, 12, 780, 19796, 3625, 548, 16, 987, 14215, 13, 288, 202, 202, 682, 12126, 17619, 3625, 1586, 10672, 273, 336, 31918, 1586, 2249, 4243, 7675, 588, ...
new Properties()), mockEventHandlingStrategy, null);
new Properties()), mockEventHandlingStrategy);
public void testMessageBeforeLogonWithBoundSession() throws Exception { MockControl mockIoSessionControl = MockControl.createControl(IoSession.class); IoSession mockIoSession = (IoSession) mockIoSessionControl.getMock(); Session qfSession = SessionFactoryTestSupport.createSession(); mockIoSession.getAttribute("QF_SESSION"); mockIoSessionControl.setReturnValue(qfSession); MockControl mockEventHandlingStrategyControl = MockControl .createControl(EventHandlingStrategy.class); EventHandlingStrategy mockEventHandlingStrategy = (EventHandlingStrategy) mockEventHandlingStrategyControl .getMock(); Logout logout = new Logout(); logout.getHeader().setString(SenderCompID.FIELD, qfSession.getSessionID().getSenderCompID()); logout.getHeader().setString(TargetCompID.FIELD, qfSession.getSessionID().getTargetCompID()); mockEventHandlingStrategy.onMessage(qfSession, logout); HashMap acceptorSessions = new HashMap(); AcceptorIoHandler handler = new AcceptorIoHandler(acceptorSessions, new NetworkingOptions( new Properties()), mockEventHandlingStrategy, null); mockIoSessionControl.replay(); mockEventHandlingStrategyControl.replay(); handler.processMessage(mockIoSession, logout); mockIoSessionControl.verify(); mockEventHandlingStrategyControl.verify(); }
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/ad9064ed18905acae5f32003bbc268b5860c4c73/AcceptorIoHandlerTest.java/buggy/core/src/test/java/quickfix/mina/acceptor/AcceptorIoHandlerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1079, 4649, 1343, 265, 1190, 3499, 2157, 1435, 1216, 1185, 288, 3639, 7867, 3367, 5416, 15963, 2157, 3367, 273, 7867, 3367, 18, 2640, 3367, 12, 15963, 2157, 18, 1106, 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, 377, 1071, 918, 1842, 1079, 4649, 1343, 265, 1190, 3499, 2157, 1435, 1216, 1185, 288, 3639, 7867, 3367, 5416, 15963, 2157, 3367, 273, 7867, 3367, 18, 2640, 3367, 12, 15963, 2157, 18, 1106, 1769,...
IDerivableContainerSymbol classSymbol = pst.newDerivableContainerSymbol( name.toCharArray(), pstType );
IDerivableContainerSymbol classSymbol = pst.newDerivableContainerSymbol( name, pstType );
public IASTEnumerationSpecifier createEnumerationSpecifier( IASTScope scope, String name, int startingOffset, int startingLine, int nameOffset, int nameEndOffset, int nameLine, char[] fn) throws ASTSemanticException { setFilename(fn); IContainerSymbol containerSymbol = scopeToSymbol(scope); ITypeInfo.eType pstType = ITypeInfo.t_enumeration; IDerivableContainerSymbol classSymbol = pst.newDerivableContainerSymbol( name.toCharArray(), pstType ); try { containerSymbol.addSymbol( classSymbol ); } catch (ParserSymbolTableException e) { handleProblem( e.createProblemID(), name.toCharArray() ); } ASTEnumerationSpecifier enumSpecifier = new ASTEnumerationSpecifier( classSymbol, startingOffset, startingLine, nameOffset, nameEndOffset, nameLine, fn ); attachSymbolExtension(classSymbol, enumSpecifier, true ); return enumSpecifier; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/18d9318d4df0c5bcdcd8b34cf92c3445bcb408e6/CompleteParseASTFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 9053, 21847, 21416, 752, 21847, 21416, 12, 3639, 467, 9053, 3876, 2146, 16, 3639, 514, 508, 16, 3639, 509, 5023, 2335, 16, 3639, 509, 5023, 1670, 16, 509, 508, 2335, 16, 509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 9053, 21847, 21416, 752, 21847, 21416, 12, 3639, 467, 9053, 3876, 2146, 16, 3639, 514, 508, 16, 3639, 509, 5023, 2335, 16, 3639, 509, 5023, 1670, 16, 509, 508, 2335, 16, 509, ...
bag.verify(); }
bag.verify(); }
public void testEmptyList() { bag.verify(); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/ReturnObjectBagTest.java/clean/jmock/core/src/test/jmock/expectation/ReturnObjectBagTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1921, 682, 1435, 288, 202, 202, 22551, 18, 8705, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1921, 682, 1435, 288, 202, 202, 22551, 18, 8705, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
os = new BlobOutputStream(this);
os = new BlobOutputStream(this, 4096);
public OutputStream getOutputStream() throws SQLException { if (os == null) os = new BlobOutputStream(this); return os; }
46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/d634a5903f615a45cb463155c04d3df904e1b91a/LargeObject.java/buggy/src/interfaces/jdbc/org/postgresql/largeobject/LargeObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8962, 22553, 1435, 1216, 6483, 202, 95, 202, 202, 430, 261, 538, 422, 446, 13, 1082, 202, 538, 273, 394, 12741, 4632, 12, 2211, 1769, 202, 202, 2463, 1140, 31, 202, 97, 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, 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, 225, 202, 482, 8962, 22553, 1435, 1216, 6483, 202, 95, 202, 202, 430, 261, 538, 422, 446, 13, 1082, 202, 538, 273, 394, 12741, 4632, 12, 2211, 1769, 202, 202, 2463, 1140, 31, 202, 97, 2, -...
return ((id == ITEM_STATE_CHANGED ? "ITEM_STATE_CHANGED" : "unknown type") + ",item=" + item + ",stateChange=" + stateString);
return ((id == ITEM_STATE_CHANGED ? "ITEM_STATE_CHANGED" : "unknown type") + ",item=" + item + ",stateChange=" + stateString);
public String paramString() { /* The format is based on 1.5 release behavior * which can be revealed by the following code: * * Checkbox c = new Checkbox("Checkbox", true); * ItemEvent e = new ItemEvent(c, ItemEvent.ITEM_STATE_CHANGED, * c, ItemEvent.SELECTED); * System.out.println(e); */ String stateString = null; switch (stateChange) { case SELECTED: stateString = "SELECTED"; break; case DESELECTED: stateString = "DESELECTED"; break; default: stateString = "unknown type"; } return ((id == ITEM_STATE_CHANGED ? "ITEM_STATE_CHANGED" : "unknown type") + ",item=" + item + ",stateChange=" + stateString); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/783daf59edbe8ecf33f080c323352267b1d7f22a/ItemEvent.java/buggy/modules/awt/src/main/java/common/java/awt/event/ItemEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 579, 780, 1435, 288, 3639, 1748, 1021, 740, 353, 2511, 603, 404, 18, 25, 3992, 6885, 1850, 380, 1492, 848, 506, 283, 537, 18931, 635, 326, 3751, 981, 30, 540, 380, 1850, 380,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 579, 780, 1435, 288, 3639, 1748, 1021, 740, 353, 2511, 603, 404, 18, 25, 3992, 6885, 1850, 380, 1492, 848, 506, 283, 537, 18931, 635, 326, 3751, 981, 30, 540, 380, 1850, 380,...
this.classLoader = classLoader;
public NativeJavaPackage(String packageName, ClassLoader classLoader) { this.packageName = packageName; this.classLoader = classLoader; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/012b28330e6ece4895192a56453b155bffa44390/NativeJavaPackage.java/buggy/js/rhino/src/org/mozilla/javascript/NativeJavaPackage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16717, 5852, 2261, 12, 780, 9929, 16, 9403, 11138, 13, 288, 3639, 333, 18, 5610, 461, 273, 9929, 31, 6647, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16717, 5852, 2261, 12, 780, 9929, 16, 9403, 11138, 13, 288, 3639, 333, 18, 5610, 461, 273, 9929, 31, 6647, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
tokenType1 = iterator.getTokenType();
tokenType1 = getToken(iterator);
private static String getTagName(CharSequence fileText, HighlighterIterator iterator) { IElementType tokenType = iterator.getTokenType(); String name = null; if (tokenType == XmlTokenType.XML_START_TAG_START) { { boolean wasWhiteSpace = false; iterator.advance(); IElementType tokenType1 = (!iterator.atEnd() ? iterator.getTokenType():null); if (tokenType1 == JavaTokenType.WHITE_SPACE) { wasWhiteSpace = true; iterator.advance(); tokenType1 = (!iterator.atEnd() ? iterator.getTokenType():null); } if (tokenType1 == XmlTokenType.XML_TAG_NAME || tokenType1 == XmlTokenType.XML_NAME ) { name = fileText.subSequence(iterator.getStart(), iterator.getEnd()).toString(); } if (wasWhiteSpace) iterator.retreat(); iterator.retreat(); } } else if (tokenType == XmlTokenType.XML_TAG_END || tokenType == XmlTokenType.XML_EMPTY_ELEMENT_END) { { int count = 0; while (true) { iterator.retreat(); count++; if (iterator.atEnd()) break; IElementType tokenType1 = iterator.getTokenType(); if (tokenType1 == XmlTokenType.XML_NAME) { iterator.retreat(); tokenType1 = iterator.getTokenType(); if (tokenType1 == JavaTokenType.WHITE_SPACE) { iterator.retreat(); tokenType1 = iterator.getTokenType(); iterator.advance(); } iterator.advance(); if (tokenType1 == XmlTokenType.XML_START_TAG_START || tokenType1== XmlTokenType.XML_END_TAG_START) { name = fileText.subSequence(iterator.getStart(), iterator.getEnd()).toString(); break; } } else if (tokenType1 == XmlTokenType.XML_TAG_NAME) { name = fileText.subSequence(iterator.getStart(), iterator.getEnd()).toString(); break; } } for (int i = 0; i < count; i++) { iterator.advance(); } } } return name; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/f85099f52d2dfd21d1505b4db03c208994901fae/BraceMatchingUtil.java/clean/source/com/intellij/codeInsight/highlighting/BraceMatchingUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 514, 336, 8520, 12, 2156, 4021, 585, 1528, 16, 15207, 23624, 3198, 2775, 13, 288, 565, 467, 17481, 22302, 273, 2775, 18, 588, 28675, 5621, 565, 514, 508, 273, 446, 31, 565, 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, 282, 3238, 760, 514, 336, 8520, 12, 2156, 4021, 585, 1528, 16, 15207, 23624, 3198, 2775, 13, 288, 565, 467, 17481, 22302, 273, 2775, 18, 588, 28675, 5621, 565, 514, 508, 273, 446, 31, 565, 3...
columnExprArray = new IBaseExpression[size];
private void prepare( IResultClass resultClass ) throws DataException { assert resultClass != null; // identify those computed columns that are projected // in the result set by checking the result metadata List cmptList = new ArrayList( ); for ( int i = 0; i < ccList.size( ); i++ ) { IComputedColumn cmptdColumn = (IComputedColumn) ccList.get( i ); int cmptdColumnIdx = resultClass.getFieldIndex( cmptdColumn.getName( ) ); // check if given field name is found in result set metadata, and // is indeed declared as a custom field if ( cmptdColumnIdx >= 1 && resultClass.isCustomField( cmptdColumnIdx ) ) cmptList.add( new Integer( i ) ); // else computed column is not projected, skip to next computed // column } int size = cmptList.size( ); columnExprArray = new IBaseExpression[size]; columnIndexArray = new int[size]; for ( int i = 0; i < size; i++ ) { int pos = ( (Integer) cmptList.get( i ) ).intValue( ); IComputedColumn cmptdColumn = (IComputedColumn) ccList.get( pos ); columnExprArray[i] = cmptdColumn.getExpression( ); columnIndexArray[i] = resultClass.getFieldIndex( cmptdColumn.getName( ) ); } isPrepared = true; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/943decc79ba282a849b93c1e889603a93ee7d3b1/ComputedColumnHelper.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ComputedColumnHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2911, 12, 467, 1253, 797, 563, 797, 262, 1216, 1910, 503, 202, 95, 202, 202, 11231, 563, 797, 480, 446, 31, 202, 202, 759, 9786, 5348, 8470, 2168, 716, 854, 20939, 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, 1152, 918, 2911, 12, 467, 1253, 797, 563, 797, 262, 1216, 1910, 503, 202, 95, 202, 202, 11231, 563, 797, 480, 446, 31, 202, 202, 759, 9786, 5348, 8470, 2168, 716, 854, 20939, 202, ...
run("./ClockTest14.x10","ClockTest14","./Constructs/Clock"); }
runHelper(); }
public void test_Constructs_Clock_ClockTest14() { run("./ClockTest14.x10","ClockTest14","./Constructs/Clock"); }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/3bd1027a0e8a0edbdacb19b952cc4296d36760df/TestCompiler.java/clean/x10.test/src/polyglot/ext/x10/tests/TestCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 13262, 67, 14027, 67, 14027, 4709, 3461, 1435, 288, 3639, 1086, 2932, 18, 19, 14027, 4709, 3461, 18, 92, 2163, 15937, 14027, 4709, 3461, 3113, 9654, 19, 13262, 19, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 13262, 67, 14027, 67, 14027, 4709, 3461, 1435, 288, 3639, 1086, 2932, 18, 19, 14027, 4709, 3461, 18, 92, 2163, 15937, 14027, 4709, 3461, 3113, 9654, 19, 13262, 19, 14...
domainEl.addAttribute(AdminService.A_BY, AdminService.BY_ID);
domainEl.addAttribute(AdminService.A_BY, CalendarResourceBy.id.name());
public List getAllCalendarResources(Domain d) throws ServiceException { ArrayList<CalendarResource> result = new ArrayList<CalendarResource>(); XMLElement req = new XMLElement(AdminService.GET_ALL_CALENDAR_RESOURCES_REQUEST); Element domainEl = req.addElement(AdminService.E_DOMAIN); domainEl.addAttribute(AdminService.A_BY, AdminService.BY_ID); domainEl.setText(d.getId()); Element resp = invoke(req); for (Element a: resp.listElements(AdminService.E_CALENDAR_RESOURCE)) { result.add(new SoapCalendarResource(a)); } return result; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/061b274a7724c8dd53507067b2de62c5998d6d68/SoapProvisioning.java/clean/ZimbraServer/src/java/com/zimbra/cs/account/soap/SoapProvisioning.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 5514, 7335, 3805, 12, 3748, 302, 13, 1216, 16489, 288, 3639, 2407, 32, 7335, 1420, 34, 563, 273, 394, 2407, 32, 7335, 1420, 34, 5621, 3639, 1139, 11155, 1111, 273, 394, 1139, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 5514, 7335, 3805, 12, 3748, 302, 13, 1216, 16489, 288, 3639, 2407, 32, 7335, 1420, 34, 563, 273, 394, 2407, 32, 7335, 1420, 34, 5621, 3639, 1139, 11155, 1111, 273, 394, 1139, ...
public static boolean stackTracing( ) { return STACKTRACE; }
public static boolean stackTracing() { return STACKTRACE; }
public static boolean stackTracing( ) { return STACKTRACE; }
28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/9926542eaee78822409cfde7e339113ef1dee9de/Debug.java/clean/src/lib/com/izforge/izpack/util/Debug.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 2110, 3403, 12, 225, 262, 225, 288, 565, 327, 11464, 23827, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 2110, 3403, 12, 225, 262, 225, 288, 565, 327, 11464, 23827, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
updateResults(locale);
void vote(String locale, int base_xpath, int submitter, int vote_xpath, int type) { synchronized(conn) { try { queryVoteId.setString(1,locale); queryVoteId.setInt(2,submitter); queryVoteId.setInt(3,base_xpath); ResultSet rs = queryVoteId.executeQuery(); if(rs.next()) { // existing int id = rs.getInt(1); updateVote.setInt(1, vote_xpath); updateVote.setInt(2, type); updateVote.setInt(3, id); updateVote.executeUpdate(); System.err.println("updated CLDR_VET #"+id); } else { insertVote.setString(1,locale); insertVote.setInt(2,submitter); insertVote.setInt(3,base_xpath); insertVote.setInt(4,vote_xpath); insertVote.setInt(5,type); insertVote.executeUpdate(); } /* rmResult.setString(1,locale); rmResult.setInt(2,base_xpath); rmResult.executeUpdate();*/ updateResults(locale); } catch ( SQLException se ) { String complaint = "Vetter: couldn't query voting result for " + locale + ":"+base_xpath+" - " + SurveyMain.unchainSqlException(se); logger.severe(complaint); se.printStackTrace(); throw new RuntimeException(complaint); } } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/51bd087abfef540c06e9300c91618a6211dee473/Vetting.java/clean/tools/java/org/unicode/cldr/web/Vetting.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 12501, 12, 780, 2573, 16, 509, 1026, 67, 18644, 16, 509, 4879, 387, 16, 509, 12501, 67, 18644, 16, 509, 618, 13, 288, 3639, 3852, 12, 4646, 13, 288, 5411, 775, 288, 7734, 843, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12501, 12, 780, 2573, 16, 509, 1026, 67, 18644, 16, 509, 4879, 387, 16, 509, 12501, 67, 18644, 16, 509, 618, 13, 288, 3639, 3852, 12, 4646, 13, 288, 5411, 775, 288, 7734, 843, 19...
sb.append(status.getItem(selected[i]));
sb.append(URLEncoder.encode(status.getItem(selected[i]), repository.getCharacterEncoding()));
protected StringBuffer getQueryParameters() throws UnsupportedEncodingException { StringBuffer sb = new StringBuffer(); sb.append("short_desc_type="); sb.append(patternOperationValues[summaryOperation.getSelectionIndex()]); sb.append("&short_desc="); sb.append(URLEncoder.encode(summaryPattern.getText(), repository.getCharacterEncoding())); int[] selected = product.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&product="); sb.append(URLEncoder.encode(product.getItem(selected[i]), repository.getCharacterEncoding())); } selected = component.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&component="); sb.append(URLEncoder.encode(component.getItem(selected[i]), repository.getCharacterEncoding())); } selected = version.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&version="); sb.append(URLEncoder.encode(version.getItem(selected[i]), repository.getCharacterEncoding())); } selected = target.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&target_milestone="); sb.append(URLEncoder.encode(target.getItem(selected[i]), repository.getCharacterEncoding())); } sb.append("&long_desc_type="); sb.append(patternOperationValues[commentOperation.getSelectionIndex()]); sb.append("&long_desc="); sb.append(URLEncoder.encode(commentPattern.getText(), repository.getCharacterEncoding())); selected = status.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&bug_status="); sb.append(status.getItem(selected[i])); } selected = resolution.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&resolution="); sb.append(resolution.getItem(selected[i])); } selected = severity.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&bug_severity="); sb.append(severity.getItem(selected[i])); } selected = priority.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&priority="); sb.append(priority.getItem(selected[i])); } selected = hardware.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&ref_platform="); sb.append(URLEncoder.encode(hardware.getItem(selected[i]), repository.getCharacterEncoding())); } selected = os.getSelectionIndices(); for (int i = 0; i < selected.length; i++) { sb.append("&op_sys="); sb.append(URLEncoder.encode(os.getItem(selected[i]), repository.getCharacterEncoding())); } if (emailPattern.getText() != null) { for (int i = 0; i < emailButton.length; i++) { if (emailButton[i].getSelection()) { sb.append("&"); sb.append(emailRoleValues[i]); sb.append("=1"); } } sb.append("&emailtype1="); sb.append(emailOperationValues[emailOperation.getSelectionIndex()]); sb.append("&email1="); sb.append(URLEncoder.encode(emailPattern.getText(), repository.getCharacterEncoding())); } if (daysText.getText() != null && !daysText.getText().equals("")) { try { Integer.parseInt(daysText.getText()); sb.append("&changedin="); sb.append(URLEncoder.encode(daysText.getText(), repository.getCharacterEncoding())); } catch (NumberFormatException ignored) { // this means that the days is not a number, so don't worry } } return sb; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/50b7440148ad2473229c38cf32a79269c1b93690/BugzillaSearchPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 6674, 6041, 2402, 1435, 1216, 15367, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 5621, 202, 202, 18366, 18, 6923, 2932, 6620, 67, 5569, 67, 723, 1546, 1769, 202, 202, 18366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6674, 6041, 2402, 1435, 1216, 15367, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 5621, 202, 202, 18366, 18, 6923, 2932, 6620, 67, 5569, 67, 723, 1546, 1769, 202, 202, 18366...
burs.append(MIR_Unary.create(PPC_ADDZE, R(def), R(t)));
burs.append(MIR_Unary.create(PPC_ADDZE, def, R(t)));
boolean boolean_cmp_imm(OPT_BURS burs, OPT_Register def, OPT_Register one, int value, OPT_ConditionOperand cmp) { OPT_Register t1, t = burs.ir.regpool.getInteger(false); OPT_Register zero = burs.ir.regpool.getPhysicalRegisterSet().getTemp(); boolean convert = true; switch (cmp.value) { case OPT_ConditionOperand.EQUAL: if (value == 0) { burs.append(MIR_Unary.create(PPC_CNTLZW, R(t), R(one))); } else { burs.append(MIR_Binary.create(PPC_SUBFIC, R(t), R(one), I(value))); burs.append(MIR_Unary.create(PPC_CNTLZW, R(t), R(t))); } burs.append(MIR_Binary.create(PPC_SRWI, R(def), R(t), I(5))); break; case OPT_ConditionOperand.NOT_EQUAL: if (value == 0) { burs.append(MIR_Binary.create(PPC_ADDIC, R(t), R(one), I(-1))); burs.append(MIR_Binary.create(PPC_SUBFE, R(def), R(t), R(one))); } else { t1 = burs.ir.regpool.getInteger(false); burs.append(MIR_Binary.create(PPC_SUBFIC, R(t1), R(one), I(value))); burs.append(MIR_Binary.create(PPC_ADDIC, R(t), R(t1), I(-1))); burs.append(MIR_Binary.create(PPC_SUBFE, R(def), R(t), R(t1))); } break; case OPT_ConditionOperand.LESS: if (value == 0) { burs.append(MIR_Binary.create(PPC_SRWI, R(def), R(one), I(31))); } else if (value > 0) { burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one), I(value - 1))); burs.append(MIR_Unary.create(PPC_ADDZE, R(def), R(t))); } else if (value != 0xFFFF8000) { burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one), I(value - 1))); burs.append(MIR_Unary.create(PPC_ADDME, R(def), R(t))); } else { // value = 0xFFFF8000 burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Unary.create(PPC_LDIS, R(zero), I(1))); burs.append(MIR_Binary.create(PPC_SUBFC, R(zero), R(one), R(zero))); burs.append(MIR_Unary.create(PPC_ADDME, R(def), R(t))); } break; case OPT_ConditionOperand.GREATER: if (value == 0) { burs.append(MIR_Unary.create(PPC_NEG, R(t), R(one))); burs.append(MIR_Binary.create(PPC_ANDC, R(t), R(t), R(one))); burs.append(MIR_Binary.create(PPC_SRWI, R(def), R(t), I(31))); } else if (value >= 0) { burs.append(MIR_Binary.create(PPC_SRAWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_ADDIC, R(zero), R(one), I(-value - 1))); burs.append(MIR_Unary.create(PPC_ADDZE, R(def), R(t))); } else { t1 = burs.ir.regpool.getInteger(false); burs.append(MIR_Unary.create(PPC_LDI, R(t1), I(1))); burs.append(MIR_Binary.create(PPC_SRAWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_ADDIC, R(zero), R(one), I(-value - 1))); burs.append(MIR_Binary.create(PPC_ADDE, R(def), R(t), R(t1))); } break; case OPT_ConditionOperand.LESS_EQUAL: if (value == 0) { burs.append(MIR_Binary.create(PPC_ADDI, R(t), R(one), I(-1))); burs.append(MIR_Binary.create(PPC_OR, R(t), R(t), R(one))); burs.append(MIR_Binary.create(PPC_SRWI, R(def), R(t), I(31))); } else if (value >= 0) { burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one), I(value))); burs.append(MIR_Unary.create(PPC_ADDZE, R(def), R(t))); } else { burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one), I(value))); burs.append(MIR_Unary.create(PPC_ADDME, R(def), R(t))); } break; case OPT_ConditionOperand.GREATER_EQUAL: if (value == 0) { burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_XORI, R(def), R(t), I(1))); } else if (value >= 0) { burs.append(MIR_Binary.create(PPC_SRAWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_ADDIC, R(zero), R(one), I(-value))); burs.append(MIR_Unary.create(PPC_ADDZE, R(def), R(t))); } else if (value != 0xFFFF8000) { t1 = burs.ir.regpool.getInteger(false); burs.append(MIR_Unary.create(PPC_LDI, R(t1), I(1))); burs.append(MIR_Binary.create(PPC_SRAWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_ADDIC, R(zero), R(one), I(-value))); burs.append(MIR_Binary.create(PPC_ADDE, R(def), R(t), R(t1))); } else { t1 = burs.ir.regpool.getInteger(false); burs.append(MIR_Unary.create(PPC_LDI, R(t1), I(1))); burs.append(MIR_Binary.create(PPC_SRAWI, R(t), R(one), I(31))); burs.append(MIR_Unary.create(PPC_LDIS, R(zero), I(1))); burs.append(MIR_Binary.create(PPC_ADDC, R(zero), R(one), R(zero))); burs.append(MIR_Binary.create(PPC_ADDE, R(def), R(t), R(t1))); } break; case OPT_ConditionOperand.HIGHER: return false; // todo case OPT_ConditionOperand.LOWER: return false; // todo case OPT_ConditionOperand.HIGHER_EQUAL: return false; // todo case OPT_ConditionOperand.LOWER_EQUAL: burs.append(MIR_Unary.create(PPC_LDI, R(t), I(-1))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one), I(value))); burs.append(MIR_Unary.create(PPC_SUBFZE, R(def), R(t))); break; default: return false; } return true; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/d6af4b4450bc524cced5c6692ac193a1b3008066/OPT_BURS_Helpers.java/buggy/rvm/src/vm/arch/powerPC/compilers/optimizing/ir/conversions/lir2mir/OPT_BURS_Helpers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1250, 1250, 67, 9625, 67, 381, 81, 12, 15620, 67, 38, 1099, 55, 324, 25152, 16, 16456, 67, 3996, 1652, 16, 30306, 16456, 67, 3996, 1245, 16, 30306, 509, 460, 16, 16456, 67, 3418, 10265,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1250, 67, 9625, 67, 381, 81, 12, 15620, 67, 38, 1099, 55, 324, 25152, 16, 16456, 67, 3996, 1652, 16, 30306, 16456, 67, 3996, 1245, 16, 30306, 509, 460, 16, 16456, 67, 3418, 10265,...
XMLParser parser = new XMLParser(); parser.setContext(getJellyContext()); Script script = parser.parse(getUrl().openStream()); script = script.compile(); if (log.isDebugEnabled()) { log.debug("Compiled script: " + getUrl()); } return script; }
XMLParser parser = new XMLParser(); parser.setContext(getJellyContext()); Script script = parser.parse(getUrl().openStream()); script = script.compile(); if (log.isDebugEnabled()) { log.debug("Compiled script: " + getUrl()); } return script; }
protected Script compileScript() throws Exception { XMLParser parser = new XMLParser(); parser.setContext(getJellyContext()); Script script = parser.parse(getUrl().openStream()); script = script.compile(); if (log.isDebugEnabled()) { log.debug("Compiled script: " + getUrl()); } return script; }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/ed885dee7d315dcab3e18c17a0ba9823bcce7968/JellyTask.java/buggy/jelly-tags/ant/src/java/org/apache/commons/jelly/task/JellyTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 7739, 4074, 3651, 1435, 1216, 1185, 288, 202, 202, 4201, 2678, 2082, 273, 394, 3167, 2678, 5621, 202, 202, 4288, 18, 542, 1042, 12, 588, 46, 292, 715, 1042, 10663, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7739, 4074, 3651, 1435, 1216, 1185, 288, 202, 202, 4201, 2678, 2082, 273, 394, 3167, 2678, 5621, 202, 202, 4288, 18, 542, 1042, 12, 588, 46, 292, 715, 1042, 10663, 202, 202, ...
val += getType().charAt( i );
val += getType().charAt(i);
public String toString() { String val = ""; int i; for( i = 0; i < getSize(); i++ ) { val += " "; val += getType().charAt( i ); } return val; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/7be13fcc2c0b7d44e976f39092577be8a7dfb680/Brace.java/clean/drjava/src/edu/rice/cs/drjava/model/definitions/reducedmodel/Brace.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 288, 565, 514, 1244, 273, 1408, 31, 565, 509, 277, 31, 565, 364, 12, 277, 273, 374, 31, 277, 411, 9950, 5621, 277, 9904, 262, 288, 1377, 1244, 1011, 315, 13636, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1762, 1435, 288, 565, 514, 1244, 273, 1408, 31, 565, 509, 277, 31, 565, 364, 12, 277, 273, 374, 31, 277, 411, 9950, 5621, 277, 9904, 262, 288, 1377, 1244, 1011, 315, 13636, ...
(new Thread(_wkl)).start();
public void start() throws IllegalWJOperationException { if (_wjunc._state != WorkletJacket.STATE_WAITING) { throw (new IllegalWJOperationException("Can only START a WAITING WorkletJunction")); } _wjunc._state = WorkletJacket.STATE_RUNNING; (new Thread(_wkl)).start(); }
14655 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14655/c3dc0e2ec91e3b3bfbbc7b6d83eca14719f6e210/WJackCondition.java/clean/WJackCondition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 787, 1435, 1216, 2141, 59, 46, 10602, 288, 565, 309, 261, 67, 91, 78, 551, 6315, 2019, 480, 4147, 1810, 46, 484, 278, 18, 7998, 67, 19046, 1360, 13, 288, 1377, 604, 261, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 1435, 1216, 2141, 59, 46, 10602, 288, 565, 309, 261, 67, 91, 78, 551, 6315, 2019, 480, 4147, 1810, 46, 484, 278, 18, 7998, 67, 19046, 1360, 13, 288, 1377, 604, 261, 27...
DenseDoubleMatrix2D Mi_YY, DenseDoubleMatrix1D Ri_Y, boolean takeExp) {
DoubleMatrix2D Mi_YY, DoubleMatrix1D Ri_Y, boolean takeExp) {
static void computeLogMi(FeatureGenerator featureGen, double lambda[], DenseDoubleMatrix2D Mi_YY, DenseDoubleMatrix1D Ri_Y, boolean takeExp) { Mi_YY.assign(0); Ri_Y.assign(0); while (featureGen.hasNext()) { Feature feature = featureGen.next(); int f = feature.index(); int yp = feature.y(); int yprev = feature.yprev(); float val = feature.value(); // System.out.println(feature.toString()); if (yprev < 0) { // this is a single state feature. double oldVal = Ri_Y.get(yp); Ri_Y.set(yp,oldVal+lambda[f]*val); } else { Mi_YY.set(yprev,yp,Mi_YY.get(yprev,yp)+lambda[f]*val); } } if (takeExp) { for(int r = 0; r < Mi_YY.rows(); r++) { Ri_Y.set(r,exp(Ri_Y.get(r))); for(int c = 0; c < Mi_YY.columns(); c++) { Mi_YY.set(r,c,exp(Mi_YY.get(r,c))); } } } }
45325 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45325/cd93668ad97162fcbe2652c082a7e6f39a6ccf01/Trainer.java/clean/src/iitb/CRF/Trainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 3671, 1343, 49, 77, 12, 4595, 3908, 2572, 7642, 16, 1645, 3195, 63, 6487, 4697, 377, 23607, 5265, 4635, 22, 40, 490, 77, 67, 9317, 16, 9506, 377, 23607, 5265, 4635, 21, 40, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3671, 1343, 49, 77, 12, 4595, 3908, 2572, 7642, 16, 1645, 3195, 63, 6487, 4697, 377, 23607, 5265, 4635, 22, 40, 490, 77, 67, 9317, 16, 9506, 377, 23607, 5265, 4635, 21, 40, ...
subMenu.add( resetAction );
subMenu.add( reset );
private void createStyleMenu( IMenuManager menuManager, String group_name ) { MenuManager menu = new MenuManager( STYLE_MENU_ITEM_TEXT ); MenuManager subMenu = new MenuManager( APPLY_STYLE_MENU_ITEM_TEXT ); SharedStyleHandle oldStyle = getStyleHandle( ); ApplyStyleAction resetAction = new ApplyStyleAction( null ); resetAction.setSelection( getSelection( ) ); if ( oldStyle == null ) { resetAction.setChecked( true ); } subMenu.add( resetAction ); subMenu.add( new Separator( ) ); Iterator iter = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getStyles( ) .iterator( ); while ( iter.hasNext( ) ) { SharedStyleHandle handle = (SharedStyleHandle) iter.next( ); ApplyStyleAction action = new ApplyStyleAction( handle ); action.setSelection( getSelection( ) ); if ( oldStyle == handle ) { action.setChecked( true ); } else { action.setChecked( false ); } subMenu.add( action ); } menu.add( subMenu ); menu.add( new Separator( ) ); menu.add( getAction( AddStyleRuleAction.ID ) ); appendMenuToGroup( menu, group_name, menuManager ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/25d8345240ca0a7d646058fa741ec1478be90f03/SchematicContextMenuProvider.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/providers/SchematicContextMenuProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 2885, 4599, 12, 467, 4599, 1318, 3824, 1318, 16, 514, 1041, 67, 529, 262, 202, 95, 202, 202, 4599, 1318, 3824, 273, 394, 9809, 1318, 12, 27449, 67, 29227, 67, 12674...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 2885, 4599, 12, 467, 4599, 1318, 3824, 1318, 16, 514, 1041, 67, 529, 262, 202, 95, 202, 202, 4599, 1318, 3824, 273, 394, 9809, 1318, 12, 27449, 67, 29227, 67, 12674...
try { position++; bCodeStream[classFileOffset++] = OPC_wide; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_wide);
if (classFileOffset + 3 >= bCodeStream.length) { resizeByteArray();
final public void lload(int iArg) { if (DEBUG) System.out.println(position + "\t\tlload:"+iArg); //$NON-NLS-1$ countLabels = 0; stackDepth += 2; if (maxLocals <= iArg + 1) { maxLocals = iArg + 2; } if (stackDepth > stackMax) stackMax = stackDepth; if (iArg > 255) { // Widen try { position++; bCodeStream[classFileOffset++] = OPC_wide; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_wide); } try { position++; bCodeStream[classFileOffset++] = OPC_lload; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_lload); } writeUnsignedShort(iArg); } else { try { position++; bCodeStream[classFileOffset++] = OPC_lload; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_lload); } try { position++; bCodeStream[classFileOffset++] = (byte) iArg; } catch (IndexOutOfBoundsException e) { resizeByteArray((byte) iArg); } }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3a562aaf09f9f323b583086b80b4683378886606/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 727, 1071, 918, 328, 945, 12, 474, 277, 4117, 13, 288, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 12, 3276, 397, 1548, 88, 64, 6172, 945, 2773, 15, 77, 4117, 1769, 4329, 3993, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 727, 1071, 918, 328, 945, 12, 474, 277, 4117, 13, 288, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 12, 3276, 397, 1548, 88, 64, 6172, 945, 2773, 15, 77, 4117, 1769, 4329, 3993, 17, ...
public DefaultMutableTreeNode addObject(Object child, boolean allowsChildren) { DefaultMutableTreeNode parentNode = null; TreePath parentPath = getSelectionPath();
public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, Object child, boolean allowsChildren, boolean shouldBeVisible ) { DefaultMutableTreeNode childNode = new DefaultMutableTreeNode(child, allowsChildren);
public DefaultMutableTreeNode addObject(Object child, boolean allowsChildren) { DefaultMutableTreeNode parentNode = null; TreePath parentPath = getSelectionPath(); if (parentPath == null) parentNode = (DefaultMutableTreeNode)_treeModel.getRoot(); else parentNode = (DefaultMutableTreeNode)parentPath.getLastPathComponent(); return addObject(parentNode, child, true, allowsChildren); }
56676 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56676/ba34c7b50f8c27f350e33174703eb7b287b81a1b/HQLResultTree.java/clean/xmlpipedbutils/src/edu/lmu/xmlpipedb/util/gui/HQLResultTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2989, 19536, 12513, 31311, 12, 921, 1151, 16, 1250, 5360, 4212, 13, 288, 202, 202, 1868, 19536, 12513, 7234, 273, 446, 31, 202, 202, 2471, 743, 17743, 273, 23204, 743, 5621, 950...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2989, 19536, 12513, 31311, 12, 921, 1151, 16, 1250, 5360, 4212, 13, 288, 202, 202, 1868, 19536, 12513, 7234, 273, 446, 31, 202, 202, 2471, 743, 17743, 273, 23204, 743, 5621, 950...
actualValue = new Double(value); if (shouldCheckImmediately()) { verify(); } }
actualValue = new Double(value); if (shouldCheckImmediately()) { verify(); } }
public void setActual( double value ) { actualValue = new Double(value); if (shouldCheckImmediately()) { verify(); } }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/ExpectationDoubleValue.java/buggy/jmock/core/src/org/jmock/expectation/ExpectationDoubleValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 11266, 12, 1645, 460, 262, 288, 202, 202, 18672, 620, 273, 394, 3698, 12, 1132, 1769, 202, 202, 430, 261, 13139, 1564, 1170, 7101, 10756, 288, 1082, 202, 8705, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 11266, 12, 1645, 460, 262, 288, 202, 202, 18672, 620, 273, 394, 3698, 12, 1132, 1769, 202, 202, 430, 261, 13139, 1564, 1170, 7101, 10756, 288, 1082, 202, 8705, 5621, ...
if (loc == null) { Throwable realEx = transformerException.getCause(); if (realEx == null) realEx = transformerException; if (realEx instanceof SAXException) { throw (SAXException)realEx; } else { throw new SAXException(transformerException);
if (LocationUtils.isUnknown(loc)) { realEx = transformerException.getCause(); if (realEx == null) { realEx = transformerException;
public void endDocument() throws SAXException { try { super.endDocument(); } catch(SAXException se) { // Rethrow throw se; } catch(Exception e) { if (transformerException != null) { // Ignore the fake RuntimeException sent by Xalan Location loc = LocationUtils.getLocation(transformerException); if (loc == null) { // No location: if it's just a wrapper, consider only the wrapped exception. Throwable realEx = transformerException.getCause(); if (realEx == null) realEx = transformerException; if (realEx instanceof SAXException) { // Rethrow throw (SAXException)realEx; } else { // Wrap in a SAXException throw new SAXException(transformerException); } } else { throw new SAXException(transformerException); } } else { // It's not a fake exception throw new SAXException(e); } } this.finishedDocument = true; }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/29c97e47ba2cc85395d71d01756b92ea5c3c7fad/TraxTransformer.java/buggy/src/java/org/apache/cocoon/transformation/TraxTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 2519, 1435, 565, 1216, 14366, 288, 3639, 775, 288, 5411, 2240, 18, 409, 2519, 5621, 3639, 289, 1044, 12, 55, 2501, 503, 695, 13, 288, 5411, 368, 534, 546, 492, 5411, 604...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 679, 2519, 1435, 565, 1216, 14366, 288, 3639, 775, 288, 5411, 2240, 18, 409, 2519, 5621, 3639, 289, 1044, 12, 55, 2501, 503, 695, 13, 288, 5411, 368, 534, 546, 492, 5411, 604...
public org.quickfix.field.SecurityType getSecurityType() throws FieldNotFound { org.quickfix.field.SecurityType value = new org.quickfix.field.SecurityType();
public quickfix.field.SecurityType getSecurityType() throws FieldNotFound { quickfix.field.SecurityType value = new quickfix.field.SecurityType();
public org.quickfix.field.SecurityType getSecurityType() throws FieldNotFound { org.quickfix.field.SecurityType value = new org.quickfix.field.SecurityType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/clean/src/java/src/quickfix/fix43/NewOrderList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 559, 19288, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 559, 460, 273, 394, 2358, 18, 19525, 904, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 559, 19288, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 559, 460, 273, 394, 2358, 18, 19525, 904, 18...
else if ( axis == AXIS_Y )
else if ( at == AngleType.Y_LITERAL )
public double getAxisAngle( ) { if ( axis == AXIS_X ) { return getXAngle( ); } else if ( axis == AXIS_Y ) { return getYAngle( ); } else if ( axis == AXIS_Z ) { return getZAngle( ); } return 0; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/1a68696eeaf3d97a3d75bdf3bc939335158a8be5/Angle3DImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/Angle3DImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1645, 4506, 5674, 8467, 12, 262, 202, 95, 202, 202, 430, 261, 2654, 422, 29539, 5127, 67, 60, 262, 202, 202, 95, 1082, 202, 2463, 6538, 8467, 12, 11272, 202, 202, 97, 202, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1645, 4506, 5674, 8467, 12, 262, 202, 95, 202, 202, 430, 261, 2654, 422, 29539, 5127, 67, 60, 262, 202, 202, 95, 1082, 202, 2463, 6538, 8467, 12, 11272, 202, 202, 97, 202, 2...
if (!value.equalsIgnoreCase(abbvalue)) checkDuplicate(duplicates, accumulation, abbvalue, prop + "=" + value);
if (!value.equalsIgnoreCase(valueAbb)) checkDuplicate(duplicates, accumulation, valueAbb, prop + "=" + value);
public static void listProperties() throws IOException { String propAbb = ""; String prop = ""; Map duplicates = new TreeMap(); Set sorted = new TreeSet(java.text.Collator.getInstance()); Map accumulation = new TreeMap(); String spacing; for(int k = 0; k < UCD_Names.NON_ENUMERATED.length; ++k) { propAbb = fixGaps(UCD_Names.NON_ENUMERATED[k][0], false); prop = fixGaps(UCD_Names.NON_ENUMERATED[k][1], true); spacing = Utility.repeat(" ", 10-propAbb.length()); sorted.add("AA; " + propAbb + spacing + "; " + prop); checkDuplicate(duplicates, accumulation, propAbb, prop); if (!prop.equals(propAbb)) checkDuplicate(duplicates, accumulation, prop, prop); } sorted.add("xx; T ; True"); checkDuplicate(duplicates, accumulation, "T", "xx=True"); sorted.add("xx; F ; False"); checkDuplicate(duplicates, accumulation, "F", "xx=False"); sorted.add("qc; Y ; Yes"); checkDuplicate(duplicates, accumulation, "Y", "qc=Yes"); sorted.add("qc; N ; No"); checkDuplicate(duplicates, accumulation, "N", "qc=No"); sorted.add("qc; M ; Maybe"); checkDuplicate(duplicates, accumulation, "M", "qc=Maybe"); for (int i = 0; i < LIMIT_ENUM; ++i) { int type = i & 0xFF00; if (type == AGE) continue; if (i == (BINARY_PROPERTIES | CaseFoldTurkishI)) continue; if (type == i && type != BINARY_PROPERTIES && type != DERIVED) { propAbb = fixGaps(ubp.getPropertyName(i, SHORT), false); prop = fixGaps(ubp.getPropertyName(i, LONG), true); spacing = Utility.repeat(" ", 10-propAbb.length()); sorted.add("BB; " + propAbb + spacing + "; " + prop); checkDuplicate(duplicates, accumulation, propAbb, prop); if (!prop.equals(propAbb)) checkDuplicate(duplicates, accumulation, prop, prop); } if (!ubp.isDefined(i)) continue; if (ubp.isTest(i)) continue; String value = ubp.getID(i, LONG); if (value.length() == 0) value = "none"; else if (value.equals("<unused>")) continue; value = fixGaps(value, true); if (type == SCRIPT) { value = ucd.getCase(value, FULL, TITLE); } String abbvalue = ubp.getID(i, SHORT); if (abbvalue.length() == 0) abbvalue = "no"; abbvalue = fixGaps(abbvalue, false); if (type == COMBINING_CLASS) { if (value.startsWith("Fixed_")) { continue; } } /* String elide = ""; if (type == CATEGORY || type == SCRIPT || type == BINARY_PROPERTIES) elide = "\\p{" + abbvalue + "}"; String abb = ""; if (type != BINARY_PROPERTIES) abb = "\\p{" + UCD_Names.ABB_UNIFIED_PROPERTIES[i>>8] + "=" + abbvalue + "}"; String norm = ""; if (type != BINARY_PROPERTIES) norm = "\\p{" + UCD_Names.SHORT_UNIFIED_PROPERTIES[i>>8] + "=" + value + "}"; System.out.println("<tr><td>" + elide + "</td><td>" + abb + "</td><td>" + norm + "</td></tr>"); */ spacing = Utility.repeat(" ", 10-abbvalue.length()); if (type == BINARY_PROPERTIES || type == DERIVED) { sorted.add("ZZ; " + abbvalue + spacing + "; " + value); checkDuplicate(duplicates, accumulation, value, value); if (!value.equalsIgnoreCase(abbvalue)) checkDuplicate(duplicates, accumulation, abbvalue, value); continue; } sorted.add(propAbb + "; " + abbvalue + spacing + "; " + value); checkDuplicate(duplicates, accumulation, value, prop + "=" + value); if (!value.equalsIgnoreCase(abbvalue)) checkDuplicate(duplicates, accumulation, abbvalue, prop + "=" + value); } PrintWriter log = Utility.openPrintWriter("PropertyAliases-" + ucd.getVersion() + "dX.txt"); Utility.appendFile("PropertyAliasHeader.txt", false, log); log.println("# Generated: " + new Date() + ", MD"); log.println(HORIZONTAL_LINE); log.println(); Utility.print(log, sorted, "\r\n", new MyBreaker()); log.println(); log.println(HORIZONTAL_LINE); log.println(); log.println("# Non-Unique names: the same name (under either an exact or loose match)"); log.println("# occurs as a property name or property value name"); log.println("# Note: no two property names can be the same,"); log.println("# nor can two property value names for the same property be the same."); log.println(); Utility.print(log, accumulation.values(), "\r\n", new MyBreaker()); log.println(); log.close(); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/73ed7bfac58f6e4cb69f3eca850e00afa4d1bd03/GenerateData.java/buggy/tools/unicodetools/com/ibm/text/UCD/GenerateData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 666, 2297, 1435, 1216, 1860, 288, 3639, 514, 2270, 5895, 70, 273, 1408, 31, 3639, 514, 2270, 273, 1408, 31, 7734, 1635, 11211, 273, 394, 16381, 5621, 3639, 1000, 3115, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 666, 2297, 1435, 1216, 1860, 288, 3639, 514, 2270, 5895, 70, 273, 1408, 31, 3639, 514, 2270, 273, 1408, 31, 7734, 1635, 11211, 273, 394, 16381, 5621, 3639, 1000, 3115, 273...
executeCommand( umaskCmd );
public void put( File source, String resourceName ) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { String basedir = getRepository().getBasedir(); resourceName = StringUtils.replace( resourceName, "\\", "/" ); String dir = PathUtils.dirname( resourceName ); dir = StringUtils.replace( dir, "\\", "/" ); Resource resource = new Resource( resourceName ); firePutInitiated( resource, source ); String umaskCmd = ""; if ( getRepository().getPermissions() != null ) { final String dirPerms = getRepository().getPermissions().getDirectoryMode(); if ( dirPerms != null ) { umaskCmd = "umask " + PermissionModeUtils.getUserMaskFor( dirPerms ) + "\n"; executeCommand( umaskCmd ); } } String mkdirCmd = umaskCmd + "mkdir -p -m " + getRepository().getPermissions().getDirectoryMode() + " " + basedir + "/" + dir + "\n"; executeCommand( mkdirCmd ); ChannelExec channel = null; //I/O streams for remote scp OutputStream out = null; InputStream in; try { // exec 'scp -t rfile' remotely String command = "scp -t " + basedir + "/" + resourceName; fireTransferDebug( "Executing command: " + command ); channel = (ChannelExec) session.openChannel( EXEC_CHANNEL ); channel.setCommand( command ); // get I/O streams for remote scp out = channel.getOutputStream(); in = channel.getInputStream(); channel.connect(); if ( checkAck( in, false ) != 0 ) { throw new TransferFailedException( "ACK check failed" ); } // send "C0644 filesize filename", where filename should not include '/' long filesize = source.length(); command = "C0644 " + filesize + " "; if ( resourceName.lastIndexOf( '/' ) > 0 ) { command += resourceName.substring( resourceName.lastIndexOf( '/' ) + 1 ); } else { command += resourceName; } command += "\n"; out.write( command.getBytes() ); out.flush(); if ( checkAck( in, false ) != 0 ) { throw new TransferFailedException( "ACK check failed" ); } putTransfer( resource, source, out, false ); byte[] buf = new byte[1024]; // send '\0' buf[ 0 ] = 0; out.write( buf, 0, 1 ); out.flush(); if ( checkAck( in, false ) != 0 ) { throw new TransferFailedException( "ACK check failed" ); } } catch ( IOException e ) { String msg = "Error occured while deploying '" + resourceName + "' to remote repository: " + getRepository().getUrl(); throw new TransferFailedException( msg, e ); } catch ( JSchException e ) { String msg = "Error occured while deploying '" + resourceName + "' to remote repository: " + getRepository().getUrl(); throw new TransferFailedException( msg, e ); } finally { if ( channel != null ) { IoUtils.close( out ); channel.disconnect(); } } RepositoryPermissions permissions = getRepository().getPermissions(); if ( permissions != null && permissions.getGroup() != null ) { executeCommand( "chgrp -f " + permissions.getGroup() + " " + basedir + "/" + resourceName + "\n" ); } if ( permissions != null && permissions.getFileMode() != null ) { executeCommand( "chmod -f " + permissions.getFileMode() + " " + basedir + "/" + resourceName + "\n" ); } }
51920 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51920/51aa4013d6d6074335e914d290e6677c6b2a3d01/ScpWagon.java/clean/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 1387, 1084, 16, 514, 9546, 262, 3639, 1216, 12279, 12417, 16, 2591, 26621, 16, 10234, 503, 565, 288, 3639, 514, 15573, 273, 8261, 7675, 588, 2171, 1214, 5621, 3639, 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, 1378, 12, 1387, 1084, 16, 514, 9546, 262, 3639, 1216, 12279, 12417, 16, 2591, 26621, 16, 10234, 503, 565, 288, 3639, 514, 15573, 273, 8261, 7675, 588, 2171, 1214, 5621, 3639, 9...
updateLoanActivity(fee.getFeeId(),totalFeeAmountApplied);
updateLoanActivity(fee.getFeeId(),totalFeeAmountApplied,fee.getFeeName()+" applied");
private void applyPeriodicFee(FeeBO fee,Money charge,List<AccountActionDateEntity> dueInstallments) throws AccountException{ AccountFeesEntity accountFee = getAccountFee(fee,charge); Map<Short,Money> feeInstallmentMap=getFeeInstallmentMap(accountFee,dueInstallments.get(0).getActionDate()); Money totalFeeAmountApplied=applyFeeToInstallments(feeInstallmentMap,dueInstallments,fee,accountFee); updateLoanSummary(fee.getFeeId(),totalFeeAmountApplied); updateLoanActivity(fee.getFeeId(),totalFeeAmountApplied); }
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/66ade95b2c9c12862eed2de7864c89e95e0a6a6c/LoanBO.java/clean/mifos/src/org/mifos/application/accounts/loan/business/LoanBO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2230, 31461, 14667, 12, 14667, 5315, 14036, 16, 23091, 13765, 16, 682, 32, 3032, 1803, 1626, 1943, 34, 6541, 6410, 1346, 13, 1216, 6590, 503, 95, 202, 202, 3032, 2954, 281...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2230, 31461, 14667, 12, 14667, 5315, 14036, 16, 23091, 13765, 16, 682, 32, 3032, 1803, 1626, 1943, 34, 6541, 6410, 1346, 13, 1216, 6590, 503, 95, 202, 202, 3032, 2954, 281...
( game.getOptions().booleanOption("protos_move_even") && (game.getPhase() == IGame.PHASE_INITIATIVE || game.getPhase() == IGame.PHASE_MOVEMENT) ) || ( game.getOptions().booleanOption("protos_deploy_even") && game.getPhase() == IGame.PHASE_DEPLOYMENT );
game.getOptions().booleanOption("protos_move_even") && (game.getPhase() == IGame.PHASE_INITIATIVE || game.getPhase() == IGame.PHASE_MOVEMENT) || game.getOptions().booleanOption("protos_deploy_even") && game.getPhase() == IGame.PHASE_DEPLOYMENT;
private void determineTurnOrder(int phase) { if(game.getOptions().booleanOption("individual_initiative")) { determineTurnOrderIUI(phase); return; } // and/or deploy even according to game options. boolean infMoveEven = ( game.getOptions().booleanOption("inf_move_even") && (game.getPhase() == IGame.PHASE_INITIATIVE || game.getPhase() == IGame.PHASE_MOVEMENT) ) || ( game.getOptions().booleanOption("inf_deploy_even") && game.getPhase() == IGame.PHASE_DEPLOYMENT ); boolean infMoveMulti = ( game.getOptions().booleanOption("inf_move_multi") && (game.getPhase() == IGame.PHASE_INITIATIVE || game.getPhase() == IGame.PHASE_MOVEMENT) ); boolean protosMoveEven = ( game.getOptions().booleanOption("protos_move_even") && (game.getPhase() == IGame.PHASE_INITIATIVE || game.getPhase() == IGame.PHASE_MOVEMENT) ) || ( game.getOptions().booleanOption("protos_deploy_even") && game.getPhase() == IGame.PHASE_DEPLOYMENT ); boolean protosMoveMulti = game.getOptions().booleanOption("protos_move_multi"); boolean protosFireMulti = !protosMoveMulti && game.getPhase() == IGame.PHASE_FIRING; int evenMask = 0; if ( infMoveEven ) evenMask += GameTurn.CLASS_INFANTRY; if ( protosMoveEven ) evenMask += GameTurn.CLASS_PROTOMECH; // Reset all of the Players' turn category counts for (Enumeration loop = game.getPlayers(); loop.hasMoreElements();) { final Player player = (Player) loop.nextElement(); player.resetEvenTurns(); player.resetMultiTurns(); player.resetOtherTurns(); // Add turns for protomechs weapons declaration. if ( protosFireMulti ) { // How many Protomechs does the player have? int numPlayerProtos = game.getSelectedEntityCount ( new EntitySelector() { private final int ownerId = player.getId(); public boolean accept( Entity entity ) { if ( entity instanceof Protomech && ownerId == entity.getOwnerId() ) return true; return false; } } ); int numProtoUnits = (int) Math.ceil( (numPlayerProtos) / 5.0 ); for ( int unit = 0; unit < numProtoUnits; unit++ ) { if ( protosMoveEven ) player.incrementEvenTurns(); else player.incrementOtherTurns(); } } // End handle-proto-firing-turns } // Handle the next player // Go through all entities, and update the turn categories of the // entity's player. The teams get their totals from their players. // N.B. protomechs declare weapons fire based on their point. for (Enumeration loop = game.getEntities(); loop.hasMoreElements();) { final Entity entity = (Entity)loop.nextElement(); if (entity.isSelectableThisTurn()) { final Player player = entity.getOwner(); if ( entity instanceof Infantry ) { if ( infMoveEven ) player.incrementEvenTurns(); else if ( infMoveMulti ) player.incrementMultiTurns(); else player.incrementOtherTurns(); } else if ( entity instanceof Protomech ) { if ( !protosFireMulti ) { if ( protosMoveEven ) player.incrementEvenTurns(); else if ( protosMoveMulti ) player.incrementMultiTurns(); else player.incrementOtherTurns(); } } else player.incrementOtherTurns(); } } // Generate the turn order for the Players *within* // each Team. Map the teams to their turn orders. // Count the number of teams moving this turn. int nTeams = game.getNoOfTeams(); Hashtable allTeamTurns = new Hashtable( nTeams ); Hashtable evenTrackers = new Hashtable( nTeams ); int numTeamsMoving = 0; for (Enumeration loop = game.getTeams(); loop.hasMoreElements(); ) { final Team team = (Team) loop.nextElement(); allTeamTurns.put( team, team.determineTeamOrder(game) ); // Track both the number of times we've checked the team for // "leftover" turns, and the number of "leftover" turns placed. int[] evenTracker = new int[2]; evenTracker[0] = 0; evenTracker[1] = 0; evenTrackers.put (team, evenTracker); // Count this team if it has any "normal" moves. if (team.getNormalTurns(game) > 0) numTeamsMoving++; } // Now, generate the global order of all teams' turns. TurnVectors team_order = TurnOrdered.generateTurnOrder ( game.getTeamsVector(), game ); // See if there are any loaded units stranded on immobile transports. Enumeration strandedUnits = game.getSelectedEntities ( new EntitySelector() { public boolean accept( Entity entity ) { if ( Server.this.game.isEntityStranded(entity) ) return true; return false; } } ); // Now, we collect everything into a single vector. Vector turns; if ( strandedUnits.hasMoreElements() && game.getPhase() == IGame.PHASE_MOVEMENT ) { // Add a game turn to unload stranded units, if this // is the movement phase. turns = new Vector( team_order.getNormalTurns() + team_order.getEvenTurns() + 1); turns.addElement( new GameTurn.UnloadStrandedTurn(strandedUnits) ); } else { // No stranded units. turns = new Vector( team_order.getNormalTurns() + team_order.getEvenTurns() ); } // Walk through the global order, assigning turns // for individual players to the single vector. // Keep track of how many turns we've added to the vector. Team prevTeam = null; int min = team_order.getMin(); for ( int numTurn = 0; team_order.hasMoreElements(); numTurn++ ) { Team team = (Team) team_order.nextElement(); TurnVectors withinTeamTurns = (TurnVectors) allTeamTurns.get(team); int[] evenTracker = (int[]) evenTrackers.get (team); float teamEvenTurns = team.getEvenTurns(); // Calculate the number of "even" turns to add for this team. int numEven = 0; if (1 == numTeamsMoving) { // The only team moving should move all "even" units. numEven += teamEvenTurns; } else if (prevTeam == null) { // Increment the number of times we've checked for "leftovers". evenTracker[0]++; // The first team to move just adds the "baseline" turns. numEven += teamEvenTurns / min; } else if (!team.equals(prevTeam)) { // Increment the number of times we've checked for "leftovers". evenTracker[0]++; // This wierd equation attempts to spread the "leftover" // turns accross the turn's moves in a "fair" manner. // It's based on the number of times we've checked for // "leftovers" the number of "leftovers" we started with, // the number of times we've added a turn for a "leftover", // and the total number of times we're going to check. numEven += Math.ceil (evenTracker[0] * (teamEvenTurns % min) / min - 0.5) - evenTracker[1]; // Update the number of turns actually added for "leftovers". evenTracker[1] += numEven; // Add the "baseline" number of turns. numEven += teamEvenTurns / min; } // Record this team for the next move. prevTeam = team; // This may be a "placeholder" for a team without "normal" turns. if (withinTeamTurns.hasMoreElements()) { // Not a placeholder... get the player who moves next. Player player = (Player) withinTeamTurns.nextElement(); // If we've added all "normal" turns, allocate turns // for the infantry and/or protomechs moving even. GameTurn turn = null; if ( numTurn >= team_order.getNormalTurns() ) { turn = new GameTurn.EntityClassTurn (player.getId(), evenMask); } // If either Infantry or Protomechs move even, only allow // the other classes to move during the "normal" turn. else if ( infMoveEven || protosMoveEven ) { turn = new GameTurn.EntityClassTurn (player.getId(), ~evenMask); } // Otherwise, let *anybody* move. else { turn = new GameTurn( player.getId() ); } turns.addElement(turn); } // End team-has-"normal"-turns // Add the calculated number of "even" turns. // Allow the player at least one "normal" turn before the // "even" turns to help with loading infantry in deployment. while (numEven > 0 && withinTeamTurns.hasMoreEvenElements()) { Player evenPlayer = (Player) withinTeamTurns.nextEvenElement(); turns.addElement (new GameTurn.EntityClassTurn (evenPlayer.getId(), evenMask)); numEven--; } } // set fields in game game.setTurnVector(turns); game.resetTurnIndex(); // send turns to all players send(createTurnVectorPacket()); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/cbe74d020e74a85c0e3b8ebf32d1ebc85c1ba62f/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4199, 15858, 2448, 12, 474, 6855, 13, 288, 3639, 309, 12, 13957, 18, 588, 1320, 7675, 6494, 1895, 2932, 22032, 5557, 67, 2738, 77, 1535, 6, 3719, 288, 5411, 4199, 15858, 2448, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4199, 15858, 2448, 12, 474, 6855, 13, 288, 3639, 309, 12, 13957, 18, 588, 1320, 7675, 6494, 1895, 2932, 22032, 5557, 67, 2738, 77, 1535, 6, 3719, 288, 5411, 4199, 15858, 2448, ...
this.testEmail = testEmail; }
this.testEmail = testEmail; }
public void setTestEmail(String testEmail) { this.testEmail = testEmail; }
50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/de8cf3204cc93c4fff2891473e3a73ee9c476e79/ConstrainedPropertyTests.java/buggy/test/commons/org/codehaus/groovy/grails/validation/ConstrainedPropertyTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 4709, 4134, 12, 780, 1842, 4134, 13, 288, 202, 202, 2211, 18, 3813, 4134, 273, 1842, 4134, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 4709, 4134, 12, 780, 1842, 4134, 13, 288, 202, 202, 2211, 18, 3813, 4134, 273, 1842, 4134, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
genesFound.addAll( searchService.compassGeneSearch( csc.getSearchString() ) ); } else if (csc.getExactSearch().equalsIgnoreCase( "on" )) { genesFound = geneService.findByOfficialSymbol( csc.getSearchString( ) ); } else { genesFound = geneService.findByOfficialSymbol( csc.getSearchString( ) ); if (genesFound.size() == 0) {
genesFound.addAll( searchService.compassGeneSearch( csc.getSearchString() ) ); } else if ( csc.getExactSearch().equalsIgnoreCase( "on" ) ) { genesFound = geneService.findByOfficialSymbol( csc.getSearchString() ); } else { genesFound = geneService.findByOfficialSymbol( csc.getSearchString() ); if ( genesFound.size() == 0 ) {
public ModelAndView onSubmit( HttpServletRequest request, HttpServletResponse response, Object command, BindException errors ) throws Exception { CoexpressionSearchCommand csc = ( ( CoexpressionSearchCommand ) command ); Cookie cookie = new CoexpressionSearchCookie( csc ); response.addCookie( cookie ); Collection<Gene> genesFound; Integer numExpressionExperiments; // find the genes specified by the search // if there is no exact search specified, do an inexact search // if exact search is on, find only by official symbol // if exact search is auto (usually from the front page), check if there is an exact search match. If there is none, do inexact search. if (csc.getExactSearch() == null) { genesFound = searchService.geneDbSearch( csc.getSearchString() ); genesFound.addAll( searchService.compassGeneSearch( csc.getSearchString() ) ); } else if (csc.getExactSearch().equalsIgnoreCase( "on" )) { genesFound = geneService.findByOfficialSymbol( csc.getSearchString( ) ); } else { genesFound = geneService.findByOfficialSymbol( csc.getSearchString( ) ); if (genesFound.size() == 0) { genesFound = searchService.geneDbSearch( csc.getSearchString() ); genesFound.addAll( searchService.compassGeneSearch( csc.getSearchString() ) ); } } // filter genes by Taxon Collection<Gene> genesToRemove = new ArrayList<Gene>(); for ( Gene gene : genesFound ) { if ( gene.getTaxon().getId().longValue() != csc.getTaxon().getId().longValue() ) { genesToRemove.add( gene ); } } genesFound.removeAll( genesToRemove ); // if no genes found // return error if (genesFound.size() == 0) { saveMessage( request, "No genes found based on criteria." ); return super.showForm( request, response, errors ); } // check if more than 1 gene found // if yes, then query user for gene to be used if (genesFound.size() > 1) { // check if more than 50 genes have been found. // if there are more, then warn the user and truncate list if (genesFound.size() > MAX_GENES_TO_RETURN) { genesToRemove = new ArrayList<Gene>(); int count = 0; for (Gene gene : genesFound) { if (count >= MAX_GENES_TO_RETURN) { genesToRemove.add( gene ); } count++; } genesFound.removeAll( genesToRemove ); saveMessage( request, "Found " + count + " genes. Truncating list to first "+ MAX_GENES_TO_RETURN + "." ); } saveMessage( request, "Multiple genes matched. Choose which gene to use." ); // set to exact search csc.setExactSearch( "on" ); ModelAndView mav = super.showForm( request, errors, getFormView() ); mav.addObject( "genes", genesFound ); return mav; } // At this point, only one gene has been found, find coexpressed genes // find expressionExperiments via lucene if the query is eestring-constrained Collection<ExpressionExperiment> ees; if (StringUtils.isNotBlank( csc.getEeSearchString() ) ) { ees = searchService.compassExpressionSearch( csc.getEeSearchString() ); if (ees.size() == 0) { saveMessage(request, "No datasets matched - defaulting to all datasets"); } } else { ees = new ArrayList<ExpressionExperiment>(); } Gene sourceGene = (Gene) (genesFound.toArray())[0]; // if there is no expressionExperiment criteria or // there are no matches, search all expression experiments if (ees.size() > 0) { numExpressionExperiments = ees.size(); } else { Map taxonCount = expressionExperimentService.getPerTaxonCount(); numExpressionExperiments = ((Long)taxonCount.get( sourceGene.getTaxon().getScientificName() )).intValue(); } // stringency. Cannot be less than 1; set to one if it is Integer stringency = csc.getStringency(); if (stringency == null) { stringency = DEFAULT_STRINGENCY; } else if (stringency < 1) { stringency = 1; } csc.setStringency( stringency ); CoexpressionCollectionValueObject coexpressions = (CoexpressionCollectionValueObject) geneService.getCoexpressedGenes( sourceGene, ees, stringency ); // get all the coexpressed genes and sort them by dataset count ArrayList<CoexpressionValueObject> coexpressedGenes = new ArrayList<CoexpressionValueObject>(); coexpressedGenes.addAll(coexpressions.getCoexpressionData()); // sort coexpressed genes by dataset count Collections.sort( coexpressedGenes, new CoexpressionComparator() ); // load expression experiment value objects Collection<Long> eeIds = new ArrayList<Long>(); Collection<ExpressionExperimentValueObject> origEeVos = coexpressions.getExpressionExperiments(); for ( ExpressionExperimentValueObject eeVo : origEeVos ) { eeIds.add( Long.parseLong( eeVo.getId() ) ); } Collection<ExpressionExperimentValueObject> eeVos = new ArrayList<ExpressionExperimentValueObject>(); if (eeIds.size() > 0) { eeVos = expressionExperimentService.loadValueObjects( eeIds ); } // load in array design value objects for each expression experiment for ( ExpressionExperimentValueObject object : eeVos ) { ExpressionExperiment ee = ExpressionExperiment.Factory.newInstance(); ee.setId( Long.parseLong( object.getId()) ); } ModelAndView mav = super.showForm( request, errors, getSuccessView() ); // no genes are coexpressed // return error if (coexpressedGenes.size() == 0) { saveMessage( request, "No genes are coexpressed with the given stringency." ); } Long numCoexpressedGenes = new Long(coexpressions.getStringencyLinkCount()); Integer numMatchedLinks = coexpressions.getLinkCount(); mav.addObject( "coexpressedGenes", coexpressedGenes ); mav.addObject( "numCoexpressedGenes", numCoexpressedGenes); mav.addObject( "numSearchedExpressionExperiments", numExpressionExperiments ); mav.addObject( "numMatchedLinks", numMatchedLinks ); mav.addObject( "sourceGene", sourceGene ); mav.addObject( "expressionExperiments", eeVos ); mav.addObject( "numLinkedExpressionExperiments", new Integer( eeVos.size() ) ); return mav; }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/1e58c1ef6f6633e7775aba53b757c43be85383f0/CoexpressionSearchController.java/buggy/gemma-web/src/main/java/ubic/gemma/web/controller/coexpressionSearch/CoexpressionSearchController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3164, 1876, 1767, 603, 11620, 12, 9984, 590, 16, 12446, 766, 16, 1033, 1296, 16, 5411, 6936, 503, 1334, 262, 1216, 1185, 288, 7734, 7695, 8692, 2979, 2189, 276, 1017, 273, 261, 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, 377, 1071, 3164, 1876, 1767, 603, 11620, 12, 9984, 590, 16, 12446, 766, 16, 1033, 1296, 16, 5411, 6936, 503, 1334, 262, 1216, 1185, 288, 7734, 7695, 8692, 2979, 2189, 276, 1017, 273, 261, 261,...
throws Throwable {
throws Throwable {
public Object invoke(Object aProxy, Method aMethod, Object[] aParams) throws Throwable { String methodName = aMethod.getName(); // Handle the three java.lang.Object methods that are passed to us. if (aMethod.getDeclaringClass() == Object.class) { if (methodName.equals("hashCode")) { return proxyHashCode(aProxy); } if (methodName.equals("equals")) { return proxyEquals(aProxy, aParams[0]); } if (methodName.equals("toString")) { return proxyToString(aProxy); } System.err.println("WARNING: Unhandled Object method [" + methodName + "]"); return null; } // Handle the 'finalize' method called during garbage collection if (aMethod.getDeclaringClass() == XPCOMJavaProxyBase.class) { if (methodName.equals("finalize")) { finalizeProxy(aProxy); } else { System.err.println("WARNING: Unhandled XPCOMJavaProxyBase method [" + methodName + "]"); } return null; } // If not already handled, pass method calls to XPCOM object. return callXPCOMMethod(aProxy, methodName, aParams); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/c385b2e9fc8073db7044d932ee6cd2f136fea61a/XPCOMJavaProxy.java/buggy/extensions/java/xpcom/XPCOMJavaProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 4356, 12, 921, 279, 3886, 16, 2985, 279, 1305, 16, 1033, 8526, 21968, 13, 565, 1216, 4206, 225, 288, 565, 514, 4918, 273, 279, 1305, 18, 17994, 5621, 565, 368, 5004, 326, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 4356, 12, 921, 279, 3886, 16, 2985, 279, 1305, 16, 1033, 8526, 21968, 13, 565, 1216, 4206, 225, 288, 565, 514, 4918, 273, 279, 1305, 18, 17994, 5621, 565, 368, 5004, 326, 89...
String paId = delegator.getNextSeqId("PaymentApplication").toString();
String paId = delegator.getNextSeqId("PaymentApplication");
public static Map processCreditReturn(DispatchContext dctx, Map context) { LocalDispatcher dispatcher = dctx.getDispatcher(); GenericDelegator delegator = dctx.getDelegator(); String returnId = (String) context.get("returnId"); GenericValue userLogin = (GenericValue) context.get("userLogin"); Locale locale = (Locale) context.get("locale"); GenericValue returnHeader = null; List returnItems = null; try { returnHeader = delegator.findByPrimaryKey("ReturnHeader", UtilMisc.toMap("returnId", returnId)); if (returnHeader != null) { returnItems = returnHeader.getRelatedByAnd("ReturnItem", UtilMisc.toMap("returnTypeId", "RTN_CREDIT")); } } catch (GenericEntityException e) { Debug.logError(e, "Problems looking up return information", module); return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderErrorGettingReturnHeaderItemInformation", locale)); } if (returnHeader != null && returnItems != null && returnItems.size() > 0) { String billingAccountId = returnHeader.getString("billingAccountId"); String fromPartyId = returnHeader.getString("fromPartyId"); String toPartyId = returnHeader.getString("toPartyId"); // make sure total refunds on a return don't exceed amount of returned orders Map serviceResult = null; try { serviceResult = dispatcher.runSync("checkPaymentAmountForRefund", UtilMisc.toMap("returnId", returnId)); } catch (GenericServiceException e) { Debug.logError(e, "Problem running the checkPaymentAmountForRefund service", module); return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderProblemsWithCheckPaymentAmountForRefund", locale)); } if (ServiceUtil.isError(serviceResult)) { return ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult)); } if (billingAccountId == null) { // create new BillingAccount w/ 0 balance Map results = createBillingAccountFromReturn(returnHeader, returnItems, dctx, context); if (ServiceUtil.isError(results)) { Debug.logError("Error creating BillingAccount: " + results.get(ModelService.ERROR_MESSAGE), module); return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderErrorWithCreateBillingAccount", locale) + results.get(ModelService.ERROR_MESSAGE)); } billingAccountId = (String) results.get("billingAccountId"); } // double check; make sure we have a billingAccount if (billingAccountId == null) { Debug.logError("No available billing account, none was created", module); return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderNoAvailableBillingAccount", locale)); } // now; to be used for all timestamps Timestamp now = UtilDateTime.nowTimestamp(); // first, compute the total credit from the return items BigDecimal creditTotal = ZERO; for (Iterator itemsIter = returnItems.iterator(); itemsIter.hasNext(); ) { GenericValue item = (GenericValue) itemsIter.next(); BigDecimal quantity = item.getBigDecimal("returnQuantity"); BigDecimal price = item.getBigDecimal("returnPrice"); if (quantity == null) quantity = ZERO; if (price == null) price = ZERO; creditTotal = creditTotal.add(price.multiply(quantity).setScale(decimals, rounding)); } // add the adjustments to the total BigDecimal adjustments = new BigDecimal(getReturnAdjustmentTotal(delegator, UtilMisc.toMap("returnId", returnId))); creditTotal = creditTotal.add(adjustments.setScale(decimals, rounding)); // create a Payment record for this credit; will look just like a normal payment // However, since this payment is not a DISBURSEMENT or RECEIPT but really a matter of internal record // it is of type "Other (Non-posting)" String paymentId = delegator.getNextSeqId("Payment").toString(); GenericValue payment = delegator.makeValue("Payment", UtilMisc.toMap("paymentId", paymentId)); payment.set("paymentTypeId", "CUSTOMER_REFUND"); payment.set("paymentMethodTypeId", "EXT_BILLACT"); payment.set("partyIdFrom", toPartyId); // if you receive a return FROM someone, then you'd have to give a return TO that person payment.set("partyIdTo", fromPartyId); payment.set("effectiveDate", now); payment.set("amount", creditTotal); payment.set("comments", "Return Credit"); payment.set("statusId", "PMNT_CONFIRMED"); // set the status to confirmed so nothing else can happen to the payment try { delegator.create(payment); } catch (GenericEntityException e) { Debug.logError(e, "Problem creating Payment record", module); return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderProblemCreatingPaymentRecord", locale)); } // create a return item response Map itemResponse = UtilMisc.toMap("paymentId", paymentId); itemResponse.put("billingAccountId", billingAccountId); itemResponse.put("responseAmount", new Double(creditTotal.doubleValue())); itemResponse.put("responseDate", now); itemResponse.put("userLogin", userLogin); Map serviceResults = null; try { serviceResults = dispatcher.runSync("createReturnItemResponse", itemResponse); if (ServiceUtil.isError(serviceResults)) { return ServiceUtil.returnError("Could not create ReturnItemResponse record", null, null, serviceResults); } } catch (GenericServiceException e) { Debug.logError(e, "Problem creating ReturnItemResponse record", module); return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderProblemCreatingReturnItemResponseRecord", locale)); } // the resulting response ID will be associated with the return items String itemResponseId = (String) serviceResults.get("returnItemResponseId"); // loop through the items again to update them and store a status change history List toBeStored = new ArrayList(); for (Iterator itemsIter = returnItems.iterator(); itemsIter.hasNext(); ) { GenericValue item = (GenericValue) itemsIter.next(); // set the response on the item and flag the item to be stored item.set("returnItemResponseId", itemResponseId); item.set("statusId", "RETURN_COMPLETED"); toBeStored.add(item); // create the status change history and set it to be stored String returnStatusId = delegator.getNextSeqId("ReturnStatus").toString(); GenericValue returnStatus = delegator.makeValue("ReturnStatus", UtilMisc.toMap("returnStatusId", returnStatusId)); returnStatus.set("statusId", item.get("statusId")); returnStatus.set("returnId", item.get("returnId")); returnStatus.set("returnItemSeqId", item.get("returnItemSeqId")); returnStatus.set("statusDatetime", now); toBeStored.add(returnStatus); } // store the item changes (attached responseId) try { delegator.storeAll(toBeStored); } catch (GenericEntityException e) { Debug.logError(e, "Problem storing ReturnItem updates", module); return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderProblemStoringReturnItemUpdates", locale)); } // create the PaymentApplication for the billing account String paId = delegator.getNextSeqId("PaymentApplication").toString(); GenericValue pa = delegator.makeValue("PaymentApplication", UtilMisc.toMap("paymentApplicationId", paId)); pa.set("paymentId", paymentId); pa.set("billingAccountId", billingAccountId); pa.set("amountApplied", creditTotal); try { delegator.create(pa); } catch (GenericEntityException e) { Debug.logError(e, "Problem creating PaymentApplication record for billing account", module); return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderProblemCreatingPaymentApplicationRecord", locale)); } // create the payment applications for the return invoice try { serviceResults = dispatcher.runSync("createPaymentApplicationsFromReturnItemResponse", UtilMisc.toMap("returnItemResponseId", itemResponseId, "userLogin", userLogin)); if (ServiceUtil.isError(serviceResults)) { return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderProblemCreatingPaymentApplicationRecord", locale), null, null, serviceResults); } } catch (GenericServiceException e) { Debug.logError(e, "Problem creating PaymentApplication records for return invoice", module); return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderProblemCreatingPaymentApplicationRecord", locale)); } } return ServiceUtil.returnSuccess(); }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/f855cb3f2bf47a0ab608a42893da9f540ac5006a/OrderReturnServices.java/clean/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 1207, 16520, 990, 12, 5325, 1042, 302, 5900, 16, 1635, 819, 13, 288, 3639, 3566, 6681, 7393, 273, 302, 5900, 18, 588, 6681, 5621, 3639, 7928, 15608, 639, 11158, 639, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 1207, 16520, 990, 12, 5325, 1042, 302, 5900, 16, 1635, 819, 13, 288, 3639, 3566, 6681, 7393, 273, 302, 5900, 18, 588, 6681, 5621, 3639, 7928, 15608, 639, 11158, 639, 273,...
throw new UnsupportedOperationException("Dimensions of a Table are attributed automagically. See the FAQ.");
throw new UnsupportedOperationException("Dimensions of a Table are attributed automagically. See the FAQ.");
public void setBottom(int value) { throw new UnsupportedOperationException("Dimensions of a Table are attributed automagically. See the FAQ."); }
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/ed86dfb474e6fa22e1797452482e751a297a7e1f/Table.java/clean/itext/src/com/lowagie/text/Table.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 10393, 12, 474, 460, 13, 288, 3639, 604, 394, 13172, 2932, 10796, 434, 279, 3555, 854, 5885, 4817, 18472, 346, 6478, 18, 2164, 326, 15064, 53, 1199, 1769, 565, 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, 377, 1071, 918, 444, 10393, 12, 474, 460, 13, 288, 3639, 604, 394, 13172, 2932, 10796, 434, 279, 3555, 854, 5885, 4817, 18472, 346, 6478, 18, 2164, 326, 15064, 53, 1199, 1769, 565, 289, 2, -...
setModified(true);
public void setType(String type) { if (((type == null) && (_type != null)) || ((type != null) && (_type == null)) || ((type != null) && (_type != null) && !type.equals(_type))) { if (!XSS_ALLOW_TYPE) { type = XSSUtil.strip(type); } _type = type; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/LayoutModel.java/buggy/portal-ejb/src/com/liferay/portal/model/LayoutModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8811, 12, 780, 618, 13, 288, 202, 202, 430, 261, 12443, 723, 422, 446, 13, 597, 261, 67, 723, 480, 446, 3719, 747, 9506, 202, 12443, 723, 480, 446, 13, 597, 261, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8811, 12, 780, 618, 13, 288, 202, 202, 430, 261, 12443, 723, 422, 446, 13, 597, 261, 67, 723, 480, 446, 3719, 747, 9506, 202, 12443, 723, 480, 446, 13, 597, 261, 67, ...
text = new StyledText(topContainer, SWT.MULTI | SWT.READ_ONLY);
text = new StyledText(textContainer, SWT.MULTI | SWT.READ_ONLY);
protected Control createDialogArea(Composite parent) { final Cursor hand = new Cursor(parent.getDisplay(), SWT.CURSOR_HAND); final Cursor busy = new Cursor(parent.getDisplay(), SWT.CURSOR_WAIT); setHandCursor(hand); setBusyCursor(busy); getShell().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { setHandCursor(null); hand.dispose(); setBusyCursor(null); busy.dispose(); } }); // brand the about box if there is product info Image aboutImage = null; if (product != null) { ImageDescriptor imageDescriptor = ProductProperties .getAboutImage(product); if (imageDescriptor != null) aboutImage = imageDescriptor.createImage(); // if the about image is small enough, then show the text if (aboutImage == null || aboutImage.getBounds().width <= MAX_IMAGE_WIDTH_FOR_TEXT) { String aboutText = ProductProperties.getAboutText(product); if (aboutText != null) setItem(scan(aboutText)); } if (aboutImage != null) images.add(aboutImage); } // create a composite which is the parent of the top area and the bottom // button bar, this allows there to be a second child of this composite with // a banner background on top but not have on the bottom Composite workArea = new Composite(parent, SWT.NONE); GridLayout workLayout = new GridLayout(); workLayout.marginHeight = 0; workLayout.marginWidth = 0; workLayout.verticalSpacing = 0; workLayout.horizontalSpacing = 0; workArea.setLayout(workLayout); workArea.setLayoutData(new GridData(GridData.FILL_BOTH)); // page group Color background = JFaceColors.getBannerBackground(parent.getDisplay()); Color foreground = JFaceColors.getBannerForeground(parent.getDisplay()); Composite top = (Composite) super.createDialogArea(workArea); // override any layout inherited from createDialogArea GridLayout layout = new GridLayout(); top.setLayout(layout); top.setLayoutData(new GridData(GridData.FILL_BOTH)); top.setBackground(background); top.setForeground(foreground); // the image & text Composite topContainer = new Composite(top, SWT.NONE); topContainer.setBackground(background); topContainer.setForeground(foreground); layout = new GridLayout(); layout.numColumns = (aboutImage == null || getItem() == null ? 1 : 2); layout.marginWidth = 0; layout.marginHeight = 0; topContainer.setLayout(layout); GridData data = new GridData(); data.horizontalAlignment = GridData.FILL; data.grabExcessHorizontalSpace = true; topContainer.setLayoutData(data); //image on left side of dialog if (aboutImage != null) { Label imageLabel = new Label(topContainer, SWT.NONE); imageLabel.setBackground(background); imageLabel.setForeground(foreground); data = new GridData(); data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.BEGINNING; data.grabExcessHorizontalSpace = false; imageLabel.setLayoutData(data); imageLabel.setImage(aboutImage); } if (getItem() != null) { // text on the right text = new StyledText(topContainer, SWT.MULTI | SWT.READ_ONLY); text.setCaret(null); text.setFont(parent.getFont()); data = new GridData(); data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.BEGINNING; data.grabExcessHorizontalSpace = true; text.setText(getItem().getText()); text.setLayoutData(data); text.setCursor(null); text.setBackground(background); text.setForeground(foreground); setLinkRanges(text, getItem().getLinkRanges()); addListeners(text); } // horizontal bar Label bar = new Label(workArea, SWT.HORIZONTAL | SWT.SEPARATOR); data = new GridData(); data.horizontalAlignment = GridData.FILL; bar.setLayoutData(data); // add image buttons for bundle groups that have them Composite bottom = (Composite) super.createDialogArea(workArea); // override any layout inherited from createDialogArea layout = new GridLayout(); bottom.setLayout(layout); bottom.setLayoutData(new GridData(GridData.FILL_BOTH)); createFeatureImageButtonRow(bottom); // spacer bar = new Label(bottom, SWT.NONE); data = new GridData(); data.horizontalAlignment = GridData.FILL; bar.setLayoutData(data); return workArea; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4e4310a06dce29e1e7d06b9c7a98110c923b5481/AboutDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 3639, 727, 13949, 948, 273, 394, 13949, 12, 2938, 18, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 12346, 1769, 3639, 727, 139...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 3639, 727, 13949, 948, 273, 394, 13949, 12, 2938, 18, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 12346, 1769, 3639, 727, 139...
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute"));
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenCommonBase genElement = (GenCommonBase) ((Object[]) argument)[0];final GenLinkLabel genLabel = (GenLinkLabel)genElement;final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];GenLink genHost = genLabel.getLink();GenDiagram genDiagram = genLabel.getDiagram();LabelModelFacet labelModelFacet = genLabel.getModelFacet();GenClass underlyingMetaClass;if (genHost.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet typeLinkModelFacet = (TypeLinkModelFacet) genHost.getModelFacet(); underlyingMetaClass = typeLinkModelFacet.getMetaClass();} else if (genHost.getModelFacet() instanceof FeatureLinkModelFacet) { FeatureLinkModelFacet featureLinkModelFacet = (FeatureLinkModelFacet) genHost.getModelFacet(); underlyingMetaClass = featureLinkModelFacet.getMetaFeature().getTypeGenClass();} else { underlyingMetaClass = null;}final boolean isReadOnly = genLabel.isReadOnly(); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } stringBuffer.append(TEXT_4); stringBuffer.append(TEXT_5); class FeatureGetAccessorHelper { /** * @param containerName the name of the container * @param feature the feature whose value is in interest * @param containerMetaClass the <code>GenClass</code> of the container, or <code>null</code>, if the container is declared as an <code>EObject</code>. * @param needsCastToResultType whether the cast to the result type is required (this parameter is only used if the <code>EClass</code> this feature belongs to is an external interface). */ public void appendFeatureValueGetter(String containerName, GenFeature feature, GenClass containerMetaClass, boolean needsCastToResultType) { if (feature.getGenClass().isExternalInterface()) { boolean needsCastToEObject = containerMetaClass != null && containerMetaClass.isExternalInterface(); if (needsCastToResultType) { stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName(feature.isListType() ? "java.util.Collection" : feature.getTypeGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_7); } if (needsCastToEObject) { stringBuffer.append(TEXT_8); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_9); } stringBuffer.append(containerName); if (needsCastToEObject) { stringBuffer.append(TEXT_10); } stringBuffer.append(TEXT_11); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_12); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_13); if (needsCastToResultType) { stringBuffer.append(TEXT_14); } } else { boolean needsCastToFeatureGenType = containerMetaClass == null || containerMetaClass.isExternalInterface(); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName(feature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_16); } stringBuffer.append(containerName); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_17); } stringBuffer.append(TEXT_18); stringBuffer.append(feature.getGetAccessor()); stringBuffer.append(TEXT_19); } }}final FeatureGetAccessorHelper myFeatureGetAccessorHelper = new FeatureGetAccessorHelper(); stringBuffer.append(TEXT_20); importManager.emitPackageStatement(stringBuffer);importManager.addImport("org.eclipse.draw2d.geometry.Point");importManager.addImport("org.eclipse.gef.EditPart");importManager.addImport("org.eclipse.gef.EditPolicy");importManager.addImport("org.eclipse.gmf.runtime.notation.Location");importManager.addImport("org.eclipse.gmf.runtime.notation.Node");importManager.addImport("org.eclipse.gmf.runtime.notation.View");importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_21); stringBuffer.append(genLabel.getEditPartClassName()); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.AbstractGraphicalEditPart")); stringBuffer.append(TEXT_23); {GenCommonBase genCommonBase = genLabel; stringBuffer.append(TEXT_24); stringBuffer.append(TEXT_25); stringBuffer.append(genCommonBase.getVisualID()); stringBuffer.append(TEXT_26); } stringBuffer.append(TEXT_27); stringBuffer.append(TEXT_28); if (!isReadOnly) { stringBuffer.append(TEXT_29); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_30); } stringBuffer.append(TEXT_31); stringBuffer.append(genLabel.getEditPartClassName()); stringBuffer.append(TEXT_32); final String primaryView = "getUpdatableParent().getDiagramEdge()";final String resolvedSemanticElement = "resolveSemanticElement()"; stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy")); stringBuffer.append(TEXT_34); if (labelModelFacet instanceof FeatureLabelModelFacet || labelModelFacet instanceof CompositeFeatureLabelModelFacet && !isReadOnly) { String editPatternCode = "EDIT_PATTERN"; //declared in labelText.javajetinc, used in directEditCommand.jetinc. stringBuffer.append(TEXT_35); stringBuffer.append(TEXT_36); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_39); stringBuffer.append(TEXT_40); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_44); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_45); stringBuffer.append(editPatternCode); stringBuffer.append(TEXT_46); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_47); stringBuffer.append(importManager.getImportedName("java.text.ParseException")); stringBuffer.append(TEXT_48); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_50); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_51); stringBuffer.append(primaryView); stringBuffer.append(TEXT_52); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature featureToSet = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); EStructuralFeature ecoreFeature = featureToSet.getEcoreFeature(); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_55); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_58); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_59); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_61); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName(featureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_63); stringBuffer.append(featureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_66); if (ecoreFeature.isMany()) { stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_71); stringBuffer.append(featureToSet.getAccessorName()); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_74); } else { stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_76); } stringBuffer.append(TEXT_77); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; List metaFeatures = compositeFeatureLabelModelFacet.getMetaFeatures(); stringBuffer.append(TEXT_78); stringBuffer.append(metaFeatures.size()); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_83); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_85); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_88); boolean haveDeclaredValues = false; for(int i = 0; i < metaFeatures.size(); i++) { GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i); EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature(); stringBuffer.append(TEXT_89); if (i == 0) { stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_90); } stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_92); stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_93); stringBuffer.append(nextFeatureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_95); stringBuffer.append(i); stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_97); if (nextEcoreFeature.isMany()) { stringBuffer.append(TEXT_98); if (!haveDeclaredValues) { haveDeclaredValues = true; stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_99); } stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_101); stringBuffer.append(nextFeatureToSet.getAccessorName()); stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_104); } else { stringBuffer.append(TEXT_105); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_106); } } stringBuffer.append(TEXT_107); } stringBuffer.append(TEXT_108); } stringBuffer.append(TEXT_109); if (labelModelFacet instanceof FeatureLabelModelFacet || labelModelFacet instanceof CompositeFeatureLabelModelFacet && !isReadOnly) { stringBuffer.append(TEXT_110); stringBuffer.append(TEXT_111); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_113); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_114); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor")); stringBuffer.append(TEXT_116); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator")); stringBuffer.append(TEXT_117); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor")); stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_119); } stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Connection")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Connection")); stringBuffer.append(TEXT_123); final String alignment; LinkLabelAlignment genAlignment = genLabel.getAlignment(); if (genAlignment == null) { alignment = "MIDDLE"; } else { switch (genAlignment.getValue()) { case LinkLabelAlignment.MIDDLE: alignment = "MIDDLE"; break; case LinkLabelAlignment.TARGET: alignment = "TARGET"; break; case LinkLabelAlignment.SOURCE: alignment = "SOURCE"; break; default: alignment = "MIDDLE"; break; } } stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionLocator")); stringBuffer.append(TEXT_126); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionLocator")); stringBuffer.append(TEXT_127); stringBuffer.append(alignment); stringBuffer.append(TEXT_128); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); stringBuffer.append(TEXT_129); stringBuffer.append(TEXT_130); /*genFeature.getObjectType() throws NPE on primitive types. This is a workaround. */HashMap primitiveTypeToWrapperClassName = new HashMap();primitiveTypeToWrapperClassName.put(Boolean.TYPE, "Boolean");primitiveTypeToWrapperClassName.put(Byte.TYPE, "Byte");primitiveTypeToWrapperClassName.put(Character.TYPE, "Character");primitiveTypeToWrapperClassName.put(Double.TYPE, "Double");primitiveTypeToWrapperClassName.put(Float.TYPE, "Float");primitiveTypeToWrapperClassName.put(Integer.TYPE, "Integer");primitiveTypeToWrapperClassName.put(Long.TYPE, "Long");primitiveTypeToWrapperClassName.put(Short.TYPE, "Short");String viewPattern = null;String editPattern = null;if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; viewPattern = featureLabelModelFacet.getViewPattern(); if (viewPattern == null || viewPattern.length() == 0) { viewPattern = "{0}"; } editPattern = featureLabelModelFacet.getEditPattern(); if (editPattern == null || editPattern.length() == 0) { editPattern = "{0}"; }} else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; viewPattern = compositeFeatureLabelModelFacet.getViewPattern(); if (viewPattern == null || viewPattern.length() == 0) { StringBuffer patternBuffer = new StringBuffer(); for(int i = 0; i < compositeFeatureLabelModelFacet.getMetaFeatures().size(); i++) { patternBuffer.append("{").append(i).append("} "); } viewPattern = patternBuffer.toString().trim(); } editPattern = compositeFeatureLabelModelFacet.getEditPattern(); if (editPattern == null || editPattern.length() == 0) { StringBuffer patternBuffer = new StringBuffer(); for(int i = 0; i < compositeFeatureLabelModelFacet.getMetaFeatures().size(); i++) { patternBuffer.append("{").append(i).append("} "); } editPattern = patternBuffer.toString().trim(); }} stringBuffer.append(TEXT_131); stringBuffer.append(viewPattern); stringBuffer.append(TEXT_132); stringBuffer.append(editPattern); stringBuffer.append(TEXT_133); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_134); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_135); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_136); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_137); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_138); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; GenFeature feature = featureLabelModelFacet.getMetaFeature(); if (!feature.isPrimitiveType()) { stringBuffer.append(TEXT_139); myFeatureGetAccessorHelper.appendFeatureValueGetter("element", feature, underlyingMetaClass, false); stringBuffer.append(TEXT_140); } stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_142); if (feature.isPrimitiveType()) { stringBuffer.append(TEXT_143); stringBuffer.append(primitiveTypeToWrapperClassName.get(feature.getTypeGenClassifier().getEcoreClassifier().getInstanceClass())); stringBuffer.append(TEXT_144); } myFeatureGetAccessorHelper.appendFeatureValueGetter("element", feature, underlyingMetaClass, false); if (feature.isPrimitiveType()) { stringBuffer.append(TEXT_145); } stringBuffer.append(TEXT_146); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_148); for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); if (next.isPrimitiveType()) { stringBuffer.append(TEXT_149); stringBuffer.append(primitiveTypeToWrapperClassName.get(next.getTypeGenClassifier().getEcoreClassifier().getInstanceClass())); stringBuffer.append(TEXT_150); } myFeatureGetAccessorHelper.appendFeatureValueGetter("element", next, underlyingMetaClass, false); if (next.isPrimitiveType()) { stringBuffer.append(TEXT_151); } if (it.hasNext()) { stringBuffer.append(TEXT_152); } } stringBuffer.append(TEXT_153); } else { stringBuffer.append(TEXT_154); } stringBuffer.append(TEXT_155); stringBuffer.append(TEXT_156); boolean isFixedFontSetInFigure;{ StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();} stringBuffer.append(TEXT_157); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_159); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_160); stringBuffer.append(primaryView); stringBuffer.append(TEXT_161); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_163); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_169); } stringBuffer.append(TEXT_170); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_171); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_172); } stringBuffer.append(TEXT_173); stringBuffer.append(TEXT_174); stringBuffer.append(TEXT_175); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_177); stringBuffer.append(primaryView); stringBuffer.append(TEXT_178); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_179); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_180); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_182); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Image")); stringBuffer.append(TEXT_184); if (genLabel.isElementIcon()) { stringBuffer.append(TEXT_185); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.resource.ImageDescriptor")); stringBuffer.append(TEXT_186); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_187); } stringBuffer.append(TEXT_188); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); stringBuffer.append(TEXT_191); if (genHost.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_192); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_193); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_195); } else if (genHost.getModelFacet() instanceof FeatureLinkModelFacet) { stringBuffer.append(TEXT_196); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_197); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); stringBuffer.append(TEXT_198); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_200); } else { stringBuffer.append(TEXT_201); } stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_203); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_207); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_211); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature feature = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); stringBuffer.append(TEXT_212); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_213); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_214); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_216); stringBuffer.append(next.getFeatureAccessorName()); stringBuffer.append(TEXT_217); }} stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_220); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_221); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_224); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature feature = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); stringBuffer.append(TEXT_225); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_226); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_227); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_229); stringBuffer.append(next.getFeatureAccessorName()); stringBuffer.append(TEXT_230); }} stringBuffer.append(TEXT_231); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_233); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_235); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_237); final Viewmap viewmap = genLabel.getViewmap(); stringBuffer.append(TEXT_238); final String figureQualifiedClassName;if (viewmap instanceof ParentAssignedViewmap) { ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; figureQualifiedClassName = parentAssignedViewmap.getFigureQualifiedClassName() == null ? "org.eclipse.draw2d.IFigure" : parentAssignedViewmap.getFigureQualifiedClassName();} else if (viewmap instanceof FigureViewmap) { String figureQualifiedClassNameCandidate = ((FigureViewmap) viewmap).getFigureQualifiedClassName(); if (figureQualifiedClassNameCandidate == null || figureQualifiedClassNameCandidate.trim().length() == 0) { figureQualifiedClassName = "org.eclipse.draw2d.Label"; } else { figureQualifiedClassName = figureQualifiedClassNameCandidate; }} else if (viewmap instanceof SnippetViewmap) { figureQualifiedClassName = "org.eclipse.draw2d.IFigure";} else if (viewmap instanceof InnerClassViewmap) { figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName();} else { figureQualifiedClassName = "org.eclipse.draw2d.IFigure";}final String figureImportedName;if (viewmap instanceof InnerClassViewmap) { figureImportedName = figureQualifiedClassName; //do not import inner class} else { figureImportedName = importManager.getImportedName(figureQualifiedClassName);}if (viewmap instanceof ParentAssignedViewmap) { final ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_240); stringBuffer.append((parentAssignedViewmap.getSetterName() == null ? "setLabel" : parentAssignedViewmap.getSetterName())); stringBuffer.append(TEXT_241); } else { stringBuffer.append(TEXT_242); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_243); if (viewmap instanceof FigureViewmap) { stringBuffer.append(TEXT_244); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_245); } // instanceof FigureViewmap else if (viewmap instanceof SnippetViewmap) { stringBuffer.append(TEXT_246); stringBuffer.append(((SnippetViewmap) viewmap).getBody()); stringBuffer.append(TEXT_247); } // instanceof SnippetViewmap; FIXME : obtain figure class name to generate getter else if (viewmap instanceof InnerClassViewmap) { stringBuffer.append(TEXT_248); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_249); } stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_251); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_252); if ("org.eclipse.draw2d.Label".equals(figureQualifiedClassName) || viewmap instanceof InnerClassViewmap) { stringBuffer.append(TEXT_253); } else { stringBuffer.append(TEXT_254); } stringBuffer.append(TEXT_255); } /*not parent-assigned*/ stringBuffer.append(TEXT_256); if (!"org.eclipse.draw2d.Label".equals(figureQualifiedClassName) && viewmap instanceof InnerClassViewmap==false) { stringBuffer.append(TEXT_257); } stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Label")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Label")); stringBuffer.append(TEXT_260); String labelSetterName = "setLabel"; // same assumption in NodeEditPartString labelFigureClassName = "org.eclipse.draw2d.IFigure";if (viewmap instanceof ParentAssignedViewmap) { ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; if (parentAssignedViewmap.getSetterName() != null) { labelSetterName = parentAssignedViewmap.getSetterName(); } if (parentAssignedViewmap.getFigureQualifiedClassName() != null) { labelFigureClassName = parentAssignedViewmap.getFigureQualifiedClassName(); }} // FIXME perhaps, there's no sense to have setLabel for any other viewmap than ParentAssigned? stringBuffer.append(TEXT_261); stringBuffer.append(labelSetterName); stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName(labelFigureClassName)); stringBuffer.append(TEXT_263); if ("org.eclipse.draw2d.Label".equals(labelFigureClassName)) { stringBuffer.append(TEXT_264); } else { stringBuffer.append(TEXT_265); } stringBuffer.append(TEXT_266); if (viewmap instanceof InnerClassViewmap) { String classBody = ((InnerClassViewmap) viewmap).getClassBody(); stringBuffer.append(TEXT_267); stringBuffer.append(classBody); stringBuffer.append(TEXT_268); if (classBody.indexOf("DPtoLP") != -1) { stringBuffer.append(TEXT_269); } } stringBuffer.append(TEXT_270); importManager.emitSortedImports(); stringBuffer.append(TEXT_271); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/de70953cec74fbba0ed0cfbed37c36c0b594b3db/LinkLabelEditPartGenerator.java/buggy/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/LinkLabelEditPartGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6517, 2171, 3157, 1046, 273, 261, 7642, 6517, 2171, 13, 14015, 921, 63, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6517, 2171, 3157, 1046, 273, 261, 7642, 6517, 2171, 13, 14015, 921, 63, 5...
if ( isActive( ) )
if ( isActive( ) && event.getAction( ) != ActivityStackEvent.ROLL_BACK )
public void stackChanged( ActivityStackEvent event ) { if ( isActive( ) ) { reloadEditorInput( ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/0891eac94d79e1ccdc45848f6b4cd34ac5ebf5bd/ReportXMLSourceEditorFormPage.java/clean/UI/org.eclipse.birt.report.designer.ui.editor.xml.wtp/src/org/eclipse/birt/report/designer/ui/editor/pages/xml/ReportXMLSourceEditorFormPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 2110, 5033, 12, 9621, 2624, 1133, 871, 262, 9506, 202, 95, 6862, 202, 430, 261, 15083, 12, 262, 262, 6862, 202, 95, 25083, 202, 17517, 6946, 1210, 12, 11272, 6862, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 2110, 5033, 12, 9621, 2624, 1133, 871, 262, 9506, 202, 95, 6862, 202, 430, 261, 15083, 12, 262, 262, 6862, 202, 95, 25083, 202, 17517, 6946, 1210, 12, 11272, 6862, 202, ...
dcElement = (String)fieldMap.get("dc-element"); dcQualifier = (String)fieldMap.get("dc-qualifier");
dcElement = (String) fieldMap.get("dc-element"); dcQualifier = (String) fieldMap.get("dc-qualifier");
public DCInput(Map fieldMap, Map listMap) { dcElement = (String)fieldMap.get("dc-element"); dcQualifier = (String)fieldMap.get("dc-qualifier"); // Default the schema to dublin core dcSchema = (String)fieldMap.get("dc-schema"); if (dcSchema == null) { dcSchema = MetadataSchema.DC_SCHEMA; } String repStr = (String)fieldMap.get("repeatable"); repeatable = "true".equalsIgnoreCase(repStr) || "yes".equalsIgnoreCase(repStr); label = (String)fieldMap.get("label"); inputType = (String)fieldMap.get("input-type"); // these types are list-controlled if ( "dropdown".equals( inputType) || "qualdrop_value".equals( inputType )) { valueListName = (String)fieldMap.get("value-pairs-name"); valueList = (List)listMap.get( valueListName ); } hint = (String)fieldMap.get("hint"); warning = (String)fieldMap.get("required"); required = ( warning != null && warning.length() > 0 ); visibility = (String)fieldMap.get("visibility"); }
51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/09b200a563efc77be8bd8eceb05423772e261e18/DCInput.java/buggy/dspace/src/org/dspace/app/webui/util/DCInput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 21533, 1210, 12, 863, 29646, 16, 1635, 666, 863, 13, 565, 288, 377, 202, 7201, 1046, 273, 261, 780, 13, 1518, 863, 18, 588, 2932, 7201, 17, 2956, 8863, 3639, 202, 7201, 16185, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 21533, 1210, 12, 863, 29646, 16, 1635, 666, 863, 13, 565, 288, 377, 202, 7201, 1046, 273, 261, 780, 13, 1518, 863, 18, 588, 2932, 7201, 17, 2956, 8863, 3639, 202, 7201, 16185, 273...
commandIdsByUniqueName = new HashMap(); commandUniqueNamesById = new HashMap(); for (Iterator iterator = commandsByName.entrySet().iterator(); iterator .hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String name = (String) entry.getKey(); Set commands = (Set) entry.getValue(); Iterator iterator2 = commands.iterator(); if (commands.size() == 1) { Command command = (Command) iterator2.next(); commandIdsByUniqueName.put(name, command.getId()); commandUniqueNamesById.put(command.getId(), name); } else while (iterator2.hasNext()) { Command command = (Command) iterator2.next(); String uniqueName = MessageFormat.format( Util.translateString(RESOURCE_BUNDLE, "uniqueName"), new Object[] { name, command.getId() }); commandIdsByUniqueName.put(uniqueName, command.getId()); commandUniqueNamesById.put(command.getId(), uniqueName); } }
public final void setVisible(final boolean visible) { if (visible == true) { Map contextsByName = new HashMap(); for (Iterator iterator = contextService.getDefinedContextIds() .iterator(); iterator.hasNext();) { Context context = contextService.getContext((String) iterator .next()); try { String name = context.getName(); Collection contexts = (Collection) contextsByName.get(name); if (contexts == null) { contexts = new HashSet(); contextsByName.put(name, contexts); } contexts.add(context); } catch (final NotDefinedException e) { // Do nothing. } } Map categoriesByName = new HashMap(); for (Iterator iterator = commandService.getDefinedCategoryIds() .iterator(); iterator.hasNext();) { Category category = commandService .getCategory((String) iterator.next()); try { String name = category.getName(); Collection categories = (Collection) categoriesByName .get(name); if (categories == null) { categories = new HashSet(); categoriesByName.put(name, categories); } categories.add(category); } catch (NotDefinedException eNotDefined) { // Do nothing } } Map commandsByName = new HashMap(); for (Iterator iterator = commandService.getDefinedCommandIds() .iterator(); iterator.hasNext();) { Command command = commandService.getCommand((String) iterator .next()); if (!isActive(command)) { continue; } try { String name = command.getName(); Collection commands = (Collection) commandsByName.get(name); if (commands == null) { commands = new HashSet(); commandsByName.put(name, commands); } commands.add(command); } catch (NotDefinedException eNotDefined) { // Do nothing } } Map schemesByName = new HashMap(); final Scheme[] definedSchemes = bindingService.getDefinedSchemes(); for (int i = 0; i < definedSchemes.length; i++) { final Scheme scheme = definedSchemes[i]; try { String name = scheme.getName(); Collection schemes = (Collection) schemesByName.get(name); if (schemes == null) { schemes = new HashSet(); schemesByName.put(name, schemes); } schemes.add(scheme); } catch (final NotDefinedException e) { // Do nothing. } } contextIdsByUniqueName = new HashMap(); contextUniqueNamesById = new HashMap(); for (Iterator iterator = contextsByName.entrySet().iterator(); iterator .hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String name = (String) entry.getKey(); Set contexts = (Set) entry.getValue(); Iterator iterator2 = contexts.iterator(); if (contexts.size() == 1) { Context context = (Context) iterator2.next(); contextIdsByUniqueName.put(name, context.getId()); contextUniqueNamesById.put(context.getId(), name); } else while (iterator2.hasNext()) { Context context = (Context) iterator2.next(); String uniqueName = MessageFormat.format( Util.translateString(RESOURCE_BUNDLE, "uniqueName"), new Object[] { name, //$NON-NLS-1$ context.getId() }); contextIdsByUniqueName.put(uniqueName, context.getId()); contextUniqueNamesById.put(context.getId(), uniqueName); } } categoryIdsByUniqueName = new HashMap(); categoryUniqueNamesById = new HashMap(); for (Iterator iterator = categoriesByName.entrySet().iterator(); iterator .hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String name = (String) entry.getKey(); Set categories = (Set) entry.getValue(); Iterator iterator2 = categories.iterator(); if (categories.size() == 1) { Category category = (Category) iterator2.next(); categoryIdsByUniqueName.put(name, category.getId()); categoryUniqueNamesById.put(category.getId(), name); } else while (iterator2.hasNext()) { Category category = (Category) iterator2.next(); String uniqueName = MessageFormat.format( Util.translateString(RESOURCE_BUNDLE, "uniqueName"), new Object[] { name, //$NON-NLS-1$ category.getId() }); categoryIdsByUniqueName.put(uniqueName, category .getId()); categoryUniqueNamesById.put(category.getId(), uniqueName); } } commandIdsByUniqueName = new HashMap(); commandUniqueNamesById = new HashMap(); for (Iterator iterator = commandsByName.entrySet().iterator(); iterator .hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String name = (String) entry.getKey(); Set commands = (Set) entry.getValue(); Iterator iterator2 = commands.iterator(); if (commands.size() == 1) { Command command = (Command) iterator2.next(); commandIdsByUniqueName.put(name, command.getId()); commandUniqueNamesById.put(command.getId(), name); } else while (iterator2.hasNext()) { Command command = (Command) iterator2.next(); String uniqueName = MessageFormat.format( Util.translateString(RESOURCE_BUNDLE, "uniqueName"), new Object[] { name, //$NON-NLS-1$ command.getId() }); commandIdsByUniqueName.put(uniqueName, command.getId()); commandUniqueNamesById.put(command.getId(), uniqueName); } } schemeIdsByUniqueName = new HashMap(); schemeUniqueNamesById = new HashMap(); for (Iterator iterator = schemesByName.entrySet().iterator(); iterator .hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String name = (String) entry.getKey(); Set keyConfigurations = (Set) entry.getValue(); Iterator iterator2 = keyConfigurations.iterator(); if (keyConfigurations.size() == 1) { Scheme scheme = (Scheme) iterator2.next(); schemeIdsByUniqueName.put(name, scheme.getId()); schemeUniqueNamesById.put(scheme.getId(), name); } else while (iterator2.hasNext()) { Scheme scheme = (Scheme) iterator2.next(); String uniqueName = MessageFormat.format( Util.translateString(RESOURCE_BUNDLE, "uniqueName"), new Object[] { name, //$NON-NLS-1$ scheme.getId() }); schemeIdsByUniqueName.put(uniqueName, scheme.getId()); schemeUniqueNamesById.put(scheme.getId(), uniqueName); } } Scheme activeScheme = bindingService.getActiveScheme(); commandIdsByCategoryId = new HashMap(); for (Iterator iterator = commandService.getDefinedCommandIds() .iterator(); iterator.hasNext();) { final Command command = commandService .getCommand((String) iterator.next()); if (!isActive(command)) { continue; } try { String categoryId = command.getCategory().getId(); Collection commandIds = (Collection) commandIdsByCategoryId .get(categoryId); if (commandIds == null) { commandIds = new HashSet(); commandIdsByCategoryId.put(categoryId, commandIds); } commandIds.add(command.getId()); } catch (NotDefinedException eNotDefined) { // Do nothing } } // Make an internal copy of the binding manager, for local changes. try { for (int i = 0; i < definedSchemes.length; i++) { final Scheme scheme = definedSchemes[i]; final Scheme copy = localChangeManager.getScheme(scheme .getId()); copy.define(scheme.getName(), scheme.getDescription(), scheme.getParentId()); } localChangeManager.setActiveScheme(bindingService .getActiveScheme()); } catch (final NotDefinedException e) { throw new Error( "There is a programmer error in the keys preference page"); //$NON-NLS-1$ } localChangeManager.setLocale(bindingService.getLocale()); localChangeManager.setPlatform(bindingService.getPlatform()); localChangeManager.setBindings(bindingService.getBindings()); // Populate the category combo box. List categoryNames = new ArrayList(categoryIdsByUniqueName.keySet()); Collections.sort(categoryNames, Collator.getInstance()); if (commandIdsByCategoryId.containsKey(null)) { categoryNames.add(0, Util.translateString(RESOURCE_BUNDLE, "other")); //$NON-NLS-1$ } comboCategory.setItems((String[]) categoryNames .toArray(new String[categoryNames.size()])); comboCategory.clearSelection(); comboCategory.deselectAll(); if (commandIdsByCategoryId.containsKey(null) || !categoryNames.isEmpty()) { comboCategory.select(0); } // Populate the scheme combo box. List schemeNames = new ArrayList(schemeIdsByUniqueName.keySet()); Collections.sort(schemeNames, Collator.getInstance()); comboScheme.setItems((String[]) schemeNames .toArray(new String[schemeNames.size()])); setScheme(activeScheme); // Update the entire page. update(true); } super.setVisible(visible); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/KeysPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeysPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 16697, 12, 6385, 1250, 6021, 13, 288, 202, 202, 430, 261, 8613, 422, 638, 13, 288, 1082, 202, 863, 5781, 5911, 273, 394, 4317, 5621, 1082, 202, 1884, 261, 3198, 2775...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 16697, 12, 6385, 1250, 6021, 13, 288, 202, 202, 430, 261, 8613, 422, 638, 13, 288, 1082, 202, 863, 5781, 5911, 273, 394, 4317, 5621, 1082, 202, 1884, 261, 3198, 2775...
files[i] = dirPrefix + stripString(files[i]);
files[i] = dirPrefix + DataTools.stripString(files[i]);
protected void initFile(String id) throws FormatException, IOException { if (id.toLowerCase().endsWith("tif") || id.toLowerCase().endsWith("tiff")) { super.initFile(id); in = new RandomAccessFile(id, "r"); // open the TIFF file and look for the "Image Description" field Hashtable[] ifds = TiffTools.getIFDs(in); if (ifds == null) throw new FormatException("No IFDs found"); String descr = (String) metadata.get("Comment"); metadata.remove("Comment"); int ndx = descr.indexOf("Series Name"); // should be more graceful about this if (ndx == -1) throw new FormatException("LEI file not found"); String lei = descr.substring(descr.indexOf("=", ndx) + 1); lei = lei.substring(0, lei.indexOf("\n")); lei = lei.trim(); String dir = id.substring(0, id.lastIndexOf("/") + 1); lei = dir + lei; // parse key/value pairs in ImageDescription // first thing is to remove anything of the form "[blah]" String first; String last; while(descr.indexOf("[") != -1) { first = descr.substring(0, descr.indexOf("[")); last = descr.substring(descr.indexOf("\n", descr.indexOf("["))); descr = first + last; } // each remaining line in descr is a (key, value) pair, // where '=' separates the key from the value String key; String value; int eqIndex = descr.indexOf("="); while(eqIndex != -1) { key = descr.substring(0, eqIndex); value = descr.substring(eqIndex+1, descr.indexOf("\n", eqIndex)); metadata.put(key.trim(), value.trim()); descr = descr.substring(descr.indexOf("\n", eqIndex)); eqIndex = descr.indexOf("="); } // now open the LEI file initFile(lei); } else { // parse the LEI file if (metadata == null) super.initFile(id); else { if (currentId != id) currentId = id; } in = new RandomAccessFile(id, "r"); byte[] fourBytes = new byte[4]; in.read(fourBytes); littleEndian = (fourBytes[0] == TiffTools.LITTLE && fourBytes[1] == TiffTools.LITTLE && fourBytes[2] == TiffTools.LITTLE && fourBytes[3] == TiffTools.LITTLE); in.skipBytes(8); int addr = (int) DataTools.read4UnsignedBytes(in, littleEndian); Vector v = new Vector(); while (addr != 0) { Hashtable ifd = new Hashtable(); v.add(ifd); in.seek(addr); int numEntries = (int) DataTools.read4UnsignedBytes(in, littleEndian); int tag = (int) DataTools.read4UnsignedBytes(in, littleEndian); int numIFDs = 0; while (tag != 0) { // create the IFD structure int offset = (int) DataTools.read4UnsignedBytes(in, littleEndian); int fp = (int) in.getFilePointer(); in.seek(offset + 12); int size = (int) DataTools.read4UnsignedBytes(in, littleEndian); byte[] data = new byte[size]; in.read(data); ifd.put(new Integer(tag), (Object) data); in.seek(fp); tag = (int) DataTools.read4UnsignedBytes(in, littleEndian); } addr = (int) DataTools.read4UnsignedBytes(in, littleEndian); } headerIFDs = new Hashtable[v.size()]; v.copyInto(headerIFDs); // determine the length of a filename int nameLength = 0; for (int i=0; i<headerIFDs.length; i++) { if (headerIFDs[i].get(new Integer(10)) != null) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); nameLength = DataTools.bytesToInt(temp, 8, 4, littleEndian); } } Vector f = new Vector(); for (int i=0; i<headerIFDs.length; i++) { byte[] tempData = (byte[]) headerIFDs[i].get(new Integer(15)); int tempImages = DataTools.bytesToInt(tempData, 0, 4, littleEndian); for (int j=0; j<tempImages; j++) { // read in each filename f.add(new String(tempData, 20 + 2*(j*nameLength), 2*nameLength)); } } files = new String[f.size()]; numImages = f.size(); f.copyInto(files); String dirPrefix = new File(id).getParent(); dirPrefix = dirPrefix == null ? "" : (dirPrefix + File.separator); for (int i=0; i<files.length; i++) { files[i] = dirPrefix + stripString(files[i]); } initMetadata(); } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/91859a26506b8a1d312b398da2c3ecd94e02fa60/LeicaReader.java/clean/loci/formats/LeicaReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 309, 261, 350, 18, 869, 5630, 7675, 5839, 1190, 2932, 26922, 7923, 747, 612, 18, 869, 5630, 7675, 5839, 1190...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 309, 261, 350, 18, 869, 5630, 7675, 5839, 1190, 2932, 26922, 7923, 747, 612, 18, 869, 5630, 7675, 5839, 1190...
public int getLastRow() { return lastRow; }
public int getLastRow() { return lastRow; }
public int getLastRow() { return lastRow; } // getLastRow()
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/0788b89b7368770a1157f825d60dd8c5a9df183e/TableModelEvent.java/clean/core/src/classpath/javax/javax/swing/event/TableModelEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7595, 1999, 1435, 288, 202, 202, 2463, 1142, 1999, 31, 202, 97, 368, 7595, 1999, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7595, 1999, 1435, 288, 202, 202, 2463, 1142, 1999, 31, 202, 97, 368, 7595, 1999, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
setIndexed(((Boolean) evalAttr("indexed", getIndexed() + "",
setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(),
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabled() + "", Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexed() + "", Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/8ea000525d15d262cb8d9a81cd99fae11630f303/ELSubmitTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELSubmitTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, ...