rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
this.groups = new ArrayList[size];
this.groups = new CachedList[size];
void readGroupsFromStream( InputStream inputStream ) throws IOException { int size = IOUtil.readInt( inputStream ); this.groups = new ArrayList[size]; for ( int i = 0; i < size; i++ ) { List list = new ArrayList( ); int asize = IOUtil.readInt( inputStream ); for ( int j = 0; j < asize; j++ ) { GroupInfo groupInfo = new GroupInfo( ); groupInfo.parent = IOUtil.readInt( inputStream ); groupInfo.firstChild = IOUtil.readInt( inputStream ); list.add( groupInfo ); } this.groups[i] = list; } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7542758bdddfb6f4a72d47125804ee7cdf830e00/GroupInformationUtil.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/group/GroupInformationUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 855, 3621, 1265, 1228, 12, 5037, 10010, 262, 1216, 1860, 202, 95, 202, 202, 474, 963, 273, 1665, 1304, 18, 896, 1702, 12, 10010, 11272, 202, 202, 2211, 18, 4650, 273, 394, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 3621, 1265, 1228, 12, 5037, 10010, 262, 1216, 1860, 202, 95, 202, 202, 474, 963, 273, 1665, 1304, 18, 896, 1702, 12, 10010, 11272, 202, 202, 2211, 18, 4650, 273, 394, 24...
startPC = PC;
startPC = getPC();
public void sawOpcode(int seen) { if (seen == MONITORENTER) sawMonitorEnter = true; if (seen == GETFIELD || seen == GETSTATIC) { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); if (!sawMonitorEnter) { fields.add(f); startPC = PC; } else if(fields.contains(f)) twice.add(f); } switch (stage) { case 0: if (seen == IFNULL || seen == IFNONNULL) stage++; count = 0; break; case 1: if (seen == MONITORENTER) stage++; else { count++; if (count > 10) stage = 0; } break; case 2: if (seen == IFNULL || seen == IFNONNULL) { endPC = PC; stage++; } else { count++; if (count > 10) stage = 0; } break; case 3: if (seen == PUTFIELD || seen == PUTSTATIC) { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); if (fields.contains(f) && !nameConstant.startsWith("class$")) { bugReporter.reportBug(new BugInstance("DC_DOUBLECHECK", NORMAL_PRIORITY) .addClassAndMethod(this) .addField(f).describe("FIELD_ON") .addSourceLineRange(this, startPC, endPC)); stage++; } } break; default: } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/576aefec1a0617bbdee3170c52071027f9fe03db/FindDoubleCheck.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindDoubleCheck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19821, 22808, 12, 474, 5881, 13, 288, 202, 430, 261, 15156, 422, 30215, 1285, 51, 7480, 654, 13, 19821, 7187, 10237, 273, 638, 31, 202, 430, 261, 15156, 422, 4978, 6776, 747, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19821, 22808, 12, 474, 5881, 13, 288, 202, 430, 261, 15156, 422, 30215, 1285, 51, 7480, 654, 13, 19821, 7187, 10237, 273, 638, 31, 202, 430, 261, 15156, 422, 4978, 6776, 747, ...
if(y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } if(x-offsetX > 0)
if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if (checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if (checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } if (x-offsetX > 0)
void lensMouseDrag(int x, int y, boolean isShiftDown) { if (borderDrag) { int deltaX = 0; int deltaY = 0; int deltaW = 0; int deltaH = 0; switch(resizeDir) { case LensUI.NORTH: if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } break; case LensUI.SOUTH: if (y-offsetY > 0) { deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } else { deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } break; case LensUI.EAST: if (x-offsetX > 0) { deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } else { deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } break; case LensUI.WEST: if (x-offsetX > 0) { deltaX = (x-offsetX); deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } else { deltaX = -Math.abs(x-offsetX); deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } break; case LensUI.NORTH_EAST: if(y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } if(x-offsetX > 0) { deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } else { deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } break; case LensUI.NORTH_WEST: if(y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } if(x-offsetX > 0) { deltaX = (x-offsetX); deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } else { deltaX = -Math.abs(x-offsetX); deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } case LensUI.SOUTH_EAST: if(y-offsetY > 0) { deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } else { deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } if(x-offsetX > 0) { deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } else { deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } break; case LensUI.SOUTH_WEST: if(y-offsetY > 0) { deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } else { deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } if(x-offsetX > 0) { deltaX = (x-offsetX); deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } else { deltaX = -Math.abs(x-offsetX); deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } break; } setLensBounds(deltaX, deltaY, deltaW, deltaH, isShiftDown); } if(lensDrag) { boolean moveX = true; boolean moveY = true; if(startX+(x-offsetX) < 0 ) { moveX = false; startX = 0; } if((startX+(x-offsetX))/lensModel.getImageZoomFactor()+lensModel.getWidth() > lensModel.getImageWidth()) { moveX = false; startX = lensModel.getImageScaledWidth()-lensModel.getScaledWidth(); } if(startY+(y-offsetY) < 0 ) { moveY = false; startY = 0; } if(startY+(y-offsetY)+lens.getHeight() > lensModel.getImageScaledHeight()) { moveY = false; startY = lensModel.getImageScaledHeight()-lensModel.getScaledHeight(); } if(moveX) startX = startX+(x-offsetX); if(moveY) startY = startY+(y-offsetY); setLensLocation((int)(startX/lensModel.getImageZoomFactor()), (int)(startY/lensModel.getImageZoomFactor())); } }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 26882, 9186, 11728, 12, 474, 619, 16, 509, 677, 16, 1250, 353, 10544, 4164, 13, 202, 95, 202, 202, 430, 261, 8815, 11728, 13, 202, 202, 95, 1082, 202, 474, 31329, 273, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 26882, 9186, 11728, 12, 474, 619, 16, 509, 677, 16, 1250, 353, 10544, 4164, 13, 202, 95, 202, 202, 430, 261, 8815, 11728, 13, 202, 202, 95, 1082, 202, 474, 31329, 273, 374, ...
pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop];
pc = catchStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1];
public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = Undefined.instance; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = Undefined.instance; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* 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.instance; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.instanceOf(lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(rhs, lhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); 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--]; lhs = stack[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--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (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--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theData.itsThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs); pc += 2; break; case TokenStream.NEW : count = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 2; break; case TokenStream.TYPEOF : lhs = stack[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 : stack[++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 : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theData.itsThisObj; 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 : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[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--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[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 NativeClosure(cx, scope, theData.itsNestedFunctions[i]); 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.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw jsx; stack[0] = jsx; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } /* debug only, will be going soon catch (ArrayIndexOutOfBoundsException oob) { System.out.println("OOB @ " + pc + " " + oob + " in " + theData.itsName + " " + oob.getMessage()); throw oob; } */ catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) throw jx; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/32feff141e5ccc7b1b5e5423d181b6baf24616a0/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 30010, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1033, 8499, 31, 3639, 1033, 8526, 2110, 273, 394, 1033, 63, 5787, 751, 18, 1282, 2747, 2624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30010, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1033, 8499, 31, 3639, 1033, 8526, 2110, 273, 394, 1033, 63, 5787, 751, 18, 1282, 2747, 2624, ...
public static int bytesToPages (int bytes) { int pages = bytesToPagesUp(bytes); if (VM_Interface.VerifyAssertions) VM_Interface._assert(pagesToBytes(pages) == bytes); return pages;
public static int bytesToPages(int bytes) { return bytesToPages(VM_Extent.fromInt(bytes));
public static int bytesToPages (int bytes) { int pages = bytesToPagesUp(bytes); if (VM_Interface.VerifyAssertions) VM_Interface._assert(pagesToBytes(pages) == bytes); return pages; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/e9199992b356786655ffe0ebed85eac89e929500/Conversions.java/buggy/MMTk/src/org/mmtk/utility/Conversions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 1731, 774, 5716, 261, 474, 1731, 13, 288, 565, 509, 4689, 273, 1731, 774, 5716, 1211, 12, 3890, 1769, 565, 309, 261, 7397, 67, 1358, 18, 8097, 8213, 1115, 13, 8251, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 1731, 774, 5716, 261, 474, 1731, 13, 288, 565, 509, 4689, 273, 1731, 774, 5716, 1211, 12, 3890, 1769, 565, 309, 261, 7397, 67, 1358, 18, 8097, 8213, 1115, 13, 8251, 67, ...
private Slot getSlot(String id, int index, boolean shouldDelete) { Slot[] slots = this.slots; if (slots == null) return null; int start = (index & 0x7fffffff) % slots.length; int i = start; do { Slot slot = slots[i]; if (slot == null) return null; if (slot != REMOVED && slot.intKey == index && (slot.stringKey == id || (id != null && id.equals(slot.stringKey)))) { if (shouldDelete) { if ((slot.attributes & PERMANENT) == 0) { slot.wasDeleted = (byte)1; slots[i] = REMOVED; count--; if (slot == lastAccess) lastAccess = REMOVED; } } return slot; } if (++i == slots.length) i = 0; } while (i != start); return null;
private Slot getSlot(String id, int index) { Slot[] slots = this.slots; int i = getSlotPosition(slots, id, index); return (i < 0) ? null : slots[i];
private Slot getSlot(String id, int index, boolean shouldDelete) { Slot[] slots = this.slots; if (slots == null) return null; int start = (index & 0x7fffffff) % slots.length; int i = start; do { Slot slot = slots[i]; if (slot == null) return null; if (slot != REMOVED && slot.intKey == index && (slot.stringKey == id || (id != null && id.equals(slot.stringKey)))) { if (shouldDelete) { if ((slot.attributes & PERMANENT) == 0) { // Mark the slot as removed to handle a case when // another thread manages to put just removed slot // into lastAccess cache. slot.wasDeleted = (byte)1; slots[i] = REMOVED; count--; if (slot == lastAccess) lastAccess = REMOVED; } } return slot; } if (++i == slots.length) i = 0; } while (i != start); return null; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/d22966941657c19d25edc45e9dafabff7cceea7f/ScriptableObject.java/clean/src/org/mozilla/javascript/ScriptableObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 23195, 17718, 352, 12, 780, 612, 16, 509, 770, 16, 1250, 1410, 2613, 13, 288, 3639, 23195, 8526, 12169, 273, 333, 18, 18875, 31, 3639, 309, 261, 18875, 422, 446, 13, 5411, 327, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23195, 17718, 352, 12, 780, 612, 16, 509, 770, 16, 1250, 1410, 2613, 13, 288, 3639, 23195, 8526, 12169, 273, 333, 18, 18875, 31, 3639, 309, 261, 18875, 422, 446, 13, 5411, 327, 44...
Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1);
Double o0 = getDoubleArg(evaluator, args, 0, null), o1 = getDoubleArg(evaluator, args, 1, null); if (o0 == null || o1 == null) return null;
public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return new Double(o0.doubleValue() * o1.doubleValue()); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/34abaab58fde7dfa37a8cebcc961787b875a53ce/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 9506, 202, 5265, 320, 20, 273, 16097, 4117, 12, 14168, 639, 16, 833, 16, 374, 3631, 25083, 202, 83, 21, 273, 16097...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 9506, 202, 5265, 320, 20, 273, 16097, 4117, 12, 14168, 639, 16, 833, 16, 374, 3631, 25083, 202, 83, 21, 273, 16097...
if (type instanceof CVectorType) {
if (type instanceof CVectorType || type instanceof CVectorTypeLow) {
public static int getTypeSize(CType type) { if (type.getTypeID() == CType.TID_VOID) return 0; if (type.getTypeID() == CType.TID_BYTE) return 1; if (type.getTypeID() == CType.TID_SHORT) return 2; if (type.getTypeID() == CType.TID_CHAR) return 1; if (type.getTypeID() == CType.TID_INT) return 4; if (type.getTypeID() == CType.TID_LONG) return 4; if (type.getTypeID() == CType.TID_FLOAT) return 4; if (type.getTypeID() == CType.TID_DOUBLE) return 8; if (type.getTypeID() == CType.TID_BOOLEAN) return 1; if (type.getTypeID() == CType.TID_BIT) return 1; if (type instanceof CVectorType) { // KjcOptions.vectorize is a numeric value giving size of vector in bytes. return KjcOptions.vectorize; } if (type.isArrayType()) { CArrayType aty = (CArrayType)type; JExpression[] dims = aty.getDims(); int numelts = 1; for (int i = 0; i < dims.length; i++) { assert dims[i] instanceof JIntLiteral : "Can not calculate indeger array dimension for" + dims[i].toString(); numelts *= ((JIntLiteral)dims[i]).intValue(); } return numelts * getTypeSize(aty.getBaseType()); } if (type.isClassType()) { if (type instanceof CNullType) { return 0; } if (type.toString().equals("java.lang.String")) { return 4; // return something, don't look at internals of String type. } // Assume class is something we defined: size is sum of size of fields. // (not true of a builtin class) int size = 0; CClass c = ((CClassType)type).getCClass(); for (CField f : c.getRawFields().values()) { size += getTypeSize(f.getType()); } //System.err.println("Class type: ["+type+"] size: "+size); return size; } assert false : "DataEstimate: unknown type ["+type+" TID: "+type.getTypeID()+" stack_size: "+type.getSize()+"]"; return 0; }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/f1197ac29a976f6015baaa30c8e231cc5cf68a9f/DataEstimate.java/clean/streams/src/at/dms/kjc/cluster/DataEstimate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 3130, 1225, 12, 39, 559, 618, 13, 288, 3639, 309, 261, 723, 18, 588, 559, 734, 1435, 422, 385, 559, 18, 56, 734, 67, 58, 12945, 13, 327, 374, 31, 3639, 309, 261, 723...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 3130, 1225, 12, 39, 559, 618, 13, 288, 3639, 309, 261, 723, 18, 588, 559, 734, 1435, 422, 385, 559, 18, 56, 734, 67, 58, 12945, 13, 327, 374, 31, 3639, 309, 261, 723...
public long lastModified() { checkReadAccess(); return lastModified0(); }
public long lastModified () { checkRead (); return lastModifiedInternal (path); }
public long lastModified() { checkReadAccess(); return lastModified0();}
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/af503bb72418d994f4439910bc3989d556fcdbd5/File.java/clean/libraries/javalib/java/io/File.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1525, 12709, 1435, 288, 202, 1893, 1994, 1862, 5621, 202, 2463, 12709, 20, 5621, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1525, 12709, 1435, 288, 202, 1893, 1994, 1862, 5621, 202, 2463, 12709, 20, 5621, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public void execute(TransformerImpl transformer, Node sourceNode, QName mode) throws SAXException { ResultTreeHandler rhandler = transformer.getResultTreeHandler(); XPathContext xctxt = transformer.getXPathContext(); String elemName = m_name_avt.evaluate(xctxt, sourceNode, this); // make sure that if a prefix is specified on the attribute name, it is valid int indexOfNSSep = elemName.indexOf(':'); String ns ="" ; if(indexOfNSSep >= 0) { String nsprefix = elemName.substring(0, indexOfNSSep); // Catch the exception this may cause. We don't want to stop processing. try{ ns = getNamespaceForPrefix(nsprefix); // Check if valid QName. Assuming that if the prefix is defined, // it is valid. if ( indexOfNSSep+1 == elemName.length() || !isValidNCName(elemName.substring(indexOfNSSep + 1))) { transformer.getMsgMgr().warn(XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_NAME, new Object[]{elemName}); elemName = null; } } catch(Exception ex) { // Could not resolve prefix ns = null; transformer.getMsgMgr().warn(XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX, new Object[]{nsprefix}); } } // Check if valid QName else if (elemName.length() == 0 || !isValidNCName(elemName)) { transformer.getMsgMgr().warn(XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_NAME, new Object[]{elemName}); elemName = null; } // Only do this if name is valid String elemNameSpace = null; String prefix = null; if(null != elemName && null != ns) { if(null != m_namespace_avt) { elemNameSpace = m_namespace_avt.evaluate(xctxt, sourceNode, this); if(null != elemNameSpace && elemNameSpace.length()>0) { // Get the prefix for that attribute in the result namespace. prefix = rhandler.getPrefix(elemNameSpace); // If we didn't find the prefix mapping, make up a prefix // and have it declared in the result tree. if(null == prefix) { prefix = rhandler.getNewUniqueNSPrefix(); } // add the prefix to the attribute name. elemName = (prefix + ":"+QName.getLocalPart(elemName)); } } // Add namespace declarations. executeNSDecls(transformer); rhandler.startElement(elemNameSpace, QName.getLocalPart(elemName), elemName); if(null != prefix) { rhandler.startPrefixMapping(prefix, elemNameSpace, true); } } // Instantiate content of xsl:element. Note that if startElement was not // called(ie: if invalid element name, the element's attributes will be // excluded because transformer.m_pendingElementName will be null. super.execute(transformer, sourceNode, mode); transformer.executeChildTemplates(this, sourceNode, mode); // Now end the element if name was valid if(null != elemName && null != ns) { rhandler.endElement("", "", elemName); unexecuteNSDecls(transformer); } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemElement.java/clean/src/org/apache/xalan/templates/ElemElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 90, 11359, 561, 557, 624, 12, 8319, 2828, 21523, 16, 3205, 552, 907, 16, 13688, 3188, 13, 15069, 55, 2501, 503, 95, 1253, 2471, 1144, 80, 370, 4176, 33, 21523, 18, 588, 1253, 2471, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 90, 11359, 561, 557, 624, 12, 8319, 2828, 21523, 16, 3205, 552, 907, 16, 13688, 3188, 13, 15069, 55, 2501, 503, 95, 1253, 2471, 1144, 80, 370, 4176, 33, 21523, 18, 588, 1253, 2471, 150...
if( RegexpUtil.hasFlag( options, REPLACE_ALL ) )
if( RegexpUtil.hasFlag( options, REPLACE_ALL ) ) {
protected int getSubsOptions( int options ) { int subsOptions = REPLACE_FIRST; if( RegexpUtil.hasFlag( options, REPLACE_ALL ) ) subsOptions = REPLACE_ALL; return subsOptions; }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/8ce1de2178a0422105fa437c327b49fb5637ff28/Jdk14RegexpRegexp.java/clean/proposal/myrmidon/src/todo/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 7040, 87, 1320, 12, 509, 702, 262, 565, 288, 3639, 509, 11630, 1320, 273, 23679, 67, 15354, 31, 3639, 309, 12, 17011, 1304, 18, 5332, 4678, 12, 702, 16, 23679, 67, 4685, 262,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 7040, 87, 1320, 12, 509, 702, 262, 565, 288, 3639, 509, 11630, 1320, 273, 23679, 67, 15354, 31, 3639, 309, 12, 17011, 1304, 18, 5332, 4678, 12, 702, 16, 23679, 67, 4685, 262,...
protected int getPort () { return port; }
protected int getPort() { return port; }
protected int getPort () { return port; }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/84d120cc49d42a79bfbc68fe36429395bdef90fd/SocketImpl.java/buggy/libjava/java/net/SocketImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 509, 11036, 1832, 288, 327, 1756, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 509, 11036, 1832, 288, 327, 1756, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
boolean downloadFile(String fileURL) { Client.debug.println("CacheController.downloadFile fileURL: " + fileURL); String[] tokens = fileURL.split("/"); String saveFile = _cacheDir + tokens[tokens.length - 1]; // if "cache" is "initialized" in the ctor, then we can do this: curr[index].setDownloaded(true); // otherwise, we'll just check the filesystem, which takes longer! URL url = null; try { url = new URL(fileURL); } catch (MalformedURLException e){ Client.err.println("error in downloader: " + e); return false; } if (url == null) { Client.out.println("bad URL"); return false; } double currentTime = 0; try { // open the connection URLConnection myConnection; myConnection=url.openConnection(); // Client.out.println("downloading : " + fileURL); // check that the file holds stuff if (myConnection.getContentLength()==0) { Client.out.println("Error Zero content."); return false; } long i = myConnection.getContentLength(); // Client.out.println("downloading file length: " + myConnection.getContentLength()); if (i==-1) { Client.out.println("Empty or invalid content."); return false; } File newFile = new File (saveFile); boolean append = false; long resumeIndex = 0; // Client.out.println("current file size: " + newFile.length()); if (newFile.exists()){ append = true; resumeIndex = i - newFile.length(); if (resumeIndex == 0){ _cache.add(saveFile); return true; } } BufferedInputStream input = new BufferedInputStream(myConnection.getInputStream()); newFile.createNewFile(); BufferedOutputStream downloadFile = new BufferedOutputStream(new FileOutputStream(newFile, append)); int c; currentTime = System.currentTimeMillis(); while (((c=input.read())!=-1) && (--i > 0)){ if (!append || i < resumeIndex){ if (_interrupt) { _interrupt = false; return false; } downloadFile.write(c); downloadFile.flush(); } } currentTime = System.currentTimeMillis() - currentTime; input.close(); downloadFile.close(); // BANDWIDTH related stuff Client.debug.println("total bytes: " + newFile.length() + " total time: " + currentTime); if (_bandwidthWindow++ < _bandwidthWindow){ _totalBytes += newFile.length(); _totalTime += (currentTime / 1000); } else { _totalBytes = newFile.length(); _totalTime = (currentTime / 1000); _bandwidthWindow = 0; } } catch (IOException e){ Client.out.println("IOException in CacheController.downloadFile(): " + e); return false; } _cache.add(saveFile); return true; }
14573 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14573/ad52825478597c531f840419d0926af07ffe1a7f/CacheController.java/clean/client/CacheController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 800, 790, 464, 995, 945, 812, 12, 780, 768, 1785, 15329, 1227, 18, 4148, 18, 8222, 2932, 1649, 2933, 18, 7813, 812, 768, 1785, 2773, 15, 768, 1785, 1769, 780, 8526, 7860, 33, 768, 1785, 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, 800, 790, 464, 995, 945, 812, 12, 780, 768, 1785, 15329, 1227, 18, 4148, 18, 8222, 2932, 1649, 2933, 18, 7813, 812, 768, 1785, 2773, 15, 768, 1785, 1769, 780, 8526, 7860, 33, 768, 1785, 18, ...
if (cx.currentActivationDepth == 0) throw new IllegalStateException(); if (cx.currentActivationScope == null) throw new IllegalStateException(); if (cx.currentActivationCall != cx.currentActivationScope) throw new IllegalStateException();
public static void exitActivationFunction(Context cx) { if (cx.currentActivationDepth == 0) throw new IllegalStateException(); if (cx.currentActivationScope == null) throw new IllegalStateException(); if (cx.currentActivationCall != cx.currentActivationScope) throw new IllegalStateException(); NativeCall call = cx.currentActivationCall; cx.currentActivationCall = call.parentActivationCall; cx.currentActivationScope = call.parentActivationScope; call.parentActivationCall = null; call.parentActivationScope = null; decreaseActivationDepth(cx); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/81605cfd95070f6af92b065f7488da2f048e67e8/ScriptRuntime.java/buggy/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2427, 14857, 2083, 12, 1042, 9494, 13, 565, 288, 3639, 309, 261, 71, 92, 18, 2972, 14857, 6148, 422, 374, 13, 5411, 604, 394, 5477, 5621, 3639, 309, 261, 71, 92, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2427, 14857, 2083, 12, 1042, 9494, 13, 565, 288, 3639, 309, 261, 71, 92, 18, 2972, 14857, 6148, 422, 374, 13, 5411, 604, 394, 5477, 5621, 3639, 309, 261, 71, 92, 18, 2...
List<File> returnValues = new ArrayList();
List<File> returnValues = new ArrayList<File>();
private List<File> getSelectedFiles() { Object[] selectedValues = getSelectionModel().getSelections(); if (selectedValues == null || selectedValues.length == 0) { return null; } // check for dirs: List<File> returnValues = new ArrayList(); for (int i = 0; i < selectedValues.length; i++) { if (selectedValues[i] instanceof FileInfo) { FileInfo fileInfo = (FileInfo) selectedValues[i]; File file = fileInfo.getDiskFile(getController() .getFolderRepository()); if (file.exists()) {// only use files that exists returnValues.add(file); } } else if (selectedValues[i] instanceof Directory) { Directory directory = (Directory) selectedValues[i]; File file = directory.getFile(); returnValues.add(file); } } return returnValues; }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/d52549631753094e49d9718b6ece9f56eaac37f2/DirectoryPanel.java/clean/src/main/de/dal33t/powerfolder/ui/folder/DirectoryPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 987, 32, 812, 34, 16625, 2697, 1435, 288, 3639, 1033, 8526, 3170, 1972, 273, 23204, 1488, 7675, 588, 29913, 5621, 3639, 309, 261, 8109, 1972, 422, 446, 747, 3170, 1972, 18, 2469, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 32, 812, 34, 16625, 2697, 1435, 288, 3639, 1033, 8526, 3170, 1972, 273, 23204, 1488, 7675, 588, 29913, 5621, 3639, 309, 261, 8109, 1972, 422, 446, 747, 3170, 1972, 18, 2469, 42...
SimpleDateFormat df = (SimpleDateFormat) tl_df.get(); if (df == null) { df = new SimpleDateFormat("''yyyy-MM-dd''"); tl_df.set(df); } set(parameterIndex, df.format(x));
set(parameterIndex, "'" + x.toString() + "'");
public void setDate(int parameterIndex, java.sql.Date x) throws SQLException { if (null == x) { setNull(parameterIndex, Types.OTHER); } else { SimpleDateFormat df = (SimpleDateFormat) tl_df.get(); if (df == null) { df = new SimpleDateFormat("''yyyy-MM-dd''"); tl_df.set(df); } set(parameterIndex, df.format(x)); } // The above is how the date should be handled. // // However, in JDK's prior to 1.1.6 (confirmed with the // Linux jdk1.1.3 and the Win95 JRE1.1.5), SimpleDateFormat seems // to format a date to the previous day. So the fix is to add a day // before formatting. // // PS: 86400000 is one day // //set(parameterIndex, df.format(new java.util.Date(x.getTime()+86400000))); }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/cdebcad6af70ec13bd89f11cf7f3d8b7d5278f50/PreparedStatement.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 17604, 12, 474, 25412, 16, 2252, 18, 4669, 18, 1626, 619, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 2011, 422, 619, 13, 202, 202, 95, 1082, 202, 542, 2041, 12, 6775,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17604, 12, 474, 25412, 16, 2252, 18, 4669, 18, 1626, 619, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 2011, 422, 619, 13, 202, 202, 95, 1082, 202, 542, 2041, 12, 6775,...
public ParticleManager(int noParticles, Camera cam) { camera = cam; this.noParticles = noParticles; // init non-null, non-zero field members rotMatrix = new Matrix3f(); originCenter = new Vector3f(); upVector = new Vector3f(0.0f, 1.0f, 0.0f); gravityForce = new Vector3f(0.0f, 0.0f, 0.0f); emissionDirection = new Vector3f(0.0f, 1.0f, 0.0f); startColor = new ColorRGBA(1.0f, 0.0f, 0.0f, 1.0f); endColor = new ColorRGBA(1.0f, 1.0f, 0.0f, 0.0f); particleSpeed = new Vector3f(); // init working vectors.. used to prevent additional object creation. upXemit = new Vector3f(); absUpVector = new Vector3f(); abUpMinUp = new Vector3f(); setMinTime(0); setMaxTime(Float.MAX_VALUE); setRepeatType(Controller.RT_WRAP); setSpeed(1.0f); initialVelocity = 1.0f; minimumLifeTime = 2500f; maximumAngle = 0.7853982f; startSize = 20f; endSize = 4f; randomMod = 1.0f; releaseRate = noParticles; releaseVariance = 0; particleSpinSpeed = 0; controlFlow = false; precision = .01f; // 10ms geometryCoordinates = new Vector3f[noParticles << 2]; int[] indices = new int[noParticles * 6]; for (int j = 0; j < noParticles; j++) { indices[0 + j * 6] = j * 4 + 2; indices[1 + j * 6] = j * 4 + 1; indices[2 + j * 6] = j * 4 + 0; indices[3 + j * 6] = j * 4 + 3; indices[4 + j * 6] = j * 4 + 2; indices[5 + j * 6] = j * 4 + 0; } appearanceColors = new ColorRGBA[noParticles << 2]; particles = new Particle[noParticles]; // overriding the worldRotation allows the programmer to attach the particles // to things which have changing rotation without ruining the particle bill- // boarding. particlesGeometry = new TriMesh("particles") { private static final long serialVersionUID = 1L; public void updateGeometricState(float time, boolean initiator) { super.updateGeometricState(time, initiator); if (geoToUse == GS_MESH) { psMesh.getWorldRotation().mult(emissionDirection, worldEmit); } else getWorldRotation().mult(emissionDirection, worldEmit); getWorldRotation().set(0,0,0,1); } }; particlesGeometry.setVertices(new Vector3f[noParticles << 2]); particlesGeometry.setTextures(new Vector2f[noParticles << 2], 0); particlesGeometry.setIndices(indices); particlesGeometry.setRenderQueueMode(Renderer.QUEUE_TRANSPARENT); particlesGeometry.setLightCombineMode(LightState.OFF); particlesGeometry.setTextureCombineMode(TextureState.REPLACE); invScale = new Vector3f(); Vector3f speed = new Vector3f(); Vector3f location = new Vector3f(); updateRotationMatrix(); for (int k = 0; k < noParticles; k++) { float life = getRandomLifeSpan(); getRandomSpeed(speed); particles[k] = new Particle(this, speed, location, life); for (int a = 3; a >= 0; a--) { particlesGeometry.setTextureCoord(0, (k << 2) + a, sharedTextureData[a]); geometryCoordinates[ (k << 2) + a] = particles[k].verts[a]; appearanceColors[ (k << 2) + a] = particles[k].currColor; } } particlesGeometry.updateTextureBuffer(); warmUp(60); }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/6aaba14bb39fd6af9aea6f599180d9ac7dbd923d/ParticleManager.java/buggy/src/com/jmex/effects/ParticleManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6393, 3711, 1318, 12, 474, 1158, 1988, 8383, 16, 30355, 5861, 13, 288, 3639, 10836, 273, 5861, 31, 3639, 333, 18, 2135, 1988, 8383, 273, 1158, 1988, 8383, 31, 3639, 368, 1377, 1208,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6393, 3711, 1318, 12, 474, 1158, 1988, 8383, 16, 30355, 5861, 13, 288, 3639, 10836, 273, 5861, 31, 3639, 333, 18, 2135, 1988, 8383, 273, 1158, 1988, 8383, 31, 3639, 368, 1377, 1208,...
entityDecl.setValues(name,publicId,systemId, null, notation, isPE, inExternal);
entityDecl.setValues(name,publicId,systemId, null, notation, null, isPE, inExternal);
public void unparsedEntityDecl(String name, String publicId, String systemId, String notation) throws XNIException { XMLEntityDecl entityDecl = new XMLEntityDecl(); boolean isPE = name.startsWith("%"); boolean inExternal = fReadingExternalDTD; entityDecl.setValues(name,publicId,systemId, null, notation, isPE, inExternal); int entityIndex = getEntityDeclIndex(name); if (entityIndex == -1) { entityIndex = createEntityDecl(); setEntityDecl(entityIndex, entityDecl); } } // unparsedEntityDecl(String,String,String,String)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/1896aabac7a9d90f353de029d30e8667182bb06f/DTDGrammar.java/clean/src/org/apache/xerces/impl/validation/grammars/DTDGrammar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 27810, 1943, 3456, 12, 780, 508, 16, 514, 1071, 548, 16, 4766, 565, 514, 30083, 16, 514, 12155, 13, 3639, 1216, 1139, 50, 45, 503, 288, 3639, 1139, 9687, 1628, 3456, 225, 152...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27810, 1943, 3456, 12, 780, 508, 16, 514, 1071, 548, 16, 4766, 565, 514, 30083, 16, 514, 12155, 13, 3639, 1216, 1139, 50, 45, 503, 288, 3639, 1139, 9687, 1628, 3456, 225, 152...
this.setColumnCount(oldColumnCount - 1);
public void removeColumn(int columnIndex) { int oldColumnCount = getColumnCount(); //On retire toutes les valeurs de la colonne columnIndex for (int row = 0; row < getColumnCount(); row++) { Vector rowVector = (Vector) dataVector.elementAt(row); rowVector.removeElementAt(columnIndex); } this.setColumnCount(oldColumnCount - 1); }
9737 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9737/cf9d2c6af2edd45b999eadc31aa21cdf2b83603c/FileTableModel.java/clean/FSeeker/src/model/FileTableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 1494, 12, 474, 14882, 13, 288, 202, 202, 474, 1592, 1494, 1380, 273, 6716, 1380, 5621, 202, 202, 759, 1398, 325, 577, 358, 993, 18022, 1244, 73, 25152, 443, 7125, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 1494, 12, 474, 14882, 13, 288, 202, 202, 474, 1592, 1494, 1380, 273, 6716, 1380, 5621, 202, 202, 759, 1398, 325, 577, 358, 993, 18022, 1244, 73, 25152, 443, 7125, 1...
if (this.phiNodeForLoads && myVN != null && myVN.length == 1 && myVN[0].hasFlag(ValueNumber.PHI_NODE))
if (false && this.phiNodeForLoads && myVN != null && myVN.length == 1 && myVN[0].hasFlag(ValueNumber.PHI_NODE))
void mergeAvailableLoadSets(ValueNumberFrame other, ValueNumberFactory factory) { if (REDUNDANT_LOAD_ELIMINATION) { // Merge available load sets. // Only loads that are available in both frames // remain available. All others are discarded. String s = ""; if (RLE_DEBUG) { s = "Merging " + this.availableLoadMapAsString() + " and " + other.availableLoadMapAsString(); } boolean changed = false; if (other.isBottom()) { changed = !this.availableLoadMap.isEmpty(); availableLoadMap.clear(); } else if (!other.isTop()) { for(Map.Entry<AvailableLoad,ValueNumber[]> e : availableLoadMap.entrySet()) { AvailableLoad load = e.getKey(); ValueNumber[] myVN = e.getValue(); ValueNumber[] otherVN = other.availableLoadMap.get(load); if (this.phiNodeForLoads && myVN != null && myVN.length == 1 && myVN[0].hasFlag(ValueNumber.PHI_NODE)) continue; if (!Arrays.equals(myVN, otherVN)) { ValueNumber phi = mergedLoads.get(load); if (phi == null) { phi = factory.createFreshValue(); phi.setFlag(ValueNumber.PHI_NODE); mergedLoads.put(load, phi); if (RLE_DEBUG) System.out.println("Creating phi node " + phi + " for " + load); } changed = true; e.setValue(new ValueNumber[] { phi }); } } } previouslyKnownAs.putAll(other.previouslyKnownAs); if (changed) this.phiNodeForLoads = true; if (changed && RLE_DEBUG) { System.out.println(s); System.out.println(" Result is " + this.availableLoadMapAsString()); System.out.println(" Set phi for " + System.identityHashCode(this)); } } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/178a8a22959527de0069eabd7b20212648458cfe/ValueNumberFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/vna/ValueNumberFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2691, 5268, 2563, 2785, 12, 620, 1854, 3219, 1308, 16, 1445, 1854, 1733, 3272, 13, 288, 202, 202, 430, 261, 5879, 5240, 6856, 67, 7783, 67, 41, 2053, 6236, 2689, 13, 288, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2691, 5268, 2563, 2785, 12, 620, 1854, 3219, 1308, 16, 1445, 1854, 1733, 3272, 13, 288, 202, 202, 430, 261, 5879, 5240, 6856, 67, 7783, 67, 41, 2053, 6236, 2689, 13, 288, 108...
public PortletWindow getPortletWindowOfAction() {
public PortletWindow getPortletWindowOfAction() {
public PortletWindow getPortletWindowOfAction() { Iterator iterator = getStateLessControlParameter().keySet().iterator(); while (iterator.hasNext()) { String name = (String)iterator.next(); if (name.startsWith(ACTION)) { String id = name.substring(ACTION.length()+1); Fragment fragment = org.apache.pluto.portalImpl.services.pageregistry.PageRegistry.getFragment(id); if (fragment instanceof PortletFragment) { return((PortletFragment)fragment).getPortletWindow(); } } } return null; }
51810 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51810/cba5674453f8a9143c9f5bd050cc9e5572dd940b/PortalControlParameter.java/buggy/portal/src/java/org/apache/pluto/portalImpl/core/PortalControlParameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 21305, 3829, 11036, 1810, 3829, 951, 1803, 1435, 565, 288, 3639, 4498, 2775, 273, 8997, 15313, 3367, 1662, 7675, 856, 694, 7675, 9838, 5621, 3639, 1323, 261, 9838, 18, 5332, 2134, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21305, 3829, 11036, 1810, 3829, 951, 1803, 1435, 565, 288, 3639, 4498, 2775, 273, 8997, 15313, 3367, 1662, 7675, 856, 694, 7675, 9838, 5621, 3639, 1323, 261, 9838, 18, 5332, 2134, 107...
OStrings.TF_ERROR, JOptionPane.ERROR_MESSAGE);
OStrings.getString("TF_ERROR"), JOptionPane.ERROR_MESSAGE);
private void doOK( JComboBox m_sourceLocaleField, JComboBox m_targetLocaleField, JCheckBox m_sentenceSegmentingCheckBox, JTextField m_srcRootField, JTextField m_locRootField, JTextField m_glosRootField, JTextField m_tmRootField ) { if( !ProjectProperties.verifySingleLangCode(m_sourceLocaleField.getSelectedItem().toString()) ) { JOptionPane.showMessageDialog(this, OStrings.getString("NP_INVALID_SOURCE_LOCALE") + OStrings.getString("NP_LOCALE_SUGGESTION"), OStrings.TF_ERROR, JOptionPane.ERROR_MESSAGE); m_sourceLocaleField.requestFocusInWindow(); return; } projectProperties.setSourceLanguage(m_sourceLocaleField.getSelectedItem().toString()); if( !ProjectProperties.verifySingleLangCode(m_targetLocaleField.getSelectedItem().toString()) ) { JOptionPane.showMessageDialog(this, OStrings.getString("NP_INVALID_TARGET_LOCALE") + OStrings.getString("NP_LOCALE_SUGGESTION"), OStrings.TF_ERROR, JOptionPane.ERROR_MESSAGE); m_targetLocaleField.requestFocusInWindow(); return; } projectProperties.setTargetLanguage(m_targetLocaleField.getSelectedItem().toString()); projectProperties.setSentenceSegmentingEnabled(m_sentenceSegmentingCheckBox.isSelected()); projectProperties.setSourceRoot(m_srcRootField.getText()); if (!projectProperties.getSourceRoot().endsWith(File.separator)) projectProperties.setSourceRoot(projectProperties.getSourceRoot() + File.separator); if( dialogType!=NEW_PROJECT && !new File(projectProperties.getSourceRoot()).exists() ) { JOptionPane.showMessageDialog(this, OStrings.getString("NP_SOURCEDIR_DOESNT_EXIST"), OStrings.TF_ERROR, JOptionPane.ERROR_MESSAGE); m_srcRootField.requestFocusInWindow(); return; } projectProperties.setTargetRoot(m_locRootField.getText()); if (!projectProperties.getTargetRoot().endsWith(File.separator)) projectProperties.setTargetRoot(projectProperties.getTargetRoot() + File.separator); if( dialogType!=NEW_PROJECT && !new File(projectProperties.getTargetRoot()).exists() ) { JOptionPane.showMessageDialog(this, OStrings.getString("NP_TRANSDIR_DOESNT_EXIST"), OStrings.TF_ERROR, JOptionPane.ERROR_MESSAGE); m_locRootField.requestFocusInWindow(); return; } projectProperties.setGlossaryRoot(m_glosRootField.getText()); if (!projectProperties.getGlossaryRoot().endsWith(File.separator)) projectProperties.setGlossaryRoot(projectProperties.getGlossaryRoot() + File.separator); if( dialogType!=NEW_PROJECT && !new File(projectProperties.getGlossaryRoot()).exists() ) { JOptionPane.showMessageDialog(this, OStrings.getString("NP_GLOSSDIR_DOESNT_EXIST"), OStrings.TF_ERROR, JOptionPane.ERROR_MESSAGE); m_glosRootField.requestFocusInWindow(); return; } projectProperties.setTMRoot(m_tmRootField.getText()); if (!projectProperties.getTMRoot().endsWith(File.separator)) projectProperties.setTMRoot(projectProperties.getTMRoot() + File.separator); if( dialogType!=NEW_PROJECT && !new File(projectProperties.getTMRoot()).exists() ) { JOptionPane.showMessageDialog(this, OStrings.getString("NP_TMDIR_DOESNT_EXIST"), OStrings.TF_ERROR, JOptionPane.ERROR_MESSAGE); m_tmRootField.requestFocusInWindow(); return; } m_dialogCancelled = false; setVisible(false); }
8797 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8797/d76bcd54805e907e7fa0dcad27f410bb2dec2a60/ProjectPropertiesDialog.java/buggy/src/org/omegat/gui/dialogs/ProjectPropertiesDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 3141, 12, 5411, 804, 22199, 312, 67, 3168, 3916, 974, 16, 2398, 804, 22199, 312, 67, 3299, 3916, 974, 16, 5411, 804, 19174, 312, 67, 19335, 4131, 310, 19174, 16, 5411, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 3141, 12, 5411, 804, 22199, 312, 67, 3168, 3916, 974, 16, 2398, 804, 22199, 312, 67, 3299, 3916, 974, 16, 5411, 804, 19174, 312, 67, 19335, 4131, 310, 19174, 16, 5411, 8...
0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0,
0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 619, 0, 232, 0,
private static final short[] yyTable4() { return new short[] { 54, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 56, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 47, 39, 40, 41, 42, 41, 0, 43, 44, 45, 0, 0, 0, 0, 0, 41, 0, 47, 47, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 41, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 0, 0, 0, 0, 41, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 54, 54, 0, 0, 54, 54, 54, 0, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 54, 41, 0, 0, 0, 0, 0, 0, 54, 54, 0, 54, 54, 54, 54, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 56, 0, 0, 56, 56, 56, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 56, 56, 56, 56, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 0, 0, 41, 41, 41, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 41, 41, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 619, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 231, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 414, 49, 50, 0, 231, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 611, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 615, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 611, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 804, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 808, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 812, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 867, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 869, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 881, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 251, 251, 251, 0, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 0, 251, 251, 251, 0, 251, 0, 251, 0, 251, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 268, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 526, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 526, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 593, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 643, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 769, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 798, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 483, 483, 483, 0, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 483, 483, 0, 0, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 213, 213, 213, 0, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 213, 213, 0, 0, 213, 213, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 0, 213, 213, 213, 0, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 753, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 349, 0, 48, 49, 50, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 174, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 286, 287, 199, 288, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, }; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 22431, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11201, 16, 282, 10213, 16, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 22431, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11201, 16, 282, 10213, 16, 282...
this.ruby = ruby; }
this.ruby = ruby; }
public RubyExceptions(Ruby ruby) { this.ruby = ruby; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyExceptions.java/buggy/org/jruby/runtime/RubyExceptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 11416, 12, 54, 10340, 22155, 13, 288, 202, 202, 2211, 18, 27768, 273, 22155, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 19817, 11416, 12, 54, 10340, 22155, 13, 288, 202, 202, 2211, 18, 27768, 273, 22155, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
layoutEmitter = new TableLayoutEmitter( ( TableItemDesign ) list, emitter );
layoutEmitter = new TableLayoutEmitter( (TableItemDesign) list, emitter );
protected void accessGroupHeader( ListingDesign list, int index, IContentEmitter emitter ) { groupIndex = index; TableGroupDesign group = ( ( TableItemDesign ) list ).getGroup( index ); if ( group != null ) { TableBandDesign band = group.getHeader( ); if ( layoutEmitter == null && tableInfo.hasDropCells( index ) ) { layoutEmitter = new TableLayoutEmitter( ( TableItemDesign ) list, emitter ); outputEmitter = layoutEmitter; } accessTableBand( band, outputEmitter, false ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/83de512a7dc3a128ad54fa2607c01f0ef928234c/TableItemExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/TableItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2006, 1114, 1864, 12, 987, 310, 15478, 666, 16, 509, 770, 16, 1082, 202, 45, 1350, 13476, 11520, 262, 202, 95, 202, 202, 1655, 1016, 273, 770, 31, 202, 202, 1388, 1114, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2006, 1114, 1864, 12, 987, 310, 15478, 666, 16, 509, 770, 16, 1082, 202, 45, 1350, 13476, 11520, 262, 202, 95, 202, 202, 1655, 1016, 273, 770, 31, 202, 202, 1388, 1114, ...
public org.quickfix.field.LegSymbol getLegSymbol() throws FieldNotFound { org.quickfix.field.LegSymbol value = new org.quickfix.field.LegSymbol();
public quickfix.field.LegSymbol getLegSymbol() throws FieldNotFound { quickfix.field.LegSymbol value = new quickfix.field.LegSymbol();
public org.quickfix.field.LegSymbol getLegSymbol() throws FieldNotFound { org.quickfix.field.LegSymbol value = new org.quickfix.field.LegSymbol(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix44/ExecutionReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 5335, 336, 8329, 5335, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 5335, 460, 273, 394, 2358, 18, 19525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8329, 5335, 336, 8329, 5335, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 5335, 460, 273, 394, 2358, 18, 19525, ...
public Object getNewValue() { return newValue;
public Object getNewValue(Object key) { return newValues.get(key);
public Object getNewValue() { return newValue; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/646de6c1228ca0820a97e225df84d75e3993e272/Diffs.java/clean/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/Diffs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 12654, 620, 1435, 288, 9506, 202, 2463, 6129, 31, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 12654, 620, 1435, 288, 9506, 202, 2463, 6129, 31, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (res == null) { res = new ArrayList();
ArrayList res2 = new ArrayList(); if (res != null) { res2.addAll(res);
public List/*<String>*/ javaPrologueForMethod(MethodBinding binding, boolean forImplementingMethodCall, boolean eraseBufferAndArrayTypes) { List/*<String>*/ res = super.javaPrologueForMethod(binding, forImplementingMethodCall, eraseBufferAndArrayTypes); GLEmitter.BufferObjectKind kind = getBufferObjectKind(binding.getName()); if (kind != null) { // Need to generate appropriate prologue based on both buffer // object kind and whether this variant of the MethodBinding // is the one accepting a "long" as argument if (res == null) { res = new ArrayList(); } String prologue = "check"; if (kind == GLEmitter.BufferObjectKind.UNPACK_PIXEL) { prologue = prologue + "UnpackPBO"; } else if (kind == GLEmitter.BufferObjectKind.PACK_PIXEL) { prologue = prologue + "PackPBO"; } else if (kind == GLEmitter.BufferObjectKind.ARRAY) { prologue = prologue + "ArrayVBO"; } else if (kind == GLEmitter.BufferObjectKind.ELEMENT) { prologue = prologue + "ElementVBO"; } else { throw new RuntimeException("Unknown BufferObjectKind " + kind); } if (emitter.isBufferObjectMethodBinding(binding)) { prologue = prologue + "Enabled"; } else { prologue = prologue + "Disabled"; } prologue = prologue + "();"; res.add(0, prologue); } return res; }
48257 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48257/327d57dcc8f36e9dcce5764367e2bb759e207d92/GLConfiguration.java/clean/src/java/com/sun/gluegen/opengl/GLConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 987, 20308, 32, 780, 34, 5549, 2252, 626, 1330, 344, 1290, 1305, 12, 1305, 5250, 5085, 16, 4766, 7734, 1250, 364, 5726, 310, 12592, 16, 4766, 7734, 1250, 22038, 1892, 1876, 1076, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 987, 20308, 32, 780, 34, 5549, 2252, 626, 1330, 344, 1290, 1305, 12, 1305, 5250, 5085, 16, 4766, 7734, 1250, 364, 5726, 310, 12592, 16, 4766, 7734, 1250, 22038, 1892, 1876, 1076, 20...
if (jj_3R_35()) return true;
Token xsp; xsp = jj_scanpos; if (jj_scan_token(26)) jj_scanpos = xsp;
final private boolean jj_3R_69() { if (jj_3R_35()) return true; return false; }
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/5b85dc5e122a5bdf3ea90d4f89cebe71413fc26b/Parser.java/buggy/src/java/org/apache/velocity/runtime/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 8148, 1435, 288, 565, 3155, 619, 1752, 31, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5558, 3719, 1068...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 8148, 1435, 288, 565, 3155, 619, 1752, 31, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5558, 3719, 1068...
public Structure parsePDBFile(BufferedReader buf) throws IOException
public Structure parsePDBFile(InputStream inStream) throws IOException
public Structure parsePDBFile(BufferedReader buf) throws IOException { // (re)set structure structure = new StructureImpl() ; current_model = new ArrayList(); current_chain = null ; current_group = null ; header = init_header(); connects = new ArrayList(); try { String line = buf.readLine (); String recordName = ""; // if line is null already for the first time, the bufferede Reader had a problem if ( line == null ) { throw new IOException ("could not parse PDB File, BufferedReader returns null!"); } //System.out.println ("starting to parse:"); //System.out.println (line); while (line != null) {// System.out.println (">"+line+"<"); if ( line.equals("") || (line.equals(NEWLINE))){ // ignore empty lines that some people have in their (local) PDB files //System.out.println("ignoring"); line = buf.readLine (); continue; } try { recordName = line.substring (0, 6).trim (); } catch (StringIndexOutOfBoundsException e){ System.err.println("StringIndexOutOfBoundsException at line >" + line + "<" + NEWLINE + "this does not look like an expected PDB file") ; e.printStackTrace(); throw new StringIndexOutOfBoundsException(e.getMessage()); } //System.out.println(recordName); if ( recordName.equals("ATOM") ) pdb_ATOM_Handler ( line ) ; else if ( recordName.equals("HETATM")) pdb_ATOM_Handler ( line ) ; else if ( recordName.equals("MODEL") ) pdb_MODEL_Handler ( line ) ; else if ( recordName.equals("HEADER")) pdb_HEADER_Handler( line ) ; else if ( recordName.equals("TITLE") ) pdb_TITLE_Handler ( line ) ; else if ( recordName.equals("EXPDTA")) pdb_EXPDTA_Handler( line ) ; else if ( recordName.equals("REMARK")) pdb_REMARK_Handler( line ) ; else if ( recordName.equals("CONECT")) pdb_CONECT_Handler( line ) ; else if ( recordName.equals("REVDAT")) pdb_REVDAT_Handler( line ) ; else { // this line type is not supported, yet. } line = buf.readLine (); } // finish and add ... String modDate = (String) header.get("modDate"); if ( modDate.equals("0000-00-00") ) { // modification date = deposition date String depositionDate = (String) header.get("depDate"); header.put("modDate",depositionDate) ; } // a problem occured earlier so current_chain = null ... // most likely the buffered reader did not provide data ... if ( current_chain != null ) { current_chain.addGroup(current_group); if (isKnownChain(current_chain.getName()) == null) { current_model.add(current_chain); } } structure.addModel(current_model); structure.setHeader(header); structure.setConnections(connects); } catch (Exception e) { e.printStackTrace(); throw new IOException ("Error parsing PDB file"); } return structure; }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/215d83b1ab914e2deecb69fd4b6f112c83d0992f/PDBFileParser.java/buggy/src/org/biojava/bio/structure/io/PDBFileParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13348, 1109, 52, 2290, 812, 12, 17947, 2514, 1681, 13, 377, 1216, 1860, 377, 288, 13491, 368, 261, 266, 13, 542, 3695, 1171, 3695, 377, 273, 394, 13348, 2828, 1435, 274, 3639, 783, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13348, 1109, 52, 2290, 812, 12, 17947, 2514, 1681, 13, 377, 1216, 1860, 377, 288, 13491, 368, 261, 266, 13, 542, 3695, 1171, 3695, 377, 273, 394, 13348, 2828, 1435, 274, 3639, 783, ...
private int addDTDDefaultAttributes(QName element, XMLAttrList attrList, int attrIndex, boolean validationEnabled, boolean standalone) throws Exception { // // Check after all specified attrs are scanned // (1) report error for REQUIRED attrs that are missing (V_TAGc) // (2) check that FIXED attrs have matching value (V_TAGd) // (3) add default attrs (FIXED and NOT_FIXED) // int elementIndex = fGrammar.getElementDeclIndex(element, -1); if (elementIndex == -1) { return attrIndex; } fGrammar.getElementDecl(elementIndex,fTempElementDecl); int elementNameIndex = fTempElementDecl.name.rawname; int attlistIndex = fGrammar.getFirstAttributeDeclIndex(elementIndex); int firstCheck = attrIndex; int lastCheck = -1; while (attlistIndex != -1) { fGrammar.getAttributeDecl(attlistIndex, fTempAttDecl); // TO DO: For ericye Debug only /*** if (fTempAttDecl != null) { XMLElementDecl element = new XMLElementDecl(); fGrammar.getElementDecl(elementIndex, element); System.out.println("element: "+fStringPool.toString(element.name.localpart)); System.out.println("attlistIndex " + attlistIndex + "\n"+ "attName : '"+fStringPool.toString(fTempAttDecl.name.localpart) + "'\n" + "attType : "+fTempAttDecl.type + "\n" + "attDefaultType : "+fTempAttDecl.defaultType + "\n" + "attDefaultValue : '"+fTempAttDecl.defaultValue + "'\n" + attrList.getLength() +"\n" ); } /***/ int attPrefix = fTempAttDecl.name.prefix; int attName = fTempAttDecl.name.rawname; int attLocalpart = fTempAttDecl.name.localpart; int attType = attributeTypeName(fTempAttDecl); int attDefType =fTempAttDecl.defaultType; int attValue = -1 ; if (fTempAttDecl.defaultValue != null ) { attValue = fStringPool.addSymbol(fTempAttDecl.defaultValue); } boolean specified = false; boolean required = attDefType == XMLAttributeDecl.DEFAULT_TYPE_REQUIRED; /**** if (fValidating && fGrammar != null && fGrammarIsDTDGrammar && attValue != -1) { normalizeAttValue(null, fTempAttDecl.name, attValue,attType,fTempAttDecl.list, fTempAttDecl.enumeration); } /****/ if (firstCheck != -1) { boolean cdata = attType == fCDATASymbol; if (!cdata || required || attValue != -1) { int i = attrList.getFirstAttr(firstCheck); while (i != -1 && (lastCheck == -1 || i <= lastCheck)) { if ( attrList.getAttrName(i) == fTempAttDecl.name.rawname ) { if (validationEnabled && attDefType == XMLAttributeDecl.DEFAULT_TYPE_FIXED) { int alistValue = attrList.getAttValue(i); if (alistValue != attValue && !fStringPool.toString(alistValue).equals(fStringPool.toString(attValue))) { Object[] args = { fStringPool.toString(elementNameIndex), fStringPool.toString(attName), fStringPool.toString(alistValue), fStringPool.toString(attValue)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_FIXED_ATTVALUE_INVALID, XMLMessages.VC_FIXED_ATTRIBUTE_DEFAULT, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } specified = true; break; } i = attrList.getNextAttr(i); } } } if (!specified) { if (required) { if (validationEnabled) { Object[] args = { fStringPool.toString(elementNameIndex), fStringPool.toString(attName)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_REQUIRED_ATTRIBUTE_NOT_SPECIFIED, XMLMessages.VC_REQUIRED_ATTRIBUTE, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } else if (attValue != -1) { if (validationEnabled && standalone ) if ( fGrammarIsDTDGrammar && ((DTDGrammar) fGrammar).getAttributeDeclIsExternal(attlistIndex) ) { Object[] args = { fStringPool.toString(elementNameIndex), fStringPool.toString(attName)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_DEFAULTED_ATTRIBUTE_NOT_SPECIFIED, XMLMessages.VC_STANDALONE_DOCUMENT_DECLARATION, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } if (attType == fIDREFSymbol) { this.fValIDRef.validate( fStringPool.toString(attValue), this.fStoreIDRef ); } else if (attType == fIDREFSSymbol) { this.fValIDRefs.validate( fStringPool.toString(attValue), this.fStoreIDRef ); } if (attrIndex == -1) { attrIndex = attrList.startAttrList(); } fTempQName.setValues(attPrefix, attLocalpart, attName, fTempAttDecl.name.uri); int newAttr = attrList.addAttr(fTempQName, attValue, attType, false, false); if (lastCheck == -1) { lastCheck = newAttr; } } } attlistIndex = fGrammar.getNextAttributeDeclIndex(attlistIndex); } return attrIndex; } // addDTDDefaultAttributes(int,XMLAttrList,int,boolean,boolean):int
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b36768aae85d6d13bc8c8289ca78efb212c8fb8f/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 527, 25728, 1868, 2498, 12, 13688, 930, 16, 3167, 3843, 682, 1604, 682, 16, 509, 1604, 1016, 16, 1250, 3379, 1526, 16, 1250, 17676, 13, 1216, 1185, 288, 3639, 368, 3639, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 25728, 1868, 2498, 12, 13688, 930, 16, 3167, 3843, 682, 1604, 682, 16, 509, 1604, 1016, 16, 1250, 3379, 1526, 16, 1250, 17676, 13, 1216, 1185, 288, 3639, 368, 3639, 368, ...
public IAtomContainer newAtomContainer(IAtomContainer container);
public IAtomContainer newAtomContainer();
public IAtomContainer newAtomContainer(IAtomContainer container);
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/ad497dde50c35e16b8e3cc120caaadfe186a70ee/IChemObjectBuilder.java/buggy/src/org/openscience/cdk/interfaces/IChemObjectBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13922, 394, 3641, 2170, 12, 45, 3641, 2170, 1478, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 225, 202, 482, 13922, 394, 3641, 2170, 12, 45, 3641, 2170, 1478, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
parent.query("namespace::*");
Nodes nodes = parent.query("namespace::*");
public void testNamespaceAxis() { Element parent = new Element("Test", "http://www.example.org"); try { parent.query("namespace::*"); fail("Allowed return of namespace nodes"); } catch (XPathException success) { assertNotNull(success.getMessage()); assertNotNull(success.getCause()); } }
626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/69c134b23c2b37218c23f5eab89b671fc4fa5c89/XPathTest.java/clean/src/nu/xom/tests/XPathTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3402, 6558, 1435, 288, 7734, 3010, 982, 273, 394, 3010, 2932, 4709, 3113, 315, 2505, 2207, 5591, 18, 8236, 18, 3341, 8863, 7734, 775, 288, 5411, 14037, 2199, 273, 982, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3402, 6558, 1435, 288, 7734, 3010, 982, 273, 394, 3010, 2932, 4709, 3113, 315, 2505, 2207, 5591, 18, 8236, 18, 3341, 8863, 7734, 775, 288, 5411, 14037, 2199, 273, 982, 18...
for ( int i = 0 ; i < se.getFieldNames( ).length ; i++ ) out.println("\t\t<field>"+se.getData( )[ i ].toString( )+"</field>");
for ( int i = 0 ; i < se.getFieldNames( ).length ; i++ ) { /*if (se.getFieldNames()[i].toString().contains("TIMED")) out.println("\t\t<field>"+se.getFieldTypes( )[ i ].toString( )+"</field>"); else */ out.println("\t\t<field>"+se.getData( )[ i ].toString( )+"</field>"); }
public void doPost ( HttpServletRequest req , HttpServletResponse res ) throws ServletException , IOException { boolean responseCVS = false; boolean wantTimeStamp = false; boolean commonReq = true; PrintWriter out = res.getWriter(); if (req.getParameter("vsName")==null || req.getParameter("vsName").equals("")) { res.sendError( Container.MISSING_VSNAME_ERROR , "The virtual sensor name is missing" ); return; } if (req.getParameter("display") != null && req.getParameter("display").equals("CSV")) { responseCVS = true; res.setContentType("text/csv"); //res.setContentType("text/html"); } else { res.setContentType("text/xml"); } if (req.getParameter("commonReq") != null && req.getParameter("commonReq").equals("false")) { commonReq = false; } String vsName = req.getParameter("vsName"); String delimiter = ";"; if (req.getParameter("delimiter") != null && !req.getParameter("delimiter").equals("")) { String reqdelimiter = req.getParameter("delimiter"); if (reqdelimiter.equals("tab")) { delimiter = "\t"; } else if (reqdelimiter.equals("space")){ delimiter = " "; } else if (reqdelimiter.equals("other") && req.getParameter("otherdelimiter") != null && !req.getParameter("otherdelimiter").equals("")) { delimiter = req.getParameter("otherdelimiter"); } } String request = ""; String expression = ""; String line=""; if (commonReq) { if (req.getParameter("fields") != null) { String[] fields = req.getParameterValues("fields"); for (int i=0; i < fields.length; i++) { if (fields[i].equals("TIMED")) { wantTimeStamp = true; } request += ", " + fields[i]; } } } else { String field; if (req.getParameter("fields") == null) { out.println("Request ERROR"); return; } else { field = req.getParameter("fields"); } String aggregateFunction = "AVG"; if (req.getParameter("aggregateFunction")!= null) { if (req.getParameter("aggregateFunction").equals("MIN")) { aggregateFunction = "MIN"; } else if (req.getParameter("aggregateFunction").equals("MAX")) { aggregateFunction = "MAX"; } } request += " " + aggregateFunction + "(" + field + ") "; } String limit = ""; if (req.getParameter("nb") != null && req.getParameter("nb") != "") { int nb = new Integer(req.getParameter("nb")); if (nb > 0) { limit = "LIMIT " + nb + " offset 0"; } } String where = ""; if (req.getParameter("critfield") != null) { try { String[] critJoin = req.getParameterValues("critJoin"); String[] neg = req.getParameterValues("neg"); String[] critfields = req.getParameterValues("critfield"); String[] critop = req.getParameterValues("critop"); String[] critval = req.getParameterValues("critval"); for (int i=0; i < critfields.length ; i++) { if (critop[i].equals("LIKE")) { if (i > 0) { where += " " + critJoin[i-1] + " " + neg[i] + " " + critfields[i] + " LIKE '%"; // + critval[i] + "%'"; } else { where += neg[i] + " " + critfields[i] + " LIKE '%"; // + critval[i] + "%'"; } if (critfields[i].equals("TIMED")) { try { SimpleDateFormat sdf = new SimpleDateFormat ("dd/MM/yyyy HH:mm:ss"); Date d = sdf.parse(critval[i]); where += d.getTime(); } catch (Exception e) { where += "0"; } } else { where += critval[i]; } where += "%'"; } else { if (i > 0) { where += " " + critJoin[i-1] + " " + neg[i] + " " + critfields[i] + " " + critop[i] + " "; //critval[i]; } else { where += neg[i] + " " + critfields[i] + " " + critop[i] + " "; //critval[i]; } if (critfields[i].equals("TIMED")) { try { SimpleDateFormat sdf = new SimpleDateFormat ("dd/MM/yyyy HH:mm:ss"); Date d = sdf.parse(critval[i]); where += d.getTime(); } catch (Exception e) { System.out.println(e.toString()); where += "0"; } } else { where += critval[i]; } } } where = " WHERE " + where; } catch (NullPointerException npe) { where = " "; } } if (! request.equals("")) { request = request.substring(2); if (!commonReq) { expression = request; } request = "select "+request+" from " + vsName + where; if (commonReq) { request += " order by TIMED DESC "+limit; } request += ";"; StringBuilder query = new StringBuilder(request); //out.println(query); ///* DataEnumerator result = StorageManager.getInstance( ).executeQuery( query , false ); if (result.IsNull()) { res.setContentType("text/html"); out.println("No data corresponds to your request"); return; } line = ""; if (responseCVS) { boolean firstLine = true; out.println(query); while ( result.hasMoreElements( ) ) { StreamElement se = result.nextElement( ); if (firstLine) { for (int i=0; i < se.getFieldNames().length; i++) line += delimiter + se.getFieldNames()[i].toString(); if (wantTimeStamp) { line += delimiter + "TIMED"; } firstLine = false; } out.println(line.substring(delimiter.length())); line = ""; for ( int i = 0 ; i < se.getFieldNames( ).length ; i++ ) line += delimiter+se.getData( )[ i ].toString( ); if (wantTimeStamp) { SimpleDateFormat sdf = new SimpleDateFormat ("dd/MM/yyyy HH:mm:ss"); Date d = new Date (se.getTimeStamp()); line += delimiter + sdf.format(d); } out.println(line.substring(delimiter.length())); } } else { boolean firstLine = true; out.println("<data>"); while ( result.hasMoreElements( ) ) { StreamElement se = result.nextElement( ); if (firstLine) { out.println("\t<line>"); for (int i = 0; i < se.getFieldNames().length; i++) if (commonReq) { out.println("\t\t<field>" + se.getFieldNames()[i].toString()+"</field>"); } else { out.println("\t\t<field>"+expression+"</field>"); } if (wantTimeStamp) { out.println("\t\t<field>TIMED</field>"); } out.println("\t</line>"); firstLine = false; } line = ""; out.println("\t<line>"); for ( int i = 0 ; i < se.getFieldNames( ).length ; i++ ) out.println("\t\t<field>"+se.getData( )[ i ].toString( )+"</field>"); if (wantTimeStamp) { SimpleDateFormat sdf = new SimpleDateFormat ("dd/MM/yyyy HH:mm:ss"); Date d = new Date (se.getTimeStamp()); out.println("\t\t<field>"+sdf.format(d)+"</field>"); } out.println("\t</line>"); } out.println("</data>"); } result.close(); //*/ } else { out.println("Please select some fields"); } }
45185 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45185/6dd8234d010488a02a9ed969babec2cd61277658/DataDownload.java/buggy/src/gsn/web/DataDownload.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 261, 9984, 1111, 269, 12446, 400, 262, 1216, 16517, 269, 1860, 288, 202, 1377, 1250, 766, 39, 14640, 273, 629, 31, 202, 1377, 1250, 2545, 21536, 273, 629, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 261, 9984, 1111, 269, 12446, 400, 262, 1216, 16517, 269, 1860, 288, 202, 1377, 1250, 766, 39, 14640, 273, 629, 31, 202, 1377, 1250, 2545, 21536, 273, 629, 31, ...
newValue += value;
newValue = ++value;
private void executeInteger(String oldValue) throws BuildException { int value = 0; int newValue = 0; DecimalFormat fmt = (m_pattern != null) ? new DecimalFormat(m_pattern) : new DecimalFormat(); if (oldValue != null) { try { value = fmt.parse(oldValue).intValue(); } catch (NumberFormatException nfe) { /* swollow */ } catch (ParseException pe) { /* swollow */ } } if (m_value != null) { try { value = fmt.parse(m_value).intValue(); } catch (NumberFormatException nfe) { /* swollow */ } catch (ParseException pe) { /* swollow */ } } if (m_default != null && oldValue == null) { try { value = fmt.parse(m_default).intValue(); } catch (NumberFormatException nfe) { /* swollow */ } catch (ParseException pe) { /* swollow */ } } if (m_operation == Operation.EQUALS_OPER) { newValue = value; } else if (m_operation == Operation.INCREMENT_OPER) { newValue += value; } else if (m_operation == Operation.DECREMENT_OPER) { newValue -= value; } m_value = fmt.format(newValue); }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0e087a8ab7be7330d92fde84a733c7803db51cce/PropertyFile.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1836, 4522, 12, 780, 11144, 13, 1216, 18463, 3639, 288, 5411, 509, 460, 273, 374, 31, 5411, 509, 6129, 225, 273, 374, 31, 5411, 29665, 1325, 273, 261, 81, 67, 4951, 480, 446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1836, 4522, 12, 780, 11144, 13, 1216, 18463, 3639, 288, 5411, 509, 460, 273, 374, 31, 5411, 509, 6129, 225, 273, 374, 31, 5411, 29665, 1325, 273, 261, 81, 67, 4951, 480, 446,...
this.conf = conf; this.mapOutputFile = new MapOutputFile(); this.mapOutputFile.setConf(conf);
if (conf instanceof JobConf) { this.conf = (JobConf) conf; } else { this.conf = new JobConf(conf); } this.mapOutputFile.setConf(this.conf);
public void setConf(Configuration conf) { this.conf = conf; this.mapOutputFile = new MapOutputFile(); this.mapOutputFile.setConf(conf); }
50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/b0b617a587ab91305418d13a4a4cb95620c55429/ReduceTask.java/clean/src/java/org/apache/hadoop/mapred/ReduceTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3976, 12, 1750, 2195, 13, 288, 565, 333, 18, 3923, 273, 2195, 31, 565, 333, 18, 1458, 1447, 812, 273, 394, 1635, 1447, 812, 5621, 565, 333, 18, 1458, 1447, 812, 18, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3976, 12, 1750, 2195, 13, 288, 565, 333, 18, 3923, 273, 2195, 31, 565, 333, 18, 1458, 1447, 812, 273, 394, 1635, 1447, 812, 5621, 565, 333, 18, 1458, 1447, 812, 18, 54...
if (!XMLChar.isValidQName(name)) {
if (!XML11Char.isXML11ValidQName(name)) {
public void parseContents(Parser parser) { final String name = getAttribute("name"); if (name.length() > 0) { if (!XMLChar.isValidQName(name)) { ErrorMsg err = new ErrorMsg(ErrorMsg.INVALID_QNAME_ERR, name, this); parser.reportError(Constants.ERROR, err); } setName(parser.getQNameIgnoreDefaultNs(name)); } else { reportError(this, parser, ErrorMsg.REQUIRED_ATTR_ERR, "name"); } final String select = getAttribute("select"); if (select.length() > 0) { _select = parser.parseExpression(this, "select", null); } parseChildren(parser); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/f5e9379c12858644b7457ebfd53486a4d094102a/WithParam.java/buggy/src/org/apache/xalan/xsltc/compiler/WithParam.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 6323, 12, 2678, 2082, 13, 288, 202, 6385, 514, 508, 273, 4061, 2932, 529, 8863, 202, 430, 261, 529, 18, 2469, 1435, 405, 374, 13, 288, 5411, 309, 16051, 4201, 2499, 215...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 6323, 12, 2678, 2082, 13, 288, 202, 6385, 514, 508, 273, 4061, 2932, 529, 8863, 202, 430, 261, 529, 18, 2469, 1435, 405, 374, 13, 288, 5411, 309, 16051, 4201, 2499, 215...
vec.add("" + origW) ;
vec.add(""+width) ;
public void doPost ( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; File file_path = new File(Utility.getDomainPref( "image_path", host )); String image_url = Utility.getDomainPref( "image_url",host ) ; log (image_url) ; imcode.server.User user ; // Check if user logged on if ( (user=Check.userLoggedOn(req,res,start_url))==null ) { return ; } res.setContentType("text/html") ; int length = req.getContentLength(); ServletInputStream in = req.getInputStream() ; PrintWriter out = res.getWriter() ; HttpSession session = req.getSession(true) ; session.removeValue("ImageBrowse.optionlist") ; byte buffer[] = new byte[ length ] ; int bytes_read = 0; while ( bytes_read < length ) { bytes_read += in.read(buffer,bytes_read,length-bytes_read) ; } String contentType = req.getContentType() ; MultipartFormdataParser mp = new MultipartFormdataParser(new String(buffer,"8859_1"),contentType) ; String file = mp.getParameter("file") ; String filename = mp.getFilename("file") ; //submitted with Browse Images button, no ImageUpload (M Wallin) if (mp.getParameter("browse_images") != null) { // Browse Image Library Utility.redirect(req,res,"ImageBrowse"); } if ( mp.getParameter("ok") == null ) { doGet(req,res) ; return ; } int meta_id = Integer.parseInt(mp.getParameter("meta_id")) ; int img_no = Integer.parseInt(mp.getParameter("img_no")) ; // extraParameter, presets imagepath... set by ImageBrowse File fn = new File(filename) ; fn = new File (file_path,fn.getName()) ; if (file.length() > 0) { if ( fn.exists() ) { Vector vec = new Vector() ; vec.add("#back#") ; vec.add("ChangeImage?meta_id="+meta_id+"&img_no="+img_no) ; vec.add("#meta_id#") ; vec.add(String.valueOf(meta_id)) ; vec.add("#img_no#") ; vec.add(String.valueOf(img_no)) ; String htmlStr = IMCServiceRMI.parseDoc( imcserver, vec, "file_exists.html", "se") ; out.println(htmlStr) ; return ; } FileOutputStream fos = new FileOutputStream(fn) ; fos.write(file.getBytes("8859_1")) ; fos.close() ; } //String htmlStr = IMCServiceRMI.interpretAdminTemplate(imcserver,meta_id,user,"change_img.html",img_no,0,0,0) ; //out.println(htmlStr) ; String image_ref = image_url+fn.getName() ; String imageName = (image_ref.lastIndexOf("/") != -1)?image_ref.substring(image_ref.lastIndexOf("/") +1):image_ref; String imagePath = Utility.getDomainPref( "image_path",host ); log("ImagePath: " + imagePath + imageName); File _file = new File(imagePath + imageName); ImageFileMetaData imFMD = new ImageFileMetaData(_file); int origW = imFMD.getWidth(); int origH = imFMD.getHeight(); log("width/height: " + origW + ", " + origH); Vector vec = new Vector() ; vec.add("#imgName#") ; vec.add("") ; vec.add("#imgRef#") ; vec.add(image_ref) ; vec.add("#imgWidth#") ; vec.add("" + origW) ; vec.add("#imgHeight#") ; vec.add("" + origH) ; vec.add("#origW#") ; vec.add("" + origW) ; vec.add("#origH#") ; vec.add("" + origH) ; vec.add("#imgBorder#") ; vec.add("0") ; vec.add("#imgVerticalSpace#") ; vec.add("0") ; vec.add("#imgHorizontalSpace#") ; vec.add("0") ; vec.add("#target_name#") ; vec.add("") ; vec.add("#self_checked#") ; vec.add("selected") ; vec.add("#top_selected#") ; vec.add("selected") ; vec.add("#imgAltText#") ; vec.add("") ; vec.add("#imgLowScr#") ; vec.add("") ; vec.add("#imgRefLink#") ; vec.add("") ; vec.add("#getMetaId#") ; vec.add(String.valueOf(meta_id)) ; vec.add("#img_no#") ; vec.add(String.valueOf(img_no)) ; String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; String htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"change_img.html", lang_prefix) ; out.print(htmlStr) ; return ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a5ee034dfeb4ec5cd30bc76903afd407041b06d0/ImageUpload.java/clean/servlets/ImageUpload.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 261, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 202, 202, 780, 1479, 4697, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 202, 780...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3349, 261, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 202, 202, 780, 1479, 4697, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 202, 780...
HMMState previousState = (HMMState) previousNode.getObject(); assert ((previousState.isEmitting()) || (previousState == state)); float logTransitionProbability; if (previousState.isEmitting()) {
if (previousNode.isType("STATE")) { HMMState previousState = (HMMState) previousNode.getObject(); assert ((!previousState.isEmitting()) || (previousState.getHMM() == hmm)); if (!previousState.isEmitting()) { logTransitionProbability = 0.0f; } else { logTransitionProbability = hmm.getTransitionProbability( previousState.getState(), state.getState()); } } else {
private void forwardPass(TrainerScore[] score) { // Let's precompute the acoustic probabilities and create the // score object, one for each state for (int i = 0; i < graph.size(); i++) { outputProbs[i] = calculateScores(i); score[i] = new TrainerScore(curFeature, outputProbs[i], (HMMState) graph.getNode(i).getObject(), componentScores); } // Now, the forward pass. float[] probPreviousFrame = probCurrentFrame; probCurrentFrame = new float[graph.size()]; // First, the emitting states. We have to do this because the // emitting states use probabilities from the previous // frame. The non-emitting states, however, since they don't // consume frames, use probabilities from the current frame for (int indexNode = 0; indexNode < graph.size(); indexNode++) { Node node = graph.getNode(indexNode); HMMState state = (HMMState) node.getObject(); HMM hmm = state.getHMM(); if (!state.isEmitting()) { continue; } // Initialize the current frame probability with this // state's output probability for the current Feature probCurrentFrame[indexNode] = outputProbs[indexNode]; for (node.startIncomingEdgeIterator(); node.hasMoreIncomingEdges(); ) { // Finds out what the previous node and previous state are Node previousNode = node.nextIncomingEdge().getSource(); int indexPreviousNode = graph.indexOf(previousNode); HMMState previousState = (HMMState) previousNode.getObject(); // Make sure that the transition happened from a state // that either is in the same model, or was a // non-emitting state assert ((!previousState.isEmitting()) || (previousState.getHMM() == hmm)); float logTransitionProbability; if (!previousState.isEmitting()) { logTransitionProbability = 0.0f; } else { logTransitionProbability = hmm.getTransitionProbability(previousState.getState(), state.getState()); } // Adds the alpha and transition from the previous // state into the current alpha probCurrentFrame[indexNode] = logMath.addAsLinear(probCurrentFrame[indexNode], probPreviousFrame[indexPreviousNode] + logTransitionProbability); } score[indexNode].setAlpha(probCurrentFrame[indexNode]); } // Finally, the non-emitting states for (int indexNode = 0; indexNode < graph.size(); indexNode++) { Node node = graph.getNode(indexNode); HMMState state = (HMMState) node.getObject(); HMM hmm = state.getHMM(); if (state.isEmitting()) { continue; } // Initialize the current frame probability with log // probability of 0f probCurrentFrame[indexNode] = 0.0f; for (node.startIncomingEdgeIterator(); node.hasMoreIncomingEdges(); ) { // Finds out what the previous node and previous state are Node previousNode = node.nextIncomingEdge().getSource(); int indexPreviousNode = graph.indexOf(previousNode); HMMState previousState = (HMMState) previousNode.getObject(); // Make sure that the transition happened from an // emitting state, or is a self loop assert ((previousState.isEmitting()) || (previousState == state)); float logTransitionProbability; if (previousState.isEmitting()) { logTransitionProbability = 0.0f; } else { // previousState == state logTransitionProbability = hmm.getTransitionProbability(previousState.getState(), state.getState()); } // Adds the alpha and transition from the previous // state into the current alpha probCurrentFrame[indexNode] = logMath.addAsLinear(probCurrentFrame[indexNode], probCurrentFrame[indexPreviousNode] + logTransitionProbability); } score[indexNode].setAlpha(probCurrentFrame[indexNode]); } }
47105 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47105/bd0872341066ffaf7530da65656c952f81b7d34c/BaumWelchLearner.java/buggy/sphinx4/edu/cmu/sphinx/trainer/BaumWelchLearner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5104, 6433, 12, 1609, 14522, 7295, 8526, 4462, 13, 288, 202, 759, 10559, 1807, 675, 9200, 326, 1721, 83, 641, 335, 17958, 471, 752, 326, 202, 759, 4462, 733, 16, 1245, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5104, 6433, 12, 1609, 14522, 7295, 8526, 4462, 13, 288, 202, 759, 10559, 1807, 675, 9200, 326, 1721, 83, 641, 335, 17958, 471, 752, 326, 202, 759, 4462, 733, 16, 1245, 364, 1...
if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_Fill())) {
stringBuffer.append(dispatcher.dispatch("ShapeAttrs", dispatcher.create(shapeFig, "this", importManager, fqnSwitch))); for (Iterator it = shapeFig.getResolvedChildren().iterator(); it.hasNext();) { Figure next = (Figure) it.next();
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); Object[] args = (Object[]) argument;Shape shapeFig = (Shape) args[0];final ImportAssistant importManager = (ImportAssistant) args[1];final GMFGraphSwitch fqnSwitch = new FigureQualifiedNameSwitch(); stringBuffer.append(TEXT_1); importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_2); stringBuffer.append(shapeFig.getName()); stringBuffer.append(TEXT_3); stringBuffer.append(importManager.getImportedName((String) fqnSwitch.doSwitch(shapeFig))); stringBuffer.append(TEXT_4); stringBuffer.append(shapeFig.getName()); stringBuffer.append(TEXT_5); {Shape figureInstance = shapeFig;String figureVarName = "this"; stringBuffer.append(TEXT_6); // PERHAPS, do this with reflection? if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_Fill())) { stringBuffer.append(TEXT_7); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_8); stringBuffer.append(figureInstance.isFill()); stringBuffer.append(TEXT_9); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_Outline())) { stringBuffer.append(TEXT_10); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_11); stringBuffer.append(figureInstance.isOutline()); stringBuffer.append(TEXT_12); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_LineWidth())) { stringBuffer.append(TEXT_13); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_14); stringBuffer.append(figureInstance.getLineWidth()); stringBuffer.append(TEXT_15); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_LineKind())) { stringBuffer.append(TEXT_16); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_17); stringBuffer.append(figureInstance.getLineKind().getName()); stringBuffer.append(TEXT_18); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_XorFill())) { stringBuffer.append(TEXT_19); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_20); stringBuffer.append(figureInstance.isXorFill()); stringBuffer.append(TEXT_21); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_XorOutline())) { stringBuffer.append(TEXT_22); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_23); stringBuffer.append(figureInstance.isXorOutline()); stringBuffer.append(TEXT_24); } if (figureInstance instanceof Polyline && !((Polyline) figureInstance).getTemplate().isEmpty()) { for (Iterator pointIt = ((Polyline) figureInstance).getTemplate().iterator(); pointIt.hasNext(); ) { Point p = (Point) pointIt.next(); stringBuffer.append(TEXT_25); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_26); stringBuffer.append(p.getX()); stringBuffer.append(TEXT_27); stringBuffer.append(p.getY()); stringBuffer.append(TEXT_28); } } else if (figureInstance instanceof RoundedRectangle) { RoundedRectangle rrFigure = (RoundedRectangle) figureInstance; stringBuffer.append(TEXT_29); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_30); stringBuffer.append(rrFigure.getCornerWidth()); stringBuffer.append(TEXT_31); stringBuffer.append(rrFigure.getCornerHeight()); stringBuffer.append(TEXT_32); } Color colorVal;if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor())) { colorVal = figureInstance.getForegroundColor(); stringBuffer.append(TEXT_33); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_34); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_35); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_36); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_37); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_38); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_39); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_40); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor())) { colorVal = figureInstance.getBackgroundColor(); stringBuffer.append(TEXT_41); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_42); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_43); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_44); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_45); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_46); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_47); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_48); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_PreferredSize())) { Dimension d = figureInstance.getPreferredSize(); stringBuffer.append(TEXT_49); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_50); stringBuffer.append(d.getDx()); stringBuffer.append(TEXT_51); stringBuffer.append(d.getDy()); stringBuffer.append(TEXT_52); } }for (Iterator it = shapeFig.getResolvedChildren().iterator(); it.hasNext();) { Figure next = (Figure) it.next(); stringBuffer.append(TEXT_53); stringBuffer.append(next.getName()); stringBuffer.append(TEXT_54); stringBuffer.append(next.getName()); stringBuffer.append(TEXT_55); stringBuffer.append(next.getName()); stringBuffer.append(TEXT_56); } stringBuffer.append(TEXT_57); int fc = 0;for (Iterator it = shapeFig.getResolvedChildren().iterator(); it.hasNext(); fc++) { Figure figure = (Figure) it.next(); stringBuffer.append(TEXT_58); stringBuffer.append(figure.getName()); stringBuffer.append(TEXT_59); stringBuffer.append(figure.getName()); stringBuffer.append(TEXT_60); stringBuffer.append(figure.getName()); stringBuffer.append(TEXT_61); stringBuffer.append(figure.getName()); stringBuffer.append(TEXT_62); stringBuffer.append(figure.getName()); stringBuffer.append(TEXT_63); stringBuffer.append(figure.getName()); stringBuffer.append(TEXT_64); String parentFigureVarName = "rv" + fc;{ // scopeFigureMarker figureMarker = figure;String figureVarName = parentFigureVarName; stringBuffer.append(TEXT_65); // FigureMarker: figureMarker// String: figureVarNameif (figureMarker instanceof CustomFigure) { CustomFigure figureInstance = (CustomFigure) figureMarker; stringBuffer.append(TEXT_66); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_67); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_68); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_69); stringBuffer.append(TEXT_70); Color colorVal;if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor())) { colorVal = figureInstance.getForegroundColor(); stringBuffer.append(TEXT_71); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_72); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_73); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_74); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_75); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_76); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_77); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_78); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor())) { colorVal = figureInstance.getBackgroundColor(); stringBuffer.append(TEXT_79); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_80); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_81); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_82); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_83); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_84); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_85); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_86); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_PreferredSize())) { Dimension d = figureInstance.getPreferredSize(); stringBuffer.append(TEXT_87); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_88); stringBuffer.append(d.getDx()); stringBuffer.append(TEXT_89); stringBuffer.append(d.getDy()); stringBuffer.append(TEXT_90); } } else if (figureMarker instanceof Shape) {Shape figureInstance = (Shape) figureMarker; stringBuffer.append(TEXT_91); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_92); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_93); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_94); stringBuffer.append(TEXT_95); // PERHAPS, do this with reflection? if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_Fill())) { stringBuffer.append(TEXT_96); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_97); stringBuffer.append(figureInstance.isFill()); stringBuffer.append(TEXT_98); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_Outline())) { stringBuffer.append(TEXT_99); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_100); stringBuffer.append(figureInstance.isOutline()); stringBuffer.append(TEXT_101); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_LineWidth())) { stringBuffer.append(TEXT_102); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_103); stringBuffer.append(figureInstance.getLineWidth()); stringBuffer.append(TEXT_104); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_LineKind())) { stringBuffer.append(TEXT_105); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_106); stringBuffer.append(figureInstance.getLineKind().getName()); stringBuffer.append(TEXT_107); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_XorFill())) { stringBuffer.append(TEXT_108); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_109); stringBuffer.append(figureInstance.isXorFill()); stringBuffer.append(TEXT_110); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_XorOutline())) { stringBuffer.append(TEXT_111); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_112); stringBuffer.append(figureInstance.isXorOutline()); stringBuffer.append(TEXT_113); } if (figureInstance instanceof Polyline && !((Polyline) figureInstance).getTemplate().isEmpty()) { for (Iterator pointIt = ((Polyline) figureInstance).getTemplate().iterator(); pointIt.hasNext(); ) { Point p = (Point) pointIt.next(); stringBuffer.append(TEXT_114); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_115); stringBuffer.append(p.getX()); stringBuffer.append(TEXT_116); stringBuffer.append(p.getY()); stringBuffer.append(TEXT_117); } } else if (figureInstance instanceof RoundedRectangle) { RoundedRectangle rrFigure = (RoundedRectangle) figureInstance; stringBuffer.append(TEXT_118); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_119); stringBuffer.append(rrFigure.getCornerWidth()); stringBuffer.append(TEXT_120); stringBuffer.append(rrFigure.getCornerHeight()); stringBuffer.append(TEXT_121); } Color colorVal;if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor())) { colorVal = figureInstance.getForegroundColor(); stringBuffer.append(TEXT_122); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_123); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_124); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_125); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_126); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_127); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_128); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_129); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor())) { colorVal = figureInstance.getBackgroundColor(); stringBuffer.append(TEXT_130); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_131); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_132); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_133); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_134); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_135); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_136); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_137); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_PreferredSize())) { Dimension d = figureInstance.getPreferredSize(); stringBuffer.append(TEXT_138); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_139); stringBuffer.append(d.getDx()); stringBuffer.append(TEXT_140); stringBuffer.append(d.getDy()); stringBuffer.append(TEXT_141); } } else if (figureMarker instanceof FigureRef) { stringBuffer.append(TEXT_142); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_143); stringBuffer.append(((FigureRef) figureMarker).getFigure().getName()); stringBuffer.append(TEXT_144); } else if (figureMarker instanceof Label) { Label figureInstance = (Label) figureMarker; stringBuffer.append(TEXT_145); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_146); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_147); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_148); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_149); stringBuffer.append(((Label) figureMarker).getText()); stringBuffer.append(TEXT_150); stringBuffer.append(TEXT_151); Color colorVal;if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor())) { colorVal = figureInstance.getForegroundColor(); stringBuffer.append(TEXT_152); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_153); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_154); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_155); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_156); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_157); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_158); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_159); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor())) { colorVal = figureInstance.getBackgroundColor(); stringBuffer.append(TEXT_160); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_161); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_162); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_163); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_164); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_165); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_166); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_167); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_PreferredSize())) { Dimension d = figureInstance.getPreferredSize(); stringBuffer.append(TEXT_168); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_169); stringBuffer.append(d.getDx()); stringBuffer.append(TEXT_170); stringBuffer.append(d.getDy()); stringBuffer.append(TEXT_171); } } } stringBuffer.append(TEXT_172); LinkedList l = new LinkedList();l.addAll(figure.getChildren());final Object marker = new Object();Stack figureVarNamesStack = new Stack();int figureCount = 0;while (!l.isEmpty()) { Object _nxt = l.removeFirst(); if (_nxt == marker) { parentFigureVarName = (String) figureVarNamesStack.pop(); continue; } FigureMarker figureMarker = (FigureMarker) _nxt; String figureVarName = "fig" + (figureCount++); stringBuffer.append(TEXT_173); // FigureMarker: figureMarker// String: figureVarNameif (figureMarker instanceof CustomFigure) { CustomFigure figureInstance = (CustomFigure) figureMarker; stringBuffer.append(TEXT_174); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_175); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_176); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_177); stringBuffer.append(TEXT_178); Color colorVal;if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor())) { colorVal = figureInstance.getForegroundColor(); stringBuffer.append(TEXT_179); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_180); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_181); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_182); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_183); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_184); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_185); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_186); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor())) { colorVal = figureInstance.getBackgroundColor(); stringBuffer.append(TEXT_187); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_188); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_189); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_190); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_191); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_192); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_193); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_194); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_PreferredSize())) { Dimension d = figureInstance.getPreferredSize(); stringBuffer.append(TEXT_195); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_196); stringBuffer.append(d.getDx()); stringBuffer.append(TEXT_197); stringBuffer.append(d.getDy()); stringBuffer.append(TEXT_198); } } else if (figureMarker instanceof Shape) {Shape figureInstance = (Shape) figureMarker; stringBuffer.append(TEXT_199); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_200); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_201); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_202); stringBuffer.append(TEXT_203); // PERHAPS, do this with reflection? if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_Fill())) { stringBuffer.append(TEXT_204); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_205); stringBuffer.append(figureInstance.isFill()); stringBuffer.append(TEXT_206); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_Outline())) { stringBuffer.append(TEXT_207); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_208); stringBuffer.append(figureInstance.isOutline()); stringBuffer.append(TEXT_209); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_LineWidth())) { stringBuffer.append(TEXT_210); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_211); stringBuffer.append(figureInstance.getLineWidth()); stringBuffer.append(TEXT_212); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_LineKind())) { stringBuffer.append(TEXT_213); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_214); stringBuffer.append(figureInstance.getLineKind().getName()); stringBuffer.append(TEXT_215); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_XorFill())) { stringBuffer.append(TEXT_216); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_217); stringBuffer.append(figureInstance.isXorFill()); stringBuffer.append(TEXT_218); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getShape_XorOutline())) { stringBuffer.append(TEXT_219); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_220); stringBuffer.append(figureInstance.isXorOutline()); stringBuffer.append(TEXT_221); } if (figureInstance instanceof Polyline && !((Polyline) figureInstance).getTemplate().isEmpty()) { for (Iterator pointIt = ((Polyline) figureInstance).getTemplate().iterator(); pointIt.hasNext(); ) { Point p = (Point) pointIt.next(); stringBuffer.append(TEXT_222); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_223); stringBuffer.append(p.getX()); stringBuffer.append(TEXT_224); stringBuffer.append(p.getY()); stringBuffer.append(TEXT_225); } } else if (figureInstance instanceof RoundedRectangle) { RoundedRectangle rrFigure = (RoundedRectangle) figureInstance; stringBuffer.append(TEXT_226); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_227); stringBuffer.append(rrFigure.getCornerWidth()); stringBuffer.append(TEXT_228); stringBuffer.append(rrFigure.getCornerHeight()); stringBuffer.append(TEXT_229); } Color colorVal;if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor())) { colorVal = figureInstance.getForegroundColor(); stringBuffer.append(TEXT_230); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_231); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_232); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_233); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_234); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_235); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_236); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_237); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor())) { colorVal = figureInstance.getBackgroundColor(); stringBuffer.append(TEXT_238); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_239); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_240); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_241); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_242); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_243); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_244); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_245); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_PreferredSize())) { Dimension d = figureInstance.getPreferredSize(); stringBuffer.append(TEXT_246); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_247); stringBuffer.append(d.getDx()); stringBuffer.append(TEXT_248); stringBuffer.append(d.getDy()); stringBuffer.append(TEXT_249); } } else if (figureMarker instanceof FigureRef) { stringBuffer.append(TEXT_250); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_251); stringBuffer.append(((FigureRef) figureMarker).getFigure().getName()); stringBuffer.append(TEXT_252); } else if (figureMarker instanceof Label) { Label figureInstance = (Label) figureMarker; stringBuffer.append(TEXT_253); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_254); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_255); stringBuffer.append(fqnSwitch.doSwitch(figureMarker)); stringBuffer.append(TEXT_256); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_257); stringBuffer.append(((Label) figureMarker).getText()); stringBuffer.append(TEXT_258); stringBuffer.append(TEXT_259); Color colorVal;if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_ForegroundColor())) { colorVal = figureInstance.getForegroundColor(); stringBuffer.append(TEXT_260); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_261); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_262); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_263); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_264); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_265); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_266); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_267); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_BackgroundColor())) { colorVal = figureInstance.getBackgroundColor(); stringBuffer.append(TEXT_268); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_269); if (colorVal instanceof RGBColor) { stringBuffer.append(TEXT_270); stringBuffer.append(((RGBColor) colorVal).getRed()); stringBuffer.append(TEXT_271); stringBuffer.append(((RGBColor) colorVal).getGreen()); stringBuffer.append(TEXT_272); stringBuffer.append(((RGBColor) colorVal).getBlue()); stringBuffer.append(TEXT_273); } else if (colorVal instanceof ConstantColor) { stringBuffer.append(TEXT_274); stringBuffer.append(((ConstantColor) colorVal).getValue().getLiteral()); } stringBuffer.append(TEXT_275); } if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getFigure_PreferredSize())) { Dimension d = figureInstance.getPreferredSize(); stringBuffer.append(TEXT_276); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_277); stringBuffer.append(d.getDx()); stringBuffer.append(TEXT_278); stringBuffer.append(d.getDy()); stringBuffer.append(TEXT_279); } } stringBuffer.append(TEXT_280); stringBuffer.append(parentFigureVarName); stringBuffer.append(TEXT_281); stringBuffer.append(figureVarName); stringBuffer.append(TEXT_282); if (_nxt instanceof Figure && !((Figure) _nxt).getChildren().isEmpty()) { l.addFirst(marker); l.addAll(0, ((Figure) _nxt).getChildren()); figureVarNamesStack.push(parentFigureVarName); parentFigureVarName = figureVarName; // go on processing children of new parentFigure} } // while stringBuffer.append(TEXT_283); stringBuffer.append(parentFigureVarName); stringBuffer.append(TEXT_284); } stringBuffer.append(TEXT_285); importManager.emitSortedImports(); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/cca1c54b02ecf140e00c95d229bd7eebacff9302/ShapeGenerator.java/buggy/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/ShapeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 1033, 8526, 833, 273, 261, 921, 63, 5717, 1237, 31, 8500, 2179, 42, 360, 273, 261, 8500, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 1033, 8526, 833, 273, 261, 921, 63, 5717, 1237, 31, 8500, 2179, 42, 360, 273, 261, 8500, ...
db.verifyAndModifyDatabaseName(transMeta.getDatabases());
db.verifyAndModifyDatabaseName(transMeta.getDatabases(), null);
public void newConnection() { DatabaseMeta db = new DatabaseMeta(); DatabaseDialog con = new DatabaseDialog(shell, SWT.APPLICATION_MODAL, log, db, props); String con_name = con.open(); if (!Const.isEmpty(con_name)) { db.verifyAndModifyDatabaseName(transMeta.getDatabases()); transMeta.addDatabase(db); addUndoNew(new DatabaseMeta[] { (DatabaseMeta)db.clone() }, new int[] { transMeta.indexOfDatabase(db) }); saveConnection(db); refreshTree(true); } }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/ef7d18ce50864335d43da23d256daf053c6459ba/Spoon.java/buggy/kettle/src/be/ibridge/kettle/spoon/Spoon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 394, 1952, 1435, 565, 288, 3639, 5130, 2781, 1319, 273, 394, 5130, 2781, 5621, 540, 5130, 6353, 356, 273, 394, 5130, 6353, 12, 10304, 16, 348, 8588, 18, 25039, 67, 6720, 1013, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 394, 1952, 1435, 565, 288, 3639, 5130, 2781, 1319, 273, 394, 5130, 2781, 5621, 540, 5130, 6353, 356, 273, 394, 5130, 6353, 12, 10304, 16, 348, 8588, 18, 25039, 67, 6720, 1013, ...
runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "bad, implementing Enumeration", 1, rule), }); }
runTests(rule); }
public void testAll() { runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "bad, implementing Enumeration", 1, rule), }); }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/ReplaceEnumerationWithIteratorTest.java/buggy/pmd/regress/test/net/sourceforge/pmd/rules/migrating/ReplaceEnumerationWithIteratorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1595, 1435, 288, 3639, 1086, 14650, 12, 2704, 7766, 3187, 63, 7073, 5411, 394, 7766, 3187, 12, 16961, 21, 16, 315, 8759, 16, 19981, 13864, 3113, 404, 16, 1720, 3631, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1595, 1435, 288, 3639, 1086, 14650, 12, 2704, 7766, 3187, 63, 7073, 5411, 394, 7766, 3187, 12, 16961, 21, 16, 315, 8759, 16, 19981, 13864, 3113, 404, 16, 1720, 3631, 3639...
public boolean validateSortOption( Object sortOption,
public boolean validateSortOption( SortOption sortOption,
public boolean validateSortOption( Object sortOption, DiagnosticChain diagnostics, Map context ) { return true; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/AttributeValidator.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/util/AttributeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1954, 4416, 1895, 12, 1033, 1524, 1895, 16, 1082, 202, 26836, 3893, 22568, 16, 1635, 819, 262, 202, 95, 202, 202, 2463, 638, 31, 202, 97, 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, 1250, 1954, 4416, 1895, 12, 1033, 1524, 1895, 16, 1082, 202, 26836, 3893, 22568, 16, 1635, 819, 262, 202, 95, 202, 202, 2463, 638, 31, 202, 97, 2, -100, -100, -100, -100, -100...
else if (eventSrv == null && eventIf.equals(notifIf))
else if (eventSrv == null)
private boolean nodeInterfaceServiceValid(Notification notif, Event event) { boolean result = false; Connection connection = null; try { // Get the Interface and Service from the Event long eventNode = event.getNodeid(); String eventIf = (String)event.getInterface(); String eventSrv = (String)event.getService(); // ThreadCategory.getInstance(getClass()).debug("Notification Event Interface: " + eventIf + " Service: " + eventSrv); // Get the Notification Rule Filter filter = new Filter(notif.getRule()); // Select the Interfaces and Services that match the rule String sql = filter.getInterfaceWithServiceStatement(); // ThreadCategory.getInstance(getClass()).debug("getSQL Returned SQL for Notification: " + notif.getName() + ": " + sql); connection = DatabaseConnectionFactory.getInstance().getConnection(); Statement stmt = connection.createStatement(); ResultSet rows = stmt.executeQuery(sql); // Loop through the rows returned from the SQL query and return true if they match event while (rows.next()) { String notifIf = rows.getString(1); String notifSrv = rows.getString(2); long notifNode = rows.getLong(3); // ThreadCategory.getInstance(getClass()).debug("Notification Notif Interface: " + notifIf + " Service: " + notifSrv); // if there is no If with the event, there can be no service, thus check only if the node matches if (eventIf == null) { if (eventNode == notifNode) { result = true; break; } } // If there is no Srv with the event, check and see if the If matches else if (eventSrv == null && eventIf.equals(notifIf)) { result = true; break; } // Otherwise, insure that both the Srv and If match else if (eventSrv.equals(notifSrv) && eventIf.equals(notifIf)) { result = true; break; } } try { rows.close(); } catch(SQLException e) { } try { stmt.close(); } catch(SQLException e) { } } catch (SQLException e) { ThreadCategory.getInstance(getClass()).error("Filter query threw exception: " + notif.getName() + ": " + notif.getRule(), e); return true; } catch (FilterParseException e) { ThreadCategory.getInstance(getClass()).error("Invalid filter rule for notification " + notif.getName() + ": " + notif.getRule(), e); //go ahead and send the notification return true; } finally { if(connection != null) { try { connection.close(); } catch(SQLException e) { } } } return result; }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/0c3feeee54310ffcf6ae7ae70ce1de277207fcf4/NotificationFactory.java/clean/src/services/org/opennms/netmgt/config/NotificationFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 756, 1358, 1179, 1556, 12, 4386, 486, 430, 16, 2587, 871, 13, 202, 95, 202, 202, 6494, 563, 273, 629, 31, 202, 202, 1952, 1459, 273, 446, 31, 202, 202, 698, 202, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 756, 1358, 1179, 1556, 12, 4386, 486, 430, 16, 2587, 871, 13, 202, 95, 202, 202, 6494, 563, 273, 629, 31, 202, 202, 1952, 1459, 273, 446, 31, 202, 202, 698, 202, 202,...
Runtime.getRuntime().exec(new String[] { (String) browserExecutable, url});
if ((browserExecutable.trim().toLowerCase().endsWith(".app")) && ((jvm == MRJ_2_0 || jvm == MRJ_2_1 || jvm == MRJ_3_0 || jvm == MRJ_3_1))) { Runtime.getRuntime().exec( new String[] { "open", "-a", (String) browserExecutable, url }); } else { Runtime.getRuntime().exec(new String[] { (String) browserExecutable, url}); }
public static void openURL(String url) { String browserExecutable = tvbrowser.core.Settings.propUserDefinedWebbrowser.getString(); try { if (browserExecutable !=null) { Runtime.getRuntime().exec(new String[] { (String) browserExecutable, url}); } else { openURLusingDefaultBrowser(url); } }catch(IOException exc) { ErrorHandler.handle(mLocalizer.msg("error.1","Could not open Webbrowser"),exc); } }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/9c51774d25a571641f791eedecfeed3455a4407a/BrowserLauncher.java/buggy/tvbrowser/src/util/ui/BrowserLauncher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1696, 1785, 12, 780, 880, 13, 288, 565, 514, 4748, 17709, 273, 13521, 11213, 18, 3644, 18, 2628, 18, 5986, 1299, 8116, 4079, 11213, 18, 588, 780, 5621, 3639, 775, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1696, 1785, 12, 780, 880, 13, 288, 565, 514, 4748, 17709, 273, 13521, 11213, 18, 3644, 18, 2628, 18, 5986, 1299, 8116, 4079, 11213, 18, 588, 780, 5621, 3639, 775, 288, 1...
if(memberList == null) throw new IllegalArgumentException("Cannot remove list " + list + " which is not in this CompositeList"); memberList.getSourceList().removeListEventListener(memberList); int offset = getListOffset(memberList);
} if(memberList == null) throw new IllegalArgumentException("Cannot remove list " + list + " which is not in this CompositeList"); memberList.getSourceList().removeListEventListener(memberList); int offset = getListOffset(memberList);
public void removeMemberList(EventList list) { // lock all member lists getReadWriteLock().writeLock().lock(); try { // find the member list MemberList memberList = null; for(int i = 0; i < memberLists.size(); i++) { MemberList current = (MemberList)memberLists.get(i); if(current.getSourceList() == list) { memberList = current; break; } } if(memberList == null) throw new IllegalArgumentException("Cannot remove list " + list + " which is not in this CompositeList"); // stop listening for events memberList.getSourceList().removeListEventListener(memberList); // get the offset for the elements of this member int offset = getListOffset(memberList); // remove the member list memberLists.remove(memberList); // pass on a change for the remove of all this list's elements if(memberList.size() > 0) { updates.beginEvent(); updates.addDelete(offset, offset + memberList.size() - 1); updates.commitEvent(); } } finally { // release all member lists and the removed list list.getReadWriteLock().readLock().unlock(); getReadWriteLock().writeLock().unlock(); } }
10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/ad21a8542996b641c3d0e33b914fc91b8ee5f419/CompositeList.java/clean/source/ca/odell/glazedlists/CompositeList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 4419, 682, 12, 1133, 682, 666, 13, 288, 3639, 368, 2176, 777, 3140, 6035, 3639, 19900, 3067, 2531, 7675, 2626, 2531, 7675, 739, 5621, 3639, 775, 288, 5411, 368, 1104, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 4419, 682, 12, 1133, 682, 666, 13, 288, 3639, 368, 2176, 777, 3140, 6035, 3639, 19900, 3067, 2531, 7675, 2626, 2531, 7675, 739, 5621, 3639, 775, 288, 5411, 368, 1104, 326...
private void initContextMenu() { MenuManager menuMgr = new MenuManager("#PopupMenu"); //$NON-NLS-1$ Menu menu = menuMgr.createContextMenu(errorViewer.getControl()); createShowErrorAction(); createClearSelectionAction(); createClearAllErrorsAction(); menuMgr.add(clearSelectionAction); menuMgr.add(clearAllErrorsAction); menuMgr.add(showErrorAction); menuMgr.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); errorViewer.getControl().setMenu(menu); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/79affe799a135d6a5f97d8db851f32eb63fcbe7f/ErrorNotificationDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ErrorNotificationDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 2738, 27315, 1435, 95, 202, 202, 4599, 49, 940, 1035, 2104, 9455, 33, 2704, 4599, 1318, 2932, 7, 13770, 4599, 8863, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 49, 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, 225, 202, 1152, 6459, 2738, 27315, 1435, 95, 202, 202, 4599, 49, 940, 1035, 2104, 9455, 33, 2704, 4599, 1318, 2932, 7, 13770, 4599, 8863, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 49, 7...
if (str == Values.empty || find == Values.empty) return Values.empty;
String s = stringValue(str); String f = stringValue(find); int flen = f.length();
public static Object substringBefore (Object str, Object find) { if (str == Values.empty || find == Values.empty) return Values.empty; if (find.toString().length()==0) return str.toString(); int start = str.toString().indexOf(find.toString()); return (start>0)?str.toString().substring(0,start):""; }
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/92d18dec25b6c6719796a034d502322bf830c93c/StringValue.java/clean/gnu/xquery/util/StringValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 3019, 4649, 261, 921, 609, 16, 1033, 1104, 13, 225, 288, 565, 309, 261, 701, 422, 6876, 18, 5531, 747, 1104, 422, 6876, 18, 5531, 13, 1377, 327, 6876, 18, 5531, 31, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 3019, 4649, 261, 921, 609, 16, 1033, 1104, 13, 225, 288, 565, 309, 261, 701, 422, 6876, 18, 5531, 747, 1104, 422, 6876, 18, 5531, 13, 1377, 327, 6876, 18, 5531, 31, 5...
public Vector getContactsList() {return this.contacts_;}
public Vector getContactsList() { return contactList_; }
public Vector getContactsList() {return this.contacts_;}
56431 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56431/e46cc77d33ae8436300ddeb6b44a207832eff759/ChatSession.java/clean/trunk/jimmy/ChatSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5589, 336, 20017, 682, 1435, 288, 2463, 333, 18, 20777, 67, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5589, 336, 20017, 682, 1435, 288, 2463, 333, 18, 20777, 67, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
(o instanceof Or) && (((Or) o).getChild1() == this.getChild1()) && (((Or) o).getChild2() == this.getChild2());
(o instanceof Or) && (( ((Or) o).getChild1().equals(this.getChild1()) && ((Or) o).getChild2().equals(this.getChild2()) ) || ( ((Or) o).getChild1().equals(this.getChild2()) && ((Or) o).getChild2().equals(this.getChild1()) ));
public boolean equals(Object o) { return (o instanceof Or) && (((Or) o).getChild1() == this.getChild1()) && (((Or) o).getChild2() == this.getChild2()); }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/107224757a54b8023bc55b451ed22d07dbb6ae07/FeatureFilter.java/buggy/src/org/biojava/bio/seq/FeatureFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 320, 13, 288, 1377, 327, 3639, 261, 83, 1276, 2965, 13, 597, 3639, 261, 12443, 1162, 13, 320, 2934, 588, 1763, 21, 1435, 422, 333, 18, 588, 1763, 21, 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, 377, 1071, 1250, 1606, 12, 921, 320, 13, 288, 1377, 327, 3639, 261, 83, 1276, 2965, 13, 597, 3639, 261, 12443, 1162, 13, 320, 2934, 588, 1763, 21, 1435, 422, 333, 18, 588, 1763, 21, 10756, ...
private void addIdRef(String content, Object state) { //System.out.println("this.fTableOfId = " + content ); //System.out.println("state = " + state ); //System.out.println("table = " + this.fTableOfId ); if ( this.fTableOfId != null && this.fTableOfId.containsKey( content ) ){ //System.out.println("It already contains key = " + content ); return; } //System.out.println("Table of IDRefs = " + this.fTableIDRefs ); if ( this.fTableIDRefs == null ){ this.fTableIDRefs = new Hashtable(); } else if ( fTableIDRefs.containsKey( content ) ){ return; } if ( this.fNullValue == null ){ fNullValue = new Object(); } //System.out.println("tabl IDREFs = " + this.fTableIDRefs ); try { this.fTableIDRefs.put( content, fNullValue ); } catch( OutOfMemoryError ex ){ System.out.println( "Out of Memory: Hashtable of ID's has " + this.fTableIDRefs.size() + " Elements" ); ex.printStackTrace(); } } // addId(int):boolean
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/d4d6cb515d1e4da913b4d8d417b56672e59b79da/IDREFDatatypeValidator.java/clean/src/org/apache/xerces/validators/datatype/IDREFDatatypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 548, 1957, 12, 780, 913, 16, 1033, 919, 13, 288, 282, 368, 3163, 18, 659, 18, 8222, 2932, 2211, 18, 74, 1388, 951, 548, 273, 315, 397, 913, 11272, 282, 368, 3163, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 548, 1957, 12, 780, 913, 16, 1033, 919, 13, 288, 282, 368, 3163, 18, 659, 18, 8222, 2932, 2211, 18, 74, 1388, 951, 548, 273, 315, 397, 913, 11272, 282, 368, 3163, 18, ...
Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600);
Calendar.MARCH, -1, Calendar.SUNDAY, 3000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 3000 * 3600);
static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT", tz); timezones0.put("Pacific/Apia", tz); timezones0.put("Pacific/Midway", tz); timezones0.put("Pacific/Niue", tz); timezones0.put("Pacific/Pago_Pago", tz); tz = new SimpleTimeZone (-10000 * 3600, "America/Adak", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Adak", tz); tz = new SimpleTimeZone(-10000 * 3600, "HST"); timezones0.put("HST", tz); timezones0.put("Pacific/Fakaofo", tz); timezones0.put("Pacific/Honolulu", tz); timezones0.put("Pacific/Johnston", tz); timezones0.put("Pacific/Rarotonga", tz); timezones0.put("Pacific/Tahiti", tz); tz = new SimpleTimeZone(-9500 * 3600, "Pacific/Marquesas"); timezones0.put("Pacific/Marquesas", tz); tz = new SimpleTimeZone (-9000 * 3600, "AST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("AST", tz); timezones0.put("America/Anchorage", tz); timezones0.put("America/Juneau", tz); timezones0.put("America/Nome", tz); timezones0.put("America/Yakutat", tz); tz = new SimpleTimeZone(-9000 * 3600, "Pacific/Gambier"); timezones0.put("Pacific/Gambier", tz); tz = new SimpleTimeZone (-8000 * 3600, "PST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("PST", tz); timezones0.put("PST8PDT", tz); timezones0.put("America/Dawson", tz); timezones0.put("America/Los_Angeles", tz); timezones0.put("America/Tijuana", tz); timezones0.put("America/Vancouver", tz); timezones0.put("America/Whitehorse", tz); timezones0.put("US/Pacific-New", tz); tz = new SimpleTimeZone(-8000 * 3600, "Pacific/Pitcairn"); timezones0.put("Pacific/Pitcairn", tz); tz = new SimpleTimeZone (-7000 * 3600, "MST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("MST", tz); timezones0.put("MST7MDT", tz); timezones0.put("America/Boise", tz); timezones0.put("America/Chihuahua", tz); timezones0.put("America/Denver", tz); timezones0.put("America/Edmonton", tz); timezones0.put("America/Inuvik", tz); timezones0.put("America/Mazatlan", tz); timezones0.put("America/Shiprock", tz); timezones0.put("America/Yellowknife", tz); tz = new SimpleTimeZone(-7000 * 3600, "MST7"); timezones0.put("MST7", tz); timezones0.put("PNT", tz); timezones0.put("America/Dawson_Creek", tz); timezones0.put("America/Hermosillo", tz); timezones0.put("America/Phoenix", tz); tz = new SimpleTimeZone (-6000 * 3600, "CST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("CST", tz); timezones0.put("CST6CDT", tz); timezones0.put("America/Cambridge_Bay", tz); timezones0.put("America/Cancun", tz); timezones0.put("America/Chicago", tz); timezones0.put("America/Menominee", tz); timezones0.put("America/Merida", tz); timezones0.put("America/Mexico_City", tz); timezones0.put("America/Monterrey", tz); timezones0.put("America/Rainy_River", tz); timezones0.put("America/Winnipeg", tz); tz = new SimpleTimeZone(-6000 * 3600, "America/Belize"); timezones0.put("America/Belize", tz); timezones0.put("America/Costa_Rica", tz); timezones0.put("America/El_Salvador", tz); timezones0.put("America/Guatemala", tz); timezones0.put("America/Managua", tz); timezones0.put("America/Regina", tz); timezones0.put("America/Swift_Current", tz); timezones0.put("America/Tegucigalpa", tz); timezones0.put("Pacific/Galapagos", tz); tz = new SimpleTimeZone (-6000 * 3600, "Pacific/Easter", Calendar.OCTOBER, 9, -Calendar.SUNDAY, 0 * 3600, Calendar.MARCH, 9, -Calendar.SUNDAY, 0 * 3600); timezones0.put("Pacific/Easter", tz); tz = new SimpleTimeZone (-5000 * 3600, "America/Grand_Turk", Calendar.APRIL, 1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Grand_Turk", tz); timezones0.put("America/Havana", tz); tz = new SimpleTimeZone(-5000 * 3600, "EST5"); timezones0.put("EST5", tz); timezones0.put("IET", tz); timezones0.put("America/Bogota", tz); timezones0.put("America/Cayman", tz); timezones0.put("America/Eirunepe", tz); timezones0.put("America/Guayaquil", tz); timezones0.put("America/Indiana/Indianapolis", tz); timezones0.put("America/Indiana/Knox", tz); timezones0.put("America/Indiana/Marengo", tz); timezones0.put("America/Indiana/Vevay", tz); timezones0.put("America/Indianapolis", tz); timezones0.put("America/Iqaluit", tz); timezones0.put("America/Jamaica", tz); timezones0.put("America/Lima", tz); timezones0.put("America/Panama", tz); timezones0.put("America/Pangnirtung", tz); timezones0.put("America/Port-au-Prince", tz); timezones0.put("America/Porto_Acre", tz); timezones0.put("America/Rankin_Inlet", tz); tz = new SimpleTimeZone (-5000 * 3600, "EST", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("EST", tz); timezones0.put("EST5EDT", tz); timezones0.put("America/Detroit", tz); timezones0.put("America/Kentucky/Louisville", tz); timezones0.put("America/Kentucky/Monticello", tz); timezones0.put("America/Louisville", tz); timezones0.put("America/Montreal", tz); timezones0.put("America/Nassau", tz); timezones0.put("America/New_York", tz); timezones0.put("America/Nipigon", tz); timezones0.put("America/Thunder_Bay", tz); tz = new SimpleTimeZone(-4000 * 3600, "PRT"); timezones0.put("PRT", tz); timezones0.put("America/Anguilla", tz); timezones0.put("America/Antigua", tz); timezones0.put("America/Aruba", tz); timezones0.put("America/Barbados", tz); timezones0.put("America/Boa_Vista", tz); timezones0.put("America/Caracas", tz); timezones0.put("America/Curacao", tz); timezones0.put("America/Dominica", tz); timezones0.put("America/Grenada", tz); timezones0.put("America/Guadeloupe", tz); timezones0.put("America/Guyana", tz); timezones0.put("America/La_Paz", tz); timezones0.put("America/Manaus", tz); timezones0.put("America/Martinique", tz); timezones0.put("America/Montserrat", tz); timezones0.put("America/Port_of_Spain", tz); timezones0.put("America/Porto_Velho", tz); timezones0.put("America/Puerto_Rico", tz); timezones0.put("America/Santo_Domingo", tz); timezones0.put("America/St_Kitts", tz); timezones0.put("America/St_Lucia", tz); timezones0.put("America/St_Thomas", tz); timezones0.put("America/St_Vincent", tz); timezones0.put("America/Tortola", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Asuncion", Calendar.OCTOBER, 1, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Asuncion", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Cuiaba", Calendar.OCTOBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, 3, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Cuiaba", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Goose_Bay", Calendar.APRIL, 1, Calendar.SUNDAY, 60000, Calendar.OCTOBER, -1, Calendar.SUNDAY, 60000); timezones0.put("America/Goose_Bay", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Glace_Bay", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Glace_Bay", tz); timezones0.put("America/Halifax", tz); timezones0.put("America/Thule", tz); timezones0.put("Atlantic/Bermuda", tz); tz = new SimpleTimeZone (-4000 * 3600, "America/Santiago", Calendar.OCTOBER, 9, -Calendar.SUNDAY, 0 * 3600, Calendar.MARCH, 9, -Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Santiago", tz); timezones0.put("Antarctica/Palmer", tz); tz = new SimpleTimeZone (-4000 * 3600, "Atlantic/Stanley", Calendar.SEPTEMBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.APRIL, 16, -Calendar.SUNDAY, 0 * 3600); timezones0.put("Atlantic/Stanley", tz); tz = new SimpleTimeZone (-3500 * 3600, "CNT", Calendar.APRIL, 1, Calendar.SUNDAY, 60000, Calendar.OCTOBER, -1, Calendar.SUNDAY, 60000); timezones0.put("CNT", tz); timezones0.put("America/St_Johns", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Araguaina", Calendar.OCTOBER, 2, Calendar.SUNDAY, 0 * 3600, Calendar.FEBRUARY, 3, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Araguaina", tz); timezones0.put("America/Sao_Paulo", tz); tz = new SimpleTimeZone(-3000 * 3600, "AGT"); timezones0.put("AGT", tz); timezones0.put("America/Belem", tz); timezones0.put("America/Buenos_Aires", tz); timezones0.put("America/Catamarca", tz); timezones0.put("America/Cayenne", tz); timezones0.put("America/Cordoba", tz); timezones0.put("America/Fortaleza", tz); timezones0.put("America/Jujuy", tz); timezones0.put("America/Maceio", tz); timezones0.put("America/Mendoza", tz); timezones0.put("America/Montevideo", tz); timezones0.put("America/Paramaribo", tz); timezones0.put("America/Recife", tz); timezones0.put("America/Rosario", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Godthab", Calendar.MARCH, 30, -Calendar.SATURDAY, 22000 * 3600, Calendar.OCTOBER, 30, -Calendar.SATURDAY, 22000 * 3600); timezones0.put("America/Godthab", tz); tz = new SimpleTimeZone (-3000 * 3600, "America/Miquelon", Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("America/Miquelon", tz); tz = new SimpleTimeZone(-2000 * 3600, "America/Noronha"); timezones0.put("America/Noronha", tz); timezones0.put("Atlantic/South_Georgia", tz); tz = new SimpleTimeZone (-1000 * 3600, "America/Scoresbysund", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("America/Scoresbysund", tz); timezones0.put("Atlantic/Azores", tz); tz = new SimpleTimeZone(-1000 * 3600, "Atlantic/Cape_Verde"); timezones0.put("Atlantic/Cape_Verde", tz); timezones0.put("Atlantic/Jan_Mayen", tz); tz = new SimpleTimeZone(0 * 3600, "GMT"); timezones0.put("GMT", tz); timezones0.put("UTC", tz); timezones0.put("Africa/Abidjan", tz); timezones0.put("Africa/Accra", tz); timezones0.put("Africa/Bamako", tz); timezones0.put("Africa/Banjul", tz); timezones0.put("Africa/Bissau", tz); timezones0.put("Africa/Casablanca", tz); timezones0.put("Africa/Conakry", tz); timezones0.put("Africa/Dakar", tz); timezones0.put("Africa/El_Aaiun", tz); timezones0.put("Africa/Freetown", tz); timezones0.put("Africa/Lome", tz); timezones0.put("Africa/Monrovia", tz); timezones0.put("Africa/Nouakchott", tz); timezones0.put("Africa/Ouagadougou", tz); timezones0.put("Africa/Sao_Tome", tz); timezones0.put("Africa/Timbuktu", tz); timezones0.put("Atlantic/Reykjavik", tz); timezones0.put("Atlantic/St_Helena", tz); timezones0.put("Europe/Belfast", tz); timezones0.put("Europe/Dublin", tz); timezones0.put("Europe/London", tz); tz = new SimpleTimeZone (0 * 3600, "WET", Calendar.MARCH, -1, Calendar.SUNDAY, 1000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 1000 * 3600); timezones0.put("WET", tz); timezones0.put("Atlantic/Canary", tz); timezones0.put("Atlantic/Faeroe", tz); timezones0.put("Atlantic/Madeira", tz); timezones0.put("Europe/Lisbon", tz); tz = new SimpleTimeZone(1000 * 3600, "Africa/Algiers"); timezones0.put("Africa/Algiers", tz); timezones0.put("Africa/Bangui", tz); timezones0.put("Africa/Brazzaville", tz); timezones0.put("Africa/Douala", tz); timezones0.put("Africa/Kinshasa", tz); timezones0.put("Africa/Lagos", tz); timezones0.put("Africa/Libreville", tz); timezones0.put("Africa/Luanda", tz); timezones0.put("Africa/Malabo", tz); timezones0.put("Africa/Ndjamena", tz); timezones0.put("Africa/Niamey", tz); timezones0.put("Africa/Porto-Novo", tz); timezones0.put("Africa/Tunis", tz); tz = new SimpleTimeZone (1000 * 3600, "Africa/Windhoek", Calendar.SEPTEMBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.APRIL, 1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Africa/Windhoek", tz); tz = new SimpleTimeZone (1000 * 3600, "CET", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("CET", tz); timezones0.put("CEST", tz); timezones0.put("ECT", tz); timezones0.put("MET", tz); timezones0.put("Africa/Ceuta", tz); timezones0.put("Arctic/Longyearbyen", tz); timezones0.put("Europe/Amsterdam", tz); timezones0.put("Europe/Andorra", tz); timezones0.put("Europe/Belgrade", tz); timezones0.put("Europe/Berlin", tz); timezones0.put("Europe/Bratislava", tz); timezones0.put("Europe/Brussels", tz); timezones0.put("Europe/Budapest", tz); timezones0.put("Europe/Copenhagen", tz); timezones0.put("Europe/Gibraltar", tz); timezones0.put("Europe/Ljubljana", tz); timezones0.put("Europe/Luxembourg", tz); timezones0.put("Europe/Madrid", tz); timezones0.put("Europe/Malta", tz); timezones0.put("Europe/Monaco", tz); timezones0.put("Europe/Oslo", tz); timezones0.put("Europe/Paris", tz); timezones0.put("Europe/Prague", tz); timezones0.put("Europe/Rome", tz); timezones0.put("Europe/San_Marino", tz); timezones0.put("Europe/Sarajevo", tz); timezones0.put("Europe/Skopje", tz); timezones0.put("Europe/Stockholm", tz); timezones0.put("Europe/Tirane", tz); timezones0.put("Europe/Vaduz", tz); timezones0.put("Europe/Vatican", tz); timezones0.put("Europe/Vienna", tz); timezones0.put("Europe/Warsaw", tz); timezones0.put("Europe/Zagreb", tz); timezones0.put("Europe/Zurich", tz); tz = new SimpleTimeZone (2000 * 3600, "ART", Calendar.APRIL, -1, Calendar.FRIDAY, 0 * 3600, Calendar.SEPTEMBER, -1, Calendar.THURSDAY, 23000 * 3600); timezones0.put("ART", tz); timezones0.put("Africa/Cairo", tz); tz = new SimpleTimeZone(2000 * 3600, "CAT"); timezones0.put("CAT", tz); timezones0.put("Africa/Blantyre", tz); timezones0.put("Africa/Bujumbura", tz); timezones0.put("Africa/Gaborone", tz); timezones0.put("Africa/Harare", tz); timezones0.put("Africa/Johannesburg", tz); timezones0.put("Africa/Kigali", tz); timezones0.put("Africa/Lubumbashi", tz); timezones0.put("Africa/Lusaka", tz); timezones0.put("Africa/Maputo", tz); timezones0.put("Africa/Maseru", tz); timezones0.put("Africa/Mbabane", tz); timezones0.put("Africa/Tripoli", tz); timezones0.put("Europe/Riga", tz); timezones0.put("Europe/Tallinn", tz); timezones0.put("Europe/Vilnius", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Amman", Calendar.MARCH, -1, Calendar.THURSDAY, 0 * 3600, Calendar.SEPTEMBER, -1, Calendar.THURSDAY, 0 * 3600); timezones0.put("Asia/Amman", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Beirut", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Beirut", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Damascus", Calendar.APRIL, 1, 0, 0 * 3600, Calendar.OCTOBER, 1, 0, 0 * 3600); timezones0.put("Asia/Damascus", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Gaza", Calendar.APRIL, 3, Calendar.FRIDAY, 0 * 3600, Calendar.OCTOBER, 3, Calendar.FRIDAY, 0 * 3600); timezones0.put("Asia/Gaza", tz); tz = new SimpleTimeZone (2000 * 3600, "Asia/Jerusalem", Calendar.APRIL, 1, 0, 1000 * 3600, Calendar.OCTOBER, 1, 0, 1000 * 3600); timezones0.put("Asia/Jerusalem", tz); tz = new SimpleTimeZone (2000 * 3600, "EET", Calendar.MARCH, -1, Calendar.SUNDAY, 3000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 3000 * 3600); timezones0.put("EET", tz); timezones0.put("Asia/Istanbul", tz); timezones0.put("Asia/Nicosia", tz); timezones0.put("Europe/Athens", tz); timezones0.put("Europe/Bucharest", tz); timezones0.put("Europe/Chisinau", tz); timezones0.put("Europe/Helsinki", tz); timezones0.put("Europe/Istanbul", tz); timezones0.put("Europe/Kiev", tz); timezones0.put("Europe/Nicosia", tz); timezones0.put("Europe/Simferopol", tz); timezones0.put("Europe/Sofia", tz); timezones0.put("Europe/Uzhgorod", tz); timezones0.put("Europe/Zaporozhye", tz); tz = new SimpleTimeZone (2000 * 3600, "Europe/Kaliningrad", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Europe/Kaliningrad", tz); timezones0.put("Europe/Minsk", tz); tz = new SimpleTimeZone (3000 * 3600, "Asia/Baghdad", Calendar.APRIL, 1, 0, 3000 * 3600, Calendar.OCTOBER, 1, 0, 3000 * 3600); timezones0.put("Asia/Baghdad", tz); tz = new SimpleTimeZone (3000 * 3600, "Europe/Moscow", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Europe/Moscow", tz); timezones0.put("Europe/Tiraspol", tz); tz = new SimpleTimeZone(3000 * 3600, "EAT"); timezones0.put("EAT", tz); timezones0.put("Africa/Addis_Ababa", tz); timezones0.put("Africa/Asmera", tz); timezones0.put("Africa/Dar_es_Salaam", tz); timezones0.put("Africa/Djibouti", tz); timezones0.put("Africa/Kampala", tz); timezones0.put("Africa/Khartoum", tz); timezones0.put("Africa/Mogadishu", tz); timezones0.put("Africa/Nairobi", tz); timezones0.put("Antarctica/Syowa", tz); timezones0.put("Asia/Aden", tz); timezones0.put("Asia/Bahrain", tz); timezones0.put("Asia/Kuwait", tz); timezones0.put("Asia/Qatar", tz); timezones0.put("Asia/Riyadh", tz); timezones0.put("Indian/Antananarivo", tz); timezones0.put("Indian/Comoro", tz); timezones0.put("Indian/Mayotte", tz); tz = new SimpleTimeZone(3500 * 3600, "Asia/Tehran"); timezones0.put("Asia/Tehran", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Baku", Calendar.MARCH, -1, Calendar.SUNDAY, 1000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 1000 * 3600); timezones0.put("Asia/Baku", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Aqtau", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Aqtau", tz); timezones0.put("Asia/Tbilisi", tz); tz = new SimpleTimeZone (4000 * 3600, "Asia/Yerevan", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yerevan", tz); timezones0.put("Europe/Samara", tz); tz = new SimpleTimeZone(4000 * 3600, "NET"); timezones0.put("NET", tz); timezones0.put("Asia/Dubai", tz); timezones0.put("Asia/Muscat", tz); timezones0.put("Indian/Mahe", tz); timezones0.put("Indian/Mauritius", tz); timezones0.put("Indian/Reunion", tz); tz = new SimpleTimeZone(4500 * 3600, "Asia/Kabul"); timezones0.put("Asia/Kabul", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Aqtobe", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Aqtobe", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Bishkek", Calendar.MARCH, -1, Calendar.SUNDAY, 2500 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2500 * 3600); timezones0.put("Asia/Bishkek", tz); tz = new SimpleTimeZone (5000 * 3600, "Asia/Yekaterinburg", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yekaterinburg", tz); tz = new SimpleTimeZone(5000 * 3600, "PLT"); timezones0.put("PLT", tz); timezones0.put("Asia/Ashgabat", tz); timezones0.put("Asia/Dushanbe", tz); timezones0.put("Asia/Karachi", tz); timezones0.put("Asia/Samarkand", tz); timezones0.put("Asia/Tashkent", tz); timezones0.put("Indian/Chagos", tz); timezones0.put("Indian/Kerguelen", tz); timezones0.put("Indian/Maldives", tz); tz = new SimpleTimeZone(5500 * 3600, "IST"); timezones0.put("IST", tz); timezones0.put("Asia/Calcutta", tz); tz = new SimpleTimeZone(5750 * 3600, "Asia/Katmandu"); timezones0.put("Asia/Katmandu", tz); tz = new SimpleTimeZone(6000 * 3600, "BST"); timezones0.put("BST", tz); timezones0.put("Antarctica/Mawson", tz); timezones0.put("Asia/Colombo", tz); timezones0.put("Asia/Dhaka", tz); timezones0.put("Asia/Thimphu", tz); tz = new SimpleTimeZone (6000 * 3600, "Asia/Almaty", Calendar.MARCH, -1, Calendar.SUNDAY, 0 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 0 * 3600); timezones0.put("Asia/Almaty", tz); tz = new SimpleTimeZone (6000 * 3600, "Asia/Novosibirsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Novosibirsk", tz); timezones0.put("Asia/Omsk", tz); tz = new SimpleTimeZone(6500 * 3600, "Asia/Rangoon"); timezones0.put("Asia/Rangoon", tz); timezones0.put("Indian/Cocos", tz); tz = new SimpleTimeZone(7000 * 3600, "VST"); timezones0.put("VST", tz); timezones0.put("Antarctica/Davis", tz); timezones0.put("Asia/Bangkok", tz); timezones0.put("Asia/Hovd", tz); timezones0.put("Asia/Jakarta", tz); timezones0.put("Asia/Phnom_Penh", tz); timezones0.put("Asia/Saigon", tz); timezones0.put("Asia/Vientiane", tz); timezones0.put("Indian/Christmas", tz); tz = new SimpleTimeZone (7000 * 3600, "Asia/Krasnoyarsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Krasnoyarsk", tz); tz = new SimpleTimeZone(8000 * 3600, "CTT"); timezones0.put("CTT", tz); timezones0.put("Antarctica/Casey", tz); timezones0.put("Asia/Brunei", tz); timezones0.put("Asia/Chungking", tz); timezones0.put("Asia/Harbin", tz); timezones0.put("Asia/Hong_Kong", tz); timezones0.put("Asia/Kashgar", tz); timezones0.put("Asia/Kuala_Lumpur", tz); timezones0.put("Asia/Kuching", tz); timezones0.put("Asia/Macao", tz); timezones0.put("Asia/Manila", tz); timezones0.put("Asia/Shanghai", tz); timezones0.put("Asia/Singapore", tz); timezones0.put("Asia/Taipei", tz); timezones0.put("Asia/Ujung_Pandang", tz); timezones0.put("Asia/Ulaanbaatar", tz); timezones0.put("Asia/Urumqi", tz); timezones0.put("Australia/Perth", tz); tz = new SimpleTimeZone (8000 * 3600, "Asia/Irkutsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Irkutsk", tz); tz = new SimpleTimeZone(9000 * 3600, "JST"); timezones0.put("JST", tz); timezones0.put("Asia/Dili", tz); timezones0.put("Asia/Jayapura", tz); timezones0.put("Asia/Pyongyang", tz); timezones0.put("Asia/Seoul", tz); timezones0.put("Asia/Tokyo", tz); timezones0.put("Pacific/Palau", tz); tz = new SimpleTimeZone (9000 * 3600, "Asia/Yakutsk", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Yakutsk", tz); tz = new SimpleTimeZone (9500 * 3600, "Australia/Adelaide", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Australia/Adelaide", tz); timezones0.put("Australia/Broken_Hill", tz); tz = new SimpleTimeZone(9500 * 3600, "ACT"); timezones0.put("ACT", tz); timezones0.put("Australia/Darwin", tz); tz = new SimpleTimeZone(10000 * 3600, "Antarctica/DumontDUrville"); timezones0.put("Antarctica/DumontDUrville", tz); timezones0.put("Australia/Brisbane", tz); timezones0.put("Australia/Lindeman", tz); timezones0.put("Pacific/Guam", tz); timezones0.put("Pacific/Port_Moresby", tz); timezones0.put("Pacific/Saipan", tz); timezones0.put("Pacific/Truk", tz); timezones0.put("Pacific/Yap", tz); tz = new SimpleTimeZone (10000 * 3600, "Asia/Vladivostok", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Vladivostok", tz); tz = new SimpleTimeZone (10000 * 3600, "Australia/Hobart", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Australia/Hobart", tz); tz = new SimpleTimeZone (10000 * 3600, "AET", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("AET", tz); timezones0.put("Australia/Melbourne", tz); timezones0.put("Australia/Sydney", tz); tz = new SimpleTimeZone (10500 * 3600, "Australia/Lord_Howe", Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, 500 * 3600); timezones0.put("Australia/Lord_Howe", tz); tz = new SimpleTimeZone (11000 * 3600, "Asia/Magadan", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Magadan", tz); tz = new SimpleTimeZone(11000 * 3600, "SST"); timezones0.put("SST", tz); timezones0.put("Pacific/Efate", tz); timezones0.put("Pacific/Guadalcanal", tz); timezones0.put("Pacific/Kosrae", tz); timezones0.put("Pacific/Noumea", tz); timezones0.put("Pacific/Ponape", tz); tz = new SimpleTimeZone(11500 * 3600, "Pacific/Norfolk"); timezones0.put("Pacific/Norfolk", tz); tz = new SimpleTimeZone (12000 * 3600, "NST", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 2000 * 3600); timezones0.put("NST", tz); timezones0.put("Antarctica/McMurdo", tz); timezones0.put("Antarctica/South_Pole", tz); timezones0.put("Pacific/Auckland", tz); tz = new SimpleTimeZone (12000 * 3600, "Asia/Anadyr", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); timezones0.put("Asia/Anadyr", tz); timezones0.put("Asia/Kamchatka", tz); tz = new SimpleTimeZone(12000 * 3600, "Pacific/Fiji"); timezones0.put("Pacific/Fiji", tz); timezones0.put("Pacific/Funafuti", tz); timezones0.put("Pacific/Kwajalein", tz); timezones0.put("Pacific/Majuro", tz); timezones0.put("Pacific/Nauru", tz); timezones0.put("Pacific/Tarawa", tz); timezones0.put("Pacific/Wake", tz); timezones0.put("Pacific/Wallis", tz); tz = new SimpleTimeZone (12750 * 3600, "Pacific/Chatham", Calendar.OCTOBER, 1, Calendar.SUNDAY, 2750 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 2750 * 3600); timezones0.put("Pacific/Chatham", tz); tz = new SimpleTimeZone(13000 * 3600, "Pacific/Enderbury"); timezones0.put("Pacific/Enderbury", tz); timezones0.put("Pacific/Tongatapu", tz); tz = new SimpleTimeZone(14000 * 3600, "Pacific/Kiritimati"); timezones0.put("Pacific/Kiritimati", tz); } return timezones0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/TimeZone.java/clean/core/src/classpath/java/java/util/TimeZone.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 3852, 4317, 25954, 1435, 225, 288, 565, 309, 261, 957, 14203, 20, 422, 446, 13, 4202, 288, 202, 8658, 25954, 273, 394, 4317, 5621, 202, 957, 14203, 20, 273, 25954, 31, 202, 202, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 4317, 25954, 1435, 225, 288, 565, 309, 261, 957, 14203, 20, 422, 446, 13, 4202, 288, 202, 8658, 25954, 273, 394, 4317, 5621, 202, 957, 14203, 20, 273, 25954, 31, 202, 202, 16...
return nome; }
return nome; }
public java.lang.String getNome() { return nome; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/38b3fa73a6f3bf6151138971a8241cce84c25ae8/Pessoa.java/clean/src/Dominio/Pessoa.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4936, 18, 780, 11069, 1742, 1435, 288, 3639, 327, 290, 1742, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4936, 18, 780, 11069, 1742, 1435, 288, 3639, 327, 290, 1742, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
parent.add(item);
parent.add(item);
protected void processNode(Node node, JComponent parent) { JComponent container = null; JComponent item = null; if (node.getNodeType() != Node.ELEMENT_NODE) return; // can't process it // things will recurse through here item = buildComponent((Element)node); // find out where we stash the item if (item != null) { Element current = (Element)node; if (item instanceof JSeparator) { parent.add(item); } else if (parent instanceof MenuCtrl) { ((MenuCtrl)parent).addItemByName(current.getAttribute(id_attr), (JMenuItem)item); System.out.println("adding " + current.getAttribute(id_attr)); } else if (parent instanceof MenuBarCtrl) { ((MenuBarCtrl)parent).addItemByName(current.getAttribute(id_attr), (JMenuItem)item); System.out.println("adding " + current.getAttribute(id_attr)); } } }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b723a0ed6d31e14b737f03996f1e35c7db8d7236/XMLMenuBuilder.java/clean/grendel/ui/XMLMenuBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1207, 907, 12, 907, 756, 16, 29058, 982, 13, 288, 565, 29058, 1478, 273, 446, 31, 565, 29058, 761, 273, 446, 31, 565, 309, 261, 2159, 18, 588, 15101, 1435, 480, 2029, 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, 282, 4750, 918, 1207, 907, 12, 907, 756, 16, 29058, 982, 13, 288, 565, 29058, 1478, 273, 446, 31, 565, 29058, 761, 273, 446, 31, 565, 309, 261, 2159, 18, 588, 15101, 1435, 480, 2029, 18, 1...
&& Label.ACTION_PROP.equalsIgnoreCase( name )
&& ILabelModel.ACTION_PROP.equalsIgnoreCase( name )
protected AbstractParseState generalJumpTo( ) { if ( element instanceof Label && Label.ACTION_PROP.equalsIgnoreCase( name ) || element instanceof ImageItem && ImageItem.ACTION_PROP.equalsIgnoreCase( name ) || element instanceof DataItem && DataItem.ACTION_PROP.equalsIgnoreCase( name ) ) { ActionStructureState state = new ActionStructureState( handler, element ); state.setName( name ); return state; } String propName = propDefn == null ? null : propDefn.getName( ); if ( ( element instanceof DataSet ) ) { if ( DataSet.COMPUTED_COLUMNS_PROP.equalsIgnoreCase( propName ) ) { CompatibleComputedColumnStructureState state = new CompatibleComputedColumnStructureState( handler, element, propDefn, list ); state.setName( propName ); return state; } } return super.generalJumpTo( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/StructureState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/StructureState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4115, 3201, 1119, 7470, 26743, 774, 12, 262, 202, 95, 202, 202, 430, 261, 930, 1276, 5287, 9506, 202, 10, 10, 5287, 18, 12249, 67, 15811, 18, 14963, 5556, 12, 508, 262, 9506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4115, 3201, 1119, 7470, 26743, 774, 12, 262, 202, 95, 202, 202, 430, 261, 930, 1276, 5287, 9506, 202, 10, 10, 5287, 18, 12249, 67, 15811, 18, 14963, 5556, 12, 508, 262, 9506,...
if(cldrFileToCheck == null) { throw new InternalError("CheckCLDR problem: cldrFileToCheck must not be null"); } if (path == null) { throw new InternalError("CheckCLDR problem: path must not be null"); } if (fullPath == null) { throw new InternalError("CheckCLDR problem: fullPath must not be null"); } if (value == null) { throw new InternalError("CheckCLDR problem: value must not be null"); } result.clear(); return handleCheck(path, fullPath, value, options, result); }
if(cldrFileToCheck == null) { throw new InternalError("CheckCLDR problem: cldrFileToCheck must not be null"); } if (path == null) { throw new InternalError("CheckCLDR problem: path must not be null"); } if (fullPath == null) { throw new InternalError("CheckCLDR problem: fullPath must not be null"); } if (value == null) { throw new InternalError("CheckCLDR problem: value must not be null"); } result.clear(); return handleCheck(path, fullPath, value, options, result); }
public final CheckCLDR check(String path, String fullPath, String value, Map options, List result) { if(cldrFileToCheck == null) { throw new InternalError("CheckCLDR problem: cldrFileToCheck must not be null"); } if (path == null) { throw new InternalError("CheckCLDR problem: path must not be null"); } if (fullPath == null) { throw new InternalError("CheckCLDR problem: fullPath must not be null"); } if (value == null) { throw new InternalError("CheckCLDR problem: value must not be null"); } result.clear(); return handleCheck(path, fullPath, value, options, result); }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/c94b49d7784e4c6f8ec0f50a2412ccdbbf714f66/CheckCLDR.java/buggy/tools/java/org/unicode/cldr/test/CheckCLDR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 2073, 5017, 6331, 866, 12, 780, 589, 16, 514, 11225, 16, 514, 460, 16, 1635, 702, 16, 987, 563, 13, 288, 3639, 309, 12, 830, 3069, 812, 18126, 422, 446, 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, 225, 202, 482, 727, 2073, 5017, 6331, 866, 12, 780, 589, 16, 514, 11225, 16, 514, 460, 16, 1635, 702, 16, 987, 563, 13, 288, 3639, 309, 12, 830, 3069, 812, 18126, 422, 446, 13, 288, 5411, ...
public String toString() { StringBuilder retval = new StringBuilder("("); for (int i = 0; i < mQueryOperations.size(); i++) { retval.append(" OR "); retval.append(mQueryOperations.get(i).toString()); } retval.append(")"); return retval.toString(); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/c2968386a64d285ddcd668a68b39b84d790490b4/UnionQueryOperation.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/UnionQueryOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 3225, 5221, 273, 394, 3225, 2932, 2932, 1769, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 312, 1138, 9343, 18, 1467, 5621, 277, 27245, 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, 514, 1762, 1435, 288, 3639, 3225, 5221, 273, 394, 3225, 2932, 2932, 1769, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 312, 1138, 9343, 18, 1467, 5621, 277, 27245, 288, 5411, ...
"Parameters : [fractal_ADL_file] descriptor_file" + "\n the first file describes your components layout. " + "\n Default is " + DEFAULT_ADL + "\n the second file describes your deployment of computing nodes." + "\n You may want to try ../../../descriptors/components/C3D_all.xml");
"Parameters : descriptor_file [fractal_ADL_file] " + "\n The first file describes your deployment of computing nodes." + "\n You may want to try ../../../descriptors/components/C3D_all.xml"+ "\n The second file describes your components layout. " + "\n Default is " + DEFAULT_ADL );
public static void main(final String[] args) throws Exception { if ((args.length != 2) && (args.length != 1)) { System.out.println( "Parameters : [fractal_ADL_file] descriptor_file" + "\n the first file describes your components layout. " + "\n Default is " + DEFAULT_ADL + "\n the second file describes your deployment of computing nodes." + "\n You may want to try ../../../descriptors/components/C3D_all.xml"); return; } String adl; String descriptor; if (args.length == 1) { adl = DEFAULT_ADL; descriptor = args[0]; } else { adl = args[0]; descriptor = args[1]; } Launcher.main(new String[] { "-fractal", adl, "m", descriptor }); }
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/feb205e44ad808bcfe2f33002933567d2fddf0c3/Main.java/clean/src/org/objectweb/proactive/examples/components/c3d/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 6385, 514, 8526, 833, 13, 1216, 1185, 288, 3639, 309, 14015, 1968, 18, 2469, 480, 576, 13, 597, 261, 1968, 18, 2469, 480, 404, 3719, 288, 5411, 2332, 18, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 6385, 514, 8526, 833, 13, 1216, 1185, 288, 3639, 309, 14015, 1968, 18, 2469, 480, 576, 13, 597, 261, 1968, 18, 2469, 480, 404, 3719, 288, 5411, 2332, 18, 659, ...
public int getLineNumber() { //return fCurrentEntity != null ? fCurrentEntity.lineNumber : -1; if (fCurrentEntity != null) { if (fCurrentEntity.entityLocation != null && fCurrentEntity.entityLocation.getLiteralSystemId() != null ) { return fCurrentEntity.lineNumber; } else { // search for the first external entity on the stack int size = fEntityStack.size(); for (int i=size-1; i>0 ; i--) { ScannedEntity firstExternalEntity = (ScannedEntity)fEntityStack.elementAt(i); if (firstExternalEntity.entityLocation != null && firstExternalEntity.entityLocation.getLiteralSystemId() != null) { return firstExternalEntity.lineNumber; } } } } return -1; } // getLineNumber():int
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/76210d88ada5f79a02657f0a05cf18b34d7b5f24/XMLEntityManager.java/buggy/src/org/apache/xerces/impl/XMLEntityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 474, 588, 31063, 1435, 95, 759, 2463, 74, 3935, 1943, 5, 33, 2011, 35, 74, 3935, 1943, 18, 1369, 1854, 30, 17, 21, 31, 430, 12, 74, 3935, 1943, 5, 33, 2011, 15329, 430, 12, 74, 393...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 474, 588, 31063, 1435, 95, 759, 2463, 74, 3935, 1943, 5, 33, 2011, 35, 74, 3935, 1943, 18, 1369, 1854, 30, 17, 21, 31, 430, 12, 74, 3935, 1943, 5, 33, 2011, 15329, 430, 12, 74, 393...
cat2.addSubtask(cat2task4);
cat2task4.setCategory(cat2); cat2.addTask(cat2task4);
public void setUp() throws PartInitException{ MylarTasksPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("org.eclipse.mylar.tasks.ui.views.TaskListView"); File file = new File("foo" + MylarTasksPlugin.FILE_EXTENSION); TaskListManager manager = new TaskListManager(file); tlist = manager.createNewTaskList(); cat1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "First Category"); cat1.setIsCategory(true); cat1task1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 1"); cat1task1.setPriority("P1"); cat1task1.setCompleted(true); cat1.addSubtask(cat1task1); cat1task2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 2"); cat1task2.setPriority("P2"); cat1.addSubtask(cat1task2); cat1task3 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 3"); cat1task3.setPriority("P3"); cat1task3.setCompleted(true); cat1.addSubtask(cat1task3); cat1task4 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 4"); cat1task4.setPriority("P4"); cat1.addSubtask(cat1task4); cat1task5 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 5"); cat1task5.setPriority("P5"); cat1task5.setCompleted(true); cat1.addSubtask(cat1task5); tlist.addRootTask(cat1); assertEquals(cat1.getChildren().size(), 5); cat2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "Second Category"); cat2.setIsCategory(true); cat2task1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 1"); cat2task1.setPriority("P1"); cat2.addSubtask(cat2task1); cat2task2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 2"); cat2task2.setPriority("P2"); cat2task2.setCompleted(true); cat2.addSubtask(cat2task2); cat2task3 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 3"); cat2task3.setPriority("P3"); cat2.addSubtask(cat2task3); cat2task4 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 4"); cat2task4.setPriority("P4"); cat2task4.setCompleted(true); cat2.addSubtask(cat2task4); cat2task5 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 5"); cat2task5.setPriority("P5"); cat2.addSubtask(cat2task5); tlist.addRootTask(cat2); manager.saveTaskList(); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bfd6c75025dd41ab813783fc0743c23cfe1c2fc2/TaskListUiTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24292, 1435, 1216, 6393, 2570, 503, 95, 9506, 202, 12062, 7901, 6685, 3773, 18, 588, 1868, 7675, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 1435, 1216, 6393, 2570, 503, 95, 9506, 202, 12062, 7901, 6685, 3773, 18, 588, 1868, 7675, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, ...
in.startString(); while(c != quoteChar) {
strLoop: while (c != quoteChar) {
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. do { c = in.read(); if (c == '\n') if ((flags & TSF_NEWLINES) != 0) break; } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean isUnicodeEscapeStart = false; if (c == '\\') { c = in.read(); if (c == 'u') isUnicodeEscapeStart = true; else c = '\\'; // always unread the 'u' or whatever, we need // to start the string below at the <backslash>. in.unread(); } if (isUnicodeEscapeStart || Character.isJavaIdentifierStart((char)c)) { in.startString(); boolean containsEscape = isUnicodeEscapeStart; do { c = in.read(); if (c == '\\') { c = in.read(); containsEscape = (c == 'u'); } } while (Character.isJavaIdentifierPart((char)c)); in.unread(); int result; String str = in.getString(); // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence after an identifier, we can report // an error here. if (containsEscape) { char ca[] = str.toCharArray(); int L = str.length(); int destination = 0; for (int i = 0; i != L;) { c = ca[i]; ++i; if (c == '\\' && i != L && ca[i] == 'u') { boolean goodEscape = false; if (i + 4 < L) { int val = xDigitToInt(ca[i + 1]); if (val >= 0) { val = (val << 4) | xDigitToInt(ca[i + 2]); if (val >= 0) { val = (val << 4) | xDigitToInt(ca[i + 3]); if (val >= 0) { val = (val << 4) | xDigitToInt(ca[i + 4]); if (val >= 0) { c = (char)val; i += 5; goodEscape = true; } } } } } if (!goodEscape) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } } ca[destination] = (char)c; ++destination; } str = new String(ca, 0, destination); } else { // Return the corresponding token if it's a keyword result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); result = EOF; } } } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { int base = 10; in.startString(); if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { c = in.read(); base = 16; // restart the string, losing leading 0x in.startString(); } else if (isDigit(c)) { base = 8; } } while (0 <= xDigitToInt(c)) { if (base < 16) { if (isAlpha(c)) break; /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } } c = in.read(); } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { c = in.read(); if (c == '+' || c == '-') { c = in.read(); } if (!isDigit(c)) { in.getString(); // throw away string in progress reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = in.getString(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. StringBuffer stringBuf = null; int quoteChar = c; int val = 0; c = in.read(); in.startString(); // start after the first " while(c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); in.getString(); // throw away the string in progress reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character; revert to the // slow method of building a string. if (stringBuf == null) { // Don't include the backslash in.unread(); stringBuf = new StringBuffer(in.getString()); in.read(); } switch (c = in.read()) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; case 'v': c = '\u000B'; break; // \v a late addition to the ECMA spec. // '\v' doesn't seem to be valid Java. default: if (isDigit(c) && c < '8') { val = c - '0'; c = in.read(); if (isDigit(c) && c < '8') { val = 8 * val + c - '0'; c = in.read(); if (isDigit(c) && c < '8') { val = 8 * val + c - '0'; c = in.read(); } } in.unread(); if (val > 0377) { reportSyntaxError("msg.oct.esc.too.large", null); return ERROR; } c = val; } else if (c == 'u') { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. Do some manual * match (OK because we're in a string) to avoid * multi-char match on the underlying stream. */ int c1 = in.read(); c = xDigitToInt(c1); if (c < 0) { in.unread(); c = 'u'; } else { int c2 = in.read(); c = (c << 4) | xDigitToInt(c2); if (c < 0) { in.unread(); stringBuf.append('u'); c = c1; } else { int c3 = in.read(); c = (c << 4) | xDigitToInt(c3); if (c < 0) { in.unread(); stringBuf.append('u'); stringBuf.append((char)c1); c = c2; } else { int c4 = in.read(); c = (c << 4) | xDigitToInt(c4); if (c < 0) { in.unread(); stringBuf.append('u'); stringBuf.append((char)c1); stringBuf.append((char)c2); c = c3; } else { // got 4 hex digits! Woo Hoo! } } } } } else if (c == 'x') { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ int c1 = in.read(); c = xDigitToInt(c1); if (c < 0) { in.unread(); c = 'x'; } else { int c2 = in.read(); c = (c << 4) | xDigitToInt(c2); if (c < 0) { in.unread(); stringBuf.append('x'); c = c1; } else { // got 2 hex digits } } } } } if (stringBuf != null) stringBuf.append((char) c); c = in.read(); } if (stringBuf != null) this.string = stringBuf.toString(); else { in.unread(); // miss the trailing " this.string = in.getString(); in.read(); } return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (in.match('|')) { return OR; } else if (in.match('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (in.match('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (in.match('&')) { return AND; } else if (in.match('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (in.match('=')) { if (in.match('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (in.match('=')) { if (in.match('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (in.match('!')) { if (in.match('-')) { if (in.match('-')) { while ((c = in.read()) != EOF_CHAR && c != '\n') /* skip to end of line */; in.unread(); return getToken(); // in place of 'goto retry' } in.unread(); } in.unread(); } if (in.match('<')) { if (in.match('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (in.match('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (in.match('>')) { if (in.match('>')) { if (in.match('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (in.match('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (in.match('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (in.match('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (in.match('/')) { while ((c = in.read()) != EOF_CHAR && c != '\n') /* skip to end of line */; in.unread(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { ; // empty loop body } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { // We don't try to use the in.startString/in.getString // approach, because escaped characters (which break it) // seem likely to be common. StringBuffer re = new StringBuffer(); while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { re.append((char) c); c = in.read(); } re.append((char) c); } StringBuffer flagsBuf = new StringBuffer(); while (true) { if (in.match('g')) flagsBuf.append('g'); else if (in.match('i')) flagsBuf.append('i'); else if (in.match('m')) flagsBuf.append('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = re.toString(); this.regExpFlags = flagsBuf.toString(); return OBJECT; } if (in.match('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (in.match('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': case '-': if (in.match('=')) { if (c == '+') { this.op = ADD; return ASSIGN; } else { this.op = SUB; return ASSIGN; } } else if (in.match((char) c)) { if (c == '+') { return INC; } else { return DEC; } } else if (c == '-') { return SUB; } else { return ADD; } default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/307d75e3128a24e2aa23ad77cc0eb8945c47d57c/TokenStream.java/clean/js/rhino/src/org/mozilla/javascript/TokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, ...
if (node.edges[0] != null || !(node.edges[0].contents instanceof SIRJoiner)) { for (int i = 0; i < node.inputs; i++) { if (node.incomingWeights[i] != 0) { return true; } } } return false;
if (node.edges[0] != null && node.edges[0].isJoiner()) return false; return true;
public static boolean assignedJoiner(FlatNode node) { assert node.isJoiner(); if (node.edges.length == 0) { assert node.getTotalIncomingWeights() == 0; return false; } // do not assign joiners directly connected to other joiners or null // joiners if (node.edges[0] != null || !(node.edges[0].contents instanceof SIRJoiner)) { for (int i = 0; i < node.inputs; i++) { if (node.incomingWeights[i] != 0) { return true; } } } return false; }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/bc8a69ca9ac00dc5f4b33311c6a6454f7254c5aa/Layout.java/clean/streams/src/at/dms/kjc/spacedynamic/Layout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 6958, 4572, 264, 12, 16384, 907, 756, 13, 288, 3639, 1815, 756, 18, 291, 4572, 264, 5621, 3639, 309, 261, 2159, 18, 8746, 18, 2469, 422, 374, 13, 288, 5411, 1815, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 6958, 4572, 264, 12, 16384, 907, 756, 13, 288, 3639, 1815, 756, 18, 291, 4572, 264, 5621, 3639, 309, 261, 2159, 18, 8746, 18, 2469, 422, 374, 13, 288, 5411, 1815, 756, ...
ColorMapManager manager = env.getColorMapManager(); ColorMapUI ui = manager.getUI();
HeatMapManager manager = env.getHeatMapManager(); HeatMapUI ui = manager.getUI();
public void actionPerformed(ActionEvent ae) { ColorMapManager manager = env.getColorMapManager(); ColorMapUI ui = manager.getUI(); ui.setClosable(true); ui.setIconifiable(true); ui.setResizable(false); ui.setMaximizable(false); if(!ui.isShowing()) { tf.addToDesktop(ui,TopFrame.PALETTE_LAYER); ui.show(); } else { try { ui.setSelected(true); } catch(PropertyVetoException ex) {} } }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 5411, 288, 7734, 5563, 863, 1318, 3301, 273, 1550, 18, 588, 2957, 863, 1318, 5621, 7734, 5563, 863, 5370, 5915, 273, 3301, 18, 588, 5370, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 5411, 288, 7734, 5563, 863, 1318, 3301, 273, 1550, 18, 588, 2957, 863, 1318, 5621, 7734, 5563, 863, 5370, 5915, 273, 3301, 18, 588, 5370, 562...
sendData[Dispatch.PACKET_DATA_OFFSET + offset] = b; sendData[Dispatch.PACKET_DATA_OFFSET + offset + 1] = (byte) ((data >>> 19) & 0xFF); sendData[Dispatch.PACKET_DATA_OFFSET + offset + 2] = (byte) ((data >>> 11) & 0xFF); sendData[Dispatch.PACKET_DATA_OFFSET + offset + 3] = (byte) ((data >>> 3) & 0xFF); sendData[Dispatch.PACKET_DATA_OFFSET + offset + 4] = (byte) ((data & 0x07) << 5);
sendData[DataPacket.PACKET_DATA_OFFSET + offset] = b; sendData[DataPacket.PACKET_DATA_OFFSET + offset + 1] = (byte) ((data >>> 19) & 0xFF); sendData[DataPacket.PACKET_DATA_OFFSET + offset + 2] = (byte) ((data >>> 11) & 0xFF); sendData[DataPacket.PACKET_DATA_OFFSET + offset + 3] = (byte) ((data >>> 3) & 0xFF); sendData[DataPacket.PACKET_DATA_OFFSET + offset + 4] = (byte) ((data & 0x07) << 5);
private static void fillPacket(boolean modeBit, boolean controlBit, int data, int offset) { // startBit = 1 | modeBit | controlBit | 32 bits of data byte b = (byte) 0x80; if (modeBit) { b |= 0x40; } if (controlBit) { b |= 0x20; } b |= (byte) (data >>> 27); sendData[Dispatch.PACKET_DATA_OFFSET + offset] = b; sendData[Dispatch.PACKET_DATA_OFFSET + offset + 1] = (byte) ((data >>> 19) & 0xFF); sendData[Dispatch.PACKET_DATA_OFFSET + offset + 2] = (byte) ((data >>> 11) & 0xFF); sendData[Dispatch.PACKET_DATA_OFFSET + offset + 3] = (byte) ((data >>> 3) & 0xFF); sendData[Dispatch.PACKET_DATA_OFFSET + offset + 4] = (byte) ((data & 0x07) << 5); }
16066 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/16066/563076446a7a210a0fc2ca1b52bd1f8a3152413b/MPC555.java/clean/mcdp/src/ch/ntb/mcdp/bdi/MPC555.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 3636, 6667, 12, 6494, 1965, 5775, 16, 1250, 3325, 5775, 16, 1082, 202, 474, 501, 16, 509, 1384, 13, 288, 202, 202, 759, 787, 5775, 273, 404, 571, 1965, 5775, 571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 3636, 6667, 12, 6494, 1965, 5775, 16, 1250, 3325, 5775, 16, 1082, 202, 474, 501, 16, 509, 1384, 13, 288, 202, 202, 759, 787, 5775, 273, 404, 571, 1965, 5775, 571, ...
iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod));
CreateJumpTargetVisitor.setJumpTarget(newMethod, iVisited.getBodyNode());
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode iVisited = (AliasNode) node; if (context.getRubyClass() == null) { throw runtime.newTypeError("no class to make alias"); } context.getRubyClass().defineAlias(iVisited.getNewName(), iVisited.getOldName()); context.getRubyClass().callMethod(context, "method_added", runtime.newSymbol(iVisited.getNewName())); return runtime.getNil(); } case NodeTypes.ANDNODE: { BinaryOperatorNode iVisited = (BinaryOperatorNode) node; IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) return result; node = iVisited.getSecondNode(); continue bigloop; } case NodeTypes.ARGSCATNODE: { ArgsCatNode iVisited = (ArgsCatNode) node; IRubyObject args = evalInternal(context, iVisited.getFirstNode(), self); IRubyObject secondArgs = splatValue(evalInternal(context, iVisited.getSecondNode(), self)); RubyArray list = args instanceof RubyArray ? (RubyArray) args : runtime.newArray(args); return list.concat(secondArgs); } // case NodeTypes.ARGSNODE: // EvaluateVisitor.argsNodeVisitor.execute(this, node); // break; // case NodeTypes.ARGUMENTNODE: // EvaluateVisitor.argumentNodeVisitor.execute(this, node); // break; case NodeTypes.ARRAYNODE: { ArrayNode iVisited = (ArrayNode) node; IRubyObject[] array = new IRubyObject[iVisited.size()]; int i = 0; for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node next = (Node) iterator.next(); array[i++] = evalInternal(context, next, self); } return runtime.newArray(array); } // case NodeTypes.ASSIGNABLENODE: // EvaluateVisitor.assignableNodeVisitor.execute(this, node); // break; case NodeTypes.BACKREFNODE: { BackRefNode iVisited = (BackRefNode) node; IRubyObject backref = context.getBackref(); switch (iVisited.getType()) { case '~': return backref; case '&': return RubyRegexp.last_match(backref); case '`': return RubyRegexp.match_pre(backref); case '\'': return RubyRegexp.match_post(backref); case '+': return RubyRegexp.match_last(backref); } break; } case NodeTypes.BEGINNODE: { BeginNode iVisited = (BeginNode) node; node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.BIGNUMNODE: { BignumNode iVisited = (BignumNode) node; return RubyBignum.newBignum(runtime, iVisited.getValue()); } // case NodeTypes.BINARYOPERATORNODE: // EvaluateVisitor.binaryOperatorNodeVisitor.execute(this, node); // break; // case NodeTypes.BLOCKARGNODE: // EvaluateVisitor.blockArgNodeVisitor.execute(this, node); // break; case NodeTypes.BLOCKNODE: { BlockNode iVisited = (BlockNode) node; IRubyObject result = runtime.getNil(); for (Iterator iter = iVisited.iterator(); iter.hasNext();) { result = evalInternal(context, (Node) iter.next(), self); } return result; } case NodeTypes.BLOCKPASSNODE: { BlockPassNode iVisited = (BlockPassNode) node; IRubyObject proc = evalInternal(context, iVisited.getBodyNode(), self); if (proc.isNil()) { context.setNoBlock(); try { return evalInternal(context, iVisited.getIterNode(), self); } finally { context.clearNoBlock(); } } // If not already a proc then we should try and make it one. if (!(proc instanceof RubyProc)) { proc = proc.convertToType("Proc", "to_proc", false); if (!(proc instanceof RubyProc)) { throw runtime.newTypeError("wrong argument type " + proc.getMetaClass().getName() + " (expected Proc)"); } } // TODO: Add safety check for taintedness Block block = (Block) context.getCurrentBlock(); if (block != null) { IRubyObject blockObject = block.getBlockObject(); // The current block is already associated with the proc. No need to create new // block for it. Just eval! if (blockObject != null && blockObject == proc) { try { context.setBlockAvailable(); return evalInternal(context, iVisited.getIterNode(), self); } finally { context.clearBlockAvailable(); } } } context.preBlockPassEval(((RubyProc) proc).getBlock()); try { return evalInternal(context, iVisited.getIterNode(), self); } finally { context.postBlockPassEval(); } } case NodeTypes.BREAKNODE: { BreakNode iVisited = (BreakNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); JumpException je = new JumpException(JumpException.JumpType.BreakJump); je.setPrimaryData(result); je.setSecondaryData(node); throw je; } case NodeTypes.CALLNODE: { CallNode iVisited = (CallNode) node; IterNode iterNode = iVisited.getIterNode(); IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject[] args = setupArgs(context, iVisited.getArgsNode(), self); assert receiver.getMetaClass() != null : receiver.getClass().getName(); // If reciever is self then we do the call the same way as vcall CallType callType = (receiver == self ? CallType.VARIABLE : CallType.NORMAL); // if no block passed, do a simple call if (iterNode == null) { return receiver.callMethod(context, iVisited.getName(), args, callType); } // if block passed, prepare the block and then do the call, handling breaks and retries correctly context.preIterEval(Block.createBlock(context, iterNode.getVarNode(), new DynamicScope(iterNode.getScope(), context.getCurrentScope()), iterNode.getCallable(), self)); try { while (true) { try { context.setBlockAvailable(); return receiver.callMethod(context, iVisited.getName(), args, callType); } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.RETRY: // allow loop to retry break; default: throw je; } } finally { context.clearBlockAvailable(); } } } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.BREAK: IRubyObject breakValue = (IRubyObject) je.getPrimaryData(); return breakValue == null ? runtime.getNil() : breakValue; default: throw je; } } finally { context.postIterEval(); } } case NodeTypes.CASENODE: { CaseNode iVisited = (CaseNode) node; IRubyObject expression = null; if (iVisited.getCaseNode() != null) { expression = evalInternal(context, iVisited.getCaseNode(), self); } context.pollThreadEvents(); IRubyObject result = runtime.getNil(); Node firstWhenNode = iVisited.getFirstWhenNode(); while (firstWhenNode != null) { if (!(firstWhenNode instanceof WhenNode)) { node = firstWhenNode; continue bigloop; } WhenNode whenNode = (WhenNode) firstWhenNode; if (whenNode.getExpressionNodes() instanceof ArrayNode) { for (Iterator iter = ((ArrayNode) whenNode.getExpressionNodes()).iterator(); iter .hasNext();) { Node tag = (Node) iter.next(); context.setPosition(tag.getPosition()); if (isTrace(runtime)) { callTraceFunction(context, "line", self); } // Ruby grammar has nested whens in a case body because of // productions case_body and when_args. if (tag instanceof WhenNode) { RubyArray expressions = (RubyArray) evalInternal(context, ((WhenNode) tag) .getExpressionNodes(), self); for (int j = 0; j < expressions.getLength(); j++) { IRubyObject condition = expressions.entry(j); if ((expression != null && condition.callMethod(context, "===", expression) .isTrue()) || (expression == null && condition.isTrue())) { node = ((WhenNode) firstWhenNode).getBodyNode(); continue bigloop; } } continue; } result = evalInternal(context, tag, self); if ((expression != null && result.callMethod(context, "===", expression).isTrue()) || (expression == null && result.isTrue())) { node = whenNode.getBodyNode(); continue bigloop; } } } else { result = evalInternal(context, whenNode.getExpressionNodes(), self); if ((expression != null && result.callMethod(context, "===", expression).isTrue()) || (expression == null && result.isTrue())) { node = ((WhenNode) firstWhenNode).getBodyNode(); continue bigloop; } } context.pollThreadEvents(); firstWhenNode = whenNode.getNextCase(); } return runtime.getNil(); } case NodeTypes.CLASSNODE: { ClassNode iVisited = (ClassNode) node; Node superNode = iVisited.getSuperNode(); RubyClass superClass = superNode == null ? null : (RubyClass) evalInternal(context, superNode, self); Node classNameNode = iVisited.getCPath(); String name = ((INameNode) classNameNode).getName(); RubyModule enclosingClass = getEnclosingModule(context, classNameNode, self); RubyClass rubyClass = enclosingClass.defineOrGetClassUnder(name, superClass); if (context.getWrapper() != null) { rubyClass.extendObject(context.getWrapper()); rubyClass.includeModule(context.getWrapper()); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), rubyClass, self); } case NodeTypes.CLASSVARASGNNODE: { ClassVarAsgnNode iVisited = (ClassVarAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); RubyModule rubyClass = (RubyModule) context.peekCRef().getValue(); if (rubyClass == null) { rubyClass = self.getMetaClass(); } else if (rubyClass.isSingleton()) { rubyClass = (RubyModule) rubyClass.getInstanceVariable("__attached__"); } rubyClass.setClassVar(iVisited.getName(), result); return result; } case NodeTypes.CLASSVARDECLNODE: { ClassVarDeclNode iVisited = (ClassVarDeclNode) node; // FIXME: shouldn't we use cref here? if (context.getRubyClass() == null) { throw runtime.newTypeError("no class/module to define class variable"); } IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); ((RubyModule) context.peekCRef().getValue()).setClassVar(iVisited.getName(), result); return runtime.getNil(); } case NodeTypes.CLASSVARNODE: { ClassVarNode iVisited = (ClassVarNode) node; RubyModule rubyClass = (RubyModule) context.peekCRef().getValue(); if (rubyClass == null) { rubyClass = self.getMetaClass(); } else if (rubyClass.isSingleton()) { rubyClass = (RubyModule)rubyClass.getInstanceVariable("__attached__"); } return rubyClass.getClassVar(iVisited.getName()); } case NodeTypes.COLON2NODE: { Colon2Node iVisited = (Colon2Node) node; Node leftNode = iVisited.getLeftNode(); // TODO: Made this more colon3 friendly because of cpath production // rule in grammar (it is convenient to think of them as the same thing // at a grammar level even though evaluation is). if (leftNode == null) { return runtime.getObject().getConstantFrom(iVisited.getName()); } else { IRubyObject result = evalInternal(context, iVisited.getLeftNode(), self); if (result instanceof RubyModule) { return ((RubyModule) result).getConstantFrom(iVisited.getName()); } else { return result.callMethod(context, iVisited.getName()); } } } case NodeTypes.COLON3NODE: { Colon3Node iVisited = (Colon3Node) node; return runtime.getObject().getConstantFrom(iVisited.getName()); } case NodeTypes.CONSTDECLNODE: { ConstDeclNode iVisited = (ConstDeclNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); IRubyObject module; if (iVisited.getPathNode() != null) { module = evalInternal(context, iVisited.getPathNode(), self); } else { // FIXME: why do we check RubyClass and then use CRef? if (context.getRubyClass() == null) { // TODO: wire into new exception handling mechanism throw runtime.newTypeError("no class/module to define constant"); } module = (RubyModule) context.peekCRef().getValue(); } // FIXME: shouldn't we use the result of this set in setResult? ((RubyModule) module).setConstant(iVisited.getName(), result); return result; } case NodeTypes.CONSTNODE: { ConstNode iVisited = (ConstNode) node; return context.getConstant(iVisited.getName()); } case NodeTypes.DASGNNODE: { DAsgnNode iVisited = (DAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // System.out.println("DSetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth() + " and set " + result); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } case NodeTypes.DEFINEDNODE: { DefinedNode iVisited = (DefinedNode) node; String definition = getDefinition(context, iVisited.getExpressionNode(), self); if (definition != null) { return runtime.newString(definition); } else { return runtime.getNil(); } } case NodeTypes.DEFNNODE: { DefnNode iVisited = (DefnNode) node; RubyModule containingClass = context.getRubyClass(); if (containingClass == null) { throw runtime.newTypeError("No class to add method."); } String name = iVisited.getName(); if (containingClass == runtime.getObject() && name.equals("initialize")) { runtime.getWarnings().warn("redefining Object#initialize may cause infinite loop"); } Visibility visibility = context.getCurrentVisibility(); if (name.equals("initialize") || visibility.isModuleFunction()) { visibility = Visibility.PRIVATE; } DefaultMethod newMethod = new DefaultMethod(containingClass, iVisited.getScope(), iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), visibility, context.peekCRef()); if (iVisited.getBodyNode() != null) { iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); } containingClass.addMethod(name, newMethod); if (context.getCurrentVisibility().isModuleFunction()) { containingClass.getSingletonClass().addMethod( name, new WrapperCallable(containingClass.getSingletonClass(), newMethod, Visibility.PUBLIC)); containingClass.callMethod(context, "singleton_method_added", runtime.newSymbol(name)); } // 'class << state.self' and 'class << obj' uses defn as opposed to defs if (containingClass.isSingleton()) { ((MetaClass) containingClass).getAttachedObject().callMethod( context, "singleton_method_added", runtime.newSymbol(iVisited.getName())); } else { containingClass.callMethod(context, "method_added", runtime.newSymbol(name)); } return runtime.getNil(); } case NodeTypes.DEFSNODE: { DefsNode iVisited = (DefsNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); RubyClass rubyClass; if (receiver.isNil()) { rubyClass = runtime.getNilClass(); } else if (receiver == runtime.getTrue()) { rubyClass = runtime.getClass("TrueClass"); } else if (receiver == runtime.getFalse()) { rubyClass = runtime.getClass("FalseClass"); } else { if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw runtime.newSecurityError("Insecure; can't define singleton method."); } if (receiver.isFrozen()) { throw runtime.newFrozenError("object"); } if (!receiver.singletonMethodsAllowed()) { throw runtime.newTypeError("can't define singleton method \"" + iVisited.getName() + "\" for " + receiver.getType()); } rubyClass = receiver.getSingletonClass(); } if (runtime.getSafeLevel() >= 4) { ICallable method = (ICallable) rubyClass.getMethods().get(iVisited.getName()); if (method != null) { throw runtime.newSecurityError("Redefining method prohibited."); } } DefaultMethod newMethod = new DefaultMethod(rubyClass, iVisited.getScope(), iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), Visibility.PUBLIC, context.peekCRef()); if (iVisited.getBodyNode() != null) { iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); } rubyClass.addMethod(iVisited.getName(), newMethod); receiver.callMethod(context, "singleton_method_added", runtime.newSymbol(iVisited.getName())); return runtime.getNil(); } case NodeTypes.DOTNODE: { DotNode iVisited = (DotNode) node; return RubyRange.newRange(runtime, evalInternal(context, iVisited.getBeginNode(), self), evalInternal(context, iVisited .getEndNode(), self), iVisited.isExclusive()); } case NodeTypes.DREGEXPNODE: { DRegexpNode iVisited = (DRegexpNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } String lang = null; int opts = iVisited.getOptions(); if((opts & 16) != 0) { // param n lang = "n"; } else if((opts & 48) != 0) { // param s lang = "s"; } else if((opts & 64) != 0) { // param s lang = "u"; } return RubyRegexp.newRegexp(runtime, sb.toString(), iVisited.getOptions(), lang); } case NodeTypes.DSTRNODE: { DStrNode iVisited = (DStrNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return runtime.newString(sb.toString()); } case NodeTypes.DSYMBOLNODE: { DSymbolNode iVisited = (DSymbolNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.getNode().iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return runtime.newSymbol(sb.toString()); } case NodeTypes.DVARNODE: { DVarNode iVisited = (DVarNode) node; // System.out.println("DGetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth()); IRubyObject obj = context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()); // FIXME: null check is removable once we figure out how to assign to unset named block args return obj == null ? runtime.getNil() : obj; } case NodeTypes.DXSTRNODE: { DXStrNode iVisited = (DXStrNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return self.callMethod(context, "`", runtime.newString(sb.toString())); } case NodeTypes.ENSURENODE: { EnsureNode iVisited = (EnsureNode) node; // save entering the try if there's nothing to ensure if (iVisited.getEnsureNode() != null) { IRubyObject result = runtime.getNil(); try { result = evalInternal(context, iVisited.getBodyNode(), self); } finally { evalInternal(context, iVisited.getEnsureNode(), self); } return result; } node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.EVSTRNODE: { EvStrNode iVisited = (EvStrNode) node; node = iVisited.getBody(); continue bigloop; } case NodeTypes.FALSENODE: { context.pollThreadEvents(); return runtime.getFalse(); } case NodeTypes.FCALLNODE: { FCallNode iVisited = (FCallNode) node; IterNode iterNode = iVisited.getIterNode(); IRubyObject[] args = setupArgs(context, iVisited.getArgsNode(), self); // if no block passed, do a simple call if (iterNode == null) { return self.callMethod(context, iVisited.getName(), args, CallType.FUNCTIONAL); } // if block passed, prepare the block and then do the call, handling breaks and retries correctly context.preIterEval(Block.createBlock(context, iterNode.getVarNode(), new DynamicScope(iterNode.getScope(), context.getCurrentScope()), iterNode.getCallable(), self)); try { while (true) { try { context.setBlockAvailable(); return self.callMethod(context, iVisited.getName(), args, CallType.FUNCTIONAL); } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.RETRY: // allow loop to retry break; default: throw je; } } finally { context.clearBlockAvailable(); } } } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.BREAK: IRubyObject breakValue = (IRubyObject) je.getPrimaryData(); return breakValue == null ? runtime.getNil() : breakValue; default: throw je; } } finally { context.postIterEval(); } } case NodeTypes.FIXNUMNODE: { FixnumNode iVisited = (FixnumNode) node; return iVisited.getFixnum(runtime); } case NodeTypes.FLIPNODE: { FlipNode iVisited = (FlipNode) node; IRubyObject result = runtime.getNil(); if (iVisited.isExclusive()) { if (!context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()).isTrue()) { result = evalInternal(context, iVisited.getBeginNode(), self).isTrue() ? runtime.getFalse() : runtime.getTrue(); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } else { if (evalInternal(context, iVisited.getEndNode(), self).isTrue()) { context.getCurrentScope().setValue(iVisited.getIndex(), runtime.getFalse(), iVisited.getDepth()); } return runtime.getTrue(); } } else { if (!context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()).isTrue()) { if (evalInternal(context, iVisited.getBeginNode(), self).isTrue()) { context.getCurrentScope().setValue( iVisited.getIndex(), evalInternal(context, iVisited.getEndNode(), self).isTrue() ? runtime.getFalse() : runtime.getTrue(), iVisited.getDepth()); return runtime.getTrue(); } else { return runtime.getFalse(); } } else { if (evalInternal(context, iVisited.getEndNode(), self).isTrue()) { context.getCurrentScope().setValue(iVisited.getIndex(), runtime.getFalse(), iVisited.getDepth()); } return runtime.getTrue(); } } } case NodeTypes.FLOATNODE: { FloatNode iVisited = (FloatNode) node; return RubyFloat.newFloat(runtime, iVisited.getValue()); } case NodeTypes.FORNODE: { ForNode iVisited = (ForNode) node; // For nodes do not have to create an addition scope so we just pass null context.preForLoopEval(Block.createBlock(context, iVisited.getVarNode(), null, iVisited.getCallable(), self)); try { while (true) { try { ISourcePosition position = context.getPosition(); context.beginCallArgs(); IRubyObject recv = null; try { recv = evalInternal(context, iVisited.getIterNode(), self); } finally { context.setPosition(position); context.endCallArgs(); } return recv.callMethod(context, "each", IRubyObject.NULL_ARRAY, CallType.NORMAL); } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.RETRY: // do nothing, allow loop to retry break; default: throw je; } } } } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.BREAK: IRubyObject breakValue = (IRubyObject) je.getPrimaryData(); return breakValue == null ? runtime.getNil() : breakValue; default: throw je; } } finally { context.postForLoopEval(); } } case NodeTypes.GLOBALASGNNODE: { GlobalAsgnNode iVisited = (GlobalAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); runtime.getGlobalVariables().set(iVisited.getName(), result); return result; } case NodeTypes.GLOBALVARNODE: { GlobalVarNode iVisited = (GlobalVarNode) node; return runtime.getGlobalVariables().get(iVisited.getName()); } case NodeTypes.HASHNODE: { HashNode iVisited = (HashNode) node; Map hash = null; if (iVisited.getListNode() != null) { hash = new HashMap(iVisited.getListNode().size() / 2); for (Iterator iterator = iVisited.getListNode().iterator(); iterator.hasNext();) { // insert all nodes in sequence, hash them in the final instruction // KEY IRubyObject key = evalInternal(context, (Node) iterator.next(), self); IRubyObject value = evalInternal(context, (Node) iterator.next(), self); hash.put(key, value); } } if (hash == null) { return RubyHash.newHash(runtime); } return RubyHash.newHash(runtime, hash, runtime.getNil()); } case NodeTypes.IFNODE: { IfNode iVisited = (IfNode) node; IRubyObject result = evalInternal(context, iVisited.getCondition(), self); if (result.isTrue()) { node = iVisited.getThenBody(); continue bigloop; } else { node = iVisited.getElseBody(); continue bigloop; } } case NodeTypes.INSTASGNNODE: { InstAsgnNode iVisited = (InstAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); self.setInstanceVariable(iVisited.getName(), result); return result; } case NodeTypes.INSTVARNODE: { InstVarNode iVisited = (InstVarNode) node; IRubyObject variable = self.getInstanceVariable(iVisited.getName()); return variable == null ? runtime.getNil() : variable; } // case NodeTypes.ISCOPINGNODE: // EvaluateVisitor.iScopingNodeVisitor.execute(this, node); // break; case NodeTypes.ITERNODE: { IterNode iVisited = (IterNode) node; // new-style handling of blocks, for nodes that support it // don't process the block until it's needed, to avoid nasty iter tricks if (iVisited.getIterNode() instanceof BlockAcceptingNode) { ((BlockAcceptingNode)iVisited.getIterNode()).setIterNode(iVisited); node = iVisited.getIterNode(); continue bigloop; } // otherwise do it the same as the old way context.preIterEval(Block.createBlock(context, iVisited.getVarNode(), new DynamicScope(iVisited.getScope(), context.getCurrentScope()), iVisited.getCallable(), self)); try { while (true) { try { context.setBlockAvailable(); return evalInternal(context, iVisited.getIterNode(), self); } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.RETRY: // allow loop to retry break; default: throw je; } } finally { context.clearBlockAvailable(); } } } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.BREAK: IRubyObject breakValue = (IRubyObject) je.getPrimaryData(); return breakValue == null ? runtime.getNil() : breakValue; default: throw je; } } finally { context.postIterEval(); } } case NodeTypes.LOCALASGNNODE: { LocalAsgnNode iVisited = (LocalAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // System.out.println("LSetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth() + " and set " + result); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } case NodeTypes.LOCALVARNODE: { LocalVarNode iVisited = (LocalVarNode) node; //System.out.println("DGetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth()); IRubyObject result = context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()); return result == null ? runtime.getNil() : result; } case NodeTypes.MATCH2NODE: { Match2Node iVisited = (Match2Node) node; IRubyObject recv = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = evalInternal(context, iVisited.getValueNode(), self); return ((RubyRegexp) recv).match(value); } case NodeTypes.MATCH3NODE: { Match3Node iVisited = (Match3Node) node; IRubyObject recv = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = evalInternal(context, iVisited.getValueNode(), self); if (value instanceof RubyString) { return ((RubyRegexp) recv).match(value); } else { return value.callMethod(context, "=~", recv); } } case NodeTypes.MATCHNODE: { MatchNode iVisited = (MatchNode) node; return ((RubyRegexp) evalInternal(context, iVisited.getRegexpNode(), self)).match2(); } case NodeTypes.MODULENODE: { ModuleNode iVisited = (ModuleNode) node; Node classNameNode = iVisited.getCPath(); String name = ((INameNode) classNameNode).getName(); RubyModule enclosingModule = getEnclosingModule(context, classNameNode, self); if (enclosingModule == null) { throw runtime.newTypeError("no outer class/module"); } RubyModule module; if (enclosingModule == runtime.getObject()) { module = runtime.getOrCreateModule(name); } else { module = enclosingModule.defineModuleUnder(name); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), module, self); } case NodeTypes.MULTIPLEASGNNODE: { MultipleAsgnNode iVisited = (MultipleAsgnNode) node; return AssignmentVisitor.assign(context, self, iVisited, evalInternal(context, iVisited.getValueNode(), self), false); } case NodeTypes.NEWLINENODE: { NewlineNode iVisited = (NewlineNode) node; // something in here is used to build up ruby stack trace... context.setPosition(iVisited.getPosition()); if (isTrace(runtime)) { callTraceFunction(context, "line", self); } // TODO: do above but not below for additional newline nodes node = iVisited.getNextNode(); continue bigloop; } case NodeTypes.NEXTNODE: { NextNode iVisited = (NextNode) node; context.pollThreadEvents(); IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.NextJump); je.setPrimaryData(result); je.setSecondaryData(iVisited); //state.setCurrentException(je); throw je; } case NodeTypes.NILNODE: return runtime.getNil(); case NodeTypes.NOTNODE: { NotNode iVisited = (NotNode) node; IRubyObject result = evalInternal(context, iVisited.getConditionNode(), self); return result.isTrue() ? runtime.getFalse() : runtime.getTrue(); } case NodeTypes.NTHREFNODE: { NthRefNode iVisited = (NthRefNode) node; return RubyRegexp.nth_match(iVisited.getMatchNumber(), context.getBackref()); } case NodeTypes.OPASGNANDNODE: { BinaryOperatorNode iVisited = (BinaryOperatorNode) node; // add in reverse order IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) return result; node = iVisited.getSecondNode(); continue bigloop; } case NodeTypes.OPASGNNODE: { OpAsgnNode iVisited = (OpAsgnNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = receiver.callMethod(context, iVisited.getVariableName()); if (iVisited.getOperatorName().equals("||")) { if (value.isTrue()) { return value; } value = evalInternal(context, iVisited.getValueNode(), self); } else if (iVisited.getOperatorName().equals("&&")) { if (!value.isTrue()) { return value; } value = evalInternal(context, iVisited.getValueNode(), self); } else { value = value.callMethod(context, iVisited.getOperatorName(), evalInternal(context, iVisited.getValueNode(), self)); } receiver.callMethod(context, iVisited.getVariableName() + "=", value); context.pollThreadEvents(); return value; } case NodeTypes.OPASGNORNODE: { OpAsgnOrNode iVisited = (OpAsgnOrNode) node; String def = getDefinition(context, iVisited.getFirstNode(), self); IRubyObject result = runtime.getNil(); if (def != null) { result = evalInternal(context, iVisited.getFirstNode(), self); } if (!result.isTrue()) { result = evalInternal(context, iVisited.getSecondNode(), self); } return result; } case NodeTypes.OPELEMENTASGNNODE: { OpElementAsgnNode iVisited = (OpElementAsgnNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject[] args = setupArgs(context, iVisited.getArgsNode(), self); IRubyObject firstValue = receiver.callMethod(context, "[]", args); if (iVisited.getOperatorName().equals("||")) { if (firstValue.isTrue()) { return firstValue; } firstValue = evalInternal(context, iVisited.getValueNode(), self); } else if (iVisited.getOperatorName().equals("&&")) { if (!firstValue.isTrue()) { return firstValue; } firstValue = evalInternal(context, iVisited.getValueNode(), self); } else { firstValue = firstValue.callMethod(context, iVisited.getOperatorName(), evalInternal(context, iVisited .getValueNode(), self)); } IRubyObject[] expandedArgs = new IRubyObject[args.length + 1]; System.arraycopy(args, 0, expandedArgs, 0, args.length); expandedArgs[expandedArgs.length - 1] = firstValue; return receiver.callMethod(context, "[]=", expandedArgs); } case NodeTypes.OPTNNODE: { OptNNode iVisited = (OptNNode) node; IRubyObject result = runtime.getNil(); while (RubyKernel.gets(runtime.getTopSelf(), IRubyObject.NULL_ARRAY).isTrue()) { loop: while (true) { // Used for the 'redo' command try { result = evalInternal(context, iVisited.getBodyNode(), self); break; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: // do nothing, this iteration restarts break; case JumpType.NEXT: // recheck condition break loop; case JumpType.BREAK: // end loop return (IRubyObject) je.getPrimaryData(); default: throw je; } } } } return result; } case NodeTypes.ORNODE: { OrNode iVisited = (OrNode) node; IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) { result = evalInternal(context, iVisited.getSecondNode(), self); } return result; } // case NodeTypes.POSTEXENODE: // EvaluateVisitor.postExeNodeVisitor.execute(this, node); // break; case NodeTypes.REDONODE: { context.pollThreadEvents(); // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.RedoJump); je.setSecondaryData(node); throw je; } case NodeTypes.REGEXPNODE: { RegexpNode iVisited = (RegexpNode) node; String lang = null; int opts = iVisited.getOptions(); if((opts & 16) != 0) { // param n lang = "n"; } else if((opts & 48) != 0) { // param s lang = "s"; } else if((opts & 64) != 0) { // param s lang = "u"; } try { return RubyRegexp.newRegexp(runtime, iVisited.getPattern(), lang); } catch(java.util.regex.PatternSyntaxException e) { throw runtime.newSyntaxError(e.getMessage()); } } case NodeTypes.RESCUEBODYNODE: { RescueBodyNode iVisited = (RescueBodyNode) node; node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.RESCUENODE: { RescueNode iVisited = (RescueNode)node; RescuedBlock : while (true) { try { // Execute rescue block IRubyObject result = evalInternal(context, iVisited.getBodyNode(), self); // If no exception is thrown execute else block if (iVisited.getElseNode() != null) { if (iVisited.getRescueNode() == null) { runtime.getWarnings().warn(iVisited.getElseNode().getPosition(), "else without rescue is useless"); } result = evalInternal(context, iVisited.getElseNode(), self); } return result; } catch (RaiseException raiseJump) { RubyException raisedException = raiseJump.getException(); // TODO: Rubicon TestKernel dies without this line. A cursory glance implies we // falsely set $! to nil and this sets it back to something valid. This should // get fixed at the same time we address bug #1296484. runtime.getGlobalVariables().set("$!", raisedException); RescueBodyNode rescueNode = iVisited.getRescueNode(); while (rescueNode != null) { Node exceptionNodes = rescueNode.getExceptionNodes(); ListNode exceptionNodesList; if (exceptionNodes instanceof SplatNode) { exceptionNodesList = (ListNode) evalInternal(context, exceptionNodes, self); } else { exceptionNodesList = (ListNode) exceptionNodes; } if (isRescueHandled(context, raisedException, exceptionNodesList, self)) { try { return evalInternal(context, rescueNode, self); } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.RetryJump) { // should be handled in the finally block below //state.runtime.getGlobalVariables().set("$!", state.runtime.getNil()); //state.threadContext.setRaisedException(null); continue RescuedBlock; } else { throw je; } } } rescueNode = rescueNode.getOptRescueNode(); } // no takers; bubble up throw raiseJump; } finally { // clear exception when handled or retried runtime.getGlobalVariables().set("$!", runtime.getNil()); } } } case NodeTypes.RETRYNODE: { context.pollThreadEvents(); JumpException je = new JumpException(JumpException.JumpType.RetryJump); throw je; } case NodeTypes.RETURNNODE: { ReturnNode iVisited = (ReturnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); JumpException je = new JumpException(JumpException.JumpType.ReturnJump); je.setPrimaryData(iVisited.getTarget()); je.setSecondaryData(result); je.setTertiaryData(iVisited); throw je; } case NodeTypes.ROOTNODE: { RootNode iVisited = (RootNode) node; DynamicScope scope = iVisited.getScope(); // Serialization killed our dynamic scope. We can just create an empty one // since serialization cannot serialize an eval (which is the only thing // which is capable of having a non-empty dynamic scope). if (scope == null) { scope = new DynamicScope(iVisited.getStaticScope(), null); } // Each root node has a top-level scope that we need to push context.preRootNode(scope); // FIXME: Wire up BEGIN and END nodes try { return eval(context, iVisited.getBodyNode(), self); } finally { context.postRootNode(); } } case NodeTypes.SCLASSNODE: { SClassNode iVisited = (SClassNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); RubyClass singletonClass; if (receiver.isNil()) { singletonClass = runtime.getNilClass(); } else if (receiver == runtime.getTrue()) { singletonClass = runtime.getClass("TrueClass"); } else if (receiver == runtime.getFalse()) { singletonClass = runtime.getClass("FalseClass"); } else { if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw runtime.newSecurityError("Insecure: can't extend object."); } singletonClass = receiver.getSingletonClass(); } if (context.getWrapper() != null) { singletonClass.extendObject(context.getWrapper()); singletonClass.includeModule(context.getWrapper()); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), singletonClass, self); } case NodeTypes.SELFNODE: return self; case NodeTypes.SPLATNODE: { SplatNode iVisited = (SplatNode) node; return splatValue(evalInternal(context, iVisited.getValue(), self)); } //// case NodeTypes.STARNODE: //// EvaluateVisitor.starNodeVisitor.execute(this, node); //// break; case NodeTypes.STRNODE: { StrNode iVisited = (StrNode) node; return runtime.newString(iVisited.getValue()); } case NodeTypes.SUPERNODE: { SuperNode iVisited = (SuperNode) node; if (context.getFrameLastClass() == null) { String name = context.getFrameLastFunc(); throw runtime.newNameError("Superclass method '" + name + "' disabled.", name); } context.beginCallArgs(); IRubyObject[] args = null; try { args = setupArgs(context, iVisited.getArgsNode(), self); } finally { context.endCallArgs(); } return context.callSuper(args); } case NodeTypes.SVALUENODE: { SValueNode iVisited = (SValueNode) node; return aValueSplat(evalInternal(context, iVisited.getValue(), self)); } case NodeTypes.SYMBOLNODE: { SymbolNode iVisited = (SymbolNode) node; return runtime.newSymbol(iVisited.getName()); } case NodeTypes.TOARYNODE: { ToAryNode iVisited = (ToAryNode) node; return aryToAry(evalInternal(context, iVisited.getValue(), self)); } case NodeTypes.TRUENODE: { context.pollThreadEvents(); return runtime.getTrue(); } case NodeTypes.UNDEFNODE: { UndefNode iVisited = (UndefNode) node; if (context.getRubyClass() == null) { throw runtime .newTypeError("No class to undef method '" + iVisited.getName() + "'."); } context.getRubyClass().undef(iVisited.getName()); return runtime.getNil(); } case NodeTypes.UNTILNODE: { UntilNode iVisited = (UntilNode) node; IRubyObject result = runtime.getNil(); while (!(result = evalInternal(context, iVisited.getConditionNode(), self)).isTrue()) { loop: while (true) { // Used for the 'redo' command try { result = evalInternal(context, iVisited.getBodyNode(), self); break loop; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: continue; case JumpType.NEXT: break loop; case JumpType.BREAK: return (IRubyObject) je.getPrimaryData(); default: throw je; } } } } return result; } case NodeTypes.VALIASNODE: { VAliasNode iVisited = (VAliasNode) node; runtime.getGlobalVariables().alias(iVisited.getNewName(), iVisited.getOldName()); return runtime.getNil(); } case NodeTypes.VCALLNODE: { VCallNode iVisited = (VCallNode) node; return self.callMethod(context, iVisited.getName(), IRubyObject.NULL_ARRAY, CallType.VARIABLE); } case NodeTypes.WHENNODE: assert false; return null; case NodeTypes.WHILENODE: { WhileNode iVisited = (WhileNode) node; IRubyObject result = runtime.getNil(); boolean firstTest = iVisited.evaluateAtStart(); while (!firstTest || (result = evalInternal(context, iVisited.getConditionNode(), self)).isTrue()) { firstTest = true; loop: while (true) { // Used for the 'redo' command try { evalInternal(context, iVisited.getBodyNode(), self); break loop; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: continue; case JumpType.NEXT: break loop; case JumpType.BREAK: return result; default: throw je; } } } } return result; } case NodeTypes.XSTRNODE: { XStrNode iVisited = (XStrNode) node; return self.callMethod(context, "`", runtime.newString(iVisited.getValue())); } case NodeTypes.YIELDNODE: { YieldNode iVisited = (YieldNode) node; IRubyObject result = evalInternal(context, iVisited.getArgsNode(), self); if (iVisited.getArgsNode() == null) { result = null; } return context.yieldCurrentBlock(result, null, null, iVisited.getCheckState()); } case NodeTypes.ZARRAYNODE: { return runtime.newArray(); } case NodeTypes.ZSUPERNODE: { if (context.getFrameLastClass() == null) { String name = context.getFrameLastFunc(); throw runtime.newNameError("superclass method '" + name + "' disabled", name); } return context.callSuper(context.getFrameArgs(), true); } } } while (true); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/bf9566bc66503df4ccccadc79d302823756a1ae4/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 15908, 10340, 921, 5302, 3061, 12, 3830, 1042, 819, 16, 2029, 756, 16, 15908, 10340, 921, 365, 13, 288, 3639, 15908, 10340, 3099, 273, 819, 18, 588, 5576, 5621, 7734, 5446, 649...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 5302, 3061, 12, 3830, 1042, 819, 16, 2029, 756, 16, 15908, 10340, 921, 365, 13, 288, 3639, 15908, 10340, 3099, 273, 819, 18, 588, 5576, 5621, 7734, 5446, 649...
myDeclaringClass = getter.getDeclaringClass(); myGetterMethod = JavaMethodSignature.getSignature(getter);
myGetterMethod = getter;
protected AttributeChildDescriptionImpl(final String attributeName, final Method getter) { super(attributeName, getter.getGenericReturnType()); myDeclaringClass = getter.getDeclaringClass(); myGetterMethod = JavaMethodSignature.getSignature(getter); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/54db96a7e7eb53da6fe993c656f312cdf31aaaa7/AttributeChildDescriptionImpl.java/buggy/dom/impl/src/com/intellij/util/xml/impl/AttributeChildDescriptionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 3601, 1763, 3291, 2828, 12, 6385, 514, 9734, 16, 727, 2985, 7060, 13, 288, 565, 2240, 12, 4589, 461, 16, 7060, 18, 588, 7014, 9102, 10663, 565, 3399, 3456, 14682, 273, 7060, 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, 282, 4750, 3601, 1763, 3291, 2828, 12, 6385, 514, 9734, 16, 727, 2985, 7060, 13, 288, 565, 2240, 12, 4589, 461, 16, 7060, 18, 588, 7014, 9102, 10663, 565, 3399, 3456, 14682, 273, 7060, 18, 5...
global = Fields.stringToBool(fs.get("Global"), false);
public ClientPutMessage(SimpleFieldSet fs) throws MessageInvalidException { String fnam = null; identifier = fs.get("Identifier"); if(identifier == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", null); try { String u = fs.get("URI"); if(u == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No URI", identifier); FreenetURI uu = new FreenetURI(fs.get("URI")); String[] metas = uu.getAllMetaStrings(); if(metas != null && metas.length == 1) { fnam = metas[0]; uu = uu.setMetaString(null); } // if >1, will fail later uri = uu; } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URI_PARSE_ERROR, e.getMessage(), identifier); } global = Fields.stringToBool(fs.get("Global"), false); String verbosityString = fs.get("Verbosity"); if(verbosityString == null) verbosity = 0; else { try { verbosity = Integer.parseInt(verbosityString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier); } } contentType = fs.get("Metadata.ContentType"); String maxRetriesString = fs.get("MaxRetries"); if(maxRetriesString == null) // default to 0 maxRetries = 0; else { try { maxRetries = Integer.parseInt(maxRetriesString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } getCHKOnly = Fields.stringToBool(fs.get("GetCHKOnly"), false); String priorityString = fs.get("PriorityClass"); if(priorityString == null) { // defaults to the one just below FProxy priorityClass = RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS; } else { try { priorityClass = Short.parseShort(priorityString, 10); if((priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS) || (priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS)) throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier); } } String uploadFrom = fs.get("UploadFrom"); if((uploadFrom == null) || uploadFrom.equalsIgnoreCase("direct")) { uploadFromType = UPLOAD_FROM_DIRECT; String dataLengthString = fs.get("DataLength"); if(dataLengthString == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Need DataLength on a ClientPut", identifier); try { dataLength = Long.parseLong(dataLengthString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing DataLength field: "+e.getMessage(), identifier); } this.origFilename = null; redirectTarget = null; } else if(uploadFrom.equalsIgnoreCase("disk")) { uploadFromType = UPLOAD_FROM_DISK; String filename = fs.get("Filename"); if(filename == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing field Filename", identifier); File f = new File(filename); if(!(f.exists() && f.isFile() && f.canRead())) throw new MessageInvalidException(ProtocolErrorMessage.FILE_NOT_FOUND, null, identifier); dataLength = f.length(); FileBucket fileBucket = new FileBucket(f, true, false, false, false); this.bucket = fileBucket; this.origFilename = f; redirectTarget = null; if(fnam == null) fnam = origFilename.getName(); } else if(uploadFrom.equalsIgnoreCase("redirect")) { uploadFromType = UPLOAD_FROM_REDIRECT; String target = fs.get("TargetURI"); if(target == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "TargetURI missing but UploadFrom=redirect", identifier); try { redirectTarget = new FreenetURI(target); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Invalid TargetURI: "+e, identifier); } dataLength = 0; origFilename = null; bucket = null; } else throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "UploadFrom invalid or unrecognized: "+uploadFrom, identifier); dontCompress = Fields.stringToBool(fs.get("DontCompress"), false); String persistenceString = fs.get("Persistence"); if((persistenceString == null) || persistenceString.equalsIgnoreCase("connection")) { // Default: persists until connection loss. persistenceType = ClientRequest.PERSIST_CONNECTION; } else if(persistenceString.equalsIgnoreCase("reboot")) { // Reports to client by name; persists over connection loss. // Not saved to disk, so dies on reboot. persistenceType = ClientRequest.PERSIST_REBOOT; } else if(persistenceString.equalsIgnoreCase("forever")) { // Same as reboot but saved to disk, persists forever. persistenceType = ClientRequest.PERSIST_FOREVER; } else { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Persistence field: "+persistenceString, identifier); } clientToken = fs.get("ClientToken"); String f = fs.get("TargetFilename"); if(f != null) fnam = f; if(fnam != null && fnam.indexOf('/') > -1) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "TargetFilename must not contain slashes", identifier); } if(fnam != null && fnam.length() == 0) { fnam = null; // Deliberate override to tell us not to create one. } if(uri.getKeyType().equals("CHK")) targetFilename = fnam; else targetFilename = null; earlyEncode = Fields.stringToBool(fs.get("EarlyEncode"), false); }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/ClientPutMessage.java/clean/src/freenet/node/fcp/ClientPutMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 780, 2295, 301, 273, 446, 31, 202, 202, 5644, 273, 2662, 18, 588, 2932, 3004, 8863, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 780, 2295, 301, 273, 446, 31, 202, 202, 5644, 273, 2662, 18, 588, 2932, 3004, 8863, 202, ...
if (segmentCount == 0) { monitor.worked(1); } else { IProgressMonitor localMonitor = new SubProgressMonitor(monitor, segmentCount); localMonitor.beginTask(DataTransferMessages.getString("ImportOperation.creatingFolder"), segmentCount); try { for (int i = 0; i < segmentCount; i++) { currentFolder = currentFolder.getFolder(new Path(path.segment(i))); if (!currentFolder.exists()) { ((IFolder) currentFolder).create( false, true, new SubProgressMonitor(localMonitor, 1)); } } } finally { localMonitor.done(); }
for (int i = 0; i < segmentCount; i++) { currentFolder = currentFolder.getFolder(new Path(path.segment(i))); if (!currentFolder.exists()) ((IFolder) currentFolder).create(false,true,null);
IContainer createContainersFor(IPath path) throws CoreException { // 1FV0B3Y: ITPUI:ALL - sub progress monitors granularity issues IContainer currentFolder = (IContainer) destinationContainer; int segmentCount = path.segmentCount(); if (segmentCount == 0) { // 1FV0B3Y: ITPUI:ALL - sub progress monitors granularity issues monitor.worked(1); } else { // 1FV0B3Y: ITPUI:ALL - sub progress monitors granularity issues IProgressMonitor localMonitor = new SubProgressMonitor(monitor, segmentCount); localMonitor.beginTask(DataTransferMessages.getString("ImportOperation.creatingFolder"), segmentCount); //$NON-NLS-1$ try { for (int i = 0; i < segmentCount; i++) { currentFolder = currentFolder.getFolder(new Path(path.segment(i))); if (!currentFolder.exists()) { // 1FV0B3Y: ITPUI:ALL - sub progress monitors granularity issues ((IFolder) currentFolder).create( false, true, new SubProgressMonitor(localMonitor, 1)); } } } finally { localMonitor.done(); } } return currentFolder;}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1078fc6f8a35aab87dcb2e0132763c8a14e11706/ImportOperation.java/clean/bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/wizards/datatransfer/ImportOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 467, 2170, 752, 11177, 1290, 12, 45, 743, 589, 13, 1216, 30015, 288, 202, 759, 404, 28324, 20, 38, 23, 61, 30, 467, 11130, 5370, 30, 4685, 300, 720, 4007, 22389, 25380, 8296, 202, 45, 2170, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 467, 2170, 752, 11177, 1290, 12, 45, 743, 589, 13, 1216, 30015, 288, 202, 759, 404, 28324, 20, 38, 23, 61, 30, 467, 11130, 5370, 30, 4685, 300, 720, 4007, 22389, 25380, 8296, 202, 45, 2170, ...
if (oldString == null || oldString.length () == 0) { if (newString != null && newString.length () != 0) { int[] x = new int [1], y = new int [1]; int /*long*/ window = OS.gdk_window_at_pointer (x, y); if (window != 0) { int /*long*/ [] user_data = new int /*long*/ [1]; OS.gdk_window_get_user_data (window, user_data); if (widget == user_data [0]) { int /*long*/ data = OS.gtk_tooltips_data_get (widget); OS.GTK_TOOLTIPS_SET_ACTIVE (tooltipsHandle, data); OS.gtk_tooltips_set_tip (tooltipsHandle, widget, buffer, null); } }
int[] x = new int [1], y = new int [1]; int /*long*/ window = OS.gdk_window_at_pointer (x, y); if (window != 0) { int /*long*/ [] user_data = new int /*long*/ [1]; OS.gdk_window_get_user_data (window, user_data); if (widget == user_data [0]) { int /*long*/ data = OS.gtk_tooltips_data_get (widget); OS.GTK_TOOLTIPS_SET_ACTIVE (tooltipsHandle, data); OS.gtk_tooltips_set_tip (tooltipsHandle, widget, buffer, null);
void setToolTipText (int /*long*/ widget, String newString, String oldString) { byte [] buffer = null; if (newString != null && newString.length () > 0) { buffer = Converter.wcsToMbcs (null, newString, true); } if (tooltipsHandle == 0) { tooltipsHandle = OS.gtk_tooltips_new (); if (tooltipsHandle == 0) error (SWT.ERROR_NO_HANDLES); OS.g_object_ref (tooltipsHandle); OS.gtk_object_sink (tooltipsHandle); } /* * Feature in GTK. There is no API to position a tooltip. * The fix is to connect to the size_allocate signal for * the tooltip window and position it before it is mapped. * * Bug in Solaris-GTK. Invoking gtk_tooltips_force_window() * can cause a crash in older versions of GTK. The fix is * to avoid this call if the GTK version is older than 2.2.x. */ if (OS.GTK_VERSION >= OS.VERSION (2, 2, 1)) { OS.gtk_tooltips_force_window (tooltipsHandle); } int /*long*/ tipWindow = OS.GTK_TOOLTIPS_TIP_WINDOW (tooltipsHandle); if (tipWindow != 0 && tipWindow != tooltipWindow) { OS.g_signal_connect (tipWindow, OS.size_allocate, display.sizeAllocateProc, shellHandle); tooltipWindow = tipWindow; } OS.gtk_tooltips_set_tip (tooltipsHandle, widget, buffer, null); /* * Bug in GTK. If the cursor is inside the window when a new * tooltip is set and the old tooltip is null, the new tooltip * is not displayed until the mouse enters the window. The * fix is to cause and enter/leave event to happen by creating * a temporary INPUT_ONLY GDK window. */ if ((OS.GTK_WIDGET_FLAGS (widget) & OS.GTK_REALIZED) == 0) return; if ((OS.GTK_WIDGET_FLAGS (widget) & OS.GTK_VISIBLE) == 0) return; if (oldString == null || oldString.length () == 0) { if (newString != null && newString.length () != 0) { int[] x = new int [1], y = new int [1]; int /*long*/ window = OS.gdk_window_at_pointer (x, y); if (window != 0) { int /*long*/ [] user_data = new int /*long*/ [1]; OS.gdk_window_get_user_data (window, user_data); if (widget == user_data [0]) { int /*long*/ data = OS.gtk_tooltips_data_get (widget); OS.GTK_TOOLTIPS_SET_ACTIVE (tooltipsHandle, data); OS.gtk_tooltips_set_tip (tooltipsHandle, widget, buffer, null); } } } }}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/dee160fb77b5c2e7ab5959e6351f379e6f244071/Shell.java/clean/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 444, 29250, 1528, 261, 474, 1748, 5748, 5549, 3604, 16, 514, 394, 780, 16, 514, 1592, 780, 13, 288, 202, 7229, 5378, 1613, 273, 446, 31, 202, 430, 261, 2704, 780, 480, 446, 597, 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, 918, 444, 29250, 1528, 261, 474, 1748, 5748, 5549, 3604, 16, 514, 394, 780, 16, 514, 1592, 780, 13, 288, 202, 7229, 5378, 1613, 273, 446, 31, 202, 430, 261, 2704, 780, 480, 446, 597, 394, ...
public CallNode(ISourcePosition position, INode receiverNode, String name, IListNode argsNode) {
public CallNode(ISourcePosition position, INode receiverNode, String name, INode argsNode) {
public CallNode(ISourcePosition position, INode receiverNode, String name, IListNode argsNode) { super(position); this.receiverNode = receiverNode; this.name = name.intern(); this.argsNode = argsNode; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/f5c9a1ebd775712f2dc086acfce1a14a123ec632/CallNode.java/clean/src/org/jruby/ast/CallNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3049, 907, 12, 45, 1830, 2555, 1754, 16, 21176, 5971, 907, 16, 514, 508, 16, 21176, 833, 907, 13, 288, 3639, 2240, 12, 3276, 1769, 3639, 333, 18, 24454, 907, 273, 5971, 907, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3049, 907, 12, 45, 1830, 2555, 1754, 16, 21176, 5971, 907, 16, 514, 508, 16, 21176, 833, 907, 13, 288, 3639, 2240, 12, 3276, 1769, 3639, 333, 18, 24454, 907, 273, 5971, 907, 31, ...
haplos[gap][0].addTag(((Integer)preGapSubset.elementAt(i)).intValue());
Haplotype[][] generateCrossovers(Haplotype[][] haplos) throws HaploViewException{ Vector crossBlock = new Vector(); double CROSSOVER_THRESHOLD = 0.001; //to what percentage do we want to consider crossings? if (haplos.length == 0) return null; //seed first block with ordering numbers for (int u = 0; u < haplos[0].length; u++){ haplos[0][u].setListOrder(u); } for (int i = 0; i < haplos.length; i++){ haplos[i][0].clearTags(); } multidprimeArray = new double[haplos.length]; //get "tag" SNPS if there is only one block: if (haplos.length==1){ Vector theBestSubset = getBestSubset(haplos[0]); for (int i = 0; i < theBestSubset.size(); i++){ haplos[0][0].addTag(((Integer)theBestSubset.elementAt(i)).intValue()); } } for (int gap = 0; gap < haplos.length - 1; gap++){ //compute crossovers for each inter-block gap Vector preGapSubset = getBestSubset(haplos[gap]); Vector postGapSubset = getBestSubset(haplos[gap+1]); int[] preMarkerID = haplos[gap][0].getMarkers(); //index haplos to markers in whole dataset int[] postMarkerID = haplos[gap+1][0].getMarkers(); crossBlock.clear(); //make a "block" of the markers which id the pre- and post- gap haps for (int i = 0; i < preGapSubset.size(); i++){ crossBlock.add(new Integer(preMarkerID[((Integer)preGapSubset.elementAt(i)).intValue()])); //mark tags haplos[gap][0].addTag(((Integer)preGapSubset.elementAt(i)).intValue()); } for (int i = 0; i < postGapSubset.size(); i++){ crossBlock.add(new Integer(postMarkerID[((Integer)postGapSubset.elementAt(i)).intValue()])); //mark tags haplos[gap+1][0].addTag(((Integer)postGapSubset.elementAt(i)).intValue()); } Vector inputVector = new Vector(); int[] intArray = new int[crossBlock.size()]; for (int i = 0; i < crossBlock.size(); i++){ //input format for hap generating routine intArray[i] = ((Integer)crossBlock.elementAt(i)).intValue(); } inputVector.add(intArray); Haplotype[] crossHaplos = generateHaplotypes(inputVector,true)[0]; //get haplos of gap double[][] multilocusTable = new double[haplos[gap].length][]; double[] rowSum = new double[haplos[gap].length]; double[] colSum = new double[haplos[gap+1].length]; double multilocusTotal = 0; for (int i = 0; i < haplos[gap].length; i++){ double[] crossPercentages = new double[haplos[gap+1].length]; StringBuffer firstHapCodeB = new StringBuffer(preGapSubset.size()); for (int j = 0; j < preGapSubset.size(); j++){ //make a string out of uniquely identifying genotypes for this hap firstHapCodeB.append(haplos[gap][i].getGeno()[((Integer)preGapSubset.elementAt(j)).intValue()]); } String firstHapCode = firstHapCodeB.toString(); for (int gapHaplo = 0; gapHaplo < crossHaplos.length; gapHaplo++){ //look at each crossover hap if (crossHaplos[gapHaplo].getPercentage() > CROSSOVER_THRESHOLD){ StringBuffer gapBeginHapCodeB = new StringBuffer(preGapSubset.size()); for (int j = 0; j < preGapSubset.size(); j++){ //make a string as above gapBeginHapCodeB.append(crossHaplos[gapHaplo].getGeno()[j]); } String gapBeginHapCode = gapBeginHapCodeB.toString(); if (gapBeginHapCode.equals(firstHapCode)){ //if this crossover hap corresponds to this pregap hap StringBuffer gapEndHapCodeB = new StringBuffer(preGapSubset.size()); for (int j = preGapSubset.size(); j < crossHaplos[gapHaplo].getGeno().length; j++){ gapEndHapCodeB.append(crossHaplos[gapHaplo].getGeno()[j]); } String gapEndHapCode = gapEndHapCodeB.toString(); for (int j = 0; j < haplos[gap+1].length; j++){ StringBuffer endHapCodeB = new StringBuffer(); for (int k = 0; k < postGapSubset.size(); k++){ endHapCodeB.append(haplos[gap+1][j].getGeno()[((Integer)postGapSubset.elementAt(k)).intValue()]); } String endHapCode = endHapCodeB.toString(); if (gapEndHapCode.equals(endHapCode)){ crossPercentages[j] = crossHaplos[gapHaplo].getPercentage(); } } } } } //thought i needed to fix these percentages, but the raw values are just as good. /* double percentageSum = 0; double[] fixedCross = new double[crossPercentages.length]; for (int y = 0; y < crossPercentages.length; y++){ percentageSum += crossPercentages[y]; } for (int y = 0; y < crossPercentages.length; y++){ fixedCross[y] = crossPercentages[y]/percentageSum; }*/ haplos[gap][i].addCrossovers(crossPercentages); multilocusTable[i] = crossPercentages; } //sort based on "straight line" crossings int hilimit; int lolimit; if (haplos[gap+1].length > haplos[gap].length) { hilimit = haplos[gap+1].length; lolimit = haplos[gap].length; }else{ hilimit = haplos[gap].length; lolimit = haplos[gap+1].length; } boolean[] unavailable = new boolean[hilimit]; int[] prevBlockLocs = new int[haplos[gap].length]; for (int q = 0; q < prevBlockLocs.length; q++){ prevBlockLocs[haplos[gap][q].getListOrder()] = q; } for (int u = 0; u < haplos[gap+1].length; u++){ double currentBestVal = 0; int currentBestLoc = -1; for (int v = 0; v < lolimit; v++){ if (!(unavailable[v])){ if (haplos[gap][prevBlockLocs[v]].getCrossover(u) >= currentBestVal) { currentBestLoc = haplos[gap][prevBlockLocs[v]].getListOrder(); currentBestVal = haplos[gap][prevBlockLocs[v]].getCrossover(u); } } } //it didn't get lined up with any of the previous block's markers //put it at the end of the list if (currentBestLoc == -1){ for (int v = 0; v < unavailable.length; v++){ if (!(unavailable[v])){ currentBestLoc = v; break; } } } haplos[gap+1][u].setListOrder(currentBestLoc); unavailable[currentBestLoc] = true; } //compute multilocus D' for (int i = 0; i < rowSum.length; i++){ for (int j = 0; j < colSum.length; j++){ rowSum[i] += multilocusTable[i][j]; colSum[j] += multilocusTable[i][j]; multilocusTotal += multilocusTable[i][j]; if (rowSum[i] == 0) rowSum[i] = 0.0001; if (colSum[j] == 0) colSum[j] = 0.0001; } } double multidprime = 0; boolean noDivByZero = false; for (int i = 0; i < rowSum.length; i++){ for (int j = 0; j < colSum.length; j++){ double num = (multilocusTable[i][j]/multilocusTotal) - (rowSum[i]/multilocusTotal)*(colSum[j]/multilocusTotal); double denom; if (num < 0){ double denom1 = (rowSum[i]/multilocusTotal)*(colSum[j]/multilocusTotal); double denom2 = (1.0 - (rowSum[i]/multilocusTotal))*(1.0 - (colSum[j]/multilocusTotal)); if (denom1 < denom2) { denom = denom1; }else{ denom = denom2; } }else{ double denom1 = (rowSum[i]/multilocusTotal)*(1.0 -(colSum[j]/multilocusTotal)); double denom2 = (1.0 - (rowSum[i]/multilocusTotal))*(colSum[j]/multilocusTotal); if (denom1 < denom2){ denom = denom1; }else{ denom = denom2; } } if (denom != 0){ noDivByZero = true; multidprime += (rowSum[i]/multilocusTotal)*(colSum[j]/multilocusTotal)*Math.abs(num/denom); } } } if (noDivByZero){ multidprimeArray[gap] = multidprime; }else{ multidprimeArray[gap] = 1.00; } } return haplos; }
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/f770df61f6ec4e1603270fe5ff9277a48fc7b01c/HaploData.java/buggy/edu/mit/wi/haploview/HaploData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 670, 69, 4032, 388, 63, 6362, 65, 2103, 13941, 23042, 12, 44, 69, 4032, 388, 63, 6362, 65, 5622, 383, 87, 13, 1216, 670, 438, 383, 1767, 503, 95, 3639, 5589, 6828, 1768, 273, 394, 558...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 670, 69, 4032, 388, 63, 6362, 65, 2103, 13941, 23042, 12, 44, 69, 4032, 388, 63, 6362, 65, 5622, 383, 87, 13, 1216, 670, 438, 383, 1767, 503, 95, 3639, 5589, 6828, 1768, 273, 394, 558...
int i = s.indexOf ("/");
int i = s.indexOf (File.separatorChar);
public String mangleFileName (String s) { // replace "HOME" and "VJ_BASE_DIR" in the string buffer w/ // proper values i hope.......... if (s == null) return ""; if (s.startsWith ("${")) { int i = s.indexOf ("}"); if (i != -1) { String var_name = s.substring (2, i); s = getEnvVar (var_name) + s.substring (i+1); } } else if (s.startsWith ("$")) { // variable of form $VARNAME/whatever int i = s.indexOf ("/"); if (i != -1) { String var_name = s.substring (1, i); s = getEnvVar (var_name) + s.substring (i); } else s = getEnvVar (s.substring(1)); }// if (s.startsWith ("$VJ_BASE_DIR"))// s = vjbasedir + s.substring (12);// else if (s.startsWith ("VJ_BASE_DIR"))// s = vjbasedir + s.substring (11);// else if (s.startsWith ("$HOME"))// s = homedir + s.substring (5);// else if (s.startsWith ("HOME"))// s = homedir + s.substring (4);// else if (s.startsWith ("$VJ_SHARE_DIR"))// s = vjsharedir + s.substring (13);// else if (s.startsWith ("VJ_SHARE_DIR"))// s = vjsharedir + s.substring (12); System.out.println ("stringReplacement: '" + s + "'"); return s; }
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/341769633422ef93d576622523288f40d6cf3484/FileControl.java/buggy/modules/jackal/vjcontrol/org/vrjuggler/jccl/vjcontrol/FileControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 312, 4341, 4771, 261, 780, 272, 13, 288, 202, 759, 1453, 315, 14209, 6, 471, 315, 58, 46, 67, 8369, 67, 4537, 6, 316, 326, 533, 1613, 341, 19, 202, 759, 5338, 924, 277, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 312, 4341, 4771, 261, 780, 272, 13, 288, 202, 759, 1453, 315, 14209, 6, 471, 315, 58, 46, 67, 8369, 67, 4537, 6, 316, 326, 533, 1613, 341, 19, 202, 759, 5338, 924, 277, 2...
RGBBuffer buf = re.render(pd);
int[] buf = re.renderAsPackedInt(pd);
private BufferedImage createScaledImage(Pixels pixels, RenderingDef def, Integer sizeX, Integer sizeY) { // Original sizes and thumbnail metadata int origSizeX = pixels.getSizeX(); int origSizeY = pixels.getSizeY(); // Retrieve our rendered data and translate to a buffered image initializeRenderingEngine(pixels); PlaneDef pd = new PlaneDef(PlaneDef.XY, re.getDefaultT()); pd.setZ(re.getDefaultZ()); RGBBuffer buf = re.render(pd); BufferedImage image = createBufferedImage(buf, origSizeX, origSizeY); // Finally, scale our image using scaling factors (percentage). log.info("Setting xScale factor: " + sizeX + "/" + origSizeX); float xScale = (float) sizeX / origSizeX; log.info("Setting yScale factor: " + sizeX + "/" + origSizeX); float yScale = (float) sizeY / origSizeY; return iScale.scaleBufferedImage(image, xScale, yScale); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/64e6d912272b039f986c1a36d1ca930cc5578578/ThumbImpl.java/buggy/components/server/src/ome/logic/ThumbImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 12362, 752, 55, 12825, 2040, 12, 18079, 8948, 16, 18018, 3262, 1652, 16, 4766, 5411, 2144, 963, 60, 16, 2144, 963, 61, 13, 565, 288, 202, 202, 759, 19225, 8453, 471, 9134, 1982, 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, 12362, 752, 55, 12825, 2040, 12, 18079, 8948, 16, 18018, 3262, 1652, 16, 4766, 5411, 2144, 963, 60, 16, 2144, 963, 61, 13, 565, 288, 202, 202, 759, 19225, 8453, 471, 9134, 1982, 2...
return "file:" + new Path(model.getInstallLocation()).addTrailingSeparator().toString();
return "file:" + new Path(model.getInstallLocation()).removeTrailingSeparator().toString();
public static String getBundleURL(String id, Map pluginMap) { IPluginModelBase model = (IPluginModelBase)pluginMap.get(id.trim()); if (model == null) return null; return "file:" + new Path(model.getInstallLocation()).addTrailingSeparator().toString(); //$NON-NLS-1$ }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/b04869ab5fb39e51b0678f664c2ac03cc71e4706/LaunchConfigurationHelper.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/LaunchConfigurationHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 10946, 1785, 12, 780, 612, 16, 1635, 1909, 863, 13, 288, 202, 202, 45, 3773, 1488, 2171, 938, 273, 261, 45, 3773, 1488, 2171, 13, 4094, 863, 18, 588, 12, 350, 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, 760, 514, 10946, 1785, 12, 780, 612, 16, 1635, 1909, 863, 13, 288, 202, 202, 45, 3773, 1488, 2171, 938, 273, 261, 45, 3773, 1488, 2171, 13, 4094, 863, 18, 588, 12, 350, 18, ...
SymTabAST leftChild = (SymTabAST) expression.getFirstChild(); SymTabAST rightChild = (SymTabAST) leftChild.getNextSibling();
SymTabAST leftChild = findLeftChild(expression); SymTabAST rightChild = findRightSibling(leftChild);
private IClass resolveShiftOperator( SymTabAST expression, Scope location, IClass context, boolean referencePhase) { IClass result = null; SymTabAST leftChild = (SymTabAST) expression.getFirstChild(); SymTabAST rightChild = (SymTabAST) leftChild.getNextSibling(); result = resolveExpression(leftChild, location, context, referencePhase); resolveExpression(rightChild, location, context, referencePhase); result = PrimitiveClasses.unaryPromote(result); return result; }
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/8a046d9ba8a5b2aef3d3220985f5e02e532dad68/Resolver.java/buggy/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/usage/transmogrify/Resolver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 797, 2245, 10544, 5592, 12, 3639, 10042, 5661, 9053, 2652, 16, 3639, 5468, 2117, 16, 3639, 467, 797, 819, 16, 3639, 1250, 2114, 11406, 13, 288, 3639, 467, 797, 563, 273, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 797, 2245, 10544, 5592, 12, 3639, 10042, 5661, 9053, 2652, 16, 3639, 5468, 2117, 16, 3639, 467, 797, 819, 16, 3639, 1250, 2114, 11406, 13, 288, 3639, 467, 797, 563, 273, 446, ...
throw NativeGlobal.undefReadError(obj, property, scope);
throw undefReadError(obj, property);
public static Object getElem(Object obj, Object id, Scriptable scope) { int index; String s; if (id instanceof Number) { double d = ((Number) id).doubleValue(); index = (int) d; s = ((double) index) == d ? null : toString(id); } else { s = (id instanceof String) ? (String)id : toString(id); long indexTest = indexFromString(s); if (indexTest >= 0) { index = (int)indexTest; s = null; } else { index = 0; } } if (obj == null || obj == Undefined.instance) { String property = (s != null) ? s : Integer.toString(index); throw NativeGlobal.undefReadError(obj, property, scope); } Scriptable start = toObject(scope, obj); if (s != null) { return getStrIdElem(start, s); } else { return getElem(start, index); } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8df24a01d813540ecdfcd8a3a380c84cc9993734/ScriptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 4774, 3269, 12, 921, 1081, 16, 1033, 612, 16, 22780, 2146, 13, 288, 3639, 509, 770, 31, 3639, 514, 272, 31, 3639, 309, 261, 350, 1276, 3588, 13, 288, 5411, 1645, 302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4774, 3269, 12, 921, 1081, 16, 1033, 612, 16, 22780, 2146, 13, 288, 3639, 509, 770, 31, 3639, 514, 272, 31, 3639, 309, 261, 350, 1276, 3588, 13, 288, 5411, 1645, 302, ...
public String toFormulaString()
public String toFormulaString(SheetReferences refs)
public String toFormulaString() { //TODO -- should we store a cellreference instance in this ptg?? but .. memory is an issue, i believe! return (new CellReference(getRow(),getColumn(),!isRowRelative(),!isColRelative())).toString(); }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/13ea5ee7ea68721153c198ec5f180ba23cbd9840/ReferencePtg.java/clean/src/java/org/apache/poi/hssf/record/formula/ReferencePtg.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 358, 14972, 780, 12, 8229, 8221, 9047, 13, 565, 288, 3639, 368, 6241, 1493, 1410, 732, 1707, 279, 2484, 6180, 791, 316, 333, 5818, 75, 14646, 1496, 6116, 3778, 353, 392, 5672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 358, 14972, 780, 12, 8229, 8221, 9047, 13, 565, 288, 3639, 368, 6241, 1493, 1410, 732, 1707, 279, 2484, 6180, 791, 316, 333, 5818, 75, 14646, 1496, 6116, 3778, 353, 392, 5672, ...
if (monitor != null) { monitor.subTask(LaunchMessages.getString("AbstractCLaunchDelegate.20"));
if(monitor == null) { monitor = new NullProgressMonitor();
public boolean preLaunchCheck(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException { // build project list if (monitor != null) { monitor.subTask(LaunchMessages.getString("AbstractCLaunchDelegate.20")); //$NON-NLS-1$ } orderedProjects = null; ICProject cProject = getCProject(configuration); if (cProject != null) { project = cProject.getProject(); HashSet projectSet = new HashSet(); getReferencedProjectSet(project, projectSet); orderedProjects = getBuildOrder(new ArrayList(projectSet)); } // do generic launch checks return super.preLaunchCheck(configuration, mode, monitor); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/28f387019d6d22b8accfceef9f4d432c9fec47ae/AbstractCLaunchDelegate.java/clean/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 675, 9569, 1564, 12, 2627, 4760, 1750, 1664, 16, 514, 1965, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 759, 1361, 1984, 666, 202, 202, 430, 261, 10259, 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, 225, 202, 482, 1250, 675, 9569, 1564, 12, 2627, 4760, 1750, 1664, 16, 514, 1965, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 759, 1361, 1984, 666, 202, 202, 430, 261, 10259, 4...
public PatternDescr lhs_unary() throws RecognitionException { PatternDescr d; PatternDescr u = null; d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:818:17: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:818:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:818:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) int alt56=5; switch ( input.LA(1) ) { case 53: alt56=1; break; case 54: alt56=2; break; case 55: alt56=3; break; case ID: alt56=4; break; case 21: alt56=5; break; default: NoViableAltException nvae = new NoViableAltException("818:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | \'(\' u= lhs \')\' )", 56, 0, input); throw nvae; } switch (alt56) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:818:25: u= lhs_exist { following.push(FOLLOW_lhs_exist_in_lhs_unary2326); u=lhs_exist(); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:819:25: u= lhs_not { following.push(FOLLOW_lhs_not_in_lhs_unary2334); u=lhs_not(); following.pop(); } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:820:25: u= lhs_eval { following.push(FOLLOW_lhs_eval_in_lhs_unary2342); u=lhs_eval(); following.pop(); } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:821:25: u= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_unary2350); u=lhs_column(); following.pop(); } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:822:25: '(' u= lhs ')' { match(input,21,FOLLOW_21_in_lhs_unary2356); following.push(FOLLOW_lhs_in_lhs_unary2360); u=lhs(); following.pop(); match(input,23,FOLLOW_23_in_lhs_unary2362); } break; } d = u; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 67, 318, 814, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 6830, 16198, 582, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 775, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6830, 16198, 8499, 67, 318, 814, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 6830, 16198, 582, 273, 446, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 775, 28...
if (isNonDisplayableJob(job)) return;
public void beginTask(String taskName, int totalWork) { if (isNonDisplayableJob(job)) return; JobInfo info = getJobInfo(job); info.beginTask(taskName, totalWork); refresh(info); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/28dff015f95582b61afeedcf214061818f6ad308/JobProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 2376, 2174, 12, 780, 20172, 16, 509, 2078, 2421, 13, 288, 1082, 202, 430, 261, 291, 3989, 4236, 429, 2278, 12, 4688, 3719, 9506, 202, 2463, 31, 1082, 202, 2278, 966, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 2376, 2174, 12, 780, 20172, 16, 509, 2078, 2421, 13, 288, 1082, 202, 430, 261, 291, 3989, 4236, 429, 2278, 12, 4688, 3719, 9506, 202, 2463, 31, 1082, 202, 2278, 966, 112...
if (checkWorld) check(key >= 0);
if (Context.check && key < 0) Context.codeBug();
public boolean has(int key) { if (checkWorld) check(key >= 0); return 0 <= findIndex(key); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/d108b43f2f2a757ef20c817fe089542dd267a766/UintMap.java/buggy/src/org/mozilla/javascript/UintMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 12, 474, 498, 13, 288, 3639, 309, 261, 1042, 18, 1893, 597, 498, 411, 374, 13, 1772, 18, 710, 19865, 5621, 3639, 327, 374, 1648, 1104, 1016, 12, 856, 1769, 565, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 1250, 711, 12, 474, 498, 13, 288, 3639, 309, 261, 1042, 18, 1893, 597, 498, 411, 374, 13, 1772, 18, 710, 19865, 5621, 3639, 327, 374, 1648, 1104, 1016, 12, 856, 1769, 565, 289, ...
public TA_RetCode TRIX( int startIdx, int endIdx, double inReal[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ double k; double []tempBuffer ; MInteger nbElement = new MInteger() ; MInteger begIdx = new MInteger() ; int totalLookback; int emaLookback, rocLookback; TA_RetCode retCode; int nbElementToOutput; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 30; else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; emaLookback = EMA_Lookback ( optInTimePeriod ); rocLookback = ROCR_Lookback ( 1 ); totalLookback = (emaLookback*3) + rocLookback; if( startIdx < totalLookback ) startIdx = totalLookback; if( startIdx > endIdx ) { outNbElement.value = 0 ; outBegIdx.value = 0 ; return TA_RetCode. TA_SUCCESS; } outBegIdx.value = startIdx; nbElementToOutput = (endIdx-startIdx)+1+totalLookback; tempBuffer = new double[nbElementToOutput] ; k = ((double)2.0 / ((double)(optInTimePeriod + 1))) ; retCode = INT_EMA ( (startIdx-totalLookback), endIdx, inReal, optInTimePeriod, k, begIdx , nbElement , tempBuffer ); if( (retCode != TA_RetCode. TA_SUCCESS ) || ( nbElement.value == 0) ) { outNbElement.value = 0 ; outBegIdx.value = 0 ; ; return retCode; } nbElementToOutput--; nbElementToOutput -= emaLookback; retCode = INT_EMA ( 0, nbElementToOutput, tempBuffer, optInTimePeriod, k, begIdx , nbElement , tempBuffer ); if( (retCode != TA_RetCode. TA_SUCCESS ) || ( nbElement.value == 0) ) { outNbElement.value = 0 ; outBegIdx.value = 0 ; ; return retCode; } nbElementToOutput -= emaLookback; retCode = INT_EMA ( 0, nbElementToOutput, tempBuffer, optInTimePeriod, k, begIdx , nbElement , tempBuffer ); if( (retCode != TA_RetCode. TA_SUCCESS ) || ( nbElement.value == 0) ) { outNbElement.value = 0 ; outBegIdx.value = 0 ; ; return retCode; } nbElementToOutput -= emaLookback; retCode = ROC ( 0, nbElementToOutput, tempBuffer, 1, begIdx , outNbElement, outReal ); ; if( (retCode != TA_RetCode. TA_SUCCESS ) || ((int) outNbElement.value == 0) ) { outNbElement.value = 0 ; outBegIdx.value = 0 ; return retCode; } return TA_RetCode. TA_SUCCESS;}
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 9833, 67, 7055, 1085, 6566, 60, 12, 474, 1937, 4223, 16, 474, 409, 4223, 16, 9056, 267, 6955, 63, 6487, 474, 3838, 382, 26540, 16, 49, 4522, 659, 24059, 4223, 16, 49, 4522, 659, 22816,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9833, 67, 7055, 1085, 6566, 60, 12, 474, 1937, 4223, 16, 474, 409, 4223, 16, 9056, 267, 6955, 63, 6487, 474, 3838, 382, 26540, 16, 49, 4522, 659, 24059, 4223, 16, 49, 4522, 659, 22816,...
System.err.println("Beginning DRI hack");
if (DEBUG) { System.err.println("Beginning DRI hack"); }
public static void begin() { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { driHackNeeded = new File("/usr/lib/dri").exists(); return null; } }); if (driHackNeeded) { System.err.println("Beginning DRI hack"); NativeLibLoader.loadDRIHack(); libGLHandle = dlopen("/usr/lib/libGL.so.1"); } }
46690 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46690/3213573d5bae01d763265c08f3ca3c119707c0a9/DRIHack.java/buggy/src/classes/com/sun/opengl/impl/x11/DRIHack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2376, 1435, 288, 565, 25556, 18, 2896, 18845, 12, 2704, 24897, 1435, 288, 3639, 1071, 1033, 1086, 1435, 288, 1850, 302, 566, 44, 484, 11449, 273, 394, 1387, 2932, 19, 1364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2376, 1435, 288, 565, 25556, 18, 2896, 18845, 12, 2704, 24897, 1435, 288, 3639, 1071, 1033, 1086, 1435, 288, 1850, 302, 566, 44, 484, 11449, 273, 394, 1387, 2932, 19, 1364...
LOG.log(Level.SEVERE, "Unable to load parse plugins file from URL " + "[" + fParsePluginsFile + "]", e);
LOG.warning("Unable to load parse plugins file from URL " + "[" + fParsePluginsFile + "]. Reason is [" + e + "]");
public ParsePluginList parse() { ParsePluginList pList = new ParsePluginList(); // open up the XML file DocumentBuilderFactory factory = null; DocumentBuilder parser = null; Document document = null; InputSource inputSource = null; InputStream ppInputStream = null; if (fParsePluginsFile != null) { URL parsePluginUrl = null; try { parsePluginUrl = new URL(fParsePluginsFile); ppInputStream = parsePluginUrl.openStream(); } catch (Exception e) { LOG.log(Level.SEVERE, "Unable to load parse plugins file from URL " + "[" + fParsePluginsFile + "]", e); return pList; } } else { ppInputStream = NutchConf.get().getConfResourceAsInputStream( NutchConf.get().get(PP_FILE_PROP)); } inputSource = new InputSource(ppInputStream); try { factory = DocumentBuilderFactory.newInstance(); parser = factory.newDocumentBuilder(); document = parser.parse(inputSource); } catch (Exception e) { LOG.log(Level.SEVERE, "Unable to parse [" + fParsePluginsFile + "]", e); return null; } Element parsePlugins = document.getDocumentElement(); // get all the mime type nodes NodeList mimeTypes = parsePlugins.getElementsByTagName("mimeType"); // iterate through the mime types for (int i = 0; i < mimeTypes.getLength(); i++) { Element mimeType = (Element) mimeTypes.item(i); String mimeTypeStr = mimeType.getAttribute("name"); // for each mimeType, get the plugin list NodeList pluginList = mimeType.getElementsByTagName("plugin"); // iterate through the plugins, add them in order read // OR if they have a special order="" attribute, then hold those in // a // separate list, and then insert them into the final list at the // order // specified if (pluginList != null && pluginList.getLength() > 0) { List plugList = new Vector(pluginList.getLength()); for (int j = 0; j < pluginList.getLength(); j++) { Element plugin = (Element) pluginList.item(j); String pluginId = plugin.getAttribute("id"); String orderStr = plugin.getAttribute("order"); int order = -1; try { order = Integer.parseInt(orderStr); } catch (NumberFormatException ignore) { } if (order != -1) { plugList.add(order - 1, pluginId); } else { plugList.add(pluginId); } } // now add the plugin list and map it to this mimeType pList.setPluginList(mimeTypeStr, plugList); } else { LOG.warning("ParsePluginsReader:ERROR:no plugins defined for mime type: " + mimeTypeStr + ", continuing parse"); } } return pList; }
57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/d36226cac6e3c18202e3195b40a76391855818ba/ParsePluginsReader.java/clean/src/java/org/apache/nutch/parse/ParsePluginsReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2884, 3773, 682, 1109, 1435, 288, 3639, 2884, 3773, 682, 293, 682, 273, 394, 2884, 3773, 682, 5621, 3639, 368, 1696, 731, 326, 3167, 585, 565, 30236, 3272, 273, 446, 31, 565, 4319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2884, 3773, 682, 1109, 1435, 288, 3639, 2884, 3773, 682, 293, 682, 273, 394, 2884, 3773, 682, 5621, 3639, 368, 1696, 731, 326, 3167, 585, 565, 30236, 3272, 273, 446, 31, 565, 4319, ...
if (!getClass().equals(original.getClass()) || getMetaClass().getRealClass() != original.getMetaClass().getRealClass()) {
if (!getClass().equals(original.getClass())) {
public IRubyObject initialize_copy(IRubyObject original) { if (this != original) { checkFrozen(); if (!getClass().equals(original.getClass()) || getMetaClass().getRealClass() != original.getMetaClass().getRealClass()) { throw getRuntime().newTypeError("initialize_copy should take same class object"); } } return this; }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/be2d0d67acb903e2b90437be035dc5e32b7a3ebf/RubyObject.java/buggy/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 4046, 67, 3530, 12, 7937, 10340, 921, 2282, 13, 288, 202, 565, 309, 261, 2211, 480, 2282, 13, 288, 202, 3639, 866, 42, 9808, 5621, 202, 3639, 309, 16051, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 4046, 67, 3530, 12, 7937, 10340, 921, 2282, 13, 288, 202, 565, 309, 261, 2211, 480, 2282, 13, 288, 202, 3639, 866, 42, 9808, 5621, 202, 3639, 309, 16051, 58...
if (CodeFormatterConstants.MIXED.equals(getCoreOption(project, CodeFormatterConstants.FORMATTER_TAB_CHAR))) key= CodeFormatterConstants.FORMATTER_INDENTATION_SIZE;
if (DefaultCodeFormatterConstants.MIXED.equals(getCoreOption(project, DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR))) key= DefaultCodeFormatterConstants.FORMATTER_INDENTATION_SIZE;
public static int getIndentWidth(ICProject project) { String key; if (CodeFormatterConstants.MIXED.equals(getCoreOption(project, CodeFormatterConstants.FORMATTER_TAB_CHAR))) key= CodeFormatterConstants.FORMATTER_INDENTATION_SIZE; else key= CodeFormatterConstants.FORMATTER_TAB_SIZE; return getCoreOption(project, key, 4); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0482b3954404fd528d629e737114a70d018a10db/CodeFormatterUtil.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/util/CodeFormatterUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 509, 336, 7790, 2384, 12, 2871, 4109, 1984, 13, 288, 202, 202, 780, 498, 31, 202, 202, 430, 261, 1085, 5074, 2918, 18, 7492, 60, 2056, 18, 14963, 12, 588, 4670, 1895, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 336, 7790, 2384, 12, 2871, 4109, 1984, 13, 288, 202, 202, 780, 498, 31, 202, 202, 430, 261, 1085, 5074, 2918, 18, 7492, 60, 2056, 18, 14963, 12, 588, 4670, 1895, 1...
this.connection.send(command.getCommandBytes());
tmp = command.getCommandBytes(); for (int i=0; i<tmp.length; i++) commandsToSend.add(tmp[i]);
private synchronized void transmitSensors() { try { // Command command = new Command(Command.CMD_SENS_IR,// 1000,// 1000, seq++);// this.connection.send(command.getCommandBytes()); Command command = new Command(); command.setCommand(Command.CMD_SENS_IR);// command.setDataL(1000);// command.setDataR(1000); command.setDataL(((Double)this.irL.getValue()).intValue()); command.setDataR(((Double)this.irR.getValue()).intValue()); command.setSeq(this.seq++); this.connection.send(command.getCommandBytes()); command.setCommand(Command.CMD_SENS_ENC); command.setDataL((Integer)this.encL.getValue()); command.setDataR((Integer)this.encR.getValue()); // TODO: Ueberfluessig?// setSensEncL((short) 0);// setSensEncR((short) 0); command.setSeq(this.seq++); this.connection.send(command.getCommandBytes()); command.setCommand(Command.CMD_SENS_BORDER); command.setDataL(((Short)this.borderL.getValue()).intValue()); command.setDataR(((Short)this.borderR.getValue()).intValue()); command.setSeq(this.seq++); this.connection.send(command.getCommandBytes()); // TODO command.setCommand(Command.CMD_SENS_DOOR); command.setDataL(0); command.setDataR(0); command.setSeq(this.seq++); this.connection.send(command.getCommandBytes()); command.setCommand(Command.CMD_SENS_LDR); command.setDataL((Integer)this.lightL.getValue()); command.setDataR((Integer)this.lightR.getValue()); command.setSeq(this.seq++); this.connection.send(command.getCommandBytes()); command.setCommand(Command.CMD_SENS_LINE); command.setDataL(((Short)this.lineL.getValue()).intValue()); command.setDataR(((Short)this.lineR.getValue()).intValue()); command.setSeq(this.seq++); this.connection.send(command.getCommandBytes()); if(this.getObstState() != OBST_STATE_NORMAL) { this.mouseX = 0; this.mouseY = 0; } command.setCommand(Command.CMD_SENS_MOUSE); command.setDataL(this.mouseX); command.setDataR(this.mouseY); command.setSeq(this.seq++); this.connection.send(command.getCommandBytes()); // TODO: nur fuer real-bot command.setCommand(Command.CMD_SENS_TRANS); command.setDataL(0); command.setDataR(0); command.setSeq(this.seq++); this.connection.send(command.getCommandBytes()); Object rc5 = this.rc5.getValue(); if(rc5 != null) { Integer val = (Integer)rc5; if(val != 0) { command.setCommand(Command.CMD_SENS_RC5); command.setDataL(val); command.setDataR(42); command.setSeq(seq++); this.connection.send(command.getCommandBytes()); } } // TODO: nur fuer real-bot command.setCommand(Command.CMD_SENS_ERROR); command.setDataL(0); command.setDataR(0); command.setSeq(this.seq++); this.connection.send(command.getCommandBytes()); lastTransmittedSimulTime= (int)world.getSimulTime(); lastTransmittedSimulTime %= 10000; // Wir haben nur 16 Bit zur verfuegung und 10.000 ist ne nette Zahl ;-) command.setCommand(Command.CMD_DONE); command.setDataL(lastTransmittedSimulTime); command.setDataR(0); command.setSeq(this.seq++); this.connection.send(command.getCommandBytes());// System.out.println(world.getRealTime()+"ms: requesting @"+lastTransmittedSimulTime+" ms");// sendTime=System.nanoTime()/1000; } catch (IOException IoEx) { ErrorHandler.error("Error during sending Sensor data, dieing: " //$NON-NLS-1$ + IoEx); die(); } }
49082 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49082/33f80100aeeb5c23a3e2a208ff892b094498683a/CtBotSimTcp.java/clean/ctSim/model/bots/ctbot/CtBotSimTcp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 23323, 55, 12575, 1435, 288, 202, 202, 698, 288, 1082, 202, 759, 1082, 202, 2189, 1296, 273, 394, 3498, 12, 2189, 18, 19473, 67, 26753, 67, 7937, 16, 759, 1082, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 23323, 55, 12575, 1435, 288, 202, 202, 698, 288, 1082, 202, 759, 1082, 202, 2189, 1296, 273, 394, 3498, 12, 2189, 18, 19473, 67, 26753, 67, 7937, 16, 759, 1082, 20...
editor.editorGUI.textEditor.replaceSelectedText(ruleName);
editor.replaceText(leftIndex, rightIndex, ruleName);
public void extractRule() { String ruleName = (String)JOptionPane.showInputDialog(editor.getJavaContainer(), "Rule name:", "Extract Rule", JOptionPane.QUESTION_MESSAGE, null, null, ""); if(ruleName != null && ruleName.length() > 0) { editor.beginGroupChange("Extract Rule"); boolean lexer = ruleName.equals(ruleName.toUpperCase()); int index = insertionIndexForRule(lexer); String ruleContent = editor.getSelectedText(); if(index > editor.getCaretPosition()) { insertRuleAtIndex(createRule(ruleName, ruleContent), index); editor.getTextPane().replaceSelection(ruleName); } else { editor.editorGUI.textEditor.replaceSelectedText(ruleName); insertRuleAtIndex(createRule(ruleName, ruleContent), index); } editor.endGroupChange(); } }
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/436dfac0820b7f97c5dbfa0a5a51e36ec25fb64f/ActionsRefactor.java/buggy/src/org/antlr/works/editor/actions/ActionsRefactor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2608, 2175, 1435, 288, 3639, 514, 23285, 273, 261, 780, 13, 46, 1895, 8485, 18, 4500, 1210, 6353, 12, 9177, 18, 588, 5852, 2170, 9334, 315, 2175, 508, 2773, 16, 315, 4976, 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, 1071, 918, 2608, 2175, 1435, 288, 3639, 514, 23285, 273, 261, 780, 13, 46, 1895, 8485, 18, 4500, 1210, 6353, 12, 9177, 18, 588, 5852, 2170, 9334, 315, 2175, 508, 2773, 16, 315, 4976, 67...
else {
else {
private void renderRecurse(UIBranchContainer basecontainer, XMLLump parentlump, XMLLump baselump) { int renderindex = baselump.lumpindex; int basedepth = parentlump.nestingdepth; while (true) { // continue scanning along this template section until we either each // the last lump, or the recursion level. renderindex = RenderUtil.dumpScan(lumps, renderindex, basedepth, pos, true); if (renderindex == lumps.length) break; XMLLump lump = lumps[renderindex]; if (lump.nestingdepth < basedepth) break; String id = lump.rsfID; boolean ismessage = id.startsWith(XMLLump.FORID_PREFIX); if (id != null && !ismessage && id.indexOf(SplitID.SEPARATOR) != -1) { // we have entered a repetitive domain, by diagnosis of the template. // Seek in the component tree for the child list that must be here // at this component, and process them in order, looking them up in // the forward map, which must ALSO be here. String prefix = SplitID.getPrefix(id); List children = basecontainer.getComponents(prefix); // these are all children with the same prefix, which will be rendered // synchronously. if (children != null) { for (int i = 0; i < children.size(); ++i) { UIComponent child = (UIComponent) children.get(i); if (child instanceof UIBranchContainer) {// Logger.log.info("Resolved call from ");// debugLump(lump); XMLLump targetlump = (XMLLump) branchmap.get(child);// if (Logger.log.isInfoEnabled()) {// System.out.println("Resolved call for component " + child.getClass().getName() + " fullID " + child.getFullID() + " to ");// Logger.log.info("for component with ID " + child.ID + " to ");// System.out.println(debugLump(targetlump, lumps));// } if (targetlump != null) { XMLLump firstchild = lumps[targetlump.open_end.lumpindex + 1]; dumpContainerHead(targetlump, firstchild); renderRecurse((UIBranchContainer) child, targetlump, firstchild); } } else { XMLLump targetlump = findChild(parentlump, child); int renderend = renderer.renderComponent(child, lumps, targetlump.lumpindex, pos); if (i != children.size() - 1) { // at this point, magically locate any "glue" that matches the // transition // from this component to the next in the template, and scan // along // until we reach the next component with a matching id prefix. // NB transition matching is not implemented and may never be. RenderUtil.dumpScan(lumps, renderend, targetlump.nestingdepth - 1, pos, false); // we discard any index reached by this dump, continuing the // controlled sequence as long as there are any children. // given we are in the middle of a sequence here, we expect to // see nothing perverse like components or forms, at most static // things (needing rewriting?) // TODO: split of beginning logic from renderComponent that // deals // with static rewriting, and somehow fix this call to dumpScan // so that it can invoke it. Not urgent, we currently only have // the TINIEST text forming repetition glue. } } } } else { if (Logger.log.isDebugEnabled()) { Logger.log.debug("No component with prefix " + prefix + " found for domain at template lump " + renderindex +", skipping"); } } // at this point, magically locate the "postamble" from lump, and // reset the index.// Logger.log.info("Stack returned: skipping domain from ");// debugLump(lump); XMLLump finallump = parentlump.downmap.getFinal(prefix); XMLLump closefinal = finallump.close_tag; renderindex = closefinal.lumpindex + 1;// Logger.log.info("to ");// debugLump(lumps[renderindex]); } else { // no colon - continue template-driven. // it is a single, irrepitable component - just render it, and skip // on, or skip completely if there is no peer in the component tree. UIComponent component = null; if (id != null) { if (ismessage) { TargettedMessageList messages = messagetargets.getMessages(lump); if (!rendereddeadletters) { rendereddeadletters = true; TargettedMessageList deadmessages = messagetargets.getMessages(MessageTargetter.DEAD_LETTERS); if (deadmessages != null) { messages.addMessages(deadmessages); } } component = messagerenderer.renderMessageList(messages); } else { component = basecontainer.getComponent(id); } } // if we find a leaf component, render it. renderindex = renderer.renderComponent(component, lumps, renderindex, pos); } // end if unrepeatable component. } }
29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/acb471090735e73526a7c40dd18e12ba35956a31/ViewRender.java/clean/rsf-core/core/src/uk/org/ponder/rsf/renderer/ViewRender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1743, 426, 17682, 12, 5370, 7108, 2170, 1026, 3782, 16, 3167, 48, 2801, 982, 80, 2801, 16, 1377, 3167, 48, 2801, 2580, 292, 2801, 13, 288, 565, 509, 1743, 1615, 273, 2580, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1743, 426, 17682, 12, 5370, 7108, 2170, 1026, 3782, 16, 3167, 48, 2801, 982, 80, 2801, 16, 1377, 3167, 48, 2801, 2580, 292, 2801, 13, 288, 565, 509, 1743, 1615, 273, 2580, 29...
public List getPosts(int start, int count, int minPostId, int maxPostId, Connection conn) throws Exception
public List getPosts(int start, int count, int minPostId, int maxPostId, Connection conn)
public List getPosts(int start, int count, int minPostId, int maxPostId, Connection conn) throws Exception { return dao.getPosts(minPostId, maxPostId, start, count, conn); }
52144 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52144/f4af364dacad27a1238104a19d90e4a102043281/HsqldbScheduledSearchIndexerDAO.java/clean/src/net/jforum/dao/hsqldb/HsqldbScheduledSearchIndexerDAO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 14150, 87, 12, 474, 787, 16, 509, 1056, 16, 509, 1131, 3349, 548, 16, 509, 943, 3349, 548, 16, 4050, 1487, 13, 1216, 1185, 202, 95, 202, 202, 2463, 15229, 18, 588, 2498...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 14150, 87, 12, 474, 787, 16, 509, 1056, 16, 509, 1131, 3349, 548, 16, 509, 943, 3349, 548, 16, 4050, 1487, 13, 1216, 1185, 202, 95, 202, 202, 2463, 15229, 18, 588, 2498...
where += " AND n.nspname = '"+escapeQuotes(primarySchema)+"' ";
where += " AND n1.nspname = '"+escapeQuotes(primarySchema)+"' ";
protected java.sql.ResultSet getImportedExportedKeys(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, getMaxNameLength()); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, getMaxNameLength()); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, getMaxNameLength()); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, getMaxNameLength()); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, getMaxNameLength()); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, getMaxNameLength()); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, getMaxNameLength()); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, getMaxNameLength()); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, getMaxNameLength()); f[12] = new Field(connection, "PK_NAME", iVarcharOid, getMaxNameLength()); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); String select; String from; String where = ""; /* * The addition of the pg_constraint in 7.3 table should have really * helped us out here, but it comes up just a bit short. * - The conkey, confkey columns aren't really useful without * contrib/array unless we want to issues separate queries. * - Unique indexes that can support foreign keys are not necessarily * added to pg_constraint. Also multiple unique indexes covering * the same keys can be created which make it difficult to determine * the PK_NAME field. */ if (connection.haveMinimumServerVersion("7.3")) { select = "SELECT DISTINCT n.nspname as pnspname,n2.nspname as fnspname, "; from = " FROM pg_catalog.pg_namespace n, pg_catalog.pg_namespace n2, pg_catalog.pg_trigger t, pg_catalog.pg_trigger t1, pg_catalog.pg_class c, pg_catalog.pg_class c2, pg_catalog.pg_class ic, pg_catalog.pg_proc p1, pg_catalog.pg_proc p2, pg_catalog.pg_index i, pg_catalog.pg_attribute a "; where = " AND c.relnamespace = n.oid AND c2.relnamespace=n2.oid "; if (primarySchema != null && !"".equals(primarySchema)) { where += " AND n.nspname = '"+escapeQuotes(primarySchema)+"' "; } if (foreignSchema != null && !"".equals(foreignSchema)) { where += " AND n2.nspname = '"+escapeQuotes(foreignSchema)+"' "; } } else { select = "SELECT DISTINCT NULL::text as pnspname, NULL::text as fnspname, "; from = " FROM pg_trigger t, pg_trigger t1, pg_class c, pg_class c2, pg_class ic, pg_proc p1, pg_proc p2, pg_index i, pg_attribute a "; } String sql = select + "c.relname as prelname, " + "c2.relname as frelname, " + "t.tgconstrname, " + "a.attnum as keyseq, " + "ic.relname as fkeyname, " + "t.tgdeferrable, " + "t.tginitdeferred, " + "t.tgnargs,t.tgargs, " + "p1.proname as updaterule, " + "p2.proname as deleterule " + from + "WHERE " // isolate the update rule + "(t.tgrelid=c.oid " + "AND t.tgisconstraint " + "AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p1.oid " + "and p1.proname like 'RI\\\\_FKey\\\\_%\\\\_upd') " + "and " // isolate the delete rule + "(t1.tgrelid=c.oid " + "and t1.tgisconstraint " + "and t1.tgconstrrelid=c2.oid " + "AND t1.tgfoid=p2.oid " + "and p2.proname like 'RI\\\\_FKey\\\\_%\\\\_del') " + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid " + "AND ic.oid=a.attrelid " + "AND i.indisprimary " + where; if (primaryTable != null) { sql += "AND c.relname='" + escapeQuotes(primaryTable) + "' "; } if (foreignTable != null) { sql += "AND c2.relname='" + escapeQuotes(foreignTable) + "' "; } sql += "ORDER BY "; // orderby is as follows getExported, orders by FKTABLE, // getImported orders by PKTABLE // getCrossReference orders by FKTABLE, so this should work for both, // since when getting crossreference, primaryTable will be defined if (primaryTable != null) { sql += "frelname"; } else { sql += "prelname"; } sql += ",keyseq"; ResultSet rs = connection.createStatement().executeQuery(sql); // returns the following columns // and some example data with a table defined as follows // create table people ( id int primary key); // create table policy ( id int primary key); // create table users ( id int primary key, people_id int references people(id), policy_id int references policy(id)) // prelname | frelname | tgconstrname | keyseq | fkeyName | tgdeferrable | tginitdeferred // 1 | 2 | 3 | 4 | 5 | 6 | 7 // people | users | <unnamed> | 1 | people_pkey | f | f // | tgnargs | tgargs | updaterule | deleterule // | 8 | 9 | 10 | 11 // | 6 | <unnamed>\000users\000people\000UNSPECIFIED\000people_id\000id\000 | RI_FKey_noaction_upd | RI_FKey_noaction_del Vector tuples = new Vector(); while ( rs.next() ) { byte tuple[][] = new byte[14][]; tuple[1] = rs.getBytes(1); //PKTABLE_SCHEM tuple[5] = rs.getBytes(2); //FKTABLE_SCHEM tuple[2] = rs.getBytes(3); //PKTABLE_NAME tuple[6] = rs.getBytes(4); //FKTABLE_NAME String fKeyName = rs.getString(5); String updateRule = rs.getString(12); if (updateRule != null ) { // Rules look like this RI_FKey_noaction_del so we want to pull out the part between the 'Key_' and the last '_' s String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ( rule == null || "noaction".equals(rule) ) action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; else if ("restrict".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyRestrict; tuple[9] = Integer.toString(action).getBytes(); } String deleteRule = rs.getString(13); if ( deleteRule != null ) { String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; tuple[10] = Integer.toString(action).getBytes(); } int keySequence = rs.getInt(6); //KEY_SEQ // Parse the tgargs data String fkeyColumn = ""; String pkeyColumn = ""; // Note, I am guessing at most of this, but it should be close // if not, please correct // the keys are in pairs and start after the first four arguments // the arguments are seperated by \000 String targs = rs.getString(11); // args look like this //<unnamed>\000ww\000vv\000UNSPECIFIED\000m\000a\000n\000b\000 // we are primarily interested in the column names which are the last items in the string StringTokenizer st = new StringTokenizer(targs, "\\000"); int advance = 4 + (keySequence - 1) * 2; for ( int i = 0; st.hasMoreTokens() && i < advance ; i++ ) st.nextToken(); // advance to the key column of interest if ( st.hasMoreTokens() ) { fkeyColumn = st.nextToken(); } if ( st.hasMoreTokens() ) { pkeyColumn = st.nextToken(); } tuple[3] = pkeyColumn.getBytes(); //PKCOLUMN_NAME tuple[7] = fkeyColumn.getBytes(); //FKCOLUMN_NAME tuple[8] = rs.getBytes(6); //KEY_SEQ tuple[11] = targs.getBytes(); //FK_NAME this will give us a unique name for the foreign key tuple[12] = rs.getBytes(7); //PK_NAME // DEFERRABILITY int deferrability = java.sql.DatabaseMetaData.importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(8); boolean initiallyDeferred = rs.getBoolean(9); if (deferrable) { if (initiallyDeferred) deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyDeferred; else deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); tuples.addElement(tuple); } return connection.getResultSet(null, f, tuples, "OK", 1); }
46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/88e524063ab68a0bb287c5c0545e11a8164cd613/AbstractJdbc1DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 3354, 9769, 16, 514, 3354, 3078, 16, 514, 3354, 1388, 16, 514, 5523, 9769, 16, 514, 5523, 3078, 16, 514, 5523, 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, 1117, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 3354, 9769, 16, 514, 3354, 3078, 16, 514, 3354, 1388, 16, 514, 5523, 9769, 16, 514, 5523, 3078, 16, 514, 5523, 13...
return handler.getOutputStream();
if(handler instanceof IOHandlerJavaIO) { return ((IOHandlerJavaIO) handler).getOutputStream(); } else { return null; }
public OutputStream getOutStream() { return handler.getOutputStream(); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/54e6b8da799629e0b7db879c45149399878f5f84/RubyIO.java/buggy/src/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8962, 23141, 1228, 1435, 288, 3639, 309, 12, 4176, 1276, 1665, 1503, 5852, 4294, 13, 288, 327, 14015, 4294, 1503, 5852, 4294, 13, 1838, 2934, 588, 4632, 5621, 289, 469, 288, 327, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8962, 23141, 1228, 1435, 288, 3639, 309, 12, 4176, 1276, 1665, 1503, 5852, 4294, 13, 288, 327, 14015, 4294, 1503, 5852, 4294, 13, 1838, 2934, 588, 4632, 5621, 289, 469, 288, 327, 44...
hyperlink.setToolTipText(task.getDescription()); hyperlink.setHref(task);
hyperlink.setToolTipText(task.getDescription());
private void addBugHyperlinks(Composite composite, String key) { FormToolkit toolkit = getManagedForm().getToolkit(); Composite hyperlinksComposite = toolkit.createComposite(composite); RowLayout rowLayout = new RowLayout(); rowLayout.marginBottom = 0; rowLayout.marginLeft = 0; rowLayout.marginRight = 0; rowLayout.marginTop = 0; rowLayout.spacing = 0; hyperlinksComposite.setLayout(new RowLayout()); String values = getRepositoryTaskData().getAttributeValue(key); if (values != null && values.length() > 0) { for (String bugNumber : values.split(",")) { final String bugId = bugNumber.trim(); Hyperlink hyperlink = toolkit.createHyperlink(hyperlinksComposite, bugId, SWT.NONE); final ITask task = TasksUiPlugin.getTaskListManager().getTaskList().getTask( AbstractRepositoryTask.getHandle(repository.getUrl(), bugId)); if (task != null) { hyperlink.setToolTipText(task.getDescription()); hyperlink.setHref(task); } hyperlink.addHyperlinkListener(new HyperlinkAdapter() { public void linkActivated(HyperlinkEvent e) { if (task != null) { TaskUiUtil.refreshAndOpenTaskListElement(task); } else { TaskUiUtil.openRepositoryTask(repository.getUrl(), bugId, repository.getUrl() + BugzillaServerFacade.POST_ARGS_SHOW_BUG + e.getHref().toString()); } } }); } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/7cea5223810dcdf02ca63bf84924fc111b09ce75/ExistingBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 19865, 15996, 7135, 12, 9400, 9635, 16, 514, 498, 13, 288, 202, 202, 1204, 6364, 8691, 5226, 8691, 273, 2108, 4184, 1204, 7675, 588, 6364, 8691, 5621, 202, 202, 9400,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 19865, 15996, 7135, 12, 9400, 9635, 16, 514, 498, 13, 288, 202, 202, 1204, 6364, 8691, 5226, 8691, 273, 2108, 4184, 1204, 7675, 588, 6364, 8691, 5621, 202, 202, 9400,...
result.add(BorderLayout.CENTER, p = new Splitter(true,0.5f)); p.setFirstComponent( super.createEditorContent() );
result.add(BorderLayout.CENTER, p = new Splitter(true, 0.5f)); p.setFirstComponent(super.createEditorContent());
protected JComponent createEditorContent() { JPanel result = new JPanel( new BorderLayout() ); Splitter p; result.add(BorderLayout.CENTER, p = new Splitter(true,0.5f)); p.setFirstComponent( super.createEditorContent() ); JPanel replace = new JPanel( new BorderLayout() ); replaceCriteriaEdit = createEditor(searchContext); replace.add(BorderLayout.NORTH,new JLabel(SSRBundle.message("replacement.template.label"))); replace.add(BorderLayout.CENTER, replaceCriteriaEdit.getComponent() ); replaceCriteriaEdit.getComponent().setMinimumSize(new Dimension(150,100)); p.setSecondComponent( replace ); return result; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/89cd11decad19ffa2b802c17af5bee9a564095a0/ReplaceDialog.java/clean/plugins/structuralsearch/source/com/intellij/structuralsearch/plugin/replace/ui/ReplaceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 29058, 752, 6946, 1350, 1435, 288, 565, 24048, 563, 273, 394, 24048, 12, 394, 30814, 1435, 11272, 565, 5385, 387, 293, 31, 565, 563, 18, 1289, 12, 8107, 3744, 18, 19835, 16, 293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29058, 752, 6946, 1350, 1435, 288, 565, 24048, 563, 273, 394, 24048, 12, 394, 30814, 1435, 11272, 565, 5385, 387, 293, 31, 565, 563, 18, 1289, 12, 8107, 3744, 18, 19835, 16, 293, ...
g2d.setColor( clrText ); for ( int i = 0; i < itm.getLineCount( ); i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( iLC - i - 1 ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dD - dH * i - ins.getBottom( ) ) );
if ( !bEmptyText ) { g2d.setColor( clrText ); for ( int i = 0; i < itm.getLineCount( ); i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( iLC - i - 1 ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dD - dH * i - ins.getBottom( ) ) ); }
private final void showTopValue( IPrimitiveRenderer ipr, Location lo, Label la, boolean bShadow ) { final Graphics2D g2d = (Graphics2D) ( (IDeviceRenderer) ipr ).getGraphicsContext( ); double dX = lo.getX( ), dY = lo.getY( ); final FontDefinition fd = la.getCaption( ).getFont( ); // final Color clrShadow = bShadow ? (Color) // _sxs.getColor(la.getShadowColor()) : null; final double dAngleInDegrees = fd.getRotation( ); final Color clrText = (Color) _sxs.getColor( la.getCaption( ) .getColor( ) ); Color clrBackground = null; if ( la.getBackground( ) != null ) { clrBackground = (Color) _sxs.getColor( (ColorDefinition) la.getBackground( ) ); } double dAngleInRadians = ( ( -dAngleInDegrees * Math.PI ) / 180.0 ); final ITextMetrics itm = new SwingTextMetrics( _sxs, la ); final double dFW = itm.getFullWidth( ); final double dH = itm.getHeight( ); final double dD = itm.getDescent( ); final double dFH = itm.getFullHeight( ); double dXOffset = 0, dW = 0; final int iLC = itm.getLineCount( ); final Insets ins = la.getInsets( ) .scaledInstance( _sxs.getDpiResolution( ) / 72d ); final double shadowness = 3 * _sxs.getDpiResolution( ) / 72d; TextLayout tl; final HorizontalAlignment ha = la.getCaption( ) .getFont( ) .getAlignment( ) .getHorizontalAlignment( ); final boolean bRightAligned = ha.getValue( ) == HorizontalAlignment.RIGHT; final boolean bCenterAligned = ha.getValue( ) == HorizontalAlignment.CENTER; dX -= dFW / 2; // HORIZONTAL TEXT if ( dAngleInDegrees == 0 ) { if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dFH ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dFH ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dFH ) + shadowness, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, ( dY - dFH ), dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < itm.getLineCount( ); i++ ) { // tl = new TextLayout(itm.getLine(iLC - i - 1), // g2d.getFont(), g2d.getFontRenderContext()); tl = ( (SwingTextMetrics) itm ).getLayout( iLC - i - 1 ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dD - dH * i - ins.getBottom( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // crossHairs(g2d, (int)dX, (int)dY); } // DRAW IT AT A POSITIVE ANGLE else if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { double dDeltaX = dFW / 2; dX += dDeltaX; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dFH ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dFH ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dFH ) + shadowness, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, ( dY - dFH ), dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < itm.getLineCount( ); i++ ) { tl = new TextLayout( itm.getLine( iLC - i - 1 ), g2d.getFont( ).getAttributes( ), g2d.getFontRenderContext( ) ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dD - dH * i - ins.getBottom( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, dX, dY ); // crossHairs(g2d, (int)dX, (int)dY); } // DRAW IT AT A NEGATIVE ANGLE else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); dX -= dFW / 2 - ( dFW - dFW * dCosTheta ); dY -= dFW * dSineTheta; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dFH ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dFH ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dFH ) + shadowness, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dFH, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < itm.getLineCount( ); i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( iLC - i - 1 ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dD - dH * i - ins.getBottom( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, dX, dY ); /* * final RotatedRectangle rr = computePolygon(IConstants.ABOVE, la, * lo.getX(), lo.getY()); g2d.setColor(Color.blue); g2d.draw(rr); * final BoundingBox bb = computeBox(IConstants.ABOVE, la, * lo.getX(), lo.getY()); renderBox(g2d, bb, Color.black, null); */ // crossHairs(g2d, (int)dX, (int)dY); } // VERTICALLY UP else if ( dAngleInDegrees == 90 ) { double dYHalfOffset = ( dFH + dH ) / 2.0; double dDeltaX = ( dFW + dH ) / 2; dX += dDeltaX; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dYHalfOffset ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dYHalfOffset ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dYHalfOffset ) + shadowness, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dYHalfOffset, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < itm.getLineCount( ); i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( ( dY - dD ) - ( ( itm.getLineCount( ) - i ) * dH - ( iLC + 1 ) * dH / 2 ) ) + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, dX, dY ); // crossHairs(g2d, (int)dX, (int)dY); } // VERTICALLY DOWN else if ( dAngleInDegrees == -90 ) { double dYHalfOffset = ( dFH + dH ) / 2.0; double dDeltaX = ( dFW - dH ) / 2; double dDeltaY = dFW; dX += dDeltaX; dY -= dDeltaY; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dYHalfOffset ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dYHalfOffset ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dYHalfOffset ) + shadowness, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dYHalfOffset, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < itm.getLineCount( ); i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( ( dY - dD ) - ( ( itm.getLineCount( ) - i ) * dH - ( iLC + 1 ) * dH / 2 ) ) + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, dX, dY ); // crossHairs(g2d, (int)dX, (int)dY); } itm.dispose( ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/965db3fb082531b7248f7576d1afac6784a91423/SwingTextRenderer.java/buggy/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingTextRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 2405, 3401, 620, 12, 467, 9840, 6747, 277, 683, 16, 7050, 437, 16, 1082, 202, 2224, 7125, 16, 1250, 324, 12957, 262, 202, 95, 202, 202, 6385, 16830, 22, 40, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 2405, 3401, 620, 12, 467, 9840, 6747, 277, 683, 16, 7050, 437, 16, 1082, 202, 2224, 7125, 16, 1250, 324, 12957, 262, 202, 95, 202, 202, 6385, 16830, 22, 40, 314, ...
public void paintComponent(VectorGraphics vg) {
public void paintComponent(Graphics g) { super.paintComponent(g); if ((g == null) || (offScreenImage == null)) return; if (g instanceof PrinterGraphics) printing = true; if (g instanceof VectorGraphics) exporting = true; if (!isDisplaying()) { paintComponent(VectorGraphics.create(g)); return; } if (shouldRepaint()) { paintComponent(offScreenGraphics); } /* * FREEHEP-503 Disabled, since in Linux this made the blitting very * slow. * * Despite what the API documentation says, getClipBounds() * returns the current dirty region. This can then be used to speedup * the drawing of the BufferedPanel. */ /* boolean done = */ g.drawImage(offScreenImage, 0, 0, this);
public void paintComponent(VectorGraphics vg) { }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/d2255fbe86a662c3d5768854411509915a7f3e00/BufferedPanel.java/buggy/freehep-graphics2d/src/main/java/org/freehep/graphics2d/BufferedPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 1841, 12, 17558, 314, 13, 288, 2240, 18, 84, 1598, 1841, 12, 75, 1769, 282, 309, 14015, 75, 422, 446, 13, 747, 261, 3674, 7956, 2040, 422, 446, 3719, 327, 31, 282, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 1841, 12, 17558, 314, 13, 288, 2240, 18, 84, 1598, 1841, 12, 75, 1769, 282, 309, 14015, 75, 422, 446, 13, 747, 261, 3674, 7956, 2040, 422, 446, 3719, 327, 31, 282, 3...
System.arraycopy(children, offset + length, target, offset + elements.length, numChildren - offset - length);
System.arraycopy(children, copyFrom, target, copyTo, numMove);
public void replace(int offset, int length, Element[] elements) { if (numChildren + elements.length - length > children.length) { // Gotta grow the array. int newSize = Math.max(2 * children.length, numChildren + elements.length - length); Element[] target = new Element[newSize]; System.arraycopy(children, 0, target, 0, offset); System.arraycopy(elements, 0, target, offset, elements.length); System.arraycopy(children, offset + length, target, offset + elements.length, numChildren - offset - length); children = target; } else { System.arraycopy(children, offset + length, children, offset + elements.length, numChildren - offset - length); System.arraycopy(elements, 0, children, offset, elements.length); } numChildren += elements.length - length; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/6d1ae720c24d69f3eb923686102de34b3fcf6e9e/AbstractDocument.java/clean/javax/swing/text/AbstractDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1453, 12, 474, 1384, 16, 509, 769, 16, 3010, 8526, 2186, 13, 565, 288, 1377, 309, 261, 2107, 4212, 397, 2186, 18, 2469, 300, 769, 405, 2325, 18, 2469, 13, 3639, 288, 1850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1453, 12, 474, 1384, 16, 509, 769, 16, 3010, 8526, 2186, 13, 565, 288, 1377, 309, 261, 2107, 4212, 397, 2186, 18, 2469, 300, 769, 405, 2325, 18, 2469, 13, 3639, 288, 1850, ...
currentThread.setThreadGroup((RubyThreadGroup)ruby.getClass("ThreadGroup").getConstant("Default"));
public static RubyClass createThreadClass(Ruby ruby) { RubyClass threadClass = ruby.defineClass("Thread", ruby.getClasses().getObjectClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); threadClass.defineMethod("[]", callbackFactory.getMethod(ThreadClass.class, "aref", IRubyObject.class)); threadClass.defineMethod("[]=", callbackFactory.getMethod(ThreadClass.class, "aset", IRubyObject.class, IRubyObject.class)); threadClass.defineMethod("abort_on_exception", callbackFactory.getMethod(ThreadClass.class, "abort_on_exception", IRubyObject.class)); threadClass.defineMethod("abort_on_exception=", callbackFactory.getMethod(ThreadClass.class, "abort_on_exception_set", IRubyObject.class, IRubyObject.class)); threadClass.defineMethod("alive?", callbackFactory.getMethod(ThreadClass.class, "is_alive")); threadClass.defineMethod("group", callbackFactory.getMethod(ThreadClass.class, "group")); threadClass.defineMethod("join", callbackFactory.getMethod(ThreadClass.class, "join")); threadClass.defineMethod("key?", callbackFactory.getMethod(ThreadClass.class, "has_key", IRubyObject.class)); threadClass.defineMethod("priority", callbackFactory.getMethod(ThreadClass.class, "priority")); threadClass.defineMethod("priority=", callbackFactory.getMethod(ThreadClass.class, "priority_set", IRubyObject.class)); threadClass.defineMethod("raise", callbackFactory.getMethod(ThreadClass.class, "raise", IRubyObject.class)); threadClass.defineMethod("run", callbackFactory.getMethod(ThreadClass.class, "run")); threadClass.defineMethod("status", callbackFactory.getMethod(ThreadClass.class, "status")); threadClass.defineMethod("stop?", callbackFactory.getMethod(ThreadClass.class, "isStopped")); threadClass.defineMethod("wakeup", callbackFactory.getMethod(ThreadClass.class, "wakeup")); threadClass.defineMethod("kill", callbackFactory.getMethod(ThreadClass.class, "kill")); threadClass.defineSingletonMethod("current", callbackFactory.getSingletonMethod(ThreadClass.class, "current")); threadClass.defineSingletonMethod("fork", callbackFactory.getOptSingletonMethod(ThreadClass.class, "newInstance")); threadClass.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod(ThreadClass.class, "newInstance")); threadClass.defineSingletonMethod("list", callbackFactory.getSingletonMethod(ThreadClass.class, "list")); threadClass.defineSingletonMethod("pass", callbackFactory.getSingletonMethod(ThreadClass.class, "pass")); threadClass.defineSingletonMethod("start", callbackFactory.getOptSingletonMethod(ThreadClass.class, "start")); threadClass.defineSingletonMethod("critical=", callbackFactory.getSingletonMethod(ThreadClass.class, "critical_set", RubyBoolean.class)); threadClass.defineSingletonMethod("critical", callbackFactory.getSingletonMethod(ThreadClass.class, "critical")); threadClass.defineSingletonMethod("stop", callbackFactory.getSingletonMethod(ThreadClass.class, "stop")); ThreadClass currentThread = new ThreadClass(ruby, threadClass); // set hasStarted to true, otherwise Thread.main.status freezes currentThread.hasStarted = true; currentThread.jvmThread = Thread.currentThread(); ruby.getThreadService().setMainThread(currentThread); threadClass.defineSingletonMethod("main", callbackFactory.getSingletonMethod(ThreadClass.class, "main")); // set to default thread group currentThread.setThreadGroup((RubyThreadGroup)ruby.getClass("ThreadGroup").getConstant("Default")); return threadClass; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/0dddc2281d031c27f48b5cb2519e375dfcf2196e/ThreadClass.java/clean/src/org/jruby/ThreadClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 752, 3830, 797, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 797, 2650, 797, 273, 22155, 18, 11255, 797, 2932, 3830, 3113, 1171, 22155, 18, 588, 4818, 7675, 588, 921...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 752, 3830, 797, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 797, 2650, 797, 273, 22155, 18, 11255, 797, 2932, 3830, 3113, 1171, 22155, 18, 588, 4818, 7675, 588, 921...
expecting(tomcat_webapps, "opennms.xml");
expecting(m_tomcat_webapps, "opennms.xml");
public void setUp() throws IOException { String path = System.getProperty("java.io.tmpdir") + File.separator + "opennms_installer_webapp_test_" + System.currentTimeMillis(); m_tmpDir = tempDir(null, path); File dist = tempDir("dist"); File dist_webapps = tempDir(dist, "webapps"); File opennms_webapp = tempDir(dist_webapps, "opennms"); File opennms_xml = tempFile(dist_webapps, "opennms.xml"); File web_inf = tempDir(opennms_webapp, "WEB-INF"); File lib = tempDir(web_inf, "lib"); tempFile(lib, "log4j.jar"); tempFile(lib, "castor-0.9.3.9.jar"); tempFile(lib, "castor-0.9.3.9-xml.jar"); tempFile(lib, "opennms_core.jar"); tempFile(lib, "opennms_services.jar"); tempFile(lib, "opennms_web.jar"); File tomcat = tempDir("tomcat"); File tomcat_webapps = tempDir(tomcat, "webapps"); File tomcat_server = tempDir(tomcat, "server"); File tomcat_lib = tempDir(tomcat_server, "lib"); expecting(tomcat_webapps, "opennms.xml"); expecting(tomcat_lib, "log4j.jar"); expecting(tomcat_lib, "castor-0.9.3.9.jar"); expecting(tomcat_lib, "castor-0.9.3.9-xml.jar"); expecting(tomcat_lib, "opennms_core.jar"); expecting(tomcat_lib, "opennms_services.jar"); expecting(tomcat_lib, "opennms_web.jar"); m_installer = new Installer(); m_installer.m_out = new PrintStream(new ByteArrayOutputStream()); m_installer.m_tomcat_serverlibs = "log4j.jar:castor-0.9.3.9.jar:castor-0.9.3.9-xml.jar:opennms_core.jar:opennms_services.jar:opennms_web.jar"; m_installer.m_install_webappsdir = dist_webapps.getAbsolutePath(); m_installer.m_webappdir = tomcat_webapps.getAbsolutePath(); m_installer.m_tomcatserverlibdir = tomcat_lib.getAbsolutePath(); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/d66f191dc20a537b7b3b8221900aa6da2788cf1d/InstallerWebappTest.java/buggy/src/install/org/opennms/install/InstallerWebappTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24292, 1435, 1216, 1860, 288, 202, 202, 780, 589, 273, 2332, 18, 588, 1396, 2932, 6290, 18, 1594, 18, 5645, 1214, 7923, 397, 1387, 18, 11287, 397, 1082, 202, 6, 3190, 82,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 1435, 1216, 1860, 288, 202, 202, 780, 589, 273, 2332, 18, 588, 1396, 2932, 6290, 18, 1594, 18, 5645, 1214, 7923, 397, 1387, 18, 11287, 397, 1082, 202, 6, 3190, 82,...
protected final Boolean equivalentValues(Object value)
protected final Object equivalentValues(Object value)
protected final Boolean equivalentValues(Object value) { boolean result = equivalentXml(value); return result ? Boolean.TRUE : Boolean.FALSE; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/e056c6cd398e14bb613713e0d2422d282617403a/XMLObjectImpl.java/clean/js/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 727, 1033, 7680, 1972, 12, 921, 460, 13, 565, 288, 3639, 1250, 563, 273, 7680, 4432, 12, 1132, 1769, 3639, 327, 563, 692, 3411, 18, 18724, 294, 3411, 18, 21053, 31, 565, 289, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1033, 7680, 1972, 12, 921, 460, 13, 565, 288, 3639, 1250, 563, 273, 7680, 4432, 12, 1132, 1769, 3639, 327, 563, 692, 3411, 18, 18724, 294, 3411, 18, 21053, 31, 565, 289, 2, ...