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 |
|---|---|---|---|---|---|---|
UpdateContext(JSDebugger db, Context cx) { | UpdateContext(Main db, Context cx) { | UpdateContext(JSDebugger db, Context cx) { this.db = db; this.cx = cx; this.engine = cx.getDebuggableEngine(); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3d11fc509c101d1e08d6e3bf1871ee5cc04b89ae/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2315,
1042,
12,
6479,
24113,
1319,
16,
1772,
9494,
13,
288,
202,
2211,
18,
1966,
273,
1319,
31,
202,
2211,
18,
71,
92,
273,
9494,
31,
202,
2211,
18,
8944,
273,
9494,
18,
588,
2829,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2315,
1042,
12,
6479,
24113,
1319,
16,
1772,
9494,
13,
288,
202,
2211,
18,
1966,
273,
1319,
31,
202,
2211,
18,
71,
92,
273,
9494,
31,
202,
2211,
18,
8944,
273,
9494,
18,
588,
2829,
84... |
for (IExaltedRuleSet ruleSet : ExaltedRuleSet.values()) { | for (IExaltedRuleSet ruleSet : ExaltedRuleSet.getRuleSetsByEdition(ExaltedEdition.FirstEdition)) { | public void initPresentation(CharmCascadeModuleView view) { final ICascadeView cascadeView = view.addCascadeView(viewProperties); this.selectionListener = new CascadeCharmGroupChangeListener( cascadeView, viewProperties, this, getTemplateRegistry()); for (IExaltedRuleSet ruleSet : ExaltedRuleSet.values()) { charmMapsByRules.put(ruleSet, new CharmTreeIdentificateMap()); } List<IIdentificate> supportedCharmTypes = new ArrayList<IIdentificate>(); List<ICharmGroup> allCharmGroups = new ArrayList<ICharmGroup>(); for (CharacterType type : CharacterType.values()) { ICharacterTemplate defaultTemplate = getTemplateRegistry().getDefaultTemplate(type, ExaltedEdition.FirstEdition); if (defaultTemplate.getMagicTemplate().getCharmTemplate().knowsCharms()) { for (IExaltedRuleSet ruleSet : ExaltedRuleSet.values()) { CharmTree charmTree = new CharmTree(defaultTemplate.getMagicTemplate().getCharmTemplate(), ruleSet); getCharmTreeMap(ruleSet).put(type, charmTree); allCharmGroups.addAll(Arrays.asList(charmTree.getAllCharmGroups())); } supportedCharmTypes.add(type); } } ICharacterTemplate siderealTemplate = getTemplateRegistry().getDefaultTemplate( CharacterType.SIDEREAL, ExaltedEdition.FirstEdition); for (IExaltedRuleSet ruleSet : ExaltedRuleSet.values()) { ICharmTree martialArtsTree = new MartialArtsCharmTree( siderealTemplate.getMagicTemplate().getCharmTemplate(), ruleSet); getCharmTreeMap(ruleSet).put(MARTIAL_ARTS, martialArtsTree); allCharmGroups.addAll(Arrays.asList(martialArtsTree.getAllCharmGroups())); } supportedCharmTypes.add(MARTIAL_ARTS); createCharmTypeSelector( supportedCharmTypes.toArray(new IIdentificate[supportedCharmTypes.size()]), cascadeView, "CharmTreeView.GUI.CharmType"); //$NON-NLS-1$ createCharmGroupSelector( cascadeView, selectionListener, allCharmGroups.toArray(new ICharmGroup[allCharmGroups.size()])); initRules(cascadeView); initCharmTypeSelectionListening(cascadeView); cascadeView.addDocumentLoadedListener(new IDocumentLoadedListener() { public void documentLoaded() { selectionListener.updateColors(); } }); } | 50281 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50281/3ae014ebd46f5dc96b6db56d9fd73db113ae2202/CascadePresenter.java/clean/Charm_Cascades/src/net/sf/anathema/cascades/presenter/CascadePresenter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1208,
6351,
367,
12,
22980,
39,
10963,
3120,
1767,
1476,
13,
288,
565,
727,
26899,
10963,
1767,
17599,
1767,
273,
1476,
18,
1289,
39,
10963,
1767,
12,
1945,
2297,
1769,
565,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
6351,
367,
12,
22980,
39,
10963,
3120,
1767,
1476,
13,
288,
565,
727,
26899,
10963,
1767,
17599,
1767,
273,
1476,
18,
1289,
39,
10963,
1767,
12,
1945,
2297,
1769,
565,
33... |
Numeric sum = numeric.add(l.asNumeric()); | NumericProperty sum = numeric.add(l.asNumeric()); | public Numeric asNumeric() { Numeric numeric = null; for (Enumeration e = lengths.elements(); e.hasMoreElements();) { Length l = (Length) e.nextElement(); if (numeric == null) { numeric = l.asNumeric(); } else { try { Numeric sum = numeric.add(l.asNumeric()); numeric = sum; } catch (PropertyException pe) { System.err.println( "Can't convert MixedLength to Numeric: " + pe); } } } return numeric; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/d9a8ac86719e48e941fde9f58e7e579fe67495ce/MixedLength.java/buggy/src/java/org/apache/fop/datatypes/MixedLength.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16980,
487,
9902,
1435,
288,
3639,
16980,
6389,
273,
446,
31,
3639,
364,
261,
21847,
425,
273,
10917,
18,
6274,
5621,
425,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
11311,
328,
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,
16980,
487,
9902,
1435,
288,
3639,
16980,
6389,
273,
446,
31,
3639,
364,
261,
21847,
425,
273,
10917,
18,
6274,
5621,
425,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
11311,
328,
273... |
final int maxVars = theData.itsVariableTable.size(); | final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); 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 = theData.itsVariableTable.getParameterCount(); 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 (Exception 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, OTHER = 2; 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 { errObj = ex; exType = OTHER; } if (cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (tryStackTop > 0) { --tryStackTop; scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; if (exType == SCRIPT_THROW || exType == ECMA) { 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; else throw (RuntimeException)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) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. 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; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/bd4398308e7a90b8c0479568416af0bb30da587c/Interpreter.java/buggy/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,
22780,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22780,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
75... |
ArrayList breaks = new ArrayList(); | List breaks = new ArrayList(); | protected BreakPoss getHeight(Body lm, LayoutContext context) { int ipd = context.getRefIPD(); BreakPoss bp; MinOptMax stackSize = new MinOptMax(); LayoutContext childLC = new LayoutContext(0); childLC.setStackLimit(context.getStackLimit()); childLC.setRefIPD(ipd); lm.setColumns(columns); ArrayList breaks = new ArrayList(); while (!lm.isFinished()) { if ((bp = lm.getNextBreakPoss(childLC)) != null) { stackSize.add(bp.getStackingSize()); breaks.add(bp); childLC.setStackLimit(MinOptMax.subtract( context.getStackLimit(), stackSize)); } } BreakPoss breakPoss = new BreakPoss( new SectionPosition(this, breaks.size() - 1, breaks)); breakPoss.setStackingSize(stackSize); return breakPoss; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/a62f977d812bb273863a574255920ca141eec969/TableLayoutManager.java/clean/src/org/apache/fop/layoutmgr/table/TableLayoutManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
17030,
1616,
87,
9263,
12,
2250,
14966,
16,
9995,
1042,
819,
13,
288,
3639,
509,
2359,
72,
273,
819,
18,
588,
1957,
2579,
40,
5621,
3639,
17030,
1616,
87,
9107,
31,
3639,
5444,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17030,
1616,
87,
9263,
12,
2250,
14966,
16,
9995,
1042,
819,
13,
288,
3639,
509,
2359,
72,
273,
819,
18,
588,
1957,
2579,
40,
5621,
3639,
17030,
1616,
87,
9107,
31,
3639,
5444,
61... |
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString (receive_sbuf, 4096, getEncoding())); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString (receive_sbuf, 4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(receive_sbuf, 4096, getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Originally we issued a SHOW DATESTYLE statement to find the databases default // datestyle. However, this caused some problems with timestamps, so in 6.5, we // went the way of ODBC, and set the connection to ISO. // // This may cause some clients to break when they assume anything other than ISO, // but then - they should be using the proper methods ;-) // // We also ask the DB for certain properties (i.e. DatabaseEncoding at this time) // firstWarning = null; java.sql.ResultSet initrset = ExecSQL("set datestyle to 'ISO'; select getdatabaseencoding()"); String dbEncoding = null; //retrieve DB properties if(initrset.next()) { //handle DatabaseEncoding dbEncoding = initrset.getString(1); //convert from the PostgreSQL name to the Java name if (dbEncoding.equals("SQL_ASCII")) { dbEncoding = "ASCII"; } else if (dbEncoding.equals("UNICODE")) { dbEncoding = "UTF8"; } else if (dbEncoding.equals("LATIN1")) { dbEncoding = "ISO8859_1"; } else if (dbEncoding.equals("LATIN2")) { dbEncoding = "ISO8859_2"; } else if (dbEncoding.equals("LATIN3")) { dbEncoding = "ISO8859_3"; } else if (dbEncoding.equals("LATIN4")) { dbEncoding = "ISO8859_4"; } else if (dbEncoding.equals("LATIN5")) { dbEncoding = "ISO8859_5"; } else if (dbEncoding.equals("LATIN6")) { dbEncoding = "ISO8859_6"; } else if (dbEncoding.equals("LATIN7")) { dbEncoding = "ISO8859_7"; } else if (dbEncoding.equals("LATIN8")) { dbEncoding = "ISO8859_8"; } else if (dbEncoding.equals("LATIN9")) { dbEncoding = "ISO8859_9"; } else if (dbEncoding.equals("EUC_JP")) { dbEncoding = "EUC_JP"; } else if (dbEncoding.equals("EUC_CN")) { dbEncoding = "EUC_CN"; } else if (dbEncoding.equals("EUC_KR")) { dbEncoding = "EUC_KR"; } else if (dbEncoding.equals("EUC_TW")) { dbEncoding = "EUC_TW"; } else if (dbEncoding.equals("KOI8")) { dbEncoding = "KOI8_R"; } else if (dbEncoding.equals("WIN")) { dbEncoding = "Cp1252"; } else { dbEncoding = null; } } //Set the encoding for this connection //Since the encoding could be specified or obtained from the DB we use the //following order: // 1. passed as a property // 2. value from DB if supported by current JVM // 3. default for JVM (leave encoding null) String passedEncoding = info.getProperty("charSet"); // could be null if (passedEncoding != null) { encoding = passedEncoding; } else { if (dbEncoding != null) { //test DB encoding try { "TEST".getBytes(dbEncoding); //no error the encoding is supported by the current JVM encoding = dbEncoding; } catch (UnsupportedEncodingException uee) { //dbEncoding is not supported by the current JVM encoding = null; } } else { encoding = null; } } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; } | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/d832cd2773997d717fa8a1773bc600ff10ce33eb/Connection.java/clean/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
22... | ||
updateTitle(); | titleHandler.buildTitle(null, (ArgoDiagram) target); | public void targetSet(TargetEvent e) { Object target = e.getNewTarget(); if (target instanceof ArgoDiagram) { updateTitle(); } determineRemoveEnabled(); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/38c940397a741f46590371c7b449295d1a7a58ff/ProjectBrowser.java/clean/src_new/org/argouml/ui/ProjectBrowser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1018,
694,
12,
2326,
1133,
425,
13,
288,
3639,
1033,
1018,
273,
425,
18,
588,
1908,
2326,
5621,
3639,
309,
261,
3299,
1276,
1201,
3240,
14058,
1940,
13,
288,
5411,
2077,
1503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1018,
694,
12,
2326,
1133,
425,
13,
288,
3639,
1033,
1018,
273,
425,
18,
588,
1908,
2326,
5621,
3639,
309,
261,
3299,
1276,
1201,
3240,
14058,
1940,
13,
288,
5411,
2077,
1503,
... |
public void handleStale(IObservable source) { processStalenessChange(source, true); | public void handleStale(StaleEvent event) { processStalenessChange((IObservable) event.getSource(), true); | public void handleStale(IObservable source) { processStalenessChange(source, true); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/StalenessTracker.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/observable/StalenessTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
19155,
12,
4294,
3745,
1084,
13,
288,
1082,
202,
2567,
510,
287,
15681,
3043,
12,
3168,
16,
638,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
19155,
12,
4294,
3745,
1084,
13,
288,
1082,
202,
2567,
510,
287,
15681,
3043,
12,
3168,
16,
638,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
task = connector.createTaskFromExistingKey(repository, Integer.MAX_VALUE + "", null); assertNull(task); | try { task = connector.createTaskFromExistingKey(repository, Integer.MAX_VALUE + "", null); fail("Expected CoreException"); } catch (CoreException e) { } | protected void createTaskFromExistingKey() throws CoreException { String id = data.tickets.get(0).getId() + ""; ITask task = connector.createTaskFromExistingKey(repository, id, null); assertNotNull(task); assertEquals(TracTask.class, task.getClass()); assertTrue(task.getDescription().contains("summary1")); assertEquals(repository.getUrl() + ITracClient.TICKET_URL + id, task.getUrl()); task = connector.createTaskFromExistingKey(repository, "does not exist", null); assertNull(task); task = connector.createTaskFromExistingKey(repository, Integer.MAX_VALUE + "", null); assertNull(task); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/c3c3854f4cb13f9dffbefe18ff70b6163534eea2/TracRepositoryConnectorTest.java/buggy/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
2174,
1265,
9895,
653,
1435,
1216,
30015,
288,
202,
202,
780,
612,
273,
501,
18,
6470,
2413,
18,
588,
12,
20,
2934,
26321,
1435,
397,
1408,
31,
202,
202,
1285,
835,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2174,
1265,
9895,
653,
1435,
1216,
30015,
288,
202,
202,
780,
612,
273,
501,
18,
6470,
2413,
18,
588,
12,
20,
2934,
26321,
1435,
397,
1408,
31,
202,
202,
1285,
835,... |
Object displayOptions = null; try { r.setVar("ome", root); | ImageNode image = (ImageNode) getChild(root, "Image", 0); CustomAttributesNode ca = (CustomAttributesNode) getChild(image, "CustomAttributes", 0); DisplayOptionsNode displayOptions = (DisplayOptionsNode) getChild(ca, "DisplayOptions", ndx); | public void setDefaultDisplaySettings(Integer i) { int ndx = i == null ? 0 : i.intValue(); /* CTR TODO FIX THIS if (i == null) i = new Integer(0); Float sizeCAsFloat = getPixelSizeC(i); if (sizeCAsFloat == null) { //log.warn("Out of order access or missing metadata 'sizeC'."); return; } int sizeC = sizeCAsFloat.intValue(); // Sanity check if (sizeC < 1) { //log.warn("Ignoring request for default display options: sizeC < 1."); return; } Object displayOptions = null; try { r.setVar("ome", root); Object image = getChild(root, "Image", i); r.setVar("image", image); r.exec("import org.openmicroscopy.xml.st.DisplayOptionsNode"); displayOptions = getChild(image, "DisplayOptions", i); r.setVar("displayOptions", displayOptions); // The strategy here is to use the already populated (hopefully :)) // global minimum and global maximum for the black and white levels. Object[] displayChannels = createRGBDisplayChannels(sizeC, displayOptions); Object greyscaleChannel = createGreyscaleDisplayChannel(displayOptions, new Integer(sizeC + 1)); // Populate the RGB channels if (displayChannels.length > 0) { // Red only r.setVar("channel", displayChannels[0]); r.exec("displayOptions.setRedChannel(channel)"); r.exec("displayOptions.setRedChannelOn(Boolean.TRUE)"); } if (displayChannels.length > 1) { // Red and green r.setVar("channel", displayChannels[1]); r.exec("displayOptions.setGreenChannel(channel)"); r.exec("displayOptions.setGreenChannelOn(Boolean.TRUE)"); } if (displayChannels.length > 2) { // Red, green and blue r.setVar("channel", displayChannels[2]); r.exec("displayOptions.setBlueChannel(channel)"); r.exec("displayOptions.setBlueChannelOn(Boolean.TRUE)"); } // Populate the greyscale channel r.setVar("channel", greyscaleChannel); r.exec("displayOptions.setGreyChannel(channel)"); r.exec("displayOptions.setGreyChannelOn(Boolean.TRUE)"); } catch (ReflectException e) { // We want potential errors in the reflected universe to be exposed to a // developer. //log.warn(e); } */ } | 55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/26045e26581487ca0ee88577433c810b05547aa6/OMEXMLMetadataStore.java/buggy/loci/formats/OMEXMLMetadataStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
9277,
4236,
2628,
12,
4522,
277,
13,
288,
565,
509,
5346,
92,
273,
277,
422,
446,
692,
374,
294,
277,
18,
474,
620,
5621,
565,
1748,
31568,
2660,
8563,
20676,
565,
309,
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,
282,
1071,
918,
9277,
4236,
2628,
12,
4522,
277,
13,
288,
565,
509,
5346,
92,
273,
277,
422,
446,
692,
374,
294,
277,
18,
474,
620,
5621,
565,
1748,
31568,
2660,
8563,
20676,
565,
309,
261,
... |
if (fGrammar != null) { if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: pushing context - element: "+fStringPool.toString(element.rawname)); } fMatcherStack.pushContext(); int eindex = fGrammar.getElementDeclIndex(element, -1); if (eindex != -1) { fGrammar.getElementDecl(eindex, fTempElementDecl); fValueStoreCache.initValueStoresFor(fTempElementDecl); int ucount = fTempElementDecl.unique.size(); for (int i = 0; i < ucount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.unique.elementAt(i)); } int kcount = fTempElementDecl.key.size(); for (int i = 0; i < kcount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.key.elementAt(i)); } int krcount = fTempElementDecl.keyRef.size(); for (int i = 0; i < krcount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.keyRef.elementAt(i)); } } int count = fMatcherStack.getMatcherCount(); for (int i = 0; i < count; i++) { XPathMatcher matcher = fMatcherStack.getMatcherAt(i); if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: "+matcher.toString()+"#startElement("+fStringPool.toString(element.rawname)+")"); } matcher.startElement(element, fAttrList, fAttrListHandle); } } | public void callStartElement(QName element) throws Exception { if ( DEBUG_SCHEMA_VALIDATION ) System.out.println("\n=======StartElement : " + fStringPool.toString(element.localpart)); // // Check after all specified attrs are scanned // (1) report error for REQUIRED attrs that are missing (V_TAGc) // (2) report error for PROHIBITED attrs that are present (V_TAGc) // (3) add default attrs (FIXED and NOT_FIXED) // if (!fSeenRootElement) { fSeenRootElement = true; rootElementSpecified(element); fStringPool.resetShuffleCount(); } if (fGrammar != null && fGrammarIsDTDGrammar) { fAttrListHandle = addDTDDefaultAttributes(element, fAttrList, fAttrListHandle, fValidating, fStandaloneReader != -1); } fCheckedForSchema = true; if (fNamespacesEnabled) { bindNamespacesToElementAndAttributes(element, fAttrList); } validateElementAndAttributes(element, fAttrList); if (fAttrListHandle != -1) { fAttrList.endAttrList(); } fDocumentHandler.startElement(element, fAttrList, fAttrListHandle); fAttrListHandle = -1; //before we increment the element depth, add this element's QName to its enclosing element 's children list fElementDepth++; //if (fElementDepth >= 0) { // REVISIT: Why are doing anything if the grammar is null? -Ac if (fValidating) { // push current length onto stack if (fElementChildrenOffsetStack.length <= fElementDepth) { int newarray[] = new int[fElementChildrenOffsetStack.length * 2]; System.arraycopy(fElementChildrenOffsetStack, 0, newarray, 0, fElementChildrenOffsetStack.length); fElementChildrenOffsetStack = newarray; } fElementChildrenOffsetStack[fElementDepth] = fElementChildrenLength; // add this element to children if (fElementChildren.length <= fElementChildrenLength) { QName[] newarray = new QName[fElementChildrenLength * 2]; System.arraycopy(fElementChildren, 0, newarray, 0, fElementChildren.length); fElementChildren = newarray; } QName qname = fElementChildren[fElementChildrenLength]; if (qname == null) { for (int i = fElementChildrenLength; i < fElementChildren.length; i++) { fElementChildren[i] = new QName(); } qname = fElementChildren[fElementChildrenLength]; } qname.setValues(element); fElementChildrenLength++; if (DEBUG_ELEMENT_CHILDREN) { printChildren(); printStack(); } // activate identity constraints if (fGrammar != null) { if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: pushing context - element: "+fStringPool.toString(element.rawname)); } fMatcherStack.pushContext(); int eindex = fGrammar.getElementDeclIndex(element, -1); if (eindex != -1) { fGrammar.getElementDecl(eindex, fTempElementDecl); fValueStoreCache.initValueStoresFor(fTempElementDecl); int ucount = fTempElementDecl.unique.size(); for (int i = 0; i < ucount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.unique.elementAt(i)); } int kcount = fTempElementDecl.key.size(); for (int i = 0; i < kcount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.key.elementAt(i)); } int krcount = fTempElementDecl.keyRef.size(); for (int i = 0; i < krcount; i++) { activateSelectorFor((IdentityConstraint)fTempElementDecl.keyRef.elementAt(i)); } } // call all active identity constraints int count = fMatcherStack.getMatcherCount(); for (int i = 0; i < count; i++) { XPathMatcher matcher = fMatcherStack.getMatcherAt(i); if (DEBUG_IDENTITY_CONSTRAINTS) { System.out.println("<IC>: "+matcher.toString()+"#startElement("+fStringPool.toString(element.rawname)+")"); } matcher.startElement(element, fAttrList, fAttrListHandle); } } } ensureStackCapacity(fElementDepth); fCurrentElement.setValues(element); fCurrentElementEntity = fEntityHandler.getReaderId(); fElementQNamePartsStack[fElementDepth].setValues(fCurrentElement); fElementEntityStack[fElementDepth] = fCurrentElementEntity; fElementIndexStack[fElementDepth] = fCurrentElementIndex; fContentSpecTypeStack[fElementDepth] = fCurrentContentSpecType; if (fNeedValidationOff) { fValidating = false; fNeedValidationOff = false; } if (fValidating && fGrammarIsSchemaGrammar) { pushContentLeafStack(); } fValidationFlagStack[fElementDepth] = fValidating ? 0 : -1; fScopeStack[fElementDepth] = fCurrentScope; fGrammarNameSpaceIndexStack[fElementDepth] = fGrammarNameSpaceIndex; fAttrList.releaseAttrList(fAttrListHandle); fAttrListHandle = -1; } // callStartElement(QName) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/453abccd07a7ab9cac60ebd8f3b6fcea78ba0cf9/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
745,
1685,
1046,
12,
13688,
930,
13,
1216,
1185,
288,
1377,
309,
261,
6369,
67,
14233,
67,
5063,
2689,
262,
540,
2332,
18,
659,
18,
8222,
31458,
82,
894,
12275,
1685,
1046,
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,
565,
1071,
918,
745,
1685,
1046,
12,
13688,
930,
13,
1216,
1185,
288,
1377,
309,
261,
6369,
67,
14233,
67,
5063,
2689,
262,
540,
2332,
18,
659,
18,
8222,
31458,
82,
894,
12275,
1685,
1046,
2... | |
KoLmafia.getSessionStream().println( "[" + KoLCharacter.getTotalTurnsUsed() + "] " + getAdventureName() ); | KoLmafia.getSessionStream().println( "[" + (KoLCharacter.getTotalTurnsUsed() + 1) + "] " + getAdventureName() ); | public void recordToSession() { KoLmafia.getSessionStream().println(); KoLmafia.getSessionStream().println( "[" + KoLCharacter.getTotalTurnsUsed() + "] " + getAdventureName() ); client.registerAdventure( this ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/622ab33083af86d6680a52188438327e50f0cfd3/KoLAdventure.java/clean/src/net/sourceforge/kolmafia/KoLAdventure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1409,
774,
2157,
1435,
202,
95,
202,
202,
47,
83,
48,
81,
1727,
1155,
18,
588,
2157,
1228,
7675,
8222,
5621,
202,
202,
47,
83,
48,
81,
1727,
1155,
18,
588,
2157,
1228,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1409,
774,
2157,
1435,
202,
95,
202,
202,
47,
83,
48,
81,
1727,
1155,
18,
588,
2157,
1228,
7675,
8222,
5621,
202,
202,
47,
83,
48,
81,
1727,
1155,
18,
588,
2157,
1228,
... |
public void setSelections(org.eclipse.birt.report.soapengine.api.Vector selections) { | public void setSelections(org.eclipse.birt.report.soapengine.api.SelectItemChoice[] selections) { | public void setSelections(org.eclipse.birt.report.soapengine.api.Vector selections) { this.selections = selections; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d59e6e07e855381f706a731982c94c075d3249a0/SelectionList.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/soapengine/api/SelectionList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
29913,
12,
3341,
18,
20416,
18,
70,
2714,
18,
6006,
18,
19215,
8944,
18,
2425,
18,
3391,
1180,
10538,
8526,
21738,
13,
288,
3639,
333,
18,
10705,
87,
273,
21738,
31,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29913,
12,
3341,
18,
20416,
18,
70,
2714,
18,
6006,
18,
19215,
8944,
18,
2425,
18,
3391,
1180,
10538,
8526,
21738,
13,
288,
3639,
333,
18,
10705,
87,
273,
21738,
31,
565... |
addStation(s); } | addStation(s); } | public void run() { addStation(s); } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/6f6ff640e68e51000e8536aaabf379b661b82471/ChannelChooser.java/buggy/src/edu/sc/seis/fissuresUtil/chooser/ChannelChooser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
565,
1071,
918,
1086,
1435,
288,
1082,
202,
1289,
16672,
12,
87,
1769,
1082,
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,
... | [
1,
1,
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,
1875,
565,
1071,
918,
1086,
1435,
288,
1082,
202,
1289,
16672,
12,
87,
1769,
1082,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
asm.emitMOV_RegDisp_Imm (SP, STACKFRAME_METHOD_ID_OFFSET, compiledMethodId); | asm.emitMOV_RegDisp_Imm (SP, Offset.fromIntSignExtend(STACKFRAME_METHOD_ID_OFFSET), compiledMethodId); | static void prepareStackHeader(VM_Assembler asm, VM_Method method, int compiledMethodId) { // set 2nd word of header = return address already pushed by CALL asm.emitPUSH_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // start new frame: set FP to point to the new frame VM_ProcessorLocalState.emitMoveRegToField(asm, VM_Entrypoints.framePointerField.getOffsetAsInt(), SP); // set first word of header: method ID asm.emitMOV_RegDisp_Imm (SP, STACKFRAME_METHOD_ID_OFFSET, compiledMethodId); // save nonvolatile registrs: EDI, EBX, EBP asm.emitMOV_RegDisp_Reg (SP, EDI_SAVE_OFFSET, JTOC); asm.emitMOV_RegDisp_Reg (SP, EBX_SAVE_OFFSET, EBX); asm.emitMOV_RegDisp_Reg (SP, EBP_SAVE_OFFSET, EBP); asm.emitMOV_Reg_Reg (EBP, SP); // Establish EBP as the framepointer for use in the rest of the glue frame // restore JTOC with the value saved in VM_Processor.jtoc for use in prolog VM_ProcessorLocalState.emitMoveFieldToReg(asm, JTOC, VM_Entrypoints.jtocField.getOffsetAsInt()); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/df5323a1679a545ad5b2e78b0bf88ba178e71da8/VM_JNICompiler.java/clean/rvm/src/vm/arch/intel/jni/VM_JNICompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
2911,
2624,
1864,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
707,
16,
509,
7743,
30793,
13,
288,
565,
368,
444,
576,
4880,
2076,
434,
1446,
273,
327,
1758,
1818... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
2911,
2624,
1864,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
707,
16,
509,
7743,
30793,
13,
288,
565,
368,
444,
576,
4880,
2076,
434,
1446,
273,
327,
1758,
1818... |
HttpServletRequest request, HttpServletResponse response) { | HttpServletRequest request, HttpServletResponse response) { | public ActionForward documentRequestTypeChoosedPostBack(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { final DocumentRequestCreateBean requestCreateBean = (DocumentRequestCreateBean) RenderUtils .getViewState().getMetaObject().getObject(); RenderUtils.invalidateViewState(); setAdditionalInformationSchemaName(request, requestCreateBean); request.setAttribute("documentRequestCreateBean", requestCreateBean); return mapping.findForward("createDocumentRequests"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f68ed5b1b23fe3c2b70f74fcc58cfe804e205653/DocumentRequestsManagementDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/administrativeOffice/serviceRequests/documentRequests/DocumentRequestsManagementDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1668,
691,
559,
782,
5161,
730,
3349,
2711,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
202,
565,
9984,
590,
16,
12446,
766,
13,
288,
202,
6385,
4319,
691,
1684,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1668,
691,
559,
782,
5161,
730,
3349,
2711,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
202,
565,
9984,
590,
16,
12446,
766,
13,
288,
202,
6385,
4319,
691,
1684,
33... |
if ( artifactVersion == null ) { artifactVersion = artifact.getVersion(); } | message.append( artifact.getId() ); | private void checkForPresenceOfSnapshots( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_SNAPSHOTS_CHECKED ) ) { getLog().info( "Checking lineage for snapshots ..." ); MavenProject currentProject = project; while ( currentProject.hasParent() ) { MavenProject parentProject = currentProject.getParent(); String parentVersion = getVersionResolver().getResolvedVersion( parentProject.getGroupId(), parentProject.getArtifactId() ); if ( isSnapshot( parentVersion ) ) { throw new MojoExecutionException( "Can't release project due to non released parent." ); } currentProject = parentProject; } getLog().info( "Checking dependencies for snapshots ..." ); Set snapshotDependencies = new HashSet(); for ( Iterator i = project.getArtifacts().iterator(); i.hasNext(); ) { Artifact artifact = (Artifact) i.next(); String artifactVersion = getVersionResolver().getResolvedVersion( artifact.getGroupId(), artifact.getArtifactId() ); if ( artifactVersion == null ) { artifactVersion = artifact.getVersion(); } if ( isSnapshot( artifactVersion ) ) { snapshotDependencies.add( artifact ); } } getLog().info( "Checking plugins for snapshots ..." ); for ( Iterator i = project.getPluginArtifacts().iterator(); i.hasNext(); ) { Artifact artifact = (Artifact) i.next(); String artifactVersion = getVersionResolver().getResolvedVersion( artifact.getGroupId(), artifact.getArtifactId() ); if ( artifactVersion == null ) { artifactVersion = artifact.getVersion(); } if ( isSnapshot( artifactVersion ) ) { snapshotDependencies.add( artifact ); } } if ( !snapshotDependencies.isEmpty() ) { List snapshotsList = new ArrayList( snapshotDependencies ); Collections.sort( snapshotsList ); StringBuffer message = new StringBuffer(); for ( Iterator i = snapshotsList.iterator(); i.hasNext(); ) { Artifact artifact = (Artifact) i.next(); message.append( " " ); message.append( artifact.getId() ); message.append( "\n" ); } throw new MojoExecutionException( "Can't release project due to non released dependencies :\n" + message.toString() ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_SNAPSHOTS_CHECKED ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/22f9a34107d27782bab8e88b50b54708304b73dc/PrepareReleaseMojo.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13855,
22590,
951,
17095,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
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,
377,
3238,
918,
13855,
22590,
951,
17095,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
... |
public org.quickfix.field.BenchmarkCurveName getBenchmarkCurveName() throws FieldNotFound { org.quickfix.field.BenchmarkCurveName value = new org.quickfix.field.BenchmarkCurveName(); | public quickfix.field.BenchmarkCurveName getBenchmarkCurveName() throws FieldNotFound { quickfix.field.BenchmarkCurveName value = new quickfix.field.BenchmarkCurveName(); | public org.quickfix.field.BenchmarkCurveName getBenchmarkCurveName() throws FieldNotFound { org.quickfix.field.BenchmarkCurveName value = new org.quickfix.field.BenchmarkCurveName(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
9423,
461,
2882,
9737,
9423,
461,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
9423,
461,
460,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
9423,
461,
2882,
9737,
9423,
461,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
9423,
461,
460,
273,
394,
... |
public ExternalContributor(List cache) { | public ExternalContributor(ArrayList cache) { | public ExternalContributor(List cache) { this.cache = cache; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/37e84bac0070f808dc88f061b33daf9583dc748a/EditorActionBuilder.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
11352,
442,
19293,
12,
682,
1247,
13,
288,
1082,
202,
2211,
18,
2493,
273,
1247,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
11352,
442,
19293,
12,
682,
1247,
13,
288,
1082,
202,
2211,
18,
2493,
273,
1247,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); | AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); | public int addAttribute(QName qname, String attrType, String attrValue) { int index = fElement.getXercesAttribute(qname.uri, qname.localpart); // add defaults to the tree if (index < 0) { // the default attribute was removed by a user and needed to // be added back AttrImpl attr = (AttrImpl) ((CoreDocumentImpl) fElement.getOwnerDocument()).createAttributeNS( qname.uri, qname.rawname, qname.localpart); // REVISIT: the following should also update ID table index = fElement.setXercesAttributeNode(attr); attr.setNodeValue(attrValue); fAugmentations.insertElementAt(new AugmentationsImpl(), index); attr.setSpecified(false); } else { // default attribute is in the tree // we don't need to do anything since prefix was already fixed // at the namespace fixup time and value must be same value, otherwise // attribute will be treated as specified and we will never reach // this method. } return index; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/20c5f7042fa9bebb446170029ab0f631c12bbe04/DOMNormalizer.java/buggy/src/org/apache/xerces/dom/DOMNormalizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
10759,
12,
13688,
12621,
16,
514,
1604,
559,
16,
514,
21676,
13,
288,
1875,
202,
474,
770,
273,
284,
1046,
18,
588,
60,
264,
764,
1499,
12,
85,
529,
18,
1650,
16,
1262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
10759,
12,
13688,
12621,
16,
514,
1604,
559,
16,
514,
21676,
13,
288,
1875,
202,
474,
770,
273,
284,
1046,
18,
588,
60,
264,
764,
1499,
12,
85,
529,
18,
1650,
16,
1262... |
bhTrees.clear(); | ArrayList bhTrees = new ArrayList(); | boolean getVisibleBHTrees(RenderBin rBin, ArrayList bhTrees, BoundingBox frustumBBox, Locale locale, long referenceTime, boolean stateChanged, int visibilityPolicy) { int i, j; boolean unviInFB = true; // System.out.println("GeometryStructure : view's locale is " + locale); lock.readLock(); bhTrees.clear(); if (bhTreeCount == 1) { // For debugging only. if (J3dDebug.devPhase) { if (J3dDebug.doDebug(J3dDebug.geometryStructure, J3dDebug.LEVEL_2)) { System.out.println("GeometryStructure : In simple case"); System.out.println("GeometryStructure : view's locale is " + locale); System.out.println("GeometryStructure : bhTreeArr[0].locale is " + bhTreeArr[0].locale); } } // One locale case - Lets make the simple case fast. synchronized(visLock) { unviInFB = bhTreeArr[0].getVisibleBHTrees(rBin, bhTrees, frustumBBox, referenceTime, stateChanged, visibilityPolicy, true); } } else { // Multiple locale case. // For debugging only. if (J3dDebug.devPhase) J3dDebug.doDebug(J3dDebug.geometryStructure, J3dDebug.LEVEL_2, "GeometryStructure : bhTreeCount is " + universe.geometryStructure.bhTreeCount + " view's locale is " + locale + "\n"); BoundingBox localeFrustumBBox = new BoundingBox(); synchronized(visLock) { for (j=0; j<bhTreeCount; j++) { if (J3dDebug.devPhase) { J3dDebug.doDebug(J3dDebug.geometryStructure, J3dDebug.LEVEL_2, "GeometryStructure : bhTreeArr[" + j + "] is " + bhTreeArr[j].locale + "\n"); } if (!locale.hiRes.equals(bhTreeArr[j].locale.hiRes)) { bhTreeArr[j].locale.hiRes.difference(locale.hiRes, localeTrans); if (J3dDebug.devPhase) { J3dDebug.doDebug(J3dDebug.geometryStructure, J3dDebug.LEVEL_2, "localeTrans is " + localeTrans + "GeometryStructure : localeFrustumBBox " + localeFrustumBBox + "\n" ); } // Need to translate view frustumBBox here. localeFrustumBBox.lower.x = frustumBBox.lower.x + localeTrans.x; localeFrustumBBox.lower.y = frustumBBox.lower.y + localeTrans.y; localeFrustumBBox.lower.z = frustumBBox.lower.z + localeTrans.z; localeFrustumBBox.upper.x = frustumBBox.upper.x + localeTrans.x; localeFrustumBBox.upper.y = frustumBBox.upper.y + localeTrans.y; localeFrustumBBox.upper.z = frustumBBox.upper.z + localeTrans.z; } else { frustumBBox.copy(localeFrustumBBox); } if(!(bhTreeArr[j].getVisibleBHTrees(rBin, bhTrees, localeFrustumBBox, referenceTime, stateChanged, visibilityPolicy, false))) { unviInFB = false; } } } } lock.readUnlock(); return unviInFB; } | 8698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8698/bf85f8ef8ccf6fe4ce43fb5c74eaad580997257c/GeometryStructure.java/buggy/src/classes/share/javax/media/j3d/GeometryStructure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
31564,
38,
5062,
5312,
12,
3420,
9913,
436,
9913,
16,
2407,
19822,
26590,
16,
9506,
1377,
25245,
3812,
31801,
30944,
16,
9506,
1377,
6458,
2573,
16,
1525,
2114,
950,
16,
9506,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
31564,
38,
5062,
5312,
12,
3420,
9913,
436,
9913,
16,
2407,
19822,
26590,
16,
9506,
1377,
25245,
3812,
31801,
30944,
16,
9506,
1377,
6458,
2573,
16,
1525,
2114,
950,
16,
9506,
1377,
... |
TreePath tp = getSelectionPath(); OperatorNode parent = (OperatorNode)tp.getLastPathComponent(); try { parent = parent.addSuboperator(this,WorkingMemory,s); | TreePath tp = getSelectionPath(); OperatorNode parent = (OperatorNode)tp.getLastPathComponent(); try { parent = parent.addSuboperator(this,WorkingMemory,s); | public void addSuboperator() { String s; NameDialog theDialog = new NameDialog(MainFrame.getMainFrame()); theDialog.setTitle("Enter Operator Name"); theDialog.setVisible(true); if (theDialog.wasApproved()) { s = theDialog.getText(); TreePath tp = getSelectionPath(); OperatorNode parent = (OperatorNode)tp.getLastPathComponent(); try { parent = parent.addSuboperator(this,WorkingMemory,s); if (parent != null) { tp = new TreePath(parent.getPath()); if (parent.getChildCount() != 0) { expandPath(tp); } } } catch (IOException ioe) { JOptionPane.showMessageDialog(MainFrame.getMainFrame(), "Could not create suboperator, name may be invalid", "I/O Error", JOptionPane.ERROR_MESSAGE); } } } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/a346ed7f83eb1c70b9abfdfce06d4248fd83a1ab/OperatorWindow.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/operatorwindow/OperatorWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
25716,
9497,
1435,
288,
202,
202,
780,
272,
31,
202,
202,
461,
6353,
326,
6353,
273,
394,
1770,
6353,
12,
6376,
3219,
18,
588,
6376,
3219,
10663,
202,
202,
5787,
6353,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
25716,
9497,
1435,
288,
202,
202,
780,
272,
31,
202,
202,
461,
6353,
326,
6353,
273,
394,
1770,
6353,
12,
6376,
3219,
18,
588,
6376,
3219,
10663,
202,
202,
5787,
6353,
18... |
if( printMessages ) System.out.println("In resumeThread()"); | if (printMessages) { System.out.println("In resumeThread()"); } | protected synchronized void _resumeHelper(boolean shouldCopyBack) throws DebugException { try { ThreadReference thread = _suspendedThreads.pop(); if( printMessages ) System.out.println("In resumeThread()"); _resumeThread(thread, shouldCopyBack); } catch (NoSuchElementException e) { throw new DebugException("No thread to resume."); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/a42a1005ad3faca50638e0131df3bc7c45ba82de/JPDADebugger.java/buggy/drjava/src/edu/rice/cs/drjava/model/debug/JPDADebugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
918,
389,
25158,
2276,
12,
6494,
1410,
2951,
2711,
13,
565,
1216,
4015,
503,
225,
288,
565,
775,
288,
1377,
4884,
2404,
2650,
273,
389,
87,
22942,
13233,
18,
5120,
5621,
5411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
918,
389,
25158,
2276,
12,
6494,
1410,
2951,
2711,
13,
565,
1216,
4015,
503,
225,
288,
565,
775,
288,
1377,
4884,
2404,
2650,
273,
389,
87,
22942,
13233,
18,
5120,
5621,
5411,... |
jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_112(); jj_save(111, xla); return retval; } | jj_la = xla; jj_lastpos = jj_scanpos = token; try { return !jj_3_112(); } catch(LookaheadSuccess ls) { return true; } finally { jj_save(111, xla); } } | static final private boolean jj_2_112(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; boolean retval = !jj_3_112(); jj_save(111, xla); return retval; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
3238,
1250,
10684,
67,
22,
67,
17666,
12,
474,
619,
11821,
13,
288,
3639,
10684,
67,
11821,
273,
619,
11821,
31,
3639,
10684,
67,
2722,
917,
273,
10684,
67,
9871,
917,
273,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
3238,
1250,
10684,
67,
22,
67,
17666,
12,
474,
619,
11821,
13,
288,
3639,
10684,
67,
11821,
273,
619,
11821,
31,
3639,
10684,
67,
2722,
917,
273,
10684,
67,
9871,
917,
273,
11... |
public void onStart() { markTime = System.currentTimeMillis(); startTime = System.currentTimeMillis(); propertyMap = ResourceUtil.getResourceBundleAsHashMap(iterationPropertyFiles[0]); // send a message to the random number server so that the random number seed will be set on all nodes PortManager pManager = PortManager.getInstance(); Port receivePort = pManager.getReceivePort(); Message waitMsg = null; Message propertyMapMsg = createMessage(); propertyMapMsg.setId(MessageID.START_INFO); propertyMapMsg.setValue(MessageID.PROPERTY_MAP_KEY, propertyMap); // set the global random number generator seed read from the properties file on the nodes // that runs the worker tasks if (LOGGING) logger.info(this.name + " starting the random number server task."); sendTo("RnServer", propertyMapMsg); // wait here until a message from the RnServer says it's heard from all RnWorkers. if (LOGGING) logger.info(this.name + " waiting to hear from RnServer that random number seeds have been set."); waitMsg = receivePort.receive(); while (!(waitMsg.getSender().equals("RnServer") && waitMsg.getId().equals(MessageID.EXIT))) { waitMsg = receivePort.receive(); } // send an exit message to the RnServer to tell it to free memory in its workers and itself. Message exitMsg = createMessage(); exitMsg.setId(MessageID.EXIT); sendTo("RnServer", exitMsg); // set the global random number generator seed read from the properties file on the node // that runs the server tasks SeededRandom.setSeed(Integer.parseInt((String) propertyMap.get("RandomSeed"))); if (LOGGING) { logger.info("Memory at end of RnServer"); showMemory(); } // set the global number of iterations read from the properties file numberOfIterations = (Integer.parseInt((String) propertyMap.get( "GlobalIterations"))); if(((String)propertyMap.get("FTA_Restart_run")).equalsIgnoreCase("true")){ ZDMTDM zdmtdm=readDiskObjectZDMTDM(propertyMap); //instantiate ZonalDataManager and TODDataManager object so that their static members are available to other classes (eg. DTMOutput) zdm=new ZonalDataManager(propertyMap); tdm=new TODDataManager(propertyMap); zdm=zdmtdm.getZDM(); showMemory(); tdm=zdmtdm.getTDM(); showMemory(); }else{ // build the zonal data table zdm = new ZonalDataManager(propertyMap); showMemory(); // build the TOD Ddata table tdm = new TODDataManager(propertyMap); showMemory(); } for (int i = 0; i < numberOfIterations; i++) { runModelIteration(i); } // Report report=new Report(); // report.generateReports(); if (LOGGING) { logger.info("Memory after running reports - end of program"); showMemory(); } if (LOGGING) { logger.info("end of MORPC Demand Models"); logger.info("full MORPC model run finished in " + ((System.currentTimeMillis() - startTime) / 60000.0) + " minutes"); } System.exit(0); } | 1120 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1120/010a6c5ec8eea32210f7634f9b310766c7288681/MorpcModelServer.java/clean/src/java/com/pb/morpc/daf/MorpcModelServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
265,
1685,
1435,
95,
3355,
950,
33,
3163,
18,
2972,
28512,
5621,
1937,
950,
33,
3163,
18,
2972,
28512,
5621,
4468,
863,
33,
1420,
1304,
18,
588,
18731,
1463,
8658,
12,
16108,
1396,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
265,
1685,
1435,
95,
3355,
950,
33,
3163,
18,
2972,
28512,
5621,
1937,
950,
33,
3163,
18,
2972,
28512,
5621,
4468,
863,
33,
1420,
1304,
18,
588,
18731,
1463,
8658,
12,
16108,
1396,... | ||
name = " " + token; | name = " " + token; | void dirdcl() { int type; if (tokenType == '(') { dcl(); if (tokenType != ')') { // FIXME: Do we throw an exception ? not terminate parenthese return; } } else if (tokenType == NAME) { // Useless we do not need the name of the variable name = " " + token; } else if (tokenType == PARENS) { prependChild(GDBType.FUNCTION); } else if (tokenType == BRACKETS) { int len = 0; if (token.length() > 0) { try { len = Integer.parseInt(token); } catch (NumberFormatException e) { } } prependChild(GDBType.ARRAY, len); } else { // oops bad declaration ? return; } while ((type = getToken()) == PARENS || type == BRACKETS) { if (type == EOF) { return; } if (type == PARENS) { prependChild(GDBType.FUNCTION); } else { int len = 0; if (token.length() > 0) { try { len = Integer.parseInt(token); } catch (NumberFormatException e) { } } prependChild(GDBType.ARRAY, len); } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f3a9fae6384fd8bb36474b1661bb6d0b65b38d5f/GDBTypeParser.java/buggy/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1577,
72,
830,
1435,
288,
202,
202,
474,
618,
31,
202,
202,
430,
261,
2316,
559,
422,
7321,
13,
288,
1082,
202,
72,
830,
5621,
1082,
202,
430,
261,
2316,
559,
480,
5777,
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,
6459,
1577,
72,
830,
1435,
288,
202,
202,
474,
618,
31,
202,
202,
430,
261,
2316,
559,
422,
7321,
13,
288,
1082,
202,
72,
830,
5621,
1082,
202,
430,
261,
2316,
559,
480,
5777,
13... |
protected FilterUtils.FilterTransformer getReverter() { return new FilterUtils.FilterTransformer() { public FeatureFilter transform(FeatureFilter ff) { // fixme: should we be mapping filters on feature instance or sequence // instance? return ff; } }; } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/6af69e6d2e15b3553ee1bc70f261ad615ee61682/ReparentContext.java/clean/src/org/biojava/bio/seq/projection/ReparentContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1586,
1989,
18,
1586,
8319,
588,
426,
3243,
1435,
95,
2463,
2704,
1586,
1989,
18,
1586,
8319,
1435,
95,
482,
4595,
1586,
6547,
12,
4595,
1586,
1403,
15329,
759,
904,
3501,
30,
13139,
487... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1586,
1989,
18,
1586,
8319,
588,
426,
3243,
1435,
95,
2463,
2704,
1586,
1989,
18,
1586,
8319,
1435,
95,
482,
4595,
1586,
6547,
12,
4595,
1586,
1403,
15329,
759,
904,
3501,
30,
13139,
487... | ||
int label = target.labelId; | int label = target.labelId(); | private int getTargetLabel(Node.Target target) { int label = target.labelId; if (label != -1) { return label; } label = itsLabelTableTop; if (itsLabelTable == null || label == itsLabelTable.length) { if (itsLabelTable == null) { itsLabelTable = new int[MIN_LABEL_TABLE_SIZE]; }else { int[] tmp = new int[itsLabelTable.length * 2]; System.arraycopy(itsLabelTable, 0, tmp, 0, label); itsLabelTable = tmp; } } itsLabelTableTop = label + 1; itsLabelTable[label] = -1; target.labelId = label; return label; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/bef182034b96d54a2938fe141217e83b8644cf25/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
8571,
2224,
12,
907,
18,
2326,
1018,
13,
565,
288,
3639,
509,
1433,
273,
1018,
18,
1925,
548,
5621,
3639,
309,
261,
1925,
480,
300,
21,
13,
288,
5411,
327,
1433,
31,
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,
509,
8571,
2224,
12,
907,
18,
2326,
1018,
13,
565,
288,
3639,
509,
1433,
273,
1018,
18,
1925,
548,
5621,
3639,
309,
261,
1925,
480,
300,
21,
13,
288,
5411,
327,
1433,
31,
3639,
... |
if (t != t) return js_NaN_date_str; | private static String date_format(double t, int methodId) { if (t != t) return js_NaN_date_str; StringBuffer result = new StringBuffer(60); double local = LocalTime(t); /* Tue Oct 31 09:41:40 GMT-0800 (PST) 2000 */ /* Tue Oct 31 2000 */ /* 09:41:40 GMT-0800 (PST) */ if (methodId != Id_toTimeString) { appendWeekDayName(result, WeekDay(local)); result.append(' '); appendMonthName(result, MonthFromTime(local)); result.append(' '); append0PaddedUint(result, DateFromTime(local), 2); result.append(' '); int year = YearFromTime(local); if (year < 0) { result.append('-'); year = -year; } append0PaddedUint(result, year, 4); if (methodId != Id_toDateString) result.append(' '); } if (methodId != Id_toDateString) { append0PaddedUint(result, HourFromTime(local), 2); result.append(':'); append0PaddedUint(result, MinFromTime(local), 2); result.append(':'); append0PaddedUint(result, SecFromTime(local), 2); // offset from GMT in minutes. The offset includes daylight // savings, if it applies. int minutes = (int) Math.floor((LocalTZA + DaylightSavingTA(t)) / msPerMinute); // map 510 minutes to 0830 hours int offset = (minutes / 60) * 100 + minutes % 60; if (offset > 0) { result.append(" GMT+"); } else { result.append(" GMT-"); offset = -offset; } append0PaddedUint(result, offset, 4); if (timeZoneFormatter == null) timeZoneFormatter = new java.text.SimpleDateFormat("zzz"); // Find an equivalent year before getting the timezone // comment. See DaylightSavingTA. if (t < 0.0 || t > 2145916800000.0) { int equiv = EquivalentYear(YearFromTime(local)); double day = MakeDay(equiv, MonthFromTime(t), DateFromTime(t)); t = MakeDate(day, TimeWithinDay(t)); } result.append(" ("); java.util.Date date = new Date((long) t); result.append(timeZoneFormatter.format(date)); result.append(')'); } return result.toString(); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/ef2adbe0e46291a57bc6c6eda9ce45275f62985c/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1509,
67,
2139,
12,
9056,
268,
16,
509,
707,
548,
13,
565,
288,
3639,
309,
261,
88,
480,
268,
13,
5411,
327,
3828,
67,
21172,
67,
712,
67,
701,
31,
3639,
6674,
563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1509,
67,
2139,
12,
9056,
268,
16,
509,
707,
548,
13,
565,
288,
3639,
309,
261,
88,
480,
268,
13,
5411,
327,
3828,
67,
21172,
67,
712,
67,
701,
31,
3639,
6674,
563,
... | |
return Argo.localize ("Tree", "misc.class.subclass"); } | return Argo.localize ("Tree", "misc.class.subclass"); } | public String getRuleName() { return Argo.localize ("Tree", "misc.class.subclass"); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/GoGenElementToDerived.java/buggy/src_new/org/argouml/uml/diagram/ui/GoGenElementToDerived.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
19048,
461,
1435,
288,
565,
327,
1201,
3240,
18,
3729,
554,
7566,
2471,
3113,
315,
23667,
18,
1106,
18,
10678,
8863,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
19048,
461,
1435,
288,
565,
327,
1201,
3240,
18,
3729,
554,
7566,
2471,
3113,
315,
23667,
18,
1106,
18,
10678,
8863,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.MARKER_LINE__VALUE, newValue, newValue)); | eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.MARKER_LINE__VALUE, newValue, newValue)); | public void setValue(DataElement newValue) { if (newValue != value) { NotificationChain msgs = null; if (value != null) msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.MARKER_LINE__VALUE, null, msgs); if (newValue != null) msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.MARKER_LINE__VALUE, null, msgs); msgs = basicSetValue(newValue, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.MARKER_LINE__VALUE, newValue, newValue)); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/MarkerLineImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/MarkerLineImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5524,
12,
751,
1046,
6129,
13,
565,
288,
3639,
309,
261,
2704,
620,
480,
460,
13,
3639,
288,
5411,
27050,
8733,
273,
446,
31,
5411,
309,
261,
1132,
480,
446,
13,
7734,
8733,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5524,
12,
751,
1046,
6129,
13,
565,
288,
3639,
309,
261,
2704,
620,
480,
460,
13,
3639,
288,
5411,
27050,
8733,
273,
446,
31,
5411,
309,
261,
1132,
480,
446,
13,
7734,
8733,
... |
void refresh() { if (isDisposed()) return; progressLabel.setText(getMainTitle()); int percentDone = getPercentDone(); if (isRunning()) { if (progressBar == null) createProgressBar(percentDone == IProgressMonitor.UNKNOWN ? SWT.INDETERMINATE : SWT.NONE); // Protect against bad counters if (percentDone >= 0 && percentDone <= 100) progressBar.setSelection(percentDone); } if (isCompleted()) { if (progressBar != null) { progressBar.dispose(); progressBar = null; } setLayoutsForNoProgress(); actionButton.setImage(JFaceResources .getImage(CLEAR_FINISHED_JOB_KEY)); actionButton.setDisabledImage(JFaceResources .getImage(DISABLED_CLEAR_FINISHED_JOB_KEY)); } JobInfo[] infos = getJobInfos(); int taskCount = 0; for (int i = 0; i < infos.length; i++) { JobInfo jobInfo = infos[i]; if (jobInfo.hasTaskInfo()) { String taskString = jobInfo.getTaskInfo().getTaskName(); String subTaskString = null; Object[] jobChildren = jobInfo.getChildren(); if (jobChildren.length > 0) subTaskString = ((JobTreeElement) jobChildren[0]) .getDisplayString(); if (subTaskString != null) { if (taskString == null) taskString = subTaskString; else taskString = NLS.bind( ProgressMessages.JobInfo_DoneNoProgressMessage, taskString, subTaskString); } if (taskString != null) { setLinkText(infos[i].getJob(), taskString, taskCount); taskCount++; } } else {// Check for the finished job state Job job = jobInfo.getJob(); if (job.getState() == Job.NONE) { setLinkText(job, job.getResult().getMessage(), i); taskCount++; } } } // Remove completed tasks if (taskCount < taskEntries.size()) { for (int i = taskCount; i < taskEntries.size(); i++) { ((Link) taskEntries.get(i)).dispose(); } taskEntries = taskEntries.subList(0, taskCount); } layout(true); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fe9f2041196c03e2eebef06a16b93efff630ff84/ProgressInfoItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
4460,
1435,
288,
202,
202,
430,
261,
291,
1669,
7423,
10756,
1082,
202,
2463,
31,
202,
202,
8298,
2224,
18,
542,
1528,
12,
588,
6376,
4247,
10663,
202,
202,
474,
5551,
7387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
4460,
1435,
288,
202,
202,
430,
261,
291,
1669,
7423,
10756,
1082,
202,
2463,
31,
202,
202,
8298,
2224,
18,
542,
1528,
12,
588,
6376,
4247,
10663,
202,
202,
474,
5551,
7387,
... | ||
public void startAuthentication(final String user, final char[] password, final String server) throws IOException { canceled = false; if (getSynchronous()) { if (authenticate(user,password,server)) { fireLoginSucceeded(new LoginEvent(this)); } else { fireLoginFailed(new LoginEvent(this)); } } else { Runnable runnable = new Runnable() { public void run() { try { final boolean result = authenticate(user,password,server); if (!canceled) { EventQueue.invokeLater(new Runnable() { public void run() { if (result) { fireLoginSucceeded(new LoginEvent(LoginService.this)); } else { fireLoginFailed(new LoginEvent(LoginService.this)); } } }); } } catch(final IOException failed) { SwingUtilities.invokeLater(new Runnable() { public void run() { fireLoginFailed(new LoginEvent(LoginService.this, failed)); } }); } } }; loginThread = getLoginThread(runnable) ; loginThread.start(); fireLoginStarted(new LoginEvent(this)); } | public void startAuthentication(final String user, final char[] password, final String server) throws Exception { if (getSynchronous()) { try { if (authenticate(user,password,server)) { fireLoginSucceeded(new LoginEvent(this)); } else { fireLoginFailed(new LoginEvent(this)); } } catch (Exception e) { fireLoginFailed(new LoginEvent(this, e)); } } else { loginWorker = new SwingWorker() { protected Object doInBackground() throws Exception { try { final boolean result = authenticate(user,password,server); if (isCancelled()) { EventQueue.invokeLater(new Runnable() { public void run() { fireLoginCanceled(new LoginEvent(this)); } }); return false; } EventQueue.invokeLater(new Runnable() { public void run() { if (result) { fireLoginSucceeded(new LoginEvent(LoginService.this)); } else { fireLoginFailed(new LoginEvent(LoginService.this)); } } }); return result; } catch (final Exception failed) { if (!isCancelled()) { SwingUtilities.invokeLater(new Runnable() { public void run() { fireLoginFailed(new LoginEvent(LoginService.this, failed)); } }); } else { EventQueue.invokeLater(new Runnable() { public void run() { fireLoginCanceled(new LoginEvent(this)); } }); } return false; } } }; loginWorker.execute(); fireLoginStarted(new LoginEvent(this)); } | public void startAuthentication(final String user, final char[] password, final String server) throws IOException { canceled = false; if (getSynchronous()) { if (authenticate(user,password,server)) { fireLoginSucceeded(new LoginEvent(this)); } else { fireLoginFailed(new LoginEvent(this)); } } else { Runnable runnable = new Runnable() { public void run() { try { final boolean result = authenticate(user,password,server); if (!canceled) { EventQueue.invokeLater(new Runnable() { public void run() { if (result) { fireLoginSucceeded(new LoginEvent(LoginService.this)); } else { fireLoginFailed(new LoginEvent(LoginService.this)); } } }); } } catch(final IOException failed) { SwingUtilities.invokeLater(new Runnable() { public void run() { fireLoginFailed(new LoginEvent(LoginService.this, failed)); } }); } } }; loginThread = getLoginThread(runnable) ; loginThread.start(); fireLoginStarted(new LoginEvent(this)); } } | 47551 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47551/a11311a22ef561c606a731d392718eb2305b9423/LoginService.java/buggy/src/java/org/jdesktop/swingx/auth/LoginService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
6492,
12,
6385,
514,
729,
16,
727,
1149,
8526,
2201,
16,
727,
514,
1438,
13,
1216,
1860,
288,
4202,
17271,
273,
629,
31,
4202,
309,
261,
588,
55,
7121,
10756,
288,
540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
6492,
12,
6385,
514,
729,
16,
727,
1149,
8526,
2201,
16,
727,
514,
1438,
13,
1216,
1860,
288,
4202,
17271,
273,
629,
31,
4202,
309,
261,
588,
55,
7121,
10756,
288,
540,
... |
Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.decrementBusy(event.getJob()); } JobInfo info = getJobInfo(event.getJob()); if (event.getResult() != null && event.getResult().getSeverity() == IStatus.ERROR) { errorManager.addError(event.getResult(), event.getJob()); } jobs.remove(event.getJob()); removeJobInfo(info); if (hasNoRegularJobInfos() && !isNonDisplayableJob(event.getJob(), false)) { | Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.decrementBusy(event.getJob()); } JobInfo info = getJobInfo(event.getJob()); if (event.getResult() != null && event.getResult().getSeverity() == IStatus.ERROR) { errorManager.addError(event.getResult(), event.getJob()); } jobs.remove(event.getJob()); removeJobInfo(info); if (hasNoRegularJobInfos() && !isNonDisplayableJob(event.getJob(), false)) { | private void createChangeListener() { changeListener = new JobChangeAdapter() { /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#aboutToRun(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void aboutToRun(IJobChangeEvent event) { JobInfo info = getJobInfo(event.getJob()); refreshJobInfo(info); Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.incrementBusy(event.getJob()); } } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#done(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void done(IJobChangeEvent event) { if (!PlatformUI.isWorkbenchRunning()) { return; } Iterator startListeners = busyListenersForJob(event.getJob()) .iterator(); while (startListeners.hasNext()) { IJobBusyListener next = (IJobBusyListener) startListeners .next(); next.decrementBusy(event.getJob()); } JobInfo info = getJobInfo(event.getJob()); if (event.getResult() != null && event.getResult().getSeverity() == IStatus.ERROR) { errorManager.addError(event.getResult(), event.getJob()); } jobs.remove(event.getJob()); // Only refresh if we are showing it removeJobInfo(info); // If there are no more left then refresh all on the last // displayed one. if (hasNoRegularJobInfos() && !isNonDisplayableJob(event.getJob(), false)) { refreshAll(); } } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#scheduled(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void scheduled(IJobChangeEvent event) { updateFor(event); if (event.getJob().isUser()) { boolean noDialog = shouldRunInBackground(); if (!noDialog) { final IJobChangeEvent finalEvent = event; WorkbenchJob showJob = new WorkbenchJob( ProgressMessages.ProgressManager_showInDialogName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread( IProgressMonitor monitor) { showInDialog(PlatformUI.getWorkbench() .getDisplay().getActiveShell(), finalEvent.getJob()); return Status.OK_STATUS; } }; showJob.setSystem(true); showJob.schedule(); return; } } } /** * Update the listeners for the receiver for the event. * * @param event */ private void updateFor(IJobChangeEvent event) { if (isNeverDisplayedJob(event.getJob())) { return; } if (jobs.containsKey(event.getJob())) { refreshJobInfo(getJobInfo(event.getJob())); } else { addJobInfo(new JobInfo(event.getJob())); } } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#awake(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void awake(IJobChangeEvent event) { updateFor(event); } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#sleeping(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void sleeping(IJobChangeEvent event) { updateFor(event); } }; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/82e45bfb168fa5c37a8ced4976d2cc8fef6ce0f2/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
15744,
1435,
288,
202,
202,
3427,
2223,
273,
394,
3956,
3043,
4216,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15744,
1435,
288,
202,
202,
3427,
2223,
273,
394,
3956,
3043,
4216,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,... |
if (header.localSeqID != NULL_ID) passUp(new Event(Event.MSG, msg)); | if (header.localSequenceID != NULL_ID) passUp(new Event(Event.MSG, msg)); | private void _deliverBcast() { Message msg; Header header; synchronized(upTbl) { while((msg = (Message)upTbl.remove(new Long(seqID+1))) != null) { header = (Header)msg.removeHeader(getName()); if (header.localSeqID != NULL_ID) passUp(new Event(Event.MSG, msg)); ++seqID; } } // synchronized(upTbl) } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/83f486f4daa5fcb410f15f0f5d587f3adff99f81/TOTAL.java/buggy/src/org/jgroups/protocols/TOTAL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
389,
26672,
38,
4155,
1435,
288,
202,
202,
1079,
1234,
31,
202,
202,
1864,
225,
1446,
31,
202,
202,
22043,
12,
416,
22592,
13,
288,
202,
202,
17523,
12443,
3576,
273,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
26672,
38,
4155,
1435,
288,
202,
202,
1079,
1234,
31,
202,
202,
1864,
225,
1446,
31,
202,
202,
22043,
12,
416,
22592,
13,
288,
202,
202,
17523,
12443,
3576,
273,
26... |
throws net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { | throws net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { | public byte[] getBytes(int len, boolean exclusiveBuffer) throws net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { byte result[]; // Do not keep an internal result buffer larger than 16k. // This would unnecessarily use up memory. if (exclusiveBuffer || len > 16384) { result = new byte[len]; } else { if (resBuffer.length < len) { resBuffer = new byte[len]; } result = resBuffer; } for (int i = 0; i < len;) { if (inBufferIndex >= inBufferLen) { getPhysicalPacket(); } int avail = inBufferLen - inBufferIndex; avail = avail > len - i ? len - i : avail; System.arraycopy(inBuffer, inBufferIndex, result, i, avail); i += avail; inBufferIndex += avail; } return result; } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/8552aa9a2df546b4d1977c587b04556c7b854ab4/TdsComm.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsComm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
8425,
12,
474,
562,
16,
1250,
12060,
1892,
13,
3639,
1216,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
16,
2252,
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,
377,
1071,
1160,
8526,
8425,
12,
474,
562,
16,
1250,
12060,
1892,
13,
3639,
1216,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
... |
public final int getSuggestionDelayMs( javax.faces.context.FacesContext facesContext) { return engine.getIntProperty(Properties.SUGGESTION_DELAY_MS, 0, facesContext); } | public final int getSuggestionDelayMs() { return getSuggestionDelayMs(null); } | public final int getSuggestionDelayMs( javax.faces.context.FacesContext facesContext) { return engine.getIntProperty(Properties.SUGGESTION_DELAY_MS, 0, facesContext); } | 6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/SuggestTextEntryComponent.java/buggy/org.rcfaces.core/src/org/rcfaces/core/component/SuggestTextEntryComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
1322,
21166,
6763,
6947,
12,
5411,
6863,
18,
4601,
18,
2472,
18,
17268,
1042,
22529,
13,
288,
3639,
327,
4073,
18,
588,
1702,
1396,
12,
2297,
18,
6639,
43,
27332,
1146,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
509,
1322,
21166,
6763,
6947,
12,
5411,
6863,
18,
4601,
18,
2472,
18,
17268,
1042,
22529,
13,
288,
3639,
327,
4073,
18,
588,
1702,
1396,
12,
2297,
18,
6639,
43,
27332,
1146,
... |
return _url; | return url; | public String getInstanceName() { return _url; } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/Connection.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/client/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3694,
461,
1435,
288,
3639,
327,
880,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3694,
461,
1435,
288,
3639,
327,
880,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
IValidator v3 = new Validator(); spec.setValidator(v3); assertEquals(1, spec.getTypeConversionValidators().length); assertSame(v3, spec.getTypeConversionValidator()); assertSame(v3, spec.getTypeConversionValidators()[0]); } | IValidator v3 = new Validator(); spec.setValidator(v3); assertEquals(1, spec.getTypeConversionValidators().length); assertSame(v3, spec.getTypeConversionValidator()); assertSame(v3, spec.getTypeConversionValidators()[0]); } | public void testSetValidator() { BindSpec spec = new BindSpec(); IValidator v1 = new Validator(); IValidator v2 = new Validator(); spec.setValidators(new IValidator[] { v1, v2 }); assertEquals(2, spec.getTypeConversionValidators().length); IValidator v3 = new Validator(); spec.setValidator(v3); assertEquals(1, spec.getTypeConversionValidators().length); assertSame(v3, spec.getTypeConversionValidator()); assertSame(v3, spec.getTypeConversionValidators()[0]); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/646de6c1228ca0820a97e225df84d75e3993e272/BindSpecTests.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/BindSpecTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
694,
5126,
1435,
288,
3639,
6936,
1990,
857,
273,
394,
6936,
1990,
5621,
3639,
467,
5126,
331,
21,
273,
394,
9150,
5621,
3639,
467,
5126,
331,
22,
273,
394,
9150,
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,
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,
694,
5126,
1435,
288,
3639,
6936,
1990,
857,
273,
394,
6936,
1990,
5621,
3639,
467,
5126,
331,
21,
273,
394,
9150,
5621,
3639,
467,
5126,
331,
22,
273,
394,
9150,
5621,
... |
String[] suffixes = {"B", "KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"}; | public static String formatSize(long sz) { // First determine suffix String[] suffixes = {"B", "KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"}; long s = 1; int i; for(i=0;i<suffixes.length;i++) { s *= 1024; if(s > sz) { break; // Smaller than multiplier [i] - use the previous one } } s /= 1024; // we use the previous unit if (s == 1) // Bytes? Then we don't need real numbers with a comma { return sz + " " + suffixes[0]; } else { double mantissa = (double)sz / (double)s; String o = Double.toString(mantissa); if(o.indexOf('.') == 3) o = o.substring(0, 3); else if((o.indexOf('.') > -1) && (o.indexOf('E') == -1) && (o.length() > 4)) o = o.substring(0, 4); o += " " + suffixes[i]; return o; } } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/4bfa4b36acc6951d01c065c2ab58d98c12eb448e/SizeUtil.java/clean/src/freenet/support/SizeUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
740,
1225,
12,
5748,
11262,
13,
288,
202,
202,
759,
5783,
4199,
3758,
9506,
202,
780,
8526,
18333,
273,
12528,
38,
3113,
315,
47,
17632,
15937,
49,
17632,
15937,
43,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
740,
1225,
12,
5748,
11262,
13,
288,
202,
202,
759,
5783,
4199,
3758,
9506,
202,
780,
8526,
18333,
273,
12528,
38,
3113,
315,
47,
17632,
15937,
49,
17632,
15937,
43,
... | |
" DECLARE @tablename nvarchar(60), @constraintname nvarchar(60)\n"+ | " DECLARE @tablename nvarchar(256), @constraintname nvarchar(256)\n"+ | public void testTableConstraints() throws Exception { assertEqualsIgnoringWhitespaces( "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'F' AND name = 'testfk')\n"+ " ALTER TABLE \"table3\" DROP CONSTRAINT \"testfk\";\n"+ "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'F' AND name = 'table2_FK_COL_FK_1_COL_FK_2_table1')\n"+ " ALTER TABLE \"table2\" DROP CONSTRAINT \"table2_FK_COL_FK_1_COL_FK_2_table1\";\n"+ "SET quoted_identifier on;\n"+ "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'table3')\n"+ "BEGIN\n"+ " DECLARE @tablename nvarchar(60), @constraintname nvarchar(60)\n"+ " DECLARE refcursor CURSOR FOR\n"+ " SELECT object_name(objs.parent_obj) tablename, objs.name constraintname\n"+ " FROM sysobjects objs JOIN sysconstraints cons ON objs.id = cons.constid\n"+ " WHERE objs.xtype != 'PK' AND object_name(objs.parent_obj) = 'table3' OPEN refcursor\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " WHILE @@FETCH_STATUS = 0\n"+ " BEGIN\n"+ " EXEC ('ALTER TABLE '+@tablename+' DROP CONSTRAINT '+@constraintname)\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " END\n"+ " CLOSE refcursor\n"+ " DEALLOCATE refcursor\n"+ " DROP TABLE \"table3\"\n"+ "END;\n"+ "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'table2')\n"+ "BEGIN\n"+ " DECLARE @tablename nvarchar(60), @constraintname nvarchar(60)\n"+ " DECLARE refcursor CURSOR FOR\n"+ " SELECT object_name(objs.parent_obj) tablename, objs.name constraintname\n"+ " FROM sysobjects objs JOIN sysconstraints cons ON objs.id = cons.constid\n"+ " WHERE objs.xtype != 'PK' AND object_name(objs.parent_obj) = 'table2' OPEN refcursor\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " WHILE @@FETCH_STATUS = 0\n"+ " BEGIN\n"+ " EXEC ('ALTER TABLE '+@tablename+' DROP CONSTRAINT '+@constraintname)\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " END\n"+ " CLOSE refcursor\n"+ " DEALLOCATE refcursor\n"+ " DROP TABLE \"table2\"\n"+ "END;\n"+ "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'table1')\n"+ "BEGIN\n"+ " DECLARE @tablename nvarchar(60), @constraintname nvarchar(60)\n"+ " DECLARE refcursor CURSOR FOR\n"+ " SELECT object_name(objs.parent_obj) tablename, objs.name constraintname\n"+ " FROM sysobjects objs JOIN sysconstraints cons ON objs.id = cons.constid\n"+ " WHERE objs.xtype != 'PK' AND object_name(objs.parent_obj) = 'table1' OPEN refcursor\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " WHILE @@FETCH_STATUS = 0\n"+ " BEGIN\n"+ " EXEC ('ALTER TABLE '+@tablename+' DROP CONSTRAINT '+@constraintname)\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " END\n"+ " CLOSE refcursor\n"+ " DEALLOCATE refcursor\n"+ " DROP TABLE \"table1\"\n"+ "END;\n"+ "SET quoted_identifier on;\n"+ "CREATE TABLE \"table1\"\n"+ "(\n"+ " \"COL_PK_1\" VARCHAR(32) NOT NULL,\n"+ " \"COL_PK_2\" INT,\n"+ " \"COL_INDEX_1\" BINARY(100) NOT NULL,\n"+ " \"COL_INDEX_2\" FLOAT NOT NULL,\n"+ " \"COL_INDEX_3\" CHAR(4),\n"+ " PRIMARY KEY (\"COL_PK_1\", \"COL_PK_2\")\n"+ ");\n"+ "CREATE INDEX \"testindex1\" ON \"table1\" (\"COL_INDEX_2\");\n"+ "CREATE UNIQUE INDEX \"testindex2\" ON \"table1\" (\"COL_INDEX_3\", \"COL_INDEX_1\");\n"+ "SET quoted_identifier on;\n"+ "CREATE TABLE \"table2\"\n"+ "(\n"+ " \"COL_PK\" INT,\n"+ " \"COL_FK_1\" INT,\n"+ " \"COL_FK_2\" VARCHAR(32) NOT NULL,\n"+ " PRIMARY KEY (\"COL_PK\")\n"+ ");\n"+ "SET quoted_identifier on;\n"+ "CREATE TABLE \"table3\"\n"+ "(\n"+ " \"COL_PK\" VARCHAR(16),\n"+ " \"COL_FK\" INT NOT NULL,\n"+ " PRIMARY KEY (\"COL_PK\")\n"+ ");\n"+ "ALTER TABLE \"table2\" ADD CONSTRAINT \"table2_FK_COL_FK_1_COL_FK_2_table1\" FOREIGN KEY (\"COL_FK_1\", \"COL_FK_2\") REFERENCES \"table1\" (\"COL_PK_2\", \"COL_PK_1\");\n"+ "ALTER TABLE \"table3\" ADD CONSTRAINT \"testfk\" FOREIGN KEY (\"COL_FK\") REFERENCES \"table2\" (\"COL_PK\");\n", createTestDatabase(TABLE_CONSTRAINT_TEST_SCHEMA)); } | 3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/3d8eb9af044bfe73ec36a4317ec976b5cf42c0ea/TestMSSqlPlatform.java/clean/src/test/org/apache/ddlutils/platform/TestMSSqlPlatform.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1388,
4878,
1435,
1216,
1185,
565,
288,
3639,
1815,
8867,
21702,
2888,
21693,
12,
5411,
315,
4043,
9298,
67,
5644,
603,
9747,
82,
6,
15,
5411,
315,
5501,
20476,
261,
4803... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1388,
4878,
1435,
1216,
1185,
565,
288,
3639,
1815,
8867,
21702,
2888,
21693,
12,
5411,
315,
4043,
9298,
67,
5644,
603,
9747,
82,
6,
15,
5411,
315,
5501,
20476,
261,
4803... |
public org.quickfix.field.Pool getPool() throws FieldNotFound { org.quickfix.field.Pool value = new org.quickfix.field.Pool(); | public quickfix.field.Pool getPool() throws FieldNotFound { quickfix.field.Pool value = new quickfix.field.Pool(); | public org.quickfix.field.Pool getPool() throws FieldNotFound { org.quickfix.field.Pool value = new org.quickfix.field.Pool(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceRequest.java/buggy/src/java/src/quickfix/fix44/PositionMaintenanceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
28575,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
286... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
28575,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
286... |
public void setMessageListener(MessageListener l) { | public final void setMessageListener(MessageListener l) { | public void setMessageListener(MessageListener l) { msg_listener=l; } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/ae07d7d5a70d350c1163ba71f63db738cb292c88/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
15227,
2223,
12,
1079,
2223,
328,
13,
288,
3639,
1234,
67,
12757,
33,
80,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
15227,
2223,
12,
1079,
2223,
328,
13,
288,
3639,
1234,
67,
12757,
33,
80,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
AtomContainerManipulator acm = new AtomContainerManipulator(); acm.removeHydrogens(mol); | AtomContainerManipulator.removeHydrogens(mol); | public void testWienerNumbersDescriptor() throws ClassNotFoundException, CDKException, java.lang.Exception { double [] testResult={18, 2}; Descriptor descriptor = new WienerNumbersDescriptor(); SmilesParser sp = new SmilesParser(); AtomContainer mol = sp.parseSmiles("[H]C([H])([H])C([H])([H])C(=O)O"); AtomContainerManipulator acm = new AtomContainerManipulator(); acm.removeHydrogens(mol); DoubleArrayResult retval = (DoubleArrayResult)descriptor.calculate(mol).getValue(); // OK: assertEquals(testResult[0], retval.get(0), 0.0001); assertEquals(testResult[1], retval.get(1), 0.0001); } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/a08c6ae51fd6e8e2448b2b9fde92a30a4e271589/WienerNumbersDescriptorTest.java/buggy/src/org/openscience/cdk/test/qsar/WienerNumbersDescriptorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
59,
77,
708,
10072,
3187,
1435,
1216,
10403,
16,
24570,
16,
2252,
18,
4936,
18,
503,
288,
202,
202,
9056,
5378,
1842,
1253,
5899,
2643,
16,
576,
20451,
202,
202,
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,
225,
202,
482,
918,
1842,
59,
77,
708,
10072,
3187,
1435,
1216,
10403,
16,
24570,
16,
2252,
18,
4936,
18,
503,
288,
202,
202,
9056,
5378,
1842,
1253,
5899,
2643,
16,
576,
20451,
202,
202,
31... |
return (SecurityInfo) _current.get(); | return (SecurityInfo) current.get(); | public static SecurityInfo getCurrent() { return (SecurityInfo) _current.get(); } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/SecurityInfo.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/SecurityInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6036,
966,
5175,
1435,
288,
3639,
327,
261,
4368,
966,
13,
783,
18,
588,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
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,
377,
1071,
760,
6036,
966,
5175,
1435,
288,
3639,
327,
261,
4368,
966,
13,
783,
18,
588,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
updatePageCompletion(); | private void addSelectionButtons(Composite composite) { Font parentFont = composite.getFont(); buttonComposite = new Composite(composite, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; buttonComposite.setLayout(layout); GridData data = new GridData(GridData.GRAB_HORIZONTAL); data.grabExcessHorizontalSpace = true; buttonComposite.setLayoutData(data); buttonComposite.setFont(parentFont); Button selectButton = createButton(buttonComposite, IDialogConstants.SELECT_ALL_ID, PreferencesMessages.SelectionDialog_selectLabel, false); SelectionListener listener = new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { setAllChecked(true); } }; selectButton.addSelectionListener(listener); selectButton.setFont(parentFont); Button deselectButton = createButton(buttonComposite, IDialogConstants.DESELECT_ALL_ID, PreferencesMessages.SelectionDialog_deselectLabel, false); listener = new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { setAllChecked(false); } }; deselectButton.addSelectionListener(listener); deselectButton.setFont(parentFont); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/699b37352a73028bcf84f70f095cbd22a559799a/WizardPreferencesPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2725,
1964,
11238,
5621,
918,
2725,
1964,
11238,
5621,
527,
6233,
14388,
12,
9400,
2725,
1964,
11238,
5621,
9635,
13,
2725,
1964,
11238,
5621,
288,
202,
202,
5711,
2725,
1964,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2725,
1964,
11238,
5621,
918,
2725,
1964,
11238,
5621,
527,
6233,
14388,
12,
9400,
2725,
1964,
11238,
5621,
9635,
13,
2725,
1964,
11238,
5621,
288,
202,
202,
5711,
2725,
1964,
11... | |
byte[][] tuple = new byte[1][0]; | public java.sql.ResultSet getTableTypes() throws SQLException { Field f[] = new Field[1]; Vector v = new Vector(); byte[][] tuple = new byte[1][0]; f[0] = new Field(connection,new String("TABLE_TYPE"),iVarcharOid,32); for(int i=0;i<getTableTypes.length;i++) { tuple[0] = getTableTypes[i][0].getBytes(); v.addElement(tuple); } return new ResultSet(connection,f,v,"OK",1); } | 52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/9eddc7519d5ef21ff5f57f76470074adf5a421f6/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
5638,
2016,
1435,
1216,
6483,
225,
288,
565,
2286,
284,
8526,
273,
394,
2286,
63,
21,
15533,
565,
5589,
331,
273,
394,
5589,
5621,
4202,
284,
63,
20,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4669,
18,
13198,
5638,
2016,
1435,
1216,
6483,
225,
288,
565,
2286,
284,
8526,
273,
394,
2286,
63,
21,
15533,
565,
5589,
331,
273,
394,
5589,
5621,
4202,
284,
63,
20,
65... | |
} | } | public XSWildcardDecl performUnionWith(XSWildcardDecl wildcard) { // For a wildcard's {namespace constraint} value to be the intensional union of two other such // values (call them O1 and O2): the appropriate case among the following must be true: XSWildcardDecl unionWildcard = new XSWildcardDecl(); // 1 If O1 and O2 are the same value, then that value must be the value. if (fType == wildcard.fType) { unionWildcard.fType = fType; } // 2 If either O1 or O2 is any, then any must be the value. else if ( (fType == WILDCARD_ANY) || (wildcard.fType == WILDCARD_ANY) ) { unionWildcard.fType = WILDCARD_ANY; } // 3 If both O1 and O2 are sets of (namespace names or absent), then the union of those sets // must be the value. else if ( (fType == WILDCARD_LIST) && (wildcard.fType == WILDCARD_LIST) ) { Vector union = new Vector(fNamespaceList.length, wildcard.fNamespaceList.length); for (int i=0; i<fNamespaceList.length; i++) union.addElement(fNamespaceList[i]); boolean found; for (int i=0; i<wildcard.fNamespaceList.length; i++) { found = false; for (int j=0; j<fNamespaceList.length; j++) if (fNamespaceList[j] == wildcard.fNamespaceList[i]) { found = true; break; } if (!found) union.addElement(wildcard.fNamespaceList[i]); } unionWildcard.fType = WILDCARD_LIST; // copy elements from vector to array int size = union.size(); unionWildcard.fNamespaceList = new String[size]; union.copyInto(unionWildcard.fNamespaceList); } // 4 If the two are negations of different namespace names, then the intersection is not expressible. // 5 If either O1 or O2 is a pair of not and a namespace name and the other is a set of // (namespace names or absent), then The appropriate case among the following must be true: // 5.1 If the set includes the negated namespace name, then any must be the value. // 5.2 If the set does not include the negated namespace name, then whichever of O1 or O2 // is a pair of not and a namespace name must be the value. else if ( ((fType == WILDCARD_OTHER) && (wildcard.fType == WILDCARD_LIST)) || ((fType == WILDCARD_LIST) && (wildcard.fType == WILDCARD_OTHER)) ) { int i=0; if (fType == WILDCARD_OTHER) { for (i=0; i<wildcard.fNamespaceList.length; i++) if (fNamespaceList[0] == wildcard.fNamespaceList[i]) { unionWildcard.fType = WILDCARD_ANY; break; } // Loop traversed completely. This means, negated namespace viz. tNS (here) // is not in the other list. So, union is other. if (i == wildcard.fNamespaceList.length) unionWildcard.fType = fType; } else { for (i=0; i<fNamespaceList.length; i++) if (wildcard.fNamespaceList[0] == fNamespaceList[i]) { unionWildcard.fType = WILDCARD_ANY; break; } // Loop traversed completely. This means, negated namespace viz. tNS (here) // is not in the other list. So, union is other. if (i == fNamespaceList.length) unionWildcard.fType = wildcard.fType; } } unionWildcard.fProcessContents = fProcessContents; return unionWildcard; } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/d552df326d11532d23738eaf0325b838876bd942/XSWildcardDecl.java/clean/src/org/apache/xerces/impl/v2/XSWildcardDecl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1139,
55,
12121,
3456,
3073,
14325,
1190,
12,
60,
55,
12121,
3456,
8531,
13,
288,
377,
202,
759,
2457,
279,
8531,
1807,
288,
4937,
4954,
289,
460,
358,
506,
326,
509,
1451,
287,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
55,
12121,
3456,
3073,
14325,
1190,
12,
60,
55,
12121,
3456,
8531,
13,
288,
377,
202,
759,
2457,
279,
8531,
1807,
288,
4937,
4954,
289,
460,
358,
506,
326,
509,
1451,
287,
7... |
public static org.omg.IIOP.ProfileBody_1_1 getProfileBody( byte [] profile, | public static ProfileBody_1_1 getProfileBody( byte[] profile, | public static org.omg.IIOP.ProfileBody_1_1 getProfileBody( byte [] profile, int min_minor ) { org.omg.IIOP.ProfileBody_1_1 _profile_body = null; CDRInputStream in = new CDRInputStream((org.omg.CORBA.ORB)null, profile); try { // look for all profiles, if we found TaggedComponents // we'll extract them in.setLittleEndian(in.read_boolean()); // mark position because we will pre-read version from stream in.mark(0); // first read the version and observe if we have already // decoded newer version of IIOP IOR int minor = org.omg.IIOP.VersionHelper.read(in).minor; if( ( minor < min_minor) || (minor > 2) ) return null; // return to start of profile body stream in.reset(); switch(minor){ case 2: // 1.2 is compatible with 1.1 case 1: _profile_body = org.omg.IIOP.ProfileBody_1_1Helper.read(in); break; case 0: // convert profile body 1.0 -> 1.1 by adding empty or existing tagged // components (should be always empty because if we already read >1.0 // profile version, we should never encounter these lines) org.omg.IIOP.ProfileBody_1_0 pb0; pb0 = org.omg.IIOP.ProfileBody_1_0Helper.read(in); _profile_body = new org.omg.IIOP.ProfileBody_1_1(pb0.iiop_version, pb0.host, pb0.port, pb0.object_key, new org.omg.IOP.TaggedComponent[0]); // taggedComponents); if( _profile_body.port < 0 ) _profile_body.port += 65536; break; } } catch ( Exception ex ) { org.jacorb.util.Debug.output( 2, ex ); throw new org.omg.CORBA.INV_OBJREF(); }; return _profile_body; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/293e7be387ef8abd47c6e8365dea77e5a2d17543/ParsedIOR.java/clean/src/org/jacorb/orb/ParsedIOR.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
11357,
2250,
67,
21,
67,
21,
28042,
2250,
12,
1160,
8526,
3042,
16,
20982,
4202,
509,
1131,
67,
17364,
262,
565,
288,
202,
3341,
18,
362,
75,
18,
6954,
3665,
18,
4029,
2250,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11357,
2250,
67,
21,
67,
21,
28042,
2250,
12,
1160,
8526,
3042,
16,
20982,
4202,
509,
1131,
67,
17364,
262,
565,
288,
202,
3341,
18,
362,
75,
18,
6954,
3665,
18,
4029,
2250,
... |
userHasReached(subInfo, GRANT_LICENSE); doStep(context, request, response, subInfo, GRANT_LICENSE); | int nextStep = CC.isEnabled() ? CC_LICENSE : GRANT_LICENSE; userHasReached(subInfo, nextStep); doStep(context, request, response, subInfo, nextStep); | private void processReview(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException { String buttonPressed = UIUtil.getSubmitButton(request, "submit_cancel"); if (buttonPressed.equals("submit_cancel")) { doCancellation(request, response, subInfo, REVIEW_SUBMISSION, REVIEW_SUBMISSION); } else if (buttonPressed.equals("submit_next")) { // If the user is performing the initial submission // of an item, we go to the grant license stage if (!isWorkflow(subInfo)) { userHasReached(subInfo, GRANT_LICENSE); doStep(context, request, response, subInfo, GRANT_LICENSE); context.complete(); } else { // The user is performing an edit as part // of a workflow task, so we take them // back to the relevant perform task page request.setAttribute("workflow.item", subInfo.submission); JSPManager.showJSP(request, response, "/mydspace/perform-task.jsp"); } } else if (buttonPressed.equals("submit_prev")) { // Back to file upload doStep(context, request, response, subInfo, UPLOAD_FILES); } else { doStepJump(context, request, response, subInfo); } } | 51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/ff2d6332ab8a7caaa8f9f2a5dbcc2deecad999a9/SubmitServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/SubmitServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
9159,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
16,
3639,
2592,
3951,
966,
720,
966,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
9159,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
16,
3639,
2592,
3951,
966,
720,
966,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288... |
throws NotImplementedException | public TreePath getPathForRow(int row) throws NotImplementedException { //TODO return null; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/354ad8e724c65b6b6984f632455ce4b17f1fb1d0/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
743,
4339,
1290,
1999,
12,
474,
1027,
13,
565,
1216,
10051,
503,
202,
95,
202,
202,
759,
6241,
202,
202,
2463,
446,
31,
225,
289,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
4902,
743,
4339,
1290,
1999,
12,
474,
1027,
13,
565,
1216,
10051,
503,
202,
95,
202,
202,
759,
6241,
202,
202,
2463,
446,
31,
225,
289,
225,
2,
-100,
-100,
-100,
-100,
-100,
... | |
} else | } else | private String[] getProgramArguments( ILaunchConfiguration configuration ) throws CoreException { ArrayList programArgs = new ArrayList( ); // If a product is specified, then add it to the program args if ( configuration.getAttribute( USE_PRODUCT, false ) ) { programArgs.add( "-product" ); //$NON-NLS-1$ programArgs.add( configuration.getAttribute( PRODUCT, "" ) ); //$NON-NLS-1$ } else { // specify the application to launch programArgs.add( "-application" ); //$NON-NLS-1$ programArgs.add( configuration.getAttribute( APPLICATION, LauncherUtils.getDefaultApplicationName( ) ) ); } // specify the workspace location for the runtime workbench String targetWorkspace = configuration .getAttribute( LOCATION + "0", LauncherUtils.getDefaultPath( ).append( WORKESPACENAME ).toOSString( ) ); //$NON-NLS-1$ //$NON-NLS-2$ programArgs.add( "-data" ); //$NON-NLS-1$ programArgs.add( targetWorkspace ); boolean isOSGI = PDECore.getDefault( ).getModelManager( ) .isOSGiRuntime( ); if ( configuration.getAttribute( USEFEATURES, false ) ) { validateFeatures( ); IPath installPath = PDEPlugin.getWorkspace( ).getRoot( ) .getLocation( ); programArgs.add( "-install" ); //$NON-NLS-1$ programArgs .add( "file:" + installPath.removeLastSegments( 1 ).addTrailingSeparator( ).toString( ) ); //$NON-NLS-1$ programArgs.add( "-update" ); //$NON-NLS-1$ } else { TreeMap pluginMap = LauncherUtils.getPluginsToRun( configuration ); if ( pluginMap == null ) return null; String primaryFeatureId = ReportLauncherUtils.getPrimaryFeatureId( ); DebugUtil.runCreatePlatformConfigurationArea( pluginMap, getConfigDir( configuration ), primaryFeatureId, ReportLauncherUtils.getAutoStartPlugins( configuration ) ); programArgs.add( "-configuration" ); //$NON-NLS-1$ if ( isOSGI ) programArgs .add( "file:" + new Path( getConfigDir( configuration ).getPath( ) ).addTrailingSeparator( ).toString( ) ); //$NON-NLS-1$ else programArgs .add( "file:" + new Path( getConfigDir( configuration ).getPath( ) ).append( "platform.cfg" ).toString( ) ); //$NON-NLS-1$ //$NON-NLS-2$ if ( !isOSGI ) { if ( primaryFeatureId != null ) { programArgs.add( "-feature" ); //$NON-NLS-1$ programArgs.add( primaryFeatureId ); } IPluginModelBase bootModel = (IPluginModelBase) pluginMap .get( "org.eclipse.core.boot" ); //$NON-NLS-1$ String bootPath = LauncherUtils.getBootPath( bootModel ); if ( bootPath != null && !bootPath.endsWith( ".jar" ) ) { //$NON-NLS-1$ programArgs.add( "-boot" ); //$NON-NLS-1$ programArgs.add( "file:" + bootPath ); //$NON-NLS-1$ } } } // add the output folder names programArgs.add( "-dev" ); //$NON-NLS-1$ if ( PDECore.getDefault( ).getModelManager( ).isOSGiRuntime( ) ) programArgs.add( DebugUtil.getDevEntriesProperties( getConfigDir( configuration ).toString( ) + "/dev.properties", true ) ); //$NON-NLS-1$ else programArgs.add( DebugUtil.getDevEntries( true ) ); // necessary for PDE to know how to load plugins when target platform = // host platform // see PluginPathFinder.getPluginPaths() programArgs.add( "-pdelaunch" ); //$NON-NLS-1$ // add tracing, if turned on if ( configuration.getAttribute( TRACING, false ) && !TRACING_NONE.equals( configuration.getAttribute( TRACING_CHECKED, (String) null ) ) ) { programArgs.add( "-debug" ); //$NON-NLS-1$ programArgs.add( LauncherUtils.getTracingFileArgument( configuration, getConfigDir( configuration ).toString( ) + Path.SEPARATOR + ".options" ) ); //$NON-NLS-1$ } // add the program args specified by the user StringTokenizer tokenizer = new StringTokenizer( configuration .getAttribute( PROGARGS, "" ) ); //$NON-NLS-1$ while ( tokenizer.hasMoreTokens( ) ) { programArgs.add( tokenizer.nextToken( ) ); } // show splash only if we are launching the default application boolean showSplash = true; int index = programArgs.indexOf( "-application" ); //$NON-NLS-1$ if ( index != -1 && index <= programArgs.size( ) - 2 ) { if ( !programArgs.get( index + 1 ).equals( LauncherUtils.getDefaultApplicationName( ) ) ) { showSplash = false; } } if ( showSplash && !programArgs.contains( "-nosplash" ) ) { //$NON-NLS-1$ programArgs.add( 0, "-showsplash" ); //$NON-NLS-1$ programArgs.add( 1, computeShowsplashArgument( ) ); } return (String[]) programArgs.toArray( new String[programArgs.size( )] ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3ff8c8c7dcc1456137e4ae046739e5dc4d3f729d/ReportLaunchConfigurationDelegate.java/clean/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
3570,
3295,
4628,
12,
467,
9569,
1750,
1664,
262,
1082,
202,
15069,
30015,
202,
95,
202,
202,
19558,
5402,
2615,
273,
394,
2407,
12,
11272,
202,
202,
759,
971,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
3570,
3295,
4628,
12,
467,
9569,
1750,
1664,
262,
1082,
202,
15069,
30015,
202,
95,
202,
202,
19558,
5402,
2615,
273,
394,
2407,
12,
11272,
202,
202,
759,
971,
279,
... |
public org.quickfix.field.CreditRating getCreditRating() throws FieldNotFound { org.quickfix.field.CreditRating value = new org.quickfix.field.CreditRating(); | public quickfix.field.CreditRating getCreditRating() throws FieldNotFound { quickfix.field.CreditRating value = new quickfix.field.CreditRating(); | public org.quickfix.field.CreditRating getCreditRating() throws FieldNotFound { org.quickfix.field.CreditRating value = new org.quickfix.field.CreditRating(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Confirmation.java/clean/src/java/src/quickfix/fix44/Confirmation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
1927,
10430,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
460,
273,
394,
2358,
18,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
1927,
10430,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
460,
273,
394,
2358,
18,
19... |
if (ls.isDeleted()) | if (ls.isDeleted() || ls.incomplete) | public OsmPrimitive getNearest(Point p, boolean lsInsteadWay) { double minDistanceSq = Double.MAX_VALUE; OsmPrimitive minPrimitive = null; // nodes for (Node n : Main.main.ds.nodes) { if (n.isDeleted()) continue; Point sp = getScreenPoint(n.coor); double dist = p.distanceSq(sp); if (minDistanceSq > dist && dist < 100) { minDistanceSq = p.distanceSq(sp); minPrimitive = n; } } if (minPrimitive != null) return minPrimitive; // for whole ways, try the ways first minDistanceSq = Double.MAX_VALUE; if (!lsInsteadWay) { for (Way w : Main.main.ds.waies) { if (w.isDeleted()) continue; for (LineSegment ls : w.segments) { if (ls.isDeleted()) continue; Point A = getScreenPoint(ls.start.coor); Point B = getScreenPoint(ls.end.coor); double c = A.distanceSq(B); double a = p.distanceSq(B); double b = p.distanceSq(A); double perDist = a-(a-b+c)*(a-b+c)/4/c; // perpendicular distance squared if (perDist < 100 && minDistanceSq > perDist && a < c+100 && b < c+100) { minDistanceSq = perDist; minPrimitive = w; } } } if (minPrimitive != null) return minPrimitive; } minDistanceSq = Double.MAX_VALUE; // line segments for (LineSegment ls : Main.main.ds.lineSegments) { if (ls.isDeleted()) continue; Point A = getScreenPoint(ls.start.coor); Point B = getScreenPoint(ls.end.coor); double c = A.distanceSq(B); double a = p.distanceSq(B); double b = p.distanceSq(A); double perDist = a-(a-b+c)*(a-b+c)/4/c; // perpendicular distance squared if (perDist < 100 && minDistanceSq > perDist && a < c+100 && b < c+100) { minDistanceSq = perDist; minPrimitive = ls; } } return minPrimitive; } | 2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/befeff8824b7261934487a4bc72df91a5de24079/NavigatableComponent.java/buggy/src/org/openstreetmap/josm/gui/NavigatableComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
531,
4808,
9840,
336,
28031,
12,
2148,
293,
16,
1250,
7180,
10773,
684,
21831,
13,
288,
202,
202,
9056,
1131,
7200,
19643,
273,
3698,
18,
6694,
67,
4051,
31,
202,
202,
51,
480... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
531,
4808,
9840,
336,
28031,
12,
2148,
293,
16,
1250,
7180,
10773,
684,
21831,
13,
288,
202,
202,
9056,
1131,
7200,
19643,
273,
3698,
18,
6694,
67,
4051,
31,
202,
202,
51,
480... |
System.err.println("Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = " + dummyGL); | System.err.println(getThreadName() + ": Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = " + dummyGL); | protected void choosePixelFormatAndCreateContext(boolean onscreen) { PIXELFORMATDESCRIPTOR pfd = null; int pixelFormat = 0; if (onscreen) { GLCapabilities[] availableCaps = null; int numFormats = 0; pfd = newPixelFormatDescriptor(); GraphicsConfiguration config = component.getGraphicsConfiguration(); GraphicsDevice device = config.getDevice(); // Produce a recommended pixel format selection for the GLCapabilitiesChooser. // Use wglChoosePixelFormatARB if user requested multisampling and if we have it available GL dummyGL = null; if (capabilities.getSampleBuffers()) { dummyGL = WindowsGLContextFactory.getDummyGL(device); } int recommendedPixelFormat = -1; boolean haveWGLChoosePixelFormatARB = false; boolean haveWGLARBMultisample = false; if (dummyGL != null) { String availableWGLExtensions = WindowsGLContextFactory.getDummyGLExtensions(device); if (availableWGLExtensions.indexOf("WGL_ARB_pixel_format") >= 0) { haveWGLChoosePixelFormatARB = true; if (availableWGLExtensions.indexOf("WGL_ARB_multisample") >= 0) { haveWGLARBMultisample = true; } } } Rectangle rect = config.getBounds(); long dc = 0; long rc = 0; boolean freeWGLC = false; if( dummyGL != null ) { dc = WindowsGLContextFactory.getDummyGLContext( device ).hdc; rc = WindowsGLContextFactory.getDummyGLContext( device ).hglrc; if( !WGL.wglMakeCurrent( dc, rc ) ) { System.err.println("Error Making WGLC Current: " + WGL.GetLastError() ); } else { freeWGLC = true; } } // Fallback path for older cards, in particular Intel Extreme motherboard graphics boolean gotAvailableCaps = false; if (dummyGL != null && haveWGLChoosePixelFormatARB) { int[] iattributes = new int [2 * MAX_ATTRIBS]; int[] iresults = new int [2 * MAX_ATTRIBS]; float[] fattributes = new float[2 * MAX_ATTRIBS]; int niattribs = 0; int nfattribs = 0; iattributes[niattribs++] = GL.WGL_SUPPORT_OPENGL_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_DRAW_TO_WINDOW_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_PIXEL_TYPE_ARB; iattributes[niattribs++] = GL.WGL_TYPE_RGBA_ARB; iattributes[niattribs++] = GL.WGL_DOUBLE_BUFFER_ARB; if (capabilities.getDoubleBuffered()) { iattributes[niattribs++] = GL.GL_TRUE; } else { iattributes[niattribs++] = GL.GL_FALSE; } iattributes[niattribs++] = GL.WGL_STEREO_ARB; if (capabilities.getStereo()) { iattributes[niattribs++] = GL.GL_TRUE; } else { iattributes[niattribs++] = GL.GL_FALSE; } iattributes[niattribs++] = GL.WGL_DEPTH_BITS_ARB; iattributes[niattribs++] = capabilities.getDepthBits(); iattributes[niattribs++] = GL.WGL_RED_BITS_ARB; iattributes[niattribs++] = capabilities.getRedBits(); iattributes[niattribs++] = GL.WGL_GREEN_BITS_ARB; iattributes[niattribs++] = capabilities.getGreenBits(); iattributes[niattribs++] = GL.WGL_BLUE_BITS_ARB; iattributes[niattribs++] = capabilities.getBlueBits(); iattributes[niattribs++] = GL.WGL_ALPHA_BITS_ARB; iattributes[niattribs++] = capabilities.getAlphaBits(); iattributes[niattribs++] = GL.WGL_STENCIL_BITS_ARB; iattributes[niattribs++] = capabilities.getStencilBits(); if (capabilities.getAccumRedBits() > 0 || capabilities.getAccumGreenBits() > 0 || capabilities.getAccumBlueBits() > 0 || capabilities.getAccumAlphaBits() > 0) { iattributes[niattribs++] = GL.WGL_ACCUM_BITS_ARB; iattributes[niattribs++] = (capabilities.getAccumRedBits() + capabilities.getAccumGreenBits() + capabilities.getAccumBlueBits() + capabilities.getAccumAlphaBits()); iattributes[niattribs++] = GL.WGL_ACCUM_RED_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumRedBits(); iattributes[niattribs++] = GL.WGL_ACCUM_GREEN_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumGreenBits(); iattributes[niattribs++] = GL.WGL_ACCUM_BLUE_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumBlueBits(); iattributes[niattribs++] = GL.WGL_ACCUM_ALPHA_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumAlphaBits(); } if (haveWGLARBMultisample) { if (capabilities.getSampleBuffers()) { iattributes[niattribs++] = GL.WGL_SAMPLE_BUFFERS_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_SAMPLES_ARB; iattributes[niattribs++] = capabilities.getNumSamples(); } } int[] pformats = new int[MAX_PFORMATS]; int[] numFormatsTmp = new int[1]; if (dummyGL.wglChoosePixelFormatARB(hdc, iattributes, fattributes, MAX_PFORMATS, pformats, numFormatsTmp)) { numFormats = numFormatsTmp[0]; if (numFormats > 0) { // Remove one-basing of pixel format (added on later) recommendedPixelFormat = pformats[0] - 1; if (DEBUG) { System.err.println("Used wglChoosePixelFormatARB to recommend pixel format " + recommendedPixelFormat); } } } else { if (DEBUG) { System.err.println("wglChoosePixelFormatARB failed: " + WGL.GetLastError() ); Thread.dumpStack(); } } if (DEBUG) { if (recommendedPixelFormat < 0) { System.err.print("wglChoosePixelFormatARB didn't recommend a pixel format"); if (capabilities.getSampleBuffers()) { System.err.print(" for multisampled GLCapabilities"); } System.err.println(); } } // Produce a list of GLCapabilities to give to the // GLCapabilitiesChooser. // Use wglGetPixelFormatAttribivARB instead of // DescribePixelFormat to get higher-precision information // about the pixel format (should make the GLCapabilities // more precise as well...i.e., remove the // "HardwareAccelerated" bit, which is basically // meaningless, and put in whether it can render to a // window, to a pbuffer, or to a pixmap) niattribs = 0; iattributes[0] = GL.WGL_NUMBER_PIXEL_FORMATS_ARB; if (dummyGL.wglGetPixelFormatAttribivARB(hdc, 0, 0, 1, iattributes, iresults)) { numFormats = iresults[0]; // Should we be filtering out the pixel formats which aren't // applicable, as we are doing here? // We don't have enough information in the GLCapabilities to // represent those that aren't... iattributes[niattribs++] = GL.WGL_DRAW_TO_WINDOW_ARB; iattributes[niattribs++] = GL.WGL_ACCELERATION_ARB; iattributes[niattribs++] = GL.WGL_SUPPORT_OPENGL_ARB; iattributes[niattribs++] = GL.WGL_DEPTH_BITS_ARB; iattributes[niattribs++] = GL.WGL_STENCIL_BITS_ARB; iattributes[niattribs++] = GL.WGL_DOUBLE_BUFFER_ARB; iattributes[niattribs++] = GL.WGL_STEREO_ARB; iattributes[niattribs++] = GL.WGL_PIXEL_TYPE_ARB; iattributes[niattribs++] = GL.WGL_RED_BITS_ARB; iattributes[niattribs++] = GL.WGL_GREEN_BITS_ARB; iattributes[niattribs++] = GL.WGL_BLUE_BITS_ARB; iattributes[niattribs++] = GL.WGL_ALPHA_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_RED_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_GREEN_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_BLUE_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_ALPHA_BITS_ARB; if (haveWGLARBMultisample) { iattributes[niattribs++] = GL.WGL_SAMPLE_BUFFERS_ARB; iattributes[niattribs++] = GL.WGL_SAMPLES_ARB; } availableCaps = new GLCapabilities[numFormats]; for (int i = 0; i < numFormats; i++) { if (!dummyGL.wglGetPixelFormatAttribivARB(hdc, i+1, 0, niattribs, iattributes, iresults)) { throw new GLException("Error getting pixel format attributes for pixel format " + (i + 1) + " of device context"); } availableCaps[i] = iattributes2GLCapabilities(iattributes, iresults, niattribs, true); } if( freeWGLC ) { WGL.wglMakeCurrent( 0, 0 ); } gotAvailableCaps = true; } else { int lastErr = WGL.GetLastError(); // Intel Extreme graphics fails with a zero error code if (lastErr != 0) { throw new GLException("Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: error code " + WGL.GetLastError()); } } } if (!gotAvailableCaps) { if (DEBUG) { if (!capabilities.getSampleBuffers()) { System.err.println("Using ChoosePixelFormat because multisampling not requested"); } else { System.err.println("Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = " + dummyGL); } } pfd = glCapabilities2PFD(capabilities, onscreen); // Remove one-basing of pixel format (added on later) recommendedPixelFormat = WGL.ChoosePixelFormat(hdc, pfd) - 1; numFormats = WGL.DescribePixelFormat(hdc, 1, 0, null); if (numFormats == 0) { throw new GLException("Unable to enumerate pixel formats of window for GLCapabilitiesChooser"); } availableCaps = new GLCapabilities[numFormats]; for (int i = 0; i < numFormats; i++) { if (WGL.DescribePixelFormat(hdc, 1 + i, pfd.size(), pfd) == 0) { throw new GLException("Error describing pixel format " + (1 + i) + " of device context"); } availableCaps[i] = pfd2GLCapabilities(pfd); } } // Supply information to chooser pixelFormat = chooser.chooseCapabilities(capabilities, availableCaps, recommendedPixelFormat); if ((pixelFormat < 0) || (pixelFormat >= numFormats)) { throw new GLException("Invalid result " + pixelFormat + " from GLCapabilitiesChooser (should be between 0 and " + (numFormats - 1) + ")"); } if (DEBUG) { System.err.println("Chosen pixel format (" + pixelFormat + "):"); System.err.println(availableCaps[pixelFormat]); } pixelFormat += 1; // one-base the index if (WGL.DescribePixelFormat(hdc, pixelFormat, pfd.size(), pfd) == 0) { throw new GLException("Error re-describing the chosen pixel format: " + WGL.GetLastError()); } } else { // For now, use ChoosePixelFormat for offscreen surfaces until // we figure out how to properly choose an offscreen- // compatible pixel format pfd = glCapabilities2PFD(capabilities, onscreen); pixelFormat = WGL.ChoosePixelFormat(hdc, pfd); } if (!WGL.SetPixelFormat(hdc, pixelFormat, pfd)) { int lastError = WGL.GetLastError(); if (DEBUG) { System.err.println("SetPixelFormat failed: current context = " + WGL.wglGetCurrentContext() + ", current DC = " + WGL.wglGetCurrentDC()); System.err.println("GetPixelFormat(hdc " + hdcToString(hdc) + ") returns " + WGL.GetPixelFormat(hdc)); } throw new GLException("Unable to set pixel format " + pixelFormat + " for device context " + hdcToString(hdc) + ": error code " + lastError); } hglrc = WGL.wglCreateContext(hdc); if (DEBUG) { System.err.println("!!! Created OpenGL context " + hglrc + " for device context " + hdcToString(hdc) + " using pixel format " + pixelFormat); } if (hglrc == 0) { throw new GLException("Unable to create OpenGL context"); } } | 48257 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48257/7f0f3e8038d45b41796892d9ee7a59fb03fcbcb9/WindowsGLContext.java/clean/src/net/java/games/jogl/impl/windows/WindowsGLContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
9876,
9037,
1630,
1876,
1684,
1042,
12,
6494,
603,
9252,
13,
288,
565,
7024,
60,
2247,
7254,
1639,
27689,
293,
8313,
273,
446,
31,
565,
509,
4957,
1630,
273,
374,
31,
565,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
9876,
9037,
1630,
1876,
1684,
1042,
12,
6494,
603,
9252,
13,
288,
565,
7024,
60,
2247,
7254,
1639,
27689,
293,
8313,
273,
446,
31,
565,
509,
4957,
1630,
273,
374,
31,
565,
30... |
finally { buffer.writeUnlock(); } _notifyScreenLineChanges(); textArea.foldStructureChanged(); | else expandFolds((int)(digit - '1') + 1); | public void expandFolds(int foldLevel) { try { buffer.writeLock(); if(buffer.getFoldHandler() instanceof IndentFoldHandler) foldLevel = (foldLevel - 1) * buffer.getIndentSize() + 1; showLineRange(0,buffer.getLineCount() - 1); /* this ensures that the first line is always visible */ boolean seenVisibleLine = false; int firstInvisible = 0; for(int i = 0; i < buffer.getLineCount(); i++) { if(!seenVisibleLine || buffer.getFoldLevel(i) < foldLevel) { if(firstInvisible != i) { hideLineRange(firstInvisible, i - 1); } firstInvisible = i + 1; seenVisibleLine = true; } } if(firstInvisible != buffer.getLineCount()) hideLineRange(firstInvisible,buffer.getLineCount() - 1); } finally { buffer.writeUnlock(); } _notifyScreenLineChanges(); textArea.foldStructureChanged(); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/03e4da5739b10bdc6744b544d08f9c0198062436/DisplayManager.java/buggy/org/gjt/sp/jedit/textarea/DisplayManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4542,
15592,
87,
12,
474,
11590,
2355,
13,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
4106,
18,
2626,
2531,
5621,
1082,
202,
430,
12,
4106,
18,
588,
15592,
1503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4542,
15592,
87,
12,
474,
11590,
2355,
13,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
4106,
18,
2626,
2531,
5621,
1082,
202,
430,
12,
4106,
18,
588,
15592,
1503,
... |
GroovyClassLoader gcl = new GroovyClassLoader(); GrailsApplication app = new DefaultGrailsApplication(new Class[0], gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); Class service = gcl.parseClass("class TestService { boolean transactional = true;def serviceMethod() { 'hello' } }"); GrailsServiceClass serviceClass = app.addServiceClass(service); conf.registerService(serviceClass,ctx); assertTrue(ctx.containsBean("TestServiceClass")); assertTrue(ctx.containsBean("TestServiceInstance")); GroovyObject serviceInstance = (GroovyObject)ctx.getBean("testService"); assertEquals("hello",serviceInstance.invokeMethod("serviceMethod",null)); } | GroovyClassLoader gcl = new GroovyClassLoader(); GrailsApplication app = new DefaultGrailsApplication(new Class[0], gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); Class service = gcl.parseClass("class TestService { boolean transactional = true;def serviceMethod() { 'hello' } }"); GrailsServiceClass serviceClass = app.addServiceClass(service); conf.registerService(serviceClass,ctx); assertTrue(ctx.containsBean("TestServiceClass")); GroovyObject serviceInstance = (GroovyObject)ctx.getBean("testService"); assertEquals("hello",serviceInstance.invokeMethod("serviceMethod",null)); } | public void testRegisterService() throws Exception { GroovyClassLoader gcl = new GroovyClassLoader(); GrailsApplication app = new DefaultGrailsApplication(new Class[0], gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); Class service = gcl.parseClass("class TestService { boolean transactional = true;def serviceMethod() { 'hello' } }"); GrailsServiceClass serviceClass = app.addServiceClass(service); conf.registerService(serviceClass,ctx); assertTrue(ctx.containsBean("TestServiceClass")); assertTrue(ctx.containsBean("TestServiceInstance")); GroovyObject serviceInstance = (GroovyObject)ctx.getBean("testService"); assertEquals("hello",serviceInstance.invokeMethod("serviceMethod",null)); } | 55385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55385/075145e116446e23fd77adcfc25dab01feb4a27e/GrailsRuntimeConfiguratorTests.java/clean/test/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfiguratorTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3996,
1179,
1435,
1216,
1185,
288,
202,
202,
43,
12859,
7805,
314,
830,
273,
394,
20841,
7805,
5621,
9506,
202,
14571,
14573,
3208,
595,
273,
394,
2989,
14571,
14573,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3996,
1179,
1435,
1216,
1185,
288,
202,
202,
43,
12859,
7805,
314,
830,
273,
394,
20841,
7805,
5621,
9506,
202,
14571,
14573,
3208,
595,
273,
394,
2989,
14571,
14573,
... |
Component p2 = component_loader.getComponent("p2"); | Component p2 = component_loader.getComponent("p2"); Component parallel = component_loader.getComponent("parallel"); | public void run() { try { // instantiate and deploy components deploymentDescriptor = ProActive.getProactiveDescriptor("file:" + DEPLOYMENT_DESCRIPTOR_LOCATION); Loader component_loader = new Loader(); component_loader.loadComponentsConfiguration("file:" + COMPONENTS_DESCRIPTOR_LOCATION, deploymentDescriptor); // start components Component c = component_loader.getComponent("c"); //System.out.println("name of c is : " + ((ComponentParametersController)c.getFcInterface(ComponentParametersController.COMPONENT_PARAMETERS_CONTROLLER)).getComponentParameters().getName()); Component p2 = component_loader.getComponent("p2"); //System.out.println("name of p2 is : " + ((ComponentParametersController)p2.getFcInterface(ComponentParametersController.COMPONENT_PARAMETERS_CONTROLLER)).getComponentParameters().getName()); Fractal.getLifeCycleController(c).startFc(); Fractal.getLifeCycleController(p2).startFc(); // invoke method on composite I1 i1 = (I1) c.getFcInterface("i1"); //I1 i1= (I1)p1.getFcInterface("i1"); message = i1.processInputMessage(new Message(MESSAGE)).append(MESSAGE); } catch (Exception e) { e.printStackTrace(); try { deploymentDescriptor.killall(); } catch (ProActiveException pae) { pae.printStackTrace(); } } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/c8d47023e2aff074052dbb51e6002f0373ba7820/Test.java/clean/src/nonregressiontest/component/descriptor/Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
368,
10275,
471,
7286,
4085,
7734,
6314,
3187,
273,
1186,
3896,
18,
588,
626,
3535,
3187,
2932,
768,
2773,
397,
13491,
2030,
22971,
3212,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
368,
10275,
471,
7286,
4085,
7734,
6314,
3187,
273,
1186,
3896,
18,
588,
626,
3535,
3187,
2932,
768,
2773,
397,
13491,
2030,
22971,
3212,
... |
return method.getDeclaringClass(); | return isConstructor() ? Type.pointer_type : method.getDeclaringClass(); | public Type getParameterType(int index) { if (! getStaticFlag()) { if (index == 0) return method.getDeclaringClass(); index--; } int lenTypes = argTypes.length; if (index < lenTypes - 1) return argTypes[index]; boolean varArgs = takesVarArgs(); if (index < lenTypes && ! varArgs) return argTypes[index]; // if (! varArgs) ERROR; Type restType = argTypes[lenTypes - 1]; if (restType instanceof ArrayType) return ((ArrayType) restType).getComponentType(); else // Should be LList or some other Sequence class. return Type.pointer_type; } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/9ffd285436376614d0cda3108aca14db21d8c15c/PrimProcedure.java/buggy/gnu/expr/PrimProcedure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1412,
5575,
559,
12,
474,
770,
13,
225,
288,
565,
309,
16051,
23414,
4678,
10756,
1377,
288,
3639,
309,
261,
1615,
422,
374,
13,
1850,
327,
353,
6293,
1435,
692,
1412,
18,
10437,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1412,
5575,
559,
12,
474,
770,
13,
225,
288,
565,
309,
16051,
23414,
4678,
10756,
1377,
288,
3639,
309,
261,
1615,
422,
374,
13,
1850,
327,
353,
6293,
1435,
692,
1412,
18,
10437,
... |
sentSuccess = true; | private void realRun() { runThread = Thread.currentThread(); // Send Accepted Message accepted = DMT.createFNPSSKAccepted(uid, pubKey == null); try { source.send(accepted, this); } catch (NotConnectedException e1) { Logger.minor(this, "Lost connection to source"); return; } if(pubKey == null) { // Wait for pub key Logger.minor(this, "Waiting for pubkey on "+uid); MessageFilter mfPK = MessageFilter.create().setType(DMT.FNPSSKPubKey).setField(DMT.UID, uid).setSource(source).setTimeout(PUBKEY_TIMEOUT); try { Message pk = node.usm.waitFor(mfPK, this); if(pk == null) { Logger.normal(this, "Failed to receive FNPSSKPubKey for "+uid); return; } byte[] pubkeyAsBytes = ((ShortBuffer)pk.getObject(DMT.PUBKEY_AS_BYTES)).getData(); try { pubKey = new DSAPublicKey(pubkeyAsBytes); Logger.minor(this, "Got pubkey on "+uid+" : "+pubKey); Message confirm = DMT.createFNPSSKPubKeyAccepted(uid); try { source.sendAsync(confirm, null, 0, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source on "+uid); return; } } catch (IOException e) { Logger.error(this, "Invalid pubkey from "+source+" on "+uid); Message msg = DMT.createFNPDataInsertRejected(uid, DMT.DATA_INSERT_REJECTED_SSK_ERROR); try { source.send(msg, this); } catch (NotConnectedException ee) { // Ignore } return; } } catch (DisconnectedException e) { Logger.minor(this, "Lost connection to source on "+uid); return; } } try { key.setPubKey(pubKey); block = new SSKBlock(data, headers, key, false); } catch (SSKVerifyException e1) { Logger.error(this, "Invalid SSK from "+source, e1); Message msg = DMT.createFNPDataInsertRejected(uid, DMT.DATA_INSERT_REJECTED_SSK_ERROR); try { source.send(msg, this); } catch (NotConnectedException e) { // Ignore } return; } SSKBlock storedBlock = node.fetch(key); if((storedBlock != null) && !storedBlock.equals(block)) { Message msg = DMT.createFNPSSKDataFound(uid, storedBlock.getRawHeaders(), storedBlock.getRawData()); try { source.send(msg, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source on "+uid); } block = storedBlock; } Logger.minor(this, "Got block for "+key+" for "+uid); if(htl == 0) { Message msg = DMT.createFNPInsertReply(uid); sentSuccess = true; try { source.send(msg, this); } catch (NotConnectedException e) { // Ignore } canCommit = true; finish(SSKInsertSender.SUCCESS); return; } if(htl > 0) sender = node.makeInsertSender(block, htl, uid, source, false, closestLoc, true); boolean receivedRejectedOverload = false; while(true) { synchronized(sender) { try { if(sender.getStatus() == SSKInsertSender.NOT_FINISHED) sender.wait(5000); } catch (InterruptedException e) { // Ignore } } if((!receivedRejectedOverload) && sender.receivedRejectedOverload()) { receivedRejectedOverload = true; // Forward it Message m = DMT.createFNPRejectedOverload(uid, false); try { source.send(m, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } } if(sender.hasRecentlyCollided()) { // Forward collision data = sender.getData(); headers = sender.getHeaders(); try { block = new SSKBlock(data, headers, key, true); } catch (SSKVerifyException e1) { // Is verified elsewhere... throw new Error("Impossible: "+e1); } Message msg = DMT.createFNPSSKDataFound(uid, headers, data); try { source.send(msg, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } } int status = sender.getStatus(); if(status == SSKInsertSender.NOT_FINISHED) { continue; } // Local RejectedOverload's (fatal). // Internal error counts as overload. It'd only create a timeout otherwise, which is the same thing anyway. // We *really* need a good way to deal with nodes that constantly R_O! if((status == SSKInsertSender.TIMED_OUT) || (status == SSKInsertSender.GENERATED_REJECTED_OVERLOAD) || (status == SSKInsertSender.INTERNAL_ERROR)) { Message msg = DMT.createFNPRejectedOverload(uid, true); try { source.send(msg, this); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } // Might as well store it anyway. if((status == SSKInsertSender.TIMED_OUT) || (status == SSKInsertSender.GENERATED_REJECTED_OVERLOAD)) canCommit = true; finish(status); return; } if((status == SSKInsertSender.ROUTE_NOT_FOUND) || (status == SSKInsertSender.ROUTE_REALLY_NOT_FOUND)) { Message msg = DMT.createFNPRouteNotFound(uid, sender.getHTL()); try { source.send(msg, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } canCommit = true; finish(status); return; } if(status == SSKInsertSender.SUCCESS) { Message msg = DMT.createFNPInsertReply(uid); sentSuccess = true; try { source.send(msg, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection to source"); return; } canCommit = true; finish(status); return; } // Otherwise...? Logger.error(this, "Unknown status code: "+sender.getStatusString()); Message msg = DMT.createFNPRejectedOverload(uid, true); try { source.send(msg, null); } catch (NotConnectedException e) { // Ignore } finish(status); return; } } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/eda25544c98825ea7f1e9ddd5c08127cd671f788/SSKInsertHandler.java/clean/src/freenet/node/SSKInsertHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2863,
1997,
1435,
288,
3639,
1086,
3830,
273,
4884,
18,
2972,
3830,
5621,
7734,
368,
2479,
8662,
329,
3639,
2350,
8494,
273,
463,
6152,
18,
2640,
19793,
52,
1260,
47,
18047,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2863,
1997,
1435,
288,
3639,
1086,
3830,
273,
4884,
18,
2972,
3830,
5621,
7734,
368,
2479,
8662,
329,
3639,
2350,
8494,
273,
463,
6152,
18,
2640,
19793,
52,
1260,
47,
18047,
12... | |
return NodeCHK.read(raf); } | return NodeCHK.readCHK(raf); } else if(type == NodeSSK.TYPE) return NodeSSK.readSSK(raf); | public static final Key read(DataInput raf) throws IOException { short type = raf.readShort(); if(type == NodeCHK.TYPE) { return NodeCHK.read(raf); } throw new IOException("Unrecognized format: "+type); } | 46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/b559c2894d0056eb60ed1119dfeec68f972d122e/Key.java/buggy/src/freenet/keys/Key.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
1929,
855,
12,
751,
1210,
24671,
13,
1216,
1860,
288,
3639,
3025,
618,
273,
24671,
18,
896,
4897,
5621,
3639,
309,
12,
723,
422,
2029,
1792,
47,
18,
2399,
13,
288,
5411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
1929,
855,
12,
751,
1210,
24671,
13,
1216,
1860,
288,
3639,
3025,
618,
273,
24671,
18,
896,
4897,
5621,
3639,
309,
12,
723,
422,
2029,
1792,
47,
18,
2399,
13,
288,
5411,... |
if (jj_scan_token(BYTE)) return true; | if (jj_scan_token(LPAREN)) return true; if (jj_3R_68()) return true; if (jj_scan_token(RPAREN)) return true; Token xsp; xsp = jj_scanpos; if (jj_scan_token(88)) { jj_scanpos = xsp; if (jj_scan_token(87)) { jj_scanpos = xsp; if (jj_scan_token(75)) { jj_scanpos = xsp; if (jj_scan_token(72)) { jj_scanpos = xsp; if (jj_scan_token(53)) { jj_scanpos = xsp; if (jj_scan_token(50)) { jj_scanpos = xsp; if (jj_scan_token(41)) { jj_scanpos = xsp; if (jj_3R_177()) return true; } } } } } } } | final private boolean jj_3R_121() { if (jj_scan_token(BYTE)) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
26009,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
48,
15111,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
23,
54,
67,
9470,
10756... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
26009,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
48,
15111,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
23,
54,
67,
9470,
10756... |
evaluator.cook(r); | evaluator.cook(content.toString(), r); | private Object compile(final Resource content, final boolean query) { Object ctx = objectCache.get(content); if (ctx == null) { ScriptEvaluator evaluator = new ScriptEvaluator(); //Exception are not required to be handled evaluator.setThrownExceptions(THROWN_EXCEPTIONS); evaluator.setParentClassLoader(getClass().getClassLoader()); evaluator.setExtendedType(query ? JaninoQuery.class: JaninoScript.class); evaluator.setStaticMethod(false); Reader r = null; try { r = content.open(); evaluator.cook(r);//todo use resource name } catch (Exception e) { throw new JaninoProviderException("Compilation failed", e); } finally { IOUtils.closeSilently(r); } Class<?> cl = evaluator.getMethod().getDeclaringClass(); try { ctx = cl.newInstance(); } catch (Exception e) { throw new JaninoProviderException("Unable to instantiate compiled class",e); } objectCache.put(content, ctx); } return ctx; } | 55401 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55401/ac26bc4e797864f870691c70a72f8d94e894e46c/CodeCompiler.java/buggy/drivers/src/java/scriptella/driver/janino/CodeCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
4074,
12,
6385,
2591,
913,
16,
727,
1250,
843,
13,
288,
3639,
1033,
1103,
273,
733,
1649,
18,
588,
12,
1745,
1769,
3639,
309,
261,
5900,
422,
446,
13,
288,
5411,
7739,
15876... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
4074,
12,
6385,
2591,
913,
16,
727,
1250,
843,
13,
288,
3639,
1033,
1103,
273,
733,
1649,
18,
588,
12,
1745,
1769,
3639,
309,
261,
5900,
422,
446,
13,
288,
5411,
7739,
15876... |
else return new RGB(255,255, 225); | return new RGB(255,255, 225); | private static RGB getBgColor() { if (BG_COLOR_RGB != null) return BG_COLOR_RGB; else return new RGB(255,255, 225); // RGB value of info bg color on WindowsXP } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/7a1af2dd9d3563bc96ecc8210ca026e1ed44e2ab/HTMLPrinter.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/HTMLPrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
11510,
2882,
75,
2957,
1435,
288,
202,
202,
430,
261,
30098,
67,
10989,
67,
11343,
480,
446,
13,
1082,
202,
2463,
30609,
67,
10989,
67,
11343,
31,
202,
202,
12107,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
11510,
2882,
75,
2957,
1435,
288,
202,
202,
430,
261,
30098,
67,
10989,
67,
11343,
480,
446,
13,
1082,
202,
2463,
30609,
67,
10989,
67,
11343,
31,
202,
202,
12107,
1082,
... |
verifyEquals("Click here for next page", selenium.getText("link")); selenium.click("link"); | verifyEquals("Click here for next page", selenium.getText("link")); selenium.click("link"); | public void test() throws Throwable { selenium.setContext("Test Click", "info"); /* Test Click */ // open|./tests/html/test_click_page1.html| selenium.open("./tests/html/test_click_page1.html"); /* Click a regular link */ // verifyText|link|Click here for next page verifyEquals("Click here for next page", selenium.getText("link")); // clickAndWait|link| selenium.click("link"); selenium.waitForPageToLoad("60000"); // verifyTitle|Click Page Target| verifyEquals("Click Page Target", selenium.getTitle()); // clickAndWait|previousPage| selenium.click("previousPage"); selenium.waitForPageToLoad("60000"); // verifyTitle|Click Page 1| verifyEquals("Click Page 1", selenium.getTitle()); /* Click a link with an enclosed image */ // clickAndWait|linkWithEnclosedImage| selenium.click("linkWithEnclosedImage"); selenium.waitForPageToLoad("60000"); // verifyTitle|Click Page Target| verifyEquals("Click Page Target", selenium.getTitle()); // clickAndWait|previousPage| selenium.click("previousPage"); selenium.waitForPageToLoad("60000"); /* Click an image enclosed by a link */ // clickAndWait|enclosedImage| selenium.click("enclosedImage"); selenium.waitForPageToLoad("60000"); // verifyTitle|Click Page Target| verifyEquals("Click Page Target", selenium.getTitle()); // clickAndWait|previousPage| selenium.click("previousPage"); selenium.waitForPageToLoad("60000"); /* Click a link with an href anchor target within this page */ // click|linkToAnchorOnThisPage| selenium.click("linkToAnchorOnThisPage"); // verifyTitle|Click Page 1| verifyEquals("Click Page 1", selenium.getTitle()); /* Click a link where onclick returns false */ // click|linkWithOnclickReturnsFalse| selenium.click("linkWithOnclickReturnsFalse"); /* Need a pause to give the page a chance to reload (so this test can fail) */ // pause|300 pause(300); // verifyTitle|Click Page 1| verifyEquals("Click Page 1", selenium.getTitle()); /* TODO Click a link with a target attribute */ checkForVerificationErrors(); } | 25408 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25408/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestClick.java/buggy/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestClick.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
18417,
3113,
315,
1376,
8863,
225,
1748,
7766,
18417,
4202,
1195,
1082,
202,
759,
1696,
96,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
18417,
3113,
315,
1376,
8863,
225,
1748,
7766,
18417,
4202,
1195,
1082,
202,
759,
1696,
96,
18,
1... |
return result; | return address; | public ProtocolAddressBase createAddress (String address) { List factorylist = getTransportManager().getFactoriesList(); ProtocolAddressBase result = null; for (Iterator i = factorylist.iterator(); i.hasNext() && result == null;) { FactoriesBase f = (FactoriesBase)i.next(); result = f.create_protocol_address(address); } return result; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/0a95ce207a7d1951804f65b8092e36f02ac71b3d/ORB.java/buggy/src/org/jacorb/orb/ORB.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4547,
1887,
2171,
752,
1887,
261,
780,
1758,
13,
565,
288,
3639,
987,
3272,
1098,
273,
29801,
1318,
7675,
588,
19271,
682,
5621,
3639,
4547,
1887,
2171,
563,
273,
446,
31,
3639,
364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4547,
1887,
2171,
752,
1887,
261,
780,
1758,
13,
565,
288,
3639,
987,
3272,
1098,
273,
29801,
1318,
7675,
588,
19271,
682,
5621,
3639,
4547,
1887,
2171,
563,
273,
446,
31,
3639,
364... |
org.exist.xquery.parser.XQueryAST tmp254_AST = null; tmp254_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp254_AST); match(140); | org.exist.xquery.parser.XQueryAST tmp258_AST = null; tmp258_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp258_AST); match(142); | public final void documentTest() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST documentTest_AST = null; org.exist.xquery.parser.XQueryAST tmp254_AST = null; tmp254_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp254_AST); match(140); match(LPAREN); match(RPAREN); documentTest_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = documentTest_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1668,
4709,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
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,
225,
202,
482,
727,
918,
1668,
4709,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3... |
return ( _indent > 0 ); | return ( _indent > 0 ); | public boolean getIndenting() { return ( _indent > 0 ); } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/af047e33ee4283cd437ffa6760ccff3d3d2bf9ea/OutputFormat.java/buggy/src/org/apache/xml/serialize/OutputFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
336,
7790,
310,
1435,
565,
288,
202,
2463,
261,
389,
9355,
405,
374,
11272,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
336,
7790,
310,
1435,
565,
288,
202,
2463,
261,
389,
9355,
405,
374,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
int index = path.indexOf("?"); | int index= path.indexOf("?"); | public void setPath(String path) { if (GET.equals(getMethod())) { int index = path.indexOf("?"); if (index > -1) { setProperty(PATH, path.substring(0, index)); parseArguments(path.substring(index + 1)); } else { setProperty(PATH, path); } } else { setProperty(PATH, path); } } | 50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/2b28185336c09d05f1ac5cd0c917c815f8fe7976/HTTPSampler.java/buggy/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16475,
12,
780,
589,
13,
565,
288,
3639,
309,
261,
3264,
18,
14963,
12,
588,
1305,
1435,
3719,
3639,
288,
5411,
509,
770,
33,
589,
18,
31806,
2932,
7225,
1769,
5411,
309,
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,
918,
16475,
12,
780,
589,
13,
565,
288,
3639,
309,
261,
3264,
18,
14963,
12,
588,
1305,
1435,
3719,
3639,
288,
5411,
509,
770,
33,
589,
18,
31806,
2932,
7225,
1769,
5411,
309,
261... |
public void prolog() throws RecognitionException { String name = null; String packageName = ""; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:243:17: ( opt_eol (name= package_statement )? ( extra_statement | expander )* opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:243:17: opt_eol (name= package_statement )? ( extra_statement | expander )* opt_eol { following.push(FOLLOW_opt_eol_in_prolog115); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:244:17: (name= package_statement )? int alt3=2; int LA3_0 = input.LA(1); if ( LA3_0==16 ) { alt3=1; } else if ( LA3_0==-1||LA3_0==EOL||LA3_0==15||(LA3_0>=17 && LA3_0<=20)||LA3_0==26||LA3_0==28 ) { alt3=2; } else { NoViableAltException nvae = new NoViableAltException("244:17: (name= package_statement )?", 3, 0, input); throw nvae; } switch (alt3) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:244:19: name= package_statement { following.push(FOLLOW_package_statement_in_prolog123); name=package_statement(); following.pop(); packageName = name; } break; } this.packageDescr = new PackageDescr( name ); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:248:17: ( extra_statement | expander )* loop4: do { int alt4=3; alt4 = dfa4.predict(input); switch (alt4) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:248:25: extra_statement { following.push(FOLLOW_extra_statement_in_prolog138); extra_statement(); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:249:25: expander { following.push(FOLLOW_expander_in_prolog144); expander(); following.pop(); } break; default : break loop4; } } while (true); following.push(FOLLOW_opt_eol_in_prolog156); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/db9ec7bad93dfc15e8ce115941d6e9f0749d5a10/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
450,
1330,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
1171,
202,
202,
780,
9929,
273,
1408,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
1330,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
1171,
202,
202,
780,
9929,
273,
1408,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
84... | ||
Constructor batchCompilerConstructor = c.getConstructor( new Class[] { PrintWriter.class, PrintWriter.class, Boolean.TYPE }); Object batchCompilerInstance = batchCompilerConstructor.newInstance( new Object[] { new PrintWriter(System.out), new PrintWriter(System.err), new Boolean(true)}); Method compile = c.getMethod("compile", new Class[] { String[].class }); Object result = compile.invoke( batchCompilerInstance, new Object[] { cmd.getArguments()}); | Constructor batchCompilerConstructor = c.getConstructor(new Class[] { PrintWriter.class, PrintWriter.class, Boolean.TYPE}); Object batchCompilerInstance = batchCompilerConstructor.newInstance(new Object[] {new PrintWriter(System.out), new PrintWriter(System.err), new Boolean(true)}); Method compile = c.getMethod("compile", new Class[] {String[].class}); Object result = compile.invoke(batchCompilerInstance, new Object[] { cmd.getArguments()}); | public boolean execute() throws BuildException { attributes.log(Util.getString("ant.jdtadapter.info.usingJDTCompiler"), Project.MSG_VERBOSE); //$NON-NLS-1$ Commandline cmd = setupJavacCommand(); try { Class c = Class.forName(compilerClass); Constructor batchCompilerConstructor = c.getConstructor( new Class[] { PrintWriter.class, PrintWriter.class, Boolean.TYPE }); Object batchCompilerInstance = batchCompilerConstructor.newInstance( new Object[] { new PrintWriter(System.out), new PrintWriter(System.err), new Boolean(true)}); Method compile = c.getMethod("compile", new Class[] { String[].class }); //$NON-NLS-1$ Object result = compile.invoke( batchCompilerInstance, new Object[] { cmd.getArguments()}); final boolean resultValue = ((Boolean) result).booleanValue(); if (!resultValue && verbose) { System.out.println(Util.getString("ant.jdtadapter.error.compilationFailed", this.logFileName)); //$NON-NLS-1$ } return resultValue; } catch (ClassNotFoundException cnfe) { throw new BuildException(Util.getString("ant.jdtadapter.error.cannotFindJDTCompiler")); //$NON-NLS-1$ } catch (Exception ex) { throw new BuildException(ex); } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/43cd6a7d9958222f67164398a9ef01da87132a6f/JDTCompilerAdapter.java/clean/org.eclipse.jdt.core/antadapter/org/eclipse/jdt/core/JDTCompilerAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1836,
1435,
1216,
18463,
288,
202,
202,
4350,
18,
1330,
12,
1304,
18,
588,
780,
2932,
970,
18,
78,
7510,
10204,
18,
1376,
18,
9940,
46,
9081,
9213,
6,
3631,
5420,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1836,
1435,
1216,
18463,
288,
202,
202,
4350,
18,
1330,
12,
1304,
18,
588,
780,
2932,
970,
18,
78,
7510,
10204,
18,
1376,
18,
9940,
46,
9081,
9213,
6,
3631,
5420,
18,
... |
manager.beginRule(rule, getEventLoopMonitor()); | manager.beginRule(rule, ((Workbench)PlatformUI.getWorkbench()).isStarting() ? new NullProgressMonitor() : getEventLoopMonitor()); | public void run() { try { manager.beginRule(rule, getEventLoopMonitor()); context.run(false, false, runnable); } catch (InvocationTargetException e) { exception[0] = e; } catch (InterruptedException e) { canceled[0] = e; } catch (OperationCanceledException e) { canceled[0] = new InterruptedException(e.getMessage()); } finally { manager.endRule(rule); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8243b86b3086f41e26ea3b63f165ae6e3674ff64/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
7734,
775,
288,
10792,
3301,
18,
10086,
2175,
12,
5345,
16,
14015,
2421,
22144,
13,
8201,
5370,
18,
588,
2421,
22144,
1435,
2934,
291,
11715,
1435,
692,
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,
2398,
1071,
918,
1086,
1435,
288,
7734,
775,
288,
10792,
3301,
18,
10086,
2175,
12,
5345,
16,
14015,
2421,
22144,
13,
8201,
5370,
18,
588,
2421,
22144,
1435,
2934,
291,
11715,
1435,
692,
394,
... |
disposed = true; | ++disposeCount; | public void dispose() { super.dispose(); disposed = true; } | 45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/0f0cd7c88657f6b409b696ab1a836a26dca0d359/ApplicationInstanceTest.java/buggy/src/app/test/nextapp/echo2/app/test/ApplicationInstanceTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
15825,
1435,
288,
5411,
2240,
18,
2251,
4150,
5621,
5411,
965,
2251,
4150,
1380,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
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,
540,
1071,
918,
15825,
1435,
288,
5411,
2240,
18,
2251,
4150,
5621,
5411,
965,
2251,
4150,
1380,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ImageItem image = (ImageItem) getElement( ); StructRefValue refValue = (StructRefValue) image.getLocalProperty( getModule( ), IImageItemModel.IMAGE_NAME_PROP ); if ( refValue != null ) { return refValue.getName( ); } String name = getStringProperty( IImageItemModel.IMAGE_NAME_PROP ); if ( name == null ) return null; Module module = getModule( ); DesignElement parent = image.isVirtualElement( ) ? image .getVirtualParent( ) : image.getExtendsElement( ); while ( parent != null ) { if ( parent .getLocalProperty( null, IImageItemModel.IMAGE_NAME_PROP ) != null ) { module = parent.getRoot( ); break; } parent = parent.isVirtualElement( ) ? parent.getVirtualParent( ) : parent.getExtendsElement( ); } if ( module instanceof Library ) { String namespace = ( (Library) module ).getNamespace( ); return StringUtil.buildQualifiedReference( namespace, name ); } return name; | return getStringProperty( IImageItemModel.IMAGE_NAME_PROP ); | public String getImageName( ) { if ( !DesignChoiceConstants.IMAGE_REF_TYPE_EMBED .equalsIgnoreCase( getStringProperty( ImageItem.SOURCE_PROP ) ) ) return null; ImageItem image = (ImageItem) getElement( ); StructRefValue refValue = (StructRefValue) image.getLocalProperty( getModule( ), IImageItemModel.IMAGE_NAME_PROP ); if ( refValue != null ) { return refValue.getName( ); } String name = getStringProperty( IImageItemModel.IMAGE_NAME_PROP ); if ( name == null ) return null; // must be extends Module module = getModule( ); DesignElement parent = image.isVirtualElement( ) ? image .getVirtualParent( ) : image.getExtendsElement( ); while ( parent != null ) { if ( parent .getLocalProperty( null, IImageItemModel.IMAGE_NAME_PROP ) != null ) { module = parent.getRoot( ); break; } parent = parent.isVirtualElement( ) ? parent.getVirtualParent( ) : parent.getExtendsElement( ); } if ( module instanceof Library ) { String namespace = ( (Library) module ).getNamespace( ); return StringUtil.buildQualifiedReference( namespace, name ); } return name; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/3fb558e013bac00fe417e4959c7781015fb7f8fb/ImageHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ImageHandle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10567,
461,
12,
262,
202,
95,
202,
202,
430,
261,
401,
15478,
10538,
2918,
18,
13603,
67,
10771,
67,
2399,
67,
3375,
22235,
9506,
202,
18,
14963,
5556,
12,
4997,
1396,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
10567,
461,
12,
262,
202,
95,
202,
202,
430,
261,
401,
15478,
10538,
2918,
18,
13603,
67,
10771,
67,
2399,
67,
3375,
22235,
9506,
202,
18,
14963,
5556,
12,
4997,
1396,
12... |
data = new short[seq.size()]; addAll(seq); | data = S16Vector.empty; | public U16Vector(Sequence seq) { data = new short[seq.size()]; addAll(seq); } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/a6832beb1c7e39094e94e80c395d319bdbacd189/U16Vector.java/buggy/gnu/lists/U16Vector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
587,
2313,
5018,
12,
4021,
3833,
13,
225,
288,
565,
501,
273,
394,
3025,
63,
5436,
18,
1467,
1435,
15533,
565,
5428,
12,
5436,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
587,
2313,
5018,
12,
4021,
3833,
13,
225,
288,
565,
501,
273,
394,
3025,
63,
5436,
18,
1467,
1435,
15533,
565,
5428,
12,
5436,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
input.close(); } | input.close(); } | protected void initMapping() throws IOException, ServletException { String value = null; // Link our mappings collection to this servlet instance mappings.setServlet(this); // Initialize the debugging detail level we will use int detail; try { value = getServletConfig().getInitParameter("detail"); detail = Integer.parseInt(value); } catch (Throwable t) { detail = 0; } // Initialize the validating XML parser flag value = getServletConfig().getInitParameter("validating"); if (value != null) { if (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("yes")) validating = true; else validating = false; } // Initialize the name of our ActionFormBean implementation class value = getServletConfig().getInitParameter("formBean"); if (value != null) formBeanClass = value; // Initialize the name of our ActionForward implementation class value = getServletConfig().getInitParameter("forward"); if (value != null) forwardClass = value; // Initialize the name of our ActionMapping implementation class value = getServletConfig().getInitParameter("mapping"); if (value != null) mappingClass = value; // Initialize the context-relative path to our configuration resources value = getServletConfig().getInitParameter("config"); if (value != null) config = value; if (debug >= 1) log(internal.getMessage("configInit", config)); // Acquire an input stream to our configuration resource InputStream input = getServletContext().getResourceAsStream(config); if (input == null) throw new UnavailableException (internal.getMessage("configMissing", config)); // Build a digester to process our configuration resource Digester digester = initDigester(detail); // Parse the input stream to configure our mappings try { formBeans.setFast(false); forwards.setFast(false); mappings.setFast(false); digester.parse(input); mappings.setFast(true); forwards.setFast(true); formBeans.setFast(true); } catch (SAXException e) { throw new ServletException (internal.getMessage("configParse", config), e); } finally { input.close(); } } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/893cf1f05ff2aed2f868307f45763b5b3bc5a257/ActionServlet.java/clean/src/share/org/apache/struts/action/ActionServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
3233,
1435,
1216,
1860,
16,
16517,
288,
202,
780,
460,
273,
446,
31,
3639,
368,
4048,
3134,
7990,
1849,
358,
333,
8100,
791,
3639,
7990,
18,
542,
4745,
12,
2211,
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,
4750,
918,
1208,
3233,
1435,
1216,
1860,
16,
16517,
288,
202,
780,
460,
273,
446,
31,
3639,
368,
4048,
3134,
7990,
1849,
358,
333,
8100,
791,
3639,
7990,
18,
542,
4745,
12,
2211,
1769,
... |
(type == SOURCE ? source : skelSource), o, dbIdsStored); | (type == SOURCE ? source : skelSource), o, dbIdsStored, this, source, skelSource); | protected InterMineObject store(InterMineObject o, Source source, Source skelSource, int type) throws ObjectStoreException { if (o == null) { return null; } //String oText = o.getClass().getName() + ":" + o.getId().toString(); //int oTextLength = oText.length(); //oText = oText.substring(oTextLength > 60 ? 60 : oTextLength); //LOG.debug("store() called on " + oText); Set equivalentObjects = getEquivalentObjects(o, source); if ((equivalentObjects.size() == 1) && (type == SKELETON)) { InterMineObject onlyEquivalent = (InterMineObject) equivalentObjects.iterator().next(); if (onlyEquivalent instanceof ProxyReference) { //LOG.debug("store() finished trivially for object " + oText); return onlyEquivalent; } } Integer newId = null; // if multiple equivalent objects in database just use id of first one Iterator equivalentIter = equivalentObjects.iterator(); if (equivalentIter.hasNext()) { newId = ((InterMineObject) equivalentIter.next()).getId(); } Set classes = new HashSet(); classes.addAll(DynamicUtil.decomposeClass(o.getClass())); Iterator objIter = equivalentObjects.iterator(); while (objIter.hasNext()) { InterMineObject obj = (InterMineObject) objIter.next(); if (obj instanceof ProxyReference) { obj = ((ProxyReference) obj).getObject(); } try { classes.addAll(DynamicUtil.decomposeClass(obj.getClass())); } catch (Exception e) { LOG.error("Broken with: " + DynamicUtil.decomposeClass(o.getClass())); throw new ObjectStoreException(e); } } if (newId == null) { newId = getSerial(); } InterMineObject newObj = (InterMineObject) DynamicUtil.createObject(classes); newObj.setId(newId); if (type != FROM_DB) { assignMapping(o.getId(), newId); } Map trackingMap = new HashMap(); try { Map fieldToEquivalentObjects = new HashMap(); Map fieldDescriptors = getModel().getFieldDescriptorsForClass(newObj.getClass()); Set modelFieldNames = fieldDescriptors.keySet(); Set typeUtilFieldNames = TypeUtil.getFieldInfos(newObj.getClass()).keySet(); if (!modelFieldNames.equals(typeUtilFieldNames)) { throw new ObjectStoreException("Failed to store data not in the model"); } Iterator fieldIter = fieldDescriptors.entrySet().iterator(); while (fieldIter.hasNext()) { FieldDescriptor field = (FieldDescriptor) ((Map.Entry) fieldIter.next()).getValue(); String fieldName = field.getName(); if (!"id".equals(fieldName)) { Set sortedEquivalentObjects; // always add to collections, resolve other clashes by priority if (field instanceof CollectionDescriptor) { sortedEquivalentObjects = new HashSet(); } else { Comparator compare = new SourcePriorityComparator(dataTracker, field, (type == SOURCE ? source : skelSource), o, dbIdsStored); sortedEquivalentObjects = new TreeSet(compare); } if (getModel().getFieldDescriptorsForClass(o.getClass()) .containsKey(fieldName)) { sortedEquivalentObjects.add(o); } objIter = equivalentObjects.iterator(); while (objIter.hasNext()) { InterMineObject obj = (InterMineObject) objIter.next(); Source fieldSource = dataTracker.getSource(obj.getId(), fieldName); if ((equivalentObjects.size() == 1) && (fieldSource != null) && (fieldSource.equals(source) || (fieldSource.equals(skelSource) && (type != SOURCE)))) { if (type == SOURCE) { String errMessage; if (dbIdsStored.contains(obj.getId())) { errMessage = "There is already an equivalent " + "in the database from this source (" + source + ") from *this* run; new object from source: \"" + o + "\", object from database (read earlier in this run): \"" + obj + "\"; noticed problem while merging field \"" + field.getName() + "\" originally read from source: " + fieldSource; } else { errMessage = "There is already an equivalent " + "in the database from this source (" + source + ") from a *previous* run; " + "object from source in this run: \"" + o + "\", object from database: \"" + obj + "\"; noticed problem while merging field \"" + field.getName() + "\" originally read from source: " + fieldSource; } if (!ignoreDuplicates) { LOG.error(errMessage); throw new IllegalArgumentException(errMessage); } } //LOG.debug("store() finished simply for object " + oText); return obj; } // materialise proxies before searching for this field if (obj instanceof ProxyReference) { ProxyReference newproxy = (ProxyReference) obj; obj = ((ProxyReference) obj).getObject(); if (obj == null) { LOG.error("obj is null "); LOG.error ("o " + o); LOG.error("proxyId " + newproxy.getId()); LOG.error("proxy " + newproxy); ObjectStore os = newproxy.getObjectStore(); os.invalidateObjectById(newproxy.getId()); obj = newproxy.getObject(); LOG.error("obj: " + obj); } } try { if (getModel().getFieldDescriptorsForClass(obj.getClass()) .containsKey(fieldName)) { sortedEquivalentObjects.add(obj); } } catch (RuntimeException e) { LOG.error("fieldName " + fieldName); LOG.error ("o " + o); LOG.error("id " + obj.getId()); LOG.error("obj " + obj); LOG.error("obj.getClass() " + obj.getClass()); LOG.error("desc " + getModel().getFieldDescriptorsForClass(obj.getClass())); LOG.error("error " , e); throw e; } } fieldToEquivalentObjects.put(field, sortedEquivalentObjects); } } Iterator fieldToEquivIter = fieldToEquivalentObjects.entrySet().iterator(); while (fieldToEquivIter.hasNext()) { Source lastSource = null; Map.Entry fieldToEquivEntry = (Map.Entry) fieldToEquivIter.next(); FieldDescriptor field = (FieldDescriptor) fieldToEquivEntry.getKey(); Set sortedEquivalentObjects = (Set) fieldToEquivEntry.getValue(); String fieldName = field.getName(); objIter = sortedEquivalentObjects.iterator(); while (objIter.hasNext()) { InterMineObject obj = (InterMineObject) objIter.next(); if (obj == o) { copyField(obj, newObj, source, skelSource, field, type); lastSource = (type == SOURCE ? source : skelSource); } else { Source fieldSource = dataTracker.getSource(obj.getId(), fieldName); copyField(obj, newObj, fieldSource, fieldSource, field, FROM_DB); lastSource = fieldSource; } } trackingMap.put(fieldName, lastSource); } } catch (IllegalAccessException e) { throw new ObjectStoreException(e); } store(newObj); // We have called store() on an object, and we are about to write all of its data tracking // data. We should tell the data tracker, ONLY IF THE ID OF THE OBJECT IS NEW, so that // the data tracker can cache the writes without having to ask the db if records for that // objectid already exist - we know there aren't. if (newId == null) { dataTracker.clearObj(newObj.getId()); } Iterator trackIter = trackingMap.entrySet().iterator(); while (trackIter.hasNext()) { Map.Entry trackEntry = (Map.Entry) trackIter.next(); String fieldName = (String) trackEntry.getKey(); Source lastSource = (Source) trackEntry.getValue(); dataTracker.setSource(newObj.getId(), fieldName, lastSource); } while (equivalentIter.hasNext()) { InterMineObject objToDelete = (InterMineObject) equivalentIter.next(); delete(objToDelete); } // keep track of skeletons that are stored and remove when replaced by real object if (type == SKELETON) { skeletons.add(newObj.getId()); } else { if (skeletons.contains(newObj.getId().intValue())) { skeletons.set(newObj.getId().intValue(), false); } } //LOG.debug("store() finished normally for object " + oText); return newObj; } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/3e261bd8646cae635f31f5a30ade73ee0a001816/IntegrationWriterDataTrackingImpl.java/clean/intermine/integrate/main/src/org/intermine/dataloader/IntegrationWriterDataTrackingImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5294,
49,
558,
921,
1707,
12,
2465,
49,
558,
921,
320,
16,
4998,
1084,
16,
4998,
4343,
292,
1830,
16,
4766,
565,
509,
618,
13,
1216,
1033,
21151,
288,
3639,
309,
261,
83,
422,
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,
4750,
5294,
49,
558,
921,
1707,
12,
2465,
49,
558,
921,
320,
16,
4998,
1084,
16,
4998,
4343,
292,
1830,
16,
4766,
565,
509,
618,
13,
1216,
1033,
21151,
288,
3639,
309,
261,
83,
422,
4... |
new CommonToken(DOT, "."), | new CommonToken(VARSYM, "."), | public void testQualifiedVarsym() throws TokenStreamException { setInput(new CommonToken(CONSTRUCTOR_ID, "MyModule"), new CommonToken(DOT, "."), new CommonToken(VARSYM, "$$")); assertToken(QVARSYM, "MyModule.$$", fFilter.nextToken()); } | 49351 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49351/16b335c4a54fee43b7b4a98c6026604a7fd503e6/QualifiedIdentifierFilterTest.java/clean/net.sf.eclipsefp.haskell.core.jparser.test/src/net/sf/eclipsefp/haskell/core/jparser/test/QualifiedIdentifierFilterTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8708,
5555,
2942,
1435,
1216,
3155,
1228,
503,
288,
202,
202,
542,
1210,
12,
2704,
5658,
1345,
12,
26935,
916,
67,
734,
16,
315,
12062,
3120,
6,
3631,
6862,
394,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8708,
5555,
2942,
1435,
1216,
3155,
1228,
503,
288,
202,
202,
542,
1210,
12,
2704,
5658,
1345,
12,
26935,
916,
67,
734,
16,
315,
12062,
3120,
6,
3631,
6862,
394,
56... |
ObjectIdentity id1 = new ObjectIdentityImpl("sample.contact.Contact", new Long(1)); ObjectIdentity id2 = new ObjectIdentityImpl("sample.contact.Contact", new Long(2)); ObjectIdentity id3 = new ObjectIdentityImpl("sample.contact.Contact", new Long(3)); ObjectIdentity id4 = new ObjectIdentityImpl("sample.contact.Contact", new Long(4)); ObjectIdentity id5 = new ObjectIdentityImpl("sample.contact.Contact", new Long(5)); ObjectIdentity id6 = new ObjectIdentityImpl("sample.contact.Contact", new Long(6)); | ObjectIdentity id1 = new ObjectIdentityImpl("java.lang.Object", new Long(1)); ObjectIdentity id2 = new ObjectIdentityImpl("java.lang.Object", new Long(2)); ObjectIdentity id3 = new ObjectIdentityImpl("java.lang.Object", new Long(3)); ObjectIdentity id4 = new ObjectIdentityImpl("java.lang.Object", new Long(4)); ObjectIdentity id5 = new ObjectIdentityImpl("java.lang.Object", new Long(5)); ObjectIdentity id6 = new ObjectIdentityImpl("java.lang.Object", new Long(6)); | public void testStub() { ObjectIdentity id1 = new ObjectIdentityImpl("sample.contact.Contact", new Long(1)); ObjectIdentity id2 = new ObjectIdentityImpl("sample.contact.Contact", new Long(2)); ObjectIdentity id3 = new ObjectIdentityImpl("sample.contact.Contact", new Long(3)); ObjectIdentity id4 = new ObjectIdentityImpl("sample.contact.Contact", new Long(4)); ObjectIdentity id5 = new ObjectIdentityImpl("sample.contact.Contact", new Long(5)); ObjectIdentity id6 = new ObjectIdentityImpl("sample.contact.Contact", new Long(6)); Map map = jdbcAclService.readAclsById(new ObjectIdentity[] {id1, id2, id3, id4, id5, id6}); Iterator iterator = map.keySet().iterator(); while (iterator.hasNext()) { ObjectIdentity identity = (ObjectIdentity) iterator.next(); assertEquals(identity, ((Acl) map.get(identity)).getObjectIdentity()); System.out.println(map.get(identity)); } } | 14678 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14678/73cea493c681bf8826b0674932f81324d80d4412/JdbcAclServiceTests.java/buggy/sandbox/src/test/java/org/acegisecurity/acls/jdbc/JdbcAclServiceTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11974,
1435,
288,
3639,
1033,
4334,
612,
21,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
21,
10019,
3639,
1033,
4334,
612,
22,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11974,
1435,
288,
3639,
1033,
4334,
612,
21,
273,
394,
1033,
4334,
2828,
2932,
6358,
18,
8994,
18,
6567,
3113,
394,
3407,
12,
21,
10019,
3639,
1033,
4334,
612,
22,
273,
... |
this.argNames = varNames; this.argCount = 0; this.version = version; | public final void initScriptObject(int version, String[] varNames) { if (varNames == null) { throw new IllegalArgumentException(); } if (!(this.argNames == null)) { // Initialization can only be done once throw new IllegalStateException(); } this.functionName = ""; this.argNames = varNames; this.argCount = 0; this.version = version; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/993454366a57fd32ee051c61ff3a0658292d84f2/NativeFunction.java/clean/js/rhino/src/org/mozilla/javascript/NativeFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1208,
3651,
921,
12,
474,
1177,
16,
514,
8526,
569,
1557,
13,
565,
288,
3639,
309,
261,
1401,
1557,
422,
446,
13,
288,
5411,
604,
394,
2754,
5621,
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,
727,
918,
1208,
3651,
921,
12,
474,
1177,
16,
514,
8526,
569,
1557,
13,
565,
288,
3639,
309,
261,
1401,
1557,
422,
446,
13,
288,
5411,
604,
394,
2754,
5621,
3639,
289,
3639,
309,
... | |
Object value = TypeUtil.getFieldValue(obj, fieldName); | Object value; try { value = TypeUtil.getFieldValue(obj, fieldName); } catch (IllegalAccessException e) { throw new RuntimeException("failed to get field value for field name: " + fieldName + " in " + obj, e); } | private static Set createPKQueriesForClass(Model model, InterMineObject obj, Source source, IntToIntMap idMap, boolean queryNulls, ClassDescriptor cld) throws Exception { Set primaryKeys; if (source == null) { primaryKeys = new HashSet(PrimaryKeyUtil.getPrimaryKeys(cld).values()); } else { primaryKeys = DataLoaderHelper.getPrimaryKeys(cld, source); } Set returnSet = new LinkedHashSet(); Iterator pkSetIter = primaryKeys.iterator(); while (pkSetIter.hasNext()) { PrimaryKey pk = (PrimaryKey) pkSetIter.next(); if (!queryNulls && !objectPrimaryKeyNotNull(model, obj, cld, pk, source)) { continue; } Query query = new Query(); query.setDistinct(false); QueryClass qc = new QueryClass(cld.getType()); query.addFrom(qc); query.addToSelect(qc); ConstraintSet cs = new ConstraintSet(ConstraintOp.AND); Iterator pkIter = pk.getFieldNames().iterator(); PK: while (pkIter.hasNext()) { String fieldName = (String) pkIter.next(); FieldDescriptor fd = cld.getFieldDescriptorByName(fieldName); if (fd instanceof AttributeDescriptor) { Object value = TypeUtil.getFieldValue(obj, fieldName); if (value == null) { cs.addConstraint(new SimpleConstraint(new QueryField(qc, fieldName), ConstraintOp.IS_NULL)); } else { cs.addConstraint(new SimpleConstraint(new QueryField(qc, fieldName), ConstraintOp.EQUALS, new QueryValue(value))); } } else if (fd instanceof CollectionDescriptor) { throw new MetaDataException("A collection cannot be part of" + " a primary key"); } else if (fd instanceof ReferenceDescriptor) { InterMineObject refObj = (InterMineObject) TypeUtil.getFieldProxy(obj, fieldName); if (refObj == null) { QueryObjectReference queryObjectReference = new QueryObjectReference(qc, fieldName); cs.addConstraint(new ContainsConstraint(queryObjectReference, ConstraintOp.IS_NULL)); continue PK; } Integer destId = null; if (refObj.getId() != null) { destId = idMap.get(refObj.getId()); } if (destId == null) { if (refObj instanceof ProxyReference) { refObj = ((ProxyReference) refObj).getObject(); } Query refSubQuery = createPKQuery(model, refObj, source, idMap, queryNulls); ClassDescriptor referencedClassDescriptor = ((ReferenceDescriptor) fd).getReferencedClassDescriptor(); QueryClass qc2 = new QueryClass(referencedClassDescriptor.getType()); query.addFrom(qc2); QueryObjectReference fieldQOF = new QueryObjectReference(qc, fieldName); cs.addConstraint(new ContainsConstraint(fieldQOF, ConstraintOp.CONTAINS, qc2)); cs.addConstraint(new SubqueryConstraint(qc2, ConstraintOp.IN, refSubQuery)); } else { InterMineObject destObj = (InterMineObject) DynamicUtil.createObject(Collections.singleton(InterMineObject.class)); destObj.setId(destId); cs.addConstraint(new ContainsConstraint(new QueryObjectReference(qc, fieldName), ConstraintOp.CONTAINS, destObj)); } } } query.setConstraint(cs); returnSet.add(query); } return returnSet; } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/330b34ed302a894022fab039dbf5f2c820e912bf/DataLoaderHelper.java/buggy/intermine/integrate/main/src/org/intermine/dataloader/DataLoaderHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1000,
752,
8784,
9592,
22581,
12,
1488,
938,
16,
5294,
49,
558,
921,
1081,
16,
4998,
1084,
16,
4766,
9079,
3094,
17864,
863,
612,
863,
16,
1250,
843,
31326,
16,
4766,
9079,
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,
3238,
760,
1000,
752,
8784,
9592,
22581,
12,
1488,
938,
16,
5294,
49,
558,
921,
1081,
16,
4998,
1084,
16,
4766,
9079,
3094,
17864,
863,
612,
863,
16,
1250,
843,
31326,
16,
4766,
9079,
2... |
jjmatchedKind = 52; | jjmatchedKind = 55; | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 52; return 33; } if ((active0 & 0x10000000L) != 0L) return 31; if ((active0 & 0xd000L) != 0L) return 7; return -1; case 1: if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 1; return 33; } if ((active0 & 0x4000L) != 0L) return 5; return -1; case 2: if ((active0 & 0x6000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 2; return 33; } return -1; case 3: if ((active0 & 0x4000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 3; return 33; } if ((active0 & 0x2000000L) != 0L) return 33; return -1; default : return -1; }} | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/e128e4125429834f73621c8aa67036ca877e731e/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
4947,
28565,
40,
507,
67,
20,
12,
474,
949,
16,
1525,
2695,
20,
15329,
282,
1620,
261,
917,
13,
282,
288,
1377,
648,
374,
30,
540,
309,
14015,
3535,
20,
473,
374,
92... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
4947,
28565,
40,
507,
67,
20,
12,
474,
949,
16,
1525,
2695,
20,
15329,
282,
1620,
261,
917,
13,
282,
288,
1377,
648,
374,
30,
540,
309,
14015,
3535,
20,
473,
374,
92... |
public BugzillaCustomQueryWizardPage(TaskRepository repository) { super(TITLE); | public BugzillaCustomQueryWizardPage(TaskRepository repository, BugzillaRepositoryQuery query) { super(TITLE, query.getSummary()); this.query = query; | public BugzillaCustomQueryWizardPage(TaskRepository repository) { super(TITLE); this.repository = repository; setTitle(LABEL_CUSTOM_QUERY);// setDescription(DESCRIPTION); setImageDescriptor(TaskListImages.BANNER_REPOSITORY); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8db6c4ac0db47f2ccb42048cf959072b118e99c1/BugzillaCustomQueryWizardPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaCustomQueryWizardPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16907,
15990,
3802,
1138,
27130,
1964,
12,
2174,
3305,
3352,
13,
288,
202,
202,
9565,
12,
14123,
1769,
202,
202,
2211,
18,
9071,
273,
3352,
31,
202,
202,
542,
4247,
12,
13545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16907,
15990,
3802,
1138,
27130,
1964,
12,
2174,
3305,
3352,
13,
288,
202,
202,
9565,
12,
14123,
1769,
202,
202,
2211,
18,
9071,
273,
3352,
31,
202,
202,
542,
4247,
12,
13545,
... |
long totalFilled=-1; | long total_filled=-1; | public long parseNext() throws IOException { long totalFilled=-1; if (_buffer==null) { _buffer=_buffers.getBuffer(Ajp13Packet.MAX_PACKET_SIZE); _ajpRequestPacket.setBuffer(_buffer); } if (_state==STATE_END) throw new IllegalStateException("STATE_END"); int length=_buffer.length(); if (length==0) { int filled=-1; if (_buffer.markIndex()==0&&_buffer.putIndex()==_buffer.capacity()) throw new IOException("FULL"); if (_endp!=null&&filled<=0) { if (_buffer.space()==0) throw new IOException("FULL"); try { if (totalFilled<0) totalFilled=0; filled=_endp.fill(_buffer); if (filled>0) totalFilled+=filled; } catch (IOException ioe) { Log.debug(ioe); reset(true); throw (ioe instanceof EofException)?ioe:new EofException(ioe); } } if (filled<0) { if (_state==STATE_EOF_CONTENT) { _state=STATE_END; return totalFilled; } else { reset(true); throw new EofException(); } } length=_buffer.length(); } // Parse Header while (_state<STATE_END&&length-->0) { _ajpRequestPacket.next(); switch (_state) { case STATE_START: if (_ajpRequestPacket.parsedInt()) { int _magic=_ajpRequestPacket.getInt(); if (_magic!=Ajp13RequestHeaders.MAGIC) { throw new IOException("Bad AJP13 rcv packet: "+"0x"+Integer.toHexString(_magic)+" expected "+"0x" +Integer.toHexString(Ajp13RequestHeaders.MAGIC)+" "+this); } _state=STATE_PACKET_LENGTH; } break; case STATE_PACKET_LENGTH: if (_ajpRequestPacket.parsedInt()) { int packetLength=_ajpRequestPacket.getInt(); if (packetLength>Ajp13Packet.MAX_PACKET_SIZE) throw new IOException("AJP13 packet ("+packetLength+"bytes) too large for buffer"); _state=STATE_PACKET_TYPE; } break; case STATE_PACKET_TYPE: byte packetType=_ajpRequestPacket.getByte(); switch (packetType) { case Ajp13Packet.FORWARD_REQUEST_ORDINAL: _handler.startForwardRequest(); _state=STATE_REQUEST_METHOD; break; case Ajp13Packet.SHUTDOWN_ORDINAL: // Log.warn("AJP13 SHUTDOWN not supported!"); // break; case Ajp13Packet.CPING_REQUEST_ORDINAL: // handler.cpingRequest(); // break; default: // XXX Throw an Exception here?? Close connection! Log.warn("AJP13 message type ({}) not supported/regonised as a "+"container request",Integer.toString(packetType)); } break; case STATE_REQUEST_METHOD: _handler.parsedMethod(_ajpRequestPacket.getMethod()); _state=STATE_REQUEST_PROTOCOL; break; case STATE_REQUEST_PROTOCOL: if (_ajpRequestPacket.parsedString()) { _handler.parsedProtocol(_ajpRequestPacket.getString()); _state=STATE_REQUEST_URI; } break; case STATE_REQUEST_URI: if (_ajpRequestPacket.parsedString()) { _handler.parsedUri(_ajpRequestPacket.getString()); _state=STATE_REQUEST_REMOTE_ADDR; } break; case STATE_REQUEST_REMOTE_ADDR: if (_ajpRequestPacket.parsedString()) { _handler.parsedRemoteAddr(_ajpRequestPacket.getString()); _state=STATE_REQUEST_REMOTE_HOST; } break; case STATE_REQUEST_REMOTE_HOST: if (_ajpRequestPacket.parsedString()) { _handler.parsedRemoteHost(_ajpRequestPacket.getString()); _state=STATE_REQUEST_SERVER_NAME; } break; case STATE_REQUEST_SERVER_NAME: if (_ajpRequestPacket.parsedString()) { _handler.parsedServerName(_ajpRequestPacket.getString()); _state=STATE_REQUEST_SERVER_PORT; } break; case STATE_REQUEST_SERVER_PORT: if (_ajpRequestPacket.parsedInt()) { _handler.parsedServerPort(_ajpRequestPacket.getInt()); _state=STATE_REQUEST_SSL_SECURE; } break; case STATE_REQUEST_SSL_SECURE: _handler.parsedSslSecure(_ajpRequestPacket.getBool()); _state=STATE_REQUEST_HEADERS; break; case STATE_REQUEST_HEADERS: if (_ajpRequestPacket.parsedHeaderCount()) { _state=_ajpRequestPacket.parsedHeaders()?STATE_REQUEST_ATTR:STATE_REQUEST_HEADER_NAME; } break; case STATE_REQUEST_HEADER_NAME: if (_ajpRequestPacket.parsedHeaderName()) { _state=STATE_REQUEST_HEADER_VALUE; } break; case STATE_REQUEST_HEADER_VALUE: if (_ajpRequestPacket.parsedString()) { _handler.parsedHeader(_ajpRequestPacket.getHeaderName(),_ajpRequestPacket.getString()); _state=_ajpRequestPacket.parsedHeaders()?STATE_REQUEST_ATTR:STATE_REQUEST_HEADER_NAME; } break; case STATE_REQUEST_ATTR: if ((0xFF&_ajpRequestPacket.parsedAttributeType())!=0xFF) { _state=STATE_REQUEST_ATTR_VALUE; } else { _state=STATE_END; } break; case STATE_REQUEST_ATTR_VALUE: if (_ajpRequestPacket.parsedString()) { _state=STATE_REQUEST_ATTR; switch (_ajpRequestPacket.getAttributeType()) { // XXX How does this plug into the web containers // authentication? case Ajp13RequestHeaders.REMOTE_USER_ATTR: case Ajp13RequestHeaders.AUTH_TYPE_ATTR: break; case Ajp13RequestHeaders.QUERY_STRING_ATTR: _handler.parsedQueryString(_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.JVM_ROUTE_ATTR: // XXX Using old Jetty 5 key, should change! // Note used in // org.mortbay.jetty.servlet.HashSessionIdManager _handler.parsedRequestAttribute("org.mortbay.http.ajp.JVMRoute",_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.SSL_CERT_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.cipher_suite",_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.SSL_CIPHER_ATTR: // XXX Implement! Investigate // SslSocketConnector.customize() break; case Ajp13RequestHeaders.SSL_SESSION_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.ssl_session",_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.REQUEST_ATTR: _state=STATE_REQUEST_ATTR_VALUE2; break; // New Jk API? // Check if experimental or can they assumed to be // supported case Ajp13RequestHeaders.SSL_KEYSIZE_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.key_size",_ajpRequestPacket.getString()); break; // Used to lock down jk requests with a secreate // key. case Ajp13RequestHeaders.SECRET_ATTR: // XXX Investigate safest way to deal with // this... // should this tie into shutdown packet? break; case Ajp13RequestHeaders.STORED_METHOD_ATTR: // XXX Confirm this should really overide // previously parsed method? // _handler.parsedMethod(Ajp13PacketMethods.CACHE.get(_ajpRequestPacket.getString())); break; // Legacy codes, simply ignore case Ajp13RequestHeaders.CONTEXT_ATTR: case Ajp13RequestHeaders.SERVLET_PATH_ATTR: default: Log.warn("Unsupported Ajp13 Request Attribute {}:{}",new Byte(_ajpRequestPacket.getAttributeType()),_ajpRequestPacket .getString()); break; } _state=STATE_REQUEST_ATTR; } break; case STATE_REQUEST_ATTR_VALUE2: if (_ajpRequestPacket.parsedString()) { _handler.parsedRequestAttribute(_ajpRequestPacket.getAttributeKey(),_ajpRequestPacket.getString()); _state=STATE_REQUEST_ATTR; } break; default: throw new IllegalStateException("State not regonised {"+_state+"}"); } } // ajp header is complete handle the request here _handler.headerComplete(); return totalFilled; } | 13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/ef0eae17f348a3019d9cbbfe54c2e634788026d3/Ajp13Parser.java/buggy/extras/ajp/src/main/java/org/mortbay/jetty/ajp/Ajp13Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
1109,
2134,
1435,
1216,
1860,
565,
288,
1850,
1525,
2078,
67,
13968,
29711,
21,
31,
3639,
309,
261,
67,
4106,
631,
2011,
13,
3639,
288,
5411,
389,
4106,
33,
67,
28101,
18,
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,
377,
1071,
1525,
1109,
2134,
1435,
1216,
1860,
565,
288,
1850,
1525,
2078,
67,
13968,
29711,
21,
31,
3639,
309,
261,
67,
4106,
631,
2011,
13,
3639,
288,
5411,
389,
4106,
33,
67,
28101,
18,
5... |
0, true, false, new HashMap(maxSize)); | 0, true, false, new HashMap(maxSize)); | public Cache(Activator activator, int maxSize) { this(activator, maxSize, 0, // No timeout. true, // Allow parallel activation. false, // Don't keep statistics. new HashMap(maxSize)); // Default map. } | 49595 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49595/744e6f1fd9163558f45e31fae36b84f4de2ef01b/Cache.java/buggy/yajul-main/src/java/org/yajul/util/Cache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4379,
12,
12241,
639,
5981,
639,
16,
509,
14777,
13,
565,
288,
3639,
333,
12,
11422,
639,
16,
14777,
16,
5411,
374,
16,
1850,
368,
2631,
2021,
18,
5411,
638,
16,
4202,
368,
7852,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4379,
12,
12241,
639,
5981,
639,
16,
509,
14777,
13,
565,
288,
3639,
333,
12,
11422,
639,
16,
14777,
16,
5411,
374,
16,
1850,
368,
2631,
2021,
18,
5411,
638,
16,
4202,
368,
7852,
... |
execute(globalJexlContext, jxpathContext, startEvent, null); | execute(consumer, globalJexlContext, jxpathContext, startEvent, null); | public void generate() throws IOException, SAXException, ProcessingException { StartDocument startEvent; synchronized (cache) { startEvent = (StartDocument)cache.get(inputSource.getURI()); } if (startEvent == null) { long compileTime = inputSource.getLastModified(); Parser parser = new Parser(); this.resolver.toSAX(this.inputSource, parser); startEvent = parser.getStartEvent(); startEvent.compileTime = compileTime; synchronized (cache) { cache.put(inputSource.getURI(), startEvent); } } execute(globalJexlContext, jxpathContext, startEvent, null); } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/f7ccf478916847f02d71f5dd8fd34b5b9a9995f8/JexlTemplate.java/buggy/src/scratchpad/src/org/apache/cocoon/generation/JexlTemplate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
1435,
540,
1216,
1860,
16,
14366,
16,
19652,
503,
288,
3639,
3603,
2519,
787,
1133,
31,
3639,
3852,
261,
2493,
13,
288,
5411,
787,
1133,
273,
261,
1685,
2519,
13,
2493,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
1435,
540,
1216,
1860,
16,
14366,
16,
19652,
503,
288,
3639,
3603,
2519,
787,
1133,
31,
3639,
3852,
261,
2493,
13,
288,
5411,
787,
1133,
273,
261,
1685,
2519,
13,
2493,
... |
getFolderInfo().openFolder(Folder.READ_WRITE); loadAttachmentInfo(); return attachments.getHtmlAndTextInlines(attachmentSeparator, withHeaders, showFullHeaders, maxLength, truncationMessage); | if (getFolderInfo().shouldBeOpen()) { getFolderInfo().openFolder(Folder.READ_WRITE); loadAttachmentInfo(); return attachments.getHtmlAndTextInlines(attachmentSeparator, withHeaders, showFullHeaders, maxLength, truncationMessage); } else { throw fce; } | public String getHtmlAndTextInlines(String attachmentSeparator, boolean withHeaders, boolean showFullHeaders, int maxLength, String truncationMessage) throws MessagingException { try { if (!hasLoadedAttachments()) loadAttachmentInfo(); return attachments.getHtmlAndTextInlines(attachmentSeparator, withHeaders, showFullHeaders, maxLength, truncationMessage); } catch (FolderClosedException fce) { try { getFolderInfo().openFolder(Folder.READ_WRITE); loadAttachmentInfo(); return attachments.getHtmlAndTextInlines(attachmentSeparator, withHeaders, showFullHeaders, maxLength, truncationMessage); } catch (java.io.IOException ioe) { throw new MessagingException(ioe.getMessage()); } } catch (java.io.IOException ioe) { throw new MessagingException(ioe.getMessage()); } } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/5331a3dcfcd1ce0412ff5fe42ddbc6347174f46a/MessageInfo.java/clean/net/suberic/pooka/MessageInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
19633,
1876,
1528,
382,
3548,
12,
780,
6042,
6581,
16,
1250,
598,
3121,
16,
1250,
2405,
5080,
3121,
16,
509,
13642,
16,
514,
31507,
1079,
13,
1216,
23794,
503,
288,
202,
698,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19633,
1876,
1528,
382,
3548,
12,
780,
6042,
6581,
16,
1250,
598,
3121,
16,
1250,
2405,
5080,
3121,
16,
509,
13642,
16,
514,
31507,
1079,
13,
1216,
23794,
503,
288,
202,
698,
... |
Attribute a = new Attribute(tag.getAttribute("name")); a.setParameterName(tag.getAttribute("name")); a.setValue(tag.getAttribute("value")); | Attribute a = new Attribute(tag.getAttribute(KEY_NAME)); a.setParameterName(tag.getAttribute(KEY_NAME)); a.setValue(tag.getAttribute(KEY_VALUE)); | public static BugReport parseBug(Reader in, int id, String serverUrl, boolean is218, String userName, String password, String contentType) throws IOException, ParseException, LoginException { // create a new bug report and set the parser state to the start state BugReport bug = new BugReport(id, serverUrl); boolean contentTypeResolved = false; if (contentType != null) { String charsetFromContentType = getCharsetFromString(contentType); if (charsetFromContentType != null) { bug.setCharset(charsetFromContentType); contentTypeResolved = true; } } ParserState state = ParserState.START; Comment comment = null; String attribute = null; HtmlStreamTokenizer tokenizer = new HtmlStreamTokenizer(in, null); boolean isTitle = false; boolean possibleBadLogin = false; boolean checkBody = false; String title = ""; StringBuffer body = new StringBuffer(); for (Token token = tokenizer.nextToken(); token.getType() != Token.EOF; token = tokenizer.nextToken()) { // get the charset from the HTML if not specified if (!contentTypeResolved) { if (token.getType() == Token.TAG && ((HtmlTag) (token.getValue())).getTagType() == HtmlTag.Type.META && !((HtmlTag) (token.getValue())).isEndTag()) { String charsetFromHtml = getCharsetFromString(token.toString()); if (charsetFromHtml != null) bug.setCharset(charsetFromHtml); } } // make sure that bugzilla doesn't want us to login if (token.getType() == Token.TAG && ((HtmlTag) (token.getValue())).getTagType() == HtmlTag.Type.TITLE && !((HtmlTag) (token.getValue())).isEndTag()) { isTitle = true; continue; } if (isTitle) { // get all of the data in the title tag if (token.getType() != Token.TAG) { title += ((StringBuffer) token.getValue()).toString().toLowerCase() + " "; continue; } else if (token.getType() == Token.TAG && ((HtmlTag) token.getValue()).getTagType() == HtmlTag.Type.TITLE && ((HtmlTag) token.getValue()).isEndTag()) { // check and see if the title seems as though we have wrong // login info if (title.indexOf("login") != -1 || (title.indexOf("invalid") != -1 && title.indexOf("password") != -1) || title.indexOf("check e-mail") != -1) possibleBadLogin = true; // we possibly have a bad // login // if the title starts with error, we may have a login // problem, or // there is a problem with the bug (doesn't exist), so we // must do // some more checks if (title.startsWith("error")) checkBody = true; isTitle = false; title = ""; } continue; } // if we have to add all of the text so that we can check it later // for problems with the username and password if (checkBody && token.getType() == Token.TEXT) { body.append((StringBuffer) token.getValue()); body.append(" "); } // we have found the start of an attribute name if ((state == ParserState.ATT_NAME || state == ParserState.START) && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.TD && "right".equalsIgnoreCase(tag.getAttribute("align"))) { // parse the attribute's name attribute = parseAttributeName(tokenizer); if (attribute.toLowerCase().startsWith("opened")) { // find the colon so we can get the date int index = attribute.toLowerCase().indexOf(":"); String date; if (index != -1) date = attribute.substring(index + 1).trim(); else date = attribute.substring(6).trim(); // set the bugs opened date to be the date we parsed bug.setCreated(df.parse(date)); state = ParserState.ATT_NAME; continue; } // in 2.18, the last modified looks like the opened so we // need to parse it differently if (attribute.toLowerCase().startsWith("last modified") && is218) { // find the colon so we can get the date int index = attribute.toLowerCase().indexOf(":"); String date; if (index != -1) date = attribute.substring(index + 1).trim(); else date = attribute.substring(6).trim(); // create a new attribute and set the date Attribute t = new Attribute("Last Modified"); t.setValue(date); // add the attribute to the bug report bug.addAttribute(t); state = ParserState.ATT_NAME; continue; } state = ParserState.ATT_VALUE; continue; } else if (tag.getTagType() == HtmlTag.Type.INPUT && "radio".equalsIgnoreCase(tag.getAttribute("type")) && "knob".equalsIgnoreCase(tag.getAttribute("name"))) { // we found a radio button parseOperations(bug, tokenizer, tag, is218); } } // we have found the start of attribute values if (state == ParserState.ATT_VALUE && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.TD) { // parse the attribute values parseAttributeValue(bug, attribute, tokenizer, serverUrl, userName, password); state = ParserState.ATT_NAME; attribute = null; continue; } } // we have found the start of a comment if (state == ParserState.DESC_START && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.I) { // parse the comment's start comment = parseCommentHead(bug, tokenizer); state = ParserState.DESC_VALUE; continue; } } // we have found the start of the comment text if (state == ParserState.DESC_VALUE && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.PRE) { // parse the text of the comment parseCommentText(bug, comment, tokenizer); comment = null; state = ParserState.DESC_START; continue; } } // we have found the description of the bug if ((state == ParserState.ATT_NAME || state == ParserState.START) && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.PRE) { // parse the description for the bug parseDescription(bug, tokenizer); state = ParserState.DESC_START; continue; } } // parse hidden fields if ((state == ParserState.ATT_NAME || state == ParserState.START) && token.getType() == Token.TAG) { HtmlTag tag = (HtmlTag) token.getValue(); if (tag.getTagType() == HtmlTag.Type.INPUT && tag.getAttribute("type") != null && "hidden".equalsIgnoreCase(tag.getAttribute("type").trim())) { Attribute a = new Attribute(tag.getAttribute("name")); a.setParameterName(tag.getAttribute("name")); a.setValue(tag.getAttribute("value")); a.setHidden(true); bug.addAttribute(a); continue; } } } // if we are to check the body, make sure that there wasn't a bad login if (checkBody) { String b = body.toString(); if (b.indexOf("login") != -1 || ((b.indexOf("invalid") != -1 || b.indexOf("not valid") != -1) && b.indexOf("password") != -1) || b.indexOf("check e-mail") != -1) possibleBadLogin = true; // we possibly have a bad login } // if there is no summary or created date, we expect that // the bug doesn't exist, so set it to null // if the bug seems like it doesn't exist, and we suspect a login // problem, assume that there was a login problem if (bug.getCreated() == null && bug.getAttributes().isEmpty()) { if (possibleBadLogin) { throw new LoginException(IBugzillaConstants.MESSAGE_LOGIN_FAILURE); } else { return null; } } // we are done...return the bug return bug; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/9e7f17d71e31690594ddd776f01afc2f68b73bc9/BugParser.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/internal/BugParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
16907,
4820,
1109,
19865,
12,
2514,
316,
16,
509,
612,
16,
514,
1438,
1489,
16,
1250,
353,
22,
2643,
16,
514,
12065,
16,
1082,
202,
780,
2201,
16,
514,
5064,
13,
1216,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16907,
4820,
1109,
19865,
12,
2514,
316,
16,
509,
612,
16,
514,
1438,
1489,
16,
1250,
353,
22,
2643,
16,
514,
12065,
16,
1082,
202,
780,
2201,
16,
514,
5064,
13,
1216,
... |
WorkbenchPlugin.getDefault().savePluginPreferences(); | finally { saving = false; } | protected void saveEnabledStates() { IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); IWorkbenchActivitySupport support = PlatformUI.getWorkbench() .getActivitySupport(); IActivityManager activityManager = support.getActivityManager(); Iterator values = activityManager.getDefinedActivityIds().iterator(); while (values.hasNext()) { IActivity activity = activityManager.getActivity((String) values .next()); store.setValue(createPreferenceKey(activity.getId()), activity .isEnabled()); } WorkbenchPlugin.getDefault().savePluginPreferences(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5a71b78fe812d8fe9b96f07d70a137fd3193cb89/ActivityPersistanceHelper.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActivityPersistanceHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1923,
1526,
7629,
1435,
288,
3639,
467,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
9624,
2257,
5621,
3639,
467,
2421,
22144,
6193,
6289,
2865,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
1526,
7629,
1435,
288,
3639,
467,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
1435,
7734,
263,
588,
9624,
2257,
5621,
3639,
467,
2421,
22144,
6193,
6289,
2865,... |
return MessageFormat.format( BreakpointMessages.getString( "CWatchpoint.0" ), new String[] { fileName, expression, getConditionText() } ); | format = BreakpointMessages.getString( "CWatchpoint.0" ); | protected String getMarkerMessage() throws CoreException { String fileName = ensureMarker().getResource().getName(); if ( fileName != null && fileName.length() > 0 ) { fileName = ' ' + fileName + ' '; } String expression = getExpression(); if ( expression != null && expression.length() > 0 ) { expression = " '" + expression + "' "; //$NON-NLS-1$ //$NON-NLS-2$ } if ( isWriteType() && !isReadType() ) return MessageFormat.format( BreakpointMessages.getString( "CWatchpoint.0" ), new String[] { fileName, expression, getConditionText() } ); //$NON-NLS-1$ else if ( !isWriteType() && isReadType() ) return MessageFormat.format( BreakpointMessages.getString( "CWatchpoint.1" ), new String[] { fileName, expression, getConditionText() } ); //$NON-NLS-1$ else if ( isWriteType() && isReadType() ) return MessageFormat.format( BreakpointMessages.getString( "CWatchpoint.2" ), new String[] { fileName, expression, getConditionText() } ); //$NON-NLS-1$ return MessageFormat.format( BreakpointMessages.getString( "CWatchpoint.3" ), new String[] { fileName, expression, getConditionText() } ); //$NON-NLS-1$ } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d408c25da335bbff40f197e3f3297e27a3411003/CWatchpoint.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/CWatchpoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
23232,
264,
1079,
1435,
1216,
30015,
288,
202,
202,
780,
3968,
273,
3387,
7078,
7675,
588,
1420,
7675,
17994,
5621,
202,
202,
430,
261,
3968,
480,
446,
597,
3968,
18,
2469... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
23232,
264,
1079,
1435,
1216,
30015,
288,
202,
202,
780,
3968,
273,
3387,
7078,
7675,
588,
1420,
7675,
17994,
5621,
202,
202,
430,
261,
3968,
480,
446,
597,
3968,
18,
2469... |
if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); | if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); | public void remove(int index) { Component r = component[index]; r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (layoutMgr != null) layoutMgr.removeLayoutComponent(r); // Post event to notify of adding the container. ContainerEvent ce = new ContainerEvent(this, ContainerEvent.COMPONENT_REMOVED, r); getToolkit().getSystemEventQueue().postEvent(ce); } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/47b8a95e33f15f8f7f754a990349584fe4134b05/Container.java/clean/libjava/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
12,
474,
770,
13,
225,
288,
565,
5435,
436,
273,
1794,
63,
1615,
15533,
565,
436,
18,
4479,
9168,
5621,
565,
2332,
18,
1126,
3530,
12,
4652,
16,
770,
397,
404,
16,
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,
282,
1071,
918,
1206,
12,
474,
770,
13,
225,
288,
565,
5435,
436,
273,
1794,
63,
1615,
15533,
565,
436,
18,
4479,
9168,
5621,
565,
2332,
18,
1126,
3530,
12,
4652,
16,
770,
397,
404,
16,
17... |
protected void infectBy(IRubyObject obj) { | protected IRubyObject infectBy(IRubyObject obj) { | protected void infectBy(IRubyObject obj) { setTaint(isTaint() || obj.isTaint()); } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/c3988bcedc9973ff7f8c24ac6423ecb89f3ada35/RubyObject.java/buggy/src/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
15908,
10340,
921,
8286,
386,
858,
12,
7937,
10340,
921,
1081,
13,
288,
3639,
444,
29048,
12,
291,
29048,
1435,
747,
1081,
18,
291,
29048,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
15908,
10340,
921,
8286,
386,
858,
12,
7937,
10340,
921,
1081,
13,
288,
3639,
444,
29048,
12,
291,
29048,
1435,
747,
1081,
18,
291,
29048,
10663,
565,
289,
2,
-100,
-100,
-100,
-100... |
static String getMessage(List projects) { if (projects.size() == 1) { IProject project = (IProject) projects.get(0); | static String getMessage(IResource[] projects) { if (projects.length == 1) { IProject project = (IProject) projects[0]; | static String getMessage(List projects) { if (projects.size() == 1) { IProject project = (IProject) projects.get(0); return IDEWorkbenchMessages.format("DeleteResourceAction.confirmProject1", new Object[] { project.getName() }); //$NON-NLS-1$ } else { return IDEWorkbenchMessages.format("DeleteResourceAction.confirmProjectN", new Object[] { new Integer(projects.size()) }); //$NON-NLS-1$ } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d9613eca2eb909a155f4ea74a194620b3b527443/DeleteResourceAction.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/DeleteResourceAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
3845,
514,
2381,
12,
682,
10137,
13,
288,
1082,
202,
430,
261,
13582,
18,
1467,
1435,
422,
404,
13,
288,
9506,
202,
45,
4109,
1984,
273,
261,
45,
4109,
13,
10137,
18,
588,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
3845,
514,
2381,
12,
682,
10137,
13,
288,
1082,
202,
430,
261,
13582,
18,
1467,
1435,
422,
404,
13,
288,
9506,
202,
45,
4109,
1984,
273,
261,
45,
4109,
13,
10137,
18,
588,
12,
2... |
messages.addDiagnostic(number, state, severity, message, server, procName, line); | private void tdsErrorToken() throws IOException { int pktLen = in.readShort(); // Packet length int sizeSoFar = 6; int number = in.readInt(); int state = in.read(); int severity = in.read(); int msgLen = in.readShort(); String message = in.readString(msgLen); sizeSoFar += 2 + ((tdsVersion >= Driver.TDS70)? msgLen * 2: msgLen); final int srvNameLen = in.read(); String server = in.readString(srvNameLen); sizeSoFar += 1 + ((tdsVersion >= Driver.TDS70)? srvNameLen * 2: srvNameLen); final int procNameLen = in.read(); String procName = in.readString(procNameLen); sizeSoFar += 1 + ((tdsVersion >= Driver.TDS70)? procNameLen * 2: procNameLen); int line = in.readShort(); sizeSoFar += 2; // FIXME This won't work with multi-byte charsets // Skip any EED information to read rest of packet if (pktLen - sizeSoFar > 0) in.skip(pktLen - sizeSoFar); if (currentToken.token == TDS_ERROR_TOKEN) { if (severity < 10) { severity = 11; // Ensure treated as error } messages.addDiagnostic(number, state, severity, message, server, procName, line); } else { if (severity > 9) { severity = 9; // Ensure treated as warning } messages.addDiagnostic(number, state, severity, message, server, procName, line); } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/d0ec4abe17e09ae4768b31e1b621cd0558fcb544/TdsCore.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
268,
2377,
668,
1345,
1435,
565,
1216,
1860,
565,
288,
3639,
509,
11536,
2891,
273,
316,
18,
896,
4897,
5621,
368,
11114,
769,
3639,
509,
963,
26619,
273,
1666,
31,
3639,
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,
3238,
918,
268,
2377,
668,
1345,
1435,
565,
1216,
1860,
565,
288,
3639,
509,
11536,
2891,
273,
316,
18,
896,
4897,
5621,
368,
11114,
769,
3639,
509,
963,
26619,
273,
1666,
31,
3639,
509,
... | |
theLayoutPackage.createPackageContents(); | public static ComponentPackage init() { if (isInited) return (ComponentPackage) EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI); // Obtain or create and register package ComponentPackageImpl theComponentPackage = (ComponentPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ComponentPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackageImpl.init(); // Obtain or create and register interdependencies ModelPackageImpl theModelPackage = (ModelPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(ModelPackage.eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(ModelPackage.eNS_URI) : ModelPackageImpl.eINSTANCE); TypePackageImpl theTypePackage = (TypePackageImpl) (EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) instanceof TypePackageImpl ? EPackage.Registry.INSTANCE .getEPackage(TypePackage.eNS_URI) : TypePackageImpl.eINSTANCE); AttributePackageImpl theAttributePackage = (AttributePackageImpl) (EPackage.Registry.INSTANCE .getEPackage(AttributePackage.eNS_URI) instanceof AttributePackageImpl ? EPackage.Registry.INSTANCE .getEPackage(AttributePackage.eNS_URI) : AttributePackageImpl.eINSTANCE); DataPackageImpl theDataPackage = (DataPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) instanceof DataPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(DataPackage.eNS_URI) : DataPackageImpl.eINSTANCE); LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(LayoutPackage.eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(LayoutPackage.eNS_URI) : LayoutPackageImpl.eINSTANCE); // Create package meta-data objects theComponentPackage.createPackageContents(); theModelPackage.createPackageContents(); theTypePackage.createPackageContents(); theAttributePackage.createPackageContents(); theDataPackage.createPackageContents(); theLayoutPackage.createPackageContents(); // Initialize created meta-data theComponentPackage.initializePackageContents(); theModelPackage.initializePackageContents(); theTypePackage.initializePackageContents(); theAttributePackage.initializePackageContents(); theDataPackage.initializePackageContents(); theLayoutPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theComponentPackage.freeze(); return theComponentPackage; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/869b9dc91ef4dd13d07f589c6394484a744642f0/ComponentPackageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ComponentPackageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5435,
2261,
1208,
1435,
565,
288,
3639,
309,
261,
291,
2570,
329,
13,
5411,
327,
261,
1841,
2261,
13,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1841,
2261,
18,
73,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5435,
2261,
1208,
1435,
565,
288,
3639,
309,
261,
291,
2570,
329,
13,
5411,
327,
261,
1841,
2261,
13,
10682,
18,
4243,
18,
13341,
18,
588,
41,
2261,
12,
1841,
2261,
18,
73,
... | |
if (action == null) | if (action == null) { | public ActionHandler(final IAction action) { if (action == null) throw new NullPointerException(); this.action = action; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/ActionHandler.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/commands/ActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
1503,
12,
6385,
467,
1803,
1301,
13,
288,
202,
202,
430,
261,
1128,
422,
446,
13,
1082,
202,
12849,
394,
10108,
5621,
202,
202,
2211,
18,
1128,
273,
1301,
31,
202,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
1503,
12,
6385,
467,
1803,
1301,
13,
288,
202,
202,
430,
261,
1128,
422,
446,
13,
1082,
202,
12849,
394,
10108,
5621,
202,
202,
2211,
18,
1128,
273,
1301,
31,
202,
97,
... |
public void mousePressed(MouseEvent e) {} | public void mousePressed(MouseEvent e) { } | public PatchEditorFrame(String name,Patch patch) { super (name,true,true,true,true); p=patch; System.arraycopy(p.sysex,0,originalPatch,0,p.sysex.length); //make backup copy layout=new GridBagLayout(); gbc = new GridBagConstraints(); scrollPane=new JPanel(); scrollPane.setLayout(layout); scrollPane.setSize(600,400); scroller = new JScrollPane (scrollPane); getContentPane().add(scroller); setSize(600,400); scroller.getVerticalScrollBar().addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) {} public void mouseReleased(MouseEvent e) { repaint(); } }); scroller.getHorizontalScrollBar().addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) {} public void mouseReleased(MouseEvent e) { repaint(); } }); addInternalFrameListener(new InternalFrameListener() { public void internalFrameClosing(InternalFrameEvent e) { String choices[] = new String [] {"Keep Changes", "Revert to Original", "Place Changed Version on Clipboard"}; int choice=JOptionPane.CLOSED_OPTION; while (choice==JOptionPane.CLOSED_OPTION) choice = JOptionPane.showOptionDialog((Component)null, "What do you wish to do with the changed copy of the Patch?", "Save Changes?",JOptionPane.OK_OPTION,JOptionPane.QUESTION_MESSAGE,null,choices,choices[0]); if (choice==0) { if (bankFrame==null) return; bankFrame.myModel.setPatchAt(p,patchRow,patchCol); return; } if (choice==2) CopySelectedPatch(); //put on clipboard but don't 'return' just yet System.arraycopy(originalPatch,0,p.sysex,0,p.sysex.length); //restore backup } public void internalFrameOpened(InternalFrameEvent e) {}; public void internalFrameActivated(InternalFrameEvent e) {((Driver)(PatchEdit.getDriver(p.deviceNum,p.driverNum))).calculateChecksum(p); ((Driver)(PatchEdit.getDriver(p.deviceNum,p.driverNum))).sendPatch(p); gotFocus(); PatchEdit.receiveAction.setEnabled (false); PatchEdit.pasteAction.setEnabled (false); PatchEdit.sendAction.setEnabled (true); PatchEdit.sendToAction.setEnabled (true); PatchEdit.playAction.setEnabled (true); PatchEdit.storeAction.setEnabled (true); PatchEdit.copyAction.setEnabled (true); PatchEdit.reassignAction.setEnabled (true); PatchEdit.exportAction.setEnabled (true); }; public void internalFrameClosed(InternalFrameEvent e) {}; public void internalFrameDeactivated(InternalFrameEvent e) { PatchEdit.sendAction.setEnabled (false); PatchEdit.playAction.setEnabled (false); PatchEdit.storeAction.setEnabled (false); PatchEdit.sendToAction.setEnabled (false); PatchEdit.copyAction.setEnabled (false); PatchEdit.reassignAction.setEnabled (false); PatchEdit.exportAction.setEnabled (false); lostFocus(); }; public void internalFrameDeiconified(InternalFrameEvent e) {}; public void internalFrameIconified(InternalFrameEvent e) {}; }); } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/e7311a9aa2ac478953975abaa1c0c14e8201c062/PatchEditorFrame.java/buggy/JSynthLib/core/PatchEditorFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12042,
6946,
3219,
12,
780,
508,
16,
7332,
4729,
13,
225,
288,
2240,
261,
529,
16,
3767,
16,
3767,
16,
3767,
16,
3767,
1769,
282,
293,
33,
2272,
31,
565,
2332,
18,
1126,
3530,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12042,
6946,
3219,
12,
780,
508,
16,
7332,
4729,
13,
225,
288,
2240,
261,
529,
16,
3767,
16,
3767,
16,
3767,
16,
3767,
1769,
282,
293,
33,
2272,
31,
565,
2332,
18,
1126,
3530,
1... |
final DoubleCalc calc0 = compiler.compileDouble(call.getArg(0)); final DoubleCalc calc1 = compiler.compileDouble(call.getArg(1)); return new AbstractDoubleCalc(call, new Calc[] {calc0, calc1}) { public double evaluateDouble(Evaluator evaluator) { final double v0 = calc0.evaluateDouble(evaluator); final double v1 = calc1.evaluateDouble(evaluator); if (v0 == DoubleNull) { if (v1 == DoubleNull) { return DoubleNull; } else { return v1; | final Exp[] args = call.getArgs(); final List calcList = new ArrayList(); final Calc valueCalc = compiler.compileScalar(args[0], true); calcList.add(valueCalc); final int matchCount = (args.length - 1) / 2; final Calc[] matchCalcs = new Calc[matchCount]; final Calc[] exprCalcs = new Calc[matchCount]; for (int i = 0, j = 1; i < exprCalcs.length; i++) { matchCalcs[i] = compiler.compileScalar(args[j++], true); calcList.add(matchCalcs[i]); exprCalcs[i] = compiler.compileScalar(args[j++], true); calcList.add(exprCalcs[i]); } final Calc defaultCalc = args.length % 2 == 0 ? compiler.compileScalar(args[args.length - 1], true) : ConstantCalc.constantNull(call.getType()); calcList.add(defaultCalc); final Calc[] calcs = (Calc[]) calcList.toArray(new Calc[calcList.size()]); return new AbstractCalc(call) { public Object evaluate(Evaluator evaluator) { Object value = valueCalc.evaluate(evaluator); for (int i = 0; i < matchCalcs.length; i++) { Object match = matchCalcs[i].evaluate(evaluator); if (match.equals(value)) { return exprCalcs[i].evaluate(evaluator); } } return defaultCalc.evaluate(evaluator); | public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) { final DoubleCalc calc0 = compiler.compileDouble(call.getArg(0)); final DoubleCalc calc1 = compiler.compileDouble(call.getArg(1)); return new AbstractDoubleCalc(call, new Calc[] {calc0, calc1}) { public double evaluateDouble(Evaluator evaluator) { final double v0 = calc0.evaluateDouble(evaluator); final double v1 = calc1.evaluateDouble(evaluator); if (v0 == DoubleNull) { if (v1 == DoubleNull) { return DoubleNull; } else { return v1; } } else { if (v1 == DoubleNull) { return v0; } else { return v0 + v1; } } } }; } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/759b141925c76c1aa0aaf89d93dc38bfe19d7c5a/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
29128,
4074,
1477,
12,
12793,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
7734,
727,
3698,
25779,
7029,
20,
273,
5274,
18,
11100,
5265,
12,
1991,
18,
588,
4117,
12,
20,
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,
2398,
1071,
29128,
4074,
1477,
12,
12793,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
7734,
727,
3698,
25779,
7029,
20,
273,
5274,
18,
11100,
5265,
12,
1991,
18,
588,
4117,
12,
20,
10019,... |
pst = connection.prepareStatement("update " + SEARCH_BUILDER_ITEM_T + " set " + SEARCH_BUILDER_ITEM_FIELDS_UPDATE); | pst = connection.prepareStatement("update " + SEARCH_BUILDER_ITEM_T + " set " + SEARCH_BUILDER_ITEM_FIELDS_UPDATE); | private void updateOrSave(Connection connection, SearchBuilderItem sbi) throws SQLException { PreparedStatement pst = null; try { try { save(connection, sbi); } catch (SQLException sqlex) { pst = connection.prepareStatement("update " + SEARCH_BUILDER_ITEM_T + " set " + SEARCH_BUILDER_ITEM_FIELDS_UPDATE); populateStatement(pst, sbi); pst.executeUpdate(); } } catch ( SQLException ex ) { log.warn("Failed ",ex); throw ex; } finally { try { pst.close(); } catch (Exception ex) { } } } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/20ccf8886abe7d3c214de2a86a0f559bd200b82f/SearchIndexBuilderWorkerDaoJdbcImpl.java/clean/search/search-impl/impl/src/java/org/sakaiproject/search/component/dao/impl/SearchIndexBuilderWorkerDaoJdbcImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
1162,
4755,
12,
1952,
1459,
16,
5167,
1263,
1180,
2393,
77,
13,
1216,
6483,
202,
95,
202,
202,
29325,
22750,
273,
446,
31,
202,
202,
698,
202,
202,
95,
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,
1152,
918,
1089,
1162,
4755,
12,
1952,
1459,
16,
5167,
1263,
1180,
2393,
77,
13,
1216,
6483,
202,
95,
202,
202,
29325,
22750,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
... |
switch (rotation) { case 90: dic.put(PdfName.RECT, new PdfRectangle( pageSize.top() - rect.bottom(), rect.left(), pageSize.top() - rect.top(), rect.right())); break; case 180: dic.put(PdfName.RECT, new PdfRectangle( pageSize.right() - rect.left(), pageSize.top() - rect.bottom(), pageSize.right() - rect.right(), pageSize.top() - rect.top())); break; case 270: dic.put(PdfName.RECT, new PdfRectangle( rect.bottom(), pageSize.right() - rect.left(), rect.top(), pageSize.right() - rect.right())); break; } | switch (rotation) { case 90: dic.put(PdfName.RECT, new PdfRectangle( pageSize.top() - rect.bottom(), rect.left(), pageSize.top() - rect.top(), rect.right())); break; case 180: dic.put(PdfName.RECT, new PdfRectangle( pageSize.right() - rect.left(), pageSize.top() - rect.bottom(), pageSize.right() - rect.right(), pageSize.top() - rect.top())); break; case 270: dic.put(PdfName.RECT, new PdfRectangle( rect.bottom(), pageSize.right() - rect.left(), rect.top(), pageSize.right() - rect.right())); break; } | protected PdfArray rotateAnnotations() { PdfArray array = new PdfArray(); int rotation = pageSize.getRotation() % 360; int currentPage = writer.getCurrentPageNumber(); for (int k = 0; k < annotations.size(); ++k) { PdfAnnotation dic = (PdfAnnotation)annotations.get(k); int page = dic.getPlaceInPage(); if (page > currentPage) { delayedAnnotations.add(dic); continue; } if (dic.isForm()) { if (!dic.isUsed()) { HashMap templates = dic.getTemplates(); if (templates != null) acroForm.addFieldTemplates(templates); } PdfFormField field = (PdfFormField)dic; if (field.getParent() == null) acroForm.addDocumentField(field.getIndirectReference()); } if (dic.isAnnotation()) { array.add(dic.getIndirectReference()); if (!dic.isUsed()) { PdfRectangle rect = (PdfRectangle)dic.get(PdfName.RECT); if (rect != null) { switch (rotation) { case 90: dic.put(PdfName.RECT, new PdfRectangle( pageSize.top() - rect.bottom(), rect.left(), pageSize.top() - rect.top(), rect.right())); break; case 180: dic.put(PdfName.RECT, new PdfRectangle( pageSize.right() - rect.left(), pageSize.top() - rect.bottom(), pageSize.right() - rect.right(), pageSize.top() - rect.top())); break; case 270: dic.put(PdfName.RECT, new PdfRectangle( rect.bottom(), pageSize.right() - rect.left(), rect.top(), pageSize.right() - rect.right())); break; } } } } if (!dic.isUsed()) { dic.setUsed(); try { writer.addToBody(dic, dic.getIndirectReference()); } catch (IOException e) { throw new ExceptionConverter(e); } } } return array; } | 4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/93c69bb3795bad1431a884fb2ddcd091d8af70d1/PdfDocument.java/clean/src/com/lowagie/text/pdf/PdfDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
9989,
1076,
8534,
5655,
1435,
288,
3639,
9989,
1076,
526,
273,
394,
9989,
1076,
5621,
3639,
509,
6752,
273,
13387,
18,
588,
14032,
1435,
738,
12360,
31,
3639,
509,
15117,
273,
2633,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9989,
1076,
8534,
5655,
1435,
288,
3639,
9989,
1076,
526,
273,
394,
9989,
1076,
5621,
3639,
509,
6752,
273,
13387,
18,
588,
14032,
1435,
738,
12360,
31,
3639,
509,
15117,
273,
2633,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.